/* ═══════════════════════════════════════════════
   GOLD LABEL CLUB — SHARED DESIGN SYSTEM
   Public + Portal unified stylesheet
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Cinzel:wght@400;600;700&display=swap');

/* ── VARIABLES ───────────────────────────────── */
:root {
  --bg:       #070605;
  --s1:       #0c0b08;
  --s2:       #111009;
  --s3:       #181610;
  --s4:       #201e16;
  --border:   #272318;
  --border2:  #332e20;
  --gold:     #c9a84c;
  --gold-d:   #7a6330;
  --gold-pale:#e8d5a3;
  --gold-glow:rgba(201,168,76,0.08);
  --gold-line:rgba(201,168,76,0.2);
  --cream:    #f0ead8;
  --ivory:    #d4cab8;
  --muted:    #8a7d65;
  --dim:      #4a4438;
  --green:    #2d6a4f;
  --red:      #7a2828;
  --sidebar-w:240px;
  --pub-nav-h:68px;
  --radius:   5px;
  --shadow:   0 2px 16px rgba(0,0,0,0.5);
  --shadow-lg:0 8px 40px rgba(0,0,0,0.7);
  --fh:'Cinzel',serif;
  --fb:'Cormorant Garamond',serif;
}

/* ── RESET ───────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{height:100%;scroll-behavior:smooth;}
body{min-height:100%;background:var(--bg);color:var(--cream);font-family:var(--fb);font-size:17px;line-height:1.7;overflow-x:hidden;}
a{color:var(--gold);text-decoration:none;transition:color .2s;}
a:hover{color:var(--gold-pale);}
img{max-width:100%;display:block;}
button{cursor:pointer;font-family:inherit;}
ul{list-style:none;}

/* ── TYPOGRAPHY ──────────────────────────────── */
h1,h2,h3,h4,h5{font-family:var(--fh);font-weight:400;line-height:1.2;color:var(--cream);}
h1{font-size:clamp(1.8rem,3.5vw,2.8rem);letter-spacing:.08em;}
h2{font-size:clamp(1.3rem,2.2vw,2rem);letter-spacing:.06em;}
h3{font-size:1.15rem;letter-spacing:.05em;}
p{color:var(--ivory);line-height:1.85;}
.eyebrow{font-family:var(--fh);font-size:.6rem;letter-spacing:.45em;text-transform:uppercase;color:var(--gold);}
.muted{color:var(--muted);font-style:italic;}

/* ════════════════════════════════════════════════
   PUBLIC NAV
   ════════════════════════════════════════════════ */
.pub-nav{
  position:fixed;top:0;left:0;right:0;z-index:200;
  height:var(--pub-nav-h);
  background:rgba(7,6,5,.97);
  border-bottom:1px solid var(--border);
  backdrop-filter:blur(10px);
  display:flex;align-items:center;
  padding:0 2.5rem;
  gap:2rem;
}
.pub-nav-brand{display:flex;align-items:center;gap:.7rem;flex-shrink:0;}
.pub-nav-logo{width:38px;height:38px;object-fit:contain;}
.pub-nav-name{font-family:var(--fh);font-size:.55rem;letter-spacing:.38em;text-transform:uppercase;color:var(--gold);}
.pub-nav-links{display:flex;align-items:center;gap:.2rem;margin:0 auto;}
.pub-nav-link{font-family:var(--fh);font-size:.58rem;letter-spacing:.2em;text-transform:uppercase;color:var(--muted);padding:.5rem .9rem;border-radius:var(--radius);transition:all .2s;}
.pub-nav-link:hover{color:var(--ivory);}
.pub-nav-link.active{color:var(--gold);}
.pub-nav-actions{display:flex;align-items:center;gap:.6rem;flex-shrink:0;}
.pub-nav-login{font-family:var(--fh);font-size:.55rem;letter-spacing:.2em;text-transform:uppercase;color:var(--muted);padding:.5rem .9rem;border:1px solid var(--border);border-radius:var(--radius);transition:all .2s;}
.pub-nav-login:hover{border-color:var(--gold-d);color:var(--gold);}
.pub-nav-apply{font-family:var(--fh);font-size:.55rem;letter-spacing:.2em;text-transform:uppercase;color:var(--bg);background:var(--gold);padding:.55rem 1.2rem;border-radius:var(--radius);transition:background .2s;}
.pub-nav-apply:hover{background:var(--gold-pale);color:var(--bg);}
.pub-page{padding-top:var(--pub-nav-h);}

/* Mobile public nav */
.pub-hamburger{display:none;background:none;border:none;color:var(--gold);font-size:1.2rem;}
.pub-mobile-menu{display:none;position:fixed;top:var(--pub-nav-h);left:0;right:0;background:rgba(7,6,5,.99);border-bottom:1px solid var(--border);padding:1rem;z-index:199;flex-direction:column;gap:.3rem;}
.pub-mobile-menu.open{display:flex;}
.pub-mobile-link{font-family:var(--fh);font-size:.62rem;letter-spacing:.2em;text-transform:uppercase;color:var(--muted);padding:.8rem 1rem;border-radius:var(--radius);}
.pub-mobile-link:hover,.pub-mobile-link.active{color:var(--gold);background:var(--gold-glow);}

/* ════════════════════════════════════════════════
   PORTAL SIDEBAR NAV
   ════════════════════════════════════════════════ */
.app-layout{display:flex;min-height:100vh;}
.sidebar{width:var(--sidebar-w);background:var(--s1);border-right:1px solid var(--border);position:fixed;top:0;left:0;bottom:0;z-index:100;display:flex;flex-direction:column;overflow-y:auto;scrollbar-width:none;transition:transform .3s;}
.sidebar::-webkit-scrollbar{display:none;}
.sb-brand{padding:1.5rem 1.4rem 1.2rem;border-bottom:1px solid var(--border);display:flex;flex-direction:column;align-items:center;gap:.4rem;}
.sb-logo{width:54px;height:54px;object-fit:contain;}
.sb-name{font-family:var(--fh);font-size:.55rem;letter-spacing:.35em;text-transform:uppercase;color:var(--gold);text-align:center;}
.sb-section{padding:1rem 1rem .3rem;}
.sb-section-label{font-family:var(--fh);font-size:.48rem;letter-spacing:.4em;text-transform:uppercase;color:var(--dim);padding:0 .5rem;margin-bottom:.3rem;}
.nav-link{display:flex;align-items:center;gap:.7rem;padding:.7rem .9rem;border-left:2px solid transparent;border-radius:0 var(--radius) var(--radius) 0;font-family:var(--fh);font-size:.6rem;letter-spacing:.18em;text-transform:uppercase;color:var(--muted);transition:all .18s;margin-bottom:1px;}
.nav-link:hover{color:var(--ivory);background:var(--gold-glow);}
.nav-link.active{color:var(--gold);border-left-color:var(--gold);background:var(--gold-glow);}
.nav-link i{width:16px;text-align:center;font-size:.75rem;}
.nav-badge{margin-left:auto;background:var(--gold);color:var(--bg);font-size:.5rem;font-family:var(--fh);padding:.1rem .45rem;border-radius:20px;}
.sb-user{margin-top:auto;padding:1.2rem;border-top:1px solid var(--border);display:flex;align-items:center;gap:.75rem;}
.sb-av{width:34px;height:34px;border-radius:50%;border:1px solid var(--gold-d);object-fit:cover;flex-shrink:0;}
.sb-user-name{font-family:var(--fh);font-size:.55rem;letter-spacing:.15em;text-transform:uppercase;color:var(--ivory);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.sb-user-role{font-size:.75rem;color:var(--dim);font-style:italic;}
.main-content{margin-left:var(--sidebar-w);flex:1;min-height:100vh;display:flex;flex-direction:column;}
.topbar{position:sticky;top:0;z-index:50;background:rgba(11,10,8,.97);backdrop-filter:blur(8px);border-bottom:1px solid var(--border);padding:0 2rem;height:54px;display:flex;align-items:center;justify-content:space-between;gap:1rem;}
.topbar-title{font-family:var(--fh);font-size:.7rem;letter-spacing:.3em;text-transform:uppercase;color:var(--gold);}
.topbar-right{display:flex;align-items:center;gap:1rem;}
.topbar-search{display:flex;align-items:center;gap:.5rem;background:var(--s2);border:1px solid var(--border);border-radius:var(--radius);padding:.4rem .8rem;}
.topbar-search input{background:none;border:none;color:var(--cream);font-size:.85rem;outline:none;width:160px;}
.topbar-search input::placeholder{color:var(--dim);}
.topbar-search i{color:var(--dim);font-size:.8rem;}
.topbar-btn{background:none;border:none;color:var(--muted);font-size:1rem;transition:color .2s;position:relative;}
.topbar-btn:hover{color:var(--gold);}
.topbar-btn .dot{position:absolute;top:-2px;right:-2px;width:7px;height:7px;border-radius:50%;background:var(--gold);}
.page-body{padding:2rem;flex:1;}
.hamburger{display:none;background:none;border:none;color:var(--gold);font-size:1.2rem;padding:.3rem;}

/* ════════════════════════════════════════════════
   COMPONENTS
   ════════════════════════════════════════════════ */

/* Cards */
.card{background:var(--s2);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;transition:border-color .25s,box-shadow .25s;}
.card-gold:hover{border-color:var(--gold-d);box-shadow:0 0 0 1px var(--gold-line);}
.card-body{padding:1.4rem;}
.card-header{padding:1.1rem 1.4rem;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;}
.card-footer{padding:1rem 1.4rem;border-top:1px solid var(--border);}

/* Section headers */
.section-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:1.2rem;padding-bottom:.8rem;border-top:1px solid var(--border);padding-top:0;}
.section-head h2{margin:0;}
.section-head a{font-family:var(--fh);font-size:.55rem;letter-spacing:.2em;text-transform:uppercase;color:var(--gold-d);}
.section-head a:hover{color:var(--gold);}

/* Gold divider */
.gold-rule{width:50px;height:1px;background:linear-gradient(to right,var(--gold-d),transparent);}
.gold-rule.center{margin:0 auto;background:linear-gradient(to right,transparent,var(--gold-d),transparent);}
.gold-rule.full{width:100%;}

/* Grids */
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem;}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:1.2rem;}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:1.2rem;}
.grid-auto{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.2rem;}

/* Buttons */
.btn{display:inline-flex;align-items:center;gap:.5rem;font-family:var(--fh);font-size:.6rem;letter-spacing:.28em;text-transform:uppercase;padding:.65rem 1.4rem;border-radius:var(--radius);border:none;transition:all .25s;cursor:pointer;white-space:nowrap;}
.btn-gold{background:var(--gold);color:var(--bg);}
.btn-gold:hover{background:var(--gold-pale);color:var(--bg);}
.btn-outline{background:transparent;color:var(--gold);border:1px solid var(--gold);}
.btn-outline:hover{background:var(--gold);color:var(--bg);}
.btn-ghost{background:transparent;color:var(--muted);border:1px solid var(--border);}
.btn-ghost:hover{color:var(--ivory);border-color:var(--border2);}
.btn-green{background:var(--green);color:#b0f0cc;}
.btn-red{background:var(--red);color:#f0b8b8;}
.btn-sm{padding:.4rem .9rem;font-size:.55rem;}
.btn-lg{padding:.9rem 2.2rem;font-size:.65rem;}

/* Badges */
.badge{display:inline-block;font-family:var(--fh);font-size:.5rem;letter-spacing:.2em;text-transform:uppercase;padding:.18rem .6rem;border-radius:20px;}
.badge-gold{background:rgba(201,168,76,.15);color:var(--gold);border:1px solid var(--gold-line);}
.badge-green{background:rgba(45,106,79,.2);color:#7ecca0;}
.badge-red{background:rgba(122,40,40,.2);color:#e09090;}
.badge-gray{background:var(--s3);color:var(--muted);border:1px solid var(--border);}
.badge-private{background:rgba(122,99,48,.25);color:var(--gold-pale);border:1px solid var(--gold-d);}

/* Stars */
.stars{display:inline-flex;gap:.15rem;}
.stars i{color:var(--gold-d);font-size:.75rem;}
.stars i.filled{color:var(--gold);}
.rating-num{font-family:var(--fh);font-size:.65rem;color:var(--gold);margin-left:.3rem;}

/* Rating bars */
.rating-bar-row{display:flex;align-items:center;gap:.8rem;margin-bottom:.55rem;}
.rating-bar-label{font-size:.82rem;color:var(--muted);width:150px;flex-shrink:0;}
.rating-bar-track{flex:1;height:4px;background:var(--s4);border-radius:2px;}
.rating-bar-fill{height:100%;background:linear-gradient(to right,var(--gold-d),var(--gold));border-radius:2px;}
.rating-bar-val{font-family:var(--fh);font-size:.6rem;color:var(--gold);width:24px;text-align:right;}

/* RSVP */
.rsvp-group{display:flex;gap:.6rem;flex-wrap:wrap;}
.rsvp-btn{display:inline-flex;align-items:center;gap:.4rem;font-family:var(--fh);font-size:.55rem;letter-spacing:.15em;text-transform:uppercase;padding:.5rem 1rem;border-radius:var(--radius);border:1px solid var(--border);background:transparent;color:var(--muted);transition:all .2s;cursor:pointer;}
.rsvp-btn:hover{border-color:var(--border2);color:var(--ivory);}
.rsvp-btn.going{background:rgba(45,106,79,.15);border-color:var(--green);color:#7ecca0;}
.rsvp-btn.interested{background:rgba(201,168,76,.1);border-color:var(--gold-d);color:var(--gold);}
.rsvp-btn.notgoing{background:rgba(122,40,40,.1);border-color:var(--red);color:#e09090;}

/* Feature card */
.feature-card{position:relative;border-radius:var(--radius);overflow:hidden;border:1px solid var(--border);}
.feature-card img{width:100%;object-fit:cover;display:block;}
.feature-overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(7,6,5,.95) 20%,rgba(7,6,5,.4) 60%,transparent);}
.feature-body{position:absolute;bottom:0;left:0;right:0;padding:2rem;}
.feature-title{font-family:var(--fh);font-size:clamp(1.1rem,2.5vw,1.7rem);color:var(--cream);margin-bottom:.5rem;}
.feature-meta{font-style:italic;font-size:.95rem;color:var(--ivory);margin-bottom:1rem;}

/* Stat cards */
.stat-card{background:var(--s2);border:1px solid var(--border);border-radius:var(--radius);padding:1.2rem 1.4rem;display:flex;align-items:center;gap:1rem;}
.stat-icon{width:40px;height:40px;background:var(--gold-glow);border:1px solid var(--gold-line);border-radius:var(--radius);display:flex;align-items:center;justify-content:center;color:var(--gold);font-size:1rem;flex-shrink:0;}
.stat-num{font-family:var(--fh);font-size:1.5rem;color:var(--cream);line-height:1;}
.stat-label{font-family:var(--fh);font-size:.52rem;letter-spacing:.2em;text-transform:uppercase;color:var(--muted);margin-top:.2rem;}

/* Announcement */
.announcement{border-left:2px solid var(--gold-d);padding:.9rem 1.2rem;background:var(--s2);border-radius:0 var(--radius) var(--radius) 0;margin-bottom:.8rem;}
.announcement-title{font-family:var(--fh);font-size:.78rem;letter-spacing:.08em;color:var(--cream);margin-bottom:.25rem;}
.announcement-text{font-size:.88rem;color:var(--muted);line-height:1.6;}
.announcement-date{font-family:var(--fh);font-size:.48rem;letter-spacing:.18em;text-transform:uppercase;color:var(--dim);margin-top:.4rem;}

/* Lounge cards */
.lounge-card .lounge-img{position:relative;}
.lounge-card .lounge-img img{width:100%;height:170px;object-fit:cover;}
.lounge-card .lounge-rating{position:absolute;bottom:.6rem;right:.6rem;background:rgba(7,6,5,.88);border:1px solid var(--gold-d);padding:.2rem .5rem;font-family:var(--fh);font-size:.7rem;color:var(--gold);display:flex;align-items:center;gap:.3rem;}
.lounge-card .lounge-name{font-family:var(--fh);font-size:.9rem;letter-spacing:.05em;color:var(--cream);margin-bottom:.2rem;}
.lounge-card .lounge-loc{font-size:.82rem;color:var(--muted);margin-bottom:.6rem;display:flex;align-items:center;gap:.3rem;}
.lounge-tag{font-family:var(--fh);font-size:.48rem;letter-spacing:.15em;text-transform:uppercase;background:var(--s3);color:var(--dim);border:1px solid var(--border);padding:.15rem .5rem;border-radius:2px;display:inline-block;}

/* Event cards */
.event-card .event-date-strip{background:var(--s3);border-bottom:1px solid var(--border);padding:.6rem 1.2rem;display:flex;align-items:center;justify-content:space-between;}
.event-card .date-left{display:flex;align-items:center;gap:.6rem;}
.event-card .date-num{font-family:var(--fh);font-size:1.4rem;color:var(--cream);line-height:1;}
.event-card .date-mon{font-family:var(--fh);font-size:.55rem;letter-spacing:.35em;color:var(--gold);text-transform:uppercase;display:block;}
.event-card .date-dow{font-size:.75rem;color:var(--muted);font-style:italic;}
.event-card .event-title{font-family:var(--fh);font-size:.95rem;letter-spacing:.05em;color:var(--cream);margin-bottom:.4rem;}
.event-card .event-meta{display:flex;flex-wrap:wrap;gap:.5rem 1rem;margin:.5rem 0;}
.event-card .event-meta span{font-size:.82rem;color:var(--muted);display:flex;align-items:center;gap:.3rem;}

/* Tabs */
.tabs{display:flex;border-bottom:1px solid var(--border);margin-bottom:1.5rem;}
.tab-btn{font-family:var(--fh);font-size:.6rem;letter-spacing:.22em;text-transform:uppercase;color:var(--muted);padding:.75rem 1.2rem;background:none;border:none;border-bottom:2px solid transparent;cursor:pointer;transition:all .2s;margin-bottom:-1px;}
.tab-btn:hover{color:var(--ivory);}
.tab-btn.active{color:var(--gold);border-bottom-color:var(--gold);}

/* Filter chips */
.filter-chip{font-family:var(--fh);font-size:.52rem;letter-spacing:.15em;text-transform:uppercase;padding:.4rem .9rem;background:var(--s2);border:1px solid var(--border);border-radius:20px;color:var(--muted);cursor:pointer;transition:all .2s;display:inline-block;}
.filter-chip:hover,.filter-chip.active{background:var(--gold-glow);border-color:var(--gold-d);color:var(--gold);}

/* Forms */
.form-group{display:flex;flex-direction:column;gap:.35rem;margin-bottom:1.1rem;}
.form-label{font-family:var(--fh);font-size:.55rem;letter-spacing:.28em;text-transform:uppercase;color:var(--gold-d);}
.form-control{background:var(--s3);border:1px solid var(--border);border-radius:var(--radius);color:var(--cream);font-family:var(--fb);font-size:.95rem;padding:.65rem .9rem;outline:none;width:100%;transition:border-color .2s;}
.form-control:focus{border-color:var(--gold-d);}
.form-control::placeholder{color:var(--dim);font-style:italic;}
textarea.form-control{resize:vertical;min-height:90px;}
select.form-control{cursor:pointer;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%237a6330'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .8rem center;padding-right:2rem;}
select.form-control option{background:#1a1714;}

/* Modal */
.modal-overlay{position:fixed;inset:0;background:rgba(7,6,5,.88);backdrop-filter:blur(4px);z-index:500;display:flex;align-items:center;justify-content:center;padding:2rem;opacity:0;pointer-events:none;transition:opacity .3s;}
.modal-overlay.open{opacity:1;pointer-events:all;}
.modal{background:var(--s1);border:1px solid var(--border);border-top:1px solid var(--gold-d);border-radius:var(--radius);width:100%;max-width:560px;max-height:90vh;overflow-y:auto;}
.modal-header{padding:1.4rem 1.6rem;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;}
.modal-title{font-family:var(--fh);font-size:.82rem;letter-spacing:.15em;text-transform:uppercase;color:var(--gold);}
.modal-close{background:none;border:none;color:var(--muted);font-size:1.1rem;cursor:pointer;transition:color .2s;}
.modal-close:hover{color:var(--cream);}
.modal-body{padding:1.6rem;}
.modal-footer{padding:1.2rem 1.6rem;border-top:1px solid var(--border);display:flex;justify-content:flex-end;gap:.7rem;}

/* Toast */
.toast-container{position:fixed;bottom:1.5rem;right:1.5rem;z-index:999;display:flex;flex-direction:column;gap:.5rem;}
.toast{background:var(--s2);border:1px solid var(--gold-d);color:var(--gold);font-family:var(--fh);font-size:.6rem;letter-spacing:.2em;text-transform:uppercase;padding:.9rem 1.3rem;border-radius:var(--radius);box-shadow:var(--shadow);opacity:0;transform:translateY(10px);transition:all .3s;}
.toast.show{opacity:1;transform:translateY(0);}

/* Avatar stack */
.avatar-stack{display:flex;}
.avatar-stack .av{width:28px;height:28px;border-radius:50%;border:1.5px solid var(--s2);margin-left:-8px;object-fit:cover;}
.avatar-stack .av:first-child{margin-left:0;}
.avatar-stack .av-more{background:var(--s3);color:var(--muted);font-family:var(--fh);font-size:.5rem;display:flex;align-items:center;justify-content:center;}

/* Calendar */
.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:1px;background:var(--border);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;}
.cal-dow{background:var(--s3);padding:.55rem;text-align:center;font-family:var(--fh);font-size:.52rem;letter-spacing:.2em;text-transform:uppercase;color:var(--muted);}
.cal-day{background:var(--s2);padding:.5rem;min-height:90px;cursor:pointer;transition:background .15s;}
.cal-day:hover{background:var(--s3);}
.cal-day.today{background:var(--gold-glow);}
.cal-day.other-month{opacity:.3;}
.cal-day-num{font-family:var(--fh);font-size:.68rem;color:var(--muted);margin-bottom:.3rem;}
.cal-day.today .cal-day-num{color:var(--gold);}
.cal-ev-pill{font-family:var(--fh);font-size:.48rem;background:var(--gold-d);color:var(--bg);padding:.1rem .35rem;border-radius:2px;margin-bottom:.15rem;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;}
.cal-ev-pill:hover{background:var(--gold);}

/* Map */
#glc-map{width:100%;border-radius:var(--radius);border:1px solid var(--border);}

/* Scrollbar */
::-webkit-scrollbar{width:6px;}
::-webkit-scrollbar-track{background:var(--s1);}
::-webkit-scrollbar-thumb{background:var(--border2);border-radius:3px;}
::-webkit-scrollbar-thumb:hover{background:var(--gold-d);}

/* ════════════════════════════════════════════════
   PUBLIC HERO SECTIONS
   ════════════════════════════════════════════════ */
.pub-hero{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;text-align:center;}
.pub-hero-bg{position:absolute;inset:0;background-size:cover;background-position:center;filter:brightness(.28) saturate(.7);}
.pub-hero-overlay{position:absolute;inset:0;background:radial-gradient(ellipse 80% 70% at 50% 50%,rgba(201,168,76,.05) 0%,transparent 70%);}
.pub-hero-content{position:relative;z-index:2;padding:2rem;}
.pub-hero-ornament{display:flex;align-items:center;gap:1rem;justify-content:center;margin-bottom:1.5rem;}
.pub-hero-line{width:60px;height:1px;}
.pub-hero-line.l{background:linear-gradient(to right,transparent,var(--gold-d));}
.pub-hero-line.r{background:linear-gradient(to left,transparent,var(--gold-d));}
.pub-hero-gem{width:6px;height:6px;background:var(--gold-d);transform:rotate(45deg);}

/* Public sections */
.pub-section{padding:5rem 2rem;}
.pub-section-inner{max-width:1100px;margin:0 auto;}
.pub-section-inner.narrow{max-width:800px;}

/* ════════════════════════════════════════════════
   MESSAGES
   ════════════════════════════════════════════════ */
.msg-layout{display:grid;grid-template-columns:280px 1fr;height:calc(100vh - 54px);overflow:hidden;}
.conv-list{border-right:1px solid var(--border);overflow-y:auto;background:var(--s1);}
.conv-header{padding:1rem 1.2rem;border-bottom:1px solid var(--border);font-family:var(--fh);font-size:.65rem;letter-spacing:.25em;text-transform:uppercase;color:var(--gold);}
.conv-item{display:flex;align-items:center;gap:.8rem;padding:.9rem 1.2rem;cursor:pointer;border-left:2px solid transparent;transition:all .15s;}
.conv-item:hover{background:var(--gold-glow);}
.conv-item.active{background:var(--gold-glow);border-left-color:var(--gold);}
.conv-av{width:38px;height:38px;border-radius:50%;object-fit:cover;border:1px solid var(--border);flex-shrink:0;}
.conv-name{font-family:var(--fh);font-size:.62rem;letter-spacing:.1em;text-transform:uppercase;color:var(--ivory);}
.conv-preview{font-size:.8rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:.1rem;}
.conv-time{font-size:.72rem;color:var(--dim);margin-left:auto;flex-shrink:0;}
.chat-area{display:flex;flex-direction:column;overflow:hidden;}
.chat-header{padding:.9rem 1.5rem;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:.8rem;flex-shrink:0;}
.chat-messages{flex:1;overflow-y:auto;padding:1.2rem 1.5rem;display:flex;flex-direction:column;gap:1rem;}
.msg-bubble-wrap{display:flex;gap:.7rem;}
.msg-bubble-wrap.own{flex-direction:row-reverse;}
.msg-av-sm{width:32px;height:32px;border-radius:50%;object-fit:cover;flex-shrink:0;}
.msg-bubble{background:var(--s2);border:1px solid var(--border);padding:.7rem .95rem;font-size:.95rem;color:var(--ivory);line-height:1.6;max-width:460px;border-radius:var(--radius);}
.msg-bubble-wrap.own .msg-bubble{background:var(--s3);border-color:var(--gold-d);}
.msg-meta-sm{font-family:var(--fh);font-size:.5rem;letter-spacing:.1em;text-transform:uppercase;color:var(--dim);margin-bottom:.2rem;}
.chat-input-bar{padding:1rem 1.5rem;border-top:1px solid var(--border);display:flex;gap:.8rem;flex-shrink:0;}
.chat-input{flex:1;background:var(--s2);border:1px solid var(--border);color:var(--cream);font-family:var(--fb);font-size:.98rem;padding:.65rem .9rem;border-radius:var(--radius);outline:none;resize:none;transition:border-color .2s;}
.chat-input:focus{border-color:var(--gold-d);}
.chat-input::placeholder{color:var(--dim);font-style:italic;}
.chat-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;gap:1rem;color:var(--muted);}
.chat-empty i{font-size:2rem;color:var(--dim);}
.chat-empty p{font-style:italic;font-size:.9rem;}

/* ════════════════════════════════════════════════
   PROFILE
   ════════════════════════════════════════════════ */
.profile-header{background:var(--s2);border:1px solid var(--border);border-radius:var(--radius);padding:2rem;display:flex;align-items:center;gap:1.5rem;margin-bottom:1.5rem;}
.profile-av-wrap{position:relative;flex-shrink:0;}
.profile-av{width:90px;height:90px;border-radius:50%;border:2px solid var(--gold-d);object-fit:cover;}
.profile-av-edit{position:absolute;bottom:0;right:0;width:28px;height:28px;background:var(--gold);border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:.7rem;color:var(--bg);}
.profile-info h2{font-size:1.3rem;margin-bottom:.2rem;}
.profile-info .role{font-family:var(--fh);font-size:.55rem;letter-spacing:.25em;text-transform:uppercase;color:var(--gold-d);}
.profile-info .city{font-size:.85rem;color:var(--muted);margin-top:.3rem;font-style:italic;}

/* ════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════ */
@media(max-width:1024px){
  .grid-3{grid-template-columns:repeat(2,1fr);}
  .grid-4{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:768px){
  :root{--sidebar-w:0px;}
  .sidebar{transform:translateX(-240px);width:240px;}
  .sidebar.open{transform:translateX(0);}
  .main-content{margin-left:0;}
  .hamburger{display:block;}
  .topbar-search{display:none;}
  .pub-nav-links{display:none;}
  .pub-hamburger{display:block;}
  .grid-2{grid-template-columns:1fr;}
  .grid-3{grid-template-columns:1fr;}
  .grid-4{grid-template-columns:repeat(2,1fr);}
  .page-body{padding:1.2rem;}
  .pub-section{padding:3.5rem 1.2rem;}
  .msg-layout{grid-template-columns:1fr;}
  .conv-list{display:none;}
  .msg-layout.show-list .conv-list{display:block;}
  .msg-layout.show-list .chat-area{display:none;}
  .profile-header{flex-direction:column;text-align:center;}
}
@media(max-width:480px){
  .grid-4{grid-template-columns:1fr 1fr;}
  .pub-hero h1{font-size:2rem;}
}
