:root{
  --bg:#0b1220;
  --panel:#0f1a2b;
  --text:#e8eefc;
  --muted:#b8c6e6;
  --line:rgba(255,255,255,0.12);
  /* aliases used by some modules */
  --border: rgba(255,255,255,0.12);
  --shadow: 0 12px 40px rgba(0,0,0,0.35);
  --brand:#5ea1ff;
  --brand2:#3b7ef5;
  --radius:18px;
  --max:1100px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
  background:linear-gradient(180deg,#0b1220,#081021);
  color:var(--text);
  line-height:1.65;
}

img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:none; }

.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:0 18px;
}

/* ===== Header ===== */
header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(11,18,32,0.72);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  letter-spacing:0.2px;
}

.badge{
  width:34px;
  height:34px;
  border-radius:12px;
  display:grid;
  place-items:center;
  font-weight:900;
  background:linear-gradient(180deg,#18335c,#0f1a2b);
  border:1px solid var(--line);
  color:#dce8ff;
}

nav{
  display:flex;
  align-items:center;
  gap:14px;
  color:var(--muted);
  font-size:14px;
}

nav a{
  padding:6px 10px;
  border-radius:12px;
  border:1px solid transparent;
}

nav a:hover{
  border-color:var(--line);
  background:rgba(255,255,255,0.03);
}

nav a[aria-current="page"]{
  border-color:rgba(94,161,255,0.35);
  background:rgba(94,161,255,0.12);
  color:var(--text);
}

/* ===== Buttons ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  font-weight:800;
  font-size:14px;
  line-height:1;
  cursor:pointer;
  white-space:nowrap;
  background:rgba(255,255,255,0.02);
  color:var(--text);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.btn:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,0.06);
}

.btn-primary{
  background:linear-gradient(180deg,var(--brand),var(--brand2));
  border-color:rgba(94,161,255,0.35);
  color:#061125;
}

.btn-primary:hover{
  background:linear-gradient(180deg,#6aaaff,#4a89ff);
}

.btn-secondary{
  background:rgba(255,255,255,0.02);
}

/* ===== Layout ===== */
main{
  padding:28px 0 44px;
}

section{
  padding:18px 0;
}

h1{
  margin:0 0 10px;
  font-size:34px;
  line-height:1.1;
  letter-spacing:0.1px;
}

h2{
  margin:0 0 10px;
  font-size:18px;
  line-height:1.25;
}

h3{
  margin:0 0 8px;
  font-size:16px;
  line-height:1.25;
}

p{
  margin:0 0 12px;
  color:var(--muted);
}

.kicker{
  color:var(--muted);
  font-size:14.5px;
  margin-top:0;
}

.small{
  font-size:12.5px;
  color:rgba(184,198,230,0.9);
}

/* ===== Hero ===== */
.hero{
  background:radial-gradient(1000px 420px at 20% 0%,rgba(94,161,255,0.18),rgba(0,0,0,0) 60%);
  border-bottom:1px solid var(--line);
  padding:26px 0 24px;
}

.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap:22px;
  align-items:start;
}

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

/* ===== Cards ===== */
.card{
  background:rgba(255,255,255,0.03);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:16px;
}

/* ===== Pills (if you use them in resources/amazon) ===== */
.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  border:1px solid var(--line);
  background:rgba(255,255,255,0.03);
  color:var(--text);
}

/* ===== Cover image ===== */
.cover-img{
  width:100%;
  height:auto;
  border-radius:var(--radius);
  border:1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.cover-small{
  max-width:320px;
  margin-left:auto;
}

/* ===== Footer ===== */
footer{
  border-top:1px solid var(--line);
  padding:22px 0;
  color:rgba(184,198,230,0.9);
  font-size:13px;
}

/* ================================
   Amazon region rows + flags
   ================================ */
.regions-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.region-row{
  display:grid;
  grid-template-columns: 34px 1fr auto auto;
  align-items:center;
  gap:10px;
  padding:12px 12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,0.02);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.region-row:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,0.05);
  border-color:rgba(255,255,255,0.18);
}

.region-name{
  font-weight:900;
  color:var(--text);
}

.region-meta{
  color:var(--muted);
  font-size:13px;
}

.region-cta{
  font-weight:900;
  font-size:13px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(94,161,255,0.12);
  border:1px solid rgba(94,161,255,0.25);
  color:var(--text);
}

.flag{
  display:inline-flex;
  width:26px;
  height:18px;
  border-radius:4px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.18);
}

/* ================================
   Responsive
   ================================ */
@media (max-width: 920px){
  .hero-grid{
    grid-template-columns:1fr;
  }
  .cover-small{
    max-width:320px;
    margin:12px 0 0;
  }
}

/* Keep nav usable on smaller screens (DO NOT hide it) */
@media (max-width: 860px){
  nav{
    display:flex;
    gap:8px;
    overflow:auto;
    white-space:nowrap;
    max-width:55vw;
    padding-bottom:2px;
    scrollbar-width:none;
  }
  nav::-webkit-scrollbar{ display:none; }
}

/* Amazon rows on narrow screens */
@media (max-width: 520px){
  .region-row{
    grid-template-columns: 34px 1fr;
    row-gap:6px;
  }
  .region-meta{ justify-self:start; }
  .region-cta{ justify-self:start; }
}
