/* ============================================================
   VETRIE GLOBAL MATRIMONY CENTRE — Shared Design System
   Premium Tamil Matrimonial Platform
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Tamil:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Smokey Blue + Electric Blue + Deep Blue palette */
  --blue:        #1a6bff;
  --blue-light:  #4f8eff;
  --blue-pale:   #e8f1ff;
  --deep:        #071c3f;
  --deep2:       #0c2d6a;
  --smoke:       #526b8a;
  --smoke-light: #8fa3be;
  --paper:       #f4f7fb;
  --white:       #ffffff;
  --ink:         #152340;
  --muted:       #6a7d96;
  --line:        #dde5ef;
  --green:       #0fa86a;
  --gold:        #c8922a;
  --gold-light:  #fdf3dc;
  --gold-border: #e8c97a;
  --red:         #e03030;
  --r:           14px;
  --r-lg:        20px;
  --shadow-sm:   0 2px 10px rgba(7,28,63,.06);
  --shadow:      0 8px 28px rgba(7,28,63,.10);
  --shadow-lg:   0 18px 50px rgba(7,28,63,.14);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Noto Sans Tamil', -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--blue-light);
  font-weight: 700;
  display: block;
}
h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; color: var(--deep); }
h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; color: var(--deep); }
h3 { font-size: 1.1rem; font-weight: 700; color: var(--deep); }

/* ============================================================
   LAYOUT
   ============================================================ */
.container { width: min(1180px, 94%); margin: 0 auto; }
.page { padding: 38px 0 80px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(26,107,255,.28); }
.btn-primary:hover { background: #1559e0; }
.btn-soft { background: var(--blue-pale); color: var(--deep); }
.btn-soft:hover { background: #d6e5ff; }
.btn-outline { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-gold { background: linear-gradient(135deg, #c8922a, #f0c860); color: #fff; box-shadow: 0 6px 18px rgba(200,146,42,.3); }
.btn-gold:hover { background: linear-gradient(135deg, #b07a1e, #e0b850); }
.btn-danger { background: #ffe8e8; color: var(--red); }
.btn-danger:hover { background: #ffd0d0; }
.btn-sm { padding: 6px 12px; font-size: 11px; border-radius: 8px; }
.btn-lg { padding: 14px 26px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-icon { width: 38px; height: 38px; padding: 0; border-radius: 10px; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.topbar {
  height: 66px;
  padding: 0 5%;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 var(--line);
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo { height: 44px; width: auto; object-fit: contain; }
.topnav { display: flex; gap: 2px; flex: 1; }
.topnav a {
  font-size: 12.5px;
  color: var(--smoke);
  padding: 8px 13px;
  border-radius: 9px;
  font-weight: 500;
  transition: all .15s;
}
.topnav a:hover, .topnav a.active { color: var(--blue); background: var(--blue-pale); }
.topbar-right { display: flex; align-items: center; gap: 8px; }

/* Profile switcher pill */
.profile-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 5px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 30px;
  cursor: pointer;
  transition: all .15s;
}
.profile-pill:hover { border-color: var(--blue); background: var(--blue-pale); }
.profile-pill .pav {
  width: 32px; height: 32px; border-radius: 50%;
  background-size: cover; background-position: center;
  flex-shrink: 0;
  border: 2px solid var(--white);
}
.profile-pill .pname { font-size: 12px; font-weight: 600; color: var(--deep); }
.profile-pill .arrow { font-size: 10px; color: var(--muted); }
.notif-btn {
  position: relative;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer; font-size: 17px;
  transition: all .15s;
}
.notif-btn:hover { border-color: var(--blue); background: var(--blue-pale); }
.notif-badge {
  position: absolute; top: 4px; right: 4px;
  width: 16px; height: 16px;
  background: var(--red); color: #fff;
  font-size: 9px; font-weight: 700;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--white);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.pcard { position: relative; }
.pcard-img {
  height: 200px;
  background-size: cover;
  background-position: center top;
  position: relative;
}
.pcard-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(7,28,63,.6));
}
.pcard-match {
  position: absolute; top: 10px; right: 10px;
  background: var(--green); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 20px;
  z-index: 2;
}
.pcard-gold-badge {
  position: absolute; top: 10px; left: 10px;
  background: linear-gradient(135deg, #c8922a, #f0c860);
  color: #fff; font-size: 9px; font-weight: 700;
  padding: 3px 8px; border-radius: 20px;
  z-index: 2;
}
.pcard-body { padding: 14px; }
.pcard-name { font-size: 15px; font-weight: 700; color: var(--deep); margin-bottom: 2px; }
.pcard-sub { font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.pcard-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.ptag { font-size: 9px; padding: 3px 7px; border-radius: 5px; background: var(--paper); color: var(--smoke); font-weight: 500; }
.pcard-actions { display: flex; gap: 6px; }

/* Verified badge */
.verified {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 9px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  color: var(--green);
}

/* ============================================================
   GOLD MEMBERSHIP STYLES
   ============================================================ */
.gold-text { color: var(--gold); }
.gold-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--gold-light);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-size: 9px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  padding: 3px 8px; border-radius: 20px;
}
.gold-ring { border: 2px solid var(--gold-border) !important; }

/* ============================================================
   FORMS
   ============================================================ */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 11px; font-weight: 600; color: var(--smoke); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,107,255,.1);
}
.field textarea { resize: vertical; min-height: 90px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* OTP inputs */
.otp-row { display: flex; gap: 10px; justify-content: center; }
.otp-input {
  width: 52px; height: 58px;
  text-align: center; font-size: 22px; font-weight: 700;
  border: 2px solid var(--line); border-radius: 12px;
  background: var(--white); color: var(--deep); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.otp-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,107,255,.12); }

/* ============================================================
   TAGS / PILLS
   ============================================================ */
.tag-pill {
  display: inline-block; padding: 5px 12px;
  border-radius: 20px; font-size: 11px; font-weight: 600;
  background: var(--blue-pale); color: var(--blue);
}
.tag-pill.green { background: #e6f7f1; color: var(--green); }
.tag-pill.gold { background: var(--gold-light); color: var(--gold); }
.tag-pill.muted { background: var(--paper); color: var(--muted); }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 20px;
}
.section-head .left h2 { margin-bottom: 4px; }
.section-head .left p { font-size: 12px; color: var(--muted); }
.section-head .link { font-size: 12px; color: var(--blue); font-weight: 600; }

/* ============================================================
   PROFILE COMPLETION BAR
   ============================================================ */
.completion-bar {
  background: var(--line); border-radius: 10px; height: 8px; overflow: hidden;
}
.completion-fill {
  height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transition: width .4s ease;
}

/* ============================================================
   TABS
   ============================================================ */
.tabs-bar {
  display: flex; gap: 3px;
  background: var(--paper); padding: 4px; border-radius: 11px;
  margin-bottom: 20px; width: max-content; max-width: 100%; overflow-x: auto;
}
.tabs-bar button {
  border: 0; background: transparent; padding: 8px 15px;
  border-radius: 8px; color: var(--muted); cursor: pointer;
  font-size: 12px; font-weight: 600; white-space: nowrap;
  transition: all .15s;
}
.tabs-bar button.active {
  background: var(--white); color: var(--deep);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

/* ============================================================
   NOTIFICATIONS
   ============================================================ */
.notif-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.notif-item:hover { background: var(--paper); }
.notif-item.unread { background: #f0f5ff; }
.notif-ava {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background-size: cover; background-position: center;
}
.notif-text { flex: 1; }
.notif-text b { color: var(--deep); font-size: 13px; }
.notif-text p { font-size: 11px; color: var(--muted); margin-top: 2px; }
.notif-time { font-size: 10px; color: var(--smoke-light); white-space: nowrap; }

/* ============================================================
   MODAL OVERLAY
   ============================================================ */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(7,28,63,.55); z-index: 200;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white); border-radius: var(--r-lg);
  padding: 32px; max-width: 480px; width: 100%;
  box-shadow: var(--shadow-lg);
  animation: popIn .2s ease;
}
@keyframes popIn { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ============================================================
   PROGRESS WIZARD STEPS
   ============================================================ */
.wizard-steps {
  display: flex; align-items: center; gap: 0; margin-bottom: 32px;
}
.wizard-step {
  display: flex; align-items: center; gap: 8px; flex: 1;
}
.wizard-step:last-child { flex: 0; }
.step-circle {
  width: 34px; height: 34px;
  border-radius: 50%; border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--muted); flex-shrink: 0;
  background: var(--white); transition: all .2s;
}
.step-circle.done { background: var(--green); border-color: var(--green); color: #fff; }
.step-circle.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.step-line { flex: 1; height: 2px; background: var(--line); transition: background .2s; }
.step-line.done { background: var(--green); }
.step-label { font-size: 9px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.step-label.active { color: var(--blue); }
.step-label.done { color: var(--green); }

/* ============================================================
   BOTTOM NAV (Mobile)
   ============================================================ */
.bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--white); border-top: 1px solid var(--line);
  padding: 8px 0 env(safe-area-inset-bottom, 8px);
  z-index: 90;
}
.bottom-nav-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.bnav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 4px 0; cursor: pointer; transition: color .15s;
  color: var(--muted); font-size: 9px; font-weight: 600;
  text-decoration: none;
}
.bnav-item.active { color: var(--blue); }
.bnav-item svg { width: 22px; height: 22px; }

/* ============================================================
   STAT GRID
   ============================================================ */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.stat-box { background: var(--paper); border-radius: 10px; padding: 12px 14px; }
.stat-box small { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 600; }
.stat-box strong { display: block; margin-top: 3px; font-size: 12px; color: var(--deep); font-weight: 700; }

/* ============================================================
   PROFILE IMAGE CLASSES
   ============================================================ */
.img-w1 { background-image: url("avatar-woman-1.svg"); }
.img-w2 { background-image: url("avatar-woman-2.svg"); }
.img-w3 { background-image: url("avatar-woman-3.svg"); }
.img-m1 { background-image: url("avatar-man-1.svg"); }
.img-m2 { background-image: url("avatar-man-2.svg"); }
.img-m3 { background-image: url("avatar-man-3.svg"); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .topnav { display: none; }
  .bottom-nav { display: block; }
  body { padding-bottom: 70px; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.25rem; }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .site-logo { height: 36px; }
  h1 { font-size: 1.5rem; }
}

/* ============================================================
   LOADING STATE
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, #e9eff5 25%, #f4f7fb 50%, #e9eff5 75%);
  background-size: 400% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* Toast */
.toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%);
  background: var(--deep); color: #fff; padding: 12px 22px; border-radius: 30px;
  font-size: 13px; font-weight: 600; z-index: 300;
  box-shadow: var(--shadow-lg); opacity: 0; transition: opacity .25s;
  white-space: nowrap;
}
.toast.show { opacity: 1; }

/* Footer */
.site-footer {
  background: var(--deep); color: #93a6bd;
  padding: 28px 5%;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap; font-size: 11px;
}
.site-footer .site-logo { filter: brightness(0) invert(1); height: 36px; }

/* Panel */
.panel {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-sm);
}

/* Empty state */
.empty-state {
  text-align: center; padding: 60px 20px;
  color: var(--muted);
}
.empty-state .icon { font-size: 48px; margin-bottom: 12px; }
.empty-state h3 { color: var(--deep); margin-bottom: 8px; }
.empty-state p { font-size: 12px; max-width: 280px; margin: 0 auto 20px; }

/* ============================================================
   SWIPEABLE SCROLL ROWS
   ============================================================ */
.scroll-row {
  display: flex; gap: 14px; overflow-x: auto;
  padding-bottom: 6px; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.scroll-row::-webkit-scrollbar { display: none; }
.scroll-row .card { min-width: 220px; scroll-snap-align: start; flex-shrink: 0; }

@media (min-width: 901px) {
  .scroll-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); overflow: visible; }
  .scroll-row .card { min-width: auto; }
}

/* Admin sidebar */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: var(--deep); color: #93a6bd;
  padding: 24px 0;
}
.admin-sidebar .logo-area { padding: 0 20px 24px; border-bottom: 1px solid rgba(255,255,255,.07); }
.admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 20px; font-size: 12.5px; font-weight: 500;
  cursor: pointer; transition: all .15s; color: #93a6bd;
  text-decoration: none;
}
.admin-nav-item:hover, .admin-nav-item.active {
  background: rgba(255,255,255,.07); color: #fff;
}
.admin-nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.admin-content { background: var(--paper); padding: 32px; }

@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
}

/* Gold locked overlay */
.gold-locked {
  position: relative; overflow: hidden;
}
.gold-locked::after {
  content: '🔒 Gold உறுப்பினர்களுக்கு மட்டும்';
  position: absolute; inset: 0;
  background: rgba(253,243,220,.92);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--gold);
  backdrop-filter: blur(4px);
}

/* Interest / like button states */
.like-btn { color: var(--muted); }
.like-btn.active { color: var(--red); }
.shortlist-btn { color: var(--muted); }
.shortlist-btn.active { color: var(--gold); }
