/* ─── MyInvestingLab Framer-like Marketing Design System ─── */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Raleway:wght@700;800;900&family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary: #000000;
  --primary-dark: #191c1f;
  --primary-rgb: 0, 0, 0;
  --indigo: #0066cc;
  --indigo-rgb: 0, 102, 204;
  --spacing-navbar: 60px;

  /* Light Mode Tokens (Revolut Premium Light) */
  --bg: #ffffff;
  --bg-dots: rgba(0, 0, 0, 0.02);
  --bg-card: #f8f9fa;
  --border: #eef1f5;
  --border-glow: rgba(0, 102, 204, 0.08);
  --text: #191c1f;
  --text-muted: #8e949a;
  --nav-bg: rgba(255, 255, 255, 0.85);
  --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
  --btn-secondary-bg: #f1f3f5;
  --btn-secondary-hover: #e9ecef;
  --btn-primary-bg: #191c1f;
  --btn-primary-text: #ffffff;
  --panel-left-bg: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  --panel-left-text: #191c1f;
  --brand-text: #191c1f;
}

html.dark {
  /* Dark Mode Tokens (Revolut Premium Obsidian Dark) */
  --bg: #000000;
  --bg-dots: rgba(255, 255, 255, 0.01);
  --bg-card: #111214;
  --border: #222428;
  --border-glow: rgba(0, 102, 204, 0.2);
  --text: #ffffff;
  --text-muted: #8e949a;
  --nav-bg: rgba(0, 0, 0, 0.85);
  --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  --btn-secondary-bg: #222428;
  --btn-secondary-hover: #2d3035;
  --btn-primary-bg: #ffffff;
  --btn-primary-text: #000000;
  --panel-left-bg: linear-gradient(135deg, #000000 0%, #111214 100%);
  --panel-left-text: #ffffff;
  --brand-text: #ffffff;
}

/* ─── Global Reset & Body ─── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  max-width: 100vw;
  transition: background-color 0.3s ease, color 0.3s ease;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ─── Background Grid Overlays ─── */
.grid-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; height: 1000px;
  background-image: 
    radial-gradient(var(--bg-dots) 1.5px, transparent 1.5px),
    linear-gradient(to bottom, var(--bg), transparent 100%);
  background-size: 32px 32px, 100% 100%;
  background-position: center top;
  pointer-events: none;
  z-index: -1;
}

/* ─── Glowing Neon Orbs ─── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: -2;
  opacity: 0.65;
}
.orb-1 {
  width: min(600px, 90vw);
  height: min(600px, 90vw);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.18) 0%, transparent 70%);
  animation: pulse-glow-main 12s ease-in-out infinite;
}
.orb-2 {
  width: min(400px, 70vw);
  height: min(400px, 70vw);
  top: 400px;
  right: 5%;
  background: radial-gradient(circle, rgba(var(--indigo-rgb), 0.12) 0%, transparent 70%);
  animation: pulse-glow-main 10s ease-in-out infinite alternate;
}

@keyframes pulse-glow-main {
  0%, 100% { opacity: 0.5; transform: translate(0, 0) scale(1); }
  50% { opacity: 0.75; transform: translate(30px, -20px) scale(1.08); }
}

/* ─── Header & Navigation ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  height: var(--spacing-navbar);
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.nav-brand {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.nav-logo-img {
  width: 42px; height: 42px;
  object-fit: contain;
}
.nav-name, .logo-text {
  font-family: 'Raleway', sans-serif;
  font-size: 1.15rem; font-weight: 900; letter-spacing: -0.02em;
  color: var(--brand-text);
}

.nav-links { display: flex; align-items: center; gap: 2.5rem; }
.nav-links a {
  text-decoration: none; font-size: 14px; font-weight: 600;
  color: var(--text-muted); transition: all 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  display: flex; align-items: center; gap: 12px;
}

.btn-theme-toggle {
  background: transparent; border: 1px solid var(--border); border-radius: 14px;
  width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--text); cursor: pointer; transition: all 0.2s ease;
  outline: none;
}
.btn-theme-toggle:hover {
  background: var(--btn-secondary-hover);
  border-color: var(--text-muted);
}
html.dark .sun-icon { display: block; }
html.dark .moon-icon { display: none; }
html:not(.dark) .sun-icon { display: none; }
html:not(.dark) .moon-icon { display: block; }

/* ─── Buttons ─── */
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  height: 42px; padding: 0 1.5rem; border-radius: 14px; font-size: 14px; font-weight: 700;
  color: var(--text); text-decoration: none; border: 1px solid var(--border);
  background: transparent; transition: all 0.2s ease;
}
.btn-ghost:hover {
  background: var(--btn-secondary-bg);
}

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 1.5rem; border-radius: 14px; font-size: 14px; font-weight: 700;
  color: var(--btn-primary-text); text-decoration: none; border: none; cursor: pointer;
  background: var(--btn-primary-bg);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ─── Layout Sections ─── */
.section {
  padding: 30px 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  position: relative;
}

/* ─── Page Hero Base (Pricing, About, Contact, terms) ─── */
.page-hero {
  text-align: center;
  padding: calc(var(--spacing-navbar) + 60px) 1.5rem 60px;
  background: var(--panel-left-bg);
  color: var(--panel-left-text);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}
.page-hero .lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 500;
  line-height: 1.6;
}

/* ─── Card Components ─── */
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 3rem;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

/* ─── Authentication Split Panels ─── */
.layout-wrapper {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
  width: 100%;
}

.brand-panel {
  display: none;
  width: 45%;
  flex-direction: column;
  justify-content: space-between;
  padding: 4rem 3.5rem;
  position: relative;
  overflow: hidden;
  background: var(--panel-left-bg);
  color: var(--panel-left-text);
  border-right: 1px solid var(--border);
}
@media (min-width: 1024px) {
  .brand-panel { display: flex; position: sticky; top: 0; height: 100vh; }
}

.brand-panel .quote-box {
  margin-top: auto;
  margin-bottom: 3rem;
}
.brand-panel blockquote {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}
.brand-panel .quote-author {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brand-panel .feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.brand-panel .feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-panel .feature-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--primary-rgb), 0.15);
  color: var(--primary);
  font-weight: bold;
  font-size: 0.75rem;
}

.form-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  position: relative;
  background: var(--bg);
}

.form-container {
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 10;
}

.form-container h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.form-container p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}
.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* ─── Uniform Form Controls ─── */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  outline: none;
  transition: all 0.2s ease;
  appearance: none;
}
textarea {
  resize: vertical;
  min-height: 120px;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.1em;
  padding-right: 2.5rem;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.15);
}

.form-help-text {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  line-height: 1.45;
}
.invalid-feedback {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ef4444;
  margin-top: 0.4rem;
}

.alert-danger {
  padding: 0.8rem 1rem;
  border-radius: 14px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.submit-btn {
  width: 100%;
  height: 48px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  color: #030712;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 1.5rem;
}
html.dark .submit-btn {
  background: #ffffff;
  color: #030712;
}
html:not(.dark) .submit-btn {
  background: #111827;
  color: #ffffff;
}
.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.auth-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.auth-footer a {
  font-weight: 700;
  color: var(--text);
}
.auth-footer a:hover {
  text-decoration: underline;
}

.forgot-link-wrapper {
  text-align: right;
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.forgot-link {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
}
.forgot-link:hover {
  text-decoration: underline;
}

.top-actions-float {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 50;
}

/* ─── Footer Block ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: auto;
}
.footer a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 10px;
  font-weight: 600;
}
.footer a:hover {
  color: var(--text);
}
.footer-disclaimer {
  max-width: 800px;
  margin: 1.5rem auto 1rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-muted);
  opacity: 0.75;
}
.footer-disclaimer span {
  font-weight: 800;
  color: var(--text);
}
.footer-attribution {
  margin-top: 1.25rem;
}
.footer-attribution a {
  font-size: 0.7rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  opacity: 0.6;
}
.footer-attribution a:hover {
  opacity: 1;
  color: var(--text);
}

/* ─── Responsive Styles ─── */
@media (max-width: 991px) {
  .nav-links { display: none !important; }
  .nav { padding: 0 1.5rem; }
}
@media (max-width: 768px) {
  /* Hide desktop nav links on mobile — hamburger menu takes over */
  .nav-links { display: none; }
  .nav { padding: 0 1rem; }
  /* Keep logo compact on mobile */
  .nav-brand .nav-name {
    font-size: 1rem;
  }
  .nav-logo-img {
    width: 34px;
    height: 34px;
  }
}
@media (max-width: 768px) {
  .layout-wrapper {
    flex-direction: column;
    padding-top: var(--spacing-navbar);
  }
  .form-panel {
    padding: 3rem 1.5rem;
    justify-content: flex-start;
  }
}
@media (max-width: 480px) {
  .nav { padding: 0 1rem; }
  .btn-ghost { padding: 0 12px; font-size: 12px; height: 38px; }
  .btn-primary { padding: 0 12px; font-size: 12px; height: 38px; }
  .btn-theme-toggle { width: 38px; height: 38px; }
}

/* ─── Navbar Icon-Only Button Responsive Adaptations ─── */
.nav-cta .btn-icon {
  display: none;
}
.nav-cta .btn-text {
  display: inline;
}

@media (max-width: 768px) {
  .nav-cta .btn-text {
    display: none !important;
  }
  .nav-cta .btn-icon {
    display: inline-block !important;
    vertical-align: middle;
  }
  .nav-cta .btn-ghost, .nav-cta .btn-primary {
    padding: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    min-width: unset !important;
  }
  
  /* Container & card padding adjustments for maximum text width on mobile */
  .article-container, .content-container, .contact-container {
    padding: 0 0.5rem !important;
    margin: 20px auto !important;
  }
  .article-card, .content-card, .contact-card, .form-card {
    padding: 1.5rem 1rem !important;
    border-radius: 16px !important;
  }
  .highlights {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

/* ─── Premium Mobile Bottom Nav ─── */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 420px;
  height: 66px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 1rem;
  z-index: 9999;
  box-sizing: border-box;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

html.dark .mobile-bottom-nav {
  background: rgba(10, 15, 30, 0.75);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  gap: 4px;
  transition: all 0.2s ease;
  flex: 1;
  height: 100%;
}

.mobile-nav-item:hover, .mobile-nav-item.active {
  color: var(--primary);
}

.mobile-nav-item svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.25;
  fill: none;
}

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

/* ─── Revolut Premium Navigation Dropdowns ─── */
@media (min-width: 769px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 100%;
  }
}
.nav-link-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  cursor: pointer;
}
.nav-link-item > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 4px;
  height: 100%;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-link-item:hover > a {
  color: var(--text);
}
.nav-link-item svg.chevron-down {
  transition: transform 0.2s ease;
}
.nav-link-item:hover svg.chevron-down {
  transform: rotate(180deg);
}

/* Dropdown Panel */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, visibility 0.2s ease;
  z-index: 1000;
}
html.dark .nav-dropdown {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
.nav-link-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Dropdown Content layout */
.nav-dropdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.nav-dropdown-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}
.nav-dropdown-link:hover {
  background: var(--btn-secondary-hover);
}
.nav-dropdown-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(var(--primary-rgb), 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--indigo);
  flex-shrink: 0;
}
html.dark .nav-dropdown-icon {
  background: rgba(255, 255, 255, 0.05);
}
.nav-dropdown-info {
  display: flex;
  flex-direction: column;
}
.nav-dropdown-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.nav-dropdown-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ─── Revolut Hero Email CTA Form ─── */
.hero-cta-form-revolut {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: 50px;
  max-width: 480px;
  width: 100%;
  margin: 0 auto 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.hero-cta-form-revolut:focus-within {
  border-color: var(--indigo);
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.12);
}
.hero-cta-form-revolut input[type="email"] {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.75rem 1.25rem;
  font-size: 14px;
  color: var(--text);
  outline: none;
  box-shadow: none !important;
}
.hero-cta-form-revolut input[type="email"]::placeholder {
  color: var(--text-muted);
}
.hero-cta-form-revolut button {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: none;
  padding: 0.75rem 1.75rem;
  font-size: 14px;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.hero-cta-form-revolut button:hover {
  transform: scale(1.02);
}

/* ─── Live Simulated Dashboard Widget ─── */
.mock-dashboard-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: var(--card-shadow), 0 20px 50px rgba(0, 0, 0, 0.05);
  max-width: 900px;
  width: 100%;
  margin: 3.5rem auto 0;
  position: relative;
  overflow: hidden;
  text-align: left;
}
html.dark .mock-dashboard-widget {
  box-shadow: var(--card-shadow), 0 30px 60px rgba(0, 0, 0, 0.6);
}
.mock-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.mock-widget-title-area {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mock-widget-subtitle {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.mock-widget-balance {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.mock-widget-change {
  font-size: 13px;
  font-weight: 700;
  color: #10b981;
}

/* Currency switcher controls */
.currency-selector-pills {
  display: flex;
  background: var(--btn-secondary-bg);
  padding: 4px;
  border-radius: 50px;
  gap: 2px;
}
.currency-selector-pills button {
  background: transparent;
  border: none;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
.currency-selector-pills button.active {
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Grid Layout for Assets and Dividends */
.mock-widget-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .mock-widget-body {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

/* Holdings Card list inside widget */
.mock-holdings-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mock-holding-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform 0.2s ease;
}
.mock-holding-row:hover {
  transform: translateY(-2px);
  border-color: var(--border-glow);
}
.mock-holding-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mock-holding-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--btn-secondary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
  border: 1px solid var(--border);
}
.mock-holding-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mock-holding-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.mock-holding-shares {
  font-size: 11px;
  color: var(--text-muted);
}
.mock-holding-value-area {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.mock-holding-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.mock-holding-profit {
  font-size: 11px;
  font-weight: 700;
}

/* Right-side calendar/chart simulator panel */
.mock-calendar-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mock-panel-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.mock-calendar-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.mock-calendar-date-box {
  background: var(--btn-secondary-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  flex-shrink: 0;
}
.mock-calendar-month {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
}
.mock-calendar-day {
  font-size: 16px;
  font-weight: 900;
  color: var(--text);
}
.mock-calendar-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mock-calendar-ticker {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}
.mock-calendar-rate {
  font-size: 13px;
  font-weight: 900;
  color: var(--indigo);
}
.mock-calendar-badge {
  font-size: 10px;
  font-weight: 800;
  color: #ffffff;
  background: #000000;
  padding: 2px 8px;
  border-radius: 50px;
  display: inline-block;
  margin-top: 4px;
  align-self: flex-start;
}
html.dark .mock-calendar-badge {
  background: #ffffff;
  color: #000000;
}
.mock-calendar-tag-ex {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.mock-calendar-tag-pay {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ─── Promo Banner ─── */
.promo-banner {
  background: rgba(16, 185, 129, 0.08);
  border: 1.5px solid rgba(16, 185, 129, 0.25);
  color: #0d9488;
  padding: 13px 20px;
  border-radius: 12px;
  margin: 1.25rem auto 0;
  max-width: 580px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.01em;
}

html.dark .promo-banner {
  background: rgba(52, 211, 153, 0.06);
  border: 1.5px solid rgba(52, 211, 153, 0.2);
  color: #34d399;
}

.promo-banner strong {
  font-family: monospace;
  font-size: 15px;
  font-weight: 900;
  background: rgba(16, 185, 129, 0.1);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1.5px solid rgba(16, 185, 129, 0.25);
  letter-spacing: 0.06em;
  color: #0d9488;
}

html.dark .promo-banner strong {
  background: rgba(52, 211, 153, 0.12);
  border: 1.5px solid rgba(52, 211, 153, 0.25);
  color: #34d399;
}

/* ─── iPhone 13 & Mobile View Compact Optimizations (max-width: 768px) ─── */
@media (max-width: 768px) {
  /* Page spacing & container layout */
  .section {
    padding: 20px 0.75rem !important;
  }
  
  /* Hero Typography & Hero Section Spacing */
  .hero-section {
    padding-top: calc(var(--spacing-navbar) + 30px) !important;
    padding-bottom: 20px !important;
  }
  
  .hero-section h1 {
    font-size: 2.3rem !important;
    line-height: 1.15 !important;
    margin-bottom: 1rem !important;
    letter-spacing: -0.03em !important;
  }
  
  .hero-section p {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1.5rem !important;
    padding: 0 0.5rem !important;
  }

  /* Compact Revolut Signup Form on Mobile */
  .hero-cta-form-revolut {
    flex-direction: column !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    gap: 8px !important;
    margin-bottom: 1.25rem !important;
    width: 100% !important;
    max-width: 320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .hero-cta-form-revolut input[type="email"] {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 50px !important;
    width: 100% !important;
    padding: 10px 16px !important;
    text-align: center !important;
    height: 42px !important;
    font-size: 0.85rem !important;
    color: var(--text) !important;
  }
  .hero-cta-form-revolut button {
    width: 100% !important;
    height: 42px !important;
    font-size: 0.85rem !important;
    padding: 10px 16px !important;
    border-radius: 50px !important;
  }

  /* CTAs & Forms */
  .hero-ctas {
    gap: 10px !important;
    margin-bottom: 1.5rem !important;
  }
  
  .btn-hero-ghost, .btn-hero-demo, .btn-hero-primary {
    height: 44px !important;
    font-size: 13px !important;
    padding: 0 1.25rem !important;
    border-radius: 12px !important;
  }

  /* Section Titles & Subtitles */
  .section-title {
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
    letter-spacing: -0.03em !important;
    margin-bottom: 0.5rem !important;
  }
  
  .section-desc {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    padding: 0 0.25rem !important;
  }
  
  .section-header {
    margin-bottom: 1.5rem !important;
  }

  /* Bento Grid Card Tweaks */
  .bento-grid {
    gap: 0.75rem !important;
  }
  
  .bento-card {
    padding: 1rem !important;
    border-radius: 16px !important;
  }
  
  .bento-card h3 {
    font-size: 0.95rem !important;
  }
  
  .bento-card p {
    font-size: 0.85rem !important;
    line-height: 1.45 !important;
    margin-bottom: 1rem !important;
  }
  
  .bento-tag-list li {
    font-size: 10px !important;
    padding: 2px 8px !important;
  }

  /* Showcase Section */
  .showcase-row {
    gap: 1rem !important;
    padding: 10px 0 !important;
  }
  
  .showcase-col-text h3 {
    font-size: 1.4rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .showcase-col-text p {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1rem !important;
  }
  
  .showcase-col-text .feature-list {
    gap: 6px !important;
    margin-bottom: 1rem !important;
  }
  
  .showcase-col-text .feature-list li {
    font-size: 0.8rem !important;
    line-height: 1.35 !important;
    gap: 8px !important;
  }

  /* Interactive Dashboard Widget Simulator on mobile */
  .mock-dashboard-widget {
    padding: 1rem !important;
    border-radius: 18px !important;
    margin-top: 1.5rem !important;
  }
  
  .mock-widget-balance {
    font-size: 1.5rem !important;
  }
  
  .mock-widget-subtitle {
    font-size: 10px !important;
  }
  
  .mock-holding-name {
    font-size: 12px !important;
  }
  
  .mock-holding-shares, .mock-holding-profit {
    font-size: 10px !important;
  }
  
  .mock-holding-price {
    font-size: 12px !important;
  }
  
  .mock-holding-logo {
    width: 28px !important;
    height: 28px !important;
    border-radius: 6px !important;
  }
  
  .mock-holding-logo span {
    font-size: 8px !important;
  }

  /* Upcoming Dividends Side-by-Side */
  .mock-calendar-panel {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }
  .mock-calendar-panel .mock-panel-title {
    width: 100% !important;
  }
  .mock-calendar-card {
    flex: 1 1 calc(50% - 5px) !important;
    min-width: 130px !important;
    padding: 0.75rem !important;
    gap: 8px !important;
    border-radius: 12px !important;
    align-items: center !important;
  }
  .mock-calendar-date-box {
    padding: 4px !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 8px !important;
  }
  .mock-calendar-month {
    font-size: 8px !important;
  }
  .mock-calendar-day {
    font-size: 11px !important;
  }
  .mock-calendar-details {
    display: flex;
    flex-direction: column;
    gap: 2px !important;
    min-width: 0 !important;
  }
  .mock-calendar-ticker {
    font-size: 10px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .mock-calendar-rate {
    font-size: 9px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .mock-calendar-badge {
    font-size: 8px !important;
    padding: 1px 6px !important;
    align-self: flex-start !important;
  }

  /* Pricing Cards mobile layout */
  .pricing-grid-inline {
    gap: 1rem !important;
    padding: 0 0.5rem !important;
  }
  
  .pricing-card {
    padding: 1.25rem 1rem !important;
    border-radius: 18px !important;
  }
  
  .plan-name {
    font-size: 1.15rem !important;
  }
  
  .plan-sub {
    font-size: 0.75rem !important;
    margin-bottom: 1rem !important;
  }
  
  .plan-price {
    font-size: 2.25rem !important;
  }
  
  .old-price {
    font-size: 1.1rem !important;
  }
  
  .annual-subtext {
    margin-bottom: 1.25rem !important;
    font-size: 10px !important;
  }
  
  .pricing-card ul {
    gap: 8px !important;
    margin-bottom: 1.5rem !important;
  }
  
  .pricing-card li {
    font-size: 0.8rem !important;
    gap: 8px !important;
  }
  
  .pricing-card .btn-block {
    height: 40px !important;
    font-size: 12px !important;
    border-radius: 10px !important;
  }

  /* Promo banner inside pricing section */
  .promo-banner {
    padding: 8px 12px !important;
    font-size: 11px !important;
    border-radius: 10px !important;
    margin: 0.75rem auto 0 !important;
  }
  
  .promo-banner strong {
    font-size: 11px !important;
    padding: 1px 4px !important;
    border-radius: 4px !important;
  }

  /* Supported brokers text */
  .brokers-section {
    padding: 25px 0.75rem !important;
  }
  
  .custom-broker-note {
    padding: 0.75rem !important;
    border-radius: 12px !important;
  }
}


