@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-primary: #0b0f19;
  --bg-surface: #131b2e;
  --bg-card: rgba(23, 32, 54, 0.7);
  --bg-card-hover: rgba(30, 42, 71, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(99, 102, 241, 0.3);
  
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.15);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(139, 92, 246, 0.08) 0%, transparent 40%);
  min-height: 100vh;
}

/* Header & Nav */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  background: rgba(19, 27, 46, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, #60a5fa, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 0.7rem;
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  border: 1px solid rgba(99, 102, 241, 0.4);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nav-tabs {
  display: flex;
  gap: 0.5rem;
  background: rgba(11, 15, 25, 0.6);
  padding: 0.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(139, 92, 246, 0.3));
  color: #fff;
  border: 1px solid rgba(99, 102, 241, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Layout Main */
.main-container {
  max-width: 1440px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

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

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

/* Grid & Cards */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: all 0.25s ease;
}

.card:hover {
  border-color: var(--border-highlight);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}

/* Interactive Studio & Router Flow Visualizer */
.router-visualizer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(11, 15, 25, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow-x: auto;
}

.visual-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  min-width: 110px;
  text-align: center;
  transition: all 0.3s ease;
}

.visual-node.active {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.15);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
  transform: scale(1.05);
}

.node-icon {
  font-size: 1.5rem;
}

.node-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.node-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.visual-connector {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  margin: 0 0.5rem;
}

.visual-connector.active::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  animation: pulseConnector 1.2s infinite;
}

@keyframes pulseConnector {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Chat Input & Messages */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 480px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding-right: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.message-bubble {
  max-width: 85%;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  line-height: 1.5;
}

.message-user {
  align-self: flex-end;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.message-agent {
  align-self: flex-start;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-bottom-left-radius: 4px;
}

.agent-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
  background: rgba(6, 182, 212, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.chat-input-bar {
  display: flex;
  gap: 0.75rem;
}

.chat-input {
  flex: 1;
  background: rgba(11, 15, 25, 0.9);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.chat-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.25);
}

.btn {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: #fff;
  border: none;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

/* Quick Prompt Suggestions */
.quick-prompts {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.prompt-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.prompt-chip:hover {
  color: #fff;
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
}

/* Agents Explorer Grid */
.agent-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  transition: all 0.25s ease;
}

.agent-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-purple);
  box-shadow: 0 10px 20px rgba(139, 92, 246, 0.15);
}

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

.agent-icon {
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}

.agent-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.agent-domain {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Marketplace AI Bundle View */
.shopping-workflow-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.workflow-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(11, 15, 25, 0.6);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-emerald);
}

.step-num {
  background: var(--accent-emerald);
  color: #000;
  font-weight: 800;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.bundle-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.bundle-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Code Snippet / API Sandbox */
.code-block {
  background: #090d16;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #a7f3d0;
  overflow-x: auto;
  white-space: pre-wrap;
}

/* Student Memory Heatmap */
.mastery-bar-container {
  margin-top: 0.5rem;
}

.mastery-bar-bg {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.mastery-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}

.mastery-low { background: var(--accent-rose); }
.mastery-med { background: var(--accent-amber); }
.mastery-high { background: var(--accent-emerald); }

/* Metrics Badge */
.metric-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.metric-val {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.metric-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ============================================================ */
/* AUTH & IDENTITY SYSTEM STYLES */
/* ============================================================ */

/* Modal Backdrop Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 8, 15, 0.82);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1.5rem;
  animation: fadeIn 0.25s ease-out;
}

.modal-overlay.hidden {
  display: none !important;
}

.modal-card {
  background: rgba(19, 27, 46, 0.95);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), var(--shadow-glow);
  position: relative;
}

.modal-card.modal-wide {
  max-width: 760px;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(244, 63, 94, 0.3);
  color: #fff;
}

/* Input Fields & Prefix */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.input-with-prefix {
  display: flex;
  align-items: center;
  background: rgba(11, 15, 25, 0.9);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.prefix-flag {
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-amber);
  border-right: 1px solid var(--border-color);
}

.input-with-prefix input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  outline: none;
}

.otp-input-box {
  width: 100%;
  background: rgba(11, 15, 25, 0.9);
  border: 2px solid var(--accent-purple);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 1.8rem;
  letter-spacing: 0.6rem;
  text-align: center;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  outline: none;
}

.full-width {
  width: 100%;
  margin-top: 0.75rem;
}

.status-msg {
  min-height: 24px;
  font-size: 0.85rem;
  margin: 0.5rem 0;
}

.text-info { color: var(--accent-cyan); }
.text-success { color: var(--accent-emerald); }
.text-danger { color: var(--accent-rose); }
.text-muted { color: var(--text-muted); }

/* User Badge Container */
.user-badge-container {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.user-role-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-student { background: rgba(59, 130, 246, 0.25); color: var(--accent-blue); }
.badge-parent { background: rgba(16, 185, 129, 0.25); color: var(--accent-emerald); }
.badge-teacher { background: rgba(245, 158, 11, 0.25); color: var(--accent-amber); }
.badge-platform_admin { background: rgba(244, 63, 94, 0.25); color: var(--accent-rose); }

/* Role Selection Grid */
.role-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.role-card-select {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.25s ease;
  background: rgba(255, 255, 255, 0.02);
}

.role-card-select:hover {
  transform: translateY(-4px);
  border-color: var(--accent-purple);
  box-shadow: 0 10px 20px rgba(139, 92, 246, 0.2);
}

.role-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Toast Notifications */
.edunova-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(19, 27, 46, 0.95);
  border: 1px solid var(--accent-emerald);
  color: #fff;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 2000;
  animation: slideUp 0.3s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ============================================================ */
/* LANDING PAGE, APP HUB DRAWER, IMAGES & CONTACT STYLING */
/* ============================================================ */

.landing-hero {
  padding: 3rem 2rem;
  background: linear-gradient(180deg, rgba(19, 27, 46, 0.9) 0%, rgba(11, 15, 25, 0.95) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-card);
}

.landing-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.landing-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.25;
  background: linear-gradient(135deg, #60a5fa, #c084fc, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.landing-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.landing-img-banner {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(99, 102, 241, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease;
}

.landing-img-banner:hover {
  transform: scale(1.02);
}

.img-frame-caption {
  font-size: 0.8rem;
  color: var(--accent-cyan);
  text-align: center;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
}

.stats-counter-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat-item-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.stat-item-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-emerald);
}

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

.landing-doc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.landing-doc-card h2 {
  font-size: 1.75rem;
  color: #fff;
  margin: 2rem 0 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}

.landing-doc-card h3 {
  font-size: 1.3rem;
  color: var(--accent-cyan);
  margin: 1.5rem 0 0.75rem 0;
}

.landing-doc-card p {
  color: #d1d5db;
  margin-bottom: 1.1rem;
  font-size: 0.98rem;
}

.landing-doc-card ul {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: #d1d5db;
}

.callout-box {
  background: rgba(99, 102, 241, 0.1);
  border-left: 4px solid var(--accent-purple);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
}

.contact-section-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-icon {
  font-size: 1.5rem;
  background: rgba(99, 102, 241, 0.15);
  padding: 0.6rem;
  border-radius: 50%;
  color: var(--accent-cyan);
}

.app-hub-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 15, 25, 0.98);
  backdrop-filter: blur(20px);
  z-index: 5000;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.app-hub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(19, 27, 46, 0.95);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.app-hub-nav-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.85rem 1.5rem;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid var(--border-color);
}

.app-hub-body {
  padding: 2rem;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 900px) {
  .landing-hero-grid, .contact-section-grid {
    grid-template-columns: 1fr;
  }
  .stats-counter-row {
    grid-template-columns: 1fr 1fr;
  }
  .landing-title {
    font-size: 1.75rem;
  }
  .nav-tabs-desktop {
    display: none;
  }
  .app-header {
    padding: 0.85rem 1rem;
  }
}

/* ============================================================
 * UNIVERSAL APP DOWNLOAD CENTER & SMART INSTALL STYLES
 * ============================================================ */

.download-hero-box {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.device-detected-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  animation: fadeIn 0.3s ease;
}

.download-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.platform-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.platform-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-purple);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.25);
}

.platform-card.recommended-card {
  border: 2px solid var(--accent-cyan);
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.12), rgba(15, 23, 42, 0.95));
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.25);
}

.platform-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.platform-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.platform-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

/* SMART BOTTOM INSTALL BANNER */
.smart-install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.96);
  border-top: 1px solid var(--accent-purple);
  backdrop-filter: blur(16px);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.8);
  z-index: 4500;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  animation: slideUp 0.4s ease-out;
}

.smart-install-banner.hidden {
  display: none !important;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.banner-icon {
  font-size: 2rem;
}

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

/* iOS Step-by-Step Installation Guide */
.ios-guide-step-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.ios-step-number {
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-purple));
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* QR Code Container */
.qr-code-box {
  background: #ffffff;
  padding: 1rem;
  border-radius: 12px;
  display: inline-block;
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
  margin: 1rem 0;
}

.qr-code-box canvas, .qr-code-box img {
  display: block;
  max-width: 180px;
  height: auto;
}

@media (max-width: 640px) {
  .smart-install-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 0.85rem 1rem;
  }
  .banner-content {
    flex-direction: column;
    gap: 0.4rem;
  }
  .banner-actions {
    justify-content: center;
    margin-top: 0.5rem;
  }
}

/* 6-DIGIT OTP INPUT GRID STYLES */
.otp-digit-box {
  width: 48px;
  height: 56px;
  background: rgba(11, 15, 25, 0.9);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  color: var(--accent-cyan);
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  font-family: var(--font-mono);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.otp-digit-box:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
  background: rgba(20, 28, 48, 0.95);
  transform: translateY(-2px);
}

.otp-digit-box.filled {
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.08);
}

/* ============================================================
 * OPTION 04: PREMIUM COURSE MARKETPLACE STYLE STYLES
 * ============================================================ */

.course-marketplace-hero {
  background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, rgba(15, 23, 42, 0.98) 70%),
              radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.12) 0%, rgba(11, 15, 25, 1) 70%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.marketplace-hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 1rem;
}

/* Course Search Box & Filter Pills */
.course-search-box {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 1.25rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  max-width: 720px;
}

.search-input-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(11, 15, 25, 0.9);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.5rem 0.4rem 1rem;
  margin-bottom: 1rem;
}

.search-input-group input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1rem;
  outline: none;
}

.category-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill-btn {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  color: #fff;
  border-color: var(--accent-purple);
}

.pill-btn.active {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.35);
}

/* Option 04 Course Card Styling */
.course-card-option4 {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.course-card-option4:hover {
  transform: translateY(-6px);
  border-color: var(--accent-cyan);
  box-shadow: 0 15px 35px rgba(6, 182, 212, 0.2);
}

.course-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  z-index: 10;
}

.course-card-badge.bestseller { background: #ef4444; color: #fff; }
.course-card-badge.popular { background: #10b981; color: #fff; }
.course-card-badge.premium { background: #a855f7; color: #fff; }
.course-card-badge.international { background: #06b6d4; color: #fff; }

.course-card-img-placeholder {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-card-category {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent-cyan);
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
}

.course-card-title {
  font-size: 1.1rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.course-card-instructor {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.course-card-rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
}

.course-card-rating .stars { color: #f59e0b; }
.course-card-rating .rating-num { font-weight: 800; color: #fff; }
.course-card-rating .enrolled { color: var(--text-muted); }

.course-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.75rem;
}

.course-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.price-current {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-emerald);
  font-family: var(--font-mono);
}

.price-original {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Pillar Feature Box */
.pillar-feature-box {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.pillar-feature-box:hover {
  border-color: var(--accent-purple);
  background: rgba(30, 41, 59, 0.9);
}

.feature-box-icon {
  font-size: 1.8rem;
  line-height: 1;
}

/* Unlimited Access Banner */
.unlimited-access-banner {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.95), rgba(88, 28, 135, 0.9));
  border: 1px solid rgba(234, 179, 8, 0.4);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(234, 179, 8, 0.15);
}

.unlimited-banner-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: center;
  gap: 2rem;
}

.gold-badge {
  background: rgba(234, 179, 8, 0.2);
  border: 1px solid rgba(234, 179, 8, 0.5);
  color: #fde047;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  display: inline-block;
}

@media (max-width: 900px) {
  .marketplace-hero-title {
    font-size: 2rem;
  }
  .unlimited-banner-grid {
    grid-template-columns: 1fr;
  }
}





