/* ============================================
   DM SHOP - Main Stylesheet
   Dark + Light Mode | Mobile-First Design
   ============================================ */

:root {
    --primary: #0062ff;
    --primary-dark: #004dc9;
    --primary-light: #4c91ff;
    --accent: #ff4757;
    --accent-dark: #ff1f1f;
    --success: #2ed573;
    --danger: #ff4757;
    --info: #17c0eb;
    
    /* Light Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f4f7fe;
    --bg-card: #ffffff;
    --bg-input: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0,98,255,0.1), 0 10px 10px -5px rgba(0,98,255,0.04);
    --gradient-hero: linear-gradient(135deg, #0062ff 0%, #004dc9 100%);
    --nav-bg: #0062ff;
    --footer-bg: #1e293b;
    --overlay: rgba(0,0,0,0.5);
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --bg-input: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: #334155;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.2), 0 2px 4px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.3), 0 10px 10px -5px rgba(0,0,0,0.2);
    --shadow-hover: 0 20px 25px -5px rgba(0,98,255,0.3), 0 10px 10px -5px rgba(0,98,255,0.2);
    --nav-bg: #0f172a;
    --footer-bg: #020617;
    --overlay: rgba(0,0,0,0.8);
}

/* ============ Base Styles ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============ Desktop Navbar ============ */
.desktop-nav {
    background: var(--nav-bg) !important;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
    z-index: 1050;
}

.desktop-nav .navbar-brand {
    font-size: 1.3rem;
    letter-spacing: -0.5px;
}

.desktop-nav .nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.desktop-nav .nav-link:hover,
.desktop-nav .nav-link.active {
    background: rgba(255,255,255,0.1);
}

.badge-notification {
    font-size: 0.65rem;
    padding: 0.25em 0.5em;
}

/* ============ Mobile AppBar ============ */
.mobile-appbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border-color);
}

.appbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    height: 56px;
}

.appbar-brand {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff !important;
    letter-spacing: -0.5px;
}

.appbar-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
    position: relative;
}

.appbar-btn:hover {
    background: rgba(255,255,255,0.1);
}

.appbar-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.appbar-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--accent);
    color: #000;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============ Customer Notification Bell ============ */
.cust-notif-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 50px;
    background: #e74c3c;
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.notif-dropdown-cust {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    box-shadow: var(--shadow-lg) !important;
}

.notif-cust-item { transition: background 0.15s ease; }
.notif-cust-item:hover { background: var(--bg-secondary) !important; }

/* ============ Mobile Slide Menu ============ */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay);
    z-index: 1060;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-slide-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: var(--bg-primary);
    z-index: 1070;
    transition: left 0.3s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.mobile-slide-menu.open {
    left: 0;
}

.slide-menu-header {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.avatar-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.slide-menu-body {
    padding: 0.5rem 0;
}

.slide-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.slide-menu-item:hover,
.slide-menu-item.active {
    background: var(--bg-secondary);
    color: var(--primary);
}

.slide-menu-item i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.slide-menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 16px;
}

/* ============ Mobile Bottom Navigation ============ */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1040;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 500;
    padding: 4px 0;
    flex: 1;
    transition: all 0.3s ease;
    position: relative;
}

.bottom-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: var(--primary);
}

.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 4px 4px;
}

.bottom-nav-badge {
    position: absolute;
    top: 0;
    right: 50%;
    transform: translateX(120%);
    background: var(--accent);
    color: #000;
    font-size: 0.55rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============ Main Content ============ */
.main-content {
    min-height: 100vh;
    padding-bottom: 70px;
}

@media (min-width: 992px) {
    .main-content {
        padding-top: 60px;
        padding-bottom: 0;
    }
}

@media (max-width: 991.98px) {
    .main-content {
        padding-top: 56px;
    }
}

/* ============ Hero Section ============ */
.hero-section {
    background: var(--gradient-hero);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    max-width: 500px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
}

.hero-stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============ Section Styles ============ */
.section {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ============ DM SHOP Premium Components ============ */
.dm-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}
.dm-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.dm-card-img-wrap {
    position: relative;
    padding-top: 100%; /* Square aspect ratio */
    overflow: hidden;
    background: #f1f5f9;
}
.dm-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dm-card-badge-red {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ff4757;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}
.dm-card-vendor {
    font-size: 0.65rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.dm-card-title {
    font-size: 0.85rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.3rem;
}
.dm-card-rating {
    font-size: 0.7rem;
}
.dm-card-price {
    font-size: 1rem;
}

/* Home Section Layouts */
.home-section-dm {
    padding: 1.5rem 0;
}
.dm-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

/* Category Grid Premium */
.dm-cat-card {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    flex: 1;
    min-width: 75px;
}
.dm-cat-card i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}
.dm-cat-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #475569;
}

/* Promo Banner Bar */
.dm-promo-bar {
    background: linear-gradient(90deg, #ff416c, #ff4b2b);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.dm-promo-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.dm-promo-main {
    font-size: 1.2rem;
    font-weight: 800;
}

/* ============ Original Styles (Modified for DM) ============ */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
.login-slide-dot {
    border-radius: 3px;
    border: none;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, width 0.3s;
}

.login-slide-dot.active {
    background: var(--primary);
    width: 32px;
}

/* ============ Testimonial Card ============ */
.testimonial-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-hover);
}

.testimonial-stars {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 700;
    font-size: 0.9rem;
}

.testimonial-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============ FAQ Accordion ============ */
.faq-item {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-light);
}

.faq-question {
    padding: 1.2rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question i {
    transition: transform 0.3s ease;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.open .faq-answer {
    padding: 0 1.5rem 1.2rem;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ============ Order/Cart Table ============ */
.cart-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap; /* Allow wrapping on mobile */
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-secondary);
    flex-shrink: 0;
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    min-width: 150px; /* Ensure enough space for title */
}

.cart-item-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cart-quantity-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 110px;
}

.cart-item-price {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.1rem;
    text-align: right;
    min-width: 100px;
}

/* Small Qty Controls for Cart */
.small-qty.quantity-control {
    scale: 0.9;
    margin: 0;
}
.x-small {
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Mobile specific stacking */
@media (max-width: 576px) {
    .cart-item {
        gap: 0.75rem;
    }
    .cart-item-info {
        flex: 1 1 100%;
        order: 1;
    }
    .cart-item-img {
        width: 60px;
        height: 60px;
    }
    .cart-quantity-wrap {
        order: 2;
        align-items: flex-start;
        flex: 1;
    }
    .cart-item-price {
        order: 3;
        font-size: 1rem;
    }
    .cart-item .btn-link {
        order: 4;
    }
}


/* ============ Status Badges ============ */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-completed { background: #e8f5e9; color: #2e7d32; }
.status-pending { background: #fff3e0; color: #ef6c00; }
.status-failed { background: #ffebee; color: #c62828; }
.status-refunded { background: #e3f2fd; color: #1565c0; }
.status-cancelled { background: #fce4ec; color: #b71c1c; }

[data-theme="dark"] .status-completed { background: rgba(46,125,50,0.2); }
[data-theme="dark"] .status-pending { background: rgba(239,108,0,0.2); }
[data-theme="dark"] .status-failed { background: rgba(198,40,40,0.2); }
[data-theme="dark"] .status-refunded { background: rgba(21,101,192,0.2); }
[data-theme="dark"] .status-cancelled { background: rgba(183,28,28,0.2); }

/* ============ Footer ============ */
.site-footer {
    background: var(--footer-bg);
    color: #fff;
    margin-top: 40px;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-social {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-social:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ============ Product Detail Page ============ */
.product-detail-img {
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.product-detail-img img {
    width: 100%;
    border-radius: 16px;
}

.screenshot-gallery {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
    -webkit-overflow-scrolling: touch;
}

.screenshot-thumb {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.screenshot-thumb.active,
.screenshot-thumb:hover {
    border-color: var(--primary);
}

.screenshot-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============ Search Bar ============ */
.search-bar {
    position: relative;
}

.search-bar input {
    padding-left: 2.5rem;
    border-radius: 25px;
    background: var(--bg-card);
}

.search-bar i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* ============ Filter Chips ============ */
.filter-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
    -webkit-overflow-scrolling: touch;
}

.filter-chip {
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-chip:hover,
.filter-chip.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ============ Empty State ============ */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.empty-state h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ============ Dropdown Fix for dark ============ */
[data-theme="dark"] .dropdown-menu {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .dropdown-item {
    color: var(--text-primary);
}

[data-theme="dark"] .dropdown-item:hover {
    background: var(--bg-secondary);
}

/* ============ Alert Override ============ */
.alert {
    border-radius: 12px;
    border: none;
    font-size: 0.9rem;
}

/* ============ Placeholder Thumbnail ============ */
.placeholder-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: rgba(255,255,255,0.6);
    font-size: 2.5rem;
}

/* ============ Checkout Summary ============ */
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    font-size: 0.95rem;
}

.summary-row.total {
    border-top: 2px solid var(--border-color);
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-weight: 800;
    font-size: 1.2rem;
}

.summary-row.total .price-current {
    font-size: 1.4rem;
}

/* ============ Quantity Control (Global) ============ */
.quantity-section {
    display: flex; align-items: center; gap: 14px; margin: 20px 0;
}
.quantity-control {
    display: flex; align-items: center;
    background: var(--bg-input); border-radius: 12px;
    padding: 4px; border: 1px solid var(--border-color);
}
.qty-btn {
    width: 32px; height: 32px; border: none;
    background: transparent; color: var(--text-primary);
    font-size: 0.9rem; cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
}
.qty-btn:hover { background: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,0.05); color: #fff; }
.qty-input {
    width: 45px; text-align: center; border: none;
    background: transparent; font-weight: 800;
    font-size: 1.1rem; color: var(--text-primary);
    -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.qty-input:focus { outline: none; }


/* ============ Animations ============ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeInUp 0.5s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ============ Scrollbar ============ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ============ Highlighted Buttons ============ */
.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.5) !important;
    filter: brightness(1.1);
}

.btn-accent:active {
    transform: translateY(0);
}

/* ============ Table responsive ============ */
.table {
    color: var(--text-primary);
}

[data-theme="dark"] .table {
    --mdb-table-bg: var(--bg-card);
    --mdb-table-striped-bg: var(--bg-secondary);
    --mdb-table-hover-bg: var(--bg-secondary);
    border-color: var(--border-color);
}

/* ============ Coupon Input ============ */
.coupon-group {
    display: flex;
    gap: 8px;
}

.coupon-group input {
    border-radius: 10px 0 0 10px;
    text-transform: uppercase;
}

.coupon-group button {
    border-radius: 0 10px 10px 0;
    white-space: nowrap;
}

/* ============ Invoice ============ */
.invoice-container {
    background: #fff;
    color: #333;
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

/* Bill To (Seller Address) box on invoice */
.invoice-bill-to-box {
    border: 1.5px solid #e0e7ef;
    border-left: 5px solid var(--primary);
    border-radius: 10px;
    overflow: hidden;
    background: #f8fbff;
}

.invoice-bill-to-label {
    background: var(--primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 14px;
}

.invoice-bill-to-body {
    padding: 12px 16px;
}

.invoice-bill-to-company {
    font-size: 1rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 1px;
}

.invoice-bill-to-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.invoice-bill-to-line {
    font-size: 0.83rem;
    color: #555;
    line-height: 1.5;
}

.invoice-bill-to-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
    color: #444;
}

.invoice-bill-to-extra {
    font-size: 0.78rem;
    color: #777;
    margin-top: 4px;
    font-style: italic;
}

@media print {
    .no-print { display: none !important; }
    .invoice-container { box-shadow: none; margin: 0; }
    .invoice-bill-to-box { border-left-color: #333 !important; }
    .invoice-bill-to-label { background: #333 !important; }
}

/* ============================================================
   NEW MOBILE HOME — AppBar Search + Category Pills
   ============================================================ */
.mobile-appbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1050;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 8px rgba(0,0,0,0.07);
}

.appbar-search-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px 6px;
}

.appbar-search-wrap {
    flex: 1;
    min-width: 0;
}

.appbar-search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.appbar-search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
}

.appbar-search-input {
    width: 100%;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 22px;
    padding: 0 14px 0 34px;
    font-size: 0.88rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    outline: none;
    transition: border-color .2s;
}

.appbar-search-input:focus {
    border-color: var(--primary);
    background: var(--bg-card);
}

.appbar-search-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.appbar-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: background .2s;
    text-decoration: none;
}

.appbar-icon-btn:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

/* Category pills row inside AppBar */
.appbar-category-pills {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 4px 12px 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.appbar-category-pills::-webkit-scrollbar { display: none; }

.cat-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    transition: all .2s;
    flex-shrink: 0;
}

.cat-pill.active,
.cat-pill:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Adjust main-content top padding for taller AppBar on mobile */
@media (max-width: 991.98px) {
    .main-content {
        padding-top: 96px; /* search row ~56px + pills row ~40px */
    }
}

/* ============================================================
   HOME BANNER — full-width, edge-to-edge, matches reference UI
   ============================================================ */

/* Wrapper: zero margin/padding, bleeds to screen edges on mobile */
.home-banner-wrap {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #000;
    /* Push below fixed AppBar on mobile */
    margin-top: 0;
}

/* Each slide container */
.home-banner-slide {
    width: 100%;
    position: relative;
    overflow: hidden;
    /* Mobile default: 1080×1020 tall portrait ratio */
    aspect-ratio: 1080 / 1020;
    background: #111;
}

/* Half-width banner: 50% on desktop, full-width on mobile */
.home-banner-half {
    max-width: 50%;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
}

@media (max-width: 767px) {
    .home-banner-half {
        max-width: 100%;
        border-radius: 0;
    }
}

/* Media (image, gif, video) */
.home-banner-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Overlay: gradient from bottom, holds text + CTA */
.home-banner-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px 14px 14px;
    background: linear-gradient(
        to bottom,
        transparent 30%,
        rgba(0,0,0,0.55) 70%,
        rgba(0,0,0,0.78) 100%
    );
}

.home-banner-text-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.home-banner-title {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 3px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.home-banner-sub {
    color: rgba(255,255,255,0.82);
    font-size: 0.78rem;
    line-height: 1.4;
    margin-bottom: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* Action row: shop-now button or social CTA */
.home-banner-actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Standard "Shop Now" button — yellow pill matching reference */
.home-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f5c518;
    color: #111;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 5px 16px;
    border-radius: 20px;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: opacity .2s, transform .15s;
    white-space: nowrap;
}
.home-banner-btn:hover { opacity: .88; color: #111; transform: scale(1.03); }

/* Social platform CTA button */
.home-banner-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: opacity .2s, transform .15s;
    white-space: nowrap;
    border: 1.5px solid rgba(255,255,255,0.3);
}
.home-banner-social-btn:hover { opacity: .88; color: #fff; transform: scale(1.03); }

/* Dot indicators — red pill style below banner, matching reference */
.home-banner-dots-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 7px 0 4px;
    background: var(--bg-primary);
}

.home-banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all .25s;
    flex-shrink: 0;
}

.home-banner-dot.active {
    width: 22px;
    border-radius: 4px;
    background: #e74c3c;
}

/* Desktop: contained with rounded corners, 1920×540 ratio (50% viewport height) */
@media (min-width: 992px) {
    .home-banner-wrap {
        padding: 0 0 8px;
        background: var(--bg-primary);
    }
    .home-banner-slide {
        max-width: 1200px;
        margin: 0 auto;
        border-radius: 16px;
        aspect-ratio: 1920 / 540;
    }
    .home-banner-title { font-size: 1.5rem; }
    .home-banner-sub   { font-size: 0.9rem; }
    .home-banner-btn,
    .home-banner-social-btn { font-size: 0.85rem; padding: 7px 20px; }
    .home-banner-dots-wrap { padding: 10px 0 6px; }
}

/* Mute / Unmute button on video banners */
.banner-sound-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 20;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    backdrop-filter: blur(4px);
}
.banner-sound-btn:hover {
    background: rgba(0,0,0,0.8);
    transform: scale(1.1);
}

/* MDB carousel reset — remove default indicators */
#bannerCarousel .carousel-indicators { display: none !important; }

/* ============================================================
   HOME SECTIONS (title row + content)
   ============================================================ */
.home-section {
    padding: 14px 0 8px;
}

.home-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px 10px;
}

@media (min-width: 992px) {
    .home-section { padding: 40px 0 20px; }
    .home-section-head { max-width: 1200px; margin: 0 auto; padding: 0 24px 16px; }
}

.home-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

@media (min-width: 992px) {
    .home-section-title { font-size: 1.6rem; }
}

.home-section-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.home-section-link:hover { opacity: .8; }

/* ============================================================
   HOME CATEGORY GRID (mobile: 4-col icon grid)
   ============================================================ */
.home-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 0 12px;
    overflow-x: auto;
}

@media (max-width: 359px) {
    .home-cat-grid { grid-template-columns: repeat(3, 1fr); }
}

.home-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.home-cat-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.home-cat-name {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    display: box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
}

/* ============================================================
   HOME PRODUCT GRID (mobile: 2-col, desktop: 4-col)
   ============================================================ */
.home-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 10px;
}

@media (min-width: 576px) {
    .home-product-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0 16px; }
}

@media (min-width: 992px) {
    .home-product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 24px;
    }
}

/* When inside a Bootstrap .container, reset padding/max-width */
.container .home-product-grid {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* ============================================================
   PRODUCT CARD (pcard) — new design
   ============================================================ */
.pcard-wrap {
    position: relative;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: box-shadow .25s, transform .25s;
}

.pcard-wrap:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.pcard {
    display: block;
    text-decoration: none;
    color: inherit;
}

.pcard-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--bg-secondary);
}

@media (min-width: 992px) {
    .pcard-img-wrap { aspect-ratio: 4/3; }
}

.pcard-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.pcard-wrap:hover .pcard-img {
    transform: scale(1.04);
}

.pcard-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: rgba(255,255,255,0.5);
    font-size: 2rem;
}

/* Discount badge */
.pcard-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 2;
    line-height: 1.4;
}

.pcard-badge-discount {
    background: var(--accent);
    color: #000;
}

.pcard-badge-featured {
    background: var(--primary);
    color: #fff;
}

.pcard-video-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 0.75rem;
    padding: 3px 7px;
    border-radius: 6px;
    z-index: 2;
}

/* Card body */
.pcard-body {
    padding: 8px 10px 10px;
}

.pcard-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 992px) {
    .pcard-title { font-size: 0.95rem; }
}

.pcard-price-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pcard-price {
    font-size: 0.95rem;
    font-weight: 800;
    color: #e74c3c;
}

@media (min-width: 992px) {
    .pcard-price { font-size: 1.1rem; }
}

.pcard-price-orig {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

/* Floating cart button */
.pcard-cart-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s, transform .2s;
    z-index: 3;
}

.pcard-cart-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* ============================================================
   DARK MODE OVERRIDES for new components
   ============================================================ */
[data-theme="dark"] .mobile-appbar {
    background: #0a0a15;
    border-bottom-color: #1a1a2e;
}

[data-theme="dark"] .appbar-search-input {
    background: #1a1a2e;
    border-color: #2d2d44;
    color: #e8e8e8;
}

[data-theme="dark"] .cat-pill {
    background: #16213e;
    border-color: #2d2d44;
    color: #a0a0b0;
}

[data-theme="dark"] .pcard-wrap {
    background: #16213e;
    border-color: #2d2d44;
}

[data-theme="dark"] .home-cat-img {
    border-color: #2d2d44;
}

/* ============================================================
   SOCIAL LINKS SECTION
   ============================================================ */
.social-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 10px;
}

@media (min-width: 576px) {
    .social-links-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0 16px; }
}

@media (min-width: 992px) {
    .social-links-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 24px;
    }
}

.social-link-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .2s, box-shadow .2s;
    border-top: 3px solid var(--sl-color, #6c757d);
}

.social-link-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    color: inherit;
}

.slc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px 8px;
}

.slc-thumb {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.slc-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: var(--sl-color, #6c757d);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.3rem;
    color: #fff;
}

.slc-info {
    flex: 1;
    min-width: 0;
}

.slc-platform {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--sl-color, #6c757d);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.slc-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.slc-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.slc-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px 10px;
    background: var(--sl-color, #6c757d);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: auto;
}

.slc-cta i {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Snapchat: dark text on yellow */
.social-link-card[style*="#FFFC00"] .slc-cta {
    color: #000;
}

[data-theme="dark"] .social-link-card {
    background: #16213e;
    border-color: #2d2d44;
}

/* ============================================================
   PARCEL CHAT UI
   ============================================================ */
.chat-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 260px);
    min-height: 400px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scroll-behavior: smooth;
}

.chat-bubble {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 16px;
    position: relative;
    word-wrap: break-word;
}

.chat-bubble-customer {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-bubble-admin {
    background: var(--primary);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-bubble-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.chat-time {
    font-size: 0.65rem;
    opacity: 0.6;
    white-space: nowrap;
}

.chat-bubble-text {
    font-size: 0.88rem;
    line-height: 1.5;
}

.chat-bubble-admin .chat-bubble-text {
    color: rgba(255,255,255,0.95);
}

.chat-attachment {
    margin-top: 6px;
}

.chat-attachment-img {
    max-width: 220px;
    max-height: 180px;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.chat-attachment-img:hover {
    opacity: 0.85;
}

.chat-file-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(0,0,0,0.08);
    color: var(--text-primary);
    font-size: 0.8rem;
    text-decoration: none;
    transition: background 0.2s;
}

.chat-bubble-admin .chat-file-link {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.chat-file-link:hover {
    background: rgba(0,0,0,0.15);
}

.chat-input-bar {
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-card);
}

@media (max-width: 767px) {
    .chat-container {
        height: calc(100vh - 200px);
        border-radius: 12px;
    }
    .chat-bubble {
        max-width: 88%;
    }
    .chat-attachment-img {
        max-width: 160px;
    }
}

/* ============================================================
   STAR RATING INPUT & REVIEW DISPLAY
   ============================================================ */
.star-rating-input {
    display: flex;
    align-items: center;
    gap: 6px;
}

.star-rating-input .star-btn {
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.15s, transform 0.15s;
}

.star-rating-input .star-btn:hover {
    transform: scale(1.15);
}

.review-stars-display {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* ============ Modern Dashboard & Settings UI ============ */
.dash-container { max-width: 600px; margin: 0 auto; padding: 1rem; }
.dash-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.dash-user-card { background: var(--bg-card); border-radius: 20px; padding: 1.2rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: 15px; position: relative; margin-bottom: 1.5rem; }
.dash-avatar { width: 60px; height: 60px; border-radius: 50%; background: #ff4d4d; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; }
.dash-user-info h5 { margin: 0; font-weight: 700; font-size: 1.1rem; }
.dash-user-info p { margin: 0; font-size: 0.85rem; color: var(--text-muted); }
.dash-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 1.5rem; }
.dash-stat-item { background: var(--bg-card); border-radius: 15px; padding: 1rem 0.5rem; text-align: center; box-shadow: var(--shadow); transition: transform 0.2s; }
.dash-stat-item:active { transform: scale(0.95); }
.dash-stat-value { font-size: 1.3rem; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.dash-stat-icon { width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; font-size: 1.2rem; }
.bg-soft-red { background: #fff1f1; color: #ff4d4d; }
.bg-soft-yellow { background: #fffcf0; color: #f1c40f; }
.bg-soft-blue { background: #f0f7ff; color: #3498db; }
.bg-soft-purple { background: #f5f0ff; color: #9b59b6; }
.dash-stat-label { font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); }
.dash-section-card { background: var(--bg-card); border-radius: 20px; padding: 1.2rem; box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.dash-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.dash-section-title { font-size: 1rem; font-weight: 700; margin: 0; }
.dash-order-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.dash-order-item { text-align: center; position: relative; cursor: pointer; }
.dash-order-icon { font-size: 1.3rem; color: var(--text-muted); margin-bottom: 5px; height: 40px; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.dash-order-item.active .dash-order-icon { color: var(--text-primary); background: #f4f4f4; border-radius: 12px; }
.dash-order-label { font-size: 0.7rem; font-weight: 500; color: var(--text-secondary); }
.dash-badge { position: absolute; top: -5px; right: 5px; background: #ff4d4d; color: #fff; font-size: 0.6rem; padding: 2px 5px; border-radius: 10px; font-weight: 700; }
.dash-list-item { display: flex; align-items: center; gap: 15px; padding: 12px 0; border-bottom: 1px solid var(--border-color); color: var(--text-primary); }
.dash-list-item:last-child { border-bottom: none; }
.dash-list-icon { width: 32px; font-size: 1.1rem; color: var(--text-secondary); text-align: center; }
.dash-list-label { flex: 1; font-size: 0.95rem; font-weight: 500; }
.dash-toggle-group { display: flex; flex-direction: column; gap: 20px; }
.dash-toggle-item { display: flex; align-items: center; gap: 15px; }
.dash-toggle-info { flex: 1; }
.dash-toggle-title { font-size: 0.95rem; font-weight: 600; margin: 0; }
.dash-toggle-desc { font-size: 0.75rem; color: var(--text-muted); margin: 0; }
.btn-logout { background: #ff4d4d; color: #fff; border: none; border-radius: 12px; padding: 12px; width: 100%; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 1rem; transition: background 0.3s; }
.btn-logout:hover { background: #e64444; color: #fff; }
.settings-view { display: none; }
.settings-view.active { display: block; }
.dash-order-icon-v2 { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto; font-size: 1.3rem; transition: all 0.3s ease; }
.dash-order-icon-v2:hover { transform: translateY(-2px); filter: brightness(0.95); }
.fw-800 { font-weight: 820; }
.fw-700 { font-weight: 700; }
.fs-5 { font-size: 1.25rem !important; }
