:root {
    --bg-dark: #0b0f19;
    --card-bg: rgba(255, 255, 255, 0.02);
    --card-border: rgba(255, 255, 255, 0.08);
    --neon-blue: #00f2fe;
    --neon-purple: #4facfe;
    --danger-red: #ff4a5a;
    --text-main: #ffffff;
    --text-muted: #64748b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    padding-bottom: 120px;
}

/* Background Aura */
.bg-glow {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.profile-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

.profile-header {
    text-align: center;
    margin-bottom: 30px;
}

.profile-header h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.profile-header p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 5px;
}

/* Pure CSS Premium Card (No Tilt, Only Elegant Glow) */
.profile-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 30px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s, box-shadow 0.4s;
}

/* Hover effect: Smooth lift up and elegant glow */
.profile-card:hover {
    transform: translateY(-6px);
    border-color: var(--neon-blue);
    box-shadow: 0 30px 50px rgba(0, 242, 254, 0.15);
}

.user-avatar {
    font-size: 50px;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 50%;
    margin-bottom: 25px;
    border: 1px solid var(--card-border);
}

.profile-info-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.info-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-group label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
}

/* Red Logout Button */
.logout-btn {
    background: transparent;
    color: var(--danger-red);
    border: 1px solid rgba(255, 74, 90, 0.3);
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    font-size: 14px;
    font-weight: 700;
    transition: 0.3s;
}

.logout-btn:hover {
    background: var(--danger-red);
    color: white;
    box-shadow: 0 0 20px rgba(255, 74, 90, 0.4);
    transform: translateY(-2px);
}

/* Notice Box */
.purchase-box {
    background: rgba(255, 255, 255, 0.01);
    border: 1px dashed var(--card-border);
    border-radius: 16px;
    padding: 20px;
    margin-top: 25px;
}

.purchase-box h3 {
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--neon-purple);
}

.purchase-box p {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
}

/* Floating Bottom Navigation */
.floating-bottom-nav {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 22, 36, 0.75);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    padding: 10px 40px;
    border-radius: 40px;
    display: flex;
    gap: 40px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.bottom-nav-item {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    transition: 0.3s;
}

.bottom-nav-item span {
    font-size: 11px;
}

.bottom-nav-item.active {
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

/* profile-style.css ke niche yeh add karein */
.live-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 5px;
}

.live-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--card-border);
    padding: 14px 20px;
    border-radius: 12px;
    width: 100%;
    transition: 0.3s;
}

.live-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.15);
}

.live-item-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.live-item-info p {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
}

.item-price {
    font-weight: 800;
    font-size: 14px;
}

/* profile page CSS me buttons ko sleek frame dene ke liye */
.profile-download-btn {
    background: linear-gradient(135deg, #00f2fe, #4facfe);
    color: #070a13;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
    white-space: nowrap;
}

.profile-download-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.3);
}

/* ==========================================================================
   🌐 CODESTACK GLOBAL STICKY HEADER STYLE
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(5, 7, 15, 0.65);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 70px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo Design */
.logo-node {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    color: var(--neon-blue);
    font-size: 18px;
    filter: drop-shadow(0 0 8px var(--neon-blue));
}

.logo-text {
    font-size: 18px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--neon-purple);
}

/* Navigation links matrix */
.nav-links {
    display: flex;
    gap: 28px;
}

.nav-item {
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b;
    transition: all 0.2s ease;
    position: relative;
    padding: 6px 0;
}

.nav-item:hover,
.nav-item.active {
    color: white;
}

/* Active page line effect */
.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue);
    border-radius: 2px;
}

/* Right Side Action Button */
.dashboard-btn-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 700;
    color: #05070f;
    background: linear-gradient(135deg, var(--neon-blue), #4facfe);
    padding: 10px 18px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
    transition: all 0.3s ease;
}

.dashboard-btn-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.4);
    filter: brightness(1.1);
}

/* ⚠️ Crucial Fix: Grid layout ko header ke niche dhakelne ke liye spacing padding */
body {
    padding-top: 110px !important;
}

/* Mobile Responsive Header Handling */
@media (max-width: 600px) {
    .header-container {
        height: 60px;
        padding: 0 16px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-item {
        font-size: 12px;
    }

    .dashboard-btn-link {
        padding: 8px 12px;
        font-size: 11.5px;
    }

    body {
        padding-top: 90px !important;
    }
}

/* ==========================================================================
   🎮 ICONS ALIGNMENT & GLOW FOR NAV LINKS
   ========================================================================== */
.nav-links {
    display: flex;
    gap: 28px;
}

.nav-item {
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b;
    transition: all 0.2s ease;
    position: relative;
    padding: 6px 0;

    /* 🔥 FIX: Icon aur Text ko ek line me lane ke liye */
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Base icon style inside navbar */
.nav-item i {
    font-size: 13px;
    color: #475569;
    /* Default hidden type dark color */
    transition: all 0.2s ease;
}

/* Hover hone par ya Active page hone par Text aur Icon dono chamkenge */
.nav-item:hover,
.nav-item.active {
    color: white;
}

.nav-item:hover i,
.nav-item.active i {
    color: var(--neon-blue);
    filter: drop-shadow(0 0 6px var(--neon-blue));
    /* 🔥 Icon me cyber glow effect */
}

/* Active page line effect */
.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue);
    border-radius: 2px;
}

/* ==========================================================================
   🤖 CODESTACK DASHBOARD & PURCHASES MASTER CLEANUP
   ========================================================================== */

/* 1. Global Card Standard (Upar aur Neeche dono cards ko ek jaisa elite look do) */
.profile-container .card,
.profile-card,
.purchases-card {
    background: rgba(255, 255, 255, 0.01) !important;
    border: 1px solid rgba(0, 242, 254, 0.08) !important;
    /* Soft cyan outline instead of harsh line */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.02) !important;
    border-radius: 20px !important;
    padding: 24px !important;
    margin-bottom: 20px;
}

/* 2. Premium Cyber Input Fields */
.profile-card input,
.form-group input,
.profile-card .input-field {
    background: #090d16 !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #e2e8f0 !important;
    padding: 14px 16px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease;
}

.profile-card input:focus {
    border-color: var(--neon-blue, #00f2fe) !important;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.15) !important;
}

/* 3. Balanced Logout Button */
.logout-btn,
.profile-card button[type="button"] {
    background: rgba(ef, 68, 68, 0.03) !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    color: #f87171 !important;
    padding: 12px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #ef4444 !important;
    color: #fff !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3) !important;
}

/* 🔥 4. CRITICAL FIX: Purchase Item Box Setup (test-2 card) */
.purchase-item,
.purchases-card .inner-card {
    background: #090d16 !important;
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
    border-radius: 14px !important;
    padding: 18px !important;

    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 16px !important;
}

/* 🔒 5. BUTTON SQUEEZE FIX: Locked Status Button Formatting */
.status-btn,
.purchases-card .action-btn,
.purchases-card button {
    white-space: nowrap !important;
    /* Button ka text mandatory ek line me rahega */
    flex-shrink: 0 !important;
    /* Mobile is button ko pichka nahi payega */
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #94a3b8 !important;
    padding: 10px 16px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

/* 📱 6. MOBILE RESPONSIVE MATRIX OVERRIDE */
@media (max-width: 480px) {

    /* Jab screen bohot choti ho, toh item row ko stack kar do */
    .purchase-item,
    .purchases-card .inner-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 14px !important;
    }

    /* Mobile par button full width ho jayega toh clean lagega */
    .status-btn,
    .purchases-card .action-btn,
    .purchases-card button {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }
}

/* ==========================================================================
   🔒 PURCHASES INNER CARD OVERLAP REMOVAL (MOBILE & TABLET ULTRA-FIX)
   ========================================================================== */

@media (max-width: 768px) {

    /* 1. Inner container ko row se badalkar column karo */
    /* Note: Agar aapka wrapper class kuch aur hai, toh is selector ko replace kar sakte hain */
    .inner-card,
    .purchase-item,
    [class*="purchase"],
    [class*="inner"] {
        display: flex !important;
        flex-direction: column !important;
        /* 🔥 Row khatam! Ab content ek ke neeche ek aayega */
        align-items: flex-start !important;
        /* Content left-aligned rahega */
        gap: 16px !important;
        /* Text aur button ke beech safe vertical distance */
        padding: 16px !important;
        /* Mobile padding optimization */
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 2. Left content wrapper (jisme title aur dates hain) */
    .inner-card>div:first-child,
    .purchase-item>div:first-child {
        width: 100% !important;
    }

    /* 3. Text spacing improvement */
    .card-title,
    .product-name {
        margin-bottom: 6px !important;
        font-size: 16px !important;
    }

    /* 4. "Locked Until Verified" Button Formatting */
    .status-btn,
    .action-btn,
    button[disabled],
    .inner-card button {
        width: 100% !important;
        /* Mobile par button full width ho jayega */
        max-width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
        /* Text ek hi line me tight rahega */
        padding: 12px 16px !important;
        /* Standard clickable padding */
        font-size: 13px !important;
        display: flex !important;
        align-items: center !important;
        box-sizing: border-box !important;
    }
}