/* ============================================================
   DigitalVault – Main Stylesheet
   Design: Bold Editorial Red & White
   Fonts: Syne (display) + DM Sans (body)
   ============================================================ */

:root {
    --red-900:  #7f1d1d;
    --red-800:  #991b1b;
    --red-700:  #b91c1c;
    --red-600:  #dc2626;
    --red-500:  #ef4444;
    --red-400:  #f87171;
    --red-300:  #fca5a5;
    --red-100:  #fee2e2;
    --red-50:   #fef2f2;
    --dark-950: #0a0a0a;
    --dark-900: #111111;
    --dark-800: #1a1a1a;
    --dark-700: #242424;
    --dark-600: #2e2e2e;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --white:    #ffffff;

    --font-display: 'Syne', sans-serif;
    --font-body:    'DM Sans', sans-serif;

    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  18px;
    --radius-xl:  28px;

    --shadow-sm:  0 1px 3px rgba(0,0,0,.18), 0 1px 2px rgba(0,0,0,.12);
    --shadow-md:  0 4px 20px rgba(0,0,0,.22);
    --shadow-lg:  0 10px 40px rgba(0,0,0,.28);
    --shadow-red: 0 8px 32px rgba(220,38,38,.35);
}

/* ── Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--gray-100);
    color: var(--dark-900);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

a { text-decoration: none; }

img { max-width: 100%; }

/* ── Announcement Bar ─────────────────────────────────── */
.announcement-bar {
    background: linear-gradient(90deg, var(--red-700) 0%, var(--red-600) 50%, var(--red-700) 100%);
    color: white;
    font-size: 13px;
    font-family: var(--font-display);
    letter-spacing: .02em;
}

/* ── Navbar ───────────────────────────────────────────── */
.main-nav {
    background: var(--dark-950);
    border-bottom: 1px solid rgba(255,255,255,.06);
    padding: 10px 0;
    backdrop-filter: blur(20px);
    z-index: 1040;
}

.brand-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--red-600), var(--red-800));
    border-radius: var(--radius-sm);
    display: grid; place-items: center;
    font-size: 18px;
    color: white;
    box-shadow: var(--shadow-red);
    flex-shrink: 0;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--white);
    letter-spacing: -.02em;
}
.brand-name span { color: var(--red-500); }

.main-nav .nav-link {
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 600;
    color: rgba(255,255,255,.7) !important;
    padding: 7px 14px !important;
    border-radius: var(--radius-sm);
    letter-spacing: .02em;
    transition: all .2s;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: white !important;
    background: rgba(255,255,255,.07);
}
.main-nav .nav-link.active {
    color: var(--red-400) !important;
}

.search-input {
    background: rgba(255,255,255,.08) !important;
    border: 1px solid rgba(255,255,255,.1) !important;
    color: white !important;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm) !important;
    font-size: 13px;
    width: 200px;
    transition: .2s;
}
.search-input::placeholder { color: rgba(255,255,255,.4); }
.search-input:focus {
    background: rgba(255,255,255,.12) !important;
    box-shadow: 0 0 0 2px rgba(220,38,38,.4) !important;
    width: 240px;
}

.nav-icon-btn {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    padding: 0;
    border-radius: var(--radius-sm);
    border-color: rgba(255,255,255,.2);
    font-size: 15px;
    transition: .2s;
}
.nav-icon-btn:hover {
    border-color: rgba(255,255,255,.5);
    background: rgba(255,255,255,.07);
}

.cart-badge {
    font-size: 9px;
    min-width: 16px;
    height: 16px;
    padding: 2px 4px;
    transform: translate(30%,-30%) !important;
}

.nav-dropdown, .user-dropdown {
    background: var(--dark-800);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    min-width: 220px;
}
.nav-dropdown .dropdown-item,
.user-dropdown .dropdown-item {
    font-size: 13.5px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,.75);
    transition: .15s;
}
.nav-dropdown .dropdown-item:hover,
.user-dropdown .dropdown-item:hover {
    background: rgba(255,255,255,.07);
    color: white;
}

/* ── Hero Section ─────────────────────────────────────── */
.hero-section {
    background: var(--dark-950);
    position: relative;
    overflow: hidden;
    padding: 90px 0 80px;
}

.hero-bg-pattern {
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(220,38,38,.18) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(220,38,38,.12) 0%, transparent 40%),
        linear-gradient(135deg, transparent 40%, rgba(220,38,38,.04) 100%);
    z-index: 0;
}

.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-content { position: relative; z-index: 2; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(220,38,38,.15);
    border: 1px solid rgba(220,38,38,.3);
    color: var(--red-400);
    font-size: 12px;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero-title span { color: var(--red-500); }

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,.6);
    max-width: 560px;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-cta-group { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn-hero-primary {
    background: linear-gradient(135deg, var(--red-600), var(--red-800));
    border: none;
    color: white;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    padding: 14px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-red);
    transition: all .25s;
}
.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(220,38,38,.5);
    color: white;
}

.btn-hero-secondary {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.15);
    color: white;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    transition: all .25s;
}
.btn-hero-secondary:hover {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.3);
    color: white;
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,.08);
}
.hero-stat-value {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}
.hero-stat-label {
    font-size: 12px;
    color: rgba(255,255,255,.45);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-top: 2px;
}

.hero-preview-card {
    background: var(--dark-800);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(220,38,38,.1);
    position: relative;
    z-index: 2;
}
.hero-preview-bar {
    background: var(--dark-700);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.hero-preview-dots { display: flex; gap: 6px; }
.hero-preview-dots span {
    width: 10px; height: 10px;
    border-radius: 50%;
}
.dot-red   { background: #ef4444; }
.dot-amber { background: #f59e0b; }
.dot-green { background: #22c55e; }
.hero-preview-url {
    flex: 1;
    background: rgba(255,255,255,.07);
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 11px;
    color: rgba(255,255,255,.4);
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hero-preview-iframe {
    width: 100%;
    height: 320px;
    border: none;
    display: block;
    background: #1a1a2e;
}

/* ── Section Styles ───────────────────────────────────── */
.section-eyebrow {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--red-600);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.section-eyebrow::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--red-300);
    max-width: 40px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--dark-900);
    margin-bottom: 0;
}

.section-subtitle {
    color: var(--gray-500);
    font-size: .95rem;
    margin-top: 10px;
}

/* ── Product Card ──────────────────────────────────────── */
.product-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all .3s cubic-bezier(.25,.8,.25,1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--red-200);
}

.product-card-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--gray-100);
}

.product-card-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.product-card:hover .product-card-img { transform: scale(1.05); }

.product-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.8) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    opacity: 0;
    transition: opacity .3s;
}
.product-card:hover .product-card-overlay { opacity: 1; }

.overlay-actions {
    display: flex;
    gap: 8px;
}
.overlay-btn {
    flex: 1;
    padding: 8px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-family: var(--font-display);
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: .2s;
    text-decoration: none;
    display: inline-block;
}
.overlay-btn-preview {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    color: white;
    backdrop-filter: blur(8px);
}
.overlay-btn-preview:hover { background: rgba(255,255,255,.25); color: white; }
.overlay-btn-cart {
    background: var(--red-600);
    color: white;
}
.overlay-btn-cart:hover { background: var(--red-700); }

.product-badge {
    position: absolute;
    top: 12px; left: 12px;
    font-size: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    z-index: 1;
}
.badge-featured { background: var(--red-600); color: white; }
.badge-sale { background: #16a34a; color: white; }
.badge-new { background: #2563eb; color: white; }

.wishlist-btn {
    position: absolute;
    top: 12px; right: 12px;
    width: 32px; height: 32px;
    background: rgba(255,255,255,.9);
    border: none;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 14px;
    color: var(--gray-500);
    cursor: pointer;
    transition: .2s;
    z-index: 1;
    text-decoration: none;
}
.wishlist-btn:hover, .wishlist-btn.active { color: var(--red-600); }

.product-card-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-category-tag {
    font-size: 11px;
    color: var(--red-600);
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    text-decoration: none;
}

.product-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-900);
    text-decoration: none;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-name:hover { color: var(--red-600); }

.product-desc {
    font-size: 12.5px;
    color: var(--gray-500);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
    margin-top: auto;
}

.product-price { 
    display: flex; 
    flex-direction: column; 
    align-items: flex-start;
}
.price-current {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--red-600);
    line-height: 1;
}
.price-original {
    font-size: 12px;
    color: var(--gray-400);
    text-decoration: line-through;
    margin-top: 2px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--gray-400);
}
.product-rating .bi-star-fill,
.product-rating .bi-star-half { color: #f59e0b; font-size: 11px; }

.tech-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tech-tag {
    font-size: 10px;
    background: var(--gray-100);
    color: var(--gray-500);
    padding: 2px 8px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 600;
}

/* ── Category Cards ───────────────────────────────────── */
.category-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: all .3s;
    text-decoration: none;
    display: block;
}
.category-card:hover {
    border-color: var(--red-400);
    box-shadow: 0 8px 24px rgba(220,38,38,.12);
    transform: translateY(-4px);
}

.category-icon-wrap {
    width: 60px; height: 60px;
    background: var(--red-50);
    border-radius: var(--radius-md);
    display: grid; place-items: center;
    font-size: 24px;
    color: var(--red-600);
    margin: 0 auto 14px;
    transition: .3s;
}
.category-card:hover .category-icon-wrap {
    background: var(--red-600);
    color: white;
}

.category-name {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--dark-900);
    font-size: .9rem;
    margin-bottom: 4px;
}
.category-count {
    font-size: 12px;
    color: var(--gray-400);
}

/* ── Features Section ─────────────────────────────────── */
.features-section { background: var(--dark-950); }

.feature-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: all .3s;
    height: 100%;
}
.feature-card:hover {
    background: rgba(220,38,38,.08);
    border-color: rgba(220,38,38,.3);
    transform: translateY(-4px);
}

.feature-icon {
    width: 52px; height: 52px;
    background: rgba(220,38,38,.15);
    border: 1px solid rgba(220,38,38,.25);
    border-radius: var(--radius-md);
    display: grid; place-items: center;
    font-size: 22px;
    color: var(--red-400);
    margin-bottom: 18px;
}

.feature-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: white;
    margin-bottom: 8px;
}
.feature-desc { font-size: 13.5px; color: rgba(255,255,255,.5); line-height: 1.6; }

/* ── Preview Modal ─────────────────────────────────────── */
.preview-modal .modal-content {
    background: var(--dark-900);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-xl);
}
.preview-modal .modal-header {
    background: var(--dark-800);
    border-bottom: 1px solid rgba(255,255,255,.07);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 16px 24px;
}
.preview-iframe-container {
    position: relative;
    width: 100%;
    padding-top: 58%;
    background: var(--dark-950);
}
.preview-iframe-container iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: none;
}

/* ── Cart & Checkout ──────────────────────────────────── */
.cart-item {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: .2s;
}
.cart-item:hover { box-shadow: var(--shadow-sm); }
.cart-item-img {
    width: 80px; height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    background: var(--gray-100);
}
.cart-item-details { flex: 1; min-width: 0; }
.cart-item-name {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--dark-900);
    font-size: .95rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cart-item-price {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--red-600);
    font-size: 1.1rem;
}

.order-summary-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: sticky; top: 80px;
}
.order-summary-header {
    background: var(--dark-900);
    color: white;
    padding: 18px 24px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
}
.order-summary-body { padding: 24px; }
.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 6px 0;
    color: var(--gray-500);
}
.summary-total {
    border-top: 2px solid var(--gray-100);
    margin-top: 12px;
    padding-top: 16px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--dark-900);
    display: flex;
    justify-content: space-between;
}
.summary-total span:last-child { color: var(--red-600); }

/* ── Buttons ───────────────────────────────────────────── */
.btn-primary-red {
    background: linear-gradient(135deg, var(--red-600), var(--red-700));
    border: none;
    color: white;
    font-family: var(--font-display);
    font-weight: 700;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    transition: all .25s;
    box-shadow: 0 4px 15px rgba(220,38,38,.3);
}
.btn-primary-red:hover {
    background: linear-gradient(135deg, var(--red-700), var(--red-800));
    transform: translateY(-1px);
    box-shadow: var(--shadow-red);
    color: white;
}

.btn-outline-red {
    border: 2px solid var(--red-600);
    background: transparent;
    color: var(--red-600);
    font-family: var(--font-display);
    font-weight: 700;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    transition: .2s;
}
.btn-outline-red:hover {
    background: var(--red-600);
    color: white;
}

/* ── Forms ─────────────────────────────────────────────── */
.form-control:focus, .form-select:focus {
    border-color: var(--red-400);
    box-shadow: 0 0 0 3px rgba(220,38,38,.12);
}
.form-label {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 13px;
    color: var(--dark-800);
    margin-bottom: 6px;
}
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border-color: var(--gray-200);
    font-size: 14px;
}

/* ── Auth Pages ────────────────────────────────────────── */
.auth-wrapper {
    min-height: calc(100vh - 120px);
    background:
        radial-gradient(circle at 10% 50%, rgba(220,38,38,.08), transparent 50%),
        var(--gray-100);
    display: flex;
    align-items: center;
    padding: 40px 0;
}
.auth-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    box-shadow: var(--shadow-lg);
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
}
.auth-card-title {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 800;
}

/* ── Product Detail Page ───────────────────────────────── */
.product-detail-hero {
    background: var(--dark-950);
    padding: 50px 0;
}
.product-detail-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,.06);
}
.product-detail-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: white;
}
.product-detail-price {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--red-500);
    line-height: 1;
}
.feature-check-list { list-style: none; padding: 0; margin: 0; }
.feature-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 5px 0;
    font-size: 14px;
    color: rgba(255,255,255,.75);
}
.feature-check-list li::before {
    content: '';
    display: inline-block;
    width: 18px; height: 18px;
    background: rgba(34,197,94,.15);
    border: 1px solid rgba(34,197,94,.3);
    border-radius: 50%;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='%2322c55e'%3E%3Cpath d='M10 3L5 8.5 2 5.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
    margin-top: 2px;
}

.demo-creds-box {
    background: rgba(220,38,38,.1);
    border: 1px solid rgba(220,38,38,.25);
    border-radius: var(--radius-md);
    padding: 16px;
}

/* ── Admin Panel ───────────────────────────────────────── */
.admin-sidebar {
    background: var(--dark-950);
    min-height: 100vh;
    width: 260px;
    position: fixed;
    left: 0; top: 0;
    z-index: 100;
    border-right: 1px solid rgba(255,255,255,.05);
    display: flex;
    flex-direction: column;
}
.admin-sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.admin-sidebar-nav { padding: 16px 12px; flex: 1; overflow-y: auto; }
.admin-nav-section-label {
    font-size: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: rgba(255,255,255,.3);
    padding: 12px 8px 4px;
}
.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,.6);
    font-size: 13.5px;
    font-family: var(--font-display);
    font-weight: 600;
    text-decoration: none;
    transition: .15s;
    margin-bottom: 2px;
}
.admin-nav-item:hover, .admin-nav-item.active {
    background: rgba(220,38,38,.15);
    color: var(--red-400);
}
.admin-nav-item.active { border-left: 3px solid var(--red-500); }
.admin-nav-item i { font-size: 16px; width: 20px; text-align: center; }

.admin-main {
    margin-left: 260px;
    min-height: 100vh;
    background: #f8f8f8;
}
.admin-topbar {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 14px 24px;
    position: sticky; top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.admin-content { padding: 28px 28px; }

.stat-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: .2s;
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-card-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-md);
    display: grid; place-items: center;
    font-size: 20px;
    margin-bottom: 16px;
}
.stat-value {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--dark-900);
    line-height: 1;
}
.stat-label {
    font-size: 13px;
    color: var(--gray-400);
    margin-top: 4px;
}
.stat-change {
    font-size: 12px;
    font-family: var(--font-display);
    font-weight: 600;
    margin-top: 8px;
}
.stat-change.up { color: #16a34a; }
.stat-change.down { color: var(--red-600); }

/* ── Shop Page ─────────────────────────────────────────── */
.shop-filter-sidebar {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky; top: 80px;
}
.filter-group-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--dark-900);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-100);
}

/* ── Footer ───────────────────────────────────────────── */
.site-footer { background: var(--dark-950); }
.footer-top { padding: 64px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.footer-heading {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: rgba(255,255,255,.35);
    margin-bottom: 16px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    color: rgba(255,255,255,.55);
    font-size: 13.5px;
    transition: color .2s;
}
.footer-links a:hover { color: var(--red-400); }

.trust-badge {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-sm);
    padding: 5px 10px;
    font-size: 12px;
    color: rgba(255,255,255,.6);
}

.social-btn {
    width: 36px; height: 36px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-sm);
    display: grid; place-items: center;
    color: rgba(255,255,255,.6);
    font-size: 14px;
    transition: .2s;
}
.social-btn:hover {
    background: var(--red-600);
    border-color: var(--red-600);
    color: white;
}

.newsletter-input {
    background: rgba(255,255,255,.07) !important;
    border: 1px solid rgba(255,255,255,.1) !important;
    color: white !important;
    font-size: 13.5px;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm) !important;
}
.newsletter-input::placeholder { color: rgba(255,255,255,.35); }
.newsletter-input:focus {
    box-shadow: 0 0 0 2px rgba(220,38,38,.3) !important;
    border-color: var(--red-500) !important;
}

.payment-badge {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    font-size: 11px;
    color: rgba(255,255,255,.5);
}

.footer-bottom {
    padding: 20px 0;
    background: rgba(0,0,0,.3);
}
.footer-legal {
    font-size: 12px;
    color: rgba(255,255,255,.35);
    transition: .2s;
}
.footer-legal:hover { color: var(--red-400); }

/* ── Back to Top ────────────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 44px; height: 44px;
    background: var(--red-600);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: grid; place-items: center;
    font-size: 16px;
    box-shadow: var(--shadow-red);
    opacity: 0;
    transform: translateY(20px);
    transition: all .3s;
    z-index: 999;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--red-700); transform: translateY(-3px); }

/* ── Pagination ─────────────────────────────────────────── */
.pagination .page-link {
    color: var(--dark-900);
    border-color: var(--gray-200);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 13px;
    padding: 8px 14px;
}
.pagination .page-item.active .page-link {
    background: var(--red-600);
    border-color: var(--red-600);
}
.pagination .page-link:hover {
    background: var(--red-50);
    color: var(--red-600);
    border-color: var(--red-300);
}

/* ── Page Header ────────────────────────────────────────── */
.page-header {
    background: var(--dark-950);
    padding: 40px 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.page-header-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: white;
}
.breadcrumb-item, .breadcrumb-item a {
    color: rgba(255,255,255,.45);
    font-size: 13px;
}
.breadcrumb-item.active { color: rgba(255,255,255,.7); }
.breadcrumb-divider { color: rgba(255,255,255,.2); }

/* ── Utility ─────────────────────────────────────────────── */
.text-red     { color: var(--red-600) !important; }
.bg-dark-950  { background: var(--dark-950) !important; }
.rounded-xl   { border-radius: var(--radius-xl) !important; }

.badge-red {
    background: var(--red-100);
    color: var(--red-700);
    font-family: var(--font-display);
    font-weight: 700;
}

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-fadeInUp { animation: fadeInUp .6s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .admin-sidebar { transform: translateX(-100%); transition: .3s; }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .hero-stats { gap: 20px; }
    .hero-stat-value { font-size: 1.4rem; }
}

@media (max-width: 767.98px) {
    .hero-section { padding: 60px 0 40px; }
    .auth-card { padding: 32px 24px; }
    .hero-preview-card { margin-top: 32px; }
    .search-form { display: none !important; }
}

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--red-400); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--red-600); }

/* ===== DASHBOARD LAYOUT ===== */
.dashboard-wrapper {
  display: flex;
  min-height: calc(100vh - 70px);
  margin-top: 70px;
}

.dashboard-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--dark-900);
  padding: 2rem 0;
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
}

.dashboard-main {
  flex: 1;
  padding: 2.5rem;
  min-width: 0;
}

.sidebar-user {
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar-lg {
  width: 44px;
  height: 44px;
  background: var(--red-600);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.user-avatar-sm {
  width: 32px;
  height: 32px;
  background: var(--red-600);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.sidebar-user .user-info h6 {
  color: white;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.sidebar-user .user-info small {
  color: rgba(255,255,255,0.4);
  font-size: 0.72rem;
}

.sidebar-nav {
  padding: 0 0.75rem;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.1rem;
  transition: all 0.2s;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
  color: white;
  background: rgba(255,255,255,0.07);
}

.sidebar-nav .nav-link.active {
  color: white;
  background: rgba(220,38,38,0.25);
  border-left: 3px solid var(--red-600);
}

.sidebar-nav .nav-link.text-danger {
  color: #f87171 !important;
}

/* Dashboard header */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.dashboard-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--dark-950);
  margin: 0 0 0.25rem;
}

/* Stat cards */
.stat-card {
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.stat-red { background: var(--red-600); color: white; }
.stat-dark { background: var(--dark-900); color: white; }

.stat-icon {
  font-size: 1.5rem;
  opacity: 0.7;
  margin-bottom: 0.75rem;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Section cards */
.section-card {
  background: white;
  border-radius: 16px;
  border: 1px solid #f0f0f0;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.section-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.section-card-header h5 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark-950);
}

.section-card > .table-responsive { margin: 0; }
.section-card .table { margin: 0; }
.section-card .table th { padding-left: 1.5rem; background: #fafafa; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: #999; }
.section-card .table td { padding-left: 1.5rem; }

/* Download card */
.download-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 0.875rem;
}

.download-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.download-thumb img { width: 100%; height: 100%; object-fit: cover; }

.download-thumb-placeholder {
  width: 44px;
  height: 44px;
  background: var(--red-50);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-400);
  font-size: 1.2rem;
}

.download-info { flex: 1; min-width: 0; }
.download-info h6 { font-size: 0.82rem; font-weight: 600; margin: 0 0 0.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Order items */
.order-item-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f5f5f5;
}

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

.order-item-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.order-item-placeholder {
  width: 52px;
  height: 52px;
  background: #f5f5f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 1.4rem;
}

.order-item-info { flex: 1; }
.order-item-price { font-weight: 700; font-size: 1rem; white-space: nowrap; }

/* Summary rows */
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 1.5rem;
  font-size: 0.9rem;
}

/* Empty state */
.empty-state { padding: 3rem; }

/* ===== ADMIN STYLES ===== */
.admin-body { background: #f4f5f7; }

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #0f0f0f;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 0.5rem;
}

.brand-logo {
  width: 34px;
  height: 34px;
  background: var(--red-600);
  color: white;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.02em;
}

.brand-text {
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
}

.admin-nav { padding: 0.5rem 0.75rem 2rem; }

.nav-section-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.2);
  padding: 0.5rem 0.75rem 0.25rem;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  margin-bottom: 0.05rem;
  transition: all 0.2s;
}

.admin-nav-link i { font-size: 0.95rem; }

.admin-nav-link:hover { color: white; background: rgba(255,255,255,0.06); }

.admin-nav-link.active {
  color: white;
  background: rgba(220,38,38,0.2);
  border-left: 2px solid var(--red-600);
}

.admin-content {
  flex: 1;
  margin-left: 240px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.admin-topbar {
  background: white;
  border-bottom: 1px solid #e9ecef;
  padding: 0.875rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-page-content {
  padding: 2rem 1.5rem;
  flex: 1;
}

.admin-card {
  background: white;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.admin-card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
}

.admin-card-body { padding: 1.25rem; }

.admin-card-footer {
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
}

.admin-product-thumb {
  width: 36px;
  height: 36px;
  background: #f5f5f5;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* Review admin row */
.review-admin-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f5f5f5;
}

.review-admin-row:last-child { border-bottom: none; }
.review-admin-meta { flex-shrink: 0; display: flex; align-items: center; gap: 0.5rem; min-width: 160px; }
.review-admin-actions { flex-shrink: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .dashboard-sidebar { display: none; }
  .dashboard-main { padding: 1.5rem; }
  .admin-sidebar { transform: translateX(-100%); transition: transform 0.3s; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-content { margin-left: 0; }
}

@media (max-width: 767px) {
  .dashboard-header { flex-direction: column; gap: 1rem; }
  .order-item-row { flex-wrap: wrap; }
}

/* ===== PREVIEW MODAL ===== */
.preview-modal-content {
  background: #111;
  border: none;
  border-radius: 16px;
  overflow: hidden;
}

.preview-modal-header {
  background: #0a0a0a;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 1.5rem;
}

.preview-modal-header .modal-title { color: white; font-weight: 700; }

.preview-modal-body { background: #0d0d0d; }

.preview-credentials {
  background: rgba(220,38,38,0.1);
  border-bottom: 1px solid rgba(220,38,38,0.2);
  padding: 0.6rem 1.25rem;
}

.demo-creds-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
}

.demo-creds-row code {
  background: rgba(255,255,255,0.1);
  color: #f87171;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

.demo-creds-row .cred-label {
  color: rgba(255,255,255,0.4);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.preview-iframe-wrapper {
  height: 75vh;
  background: white;
}

.preview-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== PRODUCT IMG PLACEHOLDER ===== */
.product-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(220,38,38,0.3);
}

/* ===== MISC FIXES ===== */
.text-decoration-line-through { text-decoration: line-through; }

.admin-body .table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #888;
  font-weight: 600;
  background: #fafafa;
}

/* Red button aliases used in order-success */
.btn-primary-red {
  background: var(--red-600);
  color: white;
  border: none;
}
.btn-primary-red:hover { background: var(--red-700); color: white; }

.btn-outline-red {
  border: 2px solid var(--red-600);
  color: var(--red-600);
  background: transparent;
}
.btn-outline-red:hover { background: var(--red-600); color: white; }

/* Toast slide-in animation */
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

/* Demo creds bar inside preview modal */
.demo-creds-bar { background: rgba(0,0,0,.5); border-bottom: 1px solid rgba(255,255,255,.08); font-size:0.85rem; }
.cred-pill { display:inline-flex; align-items:center; gap:6px; background:rgba(255,255,255,.08); border-radius:6px; padding:3px 10px; }
.cred-label { font-size:0.65rem; text-transform:uppercase; letter-spacing:.06em; color:rgba(255,255,255,.45); }
.cred-pill code { color:#fff; font-size:0.82rem; background:none; padding:0; }

/* ===== HERO APP MOCKUP ===== */
.hero-app-mockup {
  position: relative;
  width: 100%;
  background: #0f0f0f;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  line-height: 0;
  min-height: 320px;
}

.hero-app-mockup svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
}

/* Remove old iframe styles that no longer apply */
.hero-preview-iframe { display: none; }

/* Floating overlay badges */
.mockup-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15,15,15,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 40px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: white;
  font-family: 'Syne', sans-serif;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  pointer-events: none;
  animation: badgeFloat 3s ease-in-out infinite;
}

.mockup-badge-1 {
  bottom: 22%;
  left: -8px;
  animation-delay: 0s;
}

.mockup-badge-2 {
  top: 18%;
  right: -8px;
  animation-delay: 1.5s;
}

.badge-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.badge-dot.bg-success {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.25);
  animation: pulse 2s ease-in-out infinite;
}

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

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.25); }
  50%       { box-shadow: 0 0 0 6px rgba(34,197,94,0.1); }
}

/* =====================================================
   FLOATING WHATSAPP + LIVE CHAT WIDGETS
   ===================================================== */

/* ── WhatsApp bubble ─────────────────────────────────── */
.float-wa {
  position: fixed;
  bottom: 90px;
  right: 28px;
  width: 52px;
  height: 52px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 1050;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: transform .25s, box-shadow .25s, bottom .35s cubic-bezier(.4,0,.2,1);
  animation: waPulse 2.5s ease-in-out infinite;
}

.float-wa:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37,211,102,.55);
  color: white;
}

.float-wa.wa-shifted { bottom: 440px; }

@keyframes waPulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.4); }
  50%      { box-shadow: 0 4px 20px rgba(37,211,102,.45), 0 0 0 10px rgba(37,211,102,0); }
}

.float-wa-tooltip {
  position: absolute;
  right: 62px;
  white-space: nowrap;
  background: rgba(10,10,10,.9);
  color: white;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Syne', sans-serif;
  padding: 5px 12px;
  border-radius: 20px;
  pointer-events: none;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity .2s, transform .2s;
}

.float-wa:hover .float-wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ── Live Chat Launcher Button ───────────────────────── */
.float-chat {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 1051;
  box-shadow: 0 4px 20px rgba(220,38,38,.45);
  transition: transform .25s, box-shadow .25s;
}

.float-chat:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(220,38,38,.55);
}

.float-chat.active {
  background: linear-gradient(135deg, #1a1a1a, #333);
}

.float-chat-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 18px;
  height: 18px;
  background: #22c55e;
  color: white;
  font-size: 10px;
  font-weight: 800;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  font-family: 'Syne', sans-serif;
  animation: badgePop .3s cubic-bezier(.175,.885,.32,1.275);
}

@keyframes badgePop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

/* ── Live Chat Panel ─────────────────────────────────── */
.live-chat-panel {
  position: fixed;
  bottom: 92px;
  right: 28px;
  width: 340px;
  max-height: 520px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.05);
  display: flex;
  flex-direction: column;
  z-index: 1050;
  overflow: hidden;
  transform: scale(.85) translateY(20px);
  transform-origin: bottom right;
  opacity: 0;
  pointer-events: none;
  transition: transform .3s cubic-bezier(.175,.885,.32,1.275), opacity .3s;
}

.live-chat-panel.active {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Panel header */
.chat-panel-header {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.chat-panel-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-brand-avatar {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
  color: white;
  font-family: 'Syne', sans-serif;
  border: 2px solid rgba(255,255,255,.3);
}

.chat-brand-name {
  color: white;
  font-weight: 700;
  font-size: 14px;
  font-family: 'Syne', sans-serif;
}

.chat-brand-status {
  color: rgba(255,255,255,.8);
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-online-dot {
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
  display: inline-block;
  animation: chatPulse 2s ease-in-out infinite;
}

@keyframes chatPulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .5; }
}

.chat-panel-close {
  background: rgba(255,255,255,.15);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: background .2s;
  flex-shrink: 0;
}
.chat-panel-close:hover { background: rgba(255,255,255,.28); }

/* Panel body (messages) */
.chat-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8f8f8;
  scroll-behavior: smooth;
}

.chat-panel-body::-webkit-scrollbar { width: 4px; }
.chat-panel-body::-webkit-scrollbar-track { background: transparent; }
.chat-panel-body::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

/* Messages */
.chat-msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  animation: msgFadeIn .25s ease;
}

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

.chat-msg-user {
  flex-direction: row-reverse;
}

.chat-msg-avatar {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #dc2626, #991b1b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 900;
  color: white;
  font-family: 'Syne', sans-serif;
  flex-shrink: 0;
}

.chat-msg-bubble {
  max-width: 78%;
  padding: 10px 13px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: #1a1a1a;
}

.chat-msg-bot .chat-msg-bubble {
  background: white;
  border-radius: 4px 16px 16px 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.chat-msg-user .chat-msg-bubble {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
  border-radius: 16px 4px 16px 16px;
}

.chat-msg-time {
  font-size: 10px;
  opacity: .5;
  margin-top: 4px;
}

/* Quick reply chips */
.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-left: 36px;
}

.chat-chip {
  background: white;
  border: 1.5px solid #e5e5e5;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: all .18s;
  font-family: 'Syne', sans-serif;
  white-space: nowrap;
}

.chat-chip:hover {
  border-color: #dc2626;
  color: #dc2626;
  background: #fff5f5;
  transform: translateY(-1px);
}

/* Typing indicator */
.chat-typing {
  background: white;
  border-radius: 4px 16px 16px 16px;
  padding: 12px 16px;
  display: flex;
  gap: 4px;
  align-items: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.chat-typing span {
  width: 6px;
  height: 6px;
  background: #ccc;
  border-radius: 50%;
  animation: typingDot 1.2s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }

@keyframes typingDot {
  0%,80%,100% { transform: translateY(0);  background: #ccc; }
  40%          { transform: translateY(-5px); background: #dc2626; }
}

/* Panel footer */
.chat-panel-footer {
  border-top: 1px solid #f0f0f0;
  padding: 10px 12px 12px;
  background: white;
  flex-shrink: 0;
}

.chat-input-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-input {
  flex: 1;
  border: 1.5px solid #e9e9e9;
  border-radius: 22px;
  padding: 9px 16px;
  font-size: 13px;
  outline: none;
  background: #f8f8f8;
  transition: border-color .2s, background .2s;
  font-family: 'DM Sans', sans-serif;
}

.chat-input:focus {
  border-color: #dc2626;
  background: white;
}

.chat-send-btn {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
  transition: transform .2s, box-shadow .2s;
}

.chat-send-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(220,38,38,.4);
}

.chat-footer-links {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  justify-content: center;
}

.chat-footer-links a {
  font-size: 11px;
  color: #888;
  text-decoration: none;
  font-weight: 600;
  transition: color .15s;
  display: flex;
  align-items: center;
}

.chat-footer-links a:hover { color: #dc2626; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 480px) {
  .live-chat-panel {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 84px;
  }
  .float-chat { right: 16px; bottom: 16px; }
  .float-wa   { right: 16px; bottom: 78px; }
  .float-wa.wa-shifted { bottom: 420px; }
  .back-to-top { right: 74px; bottom: 20px; }
}
