:root {
  --rk: #1a7a5e;
  --rk-l: #e8f5f0;
  --rk-d: #0f5240;
  --rk-hover: #156b51;
  --am: #f5a623;
  --am-d: #8b5e00;
  --bg: #f4f6f9;
  --surf: #ffffff;
  --bdr: #e8ecf1;
  --bdr2: #d1d9e0;
  --t1: #0d1117;
  --t2: #4a5568;
  --t3: #9aa5b4;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --sh: 0 2px 12px rgba(0, 0, 0, 0.07);
  --sh-md: 0 4px 24px rgba(0, 0, 0, 0.1);
}

/* Use new font direction but keep fallback safe */
body {
  background: var(--bg);
  color: var(--t1);
}

/* Hide old ticker on pages where it exists */
#newsTicker {
  display: none !important;
}

/* New header */
.rk-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--bdr);
}

.rk-header {
  gap: 14px;
}

.rk-navbar .header-inner {
  min-height: 64px;
}

.rk-logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  line-height: 1;
}

.rk-logo img {
  height: 44px;
  width: auto;
  display: block;
}

.rk-search {
  flex: 1;
  max-width: 520px;
}

.rk-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rk-nav-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--t2);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  white-space: nowrap;
}

.rk-nav-link:hover,
.rk-nav-link.active {
  background: var(--rk-l);
  color: var(--rk);
}

.rk-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.rk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
}

.rk-btn-ghost {
  background: #fff;
  border-color: var(--bdr2);
  color: var(--t1);
}

.rk-btn-ghost:hover {
  border-color: var(--rk);
  color: var(--rk);
  background: var(--rk-l);
}

.rk-btn-sell {
  background: var(--am);
  color: #fff;
  box-shadow: 0 2px 10px rgba(245, 166, 35, 0.3);
}

.rk-btn-sell:hover {
  background: var(--am-d);
}

.rk-navbar .search-wrap {
  background: var(--bg);
  border: 1.5px solid var(--bdr);
  border-radius: 30px;
  padding: 8px 14px;
  box-shadow: none;
}

.rk-navbar .search-wrap:focus-within {
  border-color: var(--rk);
}

.rk-navbar .search-wrap input {
  font-size: 13px;
}

.rk-navbar .btn.btn-primary.pulse {
  background: var(--am);
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(245, 166, 35, 0.3);
}

.rk-navbar .btn.btn-primary.pulse:hover {
  background: var(--am-d);
}

/* New hero */
.rk-hero2 {
  padding: 46px 0 30px;
  background:
    radial-gradient(900px 420px at 20% 0%, rgba(245, 166, 35, 0.18), transparent 60%),
    radial-gradient(900px 420px at 80% 10%, rgba(26, 122, 94, 0.2), transparent 60%),
    linear-gradient(180deg, #0f6d53, #18946f);
  border-bottom: 1px solid rgba(232, 236, 241, 0.9);
}

.rk-hero2-inner {
  text-align: center;
  color: #fff;
}

.rk-hero2-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.2px;
}

.rk-hero2-title {
  margin: 16px 0 10px;
  font-size: 44px;
  line-height: 1.06;
  letter-spacing: -1px;
}

.rk-hero2-title span {
  color: #ffd38a;
}

.rk-hero2-sub {
  margin: 0 auto;
  max-width: 70ch;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
}

.rk-hero2-search {
  margin: 22px auto 18px;
  width: min(920px, 96%);
  background: rgba(255, 255, 255, 0.98);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  color: var(--t1);
}

.rk-hero2-tabs {
  display: inline-flex;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--bdr);
  border-radius: 14px;
  padding: 6px;
}

.rk-hero2-tab {
  border: none;
  background: transparent;
  padding: 8px 14px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  color: var(--t2);
}

.rk-hero2-tab.active {
  background: #fff;
  color: var(--rk-d);
  box-shadow: var(--sh);
}

.rk-hero2-searchrow {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--bdr);
  border-radius: 16px;
  padding: 10px 12px;
  background: #fff;
}

.rk-hero2-searchrow input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  font-size: 14px;
}

.rk-hero2-searchbtn {
  border: none;
  padding: 10px 18px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  color: #fff;
  background: #0f6d53;
  box-shadow: 0 12px 24px rgba(15, 109, 83, 0.25);
}

.rk-hero2-searchbtn:hover {
  background: #0b5a44;
}

.rk-hero2-stats {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: center;
  justify-items: center;
}

.rk-stat {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 12px 14px;
  width: 100%;
  max-width: 220px;
}

.rk-stat-v {
  font-size: 24px;
  font-weight: 1000;
  letter-spacing: -0.6px;
}

.rk-stat-l {
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 980px) {
  .rk-logo img {
    height: 38px;
  }

  .rk-nav-links {
    display: none;
  }
  .rk-search {
    max-width: none;
  }
  .rk-hero2-title {
    font-size: 34px;
  }
  .rk-hero2-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .rk-actions {
    display: none;
  }
  .rk-hero2-searchrow {
    flex-direction: column;
    align-items: stretch;
  }
  .rk-hero2-searchbtn {
    width: 100%;
  }
}
