/* ONE TRADING BRASIL - STYLESHEET */

:root {
  /* Typography */
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing Grid */
  --grid-unit: 8px;
  --space-xs: calc(var(--grid-unit) * 0.5); /* 4px */
  --space-sm: var(--grid-unit);            /* 8px */
  --space-md: calc(var(--grid-unit) * 2);   /* 16px */
  --space-lg: calc(var(--grid-unit) * 3);   /* 24px */
  --space-xl: calc(var(--grid-unit) * 6);   /* 48px */
  --space-2xl: calc(var(--grid-unit) * 12); /* 96px */

  /* Borders & Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  /* Default Theme (Dark Mode) */
  --bg-canvas: #060913; /* Deep Dark Space */
  --bg-surface: rgba(10, 16, 30, 0.7); /* Frosted Surface */
  --bg-card: rgba(18, 25, 41, 0.45); /* Slate Glass Card */
  --border-glass: rgba(255, 255, 255, 0.08); /* Whisper-thin border */
  --border-active: rgba(16, 185, 129, 0.4); /* Default Emerald glow */
  
  --text-primary: #ffffff; /* Stark White */
  --text-muted: #8892b0; /* Slate Gray */
  
  --accent-primary: #10b981; /* Default Emerald Accent */
  --accent-secondary: #059669; /* Darker Emerald Accent */
  --accent-glow: rgba(16, 185, 129, 0.15);
  
  --orb-1-color: rgba(16, 185, 129, 0.1);
  --orb-2-color: rgba(5, 150, 105, 0.08);

  --shadow-depth: 0 12px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

[data-theme="light"] {
  /* Light Theme overrides */
  --bg-canvas: #f6f8fb; /* Alabaster base */
  --bg-surface: rgba(255, 255, 255, 0.85);
  --bg-card: rgba(240, 243, 248, 0.75); /* Cool grey cards */
  --border-glass: rgba(15, 23, 42, 0.08);
  --border-active: rgba(16, 185, 129, 0.4);
  
  --text-primary: #0a0f1d; /* Slate Charcoal */
  --text-muted: #5e6b84;
  
  --accent-primary: #10b981;
  --accent-secondary: #059669;
  --accent-glow: rgba(16, 185, 129, 0.08);

  --orb-1-color: rgba(16, 185, 129, 0.04);
  --orb-2-color: rgba(5, 150, 105, 0.03);

  --shadow-depth: 0 12px 40px rgba(15, 23, 42, 0.06), inset 0 0 0 1px rgba(15, 23, 42, 0.02);
}

/* Color Accent Overrides */
[data-accent="emerald"] {
  --accent-primary: #10b981;
  --accent-secondary: #059669;
  --border-active: rgba(16, 185, 129, 0.45);
  --orb-1-color: rgba(16, 185, 129, 0.12);
  --orb-2-color: rgba(5, 150, 105, 0.08);
}
[data-theme="light"][data-accent="emerald"] {
  --border-active: rgba(5, 150, 105, 0.45);
  --orb-1-color: rgba(5, 150, 105, 0.05);
  --orb-2-color: rgba(4, 120, 87, 0.04);
}

[data-accent="blue"] {
  --accent-primary: #38bdf8;
  --accent-secondary: #0ea5e9;
  --border-active: rgba(56, 189, 248, 0.45);
  --orb-1-color: rgba(56, 189, 248, 0.12);
  --orb-2-color: rgba(14, 165, 233, 0.08);
}
[data-theme="light"][data-accent="blue"] {
  --accent-primary: #2563eb;
  --accent-secondary: #1d4ed8;
  --border-active: rgba(37, 99, 235, 0.45);
  --orb-1-color: rgba(37, 99, 235, 0.05);
  --orb-2-color: rgba(29, 78, 216, 0.04);
}

[data-accent="purple"] {
  --accent-primary: #a855f7;
  --accent-secondary: #9333ea;
  --border-active: rgba(168, 85, 247, 0.45);
  --orb-1-color: rgba(168, 85, 247, 0.12);
  --orb-2-color: rgba(147, 51, 234, 0.08);
}
[data-theme="light"][data-accent="purple"] {
  --accent-primary: #7c3aed;
  --accent-secondary: #6d28d9;
  --border-active: rgba(124, 58, 237, 0.45);
  --orb-1-color: rgba(124, 58, 237, 0.05);
  --orb-2-color: rgba(109, 40, 217, 0.04);
}

[data-accent="amber"] {
  --accent-primary: #f59e0b;
  --accent-secondary: #d97706;
  --border-active: rgba(245, 158, 247, 0.45);
  --orb-1-color: rgba(245, 158, 11, 0.12);
  --orb-2-color: rgba(217, 119, 6, 0.08);
}
[data-theme="light"][data-accent="amber"] {
  --accent-primary: #ea580c;
  --accent-secondary: #ca8a04;
  --border-active: rgba(234, 88, 12, 0.45);
  --orb-1-color: rgba(234, 88, 12, 0.05);
  --orb-2-color: rgba(202, 138, 4, 0.04);
}

[data-accent="rose"] {
  --accent-primary: #f43f5e;
  --accent-secondary: #e11d48;
  --border-active: rgba(244, 63, 94, 0.45);
  --orb-1-color: rgba(244, 63, 94, 0.12);
  --orb-2-color: rgba(225, 29, 72, 0.08);
}
[data-theme="light"][data-accent="rose"] {
  --accent-primary: #e11d48;
  --accent-secondary: #be123c;
  --border-active: rgba(225, 29, 72, 0.45);
  --orb-1-color: rgba(225, 29, 72, 0.05);
  --orb-2-color: rgba(190, 18, 60, 0.04);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Persistent Theme Toggle */
.theme-toggle {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  width: 50px;
  height: 50px;
  border-radius: var(--radius-pill);
  display: none !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2000;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-depth);
}

.theme-toggle:hover {
  transform: scale(1.08) translateY(-2px);
  border-color: var(--border-active);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25), inset 0 0 0 1px var(--border-active);
}

[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }
[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }

/* Ambient Glow Orbs */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: var(--radius-pill);
  filter: blur(140px);
  -webkit-filter: blur(140px);
  opacity: 0.8;
  animation: floatOrb 20s ease-in-out infinite alternate;
  transition: background-color 0.8s ease;
}

.orb-1 {
  width: clamp(300px, 40vw, 600px);
  height: clamp(300px, 40vw, 600px);
  background: var(--orb-1-color);
  top: -10%;
  left: 10%;
  animation-duration: 25s;
}

.orb-2 {
  width: clamp(400px, 50vw, 700px);
  height: clamp(400px, 50vw, 700px);
  background: var(--orb-2-color);
  bottom: -15%;
  right: 15%;
  animation-duration: 30s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8%, -6%) scale(1.08); }
  100% { transform: translate(-6%, 8%) scale(0.95); }
}

/* Floating Navbar */
.navbar {
  position: fixed;
  top: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  width: min(95%, 1400px); /* Expanded circular navbar area to span across the page width */
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-pill);
  padding: 12px 28px;
  z-index: 1000;
  box-shadow: var(--shadow-depth);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: var(--space-lg);
}

.nav-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-item:hover {
  color: var(--text-primary);
}

/* Accent Color Picker */
.color-picker-container {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  transition: border-color 0.3s ease;
}

[data-theme="light"] .color-picker-container {
  background: rgba(15, 23, 42, 0.03);
}

.color-dot-btn {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid transparent;
  background-color: var(--theme-dot-color);
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.color-dot-btn:hover {
  transform: scale(1.3);
}

.color-dot-btn.active {
  border-color: var(--text-primary);
  transform: scale(1.25);
  box-shadow: 0 0 8px var(--theme-dot-color);
}

/* Hero Section Layout */
.hero-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--space-2xl) + 40px) var(--space-lg) var(--space-xl);
  overflow: hidden;
}

/* Background Image Layer */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('hero-bg.png');
  background-size: 85% auto; /* Lock scale to client selection */
  background-repeat: no-repeat;
  background-position: calc(50% - 660px) top 5px; /* Lock coordinates relative to center to preserve overlap */
  opacity: 0.25; /* Lock dark mode opacity to client selection */
  mix-blend-mode: luminosity;
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

[data-theme="light"] .hero-section::after {
  opacity: 0.08; /* Maintain lower contrast in light mode */
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr; /* 2 columns: CEO image on the left, text on the right */
  gap: var(--space-xl);
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

.hero-image-side {
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.hero-ceo-img {
  max-width: 100%;
  height: auto;
  max-height: 68vh;
  object-fit: contain;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.45));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-ceo-img:hover {
  transform: translateY(-4px) scale(1.02);
}

.hero-text-side {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  padding: 6px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-depth);
}

.badge-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  font-weight: 700;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.10;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
}

.gradient-text {
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 0 var(--space-xl);
  line-height: 1.5;
}

.highlight-text {
  color: var(--text-primary);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end; /* Align button actions to the right */
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

/* Button UI Recipe */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-size: 1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--accent-primary);
  color: #000;
  border: 1px solid transparent;
}

.btn-primary:hover {
  transform: translateY(-3px);
  background: var(--text-primary);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25), 0 0 15px var(--accent-primary);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  border-color: var(--border-active);
  background: rgba(255, 255, 255, 0.05);
}

.hero-notice {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Hero Trader Image side */
.hero-image-side {
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  width: 100%;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4 / 5;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image-wrapper:hover {
  transform: translateY(-4px) scale(1.03);
}

/* Grayscale + blend filter recipe to make green-screen photos look incredibly premium */
.hero-trader-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 2;
  border-radius: var(--radius-lg);
  filter: grayscale(100%) contrast(1.1) brightness(0.95);
  transition: filter 0.5s ease, transform 0.5s ease;
}

.hero-image-wrapper:hover .hero-trader-img {
  filter: grayscale(0%) contrast(1.05) brightness(1); /* Color pops on hover! */
}

/* Smooth fade gradient blending at the bottom to melt it into the dark background */
.hero-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-canvas) 0%, transparent 45%);
  z-index: 3;
  pointer-events: none;
  border-radius: var(--radius-lg);
}

.trader-glowing-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140%;
  height: 140%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  z-index: 1;
  pointer-events: none;
  animation: pulseGlow 8s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.95); }
  100% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.1); }
}

/* Section Styling */
.section {
  padding: var(--space-2xl) var(--space-lg);
  max-width: 1240px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-xl);
  text-align: center;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: calc(-1 * var(--space-md));
  margin-bottom: var(--space-xl);
}

/* Tactile Glass Cards */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-depth);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.glass-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: var(--border-active);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35), inset 0 0 0 1px var(--border-active);
}

/* Bento Box Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.bento-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-lg);
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

[data-theme="light"] .card-icon {
  background: rgba(0, 0, 0, 0.03);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-md);
}

.card-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.accent-span {
  color: var(--accent-primary);
  font-weight: 600;
}

/* Tab Selection capsule */
.tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.tabs-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 6px;
  border-radius: var(--radius-pill);
  display: flex;
  box-shadow: var(--shadow-depth);
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  background: var(--accent-primary);
  color: #000;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.pricing-grid {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
  max-width: 1100px;
  margin: 0 auto;
}

#grid-teste {
  max-width: 800px; /* Restrict width to keep card proportions matching the 3-column layout */
}

.pricing-grid.active-grid {
  display: grid;
  animation: gridFade 0.4s ease-out forwards;
}

@keyframes gridFade {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.pricing-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding: var(--space-lg); /* Override glass-card 48px padding to give content more width */
}

.pricing-card.highlighted {
  border: 2px solid var(--accent-primary);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35), 0 0 25px var(--accent-glow);
}

.pricing-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35), 0 0 25px var(--accent-glow);
}

/* Fade out highlighted card styles when other cards are hovered */
.pricing-grid:has(.pricing-card:not(.highlighted):hover) .pricing-card.highlighted {
  border-color: var(--border-glass);
  box-shadow: var(--shadow-depth);
}

.popular-ribbon {
  position: absolute;
  top: 22px;
  right: -38px;
  background: var(--accent-primary);
  color: #000;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.52rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 0;
  width: 150px;
  text-align: center;
  transform: rotate(45deg);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Fade out the ribbon when other cards are hovered */
.pricing-grid:has(.pricing-card:not(.highlighted):hover) .pricing-card.highlighted .popular-ribbon {
  opacity: 0.15;
}

/* Fade out the card-tier of the highlighted card when another card is hovered */
.pricing-grid:has(.pricing-card:not(.highlighted):hover) .pricing-card.highlighted .card-tier,
.pricing-grid:has(.pricing-card:not(.highlighted):hover) .pricing-card.highlighted .card-tier.text-accent {
  color: var(--text-muted) !important;
}

/* Fade out the button of the highlighted card when another card is hovered */
.pricing-grid:has(.pricing-card:not(.highlighted):hover) .pricing-card.highlighted .btn-action-accent {
  background: var(--bg-canvas);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  box-shadow: none;
}

/* Maintain hover state for the faded button of the highlighted card */
.pricing-grid:has(.pricing-card:not(.highlighted):hover) .pricing-card.highlighted .btn-action-accent:hover {
  transform: translateY(-3px);
  border-color: var(--border-active);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}

/* Make non-highlighted cards' button active when card is hovered */
.pricing-card:not(.highlighted):hover .btn-action {
  background: var(--accent-primary);
  color: #000;
  border-color: transparent;
  box-shadow: 0 4px 12px var(--accent-glow);
}

/* Button hover state inside hovered card */
.pricing-card:not(.highlighted):hover .btn-action:hover {
  transform: translateY(-3px);
  background: var(--text-primary);
  color: #000;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25), 0 0 15px var(--accent-primary);
}

.card-tier {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-card:hover .card-tier {
  color: var(--accent-primary);
}

.text-accent {
  color: var(--accent-primary) !important;
}

.plan-name {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.plan-price-container {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.price-currency {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.price-amount {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
}

.price-period {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.plan-goal {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-top: calc(-1 * var(--space-md));
  margin-bottom: var(--space-lg);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  flex-grow: 1;
}

.plan-features li {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  white-space: normal; /* Allow wrapping on small screens to prevent horizontal overflow */
  line-height: 1.4;
}

.plan-features li.highlighted-feature strong.text-accent {
  font-size: 1.08rem;
}

.check {
  color: var(--accent-primary);
  font-weight: 900;
  margin-right: 8px;
  flex-shrink: 0; /* Prevent checkmark from shrinking when text wraps */
  margin-top: 2px; /* Align with first line of wrapped text */
}

.btn-action {
  width: 100%;
  background: var(--bg-canvas);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.btn-action:hover {
  transform: translateY(-3px);
  border-color: var(--border-active);
  background: rgba(255, 255, 255, 0.02);
}

.btn-action-accent {
  width: 100%;
  background: var(--accent-primary);
  color: #000;
}

/* Footer Section */
.site-footer {
  border-top: 1px solid var(--border-glass);
  padding: var(--space-2xl) var(--space-lg) var(--space-xl);
  background: var(--bg-canvas);
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-container {
  max-width: 800px;
  margin: 0 auto;
}

.footer-logo-container {
  margin-bottom: var(--space-md);
}

.footer-logo {
  height: 200px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-logo:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 800px;
  margin: 0 auto var(--space-xl);
  white-space: nowrap;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid var(--border-glass);
  padding-top: var(--space-xl);
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Footer release version pill */
.site-version {
  font-size: 0.75rem;
  color: var(--accent-primary);
  padding: 3px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-weight: 700;
}

/* Micro-Animations & Reveals */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes revealUp {
      from {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    .reveal-card {
      animation: revealUp auto cubic-bezier(0.16, 1, 0.3, 1) forwards;
      animation-timeline: view();
      animation-range: entry 10% entry 30%;
    }
  }
}
/* Responsive Overrides */
@media (max-width: 992px) {
  .hero-section::after {
    background-image: none !important;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
    justify-items: center; /* Center layout block on mobile/tablets */
  }
  .hero-text-side {
    align-items: center; /* Center align text components on mobile/tablets */
    text-align: center; /* Center align copy on mobile/tablets */
  }
  .hero-subtitle {
    margin: 0 auto var(--space-xl);
  }
  .hero-actions {
    justify-content: center; /* Center buttons on mobile/tablets */
  }
  .hero-image-side {
    margin-top: var(--space-md);
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 10px 18px;
  }
  .nav-links {
    display: none; /* Keep layout clean for mobile */
  }
  .theme-toggle {
    bottom: var(--space-md);
    right: var(--space-md);
  }
  .hero-section {
    padding-top: var(--space-2xl);
  }
  .footer-desc {
    white-space: normal;
  }
}

/* Testimonials Section */
.testimonials-section {
  position: relative;
  z-index: 1;
}

.testimonials-slider-container {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  padding: var(--space-xl) 0;
  display: flex;
  mask-image: linear-gradient(to right, transparent 0%, #000 15%, #000 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 15%, #000 85%, transparent 100%);
}

.testimonials-track {
  display: flex;
  gap: var(--space-lg);
  width: max-content;
  animation: infiniteScroll 50s linear infinite;
  padding-left: var(--space-lg);
}

.testimonials-track:hover {
  animation-play-state: paused;
}

@keyframes infiniteScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - (var(--space-lg) / 2))); }
}

.testimonial-card {
  width: clamp(300px, 85vw, 420px);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 380px; /* Ample space to prevent any text overflows */
  padding: var(--space-lg);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--border-active);
  box-shadow: var(--shadow-depth), 0 0 20px var(--accent-glow);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  width: 100%;
}

.avatar-wrapper {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-canvas);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 12px var(--avatar-glow, rgba(16, 185, 129, 0.15));
  flex-shrink: 0;
}

.trader-avatar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  border-radius: 50%;
}

.avatar-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-primary);
  background: var(--bg-card);
  z-index: 1;
}

.trader-info {
  flex-grow: 1;
}

.trader-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 2px 0;
}

.trader-state {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.testimonial-text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 0;
  flex-grow: 1;
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 12;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.testimonial-rating {
  font-size: 0.75rem;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.regulation-link {
  display: block;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-top: 12px;
  opacity: 0.7;
  transition: all 0.2s ease;
}

.regulation-link:hover {
  opacity: 1;
  color: var(--accent-primary);
}

/* Stats Section */
.stats-section {
  position: relative;
  z-index: 1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 24px 24px;
}

[data-theme="light"] .stats-section {
  background-image: radial-gradient(rgba(15, 23, 42, 0.02) 1px, transparent 1px);
}

.stats-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  width: 100%;
}

.stat-card {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-depth);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-depth), 0 0 20px var(--accent-glow);
}

.stat-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-canvas);
  border: 1px solid var(--border-glass);
  color: var(--accent-primary);
  margin-bottom: var(--space-md);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.02);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-card:hover .stat-icon-wrapper {
  border-color: var(--border-active);
  color: var(--text-primary);
  box-shadow: 0 0 15px var(--accent-glow);
  transform: scale(1.1);
}

.stat-number-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  line-height: 1;
  color: var(--accent-primary);
  margin-bottom: var(--space-md);
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-prefix {
  margin-right: 4px;
  white-space: nowrap;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.2;
  white-space: nowrap;
  text-align: center;
  transition: color 0.3s ease;
}

@media (max-width: 1024px) {
  .stat-label {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .stat-label {
    font-size: 0.72rem;
  }
}

.stat-card:hover .stat-label {
  color: var(--text-primary);
}

/* Video Section */
.video-section {
  position: relative;
  z-index: 1;
}

.video-wrapper {
  position: relative;
  max-width: 800px;
  margin: var(--space-xl) auto 0;
  padding: 12px; /* Small padding to act as a sleek frame */
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-depth);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.video-wrapper:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: var(--border-active);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 30px var(--accent-glow);
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  border-radius: calc(var(--radius-lg) - 8px);
  overflow: hidden;
  z-index: 2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-glow-back {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  height: 110%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  transition: opacity 0.4s ease;
}

.video-wrapper:hover .video-glow-back {
  opacity: 0.8;
}

/* FAQ Section */
.faq-section {
  position: relative;
  z-index: 1;
}

.faq-grid {
  max-width: 680px;
  margin: var(--space-xl) auto 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  padding: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.faq-item[open] {
  border-color: var(--border-active);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25), inset 0 0 0 1px var(--border-active);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none; /* Hide default arrow in Chrome/Firefox */
  transition: all 0.3s ease;
}

/* Hide default arrow in Safari */
.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.02);
  color: var(--accent-primary);
}

.faq-icon {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  color: var(--accent-primary);
}

.faq-answer {
  padding: 0 20px 16px 20px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.faq-answer code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  color: var(--accent-primary);
  font-size: 0.8rem;
}

[data-theme="light"] .faq-answer code {
  background: rgba(15, 23, 42, 0.04);
}

.faq-example-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #000;
  background: var(--accent-primary);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-top: var(--space-sm);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.05em;
}

.faq-whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.2);
  color: #25d366;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: var(--space-sm);
}

.faq-whatsapp-link:hover {
  background: rgba(37, 211, 102, 0.15);
  border-color: rgba(37, 211, 102, 0.4);
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.2);
  transform: translateY(-2px);
}

.faq-whatsapp-icon {
  width: 14px;
  height: 14px;
}


@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}


/* --- PORTAL DO ALUNO & COURSES DASHBOARD STYLES --- */

.footer-line-2 {
  white-space: nowrap;
  display: inline-block;
}

@media (max-width: 768px) {
  .footer-line-2 {
    white-space: normal;
    display: inline;
  }
}

.nav-links .nav-btn-login {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-primary) !important;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-links .nav-btn-login:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
  transform: translateY(-1px);
}

.dashboard-body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  min-height: 100vh;
  font-family: var(--font-body);
  overflow-x: hidden;
}

.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 21, 40, 0.85);
  backdrop-filter: blur(15px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1500;
  padding: var(--space-md);
}

.login-card {
  width: 100%;
  max-width: 440px;
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  border-radius: var(--radius-lg);
  border-color: var(--border-glass);
  background: rgba(15, 23, 42, 0.6);
}

.login-header {
  margin-bottom: var(--space-xl);
}

.login-logo {
  height: 50px;
  margin-bottom: var(--space-md);
}

.login-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.login-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.login-form {
  text-align: left;
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.input-wrapper input:focus {
  outline: none;
  border-color: var(--border-active);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
  background: rgba(15, 23, 42, 0.8);
}

.input-icon {
  position: absolute;
  left: 14px;
  font-size: 1.1rem;
  color: var(--text-muted);
  pointer-events: none;
}

.login-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: var(--space-md);
  text-align: center;
}

.btn-block {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-weight: 700;
}

.login-footer {
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  font-size: 0.85rem;
}

.forgot-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.forgot-link:hover {
  color: var(--accent-primary);
}

.login-footer-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: var(--space-xs);
}

.login-back-to-site-wrapper {
  display: flex;
  justify-content: center;
  margin-top: var(--space-md);
  width: 100%;
}

.support-text {
  color: var(--text-muted);
}

.support-text a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
}

.support-text a:hover {
  text-decoration: underline;
}

.dashboard-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0;
  max-width: 1800px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  background: rgba(13, 27, 49, 0.6);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
  position: sticky;
  top: 0;
  z-index: 100;
}

.dash-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-logo-img {
  height: 38px;
}

.dash-brand-text {
  display: flex;
  flex-direction: column;
}

.dash-brand-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.dash-brand-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 0.1em;
}

.course-selector-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 500px;
  margin: 0 var(--space-xl);
}

.selector-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.select-style-wrapper {
  position: relative;
  width: 100%;
}

.course-select {
  width: 100%;
  padding: 10px 36px 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  outline: none;
  transition: all 0.3s ease;
}

.course-select:focus {
  border-color: var(--border-active);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.15);
}

.select-style-wrapper::after {
  content: "▼";
  font-size: 0.7rem;
  color: var(--text-muted);
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.dash-user-panel {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.user-email {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.user-status {
  font-size: 0.72rem;
  color: var(--accent-primary);
  font-weight: 600;
}

.logout-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #ffffff;
}

.back-site-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #34d399;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.back-site-btn:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #ffffff;
}

.dash-main {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: var(--space-lg);
  padding: var(--space-lg);
  flex: 1;
  height: calc(100vh - 74px);
  overflow: hidden;
}

.dash-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  overflow-y: auto;
  padding-right: 4px;
}

.dash-sidebar::-webkit-scrollbar {
  width: 6px;
}

.dash-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.dash-sidebar::-webkit-scrollbar-thumb {
  background: var(--border-glass);
  border-radius: var(--radius-pill);
}

.progress-card {
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.progress-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.progress-percent {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.progress-bar-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: var(--radius-pill);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.lesson-accordion-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.module-group {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.3s;
}

.module-group:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.module-group.open {
  border-color: rgba(16, 185, 129, 0.2);
}

.module-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: background 0.3s;
}

.module-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

.module-title-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 80%;
}

.module-chevron {
  font-size: 0.65rem;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.module-group.open .module-chevron {
  transform: rotate(90deg);
}

.module-title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--text-primary);
}

.module-counter {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.lesson-list {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--border-glass);
  background: rgba(0, 0, 0, 0.15);
}

.module-group.open .lesson-list {
  display: flex;
}

.lesson-item-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.lesson-item-btn:last-child {
  border-bottom: none;
}

.lesson-item-btn:hover {
  background: rgba(16, 185, 129, 0.05);
  color: var(--text-primary);
}

.lesson-item-btn.active {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-primary);
  font-weight: 600;
  border-left: 3px solid var(--accent-primary);
}

.lesson-left {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 82%;
}

.lesson-check-indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: transparent;
  background: transparent;
  transition: all 0.2s;
  flex-shrink: 0;
}

.lesson-check-indicator.checked {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
}

.lesson-title-text {
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lesson-dur-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.accordion-loader, .accordion-empty, .accordion-error, .lesson-empty {
  padding: var(--space-md);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.loader-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-glass);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.dash-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  overflow-y: auto;
  padding-right: 4px;
}

.dash-content::-webkit-scrollbar {
  width: 6px;
}

.dash-content::-webkit-scrollbar-thumb {
  background: var(--border-glass);
  border-radius: var(--radius-pill);
}

.video-card {
  padding: 0;
  overflow: hidden;
  background: var(--bg-card);
}

.video-card .video-wrapper {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.video-card .video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(11, 21, 40, 0.95);
  text-align: center;
  padding: var(--space-lg);
}

.placeholder-content {
  max-width: 400px;
}

.placeholder-logo {
  height: 50px;
  margin-bottom: var(--space-md);
  opacity: 0.4;
}

.placeholder-content h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.placeholder-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.video-meta {
  padding: var(--space-md) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.01);
}

.meta-left {
  max-width: 70%;
}

.current-lesson-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.lesson-info-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.lesson-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.course-name-badge {
  color: var(--accent-primary);
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.15);
}

.btn-complete {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-complete:hover {
  border-color: var(--accent-primary);
  background: rgba(16, 185, 129, 0.05);
}

.btn-complete.completed {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.complete-icon {
  font-size: 0.95rem;
  font-weight: bold;
}

.tabs-card {
  padding: 0;
  overflow: hidden;
  background: var(--bg-card);
}

.tabs-header {
  display: flex;
  border-bottom: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.01);
}

.dash-tab {
  padding: 14px var(--space-lg);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.dash-tab:hover {
  color: var(--text-primary);
}

.dash-tab.active {
  color: var(--accent-primary);
}

.dash-tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-primary);
}

.tabs-content {
  padding: var(--space-lg);
}

.dash-tab-pane {
  display: none;
}

.dash-tab-pane.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.tabs-content h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.tabs-content p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.tip-box {
  display: flex;
  gap: 12px;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  margin-top: var(--space-md);
}

.tip-icon {
  font-size: 1.25rem;
}

.tip-text {
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.support-item-link {
  display: flex;
  gap: 12px;
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.3s ease;
}

.support-item-link:hover {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.03);
  transform: translateY(-2px);
}

.support-icon {
  font-size: 1.5rem;
}

.support-details h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.support-details p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.4;
}

.toast {
  position: fixed;
  top: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  color: var(--text-primary);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.88rem;
  z-index: 2500;
  box-shadow: var(--shadow-depth);
  border-left: 3px solid var(--accent-primary);
}


@media (max-width: 1024px) {
  .dash-main {
    grid-template-columns: 280px 1fr;
  }
}

@media (max-width: 768px) {
  .dash-main {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
    gap: var(--space-lg);
  }
  .dash-sidebar {
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
  }
  .dash-sidebar-footer {
    display: none !important;
  }
  .dash-sidebar-nav {
    flex-direction: row !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    gap: 8px !important;
    padding-bottom: 6px !important;
    margin-bottom: var(--space-md) !important;
    border-bottom: 1px solid var(--border-glass) !important;
    scrollbar-width: none;
  }
  .dash-sidebar-nav::-webkit-scrollbar {
    display: none;
  }
  .dash-nav-btn {
    flex: 0 0 auto !important;
    width: auto !important;
    padding: 10px 16px !important;
    font-size: 0.85rem !important;
    justify-content: center !important;
    transform: none !important;
  }
  .dash-nav-btn:hover {
    transform: none !important;
  }
  .dash-header {
    flex-direction: column;
    gap: 12px;
    padding: var(--space-md);
  }
  .course-selector-wrapper {
    margin: 8px 0;
    max-width: 100%;
    width: 100%;
  }
  #master-filter-wrapper {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 8px 0 !important;
  }
  #master-filter-wrapper .filter-group {
    width: 100% !important;
    justify-content: space-between;
  }
  #master-filter-wrapper .select-style-wrapper {
    flex: 1;
    max-width: 70%;
  }
  .dash-user-panel {
    width: 100%;
    justify-content: space-between;
  }
  .user-email {
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .support-grid {
    grid-template-columns: 1fr;
  }
  .mock-chart-container {
    overflow-x: auto !important;
    padding-bottom: 12px !important;
    justify-content: flex-start !important;
    gap: 12px !important;
  }
  .chart-bar-group {
    min-width: 45px !important;
    flex-shrink: 0 !important;
  }
  .chart-card, .rules-card, .account-card, .table-card, .tabs-card, .video-card {
    padding: var(--space-md) !important;
  }
}

/* --- LOGIN PAGE NESTED SITE LAYOUT STYLES --- */
.login-page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: space-between;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  position: relative;
  overflow-x: hidden;
}

.login-section-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 160px var(--space-md) var(--space-2xl) var(--space-md);
  position: relative;
  overflow: hidden;
}

/* Adjust login-overlay to be a standard page wrapper instead of fixed overlay when class is added */
#login-overlay.login-page-container {
  position: relative;
  width: 100%;
  height: auto;
  background: transparent;
  backdrop-filter: none;
  z-index: 10;
  padding: 0;
}

/* --- DASHBOARD VIEW SYSTEM (TREINAMENTOS, RESULTADOS, MINHA CONTA) --- */
.dash-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: var(--space-md);
}

.dash-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dash-nav-btn:hover {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--accent-primary);
  transform: translateX(4px);
}

.dash-nav-btn.active {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.sidebar-subview {
  display: none;
}

.sidebar-subview.active {
  display: block;
}

.main-subview {
  display: none;
}

.main-subview.active {
  display: block;
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.course-selector-wrapper {
  transition: opacity 0.3s ease;
}

/* --- RESULTS VIEW STYLES --- */
.results-header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  flex-wrap: wrap;
  gap: 12px;
}

.results-account-info {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.results-account-label {
  color: var(--text-muted);
}

.results-account-val {
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(15, 23, 42, 0.4);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
}

.results-view-toggle {
  display: flex;
  background: rgba(15, 23, 42, 0.6);
  padding: 4px;
  border-radius: 30px;
  border: 1px solid var(--border-glass);
}

.results-view-toggle .toggle-pill {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.results-view-toggle .toggle-pill:hover {
  color: var(--text-primary);
}

.results-view-toggle .toggle-pill.active {
  background: var(--accent-primary);
  color: #0c1322;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.results-container, .account-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  width: 100%;
}

.results-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  width: 100%;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  width: 100%;
}

.results-summary-grid .plano-card,
.results-summary-grid .saldo-inicial-card,
.results-summary-grid .status-card,
.results-summary-grid .lucro-card {
  grid-column: span 2;
}

.results-summary-grid .operacoes-card,
.results-summary-grid .ir-card,
.results-summary-grid .mesa-card,
.results-summary-grid .saldo-atual-card {
  grid-column: span 1;
}

/* Planos View Specific Grid Layout */
.results-summary-grid .plano-card-plano {
  grid-column: span 1;
}
.results-summary-grid .plano-card-saldo-inicial {
  grid-column: span 2;
}
.results-summary-grid .plano-card-status {
  grid-column: span 1;
}
.results-summary-grid .plano-card-operacoes,
.results-summary-grid .plano-card-ir,
.results-summary-grid .plano-card-mesa,
.results-summary-grid .plano-card-saldo-atual {
  grid-column: span 1;
}
.results-summary-grid .plano-card-lucro {
  grid-column: span 4;
}

@media (max-width: 992px) {
  .results-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .results-summary-grid .plano-card,
  .results-summary-grid .saldo-inicial-card,
  .results-summary-grid .operacoes-card,
  .results-summary-grid .saldo-atual-card,
  .results-summary-grid .status-card,
  .results-summary-grid .ir-card,
  .results-summary-grid .mesa-card {
    grid-column: span 1;
  }
  .results-summary-grid .lucro-card {
    grid-column: span 2;
  }
  .results-summary-grid .plano-card-plano,
  .results-summary-grid .plano-card-status,
  .results-summary-grid .plano-card-operacoes,
  .results-summary-grid .plano-card-saldo-atual,
  .results-summary-grid .plano-card-ir,
  .results-summary-grid .plano-card-mesa {
    grid-column: span 1;
  }
  .results-summary-grid .plano-card-saldo-inicial,
  .results-summary-grid .plano-card-lucro {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .results-summary-grid {
    grid-template-columns: 1fr;
  }
  .results-summary-grid .plano-card,
  .results-summary-grid .saldo-inicial-card,
  .results-summary-grid .operacoes-card,
  .results-summary-grid .saldo-atual-card,
  .results-summary-grid .status-card,
  .results-summary-grid .ir-card,
  .results-summary-grid .mesa-card,
  .results-summary-grid .lucro-card {
    grid-column: span 1;
  }
  .results-summary-grid .plano-card-plano,
  .results-summary-grid .plano-card-saldo-inicial,
  .results-summary-grid .plano-card-operacoes,
  .results-summary-grid .plano-card-saldo-atual,
  .results-summary-grid .plano-card-status,
  .results-summary-grid .plano-card-ir,
  .results-summary-grid .plano-card-mesa,
  .results-summary-grid .plano-card-lucro {
    grid-column: span 1;
  }
}

.summary-stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: var(--space-lg);
  position: relative;
}

.summary-stat-card .stat-icon {
  font-size: 1.8rem;
  background: rgba(16, 185, 129, 0.08);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.summary-stat-card .stat-details {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.summary-stat-card .stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  text-align: left;
}

.summary-stat-card .stat-val {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  margin-top: 4px;
}

.summary-stat-card .stat-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.summary-stat-card .payout-request-btn {
  margin-left: auto;
  white-space: nowrap;
  font-size: 0.78rem;
  padding: 6px 12px;
}

/* Results Main Column Grid */
.results-main-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.chart-card, .rules-card, .account-card {
  padding: var(--space-xl);
}

.chart-card h3, .rules-card h3, .account-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  border-left: 3px solid var(--accent-primary);
  padding-left: 10px;
  color: #ffffff;
}

/* Mock Performance Chart */
.mock-chart-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 200px;
  padding-top: var(--space-xl);
  border-bottom: 1px solid var(--border-glass);
  margin-top: var(--space-md);
  position: relative;
}

.chart-bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 8%;
  height: 100%;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .chart-bar-group {
    width: 9%;
  }
  .chart-bar .bar-val {
    font-size: 0.6rem;
    top: -20px;
  }
  .chart-label {
    font-size: 0.62rem;
    text-align: center;
    white-space: nowrap;
  }
}

.chart-bar {
  width: 100%;
  height: var(--bar-h);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.4) 0%, rgba(16, 185, 129, 0.05) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  position: relative;
  transition: all 0.5s ease;
  min-height: 5px;
}

.chart-bar:hover {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.6) 0%, rgba(16, 185, 129, 0.15) 100%);
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.chart-bar.negative {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.4) 0%, rgba(239, 68, 68, 0.05) 100%);
  border-color: rgba(239, 68, 68, 0.3);
}

.chart-bar.negative:hover {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.6) 0%, rgba(239, 68, 68, 0.15) 100%);
  border-color: #ef4444;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

.chart-bar.highlight {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.6) 0%, rgba(16, 185, 129, 0.15) 100%);
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.chart-bar.negative.highlight {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.6) 0%, rgba(239, 68, 68, 0.15) 100%);
  border-color: #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.chart-bar .bar-val {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-body);
  white-space: nowrap;
  color: var(--text-primary);
}

.chart-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 600;
}

/* Rules Checklist */
.rules-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-glass);
}

.rule-item.completed {
  border-color: rgba(16, 185, 129, 0.2);
  background: rgba(16, 185, 129, 0.02);
}

.rule-item .rule-status {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-primary);
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.rule-item .rule-text {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

.rule-item .rule-text strong {
  color: var(--text-primary);
}

/* --- ACCOUNT SETTINGS VIEW --- */
.account-card {
  text-align: left;
}

.account-card h3 {
  min-height: 52px;
  display: flex;
  align-items: center;
}

.account-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.account-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
  text-align: left;
}

.account-form label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: left;
}

.account-form input, .account-form select {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  outline: none;
  font-family: var(--font-body);
  transition: all 0.3s ease;
}

.account-form input:focus, .account-form select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

.account-form .input-readonly {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  cursor: not-allowed;
}

.account-form .help-note {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.full-width-card {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .full-width-card {
    grid-column: span 1;
  }
}

.license-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: var(--space-md);
}

.license-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
}

.license-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.license-val {
  font-size: 0.95rem;
  font-weight: 700;
}

.license-val.code-val {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.2);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  width: fit-content;
}

/* --- OPERATIONS TABLE CARD STYLES --- */
.table-card {
  padding: var(--space-xl);
  width: 100%;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-top: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.operations-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.operations-table thead {
  background: rgba(16, 185, 129, 0.85);
  color: #0c1322;
}

[data-theme="light"] .operations-table thead {
  background: var(--accent-primary);
  color: #ffffff;
}

.operations-table th {
  padding: 12px 16px;
  font-weight: 700;
  white-space: nowrap;
  font-family: var(--font-heading);
}

.operations-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-family: var(--font-body);
  white-space: nowrap;
}

.operations-table tbody tr {
  background: rgba(255, 255, 255, 0.01);
  transition: background 0.2s ease;
}

.operations-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.operations-table tbody tr:hover {
  background: rgba(16, 185, 129, 0.05);
}

.operations-table .text-right {
  text-align: right;
}

.operations-table .val-negative {
  color: #ef4444;
  font-weight: 600;
}

.operations-table .val-positive {
  color: #10b981;
  font-weight: 600;
}

/* Mobile Responsive Tuning for Plans & Testes (Conversion Optimization) */
@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
    padding: 0 var(--space-xs);
  }

  .pricing-card {
    padding: var(--space-md) var(--space-md) var(--space-lg); /* Optimize inner spacing */
  }

  .tab-btn {
    padding: 10px 16px;
    font-size: 0.72rem;
  }
}

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

  .plan-name {
    font-size: 1.5rem;
  }

  .price-amount {
    font-size: 2.2rem;
  }

  .popular-ribbon {
    top: 22px;
    right: -38px;
    font-size: 0.52rem;
    width: 150px;
  }
}

@media (max-width: 380px) {
  .tab-btn {
    padding: 8px 10px;
    font-size: 0.68rem;
  }
}


