/* =============================================
   EasyQuickFund - Luxury Premium Theme
   Primary: Gold/Champagne | Dark sophisticated theme
   ============================================= */

:root {
  --gold: #c9a227;
  --gold-light: #d4af37;
  --gold-dark: #b8860b;
  --champagne: #f7e7ce;
  --navy: #0a1628;
  --navy-light: #142238;
  --navy-dark: #060d17;
  --charcoal: #1a1a2e;
  --slate: #2d3748;
  --text: #f7f7f7;
  --text-muted: #a0aec0;
  --text-gold: #c9a227;
  --bg: #0a1628;
  --bg-card: rgba(20, 34, 56, 0.9);
  --bg-glass: rgba(10, 22, 40, 0.85);
  --border: rgba(201, 162, 39, 0.3);
  --border-light: rgba(255, 255, 255, 0.1);
  --shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 4px 30px rgba(201, 162, 39, 0.2);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Page Background */
.page-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.page-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.92) 0%, rgba(6, 13, 23, 0.95) 100%);
}

/* =============================================
   Buttons
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--navy-dark);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(201, 162, 39, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--navy-dark);
}

.btn-white {
  background: white;
  color: var(--navy-dark);
}

.btn-white:hover {
  background: var(--champagne);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1rem;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.8125rem;
}

.btn-clear {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-clear:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* =============================================
   Navigation
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: var(--transition);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

.nav-cta {
  display: none;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    display: none;
    box-shadow: var(--shadow);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-cta {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .nav-cta {
    display: inline-flex;
  }
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
  padding: 160px 0 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
  line-height: 1.1;
}

.text-gradient {
  background: linear-gradient(135deg, var(--gold) 0%, var(--champagne) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 20px;
  margin-bottom: 60px;
}

.hero-trust {
  display: flex;
  gap: 40px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.trust-icon {
  width: 24px;
  height: 24px;
  color: var(--gold);
}

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

.hero-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--border);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.status-dot {
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 10px var(--gold);
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--gold); }
  50% { opacity: 0.7; box-shadow: 0 0 20px var(--gold); }
}

.card-amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}

.card-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.card-progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 30px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-light) 100%);
  border-radius: 3px;
  transition: width 1s ease;
}

.card-steps {
  display: flex;
  justify-content: space-between;
}

.step {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.step.completed {
  color: var(--gold);
}

.step.active {
  color: var(--gold-light);
}

@media (max-width: 968px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2.75rem;
  }

  .hero-cta {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-trust {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-image {
    display: none;
  }
}

/* =============================================
   Features Section
   ============================================= */
.features {
  padding: 120px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-header h2 {
  font-size: 2.75rem;
  margin-bottom: 16px;
  color: var(--text);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  text-align: center;
  position: relative;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.feature-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-8px);
}

.feature-number {
  position: absolute;
  top: 24px;
  left: 28px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(201, 162, 39, 0.15);
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 1px;
}

.feature-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 28px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
}

.feature-icon svg {
  width: 36px;
  height: 36px;
  color: var(--navy-dark);
}

.feature-card h3 {
  font-size: 1.375rem;
  margin-bottom: 14px;
  color: var(--text);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

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

/* =============================================
   Benefits Section
   ============================================= */
.benefits {
  padding: 120px 0;
  position: relative;
}

.benefits-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.benefits-text h2 {
  font-size: 2.75rem;
  margin-bottom: 40px;
  color: var(--text);
}

.benefits-list {
  list-style: none;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
}

.check-icon {
  width: 28px;
  height: 28px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.benefits-list strong {
  display: block;
  font-size: 1.0625rem;
  color: var(--text);
  margin-bottom: 6px;
}

.benefits-list p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0;
  line-height: 1.6;
}

.stats-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 56px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  border: 1px solid var(--border);
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 968px) {
  .benefits-content {
    grid-template-columns: 1fr;
  }

  .stats-card {
    max-width: 500px;
    margin: 0 auto;
  }
}

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

/* =============================================
   CTA Section
   ============================================= */
.cta {
  padding: 120px 0;
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
  position: relative;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
  text-align: center;
  color: var(--navy-dark);
  position: relative;
}

.cta-content h2 {
  font-size: 2.75rem;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* =============================================
   Footer
   ============================================= */
.footer {
  background: var(--navy-dark);
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 20px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.8;
}

.footer-links h4 {
  font-size: 0.875rem;
  margin-bottom: 24px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 14px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 40px;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

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

  .footer-brand {
    grid-column: span 2;
  }
}

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

  .footer-brand {
    grid-column: span 1;
  }
}

/* =============================================
   Form Pages
   ============================================= */
.form-page {
  padding: 140px 0 100px;
  min-height: 100vh;
  position: relative;
}

.form-container {
  max-width: 720px;
  margin: 0 auto;
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
}

.form-header h1 {
  font-size: 2.75rem;
  margin-bottom: 16px;
  color: var(--text);
}

.form-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
}

.form-notice {
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 24px;
  margin-bottom: 28px;
}

.form-notice p {
  color: var(--gold);
  font-size: 0.9375rem;
  font-weight: 500;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 56px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-error {
  display: none;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  padding: 18px 24px;
  border-radius: var(--radius);
  margin-bottom: 28px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.form-success {
  text-align: center;
  padding: 56px 28px;
}

.form-success svg {
  color: var(--gold);
}

.form-success h3 {
  font-size: 1.75rem;
  color: var(--text);
  margin-bottom: 16px;
}

.form-success p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 16px 18px;
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23c9a227' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px;
  padding-right: 48px;
}

.form-group select option {
  background: var(--navy);
  color: var(--text);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 36px 28px;
  }
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.checkbox-group input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--gold);
}

.checkbox-group label {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

/* Signature Pad */
.signature-container {
  margin-top: 10px;
}

.signature-actions {
  margin-top: 14px;
}

/* hCaptcha */
.h-captcha {
  margin: 28px 0;
  min-height: 78px;
  display: flex;
  justify-content: center;
}

.h-captcha iframe {
  border-radius: 4px;
}

/* Loading Overlay */
.loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 22, 40, 0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.loading-spinner {
  width: 56px;
  height: 56px;
  border: 4px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* =============================================
   FAQ Page
   ============================================= */
.faq-section {
  padding: 140px 0 100px;
  min-height: 100vh;
  position: relative;
}

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

.faq-header {
  text-align: center;
  margin-bottom: 60px;
}

.faq-header h1 {
  font-size: 2.75rem;
  margin-bottom: 16px;
  color: var(--text);
}

.faq-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.faq-item {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--gold);
}

.faq-question {
  padding: 24px 28px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.faq-question::after {
  content: '+';
  font-size: 1.75rem;
  color: var(--gold);
  font-weight: 400;
  transition: var(--transition);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 28px 24px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* =============================================
   Legal Pages (Privacy, Terms)
   ============================================= */
.legal-section {
  padding: 140px 0 100px;
  min-height: 100vh;
  position: relative;
}

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

.legal-header {
  text-align: center;
  margin-bottom: 60px;
}

.legal-header h1 {
  font-size: 2.75rem;
  margin-bottom: 16px;
  color: var(--text);
}

.legal-header p {
  font-size: 1rem;
  color: var(--text-muted);
}

.legal-content {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 56px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.legal-content h2 {
  font-size: 1.5rem;
  margin: 40px 0 18px;
  color: var(--gold);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 18px;
}

.legal-content ul {
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 18px;
  padding-left: 28px;
}

.legal-content li {
  margin-bottom: 10px;
}

.legal-content a {
  color: var(--gold);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .legal-content {
    padding: 36px 28px;
  }
}

/* =============================================
   Ghost Chat Widget
   ============================================= */
.ghost-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
}

.ghost-btn {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.4);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.ghost-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(201, 162, 39, 0.5);
}

.ghost-btn img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.ghost-label {
  position: absolute;
  bottom: 80px;
  right: 0;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  white-space: nowrap;
  box-shadow: var(--shadow);
}

.ghost-label-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ghost-label-brand {
  font-size: 0.8125rem;
  color: var(--gold);
  font-weight: 600;
  margin-top: 2px;
}

.ghost-label::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 24px;
  width: 12px;
  height: 12px;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transform: rotate(45deg);
}

/* Ghost Modal */
.ghost-modal {
  display: none;
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 380px;
  height: 520px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  z-index: 9999;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ghost-modal {
  display: none;
}

.ghost-modal.active {
  display: flex;
}

.ghost-modal-header {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.ghost-modal-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid white;
}

.ghost-modal-header h4 {
  color: var(--navy-dark);
  font-size: 1rem;
  margin: 0;
  font-weight: 700;
}

.ghost-modal-header p {
  color: rgba(0, 0, 0, 0.6);
  font-size: 0.75rem;
  margin: 0;
}

.ghost-chat-container {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: var(--navy-dark);
}

.ghost-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ghost-message {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.875rem;
  line-height: 1.4;
  animation: ghostFadeIn 0.2s ease;
}

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

.ghost-message.assistant {
  background: rgba(201, 162, 39, 0.15);
  border: 1px solid var(--gold);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.ghost-message.user {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
  color: var(--text);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.ghost-message.typing {
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid var(--gold);
  color: var(--gold);
  align-self: flex-start;
}

.ghost-typing-dots {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}

.ghost-typing-dots span {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: ghostTyping 1.4s infinite;
}

.ghost-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.ghost-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes ghostTyping {
  0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
  30% { opacity: 1; transform: scale(1); }
}

.ghost-input-container {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: var(--navy);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

#ghostInput {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}

#ghostInput:focus {
  border-color: var(--gold);
}

#ghostInput::placeholder {
  color: var(--text-muted);
}

#ghostSend {
  background: var(--gold);
  border: none;
  border-radius: 8px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

#ghostSend:hover {
  background: var(--gold-dark);
  transform: scale(1.05);
}

#ghostSend:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

#ghostSend svg {
  color: var(--navy-dark);
}

.ghost-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--navy-dark);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  opacity: 0.7;
  z-index: 1;
}

.ghost-close:hover {
  opacity: 1;
}
