:root{
  --bg:#fbf8f5;--paper:#fffdfb;--ink:#171126;--muted:#777182;--purple:#6240d4;
  --purple2:#9b72f2;--line:#e9e3df;--soft:#f2ecfa;--radius:22px;--shell-w:480px;--shell-pad:0px;
}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#eee9e6;font-family:"DM Sans",system-ui,sans-serif;color:var(--ink)}
body{display:flex;justify-content:center}.app-shell{width:100%;max-width:var(--shell-w);min-height:100vh;background:var(--bg);position:relative;overflow:hidden;box-shadow:0 0 50px #00000010}
button{font:inherit;border:0;cursor:pointer;color:inherit}button:active{transform:scale(.98)}
.screen{display:none;min-height:100vh;padding-bottom:80px}.screen.active{display:block}
#landing.screen,#role.screen,#creatorNiche.screen,#createKin.screen,#signup.screen,#emailAuth.screen,#firstNext.screen{height:100dvh;height:100svh;min-height:100dvh;min-height:100svh;padding-bottom:0;overflow:hidden}
body.is-immersive,body.is-immersive .app-shell{overflow:hidden}
body.is-immersive .topbar{display:none}
.topbar{height:72px;padding:0 20px;display:flex;align-items:center;justify-content:space-between;background:rgba(251,248,245,.92);backdrop-filter:blur(16px);position:sticky;top:0;z-index:20;border-bottom:1px solid #eee8e4}
.brand{display:flex;align-items:center;gap:8px;text-decoration:none;color:var(--ink);font-family:"Plus Jakarta Sans";font-size:18px;font-weight:800}.brand-mark{width:24px;height:24px}
.top-actions{display:flex;gap:8px}.icon-btn{background:transparent;font-size:26px;width:38px;height:38px;border-radius:50%;display:grid;place-items:center}.icon-btn:hover{background:#f1ece9}
.avatar{display:grid;place-items:center;border-radius:50%;font-weight:700;color:#fff;background:linear-gradient(135deg,#24143d,#9b6de3);overflow:hidden}.avatar-sm{width:34px;height:34px;font-size:13px}.avatar-lg{width:64px;height:64px;font-size:22px;border:3px solid #fff}
.sarah{background:linear-gradient(145deg,#291d37,#cf9e9a)}.maya{background:linear-gradient(145deg,#301e39,#e49aa5)}.lucas{background:linear-gradient(145deg,#193f47,#6c9e91)}.lea{background:linear-gradient(145deg,#4b273d,#e4ae91)}
.primary-btn{background:linear-gradient(100deg,#6840dc,#895de5);color:#fff;padding:15px 22px;border-radius:16px;font-weight:700;box-shadow:0 10px 22px #6b45d52b;transition:.2s}.primary-btn:hover{filter:brightness(1.04);box-shadow:0 12px 28px #6b45d538}.primary-btn.wide{width:100%}.text-btn{background:transparent;color:var(--muted);font-size:12px;padding:13px}.muted{color:var(--muted);line-height:1.5}.eyebrow{font-size:11px;color:#8b8490;letter-spacing:.03em}.link-btn{background:none;color:var(--purple);font-size:12px;font-weight:700}
.hero-landing{height:100%;position:relative;overflow:hidden;display:flex;align-items:flex-end;background:url('img/hero-sunset.jpg') center 30%/cover no-repeat}
.hero-landing:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#0a0710 0%,#0a0710cc 32%,#0a071066 55%,#0a071022 72%,transparent 100%);pointer-events:none}
.landing-content{position:relative;z-index:2;color:#fff;text-align:center;width:100%;padding:44px 34px 40px}.landing-logo{width:48px;filter:brightness(0) invert(1);margin-bottom:10px}.landing-content h1{font-family:"Plus Jakarta Sans";font-size:32px;line-height:1.12;margin:8px 0 18px}.landing-content h1 span{font-weight:500}.landing-content p{font-size:13px;line-height:1.65;opacity:.88;max-width:320px;margin:0 auto 26px}.landing-content .primary-btn{background:#d7b8ff;color:#241536;box-shadow:none}.landing-content .text-btn{color:#fff9;display:block;margin:8px auto 0}
.center-page{padding:38px 24px 30px}.mini-brand{display:flex;justify-content:center;align-items:center;gap:7px;font-size:19px;font-family:"Plus Jakarta Sans";margin:8px 0 55px}.mini-brand img{width:26px}.center-page h2{font-family:"Plus Jakarta Sans";font-size:27px;line-height:1.18;margin:0 0 8px}.role-list{display:grid;gap:12px;margin-top:28px}.role-card{display:grid;grid-template-columns:44px 1fr 20px;align-items:center;text-align:left;background:#fff;border:1px solid var(--line);padding:18px;border-radius:17px;box-shadow:0 4px 14px #3a233b08}.role-icon{width:38px;height:38px;background:#f3eafb;border-radius:50%;display:grid;place-items:center;font-size:20px}.role-card b{display:block;font-size:15px;line-height:1.2}.role-card small{display:block;color:var(--muted);font-size:11px;line-height:1.4;margin-top:5px;max-width:245px}.role-card strong{font-size:25px;font-weight:400;color:#7c7580}
.form-field{margin-top:18px;text-align:left}.form-field label{display:block;font-size:12px;font-weight:700;margin-bottom:7px}.form-field input,.form-field textarea,.form-field select{width:100%;border:1px solid var(--line);border-radius:14px;padding:13px 15px;font:inherit;font-size:13px;outline:none;background:#fff;resize:none;transition:.15s;appearance:none;-webkit-appearance:none}.form-field input:focus,.form-field textarea:focus,.form-field select:focus{border-color:var(--purple2)}.form-field select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23716a78' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center;background-size:16px}
.next-type{background:#fff;border:1px solid var(--line);border-radius:15px;min-height:90px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}.next-type span{width:31px;height:31px;border-radius:50%;display:grid;place-items:center;background:#f0eafa;color:#7048d9}.next-type b{font-size:10px}.next-type:hover{border-color:var(--purple2)}
.back-fab{background:#f1ece9;width:38px;height:38px;border-radius:50%;font-size:22px;display:grid;place-items:center;margin-bottom:22px}.back-fab:hover{background:#e9e3df}
.auth-list{display:grid;gap:11px;margin-top:30px}.auth-btn{display:flex;align-items:center;justify-content:center;gap:10px;background:#fff;border:1px solid var(--line);padding:14px;border-radius:14px;font-weight:600;font-size:13px;box-shadow:0 3px 10px #3a233b06}.auth-btn:hover{border-color:var(--purple2)}.auth-icon{width:20px;height:20px;border-radius:50%;display:inline-grid;place-items:center;font-size:11px;font-weight:800;color:#fff;flex:none}.auth-icon.google{background:#4285f4}.auth-icon.apple{background:#000}.auth-icon.email{background:#7048d9}
.creator-cover{height:410px;color:#fff;position:relative;background:linear-gradient(145deg,#2c1836,#a06d83 52%,#15101d);overflow:hidden}.creator-cover:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 70% 20%,#f7c4d133,transparent 28%),linear-gradient(0deg,#090712ee 0%,transparent 65%)}.cover-top,.creator-hero{position:absolute;z-index:2}.cover-top{top:20px;left:18px;right:18px;display:flex;justify-content:space-between}.round-glass{width:38px;height:38px;border-radius:50%;background:#ffffff18;color:#fff;backdrop-filter:blur(10px);font-size:25px}.creator-hero{left:25px;right:25px;bottom:28px}.creator-hero h2{margin:10px 0 0;font-family:"Plus Jakarta Sans";font-size:25px}.handle,.meta{display:block;font-size:12px;color:#e8dfe8}.meta{margin-top:2px}.creator-hero p{font-size:12px;line-height:1.55;margin:14px 0 0;color:#fffdfd}.creator-body{padding:18px 20px 35px}.member-strip{height:57px;background:#fff;border:1px solid var(--line);border-radius:15px;display:flex;align-items:center;gap:10px;padding:0 13px;margin-bottom:12px}.member-strip span{margin-left:auto}.mini-avatars{display:flex}.mini-avatars i{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-size:9px;color:#fff;background:#4c315a;border:2px solid #fff;margin-left:-5px}.mini-avatars i:first-child{margin-left:0}.creator-body h3{font-size:14px;margin:25px 0 12px}.chips{display:flex;gap:8px;flex-wrap:wrap}.chip{padding:9px 13px;background:#f0ecee;border-radius:30px;font-size:11px}.chip.selected{background:#21182d;color:#fff}
.page-content{padding:22px 20px 100px}.greeting,.dash-head{display:flex;justify-content:space-between;align-items:center}.greeting h1,.dash-head h1{font-family:"Plus Jakarta Sans";font-size:27px;margin:4px 0 0}.kin-row{display:flex;gap:14px;overflow:auto;padding:22px 2px 7px;scrollbar-width:none}.kin-row::-webkit-scrollbar{display:none}.kin{text-align:center;min-width:57px}.kin-avatar{width:50px;height:50px;border-radius:50%;display:grid;place-items:center;background:#ede8ed;border:2px solid #fff;box-shadow:0 0 0 2px transparent;font-size:13px}.kin.active .kin-avatar{box-shadow:0 0 0 2px #8054d8}.kin b{display:block;font-size:10px;margin-top:6px}.kin small{font-size:8px;color:#999}.kin.add .kin-avatar{font-size:24px;color:#7552cc}
.section{margin-top:27px}.section-title{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:12px}.section-title h2,.section>h2{font-family:"Plus Jakarta Sans";font-size:18px;margin:3px 0 0}.next-card{height:170px;border-radius:17px;overflow:hidden}.next-photo{height:100%;position:relative;background:linear-gradient(135deg,#5d345a,#bc7e90 45%,#35233d)}.next-photo:before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 60% 35%,#f0b2d866,transparent 24%),linear-gradient(0deg,#170e20cc,transparent 70%)}.live-pill{display:inline-flex;background:#ee4f72;color:#fff;border-radius:6px;padding:5px 8px;font-size:9px;font-weight:800;letter-spacing:.04em}.next-photo .live-pill{position:absolute;top:14px;left:14px}.photo-copy{position:absolute;left:16px;bottom:18px;color:#fff;display:flex;flex-direction:column;gap:3px}.photo-copy b{font-family:"Plus Jakarta Sans";font-size:17px}.photo-copy span{font-size:10px;opacity:.85}.light-btn{position:absolute;bottom:15px;right:15px;background:#fff;color:#312139;padding:9px 16px;border-radius:11px;font-weight:700;font-size:11px}.activity-card{display:flex;align-items:center;gap:11px;padding:12px 0;border-bottom:1px solid var(--line)}.activity-avatar{width:35px;height:35px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:11px;flex:none}.activity-card div:nth-child(2){flex:1}.activity-card b{font-size:11px;line-height:1.35;display:block}.activity-card small{font-size:9px;color:#999;display:block;margin-top:3px}.activity-card>span{color:#aaa;font-size:20px}.quote-card{margin-top:23px;background:#eee8fa;border-radius:17px;padding:17px}.quote-label{font-size:9px;font-weight:800;color:#7751c9;letter-spacing:.08em}.quote-card p{font-family:"Plus Jakarta Sans";font-size:13px;line-height:1.45;margin:9px 0}.quote-card small{font-size:9px;color:#8d8595}
.bottom-nav{position:fixed;bottom:0;width:min(var(--shell-w),100%);height:72px;background:#fffdfdF2;backdrop-filter:blur(18px);border-top:1px solid var(--line);display:flex;justify-content:space-around;z-index:30;padding-bottom:env(safe-area-inset-bottom)}.nav{background:none;color:#8e8892;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:19px;position:relative;min-width:60px}.nav span{font-size:9px}.nav.active{color:#5533bd;font-weight:700}.dot{position:absolute;width:6px;height:6px;background:#ee5575;border-radius:50%;top:18px;right:15px}
.event-page{background:var(--paper);min-height:100vh}.event-cover{height:430px;position:relative;color:#fff;padding:20px;background:linear-gradient(150deg,#1a1329,#73408b 48%,#ed9aaf);overflow:hidden}.event-cover:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 70% 55%,#ef4cff55,transparent 25%),linear-gradient(0deg,#10091dcc,transparent 60%)}.event-cover>.round-glass{position:relative;z-index:2}.event-cover>.round-glass:last-of-type{float:right}.event-live{position:absolute;left:20px;bottom:145px}.event-title{position:absolute;bottom:35px;left:24px;z-index:2}.event-title h1{font-family:"Plus Jakarta Sans";font-size:28px;line-height:1.08;margin:0}.event-title p{font-size:11px;opacity:.85}.event-details{padding:25px 22px 50px}.detail-line{font-size:12px;display:flex;gap:12px;margin-bottom:13px}.going{display:flex;align-items:center;gap:10px;margin:20px 0}.event-details h3{font-size:15px;margin:28px 0 7px}.body-copy{font-size:12px;color:var(--muted);line-height:1.6}.creator-line{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);margin-top:20px;padding-top:17px}.creator-line div:nth-child(2){flex:1}.creator-line small{display:block;color:#999;font-size:9px;margin-top:2px}
.messages-page{min-height:100vh;display:flex;flex-direction:column}.message-head{height:72px;padding:0 17px;display:flex;align-items:center;gap:9px;border-bottom:1px solid var(--line);background:#fff;position:sticky;top:0;z-index:5}.message-head>div:nth-child(3){flex:1;min-width:0}.message-head b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-head small{display:block;color:#999;font-size:9px;margin-top:2px}.chat{flex:1;padding:20px;display:flex;flex-direction:column;gap:12px;background:#fbf8f5}.bubble{max-width:78%;padding:12px 14px;border-radius:16px;font-size:11px;line-height:1.45;overflow-wrap:anywhere}.bubble small{display:block;font-size:8px;color:#9c969d;margin-top:5px}.incoming{align-self:flex-start;background:#eee8e8;border-bottom-left-radius:5px}.outgoing{align-self:flex-end;background:#7048d9;color:#fff;border-bottom-right-radius:5px}.outgoing small{color:#e9dcff;text-align:right}.event-message{display:flex;gap:10px;background:#eee7fa;border-radius:15px;padding:13px;max-width:88%;margin-top:5px}.event-message>span{font-size:20px}.event-message div{flex:1}.event-message b{display:block;font-size:11px}.event-message small{display:block;color:#888;font-size:8px;margin:3px 0 8px}.event-message button{background:#8c65df;color:#fff;border-radius:9px;padding:7px 12px;font-size:9px}.composer{display:flex;gap:8px;padding:10px 15px 18px;background:#fff;border-top:1px solid var(--line);position:sticky;bottom:0}.composer input{flex:1;border:1px solid var(--line);border-radius:22px;padding:12px 15px;outline:none}.composer button{width:42px;border-radius:50%;background:#7048d9;color:#fff}.composer button:disabled{opacity:.5}
.thread-row .mrow-sub{display:flex;align-items:baseline;gap:6px}.thread-row small.prev{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;flex:1;min-width:0}.thread-row small.prev.unread{color:var(--ink);font-weight:700}.thread-row .mrow-time{color:#aaa;font-size:11px;flex:none;align-self:flex-start;margin-left:auto;padding-left:6px}.thread-row .dot2{width:9px;height:9px;border-radius:50%;background:var(--purple);flex:none;align-self:center;margin-left:4px}
.tabs{display:flex;gap:26px;border-bottom:1px solid var(--line);margin:22px 0 24px}.tab{background:none;padding:0 0 12px;color:#999;font-size:11px}.tab.active{color:var(--ink);font-weight:700;border-bottom:2px solid #7048d9}.create-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:20px 0 28px}.create-grid button{background:#fff;border:1px solid var(--line);border-radius:15px;min-height:90px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}.create-grid span{width:31px;height:31px;border-radius:50%;display:grid;place-items:center;background:#f0eafa;color:#7048d9}.create-grid b{font-size:10px}.upcoming{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);padding:10px;border-radius:14px}.upcoming-thumb{width:52px;height:52px;border-radius:10px;background:linear-gradient(135deg,#52215f,#d9799b)}.upcoming div:nth-child(2){flex:1}.upcoming b{display:block;font-size:10px}.upcoming small{font-size:8px;color:#999}.upcoming>span{color:#aaa}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:16px}.stats div{background:#fff;border:1px solid var(--line);padding:13px;border-radius:13px}.stats b{font-family:"Plus Jakarta Sans";font-size:18px;display:block}.stats small{font-size:8px;color:#999}
.toast{position:fixed;left:50%;bottom:90px;transform:translate(-50%,20px);background:#20172a;color:#fff;padding:11px 16px;border-radius:12px;font-size:11px;opacity:0;pointer-events:none;transition:.25s;z-index:100;white-space:nowrap}.toast.show{opacity:1;transform:translate(-50%,0)}
/* Tablet and up: the phone screen becomes a centered, floating device card */
@media(min-width:700px){
  :root{--shell-w:clamp(560px,58vw,640px);--shell-pad:clamp(20px,4vw,56px)}
  body{padding:var(--shell-pad);background:radial-gradient(900px circle at 12% 10%,#efe6fb,transparent 55%),radial-gradient(800px circle at 88% 90%,#fdeee7,transparent 55%),#eee9e6}
  .app-shell{border-radius:30px;min-height:calc(100vh - (var(--shell-pad) * 2));overflow:hidden;box-shadow:0 30px 70px #00000018}
  .screen{min-height:calc(100vh - (var(--shell-pad) * 2))}
  #landing.screen,#role.screen,#creatorNiche.screen,#createKin.screen,#signup.screen,#emailAuth.screen,#firstNext.screen{height:calc(100vh - (var(--shell-pad) * 2));min-height:calc(100vh - (var(--shell-pad) * 2))}
  .center-page,.page-content,.creator-body,.event-details,.dashboard{padding-left:32px;padding-right:32px}
  .role-list{grid-template-columns:1fr 1fr}
  .create-grid{grid-template-columns:repeat(6,1fr)}
  .stats{grid-template-columns:repeat(3,1fr)}
}
/* Desktop: a touch more room to breathe, richer backdrop */
@media(min-width:1100px){
  :root{--shell-w:clamp(600px,34vw,680px);--shell-pad:clamp(40px,5vw,88px)}
  .landing-content h1{font-size:clamp(32px,2.6vw,40px)}
  .creator-hero h2{font-size:clamp(25px,2vw,30px)}
}

/* =====================================================================
   Desktop app layout: once signed in (body.has-nav), swap the phone-style
   bottom tab bar for a fixed left sidebar and let the content use the
   freed-up width, instead of staying boxed in a narrow centred card.
   Pre-auth screens (landing/signup/etc, no .has-nav yet) keep the centred
   card look from the breakpoints above.
   ===================================================================== */
@media(min-width:1100px){
  body.has-nav{justify-content:flex-start;padding:0;background:#eee9e6}
  body.has-nav .app-shell{
    max-width:none;width:100%;margin-left:264px;min-height:100vh;
    border-radius:0;box-shadow:none;background:var(--bg);
  }
  body.has-nav .bottom-nav{
    position:fixed;left:0;top:0;bottom:0;width:264px;height:100vh;
    flex-direction:column;align-items:stretch;justify-content:flex-start;
    gap:2px;padding:26px 16px;border-top:0;border-right:1px solid var(--line);
    background:#fffdfd;backdrop-filter:none;
  }
  body.has-nav .bottom-nav::before{
    content:"Findkin";display:block;font-family:"Plus Jakarta Sans";
    font-weight:800;font-size:19px;color:var(--ink);padding:6px 14px 26px;
  }
  body.has-nav .nav{
    flex-direction:row;justify-content:flex-start;min-width:0;gap:14px;
    padding:12px 14px;border-radius:14px;font-size:21px;transition:.15s;
  }
  body.has-nav .nav:hover{background:#f4eff9}
  body.has-nav .nav.active{background:var(--soft)}
  body.has-nav .nav span{font-size:14px}
  body.has-nav .dot{top:10px;right:auto;left:32px}

  /* Content: readable column width, no longer forced to phone width */
  body.has-nav .page-content,body.has-nav .form-page,body.has-nav .creator-body,
  body.has-nav .center-page,body.has-nav .event-details{
    max-width:720px;margin:0 auto;padding-left:40px;padding-right:40px;
  }
  body.has-nav .kin-row{flex-wrap:wrap;overflow:visible}
  body.has-nav .toast{left:calc(50% + 132px)}

  /* Conversation screen and single Next page don't use .form-page/.page-content */
  body.has-nav .messages-page{max-width:760px;margin:0 auto;min-height:100vh;
    border-left:1px solid var(--line);border-right:1px solid var(--line)}
  body.has-nav .event-page{max-width:760px;margin:0 auto}
}

/* =====================================================================
   App-like behaviour + SVG icons
   ===================================================================== */
html,body{overscroll-behavior-y:none}
body{-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;touch-action:manipulation}
button,.nav,.chip,.role-card,.auth-btn,.avatar{-webkit-user-select:none;user-select:none}
input,textarea{-webkit-user-select:text;user-select:text}
img{-webkit-user-drag:none}
@media(max-width:699px){html,body{background:var(--bg)}}

/* Inputs at 16px so iOS never zooms the page on focus */
.form-field input,.form-field textarea,.composer input{font-size:16px}

/* Icon system (inline SVG sprite) */
.ico{width:1em;height:1em;flex:none;display:block;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ico.brand{fill:currentColor;stroke:none}
.icon-btn .ico{width:22px;height:22px}
.back-fab .ico{width:20px;height:20px}
.round-glass{display:grid;place-items:center;padding:0}.round-glass .ico{width:19px;height:19px}
.avatar{padding:0}.avatar .ico{width:52%;height:52%}
.role-icon .ico{width:19px;height:19px;color:#7048d9}
.role-card strong{display:grid;place-items:center}.role-card strong .ico{width:18px;height:18px;color:#7c7580}
.next-type span .ico,.create-grid span .ico{width:16px;height:16px}
.chev{display:grid;place-items:center;color:#aaa}.chev .ico{width:18px;height:18px}
.detail-line{align-items:center}.detail-line .ico{width:16px;height:16px;color:#7048d9}
.event-message>span{display:grid;place-items:start center}.event-message>span .ico{width:20px;height:20px;color:#7048d9}
.composer button{display:grid;place-items:center;padding:0}.composer button .ico{width:18px;height:18px}
.auth-icon{background:none!important;width:20px;height:20px;border-radius:0}
.auth-icon .ico{width:20px;height:20px}
.auth-icon.apple{color:#000}.auth-icon.email{color:#7048d9}

/* Top bar: brand on the left, actions on the right (no back arrow) */
.topbar{height:calc(72px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top)}
body.no-topbar .topbar{display:none}
.avatar-sm{cursor:pointer}

/* Shared bottom tab bar */
.bottom-nav{display:none;left:50%;transform:translateX(-50%);height:calc(68px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);align-items:center}
body.has-nav .bottom-nav{display:flex}
.nav{flex:1;min-width:0;height:68px;font-size:inherit}
.nav span{font-size:10px;line-height:1}
.nav.active{color:#5533bd}.nav.active .ico{stroke-width:2.4}
.dot{top:12px;right:calc(50% - 20px)}
.toast{bottom:calc(90px + env(safe-area-inset-bottom))}

/* Splash screen */
#splash{position:fixed;inset:0;z-index:200;background:var(--bg);display:grid;place-items:center;transition:opacity .35s ease,visibility .35s}
#splash img{width:180px;height:auto;animation:splashPulse .9s ease-in-out infinite alternate}
body:not(.booting) #splash{opacity:0;visibility:hidden;pointer-events:none}
@keyframes splashPulse{from{transform:scale(.92);opacity:.7}to{transform:scale(1);opacity:1}}

/* Gentle screen transition (opacity only, so fixed elements are never affected) */
.screen.active{animation:screenIn .2s ease}
@keyframes screenIn{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.screen.active,#splash img{animation:none}}

/* =====================================================================
   Profiles (own view + visitor view), forms, search, empty states
   ===================================================================== */
.av{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;overflow:hidden;color:#fff;font-weight:700;font-size:17px;flex:none;background:linear-gradient(135deg,#3a1f58,#7a4d9c)}
.av img{width:100%;height:100%;object-fit:cover;display:block}
.av.xs{width:32px;height:32px;font-size:13px;border:2px solid #efe9ea}
.av.sm{width:44px;height:44px;font-size:17px}
.av.lg{width:96px;height:96px;font-size:40px;border:3px solid #fff}
.av.sarah{background:linear-gradient(135deg,#5e2a63,#d0709a)}
.av.maya{background:linear-gradient(135deg,#2f5c8f,#7ab1d9)}
.av.lucas{background:linear-gradient(135deg,#7a4d2c,#d6a06a)}
.av.lea{background:linear-gradient(135deg,#3a7a63,#7fcaa8)}
.av-stack{display:flex}.av-stack .av+.av{margin-left:-10px}

/* Cover + identity */
.pf{min-height:100vh;background:var(--bg)}
.pf-cover{background:linear-gradient(160deg,#1c1030 0%,#3a2160 55%,#6b3f86 100%);background-size:cover;background-position:center;color:#fff;padding:calc(18px + env(safe-area-inset-top)) 20px 26px}
.pf-top{display:flex;justify-content:space-between;align-items:center;min-height:44px}
.pf-top-r{display:flex;gap:10px;align-items:center}
.pf-round{width:42px;height:42px;border-radius:50%;border:1px solid rgba(255,255,255,.35);background:rgba(20,10,35,.35);color:#fff;display:grid;place-items:center;padding:0;cursor:pointer;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.pf-round .ico{width:20px;height:20px}
.pf-more-wrap{position:relative}
.pf-more-menu{position:absolute;top:48px;right:0;background:#fff;border-radius:14px;box-shadow:0 14px 34px #00000026;overflow:hidden;min-width:150px;z-index:6}
.pf-more-menu button{display:block;width:100%;text-align:left;padding:13px 16px;font-size:13px;font-weight:600;color:var(--ink)}
.pf-more-menu button:hover{background:#f6f2fb}
.pf-more-menu button.danger{color:#c0392b}
.pf-blocked-note{color:var(--muted);font-size:12px;margin-top:4px}
.pf-pill{height:42px;padding:0 18px;border-radius:99px;border:1.5px solid rgba(255,255,255,.85);background:transparent;color:#fff;font:600 15px 'DM Sans',sans-serif;cursor:pointer;display:inline-flex;align-items:center;gap:8px}
.pf-pill.dark{border-color:#7048d9;color:#5533bd;height:40px;font-size:14px}.pf-pill .ico{width:16px;height:16px}
.pf-id{display:flex;align-items:center;gap:16px;margin-top:18px}
.pf-av{position:relative;flex:none}
.pf-cam{position:absolute;right:-2px;bottom:-2px;width:32px;height:32px;border-radius:50%;border:2px solid #fff;background:#5533bd;color:#fff;display:grid;place-items:center;padding:0;cursor:pointer}.pf-cam .ico{width:15px;height:15px}
.pf-name{min-width:0}
.pf-name h1{margin:0;font-size:30px;line-height:1.1;color:#fff;overflow-wrap:anywhere}
.pf-handle{display:block;margin-top:4px;color:rgba(255,255,255,.62);font-size:16px}
.pf-status{display:inline-flex;align-items:center;gap:6px;margin-top:9px;padding:5px 12px;border-radius:99px;background:rgba(255,255,255,.16);font-size:13px;color:#fff;max-width:100%}
.pf-status.add{border:1px dashed rgba(255,255,255,.55);background:transparent;color:rgba(255,255,255,.85);cursor:pointer;font-family:inherit}.pf-status .ico{width:13px;height:13px}
.pf-bio{margin:16px 0 0;font-size:16px;line-height:1.5;color:#fff;overflow-wrap:anywhere}
.pf-bio.add{display:block;background:none;border:1px dashed rgba(255,255,255,.45);border-radius:14px;padding:12px 14px;color:rgba(255,255,255,.8);text-align:left;font-family:inherit;cursor:pointer;width:100%}

/* Kin card */
.pf-kin{margin-top:20px;background:rgba(240,234,236,.93);color:#2b2433;border-radius:22px;padding:14px 14px 16px}
.pf-kin-row{display:flex;align-items:center;gap:12px;margin-bottom:12px;min-height:34px}
.pf-kin-text{flex:1;font-size:16px;color:#6d6675}.pf-kin-text b{font-weight:500}
.pf-info{width:36px;height:36px;border-radius:50%;border:0;background:rgba(0,0,0,.06);color:#6d6675;display:grid;place-items:center;padding:0;cursor:pointer}.pf-info .ico{width:19px;height:19px}
.pf-kin .primary-btn{width:100%;background:#4f3aa8}
.pf-kin .primary-btn.joined{background:#fff;color:#4f3aa8;border:1.5px solid #4f3aa8;display:flex;gap:8px;align-items:center;justify-content:center}.pf-kin .primary-btn .ico{width:18px;height:18px}

/* Bottom sheet with tabs */
.pf-sheet{background:var(--bg);border-radius:26px 26px 0 0;margin-top:-6px;padding:6px 20px 120px;position:relative}
.pf-tabs{display:flex;border-bottom:1px solid #e6dfe0;margin:0 -20px 18px;padding:0 20px}
.pf-tab{flex:1;background:none;border:0;padding:16px 0 13px;font:500 16px 'DM Sans',sans-serif;color:#7c7580;position:relative;cursor:pointer}
.pf-tab.active{color:#1b1428;font-weight:700}.pf-tab.active::after{content:"";position:absolute;left:12%;right:12%;bottom:-1px;height:3px;border-radius:3px;background:#5533bd}
.pf-panel{display:none}.pf-panel.active{display:block}
.pf-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.pf-h h2{margin:0;font-size:24px}
.pf-facts{display:grid;gap:10px}.pf-facts>div{background:#fff;border:1px solid #ebe4e5;border-radius:16px;padding:12px 16px;display:grid;gap:2px}
.pf-facts small{color:#8a8290;font-size:12px}.pf-facts b{font-size:16px}
.pf-bar{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(var(--shell-w),100%);padding:14px 20px calc(14px + env(safe-area-inset-bottom));background:rgba(251,248,245,.96);border-top:1px solid #e6dfe0;z-index:30}
.pf-bar .primary-btn{width:100%;height:56px;border-radius:99px;background:#4f3aa8}

/* Next cards, member rows, empty states */
.nx{display:flex;gap:14px;align-items:flex-start;background:#fff;border:1px solid #e6dfe0;border-radius:20px;padding:14px;margin-bottom:12px}
.nx-ic{width:52px;height:52px;border-radius:16px;background:#efe9fb;color:#5533bd;display:grid;place-items:center;flex:none}.nx-ic .ico{width:24px;height:24px}
.nx-b{flex:1;min-width:0;display:grid;gap:3px}.nx-b b{font-size:17px;overflow-wrap:anywhere}.nx-b small{color:#8a8290;font-size:13px}.nx-b p{margin:4px 0 0;color:#5d5666;font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.nx-type{justify-self:start;font-size:11px;font-weight:700;letter-spacing:.06em;padding:3px 8px;border-radius:6px;background:#efe9fb;color:#5533bd}.nx-type.live{background:#fde3ea;color:#c0264d}
.nx-del{border:0;background:#f3eeee;color:#8a8290;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;padding:0;cursor:pointer;flex:none}.nx-del .ico{width:17px;height:17px}
.nx-edit{border:0;background:#f3eeee;color:#8a8290;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;padding:0;cursor:pointer;flex:none}.nx-edit .ico{width:17px;height:17px}
.nx-join{flex:none;align-self:center;height:36px;padding:0 16px;border-radius:99px;border:1.5px solid #6840dc;background:#6840dc;color:#fff;font:700 13px 'DM Sans',sans-serif;cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.nx-join.joined{background:#fff;color:#4f3aa8;border-color:#4f3aa8}
.nx-join .ico{width:14px;height:14px}
.nx-count{color:var(--muted);display:block;margin-top:2px}
.mrow{display:flex;align-items:center;gap:14px;width:100%;text-align:left;background:#fff;border:1px solid #e6dfe0;border-radius:18px;padding:11px 14px;margin-bottom:10px;cursor:pointer;font-family:inherit;color:inherit}
.mrow>span{flex:1;display:grid;min-width:0}.mrow b{font-size:16px}.mrow small{color:#8a8290;font-size:13px}.mrow .ico{width:18px;height:18px;color:#aaa}
.empty{display:grid;justify-items:center;text-align:center;gap:6px;padding:34px 18px;border:1px dashed #d9d0d2;border-radius:22px;color:#6d6675}
.empty>.ico{width:34px;height:34px;color:#7048d9;margin-bottom:4px}.empty b{font-size:18px;color:#1b1428}.empty p{margin:0 0 8px;font-size:14px;line-height:1.5;max-width:270px}
.empty .primary-btn{margin-top:6px;height:46px;padding:0 22px}

/* Form screens (edit profile, new Next, search, messages) */
.form-page{padding:calc(16px + env(safe-area-inset-top)) 20px 120px}
.form-head{display:flex;align-items:center;justify-content:space-between;min-height:48px;margin-bottom:10px}.form-head h2{margin:0;font-size:24px}.form-head>span{width:44px}
.form-error{color:#c0392b;font-size:13px;margin:10px 0 0}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.form-field label small{color:#8a8290;font-weight:400}
.ed-cover{height:170px;border-radius:22px;background:linear-gradient(160deg,#1c1030,#3a2160 60%,#6b3f86);background-size:cover;background-position:center;position:relative;margin-bottom:-38px}
.nx-cover{height:140px;border-radius:16px;background:linear-gradient(160deg,#1c1030,#3a2160 60%,#6b3f86);background-size:cover;background-position:center;position:relative}
.ed-cam{position:absolute;right:12px;bottom:12px;height:38px;padding:0 14px;border-radius:99px;border:0;background:rgba(15,8,25,.62);color:#fff;font:600 13px 'DM Sans',sans-serif;display:flex;gap:7px;align-items:center;cursor:pointer}.ed-cam .ico{width:16px;height:16px}
.ed-avatar-row{display:flex;align-items:flex-end;gap:14px;padding:0 14px 18px;position:relative}
.ed-avatar{cursor:pointer}
.type-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0 6px}
.type-grid button{display:grid;justify-items:center;gap:7px;padding:14px 4px;border-radius:16px;border:1.5px solid #e2dadb;background:#fff;font:600 13px 'DM Sans',sans-serif;color:#1b1428;cursor:pointer}
.type-grid button .ico{width:22px;height:22px;color:#7048d9}.type-grid button.selected{border-color:#5533bd;background:#f2edfd}
.text-btn.danger{color:#c0392b;display:flex;gap:8px;align-items:center;justify-content:center;width:100%;margin-top:14px}.text-btn.danger .ico{width:16px;height:16px}
.search-box{display:flex;align-items:center;gap:10px;height:52px;padding:0 16px;border-radius:99px;border:1.5px solid #e2dadb;background:#fff;margin-bottom:16px}
.search-box .ico{width:19px;height:19px;color:#8a8290}.search-box input{flex:1;border:0;outline:0;background:none;font:16px 'DM Sans',sans-serif;min-width:0}
#edSave{margin-top:22px}

/* Home feed */
.hm-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.hm-head h1{margin:2px 0 0;font-size:30px}
.hm-me{border:0;background:none;padding:0;cursor:pointer;border-radius:50%}
.kin-scroll{display:flex;gap:16px;overflow-x:auto;padding:2px 2px 8px;margin:0 -20px;padding-left:20px;padding-right:20px;scrollbar-width:none}.kin-scroll::-webkit-scrollbar{display:none}
.kin-item{display:grid;justify-items:center;gap:7px;background:none;border:0;padding:0;cursor:pointer;font-family:inherit;color:inherit;flex:none;width:76px}
.kin-item b{font-size:13px;font-weight:600;max-width:76px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.av.lg2{width:66px;height:66px;font-size:26px;border:2px solid var(--bg);box-shadow:0 0 0 2px #e2dadb}
.nx[data-act]{cursor:pointer}.nx-b small.by{color:#5533bd;font-weight:600}

/* =====================================================================
   Home 2 — header, Kin ring row, featured Next, recent activity, skeletons
   ===================================================================== */
.hm-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px}
.hm-brand{display:flex;align-items:center;gap:9px;font-family:"Plus Jakarta Sans",sans-serif;font-size:22px;font-weight:800;letter-spacing:-.01em}
.hm-brand img{width:30px;height:30px;display:block}
.hm-top-r{display:flex;align-items:center;gap:8px}
.hm-top .icon-btn{width:44px;height:44px}
.hm-top .icon-btn .ico{width:24px;height:24px}
.hm-head{margin-bottom:16px}
.kin-scroll{padding-top:5px}
.kin-item.has-next .av.lg2{box-shadow:0 0 0 2px #6240d4}
.kin-item.add .av.lg2{background:#f2ecfa;color:#6240d4;box-shadow:0 0 0 2px #d9cff0}
.kin-item.add .av .ico{width:26px;height:26px}
.kin-item:focus-visible,.fc:focus-visible,.act:focus-visible{outline:2px solid #6240d4;outline-offset:3px;border-radius:16px}

/* Featured Next */
.fc{display:flex;flex-direction:column;justify-content:space-between;width:100%;min-height:210px;margin-bottom:12px;padding:16px;border:0;border-radius:26px;text-align:left;color:#fff;cursor:pointer;font-family:inherit;background-color:#3a2150;background-image:linear-gradient(150deg,#4a2a63,#a4667f 55%,#24132f);background-size:cover;background-position:center}
.fc.sarah{background-image:linear-gradient(150deg,#4a2a63,#c07a9c 55%,#2a1436)}
.fc.maya{background-image:linear-gradient(150deg,#283f6e,#7d8fd0 55%,#1c1a3a)}
.fc.lucas{background-image:linear-gradient(150deg,#5a3a24,#c48a5a 55%,#2b1a12)}
.fc.lea{background-image:linear-gradient(150deg,#245a4a,#6fb89a 55%,#14302a)}
.fc-badge{align-self:flex-start;padding:6px 11px;border-radius:9px;background:rgba(255,255,255,.22);font-size:11px;font-weight:700;letter-spacing:.06em;backdrop-filter:blur(8px)}
.fc-badge.live{background:#e8476d}
.fc-body{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-top:70px}
.fc-txt{display:grid;gap:5px;min-width:0}
.fc-txt b{font-family:"Plus Jakarta Sans",sans-serif;font-size:24px;line-height:1.15;overflow-wrap:anywhere}
.fc-txt small{font-size:14px;opacity:.88}
.fc-cta{flex:none;padding:12px 22px;border-radius:99px;background:#fff;color:#1b1428;font-size:15px;font-weight:700}
.nx[data-go]{cursor:pointer}

/* Recent activity */
.act{display:flex;align-items:center;gap:14px;width:100%;padding:14px 0;border:0;border-bottom:1px solid var(--line);background:none;text-align:left;cursor:pointer;font-family:inherit;color:inherit}
.act:last-child{border-bottom:0}
.act>span{flex:1;display:grid;gap:3px;min-width:0}
.act b{font-size:16px;font-weight:600;line-height:1.3;overflow-wrap:anywhere}
.act small{color:#8a8290;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.act .ico{width:18px;height:18px;color:#aaa}

/* Next tab: day headings */
.day-h{margin:22px 0 10px;color:#8a8290;font-size:14px;font-weight:700}
.form-head+.day-h{margin-top:8px}

/* Loading skeletons */
.sk{background:linear-gradient(90deg,#eee8e6 25%,#f7f2f0 50%,#eee8e6 75%);background-size:200% 100%;animation:skShimmer 1.3s linear infinite;border-radius:12px}
.sk-c{width:66px;height:66px;border-radius:50%}
.sk-l{width:48px;height:12px}
.sk-card{height:210px;border-radius:26px}
.sk-row{height:78px;margin-bottom:12px;border-radius:20px}
@keyframes skShimmer{to{background-position:-200% 0}}
@media(prefers-reduced-motion:reduce){.sk{animation:none}}

.or-line{display:flex;align-items:center;gap:12px;color:#8a8290;font-size:12px;margin:18px 0 14px}.or-line:before,.or-line:after{content:"";flex:1;height:1px;background:var(--line)}
/* ---------- Next types: Challenge / Project / Collab (extra block under a card) ---------- */
.nx{flex-wrap:wrap}
.nx-x{flex:1 0 100%;display:grid;gap:10px;border-top:1px solid #eee8e6;padding-top:12px;margin-top:-4px}
.nx-social{display:flex;align-items:center;gap:14px}
.nx-react{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:13px;font-weight:700;background:none;padding:4px 2px}
.nx-react .ico{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}
.nx-react.active{color:#e0457b}.nx-react.active .ico{fill:#e0457b;stroke:#e0457b}
.nx-comments{margin-top:2px}
.cm-row{display:flex;gap:8px;align-items:flex-start;margin-bottom:8px}
.cm-row .avatar{flex:none}
.cm-b{background:#f6f2fb;border-radius:14px;padding:8px 12px;font-size:13px}.cm-b b{display:block;font-size:12px;margin-bottom:2px}.cm-b p{margin:0;line-height:1.4}
.cm-add{display:flex;gap:8px;align-items:center;margin-top:4px}
.cm-add input{flex:1;border:1px solid var(--line);border-radius:99px;padding:9px 14px;font:inherit;font-size:13px;background:#fff}
.cm-add .pf-round{width:36px;height:36px;border-color:var(--line);background:var(--purple);color:#fff}
.cm-add .pf-round .ico{width:16px;height:16px}
.kv{display:grid;gap:2px}.kv small{color:#8a8290;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.kv span{font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.nx-sub{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#8a8290}
.need{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:6px 0}
.need+.need{border-top:1px solid #f0eae8;padding-top:12px}
.need-t{flex:1 1 120px;min-width:0;display:grid;gap:2px}.need-t b{font-size:15px;overflow-wrap:anywhere}.need-t small{color:#8a8290;font-size:13px}
.nd{width:10px;height:10px;border-radius:50%;flex:none;background:#2e9e5b}.nd.filled{background:#6840dc}.nd.closed{background:#c9c2cc}
.nx-act{display:flex}
.nx-mini{flex:none;height:34px;padding:0 14px;border-radius:99px;border:1.5px solid #d9d0e8;background:#fff;color:#4f3aa8;font:700 13px 'DM Sans',sans-serif;cursor:pointer}
.nx-state{flex:none;display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:#8a8290}.nx-state .ico{width:14px;height:14px}.nx-state.ok{color:#2e7d4f}
.nx-meta{color:#5533bd!important;font-weight:600}
/* create-a-Next form */
.nx-extra[hidden]{display:none}
.type-grid.locked{opacity:.55;pointer-events:none}
.nx-need-ed{display:flex;gap:8px;align-items:center;margin-bottom:10px}.nx-need-in{flex:1;min-width:0;display:grid;gap:6px}
.nx-need-x{width:38px;height:38px;border-radius:50%;background:#f3eeee;color:#8a8290;display:grid;place-items:center;padding:0;flex:none}.nx-need-x .ico{width:17px;height:17px}
.nx-add{background:none;color:#5533bd;font-weight:700;font-size:14px;padding:8px 0;margin-bottom:10px}
.nx-item-ed{border:1px solid #f0eae8;border-radius:16px;padding:12px;margin-bottom:12px;position:relative}
.nx-item-ed .nx-need-in{margin-bottom:8px}
.nx-item-ed textarea,.nx-item-ed>input{margin-bottom:0}
.nx-item-ed .type-grid{margin:0 0 8px;grid-template-columns:repeat(3,1fr)}
.nx-item-ed .nx-need-x{position:absolute;top:10px;right:10px;width:32px;height:32px}
.nx-item-img{height:120px;border-radius:14px;background:#f3eeee no-repeat center/cover;position:relative}
.nx-item-body{padding:8px 0 4px;font-size:14px;line-height:1.5}
.nx-item-body img{width:100%;border-radius:12px;display:block}
.nx-invite-row{display:flex;align-items:center;gap:9px;padding:9px 0;border-top:1px solid #f0eae8;font-size:14px}
.nx-invite-row:first-child{border-top:0}
.nx-invite-row input{width:auto}
/* answer screen + creator's responses screen */
.rs-info{display:grid;gap:10px;margin-top:6px}
.need-ctl{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:4px 0 16px}.need-ctl .nx-state{gap:8px;color:#1b1428}
.resp{background:#fff;border:1px solid #e6dfe0;border-radius:18px;padding:12px 14px;margin-bottom:10px;display:grid;gap:8px}
.resp-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.resp-who{display:flex;align-items:center;gap:10px;background:none;text-align:left;padding:0;min-width:0}.resp-who span{display:grid;min-width:0}.resp-who b{font-size:15px;overflow-wrap:anywhere}.resp-who small{color:#8a8290;font-size:12px}
.resp p{margin:0;font-size:14px;line-height:1.45;overflow-wrap:anywhere}.resp a{color:#5533bd;word-break:break-all}
.resp-img{width:100%;max-height:320px;object-fit:cover;border-radius:12px;display:block}
.resp-act{display:flex;gap:8px}
.badge{flex:none;font-size:11px;font-weight:700;letter-spacing:.04em;padding:4px 9px;border-radius:99px;background:#f0ecee;color:#6f6878}.badge.accepted{background:#e2f4e9;color:#2e7d4f}.badge.pending{background:#efe9fb;color:#5533bd}
