/* Font setup (you already have these) */
@font-face { font-family: "Realtime Test"; src: url("./fonts/realtimetest-light.otf") format("opentype"); font-weight: 300; }
@font-face { font-family: "Realtime Test"; src: url("./fonts/realtimetest-regular.otf") format("opentype"); font-weight: 400; }
@font-face { font-family: "Realtime Test"; src: url("./fonts/realtimetest-semibold.otf") format("opentype"); font-weight: 600; }
@font-face { font-family: "Realtime Test"; src: url("./fonts/realtimetest-bold.otf") format("opentype"); font-weight: 700; }
@font-face { font-family: "Realtime Test"; src: url("./fonts/realtimetest-black.otf") format("opentype"); font-weight: 900; }

:root {
  --bg: #000000;
  --text: #e7eefc;
  --muted: #93a1b6;
  --accent: #2f6ee5;
  --card: #0e1626;
  --border: #2a344b;
  --row-hover: #111a2e;
  --chip-bg: #111111;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: #000000;
  color: var(--text);
  font-family: "Realtime Test", sans-serif;
  font-size: 16px;
}

/* ===== Hero ===== */
/* ===== Boxed filter panel (hero) ===== */
.hero {
  text-align: center;
  padding: 120px 20px 60px;
  background: linear-gradient(180deg, #000000 0%, #0b0b0b 100%);
  border-bottom: 0px solid #1d1d1d;
}

.hero-content h1 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: .5px;
  margin: 0 0 10px;
}
.hero-sub {
  color: var(--muted);
  margin: 0 0 26px;
}

.search-panel {
  max-width: 710px;
  margin: 0 auto;
  border: 1px solid #3a3a3a;
  border-radius: 12px;
  background: #0000009c;
  padding: 14px;
}

/* top line: icon + input */
.search-panel__top {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0px solid #3a3a3a;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 22px;
  background: transparent;
}
.search-panel__icon {
  font-size: 12px; color: #9aa4b4; letter-spacing: .2px;
}
.search-panel__top input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 16px;
  padding: 2px;
  font-family: "Realtime Test", sans-serif;
}

/* filter rows: label + chips */
.filter-row { 
  display: grid; grid-template-columns: 100px 1fr; gap: 12px; 
  align-items: center; margin: 8px 6px;
}
.filter-label { 
  color: #9aa4b4; font-size: 14px; letter-spacing: .4px; text-align: left;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }

/* chip buttons */
.chip {
  background: transparent;
  color: var(--text);
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 15px;
  cursor: pointer;
  transition: all .18s ease;
  font-family: "Realtime Test", sans-serif;
}
.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.chip.active {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 8px rgba(47,110,229,.3);
}

/* CTA under panel */
.hero-cta {
  margin-top: 16px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 14px 26px;
  font-size: 16px;
  letter-spacing: .3px;
  cursor: pointer;
  transition: all .25s ease;
}
.hero-cta:hover {
  background: rgba(47,110,229,.08);
  box-shadow: 0 0 10px rgba(47,110,229,.35);
}

/* keep your existing table styling below */


/* ===== Table ===== */
.hidden { display: none; }

.table-wrap {
  max-width: 1100px;
  margin: 40px auto 60px;
  background: #0b0b0b;
  border: 1px solid #303030;
  border-radius: 16px;
  overflow: hidden;
}

.data-table { width: 100%; border-collapse: collapse; }
.data-table thead th {
  background: linear-gradient(180deg, #000, #0b0b0b);
  color: #eaf2ff;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  user-select: none;
  font-weight: 600;
}
.data-table thead th.th-right { text-align: right; }
.data-table thead th.th-center { text-align: center; }
.data-table thead th.sortable { cursor: pointer; }
.data-table thead th.sortable::after { content: '⇅'; font-size: 12px; opacity: .6; margin-left: 8px; }
.data-table thead th.sorted-asc::after { content: '↑'; opacity: 1; }
.data-table thead th.sorted-desc::after { content: '↓'; opacity: 1; }

.data-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #303030;
}
.data-table tbody tr:hover { background: var(--row-hover); }
.data-table tbody td.td-right { text-align: right; }
.data-table tbody td.td-center { text-align: center; }

/* Pagination bar */
.table-bottom {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-top: 1px solid #303030;
}
.table-bottom__left { color: var(--muted); font-size: 13px; }
.table-bottom__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.pager { display: flex; align-items: center; gap: 8px; }
.pager .btn {
  background: #000;
  color: var(--text);
  border: 1px solid #303030;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}
.pager .btn:disabled { opacity: .4; cursor: not-allowed; }
.pager__indicator { color: var(--muted); font-size: 13px; min-width: 110px; text-align: center; }

.table-bottom__right select {
  background: #000;
  color: var(--text);
  border: 1px solid #303030;
  border-radius: 8px;
  padding: 6px 10px;
}

/* Footer */
.app-footer {
  text-align: center;
  color: var(--muted);
  padding-bottom: 40px;
  font-size: 14px;
}

.masthead {
  position: relative;
  display: block;
  height: auto; /* will grow exactly to fit header + hero */
  background-image: url("./header-bg.png");
  background-size: cover;
  background-position: center 60%;
  background-repeat: no-repeat;
  background-attachment: scroll; /* prevent oversized fixed effect */
}

/* Optional overlay to darken it slightly */
.masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.45) 35%,
    rgba(0, 0, 0, 0.6) 100%
  );
  pointer-events: none;
}

.topbar,
.hero {
  position: relative;
  z-index: 1;
}

.hero {
  background: transparent; /* show image behind it */
}


/* ===== Topbar ===== */
/* ===== Topbar (glass) ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 15, 15, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.topbar__inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: transparent;
  position: static;
	flex-wrap: nowrap;
}

/* Currency group MUST be a row */
/* REMOVE the old .topbar .currency rule that had !important */

/* Keep a neutral default for desktop */
.topbar .currency {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.primary-nav {gap: 28px;display: flex;}
/* Brand layout */
.brand {
  display: flex;
  align-items: center;
  gap: 18px;  /* spacing between logo and text */
  font-size: 18px;
  margin-top: 2px;
}

/* Logo image */
.brand__img {
  height: 22px;           /* adjust to match text height visually */
  width: auto;            /* preserve aspect ratio */
  display: block;
  margin-right: 6px;
}

/* Brand text */
.brand__logo {
  display: flex;
  align-items: center;
  /* gap: 10px; */
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .4px;
  line-height: 1;
}

.brand__logo span {
  font-weight: 400;
  opacity: .9;
}

.navlink {color: #c9d2e6;text-decoration: none;font-size: 16px;letter-spacing: .2px;}
.navlink:hover { color: #fff; }

.currency { display: flex; gap: 8px; }
/* Currency buttons */
.curr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #959595;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  padding: 8px 0;          /* equal vertical padding only */
  width: 42px;             /* <<< ensures all same width */
  height: 36px;
  line-height: 1;
  cursor: pointer;
  transition: all .18s ease;
}

.curr-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.curr-btn.active {
  border-color: #cacaca;
  color: #cacaca;
  box-shadow: 0 0 8px rgba(47,110,229,.4);
}
/* Make $ and € slightly larger than the AED icon */
.curr-btn[data-currency="USD"],
.curr-btn[data-currency="EUR"] {
  font-size: 16px;  /* try 18px if you want them more dominant */
  line-height: 1;
  /* transform: translateY(-1px); */
}

/* AED icon (external SVG as mask) */
.icon {
  display: inline-block;
  width: 16px;
  height: 14px;
  background-color: currentColor;
  -webkit-mask: url("./icons/aed.svg") no-repeat center / contain;
  mask: url("./icons/aed.svg") no-repeat center / contain;
  vertical-align: middle;
}


/* Hamburger (hidden on desktop) */
.hamburger {
  display:none;
  width:38px; height:34px;
  border:1px solid #3a3a3a; border-radius:10px;
  background:transparent; cursor:pointer; padding:0 9px;
  align-items:center; justify-content:center; gap:4px;
}
.hamburger span {
  display:block; width:18px; height:2px; background:#c9d2e6; border-radius:2px;
}
.hamburger:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.hamburger.is-open span:nth-child(2){ opacity:0; }
.hamburger.is-open span:first-child{ transform:translateY(6px) rotate(45deg); }
.hamburger.is-open span:last-child{  transform:translateY(-6px) rotate(-45deg); }
.hamburger span { transition:transform .18s ease, opacity .18s ease; }

/* Mobile drawer (hidden by default) */
.mobile-menu {
  display:none;
  flex-direction:column;
  gap:8px;
  padding:10px 16px 14px;
  border-top:1px solid rgba(255,255,255,.08);
  background: rgba(15,15,15,.55);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
}
.mobile-menu.open { display:flex; }

.mobile-link {
  color:#e7eefc;
  text-decoration:none;
  font-size:16px;
  padding:10px 8px;
  border:1px solid #2d2d2d;
  border-radius:10px;
  background:rgba(0,0,0,.35);
}
.mobile-link:hover { border-color:var(--accent); color:var(--accent); }

/* Responsive behavior */
@media (max-width: 720px){
  .primary-nav { display:none; }
  .hamburger { display:inline-flex; }
  .right-side { gap:8px; }

  /* Hide currency in the header on mobile */
  .right-side .currency { 
    display: none !important;   /* ensure it wins now */
  }

  /* (optional) slightly smaller currency buttons if shown elsewhere */
  .currency .curr-btn { width:38px; height:34px; }
}


/* Mobile currency section styling */
.mobile-currency {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: center;
}

.mobile-currency .currency {
  display: flex;
  gap: 8px;
}

.mobile-currency .curr-btn {
  width: 42px;
  height: 36px;
}