/* ==========================================================
   URBANaire Matrimony - Global Stylesheet
   Brand Colors : Royal Blue #0A3D91 | Gold #D4AF37
                  White #FFFFFF | Charcoal Black #222222
   Typography   : Playfair Display (Headings) | Poppins (Body)
   ========================================================== */

:root {
    --royal-blue: #0A3D91;
    --royal-blue-dark: #072B68;
    --royal-blue-light: #EAF0FA;
    --gold: #D4AF37;
    --gold-dark: #B8952B;
    --gold-light: #FBF5E2;
    --white: #FFFFFF;
    --charcoal: #222222;
    --grey: #6B7280;
    --grey-light: #F6F7FB;
    --border: #E5E9F2;
    --shadow: 0 10px 30px rgba(10, 61, 145, 0.10);
    --shadow-lg: 0 20px 50px rgba(10, 61, 145, 0.18);
    --radius: 14px;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    background: var(--white);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--charcoal);
    line-height: 1.3;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 90px 0;
}

/* ---------- Section Headings ---------- */
.section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 55px;
}

.section-head .eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 12px;
}

.section-head .eyebrow::before,
.section-head .eyebrow::after {
    content: "";
    display: inline-block;
    width: 28px;
    height: 1px;
    background: var(--gold);
    vertical-align: middle;
    margin: 0 12px;
}

.section-head h2 {
    font-size: 40px;
    color: var(--royal-blue);
    margin-bottom: 15px;
}

.section-head p {
    color: var(--grey);
    font-size: 16px;
}

.section-head.light h2 { color: var(--white); }
.section-head.light p  { color: rgba(255, 255, 255, 0.8); }
.section-head.light .eyebrow { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 14px 34px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.35s ease;
    text-align: center;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.35);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(212, 175, 55, 0.5);
    color: var(--white);
}

.btn-blue {
    background: var(--royal-blue);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(10, 61, 145, 0.3);
}

.btn-blue:hover {
    background: var(--royal-blue-dark);
    transform: translateY(-3px);
    color: var(--white);
}

.btn-outline-white {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--royal-blue);
}

.btn-outline-blue {
    background: transparent;
    border-color: var(--royal-blue);
    color: var(--royal-blue);
}

.btn-outline-blue:hover {
    background: var(--royal-blue);
    color: var(--white);
}

/* ==========================================================
   NAVBAR
   ========================================================== */
.top-bar {
    background: var(--royal-blue-dark);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.top-bar a { color: rgba(255, 255, 255, 0.85); }
.top-bar a:hover { color: var(--gold); }
.top-bar i { color: var(--gold); margin-right: 6px; }
.top-bar .top-contact { display: flex; gap: 22px; flex-wrap: wrap; }
.top-bar .top-tagline i { margin-left: 0; }

.navbar {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1300; /* must sit above .nav-overlay (1250): .navbar creates a stacking context, so .nav-menu cannot escape it */
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 25px rgba(10, 61, 145, 0.15);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo img {
    height: 52px;
    width: auto;
}

.nav-logo .logo-text {
    font-family: var(--font-heading);
    line-height: 1.1;
}

.nav-logo .logo-text strong {
    display: block;
    font-size: 20px;
    color: var(--royal-blue);
    letter-spacing: 0.5px;
}

.nav-logo .logo-text span {
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-dark);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-menu li a {
    display: block;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--charcoal);
    border-radius: 8px;
    position: relative;
}

.nav-menu li a::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 4px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-menu li a:hover { color: var(--royal-blue); }
.nav-menu li a:hover::after { transform: scaleX(1); }

.nav-menu li a.active {
    color: var(--royal-blue);
    font-weight: 600;
}

.nav-menu li a.active::after { transform: scaleX(1); }

.nav-cta { margin-left: 14px; }

.nav-cta .btn {
    padding: 11px 26px;
    font-size: 14px;
}

.hamburger {
    display: none;
    font-size: 26px;
    color: var(--royal-blue);
    background: none;
    border: none;
    cursor: pointer;
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    padding: 120px 0;
    background:
        linear-gradient(105deg, rgba(7, 30, 65, 0.92) 0%, rgba(10, 61, 145, 0.82) 45%, rgba(10, 61, 145, 0.35) 100%),
        url('https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
}

.hero-content {
    max-width: 640px;
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: var(--gold);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 58px;
    color: var(--white);
    margin-bottom: 20px;
}

.hero h1 span { color: var(--gold); font-style: italic; }

.hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 35px;
    max-width: 540px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 45px;
}

.hero-trust {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.hero-trust .trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.hero-trust .trust-item i { color: var(--gold); font-size: 16px; }

/* ==========================================================
   STATS BAND
   ========================================================== */
.stats-band {
    background: var(--royal-blue);
    padding: 0;
    position: relative;
    z-index: 5;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.stat-item {
    padding: 42px 20px;
    color: var(--white);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item:last-child { border-right: none; }

.stat-item h3 {
    font-size: 40px;
    color: var(--gold);
    margin-bottom: 4px;
}

.stat-item p {
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================
   PAGE HERO (Inner Pages)
   ========================================================== */
.page-hero {
    position: relative;
    padding: 110px 0;
    text-align: center;
    color: var(--white);
    background:
        linear-gradient(rgba(7, 30, 65, 0.85), rgba(10, 61, 145, 0.8)),
        url('https://images.unsplash.com/photo-1606216794074-735e91aa2c92?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
}

.page-hero h1 {
    font-size: 48px;
    color: var(--white);
    margin-bottom: 12px;
}

.page-hero .breadcrumb {
    font-size: 14px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.85);
}

.page-hero .breadcrumb a:hover { color: var(--gold); }
.page-hero .breadcrumb span { color: var(--gold); margin: 0 8px; }

/* ==========================================================
   ABOUT / SPLIT SECTIONS
   ========================================================== */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-img {
    position: relative;
}

.split-img img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.split-img .img-accent {
    position: absolute;
    bottom: -24px;
    right: -24px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    padding: 24px 28px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.split-img .img-accent strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 30px;
    line-height: 1.2;
}

.split-img .img-accent small {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.split-text .eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 12px;
}

.split-text h2 {
    font-size: 38px;
    color: var(--royal-blue);
    margin-bottom: 20px;
}

.split-text p {
    color: var(--grey);
    margin-bottom: 18px;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-weight: 500;
    color: var(--charcoal);
}

.check-list li i {
    color: var(--gold-dark);
    margin-top: 5px;
}

.split-text .btn { margin-top: 15px; }

/* ---------- Vision / Mission Cards ---------- */
.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.vm-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 4px solid var(--gold);
    border-radius: var(--radius);
    padding: 45px 38px;
    box-shadow: var(--shadow);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.vm-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.vm-card .vm-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--royal-blue-light);
    color: var(--royal-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 22px;
}

.vm-card h3 {
    font-size: 26px;
    color: var(--royal-blue);
    margin-bottom: 12px;
}

.vm-card p { color: var(--grey); }

/* ---------- Values Grid ---------- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.value-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    padding: 36px 20px;
    transition: all 0.35s ease;
}

.value-card:hover {
    border-color: var(--gold);
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.value-card i {
    font-size: 30px;
    color: var(--gold-dark);
    margin-bottom: 16px;
    display: inline-block;
}

.value-card h4 {
    font-size: 17px;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--charcoal);
}

/* ---------- Audience Chips ---------- */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.audience-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
    padding: 30px 14px;
    transition: all 0.35s ease;
}

.audience-card:hover {
    background: var(--royal-blue);
    transform: translateY(-6px);
}

.audience-card:hover h4,
.audience-card:hover i { color: var(--white); }

.audience-card i {
    font-size: 28px;
    color: var(--royal-blue);
    margin-bottom: 14px;
    display: inline-block;
    transition: color 0.35s ease;
}

.audience-card h4 {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.35s ease;
}

/* ==========================================================
   SERVICES
   ========================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 38px 28px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--royal-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before { transform: scaleX(1); }

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-card .service-icon {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    background: var(--gold-light);
    color: var(--gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 22px;
    transition: all 0.35s ease;
}

.service-card:hover .service-icon {
    background: var(--royal-blue);
    color: var(--white);
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--charcoal);
}

.service-card p {
    font-size: 14.5px;
    color: var(--grey);
}

/* ---------- How It Works ---------- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

.step-card {
    text-align: center;
    padding: 20px;
    position: relative;
}

.step-card .step-num {
    width: 84px;
    height: 84px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: var(--white);
    border: 2px dashed var(--gold);
    color: var(--royal-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    position: relative;
    transition: all 0.35s ease;
}

.step-card:hover .step-num {
    background: var(--royal-blue);
    color: var(--gold);
    border-style: solid;
}

.step-card .step-num::after {
    content: attr(data-step);
    position: absolute;
    top: -6px;
    right: -6px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 14.5px;
    color: var(--grey);
}

/* ==========================================================
   MEMBERSHIP PLANS
   ========================================================== */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.single-plan-wrap {
    max-width: 440px;
    margin: 0 auto;
}

.plan-price {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    color: var(--royal-blue);
    margin-bottom: 6px;
}

.plan-currency {
    font-size: 30px;
    font-weight: 600;
    vertical-align: super;
    margin-right: 2px;
}

.plan-note {
    font-size: 12.5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 4px;
}

.plan-card.featured .plan-price { color: var(--gold); }
.plan-card.featured .plan-note { color: rgba(255, 255, 255, 0.7); }

/* ---------- Membership Split (info left / plan right) ---------- */
.membership-split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 55px;
    align-items: center;
}

.membership-info .eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 12px;
}

.membership-info h2 {
    font-size: 38px;
    color: var(--royal-blue);
    margin-bottom: 20px;
}

.membership-info > p {
    color: var(--grey);
    margin-bottom: 16px;
}

.what-you-get {
    margin-top: 30px;
    background: var(--grey-light);
    border: 1px solid var(--border);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    padding: 28px 30px;
}

.what-you-get h3 {
    font-size: 20px;
    color: var(--royal-blue);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.what-you-get h3 i { color: var(--gold-dark); }
.what-you-get .check-list li { margin-bottom: 12px; }
.what-you-get .check-list li:last-child { margin-bottom: 0; }

.membership-plan {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.plan-trust {
    margin-top: 18px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.plan-trust i { color: var(--gold); }

.plan-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 46px 36px;
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.plan-card .plan-tier {
    width: 76px;
    height: 76px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.plan-card.silver .plan-tier { background: #F1F3F6; color: #8A93A3; }
.plan-card.gold .plan-tier { background: var(--gold-light); color: var(--gold-dark); }
.plan-card.platinum .plan-tier { background: var(--royal-blue-light); color: var(--royal-blue); }

.plan-card h3 {
    font-size: 28px;
    margin-bottom: 6px;
}

.plan-card .plan-sub {
    font-size: 13.5px;
    color: var(--grey);
    margin-bottom: 24px;
}

.plan-card .plan-divider {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 0 auto 26px;
}

.plan-card ul {
    text-align: left;
    margin-bottom: 32px;
    flex-grow: 1;
}

.plan-card ul li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.plan-card ul li:last-child { border-bottom: none; }

.plan-card ul li i {
    color: var(--gold-dark);
    font-size: 14px;
}

.plan-card.featured {
    background: linear-gradient(160deg, var(--royal-blue) 0%, var(--royal-blue-dark) 100%);
    border: none;
    transform: scale(1.04);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.plan-card.featured:hover { transform: scale(1.04) translateY(-10px); }

.plan-card.featured h3,
.plan-card.featured ul li { color: var(--white); }

.plan-card.featured .plan-sub { color: rgba(255, 255, 255, 0.75); }
.plan-card.featured ul li { border-color: rgba(255, 255, 255, 0.15); }
.plan-card.featured ul li i { color: var(--gold); }

.plan-card .ribbon {
    position: absolute;
    top: 20px;
    right: -34px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 7px 44px;
    transform: rotate(45deg);
}

/* ---------- Comparison Table ---------- */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    min-width: 700px;
}

.compare-table th,
.compare-table td {
    padding: 18px 22px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}

.compare-table th {
    background: var(--royal-blue);
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.compare-table th:first-child,
.compare-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.compare-table tr:nth-child(even) td { background: var(--grey-light); }

.compare-table .fa-check { color: #1E9E5A; }
.compare-table .fa-xmark { color: #C94F4F; }

/* ==========================================================
   SUCCESS STORIES
   ========================================================== */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.story-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
}

.story-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.story-card .story-img {
    height: 260px;
    overflow: hidden;
}

.story-card .story-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.story-card:hover .story-img img { transform: scale(1.08); }

.story-card .story-body {
    padding: 28px;
    text-align: center;
}

.story-card .story-body i.fa-quote-left {
    color: var(--gold);
    font-size: 22px;
    margin-bottom: 12px;
}

.story-card .story-body p {
    font-size: 14.5px;
    color: var(--grey);
    font-style: italic;
    margin-bottom: 16px;
}

.story-card .story-body h4 {
    color: var(--royal-blue);
    font-size: 18px;
}

.story-card .story-body small {
    color: var(--gold-dark);
    font-size: 12.5px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ==========================================================
   CTA BAND
   ========================================================== */
.cta-band {
    position: relative;
    padding: 100px 0;
    text-align: center;
    color: var(--white);
    background:
        linear-gradient(rgba(7, 30, 65, 0.88), rgba(10, 61, 145, 0.85)),
        url('https://images.pexels.com/photos/1616113/pexels-photo-1616113.jpeg?auto=compress&cs=tinysrgb&w=1600') center/cover no-repeat fixed;
}

.cta-band h2 {
    font-size: 42px;
    color: var(--white);
    max-width: 720px;
    margin: 0 auto 18px;
}

.cta-band h2 span { color: var(--gold); font-style: italic; }

.cta-band p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 35px;
}

/* ---------- Promise Strip ---------- */
.promise-strip {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    padding: 34px 0;
}

.promise-strip .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    text-align: center;
}

.promise-strip i {
    font-size: 30px;
    color: var(--white);
}

.promise-strip p {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--white);
    font-weight: 600;
}

/* ==========================================================
   FAQ ACCORDION
   ========================================================== */
.faq-wrap {
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item.open {
    box-shadow: var(--shadow);
    border-color: rgba(212, 175, 55, 0.5);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 26px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--charcoal);
    text-align: left;
}

.faq-item.open .faq-question { color: var(--royal-blue); }

.faq-question .faq-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gold-light);
    color: var(--gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.35s ease;
}

.faq-item.open .faq-icon {
    background: var(--royal-blue);
    color: var(--white);
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 26px 24px;
    color: var(--grey);
    font-size: 15px;
}

.faq-cat-title {
    font-size: 24px;
    color: var(--royal-blue);
    margin: 40px 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-cat-title:first-child { margin-top: 0; }
.faq-cat-title i { color: var(--gold-dark); font-size: 20px; }

/* ==========================================================
   CONTACT
   ========================================================== */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-bottom: 70px;
}

.contact-info-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    padding: 42px 26px;
    transition: all 0.35s ease;
}

.contact-info-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--gold);
}

.contact-info-card i {
    width: 64px;
    height: 64px;
    line-height: 64px;
    border-radius: 50%;
    background: var(--royal-blue-light);
    color: var(--royal-blue);
    font-size: 24px;
    margin-bottom: 18px;
    display: inline-block;
    text-align: center;
}

.contact-info-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.contact-info-card p, .contact-info-card a {
    color: var(--grey);
    font-size: 15px;
}

.contact-info-card a:hover { color: var(--royal-blue); }

.contact-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: stretch;
}

.contact-form-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 44px;
    box-shadow: var(--shadow);
}

.contact-form-box h3 {
    font-size: 28px;
    color: var(--royal-blue);
    margin-bottom: 8px;
}

.contact-form-box > p {
    color: var(--grey);
    font-size: 14.5px;
    margin-bottom: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 7px;
    color: var(--charcoal);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 14.5px;
    color: var(--charcoal);
    background-color: var(--grey-light);
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--royal-blue);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(10, 61, 145, 0.1);
}

/* Custom dropdown arrow - the native caret sits flush against the right
   border and its offset differs per browser, so we draw our own. */
.form-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 8px;
    padding-right: 42px;
    cursor: pointer;
}

.form-group select::-ms-expand { display: none; }

.form-group textarea { resize: vertical; min-height: 120px; }

.form-success {
    display: none;
    background: #E8F7EF;
    border: 1px solid #9ADBB8;
    color: #1E7A46;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14.5px;
    margin-bottom: 18px;
}

.contact-side {
    background:
        linear-gradient(rgba(7, 30, 65, 0.82), rgba(10, 61, 145, 0.85)),
        url('https://images.unsplash.com/photo-1537633552985-df8429e8048b?auto=format&fit=crop&w=900&q=80') center/cover no-repeat;
    border-radius: var(--radius);
    padding: 44px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-side h3 {
    font-size: 30px;
    color: var(--white);
    margin-bottom: 16px;
}

.contact-side p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
    font-size: 15px;
}

.contact-side .side-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    font-size: 15px;
}

.contact-side .side-item i {
    width: 44px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold);
    flex-shrink: 0;
}

.contact-side .side-item a:hover { color: var(--gold); }

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
    background: var(--royal-blue-dark);
    color: rgba(255, 255, 255, 0.78);
    padding-top: 80px;
    font-size: 14.5px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 46px;
    padding-bottom: 55px;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-brand .footer-logo img { height: 54px; }

.footer-brand .footer-logo .logo-text strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--white);
}

.footer-brand .footer-logo .logo-text span {
    font-size: 10.5px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
}

.footer-brand p { margin-bottom: 22px; }

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-size: 15px;
}

.footer-social a:hover {
    background: var(--gold);
    color: var(--royal-blue-dark);
    transform: translateY(-4px);
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 2px;
    background: var(--gold);
}

.footer-col ul li { margin-bottom: 12px; }

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.78);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-col ul li a i {
    font-size: 11px;
    color: var(--gold);
}

.footer-col ul li a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.footer-contact li i {
    color: var(--gold);
    margin-top: 5px;
}

.footer-contact li a:hover { color: var(--gold); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 22px 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13.5px;
}

.footer-bottom a { color: var(--gold); }
.footer-bottom .heart { color: #E25555; }

/* ==========================================================
   WHATSAPP CHATBOT WIDGET
   ========================================================== */
.chatbot {
    position: fixed;
    bottom: 26px;
    right: 26px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* The closed popup is visibility:hidden, which still reserves its box, so this
       container stays ~340px wide and ~400px tall even when only the round button
       shows. Without pointer-events:none it swallows every tap in that whole area -
       on a phone that is most of the lower screen, including form fields.
       The button and the open popup opt back in below. */
    pointer-events: none;
}

/* Floating trigger button */
.chatbot__trigger {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    border: none;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.chatbot__trigger:hover { transform: scale(1.08); }

/* Re-enable taps on the parts that are actually interactive. */
.chatbot__trigger { pointer-events: auto; }
.chatbot.is-open .chatbot__popup { pointer-events: auto; }

.chatbot__icon-open,
.chatbot__icon-close {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.chatbot__icon-close { opacity: 0; transform: rotate(-90deg) scale(0.4); }

.chatbot.is-open .chatbot__trigger { background: var(--gold-dark); }
.chatbot.is-open .chatbot__icon-open { opacity: 0; transform: rotate(90deg) scale(0.4); }
.chatbot.is-open .chatbot__icon-close { opacity: 1; transform: rotate(0) scale(1); }

/* Popup window */
.chatbot__popup {
    width: 340px;
    max-width: calc(100vw - 40px);
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    margin-bottom: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.96);
    transform-origin: bottom right;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.chatbot.is-open .chatbot__popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chatbot__header {
    background: linear-gradient(135deg, #128C7E, #075E54);
    color: var(--white);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.chatbot__header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.chatbot__name {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15.5px;
    color: var(--white);
    line-height: 1.3;
}

.chatbot__status {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 6px;
}

.chatbot__online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ADE80;
    display: inline-block;
}

.chatbot__close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.chatbot__close:hover { color: var(--white); }

.chatbot__body {
    padding: 22px 18px;
    background: #ECE5DD;
    min-height: 130px;
}

.chatbot__bubble {
    background: var(--white);
    border-radius: 0 12px 12px 12px;
    padding: 12px 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
    font-size: 14px;
    color: var(--charcoal);
    position: relative;
    max-width: 90%;
    animation: chatFade 0.35s ease;
}

.chatbot__bubble::before {
    content: "";
    position: absolute;
    top: 0;
    left: -8px;
    border: 8px solid transparent;
    border-top-color: var(--white);
    border-right-color: var(--white);
}

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

.chatbot__bubble p { margin-bottom: 6px; line-height: 1.55; }
.chatbot__bubble p:last-of-type { margin-bottom: 0; }

.chatbot__time {
    display: block;
    font-size: 10.5px;
    color: #8A8A8A;
    text-align: right;
    margin-top: 5px;
}

.chatbot__footer {
    padding: 14px 18px;
    background: var(--white);
}

.chatbot__wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: #25D366;
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14.5px;
    padding: 12px;
    border-radius: 50px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.chatbot__wa-btn:hover {
    background: #1EBE5D;
    color: var(--white);
    transform: translateY(-2px);
}

/* ==========================================================
   ANIMATIONS
   ========================================================== */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .values-grid { grid-template-columns: repeat(3, 1fr); }
    .audience-grid { grid-template-columns: repeat(3, 1fr); }
    .stories-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 46px; }
    .plans-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .plan-card.featured { transform: scale(1); }
    .plan-card.featured:hover { transform: translateY(-10px); }
}

@media (max-width: 860px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 90px 26px 30px;
        gap: 4px;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
        transition: right 0.4s ease;
        z-index: 1100;
    }

    .nav-menu.open { right: 0; }

    .nav-menu li { width: 100%; }

    .nav-menu li a {
        padding: 13px 14px;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
    }

    .nav-menu li a::after { display: none; }

    .nav-cta {
        margin: 18px 0 0;
        width: 100%;
    }

    .nav-cta .btn { display: block; }

    .hamburger { display: block; z-index: 1150; }

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(7, 30, 65, 0.55);
        z-index: 1250;
    }

    .nav-overlay.show { display: block; }

    .split { grid-template-columns: 1fr; gap: 55px; }
    .split-img img { height: 380px; }
    .membership-split { grid-template-columns: 1fr; gap: 45px; }
    .membership-plan { margin: 0 auto; }
    .vm-grid { grid-template-columns: 1fr; }
    .contact-split { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); }
    .contact-info-grid { grid-template-columns: 1fr; }
    /* Hide the whole strip on mobile. With the tagline, email and phone all gone
       there is nothing left in it, so the bar itself goes rather than leaving an
       empty blue band above the logo. Contact details remain in the footer, on
       /contact, and on the floating WhatsApp button. */
    .top-bar { display: none; }
}

@media (max-width: 600px) {
    section { padding: 65px 0; }
    .hero { min-height: 80vh; padding: 90px 0; }
    .hero h1 { font-size: 36px; }
    .hero p { font-size: 16px; }
    .section-head h2 { font-size: 30px; }
    .page-hero h1 { font-size: 34px; }
    .cta-band h2 { font-size: 30px; }
    .services-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .audience-grid { grid-template-columns: repeat(2, 1fr); }
    .stories-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form-box { padding: 30px 22px; }
    .contact-side { padding: 34px 26px; }
    .split-img .img-accent { right: 10px; bottom: -20px; padding: 16px 20px; }
    .footer-bottom .container { justify-content: center; text-align: center; }
    .chatbot { right: 16px; bottom: 20px; }
    .dash-grid { grid-template-columns: 1fr; }
    .auth-card { padding: 30px 24px; }
}

/* ==========================================================
   AUTH PAGES (login / register / forgot password)
   ========================================================== */
.nav-auth a { font-weight: 500; }

.auth-section {
    background: var(--grey-light);
    padding: 70px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.auth-card {
    width: 100%;
    max-width: 470px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 4px solid var(--gold);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 42px 40px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 18px;
}

.auth-logo img {
    height: 44px;
    width: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

.auth-head {
    text-align: center;
    margin-bottom: 26px;
}

.auth-head h1 {
    font-size: 27px;
    color: var(--royal-blue);
    margin-bottom: 6px;
}

.auth-head p {
    color: var(--grey);
    font-size: 14.5px;
}

.auth-card .btn { width: 100%; }

.auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    font-size: 13.5px;
    flex-wrap: wrap;
    gap: 8px;
}

.auth-row a { color: var(--royal-blue); font-weight: 500; }
.auth-row a:hover { color: var(--gold-dark); }

.auth-alt {
    text-align: center;
    margin-top: 22px;
    font-size: 14.5px;
    color: var(--grey);
}

.auth-alt a { color: var(--royal-blue); font-weight: 600; }
.auth-alt a:hover { color: var(--gold-dark); }

.field-hint {
    display: block;
    font-size: 12px;
    color: var(--grey);
    margin-top: 5px;
}

@media (max-width: 600px) {
    .auth-logo img { height: 38px; }
}

/* ---------- Flash messages ---------- */
.flash {
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 14.5px;
    margin-bottom: 18px;
    border: 1px solid transparent;
}

.flash-success { background: #E8F7EF; border-color: #9ADBB8; color: #1E7A46; }
.flash-error   { background: #FCEBEB; border-color: #E7A9A9; color: #B23A3A; }
.flash-info    { background: var(--royal-blue-light); border-color: #B9CCF0; color: var(--royal-blue-dark); }

/* Global flash bar (shown under the navbar on any page) */
.flash-bar { padding-top: 20px; }
.flash-bar .flash { margin-bottom: 0; }

/* ==========================================================
   ACCOUNT DASHBOARD
   ========================================================== */
.dash-section {
    background: var(--grey-light);
    padding: 55px 0 75px;
    min-height: 60vh;
}

.dash-welcome {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px 34px;
    margin-bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.dash-welcome h1 {
    font-size: 25px;
    color: var(--royal-blue);
    margin-bottom: 4px;
}

.dash-welcome p { color: var(--grey); font-size: 14.5px; }

.membership-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 600;
}

.membership-badge.active { background: #E8F7EF; color: #1E7A46; }
.membership-badge.inactive { background: var(--gold-light); color: var(--gold-dark); }

.dash-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.dash-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px 28px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dash-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.dash-card .dash-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--royal-blue-light);
    color: var(--royal-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
}

.dash-card h3 { font-size: 19px; color: var(--charcoal); margin-bottom: 8px; }
.dash-card p { font-size: 14px; color: var(--grey); margin-bottom: 16px; }
.dash-card .dash-link { color: var(--royal-blue); font-weight: 600; font-size: 14px; }
.dash-card .dash-link:hover { color: var(--gold-dark); }
.dash-card.locked { opacity: 0.65; }
.dash-card.locked .dash-icon { background: #EEE; color: #999; }

/* ==========================================================
   PROFILE FORMS & VIEW (Phase 2)
   ========================================================== */
.page-hero-slim { padding: 68px 0; }

.form-section { background: var(--grey-light); padding: 55px 0 75px; }

.profile-form-card {
    max-width: 880px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 42px;
}

.form-section-title {
    font-size: 20px;
    color: var(--royal-blue);
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.form-section-title:first-of-type { margin-top: 0; }
.form-section-title i { color: var(--gold-dark); }
.form-section-title small { color: var(--grey); font-size: 13px; font-weight: 400; }

.form-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.muted-note { color: var(--grey); font-size: 14px; margin-bottom: 18px; }

.upload-form {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    background: var(--grey-light);
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 18px;
}
.upload-form input[type="file"] { flex: 1; min-width: 200px; font-family: var(--font-body); font-size: 14px; }

/* ---------- Photo grid ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.photo-item { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--white); }
.photo-thumb { position: relative; height: 200px; background: var(--grey-light); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-badge { position: absolute; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 50px; }
.photo-badge.primary { top: 10px; left: 10px; background: var(--gold); color: #fff; }
.photo-badge.vis { bottom: 10px; right: 10px; background: rgba(0, 0, 0, 0.6); color: #fff; }
.photo-actions { display: flex; justify-content: center; gap: 8px; padding: 12px; }
.photo-actions form { margin: 0; }
.photo-actions button {
    width: 38px; height: 38px; border-radius: 8px;
    border: 1px solid var(--border); background: var(--white);
    color: var(--royal-blue); cursor: pointer; transition: all 0.25s ease;
}
.photo-actions button:hover { background: var(--royal-blue); color: #fff; }
.photo-actions button.danger { color: #C94F4F; }
.photo-actions button.danger:hover { background: #C94F4F; color: #fff; }

/* ---------- Empty state ---------- */
.empty-state {
    text-align: center;
    max-width: 480px;
    margin: 20px auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 55px 40px;
}
.empty-icon {
    width: 84px; height: 84px; margin: 0 auto 22px;
    border-radius: 50%; background: var(--royal-blue-light); color: var(--royal-blue);
    display: flex; align-items: center; justify-content: center; font-size: 34px;
}
.empty-state h2 { font-size: 26px; color: var(--royal-blue); margin-bottom: 10px; }
.empty-state p { color: var(--grey); margin-bottom: 24px; }

/* ---------- Profile view ---------- */
.profile-view-grid { display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: start; }
.profile-side {
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 20px; position: sticky; top: 90px;
}
.profile-photo-main { height: 300px; border-radius: 12px; overflow: hidden; background: var(--grey-light); }
.profile-photo-main img { width: 100%; height: 100%; object-fit: cover; }
.no-photo { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 60px; color: #C7CEDB; }
.profile-photo-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.profile-photo-thumbs img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }

.profile-main { display: flex; flex-direction: column; gap: 22px; }
.detail-card {
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 26px 28px;
}
.detail-card h3 { font-size: 18px; color: var(--royal-blue); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.detail-card h3 i { color: var(--gold-dark); font-size: 16px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 30px; min-width: 0; }
.detail-row {
    display: flex; justify-content: space-between; gap: 16px;
    padding-bottom: 12px; border-bottom: 1px dashed var(--border); font-size: 14.5px;
    min-width: 0; /* without this, a long value widens the grid track past the card */
}
.detail-row span { color: var(--grey); flex-shrink: 0; }
.detail-row b {
    color: var(--charcoal); font-weight: 600; text-align: right;
    min-width: 0; overflow-wrap: anywhere; /* break long emails instead of overflowing */
}

/* Stacked variant - for the narrow sidebar cards, where a label/value row has no room */
.detail-grid.stacked { grid-template-columns: 1fr; }
.detail-grid.stacked .detail-row { flex-direction: column; align-items: flex-start; gap: 3px; }
.detail-grid.stacked .detail-row b { text-align: left; }
.about-text { color: var(--grey); font-size: 15px; line-height: 1.7; }
.muted { color: #A0A8B5; font-weight: 400; }

@media (max-width: 860px) {
    .profile-view-grid { grid-template-columns: 1fr; }
    .profile-side { position: static; }
    .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .profile-form-card { padding: 26px 20px; }
    .detail-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   ADMIN PANEL (Phase 3)
   ========================================================== */
.admin-bar { background: var(--royal-blue-dark); color: #fff; }
.admin-bar-inner { display: flex; align-items: center; gap: 20px; padding: 12px 0; flex-wrap: wrap; }
.admin-brand { font-weight: 600; color: var(--gold); display: flex; align-items: center; gap: 8px; font-size: 15px; }
.admin-links { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.admin-links a { color: rgba(255, 255, 255, 0.8); padding: 8px 14px; border-radius: 8px; font-size: 14.5px; font-weight: 500; }
.admin-links a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.admin-links a.active { background: var(--gold); color: var(--royal-blue-dark); }
.admin-exit { color: rgba(255, 255, 255, 0.75); font-size: 13.5px; }
.admin-exit:hover { color: var(--gold); }

.admin-section { background: var(--grey-light); padding: 40px 0 70px; min-height: 60vh; }
.admin-title { font-size: 28px; color: var(--royal-blue); margin-bottom: 24px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.admin-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-bottom: 30px; }
.admin-stat { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: flex; align-items: center; gap: 14px; transition: transform 0.25s ease; }
a.admin-stat:hover { transform: translateY(-4px); }
.admin-stat-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; }
.admin-stat-icon.blue { background: var(--royal-blue-light); color: var(--royal-blue); }
.admin-stat-icon.gold { background: var(--gold-light); color: var(--gold-dark); }
.admin-stat-icon.amber { background: #FFF4E0; color: #C9871F; }
.admin-stat-icon.green { background: #E8F7EF; color: #1E7A46; }
.admin-stat strong { display: block; font-family: var(--font-heading); font-size: 24px; color: var(--charcoal); line-height: 1.1; }
.admin-stat span { font-size: 12.5px; color: var(--grey); }

.admin-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 28px; margin-bottom: 24px; }
.admin-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.admin-card-head h2 { font-size: 18px; color: var(--royal-blue); display: flex; align-items: center; gap: 10px; }
.admin-card-head h2 i { color: var(--gold-dark); font-size: 16px; }
.admin-link { color: var(--royal-blue); font-weight: 600; font-size: 14px; }
.admin-link:hover { color: var(--gold-dark); }

.admin-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.admin-table th, .admin-table td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
.admin-table th { background: var(--grey-light); color: var(--charcoal); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.5px; }
.admin-table tr:hover td { background: #FBFCFE; }
.admin-table small { color: var(--grey); }

.pill { display: inline-block; padding: 4px 12px; border-radius: 50px; font-size: 12px; font-weight: 600; }
.pill-pending { background: #FFF4E0; color: #C9871F; }
.pill-verified { background: #E8F7EF; color: #1E7A46; }
.pill-rejected { background: #FCEBEB; color: #B23A3A; }
.pill-admin { background: var(--royal-blue-light); color: var(--royal-blue); }

.btn-mini { display: inline-block; padding: 6px 14px; border-radius: 7px; font-size: 13px; font-weight: 600; border: 1px solid var(--border); background: var(--white); color: var(--royal-blue); cursor: pointer; font-family: var(--font-body); transition: all 0.2s ease; }
.btn-mini:hover { background: var(--royal-blue); color: #fff; border-color: var(--royal-blue); }
.btn-mini.success { color: #1E7A46; border-color: #9ADBB8; }
.btn-mini.success:hover { background: #1E9E5A; color: #fff; border-color: #1E9E5A; }
.btn-mini.danger { color: #C94F4F; border-color: #E7A9A9; }
.btn-mini.danger:hover { background: #C94F4F; color: #fff; border-color: #C94F4F; }

.admin-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.admin-actions form { margin: 0; }

.admin-filters { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.filter-chip { padding: 8px 18px; border-radius: 50px; background: var(--white); border: 1px solid var(--border); font-size: 14px; font-weight: 500; color: var(--charcoal); }
.filter-chip:hover { border-color: var(--gold); }
.filter-chip.active { background: var(--royal-blue); color: #fff; border-color: var(--royal-blue); }

.admin-review-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-review-actions form { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 1024px) {
    .admin-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
    .admin-links { width: 100%; }
}

/* ==========================================================
   CHECKOUT (Phase 4)
   ========================================================== */
.checkout-card {
    max-width: 560px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 4px solid var(--gold);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 40px;
}
.checkout-summary { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 22px; }
.checkout-row { display: flex; justify-content: space-between; padding: 14px 18px; font-size: 15px; }
.checkout-row + .checkout-row { border-top: 1px solid var(--border); }
.checkout-row.total { background: var(--grey-light); font-size: 17px; }
.checkout-row.total b { color: var(--royal-blue); }
.checkout-benefits { list-style: none; margin-bottom: 24px; }
.checkout-benefits li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14.5px; color: var(--charcoal); }
.checkout-benefits li i { color: var(--gold-dark); }
.checkout-secure { text-align: center; font-size: 13px; color: var(--grey); margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.checkout-secure i { color: #1E9E5A; }

/* ---------- Bank transfer details ---------- */
.bank-divider {
    display: flex; align-items: center; gap: 14px;
    margin: 30px 0 20px;
    color: var(--grey); font-size: 12px;
    text-transform: uppercase; letter-spacing: 1.6px;
}
.bank-divider::before,
.bank-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.bank-intro { font-size: 14.5px; color: var(--charcoal); margin-bottom: 16px; }
.bank-intro b { color: var(--royal-blue); }

.bank-grid { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.bank-row {
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px; padding: 13px 18px; font-size: 14.5px;
}
.bank-row + .bank-row { border-top: 1px solid var(--border); }
.bank-row > span { color: var(--grey); display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.bank-row > span i { color: var(--gold-dark); width: 15px; text-align: center; }
.bank-row b {
    color: var(--charcoal); font-weight: 600; text-align: right;
    word-break: break-word; display: flex; align-items: center; gap: 8px;
}
.bank-row .bank-name { color: var(--royal-blue); }
.bank-row.bank-ref { background: var(--gold-light); }

.bank-copy {
    background: none; border: none; cursor: pointer;
    color: var(--royal-blue); padding: 2px 3px; font-size: 13px; line-height: 1;
    transition: color 0.2s ease;
}
.bank-copy:hover { color: var(--gold-dark); }
.bank-copy.copied { color: #1E9E5A; }

.bank-note {
    font-size: 13px; color: var(--grey); line-height: 1.65; margin-top: 15px;
    background: var(--grey-light); border-radius: 10px; padding: 13px 15px;
}
.bank-note i { color: var(--royal-blue); margin-right: 5px; }
.bank-note b { color: var(--charcoal); }
.bank-note a { color: var(--royal-blue); font-weight: 600; }
.bank-note a:hover { color: var(--gold-dark); }

@media (max-width: 600px) {
    .checkout-card { padding: 28px 22px; }
    .bank-row { flex-direction: column; align-items: flex-start; gap: 5px; }
    .bank-row b { text-align: left; }
    .bank-row > span { white-space: normal; }
}

/* ==========================================================
   BROWSE MATCHES (Phase 5)
   ========================================================== */
.upgrade-banner {
    display: flex; justify-content: space-between; align-items: center; gap: 20px;
    flex-wrap: wrap; background: linear-gradient(135deg, var(--royal-blue), var(--royal-blue-dark));
    color: #fff; border-radius: var(--radius); padding: 22px 28px; margin-bottom: 26px;
}
.upgrade-banner h3 { color: #fff; font-size: 19px; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.upgrade-banner h3 i { color: var(--gold); }
.upgrade-banner p { color: rgba(255, 255, 255, 0.85); font-size: 14px; }

.filter-form { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 26px; margin-bottom: 28px; }
.filter-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.filter-grid .form-group { margin-bottom: 0; }
.filter-grid label { font-size: 12.5px; }
.filter-actions { display: flex; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.filter-count { color: var(--grey); font-size: 14px; margin-left: auto; }

.match-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.match-card { display: block; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.3s ease, box-shadow 0.3s ease; color: inherit; }
.match-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.match-photo { position: relative; height: 240px; background: var(--grey-light); }
.match-photo img { width: 100%; height: 100%; object-fit: cover; }
.match-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 54px; color: #C7CEDB; }
.match-lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--royal-blue); background: rgba(255, 255, 255, 0.35); }
.match-body { padding: 18px 20px; }
.match-name { font-size: 18px; color: var(--royal-blue); margin-bottom: 8px; }
.match-meta { font-size: 13.5px; color: var(--grey); margin-bottom: 5px; display: flex; align-items: center; gap: 7px; }
.match-meta i { color: var(--gold-dark); font-size: 12px; width: 14px; }
.match-view { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--gold-dark); }

.pager { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 36px; }
.pager-info { color: var(--grey); font-size: 14px; }

@media (max-width: 1024px) {
    .filter-grid { grid-template-columns: repeat(3, 1fr); }
    .match-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .match-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .filter-grid { grid-template-columns: 1fr 1fr; }
    .filter-count { margin-left: 0; width: 100%; }
    .upgrade-banner { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================
   INTERESTS / SHORTLIST / CHAT / SAFETY (Phase 6)
   ========================================================== */
.dash-card .dash-icon { position: relative; }
.dash-badge {
    position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 6px;
    border-radius: 10px; background: #E25555; color: #fff; font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; font-family: var(--font-body);
}

/* Tabs */
.social-tabs { display: flex; gap: 6px; margin-bottom: 22px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.social-tabs a { padding: 12px 22px; font-weight: 600; color: var(--grey); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.social-tabs a:hover { color: var(--royal-blue); }
.social-tabs a.active { color: var(--royal-blue); border-bottom-color: var(--gold); }

/* List rows */
.social-list { display: flex; flex-direction: column; gap: 14px; }
.social-item { display: flex; align-items: center; gap: 16px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--white); transition: all 0.2s ease; }
a.social-item.link { color: inherit; }
a.social-item.link:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.social-thumb { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--grey-light); flex-shrink: 0; }
.social-thumb img { width: 100%; height: 100%; object-fit: cover; }
.social-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #C7CEDB; font-size: 24px; }
.social-info { flex: 1; min-width: 0; }
.social-info h3 { font-size: 17px; color: var(--royal-blue); margin-bottom: 4px; }
.social-info p { font-size: 13.5px; color: var(--grey); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.social-info p i { color: var(--gold-dark); font-size: 12px; margin-right: 4px; }
.social-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }
.social-actions form { margin: 0; }
.social-time { font-size: 12px; color: var(--grey); }
.unread-badge { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--gold); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* Profile CTA / safety */
.profile-cta { margin-top: 14px; }
.connected-note { background: #E8F7EF; color: #1E7A46; border-radius: 10px; padding: 10px; text-align: center; font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.profile-safety { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 16px; }
.profile-safety details { margin-bottom: 10px; }
.profile-safety summary { cursor: pointer; font-size: 13.5px; color: var(--grey); }
.profile-safety summary:hover { color: var(--royal-blue); }
.profile-safety textarea { width: 100%; }
.link-danger { background: none; border: none; color: #C94F4F; cursor: pointer; font-size: 13.5px; font-family: var(--font-body); padding: 0; }
.link-danger:hover { text-decoration: underline; }

/* Chat */
.chat-box { max-width: 760px; margin: 0 auto; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; height: 70vh; }
.chat-topbar { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); background: var(--grey-light); }
.chat-topbar-name { font-weight: 600; color: var(--royal-blue); display: flex; align-items: center; gap: 10px; }
.chat-topbar-name i { color: var(--gold-dark); font-size: 20px; }
.chat-thread { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; background: #F7F9FC; }
.chat-empty { text-align: center; color: var(--grey); margin: auto; }
.chat-line { display: flex; flex-direction: column; max-width: 75%; }
.chat-line.me { align-self: flex-end; align-items: flex-end; }
.chat-line.them { align-self: flex-start; align-items: flex-start; }
.chat-bubble { padding: 10px 15px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; word-wrap: break-word; }
.chat-line.me .chat-bubble { background: var(--royal-blue); color: #fff; border-bottom-right-radius: 4px; }
.chat-line.them .chat-bubble { background: #fff; border: 1px solid var(--border); color: var(--charcoal); border-bottom-left-radius: 4px; }
.chat-time { font-size: 11px; color: var(--grey); margin-top: 4px; }
.chat-compose { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--border); background: var(--white); }
.chat-compose input { flex: 1; border: 1px solid var(--border); border-radius: 50px; padding: 12px 18px; font-family: var(--font-body); font-size: 14.5px; outline: none; }
.chat-compose input:focus { border-color: var(--royal-blue); }
.chat-compose button { border-radius: 50%; width: 48px; height: 48px; padding: 0; flex-shrink: 0; }

@media (max-width: 600px) {
    .social-item { flex-wrap: wrap; }
    .social-actions { width: 100%; }
    .chat-box { height: 76vh; }
}

/* ==========================================================
   LEGAL PAGES (Terms of Use / Policies)
   ========================================================== */
.legal-layout {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 55px;
    align-items: start;
}

/* ---------- Sticky table of contents ---------- */
.legal-toc {
    position: sticky;
    top: 100px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px 24px;
}

.legal-toc .toc-eyebrow {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 8px;
}

.legal-toc h4 {
    font-size: 20px;
    color: var(--royal-blue);
    margin-bottom: 16px;
}

.legal-toc ol {
    list-style: none;
    counter-reset: toc;
    max-height: 58vh;
    overflow-y: auto;
    padding-right: 6px;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.legal-toc ol::-webkit-scrollbar { width: 5px; }
.legal-toc ol::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; }

.legal-toc li { counter-increment: toc; }

.legal-toc li a {
    display: flex;
    gap: 10px;
    align-items: baseline;
    font-size: 14px;
    line-height: 1.5;
    color: var(--grey);
    padding: 7px 0;
}

.legal-toc li a::before {
    content: counter(toc) ".";
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--gold-dark);
    min-width: 18px;
}

.legal-toc li a:hover,
.legal-toc li a.active { color: var(--royal-blue); font-weight: 600; }

/* ---------- Document meta ---------- */
.legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.legal-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 50px;
    background: var(--gold-light);
    color: var(--gold-dark);
}

.legal-meta span.blue { background: var(--royal-blue-light); color: var(--royal-blue); }

.legal-intro {
    background: var(--grey-light);
    border-left: 4px solid var(--gold);
    border-radius: 12px;
    padding: 26px 28px;
    margin-bottom: 45px;
}

.legal-intro h2 {
    font-size: 28px;
    color: var(--royal-blue);
    margin-bottom: 12px;
}

.legal-intro p {
    color: var(--grey);
    font-size: 15.5px;
    margin-bottom: 12px;
}

.legal-intro p:last-child { margin-bottom: 0; }

/* ---------- Sections ---------- */
.legal-block {
    margin-bottom: 45px;
    scroll-margin-top: 110px;
}

.legal-block:last-child { margin-bottom: 0; }

.legal-block h3 {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 25px;
    color: var(--royal-blue);
    margin-bottom: 16px;
}

.legal-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--royal-blue), var(--royal-blue-dark));
    color: var(--white);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(10, 61, 145, 0.25);
}

.legal-block h4 {
    font-size: 17px;
    color: var(--charcoal);
    margin: 24px 0 10px;
}

.legal-block p {
    color: var(--grey);
    font-size: 15.5px;
    margin-bottom: 14px;
}

.legal-block p:last-child { margin-bottom: 0; }
.legal-block a { color: var(--royal-blue); font-weight: 600; }
.legal-block a:hover { color: var(--gold-dark); }
.legal-block strong { color: var(--charcoal); font-weight: 600; }

.legal-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin: 4px 0 18px;
}

.legal-list li {
    position: relative;
    padding-left: 30px;
    color: var(--grey);
    font-size: 15px;
}

.legal-list li i {
    position: absolute;
    left: 0;
    top: 6px;
    font-size: 14px;
    color: var(--gold-dark);
}

.legal-list.no-list li i { color: #C94F4F; }

/* ---------- Callouts ---------- */
.legal-note,
.legal-warn {
    display: flex;
    gap: 14px;
    border-radius: 12px;
    padding: 18px 22px;
    margin: 20px 0;
}

.legal-note { background: var(--gold-light); border: 1px solid #EFE3BF; }
.legal-warn { background: #FDF1F1; border: 1px solid #F5D9D9; }

.legal-note i { color: var(--gold-dark); font-size: 18px; margin-top: 3px; }
.legal-warn i { color: #C94F4F; font-size: 18px; margin-top: 3px; }

.legal-note p,
.legal-warn p { margin: 0; font-size: 14.5px; line-height: 1.65; }
.legal-note p { color: #6E5C21; }
.legal-warn p { color: #8A3B3B; }
.legal-note p strong { color: #55470F; }
.legal-warn p strong { color: #6E2C2C; }

/* ---------- Grievance / contact card ---------- */
.legal-contact {
    background: linear-gradient(135deg, var(--royal-blue), var(--royal-blue-dark));
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 36px;
    margin-top: 50px;
}

.legal-contact h3 { display: block; color: var(--white); font-size: 26px; margin-bottom: 10px; }
.legal-contact > p { color: rgba(255, 255, 255, 0.8); font-size: 15px; margin-bottom: 24px; }

.legal-contact-rows {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.legal-contact-rows div {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 14px 18px;
}

.legal-contact-rows i {
    color: var(--gold);
    font-size: 18px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.legal-contact-rows span,
.legal-contact-rows a {
    color: rgba(255, 255, 255, 0.92);
    font-size: 14.5px;
    word-break: break-word;
}

.legal-contact-rows a:hover { color: var(--gold); }

@media (max-width: 1024px) {
    .legal-layout { grid-template-columns: 1fr; gap: 35px; }
    .legal-toc { position: static; }
    .legal-toc ol { max-height: none; columns: 2; column-gap: 30px; }
    .legal-toc li { break-inside: avoid; }
}

@media (max-width: 600px) {
    .legal-toc ol { columns: 1; }
    .legal-intro { padding: 22px; }
    .legal-intro h2 { font-size: 24px; }
    .legal-block h3 { font-size: 21px; gap: 11px; }
    .legal-num { width: 34px; height: 34px; font-size: 13px; }
    .legal-contact { padding: 26px 22px; }
    .legal-contact-rows { grid-template-columns: 1fr; }
}

/* ---------- Data tables inside legal pages ---------- */
.legal-body .table-wrap {
    border: 1px solid var(--border);
    margin: 6px 0 20px;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    min-width: 520px;
}

.legal-table th,
.legal-table td {
    padding: 14px 18px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
    font-size: 14.5px;
}

.legal-table th {
    background: var(--royal-blue);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.legal-table td { color: var(--grey); }

.legal-table td:first-child {
    width: 38%;
    color: var(--charcoal);
    font-weight: 500;
}

.legal-table tr:last-child td { border-bottom: none; }
.legal-table tr:nth-child(even) td { background: var(--grey-light); }

/* ---------- Numbered steps inside legal pages ---------- */
.legal-steps {
    list-style: none;
    counter-reset: legalstep;
    margin: 14px 0 22px;
}

.legal-steps li {
    position: relative;
    counter-increment: legalstep;
    padding: 0 0 26px 58px;
}

.legal-steps li:last-child { padding-bottom: 0; }

.legal-steps li::before {
    content: counter(legalstep);
    position: absolute;
    left: 0;
    top: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gold-light);
    border: 2px solid var(--gold);
    color: var(--gold-dark);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legal-steps li::after {
    content: "";
    position: absolute;
    left: 18px;
    top: 44px;
    bottom: 6px;
    width: 2px;
    background: var(--border);
}

.legal-steps li:last-child::after { display: none; }

.legal-steps li h4 {
    margin: 7px 0 6px;
    font-size: 16.5px;
    color: var(--royal-blue);
}

.legal-steps li p { margin: 0; font-size: 15px; }

/* ---------- Legal links in the footer bottom bar ---------- */
.footer-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.footer-legal li { position: relative; }

.footer-legal li + li::before {
    content: "";
    position: absolute;
    left: -11px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.22);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.footer-legal a:hover { color: var(--gold); }

@media (max-width: 600px) {
    .footer-legal { gap: 6px 16px; }
    .footer-legal li + li::before { display: none; }
}

/* ---------- UPI QR panel (checkout) ---------- */
.bank-qr {
    background: var(--grey-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 22px;
    text-align: center;
}

.bank-qr h4 { font-size: 18px; color: var(--royal-blue); margin-bottom: 7px; }
.bank-qr h4 i { color: var(--gold-dark); margin-right: 8px; }

.bank-qr > p { font-size: 14.5px; color: var(--charcoal); margin-bottom: 18px; }
.bank-qr > p b { color: var(--royal-blue); }

.bank-qr-code img {
    width: 190px;
    height: 190px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
}

.bank-qr-code span {
    display: block;
    margin-top: 9px;
    font-size: 12px;
    letter-spacing: 0.4px;
    color: var(--grey);
}

.bank-qr .bank-grid {
    background: var(--white);
    text-align: left;
    margin-top: 20px;
}

.bank-qr-hint {
    margin-top: 14px;
    text-align: left;
    font-size: 13px;
    line-height: 1.6;
    color: var(--grey);
}

.bank-qr-hint i { color: var(--royal-blue); margin-right: 5px; }
.bank-qr-hint b { color: var(--charcoal); }

@media (max-width: 600px) {
    .bank-qr { padding: 22px 16px; }
    .bank-qr-code img { width: 170px; height: 170px; }
}

/* ---------- Manual membership activation form (admin) ---------- */
.activate-form { margin-top: 18px; }

.activate-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 20px;
    margin-bottom: 20px;
}

.activate-grid .span-2 { grid-column: 1 / -1; }

@media (max-width: 700px) {
    .activate-grid { grid-template-columns: 1fr; }
}

/* ---------- Touch input sizing ---------- */
/* iOS Safari zooms the whole page when a focused field is smaller than 16px.
   That zoom shifts the layout mid-tap, so the next tap lands somewhere else and
   the form feels unresponsive. 16px keeps the page still. */
@media (max-width: 860px) {
    .form-group input,
    .form-group select,
    .form-group textarea,
    .chat-compose input,
    .profile-safety textarea,
    .upload-form input[type="file"] {
        font-size: 16px;
    }
}

/* ---------- Design credit on legal pages ---------- */
.legal-credit {
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 13px;
    letter-spacing: 0.3px;
    color: var(--grey);
}

.legal-credit a {
    color: var(--royal-blue);
    font-weight: 600;
}

.legal-credit a:hover { color: var(--gold-dark); }
