*{margin:0;padding:0;box-sizing:border-box}
:root{--navy:#0b1c2c;--navy2:#122b44;--gold:#c9a84c;--gold-dk:#a07a2a;--gold-lt:#e4c97a;--warm:#faf6ed;--marble:#fff;--text:#1a2435;--muted:#6b7a8d;--r-sm:14px;--r-md:22px;--r-lg:32px;--serif:'Cormorant Garamond',serif;--sans:'Jost',sans-serif;--sh-sm:0 8px 28px rgba(0,0,0,.07);--sh-md:0 20px 45px rgba(0,0,0,.13);--sh-lg:0 35px 70px rgba(0,0,0,.22);--transition:.3s cubic-bezier(.4,0,.2,1)}
html{scroll-behavior:smooth}
body{font-family:var(--sans);background:var(--warm);color:var(--text);line-height:1.6;overflow-x:hidden}
a{text-decoration:none;color:inherit}
img{display:block;max-width:100%}
button,input,select,textarea{font-family:var(--sans)}
input,select,textarea{width:100%;padding:.8rem 1rem;border:1.5px solid #ddd;border-radius:var(--r-sm);background:#fff;color:var(--text);margin:.45rem 0}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--gold);box-shadow:0 0 0 3px rgba(201,168,76,.15)}
input[type="checkbox"]{width:auto;margin:0}
textarea{min-height:110px;resize:vertical}
h1,h2,h3{font-family:var(--serif);line-height:1.2}
h1{font-size:clamp(2.2rem,5vw,3.6rem)}
h2{font-size:clamp(1.6rem,3vw,2.4rem)}
h3{font-size:1.25rem}
p{color:var(--muted)}
.hidden{display:none!important}
.full-width{width:100%}
.btn-gold,.btn-outline,.btn-danger,.btn-success{border-radius:40px;padding:.65rem 1.5rem;font-size:.9rem;cursor:pointer;transition:all var(--transition)}
.btn-gold{border:none;background:linear-gradient(135deg,var(--gold),var(--gold-dk));color:#fff;box-shadow:0 4px 14px rgba(201,168,76,.3)}
.btn-gold:hover{transform:translateY(-2px)}
.btn-outline{background:transparent;border:1.5px solid var(--gold);color:var(--navy)}
.btn-danger{background:#e53935;color:#fff;border:none}
.btn-success{background:#2e7d32;color:#fff;border:none}
.btn-sm{padding:.35rem .9rem;font-size:.82rem}
.loader-overlay{position:fixed;inset:0;z-index:9999;background:rgba(253,248,238,.92);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem}
.loader-spinner{width:48px;height:48px;border:4px solid rgba(201,168,76,.2);border-top-color:var(--gold);border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.top-bar{position:sticky;top:0;z-index:200;background:rgba(253,248,238,.96);backdrop-filter:blur(10px);display:flex;align-items:center;justify-content:space-between;padding:0.5rem 1.2rem;border-bottom:1px solid rgba(201,168,76,.25);box-shadow:0 2px 16px rgba(0,0,0,.04);gap:.5rem;flex-wrap:nowrap}
.hamburger,.close-sidebar,.modal-close,.chat-close,.close-overlay{background:none;border:none;cursor:pointer}
.hamburger{font-size:1.6rem;color:var(--navy);padding:.5rem;margin-right:.5rem;flex-shrink:0;margin-top:2px}
.logo-area{flex:1;text-align:left;padding:0 .4rem;min-width:0;overflow:visible}
.logo-area h1{font-size:clamp(1.1rem,2.8vw,2rem);cursor:pointer;white-space:normal;overflow:visible;text-overflow:clip;line-height:1.15;font-weight:700;letter-spacing:.03em}
.logo-area h1 span{color:var(--gold);display:block;font-size:.6em;line-height:1.2;letter-spacing:.08em}
#userStatusArea{display:flex;align-items:center;gap:.4rem;flex-wrap:nowrap;flex-shrink:0;min-width:fit-content}
#userStatusArea span{font-size:.78rem;color:var(--navy);max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sidebar{position:fixed;top:0;left:-340px;width:320px;height:100%;background:var(--marble);z-index:400;transition:left .35s ease;box-shadow:4px 0 30px rgba(0,0,0,.13);overflow-y:auto}
.sidebar.open{left:0}
.sidebar-header{background:linear-gradient(140deg,var(--navy) 0%,var(--navy2) 100%);padding:2rem 1.5rem;color:#fff;display:flex;justify-content:space-between;align-items:center}
.sidebar-header h3{font-size:1.5rem;cursor:pointer}
.close-sidebar{color:var(--gold);font-size:1.8rem}
.sidebar-nav a{display:flex;align-items:center;gap:.9rem;padding:.85rem 1.6rem;font-size:.93rem;color:var(--navy);border-left:3px solid transparent}
.sidebar-nav a:hover{background:rgba(201,168,76,.09);border-left-color:var(--gold)}
.sidebar-nav .nav-divider{height:1px;background:rgba(201,168,76,.15);margin:.4rem 1.6rem}
.sidebar-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:399}
.sidebar-overlay.visible{display:block}
.page-container{padding:2rem;min-height:80vh}
.hero-section{position:relative;overflow:hidden;border-radius:var(--r-lg);padding:6rem 2rem;text-align:center;color:#fff;margin-bottom:2rem;background-size:cover;background-position:center}
.hero-section::before{content:'';position:absolute;inset:0;background:linear-gradient(to top,rgba(11,28,44,.75),rgba(0,0,0,.1))}
.hero-section>*{position:relative;z-index:1}
.hero-tag{display:inline-block;padding:.3rem 1rem;border-radius:30px;background:rgba(201,168,76,.25);border:1px solid rgba(201,168,76,.5);color:var(--gold-lt);font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;margin-bottom:1rem}
.hero-section p{color:rgba(255,255,255,.85);font-size:1.05rem}
.grid-2,.grid-3,.grid-4,.rooms-grid,.property-grid,.tier-grid,.footer-grid{display:grid;gap:1.4rem}
.grid-2{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
.grid-3{grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}
.grid-4{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}
.rooms-grid{grid-template-columns:repeat(auto-fill,minmax(290px,1fr))}
.property-grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
.tier-grid{grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}
.card-marble,.dashboard-card,.overlay-box,.modal-content{background:var(--marble);border-radius:var(--r-md);box-shadow:var(--sh-sm)}
.card-marble{padding:1.5rem;border:1px solid rgba(201,168,76,.18)}
.card-gold-border{border-top:3px solid var(--gold)}
.dashboard-card{padding:1.3rem;text-align:center}
.stat-number{font-family:var(--serif);font-size:2.5rem;font-weight:700;color:var(--gold)}
.section-label{font-size:.75rem;letter-spacing:.15em;text-transform:uppercase;color:var(--gold);font-weight:600;margin-bottom:.3rem}
.section-title{font-size:2rem;margin-bottom:.4rem}
.divider-gold{width:50px;height:3px;background:var(--gold);margin:.8rem 0 1.5rem}
.status-badge{display:inline-block;padding:4px 12px;border-radius:20px;font-size:.78rem;font-weight:600}
.status-verified{background:#d4edda;color:#155724}
.status-pending{background:#fff3cd;color:#856404}
.status-declined{background:#f8d7da;color:#721c24}
.pill-tag,.feature-badge{display:inline-block;padding:.2rem .75rem;border-radius:20px;font-size:.78rem;background:rgba(201,168,76,.12);border:1px solid rgba(201,168,76,.25);color:var(--navy);margin:.2rem}
.img-slider{position:relative;height:220px;border-radius:var(--r-sm);overflow:hidden;background:#e8e0d0}
.img-slider img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .35s ease}
.img-slider img.active{opacity:1}
.slider-btn{position:absolute;top:50%;transform:translateY(-50%);width:30px;height:30px;border:none;border-radius:50%;background:rgba(0,0,0,.45);color:#fff;z-index:2}
.slider-btn.prev{left:8px}
.slider-btn.next{right:8px}
.slider-dots{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);display:flex;gap:4px}
.slider-dot{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.5);cursor:pointer}
.slider-dot.active{background:#fff}
.transaction-item{background:var(--warm);padding:.9rem 1rem;border-left:3px solid var(--gold);border-radius:var(--r-sm);display:flex;align-items:center;justify-content:space-between;gap:.5rem;flex-wrap:wrap;margin:.45rem 0}
.tx-label{font-size:.9rem;color:var(--text)}
.tx-date{font-size:.78rem;color:var(--muted)}
.tx-amount{font-weight:700;color:var(--gold)}
.pay-tabs{display:flex;gap:.6rem;flex-wrap:wrap;margin:1rem 0}
.pay-tab{padding:.65rem 1.4rem;border-radius:30px;border:1.5px solid #ddd;background:#fff;color:var(--navy);cursor:pointer;transition:all var(--transition)}
.pay-tab.active{background:var(--gold);border-color:var(--gold);color:#fff}
.info-box{background:linear-gradient(135deg,rgba(201,168,76,.08),rgba(201,168,76,.02));border:1px solid rgba(201,168,76,.25);border-radius:var(--r-md);padding:1.1rem;margin:1rem 0;overflow:hidden}
.info-box p{word-break:break-all;overflow-wrap:break-word;font-size:.85rem}
.alert-warning,.alert-success{border-radius:var(--r-sm);padding:1rem;margin:.8rem 0;font-size:.9rem}
.alert-warning{background:#fff8e1;border-left:4px solid var(--gold)}
.alert-success{background:#e8f5e9;border-left:4px solid #2e7d32}
.receipt-link{color:var(--gold-dk);text-decoration:underline}
.footer-section{background:var(--navy);color:#fff;border-radius:32px 32px 0 0;padding:3.5rem 2rem 2rem;margin-top:3rem}
.footer-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}
.footer-section a{color:var(--gold-lt);display:block;margin:.3rem 0}
.footer-brand{font-family:var(--serif);font-size:1.5rem}
.modal,.overlay-modal{display:none;position:fixed;inset:0;background:rgba(0,0,0,.65);justify-content:center;align-items:flex-start;padding:1rem;overflow-y:auto}
.modal{z-index:600}
.overlay-modal{z-index:650}
.modal.open,.overlay-modal.open{display:flex}
.modal-content,.overlay-box{position:relative;max-width:480px;width:100%;padding:2rem;max-height:calc(100vh - 2rem);overflow-y:auto;margin:auto 0}
.overlay-box{text-align:center}
.modal-close,.close-overlay{position:absolute;top:1rem;right:1.2rem;font-size:1.4rem;color:var(--muted)}
.modal-footer,.overlay-actions{display:flex;gap:.6rem;flex-wrap:wrap;justify-content:center;margin-top:1rem}
.overlay-title{font-family:var(--serif);color:var(--gold);font-size:1.1rem;margin:.4rem 0}
.summary-box{margin-top:1rem;padding:1rem;border-radius:var(--r-sm);background:var(--warm);text-align:left}
.summary-row{display:flex;justify-content:space-between;padding:.45rem 0;border-bottom:1px solid rgba(201,168,76,.12)}
.summary-row:last-child{border-bottom:none;font-weight:700}
.muted-note{font-size:.82rem;color:var(--muted)}
.overlay-list{display:flex;flex-wrap:wrap;justify-content:center;gap:.3rem;margin-bottom:1rem}
.file-upload-area{border:2px dashed rgba(201,168,76,.5);border-radius:var(--r-md);padding:1.6rem;text-align:center;cursor:pointer;margin:1rem 0}
.file-upload-area i{font-size:2rem;color:var(--gold);margin-bottom:.6rem}
.upload-preview{margin:.8rem 0;padding:1rem;border:1px solid rgba(201,168,76,.22);border-radius:var(--r-sm);background:rgba(201,168,76,.05)}
.upload-preview img{width:100%;max-height:220px;object-fit:cover;border-radius:10px;margin-bottom:.6rem}
.upload-preview small{display:block;color:var(--muted)}
.upload-preview-file{display:flex;align-items:center;gap:.6rem;color:var(--text);font-weight:500;margin-bottom:.4rem}
.live-chat-btn{position:fixed;right:28px;bottom:28px;width:58px;height:58px;border:none;border-radius:50%;background:linear-gradient(135deg,var(--gold),var(--gold-dk));color:#fff;box-shadow:0 6px 20px rgba(201,168,76,.45);font-size:1.7rem;z-index:250}
.chat-window{position:fixed;right:28px;bottom:105px;width:340px;height:480px;display:none;flex-direction:column;background:#fff;border-radius:var(--r-md);box-shadow:var(--sh-lg);overflow:hidden;z-index:251}
.chat-header{background:var(--navy);color:var(--gold);padding:1rem 1.2rem;display:flex;justify-content:space-between;align-items:center;font-family:var(--serif)}
.chat-messages{flex:1;padding:1rem;overflow-y:auto;display:flex;flex-direction:column;gap:.6rem}
.chat-msg{padding:.6rem .9rem;border-radius:14px;max-width:85%;font-size:.88rem}
.chat-msg.support{background:var(--warm);align-self:flex-start}
.chat-msg.user{background:var(--gold);color:#fff;align-self:flex-end}
.chat-input-row{display:flex;gap:.5rem;padding:.6rem;border-top:1px solid #eee}
.chat-input-row input{margin:0;flex:1;border-radius:30px}
.toast{position:fixed;right:24px;bottom:24px;max-width:320px;padding:1rem 1.4rem;border-radius:24px;background:var(--navy);color:var(--gold-lt);box-shadow:var(--sh-md);z-index:10000;transition:opacity .3s ease}
.back-button{background:none;border:none;color:var(--gold);margin-bottom:1.2rem;font-weight:500}
.back-button:hover{color:var(--gold-dk)}
.admin-section{background:#f0eee8;border-radius:var(--r-lg);padding:1.8rem;border-top:3px solid var(--gold)}
.admin-btn-row{display:flex;gap:.6rem;flex-wrap:wrap;margin-bottom:1rem}
.admin-table{width:100%;border-collapse:collapse;font-size:.88rem;margin-top:.8rem}
.admin-table th{padding:.6rem .8rem;text-align:left;background:var(--navy);color:var(--gold);font-family:var(--serif)}
.admin-table td{padding:.55rem .8rem;border-bottom:1px solid rgba(201,168,76,.12)}
.user-row{display:flex;justify-content:space-between;align-items:center;padding:.65rem .8rem;border-bottom:1px solid rgba(201,168,76,.15);gap:.5rem;flex-wrap:wrap}
.admin-stack{display:grid;gap:1rem;margin-top:1rem}
.admin-input-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:.8rem}
.toggle-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.8rem;margin:.8rem 0}
.toggle-pill{display:flex;align-items:center;gap:.55rem;background:#fff;padding:.7rem .9rem;border-radius:30px;border:1px solid rgba(201,168,76,.2)}
.inline-actions{display:flex;gap:.45rem;flex-wrap:wrap;align-items:center}
.tier-card{text-align:center}
.tier-percent{font-family:var(--serif);font-size:3.4rem;font-weight:700;color:var(--gold);margin:1rem 0}
.tier-card.featured{border:2px solid var(--gold);position:relative}
.tier-card.featured::before{content:'POPULAR';position:absolute;top:-1px;left:50%;transform:translateX(-50%);background:var(--gold);color:#fff;font-size:.7rem;letter-spacing:.1em;padding:.2rem .9rem;border-radius:0 0 10px 10px}
.masternode-note{background:linear-gradient(135deg,var(--navy) 0%,var(--navy2) 100%);color:#fff;border-radius:var(--r-lg);padding:2rem;text-align:center}
.testimonial-img,.leader-img{border-radius:50%;object-fit:cover;background:#e0ddd6}
.testimonial-img{width:60px;height:60px;margin-bottom:.6rem}
.leader-img{width:80px;height:80px;margin-bottom:.7rem}
.star-row{color:var(--gold);font-size:.85rem;margin:.3rem 0}
.language-select{background:rgba(255,255,255,.1);border:1px solid rgba(201,168,76,.4);color:#fff;border-radius:30px}
#changePasswordSection{margin-top:1.5rem;background:var(--warm);border:1px solid rgba(201,168,76,.2)}
@media (max-width:768px){.page-container{padding:1rem}.top-bar{padding:.8rem 1rem}.sidebar{width:280px}.grid-2,.grid-3,.grid-4,.rooms-grid,.property-grid,.tier-grid{grid-template-columns:1fr}.hero-section{padding:4rem 1.2rem}}

/* === NEW ELEMENTS - Batch 2 additions === */
.alert-success { background: #e8f5e9; border: 1px solid rgba(76,175,80,.35); padding: 1rem 1.2rem; border-radius: 8px; color: #2e7d32; }
.btn-success { background: #2e7d32; color: #fff; border: none; border-radius: 6px; padding: .45rem 1rem; font-size: .85rem; cursor: pointer; font-family: var(--sans); }
.btn-success:hover { background: #1b5e20; }
.muted-note { color: var(--muted); font-size: .82rem; margin: .3rem 0 .8rem; }
.inline-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.receipt-link { color: var(--gold-dk); text-decoration: underline; font-size: .82rem; }
.prop-agreement-box { background: var(--warm); border: 1px solid rgba(201,168,76,.25); border-radius: var(--r-sm); padding: 1rem; margin: 1rem 0; font-size: .85rem; line-height: 1.6; max-height: 180px; overflow-y: auto; }

/* === Hero Video Support === */
.hero-video-section { position: relative; min-height: 520px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-video-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,28,44,.78), rgba(0,0,0,.18)); z-index: 1; }
.hero-video-section .hero-content { position: relative; z-index: 2; text-align: center; padding: 6rem 1.5rem; width: 100%; }
.hero-video-section .hero-tag { display: inline-block; background: rgba(201,168,76,.18); border: 1px solid rgba(201,168,76,.4); color: var(--gold); font-size: .72rem; letter-spacing: .18em; padding: .35rem 1rem; border-radius: 30px; margin-bottom: 1.4rem; }
.hero-video-section h1 { font-family: var(--serif); font-size: clamp(2rem,6vw,3.8rem); color: #fff; margin-bottom: 1rem; line-height: 1.12; }
.hero-video-section p { color: rgba(255,255,255,.82); font-size: 1rem; margin-bottom: 1.8rem; }

/* === Logo in header === */
.header-logo-img { max-height: 62px; max-width: 220px; object-fit: contain; display: block; }
.sidebar-logo-img { max-height: 36px; max-width: 180px; object-fit: contain; vertical-align: middle; margin-right: .4rem; }

/* === Admin Action Modal fields === */
#adminModalBody input, #adminModalBody select, #adminModalBody textarea { width: 100%; box-sizing: border-box; background: rgba(255,255,255,.05); border: 1px solid rgba(201,168,76,.3); color: #e8d9b0; padding: .55rem .7rem; border-radius: 6px; font-size: .9rem; font-family: var(--sans); margin-bottom: .1rem; }
#adminModalBody input:focus, #adminModalBody select:focus, #adminModalBody textarea:focus { outline: none; border-color: var(--gold); }
#adminModalBody select option { background: #0b1c2c; color: #e8d9b0; }

/* === Additional fixes and improvements === */
/* Loader overlay */
.loader-overlay.hidden { display: none !important; }

/* Prevent double-click flicker on disabled buttons */
button:disabled { opacity: 0.6; cursor: not-allowed; pointer-events: none; }

/* Better image handling in sliders */
.img-slider img { background: #e8e0d0; }

/* Admin pending list – improve readability */
#adminPendingList .user-row, #adminVerificationList .user-row { align-items: flex-start; }

/* LOC draw section spacing */
#submitLocDrawBtn { margin-top: .5rem; }

/* Better status badge spacing in transaction items */
.transaction-item .status-badge { margin-left: .4rem; vertical-align: middle; font-size: .72rem; }

/* Allocation history card */
#reAllocHistoryList .transaction-item { border-left-color: var(--gold); }

/* Make admin confirm button label dynamic */
#adminConfirmOkBtn { background: #e53935; color: #fff; border: none; }

/* Mobile: slightly larger tap targets for sidebar links */
@media (max-width: 480px) {
  .sidebar-nav a { padding: 1rem 1.4rem; font-size: .97rem; }
  .btn-gold, .btn-outline { padding: .6rem 1.2rem; }
}

/* Smooth transitions for overlay modals */
.overlay-modal { transition: opacity .15s ease; }
.overlay-modal.open { animation: fadeIn .18s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ================================================================
   COMMERCIAL REAL ESTATE FRONT PAGE — NEW SECTIONS
   ================================================================ */

/* ── Metrics Strip ──────────────────────────────────────────────── */
.cre-metrics-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  background: var(--marble);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  border: 1px solid rgba(201,168,76,.18);
  padding: 1.4rem 1rem;
  margin-top: 1.6rem;
}
.cre-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .6rem 2rem;
  text-align: center;
  flex: 1;
  min-width: 140px;
}
.cre-metric-value {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.cre-metric-label {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .35rem;
  font-weight: 500;
}
.cre-metric-divider {
  width: 1px;
  height: 40px;
  background: rgba(201,168,76,.2);
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .cre-metric-divider { display: none; }
  .cre-metric { border-bottom: 1px solid rgba(201,168,76,.1); padding: .8rem 1rem; }
}

/* ── Services Grid ──────────────────────────────────────────────── */
.cre-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.4rem;
  margin-top: .5rem;
}
.cre-service-card {
  background: var(--marble);
  border-radius: var(--r-md);
  padding: 1.8rem 1.5rem;
  border: 1px solid rgba(201,168,76,.15);
  box-shadow: var(--sh-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.cre-service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.cre-service-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: rgba(201,168,76,.35); }
.cre-service-card:hover::before { transform: scaleX(1); }
.cre-service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(201,168,76,.15), rgba(201,168,76,.05));
  border: 1px solid rgba(201,168,76,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--gold);
  margin-bottom: 1rem;
}
.cre-service-card h3 { font-size: 1.05rem; margin-bottom: .5rem; color: var(--navy); }
.cre-service-card p { font-size: .88rem; line-height: 1.65; }

/* ── Property Types ─────────────────────────────────────────────── */
.cre-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: .5rem;
}
.cre-type-card {
  background: var(--marble);
  border-radius: var(--r-md);
  padding: 1.5rem 1rem;
  text-align: center;
  border: 1px solid rgba(201,168,76,.15);
  box-shadow: var(--sh-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: default;
}
.cre-type-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.cre-type-icon {
  font-size: 1.8rem;
  color: var(--gold);
  display: block;
  margin-bottom: .7rem;
}
.cre-type-card h4 { font-family: var(--serif); font-size: 1.05rem; margin-bottom: .35rem; color: var(--navy); }
.cre-type-card p { font-size: .78rem; }

/* ── Portfolio Cards ────────────────────────────────────────────── */
.cre-portfolio-card {
  transition: transform var(--transition), box-shadow var(--transition);
}
.cre-portfolio-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }

/* ── Why Choose Us ──────────────────────────────────────────────── */
.cre-why-card {
  background: var(--marble);
  border-radius: var(--r-md);
  padding: 1.8rem;
  border: 1px solid rgba(201,168,76,.15);
  box-shadow: var(--sh-sm);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.cre-why-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.cre-why-num {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(201,168,76,.15);
  line-height: 1;
  margin-bottom: .5rem;
  user-select: none;
}
.cre-why-card h3 { font-size: 1.1rem; margin-bottom: .6rem; color: var(--navy); }
.cre-why-card p { font-size: .9rem; line-height: 1.65; }

/* ── Philosophy Banner ──────────────────────────────────────────── */
.cre-philosophy-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #0d2236 50%, var(--navy2) 100%);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
}
.cre-philosophy-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cre-philosophy-inner {
  position: relative;
  z-index: 1;
  padding: 3rem 2rem;
  text-align: center;
}
.cre-philosophy-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 1.6rem;
}
.cre-phil-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .6rem 2rem;
  border-right: 1px solid rgba(201,168,76,.2);
}
.cre-phil-stat:last-child { border-right: none; }
.cre-phil-val {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-lt);
  line-height: 1;
}
.cre-phil-lbl {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-top: .35rem;
}
@media (max-width: 600px) {
  .cre-phil-stat { border-right: none; border-bottom: 1px solid rgba(201,168,76,.15); padding: .7rem 1rem; }
  .cre-phil-stat:last-child { border-bottom: none; }
}

/* ── CTA Banner ─────────────────────────────────────────────────── */
.cre-cta-banner {
  background: linear-gradient(135deg, rgba(201,168,76,.12) 0%, rgba(201,168,76,.04) 100%);
  border: 1px solid rgba(201,168,76,.3);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.cre-cta-content {
  padding: 3rem 2rem;
  text-align: center;
}
.cre-cta-banner h2 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--navy);
  margin-bottom: .6rem;
}
.cre-cta-banner p { font-size: .95rem; max-width: 560px; margin: 0 auto; }

/* ── Leader Card ─────────────────────────────────────────────────── */
.cre-leader-card {
  transition: transform var(--transition), box-shadow var(--transition);
}
.cre-leader-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }

/* ── Testimonial Card ───────────────────────────────────────────── */
.cre-testimonial-card {
  transition: transform var(--transition), box-shadow var(--transition);
}
.cre-testimonial-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }

/* ================================================================
   DESIGN REFRESH — Logo, Header, Loader, Auth Modals
   ================================================================ */

/* ── Loader: logo-based animation ─────────────────────────────── */
.loader-overlay {
  background: var(--warm);
}
.loader-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
}
.loader-logo-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2.5px solid rgba(201,168,76,.15);
  border-top-color: var(--gold);
  border-right-color: rgba(201,168,76,.5);
  animation: spinRing 1.1s cubic-bezier(.6,.1,.4,.9) infinite;
}
@keyframes spinRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.loader-logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  animation: logoPulse 1.8s ease-in-out infinite;
  border-radius: 8px;
}
@keyframes logoPulse {
  0%, 100% { opacity: .75; transform: scale(.96); }
  50% { opacity: 1; transform: scale(1); }
}
.loader-logo-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  animation: logoPulse 1.8s ease-in-out infinite;
}
.llf-top {
  font-family: var(--serif);
  font-size: .65rem;
  letter-spacing: .2em;
  color: var(--muted);
}
.llf-main {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .08em;
}
.llf-sub {
  font-family: var(--serif);
  font-size: .6rem;
  letter-spacing: .18em;
  color: var(--gold);
}

/* ── Top Bar: refined two-column layout ───────────────────────── */
.top-bar {
  padding: 0 1.2rem !important;
  height: 64px;
  min-height: 64px;
}
.top-bar-left {
  display: flex;
  align-items: center;
  gap: .3rem;
  flex: 1;
  min-width: 0;
}
.top-bar-right {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}

/* Header logo: larger, no longer squished */
.header-logo-img {
  max-height: 48px !important;
  max-width: 240px !important;
  width: auto !important;
  object-fit: contain;
}

/* Username pill in header */
.top-bar-right .user-pill {
  display: flex;
  align-items: center;
  gap: .45rem;
  background: rgba(201,168,76,.08);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: 30px;
  padding: .3rem .75rem .3rem .55rem;
  font-size: .8rem;
  color: var(--navy);
  max-width: 160px;
}
.top-bar-right .user-pill i {
  color: var(--gold);
  font-size: .85rem;
  flex-shrink: 0;
}
.top-bar-right .user-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Auth Modal: premium redesign ─────────────────────────────── */
.modal-auth {
  border-radius: var(--r-md) !important;
  padding: 0 !important;
  overflow: hidden !important;
  max-width: 420px !important;
  box-shadow: 0 32px 80px rgba(0,0,0,.22), 0 0 0 1px rgba(201,168,76,.15) !important;
}

.auth-modal-header {
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy2) 100%);
  padding: 2.4rem 2rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.auth-modal-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c9a84c' fill-opacity='0.05'%3E%3Cpath d='M20 0L40 20L20 40L0 20z'/%3E%3C/g%3E%3C/svg%3E");
}
.auth-modal-icon {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(201,168,76,.15);
  border: 1.5px solid rgba(201,168,76,.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--gold-lt);
  margin-bottom: .9rem;
}
.auth-modal-title {
  position: relative;
  z-index: 1;
  font-family: var(--serif) !important;
  font-size: 1.55rem !important;
  color: #fff !important;
  margin-bottom: .25rem !important;
}
.auth-modal-sub {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,.6) !important;
  font-size: .83rem !important;
}

/* Auth form body */
.modal-auth .auth-field-group,
.modal-auth .auth-submit-btn,
.modal-auth .auth-divider,
.modal-auth .auth-links,
.modal-auth .auth-terms {
  padding-left: 2rem;
  padding-right: 2rem;
}
.modal-auth .auth-field-group:first-of-type { margin-top: 1.8rem; }
.auth-field-group { margin-bottom: .9rem; }
.auth-label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: .35rem;
}
.auth-input-wrap {
  position: relative;
}
.auth-input-wrap i {
  position: absolute;
  left: .95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: .85rem;
  pointer-events: none;
}
.auth-input-wrap input {
  padding-left: 2.6rem !important;
  margin: 0 !important;
  border-radius: 10px !important;
  border: 1.5px solid #e0ddd6 !important;
  background: #fdfcf9 !important;
  font-size: .9rem !important;
  transition: border-color var(--transition), box-shadow var(--transition) !important;
}
.auth-input-wrap input:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(201,168,76,.12) !important;
}
.auth-submit-btn {
  margin: 1.2rem 0 .3rem !important;
  border-radius: 10px !important;
  padding: .85rem !important;
  font-size: .92rem !important;
  letter-spacing: .04em !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .6rem !important;
  width: calc(100% - 4rem) !important;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: .8rem;
  color: var(--muted);
  font-size: .78rem;
  margin: .4rem 0;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(201,168,76,.2);
}
.auth-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding-bottom: 1.8rem;
  margin-top: .2rem;
}
.auth-text-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: .82rem;
  color: var(--gold-dk);
  font-family: var(--sans);
  padding: 0;
}
.auth-text-btn:hover { color: var(--gold); text-decoration: underline; }
.auth-link-sep { color: var(--muted); }
.auth-terms {
  font-size: .73rem;
  color: var(--muted);
  text-align: center;
  padding-bottom: 1.8rem;
  margin-top: .5rem;
  line-height: 1.6;
}

/* Modal close button positioning for auth modals */
.modal-auth .modal-close {
  color: rgba(255,255,255,.6) !important;
  top: .9rem !important;
  right: 1rem !important;
  z-index: 10;
}
.modal-auth .modal-close:hover { color: #fff !important; }

/* ── Logout button refinement ─────────────────────────────────── */
#logoutBtn.btn-outline {
  font-size: .78rem !important;
  padding: .3rem .85rem !important;
  border-color: rgba(201,168,76,.4) !important;
}

/* ── Header logo image sizing fix ─────────────────────────────── */
.logo-area { overflow: visible !important; }
.logo-area h1 { white-space: nowrap !important; }

@media (max-width: 480px) {
  .top-bar { height: 56px; min-height: 56px; }
  .header-logo-img { max-height: 38px !important; max-width: 180px !important; }
  .auth-submit-btn { width: calc(100% - 2.4rem) !important; }
  .modal-auth .auth-field-group,
  .modal-auth .auth-submit-btn,
  .modal-auth .auth-divider,
  .modal-auth .auth-links,
  .modal-auth .auth-terms { padding-left: 1.2rem; padding-right: 1.2rem; }
}

/* ================================================================
   V2 — Header, Icon, Hero, Animations, Sidebar
   ================================================================ */

/* ── Header Brand Wrap ────────────────────────────────────────── */
.header-brand-wrap {
  display: flex;
  align-items: center;
  gap: .6rem;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  flex-shrink: 0;
}
.header-icon-slot {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
}
.header-icon-img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}
.header-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 1px;
}
.hbt-main {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .04em;
  white-space: nowrap;
}
.hbt-sub {
  font-family: var(--sans);
  font-size: clamp(.55rem, 1.2vw, .68rem);
  font-weight: 500;
  color: var(--gold);
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── User Pill (redesigned) ───────────────────────────────────── */
.user-pill {
  display: flex;
  align-items: center;
  gap: .45rem;
  background: rgba(11,28,44,.06);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: 30px;
  padding: .22rem .7rem .22rem .28rem;
  max-width: 140px;
}
.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dk));
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--sans);
}
.user-pill-name {
  font-size: .8rem;
  color: var(--navy);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 80px;
}

/* ── Header Buttons ───────────────────────────────────────────── */
.hdr-signin-btn, .hdr-join-btn, .hdr-signout-btn {
  border-radius: 30px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: .8rem;
  transition: all var(--transition);
  white-space: nowrap;
}
.hdr-signin-btn {
  background: transparent;
  border: 1.5px solid rgba(201,168,76,.45);
  color: var(--navy);
  padding: .32rem .85rem;
}
.hdr-signin-btn:hover { border-color: var(--gold); background: rgba(201,168,76,.07); }
.hdr-join-btn {
  background: linear-gradient(135deg, var(--gold), var(--gold-dk));
  border: none;
  color: #fff;
  padding: .35rem .9rem;
  box-shadow: 0 3px 10px rgba(201,168,76,.3);
}
.hdr-join-btn:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(201,168,76,.4); }
.hdr-signout-btn {
  background: rgba(11,28,44,.06);
  border: 1px solid rgba(201,168,76,.2);
  color: var(--navy);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  padding: 0;
  flex-shrink: 0;
}
.hdr-signout-btn:hover { background: rgba(229,57,53,.1); border-color: rgba(229,57,53,.3); color: #c62828; }

/* ── Sidebar Animations & Polish ──────────────────────────────── */
.sidebar {
  transition: left .32s cubic-bezier(.4,0,.2,1), box-shadow .32s ease !important;
}
.sidebar.open { box-shadow: 6px 0 40px rgba(0,0,0,.22) !important; }
.sidebar-header {
  background: linear-gradient(140deg, #0b1c2c 0%, #152f4a 100%) !important;
  padding: 2.2rem 1.5rem 1.8rem !important;
  border-bottom: 1px solid rgba(201,168,76,.12);
}
.sidebar-header h3 {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.2rem !important;
}
.sidebar-nav a {
  transition: background var(--transition), border-color var(--transition), padding-left var(--transition) !important;
  font-weight: 500;
}
.sidebar-nav a:hover {
  background: rgba(201,168,76,.1) !important;
  border-left-color: var(--gold) !important;
  padding-left: 2.2rem !important;
}
.sidebar-nav a i { width: 18px; text-align: center; color: var(--gold); opacity: .75; }
.sidebar-nav a:hover i { opacity: 1; }
.sidebar-overlay { transition: opacity .32s ease; }

/* ── Hero Animated ────────────────────────────────────────────── */
.hero-animated {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-content-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  width: 100%;
}
.hero-animated > .hero-tag,
.hero-animated > h1,
.hero-animated > p {
  position: relative; z-index: 2;
}

/* Floating gold particles */
.hero-particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero-particles span {
  position: absolute;
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(201,168,76,.5);
  animation: floatDot linear infinite;
}
.hero-particles span:nth-child(1)  { left:10%; top:80%; width:2px; height:2px; animation-duration:12s; animation-delay:0s; }
.hero-particles span:nth-child(2)  { left:25%; top:90%; width:3px; height:3px; animation-duration:16s; animation-delay:2s; }
.hero-particles span:nth-child(3)  { left:40%; top:75%; width:2px; height:2px; animation-duration:10s; animation-delay:4s; }
.hero-particles span:nth-child(4)  { left:55%; top:85%; width:4px; height:4px; animation-duration:14s; animation-delay:1s; }
.hero-particles span:nth-child(5)  { left:70%; top:70%; width:2px; height:2px; animation-duration:11s; animation-delay:3s; }
.hero-particles span:nth-child(6)  { left:80%; top:88%; width:3px; height:3px; animation-duration:18s; animation-delay:5s; }
.hero-particles span:nth-child(7)  { left:15%; top:65%; width:2px; height:2px; animation-duration:9s;  animation-delay:7s; }
.hero-particles span:nth-child(8)  { left:88%; top:78%; width:3px; height:3px; animation-duration:13s; animation-delay:2s; }
.hero-particles span:nth-child(9)  { left:50%; top:92%; width:2px; height:2px; animation-duration:15s; animation-delay:6s; }
.hero-particles span:nth-child(10) { left:33%; top:60%; width:3px; height:3px; animation-duration:17s; animation-delay:4s; }
@keyframes floatDot {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: .7; }
  100% { transform: translateY(-600px) rotate(720deg); opacity: 0; }
}

/* Hero tag animated */
.hero-tag-animated {
  animation: slideDown .6s cubic-bezier(.22,1,.36,1) both;
  animation-delay: .1s;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Word-by-word headline */
.hero-h1-split {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1em;
  font-size: clamp(2.2rem, 7vw, 4rem) !important;
  margin-bottom: 1rem !important;
}
.hero-word {
  display: block;
  opacity: 0;
  animation: wordRise .65s cubic-bezier(.22,1,.36,1) forwards;
  animation-delay: calc(.35s + var(--d, 0ms));
}
@keyframes wordRise {
  from { opacity: 0; transform: translateY(30px) skewY(2deg); }
  to   { opacity: 1; transform: translateY(0) skewY(0); }
}

/* Hero paragraph */
.hero-p-animated {
  opacity: 0;
  animation: fadeInUp .6s ease forwards;
  animation-delay: .75s;
  color: rgba(255,255,255,.8) !important;
  font-size: 1rem !important;
  max-width: 600px;
  margin: 0 auto 1.8rem !important;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* CTA buttons row */
.hero-cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp .6s ease forwards;
  animation-delay: .95s;
  margin-bottom: 1.8rem;
}
.btn-hero-primary {
  display: inline-flex; align-items: center; gap: .6rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-dk));
  color: #fff; border: none; border-radius: 40px;
  padding: .85rem 2rem; font-size: .95rem; cursor: pointer;
  font-family: var(--sans); font-weight: 600;
  box-shadow: 0 6px 24px rgba(201,168,76,.4);
  transition: all var(--transition);
}
.btn-hero-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(201,168,76,.5); }
.btn-hero-primary i { transition: transform var(--transition); }
.btn-hero-primary:hover i { transform: translateX(4px); }
.btn-hero-outline {
  display: inline-flex; align-items: center; gap: .6rem;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.9);
  border: 1.5px solid rgba(255,255,255,.4); border-radius: 40px;
  padding: .85rem 1.8rem; font-size: .95rem; cursor: pointer;
  font-family: var(--sans); backdrop-filter: blur(6px);
  transition: all var(--transition);
}
.btn-hero-outline:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.7); }

/* Trust row */
.hero-trust-row {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: .6rem;
  opacity: 0;
  animation: fadeInUp .6s ease forwards;
  animation-delay: 1.15s;
}
.hero-trust-item {
  font-size: .75rem; color: rgba(255,255,255,.55);
  letter-spacing: .05em; display: flex; align-items: center; gap: .3rem;
}
.hero-trust-item i { color: rgba(201,168,76,.6); }
.hero-trust-sep { color: rgba(255,255,255,.25); }

/* Scroll hint */
.hero-scroll-hint {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  z-index: 2;
  opacity: 0; animation: fadeInUp .4s ease forwards; animation-delay: 1.5s;
}
.hero-scroll-hint span {
  display: block; width: 20px; height: 30px;
  border: 2px solid rgba(255,255,255,.3); border-radius: 10px;
  position: relative; margin: 0 auto;
}
.hero-scroll-hint span::before {
  content: ''; position: absolute; top: 5px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 6px; background: rgba(255,255,255,.5); border-radius: 2px;
  animation: scrollDot 1.5s ease infinite;
}
@keyframes scrollDot {
  0%, 100% { top: 5px; opacity: 1; }
  100%      { top: 16px; opacity: 0; }
}

/* ── Scroll reveal ────────────────────────────────────────────── */
.anim-hidden {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s cubic-bezier(.22,1,.36,1), transform .55s cubic-bezier(.22,1,.36,1);
}
.anim-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
.reveal-strip {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-strip.anim-visible { opacity: 1; transform: none; }

/* ── Metrics strip counter highlight ─────────────────────────── */
.cre-metric-value {
  background: linear-gradient(135deg, var(--gold-lt), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Section entry polish ─────────────────────────────────────── */
section > .section-label { opacity: 0; animation: fadeInUp .5s ease forwards; animation-delay: .1s; }
section > .section-title { opacity: 0; animation: fadeInUp .5s ease forwards; animation-delay: .2s; }
section > .divider-gold  { opacity: 0; animation: fadeInUp .5s ease forwards; animation-delay: .3s; }

/* ── Service card icon glow ───────────────────────────────────── */
.cre-service-card:hover .cre-service-icon {
  background: linear-gradient(135deg, rgba(201,168,76,.25), rgba(201,168,76,.1)) !important;
  box-shadow: 0 0 0 6px rgba(201,168,76,.1);
  transform: scale(1.08);
  transition: all .3s ease;
}

/* header-logo-img now managed by JS */

/* ── Mobile tweaks ────────────────────────────────────────────── */
@media (max-width: 480px) {
  .header-icon-slot { width: 32px; height: 32px; }
  .hbt-sub { display: none; }
  .hbt-main { font-size: .95rem !important; }
  .user-pill-name { display: none; }
  .user-pill { padding: .22rem .28rem; }
  .hero-h1-split { font-size: clamp(1.8rem,8vw,2.8rem) !important; }
}
@media (min-width: 481px) and (max-width: 640px) {
  .hbt-sub { display: none; }
  .hbt-main { font-size: 1rem; }
}

/* ── Sidebar link stagger animation ──────────────────────────── */
.sidebar-link-anim {
  opacity: 0;
  animation: sidebarSlide .35s cubic-bezier(.22,1,.36,1) forwards;
}
.sidebar.open .sidebar-link-anim { animation-play-state: running; }
@keyframes sidebarSlide {
  from { opacity: 0; transform: translateX(-14px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Sidebar overlay fade ─────────────────────────────────────── */
.sidebar-overlay { opacity: 0; transition: opacity .32s ease; }
.sidebar-overlay.visible { opacity: 1; }

/* ── Metrics gradient text fix (webkit fallback) ─────────────── */
@supports not (-webkit-background-clip: text) {
  .cre-metric-value { color: var(--gold); }
}

/* ── Hero section min-height on mobile ───────────────────────── */
@media (max-width: 640px) {
  .hero-animated { min-height: 480px; }
  .hero-content-inner { padding: 4rem 1.2rem 3rem; }
  .hero-trust-row { display: none; }
  .hero-cta-row { gap: .7rem; }
  .btn-hero-primary, .btn-hero-outline { padding: .75rem 1.4rem; font-size: .88rem; }
}

/* ── Admin branding section labels ───────────────────────────── */
.admin-section .card-marble label[style*="gold"] {
  display: block;
  margin-top: .9rem;
}

/* ================================================================
   TICKER BAR
   ================================================================ */
.ticker-bar {
  background: var(--navy);
  overflow: hidden;
  height: 28px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 201;
  border-bottom: 1px solid rgba(201,168,76,.18);
}
.ticker-bar .ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: tickerScroll 42s linear infinite;
  align-items: center;
}
.ticker-bar:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  font-size: .66rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--gold-lt);
  padding: 0 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 500;
}
.ticker-item i { color: var(--gold); font-size: .58rem; }
.ticker-sep { color: var(--gold); font-size: .5rem; opacity: .5; padding: 0 .1rem; }
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
/* sticky header sits below ticker */
.top-bar { top: 28px; }

/* ================================================================
   TESTIMONIAL CAROUSEL
   ================================================================ */
.testimonial-section { overflow: visible; }
.testimonial-nav-btns { display: flex; gap: .5rem; }
.tcarousel-prev, .tcarousel-next {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid rgba(201,168,76,.35);
  background: var(--marble); color: var(--gold-dk);
  cursor: pointer; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.tcarousel-prev:hover, .tcarousel-next:hover {
  background: var(--gold); color: #fff; border-color: var(--gold);
}
.testimonial-carousel-wrap { overflow: hidden; border-radius: var(--r-md); }
.testimonial-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 1.2rem;
}
.testimonial-carousel::-webkit-scrollbar { display: none; }
.testimonial-slide {
  flex: 0 0 calc(min(100%, 420px));
  scroll-snap-align: start;
}
.tslide-inner {
  background: var(--marble);
  border-radius: var(--r-md);
  border: 1px solid rgba(201,168,76,.15);
  box-shadow: var(--sh-sm);
  padding: 2rem 1.8rem;
  height: 100%;
  display: flex; flex-direction: column;
}
.tslide-quote { color: rgba(201,168,76,.25); font-size: 2rem; line-height: 1; margin-bottom: .3rem; }
.tslide-text { font-style: italic; line-height: 1.75; flex: 1; color: var(--text); margin: .5rem 0 1.2rem; }
.tslide-author { display: flex; align-items: center; gap: .8rem; border-top: 1px solid rgba(201,168,76,.12); padding-top: 1rem; }
.tslide-img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.tslide-name { display: block; font-weight: 700; font-size: .9rem; color: var(--navy); }
.tslide-role { font-size: .76rem; color: var(--muted); display: block; margin-top: .15rem; }
.tcarousel-dots { display: flex; gap: .5rem; justify-content: center; margin-top: 1.1rem; }
.tcarousel-dot {
  width: 7px; height: 7px; border-radius: 50%; background: rgba(201,168,76,.2);
  border: none; cursor: pointer; transition: all .25s;
}
.tcarousel-dot.active { background: var(--gold); width: 22px; border-radius: 4px; }

/* ================================================================
   PREMIUM DASHBOARD
   ================================================================ */
.dash-page { padding-bottom: 2rem; }
.dash-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, #0e2035 55%, #162a40 100%);
  border-radius: var(--r-lg); margin-bottom: 1.4rem;
}
.dash-hero-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(201,168,76,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,.05) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at 75% 50%, black 20%, transparent 70%);
}
.dash-hero-inner {
  position: relative; z-index: 1;
  padding: 2rem 1.8rem;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 1.2rem;
}
.dash-hero-left { display: flex; align-items: center; gap: 1.1rem; }
.dash-hero-avatar {
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dk));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: #fff;
  border: 2.5px solid rgba(201,168,76,.45); flex-shrink: 0;
}
.dash-hero-greeting { color: rgba(255,255,255,.5); font-size: .75rem; letter-spacing: .09em; text-transform: uppercase; margin: 0 0 .2rem; }
.dash-hero-name { font-family: var(--serif); font-size: 1.55rem; color: #fff; margin: 0; line-height: 1.15; }
.dash-verify-cta {
  background: rgba(201,168,76,.15); border: 1px solid rgba(201,168,76,.35);
  color: var(--gold-lt); font-size: .72rem; border-radius: 20px;
  padding: .3rem .8rem; cursor: pointer; font-family: var(--sans);
  display: inline-flex; align-items: center; gap: .35rem;
}
.dash-hero-quick { display: flex; gap: .55rem; flex-wrap: wrap; }
.dash-qbtn {
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  background: rgba(255,255,255,.07); border: 1px solid rgba(201,168,76,.2);
  border-radius: 12px; padding: .65rem .85rem;
  color: rgba(255,255,255,.75); cursor: pointer;
  font-size: .67rem; letter-spacing: .04em; text-transform: uppercase;
  min-width: 54px; transition: all .2s;
}
.dash-qbtn i { font-size: 1.05rem; color: var(--gold); margin-bottom: .1rem; }
.dash-qbtn:hover { background: rgba(201,168,76,.18); border-color: var(--gold); color: #fff; }

/* KPI row */
.dash-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem; margin-bottom: 1.4rem;
}
.dash-kpi-card {
  background: var(--marble); border-radius: var(--r-md);
  border: 1px solid rgba(201,168,76,.14); box-shadow: var(--sh-sm);
  padding: 1.15rem 1.2rem;
  display: flex; align-items: flex-start; gap: .85rem;
  transition: transform .18s, box-shadow .18s;
}
.dash-kpi-card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.dash-kpi-accent { border-left: 3px solid var(--gold); }
.dash-kpi-icon {
  width: 38px; height: 38px; border-radius: 9px;
  background: rgba(201,168,76,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; color: var(--gold); flex-shrink: 0;
}
.dash-kpi-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin-bottom: .3rem; }
.dash-kpi-val { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--navy); line-height: 1; }
.dash-kpi-sub { font-size: .68rem; color: var(--muted); margin-top: .25rem; }

/* Main grid */
.dash-main-grid {
  display: grid; grid-template-columns: 260px 1fr; gap: 1.2rem; margin-bottom: 1.4rem;
}
.dash-chart-panel, .dash-activity-panel {
  background: var(--marble); border-radius: var(--r-md);
  border: 1px solid rgba(201,168,76,.14); box-shadow: var(--sh-sm); padding: 1.3rem;
}
.dash-panel-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem;
}
.dash-panel-header h3 { font-size: .95rem; }
.dash-link-btn {
  background: none; border: none; color: var(--gold-dk);
  font-size: .76rem; cursor: pointer; font-family: var(--sans);
  display: inline-flex; align-items: center; gap: .3rem;
}
.dash-link-btn:hover { color: var(--gold); }
.dash-chart-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  text-align: center; pointer-events: none;
}
.dash-chart-total { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.dash-chart-total-lbl { font-size: .65rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.dash-chart-legend { display: flex; flex-direction: column; gap: .5rem; margin-top: .9rem; }
.dash-legend-row { display: flex; align-items: center; gap: .55rem; font-size: .78rem; }
.dash-legend-dot { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
.dash-legend-lbl { flex: 1; color: var(--muted); }
.dash-legend-val { font-weight: 600; color: var(--navy); }
.dash-tx-row {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem 0; border-bottom: 1px solid rgba(201,168,76,.07);
}
.dash-tx-row:last-child { border-bottom: none; }
.dash-tx-icon {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; flex-shrink: 0;
}
.dash-tx-credit { background: rgba(46,125,50,.1); color: #2e7d32; }
.dash-tx-debit { background: rgba(201,168,76,.1); color: var(--gold-dk); }
.dash-tx-info { flex: 1; min-width: 0; }
.dash-tx-label { font-size: .83rem; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-tx-date { font-size: .68rem; color: var(--muted); margin-top: .12rem; }
.dash-tx-amount { font-weight: 700; font-size: .88rem; white-space: nowrap; flex-shrink: 0; }
.dash-loading { display: flex; justify-content: center; align-items: center; padding: 2rem; color: var(--muted); font-size: 1.2rem; }
.dash-empty { text-align: center; padding: 2rem 0; color: var(--muted); }
.dash-empty i { font-size: 1.8rem; color: rgba(201,168,76,.25); display: block; margin-bottom: .5rem; }
.dash-opp-card { transition: transform .2s, box-shadow .2s; }
.dash-opp-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.dash-security-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1rem; }
.dash-field-label { display: block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--navy); margin-bottom: .4rem; }
@media (max-width: 768px) {
  .dash-main-grid { grid-template-columns: 1fr; }
  .dash-hero-inner { flex-direction: column; align-items: flex-start; }
}

/* ================================================================
   HERITAGE PAGE
   ================================================================ */
.heritage-page { padding-bottom: 0; }
.heritage-hero {
  position: relative; min-height: 380px;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; border-radius: var(--r-lg); margin-bottom: 0;
}
.heritage-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.heritage-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,28,44,.92) 0%, rgba(11,28,44,.5) 60%, transparent 100%);
}
.heritage-hero-content {
  position: relative; z-index: 1; padding: 2.5rem 2rem 0;
}
.heritage-hero-stats {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: center;
  background: rgba(11,28,44,.75); backdrop-filter: blur(8px);
  border-top: 1px solid rgba(201,168,76,.2);
  padding: 1.1rem 2rem; gap: 0;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.her-stat { flex: 1; min-width: 100px; text-align: center; padding: .4rem 1rem; }
.her-stat-val { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--gold); }
.her-stat-lbl { font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.5); margin-top: .2rem; }
.her-stat-div { width: 1px; background: rgba(201,168,76,.18); align-self: stretch; }
.heritage-section { padding: 3rem 0; }
.heritage-section-dark { background: var(--navy); margin: 0 calc(-1 * var(--page-pad, 2rem)); padding: 3rem var(--page-pad, 2rem); }
.heritage-section-cream { background: rgba(201,168,76,.04); margin: 0 calc(-1 * var(--page-pad, 2rem)); padding: 3rem var(--page-pad, 2rem); }
.heritage-story-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: center; }
.heritage-img-stack { position: relative; }
.heritage-img-stack img { width: 100%; border-radius: var(--r-md); object-fit: cover; aspect-ratio: 4/3; }
.heritage-img-accent {
  position: absolute; bottom: -1rem; right: -1rem;
  background: var(--navy); color: var(--gold-lt);
  padding: .8rem 1rem; border-radius: var(--r-sm);
  border: 1px solid rgba(201,168,76,.25);
  display: flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  box-shadow: var(--sh-sm);
}
.heritage-img-accent i { color: var(--gold); }
/* Timeline */
.heritage-timeline { position: relative; max-width: 680px; margin: 0 auto; }
.heritage-timeline::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 1px; background: rgba(201,168,76,.2); transform: translateX(-50%);
}
.htl-item {
  display: grid; grid-template-columns: 1fr 28px 1fr;
  align-items: center; gap: 1rem; margin-bottom: 2.5rem;
}
.htl-right { direction: rtl; }
.htl-right .htl-body { direction: ltr; }
.htl-year {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 700;
  color: var(--gold); text-align: right;
}
.htl-right .htl-year { text-align: left; }
.htl-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold); border: 3px solid var(--navy); justify-self: center;
  box-shadow: 0 0 0 4px rgba(201,168,76,.2);
}
.htl-body h4 { font-size: .95rem; color: #fff; margin-bottom: .3rem; }
.htl-body p { font-size: .82rem; color: rgba(255,255,255,.6); line-height: 1.65; }
/* Values */
.heritage-values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 1.4rem; }
.heritage-value-card {
  background: var(--marble); border-radius: var(--r-md);
  border: 1px solid rgba(201,168,76,.14); box-shadow: var(--sh-sm);
  padding: 1.8rem; transition: transform .2s, box-shadow .2s;
}
.heritage-value-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.hv-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(201,168,76,.1); border: 1px solid rgba(201,168,76,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1.1rem; margin-bottom: 1rem;
}
.heritage-value-card h3 { font-size: 1rem; margin-bottom: .5rem; color: var(--navy); }
.heritage-value-card p { font-size: .86rem; line-height: 1.7; }
/* Leader cards */
.heritage-leader-card {
  background: var(--marble); border-radius: var(--r-md);
  border: 1px solid rgba(201,168,76,.14); box-shadow: var(--sh-sm);
  overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.heritage-leader-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.heritage-leader-img { width: 100%; height: 200px; object-fit: cover; object-position: top; }
.heritage-leader-body { padding: 1.1rem 1.2rem; }
.heritage-leader-body h3 { font-size: 1rem; margin-bottom: .2rem; }
.heritage-leader-role { font-size: .75rem; color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .5rem; }
.heritage-leader-bio { font-size: .82rem; color: var(--muted); line-height: 1.6; }
@media (max-width: 768px) {
  .heritage-story-grid { grid-template-columns: 1fr; }
  .heritage-img-accent { display: none; }
  .heritage-timeline::before { left: 14px; transform: none; }
  .htl-item { grid-template-columns: 28px 1fr; direction: ltr; }
  .htl-item .htl-year { display: none; }
  .htl-right { direction: ltr; }
}

/* ================================================================
   GOVERNANCE PAGE
   ================================================================ */
.governance-page { padding-bottom: 2rem; }
.governance-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0e2035 100%);
  border-radius: var(--r-lg); padding: 3rem 2rem;
  text-align: center; margin-bottom: 1.8rem; position: relative; overflow: hidden;
}
.governance-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23c9a84c' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.gov-tab-nav {
  display: flex; gap: .5rem; flex-wrap: wrap;
  background: rgba(201,168,76,.06); border: 1px solid rgba(201,168,76,.15);
  border-radius: var(--r-md); padding: .4rem; margin-bottom: 1.6rem;
}
.gov-tab {
  flex: 1; min-width: 130px; padding: .65rem 1rem;
  background: none; border: none; border-radius: 10px;
  color: var(--muted); font-size: .82rem; cursor: pointer;
  font-family: var(--sans); font-weight: 500;
  display: flex; align-items: center; gap: .45rem; justify-content: center;
  transition: all .2s;
}
.gov-tab i { font-size: .78rem; }
.gov-tab.active { background: var(--navy); color: var(--gold-lt); box-shadow: var(--sh-sm); }
.gov-tab:hover:not(.active) { background: rgba(201,168,76,.08); color: var(--navy); }
.gov-panel-inner { max-width: 760px; }
.gov-panel-inner h2 { font-family: var(--serif); font-size: 1.8rem; color: var(--navy); margin-bottom: .4rem; display: flex; align-items: center; gap: .7rem; }
.gov-icon { color: var(--gold); font-size: 1.5rem; }
.gov-effective { font-size: .78rem; color: var(--muted); margin-bottom: 1.8rem; border-bottom: 1px solid rgba(201,168,76,.12); padding-bottom: .8rem; }
.gov-section { margin-bottom: 1.6rem; }
.gov-section h3 { font-size: 1rem; color: var(--navy); margin-bottom: .5rem; font-family: var(--serif); }
.gov-section p { font-size: .9rem; line-height: 1.8; color: #444; }
.gov-disclosure-box {
  background: rgba(201,168,76,.07); border: 1px solid rgba(201,168,76,.25);
  border-radius: var(--r-md); padding: 1.2rem 1.4rem;
  display: flex; gap: 1rem; align-items: flex-start;
  margin-bottom: 1.6rem;
}
.gov-disclosure-box > i { color: var(--gold); font-size: 1.2rem; margin-top: .15rem; flex-shrink: 0; }
.gov-disclosure-box strong { display: block; color: var(--navy); margin-bottom: .4rem; }
.gov-disclosure-box p { font-size: .85rem; line-height: 1.7; margin: 0; }
.gov-compliance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1.2rem; }
.gov-compliance-card {
  background: rgba(201,168,76,.05); border: 1px solid rgba(201,168,76,.15);
  border-radius: var(--r-md); padding: 1.4rem;
}
.gcc-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; margin-bottom: .9rem;
}
.gov-compliance-card h4 { font-size: .9rem; color: var(--navy); margin-bottom: .45rem; }
.gov-compliance-card p { font-size: .82rem; line-height: 1.65; color: var(--muted); }

/* ================================================================
   SCROLL REVEAL — corner slide-in (Brookfield-style)
   ================================================================ */
.anim-hidden {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s cubic-bezier(.22,1,.36,1), transform .55s cubic-bezier(.22,1,.36,1);
}
.anim-visible {
  opacity: 1 !important;
  transform: none !important;
}
/* Every other card slides from left/right for variety */
.cre-services-grid > *:nth-child(odd).anim-hidden  { transform: translateX(-24px) translateY(16px); }
.cre-services-grid > *:nth-child(even).anim-hidden { transform: translateX(24px) translateY(16px); }
.heritage-value-card:nth-child(odd).anim-hidden    { transform: translateX(-18px) translateY(12px); }
.heritage-value-card:nth-child(even).anim-hidden   { transform: translateX(18px) translateY(12px); }

/* ================================================================
   SIGNUP MODAL — Institutional Extended Form
   ================================================================ */
.signup-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
}
@media (max-width: 520px) { .signup-row-2 { grid-template-columns: 1fr; gap: .5rem; } }
.auth-select-wrap select {
  width: 100%;
  padding: .72rem .9rem .72rem 2.4rem;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  background: #fafaf8;
  color: var(--text);
  font-size: .88rem;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font-family: var(--sans);
}
.auth-select-wrap select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,.12); }
.auth-select-wrap { position: relative; }
.auth-select-wrap i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .85rem; pointer-events: none; z-index: 1; }
.signup-accredited-check {
  display: flex; align-items: flex-start; gap: .6rem;
  background: rgba(201,168,76,.06); border: 1px solid rgba(201,168,76,.2);
  border-radius: 10px; padding: .9rem; margin: .4rem 0 .8rem;
}
/* Make signup modal wider for 2-col form */
#signupModal .modal-content.modal-auth { max-width: 680px; }

/* ================================================================
   ALLOCATION SUCCESS MODAL
   ================================================================ */
.alloc-success-box {
  text-align: center;
  max-width: 380px;
  padding: 2.2rem 2rem;
}
.alloc-success-icon {
  font-size: 3rem;
  color: #4caf50;
  margin-bottom: .8rem;
  animation: successPop .4s cubic-bezier(.34,1.56,.64,1);
}
@keyframes successPop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.alloc-success-box h3 { font-family: var(--serif); font-size: 1.4rem; color: var(--navy); margin-bottom: 1rem; }
.alloc-success-summary { text-align: left; }
.alloc-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .55rem 0; border-bottom: 1px solid rgba(201,168,76,.1);
  font-size: .88rem;
}
.alloc-row:last-child { border-bottom: none; }
.alloc-row span:first-child { color: var(--muted); }
.alloc-row span:last-child { font-weight: 600; color: var(--navy); }

/* ================================================================
   ADMIN STUDIO — Scroll Quick Nav + Input Row
   ================================================================ */
.admin-scroll-nav {
  display: flex; gap: .5rem; margin-bottom: .8rem;
}
.admin-scroll-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(201,168,76,.1); border: 1px solid rgba(201,168,76,.25);
  color: var(--gold-dk); font-size: .78rem; border-radius: 8px;
  padding: .4rem .9rem; cursor: pointer; font-family: var(--sans);
  transition: all .2s;
}
.admin-scroll-btn:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.admin-input-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .8rem;
  margin-bottom: .8rem;
}
.admin-input-row label { display: block; margin-bottom: .3rem; }

/* ================================================================
   PATCH FIXES — Mobile, Signup, KB, Service Card Images
   ================================================================ */

/* ── Signup Modal: scrollable on mobile ───────────────────────── */
.signup-modal-scroll {
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 480px !important;
}
@media (max-width: 520px) {
  .signup-modal-scroll {
    max-height: 88vh;
    border-radius: 16px 16px 0 0 !important;
  }
  #signupModal {
    align-items: flex-end !important;
  }
}

/* ── Auth buttons: properly centered and consistent ───────────── */
.auth-submit-btn {
  margin-left: auto !important;
  margin-right: auto !important;
  display: flex !important;
}
.auth-links {
  justify-content: center !important;
}
.modal-auth .auth-field-group:first-of-type { margin-top: 1.6rem !important; }

/* ── Mobile: show full domain name in header ─────────────────── */
@media (max-width: 480px) {
  .hbt-main {
    font-size: clamp(.85rem, 3.5vw, 1rem) !important;
    white-space: normal !important;
    line-height: 1.15 !important;
    max-width: calc(100vw - 140px);
  }
  .header-brand-wrap { max-width: calc(100vw - 110px); }
  /* Keep brand name visible even on very small screens */
  .hbt-sub { display: block !important; font-size: .55rem !important; }
}
@media (min-width: 481px) and (max-width: 640px) {
  .hbt-sub { display: block !important; font-size: .6rem !important; }
}

/* ── Sidebar profile name: never truncate on mobile ──────────── */
.sidebar-nav > div > div > div:first-child {
  max-width: 180px !important;
}

/* ── Service Card Image ───────────────────────────────────────── */
.cre-service-img-wrap {
  width: 100%;
  height: 140px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
}
.cre-service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}
.cre-service-card:hover .cre-service-img {
  transform: scale(1.04);
}
@media (max-width: 600px) {
  .cre-service-img-wrap { height: 120px; }
}

/* ── Knowledge Base ───────────────────────────────────────────── */
.kb-nav-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: 1.6rem;
}
.kb-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem 1rem;
  border-radius: 30px;
  border: 1.5px solid rgba(201,168,76,.3);
  background: rgba(201,168,76,.05);
  color: var(--muted);
  font-size: .8rem;
  font-family: var(--sans);
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
  font-weight: 500;
}
.kb-chip:hover, .kb-chip.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.kb-chip i { font-size: .72rem; }

.kb-section { padding: 1.4rem 1.5rem; }
.kb-section-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(201,168,76,.12);
  margin-bottom: 1rem;
}
.kb-section-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(201,168,76,.18), rgba(201,168,76,.06));
  border: 1px solid rgba(201,168,76,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--gold);
  flex-shrink: 0;
}
.kb-section-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: .2rem;
}
.kb-section-sub {
  font-size: .8rem;
  color: var(--muted);
  margin: 0;
}

.kb-items { display: flex; flex-direction: column; gap: .2rem; }
.kb-item { border-bottom: 1px solid rgba(201,168,76,.08); }
.kb-item:last-child { border-bottom: none; }
.kb-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: .8rem 0;
  font-size: .92rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  font-family: var(--sans);
  display: flex;
  align-items: center;
  gap: .6rem;
  transition: color .2s;
}
.kb-q:hover { color: var(--gold-dk); }
.kb-chevron {
  font-size: .65rem;
  color: var(--gold);
  transition: transform .25s ease;
  flex-shrink: 0;
}
.kb-item-open .kb-chevron { transform: rotate(90deg); }
.kb-a {
  display: none;
  padding: .2rem 0 1rem 1.4rem;
}
.kb-item-open .kb-a { display: block; }
.kb-a p { font-size: .9rem; line-height: 1.75; color: #444; }

/* KB Highlight note (crypto) */
.kb-highlight-note {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(201,168,76,.07);
  border: 1px solid rgba(201,168,76,.28);
  border-radius: var(--r-sm);
  padding: 1rem 1.2rem;
  margin: .5rem 0 1rem;
}
.kb-highlight-note > i {
  color: var(--gold);
  font-size: 1.1rem;
  margin-top: .15rem;
  flex-shrink: 0;
}
.kb-highlight-note strong { display: block; color: var(--navy); margin-bottom: .35rem; font-size: .92rem; }
.kb-highlight-note p { font-size: .85rem; line-height: 1.7; margin: 0; color: #4a4a4a; }

/* KB Heritage stats */
.kb-heritage-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: .8rem;
  background: rgba(201,168,76,.05);
  border: 1px solid rgba(201,168,76,.15);
  border-radius: var(--r-sm);
  padding: 1rem;
  margin-top: .5rem;
}
.kb-her-stat { text-align: center; }
.kb-her-val { display: block; font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: var(--gold); line-height: 1; }
.kb-her-lbl { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: .3rem; }

/* KB Governance grid */
.kb-gov-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .9rem;
  margin-top: .8rem;
}
.kb-gov-card {
  background: rgba(201,168,76,.04);
  border: 1px solid rgba(201,168,76,.14);
  border-radius: var(--r-sm);
  padding: 1rem;
}
.kb-gov-card i { font-size: 1.1rem; color: var(--gold); margin-bottom: .6rem; display: block; }
.kb-gov-card h4 { font-size: .88rem; color: var(--navy); margin-bottom: .4rem; }
.kb-gov-card p { font-size: .8rem; line-height: 1.6; margin: 0; }

/* ── Dashboard grid: collapse on mobile ──────────────────────── */
@media (max-width: 700px) {
  .dash-main-grid { grid-template-columns: 1fr !important; }
}

/* ── Fix sidebar h3 flex on mobile ───────────────────────────── */
#sidebarBrand {
  display: flex !important;
  align-items: center !important;
  gap: .5rem !important;
  font-size: 1.05rem !important;
  flex-wrap: nowrap !important;
  overflow: hidden;
}
#sidebarBrand span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Ensure page container never causes overflow on mobile ───── */
@media (max-width: 480px) {
  .page-container { padding: .8rem; }
  .cre-services-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* ── Modal overlay alignment fix ─────────────────────────────── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,.55);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal.open { display: flex; }

