/* =============================================
   NextGen Shop - Complete Stylesheet
   ============================================= */

/* --- Variables --- */
:root {
    --navy: #0d1b2a;
    --navy2: #1b2838;
    --red: #e63946;
    --red2: #c1121f;
    --bg: #f0f2f5;
    --white: #ffffff;
    --gray: #6c757d;
    --light: #f8f9fa;
    --border: #e0e0e0;
    --shadow: 0 4px 20px rgba(0,0,0,0.10);
    --shadow2: 0 8px 32px rgba(0,0,0,0.15);
    --radius: 16px;
    --radius2: 12px;
    --font-main: 'Hind Siliguri', sans-serif;
    --font-heading: 'Exo 2', sans-serif;
    --green: #2dc653;
    --yellow: #f4a261;
    --bottom-nav-h: 68px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-main);
    background: var(--bg);
    color: #1a1a2e;
    min-height: 100vh;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
input, textarea, select { font-family: var(--font-main); outline: none; border: none; }
button { cursor: pointer; font-family: var(--font-main); border: none; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    height: 58px;
    border-bottom: 3px solid var(--red);
    box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 0.5px;
}
.hamburger {
    background: transparent;
    color: #adb5bd;
    font-size: 1.3rem;
    padding: 6px;
    border-radius: 8px;
    transition: color 0.2s;
}
.hamburger:hover { color: var(--white); }

.nav-dropdown {
    display: none;
    position: absolute;
    top: 58px;
    left: 0; right: 0;
    background: var(--navy2);
    padding: 10px 0;
    z-index: 999;
    border-bottom: 3px solid var(--red);
    animation: slideDown 0.2s ease;
}
.nav-dropdown.open { display: block; }
.nav-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 22px;
    color: #ccc;
    font-size: 0.98rem;
    font-weight: 500;
    transition: all 0.2s;
}
.nav-dropdown a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.nav-dropdown .logout-link { color: var(--red); }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   BOTTOM NAVIGATION
   ============================================= */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--bottom-nav-h);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-top: 1px solid var(--border);
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    border-radius: 20px 20px 0 0;
}
.bnav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--gray);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 8px 20px;
    border-radius: 12px;
    transition: all 0.2s;
}
.bnav-item i { font-size: 1.4rem; }
.bnav-item.active { color: var(--red); }
.bnav-item.active i { transform: scale(1.15); }

/* =============================================
   NOTICE BAR
   ============================================= */
.notice-bar {
    background: linear-gradient(90deg, var(--navy) 0%, var(--navy2) 100%);
    color: #e0e0e0;
    padding: 9px 0;
    overflow: hidden;
    font-size: 0.88rem;
}
.notice-text {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 22s linear infinite;
    padding-left: 100%;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}

/* =============================================
   BANNER SLIDER
   ============================================= */
.banner-wrapper {
    padding: 12px 0 0;
    width: 100%;
}
.banner-slider {
    position: relative;
    overflow: hidden;
    background: var(--navy);
    box-shadow: var(--shadow2);
    width: 100%;
    border-radius: 0;
}
.banner-slide {
    display: none;
    width: 100%;
}
.banner-slide.active { display: block; }
.banner-slide a { display: block; width: 100%; }
.banner-slide img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 0;
}
@media (min-width: 400px) {
    .banner-slide img { height: 210px; }
}
.banner-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}
.banner-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}
.banner-dot.active { background: var(--white); width: 20px; border-radius: 4px; }

/* =============================================
   SECTION TITLE
   ============================================= */
.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 14px 12px;
}
.section-title h2 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.section-title::after {
    content: '';
    flex: 1;
    height: 2.5px;
    background: linear-gradient(90deg, var(--red) 0%, transparent 100%);
    border-radius: 2px;
}

/* =============================================
   PRODUCT GRID
   ============================================= */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 14px;
}
.product-card {
    background: var(--white);
    border-radius: var(--radius2);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1.5px solid var(--border);
}
.product-card:active { transform: scale(0.97); }
.product-card-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    background: #f0f0f0;
}
.product-card-body {
    padding: 10px 10px 12px;
}
.product-card-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
    line-height: 1.35;
    min-height: 38px;
}
.product-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.price-sale {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--red);
}
.price-original {
    font-size: 0.82rem;
    color: var(--gray);
    text-decoration: line-through;
}
.btn-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 10px 0;
    background: var(--red);
    color: var(--white);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: background 0.2s, transform 0.15s;
}
.btn-buy:active { background: var(--red2); transform: scale(0.97); }

/* =============================================
   FLOATING SUPPORT BUTTON
   ============================================= */
.floating-support {
    position: fixed;
    bottom: calc(var(--bottom-nav-h) + 14px);
    right: 16px;
    z-index: 998;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 10px;
}
.float-main-btn {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    font-size: 1.3rem;
    box-shadow: 0 4px 18px rgba(230,57,70,0.45);
    transition: transform 0.2s, background 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.float-main-btn.open { background: var(--navy); transform: rotate(90deg); }
.float-menu { display: none; flex-direction: column-reverse; gap: 10px; align-items: flex-end; }
.float-menu.open { display: flex; animation: fadeInUp 0.2s ease; }
.float-btn-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border-radius: 30px;
    padding: 8px 14px 8px 10px;
    box-shadow: var(--shadow);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--navy);
    transition: transform 0.15s;
}
.float-btn-item:active { transform: scale(0.96); }
.float-btn-item img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

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

/* =============================================
   POPUP MODAL
   ============================================= */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}
.popup-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 24px;
    max-width: 340px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow2);
    animation: popIn 0.3s ease;
}
.popup-box h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--navy);
    margin-bottom: 12px;
}
.popup-box p { color: var(--gray); font-size: 0.95rem; line-height: 1.6; }
.popup-close {
    position: absolute;
    top: 12px; right: 14px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 30px; height: 30px;
    font-size: 1rem;
    color: var(--gray);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}
.popup-close:hover { background: var(--red); color: var(--white); }
.popup-btn {
    margin-top: 18px;
    display: inline-block;
    padding: 11px 32px;
    background: var(--red);
    color: var(--white);
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background 0.2s;
}
.popup-btn:hover { background: var(--red2); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

/* =============================================
   AUTH PAGES (Login / Signup)
   ============================================= */
.auth-page {
    min-height: calc(100vh - 58px - var(--bottom-nav-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 100px;
}
.auth-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 24px 28px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow2);
    position: relative;
    overflow: hidden;
}
.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--red) 0%, var(--red2) 100%);
    border-radius: var(--radius) var(--radius) 0 0;
}
.auth-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--navy);
    text-align: center;
    margin-bottom: 6px;
}
.auth-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 0.92rem;
    margin-bottom: 28px;
}
.input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f3f4f6;
    border-radius: 12px;
    padding: 13px 16px;
    margin-bottom: 14px;
    border: 1.5px solid transparent;
    transition: border-color 0.2s;
}
.input-group:focus-within { border-color: var(--red); background: #fff; }
.input-group i { color: #aaa; font-size: 1rem; width: 18px; text-align: center; }
.input-group input {
    flex: 1;
    background: transparent;
    font-size: 0.95rem;
    color: var(--navy);
    font-family: var(--font-main);
}
.input-group input::placeholder { color: #bbb; }
.btn-auth {
    width: 100%;
    padding: 14px;
    background: var(--navy);
    color: var(--white);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    margin-top: 6px;
    transition: background 0.2s, transform 0.15s;
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-auth:active { transform: scale(0.98); }
.btn-auth:hover { background: #1b2838; }
.auth-footer {
    text-align: center;
    margin-top: 18px;
    font-size: 0.92rem;
    color: var(--gray);
}
.auth-footer a { color: var(--red); font-weight: 700; }
.auth-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--gray);
    transition: color 0.2s;
}
.auth-back:hover { color: var(--navy); }
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    font-weight: 500;
}
.alert-error { background: #ffe0e0; color: var(--red2); border-left: 4px solid var(--red); }
.alert-success { background: #e0ffec; color: #1a7a3a; border-left: 4px solid var(--green); }

/* =============================================
   PRODUCT DETAIL PAGE
   ============================================= */
.product-detail-page { padding-bottom: 100px; }
.product-img-card {
    margin: 14px;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1.5px solid #fce4e4;
}
.product-img-card img { width: 100%; max-height: 280px; object-fit: cover; }
.product-info-card {
    margin: 0 14px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}
.breadcrumb {
    font-size: 0.82rem;
    color: var(--gray);
    margin-bottom: 12px;
}
.breadcrumb a { color: var(--red); font-weight: 600; }
.product-detail-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 10px;
}
.stock-badge {
    display: inline-block;
    background: var(--green);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}
.price-card {
    background: #fff5f5;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.price-card .price-sale { font-size: 1.5rem; }
.desc-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 10px;
}
.desc-content { font-size: 0.93rem; color: #444; line-height: 1.7; margin-bottom: 14px; }
.feature-list { list-style: none; margin-bottom: 16px; }
.feature-list li {
    font-size: 0.92rem;
    color: #333;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.feature-list li::before {
    content: '✔';
    color: var(--green);
    font-weight: 700;
}
.btn-purchase {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: var(--red);
    color: var(--white);
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--font-heading);
    transition: background 0.2s, transform 0.15s;
}
.btn-purchase:active { transform: scale(0.98); background: var(--red2); }

/* =============================================
   CHECKOUT PAGE
   ============================================= */
.checkout-page { padding: 14px 14px 100px; }
.checkout-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}
.checkout-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--red), var(--red2));
}
.step-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}
.step-dot {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #eee;
    color: #aaa;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s;
}
.step-dot.active { background: var(--red); color: var(--white); }
.step-dot.done { background: var(--green); color: var(--white); }
.step-line {
    flex: 1;
    height: 2px;
    background: #eee;
    align-self: center;
    border-radius: 2px;
    max-width: 40px;
}
.step-line.done { background: var(--green); }
.checkout-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 20px;
    text-align: center;
}
.payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}
.payment-method-card {
    background: #f8f9fa;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 14px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}
.payment-method-card.selected {
    border-color: var(--red);
    background: #fff5f5;
    transform: scale(1.03);
}
.payment-method-card img { width: 44px; height: 44px; object-fit: contain; margin: 0 auto 8px; }
.payment-method-card span { font-size: 0.78rem; font-weight: 700; color: var(--navy); display: block; }

.payment-info-card {
    border-radius: 16px;
    padding: 22px;
    color: var(--white);
    margin-bottom: 16px;
}
.payment-info-card .pmethod-logo { width: 70px; height: 70px; object-fit: contain; margin: 0 auto 14px; }
.payment-info-card h3 { text-align: center; font-size: 1.15rem; font-weight: 800; margin-bottom: 18px; }
.payment-info-list { list-style: none; }
.payment-info-list li {
    padding: 11px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.payment-info-list li:last-child { border-bottom: none; }
.copy-number {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ffe066;
}
.btn-copy {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    border: 1.5px solid rgba(255,255,255,0.4);
    transition: background 0.2s;
}
.btn-copy:hover { background: rgba(255,255,255,0.35); }
.amount-highlight { font-size: 1.05rem; font-weight: 800; color: #ffe066; }
.coupon-row {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}
.coupon-row input {
    flex: 1;
    padding: 12px 16px;
    background: #f3f4f6;
    border-radius: 10px;
    font-size: 0.9rem;
    border: 1.5px solid var(--border);
    transition: border-color 0.2s;
}
.coupon-row input:focus { border-color: var(--red); }
.btn-apply {
    padding: 12px 18px;
    background: var(--navy);
    color: var(--white);
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.88rem;
    transition: background 0.2s;
}
.btn-next {
    width: 100%;
    padding: 14px;
    background: var(--red);
    color: var(--white);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-heading);
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: background 0.2s, transform 0.15s;
    margin-top: 8px;
}
.btn-next:active { transform: scale(0.98); background: var(--red2); }
.btn-back-step {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: var(--gray);
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 8px;
    border: 1.5px solid var(--border);
}

/* =============================================
   ORDERS PAGE
   ============================================= */
.orders-page { padding: 14px 14px 100px; }
.page-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.page-title i { color: var(--red); font-size: 1.4rem; }
.page-title h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--navy);
}
.order-card {
    background: var(--white);
    border-radius: var(--radius2);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 14px;
    align-items: flex-start;
    border-left: 4px solid var(--border);
}
.order-card.pending { border-left-color: var(--yellow); }
.order-card.approved { border-left-color: var(--green); }
.order-card.rejected { border-left-color: var(--red); }
.order-card img { width: 70px; height: 70px; object-fit: cover; border-radius: 10px; background: #f0f0f0; }
.order-info { flex: 1; }
.order-name { font-weight: 700; font-size: 0.92rem; color: var(--navy); margin-bottom: 4px; }
.order-meta { font-size: 0.8rem; color: var(--gray); margin-bottom: 6px; }
.order-code { font-size: 0.78rem; color: var(--gray); margin-bottom: 6px; }
.status-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
}
.status-badge.pending  { background: #fff3dc; color: #b07800; }
.status-badge.approved { background: #dcffe4; color: #1a7a3a; }
.status-badge.rejected { background: #ffe0e0; color: var(--red2); }
.btn-view-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 7px 16px;
    background: var(--green);
    color: var(--white);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
}
.empty-state {
    text-align: center;
    padding: 60px 20px;
}
.empty-state i { font-size: 4rem; color: #ddd; margin-bottom: 16px; }
.empty-state p { color: var(--gray); margin-bottom: 20px; font-size: 0.95rem; }
.btn-start-shop {
    display: inline-block;
    padding: 12px 32px;
    background: var(--red);
    color: var(--white);
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
}

/* =============================================
   ACCOUNT PAGE
   ============================================= */
.account-page { padding-bottom: 100px; }
.profile-hero {
    background: var(--navy);
    padding: 28px 20px 70px;
    text-align: center;
    position: relative;
}
.avatar-circle {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 900;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    border: 3px solid rgba(255,255,255,0.3);
    overflow: hidden;
}
.avatar-circle img { width: 100%; height: 100%; object-fit: cover; }
.profile-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 6px;
}
.profile-email, .profile-phone {
    font-size: 0.87rem;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-bottom: 4px;
}
.stats-card {
    background: var(--white);
    border-radius: var(--radius);
    margin: -40px 16px 0;
    padding: 20px;
    box-shadow: var(--shadow2);
    text-align: center;
    position: relative;
    z-index: 2;
}
.stats-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--red);
}
.stats-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gray);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.account-menu { padding: 16px 16px 0; }
.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
    border-radius: var(--radius2);
    padding: 16px 18px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.15s;
    cursor: pointer;
}
.menu-item:active { transform: scale(0.98); }
.menu-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}
.menu-item span { font-weight: 600; font-size: 0.95rem; color: var(--navy); }
.menu-item.logout-item span { color: var(--red); }
.menu-item.logout-item { background: #fff5f5; }

/* =============================================
   ADMIN PANEL
   ============================================= */
.admin-body {
    font-family: var(--font-main);
    background: #f0f2f5;
    min-height: 100vh;
    padding-bottom: 70px;
}
.admin-navbar {
    background: var(--navy);
    padding: 0 18px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid var(--red);
    position: sticky;
    top: 0;
    z-index: 100;
}
.admin-brand {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--white);
}
.admin-brand span { color: var(--red); }
.admin-nav-badge {
    background: var(--red);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: 6px;
}
.admin-bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: var(--navy);
    display: flex;
    border-top: 2px solid var(--red);
    z-index: 100;
}
.admin-bnav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: rgba(255,255,255,0.5);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: color 0.2s;
}
.admin-bnav-item i { font-size: 1.2rem; }
.admin-bnav-item.active { color: var(--red); }

.admin-content { padding: 16px; }

/* Admin Control Grid */
.admin-btn-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}
.admin-ctrl-btn {
    background: var(--white);
    border-radius: 14px;
    padding: 18px 10px;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}
.admin-ctrl-btn:active { transform: scale(0.96); }
.admin-ctrl-btn.active { border-color: var(--red); background: #fff5f5; }
.admin-ctrl-icon {
    width: 46px; height: 46px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 10px;
    font-size: 1.3rem;
    color: var(--white);
}
.admin-ctrl-btn span { font-size: 0.78rem; font-weight: 700; color: var(--navy); display: block; }

/* Dashboard Stats */
.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}
.stat-card {
    background: var(--white);
    border-radius: 14px;
    padding: 18px 14px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 14px;
}
.stat-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    color: var(--white);
    flex-shrink: 0;
}
.stat-info .stat-num {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--navy);
}
.stat-info .stat-lbl { font-size: 0.75rem; color: var(--gray); font-weight: 600; }

/* Admin Table */
.admin-table-wrap { overflow-x: auto; background: var(--white); border-radius: 14px; box-shadow: var(--shadow); }
.admin-table { width: 100%; border-collapse: collapse; min-width: 500px; }
.admin-table th {
    background: var(--navy);
    color: var(--white);
    padding: 12px 14px;
    text-align: left;
    font-size: 0.82rem;
    font-weight: 700;
}
.admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    color: #333;
    vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fafafa; }

/* Admin Buttons */
.btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
    border: none;
}
.btn-sm:hover { opacity: 0.85; }
.btn-edit   { background: #e8f4fd; color: #1565c0; }
.btn-delete { background: #ffe0e0; color: var(--red2); }
.btn-ban    { background: #fff3dc; color: #b07800; }
.btn-approve { background: #dcffe4; color: #1a7a3a; }
.btn-reject  { background: #ffe0e0; color: var(--red2); }
.btn-view    { background: #f0e6ff; color: #6a1b9a; }

.btn-add {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--red);
    color: var(--white);
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 14px;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}
.btn-add:hover { background: var(--red2); }

/* Admin Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}
.modal-overlay.open { display: flex; animation: fadeIn 0.2s ease; }
.modal-box {
    background: var(--white);
    border-radius: 20px 20px 0 0;
    padding: 24px 20px 36px;
    width: 100%;
    max-width: 500px;
    max-height: 88vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}
.modal-box h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-close-btn {
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--gray);
}
.admin-input {
    width: 100%;
    padding: 12px 16px;
    background: #f3f4f6;
    border-radius: 10px;
    font-size: 0.92rem;
    color: var(--navy);
    border: 1.5px solid var(--border);
    margin-bottom: 12px;
    font-family: var(--font-main);
    transition: border-color 0.2s;
}
.admin-input:focus { border-color: var(--red); background: var(--white); outline: none; }
.admin-label { font-size: 0.82rem; font-weight: 700; color: var(--gray); margin-bottom: 6px; display: block; }
.btn-submit {
    width: 100%;
    padding: 13px;
    background: var(--red);
    color: var(--white);
    border-radius: 12px;
    font-size: 0.98rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-top: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-submit:hover { background: var(--red2); }

/* Settings Page */
.settings-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 14px;
}
.settings-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}
.settings-title i { color: var(--red); }

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border-radius: 12px;
    padding: 11px 16px;
    box-shadow: var(--shadow);
    margin-bottom: 14px;
    border: 1.5px solid var(--border);
}
.search-bar i { color: var(--gray); }
.search-bar input {
    flex: 1;
    background: transparent;
    font-size: 0.92rem;
    color: var(--navy);
    border: none;
    outline: none;
    font-family: var(--font-main);
}

/* Banner Preview */
.banner-preview-img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px; height: 24px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ccc;
    border-radius: 24px;
    transition: .3s;
}
.toggle-slider:before {
    content: '';
    position: absolute;
    height: 18px; width: 18px;
    left: 3px; bottom: 3px;
    background: var(--white);
    border-radius: 50%;
    transition: .3s;
}
input:checked + .toggle-slider { background: var(--green); }
input:checked + .toggle-slider:before { transform: translateX(20px); }

/* Color Backgrounds for admin buttons */
.bg-blue   { background: linear-gradient(135deg,#1565c0,#1e88e5); }
.bg-green  { background: linear-gradient(135deg,#1b5e20,#2dc653); }
.bg-red    { background: linear-gradient(135deg,#b71c1c,#e63946); }
.bg-purple { background: linear-gradient(135deg,#4a148c,#8e24aa); }
.bg-teal   { background: linear-gradient(135deg,#004d40,#00897b); }
.bg-orange { background: linear-gradient(135deg,#e65100,#f4a261); }
.bg-navy   { background: linear-gradient(135deg,#0d1b2a,#1b2838); }
.bg-pink   { background: linear-gradient(135deg,#880e4f,#e91e63); }
.bg-brown  { background: linear-gradient(135deg,#3e2723,#795548); }
.bg-indigo { background: linear-gradient(135deg,#1a237e,#3949ab); }
.bg-cyan   { background: linear-gradient(135deg,#006064,#00acc1); }

/* Utilities */
.mt-10 { margin-top: 10px; }
.mt-14 { margin-top: 14px; }
.text-center { text-align: center; }
.text-red { color: var(--red); }
.text-green { color: var(--green); }
.text-gray { color: var(--gray); }
.fw-700 { font-weight: 700; }
.hidden { display: none !important; }

@keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

/* Admin Login Page */
.admin-login-page {
    min-height: 100vh;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.admin-login-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 28px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
}
.admin-login-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--red), #ff6b6b);
}
.admin-login-logo {
    text-align: center;
    margin-bottom: 28px;
}
.admin-login-logo h1 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--navy);
}
.admin-login-logo h1 span { color: var(--red); }
.admin-login-logo p { font-size: 0.85rem; color: var(--gray); margin-top: 4px; }
