/*
Theme Name: Tamil Peoples Attract Matrimony
Theme URI: https://tamilpeoplesattractmatrimony.com
Description: Complete Tamil Matrimony Platform — Standalone, No Elementor Required, Built-in Demo Import, Razorpay Payments, Bilingual Tamil+English.
Version: 3.0.0
Author: Dhileep
Author URI: https://tamilpeoplesattractmatrimony.com
Text Domain: tamil-matrimony
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GPL v2 or later
*/

/* =====================================================================
   DESIGN TOKENS
   ===================================================================== */
:root {
  --primary:       #8B0A2A;
  --primary-dark:  #6B0820;
  --primary-light: #A01535;
  --gold:          #D4A017;
  --gold-dark:     #B8860B;
  --pink-bg:       #FFF0F3;
  --pink-mid:      #FFD6DE;
  --white:         #FFFFFF;
  --off-white:     #FAF8F8;
  --text:          #1A1A1A;
  --muted:         #6B7280;
  --border:        #E5E7EB;
  --success:       #16A34A;
  --warning:       #F59E0B;
  --error:         #DC2626;
  --purple:        #7C3AED;

  --font-display: 'Playfair Display', 'Noto Serif Tamil', Georgia, serif;
  --font-body:    'Lato', 'Noto Sans Tamil', 'Segoe UI', sans-serif;
  --font-tamil:   'Noto Serif Tamil', 'Noto Sans Tamil', serif;

  --r-card:  12px;
  --r-btn:   8px;
  --r-pill:  50px;
  --max-w:   1280px;

  --sh-card:  0 4px 20px rgba(139,10,42,0.10);
  --sh-hover: 0 8px 32px rgba(139,10,42,0.18);
  --sh-sm:    0 2px 8px rgba(0,0,0,0.08);

  --tr: all 0.3s ease;
}

/* =====================================================================
   RESET
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--tr); }
ul { list-style: none; }
input, select, textarea, button { font-family: var(--font-body); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); color: var(--primary); line-height: 1.3; }
h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }

.sec-title { text-align: center; margin-bottom: 10px; }
.sec-sub   { text-align: center; color: var(--muted); margin-bottom: 44px; font-size: 1rem; }
.tamil     { font-family: var(--font-tamil); }

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 26px; border-radius: var(--r-btn); font-weight: 600; font-size: 0.95rem; cursor: pointer; border: 2px solid transparent; transition: var(--tr); text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--sh-hover); }
.btn-gold { background: var(--gold); color: var(--primary); border-color: var(--gold); font-weight: 700; }
.btn-gold:hover { background: var(--gold-dark); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-green { background: var(--success); color: #fff; border-color: var(--success); }
.btn-pill { border-radius: var(--r-pill); }
.btn-full { width: 100%; }
.btn-lg { padding: 15px 34px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }

/* =====================================================================
   TOP BAR
   ===================================================================== */
.tm-topbar { background: var(--primary); color: rgba(255,255,255,0.9); height: 38px; display: flex; align-items: center; font-size: 0.8rem; }
.tm-topbar .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.tm-topbar a { color: rgba(255,255,255,0.85); font-size: 0.8rem; }
.tm-topbar a:hover { color: var(--gold); }
.topbar-right { display: flex; gap: 18px; align-items: center; }

/* =====================================================================
   HEADER
   ===================================================================== */
.tm-header { position: sticky; top: 0; z-index: 1000; background: #fff; box-shadow: 0 2px 20px rgba(139,10,42,0.1); }
.tm-header .container { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.tm-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.tm-logo svg { flex-shrink: 0; }
.logo-text .name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; color: var(--primary); display: block; line-height: 1.2; }
.logo-text .tagline { font-size: 0.68rem; color: var(--muted); font-family: var(--font-tamil); }
.tm-nav { display: flex; align-items: center; gap: 24px; }
.tm-nav a { font-size: 0.88rem; font-weight: 600; color: var(--text); font-family: var(--font-tamil); position: relative; padding: 4px 0; }
.tm-nav a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--primary); transition: var(--tr); }
.tm-nav a:hover, .tm-nav a.active { color: var(--primary); }
.tm-nav a:hover::after, .tm-nav a.active::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--primary); transition: var(--tr); }

/* Mobile Menu */
.mobile-menu { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: var(--primary); z-index: 9999; transform: translateX(-100%); transition: transform 0.35s cubic-bezier(0.77,0,0.175,1); padding: 28px 28px 40px; display: flex; flex-direction: column; overflow-y: auto; }
.mobile-menu.open { transform: translateX(0); }
.mobile-close { align-self: flex-end; background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1; margin-bottom: 20px; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 2px; }
.mobile-menu nav a { color: rgba(255,255,255,0.9); font-size: 1.1rem; font-family: var(--font-tamil); padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.12); transition: var(--tr); }
.mobile-menu nav a:hover { color: var(--gold); padding-left: 8px; }

/* =====================================================================
   HERO
   ===================================================================== */
.tm-hero { background: linear-gradient(135deg, #FFF0F3 0%, #FFE8ED 60%, #FFF8E7 100%); padding: 70px 0 60px; position: relative; overflow: hidden; }
.tm-hero::before { content: ''; position: absolute; right: 0; top: 0; width: 45%; height: 100%; background: url('assets/images/hero-couple.jpg') center/cover no-repeat; opacity: 0.18; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.hero-content h1 { font-size: clamp(1.9rem, 4vw, 3.2rem); color: var(--primary); line-height: 1.15; margin-bottom: 14px; font-family: var(--font-tamil); }
.hero-content .sub { color: var(--muted); font-size: 1.05rem; margin-bottom: 30px; font-family: var(--font-tamil); line-height: 1.7; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.stat-card { background: rgba(255,255,255,0.92); border-radius: 10px; padding: 14px 10px; text-align: center; box-shadow: var(--sh-sm); border: 1px solid rgba(139,10,42,0.08); }
.stat-num { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.stat-lbl { font-size: 0.68rem; color: var(--muted); font-family: var(--font-tamil); line-height: 1.3; }
.hero-image-wrap { position: relative; display: flex; justify-content: center; }
.hero-image-wrap img { width: 420px; height: 460px; object-fit: cover; border-radius: 60% 40% 50% 50% / 50% 50% 40% 60%; box-shadow: 0 20px 60px rgba(139,10,42,0.2); border: 5px solid var(--pink-mid); }
.hero-badge { position: absolute; bottom: 30px; left: -10px; background: #fff; border-radius: 12px; padding: 12px 18px; box-shadow: var(--sh-card); font-size: 0.82rem; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 8px; }
.hero-badge2 { position: absolute; top: 30px; right: -10px; background: var(--primary); border-radius: 12px; padding: 12px 18px; box-shadow: var(--sh-hover); font-size: 0.82rem; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 8px; }

/* =====================================================================
   SEARCH WIDGET
   ===================================================================== */
.tm-search-sec { background: var(--primary); padding: 28px 0; }
.search-box { border-radius: 14px; padding: 24px; border: 1px solid rgba(255,255,255,0.15); }
.search-label { color: #fff; font-family: var(--font-tamil); font-size: 1rem; font-weight: 600; margin-bottom: 16px; text-align: center; }
.search-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.s-field { flex: 1; min-width: 130px; }
.s-field label { display: block; color: rgba(255,255,255,0.8); font-size: 0.75rem; margin-bottom: 5px; font-family: var(--font-tamil); }
.s-field select { width: 100%; padding: 11px 14px; border-radius: 7px; border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.12); color: #fff; font-family: var(--font-tamil); font-size: 0.88rem; cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.s-field select option { background: var(--primary-dark); }
.search-btn { background: var(--gold); color: var(--primary); border: none; padding: 12px 26px; border-radius: 7px; font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: var(--tr); white-space: nowrap; display: flex; align-items: center; gap: 7px; }
.search-btn:hover { background: var(--gold-dark); color: #fff; transform: translateY(-2px); }

/* =====================================================================
   ABOUT
   ===================================================================== */
.tm-about { padding: 80px 0; }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img-wrap { position: relative; }
.about-img-circle { width: 360px; height: 360px; border-radius: 50%; object-fit: cover; border: 6px solid var(--pink-mid); box-shadow: 0 0 0 16px rgba(139,10,42,0.07); }
.about-badge-tag { display: inline-block; background: var(--pink-bg); color: var(--primary); border: 1px solid var(--pink-mid); border-radius: 50px; padding: 5px 16px; font-size: 0.78rem; font-weight: 600; margin-bottom: 14px; font-family: var(--font-tamil); }
.about-text h2 { margin-bottom: 14px; }
.about-text p { color: var(--muted); line-height: 1.8; margin-bottom: 24px; font-family: var(--font-tamil); }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feat-item { display: flex; align-items: center; gap: 10px; }
.feat-icon { width: 42px; height: 42px; background: var(--pink-bg); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.feat-lbl { font-size: 0.86rem; font-weight: 600; font-family: var(--font-tamil); }

/* =====================================================================
   COMMUNITY CAROUSEL
   ===================================================================== */
.tm-community { padding: 70px 0; background: var(--pink-bg); }
.comm-wrap { position: relative; padding: 0 36px; }
.comm-track-outer { overflow: hidden; }
.comm-track { display: flex; gap: 18px; transition: transform 0.4s ease; }
.comm-item { flex: 0 0 calc(12.5% - 16px); text-align: center; cursor: pointer; }
.comm-circle { width: 88px; height: 88px; border-radius: 50%; background: #fff; box-shadow: var(--sh-card); display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; font-size: 2rem; border: 3px solid transparent; transition: var(--tr); }
.comm-item:hover .comm-circle { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--sh-hover); }
.comm-name { font-size: 0.78rem; font-weight: 600; font-family: var(--font-tamil); }
.carr-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 2px solid var(--primary); color: var(--primary); font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 10; transition: var(--tr); box-shadow: var(--sh-sm); }
.carr-btn:hover { background: var(--primary); color: #fff; }
.carr-prev { left: -2px; }
.carr-next { right: -2px; }

/* =====================================================================
   PROFILE CARDS
   ===================================================================== */
.tm-profiles { padding: 80px 0; }
.profile-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 18px; margin-bottom: 36px; }
.profile-card { border-radius: var(--r-card); overflow: hidden; box-shadow: var(--sh-card); border: 1px solid var(--border); transition: var(--tr); background: #fff; cursor: pointer; }
.profile-card:hover { transform: translateY(-6px); box-shadow: var(--sh-hover); }
.pc-img { position: relative; aspect-ratio: 3/4; overflow: hidden; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.profile-card:hover .pc-img img { transform: scale(1.05); }
.pc-badge { position: absolute; top: 8px; left: 8px; background: var(--gold); color: var(--primary); font-size: 0.6rem; font-weight: 700; padding: 3px 7px; border-radius: 4px; text-transform: uppercase; }
.pc-heart { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.9); border: none; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; cursor: pointer; transition: var(--tr); color: var(--primary); }
.pc-heart:hover, .pc-heart.active { background: var(--primary); color: #fff; }
.pc-info { padding: 12px; }
.pc-name { font-size: 0.88rem; font-weight: 700; }
.pc-age, .pc-job { font-size: 0.73rem; color: var(--muted); margin-top: 2px; }
.verified-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 0.68rem; color: var(--success); font-weight: 600; margin-top: 5px; }

/* =====================================================================
   SUCCESS STORIES
   ===================================================================== */
.tm-stories { padding: 80px 0; background: var(--pink-bg); }
.stories-inner { display: grid; grid-template-columns: 2fr 1fr; gap: 36px; }
.stories-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.story-card { border-radius: var(--r-card); overflow: hidden; box-shadow: var(--sh-card); background: #fff; }
.story-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.story-info { padding: 14px; text-align: center; }
.story-names { font-weight: 700; font-size: 0.9rem; font-family: var(--font-tamil); }
.story-heart { color: var(--primary); margin: 0 4px; }
.story-date, .story-loc { font-size: 0.73rem; color: var(--muted); margin-top: 3px; }
.testi-box { background: #fff; border-radius: var(--r-card); padding: 26px; box-shadow: var(--sh-card); }
.quote-icon { font-size: 2.5rem; color: var(--pink-mid); line-height: 1; margin-bottom: 10px; }
.testi-text { font-style: italic; color: var(--muted); line-height: 1.7; font-family: var(--font-tamil); font-size: 0.9rem; margin-bottom: 14px; }
.testi-author { font-weight: 700; color: var(--primary); font-size: 0.85rem; }

/* =====================================================================
   HOW IT WORKS
   ===================================================================== */
.tm-how { padding: 80px 0; }
.steps { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 48px; }
.step { text-align: center; flex: 1; min-width: 130px; padding: 16px; }
.step-icon { width: 68px; height: 68px; background: var(--pink-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; margin: 0 auto 12px; border: 3px solid var(--primary); transition: var(--tr); }
.step:hover .step-icon { background: var(--primary); }
.step-num { font-size: 0.7rem; background: var(--primary); color: #fff; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; font-weight: 700; }
.step-title { font-size: 0.84rem; font-weight: 700; font-family: var(--font-tamil); }
.step-arrow { font-size: 1.4rem; color: var(--primary); opacity: 0.4; flex-shrink: 0; }

/* =====================================================================
   PRICING
   ===================================================================== */
.tm-pricing { padding: 80px 0; background: var(--pink-bg); }
.pricing-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; margin-top: 48px; }
.price-card { background: #fff; border-radius: var(--r-card); padding: 32px 24px; text-align: center; box-shadow: var(--sh-card); border: 2px solid var(--border); transition: var(--tr); position: relative; }
.price-card:hover { transform: translateY(-6px); box-shadow: var(--sh-hover); }
.price-card.featured { border-color: var(--primary); background: var(--primary); color: #fff; transform: scale(1.03); }
.price-card.featured:hover { transform: scale(1.03) translateY(-6px); }
.price-card.gold   { border-color: var(--gold); }
.price-card.vip    { border-color: var(--purple); }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--primary); font-size: 0.7rem; font-weight: 700; padding: 4px 14px; border-radius: 50px; white-space: nowrap; }
.plan-icon  { font-size: 2.2rem; margin-bottom: 10px; }
.plan-name  { font-family: var(--font-tamil); font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.plan-price { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.price-card.featured .plan-price { color: var(--gold); }
.plan-dur   { font-size: 0.8rem; color: var(--muted); margin-bottom: 22px; }
.price-card.featured .plan-dur { color: rgba(255,255,255,0.7); }
.plan-feats { text-align: left; margin-bottom: 24px; }
.plan-feats li { padding: 6px 0; font-size: 0.82rem; font-family: var(--font-tamil); display: flex; align-items: center; gap: 7px; border-bottom: 1px solid rgba(0,0,0,0.05); }
.price-card.featured .plan-feats li { border-bottom-color: rgba(255,255,255,0.1); color: rgba(255,255,255,0.9); }
.f-yes { color: var(--success); }
.f-no  { color: var(--error); opacity: 0.5; }
.price-card.featured .f-yes { color: var(--gold); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.tm-footer { background: var(--primary); color: rgba(255,255,255,0.82); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 46px; border-bottom: 1px solid rgba(255,255,255,0.13); }
.footer-logo .name { color: #fff; }
.footer-logo .tagline { color: rgba(255,255,255,0.55); }
.footer-tagline { font-family: var(--font-tamil); margin: 10px 0 18px; font-size: 0.86rem; line-height: 1.7; }
.social-links { display: flex; gap: 10px; margin-top: 16px; }
.social-links a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: #fff; transition: var(--tr); font-size: 0.85rem; }
.social-links a:hover { background: var(--gold); color: var(--primary); }
.footer-col h4 { color: var(--gold); font-size: 0.95rem; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 7px; }
.footer-col ul a { color: rgba(255,255,255,0.72); font-size: 0.85rem; font-family: var(--font-tamil); }
.footer-col ul a:hover { color: var(--gold); padding-left: 4px; }
.app-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.app-badge { display: flex; align-items: center; gap: 7px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.22); border-radius: 7px; padding: 7px 12px; color: #fff; font-size: 0.75rem; transition: var(--tr); }
.app-badge:hover { background: rgba(255,255,255,0.18); color: #fff; }
.footer-bottom { padding: 18px 0; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* =====================================================================
   FORMS — AUTH
   ===================================================================== */
.auth-wrap { display: grid; grid-template-columns: 60fr 40fr; min-height: 100vh; }
.auth-left  { padding: 44px 56px; overflow-y: auto; }
.auth-right { background: var(--pink-bg); padding: 44px 36px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: sticky; top: 0; height: 100vh; }
.auth-right img { width: 260px; height: 260px; border-radius: 50%; object-fit: cover; margin-bottom: 28px; border: 5px solid var(--pink-mid); }
.gender-toggle { display: flex; margin: 22px 0; }
.gender-btn { flex: 1; padding: 13px; font-size: 0.9rem; font-weight: 600; border: 2px solid var(--border); background: #fff; cursor: pointer; transition: var(--tr); }
.gender-btn:first-child { border-radius: 8px 0 0 8px; }
.gender-btn:last-child  { border-radius: 0 8px 8px 0; }
.gender-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.form-sec-title { display: flex; align-items: center; gap: 9px; font-size: 0.95rem; font-weight: 700; color: var(--primary); margin: 24px 0 14px; padding-bottom: 7px; border-bottom: 2px solid var(--pink-bg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.field input, .field select, .field textarea { padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 7px; font-size: 0.9rem; color: var(--text); transition: var(--tr); background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139,10,42,0.08); }
.field-err { font-size: 0.75rem; color: var(--error); }
.mobile-row { display: flex; }
.mob-prefix { background: var(--pink-bg); border: 1.5px solid var(--border); border-right: none; border-radius: 7px 0 0 7px; padding: 11px 12px; font-size: 0.85rem; }
.mobile-row input  { border-radius: 0; flex: 1; border-left: none; }
.otp-send-btn { padding: 11px 13px; background: var(--primary); color: #fff; border: none; border-radius: 0 7px 7px 0; font-size: 0.78rem; cursor: pointer; font-weight: 600; white-space: nowrap; }
.checkbox-row { display: flex; align-items: center; gap: 9px; font-size: 0.85rem; color: var(--muted); margin: 18px 0; }
.checkbox-row input { width: 17px; height: 17px; cursor: pointer; accent-color: var(--primary); }
.or-div { text-align: center; position: relative; margin: 18px 0; }
.or-div::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.or-div span { position: relative; background: #fff; padding: 0 12px; color: var(--muted); font-size: 0.82rem; }
.social-login { display: flex; gap: 10px; justify-content: center; }
.social-login a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 10px; border: 1.5px solid var(--border); border-radius: 7px; font-size: 0.85rem; font-weight: 600; color: var(--text); transition: var(--tr); }
.social-login a:hover { border-color: var(--primary); background: var(--pink-bg); }
.trust-item { text-align: center; margin-bottom: 22px; }
.trust-icon { width: 64px; height: 64px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin: 0 auto 8px; box-shadow: var(--sh-card); }
.trust-item h4 { font-size: 0.95rem; color: var(--primary); margin-bottom: 3px; }
.trust-item p  { font-size: 0.78rem; color: var(--muted); }

/* =====================================================================
   SEARCH PAGE
   ===================================================================== */
.search-page { display: grid; grid-template-columns: 270px 1fr; gap: 26px; padding: 36px 0; min-height: 80vh; }
.search-sidebar { background: #fff; border-radius: var(--r-card); padding: 22px; box-shadow: var(--sh-sm); border: 1px solid var(--border); height: fit-content; position: sticky; top: 90px; }
.filter-group { margin-bottom: 18px; }
.filter-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-bottom: 5px; font-family: var(--font-tamil); }
.filter-group select, .filter-group input { width: 100%; padding: 8px 11px; border: 1.5px solid var(--border); border-radius: 6px; font-size: 0.83rem; font-family: var(--font-tamil); }
.filter-group select:focus, .filter-group input:focus { outline: none; border-color: var(--primary); }
.age-range { display: flex; gap: 7px; align-items: center; }
.age-range select { flex: 1; }
.age-range span { font-size: 0.78rem; color: var(--muted); }
.filter-check { display: flex; align-items: center; gap: 7px; font-size: 0.83rem; cursor: pointer; font-family: var(--font-tamil); }
.filter-check input { width: 15px; height: 15px; cursor: pointer; accent-color: var(--primary); }
.filter-btns { display: flex; gap: 8px; margin-top: 16px; }
.filter-btns button { flex: 1; }
.filter-title { font-size: 0.95rem; font-weight: 700; color: var(--primary); margin-bottom: 16px; font-family: var(--font-tamil); }
.results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 10px; }
.results-count { font-size: 0.88rem; color: var(--muted); font-family: var(--font-tamil); }
.results-count strong { color: var(--primary); }
.view-toggle { display: flex; gap: 6px; }
.view-btn { width: 34px; height: 34px; border-radius: 5px; border: 1.5px solid var(--border); background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--tr); }
.view-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.result-card { display: flex; gap: 18px; background: #fff; border-radius: var(--r-card); padding: 18px; border: 1px solid var(--border); box-shadow: var(--sh-sm); margin-bottom: 14px; transition: var(--tr); }
.result-card:hover { box-shadow: var(--sh-hover); border-color: var(--pink-mid); }
.result-photo { position: relative; flex-shrink: 0; }
.result-photo img { width: 115px; height: 135px; object-fit: cover; border-radius: 9px; }
.result-info { flex: 1; }
.result-name { font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.result-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.result-meta span { font-size: 0.79rem; color: var(--muted); display: flex; align-items: center; gap: 4px; font-family: var(--font-tamil); }
.result-actions { display: flex; gap: 8px; margin-top: 12px; }
.grid-results { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 32px; }
.page-btn { width: 36px; height: 36px; border-radius: 5px; border: 1.5px solid var(--border); background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 0.85rem; color: var(--text); transition: var(--tr); }
.page-btn:hover, .page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* =====================================================================
   DASHBOARD
   ===================================================================== */
.dash-wrap { display: grid; grid-template-columns: 245px 1fr; min-height: 100vh; background: var(--off-white); }
.dash-sidebar { background: var(--primary); display: flex; flex-direction: column; }
.dash-user  { padding: 26px 18px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.13); }
.dash-avatar { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); margin: 0 auto 10px; display: block; }
.dash-name  { color: #fff; font-size: 0.95rem; font-weight: 700; }
.dash-id    { font-size: 0.72rem; color: rgba(255,255,255,0.58); margin-top: 2px; }
.prem-badge { display: inline-block; background: var(--gold); color: var(--primary); font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: 50px; margin-top: 7px; }
.dash-nav   { flex: 1; padding: 14px 0; overflow-y: auto; }
.dash-nav-item { display: flex; align-items: center; gap: 10px; padding: 12px 18px; color: rgba(255,255,255,0.78); font-size: 0.86rem; cursor: pointer; border-left: 3px solid transparent; transition: all 0.15s; position: relative; }
.dash-nav-item:hover, .dash-nav-item.active { background: rgba(255,255,255,0.1); color: #fff; border-left-color: var(--gold); }
.nav-badge  { position: absolute; right: 14px; background: var(--gold); color: var(--primary); font-size: 0.62rem; font-weight: 700; padding: 2px 6px; border-radius: 50px; }
.dash-promo { margin: 14px; background: rgba(255,255,255,0.09); border-radius: 9px; padding: 18px; text-align: center; border: 1px solid rgba(255,255,255,0.17); }
.dash-promo p { font-size: 0.8rem; color: rgba(255,255,255,0.78); margin-bottom: 10px; font-family: var(--font-tamil); }
.dash-main  { padding: 28px; overflow-y: auto; }
.dash-welcome { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; flex-wrap: wrap; gap: 10px; }
.dash-welcome h2 { font-family: var(--font-display); font-size: 1.4rem; }
.stats-row  { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; margin-bottom: 26px; }
.stat-box   { background: #fff; border-radius: var(--r-card); padding: 20px; text-align: center; box-shadow: var(--sh-sm); border: 1px solid var(--border); }
.stat-box-num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; color: var(--primary); }
.stat-box-lbl { font-size: 0.75rem; color: var(--muted); font-family: var(--font-tamil); }
.dash-section { background: #fff; border-radius: var(--r-card); padding: 22px; box-shadow: var(--sh-sm); border: 1px solid var(--border); margin-bottom: 22px; }
.dash-sec-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.dash-sec-hdr h3 { font-size: 1rem; color: var(--text); }
.view-all-link { font-size: 0.82rem; color: var(--primary); font-weight: 600; }
.int-row  { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.int-row:last-child { border-bottom: none; }
.int-row img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.int-info { flex: 1; }
.int-name { font-size: 0.88rem; font-weight: 600; }
.int-sub  { font-size: 0.75rem; color: var(--muted); }
.int-date { font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
.status-pill { padding: 3px 10px; border-radius: 50px; font-size: 0.7rem; font-weight: 700; }
.s-accepted { background: #D1FAE5; color: var(--success); }
.s-pending  { background: #FEF3C7; color: #92400E; }
.s-declined { background: #FEE2E2; color: var(--error); }
.accept-btn, .decline-btn { padding: 5px 12px; border-radius: 5px; font-size: 0.78rem; font-weight: 600; cursor: pointer; border: 1.5px solid; transition: var(--tr); }
.accept-btn  { color: var(--success); border-color: var(--success); background: transparent; }
.accept-btn:hover  { background: var(--success); color: #fff; }
.decline-btn { color: var(--error); border-color: var(--error); background: transparent; }
.decline-btn:hover { background: var(--error); color: #fff; }
.shortlist-row { display: flex; gap: 14px; flex-wrap: wrap; }
.sl-item { text-align: center; cursor: pointer; }
.sl-item img { width: 66px; height: 66px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); margin-bottom: 5px; }
.sl-name { font-size: 0.72rem; font-weight: 600; }
.sl-city { font-size: 0.65rem; color: var(--muted); }
.msg-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.msg-row:hover { background: var(--pink-bg); margin: 0 -10px; padding: 11px 10px; border-radius: 7px; }
.msg-row img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.msg-info { flex: 1; min-width: 0; }
.msg-name    { font-size: 0.88rem; font-weight: 600; }
.msg-preview { font-size: 0.75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-time    { font-size: 0.7rem; color: var(--muted); white-space: nowrap; }
.unread-dot  { width: 18px; height: 18px; background: var(--primary); color: #fff; border-radius: 50%; font-size: 0.6rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 4px; }
.sub-card { background: var(--primary); border-radius: var(--r-card); padding: 22px; color: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sub-lbl { font-size: 0.78rem; opacity: 0.7; }
.sub-val { font-size: 0.96rem; font-weight: 700; }
.sub-date { font-size: 1.3rem; font-weight: 800; color: var(--gold); }

/* =====================================================================
   HOROSCOPE
   ===================================================================== */
.horo-page { padding: 56px 0; background: var(--pink-bg); min-height: 80vh; }
.progress-bar { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 44px; }
.prog-circle { width: 38px; height: 38px; border-radius: 50%; background: var(--border); color: var(--muted); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.88rem; transition: var(--tr); }
.prog-circle.active { background: var(--primary); color: #fff; }
.prog-circle.done   { background: var(--success); color: #fff; }
.prog-line { width: 70px; height: 2px; background: var(--border); }
.prog-line.done { background: var(--success); }
.horo-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-bottom: 28px; }
.horo-col  { background: #fff; border-radius: var(--r-card); padding: 26px; box-shadow: var(--sh-card); }
.horo-col-title { font-size: 1rem; color: var(--primary); margin-bottom: 18px; text-align: center; font-family: var(--font-tamil); }
.horo-result { background: #fff; border-radius: var(--r-card); padding: 32px; box-shadow: var(--sh-card); text-align: center; }
.porutham-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 11px; margin-top: 26px; }
.p-item { background: var(--pink-bg); border-radius: 7px; padding: 12px 8px; text-align: center; }
.p-name  { font-size: 0.7rem; font-family: var(--font-tamil); color: var(--muted); margin-bottom: 5px; }
.p-score { font-size: 1rem; font-weight: 700; color: var(--primary); }
.p-badge { display: inline-block; padding: 2px 7px; border-radius: 4px; font-size: 0.62rem; font-weight: 700; margin-top: 3px; font-family: var(--font-tamil); }
.b-good { background: #D1FAE5; color: var(--success); }
.b-ok   { background: #FEF3C7; color: #92400E; }
.b-no   { background: #FEE2E2; color: var(--error); }

/* =====================================================================
   COMMUNITY PAGE
   ===================================================================== */
.comm-page { padding: 56px 0; }
.comm-full-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; margin-top: 44px; }
.comm-tile { background: #fff; border-radius: var(--r-card); padding: 28px 20px; text-align: center; box-shadow: var(--sh-card); border: 2px solid var(--border); transition: var(--tr); cursor: pointer; }
.comm-tile:hover { border-color: var(--primary); transform: translateY(-5px); box-shadow: var(--sh-hover); }
.comm-tile-icon  { font-size: 2.8rem; margin-bottom: 10px; }
.comm-tile-name  { font-size: 0.95rem; font-weight: 700; font-family: var(--font-tamil); margin-bottom: 5px; }
.comm-tile-count { font-size: 0.82rem; color: var(--primary); font-weight: 600; margin-bottom: 12px; }
.comm-tile-btn   { display: inline-block; padding: 7px 18px; border: 1.5px solid var(--primary); border-radius: 5px; color: var(--primary); font-size: 0.8rem; font-weight: 600; transition: var(--tr); font-family: var(--font-tamil); }
.comm-tile:hover .comm-tile-btn { background: var(--primary); color: #fff; }

/* =====================================================================
   PRICING PAGE
   ===================================================================== */
.pricing-page { padding: 56px 0; background: var(--pink-bg); }
.compare-table { width: 100%; border-collapse: collapse; margin-top: 44px; background: #fff; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--sh-card); }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--border); }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; font-family: var(--font-tamil); }
.compare-table thead th { background: var(--primary); color: #fff; font-family: var(--font-display); }
.compare-table tbody tr:hover { background: var(--pink-bg); }
.ct-yes { color: var(--success); font-size: 1.1rem; }
.ct-no  { color: var(--error); font-size: 1.1rem; opacity: 0.4; }

/* =====================================================================
   ADMIN DASHBOARD
   ===================================================================== */
.admin-wrap { display: grid; grid-template-columns: 235px 1fr; min-height: 100vh; background: #F3F4F6; font-family: var(--font-body); }
.admin-sidebar { background: var(--primary); }
.admin-logo   { padding: 22px 18px; border-bottom: 1px solid rgba(255,255,255,0.13); }
.admin-logo .name { color: #fff; font-size: 0.92rem; font-weight: 700; }
.admin-logo .sub  { font-size: 0.7rem; color: rgba(255,255,255,0.55); }
.admin-nav { padding: 14px 0; }
.admin-nav-item { display: flex; align-items: center; gap: 9px; padding: 11px 18px; color: rgba(255,255,255,0.72); font-size: 0.83rem; transition: all 0.15s; cursor: pointer; }
.admin-nav-item:hover, .admin-nav-item.active { background: rgba(255,255,255,0.1); color: #fff; }
.admin-main   { padding: 28px; }
.admin-hdr    { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.admin-hdr h1 { font-size: 1.4rem; color: var(--text); font-family: var(--font-display); }
.admin-stats  { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; margin-bottom: 24px; }
.admin-stat   { background: #fff; border-radius: 9px; padding: 18px; box-shadow: var(--sh-sm); border-left: 4px solid var(--primary); }
.admin-stat.g { border-left-color: var(--gold); }
.admin-stat.s { border-left-color: var(--success); }
.admin-stat.b { border-left-color: #3B82F6; }
.admin-stat.p { border-left-color: var(--purple); }
.admin-stat-num { font-size: 1.7rem; font-weight: 800; color: var(--text); font-family: var(--font-display); }
.admin-stat-lbl { font-size: 0.75rem; color: var(--muted); margin-top: 3px; }
.admin-card     { background: #fff; border-radius: 9px; padding: 22px; box-shadow: var(--sh-sm); margin-bottom: 22px; }
.admin-card h3  { font-size: 0.96rem; color: var(--text); margin-bottom: 18px; }
.admin-table    { width: 100%; border-collapse: collapse; }
.admin-table th { padding: 9px 12px; text-align: left; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted); border-bottom: 2px solid var(--border); }
.admin-table td { padding: 13px 12px; font-size: 0.83rem; border-bottom: 1px solid var(--border); }
.admin-table tr:hover td { background: var(--pink-bg); }
.admin-user { display: flex; align-items: center; gap: 9px; }
.admin-user img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }

/* =====================================================================
   PROFILE DETAIL
   ===================================================================== */
.profile-detail { padding: 36px 0; }
.pd-inner { display: grid; grid-template-columns: 3fr 2fr; gap: 28px; }
.pd-main-img { width: 100%; max-height: 400px; object-fit: cover; border-radius: var(--r-card); }
.pd-thumbs   { display: flex; gap: 7px; margin-top: 10px; }
.pd-thumbs img { width: 76px; height: 76px; object-fit: cover; border-radius: 7px; cursor: pointer; border: 2px solid transparent; transition: var(--tr); }
.pd-thumbs img:first-child { border-color: var(--primary); }
.pd-thumbs img:hover { border-color: var(--primary); }
.pd-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin: 24px 0 20px; }
.pd-tab  { padding: 11px 18px; border: none; background: none; font-family: var(--font-tamil); font-size: 0.85rem; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: var(--tr); }
.pd-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.d-lbl { font-size: 0.75rem; color: var(--muted); font-family: var(--font-tamil); }
.d-val { font-size: 0.88rem; font-weight: 600; font-family: var(--font-tamil); }
.pd-sidebar { display: flex; flex-direction: column; gap: 18px; }
.pd-sidebar-card { background: #fff; border-radius: var(--r-card); padding: 22px; box-shadow: var(--sh-card); border: 1px solid var(--border); }
.match-donut { position: relative; width: 110px; height: 110px; margin: 0 auto 14px; }
.match-donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.match-track { fill: none; stroke: var(--border); stroke-width: 11; }
.match-prog  { fill: none; stroke: var(--success); stroke-width: 11; stroke-linecap: round; stroke-dasharray: 283; stroke-dashoffset: 42; transition: stroke-dashoffset 1.5s ease; }
.match-pct  { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 1.5rem; font-weight: 800; color: var(--primary); font-family: var(--font-display); }

/* =====================================================================
   BLOG PAGE
   ===================================================================== */
.blog-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.blog-card { border-radius: var(--r-card); overflow: hidden; box-shadow: var(--sh-card); border: 1px solid var(--border); transition: var(--tr); }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--sh-hover); }
.blog-card img   { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.blog-body { padding: 16px; }
.blog-date  { font-size: 0.72rem; color: var(--muted); margin-bottom: 7px; }
.blog-title { font-size: 0.92rem; font-weight: 700; line-height: 1.4; margin-bottom: 10px; font-family: var(--font-tamil); }
.blog-read  { font-size: 0.8rem; color: var(--primary); font-weight: 600; }

/* =====================================================================
   UTILITIES
   ===================================================================== */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.d-flex { display: flex; }
.gap-10 { gap: 10px; }
.hidden { display: none !important; }
.bg-white { background: #fff; }
.bg-pink  { background: var(--pink-bg); }
.rounded  { border-radius: var(--r-card); }
.shadow   { box-shadow: var(--sh-card); }
.section  { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.error-msg  { background: #FEE2E2; border-left: 4px solid var(--error); padding: 12px 16px; border-radius: 7px; margin-bottom: 14px; color: var(--error); font-size: 0.88rem; display: none; }
.success-msg{ background: #D1FAE5; border-left: 4px solid var(--success); padding: 12px 16px; border-radius: 7px; margin-bottom: 14px; color: var(--success); font-size: 0.88rem; display: none; }

/* =====================================================================
   TOAST
   ===================================================================== */
#tm-toast { position: fixed; bottom: 22px; right: 22px; z-index: 99999; padding: 13px 20px; border-radius: 9px; font-size: 0.9rem; font-weight: 600; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,0.18); transform: translateY(20px); opacity: 0; transition: all 0.3s ease; pointer-events: none; }

/* =====================================================================
   ANIMATIONS
   ===================================================================== */
@keyframes fadeUp { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:translateY(0); } }
@keyframes spin    { to { transform: rotate(360deg); } }
.animate { animation: fadeUp 0.6s ease both; }
.d1 { animation-delay: 0.1s; }
.d2 { animation-delay: 0.2s; }
.d3 { animation-delay: 0.3s; }
.spinner { width: 30px; height: 30px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
/* ─── RESPONSIVE — base breakpoints (overridden by v3.1 section below) ─── */
@media (max-width: 1200px) {
  .profile-grid   { grid-template-columns: repeat(3,1fr); }
  .pricing-grid   { grid-template-columns: repeat(2,1fr); }
  .stats-row      { grid-template-columns: repeat(2,1fr); }
  .admin-stats    { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 1100px) {
  /* Keep hero 2-col but compress */
  .hero-inner { gap: 24px; }
  .hero-image-wrap { display: flex; } /* NEVER hide hero image */
  .hero-image-wrap img { width: 100%; max-width: 340px; height: 380px; }
}
@media (max-width: 1024px) {
  .tm-nav         { display: none; }
  .hamburger      { display: flex; }
  .auth-wrap      { grid-template-columns: 1fr; }
  .auth-right     { display: none; }
  .search-page    { grid-template-columns: 1fr; }
  .search-sidebar { display: block; }
  .pd-inner       { grid-template-columns: 1fr; }
  .horo-cols      { grid-template-columns: 1fr; }
  .admin-wrap     { grid-template-columns: 1fr; }
  .admin-sidebar  { display: none; }
  .dash-wrap      { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero-inner         { grid-template-columns: 1fr; text-align: center; }
  .hero-image-wrap    { display: flex !important; justify-content: center; order: -1; margin-bottom: 20px; }
  .hero-image-wrap img{ width: 240px; height: 270px; border-radius: 50%; }
  .hero-btns          { justify-content: center; }
  .tm-topbar          { display: none; }
  .hero-stats         { grid-template-columns: repeat(2,1fr); }
  .about-inner        { grid-template-columns: 1fr; }
  .about-img-wrap     { display: none; }
}
@media (max-width: 768px) {
  .search-form            { flex-direction: column; }
  .profile-grid           { grid-template-columns: repeat(2,1fr); }
  .stories-inner          { grid-template-columns: 1fr; }
  .stories-grid           { grid-template-columns: repeat(2,1fr); }
  .steps                  { flex-direction: column; gap: 14px; }
  .step-arrow             { transform: rotate(90deg); }
  .pricing-grid           { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .price-card.featured    { transform: none; }
  .blog-grid              { grid-template-columns: repeat(2,1fr); }
  .footer-grid            { grid-template-columns: 1fr 1fr; }
  .dash-sidebar           { display: block; border-bottom: 1px solid #f0e8f0; }
  .stats-row              { grid-template-columns: repeat(2,1fr); }
  .comm-full-grid         { grid-template-columns: repeat(2,1fr); }
  .porutham-grid          { grid-template-columns: repeat(2,1fr); }
  .form-row, .form-row-3  { grid-template-columns: 1fr; }
  .auth-left              { padding: 24px 16px; }
  .sub-card               { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .blog-grid      { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr; }
  .hero-stats     { grid-template-columns: 1fr 1fr; }
  .comm-full-grid { grid-template-columns: 1fr 1fr; }
  .container      { padding: 0 14px; }
  .dash-main      { padding: 14px; }
  .grid-results   { grid-template-columns: repeat(2,1fr); }
  .hero-image-wrap img { width: 190px; height: 210px; }
}

/* ════════════════════════════════════════════════════════════════
   EDIT PROFILE — Full form styles
   Author: Dhileep
   ════════════════════════════════════════════════════════════════ */

/* ── Edit Profile Sub-Tab Nav ──────────────────────────────────── */
.ep-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  border-bottom: 2px solid #f0e8f0;
  padding-bottom: 14px;
}
.ep-tab {
  padding: 8px 16px;
  background: #f9f0f5;
  border: 1px solid #e0cce0;
  border-radius: 20px;
  cursor: pointer;
  font-size: .84rem;
  font-weight: 600;
  color: #6b2a6b;
  transition: all .2s;
  white-space: nowrap;
}
.ep-tab:hover { background: #8B0A2A; color: #fff; border-color: #8B0A2A; }
.ep-tab.active { background: #8B0A2A; color: #fff; border-color: #8B0A2A; box-shadow: 0 2px 8px rgba(139,10,42,.3); }

/* ── Form Grid ─────────────────────────────────────────────────── */
.ep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.ep-full { grid-column: 1 / -1; }

/* ── Field ─────────────────────────────────────────────────────── */
.ep-field { display: flex; flex-direction: column; gap: 5px; }
.ep-field label {
  font-size: .82rem;
  font-weight: 700;
  color: #4a1a4a;
  letter-spacing: .01em;
}
.ep-field input,
.ep-field select,
.ep-field textarea {
  padding: 10px 13px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: .88rem;
  color: #222;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}
.ep-field input:focus,
.ep-field select:focus,
.ep-field textarea:focus {
  outline: none;
  border-color: #8B0A2A;
  box-shadow: 0 0 0 3px rgba(139,10,42,.12);
}
.ep-field textarea { resize: vertical; min-height: 90px; }
.ep-field .req { color: #c0392b; font-weight: 700; }

/* ── Actions ───────────────────────────────────────────────────── */
.ep-actions {
  display: flex;
  justify-content: flex-start;
  padding-top: 8px;
}
.ep-save-btn {
  padding: 11px 28px;
  font-size: .92rem;
  font-weight: 700;
  background: linear-gradient(135deg, #8B0A2A, #c0392b);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 3px 10px rgba(139,10,42,.3);
}
.ep-save-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 5px 15px rgba(139,10,42,.4); }
.ep-save-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ── Notice ─────────────────────────────────────────────────────── */
.ep-notice {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 20px;
  animation: slideDown .3s ease;
}
@keyframes slideDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:none; } }
.ep-notice-success { background: #f0fff4; color: #276749; border: 1px solid #9ae6b4; }
.ep-notice-error   { background: #fff5f5; color: #c53030; border: 1px solid #feb2b2; }

/* ── Photo Grid ─────────────────────────────────────────────────── */
.ep-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.ep-photo-slot {
  aspect-ratio: 3/4;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  border: 2px dashed #e0cce0;
  background: #fdf7fd;
  transition: border-color .2s;
}
.ep-photo-slot:hover { border-color: #8B0A2A; }
.ep-photo-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ep-photo-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  cursor: pointer;
  gap: 8px;
  color: #999;
  transition: color .2s;
}
.ep-photo-add:hover { color: #8B0A2A; }
.ep-photo-add-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #f0e8f0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: #8B0A2A;
  transition: background .2s;
}
.ep-photo-add:hover .ep-photo-add-icon { background: #8B0A2A; color: #fff; }
.ep-photo-actions {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
}
.ep-photo-change-btn,
.ep-photo-delete-btn {
  flex: 1;
  padding: 7px 4px;
  font-size: .76rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  color: #fff;
  border: none;
  background: transparent;
  transition: background .2s;
}
.ep-photo-change-btn { border-right: 1px solid rgba(255,255,255,.2); }
.ep-photo-change-btn:hover { background: rgba(46,204,113,.5); }
.ep-photo-delete-btn:hover  { background: rgba(231,76,60,.6); }

/* ── Subscription card ─────────────────────────────────────────── */
.sub-card-active {
  background: linear-gradient(135deg, #8B0A2A, #c0392b);
  color: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  display: inline-block;
  min-width: 260px;
}
.sub-plan-name { font-size: 1.4rem; font-weight: 800; letter-spacing: .05em; margin-bottom: 10px; }
.sub-meta { font-size: .88rem; opacity: .9; margin-top: 4px; }

/* ── AJAX list placeholder ─────────────────────────────────────── */
.muted-hint { color: var(--muted,#999); font-size:.88rem; margin-top:10px; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .ep-tabs { gap: 6px; }
  .ep-tab  { font-size: .78rem; padding: 7px 12px; }
  .ep-grid { grid-template-columns: 1fr; }
  .ep-photo-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — Complete Fix (v3.1)
   Author: Dhileep
   ════════════════════════════════════════════════════════════════ */

/* ── Base reset for mobile ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; }

/* ── HERO — show image on all screens, stack on mobile ──────────── */
@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .hero-image-wrap { display: flex; }
  .hero-image-wrap img { width: 100%; max-width: 360px; height: 400px; }
}

@media (max-width: 860px) {
  .tm-hero { padding: 40px 0 36px; }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-image-wrap {
    display: flex;
    justify-content: center;
    order: -1; /* image on top on mobile */
    margin-bottom: 20px;
  }
  .hero-image-wrap img {
    width: 260px;
    height: 290px;
    border-radius: 50%;
  }
  .hero-badge  { left: 50%; transform: translateX(-50%); bottom: -10px; white-space: nowrap; }
  .hero-badge2 { right: 50%; transform: translateX(50%); top: -10px;   white-space: nowrap; }
  .hero-btns { justify-content: center; }
  .hero-content h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .hero-content .sub { font-size: .95rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card  { padding: 10px 6px; }
  .stat-num   { font-size: 1.1rem; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-btns  { flex-direction: column; align-items: center; }
  .hero-btns .btn { width: 100%; max-width: 300px; text-align: center; }
  .hero-image-wrap img { width: 200px; height: 225px; }
}

/* ── NAVIGATION ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .tm-nav      { display: none; }
  .hamburger   { display: flex !important; }
  .header-cta  { display: none; }
}

/* ── HEADER ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .tm-header-inner { gap: 10px; }
  .site-logo img   { height: 36px; }
  .site-name       { font-size: .95rem; }
  .site-tagline    { display: none; }
  .tm-topbar       { display: none; }
}

/* ── SEARCH WIDGET ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .tm-search-sec .search-form { flex-direction: column; gap: 8px; }
  .tm-search-sec .search-form select,
  .tm-search-sec .search-form input  { width: 100%; border-radius: 8px !important; }
  .tm-search-sec .search-form button { width: 100%; border-radius: 8px; }
  .search-quick-links { flex-wrap: wrap; gap: 6px; justify-content: center; }
}

/* ── PROFILE GRID ────────────────────────────────────────────────── */
@media (max-width: 1200px) { .profile-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .profile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .profile-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
@media (max-width: 360px)  { .profile-grid { grid-template-columns: 1fr; } }

/* Profile card mobile ─── */
@media (max-width: 480px) {
  .profile-card { border-radius: 10px; }
  .pc-body  { padding: 10px; }
  .pc-name  { font-size: .9rem; }
  .pc-meta  { font-size: .74rem; }
  .pc-actions { gap: 6px; }
  .pc-actions .btn { font-size: .76rem; padding: 6px 10px; }
}

/* ── SECTION HEADINGS ────────────────────────────────────────────── */
@media (max-width: 600px) {
  .section-head h2 { font-size: clamp(1.2rem, 5vw, 1.7rem); }
  .section-head .sub { font-size: .85rem; }
}

/* ── SUCCESS STORIES ─────────────────────────────────────────────── */
@media (max-width: 900px)  { .stories-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .stories-grid { grid-template-columns: 1fr; } }

/* ── HOW IT WORKS STEPS ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .steps { flex-direction: column; align-items: center; gap: 16px; }
  .step  { max-width: 280px; text-align: center; }
  .step-arrow { display: none; }
}

/* ── PRICING GRID ────────────────────────────────────────────────── */
@media (max-width: 900px)  { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  {
  .pricing-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .price-card.featured { transform: none; }
}

/* ── AUTH PAGES ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .auth-wrap    { grid-template-columns: 1fr; }
  .auth-right   { display: none; }
  .auth-left    { padding: 24px 16px; border-radius: 0; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .auth-progress { padding: 16px 12px; }
  .auth-steps    { gap: 8px; }
  .auth-step     { font-size: .7rem; }
  .step-circle   { width: 28px; height: 28px; font-size: .78rem; }
}

/* ── DASHBOARD ───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .dash-wrap { grid-template-columns: 1fr; }
  .dash-sidebar {
    display: block;
    position: static;
    width: 100%;
    padding: 16px;
    border-bottom: 1px solid #f0e8f0;
  }
  .dash-sidebar-inner { position: static !important; }
  .dash-nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .dash-nav-item {
    flex: 1 1 auto;
    min-width: 120px;
    padding: 8px 10px;
    font-size: .78rem;
    text-align: center;
    border-radius: 8px;
  }
  .dash-nav-item .nav-icon { font-size: 1rem; }
  .dash-main { padding: 16px; }
}
@media (max-width: 600px) {
  .dash-nav-item .nav-label { display: none; }
  .dash-nav-item            { min-width: 44px; padding: 10px; font-size: 1.1rem; }
  .dash-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .dash-stat-card  { padding: 14px 10px; }
  .dash-stat-value { font-size: 1.4rem; }
}

/* ── SEARCH PAGE ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .search-page    { grid-template-columns: 1fr; }
  .search-sidebar {
    display: block;
    width: 100%;
    border-bottom: 1px solid #f0e8f0;
    padding-bottom: 16px;
    margin-bottom: 16px;
  }
  .filter-section { display: flex; flex-wrap: wrap; gap: 10px; }
  .filter-group   { flex: 1 1 160px; }
}

/* ── PROFILE DETAIL PAGE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .pd-inner  { grid-template-columns: 1fr; }
  .pd-photos { grid-template-columns: repeat(3, 1fr); }
  .pd-photo-main { height: 260px; }
}
@media (max-width: 560px) {
  .pd-photos { grid-template-columns: repeat(2, 1fr); }
  .pd-photo-main { height: 220px; }
  .pd-name   { font-size: 1.4rem; }
  .pd-actions { flex-direction: column; }
  .pd-actions .btn { width: 100%; }
}

/* ── HOROSCOPE PAGE ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .horo-cols { grid-template-columns: 1fr; }
  .porutham-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .porutham-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
}

/* ── FOOTER ──────────────────────────────────────────────────────── */
@media (max-width: 900px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  {
  .footer-grid  { grid-template-columns: 1fr; gap: 24px; }
  .footer-logo  { margin-bottom: 12px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* ── COMMUNITY PAGE ──────────────────────────────────────────────── */
@media (max-width: 900px)  { .comm-full-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .comm-full-grid { grid-template-columns: 1fr; } }

/* ── ADMIN DASHBOARD ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .admin-wrap    { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-stats   { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px)  {
  .admin-stats   { grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* ── GENERAL HELPERS ─────────────────────────────────────────────── */
@media (max-width: 560px) {
  .container { padding: 0 14px; }
  .section-pad { padding: 40px 0; }
  .btn { font-size: .85rem; padding: 10px 18px; }
  h2  { font-size: clamp(1.2rem, 5vw, 1.8rem); }
}

/* ── EDIT PROFILE (mobile) ───────────────────────────────────────── */
@media (max-width: 768px) {
  .ep-tabs { gap: 5px; }
  .ep-tab  { font-size: .76rem; padding: 6px 11px; }
  .ep-grid { grid-template-columns: 1fr; }
  .ep-photo-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}
@media (max-width: 400px) {
  .ep-photo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── ELEMENTOR OVERRIDES inside TM pages ────────────────────────── */
.elementor-page .site-header,
.elementor-page .tm-header { display: block !important; }
.elementor-section { max-width: 100% !important; }

