/* ===================================================
   E-Pincode.com - Main Stylesheet
   Modern dark theme e-pin marketplace
   =================================================== */

/* --- CSS Variables --- */
:root {
    --primary: #f0b90b;
    --primary-dark: #d4a50a;
    --primary-light: rgba(240, 185, 11, 0.15);
    --bg-dark: #0a0e17;
    --bg-card: #111827;
    --bg-card-hover: #1a2332;
    --bg-input: #1a2332;
    --border-color: rgba(255,255,255,0.08);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --gradient-primary: linear-gradient(135deg, #f0b90b 0%, #f7d060 100%);
    --gradient-dark: linear-gradient(180deg, #0a0e17 0%, #111827 100%);
    --gradient-card: linear-gradient(145deg, #111827 0%, #0f1520 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.15);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.25);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.35);
    --shadow-glow: 0 0 20px rgba(240,185,11,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

::selection {
    background: var(--primary);
    color: var(--bg-dark);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* --- Bootstrap Dark Overrides --- */
.form-control,
.form-select {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 0.65rem 1rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    background: var(--bg-input);
    border-color: var(--primary);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.4rem;
}

.btn {
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 0.55rem 1.25rem;
    transition: var(--transition);
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}

.btn-warning {
    background: var(--gradient-primary);
    border: none;
    color: var(--bg-dark);
}

.btn-warning:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
    color: var(--bg-dark);
}

.btn-outline-warning {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-warning:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.btn-outline-light {
    border-color: rgba(255,255,255,0.2);
    color: var(--text-primary);
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
}

.btn-dark {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-dark:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.badge {
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: 6px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.table-dark {
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--border-color);
    --bs-table-hover-bg: rgba(255,255,255,0.04);
}

.table-dark thead th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.modal-header {
    border-bottom-color: var(--border-color);
}

.modal-footer {
    border-top-color: var(--border-color);
}

.pagination .page-link {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.pagination .page-link:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-dark);
}

.nav-tabs {
    border-bottom-color: var(--border-color);
}

.nav-tabs .nav-link {
    color: var(--text-secondary);
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
}

.nav-tabs .nav-link:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.nav-tabs .nav-link.active {
    background: transparent;
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.alert {
    border-radius: var(--radius-sm);
    border: none;
    font-weight: 500;
}

/* ===================================================
   NAVBAR
   =================================================== */
.main-navbar {
    background: rgba(10, 14, 23, 0.9) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.6rem 0;
    transition: var(--transition);
    z-index: 1050;
}

.main-navbar.scrolled {
    background: rgba(10, 14, 23, 0.98) !important;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary) !important;
    letter-spacing: -0.02em;
}

.navbar-brand span {
    color: var(--text-primary);
}

.main-navbar .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: var(--primary) !important;
    background: var(--primary-light);
}

.main-navbar .nav-link .badge {
    position: relative;
    top: -2px;
    font-size: 0.65rem;
    padding: 0.2em 0.5em;
}

.navbar-search .form-control {
    background: rgba(255,255,255,0.06);
    border: 1px solid transparent;
    border-radius: 50px;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    width: 240px;
    font-size: 0.85rem;
}

.navbar-search .form-control:focus {
    width: 300px;
    background: var(--bg-input);
    border-color: var(--primary);
}

.navbar-search .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.dropdown-menu {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
}

.dropdown-item {
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.dropdown-divider {
    border-color: var(--border-color);
}

/* ===================================================
   HERO SECTION
   =================================================== */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 6rem 0 4rem;
    background: var(--gradient-dark);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(240,185,11,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59,130,246,0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-title .text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    line-height: 1.8;
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    margin-right: 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: var(--radius-md);
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    line-height: 1.2;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* Floating Brand Cards */
.floating-brands {
    position: relative;
    height: 450px;
    perspective: 1000px;
}

.brand-card {
    position: absolute;
    width: 140px;
    height: 180px;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem;
    transition: var(--transition);
    cursor: default;
    box-shadow: var(--shadow-md);
}

.brand-card:hover {
    transform: scale(1.08) !important;
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.brand-card i {
    font-size: 2.5rem;
}

.brand-card span {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.brand-card:nth-child(1) { top: 5%; left: 10%; animation: float1 6s ease-in-out infinite; }
.brand-card:nth-child(2) { top: 0%; right: 15%; animation: float2 7s ease-in-out infinite; }
.brand-card:nth-child(3) { top: 40%; left: 25%; animation: float3 8s ease-in-out infinite; }
.brand-card:nth-child(4) { top: 35%; right: 5%; animation: float1 6.5s ease-in-out infinite; }
.brand-card:nth-child(5) { bottom: 5%; left: 5%; animation: float2 7.5s ease-in-out infinite; }
.brand-card:nth-child(6) { bottom: 0%; right: 25%; animation: float3 6s ease-in-out infinite; }

@keyframes float1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-2deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(2deg); }
}

/* ===================================================
   FEATURES BAR
   =================================================== */
.features-bar {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.feature-text h6 {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}

.feature-text p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0;
}

/* ===================================================
   SECTION STYLES
   =================================================== */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

/* ===================================================
   CATEGORY CARDS
   =================================================== */
.category-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: block;
    color: var(--text-primary);
    height: 100%;
}

.category-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    color: var(--text-primary);
}

.category-card:hover::after {
    opacity: 1;
}

.category-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.75rem;
    color: var(--primary);
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: var(--primary);
    color: var(--bg-dark);
    transform: scale(1.1);
}

.category-card h5 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.category-card p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0;
}

/* ===================================================
   PRODUCT CARDS
   =================================================== */
.product-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(240,185,11,0.3);
    box-shadow: var(--shadow-glow);
}

.product-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.product-card-stock {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(10,14,23,0.8);
    backdrop-filter: blur(8px);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-category {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.product-card-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-title a {
    color: var(--text-primary);
}

.product-card-title a:hover {
    color: var(--primary);
}

.product-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.product-price {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary);
}

.product-price-old {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 0.35rem;
    font-weight: 400;
}

.product-card-footer .btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
}

/* Product Rating Stars */
.product-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.product-rating i {
    color: var(--primary);
    font-size: 0.8rem;
}

.product-rating i.text-muted {
    color: var(--text-muted) !important;
}

.product-rating span {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 0.25rem;
}

/* No Image Placeholder */
.no-image {
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2.5rem;
}

/* ===================================================
   PRODUCT DETAIL PAGE
   =================================================== */
.product-detail-img {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.product-detail-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.product-detail-info {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
}

.product-detail-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.product-detail-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.product-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.04);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    width: fit-content;
}

.quantity-selector .btn {
    border-radius: 0;
    padding: 0.5rem 0.85rem;
    border: none;
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 1rem;
}

.quantity-selector .btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.quantity-selector input {
    width: 60px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-radius: 0;
    background: var(--bg-dark);
    color: var(--text-primary);
    font-weight: 700;
}

/* ===================================================
   HOW IT WORKS
   =================================================== */
.how-it-works {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bg-dark);
    margin: 0 auto 1.25rem;
    position: relative;
}

.step-card h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ===================================================
   CTA SECTION
   =================================================== */
.cta-section {
    background: linear-gradient(135deg, rgba(240,185,11,0.1) 0%, rgba(10,14,23,1) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(240,185,11,0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
}

/* ===================================================
   CART PAGE
   =================================================== */
.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.cart-item:hover {
    border-color: rgba(240,185,11,0.2);
}

.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255,255,255,0.03);
}

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

.cart-item-info {
    flex: 1;
}

.cart-item-info h6 {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.cart-item-info small {
    color: var(--text-muted);
}

.cart-item-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
    white-space: nowrap;
}

.cart-summary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: sticky;
    top: 100px;
}

.cart-summary h5 {
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.cart-summary-row.total {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary);
    padding-top: 0.75rem;
    border-top: 2px solid var(--border-color);
    margin-top: 0.5rem;
}

/* ===================================================
   AUTH PAGES (Login, Register)
   =================================================== */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    width: 100%;
    max-width: 460px;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.auth-card h2 {
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-card .auth-subtitle {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.auth-card .form-control {
    padding: 0.75rem 1rem;
}

.auth-card .btn-warning {
    padding: 0.75rem;
    font-size: 1rem;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
}

.password-toggle:hover {
    color: var(--primary);
}

/* ===================================================
   ORDER & PROFILE PAGES
   =================================================== */
.order-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.order-card:hover {
    border-color: rgba(240,185,11,0.2);
}

.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--bg-dark);
    margin-bottom: 1rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary);
    margin: 0 auto 0.75rem;
}

.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* ===================================================
   BALANCE PAGE
   =================================================== */
.balance-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.balance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.balance-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.balance-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* ===================================================
   NOTIFICATIONS
   =================================================== */
.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.notification-item.unread {
    border-left: 3px solid var(--primary);
    background: rgba(240,185,11,0.03);
}

.notification-item:hover {
    border-color: rgba(240,185,11,0.2);
}

.notification-icon {
    width: 42px;
    height: 42px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    font-size: 1rem;
}

.notification-content {
    flex: 1;
}

.notification-content h6 {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.notification-content p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ===================================================
   SIDEBAR FILTER (Products Page)
   =================================================== */
.filter-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: sticky;
    top: 100px;
}

.filter-sidebar h5 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.filter-sidebar .form-check {
    padding: 0.35rem 0;
}

.filter-sidebar .form-check-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
}

.filter-sidebar .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* ===================================================
   BREADCRUMB
   =================================================== */
.breadcrumb-section {
    padding: 1.5rem 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    margin-bottom: 0;
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-item.active {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
}

/* ===================================================
   PIN CODE DISPLAY
   =================================================== */
.pin-code-box {
    background: rgba(240,185,11,0.05);
    border: 1px dashed var(--primary);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.1em;
}

.pin-code-box .copy-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
    transition: var(--transition);
}

.pin-code-box .copy-btn:hover {
    transform: scale(1.2);
}

/* ===================================================
   STATIC PAGES
   =================================================== */
.page-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    line-height: 1.9;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.page-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.page-content ul,
.page-content ol {
    color: var(--text-secondary);
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.page-content a {
    color: var(--primary);
}

/* ===================================================
   FOOTER
   =================================================== */
.main-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 0;
}

.main-footer h5 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-brand span {
    color: var(--text-primary);
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 3px;
}

.footer-social {
    display: flex;
    gap: 0.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-contact li i {
    color: var(--primary);
    margin-top: 0.3rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    margin-top: 2.5rem;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0;
}

.payment-icons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.payment-icons i {
    font-size: 1.75rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.payment-icons i:hover {
    color: var(--text-primary);
}

/* ===================================================
   BACK TO TOP
   =================================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* ===================================================
   CHECKOUT
   =================================================== */
.checkout-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,0.02);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 0.75rem;
}

.payment-method:hover {
    border-color: rgba(240,185,11,0.3);
}

.payment-method.selected,
.payment-method input:checked ~ * {
    border-color: var(--primary);
    background: var(--primary-light);
}

.payment-method i {
    font-size: 1.5rem;
    color: var(--primary);
}

/* ===================================================
   ADMIN OVERRIDES
   =================================================== */
.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-stat-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: var(--transition);
}

.admin-stat-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

/* ===================================================
   EMPTY STATES
   =================================================== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    opacity: 0.5;
}

.empty-state h4 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================================
   LOADING & SKELETON
   =================================================== */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(240,185,11,0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 0.8s linear infinite;
}

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

.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ===================================================
   REVIEWS
   =================================================== */
.review-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
}

.review-item:last-child {
    border-bottom: none;
}

.review-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
}

.review-stars i {
    color: var(--primary);
    font-size: 0.8rem;
}

/* ===================================================
   UTILITIES
   =================================================== */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-3px);
}

.glow {
    box-shadow: var(--shadow-glow);
}

.divider {
    border-top: 1px solid var(--border-color);
    margin: 1.5rem 0;
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .floating-brands {
        height: 350px;
    }
    
    .brand-card {
        width: 120px;
        height: 150px;
    }
}

@media (max-width: 991px) {
    .hero-section {
        min-height: auto;
        padding: 5rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .floating-brands {
        display: none;
    }
    
    .hero-stats {
        justify-content: flex-start;
    }
    
    .section {
        padding: 3.5rem 0;
    }
    
    .section-title {
        font-size: 1.65rem;
    }
    
    .filter-sidebar {
        position: static;
        margin-bottom: 1.5rem;
    }
    
    .cart-summary {
        position: static;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .hero-stat-number {
        font-size: 1.5rem;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .features-bar .col-lg-3 {
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
    
    .features-bar .col-lg-3:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }
    
    .product-card-img {
        height: 160px;
    }
    
    .auth-card {
        padding: 1.75rem;
        border-radius: var(--radius-lg);
    }
    
    .product-detail-img img {
        height: 280px;
    }
    
    .product-detail-price {
        font-size: 1.5rem;
    }
    
    .balance-amount {
        font-size: 2.25rem;
    }
    
    .cart-item {
        flex-wrap: wrap;
    }
    
    .cta-section h2 {
        font-size: 1.75rem;
    }
    
    .main-footer {
        padding: 2.5rem 0 0;
    }
    
    .page-content {
        padding: 1.5rem;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-right: 0;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .hero-stat {
        flex: 0 0 45%;
    }
    
    .navbar-search .form-control {
        width: 100%;
    }
    
    .navbar-search .form-control:focus {
        width: 100%;
    }
    
    .product-card-body {
        padding: 1rem;
    }
    
    .checkout-card {
        padding: 1.25rem;
    }
    
    .profile-card {
        padding: 1.25rem;
    }
}

/* ===================================================
   ANIMATION HELPERS
   =================================================== */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

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

.scale-in {
    animation: scaleIn 0.4s ease forwards;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Stagger children animation */
.stagger-children > * {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.4s; }

/* ===================================================
   PRINT
   =================================================== */
@media print {
    .main-navbar,
    .main-footer,
    .back-to-top {
        display: none !important;
    }
    
    body {
        background: #fff;
        color: #000;
    }
}
