/*
Theme Name: WealthWavePulse
Theme URI: https://wealthwavepulse.com
Author: Pulse Team
Author URI: https://wealthwavepulse.com
Description: A premium custom theme for WealthWave Pulse Team — agent portal, training, and financial education platform.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wealthwavepulse
*/

/* ===== CSS RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #FDFDFD; color: #1e293b; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ===== DESIGN TOKENS ===== */
:root {
  --color-primary: #113a48;
  --color-primary-light: #1f6fa5;
  --color-accent: #5ba19b;
  --color-accent-dark: #164a4b;
  --color-teal: #1f6667;
  --color-bg: #FDFDFD;
  --color-bg-white: #ffffff;
  --color-bg-slate: #f8fafc;
  --color-text: #1e293b;
  --color-text-light: #64748b;
  --color-text-lighter: #94a3b8;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;
  --color-red: #ef4444;
  --color-red-light: #fef2f2;
  --color-cyan: #06b6d4;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);
}

/* ===== TYPOGRAPHY ===== */
.font-black { font-weight: 900; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.uppercase { text-transform: uppercase; }
.text-center { text-align: center; }

/* ===== LAYOUT UTILITIES ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 640px; margin: 0 auto; padding: 0 1.5rem; }
.container-md { max-width: 896px; margin: 0 auto; padding: 0 1.5rem; }
.container-lg { max-width: 1024px; margin: 0 auto; padding: 0 1.5rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.w-full { width: 100%; }
.min-h-screen { min-height: 100vh; }
.relative { position: relative; }
.absolute { position: absolute; }
.overflow-hidden { overflow: hidden; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }

/* ===== GRID ===== */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .sm\:flex-row { flex-direction: row; }
  .sm\:px-12 { padding-left: 3rem; padding-right: 3rem; }
  .sm\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  .sm\:h-28 { height: 7rem; }
  .sm\:h-36 { height: 9rem; }
  .sm\:w-40 { width: 10rem; }
  .sm\:h-40 { height: 10rem; }
  .sm\:text-left { text-align: left; }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .md\:flex-row { flex-direction: row; }
  .md\:text-right { text-align: right; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .lg\:text-5xl { font-size: 3rem; }
}

/* ===== PUBLIC HEADER / NAV ===== */
.pulse-nav {
  width: 100%;
  background: var(--color-bg-white);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 20;
}
@media (min-width: 640px) { .pulse-nav { padding: 1rem 3rem; } }
.pulse-nav .nav-logo img { height: 5rem; width: auto; object-fit: contain; transition: opacity 0.2s; }
@media (min-width: 640px) { .pulse-nav .nav-logo img { height: 6rem; } }
.pulse-nav .nav-logo img:hover { opacity: 0.8; }
.pulse-nav .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 1.5rem;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary-light);
}
.pulse-nav .nav-links a {
  text-transform: uppercase;
  transition: color 0.2s, border-color 0.2s;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.pulse-nav .nav-links a:hover {
  color: var(--color-cyan);
  border-bottom-color: var(--color-cyan);
}
.pulse-nav .nav-links a.active {
  color: var(--color-red);
  border-bottom-color: var(--color-red);
}
.pulse-nav .nav-links .btn-login {
  border: 1px solid var(--color-primary-light);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  margin-left: 1rem;
}
.pulse-nav .nav-links .btn-logout {
  color: var(--color-red);
  margin-left: 1rem;
  font-weight: 700;
}
.pulse-nav .nav-links .btn-logout:hover { color: #b91c1c; }

/* ===== LOGIN PAGE ===== */
.login-page {
  min-height: 100vh;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
}
.login-page .bg-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.03;
  background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
  background-repeat: repeat;
}
.login-page .accent-line {
  width: 100px;
  height: 3px;
  background: var(--color-red);
  margin: 1.5rem auto 0;
}
.login-page .login-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem 1rem 3rem;
  position: relative;
  z-index: 10;
}
.login-page .profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.login-page .profile-avatar {
  width: 6rem; height: 6rem;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: var(--shadow-xl);
  object-fit: cover;
  object-position: top;
  transition: transform 0.3s;
}
@media (min-width: 640px) { .login-page .profile-avatar { width: 7rem; height: 7rem; } }
.login-page .profile-avatar:hover { transform: scale(1.05); }
.login-page .login-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
@media (min-width: 640px) {
  .login-page .login-hero { flex-direction: row; gap: 2.5rem; margin-bottom: 3rem; }
}
.login-page .logo-dark {
  height: 8rem;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
@media (min-width: 640px) { .login-page .logo-dark { height: 9rem; } }
.login-page .divider-v {
  display: none;
  width: 3px; height: 8rem;
  background: var(--color-red);
}
.login-page .divider-h {
  display: block;
  width: 8rem; height: 3px;
  background: var(--color-red);
}
@media (min-width: 640px) {
  .login-page .divider-v { display: block; }
  .login-page .divider-h { display: none; }
}
.login-page .secure-text {
  font-size: 3.3rem;
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: -0.05em;
  line-height: 0.85;
}
.login-page .login-form { width: 100%; max-width: 550px; margin: 0 auto; padding-bottom: 2.5rem; }
.login-page .form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: white;
  border: 1px solid #e5e7eb;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
  border-radius: 2px;
}
.login-page .form-input::placeholder { color: var(--color-text-lighter); }
.login-page .form-input:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 1px var(--color-primary-light);
}
.login-page .remember-row {
  display: flex; align-items: center; padding-left: 4px; padding-top: 4px; margin-bottom: 1.5rem;
}
.login-page .remember-row label {
  display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.875rem; font-weight: 500; color: var(--color-accent);
}
.login-page .remember-row input[type="checkbox"] {
  width: 20px; height: 20px; border-radius: 2px; background: var(--color-accent); border: none; appearance: none; cursor: pointer;
}
.login-page .remember-row input[type="checkbox"]:checked { background: var(--color-primary-light); }
.btn-login-submit {
  width: 190px;
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  background: var(--color-primary-light); color: white;
  padding: 14px 0; border-radius: 40px;
  font-weight: 700; font-size: 13px; letter-spacing: 0.1em;
  box-shadow: var(--shadow-md);
  transition: background-color 0.2s;
}
.btn-login-submit:hover { background: #155a87; }
.btn-login-submit:disabled { opacity: 0.7; cursor: not-allowed; }
.login-page .login-links { display: flex; flex-direction: column; gap: 6px; margin-top: 1.75rem; }
.login-page .login-links a { color: var(--color-accent); font-size: 14px; font-weight: 700; transition: color 0.2s; }
.login-page .login-links a:hover { color: var(--color-primary-light); }

/* ===== ERROR BANNER ===== */
.error-banner {
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  background: var(--color-red-light);
  border: 1px solid #fecaca;
  color: var(--color-red);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 700;
}

/* ===== HOME PAGE (LOGGED IN DASHBOARD) ===== */
.hero-logo-section {
  width: 100%; display: flex; justify-content: center;
  padding: 2.5rem 0 4rem; background: white;
}
.hero-logo-section img { height: 5rem; width: auto; object-fit: contain; }
@media (min-width: 640px) { .hero-logo-section img { height: 7rem; } }

.hero-video-section { width: 100%; max-width: 64rem; margin: 0 auto 4rem; padding: 0 1rem; }
@media (min-width: 640px) { .hero-video-section { padding: 0 1.5rem; } }
.hero-video-wrap {
  width: 100%; background: var(--color-primary); border-radius: var(--radius-xl);
  padding: 4px; box-shadow: var(--shadow-2xl);
  position: relative; overflow: hidden; aspect-ratio: 16/9;
}
.hero-video-inner {
  width: 100%; height: 100%; border-radius: var(--radius-lg);
  overflow: hidden; background: black; position: relative;
}
.hero-video-inner iframe { width: 100%; height: 100%; border: 0; }
.hero-video-cover {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.2); cursor: pointer; transition: background 0.3s; z-index: 10;
}
.hero-video-cover:hover { background: rgba(0,0,0,0.1); }
.hero-video-cover .play-icon {
  width: 80px; height: 80px; color: white; opacity: 0.8;
  transition: opacity 0.3s, transform 0.3s; filter: drop-shadow(0 0 20px rgba(0,0,0,0.5));
}
.hero-video-cover:hover .play-icon { opacity: 1; transform: scale(1.1); }
.hero-video-cover img.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }

/* Stats Section */
.stats-section { width: 100%; background: white; padding: 4rem 0; border-top: 1px solid var(--color-border-light); border-bottom: 1px solid var(--color-border-light); margin-bottom: 4rem; }
.stats-intro { max-width: 56rem; margin: 0 auto 4rem; padding: 0 1.5rem; text-align: center; }
.stats-intro p { font-size: 1.25rem; color: var(--color-primary); font-weight: 500; line-height: 1.75; }
@media (min-width: 640px) { .stats-intro p { font-size: 1.5rem; } }
.stats-grid { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
.stat-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0.5rem 1rem; }
.stat-card .stat-icon { color: var(--color-accent); margin-bottom: 1rem; }
.stat-card .stat-icon svg { width: 32px; height: 32px; }
.stat-card .stat-value { font-size: 2.25rem; font-weight: 900; color: var(--color-primary); letter-spacing: -0.025em; white-space: nowrap; }
@media (min-width: 1024px) { .stat-card .stat-value { font-size: 3rem; } }
.stat-card .stat-label { margin-top: 1rem; display: flex; flex-direction: column; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-accent); }
.stat-card .stat-label span:first-child { font-size: 0.875rem; font-weight: 900; }
.stat-card .stat-label span:last-child { font-size: 0.75rem; font-weight: 700; color: var(--color-text-lighter); margin-top: 4px; }

/* Vision Section */
.vision-section {
  width: 100%; background: var(--color-primary);
  padding: 5rem 1.5rem; transform: skewY(-2deg); margin-bottom: 5rem;
}
.vision-section .vision-inner {
  max-width: 56rem; margin: 0 auto; text-align: center; transform: skewY(2deg);
}
.vision-section h2 { font-size: 1.875rem; font-weight: 900; color: white; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.5rem; }
.vision-section .vision-bar { width: 6rem; height: 4px; background: var(--color-accent); margin: 0 auto 2rem; }
.vision-section p { font-size: 1.125rem; color: #cffafe; font-weight: 500; line-height: 1.75; }
@media (min-width: 640px) { .vision-section p { font-size: 1.25rem; } }

/* Team Section */
.team-section { width: 100%; max-width: 72rem; margin: 0 auto 6rem; padding: 0 1.5rem; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 1.875rem; font-weight: 900; color: var(--color-primary); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.section-header p { color: var(--color-text-light); font-weight: 500; }
.section-header .bar { width: 4rem; height: 4px; background: var(--color-accent); margin: 0 auto; }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 2rem; }
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
.team-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.team-card .avatar-wrap {
  width: 8rem; height: 8rem; border-radius: 50%; overflow: hidden;
  border: 4px solid white; box-shadow: var(--shadow-lg); margin-bottom: 1rem;
  transition: transform 0.3s;
}
@media (min-width: 640px) { .team-card .avatar-wrap { width: 10rem; height: 10rem; } }
.team-card:hover .avatar-wrap { transform: scale(1.05); }
.team-card .avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 1.125rem; font-weight: 900; color: var(--color-primary-light); line-height: 1.25; }
.team-card p { font-size: 0.75rem; font-weight: 700; color: var(--color-text-lighter); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px; }
.ops-header { text-align: center; margin: 4rem 0 3rem; }
.ops-header h2 { font-size: 1.875rem; font-weight: 900; color: var(--color-primary); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.ops-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 3rem; }
@media (min-width: 640px) { .ops-grid { gap: 5rem; } }

/* How We Help Section */
.help-section { width: 100%; max-width: 72rem; margin: 0 auto 6rem; padding: 0 1.5rem; }
.help-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; text-align: center; color: var(--color-primary); }
@media (min-width: 768px) { .help-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .help-grid { grid-template-columns: repeat(3, 1fr); } }
.help-card { display: flex; flex-direction: column; align-items: center; }
.help-card .help-icon { color: var(--color-accent); margin-bottom: 1rem; }
.help-card .help-icon svg { width: 40px; height: 40px; }
.help-card h3 { font-size: 1.125rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.help-card ul { list-style: none; font-size: 0.875rem; font-weight: 500; color: var(--color-text-light); }
.help-card ul li { padding: 0.25rem 0; }

/* Action Cards */
.action-section { width: 100%; max-width: 64rem; margin: 0 auto 6rem; padding: 0 1.5rem; }
.action-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .action-grid { grid-template-columns: repeat(3, 1fr); } }
.action-card {
  background: white; border-radius: var(--radius-xl); padding: 2rem;
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-xl), 0 0 0 0 rgba(203,213,225,0.5);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: transform 0.3s;
}
.action-card:hover { transform: translateY(-8px); }
.action-card .card-icon {
  width: 4rem; height: 4rem; border-radius: 50%; background: var(--color-bg-slate);
  display: flex; align-items: center; justify-content: center; color: var(--color-accent);
  margin-bottom: 1.5rem;
}
.action-card .card-icon svg { width: 32px; height: 32px; }
.action-card h3 { font-size: 1.25rem; font-weight: 900; color: var(--color-primary); margin-bottom: 0.75rem; }
.action-card p { font-size: 0.875rem; color: var(--color-text-light); font-weight: 500; }

/* Carriers Section */
.carriers-section { width: 100%; border-top: 1px solid var(--color-border-light); padding: 4rem 0; background: var(--color-bg-slate); }
.carriers-section h2 { font-size: 0.875rem; font-weight: 900; color: var(--color-text-lighter); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 2.5rem; text-align: center; }
.carriers-list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem; align-items: center;
  opacity: 0.6; filter: grayscale(100%); transition: all 0.5s;
}
.carriers-list:hover { filter: grayscale(0%); opacity: 1; }
.carriers-list span { font-size: 1.5rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.025em; }

/* Secure Access CTA */
.cta-section {
  width: 100%; background: var(--color-accent); padding: 5rem 1.5rem;
  text-align: center; color: white;
}
.cta-section h2 { font-size: 2.25rem; font-weight: 900; letter-spacing: -0.025em; text-transform: uppercase; margin-bottom: 1rem; }
@media (min-width: 640px) { .cta-section h2 { font-size: 3rem; } }
.cta-section p { font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #ccfbf1; margin-bottom: 2.5rem; max-width: 36rem; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 640px) { .cta-buttons { flex-direction: row; } }
.btn-cta-white {
  padding: 0.75rem 2rem; background: white; color: var(--color-primary);
  font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em;
  border-radius: var(--radius-full); box-shadow: var(--shadow-xl);
  transition: transform 0.2s;
}
.btn-cta-white:hover { transform: scale(1.05); }
.btn-cta-outline {
  padding: 0.75rem 2rem; background: transparent; color: white;
  border: 2px solid white; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.1em; border-radius: var(--radius-full);
  transition: background 0.2s;
}
.btn-cta-outline:hover { background: rgba(255,255,255,0.1); }

/* ===== ADVANCED FOOTER ===== */
.site-footer {
  width: 100%; background: var(--color-primary);
  border-top: 6px solid var(--color-accent);
  padding: 4rem 1.5rem; color: white;
}
@media (min-width: 640px) { .site-footer { padding: 4rem 3rem; } }
.footer-inner { max-width: 80rem; margin: 0 auto; display: flex; flex-direction: column; gap: 3rem; }
.footer-top {
  display: flex; flex-direction: column; justify-content: space-between;
  align-items: flex-start; gap: 2rem;
  border-bottom: 1px solid rgba(31,111,165,0.3); padding-bottom: 3rem;
}
@media (min-width: 768px) { .footer-top { flex-direction: row; align-items: center; } }
.footer-top .user-section { display: flex; align-items: center; gap: 1.5rem; }
.footer-top .user-section h3 { font-size: 1.5rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; color: #ecfeff; }
.footer-top .btn-footer-logout { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-accent); transition: color 0.2s; }
.footer-top .btn-footer-logout:hover { color: var(--color-cyan); }
.footer-quote { max-width: 36rem; }
@media (min-width: 768px) { .footer-quote { text-align: right; } }
.footer-quote p:first-child { font-size: 1.125rem; font-style: italic; font-weight: 500; color: #cbd5e1; margin-bottom: 0.5rem; }
.footer-quote p:last-child { font-size: 0.875rem; font-weight: 700; color: var(--color-accent); letter-spacing: 0.1em; text-transform: uppercase; }
.footer-columns { display: grid; grid-template-columns: 1fr; gap: 2rem; padding: 1rem 0; }
@media (min-width: 640px) { .footer-columns { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .footer-columns { grid-template-columns: repeat(4, 1fr); gap: 3rem; } }
.footer-col { display: flex; flex-direction: column; gap: 1rem; text-align: center; }
@media (min-width: 640px) { .footer-col { text-align: left; } }
.footer-col .footer-logo { height: 5rem; width: auto; object-fit: contain; margin-bottom: 1.5rem; }
.footer-col h4 { font-size: 0.875rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-accent); margin-bottom: 0.5rem; }
.footer-col a { color: #cbd5e1; font-size: 0.875rem; font-weight: 500; transition: color 0.2s; }
.footer-col a:hover { color: white; }
.footer-bottom {
  padding-top: 2rem; border-top: 1px solid rgba(31,111,165,0.3);
  display: flex; flex-direction: column; justify-content: space-between;
  align-items: center; gap: 1rem; font-size: 0.75rem; font-weight: 700; color: var(--color-text-lighter);
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }
.footer-bottom .agent-only { letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-cyan); font-weight: 900; }

/* ===== REGISTER PAGE ===== */
.register-page {
  min-height: 100vh; background: var(--color-bg-slate);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1rem 1rem 3rem; position: relative; overflow-x: hidden; overflow-y: auto;
}
.register-page .bg-decor-1 {
  position: absolute; top: 0; right: 0;
  width: 500px; height: 500px; border-radius: 50%;
  background: var(--color-cyan); mix-blend-mode: multiply;
  filter: blur(48px); opacity: 0.1;
  transform: translate(50%, -50%);
}
.register-page .bg-decor-2 {
  position: absolute; bottom: 0; left: 0;
  width: 500px; height: 500px; border-radius: 50%;
  background: var(--color-teal); mix-blend-mode: multiply;
  filter: blur(48px); opacity: 0.1;
  transform: translate(-50%, 50%);
}
.register-page .reg-header { width: 100%; max-width: 32rem; margin-bottom: 2rem; text-align: center; position: relative; z-index: 10; }
.register-page .reg-header .logo-row { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 1rem; }
.register-page .reg-header .logo-row svg { color: var(--color-teal); }
.register-page .reg-header h1 { font-size: 1.875rem; font-weight: 700; letter-spacing: -0.025em; color: var(--color-text); }
.register-page .reg-header h1 span { color: var(--color-teal); }
.register-page .reg-header h2 { font-size: 1.25rem; font-weight: 700; color: #334155; }
.register-page .reg-header p { color: var(--color-text-light); margin-top: 0.5rem; }
.register-page .reg-card {
  width: 100%; max-width: 32rem; background: white;
  border-radius: var(--radius-xl); box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border-light);
  padding: 2rem 2rem; position: relative; z-index: 10;
}
@media (min-width: 640px) { .register-page .reg-card { padding: 2.5rem; } }
.register-page .reg-card .form-group { margin-bottom: 1.25rem; }
.register-page .reg-card label { display: block; font-size: 0.875rem; font-weight: 700; color: #334155; margin-bottom: 4px; }
.register-page .reg-card input {
  width: 100%; padding: 0.75rem 1rem; border-radius: var(--radius-md);
  border: 1px solid #cbd5e1; font-size: 0.875rem;
  color: var(--color-text); background: white; transition: all 0.2s;
}
.register-page .reg-card input::placeholder { color: var(--color-text-lighter); }
.register-page .reg-card input:focus { outline: none; border-color: var(--color-teal); box-shadow: 0 0 0 2px var(--color-teal); }
.register-page .reg-card input.mono { font-family: 'Courier New', monospace; color: var(--color-teal); }
.register-page .reg-card .hint { font-size: 0.75rem; color: var(--color-text-light); margin-top: 4px; }
.register-page .reg-card .hint-warn { font-size: 0.75rem; color: #d97706; margin-top: 4px; font-weight: 500; font-style: italic; }
.register-page .name-row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .register-page .name-row { grid-template-columns: 1fr 1fr; } }
.btn-register {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  margin-top: 1.5rem; background: var(--color-teal); color: white;
  padding: 0.75rem 0; border-radius: 12px; font-weight: 700;
  box-shadow: var(--shadow-md); transition: background 0.2s;
}
@media (min-width: 640px) { .btn-register { padding: 1rem 0; } }
.btn-register:hover { background: var(--color-accent-dark); }
.btn-register:disabled { opacity: 0.7; cursor: not-allowed; }
.register-page .reg-footer { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border-light); text-align: center; }
.register-page .reg-footer p { color: var(--color-text-light); font-size: 0.875rem; }
.register-page .reg-footer a { font-weight: 700; color: var(--color-teal); }
.register-page .reg-footer a:hover { text-decoration: underline; }

/* ===== HUB PAGE ===== */
.hub-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0B132B 0%, #1C2541 50%, #0B132B 100%);
  display: flex; flex-direction: column; align-items: center;
  padding: 3rem 1rem; color: white; position: relative; overflow-x: hidden; overflow-y: auto;
}
@media (min-width: 640px) { .hub-page { padding: 3rem 1.5rem; } }
.hub-page .bg-glow-1 {
  position: absolute; top: -10%; left: -10%;
  width: 24rem; height: 24rem; border-radius: 50%;
  background: var(--color-cyan); mix-blend-mode: multiply;
  filter: blur(128px); opacity: 0.2; animation: pulse-glow 4s ease-in-out infinite;
}
.hub-page .bg-glow-2 {
  position: absolute; bottom: -10%; right: -10%;
  width: 24rem; height: 24rem; border-radius: 50%;
  background: #0d9488; mix-blend-mode: multiply;
  filter: blur(128px); opacity: 0.2; animation: pulse-glow 4s ease-in-out infinite 2s;
}
@keyframes pulse-glow { 0%, 100% { opacity: 0.2; } 50% { opacity: 0.35; } }
.hub-inner { width: 100%; max-width: 42rem; position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.hub-profile { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.hub-avatar-ring {
  width: 7rem; height: 7rem; border-radius: 50%;
  background: linear-gradient(90deg, #22d3ee, #2dd4bf); padding: 4px;
  box-shadow: 0 0 30px rgba(6,182,212,0.3);
}
.hub-avatar-inner {
  width: 100%; height: 100%; border-radius: 50%;
  background: #1e293b; border: 2px solid #0f172a;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.hub-avatar-inner img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hub-name { font-size: 1.875rem; font-weight: 700; letter-spacing: -0.025em; }
.hub-role { color: #22d3ee; font-weight: 500; letter-spacing: 0.025em; font-size: 0.875rem; text-transform: uppercase; }

.glass-panel {
  background: rgba(255,255,255,0.05); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-xl);
}
.glass-button {
  background: rgba(255,255,255,0.06); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s;
}
.glass-button:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }

.hub-cta { width: 100%; border-radius: var(--radius-xl); padding: 1.5rem 2rem; text-align: center; }
.hub-cta h2 { font-size: 1.5rem; font-weight: 900; letter-spacing: -0.025em; margin-bottom: 0.5rem; }
.hub-cta p { color: #cbd5e1; font-size: 0.875rem; font-weight: 500; margin-bottom: 1.5rem; }
.btn-hub-book {
  display: inline-block; padding: 1rem 2.5rem; border-radius: var(--radius-lg);
  background: linear-gradient(90deg, #ef4444, #dc2626);
  color: white; font-weight: 900; box-shadow: 0 0 20px rgba(239,68,68,0.25);
  transition: all 0.3s; text-transform: uppercase; letter-spacing: 0.1em;
}
.btn-hub-book:hover { background: linear-gradient(90deg, #f87171, #ef4444); transform: scale(1.05); }

.hub-links { width: 100%; display: flex; flex-direction: column; gap: 0.75rem; }
.hub-link-primary {
  width: 100%; text-align: center; padding: 1rem 1.5rem; border-radius: var(--radius-lg);
  font-weight: 500; letter-spacing: 0.025em;
  background: #f1f5f9; color: #0f172a;
  box-shadow: var(--shadow-md); transition: all 0.3s;
}
.hub-link-primary:hover { background: white; box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.hub-link-glass {
  width: 100%; text-align: center; padding: 1rem 1.5rem; border-radius: var(--radius-lg);
  font-weight: 500; color: #e2e8f0;
}

.hub-docs { width: 100%; margin-top: 2rem; }
.hub-docs-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.hub-docs-header hr { flex: 1; border: 0; height: 1px; background: #334155; }
.hub-docs-header h3 { font-size: 0.875rem; font-weight: 600; color: var(--color-text-lighter); text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap; }
.hub-docs-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 640px) { .hub-docs-grid { grid-template-columns: 1fr 1fr; } }
.hub-doc-link {
  border-radius: var(--radius-lg); padding: 1rem;
  font-size: 0.875rem; font-weight: 500; color: #e2e8f0;
  display: flex; align-items: flex-start; gap: 0.75rem;
}
.hub-doc-link svg { width: 20px; height: 20px; color: var(--color-cyan); flex-shrink: 0; margin-top: 2px; transition: color 0.2s; }
.hub-doc-link:hover svg { color: #67e8f9; }

.hub-socials { padding: 2rem 0 1rem; display: flex; justify-content: center; gap: 1.5rem; }
.hub-socials a { color: var(--color-text-lighter); transition: color 0.2s; }
.hub-socials a:hover { color: white; }

/* ===== TRAINING VIDEOS PAGE ===== */
.training-page { min-height: 100vh; background: var(--color-bg); display: flex; flex-direction: column; position: relative; overflow-x: hidden; overflow-y: auto; }
.training-page .bg-pattern { position: absolute; inset: 0; z-index: 0; opacity: 0.03; background-image: url('https://www.transparenttextures.com/patterns/cubes.png'); background-repeat: repeat; }
.training-header { width: 100%; margin-bottom: 3rem; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--color-border); padding-bottom: 1.5rem; gap: 1.5rem; }
@media (min-width: 640px) { .training-header { flex-direction: row; align-items: center; } }
.training-header h1 { font-size: 1.875rem; font-weight: 900; color: var(--color-primary); letter-spacing: -0.025em; margin-bottom: 0.5rem; }
@media (min-width: 640px) { .training-header h1 { font-size: 2.25rem; } }
.training-header p { color: var(--color-text-light); font-weight: 500; }
.training-badge { background: var(--color-bg-slate); color: #475569; font-weight: 700; padding: 0.5rem 1rem; border-radius: var(--radius-md); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.1em; }
.video-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; width: 100%; }
@media (min-width: 768px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
.video-card {
  display: flex; flex-direction: column; background: white;
  border: 1px solid var(--color-border); border-radius: var(--radius-xl);
  overflow: hidden; transition: all 0.3s;
}
.video-card:hover { box-shadow: var(--shadow-2xl); transform: translateY(-8px); }
.video-card .video-thumb {
  aspect-ratio: 16/9; background: black; position: relative;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.video-card .video-thumb iframe { width: 100%; height: 100%; border: none; }
.video-card .video-thumb .play-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.2); cursor: pointer; transition: background 0.3s; z-index: 5;
}
.video-card .video-thumb .play-overlay:hover { background: rgba(0,0,0,0.1); }
.video-card .video-thumb .play-overlay svg { width: 64px; height: 64px; color: white; opacity: 0.8; transition: all 0.3s; filter: drop-shadow(0 0 10px rgba(0,0,0,0.4)); }
.video-card .video-thumb .play-overlay:hover svg { opacity: 1; transform: scale(1.1); }
.video-card .video-thumb .duration-badge {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(0,0,0,0.7); color: white; font-size: 0.75rem;
  font-weight: 700; padding: 4px 8px; border-radius: var(--radius-sm);
  backdrop-filter: blur(8px); z-index: 20; pointer-events: none;
}
.video-card .video-info { padding: 1.5rem; }
.video-card .video-info h3 { font-size: 1.125rem; font-weight: 900; color: var(--color-primary-light); letter-spacing: -0.025em; line-height: 1.4; margin-bottom: 0.5rem; }
.video-card .video-info .video-meta { display: flex; align-items: center; gap: 0.5rem; color: var(--color-text-lighter); font-size: 0.875rem; font-weight: 500; }
.video-card .video-info .video-meta svg { width: 16px; height: 16px; }

/* ===== FREE BOOK PAGE ===== */
.free-book-page { min-height: 100vh; background: var(--color-bg); display: flex; flex-direction: column; }
.free-book-content { flex: 1; max-width: 72rem; margin: 0 auto; padding: 3rem 1.5rem; display: flex; flex-direction: column; gap: 2rem; }
.book-form-card {
  background: white; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl); border: 1px solid var(--color-border-light);
  padding: 2rem;
}
@media (min-width: 640px) { .book-form-card { padding: 2.5rem; } }
.book-form-card h2 { font-size: 1.5rem; font-weight: 900; color: var(--color-primary); margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 700; color: #334155; margin-bottom: 4px; }
.form-group input, .form-group select {
  width: 100%; padding: 0.75rem 1rem; border-radius: var(--radius-md);
  border: 1px solid #cbd5e1; font-size: 0.875rem; color: var(--color-text);
  background: white; transition: all 0.2s;
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--color-teal); box-shadow: 0 0 0 2px var(--color-teal); }
.form-group input::placeholder { color: var(--color-text-lighter); }
.btn-submit {
  width: 100%; padding: 0.75rem; border-radius: var(--radius-lg);
  background: var(--color-primary); color: white; font-weight: 700;
  box-shadow: var(--shadow-md); transition: background 0.2s;
}
.btn-submit:hover { background: #0c2d38; }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }
.success-banner {
  margin-bottom: 1.5rem; padding: 0.75rem 1rem;
  background: #f0fdf4; border: 1px solid #bbf7d0; color: #16a34a;
  border-radius: var(--radius-md); font-size: 0.875rem; font-weight: 700;
}

/* ===== GENERIC PAGE TEMPLATE ===== */
.generic-page { min-height: 100vh; background: var(--color-bg); display: flex; flex-direction: column; }
.generic-page-content { flex: 1; max-width: 72rem; margin: 0 auto; padding: 3rem 1.5rem; width: 100%; }
.generic-page-content h1 { font-size: 2.25rem; font-weight: 900; color: var(--color-primary); margin-bottom: 1rem; }
.generic-page-content p { color: var(--color-text-light); font-weight: 500; line-height: 1.75; margin-bottom: 1rem; }

/* ===== ADMIN PANEL ===== */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px; background: var(--color-primary); color: white;
  padding: 2rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem;
  flex-shrink: 0;
}
.admin-sidebar h2 { font-size: 1rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.5rem; color: var(--color-accent); }
.admin-sidebar a {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; border-radius: var(--radius-md);
  font-size: 0.875rem; font-weight: 600; color: #94a3b8;
  transition: all 0.2s;
}
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.1); color: white; }
.admin-sidebar a svg { width: 18px; height: 18px; }
.admin-main { flex: 1; background: var(--color-bg-slate); padding: 2rem; overflow-y: auto; }
.admin-main h1 { font-size: 1.875rem; font-weight: 900; color: var(--color-primary); text-transform: uppercase; letter-spacing: 0.025em; margin-bottom: 0.5rem; }
.admin-main .admin-subtitle { color: var(--color-text-light); font-weight: 500; margin-bottom: 2rem; }

/* Admin Tables */
.admin-table { width: 100%; background: white; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md); }
.admin-table thead { background: var(--color-primary); color: white; }
.admin-table th { padding: 1rem 1.5rem; font-size: 0.75rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; text-align: left; }
.admin-table td { padding: 1rem 1.5rem; font-size: 0.875rem; font-weight: 500; color: var(--color-text); border-bottom: 1px solid var(--color-border-light); }
.admin-table .empty-row td { text-align: center; padding: 2rem; color: var(--color-accent); font-weight: 700; }
.badge-pending { background: #fef3c7; color: #92400e; padding: 4px 12px; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.badge-agent { background: #d1fae5; color: #065f46; padding: 4px 12px; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.badge-admin { background: #dbeafe; color: #1e40af; padding: 4px 12px; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.btn-approve { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; padding: 6px 16px; border-radius: var(--radius-md); font-size: 0.75rem; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.btn-approve:hover { background: #a7f3d0; }
.btn-reject { background: var(--color-red-light); color: var(--color-red); border: 1px solid #fecaca; padding: 6px 16px; border-radius: var(--radius-md); font-size: 0.75rem; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.btn-reject:hover { background: #fecaca; }

/* ===== SPINNER ===== */
.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== SVG ICON SYSTEM ===== */
.icon { display: inline-block; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
