/**
 * Homepage - Trading platform clone
 * Dark blue (#0f172a), white, yellow (#FACC15) palette
 */

:root {
  --hp-dark: #0f172a;
  --hp-dark-alt: #1e293b;
  --hp-text-light: #f8fafc;
  --hp-text-muted: #94a3b8;
  --hp-yellow: #FACC15;
  --hp-yellow-hover: #EAB308;
  --hp-border: #334155;
  --hp-container: 1200px;
  --hp-font: 'Inter', -appletem, BlinkMacSystemFont, sans-serif;
}

.hp-body {
  font-family: var(--hp-font);
}

/* ========== Header ========== */
.hp-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.hp-header-dark {
  background: #111727;
  border-bottom-color: rgba(255,255,255,0.08);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.hp-header-dark .hp-logo { color: #fff; }
.hp-header-dark .hp-nav-list a { color: rgba(255,255,255,0.9); }
.hp-header-dark .hp-nav-list a:hover { color: #fff; }
.hp-header-dark .hp-nav-toggle { color: #fff; }

.hp-header-inner {
  max-width: var(--hp-container);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hp-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  text-decoration: none;
  flex-shrink: 0;
}

.hp-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #475569;
}

.hp-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hp-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}

.hp-nav-list a {
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.hp-nav-list a:hover {
  color: var(--hp-dark);
}

.hp-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.hp-header-actions form {
  margin: 0;
}

.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.hp-btn-primary {
  background: var(--hp-yellow);
  color: #1e293b;
  border-color: var(--hp-yellow);
}

.hp-btn-primary:hover {
  background: var(--hp-yellow-hover);
  border-color: var(--hp-yellow-hover);
}

.hp-btn-outline {
  background: #e2e8f0;
  color: #1e293b;
  border: 2px solid #1e293b;
}

.hp-btn-outline:hover {
  border-color: #475569;
  color: #0f172a;
  background: #cbd5e1;
}

.hp-btn-text {
  background: transparent;
  color: inherit;
  border: none;
}

.hp-header-dark .hp-btn-text {
  color: #fff;
}

.hp-btn-text:hover {
  opacity: 0.9;
}

.hp-btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.6);
}

.hp-btn-outline-light:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.hp-btn-lg {
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
}

.hp-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  border-radius: 0.5rem;
  color: #64748b;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.hp-icon-btn:hover {
  color: var(--hp-dark);
  background: #f1f5f9;
}

.hp-nav-external {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.hp-nav-external svg {
  opacity: 0.7;
}

.hp-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  font-family: inherit;
}

.hp-lang-btn:hover {
  color: var(--hp-dark);
}

.hp-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.2s;
}

.hp-nav-overlay.open {
  display: block;
  opacity: 1;
}

.hp-nav-mobile {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 90vw;
  height: 100vh;
  background: #111727;
  z-index: 1001;
  padding: 0;
  box-shadow: -4px 0 20px rgba(0,0,0,0.3);
  transform: translateX(100%);
  transition: transform 0.3s;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hp-nav-mobile { display: none !important; }
}

.hp-nav-mobile .hp-nav-close { color: #fff; }
.hp-nav-mobile-list a { color: rgba(255,255,255,0.9); }
.hp-nav-mobile-list a:hover { color: #fff; }

.hp-nav-mobile.open {
  transform: translateX(0);
}

.hp-nav-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #fff;
  z-index: 2;
}

.hp-nav-mobile-inner {
  padding: 3rem 1.5rem 2rem;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.hp-nav-mobile-heading {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin: 1.25rem 0 0.5rem;
  padding: 0;
}

.hp-nav-mobile-heading:first-child {
  margin-top: 0;
}

.hp-nav-mobile-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hp-nav-mobile-list li {
  margin-bottom: 0.25rem;
}

.hp-nav-mobile-list a {
  display: block;
  padding: 0.5rem 0;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
}

.hp-nav-mobile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.hp-nav-mobile-actions .hp-btn { flex: 1; min-width: 120px; }
.hp-nav-mobile-actions .hp-nav-mobile-link {
  display: block;
  width: 100%;
  padding: 0.5rem 0;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-weight: 500;
}

.hp-nav-mobile .hp-btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.hp-nav-mobile .hp-btn-outline-light:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
  color: #fff;
}

@media (max-width: 1023px) {
  .hp-nav { display: none; }
  .hp-nav-toggle { display: flex; margin-left: auto; }
  .hp-header-actions .hp-btn { display: none; }
}

/* ========== Main ========== */
.hp-main {
  padding-top: 65px;
}

.hp-container {
  max-width: var(--hp-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========== Hero ========== */
.hp-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hp-hero-light {
  background: #ffffff;
}

.hp-hero-bg-gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hp-hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: 0.75rem;
  pointer-events: none;
}

.hp-hero-video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.6) 0%, rgba(15,23,42,0.9) 100%);
}

.hp-hero-content {
  position: relative;
  z-index: 2;
  isolation: isolate;
  padding: 12rem 1.5rem;
  max-width: 720px;
}

/* keep optional overlay element inert (no grey wash) */
.hp-hero-video-overlay {
  display: none;
}

/* text must sit above the contained background video */
.hp-hero-text {
  position: relative;
  z-index: 1;
}

.hp-hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hp-hero-subtitle {
  font-size: 1.125rem;
  color: var(--hp-text-muted);
  margin: 0 0 2rem;
  line-height: 1.6;
}

.hp-hero-light .hp-hero-title { color: #111827; }
.hp-hero-light .hp-hero-subtitle { color: #4b5563; }

.hp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hp-hero-actions .hp-btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
  background: transparent;
}

.hp-hero-actions .hp-btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.hp-hero-light .hp-hero-actions .hp-btn-outline {
  color: #374151;
  border-color: #9ca3af;
}

.hp-hero-light .hp-hero-actions .hp-btn-outline:hover {
  border-color: #4b5563;
  background: #f3f4f6;
  color: #111827;
}

.hp-hero-shape {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(148,163,184,0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hp-hero-shape-light {
  background: radial-gradient(circle, rgba(148,163,184,0.2) 0%, transparent 65%);
}

.hp-hero-features {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3rem;
  padding: 2.5rem 1.5rem;
  background: rgba(15,23,42,0.95);
  width: 100%;
}

.hp-hero-features-light {
  background: #111727;
}

.hp-hero-features-white {
  background: #fff;
}

.hp-hero-features-white .hp-hero-feature {
  color: #1e293b;
}

.hp-hero-features-white .hp-hero-feature-icon {
  background: #f1f5f9;
  color: var(--hp-yellow);
}

.hp-hero-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--hp-text-light);
  font-size: 0.875rem;
  font-weight: 500;
}

.hp-hero-feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(148,163,184,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hp-yellow);
}

/* ========== Dark sections ========== */
.hp-section-dark {
  background: var(--hp-dark);
  color: var(--hp-text-light);
  padding: 5rem 0;
}

.hp-section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.hp-section-subtitle {
  text-align: center;
  color: var(--hp-text-muted);
  font-size: 1.0625rem;
  margin: 0 0 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Two-column feature list (reference: Industry-leading spreads | Help you trade) */
.hp-two-col-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

/* Variant: add a center image between the two columns */
.hp-two-col-grid-with-image {
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.hp-feature-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hp-feature-image img {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 18px 50px rgba(0,0,0,0.25);
}

.hp-feature-col-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--hp-text-light);
}

.hp-feature-col-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hp-feature-col-list li {
  padding: 0.35rem 0;
  color: var(--hp-text-muted);
  font-size: 0.9375rem;
  position: relative;
  padding-left: 1.25rem;
}

.hp-feature-col-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--hp-yellow);
}

@media (max-width: 639px) {
  .hp-two-col-grid { grid-template-columns: 1fr; }
  .hp-two-col-grid-with-image { grid-template-columns: 1fr; }
  .hp-feature-image img { max-width: 320px; }
}

/* Triple column: features | phone | features */
.hp-section-triple .hp-section-subtitle {
  margin-bottom: 2rem;
}

.hp-triple-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  align-items: start;
}

.hp-triple-features {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hp-triple-feature h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.hp-triple-feature p {
  font-size: 0.9375rem;
  color: var(--hp-text-muted);
  margin: 0;
  line-height: 1.5;
}

.hp-triple-feature sup {
  font-size: 0.65em;
}

.hp-triple-center {
  display: flex;
  justify-content: center;
}

.hp-img-phone {
  aspect-ratio: 3/5;
  max-width: 280px;
}

@media (max-width: 1023px) {
  .hp-triple-grid {
    grid-template-columns: 1fr;
  }
  .hp-triple-center { order: -1; }
}

.hp-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.hp-feature-block {
  padding: 1.5rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--hp-border);
}

.hp-feature-icon-sm {
  color: var(--hp-yellow);
  margin-bottom: 0.75rem;
}

.hp-feature-block h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  text-transform: capitalize;
}

.hp-feature-block p {
  font-size: 0.9375rem;
  color: var(--hp-text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Market table ========== */
.hp-market-table-wrap {
  overflow-x: auto;
  margin-bottom: 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--hp-border);
}

.hp-market-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}

.hp-market-table th,
.hp-market-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--hp-border);
}

.hp-market-table th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hp-text-muted);
}

.hp-market-table td {
  font-size: 0.9375rem;
}

.hp-instrument-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hp-instrument-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  flex-shrink: 0;
}

.hp-icon-gold { background: #f59e0b; color: #fff; }
.hp-icon-oil { background: #1e293b; color: #94a3b8; }

.hp-instrument {
  font-weight: 600;
  display: block;
}

.hp-instrument-desc {
  font-size: 0.8125rem;
  color: var(--hp-text-muted);
  font-weight: 400;
}

.hp-table-cat {
  color: var(--hp-yellow);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.hp-table-cat:hover { text-decoration: underline; }

.hp-change-up { color: #22c55e; }
.hp-change-down { color: #ef4444; }
.hp-trend-up { color: #22c55e; }
.hp-trend-down { color: #ef4444; }

.hp-section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hp-btn-light {
  color: #fff !important;
  border-color: rgba(255,255,255,0.5) !important;
}

.hp-btn-light:hover {
  border-color: #fff !important;
  background: rgba(255,255,255,0.1) !important;
}

/* ========== Light sections (split layout) ========== */
.hp-section-light {
  background: #fff;
  padding: 5rem 0;
}

.hp-section-title-dark { color: #1e293b; }
.hp-section-subtitle-dark { color: #64748b; }

.hp-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hp-split-reverse .hp-split-media { order: 2; }
.hp-split-reverse .hp-split-content { order: 1; }

.hp-split-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hp-split-content-light .hp-split-title { color: #fff; }

.hp-split-text {
  font-size: 1.0625rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

.hp-split-content-light .hp-split-text { color: var(--hp-text-muted); }

.hp-split-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hp-split-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: #475569;
}

.hp-split-content-light .hp-split-list li { color: var(--hp-text-muted); }

.hp-split-list svg {
  flex-shrink: 0;
  color: var(--hp-yellow);
}

.hp-split-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hp-split-links li {
  margin-bottom: 0.5rem;
}

.hp-split-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s;
}

.hp-split-links a:hover { color: var(--hp-dark); }

.hp-split-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--hp-yellow);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.hp-split-link:hover { text-decoration: underline; }

.hp-download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.hp-btn-app-store,
.hp-btn-google-play {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #111827;
  transition: background 0.2s, border-color 0.2s;
}

.hp-btn-app-store:hover,
.hp-btn-google-play:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.hp-section-actions-light .hp-btn-outline {
  color: #475569;
  border-color: #cbd5e1;
}

.hp-section-actions-light { margin-top: 1rem; margin-bottom: 2rem; }

.hp-news-actions {
  margin-bottom: 2rem;
}

/* Image placeholders ========== */
.hp-img-placeholder {
  aspect-ratio: 4/3;
  background: #e2e8f0;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 500;
  overflow: hidden;
}

.hp-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hp-img-mobile { aspect-ratio: 3/4; }
.hp-img-security { aspect-ratio: 4/3; }
.hp-img-chart {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, rgba(148,163,184,0.2) 0%, rgba(148,163,184,0.05) 100%);
}

/* Full-width CTA banner image after articles, with floating dark CTA card */
.hp-cta-image-full {
  position: relative;
  background: #ffffff;
}

.hp-cta-image-bg img {
  width: 100%;
  display: block;
}

.hp-cta-banner-card {
  position: absolute;
  left: 50%;
  bottom: 3rem;
  transform: translateX(-50%);
  width: min(90%, 960px);
  background-color: #0b1437 !important; /* navy blue */
  background: #0b1437 !important;
  color: #e5e7eb;
  border-radius: 0.75rem;
  padding: 2rem 2.5rem;
  box-shadow: 0 20px 60px rgba(15,23,42,0.35);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* extra specificity in case of later overrides */
.hp-cta-image-full .hp-cta-banner-card {
  background-color: #0b1437 !important;
  background: #0b1437 !important;
}

.hp-cta-banner-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #fff;
}

.hp-cta-banner-subtitle {
  margin: 0;
  font-size: 0.9375rem;
  color: rgba(229,231,235,0.85);
}

.hp-cta-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* CTA card button styling (match dark floating CTA) */
.hp-cta-banner-card .hp-btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}

.hp-cta-banner-card .hp-btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
  color: #fff;
}

@media (max-width: 767px) {
  .hp-cta-banner-card {
    bottom: 2rem;
    padding: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .hp-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hp-split-reverse .hp-split-media,
  .hp-split-reverse .hp-split-content { order: unset; }
}

/* ========== News section ========== */
.hp-news-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hp-yellow);
  margin: 0 0 0.5rem;
}

.hp-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.hp-news-card {
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: box-shadow 0.2s;
}

.hp-news-card:hover {
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.hp-news-img {
  aspect-ratio: 16/10;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.8125rem;
}

.hp-news-card > *:not(.hp-news-img) {
  padding: 0 1.25rem;
}

.hp-news-cat {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hp-yellow);
}

.hp-news-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0.5rem 0 0.25rem;
  line-height: 1.4;
}

.hp-news-date {
  font-size: 0.8125rem;
  color: #94a3b8;
  display: block;
  margin-bottom: 0.5rem;
}

.hp-news-excerpt {
  font-size: 0.9375rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 1rem;
}

.hp-news-link {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--hp-yellow);
  text-decoration: none;
  padding-bottom: 1.25rem;
  transition: color 0.2s;
}

.hp-news-link:hover { color: var(--hp-yellow-hover); }

/* ========== Gold CTA section ========== */
.hp-cta-gold {
  position: relative;
  padding: 5rem 1.5rem;
  overflow: hidden;
}

.hp-cta-gold-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #b8860b 0%, #daa520 50%, #b8860b 100%);
}

.hp-cta-gold-pattern {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.2) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.15) 0%, transparent 40%);
}

/* Replace .hp-cta-gold-bg with your gold/glitter image when ready */

.hp-cta-gold-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.hp-cta-gold-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.75rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.hp-cta-gold-subtitle {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.9);
  margin: 0 0 2rem;
}

.hp-cta-gold-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hp-cta-gold-actions .hp-btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}

.hp-cta-gold-actions .hp-btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.2);
}

/* ========== Footer ========== */
.hp-footer {
  background: #fff;
  border-top: 1px solid #e2e8f0;
  padding: 3rem 1.5rem 2rem;
}

.hp-footer-top {
  max-width: var(--hp-container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e2e8f0;
}

.hp-footer-four-col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 767px) {
  .hp-footer-four-col { grid-template-columns: repeat(2, 1fr); }
}

.hp-footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  text-decoration: none;
  display: block;
  margin-bottom: 0.75rem;
}

.hp-footer-desc {
  font-size: 0.9375rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 1rem;
}

.hp-footer-social {
  display: flex;
  gap: 0.75rem;
}

.hp-footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: color 0.2s, background 0.2s;
}

.hp-footer-social a:hover {
  background: var(--hp-yellow);
  color: #1e293b;
}

.hp-footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
}

.hp-footer-col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1e293b;
  margin: 0 0 1rem;
}

.hp-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hp-footer-col li {
  margin-bottom: 0.5rem;
}

.hp-footer-col a {
  font-size: 0.9375rem;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}

.hp-footer-col a:hover { color: var(--hp-dark); }

.hp-footer-bottom {
  max-width: var(--hp-container);
  margin: 0 auto;
  padding-top: 2rem;
  text-align: center;
}

.hp-footer-payments {
  margin-bottom: 1rem;
}

.hp-payment-placeholder {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  color: #94a3b8;
}

.hp-footer-copy {
  font-size: 0.9375rem;
  color: #64748b;
  margin: 0 0 0.5rem;
}

.hp-footer-disclaimer {
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.5;
  max-width: 800px;
  margin: 0 auto;
}

.hp-scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--hp-yellow);
  color: #1e293b;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(250,204,21,0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 999;
}

.hp-scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.hp-scroll-top:hover {
  transform: translateY(-2px);
}

.hp-scroll-top-gold {
  background: var(--hp-yellow);
  color: #111827;
}

.hp-scroll-top-gold:hover {
  background: var(--hp-yellow-hover);
}

/* Disclaimer section */
.hp-disclaimer {
  background: #ffffff;
  color: #6b7280;
  padding: 2.5rem 0;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.hp-disclaimer .hp-container {
  max-width: 800px;
}

.hp-disclaimer p {
  margin: 0 0 1rem;
}

.hp-disclaimer p:last-child {
  margin-bottom: 0;
}

.hp-disclaimer sup {
  font-size: 0.75em;
}

/* Floating chat button */
.hp-chat-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--hp-yellow);
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(250,204,21,0.4);
  z-index: 998;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hp-chat-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(250,204,21,0.5);
}

@media (max-width: 767px) {
  .hp-footer-top {
    grid-template-columns: 1fr;
  }
  .hp-footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========== Public pages (about, contact, faq, etc.) ========== */
.pp-hero {
  background: var(--hp-dark);
  color: #fff;
  padding: 3rem 0;
}

.pp-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}

.pp-subtitle {
  font-size: 1.0625rem;
  color: var(--hp-text-muted);
  margin: 0.5rem 0 0;
}

.pp-content {
  padding: 3rem 0 4rem;
  background: #fff;
}

.pp-body {
  max-width: 800px;
}

.pp-body h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin: 2rem 0 0.75rem;
}

.pp-body h2:first-child {
  margin-top: 0;
}

.pp-body h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #334155;
  margin: 1.5rem 0 0.5rem;
}

.pp-body p, .pp-body li {
  font-size: 1rem;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 0.75rem;
}

.pp-body ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.pp-body a {
  color: var(--hp-yellow);
  font-weight: 500;
  text-decoration: none;
}

.pp-body a:hover {
  text-decoration: underline;
}

.pp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.pp-actions .hp-btn {
  text-decoration: none;
}

.pp-market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.pp-market-card {
  display: block;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pp-market-card:hover {
  border-color: var(--hp-yellow);
  box-shadow: 0 4px 12px rgba(250,204,21,0.15);
}

.pp-market-icon {
  color: var(--hp-yellow);
  margin-bottom: 0.75rem;
}

.pp-market-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.5rem;
}

.pp-market-card p {
  font-size: 0.9375rem;
  margin: 0 0 1rem;
}

.pp-market-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hp-yellow);
}

.pp-feature-list {
  margin: 2rem 0;
}

.pp-feature-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.pp-feature-item:last-child {
  border-bottom: none;
}

.pp-feature-item h3 {
  margin-top: 0;
}

/* ========== Auth pages (login, register, forgot, reset) — landing style ========== */
.auth-page-section {
  background: var(--hp-dark);
  min-height: 70vh;
  padding: 7rem 1.5rem 4rem;
}

.auth-page-inner {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.auth-container {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.auth-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--hp-border);
  padding: 2rem 1.75rem;
}

.auth-card h1 {
  color: var(--hp-dark);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  text-align: center;
}

.auth-card > p {
  color: var(--hp-text-muted);
  font-size: 0.9375rem;
  text-align: center;
  margin: 0 0 1.5rem;
}

.auth-card .form-group {
  margin-bottom: 1.25rem;
}

.auth-card .form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--hp-dark);
  margin-bottom: 0.375rem;
}

.auth-card .form-group input[type="text"],
.auth-card .form-group input[type="email"],
.auth-card .form-group input[type="password"],
.auth-card .form-group input[type="number"] {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 1rem;
  border: 1px solid var(--hp-border);
  border-radius: 0.5rem;
  background: #fff;
  color: var(--hp-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-card .form-group input:focus {
  outline: none;
  border-color: var(--hp-yellow);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.2);
}

.auth-card .form-group input.is-invalid,
.auth-card .form-group input.border-red-500 {
  border-color: #ef4444;
}

.auth-card .form-error {
  font-size: 0.8125rem;
  color: #dc2626;
  margin-top: 0.25rem;
}

.auth-card .alert {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.auth-card .alert-success {
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.auth-card .alert-error {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.auth-card .alert ul {
  margin: 0;
  padding-left: 1.25rem;
}

.auth-card .btn.btn-primary {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  background: var(--hp-yellow);
  color: #0f172a;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.auth-card .btn.btn-primary:hover {
  background: var(--hp-yellow-hover);
  color: #0f172a;
}

.auth-card .auth-links {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth-card .auth-links a {
  color: var(--hp-yellow);
  font-weight: 600;
  text-decoration: none;
}

.auth-card .auth-links a:hover {
  text-decoration: underline;
  color: var(--hp-yellow-hover);
}

.auth-card .auth-inline-link {
  color: var(--hp-yellow);
  font-weight: 600;
  text-decoration: none;
}

.auth-card .auth-inline-link:hover {
  text-decoration: underline;
  color: var(--hp-yellow-hover);
}
