/* ============================================================
   EU QUERO ENTRAR - Main CSS (mobile-first, unified)
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  --primary:         #00509E;
  --primary-dark:    #003d7a;
  --primary-light:   #1a6ec0;
  --accent:          #FFD700;
  --accent-dark:     #e6c200;
  --orange:          #FF6B00;
  --orange-dark:     #d45a00;

  --bg-page:         #000c24;
  --bg-card:         #0d1f38;
  --bg-card-light:   #0a2448;
  --bg-nav:          rgba(0, 0, 0, 0.85);

  --text-primary:    #ffffff;
  --text-secondary:  #adb5bd;
  --text-muted:      #6c757d;

  --border-color:    rgba(255,255,255,0.08);
  --border-focus:    #00509E;

  --shadow-sm:       0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:       0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg:       0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow:     0 0 20px rgba(0,80,158,0.4);

  --radius-sm:       8px;
  --radius-md:       12px;
  --radius-lg:       16px;
  --radius-xl:       24px;
  --radius-full:     9999px;

  --space-xs:        4px;
  --space-sm:        8px;
  --space-md:        16px;
  --space-lg:        24px;
  --space-xl:        32px;
  --space-2xl:       48px;
  --space-3xl:       64px;

  --navbar-h:        76px;
  --bottom-nav-h:    68px;

  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;

  --font-body:       'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs:    0.75rem;
  --font-size-sm:    0.875rem;
  --font-size-base:  1rem;
  --font-size-lg:    1.125rem;
  --font-size-xl:    1.25rem;
  --font-size-2xl:   1.5rem;
  --font-size-3xl:   2rem;
  --font-size-4xl:   2.5rem;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(1.75rem, 4vw, var(--font-size-4xl)); }
h2 { font-size: clamp(1.5rem, 3vw, var(--font-size-3xl)); }
h3 { font-size: clamp(1.25rem, 2.5vw, var(--font-size-2xl)); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   Preloader
   ============================================================ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
}

.preloader-spinner {
  width: 56px;
  height: 56px;
  border: 4px solid rgba(0, 80, 158, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto var(--space-md);
}

.preloader-logo {
  width: 80px;
  opacity: 0.9;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   Scroll To Top
   ============================================================ */
#scrollToTop {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + 16px);
  right: 16px;
  z-index: 1050;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--transition-base);
  font-size: 1.1rem;
}

#scrollToTop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scrollToTop:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

@media (min-width: 768px) {
  #scrollToTop {
    bottom: 24px;
    right: 24px;
  }
}

/* ============================================================
   Navbar
   ============================================================ */
.navbar-eqe {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  height: var(--navbar-h);
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 var(--space-md);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.navbar-eqe.sticky {
  background: rgba(0, 8, 30, 0.95);
  box-shadow: var(--shadow-md);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.navbar-brand img {
  height: 40px;
  width: auto;
}

.navbar-brand-text {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.navbar-nav-desktop {
  display: none;
  align-items: center;
  gap: var(--space-xs);
}

.nav-link-eqe {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.85);
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

.nav-link-eqe:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.nav-link-eqe.active {
  color: var(--accent);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: #0a1929;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-base);
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.8);
  font-size: var(--font-size-sm);
  transition: all var(--transition-fast);
}

.nav-dropdown-item:hover {
  color: #fff;
  background: rgba(0,80,158,0.2);
}

.nav-dropdown-item i {
  font-size: 1rem;
  color: var(--primary-light);
  width: 18px;
  text-align: center;
}

.nav-dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: var(--space-xs) 0;
}

/* Navbar right side */
.navbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.social-icons {
  display: none;
  align-items: center;
  gap: var(--space-xs);
}

.social-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  color: rgba(255,255,255,0.7);
  transition: all var(--transition-fast);
  font-size: 1rem;
}

.social-icon-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

/* Premium button */
.btn-navbar-premium {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--orange);
  color: #fff;
  font-size: var(--font-size-sm);
  font-weight: 600;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-navbar-premium:hover {
  background: var(--orange-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,107,0,0.4);
}

/* Avatar dropdown */
.avatar-dropdown {
  position: relative;
}

.avatar-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 4px;
  border-radius: var(--radius-full);
  background: transparent;
  border: 2px solid var(--border-color);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.avatar-btn:hover {
  border-color: var(--primary);
}

.avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: var(--font-size-sm);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.avatar-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: #0a1929;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-base);
  z-index: 100;
}

.avatar-dropdown:hover .avatar-dropdown-menu,
.avatar-dropdown.open .avatar-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.avatar-dropdown-header {
  padding: 8px 12px 12px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: var(--space-xs);
}

.avatar-dropdown-name {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.avatar-dropdown-email {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.chip-premium {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  margin-top: 6px;
}

.chip-premium.premium {
  background: rgba(255, 215, 0, 0.15);
  color: var(--accent);
  border: 1px solid rgba(255,215,0,0.3);
}

.chip-premium.free {
  background: rgba(108,117,125,0.15);
  color: var(--text-muted);
  border: 1px solid rgba(108,117,125,0.2);
}

.avatar-dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.8);
  font-size: var(--font-size-sm);
  transition: all var(--transition-fast);
  width: 100%;
  text-align: left;
}

.avatar-dropdown-item:hover {
  color: #fff;
  background: rgba(0,80,158,0.2);
}

.avatar-dropdown-item.danger:hover {
  color: #ff6b6b;
  background: rgba(255,107,107,0.1);
}

/* Auth buttons */
.btn-nav-login {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.9);
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.btn-nav-login:hover {
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}

.btn-nav-register {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff;
  font-size: var(--font-size-sm);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-nav-register:hover {
  background: var(--primary-dark);
  color: #fff;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.hamburger:hover {
  background: rgba(255,255,255,0.08);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: var(--navbar-h);
  left: 0;
  right: 0;
  bottom: var(--bottom-nav-h);
  background: rgba(0, 8, 30, 0.98);
  backdrop-filter: blur(20px);
  z-index: 1039;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform var(--transition-base);
  padding: var(--space-lg);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-nav-section {
  margin-bottom: var(--space-lg);
}

.mobile-nav-title {
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  padding: 0 var(--space-sm);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px var(--space-sm);
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.8);
  font-size: var(--font-size-base);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #fff;
  background: rgba(0,80,158,0.2);
}

.mobile-nav-link i {
  font-size: 1.1rem;
  color: var(--primary-light);
  width: 22px;
  text-align: center;
}

@media (min-width: 992px) {
  .navbar-eqe {
    padding: 0 var(--space-xl);
  }

  .navbar-nav-desktop {
    display: flex;
  }

  .social-icons {
    display: flex;
  }

  .hamburger {
    display: none;
  }

  .mobile-menu {
    display: none;
  }
}

/* ============================================================
   Bottom Navigation (Mobile)
   ============================================================ */
.bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1035;
  height: var(--bottom-nav-h);
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.4);
  align-items: stretch;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 4px;
  color: rgba(255,255,255,0.45);
  font-size: 10px;
  font-weight: 500;
  transition: all var(--transition-fast);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.bottom-nav-item i {
  font-size: 1.4rem;
  transition: all var(--transition-fast);
}

.bottom-nav-item.active {
  color: var(--primary);
}

.bottom-nav-item.active i {
  transform: translateY(-1px);
}

.bottom-nav-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  background: var(--primary);
  border-radius: 0 0 4px 4px;
}

.bottom-nav-item:hover {
  color: rgba(255,255,255,0.7);
}

@media (min-width: 768px) {
  .bottom-nav {
    display: none;
  }
}

/* ============================================================
   Page Wrapper
   ============================================================ */
.page-wrapper {
  padding-top: var(--navbar-h);
  padding-bottom: var(--bottom-nav-h);
  min-height: 100vh;
}

@media (min-width: 768px) {
  .page-wrapper {
    padding-bottom: 0;
  }
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: var(--bg-page);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero:hover .hero-bg {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 12, 36, 0.92) 0%,
    rgba(0, 40, 100, 0.75) 50%,
    rgba(0, 12, 36, 0.88) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: var(--space-xl) var(--space-md);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255,215,0,0.3);
  color: var(--accent);
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--space-lg);
  animation: fadeIn 0.6s ease;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  animation: slideUp 0.7s ease 0.1s both;
}

.hero-title .highlight {
  color: var(--accent);
  display: block;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin: 0 auto var(--space-xl);
  animation: slideUp 0.7s ease 0.2s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  animation: slideUp 0.7s ease 0.3s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.1);
  animation: fadeIn 0.8s ease 0.5s both;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.hero-stat-label {
  font-size: var(--font-size-xs);
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ============================================================
   Sections
   ============================================================ */
.section-pad {
  padding: 60px 0;
}

@media (min-width: 768px) {
  .section-pad {
    padding: 80px 0;
  }
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: var(--space-sm);
  color: #fff;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: var(--font-size-lg);
  max-width: 560px;
}

.section-header {
  margin-bottom: var(--space-2xl);
}

.section-header.centered {
  text-align: center;
}

.section-header.centered .section-subtitle {
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--space-sm);
}

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--primary);
}

/* ============================================================
   Cards
   ============================================================ */
.card-eqe {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  overflow: hidden;
}

.card-eqe:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 80, 158, 0.3);
}

.card-eqe-body {
  padding: var(--space-lg);
}

.card-eqe-header {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-color);
  background: rgba(0,0,0,0.1);
}

.card-eqe-footer {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--border-color);
  background: rgba(0,0,0,0.1);
}

.card-eqe-light {
  background: var(--bg-card-light);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.card-icon.primary {
  background: rgba(0, 80, 158, 0.2);
  color: var(--primary-light);
}

.card-icon.accent {
  background: rgba(255, 215, 0, 0.12);
  color: var(--accent);
}

.card-icon.orange {
  background: rgba(255, 107, 0, 0.15);
  color: var(--orange);
}

.card-icon.success {
  background: rgba(40, 167, 69, 0.15);
  color: #28a745;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn-eqe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-base);
  font-weight: 600;
  line-height: 1;
  transition: all var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary-eqe {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary-eqe:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,80,158,0.4);
}

.btn-primary-eqe:active {
  transform: translateY(0);
}

.btn-premium {
  background: linear-gradient(135deg, var(--orange), #ff8c00);
  color: #fff;
  border-color: transparent;
}

.btn-premium:hover {
  background: linear-gradient(135deg, var(--orange-dark), var(--orange));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,0,0.4);
}

.btn-outline-eqe {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}

.btn-outline-eqe:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}

.btn-outline-primary-eqe {
  background: transparent;
  color: var(--primary-light);
  border-color: var(--primary);
}

.btn-outline-primary-eqe:hover {
  background: var(--primary);
  color: #fff;
}

.btn-accent {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,215,0,0.3);
}

.btn-lg-eqe {
  padding: 14px 32px;
  font-size: var(--font-size-lg);
}

.btn-sm-eqe {
  padding: 6px 16px;
  font-size: var(--font-size-sm);
}

.btn-eqe:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ============================================================
   Forms
   ============================================================ */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  margin-bottom: 6px;
}

.form-control-eqe {
  width: 100%;
  padding: 11px 16px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: var(--font-size-base);
  font-family: inherit;
  transition: all var(--transition-fast);
  appearance: none;
}

.form-control-eqe::placeholder {
  color: var(--text-muted);
}

.form-control-eqe:focus {
  outline: none;
  border-color: var(--border-focus);
  background: rgba(0, 80, 158, 0.08);
  box-shadow: 0 0 0 3px rgba(0,80,158,0.2);
  color: #fff;
}

.form-control-eqe:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-control-eqe.is-invalid {
  border-color: #dc3545;
}

.form-control-eqe.is-valid {
  border-color: #28a745;
}

.form-error {
  font-size: var(--font-size-xs);
  color: #ff6b6b;
  margin-top: 4px;
}

.form-hint {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-top: 4px;
}

.input-group-eqe {
  position: relative;
}

.input-group-eqe .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
}

.input-group-eqe .form-control-eqe {
  padding-left: 42px;
}

.input-group-eqe .input-icon-right {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.input-group-eqe .input-icon-right:hover {
  color: rgba(255,255,255,0.7);
}

.input-group-eqe .form-control-eqe.has-icon-right {
  padding-right: 42px;
}

/* ============================================================
   Breadcrumb — Bootstrap override (dark theme)
   ============================================================ */
.breadcrumb {
  --bs-breadcrumb-divider-color: rgba(255, 255, 255, .28);
  --bs-breadcrumb-item-active-color: rgba(255, 255, 255, .45);
  --bs-breadcrumb-bg: transparent;
  margin-bottom: 0;
}
.breadcrumb-item a {
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
  transition: color .15s;
}
.breadcrumb-item a:hover { color: #fff; }
.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, .28);
}
.breadcrumb-item.active {
  color: rgba(255, 255, 255, .45);
}

/* ============================================================
   Breadcrumb EQE custom variant
   ============================================================ */
.breadcrumb-eqe {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  padding: var(--space-md) 0;
}

.breadcrumb-item-eqe {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.breadcrumb-item-eqe a {
  color: var(--primary-light);
  transition: color var(--transition-fast);
}

.breadcrumb-item-eqe a:hover {
  color: var(--primary);
}

.breadcrumb-item-eqe.active {
  color: rgba(255,255,255,0.7);
}

.breadcrumb-sep {
  color: var(--text-muted);
  font-size: 10px;
}

/* ============================================================
   Progress Bar
   ============================================================ */
.progress-eqe {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-eqe {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
  position: relative;
  overflow: hidden;
}

.progress-bar-eqe::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  to { left: 200%; }
}

.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xs);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

/* ============================================================
   Quiz Styles
   ============================================================ */
.quiz-container {
  max-width: 860px;
  margin: 0 auto;
}

.quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.quiz-question-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.quiz-question-number {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-sm);
}

.quiz-question-text {
  font-size: var(--font-size-lg);
  font-weight: 500;
  color: #fff;
  line-height: 1.5;
  margin-bottom: var(--space-xl);
}

.quiz-question-image {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  background: rgba(0,0,0,0.2);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
  width: 100%;
  color: rgba(255,255,255,0.85);
  font-size: var(--font-size-base);
}

.quiz-option:hover:not(:disabled) {
  background: rgba(0,80,158,0.15);
  border-color: rgba(0,80,158,0.4);
  color: #fff;
}

.quiz-option:disabled {
  cursor: default;
}

.quiz-option-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  font-weight: 700;
  font-size: var(--font-size-sm);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.quiz-option-text {
  flex: 1;
  padding-top: 4px;
  line-height: 1.4;
}

/* Correct */
.quiz-option.correct {
  background: rgba(40,167,69,0.15);
  border-color: #28a745;
  color: #fff;
}

.quiz-option.correct .quiz-option-letter {
  background: #28a745;
  color: #fff;
}

/* Incorrect */
.quiz-option.incorrect {
  background: rgba(220,53,69,0.15);
  border-color: #dc3545;
  color: rgba(255,255,255,0.7);
}

.quiz-option.incorrect .quiz-option-letter {
  background: #dc3545;
  color: #fff;
}

/* Selected */
.quiz-option.selected {
  background: rgba(0,80,158,0.2);
  border-color: var(--primary);
}

.quiz-option.selected .quiz-option-letter {
  background: var(--primary);
  color: #fff;
}

/* Quiz feedback */
.quiz-feedback {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-top: var(--space-md);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

.quiz-feedback.success {
  background: rgba(40,167,69,0.15);
  border: 1px solid rgba(40,167,69,0.3);
  color: #6fcf97;
}

.quiz-feedback.error {
  background: rgba(220,53,69,0.12);
  border: 1px solid rgba(220,53,69,0.25);
  color: #ff8080;
}

.quiz-feedback i {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Quiz nav */
.quiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Score badge */
.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 700;
}

.score-badge.high {
  background: rgba(40,167,69,0.2);
  color: #6fcf97;
  border: 1px solid rgba(40,167,69,0.35);
}

.score-badge.medium {
  background: rgba(255,193,7,0.15);
  color: #ffc107;
  border: 1px solid rgba(255,193,7,0.3);
}

.score-badge.low {
  background: rgba(220,53,69,0.15);
  color: #ff8080;
  border: 1px solid rgba(220,53,69,0.25);
}

/* Streak badge */
.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(255,107,0,0.15);
  color: var(--orange);
  border: 1px solid rgba(255,107,0,0.25);
  font-size: var(--font-size-sm);
  font-weight: 700;
}

/* True/False quiz variant */
.quiz-tf-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.quiz-tf-option {
  padding: var(--space-xl) var(--space-md);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-color);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  text-align: center;
  font-size: var(--font-size-2xl);
  font-weight: 800;
  transition: all var(--transition-base);
  color: rgba(255,255,255,0.7);
}

.quiz-tf-option:hover:not(:disabled) {
  transform: translateY(-3px);
}

.quiz-tf-option.true-opt:hover:not(:disabled) {
  background: rgba(40,167,69,0.15);
  border-color: #28a745;
  color: #6fcf97;
}

.quiz-tf-option.false-opt:hover:not(:disabled) {
  background: rgba(220,53,69,0.12);
  border-color: #dc3545;
  color: #ff8080;
}

.quiz-tf-option.correct {
  background: rgba(40,167,69,0.2);
  border-color: #28a745;
  color: #6fcf97;
}

.quiz-tf-option.incorrect {
  background: rgba(220,53,69,0.12);
  border-color: #dc3545;
  color: #ff8080;
}

/* ============================================================
   Flash Cards (3D Flip)
   ============================================================ */
.flashcard-scene {
  perspective: 1200px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.flashcard {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  height: 280px;
}

@media (min-width: 576px) {
  .flashcard {
    height: 320px;
  }
}

.flashcard.flipped {
  transform: rotateY(180deg);
}

.flashcard-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.flashcard-front {
  background: var(--bg-card);
}

.flashcard-back {
  background: linear-gradient(135deg, var(--bg-card-light), var(--bg-card));
  transform: rotateY(180deg);
  border-color: rgba(0,80,158,0.3);
}

.flashcard-label {
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

.flashcard-text {
  font-size: var(--font-size-lg);
  font-weight: 500;
  color: #fff;
  line-height: 1.5;
}

.flashcard-text.answer {
  color: var(--accent);
}

.flashcard-hint {
  margin-top: var(--space-md);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.flashcard-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-lg);
  gap: var(--space-md);
}

.flashcard-counter {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  text-align: center;
}

/* ============================================================
   Swipe Deck (V/F cards)
   ============================================================ */
.swipe-deck {
  position: relative;
  height: 320px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

@media (min-width: 576px) {
  .swipe-deck {
    height: 380px;
  }
}

.swipe-card {
  position: absolute;
  inset: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: grab;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  box-shadow: var(--shadow-md);
}

.swipe-card:active {
  cursor: grabbing;
}

.swipe-card.dragging {
  transition: none;
  box-shadow: var(--shadow-lg);
}

.swipe-card:nth-child(2) {
  transform: scale(0.95) translateY(12px);
  z-index: 1;
  opacity: 0.7;
}

.swipe-card:nth-child(3) {
  transform: scale(0.9) translateY(24px);
  z-index: 0;
  opacity: 0.4;
}

.swipe-card:first-child {
  z-index: 2;
}

.swipe-card.swiping-right {
  transform: rotate(10deg) translateX(120%) !important;
  opacity: 0;
}

.swipe-card.swiping-left {
  transform: rotate(-10deg) translateX(-120%) !important;
  opacity: 0;
}

.swipe-indicator {
  position: absolute;
  top: var(--space-lg);
  padding: 6px 20px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-lg);
  font-weight: 900;
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}

.swipe-indicator.verdade {
  left: var(--space-lg);
  background: rgba(40,167,69,0.25);
  color: #6fcf97;
  border: 2px solid #28a745;
}

.swipe-indicator.falso {
  right: var(--space-lg);
  background: rgba(220,53,69,0.2);
  color: #ff8080;
  border: 2px solid #dc3545;
}

.swipe-text {
  font-size: clamp(1rem, 3vw, 1.25rem);
  font-weight: 500;
  color: #fff;
  line-height: 1.5;
  max-width: 460px;
}

.swipe-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  margin-top: var(--space-lg);
}

.swipe-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all var(--transition-base);
  border: 2px solid;
}

.swipe-btn.btn-falso {
  border-color: #dc3545;
  color: #dc3545;
  background: rgba(220,53,69,0.1);
}

.swipe-btn.btn-falso:hover {
  background: #dc3545;
  color: #fff;
  transform: scale(1.1);
}

.swipe-btn.btn-verdade {
  border-color: #28a745;
  color: #28a745;
  background: rgba(40,167,69,0.1);
}

.swipe-btn.btn-verdade:hover {
  background: #28a745;
  color: #fff;
  transform: scale(1.1);
}

/* ============================================================
   Audio Player (Sticky)
   ============================================================ */
.audio-player-sticky {
  position: fixed;
  bottom: var(--bottom-nav-h);
  left: 0;
  right: 0;
  z-index: 1030;
  background: rgba(13, 31, 56, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  padding: var(--space-sm) var(--space-md);
  transform: translateY(100%);
  transition: transform var(--transition-base);
}

.audio-player-sticky.visible {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .audio-player-sticky {
    bottom: 0;
    padding: var(--space-sm) var(--space-xl);
  }
}

.audio-player-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.audio-player-info {
  flex: 1;
  min-width: 0;
}

.audio-player-title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-player-subtitle {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.audio-player-controls {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.audio-control-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.audio-control-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.audio-play-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.audio-play-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.audio-progress {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  cursor: pointer;
  position: relative;
}

.audio-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-full);
  pointer-events: none;
  transition: width 0.1s linear;
}

.audio-time {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  white-space: nowrap;
}

/* ============================================================
   Footer
   ============================================================ */
.footer-eqe {
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid var(--border-color);
  padding: 48px 0 24px;
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--border-color);
}

@media (min-width: 576px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer-top {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand img {
  height: 36px;
  margin-bottom: var(--space-md);
}

.footer-brand p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
}

.footer-col-title {
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-md);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-link:hover {
  color: rgba(255,255,255,0.8);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-color);
}

.footer-social-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}

.footer-bottom {
  padding-top: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-copyright {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: var(--space-lg);
}

.footer-legal a {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: rgba(255,255,255,0.7);
}

/* ============================================================
   Toast / Alert Notifications
   ============================================================ */
.toast-container {
  position: fixed;
  top: calc(var(--navbar-h) + 16px);
  right: 16px;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  pointer-events: none;
}

.toast-eqe {
  min-width: 280px;
  max-width: 380px;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  background: #1a2a40;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  pointer-events: all;
  animation: slideInRight 0.3s ease;
  position: relative;
  overflow: hidden;
}

.toast-eqe::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 2px 0 0 2px;
}

.toast-eqe.success::before { background: #28a745; }
.toast-eqe.error::before   { background: #dc3545; }
.toast-eqe.info::before    { background: var(--primary); }
.toast-eqe.warning::before { background: #ffc107; }

.toast-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.toast-eqe.success .toast-icon { color: #6fcf97; }
.toast-eqe.error .toast-icon   { color: #ff8080; }
.toast-eqe.info .toast-icon    { color: var(--primary-light); }
.toast-eqe.warning .toast-icon { color: #ffc107; }

.toast-body {
  flex: 1;
  min-width: 0;
}

.toast-message {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.9);
  line-height: 1.4;
}

.toast-close {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 1rem;
  transition: color var(--transition-fast);
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.toast-close:hover {
  color: rgba(255,255,255,0.8);
}

.toast-eqe.hiding {
  animation: slideOutRight 0.3s ease forwards;
}

@keyframes slideInRight {
  from {
    transform: translateX(110%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
    max-height: 100px;
    margin-bottom: 0;
  }
  to {
    transform: translateX(110%);
    opacity: 0;
    max-height: 0;
    margin-bottom: -8px;
    padding: 0;
  }
}

/* Alert boxes */
.alert-eqe {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-md);
}

.alert-eqe.success {
  background: rgba(40,167,69,0.12);
  border: 1px solid rgba(40,167,69,0.25);
  color: #6fcf97;
}

.alert-eqe.error {
  background: rgba(220,53,69,0.12);
  border: 1px solid rgba(220,53,69,0.2);
  color: #ff8080;
}

.alert-eqe.info {
  background: rgba(0,80,158,0.15);
  border: 1px solid rgba(0,80,158,0.3);
  color: rgba(255,255,255,0.8);
}

.alert-eqe.warning {
  background: rgba(255,193,7,0.1);
  border: 1px solid rgba(255,193,7,0.25);
  color: #ffc107;
}

/* ============================================================
   Animations (AOS-compatible)
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* AOS default overrides */
[data-aos] {
  pointer-events: none;
}
[data-aos].aos-animate {
  pointer-events: auto;
}

/* ============================================================
   Utilities
   ============================================================ */
.text-primary-eqe  { color: var(--primary) !important; }
.text-accent       { color: var(--accent) !important; }
.text-orange       { color: var(--orange) !important; }
.text-muted-eqe    { color: var(--text-muted) !important; }
.text-secondary-eqe{ color: var(--text-secondary) !important; }

.bg-page           { background-color: var(--bg-page) !important; }
.bg-card           { background-color: var(--bg-card) !important; }
.bg-card-light     { background-color: var(--bg-card-light) !important; }

.border-eqe        { border: 1px solid var(--border-color) !important; }

.rounded-eqe-sm    { border-radius: var(--radius-sm) !important; }
.rounded-eqe-md    { border-radius: var(--radius-md) !important; }
.rounded-eqe-lg    { border-radius: var(--radius-lg) !important; }
.rounded-eqe-full  { border-radius: var(--radius-full) !important; }

.shadow-eqe-sm     { box-shadow: var(--shadow-sm) !important; }
.shadow-eqe-md     { box-shadow: var(--shadow-md) !important; }
.shadow-eqe-lg     { box-shadow: var(--shadow-lg) !important; }

.d-none-mobile {
  display: none;
}

@media (min-width: 768px) {
  .d-none-mobile {
    display: revert;
  }
}

.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.divider {
  height: 1px;
  background: var(--border-color);
  margin: var(--space-lg) 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  border: 1px solid var(--border-color);
}

.tag.primary {
  background: rgba(0,80,158,0.2);
  color: var(--primary-light);
  border-color: rgba(0,80,158,0.3);
}

.tag.success {
  background: rgba(40,167,69,0.15);
  color: #6fcf97;
  border-color: rgba(40,167,69,0.25);
}

.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
}

.empty-state-icon {
  font-size: 3.5rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  opacity: 0.5;
}

.empty-state-title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-sm);
}

.empty-state-text {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

/* Stats table */
.stats-table {
  width: 100%;
  border-collapse: collapse;
}

.stats-table th {
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 10px var(--space-md);
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.stats-table td {
  padding: 12px var(--space-md);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.8);
}

.stats-table tr:last-child td {
  border-bottom: none;
}

.stats-table tr:hover td {
  background: rgba(255,255,255,0.03);
}

/* ============================================================
   Responsive Breakpoints
   ============================================================ */
/* 576px+ (sm) */
@media (min-width: 576px) {
  .quiz-tf-options {
    gap: var(--space-xl);
  }
}

/* 768px+ (md) */
@media (min-width: 768px) {
  .quiz-question-card {
    padding: var(--space-2xl);
  }

  .hero-actions {
    flex-wrap: nowrap;
  }
}

/* 992px+ (lg) */
@media (min-width: 992px) {
  .section-pad {
    padding: 80px 0;
  }
}

/* 1200px+ (xl) */
@media (min-width: 1200px) {
  :root {
    --navbar-h: 80px;
  }
}

/* ============================================================
   Print
   ============================================================ */
@media print {
  .navbar-eqe,
  .bottom-nav,
  .audio-player-sticky,
  #scrollToTop,
  #preloader,
  .toast-container {
    display: none !important;
  }

  .page-wrapper {
    padding-top: 0;
    padding-bottom: 0;
  }

  body {
    background: #fff;
    color: #000;
  }
}

/* ============================================================
   ██╗   ██╗██╗███████╗██╗   ██╗ █████╗ ██╗
   ██║   ██║██║██╔════╝██║   ██║██╔══██╗██║
   ██║   ██║██║███████╗██║   ██║███████║██║
   ╚██╗ ██╔╝██║╚════██║██║   ██║██╔══██║██║
    ╚████╔╝ ██║███████║╚██████╔╝██║  ██║███████╗
     ╚═══╝  ╚═╝╚══════╝ ╚═════╝ ╚═╝  ╚═╝╚══════╝
   Visual Enhancement — Home Page Components
   ============================================================ */

/* ──────────────────────────────────────────────────────────
   HERO SECTION  (class alias + animated enhancements)
   ────────────────────────────────────────────────────────── */

/* The HTML uses .hero; CSS already has .hero. Override and
   add the animated ambient orbs with pseudo-elements. */

/* Animated orbs behind the hero content */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;        /* above bg image + overlay, behind content */
}

.hero::before {
  width: 700px;
  height: 700px;
  top: -200px;
  right: -150px;
  background: radial-gradient(circle, rgba(0, 80, 200, 0.35) 0%, transparent 65%);
  animation: heroOrbA 9s ease-in-out infinite alternate;
}

.hero::after {
  width: 550px;
  height: 550px;
  bottom: -120px;
  left: -100px;
  background: radial-gradient(circle, rgba(0, 50, 140, 0.30) 0%, transparent 65%);
  animation: heroOrbB 11s ease-in-out infinite alternate;
}

@keyframes heroOrbA {
  from { transform: translate(0, 0) scale(1);    opacity: 0.5; }
  to   { transform: translate(-50px, 40px) scale(1.2); opacity: 0.85; }
}

@keyframes heroOrbB {
  from { transform: translate(0, 0) scale(1);    opacity: 0.35; }
  to   { transform: translate(40px, -30px) scale(1.15); opacity: 0.65; }
}

/* Subtle animated grid overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    155deg,
    rgba(0, 8, 28, 0.88) 0%,
    rgba(0, 35, 95, 0.65) 45%,
    rgba(0, 55, 130, 0.55) 60%,
    rgba(0, 8, 28, 0.85) 100%
  );
}

.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(80, 140, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 140, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

/* Hero title — gradient text */
.hero-title {
  background: linear-gradient(140deg, #ffffff 0%, #d4e9ff 55%, #9ac5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 28px rgba(80, 160, 255, 0.25));
}

/* Hero badge — glowing pulse */
.hero-badge {
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.2);
  animation: fadeIn 0.6s ease both, badgePulse 3.5s ease-in-out 0.8s infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 18px rgba(255, 215, 0, 0.18); }
  50%       { box-shadow: 0 0 32px rgba(255, 215, 0, 0.42), 0 0 64px rgba(255, 215, 0, 0.1); }
}

/* Hero stat items (inline mini-stats under CTA) */
.hero-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  font-weight: 500;
}

.hero-stat-item i {
  color: var(--accent);
  font-size: 1rem;
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.55));
}

/* Hero wave (bottom SVG divider) */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 3;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Hero content sits above orbs */
.hero-content {
  position: relative;
  z-index: 4;
}

/* ──────────────────────────────────────────────────────────
   BUTTONS  (full self-contained redefinitions)
   ────────────────────────────────────────────────────────── */

/* Primary CTA button */
.btn-primary-eqe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.25px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 24px rgba(0, 80, 158, 0.45);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary-eqe::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 60%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}

.btn-primary-eqe:hover::after { left: 150%; }

.btn-primary-eqe:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0, 80, 158, 0.6);
}

/* Outline / secondary button */
.btn-outline-eqe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.btn-outline-eqe:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
  transform: translateY(-2px);
}

/* Premium / orange CTA button */
.btn-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 36px;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ff6b00 0%, #ff9c00 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 28px rgba(255, 107, 0, 0.42);
  animation: premiumPulse 3s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes premiumPulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(255, 107, 0, 0.42); }
  50%       { box-shadow: 0 8px 36px rgba(255, 107, 0, 0.62), 0 0 0 6px rgba(255,107,0,0.06); }
}

.btn-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: skewX(-20deg);
  animation: premiumShimmer 2.8s ease-in-out infinite;
}

@keyframes premiumShimmer {
  0%   { left: -80%; }
  55%  { left: 140%; }
  100% { left: 140%; }
}

.btn-premium:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 40px rgba(255, 107, 0, 0.58);
}

/* ──────────────────────────────────────────────────────────
   SECTION HEADERS & BADGES
   ────────────────────────────────────────────────────────── */

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0, 80, 158, 0.22), rgba(0, 80, 158, 0.08));
  border: 1px solid rgba(0, 80, 158, 0.5);
  color: #6ab4ff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 14px;
  box-shadow: 0 0 16px rgba(0, 80, 158, 0.18);
}

/* Gradient section titles */
.section-title {
  background: linear-gradient(135deg, #ffffff 0%, #b8d8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  color: rgba(255, 255, 255, 0.58) !important;
  line-height: 1.75;
}

/* ──────────────────────────────────────────────────────────
   SERVICE CARDS  (index.html grid)
   ────────────────────────────────────────────────────────── */

.service-card {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.2,.8,.3,1),
              box-shadow 0.35s ease,
              border-color 0.35s ease,
              background 0.35s ease;
}

/* Glowing ambient background orb */
.service-card::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 80, 158, 0.22) 0%, transparent 70%);
  transition: transform 0.4s ease, opacity 0.4s ease;
  pointer-events: none;
  opacity: 0;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 80, 158, 0.5), 0 0 40px rgba(0, 80, 158, 0.12);
  background: #0e2040;
}

.service-card:hover::after {
  transform: scale(2.2);
  opacity: 1;
}

/* Icon containers — colored by card position */
.service-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover .service-card-icon {
  transform: scale(1.12) rotate(-6deg);
}

/* 1 – Quiz PSP/GNR — royal blue */
.section-services .row > *:nth-child(1) .service-card-icon {
  background: linear-gradient(135deg, rgba(0,80,200,0.45), rgba(0,80,200,0.15));
  border: 1px solid rgba(0,80,200,0.55);
  color: #5eb8ff;
  box-shadow: 0 0 24px rgba(0,80,200,0.3);
}
.section-services .row > *:nth-child(1) .service-card:hover .service-card-icon {
  box-shadow: 0 0 36px rgba(0,80,200,0.55);
}

/* 2 – Flash Cards — violet */
.section-services .row > *:nth-child(2) .service-card-icon {
  background: linear-gradient(135deg, rgba(120,60,220,0.45), rgba(120,60,220,0.15));
  border: 1px solid rgba(120,60,220,0.55);
  color: #c49bff;
  box-shadow: 0 0 24px rgba(120,60,220,0.3);
}

/* 3 – Swipe V/F — teal */
.section-services .row > *:nth-child(3) .service-card-icon {
  background: linear-gradient(135deg, rgba(0,185,155,0.45), rgba(0,185,155,0.15));
  border: 1px solid rgba(0,185,155,0.55);
  color: #3ee8c4;
  box-shadow: 0 0 24px rgba(0,185,155,0.3);
}

/* 4 – E-Learning — amber */
.section-services .row > *:nth-child(4) .service-card-icon {
  background: linear-gradient(135deg, rgba(255,155,0,0.45), rgba(255,155,0,0.15));
  border: 1px solid rgba(255,155,0,0.55);
  color: #ffca5c;
  box-shadow: 0 0 24px rgba(255,155,0,0.3);
}

/* 5 – Áudio — rose */
.section-services .row > *:nth-child(5) .service-card-icon {
  background: linear-gradient(135deg, rgba(235,60,130,0.45), rgba(235,60,130,0.15));
  border: 1px solid rgba(235,60,130,0.55);
  color: #ff7eb6;
  box-shadow: 0 0 24px rgba(235,60,130,0.3);
}

/* 6 – Testes Físicos — orange */
.section-services .row > *:nth-child(6) .service-card-icon {
  background: linear-gradient(135deg, rgba(255,107,0,0.45), rgba(255,107,0,0.15));
  border: 1px solid rgba(255,107,0,0.55);
  color: #ff9244;
  box-shadow: 0 0 24px rgba(255,107,0,0.3);
}

/* 7 – Psicotécnicos — cyan */
.section-services .row > *:nth-child(7) .service-card-icon {
  background: linear-gradient(135deg, rgba(0,185,235,0.45), rgba(0,185,235,0.15));
  border: 1px solid rgba(0,185,235,0.55);
  color: #4dd8f8;
  box-shadow: 0 0 24px rgba(0,185,235,0.3);
}

/* 8 – Estatísticas — lime-green */
.section-services .row > *:nth-child(8) .service-card-icon {
  background: linear-gradient(135deg, rgba(90,210,60,0.45), rgba(90,210,60,0.15));
  border: 1px solid rgba(90,210,60,0.55);
  color: #78e844;
  box-shadow: 0 0 24px rgba(90,210,60,0.3);
}

/* Card text elements */
.service-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  transition: color 0.25s ease;
}

.service-card:hover .service-card-title {
  color: #daeeff;
}

.service-card-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(140, 195, 255, 0.65);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: auto;
  transition: gap 0.2s ease, color 0.25s ease;
}

.service-card:hover .service-card-link {
  gap: 10px;
  color: var(--accent);
}

/* ──────────────────────────────────────────────────────────
   COUNTER SECTION
   ────────────────────────────────────────────────────────── */

.section-counters {
  position: relative;
  overflow: hidden;
}

.section-counters-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 55, 130, 0.14) 0%, rgba(0, 15, 50, 0.22) 100%);
  z-index: 0;
}

.section-counters-bg::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(0, 80, 158, 0.22) 0%, transparent 65%);
  pointer-events: none;
}

.counter-card {
  position: relative;
  z-index: 1;
  padding: 2.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.35s ease;
  overflow: hidden;
}

/* Top-edge glow line on hover */
.counter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 120, 255, 0.7), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.counter-card:hover {
  background: rgba(0, 80, 158, 0.1);
  border-color: rgba(0, 80, 158, 0.4);
  transform: translateY(-7px);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.38), 0 0 30px rgba(0, 80, 158, 0.18);
}

.counter-card:hover::before {
  opacity: 1;
}

.counter-icon {
  font-size: 2.1rem;
  display: block;
  margin-bottom: 0.8rem;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.counter-card:hover .counter-icon {
  transform: scale(1.18);
}

/* Colored icons */
.section-counters .row > .col-6:nth-child(1) .counter-icon {
  color: #5eb8ff;
  filter: drop-shadow(0 0 8px rgba(94, 184, 255, 0.55));
}
.section-counters .row > .col-6:nth-child(2) .counter-icon {
  color: #c49bff;
  filter: drop-shadow(0 0 8px rgba(196, 155, 255, 0.55));
}
.section-counters .row > .col-6:nth-child(3) .counter-icon {
  color: var(--accent);
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.55));
}
.section-counters .row > .col-6:nth-child(4) .counter-icon {
  color: #3ee8c4;
  filter: drop-shadow(0 0 8px rgba(62, 232, 196, 0.55));
}

.counter-number {
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff 0%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
  display: block;
}

.counter-label {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.42);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.8px;
}

/* ──────────────────────────────────────────────────────────
   CTA / PREMIUM SECTION
   ────────────────────────────────────────────────────────── */

.cta-card {
  position: relative;
  overflow: hidden;
  padding: 3rem 2.5rem;
  background: linear-gradient(140deg, #09152a 0%, #0f2242 100%);
  border: 1px solid rgba(255, 107, 0, 0.25) !important;
}

/* Orange glow orb top-right */
.cta-card::before {
  content: '';
  position: absolute;
  top: -140px;
  right: -100px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.22) 0%, transparent 65%);
  pointer-events: none;
  animation: ctaOrbFloat 7s ease-in-out infinite alternate;
}

/* Blue glow orb bottom-left */
.cta-card::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 80, 158, 0.28) 0%, transparent 65%);
  pointer-events: none;
}

@keyframes ctaOrbFloat {
  from { transform: translate(0, 0) scale(1);    opacity: 0.7; }
  to   { transform: translate(25px, -20px) scale(1.12); opacity: 1; }
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 16px;
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.38);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  margin-bottom: 1rem;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.15);
}

.cta-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #ffe5be 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.cta-text {
  color: rgba(255, 255, 255, 0.62);
  font-size: 1rem;
  line-height: 1.78;
  margin-bottom: 1.5rem;
}

.cta-text strong {
  color: var(--accent);
  font-weight: 800;
}

.cta-features {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.cta-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.cta-features .bi-check-circle-fill {
  color: #4ade80;
  font-size: 1rem;
  filter: drop-shadow(0 0 6px rgba(74, 222, 128, 0.52));
  flex-shrink: 0;
}

.cta-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 1.5rem;
}

.cta-price-amount {
  font-size: clamp(3rem, 7vw, 4.75rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent) 0%, #ffb83e 50%, #fff5bb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  filter: drop-shadow(0 4px 16px rgba(255, 215, 0, 0.32));
}

.cta-price-period {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.42);
  font-weight: 500;
}

/* ──────────────────────────────────────────────────────────
   TESTIMONIAL CARDS
   ────────────────────────────────────────────────────────── */

.testimonial-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Large decorative quotation mark */
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -16px;
  right: 18px;
  font-size: 9rem;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1;
  color: rgba(0, 80, 158, 0.14);
  pointer-events: none;
  user-select: none;
}

.testimonial-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.42), 0 0 32px rgba(0, 80, 158, 0.18);
  border-color: rgba(0, 80, 158, 0.45);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 1.2rem;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.42));
}

.testimonial-text {
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.78;
  font-style: italic;
  margin-bottom: 1.5rem;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 1.1rem;
  margin-top: auto;
}

.testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 18px rgba(0, 80, 158, 0.55);
}

.testimonial-info strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
}

.testimonial-info span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.42);
}

/* ──────────────────────────────────────────────────────────
   AUTH PAGES  (Login / Register / Reset)
   ────────────────────────────────────────────────────────── */

/* Full-viewport auth section */
.auth-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background-color: var(--bg-page);
}

/* Background image */
.auth-bg {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  z-index: 0;
}

/* Dark gradient overlay */
.auth-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0, 6, 22, 0.9) 0%,
    rgba(0, 25, 75, 0.78) 50%,
    rgba(0, 6, 22, 0.88) 100%
  );
}

.auth-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(80, 140, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 140, 255, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

/* Container sits on top of fixed bg */
.auth-container {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* The card itself — glassmorphism */
.auth-card {
  padding: 2.5rem 2rem;
  background: rgba(10, 20, 45, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-radius: var(--radius-xl) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 80, 158, 0.12),
              inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  position: relative;
  overflow: hidden;
}

/* Ambient glow orb inside the card */
.auth-card::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(0, 80, 158, 0.25) 0%, transparent 65%);
  pointer-events: none;
  border-radius: 50%;
}

.auth-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(0, 80, 158, 0.5));
}

.auth-title {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #b8d8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

.auth-subtitle {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0;
}

/* Label for form fields */
.form-label-eqe {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

/* Eye button for password visibility */
.input-eye-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
  padding: 4px;
  line-height: 1;
  z-index: 2;
}

.input-eye-btn:hover { color: rgba(255, 255, 255, 0.75); }

/* Field error messages */
.field-error {
  font-size: 0.75rem;
  color: #ff7a7a;
  margin-top: 5px;
  min-height: 1em;
}

/* "ou" divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.auth-link-small {
  font-size: 0.8rem;
  color: rgba(150, 195, 255, 0.75);
  transition: color 0.2s ease;
}

.auth-link-small:hover { color: rgba(150, 195, 255, 1); }

.auth-link-primary {
  font-size: inherit;
  color: var(--primary-light);
  font-weight: 600;
  transition: color 0.2s ease;
}

.auth-link-primary:hover { color: #fff; }

.auth-switch-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0;
}

/* ──────────────────────────────────────────────────────────
   PAGE HERO (inner pages banner)
   ────────────────────────────────────────────────────────── */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 0 2rem;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 65%);
  pointer-events: none;
  border-radius: 50%;
}

.page-hero h1 {
  font-weight: 800;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.3));
}

/* ──────────────────────────────────────────────────────────
   CARD-EQE global improvements
   ────────────────────────────────────────────────────────── */

/* Ensure cards always look polished */
.card-eqe {
  background: linear-gradient(145deg, #0d1f38 0%, #0a1828 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.card-eqe:hover {
  border-color: rgba(0, 80, 158, 0.38);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
}

/* ──────────────────────────────────────────────────────────
   INPUT GROUP — eye button positioning fix
   ────────────────────────────────────────────────────────── */

.input-group-eqe {
  position: relative;
}

.input-group-eqe .form-control-eqe {
  padding-left: 42px;
}

/* Input with eye button — make room */
.input-group-eqe:has(.input-eye-btn) .form-control-eqe {
  padding-right: 44px;
}

/* ──────────────────────────────────────────────────────────
   GENERAL POLISH  (misc small fixes)
   ────────────────────────────────────────────────────────── */

/* Better scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #000c24; }
::-webkit-scrollbar-thumb { background: rgba(0, 80, 158, 0.5); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 80, 158, 0.75); }

/* Smooth selection highlight */
::selection {
  background: rgba(0, 80, 158, 0.45);
  color: #fff;
}

/* ──────────────────────────────────────────────────────────
   PREMIUM PAGE — hero, benefits, accordion FAQ
   ────────────────────────────────────────────────────────── */

/* Hero */
.premium-hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
  background: linear-gradient(135deg, #000c24 0%, #001a4d 100%);
}
.premium-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(0,80,158,.35) 0%, transparent 70%);
  pointer-events: none;
}
.premium-hero-content { position: relative; z-index: 1; }

.premium-badge-wrap { margin-bottom: 20px; }
.premium-star-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 18px;
  background: linear-gradient(135deg, #FFD700, #ff9800);
  color: #000; font-size: 1.8rem;
  box-shadow: 0 8px 32px rgba(255,215,0,.35);
}

.premium-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
}
.premium-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,.65);
  max-width: 500px;
  margin: 0 auto 32px;
}

.premium-price-block {
  display: inline-block;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 24px 40px;
  margin-bottom: 28px;
}
.premium-price-amount {
  font-size: 3.5rem; font-weight: 900;
  color: #FFD700;
  line-height: 1;
}
.premium-price-label {
  font-size: .88rem; color: rgba(255,255,255,.6);
  margin-top: 4px;
}
.premium-price-compare {
  font-size: .78rem; color: rgba(255,255,255,.4);
  margin-top: 6px;
}

.premium-already-msg {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 12px;
  background: rgba(25,135,84,.15);
  border: 1px solid rgba(25,135,84,.35);
  color: #4ade80; font-weight: 600;
  margin-bottom: 16px;
}

.btn-premium-lg {
  font-size: 1.1rem !important;
  padding: 16px 40px !important;
}

.premium-cta-note {
  font-size: .8rem; color: rgba(255,255,255,.45);
  margin-top: 12px;
}

/* Benefits section */
.section-benefits { background: #000c24; }

.benefit-card {
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.benefit-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.benefit-icon--blue   { background: rgba(0,80,158,.2);    color: #4fc3f7; }
.benefit-icon--indigo { background: rgba(99,102,241,.2);  color: #a5b4fc; }
.benefit-icon--cyan   { background: rgba(6,182,212,.2);   color: #67e8f9; }
.benefit-icon--purple { background: rgba(168,85,247,.2);  color: #d8b4fe; }
.benefit-icon--green  { background: rgba(25,135,84,.2);   color: #4ade80; }
.benefit-icon--yellow { background: rgba(234,179,8,.2);   color: #fde047; }
.benefit-icon--orange { background: rgba(249,115,22,.2);  color: #fb923c; }
.benefit-icon--teal   { background: rgba(20,184,166,.2);  color: #5eead4; }
.benefit-icon--red    { background: rgba(220,53,69,.2);   color: #f87171; }
.benefit-icon--gold   { background: rgba(255,215,0,.15);  color: #FFD700; }

.benefit-body { flex: 1; }
.benefit-title {
  font-size: 1rem; font-weight: 700;
  color: #e6edf3; margin-bottom: 8px;
}
.benefit-text {
  font-size: .88rem; color: #8b949e;
  line-height: 1.65; margin: 0;
}

/* FAQ Accordion */
.section-faq { background: linear-gradient(180deg, #000c24 0%, #010e22 100%); }

.accordion-eqe { display: flex; flex-direction: column; gap: 10px; }

.accordion-item-eqe {
  background: #0d1f38;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s;
}
.accordion-item-eqe:has(.accordion-btn-eqe:not(.collapsed)) {
  border-color: rgba(0,80,158,.4);
}

.accordion-header-eqe { margin: 0; }

.accordion-btn-eqe {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 18px 20px;
  background: transparent; border: none;
  color: #e6edf3; font-weight: 600; font-size: .95rem;
  text-align: left; cursor: pointer;
  gap: 12px;
}
.accordion-btn-eqe::after {
  content: '\F282';
  font-family: 'bootstrap-icons';
  font-size: .9rem; color: #4fc3f7;
  flex-shrink: 0;
  transition: transform .25s;
}
.accordion-btn-eqe.collapsed::after { transform: rotate(-90deg); }
.accordion-btn-eqe:not(.collapsed)::after { transform: rotate(0deg); }

.accordion-body-eqe {
  padding: 0 20px 18px;
  color: #8b949e; font-size: .92rem; line-height: 1.7;
}

/* ──────────────────────────────────────────────────────────
   PERFIL PAGE — avatar, card titles, modal, danger zone
   ────────────────────────────────────────────────────────── */

.card-eqe-title {
  font-size: 1.05rem; font-weight: 700;
  color: #e6edf3;
  display: flex; align-items: center; gap: 8px;
  margin: 0;
}

/* Profile header card */
.profile-header-card { padding: 32px 24px; }

.profile-avatar-wrap {
  position: relative;
  display: inline-block;
}
.profile-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, #00509E, #003d7a);
  color: #fff; font-size: 2rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.profile-avatar-ring {
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(0,80,158,.5);
  animation: profileRingPulse 2.5s ease-in-out infinite;
}
@keyframes profileRingPulse {
  0%, 100% { opacity: .5; transform: scale(1); }
  50%       { opacity: 1;  transform: scale(1.04); }
}

.profile-name {
  font-size: 1.3rem; font-weight: 800; color: #e6edf3;
}
.profile-email {
  font-size: .88rem; color: #8b949e;
}

/* Danger zone card */
.danger-zone-card {
  padding: 24px;
  border-color: rgba(220,53,69,.2) !important;
}
.danger-zone-card:hover { border-color: rgba(220,53,69,.4) !important; }

/* Delete account modal */
.modal-content-eqe {
  background: #0d1f38 !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  color: #e6edf3 !important;
  border-radius: 16px !important;
}
.modal-content-eqe .modal-body,
.modal-content-eqe .modal-footer,
.modal-content-eqe .modal-header { border-color: rgba(255,255,255,.08) !important; }
.modal-content-eqe p { color: #94a3b8; }
.modal-content-eqe strong { color: #e6edf3; }

.modal-title-eqe {
  font-size: 1.1rem; font-weight: 700;
  color: #e6edf3;
  display: flex; align-items: center; gap: 8px;
}

/* ── Mobile hero centering fix ──────────────────────────────── */
@media (max-width: 767.98px) {
  .hero {
    min-height: 100svh;
    align-items: flex-start;
    padding-top: 20px;
  }
  .hero-content {
    text-align: center !important;
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero .container {
    display: flex;
    justify-content: center;
  }
  .hero .row {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .hero-stats {
    gap: 12px;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    margin-top: 20px;
  }
  .hero-stat-item {
    justify-content: center;
  }
  .hero-actions {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }
}
