/* ============================================================
   GlobalWebix Matrimony Platform — Frontend Design System
   Premium, elegant, matrimonial. Mobile-first.
   ============================================================ */
:root {
  --primary: #0b6b4f;
  --primary-dark: #084c39;
  --primary-soft: #e6f2ed;
  --gold: #c9a227;
  --gold-soft: #faf3dc;
  --ink: #1e293b;
  --muted: #64748b;
  --bg: #faf8f3;
  --surface: #ffffff;
  --line: #e7e2d6;
  --danger: #b91c1c;
  --ok: #15803d;
  --radius: 14px;
  --shadow: 0 10px 34px rgba(15, 42, 35, .08);
  --shadow-lg: 0 24px 64px rgba(15, 42, 35, .14);
  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; color: var(--ink); }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 12px; border: 1.5px solid transparent; font-family: var(--font-body); font-size: 14.5px; font-weight: 600; cursor: pointer; transition: all .16s ease; text-decoration: none; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 18px rgba(11, 107, 79, .25); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 8px 18px rgba(201, 162, 39, .28); }
.btn-gold:hover { background: #b38f1e; color: #fff; }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary-soft); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: #cbd5e1; background: #f8f7f3; }
.btn-danger { background: #fdf3f3; color: var(--danger); border-color: #f3c3c3; }
.btn-sm { padding: 8px 15px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 15px 32px; font-size: 15.5px; border-radius: 14px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 26px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--ink); }
.brand img, .brand svg { width: 40px; height: 40px; }
.brand .brand-accent { color: var(--gold); }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-link { padding: 9px 14px; border-radius: 10px; color: var(--ink); font-weight: 500; font-size: 14.5px; }
.nav-link:hover { background: var(--primary-soft); color: var(--primary-dark); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border: 1.5px solid var(--line); border-radius: 40px; background: #fff; }
.user-chip .avatar { width: 34px; height: 34px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-dark); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; overflow: hidden; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.icon-btn { position: relative; width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); cursor: pointer; }
.icon-btn .dot { position: absolute; top: 8px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--danger); border: 2px solid #fff; display: none; }
.icon-btn .dot.show { display: block; }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); min-width: 210px; padding: 8px; display: none; z-index: 90; }
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a, .dropdown-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 9px; color: var(--ink); font-size: 14px; background: none; border: none; cursor: pointer; text-align: left; font-family: var(--font-body); }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--primary-soft); color: var(--primary-dark); }
.dropdown-divider { height: 1px; background: var(--line); margin: 6px 4px; }
.menu-toggle { display: none; }
.mobile-drawer { position: fixed; inset: 0; background: rgba(15, 42, 35, .5); z-index: 200; display: none; }
.mobile-drawer.open { display: block; }
.drawer-panel { position: absolute; top: 0; left: 0; bottom: 0; width: 290px; background: #fff; padding: 22px; overflow-y: auto; }
.drawer-panel .nav { flex-direction: column; align-items: stretch; gap: 2px; }
.drawer-close { position: absolute; top: 14px; right: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(135deg, #0c5c43 0%, #0b6b4f 45%, #0f7d5c 100%); color: #fff; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 18% 20%, rgba(201, 162, 39, .22), transparent 40%), radial-gradient(circle at 85% 80%, rgba(255, 255, 255, .08), transparent 45%); }
.hero-slide { display: none; padding: 88px 0 60px; position: relative; }
.hero-slide.active { display: block; animation: fadeUp .5s ease; }
.hero h1 { color: #fff; font-size: clamp(30px, 4.6vw, 52px); max-width: 660px; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero .sub { color: #d5ece2; font-size: clamp(15px, 2vw, 18px); margin-top: 14px; max-width: 560px; }
.hero-dots { display: flex; gap: 8px; justify-content: center; padding: 22px 0 0; }
.hero-dots button { width: 9px; height: 9px; border-radius: 20px; border: none; background: rgba(255, 255, 255, .35); cursor: pointer; transition: all .25s; padding: 0; }
.hero-dots button.active { width: 28px; background: var(--gold); }

/* ---------- Search card ---------- */
.search-card { margin-top: 34px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 22px; position: relative; z-index: 2; }
.search-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .4px; }
.field select, .field input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 11px; font-size: 14px; background: #fcfbf8; color: var(--ink); outline: none; transition: border .15s; }
.field select:focus, .field input:focus { border-color: var(--primary); background: #fff; }
.search-actions { display: flex; gap: 10px; align-items: flex-end; }

/* ---------- Sections ---------- */
.section { padding: 62px 0; }
.section-alt { background: #fff; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 38px; }
.section-head .eyebrow { color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: 1.6px; font-size: 12px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin-top: 8px; }
.section-head p { color: var(--muted); margin-top: 10px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.center { text-align: center; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.hidden { display: none !important; }

/* ---------- Profile card ---------- */
.profile-card { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.profile-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.profile-card .pc-photo { width: 132px; height: 158px; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; position: relative; }
.profile-card .pc-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-card .pc-photo .no-photo { font-size: 34px; color: var(--primary); font-family: var(--font-head); font-weight: 700; }
.pc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pc-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pc-name { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--ink); }
.pc-meta { color: var(--muted); font-size: 13.5px; margin-top: 5px; }
.pc-meta strong { color: var(--ink); }
.pc-line { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.pc-actions { margin-top: auto; padding-top: 12px; display: flex; gap: 9px; flex-wrap: wrap; }

/* ---------- Badges / chips ---------- */
.badge-verified { display: inline-flex; align-items: center; gap: 5px; background: var(--ok); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; letter-spacing: .4px; }
.badge-verified svg { width: 12px; height: 12px; }
.badge-premium { display: inline-flex; align-items: center; background: linear-gradient(90deg, #c9a227, #e0bc4c); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.chip { display: inline-block; background: #f4f1ea; color: #4b5563; font-size: 12.5px; padding: 5px 11px; border-radius: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--primary-soft); color: var(--primary-dark); font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 30px; }
.status-badge { font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: 20px; text-transform: uppercase; letter-spacing: .4px; }
.status-approved, .status-active, .status-success, .status-verified, .status-accepted { background: #dcf3e5; color: var(--ok); }
.status-pending, .status-open { background: #fdf1d9; color: #a16207; }
.status-rejected, .status-suspended, .status-declined, .status-cancelled, .status-failed { background: #fbe3e3; color: var(--danger); }
.status-expired, .status-unverified { background: #e8e6e0; color: #6b7280; }

/* ---------- Story / video / plan cards ---------- */
.story-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.story-card .sc-img { height: 200px; background: linear-gradient(135deg, #0b6b4f, #0f7d5c); display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font-head); font-size: 34px; }
.story-card .sc-img img { width: 100%; height: 100%; object-fit: cover; }
.story-card .sc-body { padding: 18px; }
.story-card h3 { font-size: 17px; }
.story-card .sc-meta { color: var(--muted); font-size: 13px; margin: 6px 0 10px; }
.video-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #0d1f1a; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame .thumb { width: 100%; height: 100%; object-fit: cover; }
.video-card .vc-body { padding: 14px 16px; }
.video-card h3 { font-size: 15.5px; font-family: var(--font-body); font-weight: 600; }
.plan-card { background: #fff; border: 1.5px solid var(--line); border-radius: 18px; padding: 28px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; text-align: center; position: relative; }
.plan-card.featured { border-color: var(--gold); box-shadow: var(--shadow-lg); }
.plan-card .price { font-size: 38px; font-family: var(--font-head); font-weight: 700; color: var(--ink); margin: 8px 0 2px; }
.plan-card .price small { font-size: 15px; color: var(--muted); font-family: var(--font-body); }
.plan-card ul { list-style: none; margin: 18px 0 22px; text-align: left; flex: 1; }
.plan-card ul li { padding: 7px 0 7px 26px; position: relative; color: #475569; font-size: 14px; border-bottom: 1px dashed var(--line); }
.plan-card ul li:last-child { border-bottom: none; }
.plan-card ul li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.plan-ribbon { position: absolute; top: 14px; right: -32px; transform: rotate(45deg); background: var(--gold); color: #fff; font-size: 10.5px; font-weight: 800; padding: 5px 36px; letter-spacing: .8px; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - 200px); display: flex; align-items: center; justify-content: center; padding: 48px 20px; }
.auth-card { width: 100%; max-width: 460px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 36px; }
.auth-card h1 { font-size: 26px; text-align: center; }
.auth-card .sub { text-align: center; color: var(--muted); margin-top: 6px; font-size: 14px; }
.form-row { margin-bottom: 17px; }
.form-row label { display: block; font-size: 13.5px; font-weight: 600; color: #334155; margin-bottom: 7px; }
.form-row input, .form-row select, .form-row textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 11px; font-size: 14.5px; background: #fcfbf8; font-family: var(--font-body); outline: none; transition: border .15s, box-shadow .15s; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11, 107, 79, .1); background: #fff; }
.form-row .error { color: var(--danger); font-size: 12.5px; margin-top: 5px; }
.form-row input.error { border-color: var(--danger); }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; align-items: center; gap: 9px; font-size: 14px; color: #475569; }
.check input { width: 17px; height: 17px; accent-color: var(--primary); }
.divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; margin: 20px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.google-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1.5px solid var(--line); background: #fff; padding: 12px; border-radius: 12px; font-weight: 600; color: var(--ink); cursor: pointer; font-size: 14.5px; }
.google-btn svg { width: 20px; height: 20px; }
.auth-foot { text-align: center; margin-top: 20px; color: var(--muted); font-size: 14px; }

/* ---------- Flash / alerts ---------- */
.flash-wrap { position: fixed; top: 84px; left: 50%; transform: translateX(-50%); z-index: 500; display: flex; flex-direction: column; gap: 10px; width: min(94%, 460px); }
.flash { padding: 14px 18px; border-radius: 13px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); animation: slideDown .3s ease; }
.flash-success { background: #dcf3e5; color: #14532d; border: 1px solid #a7e3c0; }
.flash-error { background: #fbe3e3; color: #7f1d1d; border: 1px solid #f3c3c3; }
.flash-info { background: #e0f0fe; color: #1e40af; border: 1px solid #bcddf8; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(15, 42, 35, .55); z-index: 400; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto; box-shadow: var(--shadow-lg); padding: 30px; position: relative; }
.modal h3 { font-size: 21px; margin-bottom: 6px; }
.modal .m-sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 10px; border: none; background: #f4f1ea; cursor: pointer; font-size: 16px; color: var(--muted); }

/* ---------- Dashboard ---------- */
.dash-layout { display: grid; grid-template-columns: 250px 1fr; gap: 26px; align-items: start; padding: 34px 0 60px; }
.dash-side { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; position: sticky; top: 92px; }
.dash-side .ds-head { padding: 10px 12px 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px; display: flex; align-items: center; gap: 12px; }
.dash-side a.ds-link { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-size: 14px; font-weight: 500; }
.dash-side a.ds-link:hover, .dash-side a.ds-link.active { background: var(--primary-soft); color: var(--primary-dark); }
.dash-side a.ds-link .ds-badge { margin-left: auto; background: var(--gold); color: #fff; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 20px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.dash-main { min-width: 0; }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.dash-head h1 { font-size: 26px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.stat-card .sc-label { color: var(--muted); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.stat-card .sc-value { font-size: 27px; font-weight: 700; font-family: var(--font-head); margin-top: 6px; color: var(--ink); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px; }
.panel h2 { font-size: 19px; margin-bottom: 14px; }
.panel .panel-sub { color: var(--muted); font-size: 13.5px; margin: -8px 0 16px; }
.progress-track { height: 10px; background: #f1eee6; border-radius: 20px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), #2e9d78); border-radius: 20px; transition: width .5s ease; }
.progress-label { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 8px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; padding: 11px 13px; background: #f8f6f1; color: #475569; font-size: 12.5px; text-transform: uppercase; letter-spacing: .5px; border-bottom: 1.5px solid var(--line); }
table.data td { padding: 12px 13px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:hover td { background: #fcfaf5; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; margin-top: 30px; }
.pagination ul { display: flex; gap: 6px; list-style: none; }
.pagination a, .pagination span { display: inline-flex; min-width: 38px; height: 38px; padding: 0 8px; align-items: center; justify-content: center; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-size: 14px; }
.pagination li.active a { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- Registration stepper ---------- */
.stepper { display: flex; align-items: center; justify-content: center; gap: 0; margin: 26px 0 30px; overflow-x: auto; }
.step-dot { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 74px; position: relative; }
.step-dot .num { width: 34px; height: 34px; border-radius: 50%; background: #f1eee6; color: var(--muted); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.step-dot.active .num { background: var(--primary); color: #fff; }
.step-dot.done .num { background: var(--ok); color: #fff; }
.step-dot .lbl { font-size: 11.5px; color: var(--muted); font-weight: 600; text-align: center; }
.step-dot.active .lbl { color: var(--primary-dark); }
.step-dot::after { content: ''; position: absolute; top: 17px; left: calc(50% + 20px); width: 48px; height: 2px; background: var(--line); }
.step-dot:last-child::after { display: none; }
.step-dot.done::after { background: var(--ok); }

/* ---------- Messages ---------- */
.msg-thread { display: flex; flex-direction: column; gap: 10px; max-height: 480px; overflow-y: auto; padding: 4px; }
.msg-bubble { max-width: 74%; padding: 11px 15px; border-radius: 15px; font-size: 14.5px; line-height: 1.55; }
.msg-bubble.out { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.msg-bubble.in { align-self: flex-start; background: #f1eee6; color: var(--ink); border-bottom-left-radius: 4px; }
.msg-time { font-size: 11px; opacity: .75; margin-top: 4px; }
.conv-item { display: flex; align-items: center; gap: 13px; padding: 13px 15px; border-radius: 13px; border: 1.5px solid var(--line); background: #fff; margin-bottom: 10px; }
.conv-item:hover { border-color: var(--primary); }
.conv-item .ci-body { flex: 1; min-width: 0; }
.conv-item .ci-name { font-weight: 600; font-size: 15px; }
.conv-item .ci-preview { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-item .ci-time { color: var(--muted); font-size: 12px; }

/* ---------- Uploads / photos ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.photo-tile { border: 1.5px solid var(--line); border-radius: 13px; overflow: hidden; background: #fff; }
.photo-tile img { width: 100%; height: 150px; object-fit: cover; }
.photo-tile .pt-body { padding: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.upload-zone { border: 2px dashed #cfc8b8; border-radius: 14px; padding: 28px; text-align: center; color: var(--muted); cursor: pointer; transition: all .2s; background: #fcfbf8; }
.upload-zone:hover { border-color: var(--primary); background: var(--primary-soft); }

/* ---------- Profile detail ---------- */
.pd-grid { display: grid; grid-template-columns: 380px 1fr; gap: 26px; align-items: start; }
.pd-photos { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.pd-main-photo { aspect-ratio: 3/4; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; }
.pd-main-photo img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px; }
.pd-thumbs img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; cursor: pointer; opacity: .75; }
.pd-thumbs img:hover, .pd-thumbs img.active { opacity: 1; outline: 2px solid var(--primary); }
.pd-info { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); }
.pd-info h1 { font-size: 27px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pd-headline { color: var(--muted); margin-top: 6px; font-size: 15px; }
.pd-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 8px; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 26px; margin-top: 18px; }
.info-item { padding: 12px 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 14px; font-size: 14px; }
.info-item .k { color: var(--muted); }
.info-item .v { font-weight: 600; text-align: right; }
.info-item.full { grid-column: 1 / -1; display: block; }
.info-item.full .v { display: block; text-align: left; margin-top: 5px; font-weight: 400; line-height: 1.65; }

/* ---------- Footer ---------- */
.site-footer { background: #0f2a23; color: #b7c9c1; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 34px; padding: 54px 0 40px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; font-family: var(--font-body); font-weight: 700; }
.site-footer a { color: #b7c9c1; display: block; padding: 5px 0; font-size: 14px; }
.site-footer a:hover { color: var(--gold); }
.footer-brand { font-family: var(--font-head); font-size: 22px; color: #fff; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .08); display: flex; align-items: center; justify-content: center; color: #fff; padding: 0; }
.footer-social a:hover { background: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; text-align: center; font-size: 13px; color: #7e948b; }

/* ---------- Misc ---------- */
.empty-state { text-align: center; padding: 54px 20px; color: var(--muted); }
.empty-state .icon { font-size: 44px; margin-bottom: 12px; }
.avatar-stack { display: flex; }
.avatar-stack .avatar { border: 2px solid #fff; margin-left: -10px; }
.text-muted { color: var(--muted); }
.text-success { color: var(--ok); }
.text-danger { color: var(--danger); }
.flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.newsletter-note, .app-badges { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .search-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav, .header-actions .hide-mobile { display: none; }
  .menu-toggle { display: inline-flex; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .search-card { padding: 16px; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-side { position: static; }
  .dash-side .ds-links { display: none; }
  .dash-side.open .ds-links { display: block; }
  .field-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .section { padding: 44px 0; }
  .info-grid { grid-template-columns: 1fr; }
  .profile-card { flex-direction: column; }
  .profile-card .pc-photo { width: 100%; height: 220px; }
  .pc-actions .btn { flex: 1; padding: 12px 10px; font-size: 13.5px; }
}

/* ============================================================
   Premium v2 — top bar, marquee, translate, hero, auth, search
   ============================================================ */

/* ---------- Top bar ---------- */
.topbar { background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--primary-dark)); color: #fff; font-size: 13px; position: relative; z-index: 120; }
.topbar-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 38px; gap: 14px; }
.tb-left { display: flex; align-items: center; }
.tb-right { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.tb-social { width: 27px; height: 27px; border-radius: 50%; background: rgba(255,255,255,.14); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; transition: all .2s; }
.tb-social:hover { background: var(--gold); color: #fff; }
.tb-marquee { overflow: hidden; max-width: 640px; }
.marquee { overflow: hidden; white-space: nowrap; }
.marquee span { display: inline-block; padding-left: 100%; animation: marquee 30s linear infinite; font-size: 12.5px; letter-spacing: .2px; }
.marquee span i { margin-right: 6px; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* Google Translate widget — styled with theme colors */
.gt-wrap { display: flex; align-items: center; }
.gt-wrap .goog-te-gadget { font-family: var(--font-body) !important; font-size: 12.5px !important; color: #fff !important; display: flex; align-items: center; gap: 6px; }
.gt-wrap .goog-te-gadget .goog-te-combo { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: 12.5px; padding: 4px 8px; border-radius: 8px; outline: none; cursor: pointer; }
.gt-wrap .goog-te-gadget .goog-te-combo option { color: var(--ink); }
.gt-wrap .goog-te-gadget img { display: none; }
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }

/* ---------- Premium header ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(15,42,35,.08); }
.brand-mark { width: 44px; height: 44px; border-radius: 13px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; box-shadow: 0 6px 16px rgba(11,107,79,.3); }
.brand-text { font-family: var(--font-head); font-size: 21px; font-weight: 700; }
.brand-text::after { content: ''; }
.nav-link { position: relative; }
.nav-link::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link:hover { background: transparent; color: var(--primary-dark); }

/* ---------- Hero premium ---------- */
.hero { background: linear-gradient(135deg, #083c2c 0%, var(--primary-dark) 42%, #0d7d5c 100%); }
.hero::before { content: ''; position: absolute; inset: 0; background:
  radial-gradient(circle at 12% 22%, rgba(201,162,39,.28), transparent 42%),
  radial-gradient(circle at 88% 78%, rgba(255,255,255,.10), transparent 40%),
  radial-gradient(circle at 70% 20%, rgba(255,255,255,.06), transparent 30%); }
.hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 120px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.18)); pointer-events: none; }
.hero-slide { padding: 96px 0 64px; }
.hero h1 { font-size: clamp(32px, 4.8vw, 56px); letter-spacing: -.5px; }
.hero h1 em { position: relative; }
.hero h1 em::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 10px; background: rgba(201,162,39,.35); z-index: -1; border-radius: 4px; }
.hero .sub { font-size: clamp(15.5px, 2vw, 18.5px); }
.hero-cta { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero-cta .btn { padding: 15px 30px; font-size: 15.5px; border-radius: 14px; }
.hero-dots { padding: 26px 0 0; }
.hero-dots button { width: 11px; height: 11px; }
.hero-dots button.active { width: 34px; background: var(--gold); }
.search-card { border: 1px solid rgba(231,226,214,.9); }
.search-card .search-grid { grid-template-columns: repeat(5, 1fr); }
.search-actions { margin-top: 14px; }

/* ---------- Section heads premium ---------- */
.section-head .eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.section-head .eyebrow::before, .section-head .eyebrow::after { content: ''; width: 26px; height: 1.5px; background: var(--gold); }
.section-head h2 { position: relative; }
.section-alt .section-head h2::after { content: ''; display: block; width: 64px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--gold), transparent); margin: 14px auto 0; }

/* ---------- Premium profile cards ---------- */
.profile-card { position: relative; overflow: hidden; }
.profile-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--gold)); opacity: 0; transition: opacity .2s; }
.profile-card:hover::before { opacity: 1; }
.profile-card .pc-photo::after { content: ''; position: absolute; inset: auto 0 0 0; height: 34px; background: linear-gradient(180deg, transparent, rgba(11,42,32,.25)); }
.pc-name { transition: color .15s; }
.profile-card:hover .pc-name { color: var(--primary); }

/* ---------- Compact search (home) ---------- */
.search-card.compact .search-grid { grid-template-columns: repeat(5, 1fr); }
.search-card.compact .field select, .search-card.compact .field input { padding: 11px 12px; font-size: 13.5px; }
.search-card.compact .more-fields { display: none; }
.search-card.compact .more-fields.open { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.more-filters-toggle { display: inline-flex; align-items: center; gap: 7px; background: none; border: none; color: var(--primary); font-weight: 600; font-size: 13.5px; cursor: pointer; padding: 8px 4px; }
.more-filters-toggle i { transition: transform .2s; }
.more-filters-toggle.open i { transform: rotate(180deg); }

/* ---------- Premium login ---------- */
.auth-wrap { padding: 56px 20px; }
.auth-card { overflow: hidden; }
.auth-split { display: grid; grid-template-columns: 1fr 1.15fr; }
.auth-aside { background: linear-gradient(160deg, var(--primary-dark), var(--primary) 60%, #0d7d5c); color: #fff; padding: 44px 36px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-aside::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 30%, rgba(201,162,39,.25), transparent 45%), radial-gradient(circle at 85% 85%, rgba(255,255,255,.08), transparent 40%); }
.auth-aside h2 { color: #fff; font-size: 30px; margin-bottom: 14px; }
.auth-aside p { color: #d3ebe1; font-size: 14.5px; line-height: 1.75; }
.auth-aside .aa-stats { display: flex; gap: 26px; margin-top: 30px; }
.auth-aside .aa-stat strong { display: block; font-size: 26px; font-family: var(--font-head); }
.auth-aside .aa-stat span { font-size: 12.5px; color: #c2e0d3; }
.auth-form-side { padding: 40px 42px; }
.auth-form-side h1 { font-size: 26px; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; pointer-events: none; }
.input-icon input { padding-left: 42px; }
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; border: 1.5px solid var(--line); background: #fff; padding: 12px; border-radius: 12px; font-weight: 600; color: var(--ink); cursor: pointer; font-size: 14.5px; transition: all .15s; }
.btn-google:hover { border-color: #cbd5e1; background: #faf9f6; }
.btn-google svg { width: 19px; height: 19px; }

/* ---------- Premium register stepper ---------- */
.step-dot .num { box-shadow: 0 4px 10px rgba(15,42,35,.08); font-size: 13px; }
.step-dot.active .num { box-shadow: 0 6px 16px rgba(11,107,79,.35); }
.reg-step .panel { box-shadow: none; border: 1.5px solid var(--line); }
.upload-zone { transition: all .2s; }
.upload-zone:hover { transform: translateY(-1px); }

/* ---------- Icon helpers ---------- */
.btn i { font-size: 13.5px; }
.icon-btn i { font-size: 16px; }
.avatar i { font-size: 16px; color: var(--primary); }

/* ---------- Responsive premium ---------- */
@media (max-width: 1024px) {
  .search-card.compact .search-grid, .search-card.compact .more-fields.open { grid-template-columns: repeat(3, 1fr); }
  .search-card .search-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .topbar-inner { grid-template-columns: 1fr auto; }
  .tb-marquee { display: none; }
  .auth-split { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-form-side { padding: 30px 24px; }
  .search-card.compact .search-grid, .search-card.compact .more-fields.open, .search-card .search-grid { grid-template-columns: 1fr 1fr; }
}
