/* Hero Section */
.hero-section {
  position: relative;
  padding: 6.5rem 1.5rem 7rem 1.5rem;
  text-align: center;
  background: var(--hero-bg-glow), var(--bg-main);
  overflow: hidden;
}

.hero-content {
  max-width: 54rem;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-badge {
  margin-bottom: 1.5rem;
}

.hero-badge .badge {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(14, 165, 233, 0.18) 50%, rgba(16, 185, 129, 0.15) 100%);
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  padding: 0.45rem 1.15rem;
  font-size: 0.825rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.hero-badge .badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  background: var(--text-gradient-blue-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 12px rgba(14, 165, 233, 0.15));
  letter-spacing: -0.025em;
}

.hero-subtext {
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero-wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 48px;
}

.hero-wave-divider .shape-fill {
  fill: var(--bg-main);
}

/* Decorative CSS Animated Mesh/Blob Shape Elements */
.hero-visual-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 1100px;
  height: 520px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

.shape-circle-1 {
  position: absolute;
  top: 5%;
  left: 8%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.38) 0%, rgba(37, 99, 235, 0.18) 50%, transparent 75%);
  filter: blur(35px);
  animation: heroBlobFloat1 12s infinite ease-in-out alternate;
}

.shape-circle-2 {
  position: absolute;
  bottom: 5%;
  right: 8%;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.35) 0%, rgba(16, 185, 129, 0.2) 50%, transparent 75%);
  filter: blur(40px);
  animation: heroBlobFloat2 15s infinite ease-in-out alternate;
}

/* Additional Hero Accent Blob */
.hero-visual-bg::after {
  content: '';
  position: absolute;
  top: 35%;
  left: 45%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.22) 0%, rgba(56, 189, 248, 0.12) 60%, transparent 80%);
  filter: blur(38px);
  animation: heroBlobFloat3 10s infinite ease-in-out alternate;
}

@keyframes heroBlobFloat1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 20px) scale(1.12); }
  100% { transform: translate(-20px, 35px) scale(0.95); }
}

@keyframes heroBlobFloat2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-35px, -25px) scale(1.15); }
  100% { transform: translate(25px, -40px) scale(0.9); }
}

@keyframes heroBlobFloat3 {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
  50% { transform: translate(-40%, -60%) scale(1.2); opacity: 0.9; }
  100% { transform: translate(-60%, -40%) scale(1); opacity: 0.7; }
}

@media (prefers-reduced-motion: reduce) {
  .shape-circle-1,
  .shape-circle-2,
  .hero-visual-bg::after {
    animation: none !important;
  }
}

/* Page Section Common Layout (80px - 100px Spacing) */
.section {
  position: relative;
  z-index: 2;
  padding: 5.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 3.75rem auto;
}

.section-subtitle {
  color: var(--primary-400);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--text-main);
}

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

/* Cards Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.popular-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .popular-tools-grid {
    grid-template-columns: 1fr;
  }
}

/* Feature Grid Section Styling */
.home-features-section {
  padding-top: 2.5rem;
  padding-bottom: 2.25rem;
  background: var(--bg-section-wash-2);
}

.home-features-section .section-header {
  margin-bottom: 1.75rem;
}

.home-features-section .section-subtitle {
  margin-bottom: 0.4rem;
}

.home-features-section .section-title {
  margin-bottom: 0.5rem;
}

.features-responsive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

@media (max-width: 640px) {
  .home-features-section {
    padding-top: 1.75rem;
    padding-bottom: 1.25rem;
  }

  .home-features-section .section-header {
    margin-bottom: 1.25rem;
  }

  .features-responsive-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

/* Feature Highlight Cards with Unique Subtle Color Washes & 3D Depth */
.feature-highlight-card {
  padding: 1.25rem 1.35rem;
  height: 100%;
  border-radius: var(--radius-lg);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  box-shadow:
    0 4px 12px rgba(15, 23, 42, 0.04),
    0 1px 3px rgba(15, 23, 42, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 220ms ease, border-color 220ms ease;
  position: relative;
  overflow: hidden;
}

/* Card 1: AI Study Assistant (Blue) */
.features-responsive-grid .feature-highlight-card:nth-child(1) {
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(239, 246, 255, 0.8) 100%);
  border-color: rgba(37, 99, 235, 0.22);
}
/* Card 2: Student Calculators (Emerald) */
.features-responsive-grid .feature-highlight-card:nth-child(2) {
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(236, 253, 245, 0.8) 100%);
  border-color: rgba(16, 185, 129, 0.22);
}
/* Card 3: Image & File Support (Sky) */
.features-responsive-grid .feature-highlight-card:nth-child(3) {
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(240, 249, 255, 0.8) 100%);
  border-color: rgba(14, 165, 233, 0.22);
}
/* Card 4: Productivity Tools (Purple) */
.features-responsive-grid .feature-highlight-card:nth-child(4) {
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(250, 245, 255, 0.8) 100%);
  border-color: rgba(147, 51, 234, 0.22);
}
/* Card 5: Mobile Friendly (Amber) */
.features-responsive-grid .feature-highlight-card:nth-child(5) {
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(254, 243, 199, 0.45) 100%);
  border-color: rgba(245, 158, 11, 0.25);
}
/* Card 6: English + Future Bangla Support (Pink) */
.features-responsive-grid .feature-highlight-card:nth-child(6) {
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(253, 242, 248, 0.8) 100%);
  border-color: rgba(236, 72, 153, 0.22);
}

[data-theme="dark"] .features-responsive-grid .feature-highlight-card:nth-child(1) {
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(30, 58, 138, 0.25) 100%);
  border-color: rgba(37, 99, 235, 0.35);
}
[data-theme="dark"] .features-responsive-grid .feature-highlight-card:nth-child(2) {
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(6, 95, 70, 0.25) 100%);
  border-color: rgba(16, 185, 129, 0.35);
}
[data-theme="dark"] .features-responsive-grid .feature-highlight-card:nth-child(3) {
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(12, 74, 110, 0.25) 100%);
  border-color: rgba(14, 165, 233, 0.35);
}
[data-theme="dark"] .features-responsive-grid .feature-highlight-card:nth-child(4) {
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(88, 28, 135, 0.25) 100%);
  border-color: rgba(147, 51, 234, 0.35);
}
[data-theme="dark"] .features-responsive-grid .feature-highlight-card:nth-child(5) {
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(120, 53, 15, 0.25) 100%);
  border-color: rgba(245, 158, 11, 0.35);
}
[data-theme="dark"] .features-responsive-grid .feature-highlight-card:nth-child(6) {
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(131, 24, 67, 0.25) 100%);
  border-color: rgba(236, 72, 153, 0.35);
}

.feature-highlight-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 12px 28px -4px rgba(15, 23, 42, 0.12),
    0 4px 8px -2px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.features-responsive-grid .feature-highlight-card:nth-child(1):hover { border-color: #2563eb; box-shadow: 0 14px 30px -4px rgba(37, 99, 235, 0.2); }
.features-responsive-grid .feature-highlight-card:nth-child(2):hover { border-color: #10b981; box-shadow: 0 14px 30px -4px rgba(16, 185, 129, 0.2); }
.features-responsive-grid .feature-highlight-card:nth-child(3):hover { border-color: #0ea5e9; box-shadow: 0 14px 30px -4px rgba(14, 165, 233, 0.2); }
.features-responsive-grid .feature-highlight-card:nth-child(4):hover { border-color: #9333ea; box-shadow: 0 14px 30px -4px rgba(147, 51, 234, 0.2); }
.features-responsive-grid .feature-highlight-card:nth-child(5):hover { border-color: #f59e0b; box-shadow: 0 14px 30px -4px rgba(245, 158, 11, 0.2); }
.features-responsive-grid .feature-highlight-card:nth-child(6):hover { border-color: #ec4899; box-shadow: 0 14px 30px -4px rgba(236, 72, 153, 0.2); }

.feature-highlight-card .card-icon-circle {
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.65rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.08),
    inset 0 -1px 2px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.feature-highlight-card:hover .card-icon-circle {
  transform: scale(1.1) rotate(-4deg);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.feature-highlight-card .card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.feature-highlight-card .card-desc {
  font-size: 0.885rem;
  line-height: 1.5;
  margin-bottom: 0;
  color: var(--text-muted);
}

.home-cta-section {
  padding-top: 1rem;
  padding-bottom: 4rem;
}

/* 3D Inner Gradients for Icon Badges */
.icon-theme-blue {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25) 0%, rgba(37, 99, 235, 0.1) 100%);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.35);
}
.icon-theme-emerald {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(16, 185, 129, 0.1) 100%);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.icon-theme-sky {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.25) 0%, rgba(14, 165, 233, 0.1) 100%);
  color: #0284c7;
  border: 1px solid rgba(14, 165, 233, 0.35);
}
.icon-theme-purple {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.25) 0%, rgba(147, 51, 234, 0.1) 100%);
  color: #7c3aed;
  border: 1px solid rgba(147, 51, 234, 0.35);
}
.icon-theme-amber {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(245, 158, 11, 0.1) 100%);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.icon-theme-pink {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.25) 0%, rgba(236, 72, 153, 0.1) 100%);
  color: #db2777;
  border: 1px solid rgba(236, 72, 153, 0.35);
}

[data-theme="dark"] .icon-theme-blue { color: #60a5fa; }
[data-theme="dark"] .icon-theme-emerald { color: #34d399; }
[data-theme="dark"] .icon-theme-sky { color: #38bdf8; }
[data-theme="dark"] .icon-theme-purple { color: #c084fc; }
[data-theme="dark"] .icon-theme-amber { color: #fbbf24; }
[data-theme="dark"] .icon-theme-pink { color: #f472b6; }

/* Section Wash Layering for AI Promo Section */
.home-ai-section {
  background: var(--bg-section-wash-1);
  position: relative;
}

/* AI Promotion Special Section - Dimensional Glassmorphic Card */
.ai-promo-box {
  background: linear-gradient(135deg, var(--bg-glass-card) 0%, rgba(240, 249, 255, 0.45) 50%, var(--bg-glass-card) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 10px 30px -5px rgba(14, 165, 233, 0.12),
    0 20px 40px -10px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

[data-theme="dark"] .ai-promo-box {
  background: linear-gradient(135deg, rgba(17, 29, 74, 0.85) 0%, rgba(14, 116, 144, 0.25) 50%, rgba(28, 42, 94, 0.85) 100%);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow:
    0 12px 35px -5px rgba(0, 0, 0, 0.5),
    0 24px 50px -10px rgba(14, 165, 233, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ai-promo-box:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow:
    0 16px 40px -5px rgba(14, 165, 233, 0.2),
    0 28px 60px -10px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Ambient Inner Glow for AI Promo Box */
.ai-promo-box::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.25) 0%, rgba(16, 185, 129, 0.1) 60%, transparent 80%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}

.ai-promo-content {
  position: relative;
  z-index: 1;
}

.ai-promo-content {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ai-promo-badge {
  margin-bottom: 1rem;
}

.ai-promo-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.ai-promo-subtext {
  margin-top: 0.75rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 38rem;
}

.ai-chips-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.75rem;
  margin-bottom: 2rem;
}

.ai-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.05rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  box-shadow:
    0 2px 6px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Individual Color-Tinted Chips with Soft Depth */
.ai-chip:nth-child(1) {
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.9) 0%, rgba(209, 250, 229, 0.6) 100%);
  border-color: rgba(16, 185, 129, 0.35);
}
.ai-chip:nth-child(2) {
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.9) 0%, rgba(219, 234, 254, 0.6) 100%);
  border-color: rgba(37, 99, 235, 0.35);
}
.ai-chip:nth-child(3) {
  background: linear-gradient(135deg, rgba(240, 249, 255, 0.9) 0%, rgba(224, 242, 254, 0.6) 100%);
  border-color: rgba(14, 165, 233, 0.35);
}
.ai-chip:nth-child(4) {
  background: linear-gradient(135deg, rgba(250, 245, 255, 0.9) 0%, rgba(243, 232, 255, 0.6) 100%);
  border-color: rgba(147, 51, 234, 0.35);
}

[data-theme="dark"] .ai-chip:nth-child(1) {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(6, 95, 70, 0.25) 100%);
  border-color: rgba(16, 185, 129, 0.4);
}
[data-theme="dark"] .ai-chip:nth-child(2) {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18) 0%, rgba(30, 58, 138, 0.25) 100%);
  border-color: rgba(37, 99, 235, 0.4);
}
[data-theme="dark"] .ai-chip:nth-child(3) {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18) 0%, rgba(12, 74, 110, 0.25) 100%);
  border-color: rgba(14, 165, 233, 0.4);
}
[data-theme="dark"] .ai-chip:nth-child(4) {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.18) 0%, rgba(88, 28, 135, 0.25) 100%);
  border-color: rgba(147, 51, 234, 0.4);
}

.ai-chip:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 6px 16px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ai-chip-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow:
    0 2px 5px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.ai-chip-icon.icon-emerald { background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(16, 185, 129, 0.12) 100%); color: #059669; border: 1px solid rgba(16, 185, 129, 0.3); }
.ai-chip-icon.icon-blue { background: linear-gradient(135deg, rgba(37, 99, 235, 0.25) 0%, rgba(37, 99, 235, 0.12) 100%); color: #2563eb; border: 1px solid rgba(37, 99, 235, 0.3); }
.ai-chip-icon.icon-sky { background: linear-gradient(135deg, rgba(14, 165, 233, 0.25) 0%, rgba(14, 165, 233, 0.12) 100%); color: #0284c7; border: 1px solid rgba(14, 165, 233, 0.3); }
.ai-chip-icon.icon-purple { background: linear-gradient(135deg, rgba(147, 51, 234, 0.25) 0%, rgba(147, 51, 234, 0.12) 100%); color: #7c3aed; border: 1px solid rgba(147, 51, 234, 0.3); }

[data-theme="dark"] .ai-chip-icon.icon-emerald { color: #34d399; }
[data-theme="dark"] .ai-chip-icon.icon-blue { color: #60a5fa; }
[data-theme="dark"] .ai-chip-icon.icon-sky { color: #38bdf8; }
[data-theme="dark"] .ai-chip-icon.icon-purple { color: #c084fc; }

.ai-chip-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.ai-promo-cta {
  display: flex;
  justify-content: center;
}

/* Final CTA Banner */
.final-cta-box {
  text-align: center;
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 35%, #06b6d4 70%, #059669 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 4.5rem 2.25rem;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 16px 40px -6px rgba(37, 99, 235, 0.35),
    0 8px 20px -4px rgba(16, 185, 129, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Layered Ambient Mesh & Radial Glow Pattern within Final CTA */
.final-cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.22) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.3) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.25) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.final-cta-box h2,
.final-cta-box p,
.final-cta-box .hero-cta {
  position: relative;
  z-index: 1;
}

.final-cta-box h2 {
  color: #ffffff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.final-cta-box p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.15rem;
  margin-bottom: 2.25rem;
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.final-cta-box .btn-secondary {
  background-color: #ffffff;
  color: #0284c7;
  border: none;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.final-cta-box .btn-secondary:hover {
  background-color: #f0f9ff;
  color: #0369a1;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.final-cta-box .btn-outline {
  border-color: rgba(255, 255, 255, 0.75);
  color: #ffffff;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.final-cta-box .btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

/* Tools Directory Filtering & 3D Search Bar */
.tools-filter-wrapper {
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tools-search-box {
  position: relative;
  max-width: 42rem;
  margin: 0 auto;
  width: 100%;
}

.tools-search-box input {
  padding-left: 3.5rem;
  padding-right: 1.25rem;
  height: 3.75rem;
  font-size: 1.05rem;
  border-radius: 24px;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .tools-search-box input {
  background-color: #1a1a1a;
  border-color: #2a2a2a;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tools-search-box input:focus {
  border-color: #0ea5e9;
  box-shadow:
    0 8px 24px rgba(14, 165, 233, 0.2),
    0 0 0 4px rgba(14, 165, 233, 0.25);
  transform: translateY(-2px);
}

.tools-search-box svg {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-400);
  pointer-events: none;
  width: 22px;
  height: 22px;
}

.category-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* 3D Filter Button Pills */
.filter-btn {
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.filter-btn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border-color: var(--btn-accent-color, var(--border-brand));
  color: var(--btn-accent-color, var(--primary-400));
}

.filter-btn.active {
  background-color: var(--btn-accent-color, var(--primary-500));
  border-color: var(--btn-accent-color, var(--primary-500));
  color: #ffffff;
  font-weight: 600;
  box-shadow:
    0 6px 18px rgba(14, 165, 233, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Category Specific Color Buttons for Filter Pills */
.filter-btn[data-category="Academic"] { --btn-accent-color: var(--cat-academic-color); background-color: var(--cat-academic-bg); border-color: var(--cat-academic-border); color: var(--cat-academic-color); }
.filter-btn[data-category="Math"] { --btn-accent-color: var(--cat-math-color); background-color: var(--cat-math-bg); border-color: var(--cat-math-border); color: var(--cat-math-color); }
.filter-btn[data-category="Time & Date"] { --btn-accent-color: var(--cat-time-color); background-color: var(--cat-time-bg); border-color: var(--cat-time-border); color: var(--cat-time-color); }
.filter-btn[data-category="Productivity"] { --btn-accent-color: var(--cat-prod-color); background-color: var(--cat-prod-bg); border-color: var(--cat-prod-border); color: var(--cat-prod-color); }
.filter-btn[data-category="Text"] { --btn-accent-color: var(--cat-text-color); background-color: var(--cat-text-bg); border-color: var(--cat-text-border); color: var(--cat-text-color); }
.filter-btn[data-category="Image & File"] { --btn-accent-color: var(--cat-image-color); background-color: var(--cat-image-bg); border-color: var(--cat-image-border); color: var(--cat-image-color); }
.filter-btn[data-category="Other"] { --btn-accent-color: var(--cat-other-color); background-color: var(--cat-other-bg); border-color: var(--cat-other-border); color: var(--cat-other-color); }

[data-theme="dark"] .filter-btn[data-category="Academic"] { background-color: var(--cat-academic-dark-bg); border-color: var(--cat-academic-dark-border); }
[data-theme="dark"] .filter-btn[data-category="Math"] { background-color: var(--cat-math-dark-bg); border-color: var(--cat-math-dark-border); }
[data-theme="dark"] .filter-btn[data-category="Time & Date"] { background-color: var(--cat-time-dark-bg); border-color: var(--cat-time-dark-border); }
[data-theme="dark"] .filter-btn[data-category="Productivity"] { background-color: var(--cat-prod-dark-bg); border-color: var(--cat-prod-dark-border); }
[data-theme="dark"] .filter-btn[data-category="Text"] { background-color: var(--cat-text-dark-bg); border-color: var(--cat-text-dark-border); }
[data-theme="dark"] .filter-btn[data-category="Image & File"] { background-color: var(--cat-image-dark-bg); border-color: var(--cat-image-dark-border); }
[data-theme="dark"] .filter-btn[data-category="Other"] { background-color: var(--cat-other-dark-bg); border-color: var(--cat-other-dark-border); }

/* 3D Stats Banner Section Styling */
.tools-stats-banner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 8px 16px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

[data-theme="dark"] .tools-stats-banner {
  background: rgba(30, 30, 30, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    0 8px 20px rgba(0, 0, 0, 0.35);
}

.tools-stats-banner:hover {
  transform: translateY(-3px);
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.06),
    0 16px 32px rgba(0, 0, 0, 0.1);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .stat-item {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
}

.stat-item:hover {
  transform: translateY(-2px) scale(1.02);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .stat-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.stat-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow:
    0 3px 6px rgba(0, 0, 0, 0.08),
    inset 0 -2px 3px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

.stat-item:hover .stat-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.stat-info-num {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.stat-info-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

@media (max-width: 640px) {
  .tools-stats-banner {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px 12px;
  }
}

.empty-state-card {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background-color: var(--bg-surface);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 36rem;
  margin: 2rem auto;
}

.empty-state-card svg {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.empty-state-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.empty-state-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Tool Explainer Section */
.tool-explainer {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-color);
}

.tool-explainer h2 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.tool-explainer p, .tool-explainer ul {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.related-tools-section {
  margin-top: 3.5rem;
}

.related-tools-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   Phase 03 — AI Assistant Chat Interface Styling (ChatGPT / Standalone App Style)
   ========================================================================== */

/* Fullscreen App Mode Overrides for AI Page */
html.ai-page-root,
body.ai-page {
  margin: 0 !important;
  padding: 0 !important;
  height: 100vh !important;
  height: 100dvh !important;
  overflow: hidden !important;
  background-color: var(--bg-surface);
}

[data-theme="dark"] body.ai-page {
  background-color: #0d0d0d;
}

/* Hide website chrome on AI page (Header, Footer, Bottom Navbar, Mobile Menu Toggle) */
body.ai-page header,
body.ai-page footer,
body.ai-page header.site-header,
body.ai-page footer.site-footer,
body.ai-page .mobile-menu-toggle,
body.ai-page .hamburger-menu,
body.ai-page .menu-toggle,
body.ai-page .site-header,
body.ai-page .site-footer {
  display: none !important;
}

.ai-page-section {
  padding: 0 !important;
  margin: 0 !important;
  height: 100vh !important;
  height: 100dvh !important;
  width: 100vw !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.ai-page-container {
  max-width: 100% !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* AI Layout Wrapper (Sidebar + Main Workspace) */
.ai-layout-wrapper {
  display: flex;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  gap: 0;
  position: relative;
  align-items: stretch;
  overflow: hidden;
}

/* Sidebar Overlay for Mobile Drawer */
.ai-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 980;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ai-sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Sidebar (280px width) */
.ai-chat-sidebar {
  width: 280px;
  height: 100vh;
  height: 100dvh;
  background-color: var(--bg-surface);
  border-right: 1px solid var(--border-color);
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  padding: 1.15rem;
  gap: 1rem;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  z-index: 10;
}

[data-theme="dark"] .ai-chat-sidebar {
  background-color: #171717;
  border-color: #262626;
}

[data-theme="light"] .ai-chat-sidebar {
  background-color: #f8fafc;
  border-color: #e2e8f0;
}

.ai-chat-sidebar.collapsed {
  display: none;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.sidebar-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

[data-theme="dark"] .sidebar-title {
  color: #ffffff;
}

.sidebar-close-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}

.sidebar-close-btn:hover {
  color: var(--text-main);
}

/* Sidebar New Chat Button (+ New Chat at Top) */
.sidebar-new-chat-btn.gradient-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.2rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  background: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.sidebar-new-chat-btn.gradient-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.35);
}

/* Sidebar Categories (Projects, Artifacts, Code, Customize) */
.sidebar-nav-categories {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .sidebar-nav-categories {
  border-color: #2a2a2a;
}

.sidebar-cat-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.sidebar-cat-item svg {
  color: var(--text-subtle);
  transition: color var(--transition-fast);
}

.sidebar-cat-item:hover {
  background-color: var(--bg-surface-elevated);
  color: var(--text-main);
}

[data-theme="dark"] .sidebar-cat-item:hover {
  background-color: #262626;
  color: #ffffff;
}

[data-theme="dark"] .sidebar-cat-item:hover svg {
  color: #0ea5e9;
}

/* Pinned & History Sections */
.sidebar-section {
  flex: 1;
  overflow-y: auto;
}

.sidebar-section.pinned-section {
  flex: none;
  max-height: 120px;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0.5rem;
}

[data-theme="dark"] .sidebar-section.pinned-section {
  border-color: #2a2a2a;
}

.sidebar-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.chat-history-list,
.pinned-chat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

[data-theme="dark"] .history-item {
  color: #a3a3a3;
}

.history-item-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow: hidden;
  flex: 1;
}

.history-item-left svg {
  flex-shrink: 0;
  color: var(--text-subtle);
}

.history-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.history-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.history-item:hover .history-actions {
  opacity: 1;
}

.history-action-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.history-action-btn:hover {
  color: var(--text-main);
  background-color: var(--bg-muted);
}

.history-action-btn.delete-btn:hover {
  color: #ef4444;
}

.history-item:hover {
  background-color: var(--bg-surface-elevated);
  color: var(--text-main);
}

[data-theme="dark"] .history-item:hover {
  background-color: #262626;
  color: #ffffff;
}

.history-item.active {
  background-color: rgba(14, 165, 233, 0.12);
  color: #0ea5e9;
  font-weight: 600;
}

[data-theme="dark"] .history-item.active {
  background-color: rgba(14, 165, 233, 0.2);
  color: #38bdf8;
}

.history-edit-input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid #0ea5e9;
  color: var(--text-main);
  border-radius: 6px;
  padding: 0.2rem 0.4rem;
  font-size: 0.85rem;
  outline: none;
}

/* Sidebar Bottom Profile & Settings */
.sidebar-footer {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

[data-theme="dark"] .sidebar-footer {
  border-color: #2a2a2a;
}

.sidebar-user-profile {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: 10px;
  transition: background-color var(--transition-fast);
  flex: 1;
  overflow: hidden;
}

.sidebar-user-profile:hover {
  background-color: var(--bg-surface-elevated);
}

[data-theme="dark"] .sidebar-user-profile:hover {
  background-color: #262626;
}

.user-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #10b981);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #ffffff;
  flex-shrink: 0;
}

.user-info-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="dark"] .user-name {
  color: #ffffff;
}

.user-plan {
  font-size: 0.725rem;
  color: #10b981;
  font-weight: 500;
}

/* Main Workspace / Chat Container Card */
.ai-chat-card {
  flex: 1;
  width: 100%;
  max-width: 100%;
  margin: 0;
  background-color: var(--bg-surface);
  border: none;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  position: relative;
}

[data-theme="dark"] .ai-chat-card {
  background-color: #0d0d0d;
}

[data-theme="light"] .ai-chat-card {
  background-color: #ffffff;
}

/* Top Bar (60px fixed height) */
.ai-top-bar {
  height: 60px;
  min-height: 60px;
  max-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  background-color: transparent;
  border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .ai-top-bar {
  border-color: #1a1a1a;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar-left .btn,
.top-bar-right .btn,
.top-bar-right .top-profile-btn {
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.top-bar-right .top-profile-btn {
  width: 32px;
}

.top-bar-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

/* Slim Header Status Badge */
.ai-header-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: var(--bg-muted);
  border: 1px solid var(--border-color);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  flex-shrink: 0;
}

.ai-header-status-badge .status-text {
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.status-dot.green-dot {
  background-color: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

/* Chat Body Container */
.ai-chat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  background-color: transparent;
  min-height: 0;
}

.ai-messages-log {
  flex: 1;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  overflow-y: auto;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  scroll-behavior: smooth;
}

/* Claude Greeting Section */
.claude-greeting-section {
  flex: 1;
  padding: 1.5rem 1.25rem;
  text-align: center;
  margin: 0 auto;
  max-width: 44rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.greeting-header-box {
  margin-bottom: 1.5rem;
}

.greeting-time-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

.greeting-time-title.gradient-brand-text {
  background: var(--text-gradient-blue-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.greeting-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 400;
}

[data-theme="dark"] .greeting-subtitle {
  color: #a3a3a3;
}

/* Quick Action Buttons (2 rows on mobile) */
.quick-actions-wrapper {
  margin-top: 0.75rem;
}

.quick-actions-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.quick-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .quick-action-btn {
  background-color: #1a1a1a;
  border-color: #2a2a2a;
  color: #e5e5e5;
}

.quick-action-btn:hover {
  border-color: var(--border-brand);
  background-color: var(--bg-accent-subtle);
  color: var(--primary-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-icon.icon-blue { color: #2563eb; }
.action-icon.icon-emerald { color: #10b981; }
.action-icon.icon-purple { color: #9333ea; }
.action-icon.icon-amber { color: #f59e0b; }
.action-icon.icon-sky { color: #0ea5e9; }

/* Chat Message Styling (ChatGPT / Claude Style Premium Design) */
.message {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  max-width: 80%;
  animation: messageFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.ai-message {
  align-self: flex-start;
}

.user-message {
  align-self: flex-end;
  margin-left: auto;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.avatar.ai-avatar svg {
  color: #ffffff;
}

.message-content {
  padding: 12px 16px;
  border-radius: 18px;
  background: #F7F7F8;
  color: var(--text-main);
  word-break: break-word;
}

[data-theme="dark"] .message-content {
  background: #1E1E1E;
  color: #FFFFFF;
}

.user-message .message-content {
  background: linear-gradient(135deg, #0EA5E9, #10B981);
  color: white;
}

.message-text {
  font-size: 15px;
  line-height: 1.6;
}

.user-message .message-text {
  white-space: pre-wrap;
}

.message-disclaimer {
  font-size: 0.725rem;
  color: var(--text-subtle);
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.message-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.action-btn {
  background: transparent;
  border: 1px solid transparent;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}

.action-btn:hover {
  background: var(--bg-muted);
  border-color: var(--border-color);
  color: var(--text-main);
}

[data-theme="dark"] .action-btn:hover {
  background: #262626;
  border-color: #333333;
  color: #ffffff;
}

.message-time {
  font-size: 11px;
  opacity: 0.7;
  text-align: right;
  margin-top: 4px;
}

/* Typing Indicator & Error Message Styling */
.typing-bubble {
  display: flex;
  align-items: center;
  gap: 12px;
}

.error-message-content {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

[data-theme="dark"] .error-message-content {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
}

.error-text {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ef4444;
}

.typing-dots {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.typing-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  animation: typingPulse 1.4s infinite ease-in-out;
}

.typing-dots .dot:nth-child(1) { animation-delay: 0s; }
.typing-dots .dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dots .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingPulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.1); opacity: 1; }
}

/* Input Area Footer */
.ai-chat-footer {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0.5rem 1.25rem 0.75rem 1.25rem;
  background-color: transparent;
  border-top: none;
}

[data-theme="dark"] .ai-chat-footer {
  border-color: #1a1a1a;
}

/* Claude Input Box (24px rounded corners, dark gray #1A1A1A in Dark Mode, white in Light Mode) */
.chat-input-box.claude-input-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 0.65rem 0.95rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

[data-theme="dark"] .chat-input-box.claude-input-box {
  background-color: #1a1a1a;
  border-color: #2a2a2a;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.chat-input-box.claude-input-box:focus-within {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
}

.input-box-left, .input-box-right {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Attach (+) Dropdown Trigger & Menu */
.attach-dropdown-wrapper {
  position: relative;
}

.attach-plus-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.attach-plus-btn:hover {
  background-color: var(--bg-surface-elevated);
  color: #0ea5e9;
}

[data-theme="dark"] .attach-plus-btn:hover {
  background-color: #262626;
  color: #38bdf8;
}

.attach-menu-dropdown {
  position: absolute;
  bottom: 125%;
  left: 0;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.4rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 170px;
  z-index: 100;
}

[data-theme="dark"] .attach-menu-dropdown {
  background-color: #262626;
  border-color: #333333;
}

.attach-menu-dropdown.show {
  display: flex;
}

.attach-menu-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: background-color var(--transition-fast);
}

[data-theme="dark"] .attach-menu-item {
  color: #ffffff;
}

.attach-menu-item:hover {
  background-color: var(--bg-muted);
  color: #0ea5e9;
}

[data-theme="dark"] .attach-menu-item:hover {
  background-color: #1a1a1a;
  color: #38bdf8;
}

/* Mode Selector inside Input Box (Chat, Cowork) */
.mode-selector-wrapper {
  position: relative;
}

.mode-selector-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  background-color: var(--bg-muted);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

[data-theme="dark"] .mode-selector-btn {
  background-color: #262626;
  border-color: #333333;
  color: #e5e5e5;
}

.mode-selector-btn:hover {
  border-color: #0ea5e9;
  color: #0ea5e9;
}

.mode-dropdown-menu {
  position: absolute;
  bottom: 125%;
  left: 0;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.4rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 140px;
  z-index: 100;
}

[data-theme="dark"] .mode-dropdown-menu {
  background-color: #262626;
  border-color: #333333;
}

.mode-dropdown-menu.show {
  display: flex;
}

.mode-option-item {
  padding: 0.45rem 0.65rem;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  transition: background-color var(--transition-fast);
}

[data-theme="dark"] .mode-option-item {
  color: #ffffff;
}

.mode-option-item:hover, .mode-option-item.active {
  background-color: rgba(14, 165, 233, 0.12);
  color: #0ea5e9;
}

/* Claude Textarea */
.chat-textarea.claude-textarea {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.4rem 0.25rem;
  resize: none;
  max-height: 180px;
  line-height: 1.5;
}

[data-theme="dark"] .chat-textarea.claude-textarea {
  color: #ffffff;
}

/* Voice & Waveform Input Buttons */
.input-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.input-icon-btn:hover {
  background-color: var(--bg-surface-elevated);
  color: #0ea5e9;
}

[data-theme="dark"] .input-icon-btn:hover {
  background-color: #262626;
  color: #38bdf8;
}

.chat-send-btn.claude-send-btn {
  background: var(--brand-gradient);
  border: none;
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.chat-send-btn.claude-send-btn:hover:not(:disabled) {
  background: var(--brand-gradient-hover);
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
}

.chat-send-btn.claude-send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--text-subtle);
  box-shadow: none;
}

/* Model Selector Dropdown (Below Input Box) */
.model-selector-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 0.35rem;
  padding-left: 0.5rem;
}

.model-dropdown-wrapper {
  position: relative;
}

.model-selector-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 12px;
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

[data-theme="dark"] .model-selector-btn {
  border-color: #2a2a2a;
  color: #a3a3a3;
}

.model-selector-btn:hover {
  border-color: #0ea5e9;
  color: var(--text-main);
}

[data-theme="dark"] .model-selector-btn:hover {
  color: #ffffff;
}

.model-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
}

.model-dropdown-menu {
  position: absolute;
  bottom: 125%;
  left: 0;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  width: 260px;
  z-index: 100;
}

[data-theme="dark"] .model-dropdown-menu {
  background-color: #1a1a1a;
  border-color: #2a2a2a;
}

.model-dropdown-menu.show {
  display: flex;
}

.model-option-item {
  display: flex;
  flex-direction: column;
  padding: 0.6rem 0.75rem;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.model-item-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
}

[data-theme="dark"] .model-item-title {
  color: #ffffff;
}

.model-item-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.model-option-item:hover, .model-option-item.active {
  background-color: rgba(14, 165, 233, 0.1);
  border-color: rgba(14, 165, 233, 0.3);
}

.model-option-item.active .model-item-title {
  color: #0ea5e9;
}

/* Clear Confirmation Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  max-width: 28rem;
  width: 90%;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform var(--transition-fast);
}

.modal-backdrop.show .modal-card {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.modal-icon.warning-icon {
  color: #f59e0b;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
}

.modal-body {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.btn-danger {
  background-color: #ef4444;
  color: #ffffff;
}

.btn-danger:hover {
  background-color: #dc2626;
}

/* ==========================================================================
   Sign In & Sign Up Premium Redesign Styles
   ========================================================================== */

.login-wrapper-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.25rem;
  min-height: calc(100vh - 12rem);
  background: var(--hero-bg-glow), linear-gradient(135deg, #e0f2fe 0%, #bae6fd 30%, #ecfeff 65%, #f0fdf4 100%);
  overflow: hidden;
}

[data-theme="dark"] .login-wrapper-section {
  background: var(--hero-bg-glow), linear-gradient(135deg, #0b132b 0%, #0f172a 35%, #082f49 70%, #022c22 100%);
}

/* Decorative background glowing shapes & subtle watermark */
.login-bg-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.login-shape-1 {
  position: absolute;
  top: -10%;
  left: 10%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, rgba(37, 99, 235, 0.15) 60%, transparent 80%);
  filter: blur(45px);
  animation: heroBlobFloat1 14s infinite ease-in-out alternate;
}

.login-shape-2 {
  position: absolute;
  bottom: -10%;
  right: 10%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, rgba(16, 185, 129, 0.2) 60%, transparent 80%);
  filter: blur(50px);
  animation: heroBlobFloat2 16s infinite ease-in-out alternate;
}

.login-watermark {
  position: absolute;
  right: -3%;
  top: 50%;
  transform: translateY(-50%) rotate(-12deg);
  opacity: 0.06;
  width: 360px;
  height: auto;
  user-select: none;
  filter: blur(0.5px);
}

[data-theme="dark"] .login-watermark {
  opacity: 0.08;
  filter: brightness(1.2) blur(0.5px);
}

.login-watermark img {
  width: 100%;
  height: auto;
}

/* Floating Glassmorphic Auth Card */
.login-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 29.5rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
  padding: 2.75rem 2.25rem;
  box-shadow:
    0 20px 40px -15px rgba(2, 132, 199, 0.15),
    0 10px 20px -10px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

[data-theme="dark"] .login-card {
  background: rgba(17, 29, 74, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow:
    0 24px 50px -15px rgba(0, 0, 0, 0.65),
    0 0 30px rgba(2, 132, 199, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.login-card:hover {
  box-shadow:
    0 28px 55px -12px rgba(2, 132, 199, 0.2),
    0 12px 24px -8px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

[data-theme="dark"] .login-card:hover {
  box-shadow:
    0 30px 60px -12px rgba(0, 0, 0, 0.75),
    0 0 40px rgba(2, 132, 199, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* Auth Card Logo */
.auth-card-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.25rem;
}

.auth-card-logo-link {
  display: inline-block;
  transition: transform var(--transition-fast);
}

.auth-card-logo-link:hover {
  transform: scale(1.04);
}

.auth-card-logo {
  height: 2.65rem;
  width: auto;
  object-fit: contain;
}

.login-title {
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

/* Google Sign-in / Sign-up Button */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 1.1rem;
  background-color: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 200ms ease, border-color 200ms ease, background-color 200ms ease;
  box-shadow:
    0 4px 12px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .btn-google {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-google:hover {
  background-color: var(--bg-surface);
  border-color: var(--border-brand);
  box-shadow:
    0 8px 20px rgba(14, 165, 233, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

[data-theme="dark"] .btn-google:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.google-icon {
  flex-shrink: 0;
}

/* Refined Divider */
.login-divider {
  position: relative;
  text-align: center;
  margin: 1.6rem 0;
}

.login-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border-color) 20%, var(--border-color) 80%, transparent 100%);
}

.divider-text {
  position: relative;
  background-color: var(--bg-surface);
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  font-size: 0.725rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--text-subtle);
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .divider-text {
  background-color: var(--bg-surface-elevated);
}

/* Form Styling & Inputs with Icons */
.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

.required-star {
  color: #ef4444;
}

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

.input-icon.left-icon {
  position: absolute;
  left: 0.95rem;
  color: var(--primary-500);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

[data-theme="dark"] .input-icon.left-icon {
  color: var(--primary-300);
}

.form-input {
  width: 100%;
  height: 3rem;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--input-border);
  background-color: var(--input-bg);
  color: var(--text-main);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.form-input:focus {
  outline: none;
  border-color: #0284c7;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.25);
}

.form-input.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18) !important;
}

.password-toggle-btn {
  position: absolute;
  right: 0.85rem;
  background: transparent;
  border: none;
  color: var(--text-subtle);
  cursor: pointer;
  padding: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.password-toggle-btn:hover {
  color: var(--text-main);
  background-color: var(--bg-muted);
}

.eye-icon.hidden {
  display: none;
}

.error-message {
  display: block;
  font-size: 0.8rem;
  color: #ef4444;
  margin-top: 0.35rem;
  min-height: 1.1rem;
}

/* Rich Brand Gradient Submit Button (Primary Action) */
.btn-login-submit {
  width: 100%;
  height: 3rem;
  background: var(--brand-gradient);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.025rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 6px 20px rgba(37, 99, 235, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 200ms ease, background 200ms ease;
  margin-top: 0.6rem;
  margin-bottom: 1.35rem;
}

.btn-login-submit:hover:not(:disabled) {
  background: var(--brand-gradient-hover);
  box-shadow:
    0 10px 25px rgba(37, 99, 235, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}

.btn-login-submit:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.btn-spinner {
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

.btn-spinner.hidden {
  display: none;
}

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

/* Account Links */
.login-links {
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.signup-prompt {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.link-orange {
  color: #f97316;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.link-orange:hover {
  color: #ea580c;
  text-decoration: underline;
}

.forgot-password-link {
  color: var(--text-subtle);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.forgot-password-link:hover {
  color: var(--text-main);
  text-decoration: underline;
}

/* Mobile OTP Login Section */
.otp-login-section {
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
}

.btn-otp-disabled {
  width: 100%;
  height: 2.75rem;
  padding: 0 0.9rem;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-muted);
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: not-allowed;
  opacity: 0.85;
}

.otp-btn-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.badge-orange {
  background-color: #ffedd5;
  color: #c2410c;
  font-size: 0.675rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}

[data-theme="dark"] .badge-orange {
  background-color: rgba(249, 115, 22, 0.2);
  color: #fb923c;
}

.login-subtext {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: -1rem;
  margin-bottom: 1.5rem;
}

/* Password Strength Indicator */
.password-strength-wrapper {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.password-strength-wrapper.visible {
  opacity: 1;
  visibility: visible;
}

.strength-bar-bg {
  flex: 1;
  height: 5px;
  background-color: var(--bg-muted);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.strength-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: var(--radius-full);
  transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-bar-fill.weak {
  width: 33%;
  background-color: #ef4444;
}

.strength-bar-fill.medium {
  width: 66%;
  background-color: #f59e0b;
}

.strength-bar-fill.strong {
  width: 100%;
  background-color: #10b981;
}

.strength-label {
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 55px;
  text-align: right;
}

.strength-label.weak { color: #ef4444; }
.strength-label.medium { color: #f59e0b; }
.strength-label.strong { color: #10b981; }

/* Terms Checkbox Group */
.terms-checkbox-group {
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
}

.terms-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--text-main);
  cursor: pointer;
  user-select: none;
  line-height: 1.4;
}

.terms-checkbox {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  accent-color: #10b981;
  cursor: pointer;
  flex-shrink: 0;
}

/* ==========================================================================
   Contact Page Layout & Premium Component Styles
   ========================================================================== */

/* Hero Section */
.contact-hero-section {
  padding: 5rem 1.5rem 3.5rem 1.5rem;
  background: var(--hero-bg-glow);
  text-align: center;
  position: relative;
}

.contact-hero-badge-wrapper {
  margin-bottom: 1.25rem;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.825rem;
  text-transform: uppercase;
  background: rgba(2, 132, 199, 0.1);
  color: var(--primary-400);
  border: 1px solid rgba(2, 132, 199, 0.22);
  border-radius: var(--radius-full);
}

.contact-hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
  background: var(--text-gradient-blue-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-hero-subtext {
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 38rem;
  margin: 0 auto;
  text-align: center;
}

/* Contact Main Grid */
.contact-main-section {
  padding: 5rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.25rem;
  align-items: stretch;
}

.contact-info-card,
.contact-form-card {
  padding: 2.5rem;
  border-radius: var(--radius-lg); /* 16px */
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.contact-info-card:hover,
.contact-form-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow);
}

.contact-card-desc {
  font-size: 0.975rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface-elevated);
  text-decoration: none;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.contact-item:hover {
  border-color: var(--border-brand);
  background-color: var(--bg-accent-subtle);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.08);
}

.contact-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.contact-item:hover .contact-icon {
  transform: scale(1.1);
}

.icon-phone {
  background-color: rgba(2, 132, 199, 0.14);
  color: #0284c7;
}

.icon-hotline {
  background-color: rgba(217, 119, 6, 0.14);
  color: #d97706;
}

.icon-gmail {
  background-color: rgba(220, 38, 38, 0.14);
  color: #dc2626;
}

.icon-telegram {
  background-color: rgba(14, 165, 233, 0.14);
  color: #0ea5e9;
}

.icon-whatsapp {
  background-color: rgba(34, 197, 94, 0.14);
  color: #16a34a;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow: hidden;
}

.contact-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-subtle);
}

.contact-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  word-break: break-all;
}

/* Form Styling & Focus Highlights */
.contact-form {
  margin-top: 0.5rem;
}

.contact-input,
.contact-textarea {
  width: 100%;
  padding: 0.95rem 1.2rem;
  border-radius: 12px;
  border: 1px solid var(--input-border);
  background-color: var(--input-bg);
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.contact-textarea {
  min-height: 145px;
  resize: vertical;
  line-height: 1.6;
}

.contact-input:focus,
.contact-textarea:focus {
  outline: none;
  border-color: var(--primary-400);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.22);
}

.contact-input.input-error,
.contact-textarea.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18) !important;
}

.contact-submit-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 12px;
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
}

.contact-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-loading-spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: contactSpinner 0.8s linear infinite;
}

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

.form-status-alert {
  padding: 0.875rem 1.15rem;
  border-radius: 10px;
  font-size: 0.925rem;
  font-weight: 500;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.form-status-alert.success {
  background-color: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #059669;
}

[data-theme="dark"] .form-status-alert.success {
  color: #34d399;
}

.form-status-alert.error {
  background-color: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #dc2626;
}

[data-theme="dark"] .form-status-alert.error {
  color: #f87171;
}

/* Why Contact Us Section */
.why-contact-section {
  padding: 5.5rem 0;
  background-color: var(--bg-surface-elevated);
}

.why-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.why-contact-card {
  padding: 2.25rem 1.75rem;
  border-radius: var(--radius-lg); /* 16px */
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.why-contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow);
  border-color: var(--border-brand);
}

.why-contact-icon-box {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.icon-lightning {
  background-color: rgba(245, 158, 11, 0.14);
  color: #f59e0b;
}

.icon-support {
  background-color: rgba(2, 132, 199, 0.14);
  color: #0284c7;
}

.icon-secure {
  background-color: rgba(16, 185, 129, 0.14);
  color: #10b981;
}

.why-contact-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.6rem;
}

.why-contact-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Follow Us Social Media Section */
.follow-us-section {
  padding: 5.5rem 0;
}

.social-buttons-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.social-btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.social-facebook:hover {
  border-color: #1877f2;
  color: #1877f2;
  box-shadow: 0 6px 20px rgba(24, 119, 242, 0.2);
}

.social-twitter:hover {
  border-color: var(--text-main);
  color: var(--text-main);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.social-telegram:hover {
  border-color: #0088cc;
  color: #0088cc;
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.2);
}

.social-youtube:hover {
  border-color: #ff0000;
  color: #ff0000;
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.2);
}

.social-whatsapp:hover {
  border-color: #25d366;
  color: #25d366;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.2);
}

/* FAQ Accordion Section */
.faq-section {
  padding: 5.5rem 0;
  background-color: var(--bg-surface-elevated);
}

.max-w-4xl {
  max-width: 52rem;
  margin: 0 auto;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item.active {
  border-color: var(--border-brand);
  box-shadow: var(--shadow-md);
}

.faq-question-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 1.6rem;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-question-btn:hover {
  color: var(--primary-400);
}

.faq-icon {
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--primary-400);
}

.faq-answer-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}

.faq-item.active .faq-answer-wrapper {
  opacity: 1;
}

.faq-answer-content {
  padding: 0 1.6rem 1.35rem 1.6rem;
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.65;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

/* Google Maps Section */
.maps-section {
  padding: 5.5rem 0;
}

.map-card-wrapper {
  padding: 0.5rem;
  border-radius: var(--radius-lg); /* 16px */
  overflow: hidden;
  box-shadow: var(--card-shadow);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
}

/* Bottom CTA Section */
.contact-cta-section {
  padding: 4rem 0 5.5rem 0;
}

.contact-cta-box {
  background: var(--brand-gradient);
  border-radius: var(--radius-lg);
  padding: 4.5rem 2rem;
  text-align: center;
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.contact-cta-box .cta-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.contact-cta-box .cta-subtext {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 36rem;
  margin: 0 auto 2.25rem auto;
  line-height: 1.6;
}

/* ==========================================================================
   About Us Page Styles
   ========================================================================== */

/* Mission Statement Card */
.about-mission-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-left: 6px solid var(--primary-400);
  border-radius: var(--radius-xl);
  padding: 2.75rem 2.5rem;
  box-shadow: var(--card-shadow);
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.about-mission-card:hover {
  box-shadow: var(--card-hover-shadow);
  transform: translateY(-3px);
}

.mission-icon-badge {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(16, 185, 129, 0.15) 100%);
  color: var(--primary-400);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}

.mission-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mission-card-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.mission-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* What We Offer Section */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.offer-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  height: 100%;
}

.offer-icon-box {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.offer-icon-box.icon-blue {
  background-color: rgba(2, 132, 199, 0.12);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.25);
}

.offer-icon-box.icon-green {
  background-color: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.offer-icon-box.icon-purple {
  background-color: rgba(139, 92, 246, 0.12);
  color: #8b5cf6;
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.offer-icon-box.icon-orange {
  background-color: rgba(249, 115, 22, 0.12);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.25);
}

.offer-info {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.offer-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.offer-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

/* Why Choose Us Section */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.why-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.why-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-brand);
  box-shadow: var(--card-hover-shadow);
}

.why-badge-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-badge-icon.icon-green {
  background-color: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.why-badge-icon.icon-blue {
  background-color: rgba(2, 132, 199, 0.15);
  color: #0284c7;
}

.why-badge-icon.icon-purple {
  background-color: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
}

.why-badge-icon.icon-orange {
  background-color: rgba(249, 115, 22, 0.15);
  color: #f97316;
}

.why-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.why-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Vision & Story Section */
.vision-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.vision-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.vision-paragraph {
  font-size: 1.025rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.vision-future-box {
  background-color: var(--bg-accent-subtle);
  border: 1px solid var(--border-brand);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-top: 0.5rem;
}

.vision-future-box h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-400);
  margin-bottom: 0.4rem;
}

.vision-future-box p {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.55;
}

/* About Stats Banner Grid */
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.about-stat-card {
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-surface-elevated) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.25rem;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-normal);
}

.about-stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-brand);
}

.about-stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--text-gradient-blue-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.about-stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Meet the Founder Section */
.founder-card {
  padding: 2.25rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.founder-avatar-wrapper {
  flex-shrink: 0;
}

.founder-avatar-circle {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7 0%, #10b981 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.3);
}

.founder-details {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.founder-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.founder-role {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.founder-bio {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
  margin-top: 0.4rem;
}

/* Mobile & Tablet Responsive Queries for About Page */
@media (max-width: 900px) {
  .offer-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .about-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-mission-card {
    flex-direction: column;
    padding: 2rem 1.5rem;
  }

  .founder-card {
    flex-direction: column;
    text-align: center;
  }
}

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

  .mission-card-title {
    font-size: 1.4rem;
  }

  .about-stat-num {
    font-size: 2rem;
  }
}

/* ==========================================================================
   Profile Page Premium Redesign Styles
   ========================================================================== */

.profile-main-section {
  padding-top: 3.5rem;
  padding-bottom: 5.5rem;
}

.profile-container {
  max-width: 42rem;
  margin: 0 auto;
}

/* Header Card */
.profile-header-card {
  padding: 2.5rem 2rem;
  text-align: center;
  margin-bottom: 1.75rem;
  background: var(--hero-bg-glow), var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.profile-header-card:hover {
  box-shadow: var(--card-hover-shadow);
  transform: translateY(-2px);
}

.profile-avatar-container {
  margin: 0 auto 1.25rem auto;
  width: 6.25rem;
  height: 6.25rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar-ring {
  width: 100%;
  height: 100%;
  padding: 3px;
  border-radius: 50%;
  background: var(--brand-gradient);
  box-shadow: var(--shadow-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.profile-header-card:hover .profile-avatar-ring {
  transform: scale(1.04);
}

.profile-avatar-wrapper {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--bg-surface-elevated);
  color: var(--text-main);
  font-size: 2.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.profile-avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Avatar Tappable Edit Overlay & Loading Spinner */
.avatar-edit-overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #ffffff;
  border: 2px solid var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition-fast), background var(--transition-fast);
  z-index: 5;
}

.avatar-edit-overlay:hover {
  transform: scale(1.1);
  background: var(--brand-gradient-hover);
}

.avatar-upload-loader {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.avatar-spinner {
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: avatarSpin 0.8s linear infinite;
}

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

.avatar-msg {
  font-size: 0.85rem;
  margin-top: 0.75rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.avatar-msg.success {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.avatar-msg.error {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Username Input Control & Status Icons */
.username-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
}

.username-prefix {
  position: absolute;
  left: 0.85rem;
  color: var(--text-subtle);
  font-weight: 600;
  font-size: 0.95rem;
  pointer-events: none;
  z-index: 2;
}

.username-control {
  padding-left: 2rem !important;
  padding-right: 2.25rem !important;
}

.username-status-icon {
  position: absolute;
  right: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  pointer-events: none;
}

.username-status-icon.valid {
  color: #10b981;
}

.username-status-icon.invalid {
  color: #ef4444;
}

.username-status-icon.checking {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(14, 165, 233, 0.2);
  border-top-color: #0ea5e9;
  border-radius: 50%;
  animation: avatarSpin 0.8s linear infinite;
}

.username-feedback {
  font-size: 0.8rem;
  margin-top: 0.4rem;
  color: var(--text-subtle);
  line-height: 1.4;
}

.username-feedback.valid-msg {
  color: #10b981;
}

.username-feedback.error-msg {
  color: #ef4444;
}

/* Standalone Logout Card at Bottom */
.profile-logout-card {
  margin-top: 1rem;
}

.profile-user-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.profile-user-email {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
  font-weight: 500;
}

/* Section Cards */
.profile-section-card {
  padding: 1.85rem;
  margin-bottom: 1.75rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.profile-section-card:hover {
  box-shadow: var(--card-hover-shadow);
  border-color: var(--border-brand);
}

.profile-section-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.35rem;
}

.profile-section-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-main);
}

.profile-section-icon-badge {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--bg-accent-subtle);
  color: var(--primary-400);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Account Section Specifics */
.profile-account-form {
  margin-bottom: 1.5rem;
}

.input-action-row {
  display: flex;
  gap: 0.75rem;
}

.input-action-row .form-control {
  flex: 1;
}

.profile-logout-row {
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logout-text-info .logout-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

.logout-text-info .logout-subtext {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn-outline-danger {
  background: transparent;
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
  transition: all var(--transition-fast);
}

.btn-outline-danger:hover {
  background-color: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border-color: #ef4444;
}

/* Preferences & Segmented Controls */
.pref-group {
  margin-bottom: 1.5rem;
}

.pref-group:last-child {
  margin-bottom: 0;
}

.segmented-control {
  display: flex;
  background-color: var(--bg-muted);
  padding: 0.3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  gap: 0.25rem;
}

.segmented-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.6rem 0.8rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all var(--transition-fast);
}

.segmented-btn:hover:not(:disabled) {
  color: var(--text-main);
}

.segmented-btn.active {
  background-color: var(--bg-surface);
  color: var(--primary-400);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .segmented-btn.active {
  background-color: var(--bg-surface-elevated);
  color: var(--primary-300);
}

.segmented-btn.disabled-btn {
  opacity: 0.6;
  cursor: not-allowed;
}

.badge-soon {
  font-size: 0.7rem;
  background: var(--bg-surface);
  color: var(--text-muted);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* More Information Navigation List */
.profile-menu-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.profile-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1rem;
  color: var(--text-main);
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background-color: transparent;
  transition: all var(--transition-fast);
  font-weight: 600;
  font-size: 0.95rem;
}

.menu-link-label {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.menu-link-label svg {
  color: var(--primary-400);
  transition: transform var(--transition-fast);
}

.chevron-icon {
  color: var(--text-subtle);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.profile-menu-link:hover {
  background-color: var(--bg-accent-subtle);
  color: var(--primary-500);
  border-color: var(--border-brand);
}

.profile-menu-link:hover .menu-link-label svg {
  transform: scale(1.1);
}

.profile-menu-link:hover .chevron-icon {
  transform: translateX(3px);
  color: var(--primary-500);
}
