/* ============ Fonts (Thmanyah) ============ */
@font-face { font-family: "Thmanyah Sans"; src: url("/fonts/thmanyah/thmanyahsans-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url("/fonts/thmanyah/thmanyahsans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url("/fonts/thmanyah/thmanyahsans-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url("/fonts/thmanyah/thmanyahsans-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url("/fonts/thmanyah/thmanyahsans-Black.woff2") format("woff2"); font-weight: 800 900; font-style: normal; font-display: swap; }

/* ============ Base ============ */
:root {
  --pink: #FE5E9E;
  --pink-2: #FF7FB0;
  --pink-soft: #FFE6EF;
  --pink-softer: #FFF4F8;
  --ink: #1E1E24;
  --ink-2: #3A3A45;
  --muted: #7A7A85;
  --line: #EFEFF2;
  --line-2: #F5F5F7;
  --bg: #FFFFFF;
  --bg-2: #FBFBFD;
  --blue: #B9D5FF;
  --blue-ink: #3A6FD8;
  --green: #B7EFC9;
  --green-ink: #2CA85B;
  --purple: #E6E1FF;
  --purple-ink: #6A55E0;
  --amber: #FFE3C7;
  --amber-ink: #E08B34;
  --teal: #C7EEE5;
  --teal-ink: #17A187;
  --radius: 18px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(20,20,30,.04), 0 2px 6px rgba(20,20,30,.04);
  --shadow-md: 0 4px 20px rgba(254,94,158,.10), 0 2px 8px rgba(20,20,30,.05);
  --font: "Thmanyah Sans", "IBM Plex Sans Arabic", -apple-system, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: var(--font); }
body { font-size: 15.5px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select { font: inherit; }

/* ============ Layout ============ */
.container { max-width: 1240px; margin: 0 auto; padding: 0 22px; }

/* ============ Top thin bar ============ */
.topbar { background: #14141A; color: #DADADF; font-size: 12.5px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar-links { display: flex; gap: 18px; }
.topbar-links a { opacity: .85; }
.topbar-links a:hover { opacity: 1; color: #fff; }
.topbar-lang { display: inline-flex; align-items: center; gap: 6px; }

/* ============ Header ============ */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; backdrop-filter: saturate(1.2); }
.header-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 30px; height: 30px; }
.brand-name { font-weight: 800; color: var(--pink); font-size: 21px; letter-spacing: -.2px; }
.mainnav { display: flex; justify-content: center; gap: 4px; }
.mainnav a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: 14.5px; }
.mainnav a:hover { color: var(--pink); background: var(--pink-softer); }
.mainnav a.active { color: var(--pink); background: var(--pink-soft); }
.mainnav svg { width: 16px; height: 16px; }
.header-cta { display: inline-flex; align-items: center; gap: 10px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; background: var(--line-2); color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: var(--pink-soft); color: var(--pink); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 12px; font-weight: 700; font-size: 14.5px; transition: transform .06s ease, box-shadow .15s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-ghost { color: var(--ink); background: transparent; border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--line-2); }
.btn-primary { background: var(--pink); color: #fff; box-shadow: 0 6px 16px rgba(254,94,158,.28); }
.btn-primary:hover { background: #ee4f8f; }
.btn-blue { background: #6EA6FF; color: #fff; }
.btn-green { background: #4ECC7A; color: #fff; }
.btn-outline { background: #fff; color: var(--pink); border: 1.5px solid var(--pink); }
.btn-outline:hover { background: var(--pink-softer); }

/* ============ Hero ============ */
.hero { padding: 56px 0 12px; background: linear-gradient(180deg, #fff 0%, #FFF7FB 55%, #fff 100%); text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--pink-soft); color: var(--pink); font-weight: 700; font-size: 13.5px; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--pink); }
.hero h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1.15; margin: 22px 0 8px; font-weight: 900; letter-spacing: -.5px; color: var(--ink); }
.hero h1 .accent { color: var(--pink); }
.hero .sub { font-size: clamp(20px, 2vw, 26px); color: var(--muted); font-weight: 700; margin: 0 0 14px; }
.hero p { max-width: 560px; margin: 0 auto; color: var(--muted); }

/* ============ Auth split ============ */
.auth-split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 44px; padding-bottom: 68px; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); }
.auth-title { display: block; text-align: center; color: var(--pink); font-weight: 800; font-size: 22px; margin: 4px 0 4px; position: relative; }
.auth-title::after { content: ""; display: block; width: 42px; height: 3px; background: var(--pink); border-radius: 3px; margin: 10px auto 0; }
.auth-sub { text-align: center; color: var(--muted); font-size: 14px; margin: 6px 0 22px; }
.auth-btns { display: grid; gap: 12px; }
.auth-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 15px; border-radius: 14px; font-weight: 800; color: #fff; font-size: 15.5px; }
.auth-btn svg { width: 18px; height: 18px; }
.auth-btn.man { background: #7DAAFF; }
.auth-btn.man:hover { background: #6a9cf8; }
.auth-btn.woman { background: #F26EA6; }
.auth-btn.woman:hover { background: #ea5f9a; }
.auth-btn.mediator { background: #56CE86; }
.auth-btn.mediator:hover { background: #48bf77; }
.auth-terms { text-align: center; color: var(--muted); font-size: 13px; margin-top: 16px; }
.auth-terms a { color: var(--pink); text-decoration: underline; text-underline-offset: 3px; }

.field-row { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px 4px 4px; }
.field-row:focus-within { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(254,94,158,.10); }
.field-row .flag { width: 34px; height: 26px; border-radius: 6px; background: #006C35 center/cover no-repeat; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 10px; font-weight: 700; flex-shrink: 0; }
.field-row input { flex: 1; padding: 12px 8px; background: transparent; border: 0; outline: none; text-align: right; }
.field-row .code { color: var(--muted); font-weight: 700; padding: 0 6px; }
.field-icon { color: var(--muted); display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }
.field-icon svg { width: 16px; height: 16px; }
.form-stack { display: grid; gap: 12px; }
.form-row { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.chk { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.chk input { accent-color: var(--pink); }
.form-row a { color: var(--pink); font-size: 13.5px; font-weight: 700; }
.form-submit { width: 100%; padding: 14px; border-radius: 14px; background: #fff; border: 1.5px solid var(--pink); color: var(--pink); font-weight: 800; font-size: 15px; }
.form-submit:hover { background: var(--pink); color: #fff; }

/* ============ Section ============ */
.section { padding: 68px 0; }
.section-alt { background: var(--bg-2); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-title { display: inline-block; color: var(--pink); font-weight: 900; font-size: 34px; position: relative; margin: 0; }
.section-title::after { content: ""; display: block; height: 3px; width: 60px; background: var(--pink); border-radius: 3px; margin: 10px auto 0; }
.section-sub { color: var(--muted); margin-top: 12px; font-size: 15.5px; }

/* ============ Features ============ */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); text-align: center; }
.feature-ico { width: 60px; height: 60px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature-ico svg { width: 26px; height: 26px; }
.feature h3 { margin: 0 0 8px; font-size: 18px; font-weight: 800; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.ico-pink { background: #FFECF3; color: #E14C89; }
.ico-amber { background: #FFF1DE; color: #E08B34; }
.ico-teal { background: #DBF3EC; color: #17A187; }
.ico-purple { background: #EAE4FF; color: #6A55E0; }
.feature h3.pink { color: #E14C89; }
.feature h3.amber { color: #E08B34; }
.feature h3.teal { color: #17A187; }
.feature h3.purple { color: #6A55E0; }

/* ============ Stories ============ */
.stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.story { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.story-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.story-avatars { display: inline-flex; align-items: center; }
.avatar-mini { width: 38px; height: 38px; border-radius: 999px; background: var(--line-2); border: 2px solid #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); font-weight: 800; font-size: 13px; }
.avatar-mini + .avatar-mini { margin-right: -12px; }
.a-pink { background: #FFD9E7; color: #C1417A; }
.a-blue { background: #D6E5FF; color: #3E6BB8; }
.story-name { font-weight: 800; font-size: 16px; }
.story-stars { color: #F6B93B; letter-spacing: 2px; font-size: 14px; }
.story-quote { color: var(--ink-2); font-size: 14.5px; position: relative; padding-right: 20px; }
.story-quote::before { content: "\201C"; position: absolute; right: -4px; top: -14px; color: var(--pink); font-size: 42px; line-height: 1; font-family: Georgia, serif; }

/* ============ Search ============ */
.search-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); max-width: 900px; margin: 0 auto; }
.search-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sel-label { color: var(--ink-2); font-weight: 700; font-size: 13.5px; margin-bottom: 6px; display: block; }
.sel { position: relative; }
.sel select, .sel input { width: 100%; padding: 14px 44px 14px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); appearance: none; text-align: right; }
.sel::after { content: ""; position: absolute; left: 14px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.age-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.age-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.age-badge { background: var(--pink-soft); color: var(--pink); font-weight: 700; padding: 6px 12px; border-radius: 999px; font-size: 13px; }
.age-row { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: center; margin-top: 10px; }
.age-row .lab { color: var(--muted); font-weight: 700; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 16px; font-weight: 800; }
.stepper .val { flex: 1; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; color: var(--pink); font-weight: 800; position: relative; }
.stepper .val::after { content: ""; position: absolute; left: 12px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); }
.search-actions { display: flex; gap: 12px; justify-content: center; margin-top: 22px; }

/* ============ Members ============ */
.tabs { display: inline-flex; background: #fff; border: 1px solid var(--line); padding: 6px; border-radius: 999px; margin: 0 auto 30px; }
.tabs button { padding: 10px 22px; border-radius: 999px; color: var(--muted); font-weight: 700; font-size: 14px; }
.tabs button.active { background: var(--pink); color: #fff; box-shadow: 0 4px 12px rgba(254,94,158,.24); }
.tabs-wrap { display: flex; justify-content: center; }
.members { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.member { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 16px 18px; text-align: center; box-shadow: var(--shadow-sm); }
.member .avatar { width: 78px; height: 78px; border-radius: 999px; margin: 4px auto 14px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 26px; letter-spacing: -.5px; position: relative; }
.member .avatar::after { content: ""; position: absolute; top: 4px; left: 4px; width: 12px; height: 12px; border-radius: 999px; background: #4ECC7A; border: 2px solid #fff; }
.av-1 { background: #FFDCE9; color: #B93F76; }
.av-2 { background: #DDE9FF; color: #3E5FA8; }
.av-3 { background: #E1F1DF; color: #3E7A3A; }
.av-4 { background: #FFECD1; color: #B87721; }
.av-5 { background: #E2DAFF; color: #5B48C4; }
.av-6 { background: #CCEFE6; color: #17766A; }
.av-7 { background: #FFD8CE; color: #C25635; }
.av-8 { background: #E8E8EF; color: #4B5563; }
.member .name { font-weight: 800; font-size: 16px; margin: 0 0 4px; }
.member .meta { display: flex; justify-content: center; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin: 2px 0; }
.member .meta svg { width: 12px; height: 12px; }
.member .age { color: var(--pink); font-weight: 700; font-size: 13px; margin-top: 6px; }

/* ============ Footer ============ */
.site-footer { background: #FBFBFD; border-top: 1px solid var(--line); padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; align-items: start; }
.foot-brand { text-align: right; }
.foot-brand .brand-name { font-size: 26px; }
.foot-brand p { color: var(--muted); margin-top: 14px; font-size: 14.5px; max-width: 320px; }
.foot-social { display: inline-flex; gap: 10px; margin-top: 16px; }
.foot-social a { width: 38px; height: 38px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; }
.foot-social a:hover { background: var(--pink); color: #fff; border-color: var(--pink); }
.foot-title { font-weight: 800; font-size: 15px; margin: 0 0 14px; }
.foot-links { display: grid; gap: 10px; }
.foot-links a { color: var(--muted); font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.foot-links a:hover { color: var(--pink); }
.foot-links svg { width: 14px; height: 14px; }
.stores { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.store { display: inline-flex; align-items: center; gap: 8px; background: #0F0F14; color: #fff; padding: 10px 14px; border-radius: 12px; font-size: 13px; }
.store small { display: block; color: #A8A8B0; font-size: 10.5px; }
.store span { font-weight: 700; }
.foot-copy { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px; text-align: center; color: var(--muted); font-size: 13px; }

/* ============ Pitch ribbon ============ */
.pitch-ribbon { background: linear-gradient(90deg, #14141A, #1E1E24); color: #fff; padding: 10px 0; }
.pitch-ribbon .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.pitch-ribbon .msg { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; }
.pitch-ribbon .msg .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--pink); box-shadow: 0 0 0 4px rgba(254,94,158,.18); }
.pitch-ribbon .msg b { color: var(--pink); }
.pitch-ribbon a { color: #fff; text-decoration: underline; text-underline-offset: 3px; opacity: .9; font-size: 13px; }

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .header-row { grid-template-columns: auto auto; gap: 8px; height: 64px; }
  .mainnav { display: none; }
  .auth-split, .features, .stories, .members, .search-grid, .footer-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .members { grid-template-columns: 1fr 1fr; }
  .hero { padding: 40px 0 6px; }
  .section { padding: 48px 0; }
  .topbar-links { display: none; }
}
@media (max-width: 520px) {
  .features, .members { grid-template-columns: 1fr; }
  .section-title { font-size: 26px; }
}
