/* Core Design System & Tokens */
:root {
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', sans-serif;

  /* Color Palette - Premium Dark Theme */
  --bg-deep: HSL(222, 47%, 4%);
  --bg-card: rgba(20, 24, 38, 0.4);
  --border-card: rgba(255, 255, 255, 0.07);
  --text-primary: HSL(0, 0%, 100%);
  --text-secondary: HSL(215, 20%, 75%);
  --text-muted: HSL(215, 12%, 50%);

  /* Status Colors */
  --color-success: HSL(145, 63%, 49%);
  --color-success-bg: rgba(16, 185, 129, 0.1);
  --color-warning: HSL(38, 92%, 50%);
  --color-warning-bg: rgba(245, 158, 11, 0.1);
  --color-danger: HSL(350, 89%, 60%);
  --color-danger-bg: rgba(239, 68, 68, 0.1);

  /* Brand Accents */
  --accent-cyan: HSL(180, 100%, 50%);
  --accent-purple: HSL(270, 95%, 65%);
  --accent-blue: HSL(210, 100%, 50%);

  /* Animation Timings */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Background Ambient Glows */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.25;
  pointer-events: none;
}

.bg-glow-1 {
  width: 500px;
  height: 500px;
  top: -200px;
  right: -100px;
  background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
}

.bg-glow-2 {
  width: 600px;
  height: 600px;
  bottom: -200px;
  left: -200px;
  background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
}

.bg-glow-3 {
  width: 400px;
  height: 400px;
  top: 40%;
  left: 30%;
  background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
  opacity: 0.1;
}

/* Layout Container */
.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: var(--bg-deep);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  letter-spacing: -1px;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--accent-cyan);
}

.header-tag {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Views Management */
.view-section {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.view-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Glassmorphism Card styling */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 2.2rem;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* Grids & Layouts */
.grid-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.margin-top {
  margin-top: 2.5rem;
}

.flex-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* Presentation Side */
.presentation-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #ffffff 40%, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.value-props {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.prop-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.prop-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.6rem;
  border-radius: 10px;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

.prop-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

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

/* Form Panel */
.panel-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.panel-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Form Fields */
.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.input-prefix {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

input[type="number"] {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 500;
  outline: none;
  transition: var(--transition-smooth);
}

input[type="number"]:focus {
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.15);
}

select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  outline: none;
  transition: var(--transition-smooth);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(255,255,255,0.6)' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.1rem;
  cursor: pointer;
}

select:focus {
  border-color: var(--accent-cyan);
  background-color: rgba(15, 16, 22, 0.98);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.15);
}

select option {
  background-color: #0f1016;
  color: var(--text-primary);
  padding: 0.5rem;
}

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

/* Buttons */
.btn-primary {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: var(--bg-deep);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 255, 255, 0.2);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 255, 255, 0.35);
  background: linear-gradient(135deg, #00ffff, #0088ff);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}

/* VIEW 2: Dashboard Header */
.dashboard-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.dashboard-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
}

/* Ratios Grid */
.ratios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.ratio-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
}

.ratio-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.ratio-card.status-healthy {
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: 0 8px 32px 0 rgba(16, 185, 129, 0.03);
}

.ratio-card.status-warning {
  border-color: rgba(245, 158, 11, 0.25);
  box-shadow: 0 8px 32px 0 rgba(245, 158, 11, 0.03);
}

.ratio-card.status-danger {
  border-color: rgba(239, 68, 68, 0.25);
  box-shadow: 0 8px 32px 0 rgba(239, 68, 68, 0.03);
}

.ratio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.ratio-header h3 {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.status-badge.healthy {
  background-color: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.warning {
  background-color: var(--color-warning-bg);
  color: var(--color-warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-badge.danger {
  background-color: var(--color-danger-bg);
  color: var(--color-danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.ratio-value-container {
  margin: 1.5rem 0;
}

.ratio-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  display: block;
  margin-bottom: 0.5rem;
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
  border-radius: 3px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.ratio-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Break-even Simulator */
.card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.card-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.simulator-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.slider-label span {
  color: var(--text-secondary);
}

.slider-label strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Custom range inputs */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
  transition: var(--transition-smooth);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.break-even-display {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.be-stat span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  display: block;
}

.be-stat h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 0.25rem;
}

.be-summary {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Tabs & Advisor */
.tabs-header {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.3rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

.tab-btn {
  flex: 1;
  padding: 0.6rem;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tab-btn.active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Advisor Panel Details */
.advisor-card {
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--accent-blue);
  padding: 1rem;
  border-radius: 0 10px 10px 0;
  margin-bottom: 1rem;
}

.advisor-card.success { border-left-color: var(--color-success); }
.advisor-card.warning { border-left-color: var(--color-warning); }
.advisor-card.danger { border-left-color: var(--color-danger); }

.advisor-card h5 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  display: flex;
  justify-content: space-between;
}

.advisor-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* SOX tab styling */
.sox-intro {
  margin-bottom: 1.5rem;
}

.sox-badge {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.sox-intro h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.sox-intro p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.sox-controls-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

/* Custom Scrollbar for SOX list */
.sox-controls-list::-webkit-scrollbar {
  width: 4px;
}

.sox-controls-list::-webkit-scrollbar-track {
  background: transparent;
}

.sox-controls-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.sox-item {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 0.9rem;
}

.sox-item-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.sox-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-cyan);
  background: rgba(0, 255, 255, 0.05);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 255, 255, 0.15);
}

.sox-item-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.sox-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Footer styling */
.app-footer-text {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 1.5rem;
}

/* Responsiveness */
@media (max-width: 900px) {
  .grid-two-cols {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 600px) {
  .form-grid-2, .form-grid-3 {
    grid-template-columns: 1fr;
  }
  
  .app-header {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
  
  .dashboard-header {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 1rem;
  }
}

.ratio-money {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  opacity: 0.9;
  margin-top: 0.15rem;
  display: block;
}

/* Authentication & Paywall Panels */
.login-panel, .paywall-panel {
  max-width: 480px;
  margin: 4rem auto;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.login-header, .paywall-header {
  text-align: center;
}

.login-header h2, .paywall-header h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.login-header p, .paywall-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.login-actions, .paywall-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.btn-google {
  background: #ffffff !important;
  color: #1a1a1a !important;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1) !important;
}

.btn-google:hover {
  background: #f5f5f5 !important;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15) !important;
  transform: translateY(-2px);
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  gap: 1rem;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.input-text {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  outline: none;
  text-align: center;
  transition: var(--transition-smooth);
}

.input-text:focus {
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.06);
}

.paywall-lock-icon {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(239, 68, 68, 0.2);
  margin: 0 auto;
}

.price-box {
  background: rgba(0, 255, 255, 0.03);
  border: 1px solid rgba(0, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.price-amount {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--accent-cyan);
}

.price-period {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: left;
}

.features-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary-text {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary-text:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

/* Connectivity Status Indicator */
.connectivity-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: help;
}

.connectivity-status.online {
  color: var(--color-success);
  border-color: rgba(16, 185, 129, 0.2);
  background: rgba(16, 185, 129, 0.02);
}

.connectivity-status.online .status-dot {
  background-color: var(--color-success);
  box-shadow: 0 0 8px var(--color-success);
  animation: pulse-green 2s infinite;
}

.connectivity-status.offline {
  color: var(--color-warning);
  border-color: rgba(245, 158, 11, 0.2);
  background: rgba(245, 158, 11, 0.02);
}

.connectivity-status.offline .status-dot {
  background-color: var(--color-warning);
  box-shadow: 0 0 8px var(--color-warning);
  animation: pulse-orange 2s infinite;
}

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

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes pulse-orange {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* Modal de Registro y OTP */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 1.5rem;
}

.modal-panel {
  max-width: 440px;
  width: 100%;
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(20, 20, 30, 0.8) !important;
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.8rem;
  line-height: 1.4;
}


.otp-input {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 12px !important;
  border-radius: 8px !important;
  transition: all 0.3s ease;
}

.otp-input:focus {
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.15) !important;
}

.btn-secondary-text {
  background: transparent;
  border: none;
  color: var(--accent-cyan);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 5px 10px;
}

.btn-secondary-text:hover:not(:disabled) {
  opacity: 0.8;
  text-decoration: underline;
}

.btn-secondary-text:disabled {
  color: var(--text-muted);
  cursor: not-allowed;
}

/* Landing Layout Adaptations */
.login-landing-container {
  min-height: 70vh;
}

.value-props .prop-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.value-props .prop-icon {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  padding: 8px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-props h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.value-props p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Estilo unificado para inputs de texto y teléfono del modal */
.modal-panel input[type="text"],
.modal-panel input[type="tel"] {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 500;
  outline: none;
  transition: var(--transition-smooth);
  box-sizing: border-box;
}

.modal-panel input[type="text"]:focus,
.modal-panel input[type="tel"]:focus {
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.15);
}

/* Modificar el contenedor del teléfono para usar flexbox limpio */
.phone-input-container {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
}

.phone-prefix-tag {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 1rem;
  pointer-events: none;
  z-index: 10;
}

/* Input de teléfono con padding izquierdo compensado para el prefijo '+52 ' */
.modal-panel input#reg-phone {
  padding-left: 3.2rem !important;
}
