/* ============================================================
   ShubhoBibaho — Professional Style Sheet
   Color Palette:
     Primary (Deep Crimson)  : #9B1B30
     Primary Dark            : #6B0F1F
     Accent Gold             : #C8973A
     Gold Light              : #F0DEB5
     Surface                 : #FFF8F5
     Text Dark               : #1A1A2E
   ============================================================ */

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

body {
    font-family: 'Inter', 'Hind Siliguri', sans-serif;
    background-color: #FFF8F5;
    color: #1A1A2E;
}

/* ── Global Background Image ──────────────── */
body.bg-global {
    position: relative;
    background-color: #3a0a10; /* Dark fallback */
}
body.bg-global::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('../Bg-img/Global-bg.png');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    opacity: 0.65; /* 65% visibility */
    z-index: -1;
    pointer-events: none;
}

@media (max-width: 768px) {
    body.bg-global::before {
        background-position: center center; /* Better crop for mobile */
    }
}

/* ── Scrollbar ──────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(#9B1B30, #C8973A);
    border-radius: 3px;
}

/* ── Navbar ─────────────────────────────── */
/* Main site navbar only */
nav:not(.admin-sidebar nav):not(.nav-transparent) {
    background: rgba(255, 248, 245, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(155, 27, 48, 0.12);
    box-shadow: 0 2px 20px rgba(155, 27, 48, 0.08) !important;
}

/* Luxury Transparent Nav */
nav.nav-transparent {
    background: transparent !important;
    backdrop-filter: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* ── Hero section ───────────────────────── */
.hero-section {
    background-color: #3a0a10; /* fallback */
    background-image: url('../Bg-img/Mobile.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.5s ease;
}

@media (min-width: 768px) {
    .hero-section {
        background-image: url('../Bg-img/Desktop.png');
    }
}

.hero-overlay {
    background: linear-gradient(
        180deg,
        rgba(10, 10, 15, 0.45) 0%,
        rgba(27, 6, 10, 0.65) 50%,
        rgba(15, 5, 10, 0.85) 100%
    );
}

/* ── Hero typography fixes ──────────────── */
section.relative.h-screen h1 {
    text-shadow: 0 2px 20px rgba(0,0,0,0.6), 0 0 60px rgba(0,0,0,0.4);
}
section.relative.h-screen p {
    text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

/* ── Premium Button ─────────────────────── */
.btn-premium {
    background: linear-gradient(135deg, #9B1B30 0%, #6B0F1F 50%, #9B1B30 100%);
    background-size: 200% auto;
    border: 1px solid rgba(200, 151, 58, 0.3);
    transition: all 0.35s ease;
    box-shadow: 0 4px 20px rgba(155, 27, 48, 0.45);
    letter-spacing: 0.02em;
}
.btn-premium:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(155, 27, 48, 0.55);
    border-color: rgba(200, 151, 58, 0.6);
}
.btn-premium:active {
    transform: translateY(-1px);
}

/* ── Ghost Buttons ──────────────────────── */
.btn-ghost-white {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: #ffffff;
    transition: all 0.3s ease;
}
.btn-ghost-white:hover {
    background: #ffffff;
    color: #1A1A2E !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* ── Section headings gold underline ────── */
h2.font-display::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, #C8973A, #9B1B30);
    border-radius: 2px;
    margin: 10px auto 0;
}
h2.font-display.text-left::after {
    margin-left: 0;
}

/* ── How-It-Works step ring ─────────────── */
.step-ring {
    background: linear-gradient(135deg, #9B1B30 0%, #C8973A 100%);
    width: 4rem; height: 4rem;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; font-weight: 700; color: #fff;
    box-shadow: 0 6px 18px rgba(155, 27, 48, 0.40);
    transition: transform 0.3s;
}
.group:hover .step-ring {
    transform: scale(1.1) rotate(-5deg);
}

/* ── Why-Us icon circles ─────────────────  */
li .w-10.h-10.rounded-full {
    background: linear-gradient(135deg, rgba(155,27,48,0.12), rgba(200,151,58,0.12)) !important;
    border: 1px solid rgba(155,27,48,0.15);
    transition: background 0.3s, border-color 0.3s;
}
li:hover .w-10.h-10.rounded-full {
    background: linear-gradient(135deg, rgba(155,27,48,0.22), rgba(200,151,58,0.18)) !important;
    border-color: rgba(155,27,48,0.3);
}

/* ── Stats block ────────────────────────── */
.grid .bg-white.rounded-2xl.shadow.p-6 {
    background: linear-gradient(135deg, #fff 0%, #FFF0E8 100%) !important;
    border: 1px solid rgba(155,27,48,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}
.grid .bg-white.rounded-2xl.shadow.p-6:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(155,27,48,0.15) !important;
}

/* ── Plan cards ─────────────────────────── */
.plan-card {
    border: 1px solid rgba(155,27,48,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    background: #fff;
}
.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(155,27,48,0.15);
}
.plan-diamond {
    border: 2px solid #9B1B30 !important;
    background: linear-gradient(160deg, #fff 0%, #FFF5F5 100%);
    box-shadow: 0 8px 32px rgba(155,27,48,0.18) !important;
}

/* ── Testimonial cards ──────────────────── */
.bg-white.rounded-2xl.p-6.shadow.text-left {
    border: 1px solid rgba(200,151,58,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}
.bg-white.rounded-2xl.p-6.shadow.text-left:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(155,27,48,0.12) !important;
    border-color: rgba(200,151,58,0.35);
}

/* ── CTA section ────────────────────────── */
section.py-16.bg-gradient-to-r {
    background: linear-gradient(135deg, #6B0F1F 0%, #9B1B30 40%, #B5451B 100%) !important;
    position: relative;
    overflow: hidden;
}
section.py-16.bg-gradient-to-r::before {
    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.03'%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");
    pointer-events: none;
}

/* ── Why-Us section background ──────────── */
section.py-16.bg-gradient-to-br {
    background: linear-gradient(135deg, #FFF5F0 0%, #FFF0E5 50%, #FFF8EE 100%) !important;
}

/* ── Trust badge pills ──────────────────── */
.flex.flex-wrap.justify-center.gap-6 span {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(4px);
    padding: 6px 16px;
    border-radius: 99px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: background 0.3s;
}
.flex.flex-wrap.justify-center.gap-6 span:hover {
    background: rgba(255,255,255,0.22);
}

/* ── Bengali text highlight ─────────────── */
.font-bengali.text-gold-light {
    color: #F0DEB5 !important;
    text-shadow: 0 0 30px rgba(200,151,58,0.5);
    letter-spacing: 0.04em;
}

/* ── Primary colour overrides ───────────── */
.text-primary    { color: #9B1B30 !important; }
.bg-primary      { background-color: #9B1B30 !important; }
.border-primary  { border-color: #9B1B30 !important; }
.ring-primary    { --tw-ring-color: #9B1B30 !important; }
.bg-primary\/10  { background-color: rgba(155,27,48,0.10) !important; }
.hover\:text-primary:hover { color: #9B1B30 !important; }
.hover\:bg-red-50:hover { background-color: rgba(155,27,48,0.06) !important; }

/* ── Hover-state CTA ────────────────────── */
.bg-white.text-primary:hover {
    background: linear-gradient(135deg, #FFF0E8, #fff) !important;
    color: #6B0F1F !important;
}

/* ── How-it-works connector line ────────── */
section#how-it-works { background: #fff; }

/* ── Gold accent for prices ─────────────── */
.text-4xl.font-bold.text-gray-900 {
    color: #1A1A2E;
}

/* ── Input focus glow ───────────────────── */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #9B1B30;
    box-shadow: 0 0 0 3px rgba(155, 27, 48, 0.15);
}

/* ── Multi-step form ───────────────────── */
.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn 0.35s ease; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
}

.step-indicator .step-dot {
    width: 2rem; height: 2rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 700;
    transition: all 0.3s;
}
.step-dot.done    { background: #27ae60; color: #fff; }
.step-dot.active  { background: #9B1B30; color: #fff; box-shadow: 0 0 0 4px rgba(155,27,48,0.25); }
.step-dot.pending { background: #e5e7eb; color: #6b7280; }

/* ── Chat widget ───────────────────────── */
#chat-bubble { position: fixed; bottom: 28px; right: 28px; z-index: 1000; }
#chat-window {
    display: none;
    width: 340px; height: 460px;
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    flex-direction: column;
}
#chat-messages {
    flex: 1; overflow-y: auto; padding: 1rem;
    display: flex; flex-direction: column; gap: 8px;
    background: #fdf6f0;
}
.msg-user  { align-self: flex-end;  background: #9B1B30; color: #fff; border-radius: 16px 16px 4px 16px;  padding: 8px 14px; max-width: 75%; font-size: 0.85rem; }
.msg-admin { align-self: flex-start; background: #fff;   color: #222; border-radius: 16px 16px 16px 4px; padding: 8px 14px; max-width: 75%; font-size: 0.85rem; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.msg-time  { font-size: 0.65rem; opacity: 0.55; margin-top: 2px; }

/* ── Match card ────────────────────────── */
.match-card { transition: transform 0.25s, box-shadow 0.25s; }
.match-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.1); }

/* ── Admin sidebar ─────────────────────── */
#admin-sidebar { min-height: 100vh; }
.nav-link-admin {
    display: flex; align-items: center; gap: 10px; padding: 10px 16px;
    border-radius: 8px; color: #cbd5e1; font-size: 0.9rem;
    transition: background 0.2s, color 0.2s; text-decoration: none;
}
.nav-link-admin:hover, .nav-link-admin.active {
    background: rgba(155,27,48,0.25); color: #fff;
}

/* ── Print ─────────────────────────────── */
@media print {
    .no-print  { display: none !important; }
    body       { background: #fff; }
}

/* ── Page load fade-in ──────────────────── */
body { animation: pageIn 0.4s ease; }
@keyframes pageIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
