/* assets/css/style.css */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    /* Dark Palette */
    --bg-dark: #09090b;
    --bg-panel: #18181b;
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(24, 24, 27, 0.7); 
    --glass-border: rgba(255, 255, 255, 0.08);
    --blur: blur(12px);
    
    /* Accents */
    --accent: #8b5cf6;        /* Electric Violet */
    --accent-glow: rgba(139, 92, 246, 0.4);
    --secondary: #ec4899;
    
    /* Text */
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    
    --success: #10b981;
    --danger: #ef4444;
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; }

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    /* Background Ambience Glows */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.15), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.15), transparent 40%);
    background-attachment: fixed;
    color: var(--text-main);
    /* Important: Remove display: flex from body since we are using fixed sidebar */
    width: 100%;
    min-height: 100vh;
}

/* --- FIXED SIDEBAR --- */
.sidebar {
    position: fixed; /* Locks sidebar to the left */
    top: 0;
    left: 0;
    height: 100vh; /* Full height */
    width: 270px; /* Strict width */
    background: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--glass-border);
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    z-index: 1000; /* Always on top */
}

.sidebar-header {
    height: 80px; /* Fixed height so logo is not "down" */
    display: flex; /* Use flex to center items vertically */
    align-items: center;
    padding: 0 24px;
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
    border-bottom: 1px solid var(--glass-border);
}

.logo-icon {
    width: 32px; 
    height: 32px; 
    background: linear-gradient(135deg, var(--accent), var(--secondary)); 
    border-radius: 8px;
    margin-right: 12px;
}

.nav-links { 
    list-style: none; 
    padding: 30px 16px; /* Top padding starts menu nicely below header */
    flex: 1;
    overflow-y: auto;
}

.nav-item { margin-bottom: 4px; }

.nav-item a {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-radius: 12px;
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.2s;
    font-weight: 500;
}

.nav-item a:hover {
    color: white;
    background: rgba(255,255,255,0.05);
}

.nav-item a.active {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.2), transparent);
    border-left: 3px solid var(--accent);
    color: white;
}

.nav-icon { 
    margin-right: 14px; 
    width: 24px; /* Fixed width for alignment */
    text-align: center; 
    font-size: 1.1rem;
}

/* --- MAIN CONTENT --- */
.main-content {
    /* Push content to the right to account for sidebar */
    margin-left: 270px;
    width: calc(100% - 270px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.topbar {
    height: 80px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: rgba(9, 9, 11, 0.6);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.user-balance {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    display: flex; align-items: center; gap: 8px;
}
.b-icon { color: var(--success); }

.content-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
}

/* --- GLASS CARDS --- */
.card {
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4); 
}

h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 5px; letter-spacing: -0.5px; color: white; }
.subtitle { color: var(--text-muted); margin-bottom: 25px; font-weight: 300; }

/* --- INPUTS --- */
label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }

input, select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-size: 0.95rem;
    transition: 0.3s;
    font-family: inherit;
}

input:focus, select:focus {
    border-color: var(--accent);
    background: rgba(0,0,0,0.5);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    color: white;
    box-shadow: 0 10px 20px -5px var(--accent-glow);
    text-decoration: none;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px var(--accent-glow);
}
.btn-block { width: 100%; }

/* --- TABLE --- */
.table-container { overflow-x: auto; border-radius: 16px; border: 1px solid var(--glass-border); }
table { width: 100%; border-collapse: collapse; background: rgba(0,0,0,0.2); }
th { 
    text-align: left; 
    padding: 16px 24px; 
    color: var(--text-muted); 
    font-size: 0.75rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    border-bottom: 1px solid var(--glass-border);
}
td { padding: 18px 24px; border-bottom: 1px solid var(--glass-border); color: #e4e4e7; font-size: 0.9rem; }
tr:last-child td { border-bottom: none; }

/* --- BADGES --- */
.badge { padding: 6px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;}
.badge-success { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-pending { background: rgba(139, 92, 246, 0.2); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.3); }
.badge-cancel { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }


/* --- RESPONSIVE MOBILE STYLES --- */

@media (max-width: 768px) {
    
    /* 1. Hide the Sidebar off-screen */
    .sidebar {
        transform: translateX(-100%); /* Moves sidebar completely to the left */
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 10px 0 30px rgba(0,0,0,0.5); /* Deep shadow when open */
    }

    /* 2. Class added via JS to show sidebar */
    .sidebar.mobile-open {
        transform: translateX(0);
    }

    /* 3. Main Content takes full width */
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }

    /* 4. Show Hamburger Button */
    .hamburger-btn {
        display: flex !important;
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        margin-right: 15px;
    }

    /* 5. Adjust Topbar padding */
    .topbar {
        padding: 0 20px;
        height: 70px;
    }

    /* 6. Adjust Content padding */
    .content-scroll {
        padding: 20px;
    }

    /* 7. Cards less padding on mobile */
    .card {
        padding: 20px;
        border-radius: 16px;
    }
    
    /* 8. Hide Branding in Header on mobile to save space (keep only Logo Icon) */
    .brand-text {
        display: none;
    }
}

/* Overlay for when menu is open */
.overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
}

.overlay.active {
    display: block;
}

/* --- PREMIUM LOGOUT BUTTON --- */
.sidebar-footer {
    padding: 24px 20px; /* Padding around the button */
    margin-top: auto; /* Pushes it to the very bottom */
}

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.1); /* Transparent Red */
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-logout i {
    margin-right: 10px;
}

.btn-logout:hover {
    background: #ef4444; /* Solid Red on Hover */
    color: white;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
    transform: translateY(-1px);
}


/* --- ADDITIONAL LANDING PAGE STYLES --- */

/* 1. How It Works Section */
.steps-section {
    padding: 80px 5%;
    text-align: center;
}

.steps-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.step-item {
    flex: 1;
    min-width: 250px;
    background: rgba(255,255,255,0.03);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    position: relative;
}

.step-number {
    width: 50px; height: 50px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.2rem;
    margin: 0 auto 20px;
    box-shadow: 0 0 20px var(--accent-glow);
}

/* 2. Testimonials */
.testimonials {
    padding: 80px 5%;
    background: rgba(0,0,0,0.2); /* Slightly darker backdrop */
}

.testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testi-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    font-style: italic;
    color: #d1d5db;
}
.testi-author {
    margin-top: 20px;
    font-style: normal;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}
.stars { color: var(--secondary); font-size: 0.8rem; margin-bottom: 10px; }

/* 3. FAQ Accordion */
.faq-section { padding: 80px 5%; max-width: 800px; margin: 0 auto; }

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: white;
    transition: 0.3s;
}
.faq-question:hover { color: var(--accent); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(0,0,0,0.2);
    color: var(--text-muted);
    line-height: 1.6;
}
.faq-answer p { padding: 20px; }

.faq-item.active .faq-answer { max-height: 200px; }
.faq-item.active .faq-question i { transform: rotate(180deg); }

        /* Advanced Footer */
                /* Advanced Footer */
                .advanced-footer {
                    background: #02040a;
                    padding: 80px 5% 30px;
                    border-top: 1px solid var(--glass-border);
                }
        
                .footer-grid {
                    display: grid;
                    grid-template-columns: 1.5fr 1fr 1fr;
                    gap: 60px;
                    align-items: start;
                }
        
                .footer-about h3 { color: white; margin-bottom: 20px; font-size: 1.3rem; }
                .footer-about p { color: var(--text-muted); line-height: 1.8; }
        
                .footer-links h4 { color: white; margin-bottom: 25px; font-size: 1.1rem; text-align: left;}
                
                .footer-links ul { 
                    list-style: none; 
                    padding: 0; 
                    text-align: left; 
                }
                
                .footer-links li { margin-bottom: 12px; }
                
                .footer-links a { 
                    color: var(--text-muted); 
                    text-decoration: none; 
                    transition: 0.2s; 
                    display: inline-block; 
                }
                .footer-links a:hover { color: var(--accent); transform: translateX(5px); }
        
                .social-icons a {
                    display: inline-flex;
                    width: 40px; height: 40px;
                    background: rgba(255,255,255,0.05);
                    border-radius: 50%;
                    align-items: center; justify-content: center;
                    color: white;
                    margin-right: 12px;
                    transition: 0.3s;
                    text-decoration: none;
                }
                .social-icons a:hover { background: var(--accent); transform: translateY(-3px); }
        
                .copyright-bottom {
                    text-align: center;
                    padding-top: 20px;
                    border-top: 1px solid rgba(255,255,255,0.05);
                    color: #52525b;
                    font-size: 0.85rem;
                }
@media (max-width: 768px) {
                /* 5. Advanced Footer (MOBILE FIX) */
                .advanced-footer {
                    padding: 50px 20px;
                }
        
                /* Kill grid layout completely */
                .footer-grid {
                    display: block; 
                    width: 100%;
                }
        
                /* Force columns to be block and centered */
                .footer-about, .footer-links {
                    display: block;
                    width: 100%;
                    margin-bottom: 50px; 
                    text-align: center;
                }
        
                .footer-about p {
                    width: 100%;
                    text-align: center;
                    margin: 0 auto;
                }
        
                /* FORCE LIST ITEMS TO STACK CENTER */
         
                /* ------------------------------------- */
        
                .social-icons {
                    display: flex;
                    justify-content: center;
                    margin-top: 20px;
                }
                
                .footer-links a:hover {
                    transform: none; /* Disable slide on mobile */
                }
}

/* --- AUTH PAGES (LOGIN / REGISTER) --- */

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.15), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.15), transparent 40%);
    padding: 20px;
    position: relative;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: rgba(24, 24, 27, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.auth-logo {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 30px;
    display: inline-block;
}
.auth-logo i { color: var(--accent); margin-right: 10px; }

.auth-title {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.auth-form input {
    margin-bottom: 20px;
}

.auth-action-text {
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-action-text a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}
.auth-action-text a:hover { text-decoration: underline; }

/* Mobile adjustments */
@media (max-width: 768px) {
    .auth-card { padding: 30px 20px; }
}

/* --- DASHBOARD ACTIVITY STYLES --- */

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.activity-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.3s;
}

.activity-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
}

.ac-icon {
    width: 50px; height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.promo-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border-color: rgba(16, 185, 129, 0.2);
}

/* News Feed List */
.news-item {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.news-date {
    min-width: 80px;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 700;
    background: rgba(139, 92, 246, 0.1);
    padding: 5px 10px;
    border-radius: 6px;
    text-align: center;
    height: fit-content;
}

.news-content {
    flex: 1;
}

/* --- DASHBOARD NEWS / CHANGELOG STYLE --- */

.news-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Hover Effect: Glow on the left */
.news-item:hover {
    background: rgba(255,255,255,0.04);
    border-color: var(--accent);
    transform: translateX(5px);
}

.news-item:last-child {
    border-bottom: none;
}

/* The Date Badge */
.news-date {
    min-width: 80px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent);
    padding: 8px 0;
    border-radius: 8px;
    height: fit-content;
    text-transform: uppercase;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.news-content {
    flex: 1;
}

.news-content h3 {
    font-size: 1rem;
    color: white;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* --- NEWS TAGS (PROMO, ALERT, ETC) --- */
.news-tag {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-promo { background: #10b98120; color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.tag-alert { background: #ef444420; color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.tag-update { background: #6366f120; color: #6366f1; border: 1px solid rgba(99, 102, 241, 0.3); }

/* Mobile Responsive for News */
@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .news-date {
        width: 100%;
        padding: 5px;
    }
    .news-content h3 {
        justify-content: center;
    }
}

/* --- PREMIUM DASHBOARD HEADER CARD --- */

.dashboard-header {
    background: rgba(24, 24, 27, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

/* Background Glow Blob */
.dashboard-header::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.dash-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.welcome-text h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.welcome-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Balance Display */
.balance-display {
    text-align: right;
}

.b-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 5px;
}

.b-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -1px;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

/* Action Buttons Row */
.dash-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.dash-btn {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-dash-primary {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-dash-primary:hover {
    transform: translateY(-2px);
}

.btn-dash-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-dash-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .dash-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .balance-display {
        text-align: center;
    }
    .welcome-text h2 { font-size: 1.5rem; }
    .b-amount { font-size: 2rem; }
}
/* --- TRANSACTIONS TABLE (MINI) --- */
.trx-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.trx-table th {
    text-align: left;
    padding: 12px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
}
.trx-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #d1d5db;
}
.trx-amount {
    font-weight: 700;
}
.trx-positive { color: #10b981; }
.trx-negative { color: #f43f5e; }

/* --- REFERRAL CARD (FIXED ALIGNMENT) --- */
.referral-box {
    /* Force it to fill the grid cell perfectly */
    width: 100%; 
    max-width: 100%;
    
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.05));
    border: 1px solid var(--accent);
    border-radius: 16px;
    padding: 25px;
    
    /* Center everything inside */
    text-align: center; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    /* Ensure padding doesn't break layout */
    box-sizing: border-box; 
}

.ref-code {
    background: rgba(0,0,0,0.3);
    border: 1px dashed var(--accent);
    color: var(--accent);
    font-size: 0.9rem; /* Smaller font to fit more text */
    font-weight: 800;
    padding: 10px 20px;
    border-radius: 10px;
    display: inline-block;
    margin: 15px 0;
    letter-spacing: 0px; /* Remove letter spacing to save space */
    font-family: monospace;
    
    /* CRITICAL: Force the long link to wrap */
    word-break: break-all; 
    word-wrap: break-word;
    max-width: 100%;
}

.copy-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.copy-btn:hover { background: var(--primary-dark); }

/* --- PREMIUM PLACEHOLDER STYLING (UPDATED) --- */

/* For standard inputs */
input::placeholder,
textarea::placeholder {
    color: #64748b; /* Darker gray (more obvious) */
    font-style: italic; /* Italic makes it look like a prompt */
    opacity: 1; /* Faded out */
}

/* Specific Fix for Webkit/Blink (Chrome/Safari) */
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
    color: #64748b;
    font-style: italic;
    opacity: 0.6;
}

/* Specific Fix for Firefox */
input::-moz-placeholder,
textarea::-moz-placeholder {
    color: #64748b;
    font-style: italic;
    opacity: 0.6;
}

/* Specific Fix for Internet Explorer */
input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
    color: #64748b;
    font-style: italic;
    opacity: 0.6;
}

/* Dropdown Options (Background fix) */
select option {
    background: #09090b; /* Dark background for dropdown list */
    color: white;
    padding: 10px;
}


/* --- FIX FOR VISIBILITY SWITCH (USING CLASSES) --- */

/* 1. Default State: Comments Hidden (Keep !important) */
#commentsGroup {
    display: none !important; 
}

/* 2. Default State: Quantity Visible (Keep !important) */
#quantityGroup {
    display: block !important; 
}

/* --- THE TOGGLE CLASSES --- */

/* This class overrides the "display: none" when added */
#commentsGroup.show-comments {
    display: block !important;
}

/* This class overrides the "display: block" when added */
#quantityGroup.hide-me {
    display: none !important;
}
/* --- ORDER SUMMARY BOX (STYLISH) --- */

.order-summary-box {
    background: rgba(139, 92, 246, 0.05); /* Very light purple tint */
    background-image: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(0, 0, 0, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    padding: 35px 20px;
    text-align: center;
    margin-top: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Top Accent Line */
.order-summary-box::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 0 10px var(--accent);
}

.summary-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #a78bfa; /* Light Purple */
    font-weight: 600;
    margin-bottom: 10px;
}

.summary-amount {
    font-size: 3rem; /* Huge Price */
    font-weight: 800;
    color: white;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
    line-height: 1;
}

.summary-currency {
    font-size: 1.5rem;
    vertical-align: top;
    margin-right: 5px;
    color: var(--accent);
}

.balance-warning {
    display: none; /* Hidden by default */
    margin-top: 15px;
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Mobile Fix for Huge Font */
@media (max-width: 768px) {
    .summary-amount { font-size: 2.2rem; }
}

/* --- BUTTON SPACING FIX FOR NEW ORDER --- */

/* Find button specifically inside neworder.php form */
#orderForm .btn-primary {
    margin-top: 5px; /* Push button down */
}

/* Optional: Add a little margin to bottom of box too */
.order-summary-box {
    margin-bottom: 5px;
}
/* --- CUSTOM COMMENTS TEXTAREA --- */
.comments-box {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    transition: 0.3s;
    display: none; /* Hidden by default */
    min-height: 150px;
    resize: vertical; /* Allow resizing height only */
}

.comments-box:focus {
    background: rgba(0,0,0,0.5);
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

/* --- FORCE TEXTAREA PLACEHOLDER TO BE VISIBLE --- */

/* General Textarea Placeholder */
textarea.comments-box::placeholder {
    color: #a78bfa; /* Light purple text - High visibility */
    opacity: 1 !important; /* Force 100% Visible */
    font-style: italic;
}

/* Chrome / Safari / Edge */
textarea.comments-box::-webkit-input-placeholder {
    color: #a78bfa !important;
    opacity: 1 !important;
}

/* Firefox */
textarea.comments-box::-moz-placeholder {
    color: #a78bfa !important;
    opacity: 1 !important;
}

/* Internet Explorer */
textarea.comments-box:-ms-input-placeholder {
    color: #a78bfa !important;
}
/* --- NUCLEAR FIX FOR TEXTAREA PLACEHOLDER --- */

/* 1. Reset General Textarea Placeholder */
textarea::placeholder {
    opacity: 1 !important; /* Force 100% visible - Overrides the 0.6 opacity rule */
}

/* 2. Force Specific ID (Overrides everything) */
#commentsInput::placeholder {
    color: #a78bfa !important; /* Light Purple */
    opacity: 1 !important;
    font-style: italic;
    font-size: 1rem; /* Make it slightly bigger */
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Webkit Fix */
#commentsInput::-webkit-input-placeholder {
    color: #a78bfa !important;
    opacity: 1 !important;
}

/* --- WHATSAPP SUPPORT BUTTON --- */

.whatsapp-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366; /* Official WhatsApp Green */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 2000;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-fab:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

/* Mobile Fix */
@media (max-width: 768px) {
    .whatsapp-fab {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}
/* --- WHATSAPP SUPPORT BUTTON (FIXED) --- */

.whatsapp-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366; /* Official Green */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem; /* Bigger Icon */
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 9999; /* FORCE IT TO TOP */
    text-decoration: none;
    border: none; /* Remove default border */
    pointer-events: auto; /* Force clickable */
    transition: all 0.3s ease;
}

.whatsapp-fab:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

/* Mobile */
@media (max-width: 768px) {
    .whatsapp-fab {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}


