/* =========================================================
   UbuntuFX — Economic Calendar (Premium / Minimal Hero)
   Works with your current HTML (no edits required)
   ========================================================= */

/* ===== RESET + TOKENS ===== */
*{margin:0;padding:0;box-sizing:border-box}
:root{
  --bg:#0A1F2F;
  --accent:#00C853;
  --gold:#F9A825;
  --secondary:#1E3A5F;
  --white:#fff;
  --black:#000;

  --text: rgba(244,246,248,.92);
  --muted: rgba(244,246,248,.72);
  --muted2: rgba(244,246,248,.56);

  --border: rgba(255,255,255,.10);
  --border2: rgba(255,255,255,.16);

  --radius: 18px;
  --radius2: 22px;
  --pill: 999px;

  --shadow: 0 18px 50px rgba(0,0,0,.42);
  --shadow2: 0 12px 34px rgba(0,0,0,.34);

  --ease: cubic-bezier(.2,.8,.2,1);
  --font: "Jost", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --container: 1280px;
}

html{scroll-behavior:smooth}
body{
  font-family: var(--font);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;

  /* rich but subtle background */
  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(0,200,83,.12), transparent 55%),
    radial-gradient(1200px 800px at 85% 15%, rgba(249,168,37,.10), transparent 60%),
    radial-gradient(1100px 700px at 50% 105%, rgba(30,58,95,.32), transparent 60%),
    var(--bg);
}

a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.container{width:min(var(--container),92vw);margin:0 auto}

h1,h2,h3{color:var(--white);letter-spacing:-.3px}
h1{font-size: clamp(34px, 4.2vw, 56px); line-height: 1.06}
h2{font-size: clamp(26px, 2.6vw, 38px); line-height: 1.15}
p{color: var(--muted)}

:focus-visible{
  outline: 2px solid rgba(0,200,83,.55);
  outline-offset: 2px;
  border-radius: 12px;
}

.section{padding: 84px 0}
.section-sm{padding: 64px 0}

/* ===== Eyebrow / Pills ===== */
.eyebrow{
  display:inline-flex;align-items:center;gap:10px;
  padding:8px 14px;border-radius:var(--pill);
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}
.dot{
  width:8px;height:8px;border-radius:999px;background:var(--accent);
  box-shadow:0 0 0 6px rgba(0,200,83,.12);
}
.pill{
  display:inline-flex;align-items:center;gap:8px;
  padding:7px 12px;border-radius:var(--pill);
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  color: rgba(244,246,248,.78);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .2px;
  backdrop-filter: blur(10px);
}
.pill i{color:var(--gold)}
.pill strong{color:var(--white);font-weight:950}

/* ===== Buttons ===== */
.btn{
  border:0;cursor:pointer;border-radius:var(--pill);
  padding: 12px 18px;
  font-weight: 950;
  font-size: 14.5px;
  letter-spacing: .2px;
  display:inline-flex;align-items:center;gap:10px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), border-color .25s var(--ease);
  user-select:none;white-space:nowrap;
}
.btn-primary{
  color:#062016;
  background: linear-gradient(135deg, rgba(0,200,83,1), rgba(0,200,83,.78));
  box-shadow: 0 18px 45px rgba(0,200,83,.22);
}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 22px 52px rgba(0,200,83,.28)}
.btn-ghost{
  color: var(--text);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover{transform:translateY(-2px);border-color:var(--border2);box-shadow:var(--shadow2)}

/* ===== NAVBAR ===== */
.nav-wrap{
  position: sticky; top:0; z-index:999;
  padding: 14px 0;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.navbar{display:flex;align-items:center;justify-content:space-between;gap:18px}
.brand{display:inline-flex;align-items:center;gap:12px;min-width:200px}
.logo-slot{
  width:44px;height:44px;border-radius:14px;overflow:hidden;
  border:1px solid var(--border);
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  display:grid;place-items:center;
}
.logo-slot img{width:100%;height:100%;object-fit:cover}
.brand strong{font-weight:950;letter-spacing:.2px}
.brand small{display:block;color:var(--muted2);font-weight:700;margin-top:-2px}

.nav-links{display:flex;align-items:center;gap:18px}
.nav-links a{
  color: var(--muted);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .2px;
  padding: 10px 12px;
  border-radius: var(--pill);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.nav-links a:hover{color:var(--text);background:rgba(255,255,255,.06)}
.nav-links a.active{
  color: var(--white);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(249,168,37,.25);
}

.nav-actions{display:flex;align-items:center;gap:10px}
.menu-btn{
  display:none;
  width:44px;height:44px;border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.05);
  color: var(--text);
  cursor:pointer;
}
.mobile-panel{
  display:none;margin-top:12px;
  border:1px solid var(--border);
  background: rgba(10,31,47,.92);
  backdrop-filter: blur(14px);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.mobile-panel .inner{padding:14px;display:grid;gap:10px}
.mobile-panel a{
  padding:12px;border-radius:14px;
  color: var(--muted);
  font-weight: 950;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}
.mobile-panel a:hover{color:var(--text);border-color:rgba(255,255,255,.12)}
.mobile-open .mobile-panel{display:block}

@media (max-width:980px){
  .nav-links{display:none}
  .menu-btn{display:inline-grid;place-items:center}
  .brand{min-width:auto}
}

/* =========================================================
   HERO — Minimal, clean, 60–70vh
   (Neutralizes inline styles from HTML)
   ========================================================= */
.page-hero{
  position: relative;
  min-height: clamp(60vh, 66vh, 70vh);
  display:flex;
  align-items:center;
  padding: 64px 0 28px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  overflow:hidden;
}
.page-hero::before{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.32), rgba(0,0,0,.74)),
    radial-gradient(900px 420px at 18% 10%, rgba(0,200,83,.18), transparent 60%),
    radial-gradient(900px 420px at 82% 12%, rgba(249,168,37,.16), transparent 62%);
  z-index:0;
}
.page-hero .container{position:relative;z-index:1}

/* hero layout: single clean column, no clutter */
.page-hero .wrap{
  display:grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items:center;
}

/* tighten typography and remove random margins caused by inline styling */
.page-hero h1{
  margin-top: 12px !important;
  text-shadow: 0 14px 38px rgba(0,0,0,.55);
}
.page-hero p{
  margin-top: 12px !important;
  max-width: 62ch !important;
  font-size: 1.02rem !important;
  color: rgba(244,246,248,.78) !important;
}

/* meta row becomes minimal “chips” row, wraps clean */
.meta-row{
  margin-top: 18px !important;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

/* actions: reduce clutter by spacing + same height */
.hero-actions{
  margin-top: 18px !important;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.hero-actions .btn{padding: 11px 14px}

/* mobile hero: more breathing room, smaller text, fewer lines */
@media (max-width:980px){
  .page-hero{
    min-height: clamp(60vh, 64vh, 70vh);
    padding: 56px 0 18px;
  }
  .page-hero p{
    font-size: .98rem !important;
    max-width: 56ch !important;
  }
}

/* =========================================================
   “How to use” section — premium card, aligned + not massive
   ========================================================= */
section > .hero-card{
  width: min(var(--container),92vw);
  margin: 18px auto 0;
}

/* premium glass card */
.hero-card{
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding: 18px;
  position: relative;
  overflow:hidden;
}
.hero-card::before{
  content:"";
  position:absolute; inset:-1px;
  background:
    radial-gradient(620px 260px at 18% 0%, rgba(0,200,83,.16), transparent 60%),
    radial-gradient(520px 220px at 96% 10%, rgba(249,168,37,.12), transparent 62%);
  opacity:.9;
  pointer-events:none;
}
.hero-card > *{position:relative;z-index:1}

/* mini cards inside “how to use” */
.mini{
  border: 1px solid rgba(255,255,255,.10) !important;
  background: rgba(0,0,0,.18) !important;
  border-radius: 16px;
  padding: 12px 14px;
}
.mini .k{
  color: rgba(244,246,248,.60);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing:.35px;
  font-weight: 950;
}
.mini .v{
  margin-top: 6px;
  font-weight: 950;
  color: rgba(255,255,255,.92);
  font-size: 14px;
}
.mini .v span{
  color: rgba(244,246,248,.62);
  font-weight: 800;
  font-size: 12.5px
}

/* status chip (pro mode) */
.status{
  display:inline-flex;align-items:center;gap:8px;
  padding:6px 10px;border-radius: var(--pill);
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  color: var(--muted);
  font-weight: 950;
  font-size: 12px;
  letter-spacing: .2px;
  white-space: nowrap;
}
.status.upcoming{border-color: rgba(249,168,37,.30); color: rgba(249,168,37,.95)}
.status.done{border-color: rgba(255,255,255,.12); color: rgba(244,246,248,.70)}
.status.live{border-color: rgba(0,200,83,.35); color: rgba(0,200,83,.95)}

/* icon badge */
.icon-badge{
  width:44px;height:44px;border-radius:16px;
  display:grid;place-items:center;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
}
.icon-badge i{font-size:18px;color: var(--gold)}

/* =========================================================
   FILTER TOOLBAR (cleaner, less bulky)
   ========================================================= */
.toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 14px;
}

.filters{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}

.group{
  display:flex;flex-wrap:wrap;gap:8px;align-items:center;
  background: rgba(0,0,0,.20);
  border: 1px solid rgba(255,255,255,.08);
  padding: 10px;
  border-radius: 18px; /* more “card-like” than pill */
  backdrop-filter: blur(10px);
}

.filter-pill{
  display:inline-flex;align-items:center;gap:8px;
  padding: 8px 12px;
  border-radius: var(--pill);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(244,246,248,.76);
  font-size: 13px;
  font-weight: 950;
  cursor:pointer;
  transition: transform .2s var(--ease), background .2s var(--ease),
              border-color .2s var(--ease), color .2s var(--ease);
  user-select:none;
}
.filter-pill:hover{transform:translateY(-1px);border-color: rgba(255,255,255,.16);color: var(--text)}
.filter-pill.active{
  background: rgba(30,58,95,.66);
  border-color: rgba(249,168,37,.32);
  color: var(--white);
}

/* search input */
.search{
  display:flex;align-items:center;gap:10px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.10);
  padding: 10px 12px;
  border-radius: var(--pill);
  min-width: 320px;
}
.search i{color: var(--muted2)}
.search input{
  width: 100%;
  border:0;outline:none;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 800;
}
.search input::placeholder{color: rgba(244,246,248,.48)}
@media (max-width:980px){
  .search{min-width:100%}
  .group{width:100%}
}

/* =========================================================
   CALENDAR TABLE — premium head, smoother rows, better mobile
   ========================================================= */
.calendar-card{
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border-radius: var(--radius2);
  box-shadow: var(--shadow2);
  overflow:hidden;
}

.calendar-head{
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display:flex;flex-wrap:wrap;gap:10px;
  align-items:center;justify-content:space-between;
  background: rgba(0,0,0,.18);
}

.badge{
  display:inline-flex;align-items:center;gap:8px;
  padding: 6px 10px;
  border-radius: var(--pill);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: rgba(244,246,248,.78);
  font-weight: 950;
  font-size: 12px;
  letter-spacing: .2px;
}

.legend{
  display:flex;flex-wrap:wrap;gap:10px;align-items:center;
  color: rgba(244,246,248,.62);
  font-size: 13px;
  font-weight: 900;
}
.legend .chip{
  display:inline-flex;align-items:center;gap:8px;
  padding: 6px 10px;
  border-radius: var(--pill);
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}

.impact{
  display:inline-flex;align-items:center;gap:8px;
  padding: 6px 10px;
  border-radius: var(--pill);
  font-weight: 950;
  font-size: 12px;
  letter-spacing: .2px;
  border: 1px solid rgba(255,255,255,.10);
}
.impact.high{background: rgba(244,67,54,.18); color: #ffb4b4; border-color: rgba(244,67,54,.28)}
.impact.med{background: rgba(255,193,7,.18); color: #ffe9a8; border-color: rgba(255,193,7,.28)}
.impact.low{background: rgba(76,175,80,.18); color: #bff0c2; border-color: rgba(76,175,80,.28)}

.table-wrap{
  overflow:auto;
  -webkit-overflow-scrolling: touch;
}

table{
  width:100%;
  border-collapse:collapse;
  min-width: 980px;
}

thead th{
  text-align:left;
  padding: 14px 14px;
  color: rgba(249,168,37,.95);
  font-weight: 950;
  font-size: 12px;
  letter-spacing: .45px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  position: sticky;
  top: 0;
  z-index: 2;
}

tbody td{
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: rgba(244,246,248,.86);
  font-size: 14.5px;
  vertical-align: middle;
}

tbody tr{
  transition: background .2s var(--ease);
}
tbody tr:hover{background: rgba(255,255,255,.03)}

.currency-badge{
  display:inline-flex;align-items:center;gap:8px;
  padding: 6px 10px;
  border-radius: var(--pill);
  background: rgba(0,0,0,.26);
  border: 1px solid rgba(255,255,255,.10);
  font-weight: 950;
  font-size: 12px;
  letter-spacing: .35px;
}
.currency-dot{
  width:8px;height:8px;border-radius:999px;background: var(--gold);
  box-shadow: 0 0 0 5px rgba(249,168,37,.12);
}

.event-title{font-weight: 950; color: rgba(255,255,255,.92)}
.event-sub{color: rgba(244,246,248,.58); font-size: 13px; margin-top: 2px}

.row-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.row-btn{
  padding: 8px 12px;
  border-radius: var(--pill);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-weight: 950;
  font-size: 12.5px;
  cursor:pointer;
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
  display:inline-flex;align-items:center;gap:8px;
  user-select:none;
}
.row-btn:hover{transform:translateY(-1px);border-color: rgba(255,255,255,.18)}
.row-btn.gold{border-color: rgba(249,168,37,.22)}
.row-btn.green{border-color: rgba(0,200,83,.22)}

/* details row */
.more-row{display:none}
.more{
  background: rgba(0,0,0,.18);
  border-top: 1px dashed rgba(255,255,255,.10);
}
.more .box{
  padding: 14px;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
}
@media (max-width:980px){
  table{min-width: 860px}
  .more .box{grid-template-columns: 1fr}
}
.more h4{margin:0 0 8px;font-size: 14px;letter-spacing: .2px}
.more p{margin:0;color: var(--muted); font-size: 14px; line-height: 1.7}

.mini-grid{
  display:grid;gap:10px;
  grid-template-columns: repeat(2, minmax(0,1fr));
}

.muted-note{
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted2);
  display:flex;justify-content:flex-end;gap:10px;align-items:center;
}

/* =========================================================
   INSIGHTS GRID (keep premium cards)
   ========================================================= */
.grid{display:grid;gap: 16px}
.grid-3{grid-template-columns: repeat(3, minmax(0,1fr))}
@media (max-width:980px){
  .grid-3{grid-template-columns: 1fr}
}

.card{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
  padding: 18px;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  position: relative;
  overflow: hidden;
}
.card:before{
  content:"";position:absolute;inset:-1px;
  background:
    radial-gradient(360px 170px at 10% 0%, rgba(0,200,83,.10), transparent 62%),
    radial-gradient(360px 170px at 90% 0%, rgba(249,168,37,.08), transparent 62%);
  opacity:.7;pointer-events:none;
}
.card > *{position:relative;z-index:1}
.card:hover{transform:translateY(-3px);border-color:rgba(255,255,255,.16);box-shadow:0 18px 44px rgba(0,0,0,.38)}
.card h3{margin:6px 0 10px;font-size: 18px}
.card p{margin:0;color:var(--muted);font-size: 14.8px;line-height: 1.75}

/* =========================================================
   FOOTER (keep consistent)
   ========================================================= */
footer{
  background:#000;
  border-top:1px solid rgba(255,255,255,.08);
  padding: 54px 0 22px;
  margin-top: 30px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr .9fr .9fr;
  gap: 18px;
  align-items:start;
}
@media (max-width:980px){ .footer-grid{grid-template-columns: 1fr} }
.footer-brand{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.footer-logo{
  width:46px;height:46px;border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  overflow:hidden;display:grid;place-items:center;
}
.footer-logo img{width:100%;height:100%;object-fit:cover}
.footer h4{
  margin:0 0 12px;
  font-size: 14px;
  letter-spacing: .28px;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
}
.footer p,.footer a,.footer li{
  color: rgba(255,255,255,.70);
  font-size: 14.5px;
  line-height: 1.75;
}
.footer ul{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.footer a:hover{color: rgba(255,255,255,.92)}
.contact-line{display:flex;gap:10px;align-items:flex-start;margin: 10px 0}
.contact-line i{margin-top:3px;color: var(--gold);width:18px}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.08);
  margin-top: 22px;
  padding-top: 16px;
  display:flex;flex-wrap:wrap;gap:10px;
  justify-content:space-between;align-items:center;
}
.footer-bottom small{color: rgba(255,255,255,.55); line-height: 1.6}
.credit a{color: rgba(0,200,83,.95); font-weight: 950}

/* helpers */
.hide{display:none!important}