/* ============================================
   EMZA GLOBAL MATRIMONY — Main Stylesheet
   Elegant · Islamic · Professional
============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: #FDFBF7;
  color: #111827;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: inherit; }

/* ── CSS VARIABLES ── */
:root {
  --green:       #0F6E56;
  --green-dark:  #063d2d;
  --green-mid:   #0a5540;
  --green-light: #1D9E75;
  --green-pale:  #E8F5F0;
  --green-ultra: #F0FAF6;

  --gold:        #BA7517;
  --gold-light:  #EF9F27;
  --gold-pale:   #FEF3DC;

  --red:         #DC2626;
  --red-pale:    #FEE2E2;
  --green-ok:    #16A34A;
  --green-ok-p:  #DCFCE7;

  --cream:       #FDFBF7;
  --bg:          #F8F9FA;
  --white:       #FFFFFF;
  --border:      #E5E7EB;
  --border-lt:   #F3F4F6;

  --text:        #111827;
  --text-mid:    #374151;
  --text-muted:  #6B7280;
  --text-light:  #9CA3AF;

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
  --shadow:      0 4px 16px rgba(0,0,0,0.08);
  --shadow-md:   0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg:   0 16px 48px rgba(0,0,0,0.12);
  --shadow-g:    0 8px 32px rgba(15,110,86,0.15);

  --r-sm:   6px;
  --r:      10px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-full: 9999px;
  --nav-h:  68px;
  --ease:   all 0.2s ease;
}

/* ── UTILITIES ── */
.hidden { display: none !important; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.container-xs { max-width: 480px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.mt-1{margin-top:8px} .mt-2{margin-top:16px} .mt-3{margin-top:24px}
.mb-1{margin-bottom:8px} .mb-2{margin-bottom:16px} .mb-3{margin-bottom:24px}

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4 { font-family: 'Playfair Display', serif; line-height: 1.25; }
h1 { font-size: clamp(2rem,5vw,3.6rem); }
h2 { font-size: clamp(1.6rem,3.5vw,2.4rem); }
h3 { font-size: 1.2rem; }

/* ── LOGO ── */
.logo { display:flex; flex-direction:column; gap:0; text-decoration:none; }
.logo-word { font-family:'Playfair Display',serif; font-size:1.3rem; font-weight:700; color:var(--green-dark); letter-spacing:.2em; line-height:1; }
.logo-rule { height:1.5px; background:var(--gold-light); margin:4px 0 3px; }
.logo-sub  { font-size:.48rem; letter-spacing:.2em; text-transform:uppercase; color:var(--text-muted); }
.logo-light .logo-word { color:#fff; }
.logo-light .logo-sub  { color:rgba(255,255,255,.45); }

/* ── TAGS ── */
.tag { display:inline-flex; align-items:center; gap:4px; padding:3px 10px; border-radius:var(--r-full); font-size:11px; font-weight:500; white-space:nowrap; }
.tag-green  { background:var(--green-pale); color:var(--green); border:1px solid rgba(15,110,86,.15); }
.tag-gold   { background:var(--gold-pale);  color:var(--gold);  border:1px solid rgba(186,117,23,.15); }
.tag-red    { background:var(--red-pale);   color:var(--red);   border:1px solid rgba(220,38,38,.15); }
.tag-grey   { background:var(--border-lt);  color:var(--text-muted); border:1px solid var(--border); }

/* ── BUTTONS ── */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:11px 24px; border-radius:var(--r-full);
  font-size:14px; font-weight:500; cursor:pointer; border:none;
  transition:var(--ease); white-space:nowrap; text-decoration:none; line-height:1;
}
.btn:disabled { opacity:.45; cursor:not-allowed; }
.btn-primary  { background:var(--green); color:#fff; box-shadow:0 2px 8px rgba(15,110,86,.3); }
.btn-primary:hover  { background:var(--green-dark); transform:translateY(-1px); box-shadow:var(--shadow-g); }
.btn-outline  { background:transparent; color:var(--green); border:1.5px solid var(--green); }
.btn-outline:hover  { background:var(--green-pale); }
.btn-gold     { background:linear-gradient(135deg,var(--gold-light),var(--gold)); color:#fff; box-shadow:0 2px 8px rgba(186,117,23,.3); }
.btn-gold:hover     { transform:translateY(-1px); box-shadow:0 6px 20px rgba(186,117,23,.35); }
.btn-white    { background:#fff; color:var(--green); box-shadow:var(--shadow); }
.btn-white:hover    { background:var(--cream); }
.btn-wa       { background:#25D366; color:#fff; }
.btn-wa:hover       { background:#1da851; }
.btn-red      { background:var(--red); color:#fff; }
.btn-lg   { padding:14px 32px; font-size:16px; }
.btn-sm   { padding:8px 18px; font-size:13px; }
.btn-xs   { padding:5px 12px; font-size:11px; }
.btn-block{ width:100%; }

/* ── FORMS ── */
.field { margin-bottom:16px; }
.field label { display:block; font-size:13px; font-weight:500; color:var(--text-mid); margin-bottom:6px; }
.field label .req { color:var(--red); margin-left:2px; }
.field .note { font-size:11px; color:var(--text-muted); margin-top:5px; line-height:1.4; }
.input,.select,.textarea {
  width:100%; padding:11px 14px;
  border:1.5px solid var(--border); border-radius:var(--r);
  font-size:14px; color:var(--text); background:#fff;
  outline:none; transition:var(--ease); appearance:none;
}
.input:focus,.select:focus,.textarea:focus { border-color:var(--green); box-shadow:0 0 0 3px rgba(15,110,86,.1); }
.input::placeholder { color:var(--text-light); }
.textarea { resize:vertical; min-height:90px; line-height:1.6; }
.select {
  background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat:no-repeat; background-position:right 12px center; background-size:16px; padding-right:36px;
}
.form-grid   { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.form-grid-3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:14px; }
.checkbox-label { display:flex; align-items:flex-start; gap:10px; cursor:pointer; font-size:13px; color:var(--text-mid); line-height:1.5; }
.checkbox-label input[type="checkbox"] { margin-top:2px; flex-shrink:0; accent-color:var(--green); width:16px; height:16px; }

/* ── ALERTS ── */
.alert { padding:12px 16px; border-radius:var(--r); font-size:13px; margin-bottom:16px; display:flex; align-items:flex-start; gap:8px; }
.alert-error   { background:var(--red-pale);   color:var(--red);     border:1px solid #FCA5A5; }
.alert-success { background:var(--green-ok-p); color:var(--green-ok); border:1px solid #86EFAC; }
.alert-warn    { background:var(--gold-pale);  color:var(--gold);    border:1px solid #FCD34D; }
.alert-info    { background:var(--green-pale); color:var(--green);   border:1px solid rgba(15,110,86,.2); }

/* ── CARDS ── */
.card { background:#fff; border-radius:var(--r-lg); border:1px solid var(--border); padding:24px; box-shadow:var(--shadow-sm); }

/* ── OTP BOXES ── */
.otp-row { display:flex; gap:10px; justify-content:center; margin:20px 0; }
.otp-box { width:50px; height:58px; border:2px solid var(--border); border-radius:var(--r); text-align:center; font-size:1.5rem; font-family:monospace; font-weight:700; color:var(--text); outline:none; transition:var(--ease); }
.otp-box:focus { border-color:var(--green); box-shadow:0 0 0 3px rgba(15,110,86,.1); }

/* ── SPINNER ── */
.spinner { width:32px; height:32px; border:3px solid var(--green-pale); border-top-color:var(--green); border-radius:50%; animation:spin .7s linear infinite; margin:32px auto; }
@keyframes spin { to { transform:rotate(360deg); } }

/* ── MODAL ── */
.modal-overlay { position:fixed; inset:0; z-index:300; background:rgba(6,61,45,.75); backdrop-filter:blur(8px); display:none; align-items:center; justify-content:center; padding:16px; }
.modal-overlay.open { display:flex; }
.modal { background:#fff; border-radius:var(--r-xl); padding:32px; max-width:500px; width:100%; max-height:90vh; overflow-y:auto; position:relative; box-shadow:var(--shadow-lg); }
.modal__close { position:absolute; top:16px; right:16px; width:32px; height:32px; border-radius:50%; background:var(--bg); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; cursor:pointer; font-size:16px; color:var(--text-muted); transition:var(--ease); }
.modal__close:hover { background:var(--border); }

/* ── NAV ── */
.nav { position:fixed; top:0; left:0; right:0; z-index:100; background:rgba(253,251,247,.96); backdrop-filter:blur(16px); border-bottom:1px solid var(--border); height:var(--nav-h); display:flex; align-items:center; }
.nav__inner { display:flex; align-items:center; justify-content:space-between; width:100%; max-width:1160px; margin:0 auto; padding:0 24px; }
.nav__links { display:flex; gap:4px; align-items:center; }
.nav__link { font-size:13px; font-weight:500; color:var(--text-muted); padding:6px 12px; border-radius:var(--r-full); transition:var(--ease); }
.nav__link:hover { color:var(--green); background:var(--green-ultra); }
.nav__link.active { color:var(--green); }
.nav__ctas { display:flex; gap:10px; align-items:center; }
.nav__hamburger { display:none; flex-direction:column; gap:5px; cursor:pointer; padding:4px; background:none; border:none; }
.nav__hamburger span { width:22px; height:2px; background:var(--text); border-radius:2px; transition:var(--ease); display:block; }
.mobile-menu { display:none; position:fixed; top:var(--nav-h); left:0; right:0; background:#fff; border-bottom:1px solid var(--border); padding:16px 24px; z-index:99; flex-direction:column; gap:8px; box-shadow:var(--shadow-md); }
.mobile-menu.open { display:flex; }
.mobile-menu .nav__link { padding:10px 14px; }

/* ── PROFILE CARD ── */
.profile-card { background:#fff; border-radius:var(--r-lg); border:1px solid var(--border); overflow:hidden; transition:var(--ease); box-shadow:var(--shadow-sm); }
.profile-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-md); border-color:rgba(15,110,86,.25); }
.profile-card__photo { background:var(--green-pale); height:180px; display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden; }
.profile-card__photo img { width:100%; height:100%; object-fit:cover; }
.profile-card__avatar { width:85px; height:85px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:2rem; font-weight:700; font-family:'Playfair Display',serif; color:#fff; border:3px solid var(--gold-light); }
.profile-card__id { position:absolute; top:10px; left:10px; background:rgba(0,0,0,.55); color:#fff; font-size:10px; font-family:monospace; font-weight:600; padding:3px 8px; border-radius:4px; backdrop-filter:blur(4px); }
.profile-card__status { position:absolute; top:10px; right:10px; }
.profile-card__match { position:absolute; bottom:10px; right:10px; background:var(--green); color:#fff; font-size:11px; font-weight:600; padding:4px 10px; border-radius:var(--r-full); }
.profile-card__body { padding:16px; }
.profile-card__name { font-family:'Playfair Display',serif; font-size:1.1rem; font-weight:600; color:var(--text); margin-bottom:2px; }
.profile-card__meta { font-size:12px; color:var(--text-muted); margin-bottom:10px; }
.profile-card__tags { display:flex; gap:4px; flex-wrap:wrap; margin-bottom:12px; }
.profile-card__about { font-size:12px; color:var(--text-muted); line-height:1.6; margin-bottom:12px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.profile-card__actions { display:flex; gap:8px; padding-top:12px; border-top:1px solid var(--border-lt); }
.profile-card__actions .btn { flex:1; font-size:12px; padding:9px 8px; }
.profiles-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:20px; }

/* ── FILTER BAR ── */
.filter-bar { background:#fff; border:1px solid var(--border); border-radius:var(--r-md); padding:14px 18px; display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom:24px; box-shadow:var(--shadow-sm); }
.filter-select { padding:8px 32px 8px 12px; border:1.5px solid var(--border); border-radius:var(--r-full); font-size:13px; font-family:inherit; outline:none; cursor:pointer; background:#fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") no-repeat right 8px center / 14px; appearance:none; transition:var(--ease); color:var(--text); }
.filter-select:focus { border-color:var(--green); }
.filter-count { font-size:13px; color:var(--text-muted); margin-left:auto; font-weight:500; }

/* ── PHOTO UPLOAD ── */
.photo-upload { border:2px dashed var(--border); border-radius:var(--r-md); padding:28px; text-align:center; cursor:pointer; position:relative; transition:var(--ease); background:var(--bg); }
.photo-upload:hover { border-color:var(--green); background:var(--green-ultra); }
.photo-upload input[type="file"] { position:absolute; inset:0; opacity:0; cursor:pointer; width:100%; height:100%; }
.photo-preview { width:85px; height:85px; border-radius:50%; object-fit:cover; border:3px solid var(--gold-light); margin:0 auto 8px; display:block; }

/* ── STEPS ── */
.steps-progress { display:flex; gap:4px; margin-bottom:6px; }
.steps-pip { flex:1; height:4px; border-radius:var(--r-full); background:var(--border); transition:background .3s; }
.steps-pip.done { background:var(--green); }

/* ── EMPTY STATE ── */
.empty-state { text-align:center; padding:60px 20px; }
.empty-state__icon { font-size:4rem; margin-bottom:16px; }
.empty-state__title { font-family:'Playfair Display',serif; font-size:1.4rem; color:var(--text-mid); margin-bottom:8px; }
.empty-state__text { font-size:14px; color:var(--text-muted); max-width:360px; margin:0 auto 20px; }

/* ── TABLE ── */
.table-wrap { background:#fff; border:1px solid var(--border); border-radius:var(--r-lg); overflow:hidden; }
.table-header { padding:16px 20px; border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
table { width:100%; border-collapse:collapse; }
th { background:var(--bg); color:var(--text-muted); font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.08em; padding:12px 16px; text-align:left; border-bottom:1px solid var(--border); }
td { padding:14px 16px; font-size:13px; border-bottom:1px solid var(--border-lt); vertical-align:middle; }
tr:last-child td { border-bottom:none; }
tr:hover td { background:var(--bg); }

/* ── PRICING ── */
.plan-card { border:2px solid var(--border); border-radius:var(--r-lg); padding:32px; text-align:center; transition:var(--ease); background:#fff; position:relative; overflow:hidden; }
.plan-card:hover { border-color:var(--green); box-shadow:var(--shadow-g); transform:translateY(-4px); }
.plan-card.featured { border-color:var(--gold-light); }
.plan-card.featured::before { content:'RECOMMENDED'; position:absolute; top:16px; right:-28px; background:var(--gold-light); color:#fff; font-size:9px; font-weight:700; letter-spacing:.1em; padding:5px 40px; transform:rotate(45deg); }
.plan-price { font-family:'Playfair Display',serif; font-size:3rem; color:var(--green); line-height:1; }
.plan-price sup { font-size:1.2rem; vertical-align:super; }
.plan-price sub { font-size:.9rem; color:var(--text-muted); }
.plan-features { list-style:none; text-align:left; margin:20px 0; }
.plan-features li { padding:7px 0; font-size:13px; color:var(--text-mid); display:flex; gap:8px; align-items:flex-start; border-bottom:1px solid var(--border-lt); }
.plan-features li:last-child { border-bottom:none; }
.plan-features li::before { content:'✓'; color:var(--green); font-weight:700; flex-shrink:0; }

/* ── PAGE HEADER ── */
.page-header { background:linear-gradient(135deg,var(--green-dark),var(--green-mid)); padding:60px 0 48px; margin-top:var(--nav-h); }
.page-header h1 { color:#fff; font-family:'Playfair Display',serif; margin-bottom:8px; }
.page-header p { color:rgba(255,255,255,.65); font-size:15px; }

/* ── AUTH PAGE ── */
.auth-page { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:var(--nav-h) 16px 40px; background:linear-gradient(160deg,var(--cream) 50%,var(--green-ultra)); }
.auth-card { background:#fff; border-radius:var(--r-xl); padding:40px; max-width:440px; width:100%; box-shadow:var(--shadow-lg); border:1px solid var(--border); }
.auth-card__logo { margin-bottom:28px; display:flex; justify-content:center; }
.auth-card__title { font-family:'Playfair Display',serif; color:var(--green-dark); font-size:1.75rem; margin-bottom:4px; }
.auth-card__sub { font-size:13px; color:var(--text-muted); margin-bottom:24px; }
.auth-tabs { display:flex; background:var(--bg); border-radius:var(--r-full); padding:3px; margin-bottom:24px; gap:3px; }
.auth-tab { flex:1; padding:8px; border:none; background:transparent; border-radius:var(--r-full); font-family:inherit; font-size:13px; cursor:pointer; transition:var(--ease); color:var(--text-muted); font-weight:500; }
.auth-tab.active { background:#fff; color:var(--green); box-shadow:0 2px 8px rgba(0,0,0,.08); }

/* ── SUCCESS PAGE ── */
.success-box { background:var(--green-pale); border:2px solid rgba(15,110,86,.2); border-radius:var(--r-lg); padding:28px; text-align:center; margin-top:20px; }
.success-id { font-family:monospace; font-size:1.6rem; font-weight:700; color:var(--green-dark); background:#fff; border:2px solid var(--green); border-radius:var(--r); padding:12px 24px; display:inline-block; margin:12px 0; letter-spacing:.08em; }

/* ── TRUST BAR ── */
.trust-bar { background:var(--green-dark); padding:12px 0; }
.trust-bar__inner { display:flex; gap:28px; justify-content:center; align-items:center; flex-wrap:wrap; }
.trust-item { display:flex; align-items:center; gap:7px; color:rgba(255,255,255,.75); font-size:12px; font-weight:500; }

/* ── FOOTER ── */
.footer { background:#0D0D0D; color:rgba(255,255,255,.55); padding:56px 0 24px; }
.footer-grid { display:grid; grid-template-columns:2.2fr 1fr 1fr 1fr; gap:40px; margin-bottom:40px; }
.footer__desc { font-size:13px; line-height:1.75; color:rgba(255,255,255,.4); margin-top:14px; max-width:260px; }
.footer__urdu { font-size:.95rem; color:var(--gold-light); direction:rtl; margin-top:10px; }
.footer__col-title { font-size:10px; text-transform:uppercase; letter-spacing:.12em; color:rgba(255,255,255,.3); font-weight:600; margin-bottom:14px; }
.footer__col ul { list-style:none; }
.footer__col li { margin-bottom:9px; }
.footer__col a { font-size:13px; color:rgba(255,255,255,.5); transition:color .2s; }
.footer__col a:hover { color:var(--gold-light); }
.footer__bottom { border-top:1px solid rgba(255,255,255,.08); padding-top:20px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; font-size:11px; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.fade-up { animation:fadeUp .6s ease both; }
.fade-in { animation:fadeIn .4s ease both; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width:5px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:var(--border); border-radius:3px; }

/* ── RESPONSIVE ── */
@media (max-width:900px) {
  .nav__links { display:none; }
  .nav__hamburger { display:flex; }
  .footer-grid { grid-template-columns:1fr 1fr; gap:28px; }
  .form-grid { grid-template-columns:1fr; }
  .form-grid-3 { grid-template-columns:1fr 1fr; }
}
@media (max-width:640px) {
  .container { padding:0 16px; }
  .auth-card { padding:28px 20px; }
  .modal { padding:24px 18px; border-radius:var(--r-lg); }
  .footer-grid { grid-template-columns:1fr; }
  .form-grid-3 { grid-template-columns:1fr; }
  .trust-bar__inner { gap:14px; }
  .filter-bar { flex-direction:column; align-items:stretch; }
  .filter-count { margin-left:0; }
}
