/* =========================================
   THEME TOKENS
   ========================================= */
:root{
  --bg-deep:#0f2a2e;
  --panel:#112f34;
  --ink:#eaf6fb;
  --subtle:#b9d5dc;
  --accent:#ff8a3a;
  --accent-2:#a96d3d;
  --green-1:#7cc05c;
  --green-2:#2b7a3e;
  --blue:#2ab3ff;
  --shadow:0 10px 30px rgba(0,0,0,.35);
  --stat-grad:linear-gradient(90deg, var(--green-2) 0%, var(--green-1) 60%, var(--accent) 100%);
  --radius:18px; --radius-sm:12px; --gap:20px; --maxw:1100px;

  --cursor-default: url("data:image/svg+xml;utf8,\
    <svg xmlns='http://www.w3.org/2000/svg' width='32' height='32'>\
      <text x='50%' y='55%' dominant-baseline='middle' text-anchor='middle'\
      font-family='Arial' font-size='30' font-weight='bold' fill='%23eaf6fb' stroke='%23eaf6fb' stroke-width='0.6'>&gt;</text>\
    </svg>") 0 0, auto;

  --cursor-pointer: url("data:image/svg+xml;utf8,\
    <svg xmlns='http://www.w3.org/2000/svg' width='32' height='32'>\
      <text x='50%' y='55%' dominant-baseline='middle' text-anchor='middle'\
      font-family='Arial' font-size='30' font-weight='bold' fill='%237cc05c' stroke='%237cc05c' stroke-width='0.6'>&gt;</text>\
    </svg>") 0 0, pointer;
}

/* =========================================
   BASE / LAYOUT
   ========================================= */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body {
  margin:0;
  font-family: 'proxima-nova', Arial, Helvetica, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
               "Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol", sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 800px at 20% 20%, #13383e 0%, var(--bg-deep) 50%, #0b2225 100%);
  overflow-x:hidden;
}
.wrap{ position:relative; z-index:1; max-width:var(--maxw); margin:0 auto; padding:24px; }

@media (min-width:641px){
  .wrap{ min-height:100dvh; display:flex; flex-direction:column; }
}

/* =========================================
   CARD
   ========================================= */
.card{
  background: linear-gradient(145deg, var(--panel), #0f272b);
  border:1px solid rgba(255,255,255,.06);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding: clamp(18px, 3vw, 28px);
}
.card::after{ content:""; display:block; clear:both; }

/* =========================================
   AVATAR
   ========================================= */
.avatar{
  float:left; width: clamp(180px, 30vw, 260px); aspect-ratio:1/1;
  border-radius:var(--radius); margin:0 var(--gap) var(--gap) 0;
  object-fit:cover; background:#0b2225; border:2px solid rgba(255,255,255,.08);
  box-shadow:0 8px 22px rgba(0,0,0,.35);
  shape-outside: inset(0 round var(--radius));
  transition: transform .25s ease;
}
@keyframes shake{
  0%{ transform: translate(0,0) rotate(0deg); }
  20%{ transform: translate(-1px,0) rotate(-1deg); }
  40%{ transform: translate(1px,0) rotate(1deg); }
  60%{ transform: translate(-1px,0) rotate(-1deg); }
  80%{ transform: translate(1px,0) rotate(1deg); }
  100%{ transform: translate(0,0) rotate(0deg); }
}
.avatar:hover{ animation: shake .28s ease-in-out 1; transform: rotate(-2deg) scale(1.01); }

/* =========================================
   HEADINGS
   ========================================= */
h1{ margin:0 0 8px 0; font-size: clamp(28px, 4vw, 40px); letter-spacing:.2px; display:inline-block; transition: transform .18s ease; transform-origin: left bottom; }
h1:hover{ transform: scale(1.035); }
.h2-other:hover{ transform: scale(1.035); }
.tag-symbol {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 600;
  color: var(--green-1);
  margin-right: 2px;
}
.subtitle{ display:block; font-size:.6em; font-weight:400; color:var(--subtle); margin-top:2px; }
.tagline{ margin:10px 0 30px 0; color:var(--subtle); font-size: clamp(14px, 1.8vw, 16px); }
/* Global Hydra Hub link style */
.hub-link {
  color: #cfe6ec;         
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;            /* smooth rounded corners */
  padding: 2px 4px;              /* tiny padding so hover box is visible */
  transition: color .2s ease, background-color .2s ease;
}

.hub-link:hover {
  color: #eaf6fb;
  text-decoration: underline;
  background-color: rgba(0, 0, 0, 0.25); /* subtle darker backdrop */
}

/* Chips */
.chips{ display:flex; flex-wrap:wrap; gap:10px; margin:6px 0 20px 0; }
.chip{
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.09);
  color:var(--ink); border-radius:var(--radius-sm); padding:8px 12px; font-size:13px;
  transition: background .15s ease, border-color .15s ease;
}
.chip:hover{ background: rgba(0,0,0,.10); border-color: rgba(255,255,255,.06); }

/* Stats */
.stats{ display:flex; flex-wrap:wrap; gap:14px; margin:10px 0 14px 0; }
.stat{
  flex:1 1 180px; background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.09); border-radius:var(--radius); padding:14px 16px;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.stat:hover{ transform: translateY(-2px); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); }
.stat h3{ margin:0 0 6px 0; font-size:13px; font-weight:600; color:var(--subtle); letter-spacing:.5px; text-transform:uppercase; }
.stat .num{
  font-weight:800; line-height:1.1;
  background:var(--stat-grad); -webkit-background-clip:text; background-clip:text; color:transparent;
  text-shadow:0 3px 12px rgba(0,0,0,.35);
}

/* Bio + utilities */
.bio-pill {
  display: inline-block;
  padding: 10px 24px;              /* taller + wider */
  border-radius: 20px;             /* rounded rectangle instead of capsule */
  background: linear-gradient(90deg, var(--green-2), var(--green-1));
  color: #081713;
  font-weight: 800;
  letter-spacing: .4px;
  margin: 6px 0 10px;
  box-shadow: 0 8px 18px rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.08);
  min-width: 180px;                /* optional: ensures a nice wide base */
  text-align: center;              /* centers the text inside */
}
.bio p{ text-indent:1.5em; margin-top:8px; line-height:1.55; }
.b{ font-weight:800; } .i{ font-style:italic; } .u{ text-decoration:underline; text-underline-offset:3px; } .s{ text-decoration:line-through; text-decoration-thickness:2px; opacity:.9; }
.magic{ position:relative; display:inline; padding:0 .15em; border-radius:.4em; color:#2a2100; background: linear-gradient(90deg, #ffe58a, #ffcc4d, #ffb400, #ffd15a); box-shadow:0 2px 10px rgba(255,180,0,.35); }
.magic::after{
  content:"✦";
  position:absolute;
  right:-0.4em; top:-0.6em;
  font-size:.8em; color:#ffefb2;
  text-shadow:0 0 6px rgba(255,220,120,.9), 0 0 12px rgba(255,184,0,.7);
  animation: twinkle 1.6s ease-in-out infinite alternate;
}
@keyframes twinkle{ from{ transform:translateY(0) rotate(0deg); opacity:.85; } to{ transform:translateY(-2px) rotate(12deg); opacity:1; } }

/* CTA */
.cta{
  display:block; width:max-content; margin:18px auto 2px; text-align:center;
  background: linear-gradient(90deg, var(--green-2), var(--green-1));
  color:#081713; border:none; border-radius:var(--radius); padding:12px 16px; font-weight:700; text-decoration:none;
  box-shadow:0 10px 24px rgba(0,0,0,.35); transition: transform .2s ease, filter .2s ease;
}
.cta:hover{ transform: translateY(-2px); filter: brightness(1.05); }
#cta-email.copied{ transform: translateY(-2px) scale(1.02); filter: brightness(1.08); }

/* Vertical edge 'CONTACT ME' link (rotated version) */
.edge-contact{
  position: fixed;
  left: 28px;                     /* ← was 0; move it in from edge */
  top: 70%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;  /* pivot around left-middle so it stays visible */
  z-index: 1000;

  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: clamp(38px, 3.2vw, 52px);
  color: transparent;
  -webkit-text-stroke: 2px var(--green-1);
          text-stroke: 2px var(--green-1);
  text-decoration: none;
  opacity: .9;
  padding: 8px 14px;
  border-radius: 12px;
}

.edge-contact:hover,.edge-contact:focus{
  -webkit-text-stroke: 2px var(--green-2);
          text-stroke: 2px var(--green-2);
  opacity: 1;
  outline: none;
}

/* Mobile: turn into a normal pill so it never overlaps/crops */
@media (max-width: 900px){
  .edge-contact{
    inset: auto auto 16px 16px;   /* bottom-left */
    transform: none;
    writing-mode: initial;
    rotate: 0deg;
    -webkit-text-stroke: 0;
    text-stroke: 0;
    color: var(--green-1);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    font-size: 14px;
    letter-spacing: .16em;
  }
}

/* Footer */
.footer{ color:var(--subtle); text-align:center; font-size:13px; padding:18px 16px 28px; }
.footer a{ color:var(--subtle); text-decoration:none; border-bottom:1px dashed rgba(255,255,255,.25); }
.footer a:hover{ color:var(--ink); border-bottom-color: rgba(255,255,255,.6); }
.footer .love-note {
  margin-top: 6px;
  font-size: 12px;
  color: var(--subtle);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.footer .love-note.visible {
  opacity: 0.9;
  transform: translateY(0);
}

.footer .love-note .heart {
  font-size: 12px;
  color: #7cc05c; /* green */
  margin-right: 3px;
  display: inline-block;
  transform-origin: center;
}

.footer .love-note.visible .heart {
  animation: heartbeat 1.6s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  25%      { transform: scale(1.15); }
  40%      { transform: scale(0.95); }
  60%      { transform: scale(1.1); }
  80%      { transform: scale(0.98); }
}

/* Background icons */
.bg-icon{ position:fixed; z-index:0; opacity:.12; font-weight:800; color:#eaf6fb; pointer-events:none; filter: drop-shadow(0 2px 6px rgba(0,0,0,.2)); transition: transform .5s ease, opacity .5s ease; user-select:none; }
body.wiggle .bg-icon{ transform: translateY(-6px) rotate(-2deg); opacity:.16; }

/* Toast */
.toast{
  position:fixed; left:50%; bottom:24px; transform:translateX(-50%) translateY(20px);
  opacity:0; background:rgba(0,0,0,.82); color:var(--ink);
  border:1px solid rgba(255,255,255,.12); border-radius:var(--radius-sm);
  padding:10px 14px; box-shadow:var(--shadow);
  transition: opacity .25s ease, transform .25s ease; pointer-events:none; z-index:9999;
}
.toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }

/* Welcome overlay */
.welcome{ position:fixed; inset:0; z-index:9998; display:grid; place-items:center; background: rgba(255,255,255,.06); backdrop-filter: brightness(1.12) saturate(1.05) blur(1px); -webkit-backdrop-filter: brightness(1.12) saturate(1.05) blur(1px); transition: opacity .55s ease, visibility .55s ease; }
.welcome.hidden{ opacity:0; visibility:hidden; pointer-events:none; }
.welcome-inner{ text-align:center; padding:22px 26px; border:1px solid rgba(255,255,255,.12); border-radius:var(--radius); background: linear-gradient(145deg, rgba(17,47,52,.75), rgba(15,39,43,.65)); box-shadow:var(--shadow); }
.welcome-title{ font-weight:900; letter-spacing:.6px; font-size:clamp(22px, 4vw, 36px); margin-bottom:10px; background:var(--stat-grad); -webkit-background-clip:text; background-clip:text; color:transparent; text-shadow:0 3px 12px rgba(0,0,0,.35); }
.welcome-line{ margin:0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:clamp(14px, 2.2vw, 18px); color:var(--ink); background:transparent; border:0; display:inline-block; position:relative; overflow:hidden; white-space:nowrap; }
.welcome-line .prompt{ display:inline-block; margin-right:.4em; font-weight:800; color:var(--blue); }
.welcome-line::after{ content:""; display:inline-block; width:.6ch; height:1em; vertical-align:-0.15em; background:currentColor; opacity:.85; animation: caret .9s steps(1,end) infinite; }
@keyframes caret{ 50%{ opacity:.1 } }
@media (prefers-reduced-motion:reduce){ .welcome, .welcome *{ animation:none !important; transition:none !important; } }

/* Projects */
.projects{ margin:16px 0 8px; }
.projects-head h2{ margin:0; font-size:clamp(18px, 3vw, 22px); letter-spacing:.3px; }
.projects-head p{ margin:6px 0 14px; color:var(--subtle); font-size:14px; }
.projects-grid{ display:grid; gap:14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.project-card{ position:relative; background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.04)); border:1px solid rgba(255,255,255,.08); border-radius:var(--radius); padding:14px; box-shadow:var(--shadow); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease; overflow:hidden; }
.project-card:hover{ transform: translateY(-2px); border-color: rgba(255,255,255,.14); background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.05)); }
.project-card::before{ content:""; position:absolute; left:0; top:0; height:4px; width:100%; background: var(--stat-grad); opacity:.9; }
.project-card[data-accent="blue"]::before{ background: linear-gradient(90deg, #1b7fb3, #2ab3ff); }
.project-card[data-accent="green"]::before{ background: linear-gradient(90deg, var(--green-2), var(--green-1)); }
.project-card[data-accent="gold"]::before{ background: linear-gradient(90deg, #a96d3d, #ffb400); }
/* Compact project card */
.project-card.mini { padding:12px; }
.project-card.mini .pc-title { font-size:15px; }
.project-card.mini .pc-sub { font-size:12px; color:var(--subtle); }
.project-card.mini .pc-desc { margin:8px 0 0; font-size:13px; line-height:1.5; }
.project-card.mini .pc-icon { font-size:18px; }
.project-card.mini .ripple { display:none; }
.project-card .mini-link { display:block; color:inherit; text-decoration:none; }
.pc-top{ display:flex; gap:10px; align-items:center; margin-top:4px; }
.pc-icon{ width:38px; height:38px; display:grid; place-items:center; border-radius:10px; background:rgba(0,0,0,.25); border:1px solid rgba(255,255,255,.1); font-size:18px; }
.pc-title{ margin:0; font-size:18px; }
.pc-sub{ margin:2px 0 0; font-size:12px; color:var(--subtle); }
.pc-desc{ margin:10px 0; font-size:14px; line-height:1.45; color:var(--ink); }
.pc-tags{ display:flex; flex-wrap:wrap; gap:8px; }
.pc-tags .chip{ padding:6px 10px; font-size:12px; }
.pc-stats{ display:grid; grid-template-columns: repeat(3, 1fr); gap:8px; margin:12px 0 10px; }
.pc-stats dt{ font-size:11px; color:var(--subtle); text-transform:uppercase; letter-spacing:.4px; }
.pc-stats dd{ margin:2px 0 0; font-weight:700; }
.pc-actions{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.btn{ display:inline-block; text-decoration:none; border:none; background: linear-gradient(90deg, var(--green-2), var(--green-1)); color:#081713; padding:8px 12px; border-radius:10px; font-weight:700; box-shadow:0 8px 18px rgba(0,0,0,.28); transition: transform .15s ease, filter .15s ease, opacity .15s ease; cursor: var(--cursor-pointer); }
.btn:hover{ transform: translateY(-1px); filter: brightness(1.05); }
.btn.small{ padding:6px 10px; font-size:13px; border-radius:8px; }
.btn.ghost{ background:transparent; color:var(--ink); border:1px dashed rgba(255,255,255,.25); box-shadow:none; }
.btn.plain{ background:transparent; color:var(--subtle); border:1px solid rgba(255,255,255,.1); box-shadow:none; }
/* Project bullets — sleek, professional */
.pc-body{ margin-top:12px; }

.pc-bullets{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:10px;                 /* even rhythm */
}

.pc-bullets li{
  position:relative;
  padding:10px 12px 10px 40px;   /* room for icon */
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  background:linear-gradient(145deg, rgba(255,255,255,.05), rgba(255,255,255,.035));
  line-height:1.55;
  font-size:13.5px;
  letter-spacing:.1px;
  box-shadow:0 4px 14px rgba(0,0,0,.22);
}

/* Default marker: green check in a soft capsule */
.pc-bullets li::before{
  content:"";
  position:absolute;
  left:12px; top:50%;
  width:18px; height:18px;
  transform:translateY(-50%);
  border-radius:7px;
  background:
    url("data:image/svg+xml;utf8,\
      <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23eaf6fb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6L9 17l-5-5'/></svg>") center/14px 14px no-repeat,
    linear-gradient(135deg, var(--green-2), var(--green-1));
  box-shadow:0 2px 10px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.10);
}

/* Compact variant (optional) — less chrome, just the marker and text */
.pc-bullets--minimal li{
  background: transparent;
  border:1px dashed rgba(255,255,255,.14);
  box-shadow:none;
}

/* Alternate marker variants you can opt into on the <ul> */
.pc-bullets--dot li::before{
  background:
    radial-gradient(circle at 50% 50%, #eaf6fb 45%, transparent 46%),
    linear-gradient(135deg, var(--green-2), var(--green-1));
}
.pc-bullets--dash li::before{
  background:
    url("data:image/svg+xml;utf8,\
      <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23eaf6fb'><rect x='6' y='11' width='12' height='2' rx='1'/></svg>") center/14px 14px no-repeat,
    linear-gradient(135deg, var(--green-2), var(--green-1));
}

/* Better readability for inline code/tokens inside bullets */
.pc-bullets code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .95em;
  padding: .1em .4em;
  border-radius: 6px;
  background: rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.10);
  color: #eaf6fb;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .pc-bullets li, .pc-bullets li::before{ transition: none !important; }
}
.project-card.open{ background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.06)); }
.project-card.open .pc-body{ display:block; }
.project-card.open .pc-toggle[aria-expanded="true"]{ opacity:.85; }
.ripple{ position:absolute; inset:auto; width:0; height:0; border-radius:50%; background: radial-gradient(circle, rgba(255,255,255,.25) 0%, rgba(255,255,255,0) 60%); transform: translate(-50%, -50%); pointer-events:none; opacity:0; }
.project-card.animating .ripple{ animation: ripple .6s ease-out; }
@keyframes ripple{ 0%{ width:0; height:0; opacity:.5; } 100%{ width:360px; height:360px; opacity:0; } }

/* Scroll Controls (floating) */
.scroll-controls{ position:fixed; right:18px; bottom:18px; z-index:9999; display:flex; flex-direction:column; gap:10px; }
.sc-btn{ width:44px; height:44px; display:grid; place-items:center; border-radius:12px; border:1px solid rgba(255,255,255,.2); background:linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.05)); box-shadow:var(--shadow); cursor: var(--cursor-pointer); transition: transform .15s ease, background .15s ease; }
.sc-btn:hover{ transform: translateY(-2px); background:linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.08)); }
.sc-btn svg{ width:24px; height:24px; fill:#eaf6fb; }

/* Responsive */
@media (max-width:640px){
  .avatar{ float:none; display:block; margin:0 0 var(--gap) 0; width:100%; max-width:360px; }
  .footer{ padding-bottom:40px; }
}

/* Pointer cursors */
@media (hover:hover) and (pointer:fine){
  html, body, *{ cursor: var(--cursor-default); }
  a, button, .cta, [role="button"], .chip, .stat, .hoverable{ cursor: var(--cursor-pointer); }
  input, textarea{ cursor:text; }
}

/* ── Easter egg hotspot & modal ───────────────────────────── */
.egg-spot{
  position: fixed; left:22px; top: calc(50vh - 6px);
  width:12px; height:12px; background:transparent; border:0; padding:0; z-index:50;
}
.egg-spot:focus-visible{ outline: 2px dashed #8fe081; outline-offset: 2px; }

/* Modal */
.egg-modal{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  display: grid; place-items: center;
  z-index: 100;
}
/* Ensure hard refresh starts hidden */
.egg-modal[hidden]{ display:none !important; }

.egg-dialog{
  background:#102a2e; color:#e8f6ee;
  width:min(92vw,420px);
  border-radius:16px; padding:20px;
  box-shadow:0 20px 50px rgba(0,0,0,.5);
  text-align:center;
}
.egg-dialog h2{ margin:0 0 8px; font-size:20px; color:#8fe081; }

/* Secret hint mode: briefly show where to click */
body.egg-hint .egg-spot{
  background: rgba(143,224,129,.18);
  box-shadow:
    0 0 0 2px rgba(143,224,129,.35),
    0 0 10px rgba(143,224,129,.6);
  border-radius: 999px;
  cursor: pointer;
}

/* Bio Modal */
.bio-modal{
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.55);
  display: grid; place-items: center;
}
.bio-modal[hidden]{ display:none !important; }

.bio-dialog{
  width:min(92vw, 680px);
  background: #102a2e;
  color: var(--ink);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
  padding: 22px 24px 18px;
  position: relative;
}

.bio-title{
  margin: 0 0 8px;
  font-size: clamp(20px, 3.2vw, 26px);
  font-weight: 900;
  letter-spacing: .4px;
  background: var(--stat-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 3px 12px rgba(0,0,0,.35);
}

.bio-content{
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}

.bio-close{
  position: absolute; right: 10px; top: 10px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.06));
  color: var(--ink);
  border-radius: 10px;
  cursor: var(--cursor-pointer);
}
.bio-close:hover{
  background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.08));
  transform: translateY(-1px);
}

/* ───────────────── Access Code Modal (matches site theme) ─────────────── */
.access-modal{
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: rgba(0,0,0,.55);
}
.access-modal[hidden]{ display:none !important; }

.access-dialog{
  width:min(92vw, 520px);
  background: #102a2e;
  color: var(--ink);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
  padding: 22px 24px 18px;
  position: relative;
}

.access-title{
  margin: 0 0 6px;
  font-size: clamp(20px, 3.2vw, 26px);
  font-weight: 900;
  letter-spacing: .4px;
  background: var(--stat-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 3px 12px rgba(0,0,0,.35);
}
.access-sub{
  margin: 0 0 12px;
  color: var(--subtle);
  font-size: 14px;
}

.access-close{
  position: absolute; right: 10px; top: 10px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.06));
  color: var(--ink);
  border-radius: 10px;
  cursor: var(--cursor-pointer);
}
.access-close:hover{
  background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.08));
  transform: translateY(-1px);
}

.access-label{
  display:block; font-size:13px; color:var(--subtle); margin: 6px 0 6px;
}
.access-input{
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.access-input:focus{
  border-color: rgba(143,224,129,.55);
  background: rgba(0,0,0,.22);
}

.access-hint{
  margin-top: 8px;
  font-size: 12px;
  color: var(--subtle);
}
.access-hint code{
  padding: .1em .35em;
  border-radius: 6px;
  background: rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.10);
}

.access-actions{
  display:flex; gap:10px; margin-top:12px;
}

.access-msg{
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink);
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 8px 10px;
}
.access-msg.error{ border-color: rgba(255,120,120,.35); color: #ffd9d9; }
.access-msg.ok{ border-color: rgba(143,224,129,.45); color: #dff7d6; }
