:root{
 --bg:#f7f8fa;--surface:#fff;--surface-soft:#f1f3f6;--ink:#17202a;--muted:#697381;
 --line:#e1e5ea;--accent:#234a73;--accent-soft:#eaf0f6;--green:#2f7657;
 --shadow:0 8px 30px rgba(21,32,43,.06);--radius:14px;--max:1180px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;background:var(--bg);color:var(--ink);line-height:1.5}
button,input{font:inherit}button{cursor:pointer}a{text-decoration:none;color:inherit}
.topbar{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.topbar-inner{height:68px;max-width:var(--max);margin:auto;padding:0 24px;display:flex;align-items:center;gap:22px}
.menu-btn{width:42px;height:42px;border:1px solid var(--line);background:#fff;border-radius:10px;display:grid;place-items:center;color:var(--ink)}
.hamb{width:17px;display:grid;gap:4px}.hamb i{display:block;height:1.5px;background:currentColor;border-radius:3px}
.brand{display:flex;align-items:center;gap:10px;min-width:max-content}
.brand-logo-wrap{width:42px;height:42px;overflow:hidden;display:flex;align-items:center;justify-content:center;flex:0 0 auto;border-radius:50%;background:#fff;border:1px solid var(--line)}.brand-logo{width:100%;height:100%;object-fit:cover;object-position:center;border-radius:50%;transform:scale(1.5)}
.brand-name{font-family:Georgia,"Times New Roman",serif;font-size:16px;font-weight:700;letter-spacing:.2px;white-space:nowrap}
.header-spacer{flex:1}
.header-link{border:0;background:none;color:var(--muted);font-size:13px}.header-link:hover{color:var(--ink)}
.header-join{border:1px solid var(--accent);background:var(--accent);color:#fff;padding:9px 15px;border-radius:9px;font-size:12px;font-weight:700}
main{max-width:var(--max);margin:auto;padding:0 24px 70px}
.page{display:none}.page.active{display:block}
.hero{padding:78px 0 62px;border-bottom:1px solid var(--line);display:grid;grid-template-columns:1.45fr .75fr;gap:70px;align-items:end}
.kicker{font-size:11px;text-transform:uppercase;letter-spacing:2px;font-weight:700;color:var(--accent);margin-bottom:18px}
.hero h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(46px,6vw,76px);line-height:1.02;font-weight:500;letter-spacing:-2.8px;max-width:780px}
.hero h1 em{font-style:normal;color:var(--accent)}
.hero p{max-width:620px;color:var(--muted);font-size:16px;margin-top:22px;line-height:1.75}
.hero-actions{display:flex;gap:10px;margin-top:27px;flex-wrap:wrap}
.btn{border:1px solid var(--line);background:#fff;color:var(--ink);padding:11px 16px;border-radius:9px;font-size:13px;font-weight:650}.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}.btn:hover{box-shadow:var(--shadow)}
.hero-note{border-left:2px solid var(--accent);padding-left:20px}.hero-note strong{display:block;font-family:Georgia,serif;font-size:20px;font-weight:500}.hero-note p{font-size:12px;margin-top:8px;line-height:1.7}
.section{padding-top:46px}.section-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:18px;gap:20px}.section-title{font-family:Georgia,serif;font-size:25px;font-weight:500}.section-sub{font-size:12px;color:var(--muted);margin-top:4px}.text-link{border:0;background:none;color:var(--accent);font-size:12px;font-weight:700}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px;transition:.18s}.card:hover{box-shadow:var(--shadow);transform:translateY(-1px)}
.card-label{font-size:10px;letter-spacing:1.2px;text-transform:uppercase;color:var(--accent);font-weight:800}.card h3{font-family:Georgia,serif;font-size:20px;font-weight:500;line-height:1.25;margin:13px 0 8px}.card p{font-size:13px;color:var(--muted);line-height:1.7}.meta{display:flex;gap:12px;align-items:center;margin-top:17px;color:#87909b;font-size:10px}.rule{height:1px;background:var(--line);margin:16px 0}
.page-head{padding:52px 0 25px;border-bottom:1px solid var(--line)}.page-head .kicker{margin-bottom:9px}.page-head h1{font-family:Georgia,serif;font-size:48px;font-weight:500;letter-spacing:-1.5px}.page-head p{color:var(--muted);font-size:14px;max-width:680px;margin-top:10px}
.toolbar{display:flex;gap:9px;margin:20px 0;align-items:center}.search{flex:1;position:relative}.search input{width:100%;height:42px;border:1px solid var(--line);border-radius:9px;background:#fff;padding:0 13px;color:var(--ink);outline:none}.search input:focus{border-color:#9eabb8}
.filters{display:flex;gap:6px;overflow:auto}.filter{white-space:nowrap;background:#fff;border:1px solid var(--line);color:var(--muted);border-radius:8px;padding:8px 11px;font-size:11px}.filter.active{background:var(--accent-soft);color:var(--accent);border-color:#cbd9e6}
.idea-card{display:grid;grid-template-columns:42px 1fr;gap:13px}.idea-icon{width:42px;height:42px;border-radius:10px;background:var(--surface-soft);display:grid;place-items:center;color:var(--accent);font-size:18px}.skills{display:flex;gap:5px;flex-wrap:wrap;margin-top:12px}.skill{background:#f3f5f7;border:1px solid #e7eaee;color:#65707d;padding:4px 7px;border-radius:6px;font-size:9px}
.people-card{display:flex;gap:13px;align-items:flex-start}.avatar{width:44px;height:44px;border-radius:50%;background:#e9edf1;display:grid;place-items:center;color:var(--accent);font-size:11px;font-weight:800;flex:none;overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}.people-card h3{font-family:inherit;font-size:15px;font-weight:700;margin:0}.handle{font-size:11px;color:var(--muted)}.role{font-size:12px;color:var(--muted);margin-top:8px}
.launch-cover{height:130px;background:#eef1f4;border:1px solid #e3e7eb;border-radius:10px;display:grid;place-items:center;font-family:Georgia,serif;font-size:25px;color:var(--accent);margin-bottom:17px}
.promo-box{margin-top:28px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:34px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:30px}.promo-box h2{font-family:Georgia,serif;font-weight:500;font-size:30px}.promo-box p{color:var(--muted);font-size:13px;max-width:650px;margin-top:8px}
.profile-box{margin-top:28px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:25px;display:flex;gap:18px;align-items:center}.profile-avatar{width:70px;height:70px;border-radius:50%;background:#e9edf1;display:grid;place-items:center;color:var(--accent);font-weight:800}.profile-box h2{font-family:Georgia,serif;font-weight:500;font-size:25px}.profile-box p{color:var(--muted);font-size:13px;margin-top:4px}
.empty{padding:45px;text-align:center;border:1px dashed var(--line);border-radius:12px;color:var(--muted);font-size:13px}
.drawer-backdrop{position:fixed;inset:0;background:rgba(15,24,34,.28);z-index:80;display:none}.drawer-backdrop.show{display:block}
.drawer{position:fixed;z-index:90;left:0;top:0;bottom:0;width:min(330px,88vw);background:#fff;border-right:1px solid var(--line);transform:translateX(-105%);transition:.25s;padding:22px;box-shadow:20px 0 50px rgba(20,30,40,.1)}.drawer.show{transform:none}
.drawer-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:22px;border-bottom:1px solid var(--line)}.drawer-nav{padding-top:16px;display:grid;gap:4px}.drawer-nav button{border:0;background:none;text-align:left;padding:13px 12px;border-radius:9px;color:#596473;font-size:13px}.drawer-nav button:hover,.drawer-nav button.active{background:#f0f3f6;color:var(--accent);font-weight:700}.drawer-section{font-size:9px;letter-spacing:1.5px;text-transform:uppercase;color:#9aa2ac;margin:22px 12px 7px}
.modal{position:fixed;inset:0;z-index:220;background:rgba(20,28,36,.3);backdrop-filter:blur(3px);display:none;align-items:flex-end;justify-content:center;padding:15px}.modal.show{display:flex}.modal-box{width:min(540px,100%);max-height:calc(100dvh - 30px);overflow:auto;background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px;box-shadow:0 25px 70px rgba(20,30,40,.18)}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:18px}.modal-head b{font-family:Georgia,serif;font-size:22px;font-weight:500}.close{border:0;background:#f0f2f4;color:#68727d;width:32px;height:32px;border-radius:8px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field{display:grid;gap:6px}.field.full{grid-column:1/-1}.field label{font-size:10px;color:var(--muted)}.field input,.field textarea{border:1px solid var(--line);background:#fafbfc;border-radius:8px;padding:11px;color:var(--ink);width:100%;min-width:0;outline:none}.field textarea{min-height:90px;resize:vertical}

.profile-content{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}.profile-detail-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px}.profile-detail-card h3{font-family:Georgia,serif;font-size:19px;font-weight:500;margin-bottom:8px}.profile-detail-card p{font-size:13px;color:var(--muted);line-height:1.7}.profile-photo{width:82px;height:82px;border-radius:50%;background:#eef1f4;border:1px solid var(--line);display:grid;place-items:center;overflow:hidden;flex:none}.profile-photo img{width:100%;height:100%;object-fit:cover}.profile-top{display:flex;align-items:center;gap:16px;min-width:0}.profile-actions{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.project-list{display:grid;gap:9px;margin-top:12px}.project-item{border:1px solid var(--line);background:#fafbfc;border-radius:9px;padding:11px 12px;font-size:12px}.project-item strong{display:block;font-size:13px;margin-bottom:2px}.profile-empty{color:#9aa2ac;font-size:12px}.setup-step{display:none}.setup-step.active{display:block}.step-indicator{font-size:10px;color:var(--muted);margin-bottom:16px}.photo-picker{display:flex;align-items:center;gap:14px;padding:13px;border:1px solid var(--line);border-radius:10px;background:#fafbfc}.photo-preview{width:62px;height:62px;border-radius:50%;background:#e9edf1;overflow:hidden;display:grid;place-items:center;color:var(--accent);font-size:11px;font-weight:800;flex:none}.photo-preview img{width:100%;height:100%;object-fit:cover}.photo-actions{display:flex;gap:7px;flex-wrap:wrap}.btn.small{padding:8px 10px;font-size:11px}.setup-actions{display:flex;gap:8px;margin-top:16px}.setup-actions .btn{flex:1}.skip-link{border:0;background:none;color:var(--muted);font-size:11px;padding:8px}.project-inputs{display:grid;gap:9px}.project-row{display:grid;grid-template-columns:1fr auto;gap:7px}.project-row input{min-width:0}.remove-project{border:1px solid var(--line);background:#fff;border-radius:8px;width:42px;color:#7b8490}.add-project{border:1px dashed #cbd2da;background:#fff;color:var(--accent);border-radius:8px;padding:9px;font-size:11px;width:100%}.edit-profile-btn{white-space:nowrap}
.toast{position:fixed;left:50%;bottom:25px;transform:translate(-50%,15px);opacity:0;background:#17202a;color:#fff;padding:10px 14px;border-radius:8px;font-size:11px;z-index:260;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}
.auth-box{padding:22px}.auth-sub{font-size:11px;color:var(--muted);margin-top:5px}.google-btn{width:100%;height:46px;border:1px solid var(--line);background:#fff;border-radius:9px;color:var(--ink);font-size:13px;font-weight:650;display:flex;align-items:center;justify-content:center;gap:9px}.google-g{font-weight:800;font-size:17px}.auth-divider{display:flex;align-items:center;gap:10px;color:#98a0aa;font-size:10px;margin:18px 0}.auth-divider:before,.auth-divider:after{content:"";height:1px;background:var(--line);flex:1}.auth-submit{width:100%;margin-top:16px}.auth-create{text-align:center;color:var(--muted);font-size:11px;margin-top:16px}.auth-create button{border:0;background:none;color:var(--accent);font-weight:700;padding:0}.auth-box .form-grid{gap:11px}
@media(max-width:800px){.header-link{display:none}.hero{grid-template-columns:1fr;gap:35px;padding:55px 0 45px}.hero-note{max-width:480px}.grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.topbar-inner{height:60px;padding:0 12px;gap:9px}.menu-btn{width:38px;height:38px;flex:0 0 38px}.brand{gap:7px;min-width:0}.brand-name{font-size:12px;overflow:hidden;text-overflow:ellipsis;max-width:132px}.brand-logo-wrap{width:36px;height:36px}.brand-logo{width:100%;height:100%}.header-join{padding:8px 10px;font-size:11px;white-space:nowrap;flex:0 0 auto}main{padding:0 15px 55px}.hero h1{font-size:48px;letter-spacing:-2px}.hero p{font-size:14px}.page-head{padding:38px 0 22px}.page-head h1{font-size:39px}.grid{grid-template-columns:1fr}.toolbar{display:grid;grid-template-columns:1fr}.promo-box{grid-template-columns:1fr;padding:25px}.profile-box{align-items:flex-start;flex-wrap:wrap}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}}
@media(max-width:560px){.topbar-inner{height:60px;padding:0 12px;gap:8px}.menu-btn{width:38px;height:38px}.brand{gap:7px}.brand-logo-wrap{width:34px;height:34px}.brand-name{font-size:13px}.header-join{padding:8px 10px;font-size:11px;border-radius:8px}main{padding:0 12px 50px}.page-head{padding:34px 0 20px}.page-head h1{font-size:38px}.profile-box{padding:16px;display:grid;grid-template-columns:1fr auto;gap:12px}.profile-top{grid-column:1/-1}.profile-actions{grid-column:1/-1;margin-left:0;justify-content:stretch}.profile-actions .btn{flex:1}.profile-content{grid-template-columns:1fr}.profile-detail-card[style]{grid-column:auto!important}.modal{padding:8px 8px calc(8px + env(safe-area-inset-bottom, 0px));align-items:flex-end}.modal-box{max-height:calc(100dvh - 16px - env(safe-area-inset-top, 0px));border-radius:16px;padding:17px}.auth-box .modal-head b{font-size:20px}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.setup-actions{position:sticky;bottom:0;background:#fff;padding-top:10px}.photo-picker{align-items:flex-start}.project-row{grid-template-columns:minmax(0,1fr) 40px}}

/* ---- Professional profile page ---- */
.profile-box-pro{margin-top:28px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:26px}
.profile-top-pro{display:flex;align-items:flex-start;gap:20px;flex-wrap:wrap}
.profile-photo-pro{width:90px;height:90px;border-radius:50%;background:#eef1f4;border:1px solid var(--line);display:grid;place-items:center;overflow:hidden;flex:none;font-weight:800;color:var(--accent);font-size:22px}
.profile-photo-pro img{width:100%;height:100%;object-fit:cover}
.profile-id{flex:1;min-width:180px}
.profile-id h2{font-family:Georgia,serif;font-weight:500;font-size:26px;display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.verified-badge{display:inline-flex;align-items:center;justify-content:center;width:19px;height:19px;background:var(--accent);color:#fff;border-radius:50%;font-size:11px}
.profile-handle{color:var(--muted);font-size:13px;margin-top:3px}
.profile-tagline{font-size:13px;color:var(--ink);margin-top:8px;font-weight:600}
.profile-stats-row{display:flex;gap:0;margin-top:22px;border-top:1px solid var(--line);padding-top:18px}
.stat-pro{flex:1;text-align:center;border-right:1px solid var(--line)}
.stat-pro:last-child{border-right:none}
.stat-num{display:block;font-family:Georgia,serif;font-size:21px;font-weight:600;color:var(--ink)}
.stat-label{display:block;font-size:11px;color:var(--muted);margin-top:3px}
.about-card-pro{margin-top:14px}
.building-card-pro{margin-top:14px;background:var(--accent-soft);border-color:#cbd9e6}
.building-row{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-top:6px}
.building-row h3{font-family:Georgia,serif;font-size:19px;font-weight:500}
.building-row p{font-size:12px;color:var(--muted);margin-top:4px}
.status-pill{font-size:10px;font-weight:700;padding:5px 10px;border-radius:20px;white-space:nowrap;background:#eaf0f6;color:var(--accent)}
.status-pill.status-launched{background:#e7f3ed;color:var(--green)}
.project-list-pro{display:grid;gap:12px;margin-top:16px}
.project-item-pro{display:flex;align-items:flex-start;gap:14px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px;flex-wrap:wrap}
.project-icon-box{width:46px;height:46px;border-radius:12px;background:var(--ink);color:#fff;display:grid;place-items:center;font-size:20px;flex:none}
.project-item-body{flex:1;min-width:160px}
.project-item-body h4{font-size:15px;font-weight:700}
.tag-row{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.tag-pill{background:var(--accent-soft);color:var(--accent);font-size:10px;font-weight:700;padding:4px 9px;border-radius:20px}
.project-item-actions{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.project-row-full{border:1px solid var(--line);border-radius:10px;padding:10px;display:grid;gap:8px;background:#fafbfc}
.project-row-full .project-row{display:grid;grid-template-columns:50px 1fr auto;gap:7px}
.project-sub-grid{display:grid;grid-template-columns:1fr 1fr 110px;gap:7px}
.project-sub-grid input,.project-sub-grid select{border:1px solid var(--line);background:#fff;border-radius:7px;padding:8px;font-size:12px;min-width:0}
.connect-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
@media(max-width:560px){.profile-stats-row{flex-wrap:wrap}.stat-pro{flex:1 1 50%;border-right:none;border-bottom:1px solid var(--line);padding-bottom:10px;margin-bottom:10px}.project-sub-grid{grid-template-columns:1fr}.project-item-actions{align-items:flex-start;width:100%}.building-row{flex-direction:column}}

/* ---- About page ---- */
.founder-card-pro{margin-top:28px;background:linear-gradient(135deg,#0b1520,#17202a);border-radius:18px;padding:30px;box-shadow:0 20px 50px rgba(11,21,32,.3)}
.founder-card-inner{display:flex;flex-direction:column-reverse;align-items:center;gap:20px;text-align:center}
.founder-text{flex:1}
.founder-role{font-size:11px;letter-spacing:1.5px;text-transform:uppercase;color:#9fb4cc;font-weight:700;margin-bottom:8px}
.founder-card-pro h2{font-family:Georgia,serif;font-size:28px;font-weight:500;color:#fff;margin-bottom:10px}
.founder-card-pro p{font-size:13px;color:#c3ccd6;line-height:1.7}
.founder-photo-wrap{flex:none}
.founder-photo{width:100px;height:100px;background:rgba(255,255,255,.08);border:2px solid rgba(255,255,255,.18);color:#fff;font-size:26px}
.contact-section-pro{margin-top:14px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:28px;text-align:center}
.contact-section-pro h3{font-family:Georgia,serif;font-size:20px;font-weight:500;margin-bottom:16px}
.contact-row-pro{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
@media(min-width:701px){
  .founder-card-inner{flex-direction:row;justify-content:space-between;text-align:left}
  .founder-photo{width:110px;height:110px}
}

/* ---- Likes, comments, notifications ---- */
.engagement-row{display:flex;gap:14px;margin-top:10px}
.like-btn{display:flex;align-items:center;gap:4px}
.comments-section{margin-top:10px;border-top:1px solid var(--line);padding-top:10px;display:grid;gap:8px}
.comment-item{background:#fafbfc;border:1px solid var(--line);border-radius:8px;padding:8px 10px;font-size:12px}
.comment-item strong{display:block;font-size:11px;margin-bottom:2px}
.comment-item p{color:var(--ink);font-size:12px;line-height:1.5}
.comment-input-row{display:flex;gap:6px}
.comment-input{flex:1;border:1px solid var(--line);border-radius:8px;padding:8px;font-size:12px;min-width:0}
.notif-btn{position:relative}
.notif-badge{position:absolute;top:-4px;right:-4px;background:#b3413c;color:#fff;font-size:9px;font-weight:800;min-width:15px;height:15px;border-radius:20px;display:flex;align-items:center;justify-content:center;padding:0 3px}
.notification-item{background:#fafbfc;border:1px solid var(--line);border-radius:10px;padding:10px 12px;font-size:12px}
.notification-item.unread{background:var(--accent-soft);border-color:#cbd9e6}
.notif-time{font-size:10px;color:var(--muted);margin-top:4px}

/* ---- Brand icons (About + Profile contact links) ---- */
.contact-row-pro .btn{display:inline-flex;align-items:center;gap:8px}
.brand-ico{width:22px;height:22px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;flex:none}
.brand-ico svg{width:13px;height:13px}
.ico-email{background:#234a73}
.ico-instagram{background:linear-gradient(45deg,#f9a03f,#e1306c 50%,#833ab4)}
.ico-youtube{background:#ff0000}
.ico-linkedin{background:#0a66c2}

/* ---- Profile page: icon edit button, stacked with notif button ---- */
.profile-box-pro{position:relative}
.profile-top-pro{padding-right:54px}
.profile-actions{position:absolute;top:26px;right:26px;margin-left:0}
.profile-actions-col{display:flex;flex-direction:column;gap:8px;align-items:center}
.icon-btn{width:40px;height:40px;padding:0;display:flex;align-items:center;justify-content:center;border-radius:50%}
.connect-row .btn{display:inline-flex;align-items:center;gap:8px}
@media(max-width:560px){
  .profile-box-pro{padding:20px 16px}
  .profile-top-pro{padding-right:48px}
  .profile-actions{top:20px;right:16px}
}
/* =========================================================
   MOBILE MENU — SCROLLABLE DRAWER
   ========================================================= */

.drawer{
  position:fixed;
  z-index:90;
  left:0;
  top:0;
  bottom:0;

  width:min(330px,88vw);

  background:#fff;
  border-right:1px solid var(--line);

  transform:translateX(-105%);
  transition:transform .25s ease;

  box-shadow:20px 0 50px rgba(20,30,40,.1);

  /* Keep drawer inside the screen */
  height:100dvh;

  /* Allow menu contents to scroll */
  overflow-y:auto;
  overflow-x:hidden;

  /* Better mobile scrolling */
  -webkit-overflow-scrolling:touch;

  /* Prevent horizontal overflow */
  overscroll-behavior:contain;

  padding:22px;
}

/* Open state */
.drawer.show{
  transform:translateX(0);
}

/* Keep the drawer header visible while scrolling */
.drawer-head{
  position:sticky;
  top:-22px;
  z-index:5;

  display:flex;
  align-items:center;
  justify-content:space-between;

  padding:22px 0;
  margin-top:-22px;

  background:#fff;
  border-bottom:1px solid var(--line);
}

/* Navigation area */
.drawer-nav{
  padding-top:16px;
  padding-bottom:30px;

  display:grid;
  gap:4px;
}

/* Menu buttons */
.drawer-nav button{
  border:0;
  background:none;
  text-align:left;

  width:100%;

  padding:13px 12px;

  border-radius:9px;

  color:#596473;
  font-size:13px;

  min-height:44px;
}

/* Hover / active */
.drawer-nav button:hover,
.drawer-nav button.active{
  background:#f0f3f6;
  color:var(--accent);
  font-weight:700;
}

/* Section headings */
.drawer-section{
  font-size:9px;
  letter-spacing:1.5px;
  text-transform:uppercase;

  color:#9aa2ac;

  margin:22px 12px 7px;
}

/* Smaller phones */
@media(max-width:560px){

  .drawer{
    width:min(310px,88vw);
    padding:18px;

    /* Full mobile viewport */
    height:100dvh;

    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
  }

  .drawer-head{
    top:-18px;

    padding:18px 0;
    margin-top:-18px;
  }

  .drawer-nav{
    padding-top:14px;
    padding-bottom:35px;
    gap:3px;
  }

  .drawer-nav button{
    padding:13px 11px;
    min-height:45px;
    font-size:13px;
  }

  .drawer-section{
    margin:20px 11px 6px;
  }

}
.post-card{padding:16px}
.post-header{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.post-avatar{width:36px;height:36px;border-radius:50%;background:var(--accent-soft);color:var(--accent);display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;overflow:hidden;flex:none}
.post-avatar img{width:100%;height:100%;object-fit:cover}
.post-name-btn{font-size:13px;font-weight:700;color:var(--ink)}
.post-image{margin:0 -16px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.post-image img{width:100%;max-height:420px;object-fit:cover;display:block}
.post-caption{font-size:13px;color:var(--ink);line-height:1.6;margin-top:12px}
.follow-action{margin-left:auto}
@media(max-width:560px){.follow-action{margin-left:0;width:100%}.follow-action .btn{width:100%}}
.msg-row{display:flex;max-width:75%}
.msg-mine{align-self:flex-end;flex-direction:column;align-items:flex-end}
.msg-theirs{align-self:flex-start}
.msg-bubble{padding:9px 13px;border-radius:16px;font-size:13px;line-height:1.4;overflow-wrap:anywhere;white-space:pre-wrap}
.profile-actions-col{flex-direction:row;gap:6px}
.icon-btn,.notif-btn{width:36px;height:36px}
.follow-action{display:flex;gap:8px;margin-top:14px;margin-left:0}
.follow-action .btn{flex:1}
.profile-top-pro{padding-right:0}
.profile-actions{position:static;margin-top:12px;justify-content:flex-end;display:flex}
@media(max-width:560px){.profile-actions{justify-content:stretch}.profile-actions .btn{flex:1}}
.msg-mine .msg-bubble{background:var(--accent);color:#fff;border-bottom-right-radius:4px}
.msg-theirs .msg-bubble{background:var(--surface-soft);color:var(--ink);border-bottom-left-radius:4px}
.msg-seen{font-size:9px;color:var(--muted);margin-top:2px}
.inbox-item{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid var(--line);border-radius:10px;cursor:pointer}
.inbox-item:hover{background:var(--surface-soft)}
.profile-cover{height:150px;border-radius:18px 18px 0 0;background:linear-gradient(135deg,#1d4f91,#0ea5b7);background-size:cover;background-position:center;position:relative;margin-top:28px;display:flex;align-items:flex-end;padding:14px}
.cover-upload-btn{background:rgba(0,0,0,.45);color:#fff;border-color:transparent;cursor:pointer}
.profile-box-pro{margin-top:0;border-radius:0 0 18px 18px}
.profile-photo-pro{margin-top:-46px;border:4px solid #fff}
.profile-bio-line{font-size:13px;color:var(--ink);line-height:1.6;margin-top:8px;max-width:520px}
.profile-meta-row{font-size:12px;color:var(--muted);margin-top:10px}
.highlight-row{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:14px}
.highlight-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px;cursor:pointer;transition:.18s}
.highlight-card:hover{box-shadow:var(--shadow)}
.highlight-ico{font-size:20px;margin-bottom:6px}
.highlight-card h4{font-size:13px;font-weight:700;margin-bottom:4px}
.highlight-card p{font-size:11px;color:var(--muted);line-height:1.5}
.profile-tabs{display:flex;gap:4px;margin-top:20px;border-bottom:1px solid var(--line);overflow-x:auto}
.profile-tab{background:none;border:0;padding:12px 16px;font-size:13px;font-weight:600;color:var(--muted);border-bottom:2px solid transparent;white-space:nowrap}
.profile-tab.active{color:var(--accent);border-bottom-color:var(--accent)}
@media(max-width:700px){.highlight-row{grid-template-columns:1fr}}
#chatModal .modal-box{border-radius:20px}
#chatMessages{background:var(--bg)}
.msg-row{display:flex;max-width:78%;margin-bottom:2px}
.msg-mine{align-self:flex-end;margin-left:auto;flex-direction:column;align-items:flex-end}
.msg-theirs{align-self:flex-start;margin-right:auto;flex-direction:column;align-items:flex-start}
.msg-bubble{padding:10px 14px;border-radius:18px;font-size:13.5px;line-height:1.45;word-wrap:break-word;max-width:100%}
.msg-mine .msg-bubble{background:var(--accent);color:#fff;border-bottom-right-radius:4px}
.msg-theirs .msg-bubble{background:#fff;color:var(--ink);border:1px solid var(--line);border-bottom-left-radius:4px}
.msg-seen{font-size:9.5px;color:var(--muted);margin-top:3px;margin-right:2px}
.inbox-item{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--line);border-radius:12px;cursor:pointer;transition:.15s}
.inbox-item:hover{background:var(--surface-soft);border-color:#cbd5e0}
/* ---- Page transition ---- */
.page{opacity:0;transform:translateY(8px);transition:opacity .3s ease,transform .3s ease}
.page.active{opacity:1;transform:none}

/* ---- Universal button press feedback ---- */
.btn,.text-link,.icon-btn,.notif-btn{transition:transform .15s cubic-bezier(.34,1.56,.64,1),box-shadow .2s ease,background .2s ease}
.btn:active,.icon-btn:active{transform:scale(.93)}
.text-link:active{transform:scale(.9)}

/* ---- Like pulse ---- */
@keyframes likePop{0%{transform:scale(1)}40%{transform:scale(1.4)}100%{transform:scale(1)}}
.like-btn.liked-anim{animation:likePop .4s ease}

/* ---- Follow → Following morph ---- */
#followBtn{position:relative;overflow:hidden;transition:background .3s ease,color .3s ease,border-color .3s ease}
#followBtn.following-state{background:var(--surface-soft);color:var(--ink);border-color:var(--line)}
#followBtn .btn-label{display:inline-block}
#followBtn.anim-swap .btn-label{animation:followSwap .35s ease}
@keyframes followSwap{0%{transform:translateY(0);opacity:1}45%{transform:translateY(-8px);opacity:0}55%{transform:translateY(8px);opacity:0}100%{transform:translateY(0);opacity:1}}

/* ---- Send button: real paper-plane flight ---- */
#sendMessageBtn{position:relative;overflow:visible}
.plane-wrap{display:inline-flex;position:relative;z-index:2}
.plane-icon{width:15px;height:15px;transform:rotate(90deg);transition:transform .15s ease}
#sendMessageBtn.sending .plane-wrap{animation:planeFly .6s cubic-bezier(.45,0,.3,1) forwards}
#sendMessageBtn.sending .send-label{animation:labelFade .3s ease forwards}
@keyframes planeFly{
  0%{transform:translate(0,0) rotate(0deg);opacity:1}
  70%{transform:translate(46px,-30px) rotate(28deg);opacity:1}
  100%{transform:translate(70px,-46px) rotate(28deg);opacity:0}
}
@keyframes labelFade{to{opacity:0}}

/* ---- Notification bell shake (dedicated trigger class) ---- */
@keyframes bellRing{0%,100%{transform:rotate(0)}15%{transform:rotate(14deg)}30%{transform:rotate(-12deg)}45%{transform:rotate(9deg)}60%{transform:rotate(-7deg)}75%{transform:rotate(4deg)}}
.notif-btn.ring-now{animation:bellRing .6s ease}
.notif-badge{animation:badgePop .3s cubic-bezier(.34,1.56,.64,1)}
@keyframes badgePop{from{transform:scale(0)}to{transform:scale(1)}}

/* ---- Button-level inline loading spinner ---- */
.btn-spinner{display:inline-block;width:13px;height:13px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:spin .6s linear infinite;margin-right:6px;vertical-align:-2px}
.btn.icon-btn .btn-spinner{border-color:rgba(12,21,38,.25);border-top-color:var(--ink)}

/* ---- Modal entrance ---- */
.modal-box{animation:modalIn .25s cubic-bezier(.2,.8,.2,1)}
@keyframes modalIn{from{opacity:0;transform:translateY(24px) scale(.97)}to{opacity:1;transform:none}}

/* ---- Toast ---- */
.toast.show{animation:toastIn .3s cubic-bezier(.34,1.56,.64,1)}
@keyframes toastIn{from{transform:translate(-50%,20px);opacity:0}to{transform:translate(-50%,0);opacity:1}}

/* ---- Chat bubble entrance ---- */
.msg-row{animation:msgIn .22s ease}
@keyframes msgIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* ---- Content fade-in as cards render (scroll-noticeable loading) ---- */
.grid .card, .grid .post-card{animation:cardIn .35s ease backwards}
.grid > *:nth-child(1){animation-delay:.02s}
.grid > *:nth-child(2){animation-delay:.06s}
.grid > *:nth-child(3){animation-delay:.1s}
.grid > *:nth-child(4){animation-delay:.14s}
.grid > *:nth-child(5){animation-delay:.18s}
.grid > *:nth-child(6){animation-delay:.22s}
@keyframes cardIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
/* =========================================================
   FIXES + PWA (added)
   ========================================================= */

/* About page: the profile-photo rule (margin-top:-46px; white 4px border) was also
   hitting the founder photo on phones and pushing it out of the dark card */
.profile-photo-pro.founder-photo{margin-top:0;border:2px solid rgba(255,255,255,.18)}

/* Badges: message button + inbox rows */
.notif-badge{box-shadow:0 0 0 2px #fff}
.inbox-item{display:flex;align-items:center;gap:10px}
.inbox-item .notif-badge{position:static;margin-left:auto;box-shadow:none}
.inbox-item.has-unread{background:var(--accent-soft)}
.inbox-item.has-unread strong{font-weight:800}

/* Phones: keep content clear of notches / home bar when installed */
body{padding-bottom:env(safe-area-inset-bottom,0)}
@media(max-width:560px){.page-head h1{font-size:36px;letter-spacing:-1px;overflow-wrap:anywhere}}

/* Install banner */
.install-banner{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));max-width:460px;margin:0 auto;z-index:160;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 40px rgba(11,21,32,.22);padding:14px;display:grid;grid-template-columns:48px 1fr;gap:6px 12px;align-items:center;transform:translateY(140%);opacity:0;transition:transform .3s cubic-bezier(.2,.8,.2,1),opacity .3s ease}
.install-banner.show{transform:none;opacity:1}
.install-icon{width:48px;height:48px;border-radius:12px;grid-row:1/3}
.install-copy{display:grid;gap:2px;font-size:12px;color:var(--muted);line-height:1.4}
.install-copy b{font-size:14px;color:var(--ink)}
.install-actions{display:flex;gap:8px;justify-content:flex-end}
#installAppBtn{font-weight:700}


/* ---- Performance-friendly loading states and horizontal home rails ---- */
.horizontal-rail{display:flex;gap:14px;overflow-x:auto;overflow-y:hidden;padding:2px 2px 12px;scroll-snap-type:x proximity;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;contain:content}
.horizontal-rail>.card{flex:0 0 min(320px,84vw);width:min(320px,84vw);scroll-snap-align:start;animation:railCardIn .28s ease both}
.horizontal-rail>.card.post-card{flex-basis:min(320px,84vw)}
.rail-empty{flex:0 0 100%;padding:18px;border:1px dashed var(--line);border-radius:12px;color:var(--muted);font-size:12px;background:#fff}
.skeleton-card{min-height:180px;border:1px solid var(--line);border-radius:14px;background:#fff;padding:16px;display:flex;flex-direction:column;gap:10px;overflow:hidden}
.skeleton-line,.skeleton-block,.comment-skeleton span{position:relative;display:block;overflow:hidden;background:#eef1f4;border-radius:6px}
.skeleton-line{height:10px;width:72%}.skeleton-line.wide{width:92%;height:13px}.skeleton-line.short{width:42%}.skeleton-block{height:75px;width:100%;margin-top:5px}
.skeleton-line:after,.skeleton-block:after,.comment-skeleton span:after{content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,transparent,rgba(255,255,255,.8),transparent);animation:skeletonShimmer 1.25s ease-in-out infinite}
.comment-skeleton{display:grid;gap:8px}.comment-skeleton span{height:42px;border:1px solid var(--line);border-radius:8px}.comment-skeleton span:nth-child(2){width:88%}.comment-skeleton span:nth-child(3){width:75%}
.comment-actions{display:flex;gap:12px;margin-top:4px}.notification-item{width:100%;text-align:left;display:flex;flex-direction:column;align-items:flex-start;gap:5px;font-size:11px;line-height:1.45;cursor:pointer;color:var(--ink);font-family:inherit}.notification-item .notif-time{font-size:9px}.notification-item:hover{border-color:#cbd9e6}
.notification-target-highlight{outline:2px solid var(--accent);outline-offset:3px;transition:outline-color .3s ease}
.page{transition:opacity .18s ease,transform .18s ease}.page:not(.active){opacity:0;transform:translateY(4px);pointer-events:none}.page.active{animation:pageReveal .24s ease both}
@keyframes skeletonShimmer{100%{transform:translateX(100%)}}
@keyframes railCardIn{from{opacity:0;transform:translateX(8px)}to{opacity:1;transform:translateX(0)}}
@keyframes pageReveal{from{opacity:.7;transform:translateY(5px)}to{opacity:1;transform:none}}
@media(max-width:560px){.horizontal-rail{gap:10px;margin-right:-2px;padding-bottom:10px}.horizontal-rail>.card{flex-basis:86vw;width:86vw}.skeleton-card{min-height:155px}.notification-item{font-size:10.5px}}
@media(prefers-reduced-motion:reduce){.horizontal-rail>.card,.page.active,.skeleton-line:after,.skeleton-block:after,.comment-skeleton span:after{animation:none!important}.page{transition:none!important}}

/* Elements reveal gently as they enter the viewport in either scroll direction. */
.ef-scroll-reveal{opacity:.86;transform:translateY(10px);transition:opacity .65s cubic-bezier(.22,.61,.36,1),transform .65s cubic-bezier(.22,.61,.36,1);will-change:opacity,transform}
.ef-scroll-reveal.ef-scroll-visible{opacity:1;transform:translateY(0)}
@media(prefers-reduced-motion:reduce){.ef-scroll-reveal{opacity:1;transform:none;transition:none;will-change:auto}}


/* =========================================================
   ELITEFOUNDERS — MOBILE LIQUID-GLASS TAB BAR
   Scoped styles only; leaves existing desktop navigation intact.
   ========================================================= */
.ef-liquid-tabbar{display:none}
@media (max-width:760px){
  body{padding-bottom:calc(98px + env(safe-area-inset-bottom, 0px))}
  .install-banner.show{bottom:calc(84px + env(safe-area-inset-bottom, 0px))}
  .ef-liquid-tabbar{
    position:fixed;z-index:180;left:50%;
    bottom:calc(9px + env(safe-area-inset-bottom, 0px));
    transform:translateX(-50%);
    width:min(480px,calc(100% - 22px));
    min-height:66px;box-sizing:border-box;
    display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;
    padding:6px 7px;
    border:1px solid rgba(255,255,255,.7);
    border-radius:23px;
    background:rgba(250,252,255,.76);
    -webkit-backdrop-filter:blur(24px) saturate(1.65);
    backdrop-filter:blur(24px) saturate(1.65);
    box-shadow:0 9px 32px rgba(22,38,56,.16),inset 0 1px 0 rgba(255,255,255,.9);
    isolation:isolate;
  }
  .ef-liquid-tabbar:before{
    content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:-1;
    background:linear-gradient(145deg,rgba(255,255,255,.48),rgba(255,255,255,.08) 48%,rgba(225,236,248,.2));
  }
  .ef-tab{
    appearance:none;-webkit-appearance:none;position:relative;min-width:0;min-height:52px;
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
    padding:5px 1px;border:0;border-radius:17px;background:transparent;
    color:#647184;font:inherit;cursor:pointer;touch-action:manipulation;
    -webkit-tap-highlight-color:transparent;transition:color .18s ease,background .18s ease,transform .18s ease;
  }
  .ef-tab-icon{width:23px;height:23px;display:grid;place-items:center;position:relative}
  .ef-tab-icon svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
  .ef-tab-label{display:block;font-size:10px;line-height:1.1;font-weight:650;letter-spacing:-.08px;white-space:nowrap}
  .ef-tab.active{color:var(--accent,#244b72);background:rgba(255,255,255,.72);box-shadow:inset 0 0 0 1px rgba(255,255,255,.95),0 2px 8px rgba(31,51,73,.07)}
  .ef-tab.active .ef-tab-icon svg{stroke-width:2.15}
  .ef-tab-create .ef-tab-icon{width:27px;height:27px;border-radius:10px;background:var(--accent,#244b72);color:#fff;box-shadow:0 3px 8px rgba(29,65,101,.22)}
  .ef-tab-create .ef-tab-icon svg{width:19px;height:19px;stroke-width:2}
  .ef-tab-create .ef-tab-label{color:#34465a}
  .ef-tab:active{transform:scale(.94)}
  .ef-tab:focus-visible{outline:2px solid var(--accent,#244b72);outline-offset:2px}
}
@media (max-width:360px){
  .ef-liquid-tabbar{width:calc(100% - 14px);padding:5px 4px;min-height:62px;border-radius:20px}
  .ef-tab{min-height:49px;border-radius:14px}
  .ef-tab-icon,.ef-tab-icon svg{width:21px;height:21px}
  .ef-tab-label{font-size:9px}
  .ef-tab-create .ef-tab-icon{width:25px;height:25px}
}
@media (prefers-reduced-motion:reduce){
  .ef-tab{transition:none}
}


/* =========================================================
   ELITEFOUNDERS — COMMENTS VISIBILITY, REPLY, READ MORE, SCROLL LOADER
   Additive rules only; nothing above is modified.
   ========================================================= */

/* Comments: bounded, scrollable list so the input row always stays on screen */
.comment-list{display:grid;gap:8px;max-height:min(42vh,360px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-right:2px}
.comment-item{overflow-wrap:anywhere}
.comment-item.is-reply{margin-left:14px;border-left:3px solid var(--accent,#244b72)}
.comment-mention{color:var(--accent,#244b72);font-weight:700}
.comment-reply-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:var(--muted);padding:2px 2px 0}
.comment-reply-bar[hidden]{display:none}
.comment-reply-bar b{color:var(--ink)}
.comment-reply-bar .text-link{font-size:13px;padding:2px 6px}

/* Read more on long text (posts, ideas, startups, tools, launches) */
.ef-clamp{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;overflow-wrap:anywhere}
.ef-clamp.ef-expanded{display:block;-webkit-line-clamp:unset;line-clamp:unset;overflow:visible;animation:efTextExpand .3s ease}
.ef-read-more{display:inline-block;margin-top:6px;padding:2px 0;font-size:12px}
@keyframes efTextExpand{from{opacity:.55}to{opacity:1}}

/* Profile tab: gentle pulse while the profile loads (icon and label stay visible) */
.ef-tab-loading .ef-tab-icon{animation:efTabPulse .9s ease-in-out infinite}
@keyframes efTabPulse{50%{opacity:.45;transform:scale(.92)}}

/* Smooth scroll loader: fills while scrolling down, drains while scrolling up */
.ef-scroll-loader{position:fixed;top:0;left:0;right:0;height:3px;z-index:300;pointer-events:none;opacity:0;transition:opacity .45s ease}
.ef-scroll-loader.is-active{opacity:1}
.ef-scroll-loader span{display:block;width:100%;height:100%;transform-origin:left center;transform:scaleX(0);transition:transform .3s cubic-bezier(.22,.61,.36,1);background:linear-gradient(90deg,var(--accent,#244b72),#6c9bcf,var(--accent,#244b72));background-size:200% 100%;border-radius:0 3px 3px 0;box-shadow:0 0 8px rgba(36,75,114,.35);animation:efLoaderFlow 1.2s linear infinite}
.ef-scroll-loader[data-dir="up"] span{animation-direction:reverse}
@keyframes efLoaderFlow{to{background-position:-200% 0}}
@media(prefers-reduced-motion:reduce){
  .ef-clamp.ef-expanded,.ef-tab-loading .ef-tab-icon,.ef-scroll-loader span{animation:none}
  .ef-scroll-loader span{transition:none}
}

/* =========================================================
   ELITEFOUNDERS — PROFESSIONAL MESSAGING & NOTIFICATION POLISH
   Scoped additions; preserves existing app components and data flows.
   ========================================================= */
.ef-modal-subtitle{font-size:12px;color:var(--muted);margin-top:5px;line-height:1.45}
.ef-inbox-box,.ef-notifications-box{width:min(560px,100%);padding:22px;max-height:min(78dvh,760px);display:flex;flex-direction:column;overflow:hidden}
.ef-inbox-list,.ef-notifications-list{display:grid;gap:9px;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;min-height:0;padding:2px 2px 4px}
.ef-inbox-box .modal-head,.ef-notifications-box .modal-head{flex:none;margin-bottom:14px;align-items:center}
.inbox-item{width:100%;text-align:left;background:#fff;min-width:0;appearance:none;font:inherit;color:var(--ink);border-radius:14px;padding:12px;gap:12px}
.inbox-item.has-unread{background:#f2f6fb;border-color:#d5e1ed}
.inbox-avatar,.notification-avatar{width:46px;height:46px;border-radius:50%;background:#eaf0f6;color:var(--accent);display:grid;place-items:center;overflow:hidden;flex:none;font-weight:750;font-size:14px}
.inbox-avatar img,.notification-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.inbox-copy{display:grid;gap:5px;min-width:0;flex:1}
.inbox-copy strong{font-size:13px;line-height:1.3;font-weight:700}
.inbox-preview{display:block;color:var(--muted);font-size:12px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.inbox-trailing{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:7px;flex:none}
.inbox-trailing time,.notification-item .notif-time{font-size:10px;color:var(--muted);white-space:nowrap}
.inbox-item .notif-badge{position:static;min-width:19px;height:19px;font-size:10px;padding:0 5px}
.notification-item{width:100%;display:flex;align-items:flex-start;gap:11px;padding:13px;background:#fff;border:1px solid var(--line);border-radius:14px;text-align:left;color:var(--ink);font:inherit;line-height:1.5;position:relative;min-width:0}
.notification-item.unread{background:#f4f7fb;border-color:#dce6f0}
.notification-avatar{width:40px;height:40px;font-size:12px}
.notification-copy{display:grid;gap:5px;min-width:0;flex:1;font-size:12px;overflow-wrap:anywhere}
.notification-copy strong{font-weight:750}
.notification-preview{display:block;color:var(--muted);font-size:11px;line-height:1.45}
.notification-unread-dot{width:7px;height:7px;border-radius:50%;background:#2e6ca4;flex:none;margin-top:7px}
.ef-list-loading,.ef-list-empty{padding:30px 18px;text-align:center;color:var(--muted);font-size:12px;line-height:1.6}
.ef-list-empty{display:grid;gap:6px;justify-items:center;border:1px dashed var(--line);border-radius:14px;background:#fafbfd}
.ef-list-empty strong{font-size:14px;color:var(--ink)}
.ef-chat-modal{align-items:center;padding:12px;overscroll-behavior:contain}
.ef-chat-box{width:min(560px,100%);height:min(720px,calc(100dvh - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)));max-height:none;min-height:280px;display:flex;flex-direction:column;overflow:hidden;padding:0;border-radius:22px;overscroll-behavior:contain}
.ef-chat-head{flex:none;align-items:center;padding:15px 17px;border-bottom:1px solid var(--line);margin:0;gap:12px;background:rgba(255,255,255,.96)}
.ef-chat-head .modal-head b{font-family:inherit;font-size:14px;font-weight:750}
.ef-chat-head .close{flex:none}
#chatMessages{flex:1;min-height:0;overflow-y:auto;padding:17px 15px;display:flex;flex-direction:column;gap:9px;background:#f7f9fc;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.msg-row{max-width:min(82%,440px)}
.msg-bubble{overflow-wrap:anywhere;white-space:pre-wrap}
.msg-meta{display:flex;align-items:center;gap:6px;margin:3px 3px 0;color:var(--muted);font-size:9px}
.msg-mine .msg-meta{justify-content:flex-end}
.msg-theirs .msg-meta{justify-content:flex-start}
.msg-seen{font-size:9px;color:var(--muted);margin:0}
.chat-empty{margin:auto;max-width:240px;text-align:center;display:grid;justify-items:center;gap:7px;color:var(--muted);font-size:12px;line-height:1.5;padding:24px}
.chat-empty>span{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:#eaf0f6;font-size:21px}
.chat-empty strong{font-size:14px;color:var(--ink)}
.ef-chat-composer{display:flex;align-items:center;gap:9px;padding:12px;border-top:1px solid var(--line);background:#fff;flex:none;padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}
#chatInput{flex:1;min-width:0;min-height:44px;border:1px solid #dce2e9;border-radius:14px;padding:11px 13px;outline:none;background:#f8fafc;color:var(--ink);font:inherit;font-size:13px;box-sizing:border-box}
#chatInput:focus{border-color:#91a9c1;box-shadow:0 0 0 3px rgba(49,91,132,.09)}
#sendMessageBtn{min-height:44px;min-width:70px;border-radius:13px;display:inline-flex;align-items:center;justify-content:center;gap:7px}
#sendMessageBtn:disabled{opacity:.65;cursor:wait}
/* Profile: keep the edit control pinned at the top-right; profile details stack beneath the photo. */
.profile-box-pro{position:relative}
.profile-box-pro>.profile-top-pro{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding-right:0}
.profile-box-pro>.profile-top-pro>.profile-photo-pro{margin-top:-46px}
.profile-box-pro>.profile-top-pro>.profile-id{width:100%;min-width:0;flex:none}
.profile-box-pro>.profile-top-pro>.profile-actions{position:absolute;top:20px;right:20px;margin:0;z-index:2;display:flex;justify-content:flex-end}
.profile-box-pro>.profile-top-pro>.profile-actions .edit-profile-btn{min-height:38px;padding:8px 12px;background:rgba(255,255,255,.96);border:1px solid #dce2e9;border-radius:11px;font-size:12px;box-shadow:0 3px 12px rgba(24,39,56,.07);white-space:nowrap}
@media(max-width:760px){
  .ef-chat-modal{padding:0;align-items:stretch}
  .ef-chat-box{width:100%;height:var(--ef-available-height,100dvh);max-height:none;min-height:0;border-radius:0;border:0;padding-bottom:env(safe-area-inset-bottom,0px)}
  .ef-chat-head{padding-top:calc(12px + env(safe-area-inset-top,0px));}
  .ef-chat-composer{padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}
  .ef-inbox-box,.ef-notifications-box{width:100%;max-height:calc(82dvh - env(safe-area-inset-top,0px));padding:19px 16px;border-radius:20px 20px 0 0}
  .profile-box-pro>.profile-top-pro>.profile-actions{top:16px;right:14px}
  .profile-box-pro>.profile-top-pro>.profile-actions .edit-profile-btn{padding:8px 10px;font-size:11px}
  .profile-box-pro>.profile-top-pro>.profile-id h2{font-size:24px;max-width:100%;padding-right:0;overflow-wrap:anywhere}
}
@media(max-width:380px){
  .ef-chat-head{padding-left:12px;padding-right:12px}
  .ef-chat-composer{gap:7px;padding-left:9px;padding-right:9px}
  #sendMessageBtn{min-width:56px;padding:8px}
  .ef-inbox-box,.ef-notifications-box{padding-left:12px;padding-right:12px}
  .profile-box-pro>.profile-top-pro>.profile-actions .edit-profile-btn{font-size:10px;padding:7px 8px}
}
@media(prefers-reduced-motion:reduce){.inbox-item,.notification-item{transition:none}}

/* ---- EliteFounders extras (additive) ---- */
#efGrow{margin-top:14px}
#efGrow .rule{height:1px;background:var(--line)}
#efMatchSection .rail-empty,#efBoardSection .rail-empty{min-width:260px}
#efBoardSectionBody>.card{min-width:min(320px,86vw)}
#efLoadMore:disabled{opacity:.6}
.ef-vb{width:14px;height:14px;font-size:9px;margin-left:4px;vertical-align:middle;flex:none}
#efVerify{margin-top:14px}
#efVerOnly{margin-left:8px;white-space:nowrap}

/* ---- Share profile button, Trust tag, blue-tick card ---- */
.ico-share{background:var(--green)}
.ef-trust{display:flex;width:fit-content;align-items:center;gap:5px;margin-top:6px;padding:3px 10px 3px 7px;border-radius:999px;background:#eaf6ef;border:1px solid #cfe6d9;color:var(--green);font-size:10.5px;font-weight:700;line-height:1.4}
.ef-trust svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.people-card .ef-trust{margin-top:4px}

/* ---- Create sheet (round bottom sheet opened by the + tab) ---- */
.ef-sheet-backdrop{position:fixed;inset:0;z-index:229;background:rgba(20,28,36,.38);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);opacity:0;visibility:hidden;transition:opacity .25s ease,visibility .25s}
.ef-sheet-backdrop.show{opacity:1;visibility:visible}
.ef-create-sheet{position:fixed;z-index:230;left:50%;bottom:calc(10px + env(safe-area-inset-bottom,0px));width:min(520px,calc(100% - 20px));box-sizing:border-box;background:#fff;border-radius:28px;border:1px solid var(--line);box-shadow:0 18px 60px rgba(20,30,40,.22);padding:12px 20px 18px;transform:translate(-50%,calc(100% + 24px));visibility:hidden;transition:transform .32s cubic-bezier(.2,.8,.2,1),visibility .32s}
.ef-create-sheet.show{transform:translate(-50%,0);visibility:visible}
.ef-sheet-grabber{width:42px;height:5px;border-radius:5px;background:#d5dbe2;margin:2px auto 14px}
.ef-sheet-head{text-align:center;margin-bottom:18px}
.ef-sheet-head b{display:block;font-family:Georgia,serif;font-size:21px;font-weight:500}
.ef-sheet-head span{display:block;font-size:12px;color:var(--muted);margin-top:3px}
.ef-sheet-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px 8px}
.ef-sheet-opt{border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:8px;padding:4px 0;color:var(--ink);font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.ef-sheet-ico{width:62px;height:62px;border-radius:19px;background:linear-gradient(145deg,#f3f7fb,#e7eef6);border:1px solid #d6e0ea;display:grid;place-items:center;color:var(--accent,#244b72);transition:transform .15s ease,background .15s ease}
.ef-sheet-ico svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ef-sheet-opt:active .ef-sheet-ico{transform:scale(.92);background:#dbe6f1}
.ef-sheet-opt:focus-visible .ef-sheet-ico{outline:2px solid var(--accent);outline-offset:2px}
.ef-sheet-label{font-size:12px;font-weight:650;text-align:center;line-height:1.2}
.ef-sheet-cancel{display:block;width:100%;margin-top:18px;border:0;border-radius:16px;background:var(--surface-soft);color:var(--ink);padding:14px;font-size:14px;font-weight:650;cursor:pointer}
@media(prefers-reduced-motion:reduce){.ef-create-sheet,.ef-sheet-backdrop,.ef-sheet-ico{transition:none}}


/* ---- Home launch rail + unfinished-area announcement ---- */
.home-launch-section{position:relative}
.home-launch-section .section-head{align-items:center}
.ef-under-construction{display:flex;align-items:flex-start;gap:12px;margin:18px 0 22px;padding:15px 16px;border:1px solid #e5d7b7;border-radius:18px;background:linear-gradient(135deg,#fffaf0,#fffdf8);color:#594b31}
.ef-construction-mark{width:38px;height:38px;flex:none;display:grid;place-items:center;border-radius:12px;background:#f5e8ca;color:#85652b}
.ef-construction-mark svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ef-under-construction strong{display:block;font-size:13px;font-weight:750;line-height:1.4}
.ef-under-construction small{display:block;margin-top:4px;color:#78694d;font-size:12px;line-height:1.5}
@media(max-width:560px){
  .ef-create-sheet{bottom:calc(10px + env(safe-area-inset-bottom,0px));padding:11px 15px 15px;border-radius:25px}
  .ef-sheet-ico{width:56px;height:56px;border-radius:17px}
  .ef-sheet-grid{gap:14px 6px}
  .ef-under-construction{padding:13px;border-radius:15px}
}

/* ===== Chat photos, links and full-screen viewer ===== */
.ef-chat-attach{flex:none;width:44px;height:44px;border-radius:13px;border:1px solid #dce2e9;background:#f8fafc;color:var(--ink);display:inline-grid;place-items:center;cursor:pointer;padding:0}
.ef-chat-attach svg{width:21px;height:21px}
.ef-chat-attach:disabled{opacity:.55;cursor:wait}
.msg-bubble .msg-text{white-space:pre-wrap;overflow-wrap:anywhere}
.msg-bubble.has-photo{padding:5px}
.msg-bubble.has-photo .msg-text{padding:6px 9px 4px}
.msg-photo{display:block;position:relative;width:min(240px,62vw);min-height:150px;padding:0;border:0;border-radius:13px;overflow:hidden;background:rgba(127,140,155,.18);cursor:zoom-in;-webkit-tap-highlight-color:transparent}
.msg-photo img{display:block;width:100%;height:auto;max-height:340px;object-fit:cover}
.msg-photo img:not([src]){display:none}
.msg-photo.loaded{min-height:0;background:none}
.msg-photo.failed::after{content:"Photo unavailable";position:absolute;inset:0;display:grid;place-items:center;font-size:12px;color:var(--muted)}
.msg-link{color:inherit;text-decoration:underline;text-underline-offset:2px;word-break:break-all}
.msg-theirs .msg-link{color:var(--accent)}
.ef-photo-viewer{position:fixed;inset:0;z-index:400;background:#05080c;display:none;flex-direction:column}
.ef-photo-viewer.show{display:flex}
.ef-pv-bar{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:calc(10px + env(safe-area-inset-top,0px)) 12px 10px;background:linear-gradient(#05080c,rgba(5,8,12,0))}
.ef-pv-btn{min-height:44px;padding:0 16px;border-radius:12px;border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.1);color:#fff;font:inherit;font-size:14px;cursor:pointer}
.ef-pv-stage{flex:1;min-height:0;overflow:auto;display:flex;align-items:center;justify-content:center;-webkit-overflow-scrolling:touch}
.ef-pv-stage img{max-width:100%;max-height:100%;object-fit:contain;cursor:zoom-in;user-select:none;-webkit-user-drag:none}
.ef-photo-viewer.zoomed .ef-pv-stage{display:block}
.ef-photo-viewer.zoomed .ef-pv-stage img{max-width:none;max-height:none;width:220%;cursor:zoom-out}
.ef-pv-hint{padding:8px 12px calc(10px + env(safe-area-inset-bottom,0px));text-align:center;color:rgba(255,255,255,.55);font-size:11px}
.ef-photo-viewer.zoomed .ef-pv-hint{display:none}
html.ef-pv-open{overflow:hidden}

/* ===== Chat: long-press menu, reply quote, edit banner, deleted ===== */
#chatMessages .msg-bubble{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
.msg-bubble.msg-selected{outline:2px solid var(--accent);outline-offset:2px}
.msg-bubble .msg-deleted{font-style:italic;opacity:.75}
.msg-bubble .msg-edited{font-size:10px;opacity:.7;margin-left:4px}
.msg-quote{display:block;margin:0 0 6px;padding:6px 9px;border-left:3px solid currentColor;border-radius:8px;background:rgba(0,0,0,.06);font-size:12px;line-height:1.35;cursor:pointer;max-width:100%}
.msg-mine .msg-quote{background:rgba(255,255,255,.2)}
.msg-quote b{display:block;font-size:11px;opacity:.85}
.msg-quote span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;opacity:.9;white-space:normal}
.msg-row.msg-flash .msg-bubble{animation:efFlash 1.3s ease}
@keyframes efFlash{0%,60%{box-shadow:0 0 0 3px rgba(46,134,222,.55)}100%{box-shadow:0 0 0 0 rgba(46,134,222,0)}}
.ef-chat-banner{display:flex;align-items:center;gap:10px;padding:8px 12px;border-top:1px solid var(--line);background:#f1f5fa;flex:none}
.ef-chat-banner[hidden]{display:none}
.ef-chat-banner-text{flex:1;min-width:0;border-left:3px solid var(--accent);padding-left:9px}
.ef-chat-banner-text b{display:block;font-size:12px;color:var(--accent)}
.ef-chat-banner-text span{display:block;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ef-chat-banner-x{flex:none;width:36px;height:36px;border:0;border-radius:10px;background:transparent;color:var(--muted);font-size:16px;cursor:pointer}
.ef-msg-menu{position:fixed;inset:0;z-index:410;background:rgba(10,16,24,.45);display:none;align-items:flex-end;justify-content:center}
.ef-msg-menu.show{display:flex}
.ef-msg-sheet{width:min(520px,100%);background:#fff;border-radius:20px 20px 0 0;padding:14px 14px calc(14px + env(safe-area-inset-bottom,0px));box-shadow:0 -8px 30px rgba(0,0,0,.18)}
.ef-msg-preview{margin:0 2px 10px;padding:9px 12px;border-radius:12px;background:var(--surface-soft,#f1f5fa);color:var(--muted);font-size:13px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ef-msg-actions{display:grid;gap:8px}
.ef-msg-btn{min-height:48px;border-radius:14px;border:1px solid var(--line);background:#fff;color:var(--ink);font:inherit;font-size:15px;font-weight:600;cursor:pointer}
.ef-msg-btn.danger{color:#b3413c;border-color:rgba(179,65,60,.35)}
.ef-msg-btn.muted{color:var(--muted);font-weight:500}

/* ===== Post preview screen ===== */
.post-card .post-image img,.post-card .post-caption{cursor:pointer}
.ef-post-preview{position:fixed;inset:0;z-index:300;background:var(--bg,#f7f9fc);display:none;flex-direction:column}
.ef-post-preview.show{display:flex}
.ef-pp-bar{display:flex;align-items:center;gap:12px;padding:calc(10px + env(safe-area-inset-top,0px)) 12px 10px;background:#fff;border-bottom:1px solid var(--line)}
.ef-pp-back{min-height:44px;padding:0 14px;border-radius:12px;border:1px solid var(--line);background:#fff;color:var(--ink);font:inherit;font-size:14px;cursor:pointer}
.ef-pp-title{font-weight:700;font-size:15px}
.ef-pp-scroll{flex:1;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch;padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}
.ef-pp-head{display:flex;align-items:center;gap:10px;padding:14px 16px;background:#fff}
.ef-pp-who{display:flex;flex-direction:column;min-width:0}
.ef-pp-who b{font-size:14px}
.ef-pp-who span{font-size:11px;color:var(--muted)}
.ef-pp-media{background:#0b0f14}
.ef-pp-media[hidden]{display:none}
.ef-pp-media img{display:block;width:100%;max-height:68vh;object-fit:contain}
.ef-pp-body{padding:14px 16px;background:#fff}
.ef-pp-caption{font-size:14px;line-height:1.6;color:var(--ink);white-space:pre-wrap;overflow-wrap:anywhere}
.ef-pp-caption[hidden]{display:none}
.ef-pp-caption.clamped{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ef-pp-more{margin-top:6px;padding:8px 0;border:0;background:none;color:var(--accent);font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.ef-pp-more[hidden]{display:none}
html.ef-pp-open{overflow:hidden}
