/* ===================== AstroWink — design2 =====================
   Svetlý dizajn · modrá + oranžová · mobile-first
   Fonty: Bricolage Grotesque (nadpisy) + Manrope (text)
================================================================ */

:root {
  --ink: #17213B;
  --sub: #5A6A86;
  --blue: #2C5EE8;
  --blue-dark: #1B3FB0;
  --blue-tint: #EEF2FF;
  --orange: #F5842B;
  --orange-dark: #EC6A15;
  --orange-tint: #FEEFE0;
  --bg: #F5F7FC;
  --card: #FFFFFF;
  --border: #E4E9F2;
  --navy: #0F1B3D;
  --radius: 18px;
  --shadow-sm: 0 4px 12px rgba(23,33,59,.06);
  --shadow-md: 0 16px 32px rgba(23,33,59,.10);
  --shadow-lg: 0 24px 60px rgba(23,33,59,.12);
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
h1, h2, h3, h4 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  margin: 0; line-height: 1.05; letter-spacing: -.02em;
}
p { margin: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; display: block; }
::selection { background: var(--orange); color: #fff; }

.container { max-width: var(--maxw); margin: 0 auto; padding-inline: 20px; }
.eyebrow { font-weight: 700; font-size: 13px; color: var(--orange); text-transform: uppercase; letter-spacing: .08em; }
.section-pad { padding-block: clamp(56px, 7vw, 90px); }

/* keyframes */
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes twinkle { 0%,100% { opacity: .25; } 50% { opacity: 1; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px; border-radius: 14px; font-weight: 700; font-size: 16px;
  border: none; cursor: pointer; font-family: inherit; transition: filter .15s, background .15s, transform .2s; }
.btn-orange { color: #fff; background: linear-gradient(135deg, var(--orange), var(--orange-dark)); box-shadow: 0 10px 24px rgba(236,106,21,.32); }
.btn-orange:hover { filter: brightness(1.05); color: #fff; }
.btn-blue { color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); box-shadow: 0 10px 24px rgba(44,94,232,.32); }
.btn-blue:hover { filter: brightness(1.06); color: #fff; }
.btn-ghost { color: var(--ink); background: #fff; border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--blue-tint); color: var(--ink); }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(245,247,252,.85);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.header__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; box-shadow: 0 6px 16px rgba(44,94,232,.35); }
.brand__name { font-family: 'Bricolage Grotesque'; font-weight: 800; font-size: 21px; color: var(--ink); letter-spacing: -.03em; }
.brand__name span { color: var(--orange); }

.nav { display: none; align-items: center; gap: 4px; }
.nav a { padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--ink); }
.nav a:hover { background: var(--blue-tint); }
.nav-actions { display: none; align-items: center; gap: 10px; }
.lang-pill { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--border);
  border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--sub); cursor: pointer; }
.link-login { padding: 9px 14px; border-radius: 10px; font-weight: 700; font-size: 15px; color: var(--ink); }
.link-login:hover { background: var(--blue-tint); color: var(--ink); }
.btn-sm { padding: 11px 18px; font-size: 15px; border-radius: 12px; }

.has-drop { position: relative; }
.has-drop > a { display: flex; align-items: center; gap: 6px; }
.caret { font-size: 11px; color: var(--sub); }
.drop { display: none; position: absolute; top: 100%; left: 0; padding-top: 8px; min-width: 220px; }
.drop__inner { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 8px; box-shadow: var(--shadow-md); }
.drop__inner a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--ink); }
.drop__inner a:hover { background: var(--blue-tint); }
.drop__inner .ic { color: var(--blue); width: 18px; text-align: center; }
.has-drop:hover .drop { display: block; }

.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid var(--border); background: #fff; border-radius: 12px; cursor: pointer; font-size: 20px; color: var(--ink); }

.drawer { display: none; border-top: 1px solid var(--border); background: #fff; padding: 12px 20px 20px; }
.drawer.open { display: block; }
.drawer__list { display: flex; flex-direction: column; gap: 4px; }
.drawer__list a { padding: 12px; border-radius: 10px; font-weight: 600; color: var(--ink); }
.drawer__list a:hover { background: var(--blue-tint); }
.drawer__sep { height: 1px; background: var(--border); margin: 8px 0; }
.drawer__list a.strong { font-weight: 700; color: var(--blue); }

@media (min-width: 1000px) {
  .nav, .nav-actions { display: flex; }
  .nav-toggle { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; background: radial-gradient(120% 90% at 85% 0%, var(--blue-tint) 0%, var(--bg) 55%); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1fr; gap: clamp(32px,5vw,64px); align-items: center; padding-block: clamp(48px,7vw,88px); }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border); font-weight: 700; font-size: 13px; color: var(--blue); box-shadow: var(--shadow-sm); }
.hero h1 { margin: 22px 0 0; font-size: clamp(38px,6vw,64px); font-weight: 800; }
.hero h1 span { color: var(--blue); }
.hero__lead { margin: 20px 0 0; font-size: clamp(16px,2vw,19px); line-height: 1.6; color: var(--sub); max-width: 480px; }
.hero__cta { margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__stats { margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 28px; }
.stat b { display: block; font-family: 'Bricolage Grotesque'; font-weight: 800; font-size: 26px; color: var(--ink); }
.stat span { font-size: 13px; color: var(--sub); font-weight: 600; }
.dot { position: absolute; border-radius: 50%; animation: twinkle 3s ease-in-out infinite; }

.hero__card-wrap { position: relative; }
.float-chip { position: absolute; top: -18px; right: -6px; z-index: 2; background: #fff; border: 1px solid var(--border);
  border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 12px; animation: floaty 5s ease-in-out infinite; }
.float-chip__ic { width: 42px; height: 42px; border-radius: 12px; background: var(--orange-tint); display: flex;
  align-items: center; justify-content: center; font-size: 22px; color: var(--orange-dark); }
.float-chip small { font-size: 12px; color: var(--sub); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.float-chip b { font-weight: 700; font-size: 14px; color: var(--ink); }
.match-card { background: #fff; border: 1px solid var(--border); border-radius: 24px; padding: clamp(22px,3vw,30px); box-shadow: var(--shadow-lg); }
.match-card h3 { font-size: 22px; font-weight: 700; }
.match-card__sub { margin: 6px 0 20px; font-size: 14px; color: var(--sub); font-weight: 500; }
.field-group { display: flex; flex-direction: column; gap: 16px; }
.field-label { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg label { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border: 1.5px solid var(--border);
  background: #fff; border-radius: 12px; font-weight: 700; font-size: 14px; color: var(--sub); cursor: pointer; }
.seg label.on-blue { border-color: var(--blue); background: var(--blue-tint); color: var(--blue); }
.seg label.on-orange { border-color: var(--orange); background: var(--orange-tint); color: var(--orange-dark); }
.fake-select { padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 12px; font-weight: 600; font-size: 14px;
  color: var(--sub); display: flex; justify-content: space-between; align-items: center; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

@media (min-width: 900px) { .hero__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- section header ---------- */
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.sec-head h2, .sec-head-center h2 { margin: 10px 0 0; font-size: clamp(28px,4vw,42px); font-weight: 800; }
.sec-head-center { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.sec-head-center p { margin: 16px 0 0; font-size: 17px; line-height: 1.6; color: var(--sub); }
.link-more { font-weight: 700; font-size: 15px; color: var(--blue); }

/* ---------- zodiac ---------- */
.zodiac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.sign-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); transition: transform .2s, box-shadow .2s; }
.sign-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.sign-card__ic { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.sign-card__name { font-family: 'Bricolage Grotesque'; font-weight: 700; font-size: 18px; color: var(--ink); }
.sign-card__dates { font-size: 13px; color: var(--sub); font-weight: 600; margin-top: 2px; }

/* ---------- features (dark) ---------- */
.features { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.features__glow1 { position: absolute; top: -80px; right: -60px; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(44,94,232,.5), transparent 70%); }
.features__glow2 { position: absolute; bottom: -100px; left: -60px; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,132,43,.35), transparent 70%); }
.features .sec-head-center h2 { color: #fff; }
.features .sec-head-center p { color: #A9B4CF; }
.features__inner { position: relative; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,240px), 1fr)); gap: 18px; }
.feature-card { padding: 26px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 20px; }
.feature-card__ic { display: flex; width: 52px; height: 52px; border-radius: 14px; align-items: center; justify-content: center; font-size: 24px; }
.feature-card h4 { margin: 18px 0 0; font-size: 20px; font-weight: 700; color: #fff; }
.feature-card p { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: #A9B4CF; }

/* ---------- tools ---------- */
.grid-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,260px), 1fr)); gap: 18px; }
.tool-card { display: block; padding: 26px; background: #fff; border: 1px solid var(--border); border-radius: 20px; transition: transform .2s, box-shadow .2s; }
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tool-card__ic { display: flex; width: 54px; height: 54px; border-radius: 15px; align-items: center; justify-content: center; font-size: 26px; }
.tool-card h4 { margin: 18px 0 0; font-size: 21px; font-weight: 700; color: var(--ink); }
.tool-card p { margin: 8px 0 16px; font-size: 15px; line-height: 1.55; color: var(--sub); }
.tool-card__cta { font-weight: 700; font-size: 14px; color: var(--blue); }

/* ---------- members ---------- */
.members { background: var(--blue-tint); }
.chips { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.chip { padding: 11px 20px; border-radius: 999px; font-weight: 700; font-size: 15px; cursor: pointer; font-family: inherit;
  transition: all .15s; border: 1.5px solid #D4DCEC; background: #fff; color: var(--sub); }
.chip.active { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: 0 8px 18px rgba(44,94,232,.3); }
.members-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%,200px), 1fr)); gap: 18px; }
.member-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.member-card.hide { display: none; }
.member-card__photo { position: relative; height: 190px;
  background: repeating-linear-gradient(135deg, #EEF2FB, #EEF2FB 12px, #E4E9F5 12px, #E4E9F5 24px);
  display: flex; align-items: center; justify-content: center; }
.ph-label { font-family: monospace; font-size: 11px; color: #9AA6BE; }
.member-card__status { position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.member-card__status.online { background: #E4F7EC; color: #1E9E5A; }
.member-card__status.off { background: #EEF1F6; color: #8593AC; }
.member-card__sign { position: absolute; bottom: 12px; right: 12px; width: 38px; height: 38px; border-radius: 11px; background: #fff;
  box-shadow: 0 4px 12px rgba(23,33,59,.15); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.member-card__body { padding: 16px; }
.member-card__name { font-family: 'Bricolage Grotesque'; font-weight: 700; font-size: 18px; color: var(--ink); }
.member-card__meta { font-size: 13px; color: var(--sub); font-weight: 600; margin-top: 3px; }

/* ---------- magazine ---------- */
.mag-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,300px), 1fr)); gap: 22px; }
.mag-card { display: block; background: #fff; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.mag-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.mag-card__thumb { position: relative; height: 200px;
  background: repeating-linear-gradient(135deg, #EEF2FB, #EEF2FB 12px, #E4E9F5 12px, #E4E9F5 24px);
  display: flex; align-items: center; justify-content: center; }
.mag-card__cat { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--orange-tint); color: var(--orange-dark); }
.mag-card__body { padding: 22px; }
.mag-card__body h4 { font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.mag-card__body p { margin: 10px 0 16px; font-size: 15px; line-height: 1.55; color: var(--sub); }
.mag-author { display: flex; align-items: center; gap: 10px; }
.mag-author__av { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.mag-author__meta { font-size: 13px; color: var(--sub); font-weight: 600; }

/* ---------- app cta ---------- */
.appcta { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); border-radius: 28px; padding: clamp(32px,5vw,60px);
  position: relative; overflow: hidden; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,280px), 1fr)); gap: 32px; align-items: center; }
.appcta__glow { position: absolute; top: -60px; right: 20%; width: 200px; height: 200px; border-radius: 50%; background: rgba(245,132,43,.35); filter: blur(10px); }
.appcta__body { position: relative; }
.appcta h2 { font-size: clamp(28px,4vw,40px); font-weight: 800; color: #fff; }
.appcta p { margin: 16px 0 28px; font-size: 17px; line-height: 1.6; color: #D6E0FF; max-width: 420px; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn { display: flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 14px; background: var(--navy); color: #fff; font-weight: 700; font-size: 15px; }
.store-btn:hover { filter: brightness(1.15); color: #fff; }
.appcta__phone { position: relative; display: flex; justify-content: center; }
.phone-mock { width: 220px; height: 280px; border-radius: 24px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center; animation: floaty 6s ease-in-out infinite; }
.phone-mock span { font-family: monospace; font-size: 12px; color: rgba(255,255,255,.7); text-align: center; padding: 0 20px; }

/* ---------- footer ---------- */
.footer { background: var(--navy); color: #fff; }
.footer__inner { padding-top: clamp(48px,6vw,72px); }
.newsletter { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 22px; padding: clamp(26px,4vw,40px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,280px), 1fr)); gap: 24px; align-items: center; margin-bottom: 56px; }
.newsletter h3 { font-size: 24px; font-weight: 800; color: #fff; }
.newsletter p { margin: 8px 0 0; font-size: 15px; color: #A9B4CF; }
.newsletter__form { display: flex; flex-wrap: wrap; gap: 10px; }
.newsletter__form input { flex: 1; min-width: 180px; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08); color: #fff; font-size: 15px; font-family: inherit; }
.newsletter__form input::placeholder { color: #8593AC; }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,180px), 1fr)); gap: 32px; padding-bottom: 48px; }
.footer__brand { grid-column: 1 / -1; max-width: 320px; }
.footer__brand p { font-size: 15px; line-height: 1.6; color: #A9B4CF; margin-top: 4px; }
.footer__col h4 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer__col .links { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: 15px; color: #A9B4CF; font-weight: 500; }
.footer__col a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0; display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: space-between; align-items: center; }
.footer__bottom p { font-size: 14px; color: #7E8AA8; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.08); display: flex; align-items: center;
  justify-content: center; color: #fff; font-size: 15px; font-weight: 700; }
.socials a:hover { background: var(--blue); color: #fff; }

/* ===================== REGISTRÁCIA ===================== */
.auth { background: radial-gradient(120% 60% at 50% 0%, var(--blue-tint) 0%, var(--bg) 55%); }
.auth__wrap { max-width: 760px; margin: 0 auto; padding-block: clamp(40px,6vw,72px); }
.auth__head { text-align: center; margin-bottom: 32px; }
.auth__head h1 { font-size: clamp(30px,5vw,44px); font-weight: 800; }
.auth__head p { margin: 14px 0 0; font-size: 17px; color: var(--sub); }
.auth__head a { font-weight: 700; }
.auth-card { background: #fff; border: 1px solid var(--border); border-radius: 24px; padding: clamp(24px,4vw,44px); box-shadow: var(--shadow-lg); }

.form-section + .form-section { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--border); }
.form-section__title { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.form-section__title .num { width: 30px; height: 30px; border-radius: 9px; background: var(--blue-tint); color: var(--blue);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex: none; }
.form-section__title h3 { font-size: 20px; font-weight: 700; color: var(--ink); }

.form-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-field.full { grid-column: 1 / -1; }
.form-field label { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.form-field .req { color: var(--orange-dark); }
.input { width: 100%; padding: 13px 15px; border: 1.5px solid var(--border); border-radius: 12px; font-size: 15px; font-family: inherit;
  color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.input::placeholder { color: #9AA6BE; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(44,94,232,.12); }
.input:disabled { background: #F1F4FA; color: #9AA6BE; cursor: not-allowed; }
.hint { margin-top: 6px; font-size: 12px; color: var(--sub); }

/* password toggle */
.pw-wrap { position: relative; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: none; background: transparent;
  cursor: pointer; padding: 8px; font-size: 13px; font-weight: 700; color: var(--blue); font-family: inherit; }

/* gender radios */
.gender { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gender label { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; border: 1.5px solid var(--border);
  border-radius: 12px; font-weight: 700; font-size: 15px; color: var(--sub); cursor: pointer; transition: all .15s; }
.gender input { position: absolute; opacity: 0; width: 0; height: 0; }
.gender input:checked + label { border-color: var(--blue); background: var(--blue-tint); color: var(--blue); }
.gender label.g-orange:has(input:checked) { border-color: var(--orange); }
.gender__opt { position: relative; }
.gender__opt input:checked ~ label { border-color: var(--blue); background: var(--blue-tint); color: var(--blue); }

/* checkboxes */
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); cursor: pointer; }
.check span { font-size: 15px; color: var(--ink); line-height: 1.5; }
.check span .req { color: var(--orange-dark); }
.check-list { display: flex; flex-direction: column; gap: 16px; }
.check-inline { margin-top: 12px; }

.auth__submit { margin-top: 32px; }
.auth__submit .btn { font-size: 17px; padding: 17px; }
.auth__foot { margin-top: 20px; text-align: center; font-size: 15px; color: var(--sub); }

/* ===================== PROFIL ===================== */
.profile { background: var(--bg); }
.profile__wrap { padding-block: clamp(28px,5vw,48px); }
.profile__layout { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
@media (min-width: 940px) { .profile__layout { grid-template-columns: 300px 1fr; }
  .profile__side { position: sticky; top: 88px; } }

/* sidebar */
.pcard { background: #fff; border: 1px solid var(--border); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-sm); }
.pcard__cover { height: 90px; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); position: relative; }
.pcard__avatar-wrap { display: flex; flex-direction: column; align-items: center; padding: 0 22px 22px; margin-top: -52px; }
.pcard__avatar { position: relative; width: 104px; height: 104px; border-radius: 50%; border: 4px solid #fff; overflow: hidden;
  background: repeating-linear-gradient(135deg, #EEF2FB, #EEF2FB 10px, #E4E9F5 10px, #E4E9F5 20px);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.pcard__avatar .ph-label { font-size: 10px; }
.pcard__cam { position: absolute; right: 2px; bottom: 2px; width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff;
  background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; cursor: pointer; }
.pcard__name { margin-top: 14px; font-family: 'Bricolage Grotesque'; font-weight: 800; font-size: 21px; color: var(--ink); text-align: center; }
.pcard__sign { margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  background: var(--blue-tint); color: var(--blue); font-weight: 700; font-size: 13px; }
.pcard__meta { margin-top: 8px; font-size: 13px; color: var(--sub); font-weight: 600; text-align: center; }
.pcard__complete { padding: 18px 22px; border-top: 1px solid var(--border); }
.pcard__complete-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.pcard__complete-top span:last-child { color: var(--blue); }
.pbar { height: 8px; border-radius: 999px; background: var(--blue-tint); overflow: hidden; }
.pbar__fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--orange)); }

.pnav { margin-top: 20px; background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 8px; box-shadow: var(--shadow-sm); }
.pnav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; font-weight: 600; font-size: 15px; color: var(--ink); }
.pnav a:hover { background: var(--blue-tint); }
.pnav a.active { background: var(--blue-tint); color: var(--blue); }
.pnav a .pnav__ic { width: 22px; text-align: center; font-size: 17px; }
.pnav a .pnav__badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--orange);
  color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.pnav__sep { height: 1px; background: var(--border); margin: 6px 8px; }
.pnav a.danger { color: #C23A3A; }
.pnav a.danger:hover { background: #FDECEC; }

/* main panels */
.panel { background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: clamp(22px,3.5vw,36px); box-shadow: var(--shadow-sm); }
.panel + .panel { margin-top: 24px; }
.panel__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.panel__head h2 { font-size: clamp(22px,3vw,28px); font-weight: 800; }
.panel__head p { margin-top: 6px; font-size: 14px; color: var(--sub); }
.saved-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: #E4F7EC;
  color: #1E9E5A; font-weight: 700; font-size: 13px; }

.select-wrap { position: relative; }
.select-wrap::after { content: '▾'; position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: #B4BECD; pointer-events: none; font-size: 13px; }
select.input { appearance: none; -webkit-appearance: none; background: #fff; cursor: pointer; padding-right: 40px; }
textarea.input { resize: vertical; min-height: 110px; line-height: 1.5; }

/* multiselect chips */
.multiselect { display: flex; flex-wrap: wrap; gap: 10px; }
.ms-opt { position: relative; }
.ms-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.ms-opt label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1.5px solid var(--border);
  border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--sub); cursor: pointer; transition: all .15s; }
.ms-opt label::before { content: '+'; font-weight: 700; color: #B4BECD; }
.ms-opt input:checked + label { border-color: var(--blue); background: var(--blue-tint); color: var(--blue); }
.ms-opt input:checked + label::before { content: '✓'; color: var(--blue); }
.ms-opt input:focus-visible + label { box-shadow: 0 0 0 4px rgba(44,94,232,.12); }

.panel__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }

/* messages */
.msg-layout { display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
@media (min-width: 720px) { .msg-layout { grid-template-columns: 260px 1fr; } }
.msg-list { border-bottom: 1px solid var(--border); background: #FBFCFE; }
@media (min-width: 720px) { .msg-list { border-bottom: none; border-right: 1px solid var(--border); max-height: 440px; overflow-y: auto; } }
.msg-item { display: flex; gap: 12px; padding: 14px 16px; cursor: pointer; border-bottom: 1px solid var(--border); }
.msg-item:hover { background: var(--blue-tint); }
.msg-item.active { background: var(--blue-tint); }
.msg-item__av { flex: none; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; }
.msg-item__body { min-width: 0; flex: 1; }
.msg-item__top { display: flex; justify-content: space-between; gap: 8px; }
.msg-item__name { font-weight: 700; font-size: 15px; color: var(--ink); }
.msg-item__time { font-size: 12px; color: var(--sub); flex: none; }
.msg-item__preview { font-size: 13px; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.msg-item__unread { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); flex: none; align-self: center; }

.msg-thread { display: flex; flex-direction: column; min-height: 360px; }
.msg-thread__head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.msg-thread__head b { font-weight: 700; font-size: 16px; }
.msg-thread__head small { font-size: 12px; color: #1E9E5A; font-weight: 700; }
.msg-thread__body { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 14px; background: #FBFCFE; }
.bubble { max-width: 78%; padding: 11px 15px; border-radius: 16px; font-size: 14px; line-height: 1.45; }
.bubble.them { align-self: flex-start; background: #fff; border: 1px solid var(--border); color: var(--ink); border-bottom-left-radius: 5px; }
.bubble.me { align-self: flex-end; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff; border-bottom-right-radius: 5px; }
.bubble small { display: block; margin-top: 5px; font-size: 11px; opacity: .7; }
.msg-compose { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--border); }
.msg-compose input { flex: 1; padding: 12px 15px; border: 1.5px solid var(--border); border-radius: 999px; font-size: 14px; font-family: inherit; }
.msg-compose input:focus { outline: none; border-color: var(--blue); }
.msg-compose button { flex: none; width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark)); font-size: 17px; }
