* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, sans-serif;
}
body {
  background: #fff;
  color: #1f2430;
  -webkit-font-smoothing: antialiased;
}

:root {
  --grad-start: #685bff;
  --grad-end: #00e9c2;
  --radius: 10px;
  --nav-height: 56px;
  --border: 1px solid #e5e7eb;
  --border-color: #e4e7ec;
  --bg-soft: #f8f9fb;
  --text: #242a38;
  --text-dim: #6b7280;
  --accent: #675bff;
  --focus: 0 0 0 3px rgba(103, 91, 255, 0.35);
}

body {
  line-height: 1.4;
}
html {
  scroll-behavior: smooth;
}

/* Prevent background scroll when mobile menu is open */
body.menu-open {
  overflow: hidden;
}

/* Hero Landing */
.hero-landing {
  width: 100%;
  min-height: 80vh;
  padding: 140px 0 80px;
  position: relative;
  background: radial-gradient(circle at 100% 0%, #f0fdfa 0%, #ffffff 60%);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-text {
  position: relative;
  z-index: 2;
  max-width: 540px;
}
.hero-label {
  display: inline-block;
  color: #0f766e;
  font-size: 13px;
  letter-spacing: 0.5px;
  font-weight: 600;
  padding: 6px 14px;
  background: #ccfbf1;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1.15;
  margin: 0 0 20px;
  font-weight: 800;
  color: #0f172a;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 24px;
}
.hero-trust, .hero-stats {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 8px;
}
.hero-stats {
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.btn-primary {
  background: #0f766e;
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.25);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: #115e59;
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.35);
}
.btn-secondary {
  background: #ffffff;
  color: #475569;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
  border: 1px solid #cbd5e1;
  transition: background 0.2s;
}
.btn-secondary:hover {
  background: #f8fafc;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 440px;
}
.dashboard-card {
  width: 340px;
  background: #0f172a; /* Dark sleek UI */
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.4);
  color: #f8fafc;
  z-index: 2;
  border: 1px solid #1e293b;
}
.dash-header {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.dash-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dash-dot.red { background: #ef4444; }
.dash-dot.yellow { background: #f59e0b; }
.dash-dot.green { background: #10b981; }

.dash-title {
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.dash-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.dash-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: #1e293b;
  border-radius: 12px;
  font-size: 15px;
  transition: transform 0.2s;
}
.dash-list li:hover {
  transform: translateX(4px);
  background: #334155;
}
.dash-variety {
  font-weight: 500;
  color: #f1f5f9;
}
.dash-price {
  font-weight: 600;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ind {
  font-size: 14px;
}
.ind.up {
  color: #10b981; /* Green */
}
.ind.down {
  color: #ef4444; /* Red */
}

.float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 14px;
  color: #334155;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  z-index: 3;
}
.float-card.fc-left {
  top: 50px;
  left: -20px;
  animation: float-up 6s ease-in-out infinite;
}
.float-card.fc-right {
  bottom: 50px;
  right: -30px;
  animation: float-up 7s ease-in-out infinite reverse;
}
@keyframes float-up {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@media (max-width: 940px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }
  .hero-text {
    margin: 0 auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .float-card.fc-left {
    left: 10%;
  }
  .float-card.fc-right {
    right: 10%;
  }
}
@media (max-width: 600px) {
  .hero-landing {
    padding: 120px 0 60px;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .dashboard-card {
    width: 300px;
  }
  .float-card {
    display: none;
  }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border: none;
  z-index: 60;
  pointer-events: none; /* allow inner rounded bar to be focus surface */
  transition: transform 0.28s ease;
  will-change: transform;
}
.site-header.header-hidden {
  transform: translateY(-130%);
}
.nav-bar {
  width: 80%;
  max-width: 900px;
  margin: 30px auto 0;
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--nav-height);
  padding: 10px 34px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow: 0 8px 30px -12px rgba(0, 0, 0, 0.2),
    0 2px 6px -2px rgba(0, 0, 0, 0.12);
  pointer-events: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.5px;
  text-decoration: none;
  color: var(--text);
}
.brand-icon {
  display: flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
}
.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.brand-text {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: #000;
  font-weight: 500;
}

ul.menu {
  min-width: 1px;
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  align-items: center;
}
ul.menu li {
  display: flex;
}
.nav-link {
  position: relative;
  text-decoration: none;
  font-size: 15px;
  color: var(--text-dim);
  font-weight: 500;
  padding: 6px 0;
  transition: 0.25s color;
}
.nav-link:hover {
  color: var(--text);
}
.nav-link.active {
  color: var(--text);
  font-weight: 600;
}
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -11px;
  height: 3px;
  width: 100%;
  background: #9ae6b4; /* light green underline */
  border-radius: 3px;
}

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

button,
a {
  font-family: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #dfe3e8;
  background: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: #374151;
  transition: 0.2s background, 0.2s border-color;
  text-decoration: none;
}
.ghost-btn:hover {
  background: #f4f6f9;
  text-decoration: none;
}
.ghost-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.outline-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #dfe3e8;
  background: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  position: relative;
}
.outline-btn:hover {
  background: #f4f6f9;
}
.outline-btn .ext {
  position: relative;
  top: 1px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid transparent;
  color: #4b5563;
  transition: 0.2s background, 0.2s color;
}
.icon-btn:hover {
  background: #f1f3f6;
  color: #111827;
}
.icon-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.avatar {
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid transparent;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avatar:hover {
  box-shadow: 0 0 0 2px #eef0f3;
}
.avatar:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

/* Mobile toggle */
.mobile-toggle {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
  background: #fff;
  border: 1px solid #dfe3e8;
}
.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #374151;
  transition: 0.3s;
}
.mobile-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1100px) {
  .stock-grid {
    gap: 20px;
  }
  ul.menu {
  min-width: 1px;
    gap: 20px;
  }
  .nav-bar {
    width: 88%;
    padding: 10px 26px;
  }
}

/* Footer */
.site-footer {
  margin-top: 56px;
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: #cbd5e1;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 24px 34px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 28px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-brand-col {
  gap: 14px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #f8fafc;
  text-decoration: none;
}
.footer-brand .brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
}
.footer-brand-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.footer-tagline {
  margin: 0;
  max-width: 420px;
  font-size: 14px;
  line-height: 1.6;
  color: #94a3b8;
}
.footer-title {
  margin: 0 0 4px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e2e8f0;
}
.footer-link {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
  transition: color 0.2s ease;
}
.footer-link:hover {
  color: #5eead4;
}
.footer-text {
  margin: 0;
  font-size: 14px;
  color: #94a3b8;
}
.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding: 14px 24px calc(18px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
}
.footer-dot {
  margin: 0 8px;
}
@media (max-width: 920px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand-col {
    grid-column: 1 / -1;
  }
}
@media (max-width: 620px) {
  .footer-inner {
    grid-template-columns: 1fr;
    padding: 34px 18px 26px;
    gap: 22px;
  }
  .footer-brand-text {
    font-size: 20px;
  }
  .footer-bottom {
    padding-left: 16px;
    padding-right: 16px;
  }
  .footer-dot {
    display: none;
  }
}

@media (max-width: 940px) {
  .mobile-toggle {
    display: flex;
  }
  .nav-bar {
    gap: 14px;
  }
  ul.menu {
  min-width: 1px;
    position: fixed;
    inset: var(--nav-height) 0 auto 0;
    top: 100px;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 26px 40px;
    gap: 8px;
    border-top: 1px solid #eef0f3;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: calc(100dvh - var(--nav-height));
    overflow: auto;
  }
  ul.menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-link {
    font-size: 16px;
    padding: 10px 4px;
    width: 100%;
  }
  .nav-link.active::after {
    bottom: 0;
    left: 0;
    height: 2px;
  }
  .nav-actions {
    margin-left: 0;
    display: none; /* hide Cold Storage & Freight Train on mobile */
  }
  .nav-bar {
    flex-wrap: wrap;
    width: 92%;
    padding: 10px 20px;
  }
  .nav-actions {
    margin-left: auto;
  }
}

.page {
  max-width: 1200px; /* content width for sections below hero */
  margin: 20px auto 50px;
  padding: 0 24px 60px;
}

/* Offset in-page anchor jumps so content isn't hidden under fixed header */
.stock-section,
.varieties-section,
.news-section,
.faq-section {
  scroll-margin-top: calc(var(--nav-height) + 28px);
}
.page h1 {
  font-size: 38px;
  margin: 0 0 10px;
  letter-spacing: -1px;
}
.page .page-title {
  padding-top: 100px;
}
.page p {
  max-width: 620px;
  font-size: 18px;
  color: #4b5563;
}

/* Stock Sections */
.stock-section {
  margin-top: 50px;
}
.section-head {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}
.section-sub {
  font-size: 14px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin: 0 0 4px;
}
.stock-section h2 {
  font-size: 26px;
  margin: 0;
  letter-spacing: -0.3px;
  color: #0f172a;
}
.stock-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1024px) {
  .stock-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .stock-grid { grid-template-columns: 1fr; }
}

.stock-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  min-height: 170px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}
.stock-card.best-price {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2), 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.stock-card.loading {
  cursor: default;
  pointer-events: none;
  opacity: 0.7;
}
.stock-card:hover {
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
  border-color: #cbd5e1;
}

.card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.card-badge {
  width: 40px;
  height: 40px;
  background: #f1f5f9;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #475569;
}
.card-title-group {
  display: flex;
  flex-direction: column;
}
.stock-name {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 2px;
}
.card-time {
  font-size: 12px;
  color: #94a3b8;
}

.card-main {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}
.price {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.5px;
}
.change {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}
.change.up { color: #10b981; }
.change.down { color: #ef4444; }

.card-extra {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}
.yesterday {
  font-size: 13px;
  color: #64748b;
}
.sparkline {
  position: relative;
  width: 72px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background:
    repeating-linear-gradient(
      to right,
      rgba(148, 163, 184, 0.2) 0,
      rgba(148, 163, 184, 0.2) 1px,
      transparent 1px,
      transparent 12px
    ),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  overflow: hidden;
}
.sparkline svg {
  width: 100%;
  height: 100%;
  display: block;
}

.card-insight {
  margin-top: auto;
}
.insight-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}
.insight-tag.high-demand {
  background: #ecfdf5;
  color: #059669;
}
.insight-tag.oversupply {
  background: #fef2f2;
  color: #dc2626;
}
.insight-tag.stable {
  background: #f0fdf4;
  color: #16a34a;
}
.insight-tag.best-price-tag {
  background: #e0f2fe;
  color: #0284c7;
}
.section-footer {
  margin-top: 26px;
}
.see-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #059669;
  text-decoration: none;
}
.see-more:hover {
  text-decoration: underline;
}

/* News Section */
.news-section {
  margin-top: 70px;
}
.news-section h2 {
  font-size: 24px;
  margin: 0 0 26px;
  letter-spacing: -0.4px;
}
/* Refresh button alignment */
.news-section .section-head {
  align-items: center;
}
.refresh-news.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}
.refresh-news.is-loading:after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid #d1d5db;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
  margin-left: 8px;
  vertical-align: -2px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 36px 46px;
}
.loading-news {
  grid-column: 1/-1;
  font-size: 14px;
  color: #4b5563;
  margin: 6px 4px 10px;
  font-weight: 500;
}
.news-card {
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 18px;
  padding: 26px 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: 0.25s border-color, 0.25s box-shadow, 0.25s transform;
}
.news-card.skeleton {
  pointer-events: none;
}
.news-card.skeleton:hover {
  box-shadow: none;
  transform: none;
  border-color: #e6e8ec;
}
/* Skeleton elements */
.skeleton .sk-box,
.skeleton .sk-line,
.skeleton .sk-pill,
.skeleton .sk-meta {
  position: relative;
  overflow: hidden;
  background: #eceff1;
  background-image: linear-gradient(
    90deg,
    #eceff1 0%,
    #f5f7f9 50%,
    #eceff1 100%
  );
  background-size: 380px 100%;
  animation: newsShimmer 1.15s linear infinite;
  border-radius: 6px;
}
.skeleton .sk-box {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  flex-shrink: 0;
}
.skeleton .sk-line {
  height: 10px;
}
.skeleton .sk-pill {
  height: 16px;
  width: 60px;
  border-radius: 14px;
}
.skeleton .sk-meta {
  height: 8px;
  width: 120px;
  border-radius: 4px;
  margin-top: 4px;
}
.skeleton .sk-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.skeleton .sk-line.w60 {
  width: 60%;
}
.skeleton .sk-line.w40 {
  width: 40%;
}
.skeleton .sk-line.w90 {
  width: 90%;
}
.skeleton .sk-line.w75 {
  width: 75%;
}
.skeleton .sk-line.w55 {
  width: 55%;
}
.skeleton .sk-line.w30 {
  width: 30%;
}
.skeleton .sk-line.w20 {
  width: 20%;
}
.skeleton .sk-line.w100 {
  width: 100%;
}
.skeleton .news-head {
  align-items: flex-start;
}
@keyframes newsShimmer {
  to {
    background-position: 380px 0;
  }
}
.news-card:hover {
  border-color: #d9dde2;
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}
.news-head {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}
.news-head .company {
  font-size: 15px;
  margin: 0;
  font-weight: 600;
  flex: 1;
}
.change-pct {
  font-size: 13px;
  font-weight: 600;
}
.change-pct.up {
  color: #059669;
}
.change-pct.down {
  color: #c24124;
}
.badge {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  background: #0f5c8d;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06) inset, 0 0 0 1px rgba(0, 0, 0, 0.05);
}
.logo-apollo {
  background: #005b7d;
}
.logo-lt {
  background: #003a55;
}
.logo-tcs {
  background: #000;
  font-size: 17px;
  font-weight: 500;
  text-transform: lowercase;
}
.logo-hikal {
  background: #073a68;
}
.snippet {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #3a4352;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
  padding-left: 14px;
}
.snippet:before {
  content: "";
  width: 2px;
  background: #d5d9de;
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  border-radius: 2px;
}
.meta {
  font-size: 12px;
  color: #5b6472;
  margin-top: 4px;
  padding-left: 14px;
}
.meta time {
  font-style: normal;
}

@media (max-width: 860px) {
  .news-grid {
    gap: 30px 26px;
  }
  .news-card {
    padding: 22px 20px 26px;
  }
  .badge {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 520px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* Varieties (Sectors) Table */
.varieties-section {
  margin-top: 70px;
}
.varieties-section h2 {
  font-size: 24px;
  margin: 0 0 20px;
  letter-spacing: -0.4px;
}
.varieties-card {
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 16px;
  overflow: hidden;
}
.var-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 340px) 140px;
  align-items: center;
  padding: 18px 26px;
  font-size: 15px;
  gap: 40px;
}
.var-row.head {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: none;
  background: #fafbfc;
  color: #5a6473;
  border-bottom: 1px solid #eceff1;
}
.var-body .var-row {
  border-top: 1px solid #f0f2f4;
}
.var-body .var-row:first-child {
  border-top: none;
}
.var-icon {
  width: 34px;
  height: 34px;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f2f4f7;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  margin-right: 10px;
}
.var-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.var-stats .count {
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
  min-width: 14px;
}
.variety-bar {
  position: relative;
  flex: 1;
  height: 4px;
  background: linear-gradient(90deg, #059669, #059669);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
}
.variety-bar .seg {
  height: 100%;
  display: block;
}
.variety-bar .seg.up {
  background: #059669;
}
.variety-bar .seg.down {
  background: #c24124;
}
.pct {
  font-weight: 600;
  font-size: 14px;
}
.pct.up {
  color: #059669;
}
.pct.down {
  color: #c24124;
}

@media (max-width: 840px) {
  .var-row {
    grid-template-columns: minmax(160px, 1fr) 1fr 110px;
    gap: 26px;
    padding: 16px 18px;
  }
  .var-row.head {
    display: none;
  }
  .var-body .var-row {
    position: relative;
  }
  .var-body .var-row .trend-col {
    grid-column: 1 / -1;
    margin-top: 10px;
  }
  .var-body .var-row .change-col {
    position: absolute;
    top: 18px;
    right: 18px;
  }
}

@media (max-width: 560px) {
  .var-row {
    grid-template-columns: 1fr 100px;
  }
  .var-body .var-row .trend-col {
    grid-column: 1 / -1;
  }
  .var-body .var-row .change-col {
    position: static;
    margin-top: 10px;
  }
  .var-stats {
    gap: 10px;
  }
}

@media (max-width: 700px) {
  .stock-grid {
    gap: 20px;
  }
  .stock-card {
    padding: 20px 18px 24px;
    border-radius: 18px;
  }
  .stock-name {
    margin-bottom: 16px;
  }
}

/* Scroll shadow effect */
.site-header.is-scrolled {
  box-shadow: none;
}
.site-header.is-scrolled .nav-bar {
  box-shadow: 0 8px 26px -10px rgba(0, 0, 0, 0.18),
    0 2px 6px -2px rgba(0, 0, 0, 0.12);
}

/* Form (Submit Prices) */
.price-form {
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 22px;
  padding: 34px 30px 40px;
}
.price-form .form-grid {
  display: grid;
  gap: 24px 30px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.price-form label {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  gap: 8px;
  font-weight: 500;
  color: #374151;
}
.price-form .lbl {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #5b6472;
}
.price-form input,
.price-form select,
.price-form textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
  background: #f9fafb;
  transition: 0.2s border-color, 0.2s background;
  resize: vertical;
}
.price-form input:focus,
.price-form select:focus,
.price-form textarea:focus {
  outline: none;
  border-color: var(--grad-start);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(104, 91, 255, 0.25);
}
@media (max-width: 700px) {
  .price-form {
    padding: 26px 22px 32px;
    border-radius: 18px;
  }
  .price-form .form-grid {
    gap: 20px 20px;
  }
}

/* FAQ Accordion */
.faq-section {
  margin-top: 70px;
  position: relative;
}
.faq-section .section-head h2 {
  margin-bottom: 8px;
}
.faq-lead {
  margin: 0 0 18px;
  color: #64748b;
  font-size: 15px;
  line-height: 1.6;
  max-width: 700px;
}
.accordion {
  border: 1px solid #dbe2ea;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  overflow: hidden;
  box-shadow: 0 20px 36px -28px rgba(15, 23, 42, 0.35);
}
.accordion-item + .accordion-item {
  border-top: 1px solid #e2e8f0;
}
.accordion-trigger {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 22px 22px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: #0f172a;
  position: relative;
  transition: background 0.2s ease, color 0.2s ease;
}
.accordion-trigger:hover {
  background: #f8fafc;
}
.accordion-trigger::after {
  content: "+";
  margin-left: auto;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e2e8f0;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  color: #334155;
  transition: transform 0.25s, color 0.25s, background 0.25s;
}
.accordion-trigger[aria-expanded="true"]::after {
  content: "−";
  color: #fff;
  background: #0f766e;
}
.accordion-trigger[aria-expanded="true"] {
  background: #f8fafc;
  color: #0b4f49;
}
.accordion-trigger:focus-visible {
  outline: 2px solid #2dd4bf;
  outline-offset: 2px;
}
.faq-q-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #0f766e;
  background: #ccfbf1;
  border: 1px solid #99f6e4;
  flex: 0 0 auto;
}
.faq-q-text {
  line-height: 1.45;
}
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  padding: 0 22px 0 60px;
  font-size: 14px;
  line-height: 1.7;
  background: #f8fafc;
  transition: max-height 0.35s ease, padding-top 0.35s ease,
    padding-bottom 0.35s ease;
  color: #475569;
}
.accordion-panel.open {
  padding-top: 0;
  padding-bottom: 20px;
}
@media (prefers-reduced-motion: reduce) {
  .accordion-panel {
    transition: none;
  }
}
@media (max-width: 700px) {
  .accordion-trigger {
    padding: 18px 16px;
    font-size: 15px;
  }
  .accordion-panel {
    padding: 0 16px 0 52px;
    font-size: 13px;
  }
  .faq-lead {
    font-size: 14px;
    margin-bottom: 14px;
  }
}

/* Smart Filters & Compare Bar */
.smart-toolbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -8px 28px -18px rgba(15, 23, 42, 0.35);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
}
.toolbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.toolbar-filters {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}
.filter-group label {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}
.filter-group select {
  min-width: 110px;
  font-size: 13px;
  border: none;
  background: transparent;
  color: #0f172a;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}
.range-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 6px 16px;
}
.range-group input[type="range"] {
  width: 130px;
}
.btn-ghost {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  border: 1px solid #cbd5e1;
  background: #fff;
  cursor: pointer;
  padding: 9px 12px;
  border-radius: 10px;
}
.btn-ghost:hover {
  background: #f8fafc;
}
.btn-compare {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0f766e;
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 10px rgba(15, 118, 110, 0.2);
}
.btn-compare:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.3);
}
.page {
  padding-bottom: 120px;
}
.stock-card.is-filtered-out {
  display: none;
}
.stock-section.is-filtered-out {
  display: none;
}

/* Compare Modal */
.compare-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.compare-modal.show {
  opacity: 1;
  pointer-events: auto;
}
.compare-modal-content {
  background: #fff;
  width: 90%;
  max-width: 600px;
  border-radius: 20px;
  padding: 30px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform 0.3s;
}
.compare-modal.show .compare-modal-content {
  transform: translateY(0);
}
.compare-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 28px;
  line-height: 1;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
}
.compare-title {
  font-size: 22px;
  margin: 0 0 24px;
  color: #0f172a;
}
.compare-selections {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.cs-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cs-group label {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}
.cs-group select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 14px;
  outline: none;
}

.compare-vs {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f8fafc;
  padding: 24px;
  border-radius: 16px;
  margin-bottom: 24px;
}
.vs-card {
  flex: 1;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  text-align: center;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.vs-card.winner {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.vs-mandi {
  font-size: 16px;
  margin: 0 0 8px;
  color: #475569;
}
.vs-price {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}
.vs-card.winner .vs-price {
  color: #059669;
}
.vs-divider {
  font-weight: 700;
  color: #cbd5e1;
  font-size: 18px;
}

.compare-result {
  text-align: center;
}
.diff-chip {
  display: inline-block;
  background: #e0e7ff;
  color: #4f46e5;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 15px;
  margin-bottom: 16px;
}
.comp-recommendation {
  font-size: 16px;
  color: #334155;
  margin-bottom: 8px;
}
.comp-insight {
  font-size: 13px;
  color: #64748b;
}

@media (max-width: 768px) {
  .smart-toolbar {
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  }
  .toolbar-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
  }
  .toolbar-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .toolbar-actions {
    flex: 0 0 auto;
  }
  .btn-compare {
    height: 100%;
    min-height: 96px;
    flex-direction: column;
    justify-content: center;
    font-size: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(15, 118, 110, 0.3);
  }
  .compare-selections {
    flex-direction: column;
  }
  .compare-vs {
    flex-direction: column;
    padding: 16px;
  }
  .vs-card {
    width: 100%;
  }
}

/* Insights Section */
.insights-section {
  margin-top: 60px;
}
.insights-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1024px) {
  .insights-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .insights-grid { grid-template-columns: 1fr; }
}
.insight-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
  transition: transform 0.25s, box-shadow 0.25s;
}
.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.1);
}
.insight-variety {
  font-size: 18px;
  margin: 0 0 16px;
  color: #0f172a;
}
.ratio-viz {
  margin-bottom: 20px;
}
.ratio-text {
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 8px;
}
.ratio-bar {
  width: 100%;
  height: 8px;
  background: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
}
.ratio-fill {
  height: 100%;
  border-radius: 4px;
}
.ratio-fill.demand { background: #3b82f6; }
.ratio-fill.balanced { background: #10b981; }
.ratio-fill.supply { background: #f59e0b; }

.insight-tags {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.price-pressure {
  font-size: 13px;
  font-weight: 600;
}
.price-pressure.rise { color: #059669; }
.price-pressure.stable { color: #64748b; }
.price-pressure.drop { color: #dc2626; }

.insight-desc {
  font-size: 13px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* Prediction Section */
.prediction-section {
  margin-top: 60px;
}
.prediction-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1024px) {
  .prediction-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .prediction-grid { grid-template-columns: 1fr; }
}
.prediction-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
}
.pred-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}
.pred-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
}
.pred-icon.up { background: #d1fae5; color: #059669; }
.pred-icon.down { background: #fee2e2; color: #dc2626; }
.pred-icon.stable { background: #e2e8f0; color: #475569; }

.pred-title h3 {
  margin: 0 0 4px;
  font-size: 18px;
  color: #0f172a;
}
.pred-dir {
  font-size: 13px;
  font-weight: 600;
}
.pred-dir.up { color: #059669; }
.pred-dir.down { color: #dc2626; }
.pred-dir.stable { color: #475569; }

.pred-conf {
  font-size: 14px;
  color: #475569;
  margin-bottom: 12px;
}
.pred-reason {
  font-size: 13px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* Community Section */
.community-section {
  margin-top: 60px;
  margin-bottom: 60px;
}
.community-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 3fr 2fr;
  align-items: start;
}
@media (max-width: 900px) {
  .community-grid { grid-template-columns: 1fr; }
}
.community-form-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
}
.form-row {
  display: flex;
  gap: 20px;
}
.form-row > * {
  flex: 1;
}
@media (max-width: 600px) {
  .form-row { flex-direction: column; gap: 0; }
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}
.price-form select,
.price-form input[type="number"],
.price-form input[type="file"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 15px;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.price-form select:focus,
.price-form input[type="number"]:focus {
  border-color: #0f766e;
  background: #fff;
}
.file-group .file-input {
  padding: 10px 14px;
  background: transparent;
  border: 1px dashed #cbd5e1;
}

.btn-submit {
  display: block;
  width: 100%;
  padding: 14px;
  background: #0f766e;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s transform 0.2s;
  margin-top: 10px;
}
.btn-submit:hover {
  background: #115e59;
}
.form-success {
  margin-top: 20px;
  padding: 16px;
  background: #ecfdf5;
  border-radius: 10px;
  text-align: center;
}
.success-msg {
  color: #059669;
  font-weight: 600;
  margin: 0 0 4px;
  font-size: 15px;
}
.pending-msg {
  color: #475569;
  font-size: 13px;
  margin: 0;
}

.trust-card {
  background: #f0fdf4;
  border-radius: 20px;
  padding: 32px;
}
.trust-icon {
  font-size: 32px;
  margin-bottom: 16px;
}
.trust-title {
  color: #064e3b;
  font-size: 20px;
  margin: 0 0 12px;
}
.trust-desc {
  color: #065f46;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 24px;
}

.activity-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(5, 150, 105, 0.15);
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.stat-avatar-group {
  display: flex;
  align-items: center;
}
.stat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #059669;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  border: 2px solid #f0fdf4;
  margin-left: -8px;
}
.stat-avatar:first-child {
  margin-left: 0;
}
.stat-text {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-size: 16px;
  font-weight: 700;
  color: #064e3b;
}
.stat-label {
  font-size: 13px;
  color: #065f46;
  font-weight: 500;
}
.stat-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
}
.stat-dot.pulse {
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}


/* Hide empty nav list / toggle when no links */
ul.menu:empty {
  display: none;
}
.nav-bar:has(ul.menu:empty) .mobile-toggle {
  display: none;
}
