/* ===================================================
   E-Pincode v2 - Modern Visual Layer
   Safe overrides on top of legacy style.css
   =================================================== */

:root {
    --font-heading: 'Space Grotesk', 'Segoe UI', sans-serif;
    --font-body: 'Manrope', 'Segoe UI', sans-serif;
    --surface-1: #0e1523;
    --surface-2: #141f31;
    --surface-3: #1a2940;
    --line-soft: rgba(226, 232, 240, 0.15);
    --line-strong: rgba(240, 185, 11, 0.35);
    --text-1: #f8fafc;
    --text-2: #cbd5e1;
    --text-3: #94a3b8;
    --accent: #f0b90b;
    --accent-strong: #cc9700;
    --accent-soft: rgba(240, 185, 11, 0.14);
    --ok: #22c55e;
    --warn: #f59e0b;
    --danger: #ef4444;
    --glow-accent: 0 14px 28px rgba(240, 185, 11, 0.2);
    --glow-card: 0 20px 44px rgba(2, 6, 23, 0.45);
}

html,
body {
    min-height: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text-1);
    background:
        radial-gradient(1200px 550px at 95% -10%, rgba(56, 189, 248, 0.08), transparent 72%),
        radial-gradient(900px 540px at -8% 18%, rgba(240, 185, 11, 0.1), transparent 70%),
        linear-gradient(170deg, #060b14 0%, #0a1220 55%, #0d1726 100%);
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.hero-title,
.product-title,
.page-hero-title,
.page-heading {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

p,
small,
label,
.form-control,
.form-select,
.btn,
.table,
.dropdown-item {
    font-family: var(--font-body);
}

.container {
    max-width: 1240px;
}

.main-content {
    padding-top: 2.2rem;
    padding-bottom: 4rem;
}

.alert {
    border: 1px solid var(--line-soft);
    box-shadow: var(--glow-card);
}

/* ===================================================
   Header + Navigation
   =================================================== */
.top-bar {
    background: linear-gradient(90deg, rgba(18, 29, 47, 0.85), rgba(12, 20, 34, 0.92));
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 0.85rem;
    color: var(--text-2);
}

.top-bar .container {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.top-bar-left span,
.top-bar-right a {
    color: var(--text-3);
}

.top-bar-right a:hover,
.top-bar-left span i,
.top-bar-right a i {
    color: var(--accent);
}

.announcement-bar {
    border-bottom: 1px solid rgba(240, 185, 11, 0.25);
    background: linear-gradient(90deg, rgba(240, 185, 11, 0.12), rgba(56, 189, 248, 0.12));
}

.announcement-bar .container {
    padding-top: 0.52rem;
    padding-bottom: 0.52rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.58rem;
}

.announcement-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    border-radius: 999px;
    padding: 0.2rem 0.62rem;
    border: 1px solid rgba(240, 185, 11, 0.45);
    background: rgba(17, 24, 39, 0.6);
    color: var(--accent);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.announcement-text {
    color: var(--text-2);
    font-size: 0.83rem;
}

.main-navbar {
    background: rgba(7, 12, 21, 0.78) !important;
    border-bottom: 1px solid var(--line-soft);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 28px rgba(2, 6, 23, 0.38);
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

.main-navbar.scrolled {
    background: rgba(5, 10, 18, 0.94) !important;
    border-bottom-color: rgba(240, 185, 11, 0.22);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--text-1) !important;
}

.brand-icon {
    color: var(--accent);
    font-size: 1.25rem;
}

.brand-text {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-search-form {
    width: min(520px, 100%);
}

.nav-search-form .input-group {
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    padding: 0.2rem;
    background: rgba(20, 32, 49, 0.82);
}

.nav-search-form .form-control {
    border: 0;
    background: transparent;
    padding-left: 1rem;
    color: var(--text-1);
}

.nav-search-form .form-control:focus {
    box-shadow: none;
}

.nav-search-form .btn {
    border-radius: 999px;
    padding-left: 1rem;
    padding-right: 1rem;
}

.main-navbar .nav-link {
    color: var(--text-2) !important;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: var(--accent) !important;
    background: rgba(240, 185, 11, 0.1);
}

.cart-link {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--accent);
    color: #111827;
    font-size: 0.7rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.user-avatar-sm {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(240, 185, 11, 0.14);
    border: 1px solid rgba(240, 185, 11, 0.35);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.45rem;
}

.dropdown-menu {
    background: rgba(12, 19, 31, 0.96);
    border-color: rgba(148, 163, 184, 0.24);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 16px 36px rgba(2, 6, 23, 0.46);
}

.dropdown-item {
    color: var(--text-2);
}

.dropdown-item:hover {
    color: var(--accent);
}

/* ===================================================
   Shared Panels
   =================================================== */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 1.35rem 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--line-soft);
    border-radius: 1rem;
    background:
        radial-gradient(380px 220px at 92% 12%, rgba(56, 189, 248, 0.14), transparent 70%),
        linear-gradient(130deg, rgba(19, 32, 52, 0.95), rgba(15, 22, 36, 0.95));
    box-shadow: var(--glow-card);
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(95deg, transparent, rgba(240, 185, 11, 0.08));
    pointer-events: none;
}

.page-hero-title {
    margin: 0;
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 700;
}

.page-hero-subtitle {
    margin: 0.35rem 0 0;
    color: var(--text-2);
    font-size: 0.94rem;
}

.page-hero-meta {
    margin-top: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.meta-pill {
    border: 1px solid rgba(148, 163, 184, 0.32);
    background: rgba(10, 17, 28, 0.72);
    border-radius: 999px;
    font-size: 0.77rem;
    color: var(--text-2);
    padding: 0.3rem 0.72rem;
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
}

.info-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-bottom: 1.4rem;
}

.info-card {
    border: 1px solid var(--line-soft);
    border-radius: 0.9rem;
    padding: 0.95rem 1rem;
    background: linear-gradient(145deg, rgba(18, 30, 47, 0.9), rgba(13, 21, 35, 0.95));
    box-shadow: var(--glow-card);
}

.info-card .label {
    color: var(--text-3);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.3rem;
}

.info-card .value {
    font-weight: 700;
    font-size: 1.12rem;
}

.section-padding {
    padding: 4.8rem 0;
}

.bg-section-alt {
    background: linear-gradient(180deg, rgba(10, 16, 27, 0), rgba(17, 28, 44, 0.42) 24%, rgba(9, 16, 28, 0));
}

.section-header {
    margin-bottom: 2rem;
}

.section-title {
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-2);
    margin: 0;
}

/* ===================================================
   Home / Hero
   =================================================== */
.hero-section {
    min-height: auto;
    border: 1px solid var(--line-soft);
    border-radius: 1.1rem;
    margin-bottom: 1.75rem;
    padding: 3.25rem 0;
    background:
        radial-gradient(640px 320px at 90% 0%, rgba(56, 189, 248, 0.13), transparent 70%),
        radial-gradient(620px 320px at 15% 100%, rgba(240, 185, 11, 0.13), transparent 70%),
        linear-gradient(145deg, #0f1b2e, #0b1526 55%, #0a1220);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    padding: 0.36rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(240, 185, 11, 0.38);
    background: rgba(240, 185, 11, 0.1);
}

.hero-title {
    font-size: clamp(1.9rem, 4.2vw, 3.1rem);
    line-height: 1.1;
    margin-top: 0.95rem;
    margin-bottom: 0.95rem;
}

.hero-text {
    max-width: 580px;
    color: var(--text-2);
    font-size: 1.03rem;
}

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

.hero-stats {
    gap: 1.1rem;
}

.stat-item {
    min-width: 120px;
    border: 1px solid rgba(148, 163, 184, 0.23);
    border-radius: 0.85rem;
    padding: 0.68rem 0.85rem;
    background: rgba(8, 14, 24, 0.7);
}

.stat-item strong {
    display: block;
    font-size: 1.2rem;
    color: var(--accent);
    line-height: 1.1;
}

.stat-item span {
    color: var(--text-3);
    font-size: 0.78rem;
}

.hero-visual {
    position: relative;
    height: 340px;
}

.floating-card {
    position: absolute;
    border-radius: 0.95rem;
    padding: 1rem 1rem 0.75rem;
    width: 138px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: linear-gradient(145deg, rgba(18, 28, 44, 0.96), rgba(11, 17, 29, 0.96));
    text-align: center;
    box-shadow: var(--glow-card);
}

.floating-card span {
    display: block;
    color: var(--text-2);
    margin-top: 0.65rem;
    font-size: 0.82rem;
    font-weight: 700;
}

.card-1 { top: 4%; left: 5%; animation: floatY 6s ease-in-out infinite; }
.card-2 { top: 4%; right: 10%; animation: floatY 7s ease-in-out infinite; }
.card-3 { top: 40%; left: 25%; animation: floatY 5.4s ease-in-out infinite; }
.card-4 { top: 45%; right: 3%; animation: floatY 6.2s ease-in-out infinite; }
.card-5 { bottom: 0; left: 14%; animation: floatY 7.2s ease-in-out infinite; }

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

.features-bar {
    background: rgba(11, 17, 29, 0.88);
    border: 1px solid var(--line-soft);
    border-left: 0;
    border-right: 0;
}

.feature-item {
    padding: 0.4rem 0.2rem;
}

.feature-icon {
    border: 1px solid rgba(240, 185, 11, 0.35);
}

.how-step {
    border: 1px solid var(--line-soft);
    border-radius: 1rem;
    padding: 1.55rem 1.2rem;
    background: linear-gradient(145deg, rgba(17, 26, 42, 0.95), rgba(12, 19, 31, 0.95));
    text-align: center;
    height: 100%;
    box-shadow: var(--glow-card);
}

.how-step .step-number {
    margin: 0 auto 0.8rem;
}

.how-step .step-icon {
    width: 50px;
    height: 50px;
    border-radius: 999px;
    background: rgba(240, 185, 11, 0.14);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.7rem;
    font-size: 1.15rem;
}

.cta-section {
    margin-top: 1.8rem;
    border: 1px solid var(--line-soft);
    border-radius: 1rem;
    overflow: hidden;
}

.cta-content {
    padding: 3rem 1rem;
}

.trust-strip {
    border: 1px solid var(--line-soft);
    border-radius: 1rem;
    padding: 1rem;
    background: linear-gradient(145deg, rgba(17, 28, 44, 0.92), rgba(10, 17, 29, 0.95));
    box-shadow: var(--glow-card);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.trust-item {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 0.82rem;
    padding: 0.72rem;
    background: rgba(10, 16, 28, 0.65);
    text-align: center;
}

.trust-item .label {
    display: block;
    color: var(--text-3);
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.15rem;
}

.trust-item strong {
    color: var(--accent);
    font-size: 1.16rem;
    line-height: 1;
}

.testimonial-card {
    border: 1px solid var(--line-soft);
    border-radius: 1rem;
    padding: 1rem;
    background: linear-gradient(150deg, rgba(17, 28, 44, 0.94), rgba(10, 17, 29, 0.96));
    box-shadow: var(--glow-card);
    height: 100%;
}

.testimonial-text {
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

.testimonial-user strong {
    display: block;
    font-size: 0.96rem;
}

.testimonial-user span {
    color: var(--text-3);
    font-size: 0.81rem;
}

/* ===================================================
   Cards + Product grid
   =================================================== */
.category-card {
    border: 1px solid var(--line-soft);
    background: linear-gradient(150deg, rgba(16, 26, 42, 0.96), rgba(10, 17, 29, 0.98));
    box-shadow: var(--glow-card);
}

.category-card h6 {
    margin-bottom: 0.32rem;
    font-weight: 700;
}

.category-count {
    color: var(--text-3);
    font-size: 0.79rem;
}

.product-card {
    border: 1px solid var(--line-soft);
    border-radius: 1rem;
    background: linear-gradient(145deg, rgba(15, 24, 39, 0.98), rgba(9, 16, 28, 0.98));
    box-shadow: var(--glow-card);
    overflow: hidden;
}

.product-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-4px);
}

.product-badge,
.product-badge-lg {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.34rem 0.62rem;
    color: #111827;
    background: linear-gradient(90deg, #f7d154, #f0b90b);
    box-shadow: 0 6px 20px rgba(240, 185, 11, 0.32);
}

.product-image {
    position: relative;
    height: 205px;
    overflow: hidden;
    background: #0b1220;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.product-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(5, 8, 15, 0), rgba(5, 8, 15, 0.75));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

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

.product-body {
    padding: 1.05rem;
    display: flex;
    flex-direction: column;
    gap: 0.58rem;
}

.product-category {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #f7d060;
    font-weight: 700;
}

.product-title {
    margin: 0;
    line-height: 1.35;
    font-size: 1rem;
}

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

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

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
}

.stock-badge.in-stock {
    background: rgba(34, 197, 94, 0.15);
    color: #7be7a3;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.stock-badge.out-stock {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.product-price-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.8rem;
    border-top: 1px solid var(--line-soft);
}

.old-price {
    display: block;
    font-size: 0.76rem;
    color: var(--text-3);
    text-decoration: line-through;
    margin-bottom: 0.06rem;
}

.current-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent);
}

.add-to-cart-btn {
    min-width: 38px;
}

/* ===================================================
   Breadcrumb + Filters
   =================================================== */
.breadcrumb {
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--line-soft);
    border-radius: 0.8rem;
    background: rgba(13, 21, 35, 0.78);
}

.filter-sidebar {
    position: sticky;
    top: 95px;
    padding: 0;
    border: none;
    background: transparent;
}

.filter-card {
    border: 1px solid var(--line-soft);
    border-radius: 0.95rem;
    padding: 1rem;
    background: linear-gradient(145deg, rgba(17, 28, 44, 0.95), rgba(10, 17, 29, 0.95));
    box-shadow: var(--glow-card);
}

.filter-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.category-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-filter-list li {
    margin-bottom: 0.35rem;
}

.category-filter-list li a {
    color: var(--text-2);
    border-radius: 0.65rem;
    padding: 0.5rem 0.58rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    border: 1px solid transparent;
}

.category-filter-list li.active a,
.category-filter-list li a:hover {
    color: var(--accent);
    border-color: rgba(240, 185, 11, 0.35);
    background: rgba(240, 185, 11, 0.08);
}

.category-filter-list .badge {
    background: rgba(148, 163, 184, 0.2);
    color: var(--text-2);
}

.products-topbar {
    border: 1px solid var(--line-soft);
    border-radius: 0.9rem;
    background: linear-gradient(145deg, rgba(17, 28, 44, 0.9), rgba(10, 17, 29, 0.94));
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
}

.results-count {
    color: var(--text-2);
}

.results-count strong {
    color: var(--accent);
}

/* ===================================================
   Product detail + tabs
   =================================================== */
.product-detail-image {
    position: relative;
    border: 1px solid var(--line-soft);
    border-radius: 1rem;
    overflow: hidden;
    background: #091120;
}

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

.product-detail-info {
    border: 1px solid var(--line-soft);
    border-radius: 1rem;
    background: linear-gradient(145deg, rgba(17, 28, 44, 0.95), rgba(10, 17, 29, 0.97));
    box-shadow: var(--glow-card);
}

.product-category-badge a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent);
    font-size: 0.8rem;
    border: 1px solid rgba(240, 185, 11, 0.35);
    border-radius: 999px;
    padding: 0.3rem 0.62rem;
    background: rgba(240, 185, 11, 0.08);
}

.product-detail-title {
    margin-top: 0.9rem;
    margin-bottom: 0.6rem;
}

.product-detail-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.9rem;
}

.save-badge {
    border-radius: 999px;
    padding: 0.3rem 0.64rem;
    font-size: 0.74rem;
    font-weight: 700;
    color: #111827;
    background: linear-gradient(90deg, #86efac, #4ade80);
}

.product-short-desc {
    color: var(--text-2);
}

.quantity-selector {
    border: 1px solid var(--line-soft);
    border-radius: 0.7rem;
    overflow: hidden;
}

.qty-btn {
    border: 0;
    width: 40px;
    height: 40px;
    background: rgba(148, 163, 184, 0.14);
    color: var(--text-1);
}

.qty-btn:hover {
    background: rgba(240, 185, 11, 0.24);
    color: var(--accent);
}

.qty-input {
    width: 64px;
    text-align: center;
    border: 0;
    background: rgba(15, 22, 36, 0.95);
    color: var(--text-1);
    font-weight: 700;
}

.feature-mini {
    border: 1px solid var(--line-soft);
    border-radius: 0.7rem;
    padding: 0.54rem 0.68rem;
    font-size: 0.86rem;
    color: var(--text-2);
    background: rgba(13, 21, 35, 0.7);
}

.product-tabs .tab-content {
    border: 1px solid var(--line-soft);
    border-top: none;
    border-radius: 0 0 0.95rem 0.95rem;
    background: rgba(11, 18, 29, 0.9);
}

.review-item {
    border-bottom-color: rgba(148, 163, 184, 0.22);
}

.review-item .review-text {
    color: var(--text-2);
    margin-top: 0.45rem;
    margin-bottom: 0;
}

.star-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 0.25rem;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    color: rgba(148, 163, 184, 0.55);
    font-size: 1.2rem;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: var(--accent);
}

.stock-alert-card {
    border: 1px solid rgba(240, 185, 11, 0.38);
    border-radius: 0.9rem;
    padding: 0.9rem;
    background: rgba(240, 185, 11, 0.08);
}

.stock-alert-card h6 {
    margin-bottom: 0.35rem;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.12rem 0.45rem;
    color: #09241b;
    background: linear-gradient(90deg, #a7f3d0, #6ee7b7);
}

/* ===================================================
   Cart + Checkout
   =================================================== */
.cart-table-card,
.checkout-card,
.settings-card,
.order-detail-card,
.page-content-card {
    border: 1px solid var(--line-soft);
    border-radius: 1rem;
    background: linear-gradient(145deg, rgba(17, 28, 44, 0.95), rgba(10, 17, 29, 0.96));
    box-shadow: var(--glow-card);
}

.cart-table-footer {
    border-top: 1px solid var(--line-soft);
    padding: 0.9rem 1rem;
}

.cart-summary {
    border: 1px solid var(--line-soft);
    border-radius: 1rem;
    background: linear-gradient(145deg, rgba(17, 28, 44, 0.95), rgba(10, 17, 29, 0.97));
    box-shadow: var(--glow-card);
}

.cart-summary hr {
    border-color: rgba(148, 163, 184, 0.3);
}

.cart-summary-title {
    font-size: 1.02rem;
    margin-bottom: 1rem;
}

.coupon-section .form-control {
    border-right: 0;
}

.payment-methods {
    display: grid;
    gap: 0.8rem;
}

.payment-method-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-method-option label {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border: 1px solid var(--line-soft);
    border-radius: 0.9rem;
    padding: 0.85rem;
    cursor: pointer;
    background: rgba(14, 21, 35, 0.72);
    transition: all 0.25s ease;
}

.payment-method-option input:checked + label {
    border-color: rgba(240, 185, 11, 0.55);
    background: rgba(240, 185, 11, 0.1);
}

.pm-icon {
    width: 44px;
    height: 44px;
    border-radius: 0.8rem;
    background: rgba(240, 185, 11, 0.15);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.pm-info strong {
    display: block;
}

.pm-info small {
    color: var(--text-3);
}

.checkout-items {
    display: grid;
    gap: 0.72rem;
}

.checkout-item {
    display: flex;
    align-items: center;
    gap: 0.78rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 0.82rem;
    background: rgba(13, 21, 35, 0.7);
    padding: 0.7rem;
}

.checkout-item-img {
    width: 56px;
    height: 56px;
    border-radius: 0.62rem;
    object-fit: cover;
}

.checkout-item-info h6 {
    margin: 0;
    font-size: 0.95rem;
}

.checkout-item-info small {
    color: var(--text-3);
}

.checkout-item-total {
    margin-left: auto;
    color: var(--accent);
    font-weight: 800;
}

.checkout-security {
    color: var(--text-3);
}

.checkout-stepper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.checkout-stepper .step {
    border: 1px solid var(--line-soft);
    border-radius: 0.8rem;
    padding: 0.56rem 0.65rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-3);
    background: rgba(12, 19, 31, 0.78);
}

.checkout-stepper .step span {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.38rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: var(--text-2);
}

.checkout-stepper .step.active {
    border-color: rgba(240, 185, 11, 0.5);
    color: var(--accent);
    background: rgba(240, 185, 11, 0.08);
}

.checkout-stepper .step.active span,
.checkout-stepper .step.done span {
    border-color: rgba(240, 185, 11, 0.55);
    background: rgba(240, 185, 11, 0.18);
    color: var(--accent);
}

/* ===================================================
   Profile + Orders + Balance
   =================================================== */
.profile-card,
.balance-card {
    border: 1px solid var(--line-soft);
    border-radius: 1rem;
    background: linear-gradient(145deg, rgba(17, 28, 44, 0.96), rgba(10, 17, 29, 0.98));
    box-shadow: var(--glow-card);
}

.profile-avatar {
    margin-left: auto;
    margin-right: auto;
    width: 90px;
    height: 90px;
}

.profile-balance {
    margin-top: 0.9rem;
    padding: 0.9rem 0.8rem;
    border: 1px solid rgba(240, 185, 11, 0.35);
    border-radius: 0.85rem;
    background: rgba(240, 185, 11, 0.09);
}

.settings-card {
    padding: 1.2rem;
}

.settings-card h5 {
    margin-bottom: 1rem;
    font-weight: 700;
}

.profile-shortcuts .btn {
    text-align: left;
}

.notification-pref-list {
    display: grid;
    gap: 0.65rem;
}

.notification-pref-item {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 0.8rem;
    padding: 0.65rem 0.75rem;
    background: rgba(12, 19, 31, 0.65);
}

.notification-pref-item input[type="checkbox"] {
    margin-top: 0.26rem;
}

.order-detail-card {
    padding: 1.15rem;
}

.order-detail-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    border-bottom: 1px solid var(--line-soft);
    padding-bottom: 0.85rem;
    margin-bottom: 0.6rem;
}

.order-item-detail {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

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

.order-item-img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 0.65rem;
}

.pin-code-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    border: 1px solid rgba(240, 185, 11, 0.4);
    background: rgba(240, 185, 11, 0.08);
    border-radius: 0.7rem;
    padding: 0.45rem 0.58rem;
    margin-bottom: 0.44rem;
}

.pin-code-text {
    font-family: 'Courier New', monospace;
    color: var(--accent);
}

.balance-icon {
    width: 62px;
    height: 62px;
    border-radius: 999px;
    margin: 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    background: rgba(240, 185, 11, 0.14);
    border: 1px solid rgba(240, 185, 11, 0.38);
}

.balance-stats {
    display: grid;
    gap: 0.8rem;
}

.balance-stat-item {
    border: 1px solid var(--line-soft);
    border-radius: 0.9rem;
    background: rgba(12, 19, 31, 0.8);
    padding: 0.75rem 0.82rem;
    display: flex;
    gap: 0.65rem;
    align-items: center;
}

.balance-stat-item i {
    font-size: 1.2rem;
}

.balance-stat-item strong {
    display: block;
}

.balance-stat-item small {
    color: var(--text-3);
    display: block;
}

.bank-info {
    border: 1px solid var(--line-soft);
    border-radius: 0.8rem;
    padding: 0.8rem;
    background: rgba(13, 21, 35, 0.78);
}

/* ===================================================
   Notifications + Static page
   =================================================== */
.notifications-list {
    display: grid;
    gap: 0.75rem;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    border: 1px solid var(--line-soft);
    border-radius: 0.92rem;
    padding: 0.85rem 0.95rem;
    background: linear-gradient(145deg, rgba(17, 28, 44, 0.93), rgba(10, 17, 29, 0.95));
}

.notification-item.unread {
    border-left: 3px solid var(--accent);
    background: linear-gradient(145deg, rgba(31, 45, 66, 0.95), rgba(15, 22, 36, 0.95));
}

.notif-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.72rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: var(--text-1);
}

.notif-icon.notif-success { background: rgba(34, 197, 94, 0.18); border-color: rgba(34, 197, 94, 0.45); }
.notif-icon.notif-warning { background: rgba(245, 158, 11, 0.18); border-color: rgba(245, 158, 11, 0.45); }
.notif-icon.notif-error { background: rgba(239, 68, 68, 0.18); border-color: rgba(239, 68, 68, 0.45); }
.notif-icon.notif-info { background: rgba(56, 189, 248, 0.18); border-color: rgba(56, 189, 248, 0.45); }

.notif-content {
    flex: 1;
}

.notif-content h6 {
    margin-bottom: 0.25rem;
}

.notif-content p {
    margin-bottom: 0.25rem;
    color: var(--text-2);
}

.page-content-card {
    padding: 1.4rem;
}

.page-content {
    border: none;
    background: transparent;
    padding: 0;
    line-height: 1.9;
}

.page-content h2,
.page-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
}

.page-content p,
.page-content li {
    color: var(--text-2);
}

/* ===================================================
   Auth Pages
   =================================================== */
.auth-section {
    position: relative;
    overflow: hidden;
    padding: 2rem 0 1.2rem;
}

.auth-section::before {
    content: '';
    position: absolute;
    width: 430px;
    height: 430px;
    top: -180px;
    right: -130px;
    background: radial-gradient(circle, rgba(240, 185, 11, 0.15), transparent 70%);
    pointer-events: none;
}

.auth-card {
    border: 1px solid var(--line-soft);
    border-radius: 1rem;
    background: linear-gradient(145deg, rgba(17, 28, 44, 0.95), rgba(10, 17, 29, 0.96));
    box-shadow: var(--glow-card);
}

.auth-benefits {
    border: 1px solid var(--line-soft);
    border-radius: 1rem;
    background: linear-gradient(145deg, rgba(16, 26, 42, 0.95), rgba(9, 15, 26, 0.96));
    box-shadow: var(--glow-card);
    padding: 1.4rem 1.2rem;
}

.auth-benefits h4 {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.auth-benefits-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.68rem;
}

.auth-benefits-list li {
    color: var(--text-2);
    display: flex;
    gap: 0.5rem;
    font-size: 0.92rem;
    line-height: 1.45;
}

.auth-benefits-list i {
    color: #7be7a3;
    margin-top: 0.1rem;
}

.auth-benefit-foot {
    margin-top: 1rem;
    font-size: 0.84rem;
    color: var(--text-3);
    border-top: 1px solid rgba(148, 163, 184, 0.28);
    padding-top: 0.8rem;
}

.auth-benefit-foot i {
    color: var(--accent);
}

.auth-header {
    text-align: center;
    margin-bottom: 1.2rem;
}

.auth-header h3 {
    margin-bottom: 0.35rem;
}

.auth-header p,
.auth-footer p,
.auth-footer a,
.form-check-label {
    color: var(--text-2);
}

.auth-footer {
    margin-top: 1rem;
    text-align: center;
}

.toggle-password {
    border-color: var(--line-soft);
    color: var(--text-2);
}

.toggle-password:hover {
    color: var(--accent);
    background: rgba(240, 185, 11, 0.09);
}

/* ===================================================
   Footer
   =================================================== */
.site-footer {
    border-top: 1px solid var(--line-soft);
    background:
        radial-gradient(520px 260px at 5% 100%, rgba(240, 185, 11, 0.12), transparent 70%),
        linear-gradient(170deg, rgba(9, 15, 25, 0.96), rgba(9, 14, 24, 0.98));
    padding-top: 3.5rem;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1rem;
}

.footer-divider {
    border-color: rgba(148, 163, 184, 0.25);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.footer-bottom {
    border-top: 0;
    margin-top: 0;
}

.footer-trustbar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.footer-trust-item {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 0.85rem;
    background: rgba(12, 19, 31, 0.76);
    color: var(--text-2);
    padding: 0.75rem;
    text-align: center;
    font-size: 0.88rem;
}

.footer-trust-item i {
    color: var(--accent);
    margin-right: 0.35rem;
}

/* ===================================================
   Form + table refinements
   =================================================== */
.form-control,
.form-select,
.input-group-text {
    border-color: var(--line-soft);
    color: var(--text-1);
}

.form-control,
.form-select {
    background: rgba(12, 19, 31, 0.82);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(240, 185, 11, 0.54);
    box-shadow: 0 0 0 0.2rem rgba(240, 185, 11, 0.12);
}

.input-group-text {
    background: rgba(148, 163, 184, 0.1);
}

.table-dark {
    --bs-table-bg: transparent;
    --bs-table-border-color: rgba(148, 163, 184, 0.22);
}

.table-dark thead th {
    color: var(--text-3);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
}

.table-hover > tbody > tr:hover > * {
    color: var(--text-1);
    background-color: rgba(148, 163, 184, 0.08);
}

/* ===================================================
   Empty states + utilities
   =================================================== */
.empty-state {
    border: 1px solid var(--line-soft);
    border-radius: 1rem;
    background: linear-gradient(145deg, rgba(17, 28, 44, 0.9), rgba(10, 17, 29, 0.93));
    box-shadow: var(--glow-card);
}

.empty-state i {
    color: rgba(148, 163, 184, 0.65);
}

.btn-warning {
    background: linear-gradient(100deg, #f7cf4c 0%, #f0b90b 68%);
    border: 0;
    color: #0f172a;
    font-weight: 800;
}

.btn-warning:hover,
.btn-warning:focus {
    background: linear-gradient(100deg, #ffe07a 0%, #f0b90b 68%);
    color: #0f172a;
    box-shadow: var(--glow-accent);
}

.btn-outline-warning {
    border-color: rgba(240, 185, 11, 0.55);
    color: var(--accent);
}

.btn-outline-warning:hover {
    color: #111827;
    background: var(--accent);
}

/* ===================================================
   Cookie Notice
   =================================================== */
.cookie-notice {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    padding: 1rem;
}

.cookie-notice-inner {
    max-width: 980px;
    margin: 0 auto;
    border: 1px solid var(--line-soft);
    border-radius: 1rem;
    padding: 0.95rem 1rem;
    background: rgba(12, 19, 31, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--glow-card);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.cookie-notice-text {
    display: inline-flex;
    align-items: baseline;
    gap: 0.55rem;
    color: var(--text-2);
    flex: 1 1 520px;
}

.cookie-notice-text strong {
    color: var(--text-1);
}

.cookie-notice-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-notice.hide {
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.25s ease;
}

/* ===================================================
   Responsive
   =================================================== */
@media (max-width: 992px) {
    .top-bar-left,
    .top-bar-right {
        text-align: center;
    }

    .top-bar-left span {
        display: inline-flex;
        margin-bottom: 0.2rem;
    }

    .main-navbar .navbar-collapse {
        margin-top: 0.9rem;
        padding-top: 0.8rem;
        border-top: 1px solid rgba(148, 163, 184, 0.22);
    }

    .nav-search-form {
        width: 100%;
        margin-bottom: 0.8rem;
    }

    .filter-sidebar {
        position: static;
    }

    .product-detail-image img {
        height: 330px;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding-top: 1.25rem;
    }

    .page-hero {
        padding: 1rem;
    }

    .section-padding {
        padding: 3rem 0;
    }

    .hero-section {
        padding: 2.3rem 0;
    }

    .hero-visual {
        display: none;
    }

    .trust-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-trustbar {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }

    .order-detail-header {
        align-items: flex-start;
    }

    .checkout-stepper .step {
        font-size: 0.78rem;
        padding: 0.45rem 0.5rem;
    }
}

@media (max-width: 576px) {
    .top-bar {
        display: none;
    }

    .announcement-bar .container {
        padding-top: 0.45rem;
        padding-bottom: 0.45rem;
    }

    .page-hero-title {
        font-size: 1.2rem;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .product-image {
        height: 180px;
    }

    .cta-content {
        padding: 2rem 0.8rem;
    }

    .trust-strip {
        grid-template-columns: 1fr;
    }

    .checkout-stepper {
        grid-template-columns: 1fr;
    }
}
