/* =========================================================
   YIELDFUND GLOBAL DESIGN SYSTEM
   Premium dark dashboard / home page
   ========================================================= */

/* =========================================================
   VARIABLES
   ========================================================= */

:root {
    --bg: #f4f5f7;
    --surface: #ffffff;
    --surface-2: #f8f9fb;
    --surface-3: #eef0f3;

    --text-primary: #0b0d10;
    --text-secondary: #69707d;
    --text-muted: #9aa1ac;

    --border: #e3e6eb;
    --border-light: #edf0f3;

    --accent: #0a0a0a;
    --accent-text: #ffffff;

    --success: #00b875;
    --warning: #f2a900;
    --error: #e5484d;

    --blue: #3478f6;
    --purple: #8755ef;
    --orange: #f29a05;

    --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.05);
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 22px 60px rgba(15, 23, 42, 0.14);

    --radius: 18px;
    --radius-sm: 12px;

    --sidebar-width: 280px;
    --sidebar-width-min: 88px;
    --topbar-height: 72px;

    --z-sidebar: 2000;
    --z-topbar: 1000;
    --z-overlay: 1500;
    --z-modal: 3000;
}

[data-theme="dark"] {
    --bg: #080808;
    --surface: #121212;
    --surface-2: #181818;
    --surface-3: #202020;

    --text-primary: #ffffff;
    --text-secondary: #9c9c9c;
    --text-muted: #696969;

    --border: #292929;
    --border-light: #202020;

    --accent: #ffffff;
    --accent-text: #080808;

    --success: #00f39a;
    --warning: #ffd166;
    --error: #ff6469;

    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.22);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.32);
    --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.52);
}

/* =========================================================
   RESET AND BASE
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text-primary);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition:
        background-color 0.25s ease,
        color 0.25s ease;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.sidebar-open,
body.modal-open {
    overflow: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}

img,
svg {
    display: block;
    max-width: 100%;
}

::selection {
    background: var(--accent);
    color: var(--accent-text);
}

/* =========================================================
   COMMON UTILITIES
   ========================================================= */

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

.green-text {
    color: var(--success);
    font-size: 12px;
    font-weight: 800;
}

.bg-surface {
    background: var(--surface);
}

.border-y {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.max-w-640 {
    max-width: 640px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.text-4xl {
    font-size: 40px;
}

.font-extrabold {
    font-weight: 800;
}

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

.mb-8 {
    margin-bottom: 32px;
}

.text-secondary {
    color: var(--text-secondary);
}

.text-lg {
    font-size: 17px;
    line-height: 1.7;
}

.justify-center {
    justify-content: center !important;
}

/* =========================================================
   RESPONSIVE UTILITIES
   ========================================================= */

@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}

/* =========================================================
   GLOBAL BUTTONS
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    /* color: var(--text-primary); */
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.btn svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-text);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.13);
}

.btn-primary:hover {
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    border-color: var(--border);
    background: var(--surface);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--surface-2);
}

.btn-sm {
    min-height: 38px;
    padding: 9px 13px;
    font-size: 12px;
}

.btn-lg {
    min-height: 52px;
    padding: 15px 24px;
    font-size: 15px;
}

.btn-full {
    width: 100%;
}

/* =========================================================
   DASHBOARD SHELL
   ========================================================= */

.dashboard-shell {
    background: var(--bg);
}

/* =========================================================
   SIDEBAR
   ========================================================= */

.dashboard-shell .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: var(--z-sidebar);

    width: var(--sidebar-width);
    height: 100dvh;

    display: flex;
    flex-direction: column;
    gap: 18px;

    padding: 22px 16px 17px;

    background: var(--surface);
    border-right: 1px solid var(--border);
    box-shadow: var(--shadow-sm);

    overflow-y: auto;
    overscroll-behavior: contain;

    transition:
        transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
        width 0.25s ease;
}

/* Minimized State (Desktop) */
body.sidebar-minimized .sidebar {
    width: var(--sidebar-width-min);
}

body.sidebar-minimized .logo-text,
body.sidebar-minimized .sidebar-label,
body.sidebar-minimized .nav-link span,
body.sidebar-minimized .sidebar-footer span {
    display: none;
}

body.sidebar-minimized .nav-link {
    justify-content: center;
    padding: 11px 0;
}

body.sidebar-minimized .sidebar-header {
    justify-content: center;
    padding: 0 0 16px;
}

.dashboard-shell .sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 53px;
    padding: 0 8px 16px;

    border-bottom: 1px solid var(--border);
}

.dashboard-shell .logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-svg {
    height: 38px;
    width: auto;
    display: block;
    transition: transform 0.2s ease;
}

.logo:hover .logo-svg {
    transform: scale(1.02);
}

.admin-sidebar .logo-svg {
    height: 32px;
}


.dashboard-shell .sidebar-close {
    display: none;
    place-items: center;

    width: 38px;
    height: 38px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--surface-2);
    color: var(--text-secondary);
}

.dashboard-shell .sidebar-close svg {
    width: 19px;
    height: 19px;
}

.dashboard-shell .sidebar-label {
    padding: 0 12px;

    color: var(--text-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.dashboard-shell .sidebar-label-spaced {
    margin-top: 9px;
}

.dashboard-shell .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dashboard-shell .nav-link {
    position: relative;

    display: flex;
    align-items: center;
    gap: 12px;

    min-height: 46px;
    padding: 11px 13px;

    border-radius: 12px;

    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.dashboard-shell .nav-link svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.dashboard-shell .nav-link:hover {
    background: var(--surface-2);
    color: var(--text-primary);
    transform: translateX(2px);
}

.dashboard-shell .nav-link.active {
    background: var(--accent);
    color: var(--accent-text);
    box-shadow: 0 7px 16px rgba(0, 0, 0, 0.14);
}

.dashboard-shell .nav-link.logout {
    color: var(--error);
}

.dashboard-shell .nav-link.logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.dashboard-shell .sidebar-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* =========================================================
   OVERLAY
   ========================================================= */

.dashboard-shell .overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay);

    display: none;
    opacity: 0;

    background: rgba(0, 0, 0, 0.56);

    pointer-events: none;
    transition: opacity 0.25s ease;
}

.dashboard-shell .overlay.show {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* =========================================================
   MAIN CONTENT
   ========================================================= */

.dashboard-shell .main {
    width: calc(100% - var(--sidebar-width));
    min-width: 0;
    min-height: 100vh;

    margin-left: var(--sidebar-width);
    padding-bottom: 70px;
    transition: margin-left 0.25s ease, width 0.25s ease;

    /* Smooth page entry transition */
    animation: mainFadeIn 0.4s ease-out;
}

@keyframes mainFadeIn {
    from {
        opacity: 0.4;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 1024px) {
    body.sidebar-minimized .main {
        width: calc(100% - var(--sidebar-width-min));
        margin-left: var(--sidebar-width-min);
    }
}

/* =========================================================
   TOPBAR
   ========================================================= */

.dashboard-shell .topbar {
    position: sticky;
    top: 0;
    z-index: var(--z-topbar);

    width: 100%;
    min-height: var(--topbar-height);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    padding: 14px 34px;

    background: rgba(244, 245, 247, 0.9);
    border-bottom: 1px solid var(--border-light);
}

[data-theme="dark"] .dashboard-shell .topbar {
    background: rgba(8, 8, 8, 0.9);
}

.dashboard-shell .topbar-left,
.dashboard-shell .topbar-right {
    display: flex;
    align-items: center;
}

.dashboard-shell .topbar-left {
    min-width: 0;
    gap: 12px;
}

.dashboard-shell .topbar-right {
    gap: 10px;
    flex-shrink: 0;
}

.dashboard-shell .menu-toggle {
    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;

    border: 1px solid var(--border);
    border-radius: 11px;

    background: var(--surface);
    color: var(--text-primary);
}

.dashboard-shell .menu-toggle:hover {
    background: var(--surface-2);
}

.dashboard-shell .menu-toggle svg {
    width: 20px;
    height: 20px;
}

.dashboard-shell .page-title {
    margin: 0;

    color: var(--text-primary);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.6px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-shell .topbar-icon {
    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;

    border: 1px solid var(--border);
    border-radius: 11px;

    background: var(--surface);
    color: var(--text-primary);

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.dashboard-shell .topbar-icon:hover {
    background: var(--surface-2);
    transform: translateY(-1px);
}

.dashboard-shell .topbar-icon svg {
    width: 19px;
    height: 19px;
}

.dashboard-shell .icon-btn {
    position: relative;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface);
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.dashboard-shell .icon-btn:hover {
    background: var(--surface-2);
    transform: translateY(-1px);
}

.dashboard-shell .notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: var(--error, #ef4444);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 9px;
    border: 2px solid var(--surface);
}

@media (max-width: 768px) {
    .dashboard-shell .topbar {
        padding: 10px 12px;
        gap: 8px;
    }
    .dashboard-shell .page-title {
        font-size: 16px;
    }
    .dashboard-shell .user-chip {
        padding: 0;
        width: 40px;
        height: 40px;
        min-height: 40px;
        justify-content: center;
        border-radius: 50%;
        border-width: 2px;
        overflow: hidden;
    }
    .dashboard-shell .user-chip span,
    .dashboard-shell .user-chip .profile-top-user,
    .dashboard-shell .user-chip .topbar-user-info {
        display: none !important;
    }
    .dashboard-shell .user-avatar {
        width: 100% !important;
        height: 100% !important;
        flex: 0 0 100% !important;
        border-radius: 0;
    }
    .dashboard-shell .icon-btn,
    .dashboard-shell .menu-toggle,
    .dashboard-shell .topbar-icon {
        width: 40px;
        height: 40px;
    }
}

.dashboard-shell .user-chip {
    display: flex;
    align-items: center;
    gap: 10px;

    min-height: 42px;
    padding: 5px 12px 5px 5px;

    border: 1px solid var(--border);
    border-radius: 999px;

    background: var(--surface);
    text-decoration: none;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.dashboard-shell .user-chip:hover {
    background: var(--surface-2);
    transform: translateY(-1px);
}

.dashboard-shell .user-avatar {
    display: grid;
    place-items: center;

    width: 33px;
    height: 33px;
    flex: 0 0 33px;

    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-text);

    font-size: 13px;
    font-weight: 800;
    overflow: hidden;
}

.dashboard-shell .user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-shell .topbar-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.dashboard-shell .topbar-user-info strong {
    max-width: 130px;

    overflow: hidden;

    color: var(--text-primary);
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-shell .topbar-user-info span {
    color: var(--text-secondary);
    font-size: 10px;
}

/* =========================================================
   HERO
   ========================================================= */

.dashboard-shell .hero {
    width: min(100%, 1440px);
    min-height: 610px;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
    align-items: center;
    gap: 70px;

    margin: 0 auto;
    padding: 86px 64px 92px;
}

.dashboard-shell .hero-content {
    max-width: 650px;
}

.dashboard-shell .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 8px 14px;
    margin-bottom: 25px;

    border: 1px solid var(--border);
    border-radius: 999px;

    background: var(--surface);
    color: var(--text-secondary);

    font-size: 12px;
    font-weight: 600;
}

.dashboard-shell .hero-badge-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(0, 184, 117, 0.12);

    animation: dashboardPulse 2s infinite;
}

@keyframes dashboardPulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.45;
    }
}

.dashboard-shell .hero h1 {
    max-width: 680px;

    margin-bottom: 23px;

    color: var(--text-primary);
    font-size: clamp(44px, 5vw, 76px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -3.8px;
}

.dashboard-shell .hero h1 span {
    display: block;
    color: var(--text-secondary);
}

.dashboard-shell .hero-content > p {
    max-width: 590px;

    margin-bottom: 34px;

    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.75;
}

.dashboard-shell .hero-btns {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-wrap: wrap;
}

.dashboard-shell .hero-visual {
    position: relative;

    min-height: 410px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-shell .hero-card {
    position: relative;
    z-index: 2;

    width: min(100%, 470px);
    padding: 32px;

    border: 1px solid var(--border);
    border-radius: 22px;

    background: var(--surface);
    box-shadow: var(--shadow-lg);

    overflow: hidden;
}

.dashboard-shell .hero-card::before {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;

    height: 4px;

    background: linear-gradient(
        90deg,
        var(--accent),
        var(--success)
    );

    content: "";
}

.dashboard-shell .hero-card::after {
    position: absolute;
    right: -100px;
    bottom: -120px;

    width: 260px;
    height: 260px;

    border-radius: 50%;
    background: rgba(0, 184, 117, 0.08);

    content: "";
    pointer-events: none;
}

.dashboard-shell .hero-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    margin-bottom: 25px;
}

.dashboard-shell .hero-card-title {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-shell .hero-card-growth {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    padding: 7px 11px;
    border-radius: 999px;

    background: rgba(0, 184, 117, 0.11);
    color: var(--success);

    font-size: 12px;
    font-weight: 800;
}

.dashboard-shell .hero-card-growth svg {
    width: 15px;
    height: 15px;
}

.dashboard-shell .hero-card-balance {
    margin-bottom: 8px;

    color: var(--text-primary);
    font-size: 50px;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
}

.dashboard-shell .hero-card-label {
    margin-bottom: 25px;

    color: var(--text-secondary);
    font-size: 13px;
}

.dashboard-shell .hero-card-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-shell .mini-stat {
    position: relative;
    z-index: 2;

    padding: 16px;

    border: 1px solid var(--border-light);
    border-radius: 13px;

    background: var(--surface-2);
}

.dashboard-shell .mini-stat-value {
    display: flex;
    align-items: center;
    gap: 5px;

    margin-bottom: 5px;

    color: var(--text-primary);
    font-size: 19px;
    font-weight: 900;
}

.dashboard-shell .mini-stat-label {
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
}

.dashboard-shell .hero-card-footer {
    position: relative;
    z-index: 2;

    margin-top: 22px;
    padding-top: 20px;

    border-top: 1px solid var(--border);
}

.dashboard-shell .hero-card-footer .progress-bar {
    height: 8px;
    margin-bottom: 9px;

    border-radius: 999px;
    background: var(--border);
    overflow: hidden;
}

.dashboard-shell .hero-card-footer .progress-fill {
    height: 100%;

    border-radius: inherit;
    background: linear-gradient(
        90deg,
        var(--accent),
        var(--success)
    );
}

.dashboard-shell .progress-text {
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
}

.dashboard-shell .floating-tag {
    position: absolute;
    z-index: 4;

    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 11px 14px;

    border: 1px solid var(--border);
    border-radius: 11px;

    background: var(--surface);
    box-shadow: var(--shadow);

    color: var(--text-primary);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;

    animation: dashboardFloat 6s ease-in-out infinite;
}

.dashboard-shell .floating-tag.tag-1 {
    top: 35px;
    right: 0;
}

.dashboard-shell .floating-tag.tag-2 {
    bottom: -5px;
    left: 0;

    animation-delay: 2s;
}

@keyframes dashboardFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-9px);
    }
}

/* =========================================================
   STATS BAR
   ========================================================= */

.dashboard-shell .stats-bar {
    width: 100%;
    padding: 38px 40px;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    background: var(--surface);
}

.dashboard-shell .stats-container {
    width: min(100%, 1280px);
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
}

.dashboard-shell .stat-item {
    position: relative;

    padding: 0 20px;
    text-align: center;
}

.dashboard-shell .stat-item:not(:last-child)::after {
    position: absolute;
    top: 10%;
    right: 0;

    width: 1px;
    height: 80%;

    background: var(--border);
    content: "";
}

.dashboard-shell .stat-value {
    margin-bottom: 4px;

    color: var(--text-primary);
    font-size: 31px;
    font-weight: 900;
    letter-spacing: -1px;
}

.dashboard-shell .stat-label {
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* =========================================================
   SECTION SYSTEM
   ========================================================= */

.dashboard-shell .section {
    width: min(100%, 1440px);
    margin: 0 auto;
    padding: 100px 64px;
}

.dashboard-shell .section-header {
    max-width: 690px;
    margin: 0 auto 58px;
    text-align: center;
}

.dashboard-shell .section-tag {
    display: inline-flex;
    align-items: center;

    padding: 7px 13px;
    margin-bottom: 16px;

    border: 1px solid var(--border);
    border-radius: 999px;

    background: var(--surface-2);
    color: var(--text-secondary);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dashboard-shell .section-header h2 {
    margin-bottom: 15px;

    color: var(--text-primary);
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 900;
    letter-spacing: -1.7px;
    line-height: 1.08;
}

.dashboard-shell .section-header p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.75;
}

/* =========================================================
   STEPS
   ========================================================= */

.dashboard-shell .steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.dashboard-shell .step-card {
    position: relative;

    padding: 34px 28px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--surface);
    box-shadow: var(--shadow-sm);

    text-align: center;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.dashboard-shell .step-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.dashboard-shell .step-number {
    display: grid;
    place-items: center;

    width: 50px;
    height: 50px;
    margin: 0 auto 19px;

    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-text);

    font-size: 18px;
    font-weight: 900;
}

.dashboard-shell .step-card h3 {
    margin-bottom: 10px;

    color: var(--text-primary);
    font-size: 17px;
    font-weight: 800;
}

.dashboard-shell .step-card p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.7;
}

.dashboard-shell .step-arrow {
    position: absolute;
    top: 50%;
    right: -23px;
    z-index: 2;

    display: grid;
    place-items: center;

    width: 34px;
    height: 34px;

    border: 1px solid var(--border);
    border-radius: 50%;

    background: var(--surface);
    color: var(--text-secondary);

    font-size: 15px;
    transform: translateY(-50%);
}

/* =========================================================
   PLANS
   ========================================================= */

.dashboard-shell #plans {
    width: 100%;
    max-width: none;
}

.dashboard-shell .deposit-selector {
    width: min(100%, 390px);
    margin: 0 auto 45px;
}

.dashboard-shell .deposit-selector label {
    display: block;

    margin-bottom: 10px;

    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-align: center;
    text-transform: uppercase;
}

.dashboard-shell .select-wrapper {
    position: relative;
}

.dashboard-shell .select-wrapper select {
    width: 100%;
    min-height: 54px;

    padding: 13px 48px 13px 17px;

    border: 2px solid var(--border);
    border-radius: var(--radius-sm);

    outline: none;
    appearance: none;
    -webkit-appearance: none;

    background: var(--surface);
    color: var(--text-primary);

    font-size: 16px;
    font-weight: 800;

    cursor: pointer;
}

.dashboard-shell .select-wrapper select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(128, 128, 128, 0.1);
}

.dashboard-shell .select-wrapper > svg {
    position: absolute;
    top: 50%;
    right: 17px;

    width: 19px;
    height: 19px;

    color: var(--text-secondary);
    pointer-events: none;
    transform: translateY(-50%);
}

.dashboard-shell .plans-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;

    width: min(100%, 1080px);
    margin: 0 auto;
}

.dashboard-shell .plan-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;
    padding: 31px 25px 25px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--bg);

    text-align: center;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.dashboard-shell .plan-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.dashboard-shell .plan-card.featured {
    border: 2px solid var(--accent);
    background: var(--surface);
    box-shadow: var(--shadow);
    transform: translateY(-7px);
}

.dashboard-shell .plan-card.featured:hover {
    transform: translateY(-11px);
}

.dashboard-shell .plan-badge {
    position: absolute;
    top: 15px;
    left: 50%;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 6px 12px;

    border-radius: 999px;

    background: var(--accent);
    color: var(--accent-text);

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;

    transform: translateX(-50%);
}

.dashboard-shell .plan-card.featured .plan-header {
    padding-top: 22px;
}

.dashboard-shell .plan-header {
    margin-bottom: 23px;
}

.dashboard-shell .plan-duration {
    margin-bottom: 9px;

    color: var(--text-primary);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -1px;
}

.dashboard-shell .plan-rate-badge {
    display: inline-flex;

    padding: 6px 10px;

    border: 1px solid rgba(0, 184, 117, 0.2);
    border-radius: 999px;

    background: rgba(0, 184, 117, 0.09);
    color: var(--success);

    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.dashboard-shell .plan-calc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 12px 0;

    border-bottom: 1px solid var(--border-light);

    font-size: 13px;
    text-align: left;
}

.dashboard-shell .plan-calc-row span {
    color: var(--text-secondary);
    font-weight: 600;
}

.dashboard-shell .plan-calc-row strong {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.dashboard-shell .plan-divider {
    width: 100%;
    height: 1px;
    margin: 15px 0;

    background: var(--border);
}

.dashboard-shell .plan-daily {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 73px;
    margin-bottom: 20px;
    padding: 12px;

    border: 1px solid var(--border-light);
    border-radius: 12px;

    background: var(--surface-2);
}

.dashboard-shell .plan-daily-label {
    margin-bottom: 3px;

    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-shell .plan-card .plan-daily:not(:has(.plan-daily-label)) {
    color: var(--success);
    font-size: 18px;
    font-weight: 900;
}

.dashboard-shell .plan-btn {
    width: 100%;
    min-height: 46px;

    margin-top: auto;
    padding: 12px 13px;

    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);

    background: var(--accent);
    color: var(--accent-text);

    font-size: 12px;
    font-weight: 800;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.dashboard-shell .plan-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.dashboard-shell .plan-btn-outline {
    background: transparent;
    color: var(--text-primary);
}

.dashboard-shell .plan-btn-outline:hover {
    background: var(--surface);
}

.dashboard-shell .calc-note {
    display: flex;
    align-items: flex-start;
    gap: 11px;

    width: min(100%, 700px);
    margin: 42px auto 0;
    padding: 17px 19px;

    border: 1px solid var(--border);
    border-radius: var(--radius-sm);

    background: var(--surface-2);
    color: var(--text-secondary);

    font-size: 12px;
    line-height: 1.65;
}

.dashboard-shell .calc-note svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-top: 2px;
    color: var(--text-muted);
}

.dashboard-shell .calc-note p {
    margin: 0;
}

/* =========================================================
   TRUST AND SECURITY
   ========================================================= */

.dashboard-shell .trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.dashboard-shell .trust-card {
    padding: 27px 20px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--bg);
    text-align: center;

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.dashboard-shell .trust-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.dashboard-shell .trust-icon {
    display: grid;
    place-items: center;

    width: 52px;
    height: 52px;
    margin: 0 auto 15px;

    border: 1px solid var(--border);
    border-radius: 15px;

    background: var(--surface);
    color: var(--success);

    font-size: 21px;
    font-weight: 900;
}

.dashboard-shell .trust-card h3 {
    margin-bottom: 8px;

    color: var(--text-primary);
    font-size: 14px;
    font-weight: 800;
}

.dashboard-shell .trust-card p {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.65;
}

.dashboard-shell .certificates {
    margin-top: 38px;
    padding: 28px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--bg);
    text-align: center;
}

.dashboard-shell .certificates h3 {
    margin-bottom: 19px;

    font-size: 17px;
    font-weight: 800;
}

.dashboard-shell .cert-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard-shell .cert-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 10px 13px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--surface);
    color: var(--text-secondary);

    font-size: 11px;
    font-weight: 700;
}

.dashboard-shell .cert-item svg {
    width: 17px;
    height: 17px;
    color: var(--success);
}

/* =========================================================
   FEATURES
   ========================================================= */

.dashboard-shell .features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.dashboard-shell .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;

    padding: 24px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--surface);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.dashboard-shell .feature-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.dashboard-shell .feature-icon {
    display: grid;
    place-items: center;

    width: 46px;
    height: 46px;
    flex: 0 0 46px;

    border: 1px solid var(--border);
    border-radius: 13px;

    background: var(--surface-2);
    color: var(--success);

    font-size: 20px;
}

.dashboard-shell .feature-content h3 {
    margin-bottom: 6px;

    color: var(--text-primary);
    font-size: 15px;
    font-weight: 800;
}

.dashboard-shell .feature-content p {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.7;
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */

.dashboard-shell .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.dashboard-shell .testimonial-card {
    padding: 25px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--surface);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.dashboard-shell .testimonial-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.dashboard-shell .testimonial-stars {
    margin-bottom: 14px;

    color: var(--warning);
    font-size: 14px;
    letter-spacing: 2px;
}

.dashboard-shell .testimonial-text {
    min-height: 88px;
    margin-bottom: 20px;

    color: var(--text-secondary);
    font-size: 13px;
    font-style: italic;
    line-height: 1.7;
}

.dashboard-shell .testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-shell .testimonial-avatar {
    display: grid;
    place-items: center;

    width: 39px;
    height: 39px;
    flex: 0 0 39px;

    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-text);

    font-size: 11px;
    font-weight: 900;
}

.dashboard-shell .testimonial-name {
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 800;
}

.dashboard-shell .testimonial-role {
    color: var(--text-secondary);
    font-size: 11px;
}

/* =========================================================
   FAQ
   ========================================================= */

.dashboard-shell .faq-list {
    width: min(100%, 800px);
    margin: 0 auto;
}

.dashboard-shell .faq-item {
    margin-bottom: 10px;

    border: 1px solid var(--border);
    border-radius: var(--radius-sm);

    background: var(--surface);
    overflow: hidden;
}

.dashboard-shell .faq-question {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    padding: 18px 20px;

    border: 0;
    background: transparent;
    color: var(--text-primary);

    font-size: 13px;
    font-weight: 800;
    text-align: left;
}

.dashboard-shell .faq-question:hover {
    background: var(--surface-2);
}

.dashboard-shell .faq-icon {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;

    color: var(--text-secondary);
    transition: transform 0.25s ease;
}

.dashboard-shell .faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.dashboard-shell .faq-answer {
    max-height: 0;
    padding: 0 20px;

    overflow: hidden;
    transition:
        max-height 0.3s ease,
        padding 0.3s ease;
}

.dashboard-shell .faq-item.active .faq-answer {
    max-height: 250px;
    padding: 0 20px 18px;
}

.dashboard-shell .faq-answer p {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.75;
}

/* =========================================================
   CTA
   ========================================================= */

.dashboard-shell .cta-section {
    padding-top: 72px;
    padding-bottom: 72px;
}

.dashboard-shell .cta-box {
    position: relative;

    max-width: 900px;
    margin: 0 auto;
    padding: 55px 32px;

    border: 1px solid var(--border);
    border-radius: 25px;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(0, 184, 117, 0.13),
            transparent 30%
        ),
        var(--surface);

    box-shadow: var(--shadow);
    text-align: center;
    overflow: hidden;
}

.dashboard-shell .cta-box::before {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;

    height: 4px;

    background: linear-gradient(
        90deg,
        var(--accent),
        var(--success)
    );

    content: "";
}

.dashboard-shell .cta-box h2 {
    margin-bottom: 14px;

    color: var(--text-primary);
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 900;
    letter-spacing: -1.6px;
}

.dashboard-shell .cta-box p {
    max-width: 600px;
    margin: 0 auto 27px;

    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* =========================================================
   FOOTER
   ========================================================= */

.dashboard-shell .footer {
    width: 100%;
    padding: 60px 64px 25px;

    border-top: 1px solid var(--border);
    background: var(--surface);
}

.dashboard-shell .footer-grid {
    width: min(100%, 1280px);
    margin: 0 auto 45px;

    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
}

.dashboard-shell .footer-brand {
    max-width: 340px;
}

.dashboard-shell .footer-brand .nav-logo {
    display: inline-flex;
    margin-bottom: 16px;
}

.dashboard-shell .footer-brand p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.75;
}

.dashboard-shell .footer-col h4 {
    margin-bottom: 15px;

    color: var(--text-primary);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.dashboard-shell .footer-col a {
    display: block;

    padding: 5px 0;

    color: var(--text-secondary);
    font-size: 13px;
    text-decoration: none;

    transition: color 0.2s ease;
}

.dashboard-shell .footer-col a:hover {
    color: var(--text-primary);
}

.dashboard-shell .footer-bottom {
    width: min(100%, 1280px);
    margin: 0 auto;
    padding-top: 21px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    border-top: 1px solid var(--border);
}

.dashboard-shell .footer-bottom p {
    color: var(--text-muted);
    font-size: 11px;
}

.dashboard-shell .footer-bottom-links {
    display: flex;
    gap: 18px;
}

.dashboard-shell .footer-bottom-links a {
    color: var(--text-muted);
    font-size: 11px;
    text-decoration: none;
}

/* =========================================================
   MODAL
   ========================================================= */

.dashboard-shell .modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.66);
}

.dashboard-shell .modal.show {
    display: flex;
}

.dashboard-shell .modal[hidden] {
    display: none !important;
}

.dashboard-shell .modal-body {
    width: min(100%, 420px);

    padding: 30px 25px;

    border: 1px solid var(--border);
    border-radius: 20px;

    background: var(--surface);
    box-shadow: var(--shadow-lg);

    text-align: center;
    animation: modalScale 0.24s ease;
}

@keyframes modalScale {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.dashboard-shell .modal-icon-box {
    display: grid;
    place-items: center;

    width: 62px;
    height: 62px;
    margin: 0 auto 18px;

    border-radius: 50%;

    background: rgba(229, 72, 77, 0.12);
    color: var(--error);
}

.dashboard-shell .modal-body h3 {
    margin-bottom: 8px;

    color: var(--text-primary);
    font-size: 21px;
    font-weight: 900;
}

.dashboard-shell .modal-body p {
    margin-bottom: 23px;

    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.65;
}

.dashboard-shell .modal-actions {
    display: flex;
    gap: 10px;
}

.dashboard-shell .modal-btn {
    flex: 1;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 45px;
    padding: 11px 14px;

    border-radius: 10px;

    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.dashboard-shell .modal-btn-secondary {
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text-primary);
}

.dashboard-shell .modal-btn-danger {
    background: var(--error);
    color: #ffffff;
}

/* =========================================================
   TOAST
   ========================================================= */

.dashboard-shell .toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 5000;

    max-width: min(370px, calc(100vw - 32px));

    padding: 13px 17px;

    border: 1px solid var(--border);
    border-left: 4px solid var(--success);
    border-radius: 11px;

    background: var(--surface);
    box-shadow: var(--shadow-lg);

    color: var(--text-primary);
    font-size: 12px;
    font-weight: 700;

    opacity: 0;
    pointer-events: none;
    transform: translateY(15px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.dashboard-shell .toast.show {
    opacity: 1;
    transform: translateY(0);
}

.dashboard-shell .toast.error {
    border-left-color: var(--error);
}

/* =========================================================
   NOTIFICATION POPUP
   ========================================================= */

/* =========================================================
   ULTRA-PREMIUM NOTIFICATION TOAST
   ========================================================= */

.notif-popup-container {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    align-items: center;
    width: auto;
    max-width: 95vw;
}

.notif-popup {
    position: relative;
    background: #000000;
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 40px;
    padding: 8px 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    cursor: pointer;
    overflow: hidden;
    min-width: 260px;
    max-width: 400px;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    animation: islandIn 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

[data-theme="dark"] .notif-popup {
    background: #000000;
    border-color: rgba(255, 255, 255, 0.25);
}

.notif-popup:hover {
    transform: scale(1.02) translateY(2px);
    border-color: rgba(255, 255, 255, 0.4);
}

.notif-popup.hiding {
    animation: islandOut 0.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes islandIn {
    0% {
        opacity: 0;
        transform: translateY(-60px) scale(0.3, 0.2);
        filter: blur(15px);
    }
    70% {
        transform: translateY(5px) scale(1.02, 1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1, 1);
        filter: blur(0);
    }
}

@keyframes islandOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-40px) scale(0.7);
    }
}

.notif-popup-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #1a1a1a;
}

.notif-popup-icon svg {
    width: 16px;
    height: 16px;
}

.notif-popup:hover .notif-popup-icon {
    transform: rotate(-12deg) scale(1.1);
}

.notif-popup-icon.info { color: #fff; background: #3478f6; }
.notif-popup-icon.success { color: #fff; background: #00b875; }
.notif-popup-icon.warning { color: #fff; background: #f2a900; }
.notif-popup-icon.error { color: #fff; background: #e5484d; }

.notif-popup-content {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 10px;
}

.notif-popup-title {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0px;
    letter-spacing: -0.2px;
}

.notif-popup-message {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.2;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-popup-close {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.notif-popup-close svg {
    width: 10px;
    height: 10px;
}

.notif-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: scale(1.1);
}

.notif-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    width: 100%;
}

.notif-progress-fill {
    height: 100%;
    width: 100%;
    transform-origin: left;
    background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 480px) {
    .notif-popup-container {
        top: 12px;
        width: calc(100% - 24px);
    }
    .notif-popup {
        min-width: 0;
        width: 100%;
        padding: 6px 14px;
        gap: 10px;
    }
}

/* =========================================================
   FADE ANIMATION
   ========================================================= */

.dashboard-shell .fade-in {
    opacity: 0;
    transform: translateY(25px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.dashboard-shell .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1200px) {
    :root {
        --sidebar-width: 250px;
    }

    .dashboard-shell .hero {
        grid-template-columns: minmax(0, 1fr) minmax(330px, 0.8fr);
        gap: 38px;
        padding-right: 42px;
        padding-left: 42px;
    }

    .dashboard-shell .hero h1 {
        font-size: clamp(42px, 5vw, 64px);
    }

    .dashboard-shell .section {
        padding-right: 42px;
        padding-left: 42px;
    }

    .dashboard-shell .footer {
        padding-right: 42px;
        padding-left: 42px;
    }

    .dashboard-shell .trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   MOBILE DRAWER
   ========================================================= */

@media (max-width: 1023px) {
    .dashboard-shell .sidebar {
        width: min(280px, calc(100vw - 24px));
        transform: translateX(-105%);
        box-shadow: 14px 0 38px rgba(0, 0, 0, 0.24);
    }

    .dashboard-shell .sidebar.show {
        transform: translateX(0);
    }

    .dashboard-shell .sidebar-close {
        display: grid;
    }

    .dashboard-shell .main {
        width: 100%;
        margin-left: 0;
    }

    .dashboard-shell .topbar {
        padding-right: 22px;
        padding-left: 22px;
    }

    .dashboard-shell .hero {
        grid-template-columns: 1fr;
        gap: 45px;

        min-height: auto;
        padding-top: 68px;
        padding-bottom: 75px;

        text-align: center;
    }

    .dashboard-shell .hero-content {
        max-width: 720px;
        margin: 0 auto;
    }

    .dashboard-shell .hero-content > p {
        margin-right: auto;
        margin-left: auto;
    }

    .dashboard-shell .hero-btns {
        justify-content: center;
    }

    .dashboard-shell .hero-visual {
        order: -1;
        min-height: 370px;
    }

    .dashboard-shell .steps-grid {
        grid-template-columns: 1fr;
        width: min(100%, 620px);
        margin: 0 auto;
    }

    .dashboard-shell .step-arrow {
        display: none;
    }

    .dashboard-shell .plans-grid {
        grid-template-columns: 1fr;
        width: min(100%, 500px);
    }

    .dashboard-shell .plan-card.featured {
        transform: none;
    }

    .dashboard-shell .plan-card.featured:hover {
        transform: translateY(-5px);
    }

    .dashboard-shell .testimonials-grid {
        grid-template-columns: 1fr;
        width: min(100%, 620px);
        margin: 0 auto;
    }

    .dashboard-shell .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   MOBILE 768px
   ========================================================= */

@media (max-width: 768px) {
    .dashboard-shell .topbar {
        min-height: 66px;
        padding-top: 11px;
        padding-bottom: 11px;
    }

    .dashboard-shell .page-title {
        font-size: 19px;
    }

    .dashboard-shell .topbar-user-info {
        display: none;
    }

    .dashboard-shell .user-chip {
        padding: 4px;
    }

    .dashboard-shell .topbar-icon,
    .dashboard-shell .menu-toggle {
        width: 39px;
        height: 39px;
    }

    .dashboard-shell .hero {
        padding: 55px 22px 65px;
    }

    .dashboard-shell .hero h1 {
        font-size: clamp(38px, 8vw, 54px);
        letter-spacing: -2.4px;
    }

    .dashboard-shell .hero-content > p {
        font-size: 15px;
    }

    .dashboard-shell .hero-visual {
        min-height: 330px;
    }

    .dashboard-shell .hero-card {
        padding: 25px 22px;
    }

    .dashboard-shell .hero-card-balance {
        font-size: 42px;
    }

    .dashboard-shell .floating-tag.tag-1 {
        top: 20px;
        right: 0;
    }

    .dashboard-shell .floating-tag.tag-2 {
        bottom: 19px;
        left: 0;
    }

    .dashboard-shell .stats-bar {
        padding: 30px 18px;
    }

    .dashboard-shell .stats-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px 8px;
    }

    .dashboard-shell .stat-item {
        padding: 0 10px;
    }

    .dashboard-shell .stat-item:nth-child(2)::after {
        display: none;
    }

    .dashboard-shell .stat-value {
        font-size: 27px;
    }

    .dashboard-shell .stat-label {
        font-size: 9px;
    }

    .dashboard-shell .section {
        padding: 68px 22px;
    }

    .dashboard-shell .section-header {
        margin-bottom: 40px;
    }

    .dashboard-shell .section-header h2 {
        font-size: 32px;
    }

    .dashboard-shell .section-header p {
        font-size: 14px;
    }

    .dashboard-shell .trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-shell .features-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-shell .testimonial-text {
        min-height: auto;
    }

    .dashboard-shell .footer {
        padding: 48px 22px 22px;
    }

    .dashboard-shell .footer-grid {
        gap: 32px 22px;
    }

    .dashboard-shell .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================================
   MOBILE 430px
   ========================================================= */

@media (max-width: 430px) {
    .dashboard-shell .sidebar {
        width: min(280px, calc(100vw - 20px));
        padding-right: 12px;
        padding-left: 12px;
    }

    .dashboard-shell .topbar {
        gap: 8px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .dashboard-shell .topbar-right {
        gap: 6px;
    }

    .dashboard-shell .hero {
        padding: 43px 14px 54px;
    }

    .dashboard-shell .hero-badge {
        margin-bottom: 19px;
        font-size: 10px;
    }

    .dashboard-shell .hero h1 {
        font-size: 37px;
        letter-spacing: -2px;
    }

    .dashboard-shell .hero-content > p {
        font-size: 13px;
        line-height: 1.65;
    }

    .dashboard-shell .hero-btns {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .dashboard-shell .hero-btns .btn {
        width: 100%;
    }

    .dashboard-shell .hero-visual {
        min-height: 285px;
    }

    .dashboard-shell .hero-card {
        width: calc(100% - 15px);
        padding: 23px 17px;
        border-radius: 17px;
    }

    .dashboard-shell .hero-card-header {
        margin-bottom: 20px;
    }

    .dashboard-shell .hero-card-title {
        font-size: 10px;
    }

    .dashboard-shell .hero-card-growth {
        padding: 6px 8px;
        font-size: 10px;
    }

    .dashboard-shell .hero-card-balance {
        font-size: 34px;
    }

    .dashboard-shell .hero-card-label {
        font-size: 11px;
    }

    .dashboard-shell .hero-card-stats {
        gap: 8px;
    }

    .dashboard-shell .mini-stat {
        padding: 12px 10px;
    }

    .dashboard-shell .mini-stat-value {
        font-size: 15px;
    }

    .dashboard-shell .mini-stat-label {
        font-size: 9px;
    }

    .dashboard-shell .floating-tag {
        padding: 8px 9px;
        font-size: 9px;
    }

    .dashboard-shell .floating-tag.tag-1 {
        top: 4px;
        right: 0;
    }

    .dashboard-shell .floating-tag.tag-2 {
        bottom: 5px;
        left: 0;
    }

    .dashboard-shell .stats-container {
        gap: 22px 3px;
    }

    .dashboard-shell .stat-value {
        font-size: 23px;
    }

    .dashboard-shell .section {
        padding: 58px 14px;
    }

    .dashboard-shell .section-header h2 {
        font-size: 28px;
        letter-spacing: -1px;
    }

    .dashboard-shell .section-header p {
        font-size: 13px;
    }

    .dashboard-shell .step-card {
        padding: 27px 20px;
    }

    .dashboard-shell .plans-grid {
        gap: 14px;
    }

    .dashboard-shell .plan-card {
        padding: 27px 18px 19px;
    }

    .dashboard-shell .plan-duration {
        font-size: 25px;
    }

    .dashboard-shell .plan-calc-row {
        font-size: 12px;
    }

    .dashboard-shell .plan-calc-row strong {
        font-size: 13px;
    }

    .dashboard-shell .calc-note {
        font-size: 11px;
    }

    .dashboard-shell .trust-grid {
        gap: 10px;
    }

    .dashboard-shell .trust-card {
        padding: 22px 11px;
    }

    .dashboard-shell .trust-card h3 {
        font-size: 12px;
    }

    .dashboard-shell .trust-card p {
        font-size: 10px;
    }

    .dashboard-shell .feature-item {
        padding: 19px 16px;
    }

    .dashboard-shell .feature-content h3 {
        font-size: 14px;
    }

    .dashboard-shell .feature-content p {
        font-size: 11px;
    }

    .dashboard-shell .testimonial-card {
        padding: 21px 17px;
    }

    .dashboard-shell .faq-question {
        padding: 16px;
        font-size: 12px;
    }

    .dashboard-shell .faq-answer {
        padding-right: 16px;
        padding-left: 16px;
    }

    .dashboard-shell .faq-item.active .faq-answer {
        padding-right: 16px;
        padding-left: 16px;
    }

    .dashboard-shell .cta-box {
        padding: 42px 18px;
        border-radius: 18px;
    }

    .dashboard-shell .cta-box h2 {
        font-size: 31px;
    }

    .dashboard-shell .cta-box p {
        font-size: 13px;
    }

    .dashboard-shell .footer {
        padding: 42px 16px 20px;
    }

    .dashboard-shell .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 27px 18px;
    }

    .dashboard-shell .footer-brand {
        grid-column: 1 / -1;
    }

    .dashboard-shell .footer-bottom-links {
        gap: 12px;
        flex-wrap: wrap;
    }
}

/* =========================================================
   MOBILE 375px
   ========================================================= */

@media (max-width: 375px) {
    .dashboard-shell .logo-text {
        font-size: 17px;
    }

    .dashboard-shell .hero h1 {
        font-size: 34px;
    }

    .dashboard-shell .hero-card-balance {
        font-size: 31px;
    }

    .dashboard-shell .hero-card-growth {
        padding-right: 7px;
        padding-left: 7px;
    }

    .dashboard-shell .stat-value {
        font-size: 21px;
    }

    .dashboard-shell .stat-label {
        font-size: 8px;
    }

    .dashboard-shell .section-header h2 {
        font-size: 26px;
    }

    .dashboard-shell .plan-duration {
        font-size: 23px;
    }

    .dashboard-shell .plan-rate-badge {
        padding-right: 7px;
        padding-left: 7px;
        font-size: 9px;
    }

    .dashboard-shell .certificates {
        padding: 22px 13px;
    }

    .dashboard-shell .cert-item {
        width: 100%;
        justify-content: center;
        font-size: 10px;
    }
}

/* =========================================================
   MOBILE 320px
   ========================================================= */

@media (max-width: 340px) {
    .dashboard-shell .topbar {
        padding-right: 9px;
        padding-left: 9px;
    }

    .dashboard-shell .page-title {
        font-size: 17px;
    }

    .dashboard-shell .hero {
        padding-right: 10px;
        padding-left: 10px;
    }

    .dashboard-shell .hero h1 {
        font-size: 30px;
        letter-spacing: -1.7px;
    }

    .dashboard-shell .hero-content > p {
        font-size: 12px;
    }

    .dashboard-shell .hero-card {
        width: calc(100% - 8px);
        padding: 20px 13px;
    }

    .dashboard-shell .hero-card-balance {
        font-size: 27px;
    }

    .dashboard-shell .hero-card-title {
        font-size: 9px;
    }

    .dashboard-shell .hero-card-growth {
        font-size: 9px;
    }

    .dashboard-shell .mini-stat {
        padding: 10px 7px;
    }

    .dashboard-shell .mini-stat-value {
        font-size: 13px;
    }

    .dashboard-shell .mini-stat-label {
        font-size: 8px;
    }

    .dashboard-shell .floating-tag {
        padding: 7px 6px;
        font-size: 8px;
    }

    .dashboard-shell .stats-bar {
        padding-right: 8px;
        padding-left: 8px;
    }

    .dashboard-shell .stat-item {
        padding-right: 4px;
        padding-left: 4px;
    }

    .dashboard-shell .stat-value {
        font-size: 19px;
    }

    .dashboard-shell .section {
        padding-right: 10px;
        padding-left: 10px;
    }

    .dashboard-shell .section-header h2 {
        font-size: 24px;
    }

    .dashboard-shell .section-header p {
        font-size: 12px;
    }

    .dashboard-shell .plan-card {
        padding-right: 13px;
        padding-left: 13px;
    }

    .dashboard-shell .plan-calc-row span {
        font-size: 11px;
    }

    .dashboard-shell .plan-calc-row strong {
        font-size: 11px;
    }

    .dashboard-shell .plan-btn {
        font-size: 11px;
    }

    .dashboard-shell .trust-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-shell .trust-icon {
        width: 43px;
        height: 43px;
    }

    .dashboard-shell .trust-card h3 {
        font-size: 10px;
    }

    .dashboard-shell .trust-card p {
        font-size: 9px;
    }

    .dashboard-shell .footer-grid {
        gap: 24px 12px;
    }

    .dashboard-shell .footer-col a {
        font-size: 11px;
    }

    .dashboard-shell .footer-bottom p,
    .dashboard-shell .footer-bottom-links a {
        font-size: 9px;
    }
}

/* =========================================================
   LANDSCAPE MOBILE
   ========================================================= */

@media (max-width: 736px) and (orientation: landscape) {
    .dashboard-shell .hero {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 25px;
        padding-top: 45px;
        padding-bottom: 55px;
        text-align: left;
    }

    .dashboard-shell .hero-visual {
        order: 0;
        min-height: 270px;
    }

    .dashboard-shell .hero-btns {
        justify-content: flex-start;
        flex-direction: row;
    }

    .dashboard-shell .hero-btns .btn {
        width: auto;
    }

    .dashboard-shell .hero h1 {
        font-size: 32px;
    }

    .dashboard-shell .hero-content > p {
        font-size: 12px;
    }

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

    .dashboard-shell .stat-item:not(:last-child)::after {
        display: block;
    }

    .dashboard-shell .plans-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-shell .plan-duration {
        font-size: 20px;
    }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@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;
    }
}

@media (max-width: 1023px) {
    .dashboard-shell .sidebar {
        transform: translateX(-105%);
        transition: transform 0.28s ease;
    }

    .dashboard-shell .sidebar.show,
    .dashboard-shell.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .dashboard-shell .overlay {
        display: none;
        opacity: 0;
        pointer-events: none;
    }

    .dashboard-shell .overlay.show,
    .dashboard-shell.sidebar-open .overlay {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .dashboard-shell.sidebar-open {
        overflow: hidden;
    }
}

@media (min-width: 1024px) {
    .dashboard-shell .sidebar {
        transform: translateX(0);
    }

    .dashboard-shell .overlay {
        display: none !important;
    }
}
/* =========================================================
   GLOBAL RESPONSIVE ENHANCEMENTS
   Applied to all non-admin dashboard pages (.dashboard-shell).
   Admin panels use .admin-shell and are intentionally excluded.
   Covers: 1024 / 900 / 768 / 600 / 500 / 430 / 414 / 390
   / 375 / 340 / 320 px
   ========================================================= */

/* Quick Actions grid (used on quick_actions page) */
.dashboard-shell .action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* Prevent wide tables from breaking the layout */
.dashboard-shell .table-wrap,
.dashboard-shell .data-table,
.dashboard-shell .comparison-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Modals must never exceed the viewport */
.dashboard-shell .modal-body {
    max-width: calc(100vw - 28px);
}

@media (max-width: 1023px) {
    .dashboard-shell .main { padding-bottom: 24px; }
}

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

@media (max-width: 768px) {
    /* Card introspection on smaller screens */
    .dashboard-shell .card { border-radius: 18px; }
    .dashboard-shell .stats-grid { gap: 14px; }
    .dashboard-shell .card-header { flex-wrap: wrap; gap: 10px; }
    .dashboard-shell .profit-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .dashboard-shell .stat-card { padding: 18px; gap: 12px; }
    .dashboard-shell .stat-value { font-size: 20px; }
    .dashboard-shell .welcome-banner { padding: 20px; }
    .dashboard-shell .banner-actions { width: 100%; min-width: 0; }
    .dashboard-shell .banner-actions .btn-primary { width: 100%; }
}

@media (max-width: 500px) {
    .dashboard-shell .profit-row { grid-template-columns: 1fr; gap: 12px; }
    .dashboard-shell .card-header h4 { font-size: 15px; }
    .dashboard-shell .dashboard-grid { gap: 16px; }
}

@media (max-width: 430px) {
    .dashboard-shell .action-grid { grid-template-columns: 1fr; }
    .dashboard-shell .modal-actions { grid-template-columns: 1fr !important; gap: 10px; }
    .dashboard-shell .stat-card { flex-direction: column; align-items: flex-start; }
    .dashboard-shell .stat-icon { width: 44px; height: 44px; }
}

@media (max-width: 414px) {
    .dashboard-shell .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-shell .stat-value { font-size: 18px; }
}

@media (max-width: 390px) {
    .dashboard-shell .topbar { padding: 0 10px; gap: 6px; }
    .dashboard-shell .topbar-right { gap: 6px; }
    .dashboard-shell .welcome-content h3 { font-size: 21px; }
}

@media (max-width: 375px) {
    .dashboard-shell .stat-card { padding: 16px; }
    .dashboard-shell .modal-body { padding: 22px !important; }
}

@media (max-width: 340px) {
    .dashboard-shell .stats-grid { grid-template-columns: 1fr; }
    .dashboard-shell .topbar .icon-btn { width: 36px; height: 36px; }
    .dashboard-shell .form-control,
    .dashboard-shell .content input[type="text"],
    .dashboard-shell .content input[type="email"],
    .dashboard-shell .content input[type="password"],
    .dashboard-shell .content input[type="number"],
    .dashboard-shell .content select,
    .dashboard-shell .content textarea {
        font-size: 15px;
    }
}