:root {
    --bg: #071114;
    --bg-soft: #0b1c22;
    --surface: rgba(17, 33, 39, 0.84);
    --surface-strong: #10252b;
    --line: rgba(183, 245, 255, 0.14);
    --text: #eefcff;
    --muted: #91aeb6;
    /* Driven by global branding (config/brand.php), with safe fallbacks. */
    --cyan: var(--brand-primary, #21d8e6);
    --teal: var(--brand-accent, #16b7a7);
    --mint: var(--brand-secondary, #58f0bb);
    --amber: #f7c76b;
    --rose: #ff7a90;
    --green: #30e783;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

/* The [hidden] attribute must always win over component display rules
   (e.g. .inv-success { display: grid }), otherwise JS-toggled blocks like the
   invoice success/expired states leak through while still hidden. */
[hidden] {
    display: none !important;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        linear-gradient(135deg, rgba(33, 216, 230, 0.14) 0%, rgba(7, 17, 20, 0) 34%),
        linear-gradient(315deg, rgba(247, 199, 107, 0.08) 0%, rgba(7, 17, 20, 0) 28%),
        radial-gradient(circle at center, rgba(18, 47, 55, 0.54), rgba(7, 17, 20, 1) 62%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.1));
}

a {
    color: inherit;
    text-decoration: none;
}

.app-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 24px 18px;
    border-right: 1px solid var(--line);
    background: rgba(5, 15, 18, 0.82);
    backdrop-filter: blur(20px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    margin-bottom: 28px;
    font-size: 20px;
    font-weight: 800;
}

.brand img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(33, 216, 230, 0.28);
}

.nav-stack {
    display: grid;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 0 13px;
    color: var(--muted);
    border: 1px solid transparent;
    border-radius: var(--radius);
    transition: color .2s ease, background .2s ease, border .2s ease, transform .2s ease;
}

.nav-item i {
    width: 20px;
    font-size: 18px;
}

.nav-item:hover,
.nav-item.active {
    color: var(--text);
    background: rgba(33, 216, 230, 0.08);
    border-color: rgba(33, 216, 230, 0.18);
    transform: translateX(2px);
}

.sidebar-footer {
    display: grid;
    gap: 12px;
    margin-top: auto;
}

.language-switch,
.network-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 0 12px;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
}

.pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(48, 231, 131, 0.56);
    animation: pulse 1.8s infinite;
}

.network-pill {
    justify-content: flex-start;
    gap: 9px;
    font-size: 13px;
}

.main-panel {
    min-width: 0;
    padding: 24px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.topbar-caption {
    margin: 0 0 2px;
    color: var(--muted);
    font-size: 13px;
}

.topbar h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 820;
    line-height: 1.02;
}

.topbar-actions,
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border-radius: var(--radius);
    font-weight: 760;
    letter-spacing: 0;
}

.btn-flow {
    color: #041315;
    border: 0;
    background: linear-gradient(135deg, var(--mint), var(--cyan));
    box-shadow: 0 14px 34px rgba(33, 216, 230, 0.28);
}

.btn-flow:hover {
    color: #041315;
    transform: translateY(-1px);
}

.btn-flow-secondary {
    color: var(--text);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
}

.btn-flow-secondary:hover {
    color: var(--text);
    border-color: rgba(33, 216, 230, 0.34);
    background: rgba(33, 216, 230, 0.08);
}

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

.metric-card,
.panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 120px;
    padding: 18px;
}

.metric-card p,
.metric-card small {
    margin: 0;
    color: var(--muted);
}

.metric-card strong {
    display: block;
    margin: 3px 0;
    font-size: 28px;
    line-height: 1;
}

.metric-icon {
    display: grid;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    place-items: center;
    color: #051317;
    border-radius: var(--radius);
    font-size: 21px;
}

.accent-cyan { background: linear-gradient(135deg, var(--cyan), #7df9ff); }
.accent-mint { background: linear-gradient(135deg, var(--mint), #bcffe4); }
.accent-amber { background: linear-gradient(135deg, var(--amber), #ffe6a2); }
.accent-rose { background: linear-gradient(135deg, var(--rose), #ffc0cd); }

.dashboard-grid,
.content-grid,
.team-layout,
.subscription-layout,
.checkout-code-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, .8fr);
    gap: 18px;
    margin-bottom: 18px;
}

.panel {
    padding: 20px;
}

.panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.panel-heading h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
}

.panel-heading span,
.panel-heading a,
.muted-copy {
    color: var(--muted);
    font-size: 14px;
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: center;
    min-height: 360px;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(33,216,230,0.16), rgba(88,240,187,0.06) 38%, rgba(247,199,107,0.08)),
        var(--surface);
}

.hero-copy h2 {
    max-width: 720px;
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 66px);
    font-weight: 870;
    line-height: .98;
}

.hero-copy p {
    max-width: 620px;
    color: #b7cfd5;
    font-size: 17px;
    line-height: 1.6;
}

.phone-preview {
    width: 220px;
    height: 330px;
    justify-self: end;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 26px;
    background: #03080a;
    box-shadow: -24px 24px 70px rgba(0,0,0,0.38);
    transform: rotate(4deg);
}

.phone-top {
    width: 70px;
    height: 5px;
    margin: 7px auto 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.22);
}

.phone-screen {
    display: grid;
    gap: 10px;
    align-content: start;
    height: 286px;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(160deg, #10252b, #061015);
}

.mini-label,
.success-chip,
.type-pill,
.status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 760;
}

.mini-label {
    color: var(--cyan);
    background: rgba(33,216,230,0.12);
}

.phone-screen strong {
    font-size: 26px;
}

.phone-screen p {
    margin: 0;
    color: var(--mint);
    font-weight: 800;
}

.qr-mini {
    width: 96px;
    height: 96px;
    border-radius: 6px;
    background:
        linear-gradient(90deg, #fff 7px, transparent 7px) 0 0/16px 16px,
        linear-gradient(#fff 7px, transparent 7px) 0 0/16px 16px,
        #071114;
}

.success-chip {
    color: #041315;
    background: var(--green);
}

.split-list,
.link-stack,
.approval-steps,
.commission-bars {
    display: grid;
    gap: 12px;
}

.split-row,
.link-row,
.commission-bar {
    display: grid;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.035);
}

.split-row {
    grid-template-columns: 12px minmax(0, 1fr) auto;
}

.split-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.link-row {
    grid-template-columns: minmax(0, 1fr) auto;
    color: var(--text);
}

.link-row:hover {
    border-color: rgba(33, 216, 230, 0.32);
}

.link-row strong,
.link-row span {
    display: block;
}

.link-row span,
.flow-table span {
    color: var(--muted);
    font-size: 13px;
}

.flow-table {
    margin: 0;
    color: var(--text);
    --bs-table-bg: transparent;
    --bs-table-color: var(--text);
    --bs-table-border-color: var(--line);
    --bs-table-striped-bg: transparent;
    --bs-table-hover-bg: rgba(33, 216, 230, 0.06);
}

.flow-table thead th {
    color: var(--muted);
    border-color: var(--line);
    font-size: 12px;
    text-transform: uppercase;
}

.flow-table tbody td {
    vertical-align: middle;
    color: var(--text);
    border-color: var(--line);
}

.status {
    color: var(--muted);
    background: rgba(255,255,255,0.06);
}

.status.paid,
.status.settled {
    color: #061416;
    background: var(--green);
}

.tx-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--accent, #21d8e6);
    text-decoration: none;
    white-space: nowrap;
}

.tx-link:hover {
    text-decoration: underline;
}

.status.pending {
    color: #3b2600;
    background: var(--amber);
}

.status.expired {
    color: #21040a;
    background: var(--rose);
}

.pos-layout,
.public-checkout {
    display: grid;
    grid-template-columns: minmax(320px, 520px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.public-checkout {
    grid-template-columns: minmax(280px, 360px) minmax(320px, 480px) minmax(0, 1fr);
}

.flow-form {
    display: grid;
    gap: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.form-control,
.form-select,
.amount-input {
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background-color: rgba(255,255,255,0.06);
}

.form-control:focus,
.form-select:focus,
.amount-input:focus-within {
    color: var(--text);
    border-color: rgba(33,216,230,0.72);
    background-color: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 0.2rem rgba(33,216,230,0.12);
}

.form-select option {
    color: #071114;
}

.amount-input {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    min-height: 74px;
    padding: 0 18px;
}

.amount-input span {
    color: var(--cyan);
    font-size: 28px;
    font-weight: 850;
}

.amount-input input {
    width: 100%;
    color: var(--text);
    border: 0;
    outline: 0;
    background: transparent;
    font-size: clamp(34px, 6vw, 54px);
    font-weight: 850;
    line-height: 1;
}

.quote-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 78px;
    padding: 14px;
    border: 1px solid rgba(33,216,230,0.22);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(33,216,230,0.12), rgba(88,240,187,0.05));
}

.fiat-flag {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    margin-right: 9px;
    color: #041315;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--mint));
    font-size: 12px;
    font-weight: 900;
}

.quote-box small {
    color: var(--muted);
}

.quote-box strong {
    font-size: clamp(20px, 4vw, 30px);
}

.checkout-panel {
    min-height: 430px;
}

.payment-empty,
.empty-state {
    display: grid;
    min-height: 350px;
    place-items: center;
    align-content: center;
    gap: 12px;
    text-align: center;
}

.empty-mark {
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    color: #041315;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--mint), var(--cyan));
    font-size: 32px;
}

.payment-card {
    display: grid;
    gap: 14px;
}

.qr-shell {
    display: grid;
    min-height: 248px;
    place-items: center;
    padding: 18px;
    border-radius: var(--radius);
    background: #eefcff;
}

.qr-shell canvas,
.qr-shell img {
    width: 210px !important;
    height: 210px !important;
}

.qr-fallback {
    display: grid;
    width: 210px;
    height: 210px;
    place-items: center;
    padding: 18px;
    color: #071114;
    border: 10px solid #071114;
    background:
        linear-gradient(90deg, #071114 8px, transparent 8px) 0 0/22px 22px,
        linear-gradient(#071114 8px, transparent 8px) 0 0/22px 22px,
        #eefcff;
    font-weight: 850;
    text-align: center;
}

.split-preview {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.split-preview div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
}

.success-state {
    display: grid;
    min-height: 430px;
    place-items: center;
    align-content: center;
    gap: 14px;
    text-align: center;
}

.success-check {
    display: grid;
    width: 108px;
    height: 108px;
    place-items: center;
    color: #031211;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 16px rgba(48, 231, 131, 0.10);
    font-size: 58px;
    animation: pop .42s ease both;
}

.icon-btn {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.05);
}

.icon-btn:hover {
    color: #061416;
    background: var(--cyan);
}

.flow-modal {
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #0b1c22;
}

.flow-modal .modal-header,
.flow-modal .modal-footer {
    border-color: var(--line);
}

.referral-panel {
    min-height: 430px;
}

.referral-tree {
    display: grid;
    justify-items: center;
    gap: 14px;
}

.tree-level {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

.tree-node {
    width: 100%;
    min-height: 86px;
    padding: 14px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.04);
}

.tree-node strong,
.tree-node span {
    display: block;
}

.tree-node span {
    color: var(--muted);
}

.root-node {
    max-width: 240px;
    border-color: rgba(33,216,230,0.42);
}

.tree-branch {
    width: 2px;
    height: 46px;
    background: linear-gradient(var(--cyan), rgba(255,255,255,0.1));
}

.commission-bar {
    grid-template-columns: minmax(0, 1fr) 44% auto;
}

.commission-bar div {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
}

.commission-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--cyan), var(--mint));
}

.public-merchant {
    text-align: left;
}

.public-merchant img {
    width: 70px;
    height: 70px;
    margin-bottom: 18px;
    border-radius: var(--radius);
}

.public-merchant h2 {
    margin: 0 0 10px;
    font-size: 30px;
    font-weight: 850;
}

.public-merchant p {
    color: var(--muted);
    line-height: 1.6;
}

.checkout-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.checkout-meta span,
.type-pill {
    color: var(--cyan);
    background: rgba(33,216,230,0.10);
}

.code-box {
    padding: 16px;
    color: var(--mint);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(0,0,0,0.2);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.approval-steps div {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.04);
}

.approval-steps i {
    color: var(--cyan);
    font-size: 22px;
}

@keyframes pulse {
    70% { box-shadow: 0 0 0 12px rgba(48, 231, 131, 0); }
    100% { box-shadow: 0 0 0 0 rgba(48, 231, 131, 0); }
}

@keyframes pop {
    from { opacity: 0; transform: scale(.74); }
    to { opacity: 1; transform: scale(1); }
}

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

    .dashboard-grid,
    .content-grid,
    .team-layout,
    .subscription-layout,
    .checkout-code-layout,
    .pos-layout,
    .public-checkout {
        grid-template-columns: 1fr;
    }

    .public-checkout {
        align-items: stretch;
    }
}

@media (max-width: 860px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
        padding: 14px;
    }

    .brand {
        margin-bottom: 12px;
    }

    .nav-stack {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        overflow-x: auto;
    }

    .nav-item {
        justify-content: center;
        min-width: 58px;
        padding: 0 10px;
    }

    .nav-item span {
        display: none;
    }

    .sidebar-footer {
        grid-template-columns: 1fr 1fr;
        margin-top: 12px;
    }

    .main-panel {
        padding: 16px;
    }

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

    .topbar-actions {
        width: 100%;
    }

    .topbar-actions .btn {
        flex: 1 1 180px;
    }

    .hero-panel {
        grid-template-columns: 1fr;
    }

    .phone-preview {
        justify-self: start;
        transform: none;
    }

    .tree-level,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .commission-bar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .metric-grid {
        grid-template-columns: 1fr;
    }

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

    .quote-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar-actions {
        flex-direction: column;
    }

    .topbar-actions .btn {
        width: 100%;
        flex-basis: auto;
    }

    .panel-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .amount-input input {
        font-size: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===========================================================================
   User card + logout (sidebar)
   ======================================================================== */
.user-card {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.035);
}

.user-avatar {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: #041315;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mint), var(--cyan));
    font-weight: 850;
    font-size: 17px;
}

.user-meta { min-width: 0; }
.user-meta strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-meta span { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logout-form { margin: 0; }

/* ===========================================================================
   Auth pages (login / register)
   ======================================================================== */
.auth-body { min-height: 100vh; margin: 0; }

.auth-wrap {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 100vh;
}

.auth-aside {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 28px;
    justify-content: center;
    overflow: hidden;
    padding: 56px;
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(33, 216, 230, 0.22), transparent 46%),
        radial-gradient(120% 120% at 100% 100%, rgba(88, 240, 187, 0.16), transparent 44%),
        linear-gradient(160deg, #0a1d22, #050f12 70%);
    border-right: 1px solid var(--line);
}

.auth-aside-glow {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(33, 216, 230, 0.30), transparent 60%);
    filter: blur(20px);
    animation: floatGlow 9s ease-in-out infinite;
    pointer-events: none;
}

.auth-aside-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: radial-gradient(circle at 30% 40%, #000, transparent 75%);
    pointer-events: none;
}

.auth-brand {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 850;
}

.auth-brand img {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(33, 216, 230, 0.32);
}

.auth-aside-copy { position: relative; max-width: 460px; }
.auth-aside-copy h2 {
    margin: 0 0 14px;
    font-size: clamp(30px, 3.4vw, 46px);
    font-weight: 850;
    line-height: 1.05;
    background: linear-gradient(120deg, #ffffff, var(--mint));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.auth-aside-copy p { margin: 0; color: #b7cfd5; font-size: 16px; line-height: 1.6; }

.auth-phone {
    position: relative;
    width: 230px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 30px;
    background: #03080a;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    transform: rotate(-3deg);
    animation: floatPhone 6s ease-in-out infinite;
}

.auth-phone-notch { width: 64px; height: 5px; margin: 6px auto 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.22); }
.auth-phone-screen {
    display: grid;
    gap: 12px;
    padding: 20px;
    border-radius: 22px;
    background: linear-gradient(160deg, #10252b, #061015);
}
.auth-chip {
    justify-self: start;
    padding: 4px 12px;
    color: var(--cyan);
    border-radius: 999px;
    background: rgba(33, 216, 230, 0.12);
    font-size: 12px;
    font-weight: 750;
}
.auth-phone-amount { font-size: 34px; font-weight: 850; }
.auth-phone-amount small { color: var(--muted); font-size: 18px; }
.auth-phone-token { color: var(--mint); font-weight: 800; }
.auth-phone-qr {
    display: grid;
    place-items: center;
    height: 96px;
    border-radius: 14px;
    background: #eefcff;
    color: #071114;
    font-size: 60px;
}
.auth-phone-ok {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-self: start;
    padding: 6px 12px;
    color: #041315;
    border-radius: 999px;
    background: var(--green);
    font-weight: 800;
    font-size: 13px;
}

.auth-networks { position: relative; display: flex; flex-wrap: wrap; gap: 10px; }
.auth-networks span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 13px;
    font-weight: 600;
}
.auth-networks i { color: var(--cyan); font-size: 10px; }

.auth-main { display: grid; place-items: center; padding: 40px 24px; }

.auth-card { width: 100%; max-width: 410px; animation: riseIn .5s ease both; }
.auth-card-head { margin-bottom: 26px; }
.auth-card-head h1 { margin: 0 0 8px; font-size: 30px; font-weight: 850; }
.auth-card-head p { margin: 0; color: var(--muted); }

.auth-form { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field > label { color: var(--muted); font-size: 13px; font-weight: 700; }
.field > label .muted { color: var(--muted); font-weight: 500; }

.field-control {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 52px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
    transition: border .18s ease, box-shadow .18s ease, background .18s ease;
}
.field-control > i { justify-self: center; color: var(--muted); font-size: 17px; }
.field-control input {
    width: 100%;
    height: 50px;
    color: var(--text);
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 15px;
}
.field-control input::placeholder { color: rgba(145, 174, 182, 0.55); }
.field-control:focus-within {
    border-color: rgba(33, 216, 230, 0.7);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 4px rgba(33, 216, 230, 0.12);
}
.field-control.has-error { border-color: rgba(255, 122, 144, 0.7); }
.field-error { color: var(--rose); font-size: 12.5px; }
.field-error.d-block { display: block; }

.toggle-pass {
    display: grid;
    place-items: center;
    width: 42px;
    height: 50px;
    color: var(--muted);
    border: 0;
    background: transparent;
    cursor: pointer;
}
.toggle-pass:hover { color: var(--cyan); }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row { display: flex; align-items: center; justify-content: space-between; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; cursor: pointer; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--cyan); }

.btn-block { width: 100%; min-height: 50px; font-size: 15px; }

.auth-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px 14px;
    color: #ffd7de;
    border: 1px solid rgba(255, 122, 144, 0.4);
    border-radius: var(--radius);
    background: rgba(255, 122, 144, 0.10);
    font-size: 14px;
}

.auth-switch { margin: 22px 0 0; color: var(--muted); text-align: center; font-size: 14px; }
.auth-switch a { color: var(--cyan); font-weight: 750; }
.auth-switch a:hover { text-decoration: underline; }
.auth-link { color: var(--cyan); font-size: 13px; font-weight: 650; }
.auth-link:hover { color: var(--cyan); text-decoration: underline; }

@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floatGlow { 50% { transform: translate(40px, 30px) scale(1.1); } }
@keyframes floatPhone { 50% { transform: rotate(-3deg) translateY(-14px); } }

@media (max-width: 900px) {
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
}

/* ===========================================================================
   Phase 2 — flash, wallets, products, links, methods
   ======================================================================== */
.flash-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 13px 16px;
    border-radius: var(--radius);
    font-weight: 650;
    animation: riseIn .4s ease both;
}
.flash-banner.ok { color: #062016; border: 1px solid rgba(48, 231, 131, 0.5); background: rgba(48, 231, 131, 0.14); }
.flash-banner.ok i { color: var(--green); }
.flash-banner.err { color: #ffd7de; border: 1px solid rgba(255, 122, 144, 0.45); background: rgba(255, 122, 144, 0.12); }
.flash-banner.err i { color: var(--rose); }

.wallet-warning {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding: 16px 18px;
    color: var(--text);
    border: 1px solid rgba(247, 199, 107, 0.4);
    border-radius: var(--radius);
    background: linear-gradient(120deg, rgba(247, 199, 107, 0.14), rgba(255, 255, 255, 0.02));
}
.wallet-warning .ww-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: #2b1d00;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--amber), #ffe6a2);
    font-size: 22px;
}
.wallet-warning strong { display: block; }
.wallet-warning span { color: var(--amber); font-size: 13px; font-weight: 700; }

/* Quick actions */
.quick-actions { display: grid; gap: 10px; }
.quick-action {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.035);
    transition: border .18s ease, transform .18s ease, background .18s ease;
}
.quick-action:hover { color: var(--text); border-color: rgba(33, 216, 230, 0.35); transform: translateX(3px); background: rgba(33, 216, 230, 0.06); }
.quick-action > i { color: var(--muted); }
.qa-icon { display: grid; width: 44px; height: 44px; place-items: center; color: #051317; border-radius: var(--radius); font-size: 19px; }
.quick-action strong { display: block; font-size: 15px; }
.quick-action span { color: var(--muted); font-size: 12.5px; }

/* Settings / wallets */
.settings-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr); gap: 18px; }
.wallet-form { display: grid; gap: 12px; }
.wallet-row {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) 140px;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
}
.wallet-row.has-error { border-color: rgba(255, 122, 144, 0.55); }
.wallet-net { display: flex; align-items: center; gap: 12px; }
.net-dot { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05); }
.wallet-net strong { display: block; font-size: 15px; }
.wallet-net span { color: var(--muted); font-size: 12px; }
.wallet-inputs .field-control input { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.wallet-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    justify-content: center;
    padding: 7px 10px;
    color: var(--muted);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 12.5px;
    font-weight: 700;
}
.wallet-status.ok { color: #062016; background: var(--green); }
.wallet-actions { display: flex; justify-content: flex-end; margin-top: 6px; }

.settings-aside { text-align: center; align-content: start; }
.settings-badge {
    display: grid;
    width: 66px;
    height: 66px;
    margin: 6px auto 14px;
    place-items: center;
    color: #041315;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--mint), var(--cyan));
    font-size: 30px;
}
.settings-aside h3 { margin: 0 0 8px; font-size: 20px; font-weight: 820; }
.settings-points { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; text-align: left; }
.settings-points li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.settings-points i { color: var(--mint); }

/* Products */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.product-card {
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.035);
    transition: border .18s ease, transform .18s ease;
}
.product-card:hover { border-color: rgba(33, 216, 230, 0.32); transform: translateY(-2px); }
.product-top { display: flex; align-items: center; justify-content: space-between; }
.product-thumb {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: #051317;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--cyan), #7df9ff);
    font-size: 20px;
}
.product-card h3 { margin: 0; font-size: 17px; font-weight: 780; }
.product-desc { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { font-size: 24px; font-weight: 850; }
.product-price small { color: var(--muted); font-size: 14px; font-weight: 700; }
.product-actions { display: flex; gap: 8px; margin-top: 4px; }
.product-actions form { margin: 0; }

/* Link rows */
.link-row-full {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.035);
    transition: border .18s ease;
}
.link-row-full:hover { border-color: rgba(33, 216, 230, 0.3); }
.lr-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lr-title { min-width: 0; }
.lr-title strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-title span { color: var(--muted); font-size: 13px; }
.lr-amount { display: flex; align-items: center; gap: 10px; }
.lr-amount strong { font-size: 15px; }
.lr-actions { display: flex; gap: 6px; }
.lr-actions form { margin: 0; }

.icon-btn.danger:hover { color: #2a0a10; background: var(--rose); }

/* Type toggle */
.type-toggle { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.type-opt { position: relative; cursor: pointer; }
.type-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.type-opt span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 46px;
    padding: 0 6px;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
    font-size: 13px;
    font-weight: 650;
    text-align: center;
    transition: all .16s ease;
}
.type-opt input:checked + span { color: #041315; border-color: transparent; background: linear-gradient(135deg, var(--mint), var(--cyan)); }
.type-opt input:disabled + span { opacity: .4; cursor: not-allowed; }

/* Methods */
.methods-head { display: flex; align-items: center; justify-content: space-between; }
.link-mini { color: var(--cyan); border: 0; background: transparent; font-size: 13px; font-weight: 700; cursor: pointer; }
.methods-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-top: 8px; }
.method-chip { position: relative; display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.04); cursor: pointer; transition: all .16s ease; }
.method-chip input { position: absolute; opacity: 0; }
.method-net { width: 10px; height: 10px; border-radius: 50%; background: var(--net, var(--cyan)); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04); }
.method-label { font-size: 13px; font-weight: 650; }
.method-label small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; }
.method-chip input:checked ~ .method-label { color: var(--text); }
.method-chip:has(input:checked) { border-color: rgba(33, 216, 230, 0.55); background: rgba(33, 216, 230, 0.08); }

.flow-modal .form-control,
.flow-modal textarea.form-control {
    color: var(--text);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.06);
}
.flow-modal textarea.form-control:focus { color: var(--text); border-color: rgba(33, 216, 230, 0.6); background: rgba(255, 255, 255, 0.08); box-shadow: none; }
.flow-modal .modal-body { display: grid; gap: 14px; }

@media (max-width: 1024px) {
    .settings-layout { grid-template-columns: 1fr; }
    .settings-aside { display: none; }
}

@media (max-width: 720px) {
    .wallet-row { grid-template-columns: 1fr; }
    .wallet-status { justify-self: start; }
    .link-row-full { grid-template-columns: 1fr; align-items: flex-start; }
    .lr-amount { justify-content: space-between; width: 100%; }
    .lr-actions { width: 100%; }
    .type-toggle { grid-template-columns: 1fr; }
}

/* ===========================================================================
   Phase 3 — public checkout + invoice + POS charge
   ======================================================================== */
.checkout-body { min-height: 100vh; margin: 0; }
.checkout-shell {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 22px;
    min-height: 100vh;
    padding: 24px 16px 18px;
}
.checkout-brand { display: flex; align-items: center; justify-content: center; gap: 11px; font-size: 19px; font-weight: 820; }
.checkout-brand img { width: 40px; height: 40px; border-radius: 9px; box-shadow: 0 10px 26px rgba(33, 216, 230, 0.28); }
.checkout-stage { display: grid; place-items: center; align-content: center; }
.checkout-foot { color: var(--muted); text-align: center; font-size: 13px; }
.checkout-foot i { color: var(--mint); }

.checkout-card {
    width: 100%;
    max-width: 440px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    animation: riseIn .5s ease both;
}

.co-merchant { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.co-avatar {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: #041315;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--mint), var(--cyan));
    font-weight: 850;
    font-size: 20px;
}
.co-caption { display: block; color: var(--muted); font-size: 12px; }
.co-merchant strong { font-size: 16px; }

.co-title { margin: 0 0 6px; font-size: 24px; font-weight: 830; }
.co-desc { margin: 0 0 18px; color: var(--muted); line-height: 1.5; }
.co-form { display: grid; gap: 18px; }

.co-amount-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border: 1px solid rgba(33, 216, 230, 0.22);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(33, 216, 230, 0.12), rgba(88, 240, 187, 0.05));
}
.co-amount-display span { color: var(--muted); font-size: 14px; }
.co-amount-display strong { font-size: 26px; font-weight: 850; }

.co-amount-field {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}
.co-amount-field:focus-within { border-color: rgba(33, 216, 230, 0.6); box-shadow: 0 0 0 4px rgba(33, 216, 230, 0.10); }
.co-amount-cur { color: var(--cyan); font-size: 20px; font-weight: 800; }
.co-amount-field input {
    width: 100%;
    color: var(--text);
    border: 0;
    outline: 0;
    background: transparent;
    font-size: clamp(32px, 8vw, 46px);
    font-weight: 850;
}

.co-methods-label { display: block; margin-bottom: 10px; color: var(--muted); font-size: 13px; font-weight: 700; }
.co-methods-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.co-method { position: relative; cursor: pointer; }
.co-method input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.co-method-body {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    transition: all .16s ease;
}
.co-method-net { flex: 0 0 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--net, var(--cyan)); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05); }
.co-method-txt { display: grid; line-height: 1.15; }
.co-method-txt strong { font-size: 15px; }
.co-method-txt small { color: var(--muted); font-size: 12px; }
.co-check { margin-left: auto; color: var(--cyan); opacity: 0; transition: opacity .16s ease; }
.co-method input:checked + .co-method-body { border-color: rgba(33, 216, 230, 0.6); background: rgba(33, 216, 230, 0.10); }
.co-method input:checked + .co-method-body .co-check { opacity: 1; }
.co-pay { margin-top: 2px; }

/* Invoice */
.invoice-card { text-align: center; }
.inv-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.inv-code { font-family: ui-monospace, Consolas, monospace; color: var(--muted); font-size: 13px; }
.inv-net { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 650; }

.inv-amount { margin-bottom: 18px; }
.inv-amount span { display: block; color: var(--muted); font-size: 13px; }
.inv-amount strong { display: block; margin: 4px 0 2px; font-size: 30px; font-weight: 850; }
.inv-amount small { color: var(--muted); font-size: 13px; }

.inv-qr-wrap { display: flex; justify-content: center; margin-bottom: 18px; }
.inv-qr { display: grid; place-items: center; padding: 14px; border-radius: 14px; background: #eefcff; }
.inv-qr canvas, .inv-qr img { display: block; width: 196px !important; height: 196px !important; }

.inv-address { margin-bottom: 18px; text-align: left; }
.inv-address-label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; }
.inv-address-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, 0.22); }
.inv-address-row code { flex: 1; overflow: hidden; color: var(--mint); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }

.inv-wait { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.03); text-align: left; }
.inv-wait strong { display: block; font-size: 14px; }
.inv-expiry { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.inv-spinner {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(33, 216, 230, 0.22);
    border-top-color: var(--cyan);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

.inv-success, .inv-expired { display: grid; place-items: center; gap: 12px; padding: 14px 0; }
.inv-explorer { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); font-weight: 700; font-size: 14px; }
.inv-explorer:hover { color: var(--cyan); text-decoration: underline; }
.empty-mark.warn { color: #2b1d00; background: linear-gradient(135deg, var(--amber), #ffe6a2); }

/* POS side */
.pos-side { text-align: center; align-content: start; }
.pos-side-icon {
    display: grid;
    width: 66px;
    height: 66px;
    margin: 6px auto 14px;
    place-items: center;
    color: #041315;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--cyan), #7df9ff);
    font-size: 30px;
}
.pos-side h3 { margin: 0 0 8px; font-size: 20px; font-weight: 820; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 560px) {
    .co-methods-grid { grid-template-columns: 1fr; }
    .checkout-card { padding: 20px; }
}

.co-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 13px; }
.co-or::before, .co-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.co-card-form { display: grid; gap: 12px; }

/* ===========================================================================
   Phase 4 — referrals & commissions
   ======================================================================== */
.ref-code-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(33, 216, 230, 0.06);
}
.ref-code-chip span { color: var(--muted); font-size: 13px; }
.ref-code-chip strong { font-family: ui-monospace, Consolas, monospace; font-size: 18px; letter-spacing: 1px; color: var(--cyan); }
.ref-code-chip .icon-btn { margin-left: auto; }

.ref-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.ref-stat { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.035); text-align: center; }
.ref-stat span { display: block; color: var(--muted); font-size: 12px; }
.ref-stat strong { display: block; margin-top: 4px; font-size: 22px; }

.level-list { display: grid; gap: 10px; }
.level-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.035);
}
.level-badge {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #041315;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--mint), var(--cyan));
    font-weight: 850;
    font-size: 13px;
}
.level-row strong { font-size: 17px; }

@media (max-width: 560px) {
    .ref-stats { grid-template-columns: 1fr; }
}

/* Public language toggle (login / register / licencia / payment links) */
.lang-switch-public {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(10, 22, 27, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.lang-switch-public:hover {
    border-color: var(--cyan);
    background: rgba(33, 216, 230, 0.14);
    transform: translateY(-1px);
}

.lang-switch-public i { color: var(--cyan); font-size: 15px; }

@media (max-width: 560px) {
    .lang-switch-public { top: 12px; right: 12px; padding: 7px 11px; font-size: 12px; }
}
