﻿:root {
    --green: #0ed957;
    --green-dark: #0a9f40;
    --orange: #f58634;
    --dark: #07130c;
    --text: #102016;
    --muted: #6b756d;
    --soft: #f5f7f4;
    --white: #ffffff;
    --danger: #d92d20;
    --success: #079455;
    --border: #e4e9e2;
    --shadow: 0 20px 60px rgba(10, 20, 15, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
}

.app-loader-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    background: #f7faf6;
    color: var(--dark);
}

.app-loader-logo {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--green), var(--orange));
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 34px;
    font-weight: 950;
}

.app-loader-screen h1 {
    margin: 0;
    font-weight: 950;
}

.app-loader-screen p {
    color: var(--muted);
    font-weight: 700;
}

.public-shell {
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(14, 217, 87, 0.18), transparent 35%), radial-gradient(circle at bottom right, rgba(245, 134, 52, 0.2), transparent 35%), #f7faf6;
}

.landing-page,
.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
}

.landing-card {
    width: min(960px, 100%);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 34px;
    padding: 64px;
    box-shadow: var(--shadow);
    text-align: center;
}

.landing-badge {
    display: inline-flex;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(14, 217, 87, 0.12);
    color: var(--green-dark);
    font-weight: 900;
    margin-bottom: 24px;
}

.landing-card h1 {
    font-size: clamp(38px, 6vw, 72px);
    line-height: 0.95;
    letter-spacing: -0.06em;
    font-weight: 950;
    margin: 0 auto 24px;
    max-width: 820px;
}

.landing-card p {
    font-size: 18px;
    color: var(--muted);
    max-width: 680px;
    margin: 0 auto 34px;
}

.landing-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.auth-card {
    width: min(480px, 100%);
    background: var(--white);
    border-radius: 30px;
    padding: 34px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.75);
}

.signup-card {
    width: min(720px, 100%);
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
}

.auth-logo-mark {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--green), var(--orange));
    display: grid;
    place-items: center;
    color: var(--white);
    font-weight: 950;
    font-size: 24px;
}

.auth-logo h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 950;
}

.auth-logo span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.auth-header h2 {
    margin: 0 0 8px;
    font-size: 32px;
    letter-spacing: -0.04em;
    font-weight: 950;
}

.auth-header p {
    margin: 0 0 28px;
    color: var(--muted);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.span-2 {
    grid-column: span 2;
}

.form-group {
    margin-bottom: 18px;
}

    .form-group label {
        display: block;
        font-size: 13px;
        font-weight: 900;
        margin-bottom: 8px;
        color: #26352c;
    }

.modern-input {
    width: 100%;
    border: 1px solid var(--border);
    background: #f9fbf8;
    border-radius: 16px;
    padding: 15px 16px;
    outline: none;
    font-weight: 700;
    transition: 0.2s ease;
}

    .modern-input:focus {
        border-color: var(--green);
        background: #ffffff;
        box-shadow: 0 0 0 4px rgba(14, 217, 87, 0.14);
    }

.btn-primary-modern,
.btn-secondary-modern,
.btn-whatsapp {
    border: none;
    border-radius: 16px;
    padding: 14px 20px;
    font-weight: 950;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-primary-modern {
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: var(--white);
    box-shadow: 0 14px 30px rgba(14, 217, 87, 0.25);
}

    .btn-primary-modern:hover {
        transform: translateY(-1px);
        color: var(--white);
    }

.btn-secondary-modern {
    background: #ffffff;
    color: var(--dark);
    border: 1px solid var(--border);
}

    .btn-secondary-modern:hover {
        background: #f3f7f2;
    }

.btn-whatsapp {
    background: #25d366;
    color: #ffffff;
}

    .btn-whatsapp:hover {
        color: #ffffff;
        transform: translateY(-1px);
    }

.full-width {
    width: 100%;
}

button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.auth-footer {
    text-align: center;
    margin-top: 22px;
    color: var(--muted);
    font-weight: 700;
}

    .auth-footer a {
        color: var(--green-dark);
        font-weight: 950;
        text-decoration: none;
    }

.alert-modern {
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 20px;
    font-weight: 800;
}

.alert-error {
    background: #fff1f0;
    color: var(--danger);
}

.alert-success {
    background: #ecfdf3;
    color: var(--success);
}

.ambassador-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
    background: #f5f7f4;
}

.ambassador-sidebar {
    background: #07130c;
    color: #ffffff;
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0ed957, #f58634);
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 22px;
}

.brand-name {
    font-weight: 900;
    font-size: 20px;
}

.brand-subtitle {
    font-size: 12px;
    opacity: 0.7;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.side-link {
    color: #dfeee4;
    text-decoration: none;
    border: none;
    background: transparent;
    text-align: left;
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    transition: all 0.2s ease;
}

    .side-link:hover,
    .side-link.active {
        background: rgba(255, 255, 255, 0.09);
        color: #ffffff;
    }

.side-button {
    cursor: pointer;
    margin-top: 16px;
}

.ambassador-main {
    min-width: 0;
}

.topbar {
    padding: 28px 34px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-label {
    color: #6b756d;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.topbar h2 {
    margin: 4px 0 0;
    font-size: 26px;
    color: #0d1b12;
    font-weight: 900;
}

.topbar-pill {
    background: #ffffff;
    color: #0d1b12;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.page-content {
    padding: 0 34px 34px;
}

.dashboard-hero {
    background: linear-gradient(135deg, rgba(7, 19, 12, 0.95), rgba(7, 19, 12, 0.82)), radial-gradient(circle at top right, rgba(14, 217, 87, 0.4), transparent 36%);
    color: #ffffff;
    border-radius: 34px;
    padding: 34px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    box-shadow: var(--shadow);
}

.welcome-label {
    color: var(--green);
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
}

.dashboard-hero h1 {
    margin: 8px 0;
    font-size: clamp(32px, 5vw, 54px);
    letter-spacing: -0.05em;
    font-weight: 950;
}

.dashboard-hero p {
    color: rgba(255, 255, 255, 0.76);
    max-width: 620px;
    margin: 0;
    font-size: 16px;
}

.hero-code-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    padding: 24px;
    min-width: 260px;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .hero-code-card span {
        color: rgba(255, 255, 255, 0.65);
        font-weight: 800;
        font-size: 13px;
    }

    .hero-code-card strong {
        font-size: 28px;
        letter-spacing: 0.04em;
        margin-top: 8px;
    }

.stats-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(5, minmax(160px, 1fr));
    gap: 18px;
}

.stat-card {
    background: var(--white);
    border-radius: 26px;
    padding: 24px;
    box-shadow: 0 14px 45px rgba(10, 20, 15, 0.07);
    border: 1px solid rgba(228, 233, 226, 0.8);
}

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: rgba(14, 217, 87, 0.12);
    margin-bottom: 18px;
    font-weight: 950;
}

.stat-card span {
    color: var(--muted);
    display: block;
    font-weight: 800;
    font-size: 13px;
}

.stat-card strong {
    display: block;
    margin-top: 8px;
    font-size: 28px;
    letter-spacing: -0.04em;
    font-weight: 950;
}

.content-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 22px;
    margin-top: 22px;
}

.referral-panel,
.how-it-works-panel,
.table-card,
.empty-state,
.loading-card {
    background: var(--white);
    border-radius: 30px;
    padding: 28px;
    box-shadow: 0 14px 45px rgba(10, 20, 15, 0.07);
    border: 1px solid rgba(228, 233, 226, 0.8);
}

    .section-heading h3,
    .how-it-works-panel h3 {
        margin: 0 0 8px;
        font-size: 24px;
        font-weight: 950;
        letter-spacing: -0.04em;
    }

.section-heading p {
    color: var(--muted);
    margin: 0 0 22px;
}

.copy-box {
    display: flex;
    background: #f6f9f5;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 8px;
    gap: 8px;
}

    .copy-box input {
        flex: 1;
        border: none;
        background: transparent;
        outline: none;
        padding: 0 12px;
        font-weight: 850;
        min-width: 0;
    }

    .copy-box button {
        border: none;
        border-radius: 13px;
        background: var(--dark);
        color: #ffffff;
        padding: 12px 18px;
        font-weight: 950;
    }

.share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.steps-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.step-item {
    display: flex;
    gap: 14px;
    align-items: center;
}

    .step-item span {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        border-radius: 50%;
        background: var(--dark);
        color: #ffffff;
        display: grid;
        place-items: center;
        font-weight: 950;
    }

    .step-item p {
        margin: 0;
        color: var(--muted);
        font-weight: 750;
    }

.page-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}

    .page-title-row h1 {
        margin: 0;
        font-size: 36px;
        font-weight: 950;
        letter-spacing: -0.05em;
    }

    .page-title-row p {
        margin: 6px 0 0;
        color: var(--muted);
        font-weight: 700;
    }

.table-responsive-modern {
    overflow-x: auto;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
}

    .modern-table th {
        text-align: left;
        color: var(--muted);
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        padding: 14px;
    }

    .modern-table td {
        padding: 18px 14px;
        border-top: 1px solid var(--border);
        font-weight: 750;
    }

.customer-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.customer-avatar {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: rgba(14, 217, 87, 0.12);
    color: var(--green-dark);
    font-weight: 950;
}

.customer-cell strong {
    display: block;
}

.customer-cell span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
}

.pill {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f3f7f2;
    font-weight: 900;
}

.empty-state,
.loading-card {
    text-align: center;
    padding: 64px 28px;
}

    .empty-state h1 {
        margin: 0 0 8px;
        font-size: 32px;
        font-weight: 950;
        letter-spacing: -0.04em;
    }

    .empty-state p,
    .loading-card p {
        color: var(--muted);
        margin-bottom: 22px;
        font-weight: 700;
    }

.loader {
    width: 42px;
    height: 42px;
    border: 4px solid #dce7dc;
    border-top-color: var(--green);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 0.8s linear infinite;
}

.profile-hero {
    background: linear-gradient(135deg, rgba(7, 19, 12, 0.96), rgba(7, 19, 12, 0.84)), radial-gradient(circle at top right, rgba(14, 217, 87, 0.42), transparent 35%);
    color: #ffffff;
    border-radius: 34px;
    padding: 34px;
    display: flex;
    align-items: center;
    gap: 22px;
    box-shadow: var(--shadow);
}

.profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--green), var(--orange));
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 30px;
    font-weight: 950;
    flex: 0 0 88px;
}

.profile-main-info {
    flex: 1;
    min-width: 0;
}

    .profile-main-info h1 {
        margin: 6px 0 4px;
        font-size: clamp(32px, 5vw, 50px);
        letter-spacing: -0.05em;
        font-weight: 950;
    }

    .profile-main-info p {
        margin: 0;
        color: rgba(255, 255, 255, 0.72);
        font-weight: 800;
    }

.profile-status {
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 950;
    white-space: nowrap;
}

.status-active {
    background: rgba(14, 217, 87, 0.16);
    color: #74ff9b;
    border: 1px solid rgba(116, 255, 155, 0.25);
}

.status-inactive {
    background: rgba(217, 45, 32, 0.14);
    color: #ffb4ab;
    border: 1px solid rgba(255, 180, 171, 0.28);
}

.profile-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    column-gap: 22px;
    row-gap: 24px;
    margin-top: 22px;
}

    .profile-grid .profile-card:nth-child(3) {
        grid-column: span 2;
    }

@media (max-width: 900px) {
    .profile-grid {
        grid-template-columns: 1fr;
        row-gap: 18px;
    }

        .profile-grid .profile-card:nth-child(3) {
            grid-column: span 1;
        }
}

.profile-card {
    background: var(--white);
    border-radius: 30px;
    padding: 28px;
    box-shadow: 0 14px 45px rgba(10, 20, 15, 0.07);
    border: 1px solid rgba(228, 233, 226, 0.8);
}

.profile-ref-box {
    background: linear-gradient(135deg, rgba(14, 217, 87, 0.12), rgba(245, 134, 52, 0.12));
    border: 1px solid rgba(14, 217, 87, 0.22);
    border-radius: 24px;
    padding: 24px;
}

    .profile-ref-box span {
        display: block;
        color: var(--muted);
        font-size: 13px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.07em;
        margin-bottom: 8px;
    }

    .profile-ref-box strong {
        display: block;
        font-size: 30px;
        letter-spacing: 0.04em;
        font-weight: 950;
        color: var(--dark);
        word-break: break-word;
    }

.info-list {
    display: grid;
    gap: 12px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

    .info-row:last-child {
        border-bottom: none;
    }

    .info-row span {
        color: var(--muted);
        font-weight: 800;
    }

    .info-row strong {
        color: var(--text);
        font-weight: 950;
        text-align: right;
    }

@media (max-width: 900px) {
    .profile-hero {
        flex-direction: column;
        align-items: flex-start;
        border-radius: 26px;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-status {
        align-self: flex-start;
    }
}

@media (max-width: 640px) {
    .info-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

        .info-row strong {
            text-align: left;
        }

    .profile-ref-box strong {
        font-size: 24px;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(3, minmax(160px, 1fr));
    }

    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .ambassador-shell {
        grid-template-columns: 1fr;
    }

    .ambassador-sidebar {
        position: sticky;
        top: 0;
        z-index: 10;
        padding: 18px;
    }

    .side-nav {
        flex-direction: row;
        overflow-x: auto;
    }

    .side-link {
        white-space: nowrap;
    }

    .topbar {
        padding: 22px;
        align-items: flex-start;
        gap: 14px;
        flex-direction: column;
    }

    .page-content {
        padding: 0 22px 28px;
    }
}

@media (max-width: 760px) {
    .auth-card,
    .signup-card,
    .landing-card {
        padding: 24px;
        border-radius: 24px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: span 1;
    }

    .dashboard-hero {
        flex-direction: column;
        border-radius: 26px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .copy-box {
        flex-direction: column;
    }

        .copy-box input {
            min-height: 44px;
        }

    .page-title-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

.btn-primary-modern,
.btn-secondary-modern,
.btn-whatsapp,
.side-link,
.topbar-pill {
    gap: 10px;
}

    .side-link i {
        width: 20px;
        text-align: center;
        font-size: 15px;
    }

.brand-icon i,
.auth-logo-mark i {
    font-size: 22px;
}

.stat-icon i {
    font-size: 18px;
}

.step-item span i {
    font-size: 14px;
}

.info-row span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .info-row span i {
        width: 18px;
        color: var(--green-dark);
    }

.brand-logo-image {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: #ffffff;
    display: grid;
    place-items: center;
    overflow: hidden;
}

    .brand-logo-image img {
        width: 80%;
        height: 80%;
        object-fit: contain;
    }

.input-icon-wrap {
    position: relative;
    width: 100%;
}

    .input-icon-wrap i {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--green-dark);
        font-size: 15px;
        z-index: 2;
    }

.modern-input.with-icon {
    padding-left: 46px;
}




.ambassador-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
    background: #f5f7f4;
}

.ambassador-sidebar {
    background: #07130c;
    color: #ffffff;
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo-image {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: #ffffff;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 46px;
}

    .brand-logo-image img {
        width: 82%;
        height: 82%;
        object-fit: contain;
        display: block;
    }

.brand-name {
    font-weight: 900;
    font-size: 20px;
}

.brand-subtitle {
    font-size: 12px;
    opacity: 0.7;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.side-link {
    color: #dfeee4;
    text-decoration: none;
    border: none;
    background: transparent;
    text-align: left;
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    transition: all 0.2s ease;
    cursor: pointer;
}

    .side-link i {
        width: 20px;
        text-align: center;
        font-size: 15px;
    }

    .side-link:hover,
    .side-link.active {
        background: rgba(255, 255, 255, 0.09);
        color: #ffffff;
    }

.side-button {
    margin-top: 16px;
}

.ambassador-main {
    min-width: 0;
}

.topbar {
    padding: 28px 34px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.topbar-label {
    color: #6b756d;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.topbar h2 {
    margin: 4px 0 0;
    font-size: 26px;
    color: #0d1b12;
    font-weight: 900;
}

.topbar-pill {
    background: #ffffff;
    color: #0d1b12;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.page-content {
    padding: 0 34px 34px;
}

/* Install card */
.install-card {
    margin-top: 18px;
    background: #ffffff;
    border: 1px solid rgba(14, 217, 87, 0.2);
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 14px 45px rgba(10, 20, 15, 0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

    .install-card strong {
        display: block;
        font-weight: 950;
        color: var(--dark);
    }

    .install-card p {
        margin: 4px 0 0;
        color: var(--muted);
        font-weight: 700;
    }

    .install-card small {
        display: block;
        margin-top: 6px;
        color: var(--green-dark);
        font-weight: 800;
    }

/* Tablet */
@media (max-width: 1100px) {
    .ambassador-shell {
        grid-template-columns: 240px 1fr;
    }

    .ambassador-sidebar {
        padding: 22px 16px;
    }

    .topbar {
        padding: 24px;
    }

    .page-content {
        padding: 0 24px 28px;
    }
}

/* Mobile bottom nav */
@media (max-width: 760px) {
    .ambassador-shell {
        display: block;
        min-height: 100vh;
        padding-bottom: 84px;
    }

    .ambassador-sidebar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        height: 74px;
        padding: 8px 10px;
        z-index: 999;
        border-radius: 24px 24px 0 0;
        box-shadow: 0 -16px 40px rgba(7, 19, 12, 0.22);
    }

    .brand-block {
        display: none;
    }

    .side-nav {
        height: 100%;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        align-items: center;
    }

    .side-link {
        height: 58px;
        padding: 8px 4px;
        border-radius: 18px;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 4px;
        font-size: 10px;
        line-height: 1;
    }

        .side-link i {
            width: auto;
            font-size: 18px;
        }

        .side-link span {
            display: block;
        }

    .side-button {
        margin-top: 0;
    }

    .topbar {
        padding: 20px 18px 14px;
        flex-direction: column;
        align-items: flex-start;
    }

    .topbar-label {
        font-size: 11px;
    }

    .topbar h2 {
        font-size: 22px;
        line-height: 1.1;
    }

    .topbar-pill {
        padding: 10px 14px;
        font-size: 13px;
    }

    .page-content {
        padding: 0 18px 28px;
    }

    .install-card {
        flex-direction: column;
        align-items: stretch;
    }

        .install-card .btn-primary-modern {
            width: 100%;
        }
}


@media (max-width: 760px) {
    .dashboard-hero {
        border-radius: 26px;
        padding: 24px;
        flex-direction: column;
        gap: 20px;
    }

        .dashboard-hero h1 {
            font-size: 34px;
            line-height: 1;
        }

        .dashboard-hero p {
            font-size: 14px;
        }

    .hero-code-card {
        width: 100%;
        min-width: 0;
        padding: 18px;
        border-radius: 20px;
    }

        .hero-code-card strong {
            font-size: 22px;
            word-break: break-word;
        }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 16px;
    }

    .stat-card {
        border-radius: 22px;
        padding: 20px;
        display: grid;
        grid-template-columns: 46px 1fr;
        column-gap: 14px;
        align-items: center;
    }

    .stat-icon {
        margin-bottom: 0;
        grid-row: span 2;
    }

    .stat-card span {
        font-size: 12px;
    }

    .stat-card strong {
        margin-top: 2px;
        font-size: 24px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        margin-top: 16px;
        gap: 16px;
    }

    .referral-panel,
    .how-it-works-panel,
    .table-card,
    .empty-state,
    .loading-card {
        border-radius: 24px;
        padding: 22px;
    }

    .copy-box {
        flex-direction: column;
    }

        .copy-box input {
            min-height: 44px;
            width: 100%;
        }

        .copy-box button {
            width: 100%;
        }

    .share-actions {
        flex-direction: column;
    }

        .share-actions a,
        .share-actions button {
            width: 100%;
        }
}

@media (max-width: 760px) {
    .page-title-row {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

        .page-title-row h1 {
            font-size: 30px;
        }

        .page-title-row .btn-secondary-modern {
            width: 100%;
        }

    .modern-table,
    .modern-table thead,
    .modern-table tbody,
    .modern-table th,
    .modern-table td,
    .modern-table tr {
        display: block;
    }

        .modern-table thead {
            display: none;
        }

        .modern-table tr {
            background: #ffffff;
            border: 1px solid var(--border);
            border-radius: 20px;
            padding: 14px;
            margin-bottom: 12px;
        }

        .modern-table td {
            border-top: none;
            padding: 10px 0;
            display: flex;
            justify-content: space-between;
            gap: 18px;
            font-size: 14px;
        }

            .modern-table td::before {
                content: attr(data-label);
                color: var(--muted);
                font-weight: 900;
                flex: 0 0 120px;
            }

    .customer-cell {
        justify-content: flex-end;
        text-align: right;
    }
}


.payout-form-grid {
    margin-top: 18px;
    margin-bottom: 8px;
}

.profile-card .btn-primary-modern {
    margin-top: 8px;
}
