:root{
  --bg:#101412;
  --panel:#171d1b;
  --card:#19201d;
  --panel-soft:#1d2421;
  --line:#2d3833;
  --line-soft:#25302b;
  --green:#77d6a0;
  --green-strong:#59bd86;
  --gold:#e4c477;
  --text:#edf3ef;
  --muted:#9caaa3;
  --muted2:#718078;
}
*{box-sizing:border-box}
html{background:var(--bg)}
body{
  margin:0;
  background:
    radial-gradient(circle at 10% 0,rgba(89,189,134,.055),transparent 28rem),
    linear-gradient(180deg,#101412 0,#121715 48%,#0f1312 100%);
  color:var(--text);
  font-family:"Segoe UI",Tahoma,Arial,sans-serif;
  line-height:1.55;
}
a{color:inherit}
.container{max-width:1180px;margin:0 auto;padding:0 20px}

/* Header */
.site-header{
  position:relative;
  z-index:10;
  background:#101412;
  border-bottom:1px solid var(--line-soft);
}
.header-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:28px;
  min-height:86px;
}
.site-logo{display:flex;align-items:center;text-decoration:none;flex:0 0 auto}
.site-logo img{display:block;height:78px;width:auto;max-width:260px;object-fit:contain}
.nav{display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end;align-items:center}
.nav a{
  color:#bcc8c1;
  text-decoration:none;
  padding:8px 10px;
  border-radius:6px;
  font-size:14px;
  transition:background .15s ease,color .15s ease;
}
.nav a:hover{color:#fff;background:#1b231f}

/* Hero */
.hero{
  border-bottom:1px solid var(--line-soft);
  background:rgba(255,255,255,.012);
}
.hero.compact-hero{padding:34px 0 31px}
.hero-title-line{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:28px;
}
.hero-kicker{
  display:block;
  margin-bottom:7px;
  color:var(--green);
  font-size:12px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.hero h1{
  margin:0;
  font-size:clamp(30px,4vw,44px);
  line-height:1.08;
  letter-spacing:-.025em;
  font-weight:700;
}
.hero-intro{
  max-width:720px;
  margin:10px 0 0;
  color:var(--muted);
  font-size:15px;
}
.hero-sub-inline{
  flex:0 0 auto;
  color:var(--muted2);
  font-size:12px;
  white-space:nowrap;
  padding-bottom:5px;
}

/* Sections */
.section{padding:34px 0 40px}
.section.alt{
  background:rgba(255,255,255,.014);
  border-top:1px solid var(--line-soft);
  border-bottom:1px solid var(--line-soft);
}
.section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:18px;
  margin-bottom:17px;
}
.section-head h2{margin:0;font-size:23px;line-height:1.2;font-weight:650;letter-spacing:-.01em}
.section-head p{margin:4px 0 0;color:var(--muted)}
.view-all{color:var(--green);text-decoration:none;font-size:13px}
.view-all:hover{text-decoration:underline}

/* Listings */
.five-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.card{
  position:relative;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:9px;
  overflow:hidden;
  box-shadow:0 5px 16px rgba(0,0,0,.13);
  transition:border-color .15s ease,transform .15s ease;
}
.card:hover{transform:translateY(-1px);border-color:#405048}
.thumb{
  width:100%;
  height:112px;
  object-fit:cover;
  display:block;
  background:#202622;
}
.thumb.placeholder,.placeholder-box{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:#7f9288;
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  background:linear-gradient(135deg,#222b27,#161c19);
  border-bottom:1px solid var(--line);
}
.card-body{padding:13px}
.card h3{margin:0 0 6px;font-size:16px;font-weight:650}
.card p{margin:0 0 11px;color:var(--muted);font-size:12.5px;line-height:1.45}
.btn{
  display:inline-block;
  background:#263b31;
  color:#b9e8cd;
  font-weight:650;
  font-size:12px;
  text-decoration:none;
  border:1px solid #365346;
  border-radius:6px;
  padding:7px 10px;
  cursor:pointer;
}
.btn:hover{background:#2d473a}
.btn.secondary{background:transparent;color:var(--green);border-color:#3d5a4c}
.banner-card{text-decoration:none;color:var(--text)}
.banner-card strong{display:block;margin-bottom:5px;font-size:15px}

/* Featured: visible, but no glowing AI-style badge */
.dd-featured-wrap{position:relative}
.dd-featured-badge{
  position:absolute;
  top:9px;
  right:9px;
  z-index:5;
  display:inline-block;
  background:rgba(228,196,119,.94);
  color:#17150f;
  font-weight:750;
  font-size:10px;
  letter-spacing:.055em;
  padding:4px 8px;
  border-radius:5px;
  box-shadow:none;
  text-transform:uppercase;
}
.dd-featured-wrap:hover .dd-featured-badge{box-shadow:none}

/* News */
.news-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.news-card img{width:100%;height:132px;object-fit:cover;display:block}
.news-card .card-body{padding:14px}

/* Shared inner pages/admin */
.pagination{display:flex;gap:8px;justify-content:center;margin:28px 0;flex-wrap:wrap}
.pagination a,.pagination span{padding:8px 12px;background:#171d1b;border:1px solid var(--line);color:var(--green);text-decoration:none;border-radius:6px}
.pagination .active{background:#263b31;color:#d9f3e4}
.market-detail{display:grid;grid-template-columns:1.25fr .75fr;gap:24px}
.detail-banner{width:100%;height:280px;object-fit:cover;border-radius:9px;border:1px solid var(--line);background:#181e1b}
.panel{background:var(--card);border:1px solid var(--line);border-radius:9px;padding:20px}
.admin-wrap{max-width:1160px;margin:25px auto;padding:0 18px}
.admin-menu{display:flex;gap:10px;flex-wrap:wrap;margin:15px 0 25px}
.admin-table{width:100%;border-collapse:collapse;background:#151b18;border:1px solid var(--line)}
.admin-table th,.admin-table td{padding:10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}
.admin-table th{color:var(--green)}
input,textarea,select{width:100%;padding:10px;background:#111613;color:#eee;border:1px solid #344039;border-radius:6px}
label{display:block;margin:12px 0 5px;color:#a9d9bd}
.form-card{background:#151b18;border:1px solid var(--line);border-radius:9px;padding:18px}
.notice{padding:12px;background:#173126;color:#d2eee0;border:1px solid #315b47;border-radius:6px;margin-bottom:14px}
.small-img{width:90px;height:48px;object-fit:cover;border-radius:5px}

/* Footer */
.site-footer{border-top:1px solid var(--line-soft);padding:30px 0 34px;color:var(--muted);background:#0e1210}
.footer-inner{text-align:center}
.footer-brand{font-size:17px;font-weight:700;color:#dce5e0}
.footer-sub{margin-top:3px;color:#8e9b94;font-size:13px}
.footer-links{display:flex;justify-content:center;gap:22px;flex-wrap:wrap;margin-top:15px}
.footer-links a{color:#b8c5be;text-decoration:none;font-size:13px}
.footer-links a:hover{color:var(--green)}
.footer-copy{margin-top:14px;color:#65736c;font-size:12px}

@media(max-width:1050px){
  .five-grid{grid-template-columns:repeat(3,1fr)}
  .news-grid{grid-template-columns:repeat(2,1fr)}
  .header-inner{align-items:flex-start;padding-top:12px;padding-bottom:12px}
  .site-logo img{height:68px}
}
@media(max-width:760px){
  .header-inner{flex-direction:column;gap:5px}
  .nav{justify-content:flex-start}
  .hero-title-line{align-items:flex-start;flex-direction:column;gap:10px}
  .hero-sub-inline{white-space:normal;padding:0}
}
@media(max-width:650px){
  .five-grid,.news-grid,.market-detail{grid-template-columns:1fr}
  .hero.compact-hero{padding:27px 0 25px}
  .hero h1{font-size:32px}
  .detail-banner{height:190px}
  .site-logo img{height:62px}
}


/* ===== Header size correction ===== */
.site-header{
  position:relative;
  width:100%;
  min-height:0;
}
.site-header .header-inner{
  max-width:1180px;
  min-height:82px;
  height:auto;
  margin:0 auto;
  padding:8px 20px;
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.site-header .site-logo{
  display:flex;
  flex:0 0 auto;
  width:auto;
  max-width:360px;
  height:66px;
  align-items:center;
  overflow:hidden;
}
.site-header .site-logo img{
  display:block !important;
  width:auto !important;
  height:66px !important;
  max-width:340px !important;
  max-height:66px !important;
  object-fit:contain !important;
}
.site-header .nav{
  flex:1 1 auto;
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:flex-end;
  gap:2px;
  flex-wrap:wrap;
}
.site-header .nav a{
  display:inline-block;
  width:auto;
  margin:0;
  padding:8px 9px;
  line-height:1.2;
  white-space:nowrap;
}

/* Header sponsor remains a separate row below navigation */
.site-header > .header-banner,
.site-header > .header-banner-wrap,
.site-header > .header-sponsor,
.site-header > .sponsor-banner{
  clear:both;
}

@media(max-width:900px){
  .site-header .header-inner{
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
    padding-top:10px;
    padding-bottom:10px;
  }
  .site-header .site-logo{
    height:58px;
    max-width:310px;
  }
  .site-header .site-logo img{
    height:58px !important;
    max-height:58px !important;
    max-width:300px !important;
  }
  .site-header .nav{
    justify-content:flex-start;
    width:100%;
  }
}
@media(max-width:520px){
  .site-header .site-logo{
    height:52px;
    max-width:270px;
  }
  .site-header .site-logo img{
    height:52px !important;
    max-height:52px !important;
    max-width:260px !important;
  }
  .site-header .nav a{
    padding:7px 8px;
    font-size:13px;
  }
}
