:root {
    --bg: #f5f7fb;
    --bg-alt: #eef3ff;
    --surface: rgba(255, 255, 255, 0.9);
    --surface-strong: #ffffff;
    --ink: #0f172a;
    --muted: #64748b;
    --line: rgba(15, 23, 42, 0.08);
    --brand: #2563eb;
    --brand-dark: #1e40af;
    --brand-soft: rgba(37, 99, 235, 0.12);
    --success: #22c55e;
    --success-soft: rgba(34, 197, 94, 0.14);
    --warn: #f59e0b;
    --danger: #ef4444;
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);
    --shadow-md: 0 14px 34px rgba(15, 23, 42, 0.08);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --page-gutter: 1.5rem;
}

@media (max-width: 768px) {
    .admin-shell {
        width: min(100%, calc(100% - 1rem));
        margin: 0.5rem auto 1rem;
    }

    .admin-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-userbar {
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .admin-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.1rem;
        -ms-overflow-style: none;
    }

    .admin-tabs::-webkit-scrollbar {
        display: none;
    }

    .admin-tab {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .card,
    .stat-card {
        padding: 1rem;
    }

    .recent-data-page .table-wrap td {
        display: grid;
        grid-template-columns: minmax(78px, auto) 1fr;
        align-items: start;
        gap: 0.35rem 0.7rem;
    }

    .recent-data-page .table-wrap td::before {
        margin-top: 0.05rem;
    }

    .recent-data-page .table-wrap td,
    .recent-data-page .table-wrap td small,
    .recent-data-page .table-wrap td span {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .recent-data-page .table-wrap .status {
        margin-left: 0;
        justify-self: start;
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: 'Plus Jakarta Sans', sans-serif;
    background:
        radial-gradient(circle at 15% 0%, rgba(37, 99, 235, 0.12) 0, transparent 28%),
        radial-gradient(circle at 85% 8%, rgba(34, 197, 94, 0.10) 0, transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    margin: 0;
    font-family: 'Sora', sans-serif;
    letter-spacing: -0.03em;
}

p {
    margin-top: 0;
}

a {
    color: var(--brand-dark);
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1140px, calc(100% - 2rem));
    margin: 0 auto;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: inherit;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    box-shadow: 0 14px 28px rgba(30, 64, 175, 0.18);
}

.brand-name {
    font-family: 'Sora', sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.72rem;
}

.nav-icon {
    width: 1rem;
    height: 1rem;
    flex: 0 0 1rem;
    opacity: 0.88;
}

.nav-link.active .nav-icon {
    opacity: 1;
    filter: drop-shadow(0 4px 10px rgba(37, 99, 235, 0.18));
}

.hero-wrap {
    position: relative;
    overflow: clip;
    padding-bottom: 1.5rem;
    background:
        radial-gradient(circle at 8% 18%, rgba(37, 99, 235, 0.14) 0, transparent 22%),
        radial-gradient(circle at 90% 12%, rgba(34, 197, 94, 0.12) 0, transparent 22%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.hero-wrap::before,
.hero-wrap::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(6px);
}

.hero-wrap::before {
    width: 360px;
    height: 360px;
    right: -110px;
    top: -120px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, rgba(37, 99, 235, 0.04) 55%, transparent 72%);
    animation: drift 16s ease-in-out infinite;
}

.hero-wrap::after {
    width: 280px;
    height: 280px;
    left: -100px;
    bottom: -120px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.14) 0%, rgba(34, 197, 94, 0.04) 55%, transparent 72%);
    animation: drift 20s ease-in-out infinite reverse;
}

.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    background: linear-gradient(180deg, rgba(245, 247, 251, 0.96), rgba(245, 247, 251, 0.72));
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.top-nav-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 1.5rem;
    padding: 4rem 0 2.75rem;
    position: relative;
}

.hero-copy {
    max-width: 660px;
}

.badge,
.section-kicker,
.step-index {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.badge {
    padding: 0.45rem 0.8rem;
    background: var(--brand-soft);
    border: 1px solid rgba(37, 99, 235, 0.12);
    color: var(--brand-dark);
    margin-bottom: 0.95rem;
}

.hero h1 {
    font-size: clamp(2.45rem, 6vw, 4.8rem);
    line-height: 0.98;
    margin-bottom: 1rem;
    max-width: 12ch;
}

.hero p,
.hero-card-head p,
.feature-list,
.compact-strip p,
.muted,
.content-head p,
.auth-meta,
.hero-metrics span {
    color: var(--muted);
    line-height: 1.75;
}

.hero p {
    max-width: 58ch;
    font-size: 1.02rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.35rem;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.hero-metrics div,
.compact-strip article,
.card,
.plan-card,
.stat-card,
.task-card,
.auth-card,
.floating-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.hero-metrics div {
    padding: 0.95rem 1rem;
}

.hero-metrics strong {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--brand-dark);
    font-size: 1rem;
}

.floating-card {
    padding: 1.25rem;
    transform: translateZ(0);
    animation: floatIn 0.7s ease both;
}

.hero-card-head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.95rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(239, 246, 255, 0.82));
    border: 1px solid rgba(15, 23, 42, 0.06);
    margin-bottom: 1rem;
}

.hero-card-logo {
    width: 56px;
    height: 56px;
    border-radius: 18px;
}

.hero-card-head h3 {
    margin-bottom: 0.2rem;
}

.feature-list {
    margin: 0;
    padding-left: 1.1rem;
}

.compact-intro {
    padding-top: 0;
}

.compact-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.compact-strip article {
    padding: 1.1rem 1.15rem;
}

.compact-strip h3 {
    margin-bottom: 0.35rem;
    font-size: 1rem;
}

.section {
    padding: 2.25rem 0;
}

.section-heading,
.split-copy {
    max-width: 720px;
    margin-bottom: 1rem;
}

.section-kicker {
    padding: 0.4rem 0.75rem;
    color: var(--brand-dark);
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.08);
    margin-bottom: 0.6rem;
}

.section-heading h2,
.split-copy h2 {
    font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.section-soft,
.premium-trust {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.64));
    border-radius: var(--radius-xl);
    border: 1px solid rgba(15, 23, 42, 0.06);
    padding: 1.9rem;
}

.grid-3,
.stat-row,
.plans-grid,
.task-grid,
.stats-grid,
.compact-strip {
    display: grid;
    gap: 1rem;
}

.grid-3,
.stat-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plans-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.card,
.plan-card,
.stat-card,
.task-card,
.auth-card {
    padding: 1.1rem;
}

.step-card {
    min-height: 210px;
}

.step-index {
    margin-bottom: 0.85rem;
    padding: 0.34rem 0.7rem;
    color: var(--brand-dark);
    background: rgba(37, 99, 235, 0.08);
}

.premium-panel {
    display: grid;
    gap: 1rem;
}

.premium-stats {
    margin-top: 0.4rem;
}

.trust-box ul {
    margin: 0;
    padding-left: 1rem;
    line-height: 1.85;
    color: var(--muted);
}

.footer {
    padding: 1.4rem 1rem 2rem;
    text-align: center;
    color: var(--muted);
}

.btn {
    appearance: none;
    border: 0;
    border-radius: 14px;
    padding: 0.72rem 1rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.22) 46%, transparent 72%);
    transform: translateX(-120%);
    transition: transform 0.6s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:hover::after {
    transform: translateX(120%);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.26);
}

.btn-primary:hover {
    box-shadow: 0 18px 34px rgba(30, 64, 175, 0.3);
}

.btn-ghost {
    color: var(--brand-dark);
    border: 1px solid rgba(37, 99, 235, 0.16);
    background: rgba(255, 255, 255, 0.8);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(37, 99, 235, 0.28);
}

.btn-danger {
    color: #fff;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 12px 24px rgba(185, 28, 28, 0.28);
}

.btn-danger:hover {
    box-shadow: 0 16px 28px rgba(153, 27, 27, 0.34);
}

.auth-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.auth-card {
    width: min(500px, 100%);
    padding: 1.3rem;
}

.auth-brand {
    margin-bottom: 1rem;
}

.auth-brand .brand-mark {
    width: 48px;
    height: 48px;
}

.form-grid {
    display: grid;
    gap: 0.9rem;
}

.form-grid label {
    display: grid;
    gap: 0.35rem;
    color: #334155;
    font-weight: 600;
}

.phone-input {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem;
    align-items: center;
}

.phone-prefix {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(100, 116, 139, 0.24);
    background: rgba(37, 99, 235, 0.06);
    color: var(--brand-dark);
    font-weight: 800;
    white-space: nowrap;
}

.phone-flag {
    font-size: 1rem;
    line-height: 1;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(100, 116, 139, 0.24);
    background: #fff;

@media (max-width: 768px) {
    .container {
        width: min(100%, calc(100% - 2.75rem));
    }

    .main-content {
        padding: 1.2rem 1.15rem 1.35rem;
    }

    .main-content,
    .section,
    .section-soft,
    .premium-trust,
    .auth-wrap {
        padding-left: 1.15rem;
        padding-right: 1.15rem;
    }

    .flash,
    .form-errors {
        width: min(100%, calc(100% - 2.75rem));
        margin-left: auto;
        margin-right: auto;
    }

    .plans-grid {
        grid-template-columns: 1fr !important;
    }
}
    color: var(--ink);
    font: inherit;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

textarea {
    min-height: 96px;
    resize: vertical;
}

.form-errors,
.flash-error {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.14);
}

.flash-success {
    background: rgba(34, 197, 94, 0.12);
    color: #166534;
    border: 1px solid rgba(34, 197, 94, 0.15);
}

.form-errors,
.flash {
    margin-bottom: 0.8rem;
    border-radius: 14px;
    padding: 0.85rem 0.95rem;
    width: min(1140px, calc(100% - 2rem));
}

.auth-meta {
    margin-top: 1rem;
}

.app-shell {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 1.2rem;
    background:
        radial-gradient(circle at 30% 0%, rgba(37, 99, 235, 0.18) 0, transparent 30%),
        linear-gradient(180deg, #0b1220 0%, #101827 100%);
    color: #e2e8f0;
    overflow: auto;
}

.sidebar-brand {
    margin-bottom: 1.2rem;
}

.sidebar .brand-mark {
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.24);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.72rem;
    margin-bottom: 0.4rem;
    padding: 0.72rem 0.75rem;
    border-radius: 12px;
    color: #cbd5e1;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(34, 197, 94, 0.16));
    color: #fff;
}

.main-content {
    padding: 1.35rem var(--page-gutter) 1.6rem;
}

.main-content > * {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.wallet-page {
    padding: 1.35rem var(--page-gutter) 1.6rem;
}

.wallet-page .stats-grid,
.wallet-page .card,
.wallet-page .split {
    margin-bottom: 1.15rem;
}

.wallet-page .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.wallet-list {
    display: grid;
    gap: 0.8rem;
}

.wallet-item {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.84);
    padding: 0.85rem 0.95rem;
}

.wallet-item-title {
    font-weight: 800;
    margin-bottom: 0.55rem;
    word-break: break-word;
}

.wallet-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.22rem 0;
}

.wallet-item-row span,
.wallet-item-row strong {
    word-break: break-word;
}

.content-head {
    margin-bottom: 1rem;
}

.content-head h1 {
    font-size: clamp(1.5rem, 2.8vw, 2.2rem);
    margin-bottom: 0.25rem;
}

.menu-btn {
    display: none;
    border: 1px solid rgba(37, 99, 235, 0.16);
    background: rgba(255, 255, 255, 0.8);
    color: var(--brand-dark);
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    margin-bottom: 0.65rem;
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-bottom: 1rem;
}

.task-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.generator-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.generator-card {
    padding: 1.1rem;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-md);
}

.generator-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 0.85rem;
    border-radius: 18px;
}

.generator-card h3 {
    margin-bottom: 0.35rem;
}

.generator-card p {
    color: var(--muted);
}

.card,
.plan-card,
.stat-card,
.task-card {
    padding: 1.05rem;
}

.code-copy-row,
.stack-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.code-copy-row {
    flex-wrap: wrap;
    margin-top: 0.85rem;
}

.stack-list {
    display: grid;
    gap: 0.75rem;
}

.stack-list-item {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.stack-list-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.about-hero {
    margin-bottom: 1rem;
}

.about-hero h1 {
    max-width: 18ch;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    line-height: 1.02;
    margin-top: 0.35rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-grid {
    display: grid;
    gap: 1rem;
}

.plan-head {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    margin-bottom: 0.9rem;
}

.plan-icon {
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    border-radius: 20px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.10);
    background: rgba(255, 255, 255, 0.72);
}

.membership-plan-card {
    position: relative;
    overflow: hidden;
}

.membership-plan-card::after {
    content: '';
    position: absolute;
    inset: auto -24px -24px auto;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0, transparent 68%);
    pointer-events: none;
}

.plan-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.85rem 0 1rem;
}

.plan-stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--brand-dark);
    font-size: 0.85rem;
    font-weight: 700;
}

.membership-buy-form {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
}

.membership-buy-form label {
    display: grid;
    gap: 0.45rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: #334155;
}

.membership-buy-form input[type="file"] {
    width: 100%;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 14px;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.92);
}

body.modal-open {
    overflow: hidden;
}

.buy-modal {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.buy-modal[hidden] {
    display: none;
}

.buy-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.44);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.buy-modal-panel {
    position: relative;
    width: min(560px, 100%);
    border-radius: 22px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(37, 99, 235, 0.14);
    box-shadow: var(--shadow-lg);
}

.buy-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 0.75rem;
}

.buy-modal-body p {
    margin: 0.4rem 0;
}

.buy-copy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    margin: 0.8rem 0;
    padding: 0.55rem 0.75rem;
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.14);
}

#buyPhoneNumber {
    font-weight: 800;
    color: var(--brand-dark);
    letter-spacing: 0.02em;
}

.card h2,
.plan-card h3,
.stat-card h3,
.task-card h3 {
    margin-bottom: 0.45rem;
}

.code-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--brand-dark);
    font-weight: 800;
}

.hero-card-head p,
.hero p,
.feature-list,
.compact-strip p,
.muted,
.content-head p,
.auth-meta,
.stat-card p,
.task-card p,
.plan-card p {
    color: var(--muted);
}

.hero-card-head p,
.feature-list,
.compact-strip p,
.stat-card p,
.task-card p,
.plan-card p {
    line-height: 1.7;
}

.status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    font-size: 0.82rem;
    font-weight: 700;
}

.status.approved {
    background: var(--success-soft);
    color: #166534;
}

.status.pending {
    background: rgba(245, 158, 11, 0.14);
    color: #92400e;
}

.status.rejected {
    background: rgba(239, 68, 68, 0.12);
    color: #991b1b;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding: 0.75rem 0.7rem;
    text-align: left;
    white-space: nowrap;
}

th {
    color: #334155;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.inline-form {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.admin-shell {
    width: min(1160px, calc(100% - 2rem));
    margin: 1rem auto 1.5rem;
    display: grid;
    gap: 1rem;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-userbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-tabs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.admin-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    background: rgba(255, 255, 255, 0.8);
    color: #334155;
    font-weight: 700;
}

.admin-tab.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(34, 197, 94, 0.12));
    color: var(--brand-dark);
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.admin-card-link {
    display: grid;
    gap: 0.6rem;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.step-card {
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    inset: auto -20px -20px auto;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0, transparent 68%);
    pointer-events: none;
}

.premium-trust {
    margin-top: 0.25rem;
}

.hero-wrap, .floating-card, .card, .plan-card, .stat-card, .task-card, .auth-card, .compact-strip article {
    animation: rise 0.55s ease both;
}

@keyframes floatIn {
    from {
        transform: translateY(12px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes rise {
    from {
        transform: translateY(16px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes drift {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.04);
    }
}

.brand-mark,
.btn,
.nav-link,
.card,
.plan-card,
.stat-card,
.task-card {
    transform: translateZ(0);
}

@media (max-width: 1080px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        max-width: 16ch;
    }
}

@media (max-width: 960px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        left: -280px;
        width: 260px;
        z-index: 120;
        transition: left 0.24s ease;
        box-shadow: var(--shadow-lg);
    }

    .sidebar.open {
        left: 0;
    }

    .menu-btn {
        display: inline-flex;
    }

    .split,
    .grid-3,
    .stat-row,
    .compact-strip,
    .hero-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    :root {
        --page-gutter: 1rem;
    }

    .container {
        width: min(100%, calc(100% - 2.5rem));
    }

    .top-nav {
        gap: 0.75rem;
    }

    .top-nav-links {
        gap: 0.55rem;
    }

    .main-content {
        padding: 1.25rem;
        overflow-x: hidden;
    }

    .wallet-page {
        padding: 1.25rem 1.25rem 1.35rem;
    }

    .main-content,
    .section,
    .section-soft,
    .premium-trust {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .main-content > * {
        max-width: 100%;
    }

    .app-shell {
        overflow-x: hidden;
    }

    .plans-grid {
        grid-template-columns: 1fr !important;
    }

    .generator-grid {
        grid-template-columns: 1fr;
    }

    .plan-card {
        min-width: 0;
        width: 100%;
        padding: 1.1rem;
    }

    .wallet-item {
        padding: 0.95rem 1rem;
    }

    .plan-head {
        gap: 0.7rem;
    }

    .plan-icon {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
        border-radius: 16px;
    }

    .plan-stats {
        gap: 0.4rem;
        margin: 0.7rem 0 0.9rem;
    }

    .plan-stats span {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .stats-grid,
    .task-grid {
        grid-template-columns: 1fr !important;
    }

    .buy-modal-panel {
        width: min(100%, calc(100vw - 2.5rem));
        max-height: calc(100vh - 1rem);
        overflow: auto;
    }

    .buy-copy-row {
        flex-direction: column;
        align-items: stretch;
    }

    .buy-copy-row .btn {
        width: 100%;
    }

    .buy-modal-body,
    .buy-modal-head {
        padding-left: 0.1rem;
        padding-right: 0.1rem;
    }

    .buy-modal-body p {
        line-height: 1.55;
    }

    .hero {
        padding-top: 2.4rem;
    }

    .hero h1 {
        font-size: clamp(2rem, 12vw, 3rem);
    }

    .btn {
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
    }

    .top-nav-links {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .section-soft,
    .premium-trust {
        border-radius: 20px;
    }

    .table-wrap {
        max-width: 100%;
        overflow: visible;
    }

    .table-wrap table,
    .table-wrap thead,
    .table-wrap tbody,
    .table-wrap tr,
    .table-wrap th,
    .table-wrap td {
        display: block;
        width: 100%;
    }

    .table-wrap thead {
        display: none;
    }

    .table-wrap tr {
        margin-bottom: 0.9rem;
        padding: 0.85rem 0.9rem;
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.84);
    }

    .table-wrap td {
        padding: 0.35rem 0;
        border-bottom: 0;
        white-space: normal;
        text-align: left;
        display: flex;
        justify-content: space-between;
        gap: 0.8rem;
    }

    .table-wrap td::before {
        content: attr(data-label);
        font-weight: 800;
        color: #334155;
        flex: 0 0 auto;
    }

    .table-wrap td:last-child {
        padding-bottom: 0;
    }

    .table-wrap td:first-child {
        padding-top: 0;
    }

    .table-wrap .inline-form {
        justify-content: flex-end;
        width: 100%;
    }

    .table-wrap .inline-form .btn {
        width: auto;
    }

    .table-wrap table,
    .table-wrap thead,
    .table-wrap tbody,
    .table-wrap tr,
    .table-wrap th,
    .table-wrap td {
        display: block;
        width: 100%;
    }

    .table-wrap thead {
        display: none;
    }

    .table-wrap tr {
        margin-bottom: 0.8rem;
        padding: 0.65rem 0.7rem;
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.82);
    }

    .table-wrap td {
        padding: 0.3rem 0;
        border-bottom: 0;
        white-space: normal;
        text-align: left;
        display: flex;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .table-wrap td::before {
        content: attr(data-label);
        font-weight: 800;
        color: #334155;
        flex: 0 0 auto;
    }

    .table-wrap td:last-child {
        padding-bottom: 0;
    }

    .table-wrap td:first-child {
        padding-top: 0;
    }

    .table-wrap .status {
        margin-left: auto;
    }
}
