/* ========== DEKHERE STORE — PREMIUM RED THEME ========== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Kanit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-primary: #050000;
    --bg-secondary: #0a0000;
    --bg-card: #0d0000;
    --bg-glass: rgba(20, 0, 0, 0.4);
    --border-glass: rgba(255, 255, 255, 0.1);
    --border-accent: #a50000;
    --border-accent-glow: rgba(165, 0, 0, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --accent: #d30000;
    --accent-dark: #990000;
    --accent-glow: rgba(211, 0, 0, 0.3);
    --gold: #ffb703;
    --success: #10b981;
    --danger: #ef4444;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.9);
    --shadow-glow: 0 0 15px var(--accent-glow);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Kanit', 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========== BACKGROUNDS ========== */
.bg-base {
    position: fixed;
    inset: 0;
    z-index: -3;
    background-color: var(--bg-primary);
}

.bg-cross-pattern {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image: radial-gradient(circle, #220000 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.8;
}

/* Creating an X pattern via CSS using pseudo elements over the grid, or just a grid */
.bg-cross-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(255,0,0,0.05) 49%, rgba(255,0,0,0.05) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(255,0,0,0.05) 49%, rgba(255,0,0,0.05) 51%, transparent 52%);
    background-size: 80px 80px;
}

.bg-dekhere-stripe {
    position: fixed;
    top: 30%;
    left: -50%;
    width: 200%;
    height: 120px;
    background: linear-gradient(90deg, rgba(165,0,0,0), rgba(165,0,0,0.8), rgba(165,0,0,0));
    transform: rotate(-15deg);
    z-index: -1;
    display: flex;
    align-items: center;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.6;
}

.marquee-stripe {
    color: rgba(255, 255, 255, 0.05);
    font-size: 140px;
    font-weight: 900;
    white-space: nowrap;
    animation: marquee-stripe-scroll 20s linear infinite;
    text-shadow: 0 0 10px rgba(255,0,0,0.3);
}

@keyframes marquee-stripe-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(211,0,0,0.1) 0%, transparent 70%);
    z-index: -2;
    border-radius: 50%;
    pointer-events: none;
}
.bg-glow-left { top: -100px; left: -200px; }
.bg-glow-right { bottom: -100px; right: -200px; }

.hidden { display: none !important; }
.main-content-hidden { display: none !important; }
.fade-in { animation: fadeIn 0.5s ease forwards; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== LANDING PAGE OVERLAY ========== */
.landing-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(5, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.landing-content {
    text-align: center;
    max-width: 600px;
    padding: 40px;
    animation: zoomIn 0.8s ease;
}

.landing-logo {
    display: inline-block;
    margin-bottom: 24px;
    animation: floatingLogo 3s ease-in-out infinite;
}

.landing-logo i {
    font-size: 80px;
    color: var(--accent);
    filter: drop-shadow(0 0 15px var(--accent-glow));
}

.landing-logo img {
    max-width: 151px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(211, 0, 0, 0.4));
}

@keyframes floatingLogo {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.landing-logo {
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px var(--accent-glow));
}

.landing-title {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-shadow: 0 0 10px var(--accent-glow);
}

.landing-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

.landing-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-landing {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-landing-outline {
    background: rgba(20, 0, 0, 0.5);
    border: 1px solid var(--border-accent);
    color: var(--text-primary);
}

.btn-landing-outline:hover {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

/* ========== NAVBAR ========== */
.navbar {
    background: #080000;
    border-bottom: 1px solid var(--border-glass);
    padding: 0 24px;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-logo {
    font-size: 24px;
    margin-right: 20px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.search-bar {
    background: #150000;
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 15px;
    transition: var(--transition);
}

.search-bar:focus-within {
    border-color: var(--border-accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.search-bar i {
    color: var(--text-muted);
    font-size: 12px;
}

.search-bar input {
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13px;
    outline: none;
    width: 120px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.nav-auth-links {
    margin-left: auto;
    display: flex;
    gap: 10px;
}

.auth-link {
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.auth-link.login {
    background: var(--accent-dark);
    color: white;
}

.auth-link.login:hover {
    background: var(--accent);
    box-shadow: var(--shadow-glow);
}

.auth-link.register {
    background: #1a1a1a;
    color: var(--text-secondary);
    border: 1px solid #333;
}

.auth-link.register:hover {
    background: #2a2a2a;
    color: white;
}

.user-bar {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-balance-pill {
    background: rgba(211, 0, 0, 0.1);
    border: 1px solid rgba(211, 0, 0, 0.3);
    border-radius: 20px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
    cursor: pointer;
    transition: var(--transition);
}

.nav-balance-pill:hover {
    background: rgba(211, 0, 0, 0.2);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.nav-balance-pill i {
    color: var(--accent);
    font-size: 14px;
}

.user-balance {
    font-size: 13px;
    color: var(--gold);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ========== MOBILE TOGGLE ========== */

.mobile-toggle {
    display: none;
    color: var(--text-primary);
    cursor: pointer;
}

/* ========== CONTAINER ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 60px;
}

/* ========== PROFILE DROPDOWN PREMIUM (Image 3) ========== */
.profile-dropdown-wrapper {
    position: relative;
}

.user-avatar-btn {
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; overflow: hidden; position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #000;
}

.user-avatar-btn img {
    pointer-events: auto !important;
}

.user-avatar-btn:hover {
    box-shadow: 0 0 15px rgba(211, 0, 0, 0.6);
    transform: scale(1.05);
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 260px;
    background: rgba(10, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.95);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    overflow: hidden;
}

.pd-stars {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 18px;
    filter: drop-shadow(0 0 10px #ffb703);
    z-index: 5;
    pointer-events: none;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}


.profile-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pd-header {
    padding: 18px 20px;
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 15px;
}

.pd-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    padding: 2px;
    overflow: hidden;
}

.pd-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.pd-info-name {
    color: #fff; font-weight: 700; font-size: 16px; margin-bottom: 0px; letter-spacing: 0.5px;
}

.pd-info-handle {
    color: #fff; font-size: 13px; font-weight: 600; opacity: 0.9;
}

.pd-balance-row {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    font-weight: 600;
    font-size: 14.5px;
    cursor: pointer;
    transition: var(--transition);
}


.pd-balance-row:hover {
    background: rgba(255, 183, 3, 0.05);
}


.pd-balance-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pd-balance-left i {
    font-size: 16px;
    color: #fff;
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none; background: none; width: 100%; text-align: left;
}

.profile-dropdown-item:hover {
    background: rgba(255,255,255,0.05);
}

.profile-dropdown-item i {
    width: 20px;
    text-align: center;
    font-size: 18px;
    color: #fff;
    opacity: 0.8;
}

.pd-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 8px 0;
}

.pd-logout {
    color: #fff !important;
}

.pd-logout i {
    color: #fff !important;
    opacity: 1;
}




/* ========== HERO SECTION & BANNER ========== */
.hero-section {
    margin-bottom: 24px;
}

.hero-banner {
    width: 100%;
    height: 380px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    border: 2px solid var(--border-accent);
    box-shadow: 0 0 20px rgba(165,0,0,0.2);
}

.hero-banner.red-banner {
    background: url('https://placehold.co/1200x400/100000/300000?text=Banner+BG') center/cover;
}

.banner-overlay-red {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(165,0,0,0.4) 50%, rgba(0,0,0,0.8) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.banner-alert-icon {
    position: absolute;
    top: 40px;
    font-size: 40px;
    color: rgba(255,255,255,0.8);
    opacity: 0.5;
}
.banner-alert-icon.left { left: 15%; }
.banner-alert-icon.right { right: 15%; }

.banner-text-sub {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.banner-title-main {
    font-size: 64px;
    font-weight: 900;
    color: var(--accent);
    text-shadow: 0 0 20px rgba(255,0,0,0.6), 2px 2px 0 #000;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.banner-title-desc {
    font-size: 22px;
    font-weight: 600;
    background: #000;
    padding: 8px 24px;
    border-radius: 30px;
    border: 1px solid var(--border-glass);
    margin-bottom: 15px;
}

.banner-link {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    background: linear-gradient(90deg, transparent, rgba(255,0,0,0.5), transparent);
    padding: 4px 60px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border-glass);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}
.slider-btn:hover { background: var(--accent); border-color: var(--accent); }
.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }

/* ========== FALLING ICONS BACKGROUND ========== */
#falling-icons-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.falling-icon {
    position: absolute;
    top: -20px;
    color: var(--accent);
    user-select: none;
    pointer-events: none;
    z-index: -1;
    animation: fallingAnimation linear forwards;
    opacity: 0.8;
}

@keyframes fallingAnimation {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}

/* ========== STATISTICS ========== */
.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: var(--transition);
}

.stat-box:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,0,0,0.1);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-unit {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
}

/* ========== RECENT ORDERS ========== */
.recent-orders-section {
    margin-bottom: 40px;
}

.section-header-compact {
    margin-bottom: 15px;
}

.section-header-compact h3 {
    font-size: 16px;
    font-weight: 600;
}

.section-header-compact p {
    font-size: 12px;
    color: var(--text-muted);
}

.recent-orders-scroller {
    display: flex;
    overflow: hidden;
    width: 100%;
    padding-bottom: 10px;
    position: relative;
}

.recent-orders-inner {
    display: flex;
    gap: 15px;
    width: max-content;
    animation: scroll-left 30s linear infinite;
}

.recent-orders-inner:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 7.5px)); }
}

.recent-order-card {
    min-width: 250px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.recent-order-card:hover {
    border-color: var(--border-accent);
}

.ro-img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
}

.ro-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ro-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ro-info strong {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.ro-info span {
    font-size: 10px;
    color: var(--text-muted);
}

.ro-btn {
    font-size: 10px;
    color: #10b981;
    border: 1px solid #10b981;
    padding: 2px 6px;
    border-radius: 4px;
    width: fit-content;
    background: rgba(16,185,129,0.1);
}

/* ========== SECTION HEADER ========== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 15px;
}

.sh-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sh-title i {
    font-size: 24px;
    color: var(--text-primary);
    background: var(--bg-card);
    padding: 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border-glass);
}

.sh-texts h2 {
    font-size: 20px;
    font-weight: 700;
}

.sh-texts span {
    font-size: 13px;
    color: var(--text-muted);
}

.btn-outlined-grey {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-outlined-grey:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--text-secondary);
}

/* ========== CATEGORY GRID (IMAGE 1 BANNER STYLE) ========== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.cat-card {
    background: #000;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}

.cat-card-banner {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.cat-card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cat-card:hover .cat-card-banner img {
    transform: scale(1.05);
}

.cat-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 50%, rgba(165,0,0,0.15) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.cat-banner-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cat-banner-name {
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    letter-spacing: 0.5px;
}

.cat-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #0a0a0a;
    border-top: 1px solid #1a1a1a;
}

.cat-card-label {
    font-size: 14px;
    font-weight: 700;
    color: #ccc;
}

.cat-select-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 7px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.cat-select-btn:hover {
    background: #ff1111;
    box-shadow: 0 0 12px rgba(211,0,0,0.4);
}

/* ========== PRODUCT GRID ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

/* ========== PRODUCT CARDS (PC2 STYLE - IMAGE 2) ========== */
.pc2-card {
    background: #090909;
    border: 1px solid #fff;
    border-radius: 12px;
    padding: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.pc2-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.7), 0 0 20px rgba(211,0,0,0.1);
}

.pc2-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 800;
    z-index: 3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pc2-badge-hot {
    background: linear-gradient(135deg, #ff6b00, #ff4400);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255,80,0,0.5);
}

.pc2-badge-new {
    background: rgba(211,0,0,0.9);
    color: #fff;
}

.pc2-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: transparent;
    border-radius: 8px;
}

.pc2-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pc2-card:hover .pc2-img img {
    transform: scale(1.06);
}

.pc2-price-tag {
    position: absolute;
    bottom: 0; right: 0;
    background: rgba(211, 0, 0, 0.97);
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    padding: 5px 14px 5px 18px;
    clip-path: polygon(12% 0%, 100% 0%, 100% 100%, 0% 100%);
    letter-spacing: 0.5px;
}

.pc2-body {
    padding: 10px 4px 4px 4px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pc2-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: left;
}

.pc2-prices {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.pc2-price-main {
    color: var(--accent);
    font-size: 15px;
    font-weight: 800;
}

.pc2-price-old {
    color: #444;
    font-size: 12px;
    text-decoration: line-through;
}

.pc2-discount-pill {
    background: rgba(211, 0, 0, 0.15);
    color: var(--accent);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid rgba(211, 0, 0, 0.3);
}

.pc2-buy-btn {
    width: 100%;
    background: #2b0808;
    border: none;
    color: #ff3333;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    margin-top: auto;
}

.pc2-card:hover .pc2-buy-btn {
    background: #4a0c0c;
    color: #fff;
    box-shadow: 0 0 15px rgba(211, 0, 0, 0.4);
}

.pc2-stock {
    font-size: 12px;
    color: #fff;
    font-weight: 700;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 6px;
}


/* Legacy card compat - no longer used in product grid */
.card-body { padding: 12px; flex: 1; display: flex; flex-direction: column; }
.card-stock-status { font-size: 11px; color: #666; display: flex; align-items: center; justify-content: center; gap: 5px; }

/* ========== ADMIN PANEL POLISH ========== */
.admin-card {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.admin-title {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-title i {
    color: var(--accent);
}

.data-table thead th {
    background: #111;
    color: #777;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px;
    border-bottom: 1px solid #222;
}

.data-table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid #111;
    color: var(--text-secondary);
    vertical-align: middle;
}


.admin-table-img {
    width: 60px; height: 60px; 
    border-radius: 8px; 
    object-fit: cover; 
    border: 1px solid var(--border-glass);
}


.btn-add, .btn-submit {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}


.card-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: #ff5500;
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    transform: rotate(15deg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    z-index: 2;
}

/* ========== MODALS (AUTH REDESIGN) ========== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.modal-box {
    background: #0a0000;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 450px;
    padding: 30px;
    position: relative;
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-box.wide {
    max-width: 900px;
    padding: 24px;
}

/* Modals with red glowing border */
.modal-box.auth-box {
    border: 1px solid rgba(255, 0, 0, 0.3);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--danger);
}

.auth-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.auth-title h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.auth-title p {
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-logo {
    font-size: 30px;
    color: var(--accent);
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

/* LOGO ANIMATION (Requested feature) */
.animated-logo {
    animation: logoFloat 3s ease-in-out infinite, logoGlow 2s alternate infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes logoGlow {
    from { filter: drop-shadow(0 0 5px var(--accent)); }
    to { filter: drop-shadow(0 0 20px var(--accent)); }
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group-outline {
    position: relative;
    width: 100%;
}

.form-group-outline input {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 12px 14px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group-outline input:focus {
    outline: none;
    border-color: var(--border-accent);
    background: rgba(165,0,0,0.05);
}

.form-group-outline.has-icon input {
    padding-right: 40px;
}

/* ========== FORM GROUPS (ADMIN & GENERAL) ========== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: #000;
    border: 1px solid #333;
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(211,0,0,0.2);
}

.show-pass-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.form-check input {
    accent-color: var(--accent);
}

/* Mock Cloudflare */
.cloudflare-mock {
    background: white;
    border-radius: var(--radius);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    margin-top: 5px;
}

.cf-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
}

.cf-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-top-color: #f38020;
    border-radius: 50%;
    animation: cfSpin 1s linear infinite;
}

@keyframes cfSpin {
    to { transform: rotate(360deg); }
}

.cf-right {
    text-align: right;
    font-size: 10px;
    font-weight: 700;
    color: #f38020;
}

.btn-dekhere {
    width: 100%;
    padding: 14px;
    background: var(--accent-dark);
    border: 1px solid var(--accent);
    color: white;
    font-weight: 700;
    font-size: 15px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.btn-dekhere:hover {
    background: var(--accent);
    box-shadow: 0 0 15px rgba(255,0,0,0.4);
}

.form-link {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

.form-link a {
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.form-link a:hover {
    text-decoration: underline;
}

/* Password strength mock */
.password-strength {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.strength-bar {
    height: 4px;
    background: #333;
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    width: 30%;
    height: 100%;
    background: var(--accent);
    transition: width 0.3s ease;
}

/* Decorative sparkles for modals */
.sparkle-1, .sparkle-2 {
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: sparkleTwinkle 2s linear infinite alternate;
}
.sparkle-1 { top: 10%; right: -30px; }
.sparkle-2 { bottom: 20%; left: -40px; transform: scale(0.6); }

@keyframes sparkleTwinkle {
    0% { opacity: 0.2; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1.2); }
}

/* ========== MODAL TABS (TOPUP) ========== */
.modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
}

.modal-box.wide .product-detail-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.lock-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.topup-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: var(--bg-primary);
    padding: 6px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glass);
}

.tab-btn {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn.active {
    background: var(--bg-glass);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

.topup-note {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    padding: 12px;
    border-radius: var(--radius);
    font-size: 12px;
    margin-bottom: 16px;
    line-height: 1.5;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.qr-container {
    background: #fff;
    padding: 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    color: #111;
    margin-bottom: 16px;
}

/* ========== TABLES (HISTORY) ========== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-glass);
}

.data-table th {
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-glass);
}

/* ========== FOOTER ========== */
.footer {
    background: #050000;
    position: relative;
    padding: 60px 20px 20px;
    margin-top: 60px;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: radial-gradient(ellipse 70% 100% at center, rgba(10,0,0,0.8), #050000);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.footer-col.footer-brand {
    text-align: center;
}

.footer-brand h3 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 700;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 16px;
}

.footer-col a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 13px;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.footer-col.footer-discord {
    display: flex;
    justify-content: flex-end;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
    position: relative;
    z-index: 2;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .stats-container { grid-template-columns: 1fr 1fr; }
    .hero-banner { height: 250px; }
    .banner-title-main { font-size: 40px; }
    .banner-alert-icon { font-size: 24px; }
    .category-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr; }
    .product-detail-body { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
    .stats-container,
    .category-grid,
    .product-grid { grid-template-columns: 1fr; }
}

/* ========== TOPUP REDESIGN ========== */
.topup-method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.topup-method-box {
    background: rgba(10, 0, 0, 0.4);
    border: 2px solid var(--border-glass);
    border-radius: 12px;
    padding: 16px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.topup-method-box:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}
.topup-method-box.active {
    border-color: var(--accent);
    background: rgba(211, 0, 0, 0.05);
}
.topup-method-box.active::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 8px;
    right: 8px;
    color: var(--accent);
}
@media(max-width: 768px) {
    .topup-method-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== MODAL LAYOUT ADJUSTMENTS ========== */
.detail-modal-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
}

@media (max-width: 992px) {
    .detail-modal-grid {
        grid-template-columns: 1fr;
    }
}

.detail-actions-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
/* ========== PREMIUM HISTORY MODAL (Image 2) ========== */
.premium-modal {
    background: #020000 !important;
    border: 1px solid rgba(211, 0, 0, 0.2);
    border-radius: 18px;
    padding: 30px !important;
}

.premium-modal-header {
    text-align: center;
    position: relative;
    margin-bottom: 30px;
}

.premium-back-btn {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(211, 0, 0, 0.1);
    border: 1px solid rgba(211, 0, 0, 0.3);
    color: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.premium-back-btn:hover {
    background: var(--accent);
    color: white;
}

.premium-modal-title {
    font-size: 22px;
    font-weight: 800;
    color: white;
    letter-spacing: 0.5px;
}

.history-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.history-limit select {
    background: #000;
    border: 1px solid rgba(211, 0, 0, 0.4);
    color: white;
    padding: 4px 12px;
    border-radius: 8px;
    margin: 0 5px;
    outline: none;
}

.history-search {
    display: flex;
    align-items: center;
    gap: 10px;
}

.history-search input {
    background: #000;
    border: 1px solid rgba(211, 0, 0, 0.4);
    color: white;
    padding: 6px 15px;
    border-radius: 12px;
    outline: none;
    width: 200px;
    transition: all 0.3s;
}

.history-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(211, 0, 0, 0.2);
}

/* List & Cards */
.premium-history-list {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.history-card-premium {
    display: flex;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    transition: background 0.3s;
    flex-wrap: wrap;
    gap: 15px;
}

.history-card-premium:last-child {
    border-bottom: none;
}

.history-card-premium:hover {
    background: rgba(255, 255, 255, 0.02);
}

.hcp-img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(211, 0, 0, 0.3);
}

.hcp-content {
    flex: 1;
    min-width: 200px;
}

.hcp-title {
    font-size: 14px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.hcp-category {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.hcp-stats {
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 100px;
}

.hcp-price-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; }
.hcp-price-val { font-size: 15px; font-weight: 700; color: white; margin-bottom: 10px; }

.hcp-qty-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; }
.hcp-qty-val { font-size: 14px; font-weight: 700; color: white; }

.hcp-bottom {
    width: 100%;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hcp-date {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-view-premium {
    background: #0a0000;
    border: 1px solid rgba(211, 0, 0, 0.4);
    color: var(--accent);
    padding: 6px 18px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.btn-view-premium:hover {
    background: var(--accent);
    color: white;
}

/* Pagination */
.premium-pagination {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.pagination-controls-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pagination-arrow {
    width: 32px;
    height: 32px;
    background: #111;
    border: 1px solid #333;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.pagination-arrow:hover:not(:disabled) {
    background: var(--accent);
    border-color: var(--accent);
}

.pagination-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-number {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}
