/* ============================================================
   AKADI CLUB — app styles (same brand as akadi.tech)
   ============================================================ */
:root {
  --indigo: #3b3be8; --indigo-d: #2b2bc4; --violet: #8d87f6; --lav: #ececf8; --lav-2: #d9d6fb;
  --ink: #12112a; --night: #14122e; --black: #0a0a0b;
  --bg: #f7f7fc; --surface: #ffffff; --fg: #12112a; --muted: #5d5b7a; --line: rgba(18,17,42,.1); --line-2: rgba(18,17,42,.16);
  --ok: #1f9d55; --err: #d93a3f;
  --font: "Lexend", "Noto Sans Tamil", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2,.7,.2,1);
  --r: 14px; --nav-h: 64px; --gut: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: 15.5px; line-height: 1.55; background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
:focus-visible { outline: 2.5px solid var(--indigo); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--indigo); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

h1, h2, h3 { font-weight: 600; letter-spacing: -.025em; line-height: 1.12; }
h1 { font-size: clamp(26px, 3.2vw, 38px); }
h2 { font-size: clamp(19px, 2vw, 23px); }
.eyebrow { font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--indigo); margin-bottom: 8px; }
.eyebrow--light { color: var(--violet); }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.center { text-align: center; }
.accent { color: var(--indigo); }
.pre { white-space: pre-line; }
.opt { font-weight: 400; color: var(--muted); font-size: 12.5px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gut); }
.wrap.narrow { max-width: 860px; }
.sec { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(28px, 4vw, 48px); }
.sec__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.pad { padding: clamp(18px, 2.4vw, 28px); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 9px; border: 1.5px solid transparent; font-weight: 500; font-size: 15px; white-space: nowrap; transition: background-color .2s, border-color .2s, color .2s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--indigo); color: #fff; }
.btn--solid:hover { background: var(--indigo-d); }
.btn--ghost { border-color: var(--line-2); background: var(--surface); }
.btn--ghost:hover { border-color: var(--fg); }
.btn--sm { height: 38px; padding: 0 14px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; }
.link { color: var(--indigo); font-weight: 500; }
.link:hover { text-decoration: underline; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav__in { max-width: 1120px; height: 100%; margin: 0 auto; padding: 0 var(--gut); display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 19px; letter-spacing: -.03em; flex: none; }
.brand__mark { width: 32px; height: 32px; border-radius: 8px; background: var(--indigo); color: #fff; display: grid; place-items: center; font-size: 20px; font-weight: 700; line-height: 1; padding-bottom: 3px; }
.brand__name span { color: var(--muted); font-weight: 400; }
.brand--light { color: #fff; }
.brand--light .brand__name span { color: var(--violet); }
.nav__links { display: flex; gap: 4px; flex: 1; }
.nav__links a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: 14.5px; }
.nav__links a:hover { color: var(--fg); background: var(--lav); }
.nav__links a.is-on { color: var(--indigo); background: var(--lav); }
.nav__right { display: flex; align-items: center; gap: 8px; }

.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; border-radius: 50%; }
.menu summary::-webkit-details-marker { display: none; }
.menu__box { position: absolute; right: 0; top: calc(100% + 10px); width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -18px rgba(18,17,42,.35); padding: 8px; display: grid; }
.menu__who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: grid; }
.menu__who span { font: 400 12px var(--mono); color: var(--muted); }
.menu__box a { padding: 9px 10px; border-radius: 8px; font-size: 14.5px; }
.menu__box a:hover { background: var(--lav); }
.menu__out { color: var(--err); }

/* avatars */
.av { --s: 40px; width: var(--s); height: var(--s); border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--c, var(--indigo)); color: #fff; font-weight: 600; font-size: calc(var(--s) * .38); letter-spacing: -.02em; object-fit: cover; }
.av--sm { --s: 36px; }
.av--md { --s: 48px; }
.av--lg { --s: 68px; }
.av--xl { --s: 104px; }
img.av { background: var(--lav); }

/* chips & tags */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; align-items: center; }
.chips--sm .chip { height: 30px; font-size: 13px; }
.chips__lbl { font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); font-size: 13.5px; }
.chip:hover { border-color: var(--fg); }
.chip.is-on { background: var(--fg); border-color: var(--fg); color: #fff; }
.chip.is-on .muted { color: #c9c8d8; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font: 500 11px var(--mono); letter-spacing: .03em; white-space: nowrap; }
.tag--open { background: #e8f7ee; color: #146c3c; }
.tag--founding { background: var(--lav); color: var(--indigo); margin-left: auto; align-self: flex-start; }
.chip-s { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--lav); color: #2f2d8f; font-size: 12.5px; }
a.chip-s:hover { background: var(--lav-2); }

/* member cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.mcard { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.mcard:hover { transform: translateY(-3px); border-color: transparent; box-shadow: 0 18px 36px -22px rgba(18,17,42,.45); }
.mcard__top { display: flex; gap: 12px; align-items: center; }
.mcard__id { display: grid; min-width: 0; }
.mcard__id b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcard__id span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcard__head { font-size: 14.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mcard__flags, .mcard__skills { display: flex; flex-wrap: wrap; gap: 6px; }

/* forms */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 500; }
.form .lbl { display: block; }
.form .lbl .opt { margin-left: 6px; }
.form input:not([type=checkbox]):not([type=file]), .form select, .form textarea, .search input, .search select {
  width: 100%; height: 46px; border: 1.5px solid var(--line-2); border-radius: 9px; padding: 0 13px; background: #fff; font-size: 15px; font-weight: 400; transition: border-color .2s, box-shadow .2s;
}
.form textarea { height: auto; padding: 11px 13px; resize: vertical; line-height: 1.5; }
.form input:focus, .form select:focus, .form textarea:focus, .search input:focus, .search select:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(59,59,232,.13); }
.form .bad { border-color: var(--err) !important; }
.form .check { display: flex; align-items: center; gap: 10px; font-weight: 400; font-size: 14.5px; }
.form .check input, .toggle input { width: 18px; height: 18px; accent-color: var(--indigo); flex: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-msg { font-size: 14px; min-height: 0; }
.form-msg.err { color: var(--err); }
.form-msg.ok { color: var(--ok); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.prefix { display: flex; align-items: stretch; border: 1.5px solid var(--line-2); border-radius: 9px; overflow: hidden; background: #fff; }
.prefix span { display: flex; align-items: center; padding: 0 0 0 12px; color: var(--muted); font: 400 12.5px var(--mono); white-space: nowrap; }
.form .prefix input { border: 0 !important; box-shadow: none !important; padding-left: 2px; min-width: 0; }
.prefix:focus-within { border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(59,59,232,.13); }
fieldset { border: 0; }
fieldset.card { display: grid; gap: 14px; }
legend { font-weight: 600; font-size: 17px; letter-spacing: -.02em; float: left; width: 100%; margin-bottom: 2px; }
legend + * { clear: both; }
.toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.toggle { display: flex !important; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 10px; font-weight: 400 !important; font-size: 14.5px !important; cursor: pointer; }
.toggle:has(input:checked) { border-color: var(--indigo); background: #f3f3ff; }
.photo { display: flex; align-items: center; gap: 18px; }
.photo__pick { cursor: pointer; margin-bottom: 6px; }
.profile-form { gap: 16px; }
.savebar { position: sticky; bottom: 0; display: flex; justify-content: flex-end; align-items: center; gap: 14px; padding: 14px 0; background: linear-gradient(transparent, var(--bg) 30%); }

/* auth pages */
body.is-auth { background: #fff; }
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1.1fr; }
.auth__side { position: relative; overflow: hidden; background: var(--night); color: #fff; padding: clamp(24px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  background-image: radial-gradient(circle at 85% 12%, rgba(59,59,232,.85) 0, rgba(42,40,170,.35) 26%, transparent 55%), linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: auto, 22px 22px, 22px 22px; }
.auth__side h2 { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.035em; margin: 6px 0 22px; max-width: 14ch; }
.auth__side ul { display: grid; gap: 10px; color: #cfcdf3; }
.auth__side li::before { content: "✦"; color: var(--violet); margin-right: 10px; }
.auth__glyph { position: absolute; right: -2%; bottom: -14%; font-family: "Noto Sans Tamil", sans-serif; font-weight: 600; font-size: clamp(200px, 26vw, 380px); line-height: 1; color: rgba(141,135,246,.14); pointer-events: none; }
.auth__main { display: grid; place-items: center; padding: clamp(24px, 5vw, 64px) var(--gut); }
.auth__card { width: 100%; max-width: 440px; }
.auth__card h1 { margin-bottom: 4px; }
.done { text-align: center; display: grid; gap: 12px; justify-items: center; }
.done__ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--lav); color: var(--indigo); font-size: 28px; }

/* club home */
.dash { padding-top: clamp(24px, 4vw, 40px); display: grid; gap: 14px; }
.hello { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; padding: clamp(20px, 3vw, 32px); align-items: center; }
.hello__who { display: flex; gap: 18px; align-items: center; }
.hello__who h1 { font-size: clamp(24px, 3vw, 34px); }
.meter { height: 8px; border-radius: 99px; background: var(--lav); overflow: hidden; margin-bottom: 10px; }
.meter span { display: block; height: 100%; background: var(--indigo); border-radius: 99px; }
.hello__meter p { font-size: 14.5px; margin-bottom: 14px; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.quick__item { padding: 20px; display: grid; gap: 4px; transition: border-color .2s, transform .2s var(--ease); }
.quick__item:hover { border-color: var(--indigo); transform: translateY(-2px); }
.quick__item span:last-child { font-size: 14px; color: var(--muted); }
.quick__ico { width: 38px; height: 38px; border-radius: 10px; background: var(--lav); color: var(--indigo); display: grid; place-items: center; font-size: 18px; margin-bottom: 8px; }

.land { padding: clamp(40px, 8vw, 96px) 0; }
.land__in { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.land h1 { font-size: clamp(36px, 5.4vw, 64px); letter-spacing: -.04em; line-height: 1.04; margin-bottom: 16px; }
.lead { font-size: clamp(16px, 1.4vw, 18.5px); color: var(--muted); font-weight: 300; max-width: 46ch; margin-bottom: 24px; }
.land__count { margin-top: 18px; font-size: 14px; color: var(--muted); }
.land__count b { color: var(--indigo); }
.land__list { display: grid; gap: 14px; }
.land__list li { display: flex; gap: 16px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.land__list li > span { font: 500 12px var(--mono); color: var(--indigo); padding-top: 3px; }
.land__list p { font-size: 14px; color: var(--muted); margin-top: 2px; }

/* directory */
.search { display: grid; grid-template-columns: 1fr 200px auto; gap: 10px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 26px; }
.empty { text-align: center; display: grid; gap: 8px; justify-items: center; margin-top: 10px; }

/* profile */
.back { display: inline-block; margin-bottom: 14px; }
.phead { overflow: hidden; margin-bottom: 14px; }
.phead__band { height: 96px; background: linear-gradient(120deg, var(--c, var(--indigo)), #12112a); opacity: .92; }
.phead__in { display: flex; gap: 20px; align-items: flex-start; padding: 0 clamp(18px, 3vw, 28px); flex-wrap: wrap; }
.phead__in > .av { margin-top: -52px; }
.phead__in .av--xl { border: 4px solid #fff; }
.phead__id { flex: 1; min-width: 220px; padding-top: 14px; }
.phead__headline { font-size: 16px; margin-top: 4px; }
.phead__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.phead__edit { margin-top: 14px; }
.phead__flags { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px clamp(18px, 3vw, 28px) 20px; }
.pgrid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; align-items: start; }
.pmain, .pside { display: grid; gap: 14px; }
.pblock h2 { font-size: 15px; font-family: var(--mono); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.plinks { display: grid; gap: 6px; }
.plinks a { color: var(--indigo); font-weight: 500; }
.banner { display: grid; gap: 2px; padding: 16px 18px; border-radius: var(--r); background: var(--lav); border: 1px solid var(--lav-2); margin-bottom: 20px; }

/* footer, toast */
.foot { border-top: 1px solid var(--line); padding: 18px 0; font-size: 13px; color: var(--muted); }
.foot__in { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.foot a:hover { color: var(--indigo); }
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 120; transform: translate(-50%, 18px); opacity: 0; visibility: hidden; background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 10px; font-size: 14.5px; box-shadow: 0 16px 36px -14px rgba(0,0,0,.5); transition: all .3s var(--ease); }
.toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* responsive */
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth__side { min-height: auto; padding-bottom: 28px; }
  .auth__side ul, .auth__glyph { display: none; }
  .auth__side h2 { font-size: 26px; margin-bottom: 0; }
  .hello, .land__in, .pgrid { grid-template-columns: 1fr; }
  .quick { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .nav__links a { padding: 8px 9px; }
  .row2, .toggles, .search { grid-template-columns: 1fr; }
  .photo { flex-direction: column; align-items: flex-start; }
  .savebar .btn { flex: 1; }
  .phead__in > .av { margin-top: -44px; }
  .av--xl { --s: 84px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
