
:root{
  --bg:#090909; --surface:#111111; --surface-2:#171717; --line:#2a2a2a;
  --text:#f4f1e8; --muted:#a5a198; --gold:#c9aa6a; --gold-soft:#ead9b1;
  --danger:#d97f7f; --radius:22px; --shadow:0 18px 60px rgba(0,0,0,.34);
}
*{box-sizing:border-box} html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}
a{color:inherit;text-decoration:none} button,input{font:inherit}
.auth-shell{min-height:100vh;display:grid;place-items:center;padding:28px;background:radial-gradient(circle at 20% 15%,rgba(201,170,106,.12),transparent 28%),radial-gradient(circle at 80% 85%,rgba(201,170,106,.06),transparent 24%),#090909}
.auth-card{width:min(100%,470px);background:linear-gradient(180deg,#111,#0d0d0d);border:1px solid #252525;border-radius:28px;padding:34px;box-shadow:var(--shadow)}
.brand-lockup{display:flex;align-items:center;gap:14px}.brand-mark{width:44px;height:44px;border:1px solid var(--gold);border-radius:50%;display:grid;place-items:center;color:var(--gold-soft);font-family:Georgia,serif;font-size:22px}
.brand-name{font-family:Georgia,serif;letter-spacing:.14em;font-size:17px}.brand-sub{font-size:9px;letter-spacing:.34em;color:var(--gold);margin-top:4px}
.auth-copy{margin:58px 0 28px}.eyebrow,.card-label{font-size:11px;letter-spacing:.18em;color:var(--gold);font-weight:700}
.auth-copy h1,.topbar h1{font-family:Georgia,serif;font-weight:500;margin:.45rem 0}.auth-copy h1{font-size:42px}.auth-copy p,.muted{color:var(--muted)}
.auth-form{display:grid;gap:18px}.auth-form label{display:grid;gap:8px;color:#d8d3c8;font-size:13px}.auth-form input{width:100%;padding:15px 16px;border-radius:14px;border:1px solid #313131;background:#0b0b0b;color:#fff;outline:none}.auth-form input:focus{border-color:var(--gold)}
.btn{border:0;border-radius:14px;padding:14px 18px;font-weight:700;cursor:pointer}.btn-primary{background:var(--gold);color:#111}.btn-secondary{background:transparent;color:var(--gold-soft);border:1px solid #4d4230}
.text-link{background:none;border:0;color:var(--gold-soft);cursor:pointer;padding:3px 0;text-align:left}.form-message{min-height:22px;margin-top:12px;color:var(--danger);font-size:13px}.auth-note{font-size:12px;color:#6f6b64;margin:28px 0 0}
.app-shell{min-height:100vh}.sidebar{position:fixed;left:0;top:0;bottom:0;width:250px;padding:28px 22px;border-right:1px solid #1d1d1d;background:#0b0b0b;display:flex;flex-direction:column;z-index:20}.sidebar-brand{margin-bottom:44px}
.side-nav{display:grid;gap:8px}.side-nav a{color:#b8b3aa;padding:12px 14px;border-radius:12px;display:flex;align-items:center;justify-content:space-between}.side-nav a:hover,.side-nav a.active{background:#151515;color:#f2ead8}
.logout-btn{margin-top:auto;background:none;border:0;color:#7f7a72;text-align:left;padding:12px 14px;cursor:pointer}.badge{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--gold);color:#111;font-size:11px;font-weight:800}.badge.large{min-width:28px;height:28px}
.content{margin-left:250px;padding:34px;max-width:1450px}.topbar{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:28px}.topbar h1{font-size:34px}.profile-chip{width:44px;height:44px;border-radius:50%;border:1px solid #3b3529;background:#131313;color:var(--gold-soft);cursor:pointer}
.hero-card{min-height:220px;border-radius:28px;padding:30px;border:1px solid #2a2419;background:radial-gradient(circle at 80% 20%,rgba(201,170,106,.15),transparent 24%),linear-gradient(135deg,#17130d,#101010 58%);display:flex;flex-direction:column;justify-content:space-between;margin-bottom:24px;box-shadow:var(--shadow)}
.portfolio-value{font-family:Georgia,serif;font-size:54px;margin-top:10px}.inline-link{display:inline-block;color:var(--gold-soft);margin-top:16px;font-size:14px}.grid-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.panel{background:var(--surface);border:1px solid #232323;border-radius:var(--radius);padding:24px}.panel h2{font-family:Georgia,serif;font-weight:500;margin:.35rem 0 1rem;font-size:24px}.panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.status-pill{border:1px solid #4a412f;color:var(--gold-soft);padding:7px 10px;border-radius:999px;font-size:11px}.detail-row{display:flex;justify-content:space-between;gap:18px;padding:12px 0;border-top:1px solid #242424;font-size:14px}.detail-row span{color:var(--muted)}
.new-dot{width:10px;height:10px;border-radius:50%;background:var(--gold);margin-top:8px;box-shadow:0 0 18px rgba(201,170,106,.65)}.assistance,.profile-panel{margin-top:20px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.gold-card-panel{display:grid;grid-template-columns:1.05fr .95fr;gap:20px;align-items:center}.gold-card-visual{min-height:210px;border-radius:22px;padding:24px;background:linear-gradient(135deg,#1d1a14 0%,#070707 50%,#211a0f 100%);border:1px solid #6c5630;box-shadow:inset 0 0 40px rgba(201,170,106,.08),0 15px 38px rgba(0,0,0,.25);display:flex;flex-direction:column;justify-content:space-between}
.gold-card-top,.gold-card-bottom{display:flex;justify-content:space-between;font-size:10px;letter-spacing:.14em;color:var(--gold-soft)}.gold-card-title{font-family:Georgia,serif;font-size:27px;color:#f3e7c9}.gold-card-number{letter-spacing:.18em;color:#cbbd9d}.gold-meta{display:flex;flex-direction:column;justify-content:center}
.tabs{display:flex;gap:8px;margin-bottom:22px}.tab-btn{background:#111;border:1px solid #242424;color:#aaa;padding:11px 15px;border-radius:999px;cursor:pointer}.tab-btn.active{color:#111;background:var(--gold);border-color:var(--gold)}.tab-panel{display:none}.tab-panel.active{display:block}
.chart-card{min-height:100%}.chart-wrap{margin-top:14px;padding:8px 0}.chart-wrap svg{width:100%;height:auto;overflow:visible}.axis{stroke:#3a3a3a;stroke-width:1}.chart-line{fill:none;stroke:#d3b572;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.chart-point{fill:#e2ca96}.chart-wrap text{fill:#8f8a81;font-size:13px}.chart-note{font-size:12px;line-height:1.5;color:#817c73;border-top:1px solid #242424;padding-top:16px}
.docs-panel{margin-top:20px}.document-row{display:flex;justify-content:space-between;gap:20px;align-items:center;padding-top:14px}.document-row p{margin:.35rem 0 0}
.history-card{padding:4px 24px}.history-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px 0;border-bottom:1px solid #242424}.history-item:last-child{border-bottom:0}.history-item h3{margin:.3rem 0;font-family:Georgia,serif;font-weight:500;font-size:22px}.history-item.current{background:linear-gradient(90deg,rgba(201,170,106,.06),transparent);margin:0 -12px;padding-left:12px;padding-right:12px;border-radius:14px}.history-status{font-size:12px;color:#9f9a90}
.bottom-nav{display:none}
@media (max-width:900px){.sidebar{display:none}.content{margin-left:0;padding:24px 18px 100px}.grid-two{grid-template-columns:1fr}.topbar h1{font-size:30px}.portfolio-value{font-size:44px}.hero-card{min-height:205px}.gold-card-panel{grid-template-columns:1fr}.bottom-nav{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:0;right:0;bottom:0;z-index:30;background:rgba(10,10,10,.95);backdrop-filter:blur(18px);border-top:1px solid #242424;padding:8px max(8px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}.bottom-nav a{font-size:10px;color:#8f8a81;display:grid;place-items:center;gap:4px;padding:8px 2px}.bottom-nav a span{font-size:17px}.bottom-nav a.active{color:var(--gold-soft)}}
@media (max-width:520px){.auth-shell{padding:0}.auth-card{min-height:100vh;border-radius:0;border:0;padding:28px 22px}.auth-copy{margin-top:70px}.auth-copy h1{font-size:38px}.content{padding-top:22px}.topbar{align-items:center}.topbar h1{font-size:28px}.hero-card,.panel{border-radius:20px}.portfolio-value{font-size:40px}.assistance{align-items:flex-start;flex-direction:column}.btn-secondary{width:100%}.history-item{align-items:flex-start}.gold-card-visual{min-height:190px}.gold-card-title{font-size:24px}}


/* V1.2 — WELCOME SCREEN */
.welcome-body{margin:0;background:#080808;overflow:hidden}
.welcome-screen{
  position:relative;min-height:100svh;width:100%;display:grid;place-items:center;
  isolation:isolate;background-image:url("assets/centurion-welcome-bg.png");
  background-size:cover;background-position:center 58%;
}
.welcome-overlay{
  position:absolute;inset:0;z-index:-1;
  background:
    linear-gradient(180deg,rgba(4,5,7,.45) 0%,rgba(5,5,5,.62) 48%,rgba(3,3,3,.86) 100%),
    radial-gradient(circle at 50% 38%,rgba(0,0,0,.04),rgba(0,0,0,.42) 76%);
}
.welcome-content{
  width:min(88vw,620px);text-align:center;display:flex;flex-direction:column;
  align-items:center;padding:clamp(36px,8vh,90px) 20px 42px;
  text-shadow:0 4px 28px rgba(0,0,0,.6);
}
.welcome-logo{
  width:min(72vw,430px);height:auto;display:block;
  filter:drop-shadow(0 8px 28px rgba(0,0,0,.5));
}
.welcome-private{
  margin-top:3px;color:#d6b56e;font-size:clamp(12px,2.2vw,17px);
  font-weight:600;letter-spacing:.46em;padding-left:.46em;
}
.welcome-rule{width:46px;height:1px;background:#c9aa6a;margin:28px 0 22px;opacity:.9}
.welcome-tagline{
  margin:0;color:#f3ede1;font-family:Georgia,serif;font-style:italic;
  font-size:clamp(19px,3.2vw,27px);line-height:1.5;
}
.welcome-enter{
  margin-top:42px;border:1px solid rgba(214,181,110,.72);color:#ead9b1;
  background:rgba(7,7,7,.30);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);
  padding:14px 22px;border-radius:999px;font-size:11px;font-weight:700;
  letter-spacing:.15em;transition:.2s ease;
}
.welcome-enter:hover{background:rgba(201,170,106,.14);border-color:#d6b56e}
@media(max-width:520px){
  .welcome-screen{background-position:center center}
  .welcome-content{justify-content:center;min-height:100svh;padding:50px 20px 34px}
  .welcome-logo{width:min(82vw,360px)}
  .welcome-private{font-size:11px;letter-spacing:.38em;padding-left:.38em}
  .welcome-rule{margin-top:24px}
  .welcome-enter{margin-top:38px}
}


/* V1.3 — WELCOME SCREEN REFINEMENT */
.welcome-body{
  overflow:auto;
  min-height:100%;
}
.welcome-screen{
  min-height:100vh;
  min-height:100svh;
  padding:28px 0;
  background-position:center 56%;
}
.welcome-overlay{
  background:
    linear-gradient(180deg,rgba(2,3,4,.68) 0%,rgba(3,3,3,.74) 45%,rgba(2,2,2,.91) 100%),
    radial-gradient(circle at 50% 38%,rgba(0,0,0,.10),rgba(0,0,0,.58) 78%);
}
.welcome-content{
  width:min(84vw,540px);
  min-height:calc(100svh - 56px);
  justify-content:center;
  padding:42px 20px;
}
.welcome-logo{
  width:min(52vw,315px);
}
.welcome-private{
  margin-top:2px;
  font-size:clamp(10px,1.25vw,14px);
  letter-spacing:.44em;
  padding-left:.44em;
}
.welcome-rule{
  width:40px;
  margin:24px 0 18px;
}
.welcome-tagline{
  font-size:clamp(17px,2vw,23px);
  line-height:1.45;
}
.welcome-enter{
  margin-top:32px;
  padding:12px 20px;
  font-size:10px;
}

@media(max-height:760px) and (min-width:521px){
  .welcome-screen{padding:18px 0}
  .welcome-content{
    min-height:calc(100svh - 36px);
    padding:24px 20px;
  }
  .welcome-logo{width:min(42vw,260px)}
  .welcome-private{font-size:10px}
  .welcome-rule{margin:18px 0 14px}
  .welcome-tagline{font-size:17px}
  .welcome-enter{margin-top:24px}
}

@media(max-width:520px){
  .welcome-body{overflow:auto}
  .welcome-screen{
    min-height:100svh;
    padding:0;
    background-position:center center;
  }
  .welcome-overlay{
    background:
      linear-gradient(180deg,rgba(2,3,4,.60) 0%,rgba(3,3,3,.71) 48%,rgba(2,2,2,.90) 100%),
      radial-gradient(circle at 50% 38%,rgba(0,0,0,.06),rgba(0,0,0,.52) 78%);
  }
  .welcome-content{
    width:90vw;
    min-height:100svh;
    padding:42px 18px 34px;
  }
  .welcome-logo{width:min(67vw,285px)}
  .welcome-private{
    font-size:10px;
    letter-spacing:.34em;
    padding-left:.34em;
  }
  .welcome-rule{margin:22px 0 17px}
  .welcome-tagline{font-size:18px}
  .welcome-enter{margin-top:30px}
}


/* V1.4 — HOME VISUAL HIERARCHY */
.content .grid-two{
  gap:26px;
}
.content .panel{
  transition:border-color .2s ease, background .2s ease, transform .2s ease;
}
.contract-panel{
  background:
    linear-gradient(135deg,rgba(201,170,106,.085),rgba(17,17,17,.98) 44%),
    #111;
  border-color:#4a3d27;
  position:relative;
  overflow:hidden;
}
.contract-panel::before{
  content:"";
  position:absolute;left:0;right:0;top:0;height:2px;
  background:linear-gradient(90deg,#c9aa6a,rgba(201,170,106,.12));
}
.contract-panel .detail-row strong{
  color:#f1dfb6;
}
.gold-card-panel.gold-status-panel{
  grid-column:1 / -1;
  min-height:128px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:22px;
  padding:24px 28px;
  background:
    radial-gradient(circle at 8% 50%,rgba(201,170,106,.13),transparent 26%),
    linear-gradient(110deg,#17140f,#101010 58%,#12100c);
  border-color:#40351f;
  position:relative;
  overflow:hidden;
}
.gold-card-panel.gold-status-panel::before{
  content:"";
  position:absolute;left:0;top:0;bottom:0;width:2px;
  background:#c9aa6a;
}
.gold-status-icon{
  width:54px;height:54px;border-radius:50%;
  display:grid;place-items:center;
  border:1px solid rgba(201,170,106,.7);
  color:#e4c982;font-family:Georgia,serif;font-size:23px;
  background:rgba(201,170,106,.035);
}
.gold-status-copy h2{
  margin:.28rem 0 .35rem;
}
.gold-status-copy p:last-child{
  margin:0;
}
.gold-status-link{
  margin:0;
  white-space:nowrap;
}
.documents-panel{
  background:#121212;
  border-color:#292929;
}
.news-panel{
  background:linear-gradient(145deg,#151515,#101010);
  border-color:#303030;
}
.documents-panel .badge.large{
  box-shadow:0 0 0 5px rgba(201,170,106,.07);
}
.news-panel .new-dot{
  width:12px;height:12px;
  box-shadow:0 0 0 5px rgba(201,170,106,.07),0 0 20px rgba(201,170,106,.45);
}
.referral-panel{
  grid-column:1 / -1;
  background:
    linear-gradient(105deg,#101010 0%,#15130f 100%);
  border-color:#30291d;
}
.referral-panel .detail-row strong{
  color:#e8cd91;
  font-family:Georgia,serif;
  font-size:20px;
}
.assistance{
  margin-top:28px;
  background:#0f0f0f;
  border-color:#292929;
}
.profile-panel{
  margin-top:26px;
  background:#0d0d0d;
  border-color:#202020;
}
@media(min-width:901px){
  .hero-card{margin-bottom:30px}
  .contract-panel{min-height:245px}
  .documents-panel,.news-panel{min-height:215px}
}
@media(max-width:900px){
  .content .grid-two{gap:18px}
  .gold-card-panel.gold-status-panel{
    grid-column:auto;
    grid-template-columns:auto 1fr;
    min-height:auto;
    padding:22px;
  }
  .gold-status-link{
    grid-column:1 / -1;
    margin-top:2px;
  }
  .referral-panel{grid-column:auto}
}
@media(max-width:520px){
  .content .grid-two{gap:16px}
  .gold-card-panel.gold-status-panel{
    grid-template-columns:46px 1fr;
    gap:16px;
  }
  .gold-status-icon{width:46px;height:46px;font-size:19px}
}


/* V1.5 — REFERRAL */
.referral-head{align-items:flex-start}
.referral-intro{max-width:650px;line-height:1.65;margin-top:8px}
.referral-bonus{
  text-align:right;
  min-width:145px;
  padding-left:18px;
}
.referral-bonus span,
.referral-link-copy span{
  display:block;
  color:#8f8a80;
  font-size:10px;
  letter-spacing:.14em;
  text-transform:uppercase;
  margin-bottom:7px;
}
.referral-bonus strong{
  color:#e8cd91;
  font-family:Georgia,serif;
  font-size:27px;
  font-weight:400;
}
.referral-link-box{
  margin-top:24px;
  padding:18px 20px;
  border:1px solid #3b3324;
  background:#0d0d0d;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.referral-link-copy{
  min-width:0;
}
.referral-link-copy strong{
  display:block;
  color:#e7e2d7;
  font-size:13px;
  font-weight:500;
  overflow-wrap:anywhere;
}
.referral-actions{
  display:flex;
  gap:10px;
  flex-shrink:0;
}
.referral-btn{
  min-width:116px;
  min-height:42px;
  cursor:pointer;
}
.referral-note{
  margin:14px 0 0;
  color:#77736b;
  font-size:11px;
  line-height:1.55;
}
.referral-status{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  margin-top:22px;
  border-top:1px solid #28241d;
  padding-top:19px;
  gap:18px;
}
.referral-status div{
  min-width:0;
}
.referral-status span{
  display:block;
  color:#77736b;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.1em;
  margin-bottom:7px;
}
.referral-status strong{
  color:#e6e1d7;
  font-size:15px;
  font-weight:500;
}
.referral-status .status-gold{color:#d6b96f}
@media(max-width:700px){
  .referral-head{
    display:block;
  }
  .referral-bonus{
    text-align:left;
    padding-left:0;
    margin-top:18px;
  }
  .referral-link-box{
    display:block;
  }
  .referral-actions{
    margin-top:16px;
  }
  .referral-actions button{
    flex:1;
  }
  .referral-status{
    grid-template-columns:1fr;
    gap:14px;
  }
}


/* V1.6 — STRONGER HOME HIERARCHY */
.content{
  --section-gap:34px;
}
.hero-card{
  margin-bottom:34px !important;
  border-color:#4b3d24;
  box-shadow:0 18px 60px rgba(0,0,0,.18);
}
.contract-panel{
  margin-bottom:24px;
}
.gold-mini-strip{
  grid-column:1 / -1;
  min-height:72px;
  margin:4px 0 34px;
  padding:14px 20px;
  border:1px solid #39301f;
  border-left:2px solid #c9aa6a;
  background:linear-gradient(100deg,#15130f,#0e0e0e 60%);
  display:flex;
  align-items:center;
  gap:15px;
}
.gold-mini-mark{
  width:38px;height:38px;border-radius:50%;
  border:1px solid rgba(201,170,106,.65);
  display:grid;place-items:center;
  font-family:Georgia,serif;color:#e0c47e;
  flex:0 0 auto;
}
.gold-mini-copy{
  display:flex;align-items:baseline;gap:13px;flex-wrap:wrap;
  min-width:0;
}
.gold-mini-copy span{
  color:#d6bd7a;font-size:10px;letter-spacing:.15em;font-weight:700;
}
.gold-mini-copy strong{
  color:#eee8dc;font-size:14px;letter-spacing:.05em;
}
.gold-mini-copy small{
  color:#777168;font-size:10px;letter-spacing:.09em;
}
.gold-mini-link{
  margin-left:auto;color:#cdb475;text-decoration:none;font-size:12px;
  white-space:nowrap;
}
.service-card{
  min-height:230px !important;
  padding:24px !important;
  position:relative;
}
.service-card-top{
  display:flex;justify-content:space-between;align-items:center;
  margin-bottom:25px;
}
.service-icon{
  font-family:Georgia,serif;
  font-size:30px;
  line-height:1;
  color:rgba(201,170,106,.34);
}
.new-pill{
  border:1px solid rgba(201,170,106,.5);
  background:rgba(201,170,106,.08);
  color:#dec47f;
  border-radius:999px;
  padding:6px 9px;
  font-size:9px;
  font-weight:700;
  letter-spacing:.1em;
}
.service-card h2{
  margin:.35rem 0 .65rem;
}
.service-card .muted{
  max-width:410px;
  min-height:42px;
}
.referral-home-strip{
  grid-column:1 / -1;
  margin-top:8px;
  min-height:150px;
  border:1px solid #40351f;
  border-top:2px solid #b99a59;
  background:
    radial-gradient(circle at 78% 50%,rgba(201,170,106,.09),transparent 28%),
    #11100e;
  padding:25px 28px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:34px;
  align-items:center;
}
.referral-home-main h2{
  margin:.35rem 0 .5rem;
}
.referral-home-main p:last-child{margin-bottom:0}
.referral-home-bonus{
  padding:0 28px;
  border-left:1px solid #332c20;
  border-right:1px solid #332c20;
}
.referral-home-bonus span{
  display:block;color:#817a6d;font-size:9px;letter-spacing:.13em;
  margin-bottom:8px;
}
.referral-home-bonus strong{
  display:block;color:#e8cd91;font-family:Georgia,serif;
  font-size:31px;font-weight:400;white-space:nowrap;
}
.referral-home-action{
  color:#d3b873;text-decoration:none;font-size:12px;white-space:nowrap;
}
.referral-detail-panel{
  grid-column:1 / -1;
  margin-top:-10px;
  background:#0c0c0c !important;
  border-color:#222 !important;
}
.assistance{
  margin-top:34px !important;
  opacity:.92;
}
@media(min-width:901px){
  .content .grid-two{
    row-gap:24px;
  }
  .contract-panel{
    grid-column:1 / -1;
    min-height:210px;
  }
}
@media(max-width:900px){
  .gold-mini-strip{
    grid-column:auto;
    margin-bottom:20px;
  }
  .referral-home-strip{
    grid-column:auto;
    grid-template-columns:1fr;
    gap:18px;
    padding:22px;
  }
  .referral-home-bonus{
    padding:16px 0;
    border-left:0;border-right:0;
    border-top:1px solid #332c20;
    border-bottom:1px solid #332c20;
  }
  .referral-detail-panel{grid-column:auto}
}
@media(max-width:520px){
  .gold-mini-copy{gap:8px}
  .gold-mini-link{font-size:11px}
  .service-card{min-height:auto !important}
}


/* V1.7 — REAL DETAIL PAGES */
.page-heading{margin:8px 0 32px;max-width:820px}
.page-heading .eyebrow{color:#c9aa6a;font-size:10px;letter-spacing:.18em;font-weight:700}
.page-heading h1{font-family:Georgia,serif;font-weight:400;font-size:42px;margin:8px 0 10px}
.page-heading>p:last-child{color:#918b80;line-height:1.65}
.compact-heading{margin-bottom:24px}
.back-link{display:inline-block;color:#a99568;text-decoration:none;font-size:12px;margin-bottom:28px}
.current-document{margin-bottom:30px}
.document-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:16px;padding:18px 0;border-top:1px solid #292929}
.document-row.compact{padding:15px 0}
.document-file-icon{width:42px;height:42px;border:1px solid #4b3c24;color:#d1b36d;display:grid;place-items:center;font-size:9px;letter-spacing:.08em}
.document-row strong,.document-row span{display:block}
.document-row span{color:#77736b;font-size:11px;margin-top:5px}
.text-button{background:none;border:0;color:#cdb475;cursor:pointer}
.archive-section{margin-top:34px}
.section-title-row{margin-bottom:18px}
.archive-year{border:1px solid #292929;background:#101010;margin-bottom:12px}
.archive-year summary{cursor:pointer;padding:18px 20px;display:flex;justify-content:space-between;list-style:none}
.archive-year summary span{font-family:Georgia,serif;font-size:19px}
.archive-year summary small{color:#817b70}
.archive-body{padding:0 20px 6px}
.news-list{display:grid;gap:14px}
.news-list-item{display:grid;grid-template-columns:76px 1fr auto;gap:22px;align-items:center;text-decoration:none;color:inherit;padding:24px;border:1px solid #292929;background:#101010}
.news-list-item.unread{border-color:#443820;background:linear-gradient(105deg,#15130f,#101010)}
.news-date{text-align:center;border-right:1px solid #2c2923;padding-right:20px}
.news-date span{display:block;font-family:Georgia,serif;color:#d8bf80;font-size:28px}
.news-date small{color:#777168;font-size:9px}
.news-meta{display:flex;gap:10px;align-items:center;color:#7e786e;font-size:10px}
.news-list-copy h2{margin:8px 0 7px}
.news-list-copy p{margin:0;color:#858077}
.news-arrow{color:#c9aa6a;font-size:20px}
.news-article{max-width:900px;line-height:1.8}
.news-article>p{color:#b6b0a6}
.news-attachment{margin-top:28px;padding-top:20px;border-top:1px solid #2b2b2b;display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:center}
.news-attachment span{display:block;color:#77736b;font-size:11px;margin-top:4px}
.referral-page-hero{position:relative}
.referral-page-bonus{position:absolute;right:28px;top:28px;text-align:right}
.referral-page-bonus span{display:block;color:#817a6d;font-size:9px;letter-spacing:.13em}
.referral-page-bonus strong{display:block;color:#e8cd91;font-family:Georgia,serif;font-size:30px;font-weight:400;margin-top:7px}
.referral-link-box.full{margin-top:30px}
.referral-stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:22px 0}
.stat-card{min-height:120px}
.stat-card span{display:block;color:#777168;font-size:9px;letter-spacing:.13em}
.stat-card strong{display:block;color:#e8cd91;font-family:Georgia,serif;font-size:28px;font-weight:400;margin-top:14px}
.referral-history{margin-top:22px}
.referral-person-row{display:grid;grid-template-columns:1fr auto;gap:16px;align-items:center;padding:18px 0;border-top:1px solid #292929}
.referral-person-row strong,.referral-person-row span{display:block}
.referral-person-row div span{color:#77736b;font-size:11px;margin-top:5px}
.status-chip{border:1px solid #34312b;padding:7px 10px;font-size:10px;color:#aaa399}
.status-chip.gold{border-color:#4a3c22;color:#d4b86f}
@media(max-width:700px){
  .page-heading h1{font-size:34px}
  .document-row,.news-attachment{grid-template-columns:auto 1fr}
  .document-row button,.news-attachment button{grid-column:1 / -1;width:100%}
  .news-list-item{grid-template-columns:54px 1fr;padding:18px;gap:14px}
  .news-arrow{display:none}
  .news-date{padding-right:12px}
  .referral-page-bonus{position:static;text-align:left;margin-top:20px}
  .referral-stats-grid{grid-template-columns:1fr}
}


/* V1.8 — OFFICIAL CENTURION MARK */
.brand-mark,
.gold-mini-mark,
.gold-status-icon{
  overflow:hidden;
}
.brand-mark img{
  width:76%;
  height:76%;
  object-fit:contain;
  display:block;
}
.gold-mini-mark img{
  width:78%;
  height:78%;
  object-fit:contain;
  display:block;
}
.gold-status-icon img{
  width:78%;
  height:78%;
  object-fit:contain;
  display:block;
}


/* V1.9 — REMOVE DOUBLE CIRCLE AROUND OFFICIAL LOGO */
.brand-mark,
.gold-mini-mark,
.gold-status-icon{
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  overflow:visible !important;
}

.brand-mark img{
  width:100% !important;
  height:100% !important;
  object-fit:contain;
  display:block;
}

.gold-mini-mark img,
.gold-status-icon img{
  width:100% !important;
  height:100% !important;
  object-fit:contain;
  display:block;
}

/* Slightly larger official mark in sidebar for better helmet readability */
.brand-mark{
  width:48px !important;
  height:48px !important;
  display:grid;
  place-items:center;
  flex:0 0 48px;
}


/* V1.14 — mobile readability + navigation */
.inline-link{
  font-size:17px;
  font-weight:600;
  line-height:1.35;
  letter-spacing:.01em;
  color:#ead39d;
}
.inline-link:hover,.inline-link:focus{color:#f4dfad}

/* Referral: labels and key numbers need to read clearly on mobile */
.referral-page-bonus span,
.stat-card span{
  color:#b9aa8b;
  font-size:12px;
  font-weight:700;
  letter-spacing:.14em;
}
.referral-page-bonus strong{
  color:#f0d28e;
  font-weight:600;
}
.stat-card strong{
  color:#f0d28e;
  font-size:34px;
  font-weight:600;
}

/* Stronger mobile navigation */
@media (max-width:900px){
  .bottom-nav{
    background:rgba(7,7,7,.98);
    border-top:1px solid #393228;
    padding-top:10px;
  }
  .bottom-nav a{
    color:#b1aca2;
    font-size:12px;
    font-weight:600;
    line-height:1.1;
    gap:6px;
    padding:9px 2px 10px;
  }
  .bottom-nav a span{
    font-size:21px;
    font-weight:700;
    line-height:1;
  }
  .bottom-nav a.active{
    color:#efd79e;
    font-weight:700;
  }
  .inline-link{
    font-size:18px;
    font-weight:600;
  }
  .stat-card span,
  .referral-page-bonus span{
    font-size:12px;
    font-weight:700;
    color:#c0b08f;
  }
  .stat-card strong{
    font-size:38px;
    font-weight:600;
  }
}

/* V1.15 — Simula nuovo investimento */
.simulator-page{padding-bottom:120px}
.sim-intro{max-width:650px}
.simulator-card{display:grid;gap:30px}
.sim-step h2,.sim-consult h2{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:30px;margin:6px 0 18px}
.sim-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.sim-years{grid-template-columns:repeat(5,minmax(0,1fr))}
.sim-option{appearance:none;text-align:left;border:1px solid #2d2a25;background:#111;color:#f4efe5;border-radius:16px;padding:16px;cursor:pointer;min-height:82px}
.sim-option strong{display:block;font-size:18px}
.sim-option small{display:block;margin-top:7px;color:#8f8a81;font-size:10px;letter-spacing:.06em}
.sim-option.selected{border-color:#b89551;background:linear-gradient(180deg,rgba(201,166,96,.14),rgba(201,166,96,.04));box-shadow:inset 0 0 0 1px rgba(201,166,96,.12)}
.sim-rate-box{border:1px solid #332d22;border-radius:18px;padding:20px;background:rgba(201,166,96,.035)}
.sim-rate-box span,.sim-rate-box small{display:block;color:#aaa49a}.sim-rate-box span{font-size:12px;letter-spacing:.12em;text-transform:uppercase;font-weight:700}.sim-rate-box strong{display:block;color:#efd18d;font-family:Georgia,serif;font-size:42px;margin:6px 0}.sim-rate-box small{font-size:12px}
.sim-calc{width:100%;font-size:17px;padding:17px}
.sim-result{margin-top:22px}
.sim-result-label{text-align:center;color:#aaa49a;margin-top:24px}.sim-final{text-align:center;font-family:Georgia,serif;color:#efd18d;font-size:clamp(46px,9vw,72px);margin:8px 0}.sim-gain{text-align:center;color:#d8bf84;font-weight:600}
.sim-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:28px 0}
.sim-stats>div{border:1px solid #292722;border-radius:16px;padding:16px;background:#111}.sim-stats span{display:block;color:#aaa49a;font-size:11px;text-transform:uppercase;letter-spacing:.08em;margin-bottom:8px}.sim-stats strong{font-size:18px;color:#f2eadb}
.sim-chart-wrap{border:1px solid #292722;border-radius:18px;padding:20px;background:#0f0f0f}.sim-chart-head{display:flex;justify-content:space-between;gap:16px;margin-bottom:18px}.sim-chart-head span{color:#8f8a81;font-size:12px}
.sim-bars{display:grid;gap:11px}.sim-bar-row{display:grid;grid-template-columns:60px 1fr 100px;align-items:center;gap:10px;font-size:11px;color:#aaa49a}.sim-bar-row strong{text-align:right;color:#d8c69f;font-size:12px}.sim-bar-track{height:5px;background:#24211c;border-radius:999px;overflow:hidden}.sim-bar-track i{display:block;height:100%;background:linear-gradient(90deg,#8f6d2b,#e3c779);border-radius:999px}
.sim-actions{display:flex;gap:12px;margin-top:22px}.sim-actions .btn{flex:1}
.sim-consult{margin-top:28px;border-top:1px solid #302b22;padding-top:28px}.sim-consult-btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;margin-top:12px;font-size:16px}
.sim-disclaimer{color:#777168;font-size:11px;line-height:1.6;margin:24px 0 0}
[hidden]{display:none!important}
@media(max-width:900px){
 .bottom-nav{grid-template-columns:repeat(6,1fr)}
 .bottom-nav a{font-size:10px}
 .bottom-nav a span{font-size:19px}
 .sim-grid{grid-template-columns:repeat(2,1fr)}
 .sim-years{grid-template-columns:repeat(2,1fr)}
 .sim-stats{grid-template-columns:1fr 1fr}
 .sim-actions{flex-direction:column}
}
@media(max-width:390px){
 .bottom-nav a{font-size:9px}
 .bottom-nav a span{font-size:18px}
 .sim-bar-row{grid-template-columns:48px 1fr 82px}
}


/* V1.16 — Referral readability refinements */
.referral-page-bonus span,
.referral-card .card-label,
.referral-card [class*="label"],
.referral-card [class*="bonus"] span,
.referral-card [class*="bonus"] small {
  color: #f3efe7 !important;
  font-weight: 700 !important;
  opacity: 1 !important;
}

/* Home referral CTA: make "Gestisci inviti" as readable as the other primary text CTAs */
.referral-card .inline-link,
a[href="referral.html"].inline-link {
  color: #ead39d !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  opacity: 1 !important;
}

@media (max-width: 900px) {
  .referral-card .card-label,
  .referral-card [class*="label"],
  .referral-card [class*="bonus"] span,
  .referral-card [class*="bonus"] small {
    color: #f3efe7 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: .13em !important;
  }

  .referral-card .inline-link,
  a[href="referral.html"].inline-link {
    font-size: 18px !important;
    font-weight: 700 !important;
  }
}


/* V1.17 — Simula mobile alignment + Home simulation card */
.home-sim-card{
  border-top:2px solid #b89551;
}
.home-sim-card h2{
  font-family:Georgia,"Times New Roman",serif;
  font-weight:400;
  font-size:clamp(28px,4vw,38px);
  margin:8px 0 14px;
}
.home-sim-card .muted{
  max-width:620px;
  margin-bottom:24px;
}
.home-sim-card .inline-link{
  display:inline-block;
  font-size:18px;
  font-weight:700;
}

/* Keep the simulator header aligned with the cards/content on phones */
@media (max-width:900px){
  .simulator-page{
    padding-left:34px !important;
    padding-right:34px !important;
    padding-top:26px !important;
    box-sizing:border-box;
    width:100%;
    overflow-x:hidden;
  }
  .simulator-page .topbar{
    width:100%;
    margin:0 0 28px 0 !important;
    padding:0 !important;
  }
  .simulator-page .topbar h1{
    margin-left:0 !important;
    font-size:clamp(38px,10vw,54px);
    line-height:1.04;
    overflow-wrap:break-word;
  }
  .simulator-page .topbar .eyebrow,
  .simulator-page .topbar .muted{
    margin-left:0 !important;
  }
}

@media (max-width:430px){
  .simulator-page{
    padding-left:24px !important;
    padding-right:24px !important;
  }
}


/* V1.18 — Home referral card: final readability pass */
.home-referral-card .card-label,
.home-referral-card [class*="bonus"] span,
.home-referral-card [class*="bonus"] small,
section:has(a[href="referral.html"]) .card-label {
  color: #f4efe5 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: .09em !important;
  line-height: 1.3 !important;
  opacity: 1 !important;
}

.home-referral-card a[href="referral.html"],
section:has(a[href="referral.html"]) a[href="referral.html"],
a[href="referral.html"].inline-link {
  color: #ead39d !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  opacity: 1 !important;
}

@media (max-width: 900px) {
  .home-referral-card .card-label,
  .home-referral-card [class*="bonus"] span,
  .home-referral-card [class*="bonus"] small,
  section:has(a[href="referral.html"]) .card-label {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #f4efe5 !important;
    letter-spacing: .08em !important;
  }

  .home-referral-card a[href="referral.html"],
  section:has(a[href="referral.html"]) a[href="referral.html"],
  a[href="referral.html"].inline-link {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #ead39d !important;
  }
}


/* V1.19 — Installed PWA launch splash */
.pwa-splash{
  position:fixed;
  inset:0;
  z-index:99999;
  display:none;
  align-items:center;
  justify-content:center;
  background:#050505;
  opacity:0;
  transition:opacity .38s ease;
}
.pwa-splash.is-visible{
  display:flex;
  opacity:1;
}
.pwa-splash.is-leaving{
  opacity:0;
  pointer-events:none;
}
.pwa-splash-inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  transform:translateY(-2vh);
}
.pwa-splash-mark{
  width:min(38vw,180px);
  height:auto;
  object-fit:contain;
  filter:drop-shadow(0 0 26px rgba(196,157,82,.18));
  margin-bottom:24px;
}
.pwa-splash-name{
  color:#d2ad67;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(26px,7vw,38px);
  letter-spacing:.16em;
  line-height:1;
  margin-left:.16em;
}
.pwa-splash-private{
  color:#bfa36f;
  font-size:11px;
  font-weight:600;
  letter-spacing:.34em;
  margin-left:.34em;
  margin-top:14px;
}
@media (prefers-reduced-motion:reduce){
  .pwa-splash{transition:none}
}

/* V1.21 Simula desktop correction */
@media (min-width:901px){
  .content.simulator-page{
    margin-left:250px !important;
    width:calc(100% - 250px) !important;
    max-width:none !important;
    padding:48px 54px 70px !important;
    box-sizing:border-box !important;
    overflow-x:hidden;
  }
  .content.simulator-page .topbar{
    margin-left:0 !important;
    padding-left:0 !important;
  }
}


/* V1.23 — Home mobile CTA/status readability */
@media (max-width:900px){

  /* Referral CTA: same visual strength as primary Home CTAs */
  body.private-page .home-referral-card a[href="referral.html"],
  body.private-page section:has(a[href="referral.html"]) a[href="referral.html"],
  body.private-page a[href="referral.html"].inline-link{
    font-size:21px !important;
    font-weight:700 !important;
    line-height:1.35 !important;
    color:#ead39d !important;
    opacity:1 !important;
  }

  /* Current contract status badge */
  body.private-page .status,
  body.private-page .status-badge,
  body.private-page .badge{
    font-size:17px !important;
    font-weight:600 !important;
    line-height:1.2 !important;
  }

  /* Gold Card detail CTA */
  body.private-page .gold-card a,
  body.private-page .gold-card-strip a,
  body.private-page [class*="gold"] a{
    font-size:18px !important;
    font-weight:600 !important;
    line-height:1.3 !important;
    color:#ead39d !important;
    opacity:1 !important;
  }
}
