/* ============================================================
   RishtaLifetime — Find Your Rishta for a Lifetime
   Theme: Red & White
   ============================================================ */

:root {
  --red: #c8102e;
  --red-dark: #9e0b1f;
  --red-deep: #6d0715;
  --red-light: #e3243b;
  --red-soft: #fdecee;
  --red-tint: #fff5f6;
  --white: #ffffff;
  --ink: #2b1a1d;
  --muted: #6f5b5e;
  --line: #f1d6da;
  --gold: #d4a24c;
  --shadow: 0 10px 30px rgba(158, 11, 31, .12);
  --shadow-lg: 0 20px 50px rgba(158, 11, 31, .20);
  --radius: 16px;
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-script: "Great Vibes", "Brush Script MT", cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 15px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red-dark); }
ul { list-style: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 90px 0; }
.section-tint { background: var(--red-tint); }
.text-center { text-align: center; }

/* ---------- Headings ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.section-head .script {
  font-family: var(--font-script);
  color: var(--red);
  font-size: 2.1rem;
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 14px; }
.section-head h2 span { color: var(--red); }
.section-head p { color: var(--muted); }
.divider {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 14px auto 18px; color: var(--red);
}
.divider::before, .divider::after {
  content: ""; width: 60px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--red));
}
.divider::after { background: linear-gradient(90deg, var(--red), transparent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 30px; border-radius: 50px; font-weight: 600; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; transition: all .25s ease;
  font-family: var(--font-body); white-space: nowrap;
}
.btn-red {
  background: linear-gradient(135deg, var(--red-light), var(--red-dark));
  color: var(--white); box-shadow: 0 8px 20px rgba(200, 16, 46, .35);
}
.btn-red:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(200, 16, 46, .45); }
.btn-white { background: var(--white); color: var(--red); }
.btn-white:hover { background: var(--red-soft); color: var(--red-dark); transform: translateY(-2px); }
.btn-outline { border-color: var(--red); color: var(--red); background: transparent; }
.btn-outline:hover { background: var(--red); color: var(--white); }
.btn-outline-white { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline-white:hover { background: var(--white); color: var(--red); }
.btn-lg { padding: 16px 40px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar { background: var(--red-deep); color: #ffd7dc; font-size: .82rem; padding: 7px 0; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #ffd7dc; }
.topbar a:hover { color: var(--white); }
.topbar span { margin-right: 18px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px); box-shadow: 0 2px 18px rgba(158, 11, 31, .08);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { width: 50px; height: 50px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong { font-family: var(--font-head); font-size: 1.55rem; color: var(--red); font-weight: 700; letter-spacing: .3px; }
.logo-text strong em { font-style: normal; color: var(--ink); }
.logo-text small { font-size: .62rem; letter-spacing: 2.6px; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink); font-weight: 500; font-size: .92rem; padding: 8px 14px;
  border-radius: 30px; position: relative;
}
.nav a:hover, .nav a.active { color: var(--red); background: var(--red-soft); }
.nav .btn { margin-left: 10px; padding: 10px 22px; }
.nav .btn-red, .nav .btn-red:hover { color: var(--white); background: linear-gradient(135deg, var(--red-light), var(--red-dark)); }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; width: 42px; height: 42px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { width: 26px; height: 2.5px; background: var(--red); border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 640px; display: flex; align-items: center;
  color: var(--white); overflow: hidden;
  background:
    linear-gradient(100deg, rgba(109, 7, 21, .94) 0%, rgba(140, 10, 28, .80) 38%, rgba(158, 11, 31, .45) 62%, rgba(158, 11, 31, .35) 100%),
    url("../images/models/rishta-couple-traditional-home.jpg") center 30%/cover no-repeat,
    linear-gradient(135deg, var(--red-deep), var(--red));
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 80px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C 360 100 1080 -20 1440 40 L1440 80 L0 80Z' fill='%23ffffff'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; padding-top: 160px; padding-bottom: 110px; }
.hero .script { font-family: var(--font-script); font-size: 2.4rem; color: #ffd7dc; display: block; line-height: 1; }
.hero h1 { color: var(--white); font-size: clamp(2.3rem, 5vw, 3.8rem); margin: 10px 0 18px; }
.hero h1 span { color: #ffd7dc; font-style: italic; }
.hero p { font-size: 1.08rem; opacity: .93; max-width: 520px; margin-bottom: 30px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 26px; margin-top: 36px; flex-wrap: wrap; }
.hero-trust div strong { display: block; font-family: var(--font-head); font-size: 1.7rem; }
.hero-trust div small { opacity: .85; font-size: .82rem; }

/* Floating hearts */
.hearts { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.hearts i {
  position: absolute; bottom: -40px; color: rgba(255, 255, 255, .25); font-style: normal;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0% { transform: translateY(0) rotate(0); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translateY(-760px) rotate(25deg); opacity: 0; }
}

/* ---------- Find Rishta search box ---------- */
.search-card {
  background: var(--white); color: var(--ink); border-radius: 22px; padding: 32px 30px;
  box-shadow: var(--shadow-lg); position: relative;
}
.search-card::before {
  content: ""; position: absolute; inset: -6px; border-radius: 26px; z-index: -1;
  background: linear-gradient(135deg, rgba(255,255,255,.6), rgba(255,255,255,.1));
}
.search-card h3 { font-size: 1.6rem; text-align: center; color: var(--red); }
.search-card .sub { text-align: center; color: var(--muted); font-size: .88rem; margin-bottom: 22px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.form-control {
  width: 100%; padding: 12px 15px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: .93rem; color: var(--ink); background: var(--white);
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.form-control:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(200, 16, 46, .1); }
textarea.form-control { min-height: 130px; resize: vertical; }
select.form-control {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 36px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c8102e' stroke-width='2' fill='none'/%3E%3C/svg%3E") right 14px center no-repeat;
}
.radio-row { display: flex; gap: 10px; }
.radio-pill { flex: 1; position: relative; }
.radio-pill input { position: absolute; opacity: 0; }
.radio-pill span {
  display: block; text-align: center; padding: 11px; border: 1.5px solid var(--line);
  border-radius: 10px; cursor: pointer; font-weight: 500; transition: .2s;
}
.radio-pill input:checked + span { background: var(--red); color: var(--white); border-color: var(--red); }
.form-note { font-size: .8rem; color: var(--muted); margin-top: 10px; text-align: center; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.check input { accent-color: var(--red); margin-top: 5px; }

/* ---------- Page banner ---------- */
.page-banner {
  position: relative; color: var(--white); text-align: center; padding: 170px 0 110px;
  background:
    linear-gradient(135deg, rgba(109, 7, 21, .9), rgba(200, 16, 46, .82)),
    var(--banner-img, none) center/cover no-repeat,
    linear-gradient(135deg, var(--red-deep), var(--red));
}
.page-banner::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C 360 100 1080 -20 1440 40 L1440 80 L0 80Z' fill='%23ffffff'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}
.page-banner .script { font-family: var(--font-script); font-size: 2.2rem; color: #ffd7dc; display: block; line-height: 1; }
.page-banner h1 { color: var(--white); font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 8px 0 12px; }
.page-banner p { opacity: .9; max-width: 620px; margin: 0 auto; }
.crumbs { margin-top: 16px; font-size: .85rem; opacity: .85; }
.crumbs a { color: var(--white); }

/* ---------- Feature / Why cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }

.feature {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 26px; text-align: center; transition: all .3s ease; position: relative; overflow: hidden;
}
.feature::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 0;
  background: linear-gradient(90deg, var(--red-light), var(--red-dark)); transition: width .35s;
}
.feature:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.feature:hover::after { width: 100%; }
.icon-circle {
  width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 18px;
  display: grid; place-items: center; background: var(--red-soft); color: var(--red); transition: .3s;
}
.icon-circle svg { width: 34px; height: 34px; }
.feature:hover .icon-circle { background: var(--red); color: var(--white); transform: rotateY(180deg); }
.feature h3 { font-size: 1.25rem; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: .92rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 46px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--red) 0 10px, transparent 10px 20px); opacity: .4;
}
.step { text-align: center; position: relative; }
.step-num {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 18px; position: relative;
  display: grid; place-items: center; background: var(--white); color: var(--red);
  border: 2px solid var(--red); box-shadow: 0 0 0 8px var(--red-tint);
}
.step-num svg { width: 38px; height: 38px; }
.step-num b {
  position: absolute; top: -4px; right: -4px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--red); color: var(--white); font-size: .85rem; display: grid; place-items: center;
}
.step h4 { font-size: 1.15rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .9rem; }

/* ---------- Image with fallback ---------- */
.img-frame { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); background: linear-gradient(135deg, var(--red-light), var(--red-deep)); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; }
.img-fallback {
  display: grid; place-items: center; width: 100%; height: 100%; min-height: 260px; color: rgba(255,255,255,.9);
  background: radial-gradient(circle at 30% 30%, var(--red-light), var(--red-deep));
}
.img-fallback svg { width: 70px; height: 70px; opacity: .8; }

.about-media { position: relative; }
.about-media .img-frame { aspect-ratio: 4 / 5; }
.about-media .badge-float {
  position: absolute; bottom: 30px; left: -24px; background: var(--white); border-radius: 16px;
  padding: 16px 22px; box-shadow: var(--shadow-lg); display: flex; gap: 14px; align-items: center;
}
.badge-float strong { font-family: var(--font-head); font-size: 1.9rem; color: var(--red); line-height: 1; }
.badge-float small { color: var(--muted); font-size: .8rem; display: block; }
.checklist li { padding-left: 34px; position: relative; margin-bottom: 12px; color: var(--muted); }
.checklist li::before {
  content: "\2665"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--red); color: var(--white); font-size: .7rem; display: grid; place-items: center;
}
.about-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 16px; }
.about-copy h2 span { color: var(--red); }
.about-copy p { color: var(--muted); margin-bottom: 18px; }
.about-copy .script { font-family: var(--font-script); color: var(--red); font-size: 2rem; line-height: 1; display: block; }

/* ---------- Profile cards ---------- */
.profile-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  transition: all .3s ease; display: flex; flex-direction: column;
}
.profile-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.profile-photo {
  aspect-ratio: 1 / 1; position: relative; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 30% 25%, var(--red-light), var(--red-deep));
}
.profile-photo .initials { font-family: var(--font-head); font-size: 3.4rem; color: var(--white); letter-spacing: 2px; }
.profile-photo .ring {
  position: absolute; width: 150%; height: 150%; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18); box-shadow: inset 0 0 0 40px rgba(255,255,255,.04);
}
.profile-photo .tag {
  position: absolute; top: 12px; left: 12px; background: var(--white); color: var(--red);
  font-size: .7rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; letter-spacing: .5px;
}
.profile-photo .verified {
  position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--white); color: var(--red); display: grid; place-items: center;
}
.profile-photo .verified svg { width: 16px; height: 16px; }
.profile-body { padding: 18px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.profile-body h4 { font-size: 1.15rem; }
.profile-body .meta { color: var(--muted); font-size: .84rem; margin: 4px 0 12px; }
.profile-body ul { font-size: .84rem; color: var(--ink); margin-bottom: 16px; }
.profile-body ul li { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.profile-body ul li span { color: var(--muted); }
.profile-actions { display: flex; gap: 8px; margin-top: auto; }
.profile-actions .btn { flex: 1; padding: 9px 12px; font-size: .82rem; }
.heart-btn.sent { background: var(--red); color: var(--white); }

/* ---------- Find Rishta page layout ---------- */
.finder { display: grid; grid-template-columns: 290px 1fr; gap: 30px; align-items: start; }
.filter-box {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; position: sticky; top: 100px; box-shadow: var(--shadow);
}
.filter-box h3 { font-size: 1.3rem; color: var(--red); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.filter-box .form-group { margin-bottom: 14px; }
.results-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 22px; padding: 14px 20px; background: var(--red-tint); border-radius: 12px;
}
.results-bar strong { color: var(--red); }
.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state h3 { color: var(--red); margin-bottom: 8px; }

/* ---------- Stats ---------- */
.stats {
  background: linear-gradient(135deg, var(--red-dark), var(--red-light)); color: var(--white);
  padding: 60px 0; position: relative; overflow: hidden;
}
.stats::before {
  content: "\2665"; position: absolute; font-size: 380px; right: -60px; top: -120px; opacity: .06; line-height: 1;
}
.stats .grid-4 { text-align: center; }
.stat strong { font-family: var(--font-head); font-size: 2.8rem; display: block; line-height: 1.1; }
.stat span { opacity: .88; font-size: .95rem; }

/* ---------- Stories ---------- */
.story-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: .3s; display: flex; flex-direction: column;
}
.story-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.story-card .img-frame { border-radius: 0; box-shadow: none; aspect-ratio: 4 / 3; }
.story-body { padding: 24px; position: relative; flex: 1; }
.story-body .quote {
  position: absolute; top: -26px; right: 22px; width: 52px; height: 52px; border-radius: 50%;
  background: var(--red); color: var(--white); display: grid; place-items: center;
  font-family: var(--font-head); font-size: 2rem; line-height: 1; box-shadow: var(--shadow);
}
.story-body h4 { font-size: 1.2rem; color: var(--red); }
.story-body .date { font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
.story-body p { color: var(--muted); font-size: .92rem; font-style: italic; }

/* ---------- Testimonial slider ---------- */
.slider { max-width: 760px; margin: 0 auto; position: relative; text-align: center; }
.slide { display: none; animation: fadeIn .6s ease; }
.slide.active { display: block; }
.slide p { font-family: var(--font-head); font-size: 1.35rem; font-style: italic; color: var(--ink); margin-bottom: 20px; }
.slide .who { display: flex; align-items: center; justify-content: center; gap: 12px; }
.slide .who .av {
  width: 52px; height: 52px; border-radius: 50%; background: var(--red); color: var(--white);
  display: grid; place-items: center; font-weight: 600;
}
.slide .who strong { display: block; text-align: left; }
.slide .who small { color: var(--muted); }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.dots button { width: 10px; height: 10px; border-radius: 10px; border: 0; background: var(--line); cursor: pointer; transition: .3s; }
.dots button.active { width: 30px; background: var(--red); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 14px; }
.gallery .img-frame { border-radius: 14px; box-shadow: none; }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }
.gallery .img-frame img { transition: transform .6s; }
.gallery .img-frame:hover img { transform: scale(1.08); }

/* ---------- CTA ---------- */
.cta {
  position: relative; border-radius: 26px; overflow: hidden; color: var(--white); text-align: center;
  padding: 70px 30px;
  background:
    linear-gradient(135deg, rgba(109, 7, 21, .93), rgba(200, 16, 46, .85)),
    url("../images/models/rishta-couple-city-bridge.jpg") center 35%/cover,
    var(--red);
}
.cta .script { font-family: var(--font-script); font-size: 2.2rem; color: #ffd7dc; display: block; line-height: 1; }
.cta h2 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 8px 0 14px; }
.cta p { opacity: .9; max-width: 560px; margin: 0 auto 28px; }
.cta .hero-btns { justify-content: center; }

/* ---------- Pricing / plans ---------- */
.plan {
  border: 1.5px solid var(--line); border-radius: 20px; padding: 36px 28px; text-align: center;
  background: var(--white); transition: .3s; position: relative;
}
.plan:hover { box-shadow: var(--shadow); transform: translateY(-6px); }
.plan.popular { border-color: var(--red); box-shadow: var(--shadow-lg); }
.plan.popular::before {
  content: "Most Loved"; position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: var(--white); font-size: .75rem; font-weight: 600; padding: 5px 16px; border-radius: 20px;
}
.plan h3 { font-size: 1.4rem; }
.plan .price { font-family: var(--font-head); font-size: 2.6rem; color: var(--red); margin: 12px 0 4px; }
.plan .price small { font-size: .9rem; color: var(--muted); font-family: var(--font-body); }
.plan ul { text-align: left; margin: 22px 0 26px; }
.plan ul li { padding: 8px 0 8px 28px; position: relative; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.plan ul li::before { content: "\2665"; position: absolute; left: 4px; color: var(--red); }

/* ---------- Auth pages ---------- */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--white); }
.auth-side {
  color: var(--white); padding: 50px 44px; display: flex; flex-direction: column; justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(109, 7, 21, .35), rgba(109, 7, 21, .92)),
    url("../images/models/rishta-woman-pink-dupatta-800.jpg") 58% center/cover,
    linear-gradient(135deg, var(--red-light), var(--red-deep));
}
.auth-side .script { font-family: var(--font-script); font-size: 2.3rem; color: #ffd7dc; line-height: 1; }
.auth-side h2 { color: var(--white); font-size: 2rem; margin: 6px 0 12px; }
.auth-side p { opacity: .9; }
.auth-form { padding: 50px 44px; }
.auth-form h2 { font-size: 2rem; margin-bottom: 4px; }
.auth-form h2 span { color: var(--red); }
.auth-form .lead { color: var(--muted); margin-bottom: 26px; }
.auth-form .form-group { margin-bottom: 14px; }
.auth-switch { text-align: center; margin-top: 18px; font-size: .9rem; color: var(--muted); }
.step-indicator { display: flex; gap: 8px; margin-bottom: 22px; }
.step-indicator span { flex: 1; height: 5px; border-radius: 5px; background: var(--line); transition: .3s; }
.step-indicator span.on { background: var(--red); }
.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn .4s ease; }
.form-nav { display: flex; gap: 12px; margin-top: 18px; }
.form-nav .btn { flex: 1; }

/* ---------- Contact ---------- */
.contact-info { display: grid; gap: 18px; }
.info-item {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); transition: .3s;
}
.info-item:hover { box-shadow: var(--shadow); border-color: transparent; }
.info-item .icon-circle { width: 54px; height: 54px; margin: 0; flex-shrink: 0; }
.info-item .icon-circle svg { width: 24px; height: 24px; }
.info-item h4 { font-size: 1.1rem; margin-bottom: 2px; }
.info-item p { color: var(--muted); font-size: .9rem; }
.contact-form { background: var(--white); border-radius: 22px; padding: 38px; box-shadow: var(--shadow-lg); }
.contact-form h3 { font-size: 1.7rem; margin-bottom: 18px; }
.contact-form h3 span { color: var(--red); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; background: var(--white); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; padding: 18px 22px; cursor: pointer;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-q::after { content: "+"; font-size: 1.5rem; color: var(--red); transition: .3s; line-height: 1; }
.faq-item.open .faq-q { color: var(--red); }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 22px 18px; color: var(--muted); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 140%); z-index: 999;
  background: var(--red); color: var(--white); padding: 14px 26px; border-radius: 50px;
  box-shadow: var(--shadow-lg); font-weight: 500; transition: transform .4s ease; max-width: 90vw; text-align: center;
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- Footer ---------- */
.footer { background: #1d0b0e; color: #cdb7ba; padding-top: 70px; position: relative; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--red-dark), var(--red-light), var(--red-dark)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer .logo-text strong em { color: var(--white); }
.footer .logo-text small { color: #cdb7ba; }
.footer p { font-size: .9rem; margin-top: 16px; }
.footer h4 { color: var(--white); font-size: 1.15rem; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 2px; background: var(--red-light); }
.footer ul li { margin-bottom: 10px; font-size: .9rem; }
.footer a { color: #cdb7ba; }
.footer a:hover { color: var(--white); padding-left: 4px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: var(--white); transition: .3s;
}
.socials a:hover { background: var(--red); padding-left: 0; transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; }
.newsletter { display: flex; margin-top: 12px; background: rgba(255,255,255,.08); border-radius: 50px; padding: 4px; }
.newsletter input { flex: 1; min-width: 0; background: none; border: 0; padding: 10px 14px; color: var(--white); outline: none; font-family: var(--font-body); }
.newsletter button { padding: 9px 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 50px; padding: 20px 0; text-align: center; font-size: .85rem; }
.footer-bottom span { color: var(--red-light); }

/* Back to top */
.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--red); color: var(--white); cursor: pointer; box-shadow: var(--shadow-lg); z-index: 90;
  opacity: 0; visibility: hidden; transform: translateY(20px); transition: .3s; font-size: 1.2rem;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4, .gallery { grid-template-columns: repeat(2, 1fr); }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
}
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; top: 78px; left: 0; right: 0; background: var(--white); flex-direction: column;
    align-items: stretch; padding: 16px 20px 24px; gap: 4px; box-shadow: 0 20px 30px rgba(0,0,0,.08);
    transform: translateY(-130%); transition: transform .35s ease; z-index: -1;
  }
  .nav.open { transform: none; }
  .nav a { padding: 12px 16px; }
  .nav .btn { margin: 8px 0 0; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .hero .container, .grid-2, .auth-wrap { grid-template-columns: 1fr; }
  .hero .container { padding-top: 40px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .finder { grid-template-columns: 1fr; }
  .filter-box { position: static; }
  .auth-side { min-height: 280px; }
  .about-media .badge-float { left: 16px; }
}
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .topbar .container { justify-content: center; }
  .topbar .tb-right { display: none; }
  .grid-3, .grid-4, .results-grid, .footer-grid, .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .gallery .wide { grid-column: span 2; }
  .search-card, .auth-form, .auth-side, .contact-form { padding: 26px 20px; }
  .logo-text strong { font-size: 1.3rem; }
  .logo img { width: 42px; height: 42px; }
  .hero-trust { gap: 18px; }
  .slide p { font-size: 1.1rem; }
}

/* ============================================================
   v2 — Jasmine & red rose animations
   ============================================================ */
.petals { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.petal {
  position: absolute; top: -40px; display: block;
  animation: petalFall linear infinite;
}
.petal img { display: block; animation: petalSpin ease-in-out infinite alternate; filter: drop-shadow(0 2px 3px rgba(0,0,0,.18)); }
@keyframes petalFall {
  0%   { transform: translate(0, 0); opacity: 0; }
  8%   { opacity: 1; }
  25%  { transform: translate(28px, 180px); }
  50%  { transform: translate(-18px, 360px); }
  75%  { transform: translate(32px, 540px); }
  92%  { opacity: .9; }
  100% { transform: translate(-10px, 760px); opacity: 0; }
}
@keyframes petalSpin {
  from { transform: rotate(-35deg) rotateX(0deg) scale(1); }
  to   { transform: rotate(160deg) rotateX(55deg) scale(.85); }
}
.page-banner .petal, .footer .petal { animation-name: petalFallShort; }
@keyframes petalFallShort {
  0%   { transform: translate(0, 0); opacity: 0; }
  10%  { opacity: 1; }
  50%  { transform: translate(-20px, 240px); }
  100% { transform: translate(15px, 540px); opacity: 0; }
}

/* Garland of jasmine buds ending in a red rose (gajra / toran) */
.garland { position: absolute; top: 0; left: 0; right: 0; height: 0; z-index: 1; pointer-events: none; }
.garland::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 10px;
  background: repeating-linear-gradient(90deg, #fff 0 9px, #f3eedd 9px 12px);
  border-bottom: 2px solid #2f7d3a; box-shadow: 0 3px 8px rgba(0,0,0,.25);
}
.strand {
  position: absolute; top: 6px; width: 20px; margin-left: -10px; display: flex; flex-direction: column; align-items: center;
  transform-origin: top center; animation: swing ease-in-out infinite alternate;
}
.strand::before {
  content: ""; position: absolute; top: 0; bottom: 18px; left: 50%; width: 1.5px; background: #2f7d3a; opacity: .8;
}
.strand .bud { width: 16px; height: 16px; margin-top: 2px; position: relative; filter: drop-shadow(0 1px 2px rgba(0,0,0,.3)); }
.strand .end-rose { width: 28px; height: 28px; margin-top: 2px; position: relative; filter: drop-shadow(0 3px 4px rgba(0,0,0,.35)); }
@keyframes swing { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }

/* Blooming roses that open when scrolled into view */
.bloom { opacity: 0; transform: scale(.2) rotate(-90deg); transition: opacity .9s ease, transform 1.4s cubic-bezier(.2,.9,.3,1.3); }
.bloom.visible { opacity: 1; transform: scale(1) rotate(0); }
.bloom.visible img { animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 0%,100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.06) rotate(4deg); } }

.rose-corner { position: absolute; width: 120px; z-index: 3; pointer-events: none; }
.rose-corner img { width: 100%; height: auto; filter: drop-shadow(0 8px 14px rgba(0,0,0,.25)); }
.rose-corner img.j { position: absolute; width: 42%; }
.search-card .rose-corner.tl { top: -48px; left: -46px; }
.search-card .rose-corner.br { bottom: -40px; right: -38px; width: 92px; }
.rose-corner .j1 { right: -22%; top: 8%; }
.rose-corner .j2 { left: 18%; bottom: -24%; }

.divider img { width: 28px; height: 28px; animation: breathe 4s ease-in-out infinite; }

/* Decorative jasmine string */
.jasmine-line {
  height: 22px; margin: 0 auto; max-width: 320px;
  background: url("../images/jasmine.svg") center/22px 22px repeat-x; opacity: .9;
}

@media (prefers-reduced-motion: reduce) {
  .petal, .strand, .bloom.visible img, .divider img { animation: none !important; }
}

/* ============================================================
   v2 — Members, locks, alerts, dashboard
   ============================================================ */
.h4 { font-size: 1.15rem; }
.footer h2.h4 { color: var(--white); font-size: 1.15rem; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer h2.h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 2px; background: var(--red-light); }
.footer { overflow: hidden; }
.footer .container { position: relative; z-index: 2; }
.nav-mobile-only { display: none; }
.inline-form { display: contents; }
.profile-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.btn.sent { background: var(--red-soft); color: var(--red); box-shadow: none; cursor: default; }

.flash-wrap { padding-top: 18px; }
.alert {
  padding: 14px 20px; border-radius: 12px; margin-bottom: 10px; font-weight: 500; cursor: pointer;
  border-left: 5px solid; transition: opacity .5s, transform .5s; animation: fadeIn .4s ease;
}
.alert.hide { opacity: 0; transform: translateY(-10px); pointer-events: none; height: 0; padding: 0; margin: 0; overflow: hidden; }
.alert-success { background: #eef9f0; color: #1f6b2c; border-color: #2f9e44; }
.alert-error   { background: var(--red-soft); color: var(--red-dark); border-color: var(--red); }
.alert-info    { background: #fff8e8; color: #7a5600; border-color: var(--gold); }
.form-errors { background: var(--red-soft); color: var(--red-dark); border-radius: 12px; padding: 14px 18px; margin-bottom: 18px; font-size: .9rem; }
.form-errors li { list-style: disc; margin-left: 18px; }

/* Locked content for guests */
.locked-wrap { position: relative; }
.locked-wrap .locked-grid { filter: blur(2px); opacity: .55; pointer-events: none; user-select: none; }
.locked-wrap .lock-panel { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, 92%); z-index: 5; }
.lock-panel {
  background: var(--white); border-radius: 22px; padding: 38px 30px; text-align: center; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.lock-panel h3 { font-size: 1.6rem; color: var(--red); margin: 10px 0 8px; }
.lock-panel p { color: var(--muted); margin-bottom: 22px; }
.lock-badge {
  width: 74px; height: 74px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--red-light), var(--red-dark)); color: var(--white);
  box-shadow: 0 0 0 10px var(--red-soft);
}
.lock-badge svg { width: 32px; height: 32px; }
.locked-card .lock-icon { position: relative; color: rgba(255,255,255,.85); }
.locked-card .lock-icon svg { width: 54px; height: 54px; }
.sk { display: block; height: 11px; border-radius: 6px; background: var(--line); margin-bottom: 12px; }
.sk-title { height: 16px; width: 60%; }
.sk-short { width: 40%; }

/* Profile detail page */
.profile-detail { display: grid; grid-template-columns: 340px 1fr; gap: 34px; align-items: start; }
.pd-photo { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); }
.pd-photo .profile-photo .initials { font-size: 5rem; }
.pd-side { position: sticky; top: 100px; }
.pd-side .profile-actions { margin-top: 18px; flex-direction: column; }
.pd-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 22px; }
.pd-card h2 { font-size: 1.35rem; color: var(--red); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.pd-card h2 img { width: 24px; height: 24px; }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.pd-grid div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.pd-grid div span { color: var(--muted); }
.pd-head h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.pd-head .meta { color: var(--muted); margin: 4px 0 20px; }
.contact-locked { display: flex; gap: 14px; align-items: center; background: var(--red-tint); border-radius: 12px; padding: 16px; color: var(--muted); }
.contact-locked svg { width: 30px; height: 30px; color: var(--red); flex-shrink: 0; }

/* Dashboard */
.dash { display: grid; grid-template-columns: 280px 1fr; gap: 30px; align-items: start; }
.dash-side { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: sticky; top: 100px; }
.dash-user { padding: 26px 20px; text-align: center; background: linear-gradient(135deg, var(--red-dark), var(--red-light)); color: var(--white); }
.dash-user .av { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 12px; overflow: hidden; border: 4px solid rgba(255,255,255,.5); background: var(--red-deep); display: grid; place-items: center; font-family: var(--font-head); font-size: 2rem; }
.dash-user .av img { width: 100%; height: 100%; object-fit: cover; }
.dash-user strong { display: block; font-size: 1.1rem; }
.dash-user small { opacity: .85; }
.tabs { display: flex; flex-direction: column; padding: 10px; }
.tabs button, .tabs a {
  text-align: left; background: none; border: 0; padding: 12px 16px; border-radius: 10px; cursor: pointer;
  font-family: var(--font-body); font-size: .95rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center;
}
.tabs button:hover, .tabs button.active, .tabs a:hover { background: var(--red-soft); color: var(--red); font-weight: 600; }
.tabs .count { background: var(--red); color: var(--white); border-radius: 20px; font-size: .72rem; padding: 2px 9px; }
.tab-panel h2 { font-size: 1.6rem; margin-bottom: 18px; }
.tab-panel h2 span { color: var(--red); }
.req-list { display: grid; gap: 14px; }
.req {
  display: flex; gap: 16px; align-items: center; background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 18px; flex-wrap: wrap;
}
.req .mini { width: 58px; height: 58px; border-radius: 50%; overflow: hidden; flex-shrink: 0; display: grid; place-items: center; color: var(--white); font-family: var(--font-head); background: radial-gradient(circle at 30% 25%, var(--red-light), var(--red-deep)); }
.req .mini img { width: 100%; height: 100%; object-fit: cover; }
.req .info { flex: 1; min-width: 180px; }
.req .info strong { display: block; }
.req .info small { color: var(--muted); }
.req .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.req .acts .btn { padding: 8px 18px; font-size: .84rem; }
.pill { display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: .75rem; font-weight: 600; }
.pill-pending { background: #fff4d6; color: #8a6200; }
.pill-accepted { background: #e5f6e8; color: #1f6b2c; }
.pill-declined { background: #f1f1f1; color: #777; }
.empty-note { text-align: center; color: var(--muted); padding: 40px 20px; border: 2px dashed var(--line); border-radius: 16px; }

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 12px; border-radius: 21px; display: grid; place-items: center; border: 1.5px solid var(--line); color: var(--ink); font-weight: 500; }
.pagination a:hover { border-color: var(--red); color: var(--red); }
.pagination .current { background: var(--red); border-color: var(--red); color: var(--white); }

/* Community SEO pages */
.seo-copy { max-width: 860px; margin: 0 auto; }
.seo-copy h2 { font-size: 1.7rem; margin: 30px 0 12px; }
.seo-copy h2 span { color: var(--red); }
.seo-copy p { color: var(--muted); margin-bottom: 14px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { padding: 8px 18px; border-radius: 30px; border: 1.5px solid var(--line); color: var(--ink); font-size: .9rem; background: var(--white); }
.chip:hover { border-color: var(--red); color: var(--red); }
.legal { max-width: 860px; margin: 0 auto; }
.legal h2 { font-size: 1.4rem; margin: 26px 0 10px; color: var(--red); }
.legal p, .legal li { color: var(--muted); margin-bottom: 10px; }
.legal ul li { list-style: disc; margin-left: 22px; }

@media (max-width: 900px) {
  .nav-mobile-only { display: block; }
  .profile-detail, .dash { grid-template-columns: 1fr; }
  .pd-side, .dash-side { position: static; }
  .search-card .rose-corner.tl { top: -34px; left: -10px; width: 90px; }
  .search-card .rose-corner.br { right: -6px; }
}
@media (max-width: 600px) {
  .pd-grid { grid-template-columns: 1fr; }
  .garland::before { height: 8px; }
  .locked-wrap .locked-grid { display: none; }
  .locked-wrap .lock-panel { position: static; transform: none; width: 100%; }
}

/* ============================================================
   v3 — Rishta Chat
   ============================================================ */
.nav-badge { background: var(--white); color: var(--red); border-radius: 20px; font-size: .7rem; font-weight: 700; padding: 1px 7px; margin-left: 4px; }
.nav a:not(.btn) .nav-badge { background: var(--red); color: var(--white); }

.request-box { display: flex; flex-direction: column; gap: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.request-box label { font-weight: 600; color: var(--red); font-size: .95rem; }
.request-box textarea { min-height: 96px; font-size: .9rem; }
.request-box small { color: var(--muted); font-size: .78rem; }

.chat-section { padding: 30px 0 40px; background: var(--red-tint); }
.chat-app {
  display: grid; grid-template-columns: 340px 1fr; height: calc(100vh - 190px); min-height: 520px;
  background: var(--white); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.chat-safety { text-align: center; color: var(--muted); font-size: .8rem; margin-top: 14px; }

/* Sidebar */
.chat-side { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: #fffafb; }
.chat-side-head { padding: 18px 16px 12px; background: linear-gradient(135deg, var(--red-dark), var(--red-light)); color: var(--white); }
.chat-side-head h1 { color: var(--white); font-size: 1.4rem; margin-bottom: 12px; }
.chat-tabs { display: flex; background: rgba(255,255,255,.15); border-radius: 12px; padding: 4px; margin-bottom: 12px; }
.chat-tabs button { flex: 1; border: 0; background: none; color: #ffe3e7; padding: 8px; border-radius: 9px; cursor: pointer; font-family: var(--font-body); font-weight: 500; font-size: .9rem; }
.chat-tabs button.active { background: var(--white); color: var(--red); font-weight: 600; }
.chat-tabs .badge { background: var(--white); color: var(--red); }
.chat-tabs button.active .badge { background: var(--red); color: var(--white); }
.chat-search { width: 100%; border: 0; border-radius: 10px; padding: 10px 14px; font-family: var(--font-body); font-size: .9rem; outline: none; }
.chat-pane { flex: 1; overflow-y: auto; padding: 8px; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: var(--white); font-size: .7rem; font-weight: 700; }

.conv { width: 100%; display: flex; gap: 12px; align-items: center; padding: 11px 12px; border: 0; background: none; border-radius: 14px; cursor: pointer; text-align: left; font-family: var(--font-body); transition: background .2s; }
.conv:hover { background: var(--red-soft); }
.conv.active { background: var(--white); box-shadow: 0 4px 14px rgba(158,11,31,.12); }
.conv.support { border-bottom: 1px dashed var(--line); border-radius: 14px 14px 0 0; margin-bottom: 4px; }
.conv-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.conv-mid strong { font-size: .95rem; color: var(--ink); }
.conv-mid strong .tick { color: var(--red); font-style: normal; font-size: .8rem; }
.conv-mid small { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv.unread .conv-mid small { color: var(--ink); font-weight: 600; }
.conv-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.conv-right small { color: var(--muted); font-size: .72rem; }
.conv-tip { color: var(--muted); font-size: .85rem; padding: 18px 14px; text-align: center; line-height: 1.6; }
.pane-label { font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 600; padding: 10px 8px 6px; }

.chat-av { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; overflow: hidden; display: grid; place-items: center; color: var(--white); font-family: var(--font-head); font-size: 1rem; background: radial-gradient(circle at 30% 25%, var(--red-light), var(--red-deep)); }
.chat-av img { width: 100%; height: 100%; object-fit: cover; }
.conv.support .chat-av, .chat-av img[src$="logo.svg"] { background: var(--white); }

.req-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 10px; }
.req-top { display: flex; gap: 10px; align-items: center; }
.req-top div { flex: 1; min-width: 0; }
.req-top strong { display: block; }
.req-top small { color: var(--muted); font-size: .78rem; }
.req-note { background: var(--red-tint); border-left: 3px solid var(--red); border-radius: 8px; padding: 10px 12px; margin: 10px 0 0; font-size: .88rem; font-style: italic; color: var(--ink); }
.req-acts { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.req-acts .btn { padding: 8px 14px; font-size: .8rem; }
.req-acts .btn-red { flex: 1; }
.wait-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font-family: var(--font-body); text-decoration: underline; font-size: .8rem; }

/* Conversation */
.chat-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; position: relative; }
.chat-empty { margin: auto; text-align: center; max-width: 420px; padding: 30px; }
.chat-empty img { margin: 0 auto 16px; animation: breathe 4s ease-in-out infinite; }
.chat-empty h2 { font-size: 1.6rem; color: var(--red); margin-bottom: 8px; }
.chat-empty p { color: var(--muted); margin-bottom: 20px; }
.chat-window { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.chat-window[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--white); }
.chat-peer { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-peer strong { font-size: 1.05rem; }
.chat-peer small { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-profile { padding: 8px 16px; font-size: .82rem; }
.chat-back { display: none; border: 0; background: var(--red-soft); color: var(--red); width: 38px; height: 38px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; }

.chat-msgs {
  flex: 1; overflow-y: auto; padding: 20px 22px; display: flex; flex-direction: column; gap: 6px;
  background:
    url("../images/jasmine.svg") 30px 40px / 34px no-repeat,
    url("../images/rose-petal.svg") calc(100% - 40px) 70% / 30px no-repeat,
    radial-gradient(circle at 20% 10%, #fff 0, transparent 40%),
    #fdf3f4;
}
.day-sep { align-self: center; background: var(--white); color: var(--muted); font-size: .72rem; padding: 4px 14px; border-radius: 20px; margin: 10px 0; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.chat-hint { align-self: center; text-align: center; color: var(--red-dark); background: var(--white); border: 1px dashed var(--red); padding: 12px 20px; border-radius: 14px; font-size: .9rem; margin: auto 0; max-width: 360px; }
.msg { display: flex; animation: msgIn .25s ease; }
.msg.mine { justify-content: flex-end; }
.bubble { max-width: min(75%, 520px); padding: 9px 14px 6px; border-radius: 18px; position: relative; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.msg.theirs .bubble { background: var(--white); border-bottom-left-radius: 5px; color: var(--ink); }
.msg.mine .bubble { background: linear-gradient(135deg, var(--red-light), var(--red-dark)); color: var(--white); border-bottom-right-radius: 5px; }
.msg.pending .bubble { opacity: .65; }
.bubble .txt { white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; font-size: .93rem; }
.bubble .meta { display: block; text-align: right; font-size: .66rem; opacity: .75; margin-top: 2px; }
.bubble .seen { font-style: normal; letter-spacing: -2px; }
.bubble .seen.on { color: #ffd7dc; opacity: 1; font-weight: 700; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }

.chat-compose { display: flex; align-items: flex-end; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--white); position: relative; }
.chat-compose textarea {
  flex: 1; resize: none; border: 1.5px solid var(--line); border-radius: 22px; padding: 11px 16px; font-family: var(--font-body);
  font-size: .93rem; outline: none; max-height: 140px; line-height: 1.4;
}
.chat-compose textarea:focus { border-color: var(--red); }
.chat-send { width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; flex-shrink: 0; color: var(--white); background: linear-gradient(135deg, var(--red-light), var(--red-dark)); box-shadow: 0 6px 14px rgba(200,16,46,.35); transition: transform .2s; }
.chat-send:hover { transform: scale(1.06); }
.chat-send svg { width: 22px; height: 22px; margin-left: 3px; }
.emoji-toggle { width: 42px; height: 46px; border: 0; background: none; font-size: 1.4rem; cursor: pointer; }
.emoji-pop { position: absolute; bottom: 68px; left: 12px; background: var(--white); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 8px; display: grid; grid-template-columns: repeat(5, 40px); gap: 2px; z-index: 5; }
.emoji-pop[hidden] { display: none; }
.emoji-pop button { border: 0; background: none; font-size: 1.35rem; height: 40px; border-radius: 10px; cursor: pointer; }
.emoji-pop button:hover { background: var(--red-soft); }

@media (max-width: 860px) {
  .chat-section { padding: 0; }
  .chat-section .container { padding: 0; }
  .chat-app { grid-template-columns: 1fr; border-radius: 0; height: calc(100vh - 78px); border: 0; }
  .chat-app .chat-main { display: none; }
  .chat-app.in-chat .chat-side { display: none; }
  .chat-app.in-chat .chat-main { display: flex; }
  .chat-back { display: grid; place-items: center; }
  .chat-profile { display: none; }
  .bubble { max-width: 85%; }
  .chat-safety { padding: 0 16px 16px; }
}

/* ============================================================
   v4 — Packages
   ============================================================ */
.current-plan { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; align-items: center; background: var(--red-tint); border: 1px dashed var(--red); border-radius: 14px; padding: 14px 20px; margin-bottom: 34px; text-align: center; }
.tag-pending { background: #fff4d6; color: #8a6200; border-radius: 20px; padding: 4px 12px; font-size: .85rem; font-weight: 600; }
.plan.mine { border-color: var(--red); background: var(--red-tint); }
.plan .price small { white-space: nowrap; }
.pay-box { max-width: 680px; margin: 40px auto 0; background: var(--white); border-radius: 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 30px; text-align: center; animation: fadeIn .4s ease; }
.pay-box h3 { font-size: 1.5rem; color: var(--red); margin-bottom: 10px; }
.pay-steps { color: var(--muted); margin-bottom: 18px; }
.pay-form { display: flex; gap: 10px; flex-wrap: wrap; }
.pay-form .form-control { flex: 1; min-width: 220px; }
.plan-chip { display: inline-block; background: rgba(255,255,255,.2); border-radius: 20px; padding: 2px 10px; font-size: .75rem; margin-top: 6px; }

/* ---------- Payment page ---------- */
.pay-plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 820px; margin: 0 auto; }
.pay-pick { cursor: pointer; display: block; }
.pay-pick input { position: absolute; opacity: 0; }
.pay-pick .pick-dot { position: absolute; top: 18px; right: 18px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); background: var(--white); }
.pay-pick:has(input:checked) { border-color: var(--red); background: var(--red-tint); box-shadow: var(--shadow-lg); }
.pay-pick input:checked ~ .pick-dot { border-color: var(--red); background: var(--red); box-shadow: inset 0 0 0 4px var(--white); }
.pay-pick input:focus-visible ~ .pick-dot { outline: 3px solid var(--gold); outline-offset: 2px; }
.pay-status { max-width: 760px; margin: 0 auto 26px; border-radius: 14px; padding: 16px 20px; display: grid; gap: 4px; font-size: .92rem; }
.pay-status small { opacity: .85; }
.pay-wait { background: #fff8e8; color: #7a5600; border: 1px solid var(--gold); }
.pay-rejected { background: var(--red-soft); color: var(--red-dark); border: 1px solid var(--red); }
@media (max-width: 600px) { .pay-plans { grid-template-columns: 1fr; } .pay-box { padding: 22px 16px; } }

/* ============================================================
   v5 — Mobile & tablet app layout
   ============================================================ */
html { -webkit-text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: transparent; }
a, button, label, select, .btn { touch-action: manipulation; }
.app-tabbar, .filter-toggle { display: none; }

@media (max-width: 900px) {
  /* Compact sticky app header */
  .topbar { display: none; }
  .header .container { height: 64px; }
  .logo img { width: 40px; height: 40px; }
  .logo-text strong { font-size: 1.3rem; }
  .logo-text small { font-size: .55rem; letter-spacing: 2px; }
  .nav { top: 64px; max-height: calc(100dvh - 128px - env(safe-area-inset-bottom)); overflow-y: auto; border-radius: 0 0 22px 22px; }
  .nav a { font-size: 1rem; padding: 13px 16px; }
  body.menu-open { overflow: hidden; }
  body.menu-open::after { content: ""; position: fixed; inset: 64px 0 0; background: rgba(43, 26, 29, .35); z-index: 90; }

  /* Bottom tab bar */
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .app-tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(158, 11, 31, .08); padding-bottom: env(safe-area-inset-bottom);
  }
  .app-tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 64px; color: var(--muted); font-size: .7rem; font-weight: 500; }
  .app-tabbar svg { width: 23px; height: 23px; }
  .app-tabbar a.on { color: var(--red); font-weight: 600; }
  .app-tabbar a.on::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--red); }
  .tab-badge { position: absolute; top: 7px; left: calc(50% + 5px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: var(--white); font-size: .62rem; font-weight: 700; display: grid; place-items: center; }
  .to-top { right: 14px; bottom: calc(78px + env(safe-area-inset-bottom)); width: 42px; height: 42px; }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }

  /* 16px fields stop phones from zooming in when typing */
  input, select, textarea, .form-control { font-size: 16px !important; }

  /* Tighter spacing */
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }
  .page-banner { padding: 56px 0 72px; }
  .hero { min-height: 0; }
  .hero .container { padding-top: 36px; padding-bottom: 96px; gap: 36px; }
  .flash-wrap { padding-top: 12px; }

  /* Find Rishta: collapsible filters */
  .finder { gap: 18px; }
  .filter-box { padding: 0; box-shadow: none; overflow: hidden; }
  .filter-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; background: var(--white); border: 0; padding: 15px 18px; font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--red); cursor: pointer; }
  .filter-toggle i { width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .25s; margin-top: -5px; }
  .filter-box.open .filter-toggle i { transform: rotate(-135deg); margin-top: 5px; }
  .filter-count { background: var(--red); color: var(--white); border-radius: 10px; font-size: .72rem; padding: 1px 8px; margin-left: 6px; }
  .filter-title { display: none; }
  .filter-body { display: none; padding: 14px 18px 18px; border-top: 1px solid var(--line); }
  .filter-box.open .filter-body { display: block; animation: fadeIn .25s ease; }
  .results-bar { padding: 10px 14px; margin-bottom: 14px; }

  /* Dashboard: compact profile header + swipeable tabs */
  .dash { gap: 18px; }
  .dash-user { display: grid; grid-template-columns: 64px 1fr; gap: 2px 14px; text-align: left; padding: 16px; align-items: center; }
  .dash-user .av { width: 64px; height: 64px; margin: 0; grid-row: span 3; font-size: 1.4rem; border-width: 3px; }
  .dash-user .plan-chip { justify-self: start; }
  .tabs { flex-direction: row; overflow-x: auto; gap: 8px; padding: 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button, .tabs a { flex: 0 0 auto; white-space: nowrap; gap: 8px; border: 1.5px solid var(--line); border-radius: 30px; padding: 9px 16px; font-size: .88rem; scroll-snap-align: start; }
  .tabs button.active { border-color: var(--red); background: var(--red); color: var(--white); }
  .tabs button.active .count { background: var(--white); color: var(--red); }
  .tabs a[href^="find-rishta"], .tabs a[href^="chat.php"] { display: none; } /* already in the tab bar */
  .tab-panel h2 { font-size: 1.4rem; }

  /* Profile page */
  .profile-detail { gap: 20px; }
  .pd-photo { max-width: 380px; margin: 0 auto; }
  .pd-card { padding: 20px 18px; }

  /* Chat fills the screen like a messaging app */
  .page-chat .footer, .page-chat .chat-safety { display: none; }
  .page-chat .chat-app { height: calc(100dvh - 128px - env(safe-area-inset-bottom)); min-height: 0; }
  body.page-chat:has(.chat-app.in-chat) { padding-bottom: 0; }
  body.page-chat:has(.chat-app.in-chat) .app-tabbar { display: none; }
  .page-chat .chat-app.in-chat { height: calc(100dvh - 64px); }
  .chat-compose { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }

  /* Login / register */
  .auth-wrap { min-height: 0 !important; border-radius: 20px; }
  .auth-side { min-height: 0; padding: 28px 24px; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 44px 0; }
  .section-head .script, .about-copy .script, .cta .script { font-size: 1.7rem; }
  .page-banner { padding: 40px 0 60px; }
  .page-banner .script { font-size: 1.7rem; }
  .page-banner p { font-size: .93rem; }
  .btn { padding: 12px 22px; }
  .btn-lg { padding: 14px 28px; font-size: 1rem; }
  .hero-btns .btn { flex: 1 1 140px; }
  .hero .script { font-size: 1.9rem; }
  .hero p { font-size: 1rem; }

  /* Feature cards & steps as compact rows */
  .feature { padding: 20px 18px; text-align: left; display: grid; grid-template-columns: 56px 1fr; gap: 2px 14px; align-items: start; }
  .feature .icon-circle { width: 56px; height: 56px; margin: 0; grid-row: span 2; }
  .feature .icon-circle svg { width: 26px; height: 26px; }
  .feature h3 { font-size: 1.1rem; margin: 4px 0; }
  .steps { gap: 22px; }
  .step { display: grid; grid-template-columns: 70px 1fr; gap: 0 16px; text-align: left; align-items: center; }
  .step-num { width: 64px; height: 64px; margin: 0; grid-row: span 2; box-shadow: 0 0 0 5px var(--red-tint); }
  .step-num svg { width: 28px; height: 28px; }
  .step-num b { width: 24px; height: 24px; font-size: .75rem; }
  .stats { padding: 44px 0; }
  .stats .grid-4 { grid-template-columns: 1fr 1fr; gap: 26px 12px; }
  .stat strong { font-size: 2.1rem; }

  /* Profile cards become compact list rows */
  .results-grid, .grid-4 { gap: 12px; }
  .results-grid .profile-card, .grid-4 .profile-card:not(.locked-card) { flex-direction: row; }
  .results-grid .profile-photo, .grid-4 .profile-card .profile-photo { flex: 0 0 36%; aspect-ratio: auto; min-height: 196px; }
  .results-grid .profile-photo .initials, .grid-4 .profile-photo .initials { font-size: 2rem; }
  .results-grid .profile-photo .tag, .grid-4 .profile-photo .tag { top: 8px; left: 8px; font-size: .6rem; padding: 3px 7px; }
  .results-grid .profile-photo .verified, .grid-4 .profile-photo .verified { top: 8px; right: 8px; width: 22px; height: 22px; }
  .results-grid .profile-body, .grid-4 .profile-body { padding: 12px 12px 12px 14px; min-width: 0; }
  .profile-body h3 { font-size: 1.05rem; }
  .profile-body .meta { font-size: .76rem; margin: 2px 0 6px; line-height: 1.4; }
  .profile-body ul { font-size: .76rem; margin-bottom: 10px; }
  .profile-body ul li { padding: 3px 0; gap: 8px; text-align: right; }
  .profile-body ul li:nth-child(4) { display: none; }
  .profile-actions { gap: 6px; }
  .profile-actions .btn { padding: 8px 6px; font-size: .78rem; }
  .profile-card:hover { transform: none; }

  /* Lock & payment panels */
  .lock-panel { padding: 28px 20px; }
  .lock-panel h3 { font-size: 1.35rem; }
  .lock-panel .hero-btns { flex-direction: column; }
  .lock-panel .btn { width: 100%; }
  .plan { padding: 30px 20px; }
  .plan .price { font-size: 2.2rem; }
  .current-plan { padding: 12px 14px; margin-bottom: 24px; }

  /* Login / register */
  .auth-side p, .auth-side .checklist { display: none; }
  .auth-side h1, .auth-side h2 { font-size: 1.5rem !important; margin: 4px 0 0 !important; }
  .auth-side .script { font-size: 1.8rem; }
  .auth-form { padding: 24px 18px; }
  .auth-form h1, .auth-form h2 { font-size: 1.6rem !important; }

  /* Dashboard request rows */
  .req { padding: 12px 14px; gap: 12px; }
  .req .acts { width: 100%; }
  .req .acts > * { flex: 1; }
  .req .acts .btn { width: 100%; }

  /* Contact & FAQ */
  .info-item { padding: 16px; }
  .contact-form { padding: 24px 18px; }
  .faq-q { padding: 15px 16px; font-size: .95rem; }
  .faq-a p { padding: 0 16px 15px; }

  /* Footer */
  .footer { padding-top: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .footer-grid > div:first-child, .footer-grid > div:last-child { grid-column: 1 / -1; }
  .footer ul li { font-size: .85rem; margin-bottom: 8px; }
  .footer-bottom { margin-top: 30px; padding: 16px 0; font-size: .8rem; }
}

@media (max-width: 360px) {
  .logo-text small { display: none; }
  .app-tabbar a { font-size: .64rem; }
  .results-grid .profile-photo { flex-basis: 33%; }
}

@media (max-width: 900px) { .dots button { box-sizing: content-box; border: 11px solid transparent; background-clip: content-box; } .dots { gap: 0; } }
@media (max-width: 600px) { .garland .bud:nth-child(n+3) { display: none; } .strand .end-rose { width: 22px; height: 22px; } .page-banner { padding-top: 64px; } }
.section .crumbs a { color: var(--red); }
@media (max-width: 900px) {
  .profile-detail { display: flex; flex-direction: column; gap: 16px; }
  .profile-detail > .pd-side, .profile-detail > div { display: contents; }
  .pd-photo { order: 1; width: 100%; }
  .pd-head { order: 2; text-align: center; }
  .pd-head .meta { margin-bottom: 0; }
  .pd-side .profile-actions { order: 3; margin-top: 0; }
  .pd-card { order: 4; margin-bottom: 0; }
}
@media (max-width: 600px) { .pd-photo { max-width: 300px; } }
@media (max-width: 1240px) { .about-media .badge-float { left: 14px; } }
@media (pointer: coarse) { input, select, textarea, .form-control { font-size: 16px !important; } }
@media (min-width: 601px) and (max-width: 900px) { .garland .bud:nth-child(n+4) { display: none; } .page-banner { padding-top: 96px; } }
