/* ============================================
   style.css – Mozlaser Complete Stylesheet
   Includes: Light/Dark Themes, Components, Pages, Animations
   ============================================ */

/* ----- Light Theme Variables (Default) ----- */
:root {
    --primary: #2c7be0;
    --primary-dark: #1a5bbf;
    --secondary: #2c3e50;
    --accent: #ff5e7c;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #1e2a3a;
    --text-secondary: #5b6877;
    --text-muted: #7f8c8d;
    --card-bg: #ffffff;
    --border-color: rgba(0, 0, 0, 0.05);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 4px 12px var(--shadow-color);
    --shadow-md: 0 8px 20px var(--shadow-color);
    --shadow-lg: 0 20px 30px -10px var(--shadow-color);
    --shadow-xl: 0 25px 40px -12px var(--shadow-color);
    --transition-base: all 0.3s ease;
}

/* ----- Dark Theme Variables ----- */
[data-theme="dark"] {
    --primary: #5a9eff;
    --primary-dark: #3f7ee0;
    --secondary: #3498db;
    --accent: #ff7b9c;
    --bg-primary: #1a1e24;
    --bg-secondary: #242a33;
    --text-primary: #e9ecef;
    --text-secondary: #a0b3c5;
    --text-muted: #7f8c8d;
    --card-bg: #2c343f;
    --border-color: rgba(255, 255, 255, 0.05);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 4px 12px var(--shadow-color);
    --shadow-md: 0 8px 20px var(--shadow-color);
    --shadow-lg: 0 20px 30px -10px var(--shadow-color);
    --shadow-xl: 0 25px 40px -12px var(--shadow-color);
}

/* ----- Dark Theme Custom Overrides ----- */
[data-theme="dark"] .top-utility-bar,
[data-theme="dark"] .navbar,
[data-theme="dark"] .category-nav,
[data-theme="dark"] .mini-cart-dropdown,
[data-theme="dark"] .dropdown-menu,
[data-theme="dark"] .filter-sidebar,
[data-theme="dark"] .checkout-section,
[data-theme="dark"] .contact-info,
[data-theme="dark"] .error-card {
    background: #1a1e24 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .nav-link,
[data-theme="dark"] .navbar-brand,
[data-theme="dark"] .breadcrumb a,
[data-theme="dark"] .text-dark,
[data-theme="dark"] .dropdown-item,
[data-theme="dark"] .category-nav .nav-link,
[data-theme="dark"] .category-nav .dropdown-item,
[data-theme="dark"] .product-card,
[data-theme="dark"] .profile-sidebar,
[data-theme="dark"] .order-summary-item,
[data-theme="dark"] .error-title,
[data-theme="dark"] .error-message {
    color: #f1f5fb !important;
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .category-nav .nav-link:hover,
[data-theme="dark"] .btn-link:hover {
    color: #a7c5ff !important;
}

[data-theme="dark"] .category-nav {
    background: #1f2430;
    border-top-color: rgba(255, 255, 255, 0.15);
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .category-nav .dropdown-menu {
    background: #212731;
}

[data-theme="dark"] .language-selector .dropdown-menu,
[data-theme="dark"] .mini-cart-dropdown {
    background: #1f2430;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .category-nav .nav-link {
    color: #dbe9ff !important;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] .search-form .input-group,
[data-theme="dark"] .product-card,
[data-theme="dark"] .product-card .card-body,
[data-theme="dark"] .product-card .product-title a,
[data-theme="dark"] .product-card .product-price,
[data-theme="dark"] .product-card .card-footer,
[data-theme="dark"] .product-category {
    background: #1f2430 !important;
    color: #f1f5fb !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}

[data-theme="dark"] .form-control::placeholder,
[data-theme="dark"] .form-select::placeholder,
[data-theme="dark"] .search-form input::placeholder,
[data-theme="dark"] .quantity-input::placeholder {
    color: rgba(241, 245, 251, 0.65) !important;
    opacity: 1;
}

/* Dashboard overrides (dark mode) */
[data-theme="dark"] .dashboard-main-content,
[data-theme="dark"] .dashboard-wrapper,
[data-theme="dark"] .dashboard-sidebar,
[data-theme="dark"] .dashboard-spacer {
    background: #111523 !important;
    color: #e9ecef !important;
}

[data-theme="dark"] .dashboard-main-content .table,
[data-theme="dark"] .dashboard-main-content .table thead th,
[data-theme="dark"] .dashboard-main-content .table tbody td,
[data-theme="dark"] .dashboard-main-content .table-responsive,
[data-theme="dark"] .dashboard-main-content .table-container {
    background: #141b2b !important;
    color: #e9ecef !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
}

[data-theme="dark"] .dashboard-main-content .table thead th,
[data-theme="dark"] .dashboard-main-content .table tbody td {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .dashboard-main-content .table-striped tbody tr:nth-of-type(odd) {
    background-color: #171f33 !important;
}

[data-theme="dark"] .dashboard-main-content .table-hover tbody tr:hover {
    background-color: rgba(103, 120, 166, 0.25) !important;
}

[data-theme="dark"] .dashboard-main-content .table th,
[data-theme="dark"] .dashboard-main-content .table td,
[data-theme="dark"] .dashboard-main-content .stat-card,
[data-theme="dark"] .dashboard-main-content .chart-container,
[data-theme="dark"] .dashboard-main-content .table-container,
[data-theme="dark"] .dashboard-main-content .card,
[data-theme="dark"] .dashboard-main-content .alert {
    color: #e9ecef !important;
}

[data-theme="dark"] .dashboard-main-content .table th,
[data-theme="dark"] .dashboard-main-content .table td {
    color: #f7faff !important;
}

[data-theme="dark"] .dashboard-main-content .table .page-link,
[data-theme="dark"] .dashboard-main-content .page-item.active .page-link,
[data-theme="dark"] .dashboard-main-content .page-link:hover {
    color: #e9ecef !important;
}

[data-theme="dark"] .dashboard-main-content .table .form-control,
[data-theme="dark"] .dashboard-main-content .form-control,
[data-theme="dark"] .dashboard-main-content .form-select {
    background: #1f2636 !important;
    color: #e9ecef !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
}

[data-theme="dark"] .dashboard-main-content .card,
[data-theme="dark"] .dashboard-main-content .list-group-item,
[data-theme="dark"] .dashboard-main-content .stats-card {
    background: #1d2331 !important;
    border-color: rgba(255,255,255,0.14) !important;
}

[data-theme="dark"] .dashboard-main-content .table-container h5,
[data-theme="dark"] .dashboard-main-content .chart-container h5,
[data-theme="dark"] .dashboard-main-content h1,
[data-theme="dark"] .dashboard-main-content h2,
[data-theme="dark"] .dashboard-main-content h3,
[data-theme="dark"] .dashboard-main-content .text-primary {
    color: #f8fbff !important;
}

[data-theme="dark"] .dashboard-main-content p,
[data-theme="dark"] .dashboard-main-content .text-secondary {
    color: #c2ccdf !important;
}

[data-theme="dark"] .dashboard-main-content .table input::placeholder,
[data-theme="dark"] .dashboard-main-content .form-control::placeholder {
    color: rgba(255,255,255,0.6) !important;
}

[data-theme="dark"] .dashboard-main-content .dashboard-settings-snapshot {
    background: #1b2332 !important;
    color: #e9ecef !important;
    border-color: rgba(255,255,255,0.2) !important;
}

[data-theme="dark"] .dashboard-main-content .dashboard-settings-snapshot p {
    color: rgba(233, 236, 239, 0.85) !important;
}

[data-theme="dark"] .dashboard-main-content .btn-outline-secondary,
[data-theme="dark"] .dashboard-main-content .btn-outline-primary {
    border-color: rgba(233,236,239,0.3) !important;
    color: #e9ecef !important;
}

[data-theme="dark"] .dashboard-main-content .btn-outline-secondary:hover,
[data-theme="dark"] .dashboard-main-content .btn-outline-primary:hover {
    background: rgba(255,255,255,0.07) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .dashboard-main-content .badge {
    background: rgba(255,255,255,0.15) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .dashboard-main-content .text-muted {
    color: #9dadc9 !important;
}

[data-theme="dark"] .dashboard-main-content .alert {
    color: #e9ecef !important;
    background: #1f2736 !important;
    border-color: rgba(255,255,255,0.2) !important;
}

[data-theme="dark"] .dashboard-main-content .btn {
    color: #e9ecef !important;
}

[data-theme="dark"] .dashboard-main-content a {
    color: #85a7ff !important;
}

[data-theme="dark"] .dashboard-main-content a:hover {
    color: #a8c1ff !important;
}

[data-theme="dark"] .dashboard-main-content .table th strong,
[data-theme="dark"] .dashboard-main-content .table td strong {
    color: #ffffff !important;
}

[data-theme="dark"] .dashboard-main-content .search-form input,
[data-theme="dark"] .dashboard-main-content .search-form .input-group {
    background: #1f2636 !important;
    border-color: rgba(255,255,255,0.16) !important;
    color: #f6faff !important;
}

[data-theme="dark"] .dashboard-main-content .search-form input::placeholder,
[data-theme="dark"] .dashboard-main-content .search-form .input-group::placeholder {
    color: rgba(255, 255, 255, 0.65) !important;
}

[data-theme="dark"] .dashboard-main-content .table td,
[data-theme="dark"] .dashboard-main-content .table th {
    color: #e8eef8 !important;
}

[data-theme="dark"] .dashboard-main-content .page-link {
    color: #d7e2f5 !important;
}

[data-theme="dark"] .dashboard-main-content .page-item.active .page-link {
    background: linear-gradient(145deg, #3b7edd, #2b5fcf) !important;
    border-color: transparent !important;
}
 
[data-theme="dark"] .mini-cart-dropdown .mini-cart-items,
[data-theme="dark"] .mini-cart-dropdown .mini-cart-items p,
[data-theme="dark"] .mini-cart-dropdown .mini-cart-subtotal {
    color: #f1f5fb !important;
}

[data-theme="dark"] .product-card .card-body {
    background: #1f2430 !important;
}

[data-theme="dark"] .product-category {
    color: #a0b3c5 !important;
}

[data-theme="dark"] .product-card .product-title a {
    color: #f1f5fb !important;
}

[data-theme="dark"] .product-card .product-price {
    color: #a7c5ff !important;
}

[data-theme="dark"] .quick-view-btn,
[data-theme="dark"] .product-wishlist {
    background: rgba(36, 41, 55, 0.9);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

[data-theme="dark"] .quick-view-btn:hover,
[data-theme="dark"] .product-wishlist:hover,
[data-theme="dark"] .product-card .btn-outline-primary:hover {
    background: rgba(90, 158, 255, 0.16);
    color: #fff;
    border-color: #5a9eff;
}

[data-theme="dark"] .product-image-wrapper {
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .product-image-wrapper .product-image,
[data-theme="dark"] .product-image-placeholder {
    filter: saturate(0.95) brightness(0.95);
}

[data-theme="dark"] .product-card .card-footer {
    background: #242a33 !important;
}

[data-theme="dark"] .product-card .btn-outline-primary {
    color: #fff;
    border-color: rgba(90, 158, 255, 0.7);
}

[data-theme="dark"] .product-card .btn-outline-primary:hover {
    background: rgba(90, 158, 255, 0.18);
}

[data-theme="dark"] .category-sidebar,
[data-theme="dark"] .list-group-item,
[data-theme="dark"] .page-link {
    background: #1f2430;
    color: #f1f5fb;
    border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .list-group-item.active {
    background: rgba(90, 158, 255, 0.22);
    border-color: rgba(90, 158, 255, 0.5);
    color: #fff;
}

[data-theme="dark"] .page-link.active,
[data-theme="dark"] .page-item.active .page-link {
    background: rgba(90, 158, 255, 0.22);
    border-color: rgba(90, 158, 255, 0.5);
    color: #fff;
}

/* ----- Global Styles ----- */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    transition: background-color 0.3s, color 0.3s;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}

/* ===== Page Loader ===== */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    pointer-events: none;
}

#page-loader.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 4px solid var(--bg-secondary);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 1px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== Toast Notification ===== */
.toast-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    animation: fadeInOut 2s ease forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(10px); }
    10% { opacity: 1; transform: translateY(0); }
    90% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

/* ===== Top Utility Bar ===== */
.top-utility-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    position: relative;
    z-index: 1060;
}

/* Fix Bootstrap modal overlap from high z-index utility bar */
.modal {
    z-index: 1200 !important;
}

.modal-backdrop {
    z-index: 1100 !important;
}

.top-utility-bar a {
    color: var(--text-secondary);
    transition: color 0.2s;
}

.top-utility-bar a:hover {
    color: var(--primary);
}

/* ===== Navbar ===== */
.navbar {
    background: var(--card-bg) !important;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
    color: var(--text-primary) !important;
}

.navbar .btn-link {
    color: var(--text-primary);
    position: relative;
}

.navbar .btn-link:hover {
    color: var(--primary);
}

.cart-badge,
.wishlist-badge {
    font-size: 0.6rem;
    padding: 0.2rem 0.4rem;
}

.search-form .input-group {
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: var(--transition-base);
}

.search-form:focus-within .input-group {
    box-shadow: 0 4px 20px rgba(44, 123, 224, 0.2);
    transform: scale(1.02);
}

.search-form .form-control,
.search-form .form-select {
    border: 1px solid var(--border-color);
    border-right: none;
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
    background: var(--card-bg) !important;
    color: var(--text-primary) !important;
}

.search-form .form-select {
    background-color: var(--bg-secondary);
    font-weight: 500;
    color: var(--text-primary);
    border-radius: 40px 0 0 40px;
}

.search-form .btn {
    border-radius: 0 40px 40px 0;
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    font-weight: 500;
    transition: var(--transition-base);
    color: white;
}

.search-form .btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), #004085);
    transform: translateY(-1px);
}

.search-form .btn i {
    transition: transform 0.2s;
}

.search-form .btn:hover i {
    transform: scale(1.1);
}

/* ===== Language Selector ===== */
.language-selector-form {
    margin: 0;
}

.language-selector .dropdown-toggle {
    color: var(--text-primary);
    font-weight: 500;
}

.language-selector .language-flag {
    margin-right: 8px;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    object-fit: contain;
}

.language-selector .dropdown-menu {
    min-width: 170px;
    z-index: 3000 !important;
}

.language-selector .dropdown-item.active,
.language-selector .dropdown-item:hover {
    background-color: rgba(44, 123, 224, 0.08);
    color: var(--primary);
}

/* ===== Category Navigation ===== */
.category-nav {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.category-nav .nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    white-space: nowrap;
    transition: color 0.2s;
}

.category-nav .nav-link:hover {
    color: var(--primary);
}

.category-nav .dropdown-menu {
    background: var(--card-bg);
    border-color: var(--border-color);
    border: none;
    border-radius: 0;
    box-shadow: var(--shadow-lg);
    padding: 2rem;
}

.category-nav .dropdown-menu h6 {
    color: var(--text-primary);
}

.category-nav .dropdown-menu a {
    color: var(--text-secondary);
}

.category-nav .dropdown-menu a:hover {
    color: var(--primary);
}

/* ===== Mini Cart Dropdown ===== */
.mini-cart-dropdown {
    width: 320px;
    max-height: 420px;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.mini-cart-dropdown .mini-cart-items {
    overflow-y: auto;
    max-height: 260px;
    margin-bottom: 0.75rem;
}

.mini-cart-dropdown .mini-cart-footer {
    position: sticky;
    bottom: 0;
    background: inherit;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
}

.mini-cart-dropdown .mini-cart-items p,
.mini-cart-dropdown .mini-cart-items .cart-item {
    color: var(--text-primary);
}

/* ===== Product Card ===== */
.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-base);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.product-image-wrapper {
    position: relative;
    padding-top: 100%;
    background: var(--bg-secondary);
    overflow: hidden;
}

.product-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.05);
}

.product-wishlist,
.quick-view-btn {
    position: absolute;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
    z-index: 2;
    border: none;
    color: var(--text-primary);
}

.product-wishlist {
    top: 12px;
    right: 12px;
}

.quick-view-btn {
    top: 12px;
    left: 12px;
}

.product-wishlist:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.1);
}

.quick-view-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.product-content {
    padding: 1.2rem 1rem 1rem;
}

.product-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.8px;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.product-card .btn-outline-primary {
    border-radius: 50px;
    border-width: 1.5px;
    font-weight: 500;
    transition: var(--transition-base);
    border-color: var(--primary);
    color: var(--primary);
}

.product-card .btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

/* ===== Star Rating ===== */
.star-rating {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.stars-outer {
    position: relative;
    display: inline-block;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 1rem;
    color: #d1d9e6;
}

.stars-outer::before {
    content: "\f005 \f005 \f005 \f005 \f005";
    letter-spacing: 2px;
}

.stars-inner {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
    color: #fabf35;
}

.stars-inner::before {
    content: "\f005 \f005 \f005 \f005 \f005";
    letter-spacing: 2px;
}

.rating-value {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-left: 4px;
}

/* ===== Section Headers ===== */
section h2 {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: 4rem 0;
}

/* Quick View Add-to-cart Button */
.add-to-cart-sim {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border: 1px solid transparent;
    border-radius: 0.65rem;
    font-weight: 600;
    color: var(--bg-primary);
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
    will-change: transform, box-shadow, opacity, filter;
}

.add-to-cart-sim:hover,
.add-to-cart-sim:focus {
    transform: translateY(-2px);
    box-shadow: 0 0.9rem 1.8rem rgba(0, 0, 0, 0.35);
    opacity: 0.95;
    filter: brightness(1.08);
}

.add-to-cart-sim:disabled,
.add-to-cart-sim[disabled] {
    opacity: 0.7;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

.add-to-cart-sim:active {
    transform: translateY(0);
    box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .add-to-cart-sim {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.32));
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    filter: brightness(1.05);
}

[data-theme="dark"] .add-to-cart-sim:hover,
[data-theme="dark"] .add-to-cart-sim:focus {
    box-shadow: 0 0.9rem 1.8rem rgba(255, 255, 255, 0.16);
    filter: brightness(1.12);
}

.add-to-cart-sim.modal-fade-out {
    transition: opacity 0.15s ease, transform 0.15s ease;
    opacity: 0;
    transform: translateY(-10px);
}
.hero-section h1 {
    font-size: 3.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.hero-section .btn-primary {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--secondary), var(--primary-dark));
    border: none;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
    color: white;
}

.hero-section .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* ===== Category Cards ===== */
.category-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem 1rem;
    transition: var(--transition-base);
    text-align: center;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.category-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--bg-secondary);
    transition: var(--transition-base);
}

.category-card:hover img {
    border-color: var(--primary);
    transform: scale(1.05);
}

.category-card h5 {
    font-weight: 600;
    color: var(--text-primary);
}

/* ===== Promotional Banner ===== */
.promo-banner .row {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border-radius: 20px;
    padding: 4rem 3rem;
    box-shadow: var(--shadow-lg);
}

.promo-banner h2 {
    color: white;
    font-size: 2.5rem;
}

.promo-banner .btn-light {
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-weight: 600;
    transition: var(--transition-base);
    background: white;
    color: var(--text-primary);
    border: none;
}

.promo-banner .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== Newsletter ===== */
.newsletter {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
}

.newsletter input {
    border-radius: 50px 0 0 50px;
    border: 1px solid var(--border-color);
    height: 54px;
    background: var(--card-bg);
    color: var(--text-primary);
}

.newsletter button {
    border-radius: 0 50px 50px 0;
    height: 54px;
    background: linear-gradient(135deg, var(--secondary), var(--primary-dark));
    border: none;
    font-weight: 600;
    transition: var(--transition-base);
    color: white;
}

.newsletter button:hover {
    background: linear-gradient(135deg, var(--primary-dark), #004085);
    transform: translateX(2px);
}

@media (max-width: 576px) {
    .newsletter input,
    .newsletter button {
        border-radius: 50px;
    }
    .newsletter input {
        margin-bottom: 1rem;
    }
}

/* ===== Tabs ===== */
.nav-tabs {
    border-bottom: 2px solid var(--border-color);
}

.nav-tabs .nav-link {
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    margin: 0 0.25rem;
    transition: all 0.3s;
    border-radius: 50px;
}

.nav-tabs .nav-link:hover {
    color: var(--primary);
    background: rgba(44, 123, 224, 0.05);
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    background: linear-gradient(135deg, rgba(44, 123, 224, 0.1), rgba(44, 62, 80, 0.05));
    font-weight: 700;
}

.tab-content {
    padding: 1rem 0;
}

/* ===== Product Details Page ===== */
.product-gallery img {
    width: 100%;
    border-radius: 16px;
}

.product-gallery .thumb {
    width: 80px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.2s;
}

.product-gallery .thumb:hover,
.product-gallery .thumb.active {
    border-color: var(--primary);
}

.quantity-input,
.table input[type='number'] {
    width: 80px;
    text-align: center;
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

[data-theme="dark"] .table input[type='number'],
[data-theme="dark"] .quantity-input {
    background: #1f2430;
    color: #f1f5fb;
    border-color: rgba(255, 255, 255, 0.2);
}
/* ===== Cart Page ===== */
.cart-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.cart-item img {
    width: 80px;
    border-radius: 8px;
}

.cart-item .btn-outline-danger {
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ===== Wishlist Page ===== */
.wishlist-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.wishlist-item img {
    width: 80px;
    border-radius: 8px;
}

/* ===== Checkout Page ===== */
.checkout-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.checkout-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.payment-method {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--card-bg);
}

.payment-method:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
}

.payment-method.selected {
    border-color: var(--primary);
    background: var(--bg-secondary);
}

.order-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.order-summary-total {
    font-weight: 700;
    font-size: 1.2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
}

/* ===== Profile Page ===== */
.profile-sidebar {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem 1rem;
    text-align: center;
    height: 100%;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--card-bg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
}

.profile-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.profile-email {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    margin: 1.5rem 0;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.order-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-id {
    font-weight: 600;
    color: var(--text-primary);
}

.order-date {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.order-status {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-delivered {
    background: #d4edda;
    color: #155724;
}

.status-shipped {
    background: #cce5ff;
    color: #004085;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.address-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
}

/* ===== About Page ===== */
.about-hero {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    padding: 4rem 0;
    border-radius: 0 0 50px 50px;
}

.about-hero h1 {
    font-size: 3rem;
    font-weight: 700;
}

.about-section {
    padding: 4rem 0;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--card-bg);
    box-shadow: var(--shadow-lg);
}

/* ===== Contact Page ===== */
.contact-info {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
}

.contact-info i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    width: 100%;
    background: var(--card-bg);
    color: var(--text-primary);
}

.contact-form button {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    color: white;
    font-weight: 500;
    transition: var(--transition-base);
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== Error Pages (404, 403, 500) ===== */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.error-card {
    background: var(--card-bg);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.error-icon {
    font-size: 6rem;
    margin-bottom: 1rem;
}

.error-code {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.error-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.error-message {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.btn-home {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition-base);
    color: white;
    display: inline-block;
}

.btn-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(44, 123, 224, 0.3);
    color: white;
}

/* ===== Quick View Modal ===== */
.modal-content {
    background: var(--card-bg);
    border-radius: 24px;
    border: none;
    color: var(--text-primary);
}

.modal-header {
    border-bottom: none;
}

.modal .btn-close {
    filter: var(--btn-close-filter, none);
}

/* ===== Product Filter Sidebar ===== */
.filter-sidebar {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
}

.filter-section {
    margin-bottom: 1.5rem;
}

.filter-section h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.filter-section .list-unstyled li {
    margin-bottom: 0.5rem;
}

.filter-section .form-check-label {
    color: var(--text-secondary);
    cursor: pointer;
}

.filter-section input[type="checkbox"] {
    accent-color: var(--primary);
}

.price-range {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.price-range input {
    width: 80px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.3rem;
    text-align: center;
    background: var(--card-bg);
    color: var(--text-primary);
}

.apply-filter-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    width: 100%;
    transition: var(--transition-base);
}

.apply-filter-btn:hover {
    background: var(--primary-dark);
}

/* Mobile filter toggle */
@media (max-width: 991px) {
    .filter-sidebar {
        display: none;
    }
    .filter-sidebar.show {
        display: block;
        margin-bottom: 1rem;
    }
}

/* ===== Coupon Input ===== */
.coupon-input {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.coupon-input input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    background: var(--card-bg);
    color: var(--text-primary);
}

.coupon-input button {
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 1rem;
    transition: var(--transition-base);
}

.coupon-input button:hover {
    background: var(--primary);
}


/* ===== Theme Switcher ===== */
.theme-switcher {
    margin-left: 1rem;
}

#themeToggle {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 50px;
    padding: 0.25rem 1rem;
    transition: var(--transition-base);
}

#themeToggle:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ===== Demo Theme Panel ===== */
.theme-demo-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.theme-demo-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: var(--transition-base);
}

.theme-demo-toggle:hover {
    transform: scale(1.1);
}

.theme-demo-colors {
    display: none;
    position: absolute;
    bottom: 60px;
    right: 0;
    background: var(--card-bg);
    border-radius: 8px;
    padding: 10px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.theme-demo-colors span {
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-base);
}

.theme-demo-colors span:hover {
    transform: scale(1.2);
    border-color: var(--primary);
}

.theme-demo-panel:hover .theme-demo-colors {
    display: block;
}

/* ===== Footer ===== */
footer {
    background: var(--secondary);
    color: white;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}

footer a:hover {
    color: white !important;
}

/* ===== Responsive Utilities ===== */
@media (max-width: 991px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .filter-sidebar {
        margin-bottom: 1rem;
    }
    .about-hero h1 {
        font-size: 2rem;
    }
    .profile-sidebar {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .product-gallery .thumb {
        width: 60px;
    }
    .error-code {
        font-size: 4rem;
    }
    .theme-demo-panel {
        bottom: 10px;
        right: 10px;
    }
}

.dropdown-menu {
    background: var(--card-bg);
    border-color: var(--border-color);
}
.dropdown-item {
    color: var(--text-primary);
}
.dropdown-item:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}
.page-link {
    background: var(--card-bg);
    color: var(--text-primary);
    border-color: var(--border-color);
}
.page-link:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

/* ===== Cookie Consent ===== */
.cookie-consent-root {
    position: fixed;
    inset: auto 0 1.25rem 0;
    z-index: 1400;
    pointer-events: none;
}

.cookie-consent-banner,
.cookie-consent-manage {
    pointer-events: auto;
}

.cookie-consent-banner {
    width: min(1120px, calc(100vw - 2rem));
    margin: 0 auto;
}

.cookie-consent-card {
    border-radius: 28px;
    padding: 1.4rem;
    background:
        radial-gradient(circle at top right, rgba(44, 123, 224, 0.12), transparent 28%),
        linear-gradient(145deg, rgba(255,255,255,0.96), rgba(247,250,255,0.94));
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(18px);
}

.cookie-consent-copy h3 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    color: var(--text-primary);
}

.cookie-consent-copy p,
.cookie-consent-option p {
    color: var(--text-secondary);
    margin: 0;
}

.cookie-consent-eyebrow {
    display: inline-block;
    margin-bottom: 0.7rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(44, 123, 224, 0.08);
    color: var(--primary);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
}

.cookie-consent-details {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.cookie-consent-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1rem;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.cookie-consent-option strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.cookie-consent-actions .btn {
    min-height: 50px;
    border-radius: 999px;
    padding-inline: 1.15rem;
    font-weight: 600;
}

.cookie-consent-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.9rem;
}

.cookie-consent-meta a {
    color: var(--primary);
    font-weight: 600;
}

.cookie-consent-manage {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
}

.cookie-consent-manage.is-hidden {
    display: none;
}

[data-theme="dark"] .cookie-consent-card {
    background:
        radial-gradient(circle at top right, rgba(90, 158, 255, 0.16), transparent 28%),
        linear-gradient(145deg, rgba(18, 26, 41, 0.96), rgba(15, 23, 36, 0.94));
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .cookie-consent-copy h3,
[data-theme="dark"] .cookie-consent-option strong {
    color: #f8fbff;
}

[data-theme="dark"] .cookie-consent-copy p,
[data-theme="dark"] .cookie-consent-option p {
    color: #b9c5d8;
}

[data-theme="dark"] .cookie-consent-option {
    background: rgba(20, 28, 42, 0.86);
    border-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
    .cookie-consent-root {
        bottom: 0.9rem;
    }

    .cookie-consent-banner {
        width: calc(100vw - 1rem);
    }

    .cookie-consent-card {
        padding: 1rem;
        border-radius: 22px;
    }

    .cookie-consent-option {
        align-items: flex-start;
    }

    .cookie-consent-manage {
        right: 0.9rem;
        bottom: 0.9rem;
    }
}

/* ===== Premium Static Pages ===== */
.premium-page-hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 0 3rem;
    background:
        radial-gradient(circle at top right, rgba(44, 123, 224, 0.18), transparent 24%),
        linear-gradient(135deg, #f3f8ff 0%, #fbfcff 48%, #f5f7fb 100%);
}

.premium-page-hero::after {
    content: "";
    position: absolute;
    inset: auto -8% -120px auto;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(44, 123, 224, 0.14), rgba(255, 94, 124, 0.1));
    filter: blur(8px);
}

.premium-page-eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(44, 123, 224, 0.08);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.premium-page-hero h1 {
    margin-bottom: 1rem;
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 0.98;
    color: var(--text-primary);
}

.premium-page-hero .lead {
    max-width: 58ch;
    margin: 0 auto;
    color: var(--text-secondary);
}

.premium-page-shell {
    margin-top: -1.5rem;
    padding-bottom: 4rem;
}

.premium-page-card {
    position: relative;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(30, 42, 58, 0.12);
    padding: 2rem;
    backdrop-filter: blur(18px);
}

.premium-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 1.5rem;
    align-items: start;
}

.premium-page-summary,
.premium-page-section,
.premium-page-panel,
.premium-page-accordion .accordion-item {
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.9), rgba(255, 255, 255, 0.95));
}

.premium-page-summary {
    padding: 1.5rem;
    position: sticky;
    top: 110px;
}

.premium-page-summary h2,
.premium-page-content h2,
.premium-page-panel h3 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.premium-page-summary ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.premium-page-summary li {
    display: flex;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.premium-page-summary i {
    color: var(--primary);
    margin-top: 0.15rem;
}

.premium-page-content {
    display: grid;
    gap: 1rem;
}

.premium-page-section,
.premium-page-panel {
    padding: 1.5rem;
}

.premium-page-section h3,
.premium-page-feature h3,
.premium-page-accordion .accordion-button {
    font-size: 1.05rem;
    color: var(--text-primary);
}

.premium-page-section p,
.premium-page-section li,
.premium-page-panel p,
.premium-page-panel li,
.premium-page-feature p,
.premium-page-feature li,
.premium-page-accordion .accordion-body {
    color: var(--text-secondary);
}

.premium-page-section ul,
.premium-page-section ol,
.premium-page-panel ul,
.premium-page-panel ol,
.premium-page-feature ul,
.premium-page-feature ol {
    margin-bottom: 0;
    padding-left: 1.2rem;
}

.premium-page-note {
    margin-top: 1.5rem;
    padding: 1.1rem 1.25rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(44, 123, 224, 0.1), rgba(44, 62, 80, 0.06));
    color: var(--text-primary);
}

.premium-page-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.premium-page-feature {
    padding: 1.4rem;
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.9), rgba(255, 255, 255, 0.95));
}

.premium-page-feature i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 1rem;
    border-radius: 14px;
    background: rgba(44, 123, 224, 0.1);
    color: var(--primary);
}

.premium-page-accordion {
    display: grid;
    gap: 1rem;
}

.premium-page-accordion .accordion-item {
    overflow: hidden;
}

.premium-page-accordion .accordion-button {
    background: transparent;
    box-shadow: none;
    font-weight: 600;
}

.premium-page-accordion .accordion-button:not(.collapsed) {
    background: rgba(44, 123, 224, 0.06);
    color: var(--primary);
}

.premium-page-accordion .accordion-button:focus {
    box-shadow: none;
}

.premium-contact-form .form-control,
.premium-contact-form textarea {
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(248, 250, 252, 0.92);
    padding: 0.9rem 1rem;
}

.premium-contact-form .form-control:focus,
.premium-contact-form textarea:focus {
    border-color: rgba(44, 123, 224, 0.45);
    box-shadow: 0 0 0 0.22rem rgba(44, 123, 224, 0.12);
    background: #ffffff;
}

.premium-contact-form .btn {
    min-height: 52px;
    border-radius: 999px;
    padding-inline: 1.25rem;
}

[data-theme="dark"] .premium-page-hero {
    background:
        radial-gradient(circle at top right, rgba(90, 158, 255, 0.14), transparent 24%),
        linear-gradient(135deg, #0f1522 0%, #131b29 48%, #18202f 100%);
}

[data-theme="dark"] .premium-page-card,
[data-theme="dark"] .premium-page-summary,
[data-theme="dark"] .premium-page-section,
[data-theme="dark"] .premium-page-panel,
[data-theme="dark"] .premium-page-feature,
[data-theme="dark"] .premium-page-accordion .accordion-item {
    background: rgba(20, 28, 42, 0.9);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .premium-page-hero h1,
[data-theme="dark"] .premium-page-summary h2,
[data-theme="dark"] .premium-page-content h2,
[data-theme="dark"] .premium-page-panel h3,
[data-theme="dark"] .premium-page-section h3,
[data-theme="dark"] .premium-page-feature h3,
[data-theme="dark"] .premium-page-note {
    color: #f8fbff;
}

[data-theme="dark"] .premium-page-hero .lead,
[data-theme="dark"] .premium-page-summary li,
[data-theme="dark"] .premium-page-section p,
[data-theme="dark"] .premium-page-section li,
[data-theme="dark"] .premium-page-panel p,
[data-theme="dark"] .premium-page-panel li,
[data-theme="dark"] .premium-page-feature p,
[data-theme="dark"] .premium-page-feature li,
[data-theme="dark"] .premium-page-accordion .accordion-body {
    color: #b9c5d8;
}

[data-theme="dark"] .premium-page-accordion .accordion-button {
    color: #f8fbff;
}

[data-theme="dark"] .premium-page-accordion .accordion-button:not(.collapsed) {
    background: rgba(90, 158, 255, 0.12);
    color: #9fc3ff;
}

[data-theme="dark"] .premium-contact-form .form-control,
[data-theme="dark"] .premium-contact-form textarea {
    background: rgba(15, 23, 36, 0.92);
    border-color: rgba(255, 255, 255, 0.08);
    color: #f1f5fb;
}

[data-theme="dark"] .premium-contact-form .form-control::placeholder,
[data-theme="dark"] .premium-contact-form textarea::placeholder {
    color: rgba(241, 245, 251, 0.6);
}

@media (max-width: 991px) {
    .premium-page-grid {
        grid-template-columns: 1fr;
    }

    .premium-page-summary {
        position: static;
    }
}

@media (max-width: 576px) {
    .premium-page-card,
    .premium-page-summary,
    .premium-page-section,
    .premium-page-panel,
    .premium-page-feature {
        padding: 1.2rem;
    }

    .premium-page-hero {
        padding-top: 4rem;
    }

    .premium-page-feature-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Auth Pages ===== */
.auth-shell {
    position: relative;
    min-height: 100vh;
    padding: 2rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(44, 123, 224, 0.18), transparent 24%),
        radial-gradient(circle at bottom right, rgba(255, 94, 124, 0.12), transparent 22%),
        linear-gradient(135deg, #eef4ff 0%, #f8fbff 52%, #f4f6fb 100%);
}

.auth-shell__backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.35), rgba(255,255,255,0)),
        repeating-linear-gradient(
            135deg,
            rgba(44, 123, 224, 0.04) 0,
            rgba(44, 123, 224, 0.04) 1px,
            transparent 1px,
            transparent 18px
        );
    pointer-events: none;
}

.auth-shell__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 620px;
}

.auth-shell__brand,
.auth-shell__footer {
    display: flex;
    justify-content: center;
}

.auth-home-link,
.auth-inline-home {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text-primary);
    font-weight: 600;
}

.auth-home-link {
    margin-bottom: 1.25rem;
    padding: 0.85rem 1.1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 18px 40px rgba(30, 42, 58, 0.08);
    backdrop-filter: blur(16px);
}

.auth-home-link img {
    height: 36px;
    width: auto;
}

.auth-card-wrap {
    position: relative;
}

.auth-card-wrap::before {
    content: "";
    position: absolute;
    inset: -12px;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(44, 123, 224, 0.16), rgba(255, 94, 124, 0.12));
    filter: blur(18px);
    opacity: 0.9;
}

.auth-card {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.68);
    box-shadow: 0 28px 80px rgba(30, 42, 58, 0.16);
    backdrop-filter: blur(20px);
}

.auth-card__header {
    padding: 2rem 2rem 1rem;
    background:
        radial-gradient(circle at top right, rgba(44, 123, 224, 0.16), transparent 36%),
        linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(255, 255, 255, 0.82));
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.auth-card__eyebrow {
    display: inline-block;
    margin-bottom: 0.7rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
}

.auth-card__header h2 {
    margin: 0 0 0.55rem;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.05;
    color: var(--text-primary);
}

.auth-card__header p {
    margin: 0;
    color: var(--text-secondary);
    max-width: 40ch;
}

.auth-card__body {
    padding: 1.75rem 2rem 2rem;
}

.auth-card__body h1 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.auth-card__body p {
    color: var(--text-secondary);
}

.auth-card .form-control,
.auth-card .form-select {
    border-radius: 16px;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(30, 42, 58, 0.1);
    background: rgba(248, 250, 252, 0.92);
    color: var(--text-primary);
    box-shadow: none;
}

.auth-card .form-control:focus,
.auth-card .form-select:focus {
    border-color: rgba(44, 123, 224, 0.45);
    box-shadow: 0 0 0 0.22rem rgba(44, 123, 224, 0.12);
    background: #ffffff;
}

.auth-card .btn-primary,
.auth-card .btn-outline-secondary {
    min-height: 54px;
    border-radius: 999px;
    font-weight: 600;
}

.auth-card .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    box-shadow: 0 18px 32px rgba(44, 123, 224, 0.22);
}

.auth-card .btn-primary:hover {
    transform: translateY(-1px);
}

.auth-card .btn-outline-secondary {
    border-width: 1.5px;
}

.auth-card .text-center a,
.auth-card a:not(.btn) {
    color: var(--primary);
    font-weight: 600;
}

.auth-shell__footer {
    margin-top: 1rem;
}

.auth-inline-home {
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.65);
}

[data-theme="dark"] .auth-shell {
    background:
        radial-gradient(circle at top left, rgba(90, 158, 255, 0.16), transparent 24%),
        radial-gradient(circle at bottom right, rgba(255, 123, 156, 0.08), transparent 22%),
        linear-gradient(135deg, #0f1522 0%, #121a29 54%, #171f2c 100%);
}

[data-theme="dark"] .auth-home-link,
[data-theme="dark"] .auth-inline-home,
[data-theme="dark"] .auth-card {
    background: rgba(18, 26, 41, 0.82);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .auth-card {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .auth-card__header {
    background:
        radial-gradient(circle at top right, rgba(90, 158, 255, 0.14), transparent 36%),
        linear-gradient(180deg, rgba(20, 30, 46, 0.96), rgba(18, 26, 41, 0.86));
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .auth-card__header h2,
[data-theme="dark"] .auth-card__body h1,
[data-theme="dark"] .auth-home-link,
[data-theme="dark"] .auth-inline-home {
    color: #f8fbff;
}

[data-theme="dark"] .auth-card__header p,
[data-theme="dark"] .auth-card__body p {
    color: #b7c4d8;
}

[data-theme="dark"] .auth-card .form-control,
[data-theme="dark"] .auth-card .form-select {
    background: rgba(15, 23, 36, 0.92);
    border-color: rgba(255, 255, 255, 0.08);
    color: #f1f5fb;
}

[data-theme="dark"] .auth-card .form-control::placeholder,
[data-theme="dark"] .auth-card .form-select::placeholder {
    color: rgba(241, 245, 251, 0.6);
}

@media (max-width: 576px) {
    .auth-shell {
        padding: 1.25rem 0.9rem;
    }

    .auth-home-link,
    .auth-inline-home {
        width: 100%;
        justify-content: center;
    }

    .auth-card__header,
    .auth-card__body {
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }
}
