@charset "UTF-8";
:root {
  --violet: #6c5ce7;
  --violet-dark: #5949d2;
  --violet-soft: #eeebff;
  --coral: #ff7675;
  --coral-soft: #fff0ed;
  --mint: #55cbb0;
  --mint-soft: #e5f7f1;
  --navy: #0f172a;
  --ink: #263047;
  --muted: #748097;
  --line: #e8e9f0;
  --light: #f4f5f9;
  --paper: #ffffff;
  --warm: #faf9f6;
  --green: #258b72;
  --danger: #cf4c59;
  --shadow: 0 14px 42px rgba(29, 35, 67, .07);
  --shadow-sm: 0 6px 22px rgba(29, 35, 67, .055);
  --radius: 22px;
  --radius-sm: 14px;
  --font: Inter, "Cairo", "IBM Plex Sans Arabic", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: #f7f6fb; scroll-behavior: smooth; }
body { margin: 0; color: var(--navy); background: #f7f6fb; font-family: var(--font); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(108,92,231,.27); outline-offset: 2px; }
button:disabled { cursor: not-allowed; opacity: .58; }
a { color: var(--violet); text-decoration: none; }
::selection { background: #e7e2ff; }
#app { min-height: 100vh; }

/* Brand */
.brand-lockup { display: inline-flex; align-items: center; gap: 11px; color: var(--navy); }
.brand-mark { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 15px; background: #f0edff; }
.brand-mark svg { display: block; width: 36px; height: 36px; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: -.055em; line-height: 1; }
.brand-name small { display: block; margin-top: 5px; font-size: 9px; font-weight: 750; letter-spacing: .2em; color: #8a87aa; }
.brand-lockup.compact { gap: 9px; }
.brand-lockup.compact .brand-mark { width: 39px; height: 39px; border-radius: 13px; }
.brand-lockup.compact .brand-mark svg { width: 32px; height: 32px; }

/* Entry and onboarding */
.auth-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(350px, 1.04fr) minmax(450px, .96fr); background: var(--paper); }
.auth-story { position: relative; overflow: hidden; min-height: 100vh; padding: clamp(35px, 6vw, 82px); display: flex; flex-direction: column; justify-content: space-between; background: #f2f0fc; }
.auth-story:before, .auth-story:after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.auth-story:before { width: 460px; height: 460px; top: -190px; inset-inline-start: -150px; background: radial-gradient(circle, rgba(162,155,254,.22), transparent 68%); }
.auth-story:after { width: 540px; height: 540px; bottom: -300px; inset-inline-end: -180px; background: radial-gradient(circle, rgba(85,203,176,.15), transparent 67%); }
.auth-story > * { position: relative; z-index: 1; }
.auth-copy { max-width: 550px; margin-top: auto; margin-bottom: 30px; }
.eyebrow { color: var(--violet); text-transform: uppercase; font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.auth-copy h1 { margin: 18px 0 14px; max-width: 480px; font-size: clamp(38px, 5vw, 60px); line-height: 1.09; letter-spacing: -.065em; font-weight: 780; }
.auth-copy h1 .highlight { color: var(--violet); }
.auth-copy p { max-width: 440px; margin: 0; font-size: 16px; line-height: 1.75; color: #636b82; }
.auth-illustration { width: min(100%, 550px); height: auto; margin: 0 auto; display: block; filter: drop-shadow(0 18px 25px rgba(60,59,106,.09)); }
.auth-story-footer { display: flex; align-items: center; gap: 12px; color: #697187; font-size: 12px; }
.trust-dot { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 10px; color: var(--green); background: var(--mint-soft); }
.auth-main { display: grid; place-items: center; padding: 35px 26px; position: relative; }
.auth-top-tools { position: absolute; top: 26px; inset-inline-end: 28px; display: flex; align-items: center; gap: 12px; }
.auth-card { width: min(100%, 440px); padding: 25px 8px 15px; }
.auth-card .mobile-brand { display: none; }
.auth-card h2 { margin: 0 0 9px; font-size: 29px; font-weight: 760; letter-spacing: -.055em; }
.auth-card .intro { margin: 0 0 26px; color: var(--muted); line-height: 1.65; font-size: 14px; }
.auth-switch { margin-top: 23px; text-align: center; color: var(--muted); }
.auth-switch button { padding: 0; border: 0; background: transparent; color: var(--violet); font-weight: 750; cursor: pointer; }
.form-grid { display: grid; gap: 15px; }
.form-field { display: grid; gap: 7px; }
.form-field label, .form-label { color: #39445d; font-weight: 700; font-size: 12px; }
.form-field input, .form-field textarea, .form-field select, .select-control { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #e4e5ee; border-radius: 13px; background: #fff; color: var(--navy); outline: none; transition: border .18s, box-shadow .18s; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: #a39af3; box-shadow: 0 0 0 4px rgba(108,92,231,.09); }
.form-field textarea { min-height: 100px; resize: vertical; line-height: 1.55; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #a0a7b7; }
.form-field .hint { color: var(--muted); font-size: 11px; line-height: 1.55; }
.password-wrap { position: relative; }
.password-wrap input { padding-inline-end: 70px; }
.password-toggle { position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%); background: transparent; border: 0; color: var(--muted); font-size: 11px; font-weight: 700; cursor: pointer; }
.form-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.text-link { border: 0; padding: 0; background: transparent; color: var(--violet); cursor: pointer; font-size: 12px; font-weight: 700; }
.check-row { display: flex; align-items: flex-start; gap: 10px; color: #697187; font-size: 12px; line-height: 1.6; }
.check-row input { width: 17px; height: 17px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--violet); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; min-height: 44px; padding: 0 17px; border-radius: 13px; font-weight: 730; font-size: 13px; cursor: pointer; transition: transform .16s, background .16s, box-shadow .16s, border-color .16s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--violet); color: #fff; box-shadow: 0 8px 20px rgba(108,92,231,.2); }
.btn-primary:hover { background: var(--violet-dark); box-shadow: 0 10px 24px rgba(108,92,231,.25); }
.btn-coral { background: var(--coral); color: white; box-shadow: 0 7px 18px rgba(255,118,117,.18); }
.btn-coral:hover { background: #f46768; }
.btn-dark { background: var(--navy); color: white; }
.btn-outline { color: #4c5670; border-color: #e5e6ee; background: white; }
.btn-outline:hover { border-color: #c9c4f7; color: var(--violet); background: #fcfbff; }
.btn-soft { color: var(--violet); background: var(--violet-soft); }
.btn-danger { color: var(--danger); background: #fff1f2; border-color: #ffe1e5; }
.btn-ghost { color: var(--muted); background: transparent; border-color: transparent; }
.btn-small { min-height: 35px; padding: 0 12px; border-radius: 10px; font-size: 12px; }
.btn-block { width: 100%; }
.icon-button { position: relative; width: 40px; height: 40px; padding: 0; display: inline-grid; place-items: center; border: 1px solid #ececf2; border-radius: 13px; color: #5c657a; background: white; cursor: pointer; transition: .18s; }
.icon-button:hover { color: var(--violet); border-color: #d9d4ff; background: #fcfbff; }
.icon-button svg { width: 18px; height: 18px; }
.lang-toggle { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e8e7ef; border-radius: 11px; padding: 8px 10px; background: rgba(255,255,255,.72); color: #5e6578; font-size: 12px; font-weight: 750; cursor: pointer; }
.lang-toggle:hover { color: var(--violet); }
.demo-box { margin-top: 25px; padding-top: 20px; border-top: 1px solid #ececf2; }
.demo-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.demo-head strong { font-size: 12px; }
.demo-head span { font-size: 10px; color: var(--muted); }
.demo-users { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.demo-user { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 11px 5px; border: 1px solid #ececf2; border-radius: 14px; background: #fff; cursor: pointer; transition: .18s; }
.demo-user:hover { border-color: #d4ceff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.demo-user span { font-size: 11px; font-weight: 700; }
.demo-user small { color: var(--muted); font-size: 9px; margin-top: -4px; }
.demo-note { color: #8b91a1; font-size: 10px; line-height: 1.5; margin: 12px 0 0; }
.alert { padding: 12px 14px; border: 1px solid #f7d8d8; border-radius: 12px; background: #fff7f6; color: #a54d55; font-size: 12px; line-height: 1.55; }
.alert.info { border-color: #e2defd; background: #f7f5ff; color: #6458b8; }

/* Onboarding */
.onboard-shell { width: min(100%, 980px); min-height: 100vh; margin: 0 auto; padding: 26px 25px 40px; display: flex; flex-direction: column; }
.onboard-top { display: flex; justify-content: space-between; align-items: center; }
.onboard-progress { width: min(100%, 620px); margin: 50px auto 0; }
.progress-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin-bottom: 9px; }
.progress-track { height: 6px; overflow: hidden; border-radius: 99px; background: #e8e7f1; }
.progress-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--violet),#9283f2); transition: width .25s; }
.onboard-body { width: min(100%, 660px); margin: 44px auto 0; flex: 1; }
.onboard-body h1 { margin: 0 0 10px; font-size: clamp(27px, 4vw, 38px); letter-spacing: -.055em; line-height: 1.2; }
.onboard-body > p { margin: 0 0 26px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.chip-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-chip { display: inline-flex; align-items: center; gap: 8px; padding: 11px 14px; border: 1px solid #e6e6ef; border-radius: 13px; background: white; color: #515b70; font-size: 12px; font-weight: 650; cursor: pointer; transition: .16s; }
.choice-chip:hover { border-color: #b8aff7; }
.choice-chip.selected { border-color: var(--violet); background: #f2f0ff; color: var(--violet-dark); box-shadow: 0 0 0 2px rgba(108,92,231,.07); }
.choice-chip .emoji { font-size: 17px; }
.activity-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.activity-option { min-height: 116px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 17px; text-align: start; border: 1px solid #e8e8ef; border-radius: 17px; background: white; cursor: pointer; transition: .16s; }
.activity-option:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: #d2cdf5; }
.activity-option.selected { border-color: var(--violet); box-shadow: inset 0 0 0 1px var(--violet); background: #fbfaff; }
.activity-option .emoji { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 12px; background: var(--tint, var(--violet-soft)); font-size: 19px; }
.activity-option strong { font-size: 13px; }
.onboard-actions { display: flex; justify-content: space-between; gap: 12px; padding-top: 28px; }
.avatar-pick { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.avatar-pick button { padding: 3px; border: 2px solid transparent; border-radius: 50%; background: transparent; cursor: pointer; }
.avatar-pick button.selected { border-color: var(--violet); }
.avatar-pick .avatar { width: 54px; height: 54px; }
.location-art { width: 106px; height: 106px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 32px; background: #f0edff; color: var(--violet); }
.location-art svg { width: 52px; height: 52px; }

/* App shell */
.app-layout { min-height: 100vh; display: grid; grid-template-columns: 252px minmax(0,1fr); background: #f7f7fa; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 27px 17px 18px; display: flex; flex-direction: column; background: #fff; border-inline-end: 1px solid #ececf2; z-index: 5; }
.sidebar .brand-lockup { margin: 0 12px 36px; }
.side-section-title { margin: 0 13px 10px; color: #a0a5b2; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }
.side-nav { display: grid; gap: 5px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 13px; width: 100%; min-height: 46px; padding: 0 13px; border: 0; border-radius: 13px; background: transparent; color: #71798c; font-size: 13px; font-weight: 690; text-align: start; cursor: pointer; transition: .17s; }
.nav-item:hover { background: #f7f6fd; color: var(--violet); }
.nav-item.active { background: #f0edff; color: var(--violet); }
.nav-item svg { width: 19px; height: 19px; flex: 0 0 auto; stroke-width: 1.9; }
.nav-badge { margin-inline-start: auto; display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; align-items: center; justify-content: center; border-radius: 99px; background: var(--coral); color: white; font-size: 10px; font-weight: 800; }
.sidebar-spacer { flex: 1; }
.sidebar-safety { margin: 11px 3px 17px; padding: 15px 14px; border-radius: 16px; background: #f7f6ff; }
.sidebar-safety .shield { color: var(--violet); }
.sidebar-safety strong { display: block; margin: 8px 0 5px; font-size: 12px; }
.sidebar-safety p { margin: 0 0 10px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.sidebar-safety button { padding: 0; border: 0; background: transparent; color: var(--violet); font-size: 10px; font-weight: 750; cursor: pointer; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 12px 8px 3px; border-top: 1px solid #f0f0f3; cursor: pointer; }
.side-user-meta { min-width: 0; flex: 1; }
.side-user-meta strong { display: block; font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.side-user-meta span { color: var(--muted); font-size: 10px; }
.side-user .more { color: #949aab; }
.main-area { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 4; min-height: 74px; padding: 0 38px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(232,233,240,.8); background: rgba(247,247,250,.9); backdrop-filter: blur(14px); }
.topbar-mobile-brand { display: none; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar-greeting { color: #81889a; font-size: 12px; }
.location-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 37px; padding: 0 12px; border: 1px solid #e7e7ef; border-radius: 12px; background: #fff; color: #536079; font-size: 11px; font-weight: 670; }
.location-pill svg { width: 15px; height: 15px; color: var(--violet); }
.topbar-notice { position: relative; }
.notification-dot { position: absolute; inset-inline-end: 6px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); border: 2px solid white; }
.main-inner { max-width: 1330px; margin: 0 auto; padding: 34px 38px 56px; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-kicker { color: var(--violet); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .15em; margin-bottom: 9px; }
.page-header h1 { margin: 0; font-size: clamp(25px,3vw,33px); line-height: 1.16; letter-spacing: -.055em; }
.page-header p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.page-actions { display: flex; align-items: center; gap: 9px; }
.discover-grid { display: grid; grid-template-columns: minmax(0, 1fr) 278px; align-items: start; gap: 22px; }
.discover-main { min-width: 0; }
.discover-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.discover-title { font-size: 13px; font-weight: 760; }
.result-count { color: var(--muted); font-size: 11px; margin-inline-start: 5px; font-weight: 500; }
.filters { display: flex; align-items: center; gap: 8px; }
.filter-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 11px; border: 1px solid #e6e7ed; border-radius: 10px; background: #fff; color: #687188; font-size: 10px; font-weight: 700; cursor: pointer; }
.filter-pill.active { color: var(--violet); border-color: #d9d3ff; background: #f4f1ff; }
.people-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.person-card { min-width: 0; padding: 17px; border: 1px solid #ebebf0; border-radius: 19px; background: #fff; box-shadow: 0 4px 15px rgba(24,31,56,.025); transition: transform .18s, box-shadow .18s, border .18s; }
.person-card:hover { transform: translateY(-2px); border-color: #ddd8f9; box-shadow: var(--shadow-sm); }
.person-card-top { display: flex; align-items: flex-start; gap: 12px; }
.person-card-top .avatar { width: 62px; height: 62px; flex: 0 0 auto; }
.person-intro { flex: 1; min-width: 0; padding-top: 3px; }
.person-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.person-name strong { font-size: 15px; font-weight: 780; letter-spacing: -.025em; cursor: pointer; }
.person-name strong:hover { color: var(--violet); }
.age { color: #8790a2; font-size: 11px; font-weight: 550; }
.person-distance { display: flex; align-items: center; gap: 4px; margin-top: 5px; color: #7f8798; font-size: 10px; }
.person-distance svg { width: 12px; height: 12px; color: var(--violet); }
.card-menu { width: 29px; height: 29px; border: 0; border-radius: 9px; background: transparent; color: #8c94a4; cursor: pointer; font-size: 18px; line-height: 1; }
.card-menu:hover { background: #f4f3fa; color: var(--navy); }
.activity-line { display: flex; align-items: center; gap: 8px; margin: 15px 0 10px; }
.activity-bubble { display: inline-flex; align-items: center; gap: 6px; min-height: 27px; padding: 0 9px; border-radius: 9px; background: #f2f0ff; color: #695bd1; font-size: 10px; font-weight: 730; }
.activity-bubble.mint { color: #29816f; background: #e8f8f3; }
.activity-bubble.coral { color: #bd6555; background: #fff1eb; }
.avail-dot { width: 7px; height: 7px; border-radius: 50%; background: #45b895; box-shadow: 0 0 0 3px #e5f7f0; }
.person-bio { min-height: 37px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 12px; color: #697389; font-size: 11px; line-height: 1.6; }
.card-tags { min-height: 25px; display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-bottom: 13px; }
.tag { display: inline-flex; align-items: center; min-height: 23px; padding: 0 8px; border-radius: 8px; background: #f5f5f8; color: #747c8e; font-size: 9px; font-weight: 650; }
.tag.shared { background: #f1efff; color: #6355ca; }
.common-line { margin: -2px 0 13px; color: #8b91a0; font-size: 9px; }
.common-line strong { color: var(--violet); font-weight: 750; }
.card-actions { display: flex; gap: 8px; }
.card-actions .btn { min-height: 37px; padding: 0 11px; border-radius: 10px; font-size: 10px; flex: 1; }
.card-actions .btn-pass { flex: 0 0 39px; width: 39px; padding: 0; color: #7d8496; border: 1px solid #e9e9ef; background: white; }
.discover-rail { display: grid; gap: 15px; }
.rail-card { padding: 18px; border: 1px solid #ebebf0; border-radius: 18px; background: #fff; box-shadow: 0 4px 15px rgba(24,31,56,.02); }
.rail-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.rail-title strong { font-size: 13px; letter-spacing: -.02em; }
.rail-title button { padding: 0; border: 0; background: transparent; color: var(--violet); font-size: 10px; font-weight: 750; cursor: pointer; }
.activity-setting { display: flex; align-items: center; gap: 12px; padding: 12px; background: #f8f7ff; border-radius: 14px; }
.activity-setting .activity-icon { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; background: white; font-size: 19px; box-shadow: 0 4px 10px rgba(53,48,107,.06); }
.activity-setting strong { display: block; font-size: 12px; }
.activity-setting span { color: var(--muted); font-size: 9px; display: block; margin-top: 4px; }
.rail-note { display: flex; align-items: flex-start; gap: 9px; color: #7b8496; font-size: 10px; line-height: 1.55; }
.rail-note svg { flex: 0 0 auto; width: 16px; height: 16px; color: var(--green); }
.rail-divider { border: 0; border-top: 1px solid #efeff3; margin: 14px 0; }
.availability-toggle { display: flex; gap: 6px; margin-top: 10px; }
.availability-toggle button { flex: 1; min-height: 31px; border: 1px solid #eaebf0; border-radius: 9px; color: #80889a; background: white; font-size: 9px; font-weight: 700; cursor: pointer; }
.availability-toggle button.active { color: #28806c; background: #eaf8f4; border-color: #caeee4; }
.radius-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 13px 0 0; }
.radius-row label { color: #777f91; font-size: 10px; }
.radius-row select { max-width: 115px; border: 1px solid #ececf1; border-radius: 9px; padding: 7px 9px; background: #fff; color: #596278; font-size: 10px; }
.hero-vibe { padding: 19px; overflow: hidden; position: relative; border: 0; background: linear-gradient(135deg,#6c5ce7,#8d7fee); color: white; }
.hero-vibe:after { content:""; position:absolute; width:120px;height:120px;inset-inline-end:-34px;bottom:-48px;border:1px solid rgba(255,255,255,.25);border-radius:50%;box-shadow:0 0 0 15px rgba(255,255,255,.06),0 0 0 31px rgba(255,255,255,.045); }
.hero-vibe .mini-label { color: #dfdbff; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero-vibe h3 { position: relative; z-index:1; max-width: 175px; margin: 10px 0 7px; font-size: 17px; line-height: 1.25; letter-spacing: -.04em; }
.hero-vibe p { position: relative; z-index:1; max-width: 190px; margin: 0 0 14px; color: #e7e3ff; font-size: 10px; line-height: 1.5; }
.hero-vibe button { position: relative; z-index:1; min-height: 29px; border: 0; border-radius: 9px; padding: 0 11px; background: white; color: var(--violet); font-size: 10px; font-weight: 750; cursor: pointer; }

/* Avatars */
.avatar { overflow: hidden; display: inline-grid; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #efedfb; object-fit: cover; }
.avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.avatar-svg { display: block; width: 100%; height: 100%; }
.avatar-sm { width: 38px; height: 38px; }
.avatar-md { width: 48px; height: 48px; }
.avatar-lg { width: 88px; height: 88px; }
.avatar-online { position: relative; }
.avatar-online:after { content:""; position:absolute; inset-inline-end:2px; bottom:1px; width:9px;height:9px;border-radius:50%;background:#52bd9d;border:2px solid white; }

/* Secondary pages */
.content-column { width: min(100%, 850px); }
.section-card { padding: 21px; border: 1px solid #ebebf0; border-radius: 18px; background: white; box-shadow: 0 4px 14px rgba(24,31,56,.025); }
.section-card + .section-card { margin-top: 15px; }
.section-card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-card-title h2 { margin: 0; font-size: 15px; letter-spacing: -.03em; }
.section-card-title p { color: var(--muted); font-size: 11px; margin: 5px 0 0; }
.profile-cover { position: relative; overflow: hidden; min-height: 180px; padding: 25px; border-radius: 20px; background: linear-gradient(120deg,#eeeaff,#f4f3fc 58%,#e9f8f4); }
.profile-cover:after { content:""; position:absolute; width:250px;height:250px; border-radius:50%; border:1px solid rgba(108,92,231,.11); inset-inline-end:3%; top:-110px; box-shadow:0 0 0 18px rgba(108,92,231,.03),0 0 0 42px rgba(108,92,231,.025); }
.profile-cover .avatar { position: relative; z-index:1; width:95px;height:95px;border:4px solid white;box-shadow:0 7px 20px rgba(39,43,75,.1); }
.profile-cover h2 { position: relative; z-index:1; margin:14px 0 4px;font-size:22px;letter-spacing:-.05em; }
.profile-cover p { position: relative; z-index:1;margin:0;color:#727a8c;font-size:11px; }
.profile-cover-actions { position:absolute; z-index:2; top:19px; inset-inline-end:18px; display:flex; gap:8px; }
.profile-stat-row { display:flex; flex-wrap:wrap; gap:7px; margin-top:15px; }
.profile-stat { display:inline-flex; align-items:center; gap:6px; padding:8px 10px; border-radius:10px; background:#fff; color:#5f687d; font-size:10px; font-weight:650; }
.profile-stat svg { width:14px;height:14px;color:var(--violet); }
.profile-body-grid { display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:15px; }
.interest-list { display:flex;flex-wrap:wrap;gap:7px; }
.interest-pill { display:inline-flex; align-items:center; gap:6px; padding:8px 10px;border-radius:10px;background:#f5f4fb;color:#5e6680;font-size:10px;font-weight:650; }
.profile-form-grid { display:grid;grid-template-columns:1fr 1fr;gap:13px; }
.profile-form-grid .full { grid-column:1/-1; }
.empty-state { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:300px; padding:38px 22px; text-align:center; border:1px dashed #dcdeea; border-radius:20px; background:rgba(255,255,255,.66); }
.empty-illustration { width:90px;height:90px; display:grid;place-items:center;margin-bottom:19px;border-radius:28px;background:#f0edff;color:var(--violet); }
.empty-illustration svg { width:42px;height:42px; }
.empty-state h2 { margin:0 0 8px;font-size:18px;letter-spacing:-.04em; }
.empty-state p { max-width:380px;margin:0 0 18px;color:var(--muted);font-size:12px;line-height:1.65; }
.empty-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }
.request-list, .connection-list, .notification-list, .meetup-list, .settings-list { display:grid; gap:10px; }
.request-row, .connection-row, .notification-row, .meetup-row { display:flex;align-items:center;gap:13px;padding:13px;border:1px solid #ececf1;border-radius:15px;background:white; }
.request-row .avatar, .connection-row .avatar { width:52px;height:52px; }
.row-main { min-width:0;flex:1; }
.row-main strong { display:block;font-size:13px;cursor:pointer; }
.row-main strong:hover { color:var(--violet); }
.row-main p { display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:5px 0 0;color:#798194;font-size:10px;line-height:1.5; }
.row-meta { display:flex;flex-wrap:wrap;gap:5px;margin-top:6px; }
.row-actions { display:flex;gap:7px;align-items:center; }
.row-actions .btn { min-height:34px;padding:0 11px;font-size:10px; }
.status-tag { display:inline-flex;align-items:center;padding:5px 8px;border-radius:8px;background:#f4f3f8;color:#7a8294;font-size:9px;font-weight:750; }
.status-tag.pending { color:#9b6c1a;background:#fff6e1; }
.status-tag.accepted { color:#28806c;background:#eaf8f3; }
.status-tag.open { color:#a36130;background:#fff2e8; }

/* Chat */
.chat-layout { display:grid;grid-template-columns:310px minmax(0,1fr);min-height:calc(100vh - 150px);max-height:780px;overflow:hidden;border:1px solid #e8e9f0;border-radius:20px;background:white;box-shadow:var(--shadow-sm); }
.chat-list-pane { border-inline-end:1px solid #eeeeF3;background:#fff;min-width:0; }
.chat-list-header { padding:19px 17px 12px; }
.chat-list-header h2 { margin:0 0 13px;font-size:18px;letter-spacing:-.04em; }
.search-box { display:flex;align-items:center;gap:8px;padding:0 11px;height:38px;border:1px solid #ececf1;border-radius:11px;background:#fafafd;color:#9198a8; }
.search-box svg { width:15px;height:15px;flex:0 0 auto; }
.search-box input { width:100%;border:0;outline:0;background:transparent;color:var(--navy);font-size:11px; }
.chat-list-items { max-height:calc(100vh - 290px);overflow:auto;padding:0 8px 12px; }
.chat-list-item { width:100%;display:flex;align-items:center;gap:10px;padding:11px 9px;border:0;border-radius:13px;background:transparent;text-align:start;cursor:pointer; }
.chat-list-item:hover,.chat-list-item.active { background:#f5f3ff; }
.chat-list-item .avatar { width:45px;height:45px; }
.chat-list-copy { min-width:0;flex:1; }
.chat-list-copy .line1 { display:flex;align-items:center;justify-content:space-between;gap:5px; }
.chat-list-copy strong { font-size:11px; }
.chat-list-copy time { color:#a1a7b3;font-size:9px; }
.chat-list-copy p { overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:5px 0 0;color:#8a91a2;font-size:10px; }
.chat-count { min-width:17px;height:17px;display:grid;place-items:center;border-radius:50%;background:var(--violet);color:white;font-size:9px;font-weight:800; }
.chat-pane { min-width:0;display:flex;flex-direction:column;position:relative; }
.chat-pane-empty { flex:1;display:grid;place-items:center;padding:25px;text-align:center; }
.chat-head { min-height:67px;display:flex;align-items:center;gap:10px;padding:0 18px;border-bottom:1px solid #eff0f4; }
.chat-head .avatar { width:39px;height:39px; }
.chat-head-name { min-width:0;flex:1; }
.chat-head-name strong { display:block;font-size:12px; }
.chat-head-name span { display:block;margin-top:3px;color:#8a92a2;font-size:9px; }
.chat-tools { display:flex;align-items:center;gap:7px; }
.chat-tools .icon-button { width:34px;height:34px; }
.chat-messages { flex:1;min-height:280px;max-height:calc(100vh - 350px);overflow:auto;padding:20px 20px 14px;background:linear-gradient(180deg,#fff,#fcfcfe); }
.message-day { display:flex;justify-content:center;margin:6px 0 18px;color:#a1a7b5;font-size:9px; }
.message-line { display:flex;flex-direction:column;align-items:flex-start;margin:0 0 11px; }
.message-line.mine { align-items:flex-end; }
.message-bubble { max-width:min(78%,450px);padding:11px 13px;border-radius:15px 15px 15px 5px;background:#f1f2f7;color:#374258;font-size:11px;line-height:1.58;white-space:pre-wrap;overflow-wrap:anywhere; }
.message-line.mine .message-bubble { border-radius:15px 15px 5px 15px;background:#eeebff;color:#423a87; }
.message-time { margin:4px 4px 0;color:#a2a8b5;font-size:8px; }
.message-read { color:#988de7; }
.chat-composer { display:flex;align-items:flex-end;gap:8px;padding:12px 15px;border-top:1px solid #eff0f4;background:#fff; }
.chat-composer textarea { flex:1;min-height:42px;max-height:110px;resize:none;padding:12px 13px;border:1px solid #ececf2;border-radius:13px;outline:0;background:#fbfbfd;color:var(--navy);font-size:11px;line-height:1.4; }
.chat-composer textarea:focus { border-color:#bab2f7; }
.chat-send { width:42px;height:42px;padding:0;display:grid;place-items:center;border:0;border-radius:13px;background:var(--violet);color:white;cursor:pointer; }
.chat-send svg { width:18px;height:18px; }
.chat-plan-row { display:flex;justify-content:center;padding:9px 12px;background:#fbfaff;border-bottom:1px solid #f1effb; }
.chat-plan-row button { border:0;background:transparent;color:var(--violet);font-size:10px;font-weight:750;cursor:pointer; }
.inline-meetup { margin:10px 0 15px;padding:13px;border:1px solid #e5e0ff;border-radius:15px;background:#faf9ff; }
.inline-meetup .meetup-top { display:flex;align-items:center;justify-content:space-between;gap:10px; }
.inline-meetup strong { font-size:11px; }
.inline-meetup p { color:#737b8d;font-size:10px;line-height:1.55;margin:8px 0; }
.inline-meetup .row-actions { justify-content:flex-start; }

/* Modals, notifications and safety */
.modal-backdrop { position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:18px;background:rgba(18,22,40,.42);backdrop-filter:blur(5px);animation:fade-in .16s ease-out; }
.modal-card { width:min(100%,520px);max-height:min(88vh,800px);overflow:auto;border:1px solid rgba(255,255,255,.7);border-radius:22px;background:#fff;box-shadow:0 24px 80px rgba(14,19,43,.22);animation:rise-in .2s ease-out; }
.modal-card.wide { width:min(100%,760px); }
.modal-head { position:sticky;top:0;z-index:2;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px 22px 14px;border-bottom:1px solid #eff0f4;background:rgba(255,255,255,.96);backdrop-filter:blur(10px); }
.modal-head h2 { margin:0;font-size:18px;letter-spacing:-.04em; }
.modal-head p { margin:5px 0 0;color:var(--muted);font-size:11px;line-height:1.5; }
.modal-body { padding:19px 22px 22px; }
.modal-footer { display:flex;justify-content:flex-end;gap:8px;padding-top:18px; }
.modal-close { width:31px;height:31px;flex:0 0 auto;display:grid;place-items:center;border:0;border-radius:10px;background:#f5f5f8;color:#737b8c;font-size:19px;cursor:pointer; }
.modal-close:hover { background:#eeedfa;color:var(--violet); }
.menu-popover { position:fixed;z-index:30;min-width:205px;padding:7px;border:1px solid #ececf1;border-radius:14px;background:white;box-shadow:0 13px 35px rgba(26,32,56,.14); }
.menu-popover button { width:100%;display:flex;align-items:center;gap:9px;padding:10px;border:0;border-radius:9px;background:white;color:#515a70;text-align:start;font-size:11px;cursor:pointer; }
.menu-popover button:hover { background:#f7f6fb;color:var(--violet); }
.menu-popover button.danger { color:var(--danger); }
.notification-row { align-items:flex-start;cursor:pointer; }
.notification-row.unread { background:#fbfaff;border-color:#e4e0ff; }
.notification-icon { width:37px;height:37px;display:grid;place-items:center;flex:0 0 auto;border-radius:12px;background:#f0edff;color:var(--violet); }
.notification-icon svg { width:17px;height:17px; }
.notification-row .row-main p { -webkit-line-clamp:unset; }
.toast-region { position:fixed;z-index:100;top:18px;inset-inline-end:18px;display:grid;gap:8px;width:min(350px,calc(100vw - 36px));pointer-events:none; }
.toast { display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border:1px solid #e9e8f0;border-radius:13px;background:white;box-shadow:0 12px 35px rgba(27,31,51,.14);font-size:12px;color:#344057;line-height:1.5;animation:rise-in .2s ease-out; }
.toast.success:before,.toast.error:before { content:"";width:8px;height:8px;margin-top:5px;border-radius:50%;background:var(--mint);flex:0 0 auto; }
.toast.error:before { background:var(--coral); }
.toast.info:before { content:"";width:8px;height:8px;margin-top:5px;border-radius:50%;background:var(--violet);flex:0 0 auto; }

/* Safety and settings */
.settings-list { gap:0; }
.settings-row { display:flex;align-items:center;gap:13px;padding:14px 0;border-bottom:1px solid #f0f0f4; }
.settings-row:last-child { border-bottom:0; }
.settings-icon { width:38px;height:38px;display:grid;place-items:center;flex:0 0 auto;border-radius:12px;background:#f4f2ff;color:var(--violet); }
.settings-icon svg { width:18px;height:18px; }
.settings-copy { min-width:0;flex:1; }
.settings-copy strong { display:block;font-size:12px; }
.settings-copy span { display:block;margin-top:4px;color:var(--muted);font-size:10px;line-height:1.5; }
.switch { position:relative;width:42px;height:24px;flex:0 0 auto;border:0;border-radius:20px;background:#d8dbe3;cursor:pointer;transition:.18s; }
.switch:after { content:"";position:absolute;top:3px;inset-inline-start:3px;width:18px;height:18px;border-radius:50%;background:white;box-shadow:0 1px 4px rgba(0,0,0,.15);transition:.18s; }
.switch.on { background:var(--violet); }
.switch.on:after { inset-inline-start:21px; }
.security-note { display:flex;gap:12px;padding:15px;border-radius:14px;background:#eff9f6;color:#438b78;font-size:10px;line-height:1.6; }
.security-note svg { flex:0 0 auto;width:20px;height:20px; }
.legal-copy { color:#697389;font-size:12px;line-height:1.75; }
.legal-copy h3 { margin:18px 0 5px;color:var(--navy);font-size:13px; }
.legal-copy p { margin:0 0 10px; }

/* Admin */
.admin-stat-grid { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px; }
.admin-stat { padding:17px;border:1px solid #ececf1;border-radius:15px;background:white; }
.admin-stat span { display:block;color:var(--muted);font-size:10px; }
.admin-stat strong { display:block;margin-top:9px;font-size:24px;letter-spacing:-.05em; }
.table-wrap { overflow:auto;border:1px solid #ebebf0;border-radius:15px;background:#fff; }
.data-table { width:100%;border-collapse:collapse;min-width:620px; }
.data-table th,.data-table td { padding:12px 13px;border-bottom:1px solid #f0f0f4;text-align:start;font-size:10px;white-space:nowrap; }
.data-table th { color:#838b9c;background:#fafafd;font-size:9px;text-transform:uppercase;letter-spacing:.08em; }
.data-table tr:last-child td { border-bottom:0; }
.report-card { display:grid;grid-template-columns:1.1fr 1fr;gap:15px;padding:15px;border:1px solid #ececf1;border-radius:15px;background:white; }
.report-card + .report-card { margin-top:10px; }
.report-card h3 { margin:0 0 6px;font-size:12px; }
.report-card p { margin:0;color:#727b8e;font-size:10px;line-height:1.55; }
.report-actions { display:flex;align-items:flex-end;justify-content:flex-end;gap:7px;flex-wrap:wrap; }

/* Mobile navigation and responsive */
.mobile-nav { display:none; }
@media (max-width: 1180px) {
  .app-layout { grid-template-columns:84px minmax(0,1fr); }
  .sidebar { padding-inline:11px;align-items:center; }
  .sidebar .brand-lockup { margin-inline:0; margin-bottom:34px; }
  .sidebar .brand-name,.sidebar .side-section-title,.sidebar .nav-label,.sidebar .sidebar-safety,.sidebar .side-user-meta,.sidebar .side-user .more { display:none; }
  .side-nav { width:100%; }
  .nav-item { justify-content:center;padding:0; }
  .nav-item svg { width:21px;height:21px; }
  .nav-badge { position:absolute;top:4px;inset-inline-end:7px;min-width:16px;height:16px;padding:0;font-size:8px; }
  .side-user { width:100%;justify-content:center;padding-inline:0;border-top:0; }
  .discover-grid { grid-template-columns:minmax(0,1fr) 250px;gap:15px; }
  .main-inner { padding-inline:25px; }
  .topbar { padding-inline:25px; }
}
@media (max-width: 950px) {
  .discover-grid { grid-template-columns:minmax(0,1fr); }
  .discover-rail { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .discover-rail .hero-vibe { grid-column:1/-1; }
  .discover-rail .rail-card:last-child { grid-column:1/-1; }
  .chat-layout { grid-template-columns:255px minmax(0,1fr); }
}
@media (max-width: 740px) {
  body { font-size:13px; }
  .auth-screen { grid-template-columns:1fr; }
  .auth-story { display:none; }
  .auth-main { min-height:100vh;padding:48px 23px 25px;align-items:start; }
  .auth-top-tools { top:15px;inset-inline-end:17px; }
  .auth-card { padding:33px 0 10px; }
  .auth-card .mobile-brand { display:flex;margin-bottom:30px; }
  .auth-card h2 { font-size:27px; }
  .demo-users { gap:6px; }
  .demo-user { padding:9px 4px; }
  .onboard-shell { padding:17px 18px 25px; }
  .onboard-progress { margin-top:32px; }
  .onboard-body { margin-top:33px; }
  .activity-grid { grid-template-columns:repeat(2,1fr); }
  .activity-option { min-height:100px; }
  .app-layout { display:block;min-height:100vh;padding-bottom:calc(70px + env(safe-area-inset-bottom)); }
  .sidebar { display:none; }
  .topbar { min-height:60px;padding:0 16px; }
  .topbar-mobile-brand { display:flex;align-items:center;gap:8px; }
  .topbar-mobile-brand .brand-mark { width:34px;height:34px;border-radius:11px; }
  .topbar-mobile-brand .brand-mark svg { width:28px;height:28px; }
  .topbar-mobile-brand .brand-name { font-size:16px; }
  .topbar-mobile-brand .brand-name small { display:none; }
  .topbar-greeting { display:none; }
  .location-pill { min-height:34px;padding:0 9px;font-size:9px; }
  .topbar-right { gap:7px; }
  .topbar-right > .icon-button { width:35px;height:35px;border-radius:11px; }
  .main-inner { padding:25px 15px 35px; }
  .page-header { align-items:flex-start;margin-bottom:19px; }
  .page-header h1 { font-size:26px; }
  .page-header p { font-size:11px; }
  .page-header .page-actions { gap:6px; }
  .page-header .btn { min-height:36px;padding:0 11px;font-size:10px; }
  .page-kicker { font-size:9px; }
  .people-grid { grid-template-columns:1fr;gap:11px; }
  .person-card { padding:15px; }
  .person-card-top .avatar { width:58px;height:58px; }
  .person-bio { min-height:unset; }
  .discover-toolbar { align-items:flex-start;flex-direction:column; }
  .filters { width:100%;overflow:auto;padding-bottom:2px; }
  .filter-pill { white-space:nowrap; }
  .discover-rail { grid-template-columns:1fr; }
  .discover-rail .hero-vibe,.discover-rail .rail-card:last-child { grid-column:auto; }
  .mobile-nav { position:fixed;bottom:0;inset-inline:0;z-index:15;display:grid;grid-template-columns:repeat(5,1fr);gap:1px;padding:7px 7px calc(7px + env(safe-area-inset-bottom));border-top:1px solid #e9eaf0;background:rgba(255,255,255,.96);backdrop-filter:blur(15px); }
  .mobile-nav .nav-item { min-height:51px;flex-direction:column;justify-content:center;gap:3px;border-radius:12px;font-size:8px;padding:3px 1px; }
  .mobile-nav .nav-item svg { width:19px;height:19px; }
  .mobile-nav .nav-badge { top:2px;inset-inline-end:calc(50% - 19px); }
  .profile-body-grid { grid-template-columns:1fr; }
  .profile-form-grid { grid-template-columns:1fr; }
  .profile-form-grid .full { grid-column:auto; }
  .content-column { width:100%; }
  .section-card { padding:16px; }
  .request-row,.connection-row { align-items:flex-start;flex-wrap:wrap; }
  .request-row .row-main,.connection-row .row-main { flex:1 1 calc(100% - 75px); }
  .request-row .row-actions,.connection-row .row-actions { margin-inline-start:64px; }
  .chat-layout { position:relative;display:block;min-height:calc(100vh - 175px);max-height:calc(100vh - 175px);border-radius:16px; }
  .chat-list-pane { height:100%;border:0; }
  .chat-list-header { padding:15px 13px 9px; }
  .chat-list-items { max-height:calc(100vh - 340px); }
  .chat-pane { position:absolute;inset:0;z-index:2;background:white;transform:translateX(105%);transition:transform .22s ease; }
  html[dir="rtl"] .chat-pane { transform:translateX(-105%); }
  .chat-layout.show-chat .chat-pane { transform:translateX(0); }
  .chat-messages { max-height:none; }
  .chat-head { padding:0 12px; }
  .chat-head .chat-back { display:grid!important; }
  .chat-tools .icon-button { width:32px;height:32px; }
  .chat-composer { padding:9px; }
  .chat-plan-row { padding:7px; }
  .admin-stat-grid { grid-template-columns:repeat(2,1fr); }
  .report-card { grid-template-columns:1fr; }
  .report-actions { justify-content:flex-start; }
  .modal-backdrop { align-items:end;padding:0; }
  .modal-card,.modal-card.wide { width:100%;max-height:92vh;border-radius:22px 22px 0 0;animation:slide-up .2s ease-out; }
  .modal-head { padding:18px 18px 13px; }
  .modal-body { padding:16px 18px 23px; }
}
@media (max-width: 390px) {
  .topbar { padding-inline:11px; }
  .location-pill { gap:4px;max-width:125px;overflow:hidden;white-space:nowrap; }
  .topbar-mobile-brand { gap:6px; }
  .topbar-right { gap:5px; }
  .main-inner { padding-inline:11px; }
  .row-actions .btn { padding:0 8px; }
  .demo-users { grid-template-columns:repeat(3,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important; }
}
@keyframes fade-in { from { opacity:0; } to { opacity:1; } }
@keyframes rise-in { from { opacity:0;transform:translateY(7px); } to { opacity:1;transform:translateY(0); } }
@keyframes slide-up { from { transform:translateY(25px);opacity:.5; } to { transform:translateY(0);opacity:1; } }
