.brand-name small {
    color: var(--sidebar-text);
    font-size: 13px;
    font-weight: 400;
    margin-left: 2px;
}

.merchant-profile-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 12px;
}

.merchant-profile-name {
    color: var(--text);
    font-size: 14px;
    font-weight: var(--font-weight-bold);
    margin-bottom: 6px;
}

.merchant-profile-status {
    align-items: center;
    color: var(--text-muted);
    display: inline-flex;
    font-size: 12px;
    gap: 6px;
    margin-bottom: 8px;
}

.merchant-profile-status .status-dot {
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 14%, transparent);
    height: 8px;
    width: 8px;
}

.merchant-profile-balance {
    background: var(--bg-surface-secondary);
    border-radius: var(--radius);
    display: grid;
    gap: 2px;
    padding: 8px 10px;
}

.merchant-profile-balance .balance-label {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: var(--font-weight-bold);
    letter-spacing: .3px;
    text-transform: uppercase;
}

.merchant-profile-balance .balance-value {
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
}

.quick-actions-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.quick-action-btn {
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    color: inherit;
    display: grid;
    gap: 8px;
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 12px;
    text-decoration: none;
}

.quick-action-btn:hover {
    background: var(--bg-surface-secondary);
    border-color: color-mix(in srgb, var(--primary) 24%, var(--border-color));
    color: var(--text);
    text-decoration: none;
}

.quick-action-icon {
    align-items: center;
    background: var(--primary-lt);
    border-radius: var(--radius);
    color: var(--primary);
    display: inline-flex;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.quick-action-label {
    color: var(--text);
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
}

.sr-only {
    clip: rect(0, 0, 0, 0);
    border: 0;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.mp-brand-logo {
    border-radius: var(--radius);
    display: block;
    height: 60px;
    object-fit: contain;
    padding: 0;
    width: 232px;
}

.mp-auth-logo {
    display: block;
    height: 76px;
    margin: 0 auto;
    object-fit: contain;
    width: 190px;
}

body.sidebar-rail .mp-brand-logo {
    height: 34px;
    padding: 0;
    width: 38px;
}

.sidebar,
.topbar,
.main,
.card,
.overview-card,
.panel-card,
.metric-card,
.overview-table-card,
.auth-card,
.btn,
.form-control,
.form-label,
.form-group label,
table.table,
.activity-item,
.detail-list,
.segmented-control,
.status-pill,
.overview-status,
.type-pill {
    font-family: var(--font) !important;
}

.ik {
    font-family: iconkit !important;
}

.sidebar-brand:hover,
.sidebar-brand:focus {
    text-decoration: none;
}

.sidebar-brand {
    height: 84px;
    justify-content: center;
    padding: 0 10px;
}

.docs-link {
    color: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 30%, var(--border-color));
    background: var(--primary-lt);
}

.topbar-right form {
    margin: 0;
}

.mp-logout {
    opacity: 1 !important;
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mp-stat-row .card {
    min-height: 112px;
}

.stat-icon.red {
    background: var(--red-lt);
    color: var(--red);
}

.stat-icon.purple {
    background: var(--purple-lt);
    color: var(--purple);
}

.stat-icon i {
    font-size: 18px;
    line-height: 1;
}

.stat-spark.blue .bar {
    background: var(--blue);
}

.stat-spark.yellow .bar {
    background: var(--yellow);
}

.dashboard-kpi-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-bottom: 14px;
}

.dashboard-kpi-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 12px;
}

.dashboard-kpi-top {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-height: 30px;
}

.dashboard-kpi-icon {
    align-items: center;
    background: var(--primary-lt);
    border-radius: var(--radius);
    color: var(--primary);
    display: inline-flex;
    flex: 0 0 30px;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.dashboard-kpi-icon.blue {
    background: var(--blue-lt);
    color: var(--blue);
}

.dashboard-kpi-icon.yellow {
    background: var(--yellow-lt);
    color: var(--yellow);
}

.dashboard-kpi-icon.red {
    background: var(--red-lt);
    color: var(--red);
}

.dashboard-kpi-icon.purple {
    background: var(--purple-lt);
    color: var(--purple);
}

.dashboard-kpi-icon i {
    font-size: 15px;
    line-height: 1;
}

.dashboard-kpi-change {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 11px;
    font-weight: var(--font-weight-bold);
    gap: 2px;
    line-height: 1;
    padding: 4px 7px;
}

.dashboard-kpi-change.up {
    background: var(--green-lt);
    color: var(--green);
}

.dashboard-kpi-change.down {
    background: var(--red-lt);
    color: var(--red);
}

.dashboard-kpi-change i {
    font-size: 12px;
}

.dashboard-kpi-label {
    color: var(--text-muted);
    font-size: 10.5px;
    font-weight: var(--font-weight-bold);
    letter-spacing: .35px;
    line-height: 1.2;
    margin-top: 2px;
    text-transform: uppercase;
}

.dashboard-kpi-value {
    color: var(--text);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.dashboard-kpi-subtext {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.25;
    min-height: 15px;
}

.dashboard-kpi-progress {
    background: var(--bg-surface-secondary);
    border-radius: 999px;
    height: 4px;
    margin-top: 3px;
    overflow: hidden;
}

.dashboard-kpi-progress span {
    border-radius: inherit;
    display: block;
    height: 100%;
}

.mp-progress-card {
    padding: 16px;
}

.mp-progress-card .progress-thin {
    margin-top: 18px;
}

.mp-chart-value {
    margin-top: 8px;
}

.mp-highcharts {
    height: 285px;
    min-width: 0;
    width: 100%;
}

.mp-highcharts .highcharts-container,
.mp-highcharts svg {
    font-family: var(--font) !important;
}

.mp-line-chart {
    height: 260px;
}

.mp-line-chart svg {
    display: block;
    height: 220px;
    width: 100%;
}

.mp-line-chart .grid line {
    stroke: var(--border-color-light);
    stroke-dasharray: 5 5;
}

.mp-line-chart .area {
    fill: url(#chartFill);
}

.mp-line-chart .line {
    fill: none;
    stroke-linecap: round;
    stroke-width: 2.4;
}

.mp-line-chart .line.primary {
    stroke: var(--primary);
}

.mp-line-chart .line.secondary {
    stroke: var(--blue);
    stroke-dasharray: 7 5;
    opacity: .75;
}

.chart-days {
    color: var(--text-muted);
    display: grid;
    font-size: 12px;
    grid-template-columns: repeat(7, 1fr);
    padding: 0 4px;
}

.chart-days span {
    text-align: center;
}

.mp-bar-chart {
    align-items: end;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    height: 260px;
    padding: 14px 6px 0;
}

.mp-bar-day {
    align-items: center;
    display: grid;
    gap: 8px;
    height: 100%;
    min-width: 0;
}

.mp-bar-stack {
    align-items: end;
    border-bottom: 1px solid var(--border-color-light);
    display: flex;
    gap: 5px;
    height: 210px;
    justify-content: center;
    min-width: 0;
}

.mp-bar {
    border-radius: 999px 999px 0 0;
    display: block;
    min-height: 2px;
    width: min(18px, 38%);
}

.mp-bar.collections {
    background: var(--primary);
}

.mp-bar.payouts {
    background: var(--blue);
    opacity: .75;
}

.mp-bar-day small {
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
}

.mp-legend {
    align-items: center;
    display: flex;
    gap: 28px;
}

.mp-legend span {
    align-items: center;
    color: var(--text-muted);
    display: inline-flex;
    gap: 8px;
}

.mp-legend i {
    border-radius: 3px;
    display: inline-block;
    height: 4px;
    width: 14px;
}

.activity-list {
    padding: 10px 16px;
}

.activity-item {
    align-items: flex-start;
    border-bottom: 1px solid var(--border-color-light);
    display: flex;
    gap: 12px;
    padding: 12px 0;
}

.activity-item:last-child {
    border-bottom: 0;
}

.activity-avatar {
    align-items: center;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 30px;
    font-size: 11px;
    font-weight: 700;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.activity-avatar.green {
    background: var(--primary);
}

.activity-avatar.yellow {
    background: var(--yellow);
}

.activity-avatar.red {
    background: var(--red);
}

.activity-item strong {
    color: var(--text);
    font-size: 13px;
}

.activity-item span,
.activity-item small {
    color: var(--text-muted);
    display: block;
    font-size: 12.5px;
}

.alert {
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    margin-bottom: 14px;
    padding: 10px 12px;
}

.alert-danger {
    background: var(--red-lt);
    border-color: color-mix(in srgb, var(--red) 22%, var(--border-color));
    color: var(--red);
}

.alert-success {
    background: var(--green-lt);
    border-color: color-mix(in srgb, var(--green) 22%, var(--border-color));
    color: var(--green);
}

.kb-hero {
    align-items: flex-start;
}

.kb-search-panel {
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    margin-bottom: 16px;
    padding: 16px;
}

.kb-search-panel h2 {
    color: var(--text);
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    line-height: 1.25;
    margin: 2px 0 0;
}

.kb-search-box {
    position: relative;
}

.kb-search-box i {
    color: var(--text-muted);
    font-size: 16px;
    left: 12px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.kb-search-box input {
    background: var(--bg-surface-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text);
    font: inherit;
    min-height: 42px;
    padding: 9px 12px 9px 38px;
    width: 100%;
}

.kb-search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-lt);
    outline: 0;
}

.kb-layout {
    align-items: start;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
}

.kb-side-panel {
    display: grid;
    gap: 12px;
    position: sticky;
    top: 72px;
}

.kb-side-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: grid;
    gap: 8px;
    padding: 14px;
}

.kb-side-section h3 {
    color: var(--text);
    font-size: 13px;
    font-weight: var(--font-weight-bold);
    margin: 0 0 2px;
}

.kb-side-section a {
    align-items: center;
    border-radius: var(--radius);
    color: var(--text-secondary);
    display: flex;
    gap: 8px;
    min-height: 34px;
    padding: 7px 8px;
    text-decoration: none;
}

.kb-side-section a:hover {
    background: var(--bg-surface-secondary);
    color: var(--text);
}

.kb-side-section a i {
    color: var(--primary);
    font-size: 15px;
}

.kb-contact-box ol {
    color: var(--text-muted);
    display: grid;
    gap: 8px;
    line-height: 1.45;
    margin: 0;
    padding-left: 18px;
}

.kb-main {
    min-width: 0;
}

.kb-collection-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 16px;
}

.kb-article-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: grid;
    gap: 12px;
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 178px;
    min-width: 0;
    padding: 14px;
}

.kb-card-icon {
    align-items: center;
    background: var(--primary-lt);
    border-radius: var(--radius);
    color: var(--primary);
    display: inline-flex;
    font-size: 18px;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.kb-card-icon.blue {
    background: var(--blue-lt);
    color: var(--blue);
}

.kb-card-icon.purple {
    background: var(--purple-lt);
    color: var(--purple);
}

.kb-card-icon.yellow {
    background: var(--yellow-lt);
    color: var(--yellow);
}

.kb-article-card span {
    color: var(--text-muted);
    display: block;
    font-size: 10.5px;
    font-weight: var(--font-weight-bold);
    letter-spacing: .35px;
    line-height: 1.2;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.kb-article-card h3 {
    color: var(--text);
    font-size: 15px;
    font-weight: var(--font-weight-bold);
    line-height: 1.25;
    margin: 0 0 7px;
}

.kb-article-card p {
    color: var(--text-muted);
    font-size: 12.5px;
    line-height: 1.45;
    margin: 0 0 12px;
}

.kb-article-card a {
    align-items: center;
    display: inline-flex;
    font-size: 12.5px;
    font-weight: var(--font-weight-bold);
    gap: 5px;
    text-decoration: none;
}

.kb-faq-panel .panel-header {
    align-items: flex-start;
}

.kb-faq-list {
    display: grid;
}

.kb-faq-list details {
    border-bottom: 1px solid var(--border-color-light);
    padding: 0 16px;
}

.kb-faq-list details:last-child {
    border-bottom: 0;
}

.kb-faq-list summary {
    color: var(--text);
    cursor: pointer;
    font-size: 13px;
    font-weight: var(--font-weight-bold);
    list-style: none;
    padding: 14px 22px 14px 0;
    position: relative;
}

.kb-faq-list summary::-webkit-details-marker {
    display: none;
}

.kb-faq-list summary:after {
    color: var(--text-muted);
    content: "+";
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    position: absolute;
    right: 0;
    top: 13px;
}

.kb-faq-list details[open] summary:after {
    content: "-";
}

.kb-faq-list p {
    color: var(--text-muted);
    font-size: 12.5px;
    line-height: 1.5;
    margin: -4px 0 14px;
    max-width: 780px;
}

.kb-empty-state {
    background: var(--yellow-lt);
    border: 1px solid color-mix(in srgb, var(--yellow) 25%, var(--border-color));
    border-radius: var(--radius-lg);
    color: var(--text);
    margin: 0;
    padding: 12px 14px;
}

.page-wrapper > .dashboard-hero,
.page-wrapper > .merchant-overview > .overview-heading {
    margin-bottom: 20px;
}

.dashboard-hero,
.overview-heading,
.recent-payments-header,
.panel-header,
.form-actions {
    align-items: center;
    display: flex;
    gap: var(--space-3);
    justify-content: space-between;
}

.dashboard-hero {
    background: transparent;
}

.dashboard-hero .eyebrow,
.overview-heading + .eyebrow,
.page-pretitle {
    text-transform: uppercase;
}

.dashboard-hero h1,
.overview-heading h1,
.recent-payments-header h2 {
    color: var(--text);
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    line-height: 1.3;
    margin: 0;
}

.dashboard-hero p,
.panel-header p {
    color: var(--text-muted);
    margin: 3px 0 0;
}

.hero-actions,
.page-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.overview-stats,
.overview-products,
.metric-grid,
.merchant-form-grid {
    display: grid;
    gap: var(--space-4);
    margin-bottom: 16px;
}

.overview-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.overview-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.overview-card,
.panel-card,
.metric-card,
.overview-table-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.overview-card,
.metric-card {
    padding: 16px;
}

.stat-card,
.product-card,
.metric-card {
    align-items: center;
    display: flex;
    gap: var(--space-3);
    justify-content: space-between;
}

.stat-card span,
.metric-card span,
.product-card span {
    color: var(--text-muted);
    display: block;
    font-size: 11px;
    font-weight: var(--font-weight-bold);
    letter-spacing: .3px;
    text-transform: uppercase;
}

.stat-card strong,
.metric-card h2 {
    color: var(--text);
    display: block;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.3px;
    line-height: 1.1;
    margin: 5px 0 4px;
}

.stat-card small,
.metric-card p,
.product-card p {
    color: var(--text-muted);
}

.stat-card > i,
.product-card > i,
.metric-icon {
    align-items: center;
    background: var(--primary-lt);
    border-radius: var(--radius);
    color: var(--primary);
    display: inline-flex;
    flex: 0 0 40px;
    font-size: 18px;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.metric-icon.success {
    background: var(--green-lt);
    color: var(--green);
}

.metric-icon.warning {
    background: var(--yellow-lt);
    color: var(--yellow);
}

.metric-icon.danger {
    background: var(--red-lt);
    color: var(--red);
}

.transactions-hero {
    margin-bottom: 12px !important;
}

.transaction-summary-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 14px;
}

.transaction-summary-card a {
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    color: inherit;
    display: grid;
    gap: 10px;
    grid-template-columns: 36px minmax(0, 1fr);
    min-height: 82px;
    min-width: 0;
    padding: 10px 12px;
    text-decoration: none;
}

.transaction-summary-card a:hover,
.transaction-summary-card a.active {
    border-color: color-mix(in srgb, var(--primary) 35%, var(--border-color));
    box-shadow: 0 0 0 3px var(--primary-lt);
}

.transaction-summary-card .metric-icon {
    flex: 0 0 36px;
    font-size: 16px;
    height: 36px;
    width: 36px;
}

.transaction-summary-card span {
    color: var(--text-muted);
    display: block;
    font-size: 11px;
    font-weight: var(--font-weight-bold);
    letter-spacing: .2px;
    line-height: 1.2;
    text-transform: uppercase;
}

.transaction-summary-card h2 {
    color: var(--text);
    font-size: 21px;
    line-height: 1.1;
    margin: 3px 0 2px;
}

.transaction-summary-card p {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.25;
    margin: 0;
}

.transaction-summary-card .positive {
    color: var(--green);
}

.transaction-summary-card .negative {
    color: var(--red);
}

.rate-default-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 14px;
}

.rate-card-heading {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.rate-card-heading h3 {
    color: var(--text);
    font-size: 14px;
    margin: 0 0 2px;
}

.rate-card-heading p {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.35;
    margin: 0;
}

.rate-table-input {
    max-width: 150px;
    min-height: 32px;
}

.panel-card,
.overview-table-card {
    margin-bottom: 16px;
    overflow: hidden;
}

.panel-header {
    border-bottom: 1px solid var(--border-color-light);
    padding: 12px 16px;
}

.panel-header h3 {
    color: var(--text);
    font-size: 13px;
    font-weight: var(--font-weight-bold);
    margin: 0;
}

.panel-card > form {
    padding: 16px;
}

.danger-panel {
    border-color: color-mix(in srgb, var(--red) 28%, var(--border-color));
}

.danger-panel .panel-header {
    background: var(--red-lt);
    border-bottom-color: color-mix(in srgb, var(--red) 22%, var(--border-color));
}

.danger-panel .panel-header h3 {
    color: var(--red);
}

.attachment-list {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.attachment-list a {
    align-items: center;
    background: var(--bg-main);
    border: 1px solid var(--border-color-light);
    border-radius: var(--radius);
    color: var(--text);
    display: grid;
    gap: 10px;
    grid-template-columns: 34px minmax(0, 1fr);
    min-width: 0;
    padding: 10px 12px;
    text-decoration: none;
}

.attachment-list a:hover {
    background: var(--bg-surface-secondary);
    border-color: color-mix(in srgb, var(--primary) 24%, var(--border-color));
    color: var(--text);
}

.attachment-list i {
    align-items: center;
    background: var(--primary-lt);
    border-radius: var(--radius-sm);
    color: var(--primary);
    display: inline-flex;
    font-size: 16px;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.attachment-list span {
    font-size: 13px;
    font-weight: var(--font-weight-semibold);
    min-width: 0;
    overflow-wrap: anywhere;
}

.panel-card > .credential-box,
.panel-card > .detail-grid,
.panel-card > .api-endpoint,
.panel-card > .api-sample {
    min-width: 0;
}

.form-section {
    padding: 16px;
}

.form-section .panel-header {
    border-bottom: 0;
    padding: 0 0 14px;
}

.row:not(.col-1):not(.col-2):not(.col-3):not(.col-4):not(.col-8-4):not(.col-4-8) {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: repeat(12, minmax(0, 1fr));
    margin-bottom: 16px;
}

.col-md-12,
.col-xl-12 {
    grid-column: span 12;
}

.col-md-10 {
    grid-column: span 10;
}

.col-md-6 {
    grid-column: span 6;
}

.col-md-5 {
    grid-column: span 5;
}

.col-md-4,
.col-xl-4 {
    grid-column: span 4;
}

.col-xl-5 {
    grid-column: span 5;
}

.col-xl-7 {
    grid-column: span 7;
}

.col-md-3,
.col-xl-3 {
    grid-column: span 3;
}

.col-md-2 {
    grid-column: span 2;
}

.form-group {
    margin-bottom: 14px;
}

.form-label,
.form-group label {
    color: var(--text);
    display: block;
    font-size: 12px;
    font-weight: var(--font-weight-bold);
    margin-bottom: 6px;
}

.form-control,
select.form-control,
textarea.form-control {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text);
    font: inherit;
    min-height: 36px;
    padding: 8px 10px;
    width: 100%;
}

textarea.form-control {
    min-height: 82px;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-lt);
    outline: none;
}

.input-group {
    position: relative;
}

.input-group .input-icon {
    color: var(--text-muted);
    height: 16px;
    left: 11px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
}

.input-group .form-control {
    padding-left: 36px;
}

.input-group-password .form-control {
    padding-right: 42px;
}

.password-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    height: 28px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    background: var(--bg-surface-secondary);
    color: var(--text);
}

.password-toggle svg {
    height: 17px;
    width: 17px;
}

.password-toggle .password-toggle-hide {
    display: none;
}

.password-toggle[aria-pressed="true"] .password-toggle-show {
    display: none;
}

.password-toggle[aria-pressed="true"] .password-toggle-hide {
    display: block;
}

.invalid-feedback {
    color: var(--red);
    display: block;
    font-size: 12px;
    margin-top: 5px;
}

.is-invalid {
    border-color: var(--red) !important;
}

.form-actions {
    justify-content: flex-end;
    margin: 0 0 18px;
}

.btn-light,
.btn-default {
    background: var(--bg-surface);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.btn-sm {
    height: 28px;
    min-width: 28px;
    padding: 0 9px;
}

.btn-danger {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.btn-danger:hover {
    background: color-mix(in srgb, var(--red) 86%, #000);
    color: #fff;
}

.btn-outline-primary,
.btn-outline {
    background: var(--bg-surface);
    border-color: var(--border-color);
    color: var(--text-secondary);
    box-shadow: var(--shadow);
}

.btn-outline-primary:hover,
.btn-outline:hover,
.btn-light:hover,
.btn-default:hover {
    background: var(--bg-surface-secondary);
    color: var(--text);
    text-decoration: none;
}

.btn-link {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: var(--primary);
    height: auto;
    padding: 0;
}

.btn i {
    font-size: 15px;
    line-height: 1;
}

.table-actions,
.form-actions {
    position: relative;
    z-index: 2;
}

.table-actions .btn,
.form-actions .btn,
.hero-actions .btn,
.page-actions .btn,
.panel-header .btn {
    pointer-events: auto;
}

.table-actions form {
    margin: 0;
}

.text-danger {
    color: var(--red) !important;
}

.text-success {
    color: var(--green) !important;
}

.mp-datatable-filters {
    align-items: end;
    border-bottom: 1px solid var(--border-color-light);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
}

.mp-datatable-filters label {
    color: var(--text-muted);
    display: grid;
    font-size: 11px;
    font-weight: var(--font-weight-bold);
    gap: 4px;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.mp-datatable-filters input {
    min-width: 150px;
}

.mp-dt-top,
.mp-dt-bottom {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    padding: 12px 16px;
}

.mp-dt-bottom {
    border-top: 1px solid var(--border-color-light);
}

.dt-buttons {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dt-buttons .btn,
.dataTables_wrapper .btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    color: var(--text-secondary);
    height: 30px;
    padding: 0 10px;
}

.dt-buttons .btn:hover,
.dataTables_wrapper .btn:hover {
    background: var(--bg-surface-secondary);
    color: var(--text);
}

.dataTables_filter label,
.dataTables_length label,
.dataTables_info {
    color: var(--text-muted);
    font-size: 12px;
}

.dataTables_filter input,
.dataTables_length select {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text);
    font: inherit;
    min-height: 32px;
    padding: 6px 9px;
}

.dataTables_filter input {
    min-width: 220px;
}

.dataTables_paginate {
    align-items: center;
    display: flex;
    gap: 4px;
}

.dataTables_paginate .paginate_button {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary) !important;
    cursor: pointer;
    min-width: 30px;
    padding: 5px 8px;
}

.dataTables_paginate .paginate_button.current,
.dataTables_paginate .paginate_button:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff !important;
    text-decoration: none;
}

.dataTables_processing {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--text);
    padding: 10px 14px;
}

.table {
    border-collapse: collapse;
    width: 100%;
}

.payment-table td span,
.overview-table td span {
    color: var(--text-muted);
    display: block;
}

.table-actions {
    white-space: nowrap;
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.d-inline {
    display: inline;
}

.d-none {
    display: none !important;
}

.mt-3 {
    margin-top: 12px;
}

.mb-4 {
    margin-bottom: 16px;
}

.empty-state strong,
.empty-state span {
    display: block;
}

.status-pill,
.overview-status,
.type-pill {
    align-items: center;
    border-radius: 999px;
    border: 1px solid transparent;
    display: inline-flex !important;
    font-size: 11px;
    font-weight: var(--font-weight-bold);
    gap: 6px;
    letter-spacing: .2px;
    line-height: 1;
    min-height: 24px;
    padding: 5px 10px;
    text-transform: capitalize;
    white-space: nowrap;
}

.status-pill:before,
.overview-status:before {
    border-radius: 50%;
    content: "";
    display: inline-block;
    flex: 0 0 auto;
    height: 7px;
    width: 7px;
}

.status-pill.online,
.overview-status.completed {
    background: color-mix(in srgb, var(--green) 12%, var(--bg-surface));
    border-color: color-mix(in srgb, var(--green) 30%, var(--border-color));
    color: var(--green);
}

.status-pill.online:before,
.overview-status.completed:before {
    background: var(--green);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 14%, transparent);
}

.status-pill.watch,
.overview-status.pending {
    background: color-mix(in srgb, var(--yellow) 14%, var(--bg-surface));
    border-color: color-mix(in srgb, var(--yellow) 36%, var(--border-color));
    color: #b45309;
}

.status-pill.watch:before,
.overview-status.pending:before {
    background: var(--yellow);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--yellow) 18%, transparent);
}

.status-pill.failed,
.overview-status.failed {
    background: color-mix(in srgb, var(--red) 10%, var(--bg-surface));
    border-color: color-mix(in srgb, var(--red) 28%, var(--border-color));
    color: var(--red);
}

.status-pill.failed:before,
.overview-status.failed:before {
    background: var(--red);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 14%, transparent);
}

.type-pill {
    background: var(--bg-surface-secondary);
    color: var(--text-secondary);
    text-transform: uppercase;
}

.transaction-status {
    display: grid;
    gap: 4px;
    min-width: 138px;
}

.transaction-status small {
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.25;
    max-width: 180px;
}

.segmented-control {
    background: var(--bg-surface-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    display: inline-flex;
    overflow: hidden;
}

.segmented-control a {
    color: var(--text-muted);
    font-size: 12px;
    padding: 7px 11px;
}

.segmented-control a.active,
.segmented-control a:hover {
    background: var(--bg-surface);
    color: var(--text);
    text-decoration: none;
}

.clickable-payment-row {
    cursor: pointer;
}

.transaction-drawer {
    background: rgba(15, 22, 35, .38);
    bottom: 0;
    display: none;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 200;
}

.transaction-drawer[aria-hidden="false"] {
    display: block;
}

.transaction-drawer-panel {
    background: var(--bg-surface);
    bottom: 0;
    box-shadow: -8px 0 24px rgba(15, 22, 35, .18);
    max-width: 480px;
    overflow: auto;
    position: absolute;
    right: 0;
    top: 0;
    width: min(92vw, 480px);
}

.transaction-drawer-header {
    align-items: center;
    border-bottom: 1px solid var(--border-color-light);
    display: flex;
    justify-content: space-between;
    padding: 14px 16px;
}

.transaction-drawer-header h3,
.transaction-drawer-body h4 {
    color: var(--text);
    margin: 0;
}

.transaction-drawer-body {
    padding: 16px;
}

.transaction-drawer-body h4 {
    font-size: 13px;
    margin: 18px 0 8px;
}

.transaction-drawer-close,
.copy-button,
.icon-button {
    background: transparent;
    border: 0;
    color: var(--text-muted);
    cursor: pointer;
}

.detail-list {
    border: 1px solid var(--border-color-light);
    border-radius: var(--radius);
    overflow: hidden;
}

.detail-list > div {
    align-items: center;
    border-bottom: 1px solid var(--border-color-light);
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
}

.detail-list > div:last-child {
    border-bottom: 0;
}

.detail-list span {
    color: var(--text-muted);
}

.fee-negative {
    color: var(--red);
}

.fee-positive {
    color: var(--green);
}

.approval-timeline {
    background: var(--bg-main);
    border: 1px solid var(--border-color-light);
    border-radius: var(--radius);
    display: grid;
    gap: 0;
    overflow: hidden;
    padding: 8px 0;
}

.approval-step {
    display: grid;
    gap: 10px;
    grid-template-columns: 34px minmax(0, 1fr);
    min-width: 0;
    padding: 10px 14px;
    position: relative;
}

.approval-step::before {
    background: var(--border-color);
    bottom: -10px;
    content: "";
    left: 30px;
    position: absolute;
    top: 30px;
    width: 1px;
}

.approval-step:last-child::before {
    display: none;
}

.approval-step-marker {
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-muted);
    display: inline-flex;
    height: 20px;
    justify-content: center;
    justify-self: center;
    margin-top: 2px;
    position: relative;
    width: 20px;
    z-index: 1;
}

.approval-step-marker i {
    font-size: 12px;
    line-height: 1;
}

.approval-step.completed .approval-step-marker {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.approval-step.current .approval-step-marker {
    background: var(--yellow-lt);
    border-color: color-mix(in srgb, var(--yellow) 45%, var(--border-color));
    color: var(--yellow);
}

.approval-step.completed::before {
    background: color-mix(in srgb, var(--green) 55%, var(--border-color));
}

.approval-step-content {
    min-width: 0;
}

.approval-step-heading {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    min-width: 0;
}

.approval-step-heading strong {
    color: var(--text);
    font-size: 12.5px;
    min-width: 0;
}

.approval-step-heading span {
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-muted);
    flex: 0 0 auto;
    font-size: 10.5px;
    font-weight: var(--font-weight-bold);
    padding: 2px 7px;
}

.approval-step.completed .approval-step-heading span {
    background: var(--green-lt);
    border-color: color-mix(in srgb, var(--green) 30%, var(--border-color));
    color: var(--green);
}

.approval-step.current .approval-step-heading span {
    background: var(--yellow-lt);
    border-color: color-mix(in srgb, var(--yellow) 35%, var(--border-color));
    color: var(--yellow);
}

.approval-step-meta {
    display: grid;
    gap: 2px;
    margin-top: 3px;
    min-width: 0;
}

.approval-step-meta span {
    color: var(--text-secondary);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.approval-step-meta small {
    color: var(--text-muted);
    font-size: 11px;
}

.credential-box {
    align-items: flex-start;
    border-bottom: 1px solid var(--border-color-light);
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 12px 16px;
}

.credential-box:last-child {
    border-bottom: 0;
}

.credential-box span {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: var(--font-weight-bold);
    letter-spacing: .3px;
    text-transform: uppercase;
}

.credential-box code {
    display: block;
    max-width: 100%;
    white-space: normal;
}

.detail-grid {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
}

.detail-grid > div {
    align-items: flex-start;
    border-bottom: 1px solid var(--border-color-light);
    display: grid;
    gap: 5px;
    grid-template-columns: minmax(96px, 32%) minmax(0, 1fr);
    min-width: 0;
    padding: 11px 16px;
}

.detail-grid > div:last-child {
    border-bottom: 0;
}

.detail-grid.single-column > div {
    grid-template-columns: minmax(0, 1fr);
}

.detail-grid dt {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: var(--font-weight-bold);
    letter-spacing: .3px;
    text-transform: uppercase;
}

.detail-grid dd {
    color: var(--text);
    margin: 0;
    min-width: 0;
}

.api-endpoint {
    align-items: center;
    background: var(--bg-main);
    border: 1px solid var(--border-color-light);
    border-radius: var(--radius);
    display: flex;
    gap: 10px;
    margin: 16px;
    min-width: 0;
    padding: 10px 12px;
}

.api-endpoint span {
    background: var(--green-lt);
    border-radius: 5px;
    color: var(--green);
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: var(--font-weight-bold);
    padding: 4px 7px;
}

.api-endpoint code,
.credential-box code,
.detail-grid dd {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.api-sample {
    background: #111827;
    border-radius: var(--radius);
    color: #e5e7eb;
    font-size: 12px;
    line-height: 1.65;
    margin: 0 16px 16px;
    overflow: auto;
    padding: 14px;
}

.api-sample code {
    color: inherit;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.api-credential-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 16px;
}

.api-credential-card {
    background: var(--bg-main);
    border: 1px solid var(--border-color-light);
    border-radius: var(--radius);
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 12px;
}

.api-credential-card > div:first-child strong,
.api-credential-card > div:first-child span {
    display: block;
}

.api-credential-card > div:first-child strong {
    color: var(--text);
}

.api-credential-card > div:first-child span {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 2px;
}

.credential-box.compact {
    background: var(--bg-surface);
    border: 1px solid var(--border-color-light);
    border-radius: var(--radius);
    margin: 0;
    padding: 10px;
}

.attachment-link,
.view-all-button {
    font-size: 12.5px;
}

.swal2-popup {
    border-radius: var(--radius-lg) !important;
    color: var(--text) !important;
    font-family: var(--font) !important;
}

.swal2-title {
    color: var(--text) !important;
    font-size: 18px !important;
    font-weight: var(--font-weight-bold) !important;
}

.swal2-html-container {
    color: var(--text-secondary) !important;
    font-size: 13px !important;
}

.swal2-styled.swal2-confirm {
    background: var(--primary) !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: none !important;
}

.swal2-styled.swal2-confirm.mp-swal-danger {
    background: var(--red) !important;
}

.swal2-styled.swal2-cancel {
    border-radius: var(--radius-sm) !important;
    box-shadow: none !important;
}

.swal2-toast {
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 10px 30px rgba(15, 22, 35, .14) !important;
}

.badge {
    align-items: center;
    background: var(--red-lt);
    border-radius: 999px;
    color: var(--red);
    display: inline-flex;
    font-size: 11px;
    font-weight: var(--font-weight-bold);
    height: 20px;
    justify-content: center;
    min-width: 20px;
    padding: 0 6px;
}

code {
    background: var(--bg-surface-secondary);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 2px 5px;
}

@media (max-width: 1200px) {
    .overview-stats,
    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .transaction-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rate-default-grid {
        grid-template-columns: 1fr;
    }

    .kb-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .kb-side-panel {
        position: static;
    }
}

@media (max-width: 920px) {
    .overview-products {
        grid-template-columns: 1fr;
    }

    .col-md-10,
    .col-md-6,
    .col-md-5,
    .col-md-4,
    .col-md-3,
    .col-md-2,
    .col-xl-7,
    .col-xl-5,
    .col-xl-4,
    .col-xl-3 {
        grid-column: span 12;
    }

    .api-credential-grid {
        grid-template-columns: 1fr;
    }

    .kb-search-panel,
    .kb-collection-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .kb-search-panel {
        padding: 14px;
    }
}

@media (max-width: 640px) {
    .overview-stats,
    .metric-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-hero,
    .overview-heading,
    .recent-payments-header,
    .panel-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .social-grid {
        grid-template-columns: 1fr;
    }

    .transaction-summary-grid {
        grid-template-columns: 1fr;
    }

    .api-endpoint {
        align-items: flex-start;
        flex-direction: column;
    }

    .api-sample {
        font-size: 11px;
    }

    .kb-hero {
        align-items: stretch;
    }

    .kb-hero .hero-actions,
    .kb-hero .btn {
        width: 100%;
    }

    .kb-hero .btn {
        justify-content: center;
    }

    .kb-article-card {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }
}
