/* ============================================================
   GroupBuyChina – Complete Professional UI/UX Design System
   All Pages: Auth · Frontend · Dashboard · Error · Partials
   ============================================================ */

/* ─── Utility Animations ─── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(-12px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes countPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); color: var(--gbc-primary); }
    100% { transform: scale(1); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ─────────────────────────────────────────────────────────────
   HERO SECTION
   ───────────────────────────────────────────────────────────── */
.gbc-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    position: relative;
    overflow: hidden;
    min-height: 520px;
    margin-top: 0 !important;
}
.gbc-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(230,57,70,0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 30%, rgba(69,123,157,0.10) 0%, transparent 50%);
    z-index: 0;
}
.gbc-hero .container { position: relative; z-index: 2; }

.hero-kicker-badge {
    background: rgba(59,130,246,.2);
    border: 1px solid rgba(147,197,253,.35);
    color: #e2e8f0;
    letter-spacing: .2px;
}

.hero-highlight {
    color: #93c5fd;
}

.hero-lead {
    color: rgba(226,232,240,.86);
}

.hero-btn-primary {
    background: var(--gbc-primary, #e63946);
    border: 1px solid var(--gbc-primary, #e63946);
    color: #fff;
    box-shadow: 0 10px 24px rgba(230,57,70,.25);
}

.hero-btn-primary:hover,
.hero-btn-primary:focus {
    background: #cf2f3c;
    border-color: #cf2f3c;
    color: #fff;
    transform: translateY(-1px);
}

.hero-btn-outline {
    border: 1px solid rgba(148,163,184,.55);
    color: #e2e8f0;
    background: rgba(15,23,42,.25);
}

.hero-btn-outline:hover,
.hero-btn-outline:focus {
    border-color: rgba(148,163,184,.8);
    color: #fff;
    background: rgba(30,41,59,.5);
}

.hero-stats-bar {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}
.hero-stat {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: rgba(255,255,255,.8);
    font-size: .9rem;
}
.hero-stat-icon {
    color: #93c5fd;
    font-size: 1.2rem;
    line-height: 1;
    width: 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.hero-stat strong {
    color: #fff;
    font-size: 1rem;
}

/* =============================================================
   HERO FEATURED CARD – v3 Professional
   ============================================================= */
.hero-featured-card {
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 22px;
    overflow: hidden;
    transition: transform .32s cubic-bezier(.34,1.56,.64,1), box-shadow .32s ease;
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
}
.hero-featured-card:hover {
    transform: translateY(-6px) scale(1.012);
    box-shadow: 0 24px 60px rgba(0,0,0,.28);
}

/* Image container */
.hero-fc-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: rgba(255,255,255,.04);
}
.hero-fc-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .55s ease;
}
.hero-featured-card:hover .hero-fc-media img {
    transform: scale(1.06);
}
.hero-featured-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.04);
}

/* Gradient scrim at bottom of image */
.hero-fc-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(0,0,0,.0) 40%,
        rgba(10,15,30,.55) 100%);
    pointer-events: none;
}

/* Top-left badges */
.hero-fc-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    z-index: 3;
}
.hero-fc-tag {
    display: inline-flex;
    align-items: center;
    padding: .28em .68em;
    border-radius: 20px;
    font-size: .68rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(99,102,241,.4);
    letter-spacing: .03em;
}
.hero-fc-discount {
    display: inline-flex;
    align-items: center;
    padding: .28em .68em;
    border-radius: 20px;
    font-size: .68rem;
    font-weight: 700;
    background: #e63946;
    color: #fff;
    box-shadow: 0 2px 8px rgba(230,57,70,.4);
}

/* Countdown top-right */
.hero-fc-timer {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    padding: .3em .7em;
    border-radius: 20px;
    font-size: .7rem;
    font-weight: 600;
    background: rgba(0,0,0,.6);
    color: #fff;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.12);
}
.hero-fc-timer--ended {
    background: rgba(100,116,139,.78);
}

/* Info panel */
.hero-featured-info {
    padding: 1.1rem 1.3rem 1.2rem;
    color: #fff;
}
.hero-fc-category {
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: rgba(147,197,253,.8);
    margin-bottom: .4rem;
}
.hero-featured-info h5 {
    color: #fff;
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: .6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}
.hero-featured-price {
    display: flex;
    align-items: baseline;
    gap: .6rem;
    flex-wrap: wrap;
}
.hero-featured-price .current {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffd43b;
    line-height: 1;
}
.hero-featured-price .original {
    font-size: .88rem;
    color: rgba(255,255,255,.4);
    text-decoration: line-through;
}
.hero-fc-save-tag {
    display: inline-flex;
    align-items: center;
    padding: .18em .55em;
    border-radius: 10px;
    font-size: .67rem;
    font-weight: 700;
    background: rgba(230,57,70,.25);
    color: #fca5a5;
    border: 1px solid rgba(230,57,70,.3);
}

/* Progress area inside hero card */
.hero-fc-progress-wrap {
    margin-top: .1rem;
}
.hero-fc-progress-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .72rem;
    color: rgba(255,255,255,.65);
    margin-bottom: 6px;
}
.hero-fc-pct {
    font-weight: 700;
    font-size: .73rem;
    color: #fff;
}
/* Hero bar track */
.hero-fc-bar {
    height: 9px;
    border-radius: 12px;
    background: rgba(255,255,255,.1);
    overflow: hidden;
    position: relative;
}
/* Hero fill — reuses same data-state colours */
.hero-fc-fill {
    height: 100%;
    border-radius: 12px;
    width: 0%;
    transition: width 1.15s cubic-bezier(.4,0,.2,1);
    position: relative;
    overflow: hidden;
    will-change: width;
}
.hero-fc-fill[data-state="low"]  { background: linear-gradient(90deg,#ff8c42,#f4a261); }
.hero-fc-fill[data-state="mid"]  { background: linear-gradient(90deg,#e63946,#f4a261); }
.hero-fc-fill[data-state="high"] { background: linear-gradient(90deg,#e63946,#2a9d8f); }
.hero-fc-fill[data-state="full"] { background: linear-gradient(90deg,#2a9d8f,#52b788); }
.hero-fc-fill[data-state="ended"]{ background: linear-gradient(90deg,#64748b,#94a3b8); }
/* Shimmer on active hero fills */
.hero-fc-fill[data-state]:not([data-state="ended"])::after {
    content:'';
    position:absolute;top:0;left:-80%;width:50%;height:100%;
    background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.5) 50%,transparent 100%);
    animation:dealProgressShimmer 2.4s ease-in-out infinite;
}
/* Near-goal pulse on hero bar */
.hero-fc-bar[data-near-goal="1"] .hero-fc-fill {
    animation: dealProgressPulse 1.8s ease-in-out infinite;
}
/* Bar footer row */
.hero-fc-bar-footer {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:6px;
}
.hero-fc-join-cta {
    display:inline-flex;
    align-items:center;
    gap:4px;
    font-size:.72rem;
    font-weight:700;
    color:#ffd43b;
    letter-spacing:.01em;
    transition:gap .15s;
}
.hero-featured-card:hover .hero-fc-join-cta {
    gap:7px;
}
.hero-fc-ended-cta {
    font-size:.72rem;
    font-weight:500;
    color:rgba(255,255,255,.4);
    display:inline-flex;
    align-items:center;
}

.hero-featured-slider .carousel-item {
    transition: transform .55s ease, opacity .45s ease;
}

.hero-featured-slider .carousel-inner {
    cursor: grab;
}

.hero-featured-slider .carousel-inner.dragging {
    cursor: grabbing;
}

.hero-featured-slider {
    touch-action: pan-y;
}

.hero-featured-control {
    width: 38px;
    height: 38px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15,23,42,.55);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 50%;
    opacity: .95;
}

.hero-featured-control:hover,
.hero-featured-control:focus {
    background: rgba(15,23,42,.8);
    opacity: 1;
}

.hero-featured-control.carousel-control-prev {
    left: -14px;
}

.hero-featured-control.carousel-control-next {
    right: -14px;
}

.hero-featured-control .carousel-control-prev-icon,
.hero-featured-control .carousel-control-next-icon {
    width: 14px;
    height: 14px;
}

@media (hover: hover) and (pointer: fine) {
    .hero-featured-slider .hero-featured-control {
        opacity: 0;
        pointer-events: none;
        transition: opacity .22s ease;
    }

    .hero-featured-slider:hover .hero-featured-control,
    .hero-featured-slider:focus-within .hero-featured-control {
        opacity: .95;
        pointer-events: auto;
    }
}

.hero-featured-indicators {
    position: static;
    margin: .9rem 0 0;
    justify-content: center;
    gap: 6px;
}

.hero-featured-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 0;
    margin: 0;
    background-color: rgba(148,163,184,.45);
    opacity: 1;
}

.hero-featured-indicators .active {
    width: 22px;
    background-color: #60a5fa;
}

/* ─────────────────────────────────────────────────────────────
   SECTION HEADERS
   ───────────────────────────────────────────────────────────── */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
}
.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
}
.section-header .section-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* ─────────────────────────────────────────────────────────────
   DEAL CARD – Redesigned
   ───────────────────────────────────────────────────────────── */
.deal-card-v2 {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 16px;
    overflow: hidden;
    transition: all .28s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.deal-card-v2:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,.08);
    border-color: rgba(230,57,70,.18);
}

.deal-card-v2 .card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: #f8f9fb;
}
.deal-card-v2 .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.deal-card-v2:hover .card-img-wrap img {
    transform: scale(1.05);
}
.deal-card-v2 .card-img-wrap .placeholder-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #b0bec5;
    font-size: 2.5rem;
}

/* Badges on card */
.deal-card-v2 .card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}
.deal-card-v2 .card-badges .badge {
    font-size: .68rem;
    font-weight: 700;
    padding: .3em .65em;
    border-radius: 6px;
    width: fit-content;
}
.deal-card-v2 .time-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    font-size: .68rem;
    font-weight: 600;
    padding: .3em .65em;
    border-radius: 6px;
    background: rgba(0,0,0,.65);
    color: #fff;
    backdrop-filter: blur(4px);
}
.deal-card-v2 .time-badge--ended {
    background: rgba(100,116,139,.82);
}
/* Featured badge */
.deal-card-v2 .badge-featured {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .03em;
    padding: .3em .65em;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 6px rgba(99,102,241,.35);
}

/* Card body */
.deal-card-v2 .card-info {
    padding: 1rem 1.15rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.deal-card-v2 .card-category {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--gbc-info, #457b9d);
    margin-bottom: .35rem;
}
.deal-card-v2 .card-title-link {
    color: var(--gbc-dark, #1d3557);
    text-decoration: none;
    font-weight: 600;
    font-size: .92rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}
.deal-card-v2:hover .card-title-link {
    color: var(--gbc-primary);
}

/* Pricing row */
.deal-card-v2 .price-row {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    margin: .6rem 0 .5rem;
}
.deal-card-v2 .price-current {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gbc-primary);
}
.deal-card-v2 .price-original {
    font-size: .82rem;
    color: var(--gbc-text-muted);
    text-decoration: line-through;
}

/* ─────────────────────────────────────────────────────────────
   PROGRESS BAR – Professional Animated v2
   ───────────────────────────────────────────────────────────── */
.deal-card-v2 .deal-progress-wrap {
    margin-top: auto;
    padding-top: .75rem;
}
.deal-card-v2 .deal-progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .72rem;
    color: var(--gbc-text-muted);
    margin-bottom: 7px;
}
.deal-card-v2 .deal-progress-meta .progress-pct {
    font-weight: 700;
    font-size: .73rem;
    color: var(--gbc-dark);
}
.deal-card-v2 .deal-progress-bar {
    height: 8px;
    border-radius: 12px;
    background: #eef0f4;
    overflow: hidden;
    position: relative;
}
.deal-card-v2 .deal-progress-fill {
    height: 100%;
    border-radius: 12px;
    width: 0%;
    transition: width 1.1s cubic-bezier(.4, 0, .2, 1);
    position: relative;
    overflow: hidden;
    will-change: width;
}

/* ── Fill colour states ── */
.deal-card-v2 .deal-progress-fill[data-state="low"] {
    background: linear-gradient(90deg, #ff8c42 0%, #f4a261 100%);
}
.deal-card-v2 .deal-progress-fill[data-state="mid"] {
    background: linear-gradient(90deg, #e63946 0%, #f4a261 100%);
}
.deal-card-v2 .deal-progress-fill[data-state="high"] {
    background: linear-gradient(90deg, #e63946 0%, #2a9d8f 100%);
}
.deal-card-v2 .deal-progress-fill[data-state="full"] {
    background: linear-gradient(90deg, #2a9d8f 0%, #52b788 100%);
}
.deal-card-v2 .deal-progress-fill[data-state="ended"] {
    background: linear-gradient(90deg, #94a3b8 0%, #cbd5e1 100%);
}

/* ── Shimmer sweep on active bars ── */
.deal-card-v2 .deal-progress-fill[data-state]:not([data-state="ended"])::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.55) 50%, transparent 100%);
    animation: dealProgressShimmer 2.4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes dealProgressShimmer {
    0%   { left: -80%; }
    100% { left: 160%; }
}

/* ── Pulse glow when near goal (80–99%) ── */
.deal-card-v2 .deal-progress-bar[data-near-goal="1"] {
    box-shadow: 0 0 0 2px rgba(42,157,143,.18);
}
.deal-card-v2 .deal-progress-bar[data-near-goal="1"] .deal-progress-fill {
    animation: dealProgressPulse 1.8s ease-in-out infinite;
}
@keyframes dealProgressPulse {
    0%, 100% { filter: brightness(1); }
    50%       { filter: brightness(1.18); box-shadow: 0 0 10px 3px rgba(42,157,143,.3); }
}

/* ── Card footer row ── */
.deal-card-v2 .deal-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: .75rem;
}
.deal-card-v2 .deal-card-footer .joined-label {
    color: var(--gbc-text-muted);
}
.deal-card-v2 .deal-card-footer .joined-label strong {
    color: var(--gbc-dark);
}
.deal-card-v2 .ended-label {
    font-size: .72rem;
    font-weight: 500;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
}
.deal-card-v2 .join-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: .3rem .75rem;
    border-radius: 8px;
    font-size: .75rem;
    font-weight: 600;
    background: var(--gbc-primary);
    color: #fff;
    border: none;
    transition: background .2s, transform .15s;
    text-decoration: none;
}
.deal-card-v2 .join-btn:hover {
    background: #c22e3a;
    transform: scale(1.03);
    color: #fff;
}

/* ── Ended card modifier ── */
.deal-card-v2--ended {
    opacity: .88;
}
.deal-card-v2--ended .card-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,.18);
    z-index: 1;
    pointer-events: none;
}
.deal-card-v2--ended .card-badges,
.deal-card-v2--ended .time-badge {
    z-index: 3;
}

/* ── "Offer Ended" top-right badge ── */
.deal-card-v2 .time-badge--ended {
    background: rgba(100,116,139,.82) !important;
    backdrop-filter: blur(4px);
}

/* Home page deal grids: consistent card sizing + 16:9 media */
.home-deals-grid > [class*="col-"] {
    display: flex;
}

.home-deals-grid .deal-card-v2 {
    width: 100%;
    height: 100%;
}

.home-deals-grid .deal-card-v2 .card-img-wrap {
    height: auto;
    aspect-ratio: 16 / 9;
}

/* ─────────────────────────────────────────────────────────────
   HOW IT WORKS – Redesigned
   ───────────────────────────────────────────────────────────── */
.hiw-section {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.hiw-step {
    text-align: center;
    padding: 1.5rem 1rem;
    position: relative;
}
.hiw-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    position: relative;
}
.hiw-step-num {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gbc-primary);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}
.hiw-step h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .4rem;
}
.hiw-step p {
    font-size: .85rem;
    color: var(--gbc-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Homepage category horizontal controls */
.home-categories-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: .65rem;
}

.home-categories-track {
    flex: 1;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.home-categories-track::-webkit-scrollbar {
    display: none;
}

.home-scroll-control {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all .2s ease;
    box-shadow: 0 3px 10px rgba(15,23,42,.06);
}

.home-scroll-control:hover,
.home-scroll-control:focus {
    color: var(--gbc-primary, #e63946);
    border-color: rgba(230,57,70,.35);
    box-shadow: 0 6px 16px rgba(15,23,42,.1);
}

.home-scroll-control:disabled {
    opacity: .4;
    cursor: not-allowed;
    box-shadow: none;
}

.home-scroll-control.is-hidden {
    display: none;
}

/* ─────────────────────────────────────────────────────────────
   REVIEWS SECTION – Horizontal Scroll
   ───────────────────────────────────────────────────────────── */
.reviews-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .5rem;
    scrollbar-width: none;
}
.reviews-scroll::-webkit-scrollbar { display: none; }

.reviews-scroll.reviews-marquee {
    scroll-snap-type: none;
}

.reviews-scroll.reviews-marquee .review-card,
.reviews-scroll.reviews-marquee .review-summary-card {
    scroll-snap-align: none;
}

.review-card {
    min-width: 300px;
    max-width: 340px;
    flex-shrink: 0;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 14px;
    padding: 1.25rem;
    transition: transform .2s;
}
.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.06);
}
.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    color: #fff;
    flex-shrink: 0;
}
.review-stars { font-size: .72rem; }
.review-text {
    font-size: .85rem;
    color: #555;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.review-product {
    font-size: .72rem;
    color: var(--gbc-info);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Review summary card */
.review-summary-card {
    background: linear-gradient(135deg, var(--gbc-primary), #c22e3a);
    border-radius: 14px;
    padding: 1.5rem;
    color: #fff;
    min-width: 220px;
    max-width: 240px;
    flex-shrink: 0;
}
.review-summary-card .big-rating {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}
.review-summary-card .rating-bar {
    height: 4px;
    border-radius: 4px;
    background: rgba(255,255,255,.2);
    flex: 1;
}
.review-summary-card .rating-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: #fff;
}

/* ─────────────────────────────────────────────────────────────
   NEWSLETTER SECTION
   ───────────────────────────────────────────────────────────── */
.newsletter-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}
.newsletter-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(230,57,70,.1) 0%, transparent 60%);
    z-index: 0;
}
.newsletter-section .container { position: relative; z-index: 2; }
.newsletter-input-group {
    max-width: 480px;
    margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────────
   DEAL DETAIL PAGE
   ───────────────────────────────────────────────────────────── */

/* Product Image Gallery */
.deal-gallery-main {
    border-radius: 16px;
    overflow: hidden;
    background: #f8f9fb;
    position: relative;
}
.deal-gallery-main img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    transition: transform .3s;
}
.deal-gallery-main:hover img {
    transform: scale(1.02);
}
.deal-gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.deal-gallery-thumbs img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color .2s, opacity .2s;
    opacity: .7;
}
.deal-gallery-thumbs img.active,
.deal-gallery-thumbs img:hover {
    border-color: var(--gbc-primary);
    opacity: 1;
}

/* Deal status badges */
.deal-status-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: .75rem;
}
.deal-status-badges .badge {
    font-size: .72rem;
    font-weight: 600;
    padding: .35em .75em;
    border-radius: 6px;
}

/* Pricing Box */
.deal-price-box {
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border: 1px solid rgba(230,57,70,.12);
    border-radius: 14px;
    padding: 1.25rem;
}
.deal-price-main {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gbc-primary);
}
.deal-price-original {
    font-size: 1.1rem;
    color: var(--gbc-text-muted);
    text-decoration: line-through;
}
.deal-savings-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e63946;
    color: #fff;
    padding: .3rem .75rem;
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 700;
}

/* Pricing Tiers */
.pricing-tier-table {
    border: 1px solid #eef0f4;
    border-radius: 12px;
    overflow: hidden;
    margin-top: .75rem;
}
.pricing-tier-table .tier-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .65rem 1rem;
    border-bottom: 1px solid #f1f3f6;
    font-size: .85rem;
    transition: background .15s;
}
.pricing-tier-table .tier-row:last-child { border-bottom: none; }
.pricing-tier-table .tier-row:hover { background: #f8fafc; }
.pricing-tier-table .tier-row.best-price {
    background: linear-gradient(90deg, rgba(42,157,143,.08), rgba(42,157,143,.02));
    border-left: 3px solid var(--gbc-success);
}
.tier-price {
    font-weight: 700;
    color: var(--gbc-primary);
}
.tier-label {
    font-size: .7rem;
    font-weight: 600;
    color: var(--gbc-success);
    background: rgba(42,157,143,.1);
    padding: .15em .5em;
    border-radius: 4px;
}

/* Progress Tracker */
.deal-progress-section {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 14px;
    padding: 1.25rem;
}
.deal-progress-section h6 {
    font-size: .85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: 1rem;
}
.progress-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    margin-bottom: 1rem;
}
.progress-stat-item {
    text-align: center;
    padding: .75rem;
    background: #f8fafc;
    border-radius: 10px;
}
.progress-stat-item .stat-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--gbc-dark);
    line-height: 1.2;
}
.progress-stat-item .stat-label {
    font-size: .7rem;
    color: var(--gbc-text-muted);
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-top: 2px;
}
.deal-progress-bar-lg {
    height: 10px;
    border-radius: 10px;
    background: #eef0f4;
    overflow: hidden;
    margin-bottom: .5rem;
}
.deal-progress-bar-lg .fill {
    height: 100%;
    border-radius: 10px;
    transition: width .8s ease;
    background: linear-gradient(90deg, var(--gbc-primary), var(--gbc-accent));
}
.deal-progress-bar-lg .fill.completed {
    background: linear-gradient(90deg, var(--gbc-success), #34d399);
}

/* Countdown Timer */
.deal-countdown {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 14px;
    padding: 1.25rem;
    color: #fff;
    text-align: center;
}
.countdown-grid {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.countdown-unit {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    padding: .5rem .8rem;
    min-width: 58px;
}
.countdown-unit .cd-val {
    font-size: 1.5rem;
    font-weight: 800;
    display: block;
    line-height: 1;
}
.countdown-unit .cd-label {
    font-size: .6rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    opacity: .6;
    margin-top: 4px;
    display: block;
}

/* Join Deal CTA */
.deal-join-cta {
    background: var(--gbc-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: .9rem;
    font-size: 1.05rem;
    font-weight: 700;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    transition: background .2s, transform .15s;
    cursor: pointer;
}
.deal-join-cta:hover {
    background: #c22e3a;
    transform: translateY(-1px);
    color: #fff;
}

/* Delivery Options */
.delivery-option-card {
    border: 1px solid #eef0f4;
    border-radius: 12px;
    padding: .85rem 1rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    transition: border-color .2s, background .2s;
    cursor: pointer;
}
.delivery-option-card:hover,
.delivery-option-card.selected {
    border-color: var(--gbc-primary);
    background: rgba(230,57,70,.03);
}
.delivery-option-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Recent Participants */
.participant-row {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem 0;
    border-bottom: 1px solid #f3f4f6;
    animation: slideIn .3s ease forwards;
    font-size: .82rem;
}
.participant-row:last-child { border-bottom: none; }
.participant-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .7rem;
    color: #fff;
    flex-shrink: 0;
}

/* Share buttons */
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem 1rem;
    border-radius: 8px;
    font-size: .8rem;
    font-weight: 600;
    border: 1px solid #eef0f4;
    background: #fff;
    color: var(--gbc-dark);
    transition: all .2s;
    cursor: pointer;
    text-decoration: none;
}
.share-btn:hover {
    border-color: var(--gbc-primary);
    color: var(--gbc-primary);
    transform: translateY(-1px);
}

/* Deal description content */
.deal-description-content {
    font-size: .92rem;
    line-height: 1.8;
    color: #444;
}
.deal-description-content img {
    max-width: 100%;
    border-radius: 10px;
    margin: 1rem 0;
}

/* Deal features attribution */
.deal-feature-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .85rem;
    border-radius: 8px;
    font-size: .78rem;
    font-weight: 600;
    background: #f1f5f9;
    color: var(--gbc-dark);
    border: 1px solid #e2e8f0;
}

/* Tab navigation for deal detail */
.deal-tabs {
    border-bottom: 2px solid #eef0f4;
}
.deal-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--gbc-text-muted);
    font-weight: 600;
    font-size: .9rem;
    padding: .75rem 1.25rem;
    margin-bottom: -2px;
    transition: all .2s;
}
.deal-tabs .nav-link:hover {
    color: var(--gbc-dark);
    border-bottom-color: #ddd;
}
.deal-tabs .nav-link.active {
    color: var(--gbc-primary);
    border-bottom-color: var(--gbc-primary);
}

/* Deal sidebar sticky */
.deal-sidebar {
    position: static;
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .gbc-hero { min-height: auto; }
    .hero-stats-bar { gap: 1rem; flex-wrap: wrap; }
    .hero-featured-control {
        width: 34px;
        height: 34px;
    }
    .hero-featured-control.carousel-control-prev {
        left: 8px;
    }
    .hero-featured-control.carousel-control-next {
        right: 8px;
    }
    .deal-gallery-main img { height: 280px; }
    .deal-gallery-thumbs img { width: 56px; height: 56px; }
    .countdown-unit { min-width: 48px; padding: .4rem .5rem; }
    .countdown-unit .cd-val { font-size: 1.2rem; }
    .progress-stat-grid { grid-template-columns: 1fr 1fr; gap: .5rem; }
    .review-card { min-width: 260px; }
    .home-categories-wrap { gap: .45rem; }
    .home-scroll-control {
        width: 30px;
        height: 30px;
    }
    .deal-price-main { font-size: 1.6rem; }
    .deal-card-v2 .card-img-wrap { height: 170px; }
    .home-deals-grid .deal-card-v2 .card-img-wrap {
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 576px) {
    .hero-stats-bar { gap: .75rem; }
    .deal-card-v2 .card-img-wrap { height: 150px; }
    .home-deals-grid .deal-card-v2 .card-img-wrap {
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .countdown-grid { gap: 6px; }
    .countdown-unit { min-width: 42px; }
}

/* ═══════════════════════════════════════════════════════════════
   PAGE HERO BANNER — Reusable across all content pages
   ═══════════════════════════════════════════════════════════════ */
.page-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    padding: 3.5rem 0 3rem;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 60%, rgba(230,57,70,0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(69,123,157,0.08) 0%, transparent 50%);
    pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: .5rem;
}
.page-hero .breadcrumb {
    margin-bottom: 0;
    font-size: .85rem;
}
.page-hero .breadcrumb-item a { color: rgba(255,255,255,.6); text-decoration: none; }
.page-hero .breadcrumb-item a:hover { color: #fff; }
.page-hero .breadcrumb-item.active { color: rgba(255,255,255,.85); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.3); }
.page-hero .hero-subtitle {
    color: rgba(255,255,255,.65);
    font-size: 1rem;
    max-width: 540px;
}
.page-hero-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: rgba(255,255,255,.08);
    color: var(--gbc-accent, #ff5000);
    border: 1px solid rgba(255,255,255,.1);
}

/* ═══════════════════════════════════════════════════════════════
   AUTH PAGES — Centered Card Design
   ═══════════════════════════════════════════════════════════════ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8edf4 50%, #f5f0eb 100%);
    position: relative;
}
.auth-page::before {
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230,57,70,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.auth-page::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -80px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(69,123,157,0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Single Card */
.auth-card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem 2.5rem 2rem;
    box-shadow: 0 8px 40px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
    position: relative;
    z-index: 2;
}
.auth-card-wide {
    max-width: 560px;
}
.auth-card-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}
.auth-card-logo a {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gbc-dark, #1d3557);
    text-decoration: none;
    letter-spacing: -.5px;
}
.auth-card-logo a span {
    color: var(--gbc-primary, #e63946);
}
.auth-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gbc-dark, #1d3557);
    margin-bottom: .3rem;
    text-align: center;
}
.auth-card .auth-subtitle {
    color: var(--gbc-text-muted, #6b7280);
    font-size: .88rem;
    margin-bottom: 1.25rem;
    text-align: center;
}

/* Auth Alert Messages */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: .75rem 1rem;
    border-radius: 10px;
    font-size: .85rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}
.auth-alert i {
    margin-top: 2px;
    flex-shrink: 0;
    font-size: .95rem;
}
.auth-alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.auth-alert-success i { color: #059669; }
.auth-alert-error, .auth-alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.auth-alert-error i, .auth-alert-danger i { color: #dc2626; }
.auth-alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}
.auth-alert-warning i { color: #d97706; }

/* Form Controls in Auth */
.auth-card .form-control {
    border-radius: 10px;
    padding: .7rem 1rem;
    border: 1.5px solid #e2e8f0;
    font-size: .9rem;
    transition: border-color .2s, box-shadow .2s;
}
.auth-card .form-control:focus {
    border-color: var(--gbc-primary, #e63946);
    box-shadow: 0 0 0 3px rgba(230,57,70,.08);
}
.auth-card .form-label {
    font-weight: 600;
    font-size: .82rem;
    color: var(--gbc-dark, #1d3557);
}
.auth-card .input-group-text {
    border-radius: 10px 0 0 10px;
    border: 1.5px solid #e2e8f0;
    border-right: none;
    background: #f8fafc;
    color: #94a3b8;
    font-size: .85rem;
}
.auth-card .input-group .form-control {
    border-radius: 0 10px 10px 0;
}
.auth-link-small {
    color: var(--gbc-primary, #e63946);
    font-size: .82rem;
    font-weight: 500;
    text-decoration: none;
}
.auth-link-small:hover {
    text-decoration: underline;
    color: #c22e3a;
}

/* Auth Buttons */
.auth-btn {
    width: 100%;
    padding: .75rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: .95rem;
    background: var(--gbc-primary, #e63946);
    border: none;
    color: #fff;
    transition: background .2s, transform .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    cursor: pointer;
}
.auth-btn:hover {
    background: #c22e3a;
    transform: translateY(-1px);
    color: #fff;
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #94a3b8;
    font-size: .8rem;
    margin: 1rem 0;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}
.auth-google-btn {
    width: 100%;
    padding: .7rem;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    font-weight: 600;
    font-size: .9rem;
    color: var(--gbc-dark, #1d3557);
    transition: all .2s;
    cursor: pointer;
    text-decoration: none;
}
.auth-google-btn:hover {
    border-color: #4285f4;
    background: #f8fafc;
    color: var(--gbc-dark, #1d3557);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66,133,244,.12);
}
.auth-footer-text {
    font-size: .85rem;
    color: var(--gbc-text-muted);
    margin-top: 1.25rem;
    text-align: center;
}
.auth-footer-text a {
    color: var(--gbc-primary, #e63946);
    font-weight: 600;
    text-decoration: none;
}
.auth-footer-text a:hover { text-decoration: underline; }

/* ── Forgot Password Result Cards ───────── */
.fp-result-card {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    padding: 1rem 1.15rem;
    border-radius: 12px;
    border: 1px solid;
    animation: fpSlideIn .35s ease-out;
}
@keyframes fpSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fp-result-card.fp-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}
.fp-result-card.fp-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}
.fp-result-icon {
    font-size: 1.35rem;
    flex-shrink: 0;
    margin-top: .1rem;
}
.fp-success .fp-result-icon { color: #22c55e; }
.fp-error  .fp-result-icon { color: #ef4444; }
.fp-result-body {
    flex: 1;
    font-size: .88rem;
    line-height: 1.5;
}
.fp-result-body strong {
    display: block;
    font-size: .92rem;
    margin-bottom: .2rem;
}
.fp-register-link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    margin-top: .35rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--gbc-primary, #e63946);
    text-decoration: none;
    padding: .3rem .7rem;
    background: rgba(230,57,70,.08);
    border-radius: 6px;
    transition: background .2s;
}
.fp-register-link:hover {
    background: rgba(230,57,70,.15);
    color: var(--gbc-primary, #e63946);
}

/* Auth small pages (forgot/reset password) — backward compat */
.auth-container {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
}
.auth-compact {
    max-width: 480px;
}
.auth-compact .auth-form-side,
.auth-form-side {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.auth-form-side h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gbc-dark, #1d3557);
    margin-bottom: .3rem;
    text-align: center;
}
.auth-form-side .auth-subtitle {
    color: var(--gbc-text-muted, #6b7280);
    font-size: .88rem;
    margin-bottom: 1.25rem;
    text-align: center;
}
.auth-form-side .form-control {
    border-radius: 10px;
    padding: .7rem 1rem;
    border: 1.5px solid #e2e8f0;
    font-size: .9rem;
    transition: border-color .2s, box-shadow .2s;
}
.auth-form-side .form-control:focus {
    border-color: var(--gbc-primary, #e63946);
    box-shadow: 0 0 0 3px rgba(230,57,70,.08);
}
.auth-form-side .form-label {
    font-weight: 600;
    font-size: .82rem;
    color: var(--gbc-dark, #1d3557);
}
.auth-form-side .input-group-text {
    border-radius: 10px 0 0 10px;
    border: 1.5px solid #e2e8f0;
    border-right: none;
    background: #f8fafc;
    color: #94a3b8;
}
.auth-form-side .input-group .form-control {
    border-radius: 0 10px 10px 0;
}
.auth-icon-circle {
    width: 72px; height: 72px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

@media (max-width: 576px) {
    .auth-card { padding: 1.5rem 1.25rem; border-radius: 16px; margin: 0 .5rem; }
    .auth-card h3 { font-size: 1.2rem; }
    .auth-card-wide { max-width: 100%; }
    .auth-container { border-radius: 16px; }
    .auth-form-side { padding: 1.5rem; }
}

/* ═══════════════════════════════════════════════════════════════
   CATEGORY PAGE — Sidebar Filter Layout
   ═══════════════════════════════════════════════════════════════ */
.category-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

/* Sidebar */
.category-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
}
.filter-card {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.03);
}
.filter-title {
    font-size: .85rem;
    font-weight: 700;
    color: var(--gbc-dark, #1d3557);
    margin-bottom: .75rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding-bottom: .6rem;
    border-bottom: 1px solid #f1f3f5;
}
.filter-title i {
    color: var(--gbc-primary, #e63946);
    font-size: .8rem;
}
.filter-options {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.filter-radio,
.filter-check {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .6rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s;
    font-size: .84rem;
    color: #475569;
}
.filter-radio:hover,
.filter-check:hover {
    background: #f8fafc;
}
.filter-radio input,
.filter-check input {
    accent-color: var(--gbc-primary, #e63946);
    width: 15px;
    height: 15px;
    cursor: pointer;
}
.filter-radio input:checked + span,
.filter-check input:checked + span {
    color: var(--gbc-dark, #1d3557);
    font-weight: 600;
}

/* Price Range Filter */
.filter-price-inputs {
    display: flex;
    align-items: center;
    gap: .5rem;
}
.price-input-group {
    flex: 1;
    position: relative;
}
.price-input-group .price-symbol {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: .8rem;
    font-weight: 600;
    pointer-events: none;
}
.price-input-group .form-control {
    padding-left: 28px;
    border-radius: 8px;
    font-size: .82rem;
    border: 1.5px solid #e2e8f0;
}
.price-input-group .form-control:focus {
    border-color: var(--gbc-primary, #e63946);
    box-shadow: 0 0 0 2px rgba(230,57,70,.06);
}
.price-dash {
    color: #94a3b8;
    font-weight: 600;
    flex-shrink: 0;
}
.filter-apply-btn {
    width: 100%;
    padding: .5rem;
    border: none;
    border-radius: 8px;
    background: var(--gbc-secondary, #1d3557);
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
}
.filter-apply-btn:hover {
    background: #152a47;
}
.filter-clear-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    width: 100%;
    padding: .6rem;
    border-radius: 10px;
    border: 1.5px dashed #cbd5e1;
    background: transparent;
    color: #64748b;
    font-size: .82rem;
    font-weight: 500;
    text-decoration: none;
    transition: all .2s;
}
.filter-clear-btn:hover {
    border-color: var(--gbc-primary, #e63946);
    color: var(--gbc-primary, #e63946);
    background: rgba(230,57,70,.03);
}

/* Main Content Area */
.category-main {
    flex: 1;
    min-width: 0;
}
.category-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1.25rem;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.02);
}
.results-info {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}
.results-count {
    font-size: .88rem;
    color: #475569;
}
.results-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .2rem .6rem;
    border-radius: 20px;
    background: rgba(230,57,70,.06);
    color: var(--gbc-primary, #e63946);
    font-size: .76rem;
    font-weight: 500;
}
.results-filter-tag a {
    color: inherit;
    opacity: .7;
    transition: opacity .15s;
}
.results-filter-tag a:hover { opacity: 1; }

.results-view-toggle {
    display: flex;
    gap: .25rem;
}
.view-btn {
    width: 34px;
    height: 34px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    cursor: pointer;
    transition: all .15s;
    font-size: .85rem;
}
.view-btn:hover {
    border-color: var(--gbc-primary, #e63946);
    color: var(--gbc-primary, #e63946);
}
.view-btn.active {
    background: var(--gbc-primary, #e63946);
    border-color: var(--gbc-primary, #e63946);
    color: #fff;
}

/* Mobile Filter Toggle */
.category-filter-toggle {
    width: 100%;
    padding: .65rem 1rem;
    margin-bottom: 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: var(--gbc-dark, #1d3557);
    font-weight: 600;
    font-size: .85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    cursor: pointer;
    transition: all .2s;
}
.category-filter-toggle:hover {
    border-color: var(--gbc-primary, #e63946);
    color: var(--gbc-primary, #e63946);
}

/* List View Mode */
.category-grid.list-view {
    display: flex !important;
    flex-direction: column;
}
.category-grid.list-view > .col-6,
.category-grid.list-view > .col-md-6,
.category-grid.list-view > .col-lg-4 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

/* Responsive: Mobile sidebar as slide-in overlay */
@media (max-width: 991.98px) {
    .category-layout {
        flex-direction: column;
    }
    .category-sidebar {
        display: none;
        position: fixed;
        top: 0; left: 0;
        width: 300px;
        height: 100vh;
        z-index: 1050;
        background: #fff;
        padding: 1.5rem 1.25rem;
        overflow-y: auto;
        box-shadow: 4px 0 24px rgba(0,0,0,.12);
        animation: slideInSidebar .25s ease;
    }
    .category-sidebar.show {
        display: block;
    }
    @keyframes slideInSidebar {
        from { transform: translateX(-100%); }
        to { transform: translateX(0); }
    }
}
@media (min-width: 992px) {
    .category-filter-toggle { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════════════════════════ */
.about-mission {
    background: linear-gradient(135deg, rgba(230,57,70,.03), rgba(69,123,157,.03));
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(230,57,70,.08);
}
.about-mission h3 { font-weight: 700; }
.about-mission p { font-size: 1.05rem; line-height: 1.8; color: #555; }

.about-value-card {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all .3s ease;
    height: 100%;
}
.about-value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,.08);
    border-color: rgba(230,57,70,.15);
}
.about-value-icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.about-value-card h5 { font-weight: 700; font-size: 1.05rem; }
.about-value-card p { font-size: .88rem; color: #666; line-height: 1.6; margin: 0; }

.about-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}
.about-stat-item {
    text-align: center;
    padding: 1.5rem 2rem;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #eef0f4;
    min-width: 140px;
}
.about-stat-item .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gbc-primary, #e63946);
    line-height: 1;
}
.about-stat-item .stat-label {
    font-size: .82rem;
    color: var(--gbc-text-muted);
    margin-top: .3rem;
}

/* Team members */
.team-card {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    transition: transform .3s;
}
.team-card:hover { transform: translateY(-4px); }
.team-card-img {
    height: 200px;
    background: linear-gradient(135deg, var(--gbc-secondary), #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
}
.team-card-info { padding: 1.25rem; }
.team-card-info h5 { font-weight: 700; margin-bottom: .2rem; }
.team-card-info p { font-size: .85rem; color: var(--gbc-text-muted); margin: 0; }

/* ═══════════════════════════════════════════════════════════════
   CONTACT PAGE
   ═══════════════════════════════════════════════════════════════ */
.contact-info-card {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 14px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all .3s;
    height: 100%;
}
.contact-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,.06);
    border-color: rgba(230,57,70,.15);
}
.contact-info-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.contact-info-card h6 { font-weight: 700; margin-bottom: .2rem; font-size: .92rem; }
.contact-info-card p { margin: 0; font-size: .85rem; color: #555; }
.contact-info-card a { color: var(--gbc-primary); text-decoration: none; font-weight: 600; font-size: .85rem; }

.contact-form-card {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.04);
}
.contact-form-card h4 { font-weight: 700; }
.contact-form-card .form-control,
.contact-form-card .form-select {
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    padding: .7rem 1rem;
}
.contact-form-card .form-control:focus {
    border-color: var(--gbc-primary);
    box-shadow: 0 0 0 3px rgba(230,57,70,.08);
}

/* ═══════════════════════════════════════════════════════════════
   FAQ PAGE
   ═══════════════════════════════════════════════════════════════ */
.faq-accordion .accordion-item {
    border: 1px solid #eef0f4;
    border-radius: 14px !important;
    margin-bottom: .75rem;
    overflow: hidden;
    transition: box-shadow .3s;
}
.faq-accordion .accordion-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.04);
}
.faq-accordion .accordion-button {
    font-weight: 600;
    font-size: .95rem;
    color: var(--gbc-dark, #1d3557);
    padding: 1rem 1.25rem;
    background: #fff;
    border: none;
    box-shadow: none !important;
}
.faq-accordion .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, rgba(230,57,70,.03), rgba(230,57,70,.01));
    color: var(--gbc-primary);
}
.faq-accordion .accordion-button::after {
    width: 1.1rem;
    height: 1.1rem;
    background-size: 1.1rem;
}
.faq-accordion .accordion-body {
    font-size: .9rem;
    color: #555;
    line-height: 1.7;
    padding: 0 1.25rem 1.25rem;
}
.faq-search-box {
    max-width: 500px;
    margin: 0 auto 2rem;
}
.faq-search-box .form-control {
    border-radius: 50px;
    padding: .8rem 1.5rem;
    border: 2px solid #eef0f4;
    font-size: .95rem;
}
.faq-search-box .form-control:focus {
    border-color: var(--gbc-primary);
    box-shadow: 0 0 0 4px rgba(230,57,70,.08);
}
.faq-category-pills {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
}
.faq-category-pills .faq-pill {
    padding: .4rem 1.15rem;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 600;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: var(--gbc-dark);
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}
.faq-category-pills .faq-pill:hover,
.faq-category-pills .faq-pill.active {
    background: var(--gbc-primary);
    border-color: var(--gbc-primary);
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════════
   HOW IT WORKS PAGE (Full-page version)
   ═══════════════════════════════════════════════════════════════ */
.hiw-page-step {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 2rem 0;
}
.hiw-page-step:nth-child(even) { flex-direction: row-reverse; }
.hiw-step-visual {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
}
.hiw-step-number {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--gbc-primary);
    color: #fff;
    font-size: .9rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(230,57,70,.3);
}
.hiw-step-content h4 { font-weight: 700; margin-bottom: .5rem; }
.hiw-step-content p { font-size: .95rem; color: #555; line-height: 1.7; }

.hiw-benefit-card {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    transition: all .3s;
    height: 100%;
}
.hiw-benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0,0,0,.07);
}
.hiw-benefit-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: .8rem;
}
.hiw-benefit-card h6 { font-weight: 700; font-size: .95rem; }
.hiw-benefit-card p { font-size: .82rem; color: #666; margin: 0; }

@media (max-width: 768px) {
    .hiw-page-step, .hiw-page-step:nth-child(even) { flex-direction: column; text-align: center; gap: 1.5rem; }
    .hiw-step-visual { width: 140px; height: 140px; font-size: 3rem; }
}

/* ═══════════════════════════════════════════════════════════════
   CATEGORIES PAGE
   ═══════════════════════════════════════════════════════════════ */
.category-card {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all .3s ease;
    text-decoration: none;
    color: var(--gbc-dark, #1d3557);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,.08);
    border-color: rgba(230,57,70,.15);
    color: var(--gbc-dark);
}
.category-card-icon {
    width: 72px; height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    transition: transform .3s;
}
.category-card:hover .category-card-icon { transform: scale(1.08); }
.category-card h5 { font-weight: 700; font-size: 1rem; margin-bottom: .3rem; }
.category-card .deal-count {
    font-size: .8rem;
    color: var(--gbc-text-muted);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   SEARCH RESULTS
   ═══════════════════════════════════════════════════════════════ */
.search-info-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 12px;
    padding: .8rem 1.25rem;
    margin-bottom: 1.5rem;
}
.search-info-bar .search-query {
    font-weight: 700;
    color: var(--gbc-primary);
}
.search-info-bar .result-count {
    font-size: .85rem;
    color: var(--gbc-text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   TRACK ORDER PAGE
   ═══════════════════════════════════════════════════════════════ */
.track-order-card {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.04);
    max-width: 560px;
    margin: 0 auto;
}
.track-order-card .form-control {
    border-radius: 12px;
    padding: .85rem 1.25rem;
    border: 2px solid #e2e8f0;
    font-size: 1rem;
}
.track-order-card .form-control:focus {
    border-color: var(--gbc-primary);
    box-shadow: 0 0 0 4px rgba(230,57,70,.08);
}
.track-result-card {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 16px;
    padding: 2rem;
    margin-top: 1.5rem;
}
.track-steps {
    position: relative;
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 0;
}
.track-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 3px;
    background: #e9ecef;
    transform: translateY(-50%);
    z-index: 0;
}
.track-step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}
.track-step-circle {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto .5rem;
    font-size: .85rem;
    font-weight: 700;
    border: 3px solid #e9ecef;
    background: #fff;
    color: #94a3b8;
    transition: all .3s;
}
.track-step.completed .track-step-circle {
    background: var(--gbc-success, #2a9d8f);
    border-color: var(--gbc-success, #2a9d8f);
    color: #fff;
}
.track-step.active .track-step-circle {
    background: var(--gbc-primary);
    border-color: var(--gbc-primary);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(230,57,70,.15);
}
.track-step-label {
    font-size: .7rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.track-step.completed .track-step-label,
.track-step.active .track-step-label { color: var(--gbc-dark); }

/* ═══════════════════════════════════════════════════════════════
   TERMS / PRIVACY — Legal Pages
   ═══════════════════════════════════════════════════════════════ */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}
.legal-card {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 14px;
    padding: 1.75rem 2rem;
    margin-bottom: 1rem;
    transition: border-color .2s;
}
.legal-card:hover { border-color: rgba(230,57,70,.12); }
.legal-card h5 {
    font-weight: 700;
    font-size: 1rem;
    color: var(--gbc-dark, #1d3557);
    display: flex;
    align-items: center;
    gap: .5rem;
}
.legal-card h5 .legal-num {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: var(--gbc-primary);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.legal-card p, .legal-card ul { font-size: .9rem; color: #555; line-height: 1.7; }
.legal-card ul { padding-left: 1.2rem; }
.legal-card li { margin-bottom: .4rem; }
.legal-toc {
    background: #f8fafc;
    border-radius: 14px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    border: 1px solid #eef0f4;
}
.legal-toc h6 { font-weight: 700; margin-bottom: .75rem; font-size: .9rem; }
.legal-toc ol { padding-left: 1.2rem; margin: 0; }
.legal-toc li { font-size: .85rem; padding: .2rem 0; }
.legal-toc a { color: var(--gbc-primary); text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD LAYOUT — Sidebar + Content
   ═══════════════════════════════════════════════════════════════ */
.dashboard-wrapper {
    display: flex;
    gap: 2rem;
    min-height: calc(100vh - 200px);
}
.dashboard-sidebar {
    width: 260px;
    flex-shrink: 0;
}
.dashboard-sidebar-inner {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 16px;
    overflow: hidden;
    position: sticky;
    top: 90px;
}
.dashboard-user-card {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    padding: 1.5rem;
    text-align: center;
    color: #fff;
}
.dashboard-user-avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,.2);
    margin-bottom: .5rem;
}
.dashboard-user-initials {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    border: 3px solid rgba(255,255,255,.2);
    margin-bottom: .5rem;
}
.dashboard-user-name {
    font-weight: 700;
    font-size: 1rem;
}
.dashboard-user-email {
    font-size: .75rem;
    color: rgba(255,255,255,.55);
}
.dashboard-nav {
    list-style: none;
    padding: .5rem 0;
    margin: 0;
}
.dashboard-nav li a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem 1.25rem;
    color: #475569;
    text-decoration: none;
    font-size: .88rem;
    font-weight: 500;
    transition: all .2s;
    border-left: 3px solid transparent;
}
.dashboard-nav li a:hover {
    background: #f8fafc;
    color: var(--gbc-primary);
    border-left-color: rgba(230,57,70,.3);
}
.dashboard-nav li a.active {
    background: linear-gradient(90deg, rgba(230,57,70,.06), transparent);
    color: var(--gbc-primary);
    font-weight: 600;
    border-left-color: var(--gbc-primary);
}
.dashboard-nav li a i { width: 20px; text-align: center; font-size: .9rem; }
.dashboard-nav .nav-badge {
    margin-left: auto;
    font-size: .65rem;
    padding: .2em .55em;
    border-radius: 50px;
    font-weight: 700;
}
.dashboard-content {
    flex: 1;
    min-width: 0;
}

/* Dashboard stat cards */
.dash-stat-card {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 14px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all .3s;
    height: 100%;
}
.dash-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,.06);
}
.dash-stat-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.dash-stat-info .stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gbc-dark, #1d3557);
    line-height: 1.2;
}
.dash-stat-info .stat-label {
    font-size: .78rem;
    color: var(--gbc-text-muted);
    margin-top: .1rem;
}

/* Dashboard table */
.dash-table {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 14px;
    overflow: hidden;
}
.dash-table .table {
    margin-bottom: 0;
}
.dash-table .table thead th {
    background: #f8fafc;
    border-bottom: 1px solid #eef0f4;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #64748b;
    padding: .85rem 1rem;
}
.dash-table .table tbody td {
    padding: .85rem 1rem;
    font-size: .88rem;
    vertical-align: middle;
    border-bottom: 1px solid #f3f4f6;
}
.dash-table .table tbody tr:last-child td { border-bottom: none; }
.dash-table .table tbody tr:hover { background: #f8fafc; }
.dash-table-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eef0f4;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.dash-table-header h6 {
    font-weight: 700;
    margin: 0;
    font-size: .95rem;
}

/* Dashboard empty state */
.dash-empty {
    text-align: center;
    padding: 3rem 1rem;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 14px;
}
.dash-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    margin: 0 auto 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.05), rgba(30, 41, 59, 0.08));
}
.dash-empty-icon i {
    font-size: 3rem;
    color: #cbd5e1;
}
.dash-empty h5 { font-weight: 600; color: var(--gbc-dark); }
.dash-empty p { font-size: .9rem; color: var(--gbc-text-muted); max-width: 380px; margin: 0 auto; }

.dash-empty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 44px;
    padding: .62rem 1.1rem;
    border-radius: 10px;
    line-height: 1.1;
}
.dash-empty-btn i {
    font-size: .95rem;
    line-height: 1;
}

/* Dashboard cards */
.dash-card {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 14px;
    overflow: hidden;
}
.dash-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eef0f4;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.dash-card-header h6 {
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.dash-card-body { padding: 1.25rem; }
.dash-card .table { margin-bottom: 0; }
.dash-card .table thead th {
    background: #f8fafc;
    border-bottom: 1px solid #eef0f4;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #64748b;
    padding: .85rem 1rem;
}
.dash-card .table tbody td {
    padding: .85rem 1rem;
    font-size: .88rem;
    vertical-align: middle;
    border-bottom: 1px solid #f3f4f6;
}
.dash-card .table tbody tr:last-child td { border-bottom: none; }
.dash-card .table tbody tr:hover { background: #f8fafc; }

/* Order status timeline */
.order-timeline {
    position: relative;
    padding-left: 2rem;
}
.order-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #eef0f4;
}
.timeline-item {
    position: relative;
    padding-bottom: 1.25rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 2px;
    width: 16px; height: 16px;
    border-radius: 50%;
    border: 3px solid #e2e8f0;
    background: #fff;
}
.timeline-item:first-child .timeline-dot {
    background: var(--gbc-primary);
    border-color: var(--gbc-primary);
}
.timeline-item .timeline-title { font-weight: 600; font-size: .88rem; }
.timeline-item .timeline-note { font-size: .8rem; color: #666; }
.timeline-item .timeline-date { font-size: .75rem; color: var(--gbc-text-muted); }

/* Notification item */
.notification-item {
    display: flex;
    gap: .8rem;
    align-items: flex-start;
    padding: .85rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
    transition: background .15s;
}
.notification-item:hover { background: #f8fafc; }
.notification-item.unread {
    background: rgba(230,57,70,.02);
    border-left: 3px solid var(--gbc-primary);
}
.notification-icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.notification-content { flex: 1; min-width: 0; }
.notification-content .notif-title { font-weight: 600; font-size: .88rem; }
.notification-content .notif-msg { font-size: .82rem; color: #666; margin: .15rem 0; }
.notification-content .notif-time { font-size: .75rem; color: var(--gbc-text-muted); }

/* Address card */
.address-card {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 14px;
    padding: 1.25rem;
    height: 100%;
    transition: border-color .2s;
    position: relative;
}
.address-card:hover { border-color: rgba(230,57,70,.15); }
.address-card.default { border-color: var(--gbc-success); }
.address-default-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: .65rem;
    font-weight: 700;
    padding: .25em .6em;
    border-radius: 6px;
}
.address-card h6 { font-weight: 700; font-size: .92rem; }
.address-card p { font-size: .85rem; color: #555; margin-bottom: .2rem; }
.address-card .address-actions {
    margin-top: .75rem;
    display: flex;
    gap: .4rem;
}

/* ══════════════════════════════════════════
   Profile Page — Modern Redesign
   ══════════════════════════════════════════ */

/* Hero Card */
.profile-hero {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.profile-hero-bg {
    height: 140px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #e63946 100%);
    position: relative;
}
.profile-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.profile-hero-content {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 0 1.5rem 1.5rem;
    margin-top: -50px;
    position: relative;
    z-index: 1;
}
.profile-hero-avatar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    flex-shrink: 0;
}
.profile-hero-avatar {
    width: 100px;
    height: 100px;
    position: relative;
}
.profile-hero-avatar-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    display: block;
}
.profile-hero-avatar-initials {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 2.4rem;
    font-weight: 700;
    border: 4px solid #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.profile-hero-camera {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gbc-primary, #E63946);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    cursor: pointer;
    border: 3px solid #fff;
    transition: background .2s, transform .15s;
    z-index: 2;
}
.profile-hero-camera:hover {
    background: #c0313e;
    transform: scale(1.12);
}
.profile-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .35rem .85rem;
    font-size: .72rem;
    font-weight: 600;
    color: #667eea;
    background: rgba(102,126,234,.08);
    border: 1.5px solid rgba(102,126,234,.2);
    border-radius: 20px;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}
.profile-upload-btn:hover {
    background: rgba(102,126,234,.15);
    border-color: #667eea;
    color: #5a6fd6;
}
.profile-hero-info {
    padding-top: 58px;
    min-width: 0;
    flex: 1;
}
.profile-hero-name {
    font-weight: 700;
    font-size: 1.25rem;
    color: #1e293b;
    margin-bottom: .15rem;
}
.profile-hero-email,
.profile-hero-phone {
    font-size: .82rem;
    color: #64748b;
    margin-bottom: .25rem;
}
.profile-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .4rem;
}
.profile-badge {
    display: inline-flex;
    align-items: center;
    padding: .25rem .7rem;
    font-size: .7rem;
    font-weight: 600;
    border-radius: 20px;
}
.profile-badge-verified {
    background: rgba(34,197,94,.1);
    color: #16a34a;
}
.profile-badge-unverified {
    background: rgba(245,158,11,.1);
    color: #d97706;
}
.profile-badge-member {
    background: rgba(99,102,241,.08);
    color: #6366f1;
}

/* Profile Cards */
.profile-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,.04);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.04);
}
.profile-card-header {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}
.profile-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.profile-card-title {
    font-weight: 700;
    font-size: .95rem;
    color: #1e293b;
    margin-bottom: .1rem;
}
.profile-card-subtitle {
    font-size: .76rem;
    color: #94a3b8;
    margin: 0;
}
.profile-card-body {
    padding: 1.5rem;
}

/* Profile Form Elements */
.profile-label {
    font-size: .8rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: .35rem;
}
.profile-input-wrap {
    position: relative;
}
.profile-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: .82rem;
    pointer-events: none;
    z-index: 1;
}
.profile-input {
    padding-left: 2.5rem !important;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px !important;
    font-size: .88rem;
    height: 46px;
    transition: border-color .2s, box-shadow .2s;
    background: #fff;
}
.profile-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,.1);
}
.profile-input-disabled {
    background: #f8fafc !important;
    color: #94a3b8;
}
.profile-input-lock {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #cbd5e1;
    font-size: .75rem;
}

/* Profile Buttons */
.profile-save-btn {
    display: inline-flex;
    align-items: center;
    padding: .65rem 1.75rem;
    font-size: .88rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 4px 12px rgba(102,126,234,.25);
}
.profile-save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102,126,234,.35);
}
.profile-password-btn {
    display: inline-flex;
    align-items: center;
    padding: .65rem 1.75rem;
    font-size: .88rem;
    font-weight: 600;
    color: #f59e0b;
    background: transparent;
    border: 2px solid #f59e0b;
    border-radius: 12px;
    cursor: pointer;
    transition: all .2s;
}
.profile-password-btn:hover {
    background: #f59e0b;
    color: #fff;
    box-shadow: 0 4px 12px rgba(245,158,11,.25);
}

/* ── Dashboard Section wrapper ── */
.dash-section {
    padding-top: 1.5rem;
    padding-bottom: 0;
}

/* ── Dashboard page header ── */
.dash-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    gap: 1rem;
}
.dash-page-title {
    font-weight: 700;
    margin: 0;
    font-size: 1.25rem;
}
.dash-filter-select {
    appearance: none;
    -webkit-appearance: none;
    background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") no-repeat right .6rem center/8px 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: .45rem 2rem .45rem .85rem;
    font-size: .82rem;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: border-color .2s;
}
.dash-filter-select:focus {
    outline: none;
    border-color: var(--gbc-primary);
}

/* ── Mobile Header Bar ── */
.dash-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eef0f4;
}
.dash-mobile-title {
    font-weight: 700;
    font-size: 1rem;
    color: #1e293b;
}

/* ── Sidebar Overlay (mobile slide-out) ── */
.dash-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1040;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity .3s;
}
.dash-sidebar-overlay.open {
    display: block;
    opacity: 1;
}
.dash-sidebar-close {
    position: absolute;
    top: 12px; right: 12px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    border: none;
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background .2s;
}
.dash-sidebar-close:hover {
    background: rgba(255,255,255,.25);
}

/* ── Mobile Bottom Navigation ── */
.dash-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: #fff;
    border-top: 1px solid #eef0f4;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    padding: .35rem 0;
    padding-bottom: calc(.35rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 20px rgba(0,0,0,.06);
}
.dash-bnav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .15rem;
    flex: 1;
    padding: .4rem 0;
    text-decoration: none;
    color: #94a3b8;
    font-size: .65rem;
    font-weight: 600;
    transition: color .2s;
}
.dash-bnav-item i {
    font-size: 1.15rem;
    transition: transform .2s;
}
.dash-bnav-item.active {
    color: var(--gbc-primary);
}
.dash-bnav-item.active i {
    transform: scale(1.15);
}
.dash-bnav-item:hover {
    color: var(--gbc-primary);
}

/* ── Welcome Banner ── */
.dash-welcome-banner {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    color: #fff;
}
.dash-welcome-text h4 {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: .25rem;
    color: #fff;
}
.dash-welcome-text p {
    margin: 0;
    font-size: .85rem;
    color: rgba(255,255,255,.6);
}
.dash-welcome-cta {
    background: var(--gbc-primary);
    color: #fff;
    border: none;
    padding: .6rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: .85rem;
    text-decoration: none;
    white-space: nowrap;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}
.dash-welcome-cta:hover {
    background: #c22e3a;
    color: #fff;
    transform: translateY(-1px);
}

/* ── Stats Grid ── */
.dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .75rem;
    margin-bottom: 1.25rem;
}

/* ── Quick Actions (mobile) ── */
.dash-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .6rem;
    margin-bottom: 1.25rem;
}
.dash-qaction {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .45rem;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 14px;
    padding: 1rem .5rem;
    text-decoration: none;
    color: #334155;
    font-size: .72rem;
    font-weight: 600;
    transition: all .2s;
}
.dash-qaction:hover {
    border-color: rgba(230,57,70,.2);
    transform: translateY(-2px);
    color: #334155;
}
.dash-qaction-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* ── Mobile Order Cards ── */
.dash-order-cards {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.dash-order-card-item {
    display: block;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 14px;
    padding: 1rem 1.15rem;
    text-decoration: none;
    color: inherit;
    transition: all .2s;
}
.dash-order-card-item:hover {
    border-color: rgba(230,57,70,.15);
    box-shadow: 0 4px 16px rgba(0,0,0,.04);
    color: inherit;
}
.dash-ocard-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .35rem;
}
.dash-ocard-number {
    font-weight: 700;
    font-size: .82rem;
    color: #1e293b;
}
.dash-ocard-deal {
    font-size: .82rem;
    color: #64748b;
    margin-bottom: .45rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dash-ocard-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.dash-ocard-price {
    font-weight: 700;
    font-size: .88rem;
    color: var(--gbc-primary);
}
.dash-ocard-date {
    font-size: .72rem;
    color: #94a3b8;
}

/* ── Card link / view all ── */
.dash-card-link {
    font-size: .8rem;
    font-weight: 600;
    color: var(--gbc-primary);
    text-decoration: none;
    transition: color .2s;
    white-space: nowrap;
}
.dash-card-link:hover {
    color: #c22e3a;
}

/* ── Mini empty state ── */
.dash-empty-mini {
    text-align: center;
    padding: 2rem 1rem;
    color: #94a3b8;
}
.dash-empty-mini-icon {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    margin: 0 auto .55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.05), rgba(30, 41, 59, 0.08));
}
.dash-empty-mini-icon i {
    font-size: 2rem;
    color: #cbd5e1;
}
.dash-empty-mini p {
    margin: 0;
    font-size: .85rem;
}

/* ═══════ MOBILE RESPONSIVE: Dashboard ═══════ */
@media (max-width: 991px) {
    /* Sidebar becomes slide-out drawer */
    .dashboard-wrapper { flex-direction: column; gap: 0; }
    .dashboard-sidebar {
        position: fixed;
        top: 0; left: 0; bottom: 0;
        width: 280px;
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform .3s cubic-bezier(.4,0,.2,1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .dashboard-sidebar.open {
        transform: translateX(0);
    }
    .dashboard-sidebar-inner {
        position: static;
        border-radius: 0;
        border: none;
        min-height: 100vh;
    }
    .dashboard-user-card {
        padding: 1.5rem;
        text-align: center;
    }
    .dashboard-nav {
        display: flex;
        flex-direction: column;
        padding: .5rem 0;
    }
    .dashboard-nav li a {
        padding: .7rem 1.25rem;
        font-size: .88rem;
        border-left: 3px solid transparent;
        border-bottom: none;
        border-radius: 0;
    }
    .dashboard-nav li a.active {
        border-left-color: var(--gbc-primary);
        border-bottom: none;
        border-radius: 0;
    }

    /* Content needs bottom padding for bottom nav */
    .dashboard-content {
        padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    }
    .dash-section .container {
        padding-left: .85rem;
        padding-right: .85rem;
    }

    /* Stats grid: 2 columns on mobile */
    .dash-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: .6rem;
    }
    .dash-stat-card {
        padding: 1rem;
        border-radius: 12px;
    }
    .dash-stat-icon {
        width: 42px; height: 42px;
        font-size: 1.05rem;
        border-radius: 12px;
    }
    .dash-stat-info .stat-value {
        font-size: 1.2rem;
    }
    .dash-stat-info .stat-label {
        font-size: .72rem;
    }

    /* Welcome banner stacked */
    .dash-welcome-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: .75rem;
        padding: 1.25rem;
        border-radius: 14px;
    }
    .dash-welcome-text h4 { font-size: 1.05rem; }
    .dash-welcome-cta { width: 100%; justify-content: center; }

    /* Page header */
    .dash-page-header {
        flex-wrap: wrap;
    }
    .dash-page-title { font-size: 1.1rem; }

    /* Table font sizes smaller on mobile */
    .dash-card .table thead th,
    .dash-card .table tbody td {
        font-size: .78rem;
        padding: .65rem .75rem;
    }

    /* Profile adjustments */
    .profile-hero-bg { height: 100px; }
    .profile-hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 1rem 1.25rem;
        margin-top: -45px;
        gap: .75rem;
    }
    .profile-hero-avatar { width: 86px; height: 86px; }
    .profile-hero-avatar-img { width: 86px; height: 86px; }
    .profile-hero-avatar-initials { width: 86px; height: 86px; font-size: 2rem; }
    .profile-hero-camera { width: 28px; height: 28px; font-size: .7rem; }
    .profile-hero-info { padding-top: 0; text-align: center; }
    .profile-hero-name { font-size: 1.1rem; }
    .profile-hero-badges { justify-content: center; }
    .profile-card-header { padding: 1rem 1.15rem; gap: .6rem; }
    .profile-card-body { padding: 1.15rem; }
    .profile-card-icon { width: 36px; height: 36px; font-size: .85rem; }
    .profile-card-title { font-size: .88rem; }
    .profile-input { height: 42px; font-size: .84rem; }
    .profile-save-btn, .profile-password-btn { width: 100%; justify-content: center; }

    /* Address cards full width */
    .address-card {
        border-radius: 12px;
        padding: 1rem;
    }

    /* Notifications */
    .notification-item {
        padding: .75rem 1rem;
    }
    .notification-icon {
        width: 36px; height: 36px;
        font-size: .9rem;
        border-radius: 10px;
    }

    /* Order detail responsive */
    .order-timeline { padding-left: 1.5rem; }
    .timeline-dot {
        left: -1.5rem;
        width: 14px; height: 14px;
    }

    /* Form control sizing */
    .dash-card-body .form-control,
    .dash-card-body .form-select {
        font-size: .85rem;
        padding: .55rem .85rem;
    }
    .dash-card-body .form-label {
        font-size: .82rem;
    }

    /* Hide footer on dashboard mobile (bottom nav takes over) */
    body:has(.dash-bottom-nav) .gbc-footer {
        display: none;
    }
}

@media (max-width: 575px) {
    .dash-stats-grid {
        gap: .5rem;
    }
    .dash-stat-card {
        padding: .8rem;
        gap: .6rem;
    }
    .dash-stat-icon {
        width: 38px; height: 38px;
        font-size: .95rem;
        border-radius: 10px;
    }
    .dash-stat-info .stat-value { font-size: 1.05rem; }
    .dash-quick-actions {
        grid-template-columns: repeat(4, 1fr);
        gap: .45rem;
    }
    .dash-qaction {
        padding: .75rem .35rem;
        border-radius: 12px;
    }
    .dash-qaction-icon {
        width: 36px; height: 36px;
        font-size: .95rem;
        border-radius: 10px;
    }
    .dash-qaction span { font-size: .65rem; }
    .dash-order-card-item { padding: .85rem 1rem; border-radius: 12px; }
    .dash-ocard-number { font-size: .78rem; }
    .dash-ocard-deal { font-size: .78rem; }
    .dash-ocard-price { font-size: .82rem; }

    /* Address cards */
    .address-card h6 { font-size: .85rem; }
    .address-card p { font-size: .8rem; }
    .address-card .address-actions { flex-wrap: wrap; }
}

/* ═══════════════════════════════════════════════════════════════
   ERROR PAGES — 403, 404, 500
   ═══════════════════════════════════════════════════════════════ */
.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1rem;
}
.error-code {
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--gbc-primary), var(--gbc-accent, #ff5000));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}
.error-page h2 {
    font-weight: 700;
    margin-bottom: .5rem;
}
.error-page p {
    color: var(--gbc-text-muted);
    max-width: 400px;
    margin: 0 auto 1.5rem;
}
.error-illustration {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(230,57,70,.06), rgba(69,123,157,.06));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    margin-bottom: 1.5rem;
    color: var(--gbc-primary);
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN LAYOUT ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════ */
.admin-stat-card {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 14px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all .3s;
}
.admin-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.admin-stat-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.admin-stat-info .stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gbc-dark, #1d3557);
    line-height: 1.2;
}
.admin-stat-info .stat-label {
    font-size: .78rem;
    color: var(--gbc-text-muted);
}
.admin-stat-info .stat-change {
    font-size: .72rem;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   GLOBAL UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════ */
.gbc-card {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 14px;
    overflow: hidden;
}
.gbc-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eef0f4;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.gbc-card-header h6 { font-weight: 700; margin: 0; }
.gbc-card-body { padding: 1.25rem; }

.gbc-badge {
    font-size: .7rem;
    font-weight: 700;
    padding: .3em .7em;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.gbc-btn-primary {
    background: var(--gbc-primary, #e63946);
    border: none;
    color: #fff;
    padding: .65rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all .2s;
}
.gbc-btn-primary:hover {
    background: #c22e3a;
    transform: translateY(-1px);
    color: #fff;
}
.gbc-btn-outline {
    background: transparent;
    border: 1.5px solid #e2e8f0;
    color: var(--gbc-dark);
    padding: .65rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all .2s;
}
.gbc-btn-outline:hover {
    border-color: var(--gbc-primary);
    color: var(--gbc-primary);
}

/* Smooth reveal animation for sections */
.gbc-reveal {
    animation: fadeInUp .5s ease forwards;
}
.gbc-reveal-delay-1 { animation-delay: .1s; }
.gbc-reveal-delay-2 { animation-delay: .2s; }
.gbc-reveal-delay-3 { animation-delay: .3s; }
.gbc-reveal-delay-4 { animation-delay: .4s; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER — Redesigned
   ═══════════════════════════════════════════════════════════════ */
.gbc-footer {
    background: linear-gradient(180deg, #0f172a 0%, #0a0f1a 100%);
    color: rgba(255,255,255,.7);
    padding-top: 0;
    margin-top: 0 !important;
}
.gbc-footer-top {
    background: linear-gradient(135deg, var(--gbc-primary), #c22e3a);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    margin-top: -2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    z-index: 2;
}
.gbc-footer-top h4 { color: #fff; font-weight: 700; margin: 0; }
.gbc-footer-top p { color: rgba(255,255,255,.8); margin: 0; font-size: .9rem; }
.gbc-footer-columns {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
    padding: 3.5rem 0 2rem;
}
.gbc-footer h5 {
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: .5rem;
}
.gbc-footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gbc-primary);
}
.gbc-footer p { font-size: .85rem; line-height: 1.7; }
.gbc-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.gbc-footer-links li { margin-bottom: .5rem; }
.gbc-footer-links a {
    color: rgba(255,255,255,.6);
    text-decoration: none;
    font-size: .85rem;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}
.gbc-footer-links a:hover {
    color: #fff;
    padding-left: 4px;
}
.gbc-footer-social {
    display: flex;
    gap: .5rem;
    margin-top: .75rem;
}
.gbc-footer-social a {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.6);
    transition: all .2s;
    border: 1px solid rgba(255,255,255,.08);
}
.gbc-footer-social a:hover {
    background: var(--gbc-primary);
    color: #fff;
    border-color: var(--gbc-primary);
    transform: translateY(-2px);
}
.gbc-footer-newsletter .input-group {
    max-width: 300px;
}
.gbc-footer-newsletter .form-control {
    border-radius: 10px 0 0 10px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    color: #fff;
    padding: .6rem .9rem;
    font-size: .85rem;
}
.gbc-footer-newsletter .form-control::placeholder { color: rgba(255,255,255,.35); }
.gbc-footer-newsletter .btn {
    border-radius: 0 10px 10px 0;
    font-weight: 600;
    font-size: .85rem;
    padding: .6rem 1rem;
}
.gbc-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .8rem;
}
.gbc-footer-bottom a { color: rgba(255,255,255,.5); text-decoration: none; }
.gbc-footer-bottom a:hover { color: #fff; }
.gbc-footer-bottom-links { display: flex; gap: 1.5rem; }
.gbc-footer .small a { color: rgba(255,255,255,.7); text-decoration: none; }
.gbc-footer .small a:hover { color: #fff; }

@media (max-width: 768px) {
    .gbc-footer-top { flex-direction: column; text-align: center; padding: 1.5rem; }
    .gbc-footer-columns { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .gbc-footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
    .page-hero h1 { font-size: 1.5rem; }
    .error-code { font-size: 5rem; }
}
@media (max-width: 576px) {
    .gbc-footer-columns { grid-template-columns: 1fr; }
}

/* ═══════ GLOBAL ACCOUNT DRAWER (non-dashboard pages, mobile) ═══════ */
.gbc-account-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1049;
    opacity: 0;
    transition: opacity .3s ease;
}
.gbc-account-drawer-overlay.open {
    display: block;
    opacity: 1;
}
.gbc-account-drawer {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 280px;
    max-width: 85vw;
    background: #fff;
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 4px 0 24px rgba(0,0,0,.12);
    display: flex;
    flex-direction: column;
}
.gbc-account-drawer.open {
    transform: translateX(0);
}
.gbc-account-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    background: #fafbfc;
}
.gbc-account-drawer-title {
    font-size: .95rem;
    font-weight: 700;
    color: #1D3557;
}
.gbc-account-drawer-close {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    font-size: 1rem;
    cursor: pointer;
    transition: all .2s;
}
.gbc-account-drawer-close:hover {
    background: #e2e8f0;
    color: #E63946;
}
.gbc-account-drawer-user {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1.25rem;
    border-bottom: 1px solid #f0f0f0;
}
.gbc-account-drawer-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #E63946;
}
.gbc-account-drawer-initials {
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #E63946, #c0392b);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}
.gbc-account-drawer-name {
    font-weight: 600;
    font-size: .95rem;
    color: #1e293b;
    line-height: 1.3;
}
.gbc-account-drawer-email {
    font-size: .78rem;
    color: #94a3b8;
    line-height: 1.3;
}
.gbc-account-drawer-nav {
    list-style: none;
    margin: 0;
    padding: .5rem 0;
    flex: 1;
}
.gbc-account-drawer-nav li a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem 1.25rem;
    font-size: .88rem;
    color: #475569;
    text-decoration: none;
    transition: all .2s;
    border-left: 3px solid transparent;
}
.gbc-account-drawer-nav li a:hover,
.gbc-account-drawer-nav li a:active {
    background: #f8fafc;
    color: #E63946;
    border-left-color: #E63946;
}
.gbc-account-drawer-nav li a i {
    width: 20px;
    text-align: center;
    font-size: .9rem;
    color: #94a3b8;
    transition: color .2s;
}
.gbc-account-drawer-nav li a:hover i,
.gbc-account-drawer-nav li a:active i {
    color: #E63946;
}
.gbc-account-drawer-badge {
    margin-left: auto;
    background: #E63946;
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    padding: .15em .5em;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.4;
}
.gbc-account-drawer-logout {
    color: #E63946 !important;
}
.gbc-account-drawer-logout i {
    color: #E63946 !important;
}
