/* ═══════════════════════════════════════════
   SCAN FOLIO — Core Styles
   Modern dark theme with glassmorphism
   ═══════════════════════════════════════════ */

:root {
  --bg-primary: #0a0a1a;
  --bg-secondary: #0f0f23;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --bg-input: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.5);
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-dark: #4f46e5;
  --accent2: #8b5cf6;
  --pink: #f43f5e;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
  --radius: 0.75rem;
  --radius-lg: 1.25rem;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ═══════ UTILITIES ═══════ */
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.8125rem; }
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════ BUTTONS ═══════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn .material-icons-round { font-size: 1.125rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-outline:hover:not(:disabled) {
  background: var(--bg-card-hover);
  border-color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-card); }

.btn-danger { background: var(--error); color: white; }
.btn-danger:hover:not(:disabled) { background: #dc2626; }

.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
.btn-sm .material-icons-round { font-size: 1rem; }

.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }
.btn-lg .material-icons-round { font-size: 1.25rem; }

.btn-block { width: 100%; justify-content: center; }

/* ═══════ FORMS ═══════ */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.375rem;
}

.form-input, .select-input, .form-textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.875rem;
  transition: all var(--transition);
}
.form-input:focus, .select-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }

.form-textarea { resize: vertical; min-height: 100px; }
.code-editor { font-family: 'Fira Code', 'Consolas', monospace; font-size: 0.8125rem; line-height: 1.5; }

.select-input { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%2364748b'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; padding-right: 2rem; }
.select-input option { background: var(--bg-secondary); color: var(--text-primary); }

.input-icon {
  position: relative;
}
.input-icon .material-icons-round {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.125rem;
  color: var(--text-muted);
  pointer-events: none;
}
.input-icon input { padding-left: 2.5rem; }

.form-row { display: flex; gap: 1rem; }
@media (max-width: 640px) { .form-row { flex-direction: column; gap: 0; } }

.form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: 1.5rem;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.form-check input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--accent);
}

.file-upload {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}
.file-upload:hover { border-color: var(--accent); background: var(--bg-card); }
.file-upload .material-icons-round { font-size: 2.5rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.file-upload p { color: var(--text-muted); font-size: 0.875rem; }

.file-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  margin-top: 0.5rem;
  font-size: 0.8125rem;
}

/* ═══════ NAVBAR ═══════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.75rem 0;
  transition: all var(--transition);
  background: rgba(10, 10, 26, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled { border-bottom-color: var(--border); }

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.brand-icon .material-icons-round { font-size: 1.25rem; }
.brand-text {
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: -0.025em;
}
.brand-text strong { font-weight: 800; }

.nav-links {
  display: flex;
  gap: 0.25rem;
}
.nav-link {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.nav-link:hover { color: var(--text-primary); background: var(--bg-card); }
.nav-link.active { color: var(--accent-light); background: rgba(99, 102, 241, 0.1); }

.nav-actions { display: flex; align-items: center; gap: 0.5rem; }

.user-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: white;
}
.user-name { font-size: 0.875rem; font-weight: 600; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--transition);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
    display: none;
  }
  .nav-links.open { display: flex; }
}

/* ═══════ HERO ═══════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 20s ease-in-out infinite;
}
.orb-1 { width: 500px; height: 500px; background: #6366f1; top: -10%; left: -10%; }
.orb-2 { width: 400px; height: 400px; background: #8b5cf6; bottom: -5%; right: -5%; animation-delay: -7s; }
.orb-3 { width: 300px; height: 300px; background: #f43f5e; top: 40%; left: 50%; animation-delay: -14s; opacity: 0.2; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  flex: 1;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 2rem;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--accent-light);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero-badge .material-icons-round { font-size: 1rem; }

.hero-title {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.stat-divider { width: 1px; height: 40px; background: var(--border); }
.stat-value { display: block; font-size: 1.5rem; font-weight: 800; }
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

.hero-visual {
  display: none;
}

@media (min-width: 1024px) {
  .hero { display: grid; grid-template-columns: 1fr 400px; gap: 3rem; max-width: 1200px; margin: 0 auto; }
  .hero-visual { display: flex; align-items: center; justify-content: center; }
}

.phone-mockup {
  width: 280px;
  height: 560px;
  background: #1a1a2e;
  border-radius: 2.5rem;
  border: 3px solid rgba(255,255,255,0.1);
  padding: 12px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: #0a0a1a;
  border-radius: 0 0 1rem 1rem;
  z-index: 2;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  border-radius: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.mock-qr {
  width: 200px;
  height: 200px;
  background: white;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* ═══════ SECTIONS ═══════ */
.section { padding: 5rem 0; }
.section-dark { background: var(--bg-secondary); }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-badge {
  display: inline-block;
  padding: 0.25rem 0.875rem;
  border-radius: 2rem;
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-light);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}
.section-desc { color: var(--text-secondary); max-width: 500px; margin: 0 auto; }

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.15);
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.feature-card h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.6; }

/* Steps */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.step {
  text-align: center;
  max-width: 240px;
}
.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 1rem;
  color: white;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--text-secondary); font-size: 0.875rem; }
.step-arrow { color: var(--text-muted); }

@media (max-width: 768px) {
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
}

/* ═══════ PAGE SYSTEM ═══════ */
.page { display: none; }
.page.active { display: block; }

.page-header {
  padding: 7rem 0 2rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.page-title { font-size: 2rem; font-weight: 800; margin-bottom: 0.25rem; }
.page-desc { color: var(--text-secondary); }

/* ═══════ STEPPER ═══════ */
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.5rem;
}
.stepper-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}
.stepper-step.active { color: var(--accent-light); }
.stepper-step.completed { color: var(--success); }
.stepper-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8125rem;
}
.stepper-step.active .stepper-circle { background: var(--accent); border-color: var(--accent); color: white; }
.stepper-step.completed .stepper-circle { background: var(--success); border-color: var(--success); color: white; }
.stepper-line { width: 60px; height: 2px; background: var(--border); margin: 0 0.75rem; }

@media (max-width: 640px) { .stepper-step span:not(.stepper-circle) { display: none; } }

/* ═══════ GENERATE STEPS ═══════ */
.gen-step { display: none; animation: fadeIn 0.4s ease; }
.gen-step.active { display: block; }

.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.type-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.type-card:hover {
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.type-card.selected {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.08);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.type-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.type-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.type-card p { font-size: 0.8125rem; color: var(--text-muted); }

/* Form card */
.form-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.form-card-header {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
}
.form-card-header .material-icons-round { font-size: 2rem; }
.form-card-header h3 { font-weight: 700; }
.form-card-header p { font-size: 0.875rem; color: var(--text-muted); }

.entry-form { padding: 1.5rem; }

/* Result card */
.result-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.result-success {
  padding: 2rem;
  text-align: center;
  color: var(--success);
  border-bottom: 1px solid var(--border);
}
.result-success .material-icons-round { font-size: 3rem; margin-bottom: 0.5rem; }
.result-success h2 { font-size: 1.5rem; color: var(--text-primary); }

.result-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  padding: 2rem;
}
@media (max-width: 768px) {
  .result-grid { grid-template-columns: 1fr; }
}

.qr-display { text-align: center; }
.qr-frame {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  display: inline-block;
  margin-bottom: 1rem;
}
.qr-frame img { width: 250px; height: 250px; image-rendering: pixelated; }
.qr-actions { display: flex; gap: 0.5rem; justify-content: center; margin-bottom: 1rem; }
.qr-size-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.qr-size-control input[type="range"] {
  flex: 1;
  accent-color: var(--accent);
}

.result-details h3 { font-weight: 700; margin-bottom: 1rem; }
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}
.detail-label { font-size: 0.8125rem; color: var(--text-muted); white-space: nowrap; }
.detail-value { font-size: 0.875rem; text-align: right; word-break: break-all; }
.detail-link { color: var(--accent-light); }
.detail-link:hover { text-decoration: underline; }

.result-payload { margin-top: 1rem; }
.result-actions { display: flex; gap: 0.5rem; margin-top: 1.5rem; }

/* ═══════ LOGIN ═══════ */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.login-header { text-align: center; margin-bottom: 2rem; }
.login-header h2 { font-size: 1.5rem; margin-top: 1rem; margin-bottom: 0.25rem; }
.login-header p { color: var(--text-muted); font-size: 0.875rem; }
.login-header .brand-icon { margin: 0 auto; width: 48px; height: 48px; }
.login-header .brand-icon .material-icons-round { font-size: 1.5rem; }

.login-error {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius);
  color: var(--error);
  font-size: 0.875rem;
  text-align: center;
}

.login-back {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  justify-content: center;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.login-back:hover { color: var(--accent-light); }
.login-back .material-icons-round { font-size: 1rem; }

/* ═══════ IMAGE UPLOAD FIELD ═══════ */
.image-upload-field { width: 100%; }
.image-file-input { display: none; }
.image-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.image-upload-area:hover { border-color: var(--accent); background: rgba(99, 102, 241, 0.05); }
.image-upload-placeholder .material-icons-round { font-size: 2.5rem; color: var(--accent); margin-bottom: 0.5rem; }
.image-upload-placeholder p { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 0.25rem; }
.image-upload-placeholder small { font-size: 0.75rem; color: var(--text-muted); }
.image-upload-preview { position: relative; display: inline-block; }
.image-upload-preview img { max-width: 100%; max-height: 200px; border-radius: var(--radius); object-fit: contain; }
.image-remove-btn {
  position: absolute; top: 6px; right: 6px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7); border: none;
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.image-remove-btn:hover { background: var(--error); }
.image-remove-btn .material-icons-round { font-size: 1rem; }

/* ═══════ CONTACT SECTION ═══════ */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-info-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.contact-info-card:hover { background: var(--bg-card-hover); }
.contact-info-card h4 { color: var(--text-primary); font-size: 0.9375rem; margin-bottom: 0.125rem; }
.contact-info-card p { color: var(--text-secondary); font-size: 0.8125rem; }
.contact-info-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent);
  flex-shrink: 0;
}
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.file-upload-area {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.file-upload-area:hover, .file-upload-area.dragover {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.05);
}
.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.file-upload-content { color: var(--text-muted); }
.file-upload-content .material-icons-round { font-size: 2rem; color: var(--accent); margin-bottom: 0.5rem; }
.file-upload-content p { font-size: 0.875rem; }
.file-upload-content small { font-size: 0.75rem; color: var(--text-muted); }
.file-browse { color: var(--accent); font-weight: 600; }
.file-upload-selected {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  font-size: 0.875rem;
}
.file-upload-selected .material-icons-round { color: var(--accent); font-size: 1.25rem; }
.file-remove {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: var(--transition);
}
.file-remove:hover { color: var(--error); background: rgba(239, 68, 68, 0.1); }
.contact-submit { width: 100%; margin-top: 0.5rem; }

@media (max-width: 768px) {
  .contact-wrapper { grid-template-columns: 1fr; }
  .contact-form-row { grid-template-columns: 1fr; }
}

/* ═══════ FOOTER ═══════ */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.5rem; }
.footer-text { color: var(--text-muted); font-size: 0.8125rem; }

/* ═══════ TOAST ═══════ */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 300px;
  animation: slideIn 0.3s ease;
  font-size: 0.875rem;
}
.toast.toast-success { border-left: 3px solid var(--success); }
.toast.toast-error { border-left: 3px solid var(--error); }
.toast.toast-info { border-left: 3px solid var(--accent); }
.toast .material-icons-round { font-size: 1.25rem; }
.toast.toast-success .material-icons-round { color: var(--success); }
.toast.toast-error .material-icons-round { color: var(--error); }
.toast.toast-info .material-icons-round { color: var(--accent); }
.toast-close { margin-left: auto; cursor: pointer; color: var(--text-muted); background: none; border: none; font-size: 1.125rem; }

/* ═══════ MODAL ═══════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}
.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}
.modal-lg { max-width: 780px; }
.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 { font-weight: 700; }
.modal-body { padding: 1.5rem; }
.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* ═══════ LOADING ═══════ */
.loading-spinner {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}
.loading-spinner p { margin-top: 0.5rem; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }

/* ═══════ ANIMATIONS ═══════ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ═══════ SCROLLBAR ═══════ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 640px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 1rem; }
  .features-grid { grid-template-columns: 1fr; }
  .result-grid { padding: 1.25rem; }
  .qr-frame { padding: 1rem; }
  .qr-frame img { width: 200px; height: 200px; }
}
