:root {
    --active-blue: #1265e8;
    --active-blue-deep: #164ca1;
    --carbon: #101311;
    --graphite: #343a40;
    --frost: #f4f7fa;
    --silver: #aab2bd;
    --buy: #14865f;
    --sell: #c43d4b;
}

body {
    background: linear-gradient(145deg, rgba(59,130,246,.15), transparent 38%), linear-gradient(25deg, rgba(52,58,64,.09), transparent 48%), repeating-linear-gradient(90deg, rgba(52,58,64,.018) 0 1px, transparent 1px 22px), #e9eef3;
}

.customer-app {
    color: var(--carbon) !important;
}

    .customer-app .customer-layout {
        gap: 24px;
    }

    .customer-app .customer-sidebar {
        overflow: hidden;
        border: 1px solid rgba(255,255,255,.24);
        background: linear-gradient(155deg, rgba(69,80,88,.58), transparent 42%), linear-gradient(14deg, rgba(59,130,246,.1), transparent 46%), rgba(16,19,17,.94);
        box-shadow: 0 24px 48px rgba(16,19,17,.23), inset 0 1px 0 rgba(255,255,255,.25), inset 0 0 0 1px rgba(255,255,255,.06);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

        .customer-app .customer-sidebar::before {
            content: "";
            position: absolute;
            inset: 0;
            pointer-events: none;
            background: linear-gradient(110deg, rgba(255,255,255,.08), transparent 35%);
        }

        .customer-app .customer-sidebar .customer-brand {
            color: white;
            font-weight: 800;
            text-shadow: 0 1px 12px rgba(255,255,255,.12);
        }

    .customer-app .customer-nav a {
        color: #d9e1e9;
        border-color: transparent;
        font-weight: 550;
    }

        .customer-app .customer-nav a:hover,
        .customer-app .customer-nav a.active {
            color: #fff;
            background: linear-gradient(100deg, rgba(59,130,246,.56), rgba(59,130,246,.22));
            border-color: rgba(160,200,255,.32);
            box-shadow: inset 3px 0 0 #80b3ff, 0 7px 16px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.22);
            backdrop-filter: none;
        }

    .customer-app .customer-sidebar .customer-signout {
        color: #eef5ff;
        border-color: rgba(255,255,255,.19);
        background: rgba(255,255,255,.09);
    }

        .customer-app .customer-sidebar .customer-signout:hover {
            color: white;
            background: rgba(59,130,246,.34);
        }

    .customer-app .customer-main {
        padding-top: 0;
    }

    .customer-app .customer-topbar {
        min-height: 98px;
        margin-bottom: 22px;
        padding: 17px 22px;
        align-items: center;
        border: 1px solid rgba(255,255,255,.92);
        border-radius: 8px;
        background: linear-gradient(125deg, rgba(255,255,255,.91), rgba(237,245,253,.57));
        box-shadow: 0 12px 28px rgba(16,19,17,.08), inset 0 1px 0 white, 0 0 0 1px rgba(52,58,64,.06);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

        .customer-app .customer-topbar h1 {
            font-size: 21px;
        }

    .customer-app .customer-eyebrow {
        color: #637081;
        font-weight: 650;
    }

    .customer-app .topbar-actions {
        display: flex;
        align-items: center;
        gap: 18px;
    }

    .customer-app .notice-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 11px;
        border: 1px solid rgba(59,130,246,.19);
        border-radius: 6px;
        background: rgba(59,130,246,.07);
        color: var(--active-blue-deep);
        font-size: 13px;
        text-decoration: none;
        transition: background-color 0.15s ease;
    }

        .customer-app .notice-link span {
            display: grid;
            place-items: center;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            color: white;
            background: var(--active-blue);
            font-size: 11px;
        }

        .customer-app .notice-link:hover,
        .customer-app .notice-link:focus-visible {
            background: rgba(59,130,246,.18);
            box-shadow: 0 0 0 3px rgba(59,130,246,.12), inset 0 1px 0 white;
        }

    .customer-app .mobile-bottom-nav,
    .customer-app .mobile-records {
        display: none;
    }

    .customer-app .customer-alert {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 12px 17px;
        border-color: rgba(59,130,246,.28);
        border-right: 4px solid var(--active-blue);
        background: linear-gradient(120deg, rgba(255,255,255,.86), rgba(222,236,255,.58));
        box-shadow: 0 10px 24px rgba(26,70,136,.09), inset 0 1px 0 white;
        backdrop-filter: none;
    }

        .customer-app .customer-alert a {
            color: #1355b3;
            white-space: nowrap;
            font-size: 13px;
            font-weight: 700;
            text-decoration: none;
        }

            .customer-app .customer-alert a:hover {
                text-decoration: underline;
            }

    .customer-app .customer-summary.overview-summary,
    .customer-app .customer-summary.wallet-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .customer-app .customer-metric {
        position: relative;
        min-height: 138px;
        border-radius: 8px;
        padding: 20px 22px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        transition: background-color 0.15s ease, transform 0.15s ease;
    }

        .customer-app .customer-metric:hover {
            transform: translateY(-2px);
        }

        .customer-app .customer-metric strong {
            font-size: 23px;
            font-variant-numeric: tabular-nums;
        }

        .customer-app .customer-metric small {
            font-size: 12px;
            opacity: .72;
        }

    .customer-app .metric-rials {
        color: white;
        border-color: rgba(255,255,255,.24);
        background: linear-gradient(130deg, rgba(67,76,83,.86), rgba(16,19,17,.96) 74%);
        box-shadow: 0 18px 32px rgba(16,19,17,.19), inset 0 1px 0 rgba(255,255,255,.22);
    }

        .customer-app .metric-rials span {
            color: #d3dce4;
        }

        .customer-app .metric-rials:hover {
            background: linear-gradient(130deg, rgba(58,83,110,.93), rgba(16,19,17,.96) 75%);
        }

    .customer-app .metric-gold {
        border-color: rgba(255,255,255,.96);
        background: linear-gradient(130deg, rgba(255,255,255,.94), rgba(218,231,246,.62));
        box-shadow: 0 17px 31px rgba(33,61,94,.13), inset 0 1px 0 white, 0 0 0 1px rgba(59,130,246,.16);
    }

        .customer-app .metric-gold strong {
            color: #124c9e;
        }

        .customer-app .metric-gold:hover {
            background: linear-gradient(130deg, white, rgba(207,226,250,.8));
        }

    .customer-app .quote-strip {
        display: grid;
        grid-template-columns: minmax(200px, .9fr) minmax(0, 1.1fr);
        gap: 20px;
        align-items: center;
        padding: 17px 21px;
        border: 1px solid rgba(255,255,255,.9);
        border-radius: 8px;
        background: linear-gradient(135deg, rgba(255,255,255,.78), rgba(221,234,247,.48));
        box-shadow: 0 14px 30px rgba(16,19,17,.09), inset 0 1px 0 white, 0 0 0 1px rgba(52,58,64,.06);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .customer-app .quote-heading {
        display: flex;
        align-items: start;
        gap: 12px;
        justify-content: space-between;
    }

        .customer-app .quote-heading div {
            display: grid;
            gap: 5px;
        }

        .customer-app .quote-heading span:first-child {
            font-weight: 750;
        }

        .customer-app .quote-heading small {
            color: #647180;
            font-size: 12px;
        }

    .customer-app .quote-offline, .customer-app .trade-market-state {
        white-space: nowrap;
        color: #6c5660;
        background: rgba(196,61,75,.09);
        padding: 4px 7px;
        border: 1px solid rgba(196,61,75,.18);
        border-radius: 4px;
        font-size: 11px;
    }

    .customer-app .quote-values,
    .customer-app .trade-quote-pair {
        display: grid;
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 10px;
    }

        .customer-app .quote-values > div,
        .customer-app .trade-quote-pair > div {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
            border: 1px solid;
            border-radius: 6px;
            padding: 10px 13px;
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
        }

        .customer-app .quote-values strong,
        .customer-app .trade-quote-pair strong {
            font-size: 22px;
            line-height: 1;
        }

    .customer-app .quote-buy {
        color: #0d6847;
        border-color: rgba(20,134,95,.24) !important;
        background: rgba(20,134,95,.1);
    }

    .customer-app .quote-sell {
        color: #a32c3b;
        border-color: rgba(196,61,75,.24) !important;
        background: rgba(196,61,75,.1);
    }

    .customer-app .quote-buy:hover {
        background: rgba(20,134,95,.17);
    }

    .customer-app .quote-sell:hover {
        background: rgba(196,61,75,.17);
    }

    .customer-app .customer-actions {
        gap: 12px;
    }

        .customer-app .customer-actions > button {
            min-width: 148px;
            min-height: 47px;
        }

        .customer-app .customer-actions .customer-primary {
            background: var(--buy);
            border-color: rgba(9,94,63,.35);
        }

            .customer-app .customer-actions .customer-primary:not(:disabled):hover {
                background: #0a6949;
                box-shadow: 0 8px 19px rgba(20,134,95,.23);
            }

        .customer-app .customer-actions .customer-secondary {
            color: #9b2230;
            border-color: rgba(196,61,75,.3);
            background: rgba(255,255,255,.72);
        }

            .customer-app .customer-actions .customer-secondary:hover {
                color: white;
                background: var(--sell);
                box-shadow: 0 8px 19px rgba(196,61,75,.2);
            }

    .customer-app .customer-section {
        border-top-color: rgba(52,58,64,.2);
    }

        .customer-app .customer-section h2 {
            color: #1b2834;
        }

    .customer-app .customer-section-head a {
        font-weight: 700;
    }

    .customer-app .customer-table-wrap {
        border-color: rgba(255,255,255,.92);
        background: rgba(255,255,255,.64);
        box-shadow: 0 13px 27px rgba(16,19,17,.07), inset 0 1px 0 white, 0 0 0 1px rgba(52,58,64,.08);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .customer-app .customer-table th {
        color: #e8f1ff;
        background: rgba(24,39,57,.9);
    }

    .customer-app .customer-table tbody tr:hover {
        background: rgba(59,130,246,.13);
    }

    .customer-app .customer-events li {
        margin-bottom: 7px;
        padding: 12px 14px;
        border: 1px solid rgba(255,255,255,.85);
        border-radius: 6px;
        background: rgba(255,255,255,.56);
        box-shadow: inset 0 1px 0 white, 0 5px 12px rgba(16,19,17,.04);
        backdrop-filter: none;
    }

        .customer-app .customer-events li:hover {
            background: rgba(255,255,255,.87);
            border-color: rgba(59,130,246,.28);
        }

    .customer-app :is(input,select):hover,
    .customer-app :is(input,select):focus-visible {
        background: white;
        border-color: var(--active-blue);
        box-shadow: 0 0 0 3px rgba(59,130,246,.15), 0 7px 20px rgba(59,130,246,.1);
    }

    .customer-app .customer-pager button:not(:disabled):hover,
    .customer-app .customer-pager button:focus-visible {
        background: rgba(224,238,255,.9);
        border-color: var(--active-blue);
        box-shadow: 0 0 0 3px rgba(59,130,246,.17), inset 0 1px 0 white;
    }

    .customer-app .customer-pager button {
        color: var(--carbon) !important;
        font-weight: 650;
    }

    .customer-app .customer-trade {
        max-width: 850px;
    }

        .customer-app .customer-trade .customer-section {
            border: 1px solid rgba(255,255,255,.92);
            border-radius: 8px;
            padding: 23px;
            background: linear-gradient(135deg, rgba(255,255,255,.8), rgba(225,237,249,.52));
            box-shadow: 0 18px 38px rgba(16,19,17,.09), inset 0 1px 0 white, 0 0 0 1px rgba(52,58,64,.07);
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
        }

    .customer-app .trade-heading {
        display: flex;
        align-items: start;
        justify-content: space-between;
        gap: 14px;
        margin-bottom: 20px;
    }

        .customer-app .trade-heading h2 {
            margin: 2px 0 0;
            font-size: 19px;
        }

    .customer-app .trade-product {
        color: #5f6d7c;
        font-size: 12px;
    }

    .customer-app .customer-mode {
        display: flex;
        width: max-content;
        margin-bottom: 18px;
        background: rgba(255,255,255,.59);
        backdrop-filter: none;
    }

        .customer-app .customer-mode button {
            min-width: 120px;
        }

            .customer-app .customer-mode button:first-child.selected {
                background: var(--buy);
            }

            .customer-app .customer-mode button:last-child.selected {
                background: var(--sell);
            }

    .customer-app .trade-quote-pair {
        margin: 0 0 22px;
    }

        .customer-app .trade-quote-pair > div {
            min-height: 66px;
        }

    .customer-app .customer-quote-state {
        border-color: rgba(59,130,246,.23);
        background: rgba(226,238,253,.67);
        backdrop-filter: none;
    }

    .customer-app .customer-trade .customer-primary:disabled {
        opacity: 1;
        color: #e1e5e9;
        background: #68727e;
        border-color: rgba(16,19,17,.18);
    }

    .customer-app .customer-login-wrap {
        background: linear-gradient(145deg, rgba(16,19,17,.88), rgba(52,58,64,.72)), #101311;
    }

    .customer-app .customer-login {
        border-color: rgba(255,255,255,.65);
        background: linear-gradient(140deg, rgba(255,255,255,.92), rgba(218,233,248,.73));
        box-shadow: 0 24px 72px rgba(0,0,0,.3), inset 0 1px 0 white;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

        .customer-app .customer-login .customer-primary {
            background: var(--active-blue);
        }

            .customer-app .customer-login .customer-primary:hover {
                background: var(--active-blue-deep);
            }

    .customer-app .profile-actions {
        display: none;
        margin-top: 20px;
    }

@media (max-width: 920px) {
    .customer-app .customer-layout {
        display: block;
        max-width: 740px;
        padding: 12px 12px 104px;
    }

    .customer-app .customer-sidebar {
        display: none;
    }

    .customer-app .customer-main {
        padding: 0 0 24px;
    }

    .customer-app .customer-topbar {
        min-height: 80px;
        padding: 13px 16px;
    }

        .customer-app .customer-topbar h1 {
            font-size: 19px;
        }

    .customer-app .mobile-bottom-nav {
        position: fixed;
        z-index: 100;
        display: grid;
        grid-template-columns: repeat(5, minmax(0,1fr));
        gap: 2px;
        bottom: max(9px, env(safe-area-inset-bottom));
        left: 50%;
        width: min(710px, calc(100% - 20px));
        padding: 7px;
        border: 1px solid rgba(255,255,255,.3);
        border-radius: 8px;
        background: linear-gradient(125deg, rgba(52,58,64,.91), rgba(16,19,17,.95));
        box-shadow: 0 18px 37px rgba(16,19,17,.3), inset 0 1px 0 rgba(255,255,255,.25);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        transform: translateX(-50%);
    }

        .customer-app .mobile-bottom-nav a {
            display: grid;
            justify-items: center;
            align-content: center;
            min-height: 56px;
            padding: 5px 2px;
            border-radius: 5px;
            color: #d1d8e0;
            font-size: 11px;
            font-weight: 650;
            text-align: center;
            text-decoration: none;
            line-height: 1.3;
        }

            .customer-app .mobile-bottom-nav a:hover,
            .customer-app .mobile-bottom-nav a.active {
                color: white;
                background: rgba(59,130,246,.66);
                box-shadow: inset 0 1px 0 rgba(255,255,255,.26), 0 3px 11px rgba(0,0,0,.15);
            }

        .customer-app .mobile-bottom-nav .nav-mark {
            width: 14px;
            height: 3px;
            margin-bottom: 7px;
            border-radius: 3px;
            background: rgba(214,224,237,.56);
        }

        .customer-app .mobile-bottom-nav a.active .nav-mark {
            background: white;
        }

    .customer-app .profile-actions {
        display: block;
    }

        .customer-app .profile-actions button {
            width: 100%;
        }
}

@media (max-width: 620px) {
    .customer-app .customer-layout {
        padding: 9px 9px 100px;
    }

    .customer-app .customer-topbar {
        margin-bottom: 15px;
        gap: 7px;
    }

        .customer-app .customer-topbar h1 {
            font-size: 18px;
        }

    .customer-app .customer-eyebrow {
        font-size: 11px;
    }

    .customer-app .topbar-actions {
        gap: 7px;
    }

    .customer-app .notice-link {
        font-size: 0;
        gap: 0;
        padding: 6px;
        min-width: 34px;
        min-height: 34px;
        justify-content: center;
    }

        .customer-app .notice-link span {
            font-size: 11px;
        }

    .customer-app .customer-user-wrap {
        min-width: 0;
        max-width: 96px;
    }

    .customer-app .customer-user {
        font-size: 12px;
    }

    .customer-app .customer-user-wrap small {
        display: none;
    }

    .customer-app .demo-badge {
        font-size: 10px;
        padding: 2px 6px;
    }

    .customer-app .customer-content {
        gap: 16px;
    }

    .customer-app .customer-alert {
        padding: 10px 12px;
        font-size: 12px;
    }

        .customer-app .customer-alert a {
            font-size: 11px;
        }

    .customer-app .customer-summary.overview-summary,
    .customer-app .customer-summary.wallet-summary {
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 8px;
    }

    .customer-app .customer-metric {
        min-height: 106px;
        padding: 14px 12px;
        gap: 5px;
    }

        .customer-app .customer-metric span {
            font-size: 11px;
        }

        .customer-app .customer-metric strong {
            font-size: 16px;
            line-height: 1.3;
        }

        .customer-app .customer-metric small {
            font-size: 10px;
        }

    .customer-app .quote-strip {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 13px;
    }

    .customer-app .quote-values > div {
        padding: 8px 10px;
        font-size: 12px;
    }

    .customer-app .customer-actions {
        display: grid;
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 8px;
    }

        .customer-app .customer-actions > button {
            width: 100%;
            min-width: 0;
            font-size: 13px;
        }

    .customer-app .customer-table-wrap {
        display: none;
    }

    .customer-app .mobile-records {
        display: grid;
        gap: 8px;
    }

    .customer-app .mobile-record {
        min-width: 0;
        overflow: hidden;
        border: 1px solid rgba(255,255,255,.92);
        border-radius: 7px;
        background: linear-gradient(130deg, rgba(255,255,255,.85), rgba(220,232,246,.57));
        box-shadow: 0 11px 22px rgba(16,19,17,.08), inset 0 1px 0 white, 0 0 0 1px rgba(52,58,64,.06);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

        .customer-app .mobile-record:hover,
        .customer-app .mobile-record[open] {
            border-color: rgba(59,130,246,.36);
            background: rgba(241,248,255,.96);
            box-shadow: 0 14px 25px rgba(29,75,129,.13), inset 0 1px 0 white;
        }

        .customer-app .mobile-record summary {
            display: grid;
            grid-template-columns: minmax(0,1fr) auto;
            align-items: center;
            gap: 10px;
            list-style: none;
            cursor: pointer;
            padding: 12px;
        }

            .customer-app .mobile-record summary::-webkit-details-marker {
                display: none;
            }

            .customer-app .mobile-record summary:focus-visible {
                outline: 3px solid var(--active-blue);
                outline-offset: -3px;
            }

    .customer-app .record-main,
    .customer-app .record-end {
        display: grid;
        min-width: 0;
        gap: 4px;
    }

        .customer-app .record-main strong {
            font-size: 13px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .customer-app .record-main small,
        .customer-app .record-end small {
            color: #68717b;
            font-size: 11px;
        }

    .customer-app .record-end {
        justify-items: end;
    }

        .customer-app .record-end strong {
            font-size: 13px;
            white-space: nowrap;
        }

        .customer-app .record-end .customer-status {
            font-size: 10px;
            padding: 2px 6px;
        }

    .customer-app .record-buy {
        color: #0d6847;
    }

    .customer-app .record-sell {
        color: #a32c3b;
    }

    .customer-app .record-details {
        display: grid;
        margin: 0;
        padding: 3px 12px 12px;
    }

        .customer-app .record-details div {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            gap: 10px;
            padding: 8px 0;
            border-top: 1px solid rgba(52,58,64,.1);
        }

        .customer-app .record-details dt {
            color: #68717b;
            font-size: 11px;
        }

        .customer-app .record-details dd {
            margin: 0;
            color: #1c2b39;
            font-size: 12px;
            text-align: left;
            overflow-wrap: anywhere;
        }

        .customer-app .record-details .record-id {
            max-width: 65%;
            direction: ltr;
            text-align: left;
            font-size: 10px;
        }

    .customer-app .ledger-record .record-main strong {
        max-width: 195px;
    }

    .customer-app .customer-trade .customer-section {
        padding: 16px 13px;
    }

    .customer-app .customer-mode {
        width: 100%;
    }

        .customer-app .customer-mode button {
            flex: 1;
            min-width: 0;
        }

    .customer-app .trade-quote-pair {
        gap: 8px;
    }

        .customer-app .trade-quote-pair > div {
            min-height: 54px;
            padding: 8px;
        }

    .customer-app .customer-pager {
        font-size: 11px;
    }

    .customer-app .customer-events li {
        gap: 6px;
        padding: 10px;
    }

    .customer-app .customer-events time {
        width: 100%;
        margin: 0;
    }

    .customer-app .mobile-bottom-nav a {
        font-size: 10px;
    }
}

@supports selector(body:has(input:focus)) {
    @media (max-width: 920px) {
        body:has(.customer-app input:focus) .mobile-bottom-nav {
            opacity: 0;
            pointer-events: none;
        }
    }
}

@media (max-width: 360px) {
    .customer-app .customer-topbar .customer-user-wrap {
        display: none;
    }

    .customer-app .customer-metric strong {
        font-size: 14px;
    }

    .customer-app .quote-heading small {
        max-width: 205px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .customer-app *, .customer-app *::before, .customer-app *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
