/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Roboto+Mono:wght@400;500&display=swap');

/* Utility Classes */
.bg-alt {
    background-color: var(--bg-gray);
}

.mt-sm {
    margin-top: 1rem;
}

.mt-md {
    margin-top: 2rem;
}

.mt-lg {
    margin-top: 3rem;
}

.mt-xl {
    margin-top: 5rem;
}

.mb-sm {
    margin-bottom: 1rem;
}

.mb-md {
    margin-bottom: 2rem;
}

.mb-lg {
    margin-bottom: 3rem;
}

.mb-xl {
    margin-bottom: 4rem;
}

.m-0 {
    margin: 0 !important;
}

.p-0 {
    padding: 0 !important;
}

.p-6 {
    padding: 1.5rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Flex Utilities */
.flex {
    display: flex;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.items-center {
    align-items: center;
}

.items-end {
    align-items: flex-end;
}

.gap-2 {
    gap: 0.5rem;
}

/* Text Utilities */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.25rem;
}

.text-xl {
    font-size: 1.5rem;
}

.fw-bold {
    font-weight: 700;
}

.text-primary-light {
    color: var(--primary-light);
}

.text-accent {
    color: var(--accent);
}

.text-secondary {
    color: var(--secondary);
}

/* Borders */
.border-b {
    border-bottom: 1px solid var(--border-light);
}

.border-0 {
    border: none !important;
}

.h-full {
    height: 100%;
}

/* Flex & Layout Utilities */
.full-height-center {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0 !important;
    /* Override standard section padding */
}

.w-full {
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.text-center {
    text-align: center;
}

.no-decoration {
    text-decoration: none;
}

.text-primary {
    color: var(--primary);
}

.mb-sm {
    margin-bottom: 1rem;
}

/* Glassmorphism Utilities */
.glass-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.6) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.auth-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
}

.mt-lg {
    margin-top: 3rem;
}

.mt-xl {
    margin-top: 5rem;
}

/* 
   DEFAULT THEME = DARK
   We set the dark values in :root
*/
:root {
    /* Color Palette - RealmHost Premium */
    --primary: #4f46e5;
    /* Indigo 600 - More modern than standard blue */
    --primary-light: #818cf8;
    --primary-dark: #3730a3;

    --secondary: #0ea5e9;
    /* Sky 500 */
    --accent: #10b981;
    /* Emerald 500 */

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #0ea5e9 100%);
    --gradient-glow: linear-gradient(135deg, rgba(79, 70, 229, 0.4) 0%, rgba(14, 165, 233, 0.4) 100%);

    /* Dark Mode Defaults - Deep Space Theme */
    --bg-light: #0f172a;
    /* Slate 900 */
    --bg-dark: #020617;
    /* Slate 950 */
    --bg-card: rgba(30, 41, 59, 0.7);
    /* Slate 800 with opacity */
    --bg-gray: #1e293b;
    /* Slate 800 Solid */

    --text-main: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    --border-light: rgba(148, 163, 184, 0.1);
    --border-highlight: rgba(148, 163, 184, 0.2);

    /* Glass Effects */
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.03);
    --backdrop-blur: blur(16px);

    --backdrop-blur: blur(16px);

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;

    /* Padding Utility */
    .pt-header {
        padding-top: calc(var(--header-height) + 2rem);
    }

    /* Account Settings Styles */
    .settings-nav {
        display: flex;
        gap: 0.5rem;
        margin-bottom: 2rem;
        background: rgba(15, 23, 42, 0.6);
        padding: 0.5rem;
        border-radius: var(--radius-lg);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .settings-nav-btn {
        flex: 1;
        padding: 0.75rem 1.5rem;
        background: transparent;
        border: none;
        border-radius: var(--radius-md);
        color: var(--text-muted);
        font-family: inherit;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    .settings-nav-btn:hover {
        color: var(--text-main);
        background: rgba(255, 255, 255, 0.05);
    }

    .settings-nav-btn.active {
        background: var(--primary);
        background: var(--gradient-primary);
        color: white;
        box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    }

    .avatar-large {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2.5rem;
        font-weight: 600;
        color: white;
        box-shadow: 0 8px 24px rgba(79, 70, 229, 0.3);
        position: relative;
        border: 4px solid rgba(255, 255, 255, 0.1);
    }

    .avatar-edit-btn {
        position: absolute;
        bottom: 0;
        right: 0;
        width: 32px;
        height: 32px;
        background: var(--bg-card);
        border: 2px solid var(--bg-gray);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        color: var(--text-main);
    }

    .avatar-edit-btn:hover {
        background: var(--primary);
        color: white;
        transform: scale(1.1);
    }

    .security-card {
        background: rgba(15, 23, 42, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: var(--radius-md);
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    /* Settings Tab Logic */
    .settings-tab-content {
        display: none;
        animation: fadeIn 0.3s ease;
    }

    .settings-tab-content.active {
        display: block;
    }

    /* Toggle Switch */
    .toggle-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.25rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .toggle-item:last-child {
        border-bottom: none;
    }

    .toggle-info h4 {
        font-weight: 500;
        margin-bottom: 0.25rem;
    }

    .toggle-info p {
        color: var(--text-muted);
        font-size: 0.875rem;
    }

    .toggle-switch {
        position: relative;
        width: 52px;
        height: 28px;
    }

    .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    .toggle-slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(255, 255, 255, 0.1);
        transition: 0.4s;
        border-radius: 28px;
    }

    .toggle-slider:before {
        position: absolute;
        content: "";
        height: 22px;
        width: 22px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: 0.4s;
        border-radius: 50%;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .toggle-switch input:checked+.toggle-slider {
        background: linear-gradient(135deg, var(--primary), var(--secondary));
    }

    .toggle-switch input:checked+.toggle-slider:before {
        transform: translateX(24px);
    }

    /* Danger Zone */
    .danger-zone {
        background: rgba(239, 68, 68, 0.05);
        border: 1px solid rgba(239, 68, 68, 0.2);
        border-radius: var(--radius-md);
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .danger-zone h4 {
        color: #ef4444;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .danger-zone p {
        color: var(--text-muted);
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .btn-danger {
        background: transparent;
        color: #ef4444;
        padding: 0.75rem 1.5rem;
        border: 1px solid #ef4444;
        border-radius: 50px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }

    .btn-danger:hover {
        background: #ef4444;
        color: white;
    }

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --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(79, 70, 229, 0.15);
}

/* Base resets & improvements */
body {
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(79, 70, 229, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(14, 165, 233, 0.08), transparent 25%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Outfit', 'Inter', sans-serif;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(79, 70, 229, 0.2);
    }

    50% {
        box-shadow: 0 0 25px rgba(79, 70, 229, 0.4);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Light Mode Overrides */
.light-mode {
    /* Premium Light Theme - Slate Palette */
    --bg-light: #f8fafc;
    /* Slate 50 - Softer than pure white */
    --bg-dark: #f1f5f9;
    /* Slate 100 - For contrast backgrounds */
    --bg-card: #ffffff;
    /* Pure white cards */
    --bg-gray: #f1f5f9;
    /* Slate 100 */

    --text-main: #0f172a;
    /* Slate 900 - Sharp contrast */
    --text-secondary: #334155;
    /* Slate 700 */
    --text-muted: #64748b;
    /* Slate 500 */

    --border-light: #e2e8f0;
    /* Slate 200 */
    --border-highlight: #cbd5e1;
    /* Slate 300 */

    /* Improved Shadows for Light Mode */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 15px rgba(79, 70, 229, 0.2);

    /* Glass Effects for Light Mode */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
}

/* Light Mode Specific Style Overrides */
.light-mode .navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.light-mode .bg-alt {
    background-color: #f1f5f9;
}

/* 
 Components using DEFAULT vars will automatically be Dark.
 Specific Light Mode overrides below:
*/

.light-mode .feature-card,
.light-mode .pricing-card,
.light-mode .ai-demo-container,
.light-mode .ai-input-area,
.light-mode .live-status,
.light-mode .settings-card,
.light-mode .profile-card,
.light-mode .checkout-card,
.light-mode .payment-option-content {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.light-mode .ai-chat-box {
    background: #f8fafc;
    border: 1px solid var(--border-light);
}

.light-mode .chat-message.ai {
    background: white;
    border: 1px solid var(--border-light);
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}

.light-mode .form-input {
    background: #ffffff;
    border: 1px solid var(--border-light);
    color: var(--text-main);
}

.light-mode .form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Dark Mode Default Updates (which are now just standard or :root derived) */
/* Update navbar default (Dark) */
.navbar {
    /* Was light opacity, now dark opacity */
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid var(--border-light);
}

/* Invert Text Colors logic not needed as we use vars */

/* Buttons */
.light-mode .btn-secondary {
    background-color: white;
    color: var(--text-main);
}

.btn-secondary {
    /* Default Dark */
    background-color: var(--bg-gray);
    color: var(--text-main);
    border: 1px solid var(--border-light);
}

/* Footer Defaults (Dark) */
.footer {
    background-color: #020617;
    /* Very dark footer default */
    border-top: 1px solid var(--border-light);
}

/* Footer Light Mode Override */
.light-mode .footer {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-light);
}

/* Fix shadows/borders highlights */
.feature-card:hover,
.pricing-card:hover {
    /* Default Dark Hover */
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.light-mode .feature-card:hover,
.light-mode .pricing-card:hover {
    /* Light Hover */
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}

/* 3D Background Container */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    /* Static as requested previously */
    opacity: 0.6;
    /* Subtle on light bg */
}

/* Typography Helpers */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.font-mono {
    font-family: 'Roboto Mono', monospace;
}

.text-gradient {
    background: linear-gradient(135deg, #a5b4fc 0%, #6366f1 50%, #0ea5e9 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradient-flow 3s linear infinite;
}

@keyframes gradient-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--spacing-lg) 0;
}

/* Notification Pill - Glassmorphism Style */
.notification-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem 0.5rem 0.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.15) 0%, rgba(14, 165, 233, 0.15) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.notification-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.notification-pill:hover::before {
    transform: translateX(100%);
}

.notification-pill:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 24px rgba(79, 70, 229, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(79, 70, 229, 0.3);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.25) 0%, rgba(14, 165, 233, 0.25) 100%);
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    background: var(--gradient-primary);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(79, 70, 229, 0);
    }
}

.pill-text {
    color: var(--text-secondary);
}

.pill-text strong {
    color: var(--primary-light);
    font-weight: 600;
}

.pill-arrow {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}

.notification-pill:hover .pill-arrow {
    transform: translateX(4px);
    color: var(--primary-light);
}

/* Light Mode Notification Pill */
.light-mode .notification-pill {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(14, 165, 233, 0.08) 100%);
    border-color: rgba(79, 70, 229, 0.2);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.light-mode .notification-pill:hover {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.15) 0%, rgba(14, 165, 233, 0.15) 100%);
    box-shadow:
        0 8px 24px rgba(79, 70, 229, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.light-mode .pill-text {
    color: var(--text-main);
}

/* Mobile Responsiveness for Notification Pill */
@media (max-width: 768px) {
    .notification-pill {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        text-align: center;
        max-width: 90%;
    }

    .pill-badge {
        margin-bottom: 0.25rem;
    }

    .pill-text {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .pill-arrow {
        display: none;
    }
}

/* ===== LATEST UPDATES SECTION ===== */
.updates-section {
    padding: 5rem 0;
    position: relative;
}

.updates-section .section-header {
    margin-bottom: 3rem;
}

.updates-section .section-header h2 {
    margin-bottom: 0.5rem;
}

.updates-section .section-header p {
    font-size: 1.1rem;
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Update Card Base */
.update-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.7) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.update-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.update-card:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(79, 70, 229, 0.1);
}

.update-card:hover::before {
    opacity: 1;
}

/* Card Icon */
.update-card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.update-card-icon i {
    width: 24px;
    height: 24px;
    color: white;
}

.update-card:hover .update-card-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* Icon Variants */
.update-icon {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.tutorial-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.promo-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Card Content */
.update-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.update-card-content h3 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-main);
    margin: 0;
}

.update-card-content p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Badge Styles */
.update-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.25rem 0.625rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-update {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.badge-tutorial {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-promo {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Meta and Link */
.update-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.update-meta>span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.update-meta>span i {
    width: 14px;
    height: 14px;
}

.update-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary-light);
    text-decoration: none;
    transition: all 0.2s ease;
}

.update-link i {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.update-link:hover {
    color: var(--primary);
}

.update-link:hover i {
    transform: translateX(4px);
}

/* Promo Card Highlight */
.promo-highlight {
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.08) 0%, rgba(30, 41, 59, 0.6) 100%);
    border-color: rgba(245, 158, 11, 0.15);
}

.promo-highlight:hover {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow:
        0 12px 32px rgba(245, 158, 11, 0.1),
        0 0 0 1px rgba(245, 158, 11, 0.15);
}

.promo-highlight::before {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

/* Updates Footer */
.updates-footer {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.updates-footer .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.updates-footer .btn i {
    width: 18px;
    height: 18px;
}

/* Light Mode */
.light-mode .update-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--border-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.light-mode .update-card:hover {
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(79, 70, 229, 0.1);
}

.light-mode .update-card-content h3 {
    color: var(--text-main);
}

.light-mode .update-meta {
    border-color: var(--border-light);
}

.light-mode .promo-highlight {
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.05) 0%, rgba(255, 255, 255, 0.9) 100%);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .updates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .updates-section {
        padding: 3rem 0;
    }

    .updates-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .update-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .update-card-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .update-card-icon i {
        width: 20px;
        height: 20px;
    }

    .update-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}


h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
    line-height: 1.2;
}



.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
}

/* Buttons */
.cta-group {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: center;
}

/* Modern Buttons */
.btn {
    padding: 0.875rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.btn-primary:hover::after {
    transform: translateX(100%);
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-light);
    color: var(--primary-light);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.1) inset;
}

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.1);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2) inset;
    transform: translateY(-2px);
}

/* Scale-only button hover (no shimmer effect) */
.btn-scale::after {
    display: none !important;
}

.btn-scale:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.btn-icon-only {
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Header & Nav */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(2, 6, 23, 0.9);
    border-bottom-color: var(--primary-dark);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    z-index: 2;
}

/* Logo Image */
.logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .logo-img {
        height: 30px;
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: auto;
    /* Override legacy */
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    max-width: 900px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 700px;
}

.trust-signal {
    margin-top: 3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--bg-gray);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

/* Coin Actions Dropdown */
.coin-actions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    background: var(--bg-gray);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    overflow: hidden;
}

.coin-action-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    text-decoration: none;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s;
}

.coin-action-item:last-child {
    border-bottom: none;
}

.coin-action-item:hover {
    background: var(--bg-light);
}

.coin-action-item i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-md);
    color: white;
    flex-shrink: 0;
}

.coin-action-item strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.coin-action-item p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(26, 115, 232, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* AI Demo Section */
.ai-demo-container {
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.ai-chat-box {
    padding: 2rem;
    background: #f8faff;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    padding: 1rem;
    border-radius: 12px;
    max-width: 80%;
    font-size: 0.95rem;
}

.chat-message.ai {
    background: var(--bg-gray);
    border: 1px solid var(--border-light);
    align-self: flex-start;
    border-top-left-radius: 0;
}

.chat-message.user {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    border-top-right-radius: 0;
}

.ai-input-area {
    padding: 1rem;
    background: var(--bg-light);
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 0.5rem;
}

.ai-input-area input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    outline: none;
    font-family: inherit;
}

.ai-input-area input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

/* Pricing Section */
#pricing {
    padding-top: 5rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    align-items: flex-start;
}

/* Glass Cards */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.pricing-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-main);
}

.pricing-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.pricing-card:hover::before {
    opacity: 1;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-light);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.pricing-card.popular {
    background: linear-gradient(145deg, rgba(49, 46, 129, 0.6) 0%, rgba(30, 27, 75, 0.8) 100%);
    border: 1px solid var(--primary);
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.15);
}

.popular-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    left: auto;
    transform: none;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
    color: var(--text-main);
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Refactored Pricing Card Styles */
.pricing-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.pricing-header h3 {
    margin-bottom: 0.25rem;
    font-size: 1.5rem;
}

.plan-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.pricing-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(14, 165, 233, 0.1));
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.05);
}

.pricing-icon-box i {
    width: 32px;
    height: 32px;
}

.pricing-card.popular .pricing-icon-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.1));
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.2);
}

.feature-list-new {
    list-style: none;
    margin: 2rem 0;
    padding: 0;
}

.feature-list-new li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 1rem;
}

/* Feature Lists */
.feature-list-new li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.feature-list-new li:last-child {
    border-bottom: none;
}

.feature-list-new li::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Footer Styling */
.footer {
    background: linear-gradient(to top, #020617 0%, #0f172a 100%);
    border-top: 1px solid var(--border-light);
    padding: 5rem 0 3rem;
    margin-top: 6rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.5;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Mobile & Responsive */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
}

@media (max-width: 768px) {

    /* Container & Layout */
    .container {
        padding: 0 1.5rem;
        width: 100%;
        max-width: 100%;
    }

    /* Typography Scale for Mobile */
    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    p {
        font-size: 1rem;
    }

    .text-lg {
        font-size: 1.125rem;
    }

    .text-xl {
        font-size: 1.25rem;
    }

    /* Navigation - Full Screen Overlay */
    .mobile-menu-btn {
        display: block;
        z-index: 102;
        /* Above navbar background */
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100%;
        /* Full width */
        background: rgba(2, 6, 23, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 6rem 2rem 2rem;
        gap: 1.5rem;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 101;
        /* Above everything else */
        align-items: center;
        justify-content: flex-start;
    }

    .nav-links.active {
        transform: translateX(0);
        display: flex;
        /* Ensure it stays flex */
    }

    .nav-links a {
        font-size: 1.25rem;
        width: 100%;
        text-align: center;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-actions {
        display: flex;
        gap: 0.5rem;
        align-items: center;
    }

    /* Make Client Area button compact on mobile */
    .nav-actions .btn-secondary {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    /* Add "Client Area" to mobile menu via JS or CSS ordering if possible, 
       but for now we will rely on users scrolling or adding it to .nav-links in HTML if strictly needed. 
       Actually, let's make .nav-actions visible INSIDE menu? 
       No, structure is separate. I'll rely on the user adding a link or just show it below.
    */

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-column {
        align-items: center;
    }

    .footer-links li {
        justify-content: center;
    }

    /* Hero Section */
    .hero {
        padding-top: calc(var(--header-height) + 2rem);
        min-height: auto;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .cta-group {
        width: 100%;
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        /* Stack vertically */
        gap: 1.5rem;
    }

    /* Pricing Grid */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Glass Cards adjustment */
    .auth-card,
    .glass-card {
        padding: 1.5rem;
    }

    /* Modals */
    .modal-content {
        width: 95%;
        margin: 1rem;
        max-height: 85vh;
    }
}

/* Live Status Widget Removed */

/* Support Button Adjustment */
.support-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: transform 0.2s;
}

.support-btn:hover {
    transform: translateY(-2px);
}

/* Settings Styles Removed */

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content {
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-light);
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    font-size: 1.25rem;
}

.modal-header h3 i {
    color: var(--primary);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--text-main);
}

.modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-light);
}

/* E-Wallet Options */
.ewallet-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.ewallet-option {
    position: relative;
    cursor: pointer;
}

.ewallet-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ewallet-option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-light);
    transition: all 0.3s ease;
    min-height: 120px;
}

.ewallet-option:hover .ewallet-option-content {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(26, 115, 232, 0.2);
}

.ewallet-option input[type="radio"]:checked+.ewallet-option-content {
    border-color: var(--primary);
    background: rgba(26, 115, 232, 0.05);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.ewallet-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    color: white;
}

.ewallet-icon i {
    width: 24px;
    height: 24px;
}

.ewallet-option-content span {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
}

@media (max-width: 480px) {
    .ewallet-options {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1.25rem;
    }
}

/* User Profile Styles */
.profile-container {
    padding-top: 6rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.profile-card {
    background: var(--bg-gray);
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    padding: 3rem 2rem;
    text-align: center;
}

/* Dark mode override removed - default is now dark */

.profile-header {
    margin-bottom: 2rem;
    text-align: center;
}

.avatar-wrapper {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    /* Default Dark: Border matches bg gray or transparent */
    border: 4px solid var(--bg-gray);
    box-shadow: var(--shadow-md);
}

.light-mode .avatar-img {
    border-color: white;
}

.role-badge {
    display: inline-block;
    background: rgba(26, 115, 232, 0.1);
    color: var(--primary);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.profile-details {
    text-align: left;
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

.detail-item:last-child {
    border-bottom: none;
}

.label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.value {
    font-weight: 500;
    color: var(--text-main);
}

.profile-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* --- Client Area Dashboard Styles --- */

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    padding-top: 4rem;
    display: grid;
    grid-template-columns: 320px 1px 1fr;
    gap: 0;
    height: 100vh;
    align-items: stretch;
    overflow: hidden;
}

/* Vertical Divider Line */
.dashboard-divider {
    width: 1px;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(255, 255, 255, 0.1) 10%,
            rgba(255, 255, 255, 0.1) 90%,
            transparent 100%);
    height: 100%;
}

@media (max-width: 900px) {
    .dashboard-container {
        grid-template-columns: 1fr;
        padding-top: 5rem;
        height: auto;
        overflow: visible;
    }

    .dashboard-divider {
        display: none;
    }
}

/* Sidebar Card - Independent Scroll */
.sidebar-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.6) 100%);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 0;
    padding: 2rem;
    box-shadow: none;
    position: relative;
    top: auto;
    height: calc(100vh - 4rem);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.sidebar-card::-webkit-scrollbar {
    width: 6px;
}

.sidebar-card::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-card::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.sidebar-card::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Dashboard Main - Independent Scroll */
.dashboard-main {
    height: calc(100vh - 4rem);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.dashboard-main::-webkit-scrollbar {
    width: 6px;
}

.dashboard-main::-webkit-scrollbar-track {
    background: transparent;
}

.dashboard-main::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.dashboard-main::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 900px) {
    .sidebar-card {
        height: auto;
        overflow: visible;
        border-radius: var(--radius-lg);
        margin: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .dashboard-main {
        height: auto;
        overflow: visible;
        padding: 1rem;
    }
}

.avatar-initials {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-lg);
}

.sidebar-stats {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.stat-row i {
    width: 16px;
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* Dashboard Content Grid (Services + Commlink) */
.dashboard-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (max-width: 1000px) {
    .dashboard-content-grid {
        grid-template-columns: 1fr;
    }
}

/* Commlink Widget Styles */
.commlink-widget {
    display: flex;
    flex-direction: column;
    height: 420px;
    max-height: 420px;
}

@media (max-width: 1000px) {
    .commlink-widget {
        height: 350px;
    }
}

.commlink-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.commlink-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.commlink-title i {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.commlink-title h3 {
    margin: 0;
    font-size: 1rem;
}

.commlink-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.commlink-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
}

.commlink-welcome i {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.commlink-welcome p {
    font-size: 0.9rem;
    margin: 0;
}

/* Commlink Message Item */
.commlink-msg {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.commlink-msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.commlink-msg-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.commlink-msg-avatar span {
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
}

.commlink-msg-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.commlink-msg-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.commlink-msg-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-main);
}

.commlink-msg-name.admin {
    color: #f59e0b;
}

.commlink-msg-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.commlink-msg-badge {
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-weight: 600;
}

.commlink-msg-content {
    font-size: 0.9rem;
    color: var(--text-main);
    background: var(--bg-gray);
    padding: 0.5rem 0.75rem;
    border-radius: 0 8px 8px 8px;
    border: 1px solid var(--border-light);
    word-break: break-word;
}

.commlink-msg.self .commlink-msg-content {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 8px 0 8px 8px;
}

.commlink-msg.self {
    flex-direction: row-reverse;
}

.commlink-msg.self .commlink-msg-body {
    align-items: flex-end;
}

/* Commlink Input */
.commlink-input {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid var(--border-light);
    background: var(--bg-gray);
}

.commlink-input input {
    flex: 1;
    padding: 0.65rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    background: var(--bg-light);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.commlink-input input:focus {
    border-color: var(--primary);
}

.commlink-input input::placeholder {
    color: var(--text-muted);
}

.commlink-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, opacity 0.2s;
    flex-shrink: 0;
}

.commlink-send-btn:hover {
    transform: scale(1.05);
}

.commlink-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.commlink-send-btn i {
    width: 18px;
    height: 18px;
}

/* Light mode overrides for commlink */
.light-mode .commlink-messages {
    background: #f8fafc;
}

.light-mode .commlink-msg-content {
    background: white;
}

.light-mode .commlink-input {
    background: white;
}

.light-mode .commlink-input input {
    background: #f8fafc;
}

/* Commlink User Profile Popup */
.commlink-user-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.commlink-user-popup.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.commlink-user-popup.visible {
    opacity: 1;
}

.commlink-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.commlink-popup-content {
    position: relative;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    min-width: 280px;
    max-width: 320px;
    border: 1px solid var(--border-light);
    animation: popupSlideIn 0.3s ease;
}

@keyframes popupSlideIn {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.commlink-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s;
}

.commlink-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-main);
}

.commlink-popup-close i {
    width: 16px;
    height: 16px;
}

.commlink-popup-avatar {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: visible;
}

.commlink-popup-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.commlink-popup-avatar>span:not(.commlink-online-dot) {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 2rem;
    font-weight: 600;
}

.commlink-online-dot {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid var(--bg-card);
    z-index: 10;
}

.commlink-online-dot.online {
    background: #22c55e;
}

.commlink-online-dot.offline {
    background: #6b7280;
}

.commlink-popup-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.commlink-popup-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.commlink-popup-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.commlink-popup-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.commlink-popup-row i {
    width: 16px;
    height: 16px;
}

.commlink-popup-row i.online {
    color: #22c55e;
}

.commlink-popup-row i.offline {
    color: #6b7280;
}

.commlink-status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.commlink-status-dot.online {
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
}

.commlink-status-dot.busy {
    background: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
}

.commlink-status-dot.offline {
    background: #6b7280;
}

.commlink-online-dot.busy {
    background: #f59e0b;
}

/* Make commlink avatars clickable */
.commlink-msg-avatar {
    cursor: pointer;
    transition: transform 0.2s;
}

.commlink-msg-avatar:hover {
    transform: scale(1.1);
}

/* Sidebar Profile Avatar */
.avatar-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 2rem;
    font-weight: 600;
    border: 3px solid var(--primary);
    overflow: hidden;
}

/* Dashboard Metrics */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.6) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3);
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.05), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-icon.primary {
    background: rgba(26, 115, 232, 0.1);
    color: var(--primary);
}

.stat-icon.secondary {
    background: rgba(106, 17, 203, 0.1);
    color: var(--secondary);
}

.stat-icon.accent {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
}

.stat-icon.gold {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.stat-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.stat-info p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

/* Content Card & Table */
.content-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.6) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.card-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    /* Changed for border-radius on rows if needed, or stick to collapse */
    border-spacing: 0;
    font-size: 0.95rem;
}

.data-table th {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.data-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    transition: background 0.2s;
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* Sidebar Navigation Links */
.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0.5rem;
    border: 1px solid transparent;
}

.sidebar-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    transform: translateX(4px);
}

.sidebar-nav-link.active {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-light);
    border-color: rgba(79, 70, 229, 0.2);
    font-weight: 500;
}

.sidebar-nav-link i {
    width: 18px;
    height: 18px;
}

.data-table th {
    background: rgba(0, 0, 0, 0.2);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.service-name {
    font-weight: 600;
    color: var(--text-main);
}

.service-domain {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.badge.active {
    background: rgba(0, 200, 81, 0.15);
    color: #00c851;
}

.badge.pending {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
    padding: 4px;
}

.btn-icon:hover {
    color: var(--primary);
}

/* Profile Dropdown Styles */
.profile-dropdown-wrapper {
    position: relative;
}

.avatar-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.avatar-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.avatar-initials-sm {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 260px;
    background: var(--bg-gray);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

.profile-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.dropdown-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dropdown-user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dropdown-name {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-email {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-light);
    margin: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}

.dropdown-item:hover {
    background: rgba(26, 115, 232, 0.1);
    color: var(--text-main);
}

.dropdown-item i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.dropdown-arrow {
    margin-left: auto;
    opacity: 0.5;
}

.status-item {
    cursor: default;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.online {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.status-dot.offline {
    background: var(--text-muted);
}

.logout-item {
    color: #ef4444;
}

.logout-item:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Light mode overrides */
.light-mode .profile-dropdown {
    background: white;
}

.light-mode .dropdown-item:hover {
    background: rgba(26, 115, 232, 0.05);
}

/* Chat Widget Styles */
.chat-toggle-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(26, 115, 232, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 1000;
}

.chat-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(26, 115, 232, 0.5);
}

.chat-toggle-btn i {
    width: 24px;
    height: 24px;
}

.chat-panel {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 380px;
    max-width: calc(100vw - 48px);
    height: 500px;
    max-height: calc(100vh - 150px);
    background: var(--bg-gray);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    overflow: hidden;
}

.chat-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

/* Chat Header Tabs */
.chat-header-tabs {
    display: flex;
    gap: 0.5rem;
    flex: 1;
}

.chat-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
}

.chat-tab i {
    width: 16px;
    height: 16px;
}

.chat-tab:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.chat-tab.active {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-badge {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.3);
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    font-weight: 600;
}

/* Chat Tab Content */
.chat-tab-content {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.chat-tab-content.active {
    display: flex;
}


.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.chat-header-info i {
    width: 24px;
    height: 24px;
}

.chat-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.chat-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chat-close-btn i {
    width: 18px;
    height: 18px;
}

.chat-panel-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--bg-light);
}

.chat-panel-body .chat-message {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.chat-panel-body .chat-message.ai {
    background: var(--bg-gray);
    border: 1px solid var(--border-light);
    align-self: flex-start;
    border-top-left-radius: 4px;
}

.chat-panel-body .chat-message.user {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    align-self: flex-end;
    border-top-right-radius: 4px;
}

.chat-panel-body .chat-message p {
    margin: 0;
}

.chat-panel-footer {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid var(--border-light);
    background: var(--bg-gray);
}

.chat-panel-footer input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 24px;
    background: var(--bg-light);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.chat-panel-footer input:focus {
    border-color: var(--primary);
}

.chat-panel-footer input::placeholder {
    color: var(--text-muted);
}

.chat-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    transform: scale(1.05);
}

.chat-send-btn i {
    width: 18px;
    height: 18px;
}

/* Light mode overrides for chat */
.light-mode .chat-panel {
    background: white;
}

.light-mode .chat-panel-body {
    background: #f8fafc;
}

.light-mode .chat-panel-body .chat-message.ai {
    background: white;
}

.light-mode .chat-panel-footer {
    background: white;
}

.light-mode .chat-panel-footer input {
    background: #f8fafc;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .chat-panel {
        right: 12px;
        bottom: 90px;
        width: calc(100vw - 24px);
        height: calc(100vh - 120px);
    }

    .chat-toggle-btn {
        right: 16px;
        bottom: 16px;
    }
}

/* Quick Question Templates */
.chat-quick-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quick-question-btn {
    background: var(--bg-gray);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.quick-question-btn:hover {
    background: rgba(26, 115, 232, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.light-mode .quick-question-btn {
    background: white;
}

.light-mode .quick-question-btn:hover {
    background: rgba(26, 115, 232, 0.05);
}

/* Checkout Page Styles */
.checkout-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }
}

.checkout-card {
    background: var(--bg-gray);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.checkout-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.checkout-card-header h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    margin: 0;
}

.checkout-card-header h2 i {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.checkout-card-body {
    padding: 1.5rem;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.order-item-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.order-item-icon i {
    width: 28px;
    height: 28px;
}

.order-item-details {
    flex: 1;
}

.order-item-details h3 {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
}

.order-item-price {
    text-align: right;
}

.order-item-price span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.order-item-price small {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.order-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.spec-item i {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.order-divider {
    height: 1px;
    background: var(--border-light);
    margin: 1.5rem 0;
}

.billing-period label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--text-main);
}

.period-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.period-btn {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-main);
    font-family: inherit;
}

.period-btn:hover {
    border-color: var(--primary);
}

.period-btn.active {
    background: rgba(26, 115, 232, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}



.order-total {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
}

.total-row.grand-total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
}



/* Payment Methods */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .payment-methods {
        grid-template-columns: 1fr;
    }
}

.payment-option {
    cursor: pointer;
    position: relative;
}

.payment-option input {
    display: none;
}

.payment-option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: var(--bg-light);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 120px;
}

/* Gradient border effect on hover */
.payment-option-content::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.payment-option:hover .payment-option-content::before {
    opacity: 1;
}

.payment-option-content i {
    width: 32px;
    height: 32px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.payment-option-content span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.3s ease;
    text-align: center;
}

.payment-option:hover .payment-option-content {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 115, 232, 0.15);
    border-color: transparent;
}

.payment-option:hover .payment-option-content i,
.payment-option:hover .payment-option-content span {
    color: var(--primary);
}

/* Active state */
.payment-option.active .payment-option-content {
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.1), rgba(56, 189, 248, 0.1));
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(26, 115, 232, 0.2), inset 0 0 0 2px var(--primary);
}

.payment-option.active .payment-option-content::before {
    opacity: 1;
}

.payment-option.active .payment-option-content i,
.payment-option.active .payment-option-content span {
    color: var(--primary);
    font-weight: 600;
}

/* Checkmark indicator for active state */
.payment-option.active .payment-option-content::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    animation: checkmark-pop 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes checkmark-pop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Light mode */
.light-mode .payment-option-content {
    background: #f8fafc;
}

.light-mode .payment-option.active .payment-option-content {
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.08), rgba(56, 189, 248, 0.08));
}



/* Terms Checkbox */
.terms-checkbox {
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.checkbox-label input {
    margin-top: 0.25rem;
    accent-color: var(--primary);
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Checkout Button */
.checkout-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.checkout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.checkout-btn i {
    width: 20px;
    height: 20px;
}

.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Secure Badge */
.secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.secure-badge i {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

/* Back Link */
.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--primary);
}

.back-link i {
    width: 18px;
    height: 18px;
}

/* Light mode overrides for checkout */
.light-mode .period-btn {
    background: var(--bg-gray);
    color: var(--text-main);
    border: 1px solid var(--border-light);
}

.light-mode .period-btn.active {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    border-color: var(--primary);
}



/* Loading States & Error Messages */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn .spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Success/Error States */
input.success {
    border-color: var(--accent) !important;
}

input.error {
    border-color: #ef4444 !important;
}

button.success {
    background: var(--accent) !important;
}

/* Responsive checkout improvements */
@media (max-width: 768px) {
    .checkout-container {
        padding: 0 1rem;
    }

    .order-specs {
        grid-template-columns: 1fr;
    }

    .period-options {
        grid-template-columns: 1fr;
    }

    .payment-methods {
        flex-direction: column;
    }
}

/* Sub-Category Selection Cards */
.selection-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.6) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    height: 100%;
}

.selection-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 0;
}

.selection-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5);
}

.selection-card:hover::before {
    opacity: 1;
}

/* Bedrock Variation */
.selection-card.bedrock:hover {
    border-color: #22c55e;
    box-shadow: 0 30px 60px -12px rgba(34, 197, 94, 0.25);
}

.selection-card.bedrock::before {
    background: radial-gradient(circle at top right, rgba(34, 197, 94, 0.15), transparent 70%);
}

/* Java Variation */
.selection-card.java:hover {
    border-color: #f59e0b;
    box-shadow: 0 30px 60px -12px rgba(245, 158, 11, 0.25);
}

.selection-card.java::before {
    background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.15), transparent 70%);
}

.selection-icon {
    width: 100px;
    height: 100px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
    transition: transform 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.selection-card.bedrock .selection-icon {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(21, 128, 61, 0.2));
    color: #4ade80;
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.1);
}

.selection-card.java .selection-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(180, 83, 9, 0.2));
    color: #fbbf24;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.1);
}

.selection-card:hover .selection-icon {
    transform: scale(1.1) rotate(5deg);
}

.selection-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.selection-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.selection-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.selection-features {
    list-style: none;
    margin: 0 0 2rem 0;
    padding: 0;
    text-align: left;
    width: 100%;
}

.selection-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.selection-features li i {
    width: 18px;
    height: 18px;
    color: var(--primary-light);
}

.selection-card.bedrock .selection-features li i {
    color: #4ade80;
}

.selection-card.java .selection-features li i {
    color: #fbbf24;
}

.selection-action {
    margin-top: auto;
    width: 100%;
    padding: 1rem;
    border-radius: 16px;
    font-weight: 600;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.selection-card:hover .selection-action {
    background: var(--text-main);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

/* Store Category Cards */
.category-section {
    padding: 6rem 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.category-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    text-decoration: none;
    color: var(--text-main);
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.03), transparent 60%);
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-light);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5);
}

.category-card.minecraft:hover {
    border-color: #10b981;
    box-shadow: 0 30px 60px -12px rgba(16, 185, 129, 0.2);
}

.category-card.coins:hover {
    border-color: #f59e0b;
    box-shadow: 0 30px 60px -12px rgba(245, 158, 11, 0.2);
}

.category-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.5s;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-card.minecraft .category-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 95, 70, 0.2));
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.3);
}

.category-card.coins .category-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(120, 53, 15, 0.2));
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.3);
}

.category-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.category-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Out of Stock State */
.category-card.out-of-stock {
    filter: grayscale(0.8);
    cursor: default;
}

.category-card.out-of-stock:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--glass-border);
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    transition: all 0.3s;
}

.stock-badge.ready {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.stock-badge.ready i {
    animation: pulse-glow 2s infinite;
}

.stock-badge.low {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.stock-badge.out {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--primary-light);
    transition: all 0.3s;
}

.category-card:hover .category-link {
    color: var(--text-main);
    transform: translateX(5px);
}


.remaining-stock {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.remaining-stock span {
    color: var(--primary-light);
    font-weight: 600;
}

.backorder-notice {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem;
    background: rgba(79, 70, 229, 0.05);
    border: 1px dashed rgba(79, 70, 229, 0.2);
    border-radius: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.backorder-notice p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.loading-stock {
    animation: pulse-glow 1.5s ease-in-out infinite;
}


/* Pricing Card States */
.pricing-card.disabled {
    opacity: 0.6;
    pointer-events: none;
    filter: grayscale(0.8);
}

.pricing-card.disabled::after {
    content: 'STOCK HABIS';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background: rgba(239, 68, 68, 0.9);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.5rem;
    border: 2px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    width: 100%;
}

.loading-spinner i {
    animation: spin 1s linear infinite;
    width: 64px;
    height: 64px;
    color: var(--primary);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    transition: color 0.3s;
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    color: var(--primary-light);
    transform: translateX(-5px);
}

/* 
   ========================================
   AFFILIATE PAGE SPECIFIC STYLES
   ========================================
*/

/* Hero Section */
.affiliate-hero {
    position: relative;
    padding: 6rem 1rem 4rem;
    text-align: center;
    overflow: hidden;
}

.affiliate-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.affiliate-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 50px;
    color: var(--primary-light);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(5px);
}

/* Stats Grid Modern */
.stats-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card-glass {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.6));
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.stat-card-glass:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px rgba(79, 70, 229, 0.2);
}

.stat-card-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card-glass:hover::before {
    opacity: 1;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s;
}

.stat-card-glass:hover .stat-icon-wrapper {
    background: var(--primary);
    color: white;
    transform: rotate(10deg);
}

.stat-value-big {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label-modern {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Referral Link Box */
.referral-box {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.referral-box-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    /* max-width: 800px; */
    margin: 0 auto;
}

.referral-input-group {
    flex: 1;
    display: flex;
    position: relative;
}

.referral-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: 'Roboto Mono', monospace;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.referral-input:focus {
    border-color: var(--primary);
    outline: none;
}

.referral-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* Tier Progress Modern */
.tier-progress-card {
    background: linear-gradient(180deg, var(--bg-gray) 0%, rgba(15, 23, 42, 0.6) 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 3rem;
}

.tier-track {
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    margin: 2rem 0;
    position: relative;
}

.tier-fill {
    height: 100%;
    background: linear-gradient(90deg, #cd7f32, #c0c0c0, #ffd700);
    border-radius: 20px;
    width: 0;
    transition: width 1s ease-out;
    position: relative;
}

.tier-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(50%, -50%);
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.tier-markers {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* How It Works Steps */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin: 4rem 0;
    position: relative;
}

.step-item {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 64px;
    height: 64px;
    background: var(--bg-light);
    border: 2px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
    position: relative;
    transition: all 0.3s;
}

.step-item:hover .step-circle {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.3);
}

.step-line {
    display: none;
    /* Hidden on mobile */
}

@media (min-width: 768px) {
    .step-line {
        display: block;
        position: absolute;
        top: 32px;
        left: 50%;
        width: 100%;
        height: 2px;
        background: var(--border-light);
        z-index: -1;
    }

    .step-item:last-child .step-line {
        display: none;
    }
}

/* Commission Table Modern */
.commission-table-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 3rem;
}

.table-modern {
    width: 100%;
    border-collapse: collapse;
}

.table-modern th {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.25rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.table-modern td {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-muted);
}

.table-modern tr:last-child td {
    border-bottom: none;
}

.table-modern tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.tier-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.tier-bronze {
    background: rgba(205, 127, 50, 0.1);
    color: #cd7f32;
    border: 1px solid rgba(205, 127, 50, 0.2);
}

.tier-silver {
    background: rgba(192, 192, 192, 0.1);
    color: #a0a0a0;
    border: 1px solid rgba(192, 192, 192, 0.2);
}

.tier-gold {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

/* Recent Referrals List */
.referrals-list-modern {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.referral-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: all 0.2s;
}

.referral-item:hover {
    border-color: var(--border-light);
    transform: translateX(5px);
}

/* Voucher System Styles */
.voucher-section {
    margin-top: 3rem;
}

.voucher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.voucher-card {
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
}

.voucher-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
}

.voucher-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.voucher-card.discount {
    border-left: 4px solid var(--secondary);
}

.voucher-card.coins {
    border-left: 4px solid #fbbf24;
    /* Amber for coins */
}

/* Specific styling for coins voucher to make it look distinct */
.voucher-card.coins::after {
    background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, transparent 70%);
    top: auto;
    bottom: -50px;
    left: -50px;
    right: auto;
}

.voucher-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.voucher-card.discount .voucher-icon {
    color: var(--secondary);
    background: rgba(14, 165, 233, 0.1);
}

.voucher-card.coins .voucher-icon {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}

.voucher-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.voucher-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.voucher-meta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.voucher-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
}

.voucher-action {
    margin-top: auto;
}

/* Dashed divider for coupon look */
.voucher-divider {
    border-top: 1px dashed var(--border-light);
    margin: 1rem -1.5rem;
    position: relative;
}

.voucher-divider::before,
.voucher-divider::after {
    content: '';
    position: absolute;
    top: -10px;
    width: 20px;
    height: 20px;
    background: var(--bg-dark);
    /* Matches body/container bg */
    border-radius: 50%;
}

.voucher-divider::before {
    left: -10px;
}

.voucher-divider::after {
    right: -10px;
}

/* My Vouchers Specifics */
.my-voucher-card {
    opacity: 0.9;
}

.my-voucher-card.used {
    filter: grayscale(1);
    opacity: 0.6;
}

/* ========================================
   User Status Styles
   ======================================== */

/* Status Dots */
.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-dot.online {
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e;
}

.status-dot.busy {
    background: #ef4444;
    box-shadow: 0 0 6px #ef4444;
}

.status-dot.offline {
    background: #6b7280;
}

/* Status Menu Item */
.status-item {
    position: relative;
    cursor: pointer;
}

/* Status Submenu */
.status-submenu {
    display: none;
    margin-top: 0.5rem;
    margin-left: 1rem;
    padding: 0.5rem 0;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.status-submenu.active {
    display: block;
}

.status-option {
    display: flex;
    align-items: center;
    padding: 0.625rem 1rem;
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.2s;
}

.status-option:hover {
    background: var(--bg-gray);
}

.status-option .status-dot {
    margin-right: 10px;
}

/* Mobile adjustment */
@media (max-width: 768px) {
    .status-submenu {
        left: 0;
        top: 100%;
        right: 0;
    }
}

/* Sidebar Status Badge Styles */
.badge.busy {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.badge.offline {
    background: rgba(107, 114, 128, 0.3);
    color: var(--text-muted);
}

/* ========================================
   MOBILE RESPONSIVENESS ENHANCEMENTS
   Added for comprehensive mobile support
   ======================================== */

/* Utility class for mobile-only elements */
.mobile-only-link {
    display: none !important;
}

/* Mobile Client Area link - hidden on desktop, shown on mobile */
.mobile-client-area {
    display: none !important;
}

@media (max-width: 768px) {
    .mobile-only-link {
        display: block !important;
    }

    .mobile-client-area {
        display: flex !important;
        margin-top: 2rem;
        padding: 1rem 2rem;
        background: var(--gradient-primary);
        border-radius: var(--radius-full);
        color: white !important;
        font-weight: 600;
        text-decoration: none;
        justify-content: center;
    }
}

/* ----------------------------------------
   Category Grid - Mobile Adjustments
   ---------------------------------------- */
@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .category-card {
        padding: 2rem 1.5rem;
        border-radius: 24px;
    }

    .category-icon {
        width: 80px;
        height: 80px;
        border-radius: 20px;
        margin-bottom: 1.5rem;
    }

    .category-title {
        font-size: 1.5rem;
    }

    .category-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .stock-badge {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* ----------------------------------------
   Voucher Grid - Mobile Adjustments
   ---------------------------------------- */
@media (max-width: 480px) {
    .voucher-grid {
        grid-template-columns: 1fr;
    }

    .voucher-card {
        padding: 1.25rem;
        min-height: auto;
    }
}

/* ----------------------------------------
   Selection Cards (Bedrock/Java) - Mobile
   ---------------------------------------- */
@media (max-width: 480px) {
    .selection-card {
        padding: 2rem 1.5rem;
        border-radius: 24px;
    }

    .selection-icon {
        width: 70px;
        height: 70px;
        border-radius: 20px;
    }

    .selection-title {
        font-size: 1.5rem;
    }

    .selection-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
}

/* ----------------------------------------
   Dashboard - Mobile Sidebar Fix
   ---------------------------------------- */
@media (max-width: 900px) {
    .sidebar-card {
        position: relative;
        top: auto;
    }

    .dashboard-container {
        gap: 1.5rem;
    }
}

/* ----------------------------------------
   Mobile Navigation Enhancements
   ---------------------------------------- */
@media (max-width: 768px) {

    /* Ensure hamburger menu button is visible and styled */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
    }

    /* Improve mobile menu overlay */
    .nav-links {
        background: linear-gradient(180deg, rgba(2, 6, 23, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 1rem 0;
    }

    /* Style for mobile menu Client Area button */
    .nav-links .mobile-client-area {
        display: flex;
        margin-top: 2rem;
        padding: 1rem 2rem;
        background: var(--gradient-primary);
        border-radius: var(--radius-full);
        color: white;
        font-weight: 600;
        text-decoration: none;
        justify-content: center;
    }
}

/* ----------------------------------------
   Pricing Grid - Extra Small Screen Fix
   ---------------------------------------- */
@media (max-width: 380px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        padding: 2rem 1.5rem;
    }

    .price {
        font-size: 2rem;
    }

    .pricing-header h3 {
        font-size: 1.25rem;
    }
}

/* ----------------------------------------
   Checkout Page - Small Screen Fixes
   ---------------------------------------- */
@media (max-width: 480px) {
    .checkout-container {
        padding: 0;
    }

    .checkout-card {
        border-radius: var(--radius-md);
    }

    .checkout-card-header,
    .checkout-card-body {
        padding: 1.25rem;
    }

    .order-item {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .order-item-price {
        width: 100%;
        text-align: left;
        padding-top: 0.5rem;
        border-top: 1px dashed var(--border-light);
    }
}

/* ----------------------------------------
   Stats Grid - Extra Small Screen
   ---------------------------------------- */
@media (max-width: 380px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.25rem;
    }

    .stat-info h3 {
        font-size: 1.25rem;
    }
}

/* ----------------------------------------
   Footer - Mobile Spacing
   ---------------------------------------- */
@media (max-width: 480px) {
    .footer {
        padding: 3rem 0 2rem;
        margin-top: 3rem;
    }

    .footer-grid {
        gap: 2rem;
    }
}

/* ----------------------------------------
   Hero Section - Extra Small Fixes
   ---------------------------------------- */
@media (max-width: 380px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ----------------------------------------
   Backorder Notice - Mobile
   ---------------------------------------- */
@media (max-width: 480px) {
    .backorder-notice {
        margin-top: 2rem;
        padding: 1.5rem;
    }

    .backorder-notice p {
        font-size: 0.9rem;
    }
}

/* ----------------------------------------
   Affiliate Page - Mobile Responsiveness
   ---------------------------------------- */
@media (max-width: 480px) {
    .affiliate-hero {
        padding: 4rem 1rem 2rem;
    }

    .stats-grid-modern {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .referral-box {
        padding: 1.25rem;
    }

    .referral-box-inner {
        flex-direction: column;
    }

    .tier-progress-card {
        padding: 1.5rem;
    }

    .steps-container {
        gap: 2rem;
        margin: 2rem 0;
    }
}

/* ----------------------------------------
   Table Responsiveness (Services Table)
   ---------------------------------------- */
@media (max-width: 768px) {

    .data-table th,
    .data-table td {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .table-responsive {
        margin: 0 -0.5rem;
    }
}

/* ----------------------------------------
   Chat Panel - Full Screen on Small Mobile
   ---------------------------------------- */
@media (max-width: 380px) {
    .chat-panel {
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }

    .chat-toggle-btn {
        right: 12px;
        bottom: 12px;
        width: 50px;
        height: 50px;
    }
}

/* Commlink Loading Indicator */
.commlink-loading {
    text-align: center;
    padding: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    animation: pulse 1.5s infinite;
}

.commlink-loading span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.commlink-loading span::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid var(--primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ============================================
   ADMIN DASHBOARD STYLES
   ============================================ */

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: calc(var(--header-height) + 2rem) 1.5rem 3rem;
}

/* Admin Header */
.admin-header {
    margin-bottom: 2rem;
}

.admin-header .admin-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-header .admin-title h1 {
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-header .admin-title h1 svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.admin-header .admin-title p {
    margin-top: 0.25rem;
}

/* Admin Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.admin-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.admin-stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.15);
}

.admin-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-stat-icon svg {
    width: 24px;
    height: 24px;
}

.admin-stat-icon.voucher {
    background: rgba(79, 70, 229, 0.15);
    color: var(--primary);
}

.admin-stat-icon.promo {
    background: rgba(14, 165, 233, 0.15);
    color: var(--secondary);
}

.admin-stat-icon.active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent);
}

.admin-stat-icon.redemption {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
}

.admin-stat-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.125rem;
}

.admin-stat-info p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: rgba(15, 23, 42, 0.5);
    padding: 0.375rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    width: fit-content;
}

.admin-tab {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-tab svg {
    width: 18px;
    height: 18px;
}

.admin-tab:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.admin-tab.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Admin Tab Content */
.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Admin Table Styles */
.admin-table {
    width: 100%;
}

.admin-table th {
    text-align: left;
    padding: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(15, 23, 42, 0.5);
    border-bottom: 1px solid var(--border-light);
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: rgba(79, 70, 229, 0.05);
}

.voucher-code {
    background: rgba(79, 70, 229, 0.15);
    color: var(--primary-light);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.875rem;
    font-weight: 500;
}

.action-cell {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-icon svg {
    width: 16px;
    height: 16px;
}

.btn-icon:hover {
    background: var(--primary);
    color: white;
}

.btn-icon-danger:hover {
    background: #ef4444;
    color: white;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-primary {
    background: rgba(79, 70, 229, 0.2);
    color: var(--primary-light);
}

.badge-gold {
    background: rgba(234, 179, 8, 0.2);
    color: #fbbf24;
}

.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.badge-warning {
    background: rgba(234, 179, 8, 0.2);
    color: #fbbf24;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-gray);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-sm {
    max-width: 400px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.modal-body {
    padding: 1.5rem;
}

#voucherForm,
#promoForm {
    padding: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.form-group input[readonly] {
    opacity: 0.6;
    cursor: not-allowed;
}

.checkbox-group {
    margin-top: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border-light);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: calc(var(--header-height) + 1rem);
    right: 1rem;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--bg-gray);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.3s ease;
    min-width: 280px;
}

.toast svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.toast-success {
    border-left: 4px solid var(--accent);
}

.toast-success svg {
    color: var(--accent);
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-error svg {
    color: #ef4444;
}

.toast-info {
    border-left: 4px solid var(--secondary);
}

.toast-info svg {
    color: var(--secondary);
}

.toast.fade-out {
    animation: slideOutRight 0.3s ease forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 0.5rem;
}

/* Light Mode Admin Styles */
.light-mode .admin-stat-card {
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
}

.light-mode .admin-tabs {
    background: rgba(241, 245, 249, 0.8);
}

.light-mode .modal-content {
    background: var(--bg-card);
}

.light-mode .form-group input,
.light-mode .form-group select,
.light-mode .form-group textarea {
    background: white;
}

.light-mode .toast {
    background: var(--bg-card);
}

.light-mode .voucher-code {
    background: rgba(79, 70, 229, 0.1);
}

/* Responsive Admin Dashboard */
@media (max-width: 1024px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .admin-container {
        padding: calc(var(--header-height) + 1rem) 1rem 2rem;
    }

    .admin-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .admin-tabs {
        width: 100%;
    }

    .admin-tab {
        flex: 1;
        justify-content: center;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }

    .admin-table {
        font-size: 0.875rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.75rem 0.5rem;
    }

    .action-cell {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* ============================================
   ADMIN PAGE TABS NAVIGATION
   ============================================ */
.admin-page-tabs {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.9) 100%);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 70px;
    z-index: 99;
    backdrop-filter: blur(10px);
}

.admin-tabs-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    gap: 0.5rem;
}

.admin-page-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    position: relative;
}

.admin-page-tab i {
    width: 18px;
    height: 18px;
}

.admin-page-tab:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
}

.admin-page-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.admin-page-tab.active::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
}

@media (max-width: 768px) {
    .admin-tabs-container {
        padding: 0 1rem;
    }

    .admin-page-tab {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .admin-page-tab span {
        display: none;
    }

    .admin-page-tab i {
        width: 20px;
        height: 20px;
    }
}