/* ==========================
   ROOT & RESET
   ========================== */
:root {
    --primary: #ffffff;
    --primary-rgb: 255, 255, 255;
    --primary-light: rgba(255, 255, 255, 0.15);
    --primary-dark: #e0e0e0;

    --secondary: #cccccc;
    /* White/gray variants */
    --secondary-rgb: 204, 204, 204;
    --secondary-light: rgba(204, 204, 204, 0.15);

    --dark-bg: #000000;
    /* Pure black */
    --card-bg: rgba(10, 10, 10, 0.8);
    /* Glassy card */
    --sidebar-bg: rgba(5, 5, 5, 0.9);
    /* Glassy sidebar */

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.5);

    --border-color: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.2);

    --success: #ffffff;
    --warning: #cccccc;
    --info: #dddddd;
    --danger: #999999;

    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 26px;

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(255, 255, 255, 0.1);

    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    --backdrop-blur: blur(16px);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Inter', sans-serif;
    background-color: var(--dark-bg);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.02) 0%, transparent 25%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ==========================
   GLOBAL LAYOUT
   ========================== */
.dashboard {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

/* ==========================
   SIDEBAR (Glassmorphism)
   ========================== */
.sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border-right: 1px solid var(--border-color);
    padding: 24px 16px;
    position: fixed;
    inset-block: 0;
    left: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-slow), width var(--transition);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 36px;
    padding-left: 10px;
    letter-spacing: -0.02em;
}

.logo i {
    color: var(--primary);
    font-size: 24px;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

.menu {
    list-style: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.menu li {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    position: relative;
    border: 1px solid transparent;
}

.menu li i {
    font-size: 18px;
    width: 22px;
    text-align: center;
    transition: color var(--transition);
}

.menu li:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
}

.menu li.active {
    background: var(--primary-light);
    color: var(--primary);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.menu li.active i {
    color: var(--primary);
}

.menu li.logout {
    margin-top: auto;
    color: var(--danger);
    opacity: 0.8;
}

.menu li.logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    opacity: 1;
}

.menu-badge {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
    background: var(--primary);
    color: #000;
    line-height: 1.4;
}

/* Sidebar collapsed state (desktop) */
.sidebar.collapsed {
    width: 80px;
    padding-inline: 12px;
}

.sidebar.collapsed .menu-text,
.sidebar.collapsed .menu-badge,
.sidebar.collapsed .logo span {
    display: none;
}

.sidebar.collapsed .logo {
    justify-content: center;
    padding-left: 0;
}

.sidebar.collapsed .menu li {
    justify-content: center;
    padding-inline: 0;
}

/* ==========================
   MAIN CONTENT
   ========================== */
.main {
    flex: 1;
    margin-left: 280px;
    padding: 32px;
    width: calc(100% - 280px);
    transition: margin-left var(--transition), width var(--transition);
    position: relative;
}

.main.expanded {
    margin-left: 80px;
    width: calc(100% - 80px);
}

/* Topbar */
.topbar {
    background: var(--card-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    position: sticky;
    top: 16px;
    z-index: 40;
    box-shadow: var(--shadow-sm);
}

.toggle-sidebar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.toggle-sidebar:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    color: var(--primary);
}

.user-info {
    margin-left: 16px;
    display: flex;
    flex-direction: column;
}

.user-info span {
    font-weight: 600;
    font-size: 15px;
}

.user-info small {
    font-size: 12px;
    color: var(--text-secondary);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.notification-bell {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    display: grid;
    place-items: center;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
}

.notification-bell:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.notification-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    border: 1px solid var(--dark-bg);
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: radial-gradient(circle, #2d3748 0%, #1a202c 100%);
    border: 2px solid rgba(255, 255, 255, 0.5);
    display: grid;
    place-items: center;
    color: var(--primary);
    font-size: 18px;
}

/* ==========================
   STATS GRID
   ========================== */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--card-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.4);
    border-color: var(--border-hover);
}

/* Inner glow effect */
.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.05), transparent 70%);
    pointer-events: none;
}

.stat-card h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.2;
}

.stat-card p {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

/* Variants */
.stat-card:nth-child(1) h3 {
    color: #fff;
}

.stat-card.success h3 {
    color: var(--success);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.stat-card.warning h3 {
    color: var(--warning);
    text-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.stat-card.info h3 {
    color: var(--info);
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

/* ==========================
   SECTIONS & CONTENT
   ========================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 600;
}

.section-actions {
    display: flex;
    gap: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: black;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.5);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Orders List */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: all var(--transition);
}

.order-card:hover {
    background: var(--card-bg);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.005);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.order-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.order-package {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.order-id {
    font-size: 12px;
    font-family: monospace;
    color: var(--text-muted);
    margin-top: 4px;
}

.order-status {
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--success);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-completed {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Timeline */
.timeline {
    display: flex;
    position: relative;
    gap: 4px;
    margin-top: 24px;
    background: rgba(255, 255, 255, 0.02);
    padding: 4px;
    border-radius: 99px;
}

.timeline-step {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 99px;
    transition: all 0.3s ease;
    z-index: 1;
}

.timeline-step.active {
    background: var(--primary);
    color: #000;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.4);
}

.timeline-step.completed {
    color: var(--success);
}

/* Forms & Inputs */
.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
    background: rgba(0, 0, 0, 0.5);
}

/* ==========================
   FILTERS
   ========================== */
.filter-container {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.filter-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 99px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.filter-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.filter-pill.active {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary-dark);
}

/* ==========================
   MODAL & PACKAGES
   ========================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

.modal-content {
    background: #0f121a;
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 800px;
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    transform: scale(0.95);
    opacity: 0;
    animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.pkg-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pkg-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.pkg-card.popular {
    border-color: rgba(200, 200, 200, 0.5);
    background: linear-gradient(to bottom right, rgba(200, 200, 200, 0.05), transparent);
}

.pkg-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 10px;
    padding: 2px 8px;
    background: var(--primary);
    color: #000;
    border-radius: 99px;
    font-weight: 700;
}

.pkg-price {
    font-size: 28px;
    font-weight: 700;
    margin: 12px 0;
    color: #fff;
}

.pkg-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.pkg-features i {
    color: var(--primary);
    width: 20px;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes modalIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Two-col layouts in wallet/profile stack */
.two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

/* ==========================
   ADVANCED HOVER & EFFECTS
   ========================== */
.sidebar-hover-effect {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    filter: blur(20px);
}

.quantum-spark {
    position: fixed;
    width: 4px;
    height: 4px;
    background: #ffffff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    filter: blur(1px);
    animation: quantumSpark 0.8s ease-out forwards;
}

@keyframes quantumSpark {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 10px #ffffff;
    }

    100% {
        opacity: 0;
        transform: translate(var(--spark-x, 0), var(--spark-y, 0)) scale(0);
        box-shadow: 0 0 20px #ffffff, 0 0 40px #ffffff;
    }
}

.element-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.cursor-smoke {
    position: fixed;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #ffffff 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    filter: blur(2px);
    transform: translate(-50%, -50%);
    animation: smokeFade 1.2s ease-out forwards;
}

@keyframes smokeFade {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.2);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
}

/* ==========================
   PREMIUM PACKAGES (Modal)
   ========================== */
.premium-package {
    flex: 0 0 300px;
    background: linear-gradient(165deg, rgba(20, 24, 33, 0.6) 0%, rgba(10, 14, 20, 0.8) 100%);
    border-radius: 20px;
    padding: 24px 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    /* Reduced from 480px */
}

.premium-package::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.premium-package:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.1);
    background: linear-gradient(165deg, rgba(25, 30, 41, 0.7) 0%, rgba(15, 20, 28, 0.9) 100%);
}

.premium-package:hover::before {
    opacity: 1;
}

.premium-package.featured {
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.08) 0%, rgba(15, 20, 28, 0.9) 100%);
    transform: scale(1.02);
    box-shadow: 0 10px 30px -5px rgba(255, 255, 255, 0.15);
}

.premium-package.featured:hover {
    transform: scale(1.02) translateY(-8px);
    border-color: #ffffff;
    box-shadow: 0 20px 50px -10px rgba(255, 255, 255, 0.25);
}

/* Badge */
.package-badge {
    display: inline-flex;
    align-self: flex-start;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 99px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    position: relative;
    z-index: 1;
}

.package-badge.badge-basic {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    border-color: rgba(148, 163, 184, 0.2);
}

.package-badge.badge-popular {
    background: rgba(245, 158, 11, 0.15);
    color: #FBBF24;
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.1);
}

.package-badge.badge-premium {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.package-badge.badge-enterprise {
    background: rgba(139, 92, 246, 0.15);
    color: #A78BFA;
    border-color: rgba(139, 92, 246, 0.3);
}

/* Header */
.package-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.package-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    background: none;
    -webkit-text-fill-color: initial;
}

.package-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.premium-package:hover .package-icon {
    background: var(--primary);
    color: #fff;
    transform: rotate(10deg);
}

/* Price */
.price-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
}

.price-amount {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: baseline;
    gap: 4px;
    line-height: 1;
}

.price-amount::after {
    content: 'SOL';
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.7;
    margin-left: 2px;
}

.price-period {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

/* Description */
.package-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Features */
.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    padding-bottom: 8px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform 0.2s ease;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li:hover {
    color: var(--text-primary);
    transform: translateX(2px);
}

.features-list .feature-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    flex-shrink: 0;
    border: none;
}

.features-list li.feature-unavailable {
    opacity: 0.6;
    text-decoration: line-through;
    color: var(--text-muted);
}

.features-list li.feature-unavailable .feature-icon {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

/* Button */
.btn-select {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    font-size: 0.9rem;
}

.btn-select:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: translateY(-2px);
}

.premium-package.featured .btn-select {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.premium-package.featured .btn-select:hover {
    background: #e0e0e0;
    border-color: #e0e0e0;
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.3);
}

.btn-select.featured {
    background: #ffffff;
    border-color: #ffffff;
    color: #000;
}

.btn-select.featured:hover {
    background: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
}

/* Modal Grid Adjustment */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    padding: 10px;
}

/* ==========================
   MOBILE RESPONSIVENESS
   ========================== */
.mobile-menu-toggle {
    display: none;
}

.mobile-overlay {
    display: none;
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .main,
    .main.expanded {
        margin-left: 0;
        width: 100%;
        padding: 20px 16px;
    }

    .mobile-menu-toggle {
        display: flex;
        position: fixed;
        top: 16px;
        left: 16px;
        z-index: 100;
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: rgba(16, 24, 39, 0.9);
        backdrop-filter: blur(12px);
        border: 1px solid var(--border-color);
        color: #fff;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        cursor: pointer;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    }

    .mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(4px);
        z-index: 45;
    }

    .topbar {
        margin-top: 60px;
        /* Space for mobile toggle */
        padding: 12px;
    }

    .topbar-left {
        display: none;
    }

    .topbar-right {
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    .stats {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on mobile! */
        gap: 12px;
    }

    .stat-card {
        padding: 20px 16px;
    }

    .stat-card h3 {
        font-size: 24px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .section-actions {
        width: 100%;
    }

    .section-actions .btn {
        flex: 1;
        justify-content: center;
    }

    .timeline {
        flex-wrap: wrap;
        background: transparent;
        gap: 8px;
        padding: 0;
    }

    .timeline-step {
        flex: 0 0 calc(20% - 8px);
        /* rough approximation */
        font-size: 10px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 6px;
    }

    /* Two-col layouts in wallet/profile stack */
    .two-col {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .timeline-step {
        /* On very small screens, maybe hide non-active steps or stack them? 
        For now keep as is or scrolling */
        min-width: 60px;
    }
}

/* ==========================
   TOAST NOTIFICATIONS
   ========================== */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: var(--card-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 350px;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    font-size: 20px;
    color: var(--primary);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-size: 14px;
}

.toast-message {
    color: var(--text-secondary);
    font-size: 13px;
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

.toast.warning {
    border-left: 4px solid var(--warning);
}

.toast.info {
    border-left: 4px solid var(--info);
}

@media (max-width: 480px) {
    .toast-container {
        right: 10px;
        left: 10px;
    }

    .toast {
        max-width: 100%;
    }
}

/* ==========================
   SELL CONFIGURATION
   ========================== */
.sell-percentage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.sell-pct-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.sell-pct-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.sell-pct-btn.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.sell-pct-btn .pct-value {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #fff;
    transition: color var(--transition);
}

.sell-pct-btn .pct-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0.6;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.sell-pct-btn.active .pct-value {
    color: var(--primary);
}

.sell-pct-btn.active .pct-label {
    opacity: 1;
    color: var(--primary);
}

/* Specific styling for Full Exit */
.sell-pct-btn[data-pct="1.0"] {
    border-color: rgba(245, 158, 11, 0.3);
}

.sell-pct-btn[data-pct="1.0"]:hover {
    border-color: var(--warning);
    background: rgba(245, 158, 11, 0.1);
}

.sell-pct-btn[data-pct="1.0"].active {
    border-color: var(--warning);
    background: rgba(245, 158, 11, 0.15);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.sell-pct-btn[data-pct="1.0"].active .pct-value,
.sell-pct-btn[data-pct="1.0"].active .pct-label {
    color: var(--warning);
}