:root{
  --bg:#f4f8fb;
  --panel:#ffffff;
  --panel-soft:#eef5f9;
  --text:#1f2a37;
  --muted:#5f6f82;
  --primary:#12395b;
  --primary-2:#1f5f8b;
  --accent:#2f7faa;
  --line:#d7e3ec;
  --success:#2f7d59;
  --warning:#b7791f;
  --danger:#b54747;
  --shadow:0 10px 30px rgba(18,57,91,.08);
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  background:linear-gradient(180deg,#f8fbfd 0%,var(--bg) 100%);
  color:var(--text);
}

a{color:var(--primary-2)}
a:hover{color:var(--accent)}

.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:28px 20px 48px;
}

.top{
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:flex-start;
  padding:18px 0 24px;
  border-bottom:1px solid var(--line);
}

.brand-wrap{
  display:flex;
  align-items:center;
  gap:13px;
}

.brand-mark{
  width:60px;
  height:60px;
  border-radius:999px;
  padding:0;
  overflow:hidden;
  background:transparent;
  box-shadow:none;
  flex:0 0 60px;
}

.brand-mark img{
  width:60px;
  height:60px;
  object-fit:cover;
  display:block;
}

.brand-title{
  display:flex;
  flex-direction:column;
}

.brand-title h1{
  margin:0;
  line-height:1;
}

.brand-sub{
  margin-top:6px;
  color:var(--muted);
  font-size:14px;
  letter-spacing:.02em;
}

.top-right{
  text-align:right;
}

h1,h2,h3{color:var(--primary);margin-top:0}
h1{font-size:34px;letter-spacing:.04em;margin-bottom:6px}
h2{font-size:24px;margin-bottom:12px}
h3{font-size:18px;margin-bottom:8px}

.small{
  color:var(--muted);
  font-size:14px;
  line-height:1.45;
}

.hero{
  background:linear-gradient(135deg,#ffffff 0%,#eef6fb 100%);
  border:1px solid var(--line);
  border-radius:18px;
  padding:28px;
  margin:26px 0;
  box-shadow:var(--shadow);
}

.market-strip{
  margin:0 0 26px;
}

.market-strip-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.market-strip-head h2{
  margin-bottom:0;
}

.market-strip-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}

.market-strip-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:42px;
  padding:10px 12px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:8px;
  box-shadow:0 6px 18px rgba(18,57,91,.06);
}

.market-strip-pair{
  color:var(--primary);
  font-size:13px;
  font-weight:700;
  letter-spacing:.04em;
  text-decoration:none;
  white-space:nowrap;
}

.market-strip-pair:hover{
  color:var(--primary-2);
  text-decoration:underline;
}

.market-strip-age{
  color:var(--muted);
  font-size:12px;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:16px;
  margin:16px 0 28px;
}

.card{
  display:block;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:16px;
  padding:20px;
  text-decoration:none;
  color:var(--text);
  box-shadow:var(--shadow);
}

.card:hover{
  border-color:#aec7d8;
  transform:translateY(-1px);
}

.nav{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:18px 0 0;
}

.nav a,
.v2-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:9px 14px;
  border:1px solid #b9d2e2;
  border-radius:999px;
  background:#ffffff;
  color:var(--primary);
  text-decoration:none;
  font-size:14px;
  line-height:1;
}

.nav a:hover,
.v2-pill:hover{
  background:#eaf4fa;
  border-color:#7fb2d1;
  color:var(--primary-2);
}

.v2-pill.primary{
  background:var(--primary);
  border-color:var(--primary);
  color:#ffffff;
}

.status-strip{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:12px;
  margin:18px 0;
}

.status-box{
  background:var(--panel-soft);
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px;
}

.footer{
  margin-top:40px;
  padding-top:20px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:13px;
}

.legal-links{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:12px;
}

.legal-links a{
  color:var(--primary-2);
  text-decoration:none;
  font-size:13px;
}

.legal-links a:hover{
  text-decoration:underline;
}

code{
  background:#edf3f7;
  border:1px solid var(--line);
  border-radius:6px;
  padding:2px 5px;
}

.forex-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-width:78px;
  padding:3px 8px;
  border:1px solid var(--line);
  border-radius:999px;
  font-size:11px;
  line-height:1;
  font-weight:700;
  letter-spacing:.04em;
  background:#f7fafc;
  color:var(--muted);
}

.forex-badge::before{
  content:"";
  width:6px;
  height:6px;
  border-radius:999px;
  background:currentColor;
  box-shadow:0 0 0 2px rgba(255,255,255,.75);
}

.forex-badge-live{
  border-color:#8fbf9f;
  background:#e6f3eb;
  color:#17633a;
  box-shadow:inset 0 0 0 1px rgba(23,99,58,.08);
}

.forex-badge-borderline{
  border-color:#d6ad5b;
  background:#fff2d8;
  color:#8a5a08;
  box-shadow:inset 0 0 0 1px rgba(138,90,8,.08);
}

.forex-badge-stale{
  border-color:#d89999;
  background:#fbe8e8;
  color:#9a3434;
  box-shadow:inset 0 0 0 1px rgba(154,52,52,.08);
}

.forex-badge-unavailable{
  border-color:#c2ced8;
  background:#eef3f6;
  color:#566878;
  box-shadow:inset 0 0 0 1px rgba(86,104,120,.08);
}

@media(max-width:700px){
  .top{display:block}
  .brand-wrap{margin-bottom:18px}
  .top-right{text-align:left}
  h1{font-size:28px}
  .hero{padding:20px}
  .market-strip-grid{grid-template-columns:1fr}
  .market-strip-item{align-items:flex-start;flex-direction:column}
}

/* ===== HARD LOCK BRAND LOGO SIZE ===== */
.top .brand-wrap{
  display:flex !important;
  align-items:center !important;
  gap:13px !important;
}

.top .brand-mark{
  width:60px !important;
  height:60px !important;
  min-width:60px !important;
  max-width:60px !important;
  min-height:60px !important;
  max-height:60px !important;
  flex:0 0 60px !important;
  border-radius:999px !important;
  overflow:hidden !important;
  background:transparent !important;
  box-shadow:none !important;
}

.top .brand-mark img{
  width:60px !important;
  height:60px !important;
  min-width:60px !important;
  max-width:60px !important;
  min-height:60px !important;
  max-height:60px !important;
  object-fit:cover !important;
  display:block !important;
}
