/* ═══════════════════════════════════════════════════════════════
   RoomLooka – Stylesheet
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  --primary:       #2563eb;
  --primary-dark:  #1d4ed8;
  --primary-light: #eff6ff;
  --cyan:          #06b6d4;
  --accent:        #f59e0b;
  --success:       #10b981;
  --danger:        #ef4444;
  --gray-50:       #f8fafc;
  --gray-100:      #f1f5f9;
  --gray-200:      #e2e8f0;
  --gray-300:      #cbd5e1;
  --gray-400:      #94a3b8;
  --gray-500:      #64748b;
  --gray-600:      #475569;
  --gray-700:      #334155;
  --gray-800:      #1e293b;
  --gray-900:      #0f172a;
  --white:         #ffffff;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:        0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -1px rgba(0,0,0,.04);
  --shadow-md:     0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -2px rgba(0,0,0,.04);
  --shadow-lg:     0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     16px;
  --transition:    all .2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Utilities ── */
.hidden { display: none !important; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ══════════════════════════════════════════════════════════
   LOGO
   ══════════════════════════════════════════════════════════ */
.logo-room {
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--gray-700);
  letter-spacing: -0.01em;
}

.logo-looka {
  font-size: 1.35rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.04em;
}

/* ══════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════ */
.header {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-500);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover { color: var(--gray-900); background: var(--gray-100); }

.nav-link--cta {
  background: var(--primary);
  color: var(--white) !important;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(37,99,235,.25);
}

.nav-link--cta:hover {
  background: var(--primary-dark) !important;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(37,99,235,.35);
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════ */
.hero {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(37,99,235,.18) 0%, transparent 70%),
    linear-gradient(160deg, #0f172a 0%, #1e293b 50%, #0f2044 100%);
  color: var(--white);
  padding: 80px 24px 72px;
  text-align: center;
  overflow: hidden;
  position: relative;
}

/* subtle grid overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-inner {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(37,99,235,.25);
  border: 1px solid rgba(99,153,255,.3);
  color: #93c5fd;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  color: #94a3b8;
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.75;
}

.hero-actions { margin-bottom: 40px; }

.btn--hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37,99,235,.4), 0 0 0 1px rgba(255,255,255,.1) inset;
  transition: var(--transition);
  text-decoration: none;
}

.btn--hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,99,235,.5);
}

.hero-steps {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 99px;
  padding: 10px 20px;
}

.hero-step {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: #94a3b8;
}

.hero-step-num {
  width: 20px;
  height: 20px;
  background: rgba(37,99,235,.4);
  color: #93c5fd;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-step-divider {
  color: rgba(255,255,255,.2);
  font-size: 0.75rem;
}

/* ══════════════════════════════════════════════════════════
   HOW IT WORKS
   ══════════════════════════════════════════════════════════ */
.how-section {
  padding: 72px 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.how-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.how-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.025em;
}

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

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

.how-card {
  padding: 28px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  transition: var(--transition);
}

.how-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--gray-300);
}

.how-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.how-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.how-card p {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.65;
}

/* ══════════════════════════════════════════════════════════
   MAIN / TOOL
   ══════════════════════════════════════════════════════════ */
.main { padding: 52px 0 80px; }

/* ── Step header ── */
.step-header { margin-bottom: 32px; }

.step-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.step-badge--success { background: var(--success); }

.step-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.step-header p { color: var(--gray-500); font-size: 1rem; }

/* ── Upload section ── */
.upload-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  margin-bottom: 32px;
}

/* ── Upload room row ── */
.upload-room-row { margin-bottom: 18px; }

.upload-room-row .upload-zone {
  min-height: 200px;
  border: 2px dashed var(--primary);
  background: var(--primary-light);
  border-radius: var(--radius);
}

.upload-room-row .upload-preview img { height: 200px; }

/* ── Upload materials grid ── */
.upload-materials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 640px) {
  .upload-materials-grid { grid-template-columns: 1fr; }
  .upload-section { padding: 24px; }
}

/* ── Upload card ── */
.upload-card {
  position: relative;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow .2s;
}

.upload-card:hover { box-shadow: var(--shadow); }
.upload-card--room { border: none; }

/* ── Card header ── */
.card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.card-header-icon { font-size: 1rem; }

.card-header-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-600);
  flex: 1;
}

.btn-remove-extra {
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 0.72rem;
  color: var(--gray-500);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-remove-extra:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: var(--danger);
}

/* ── Upload card wall (no top radius on zone) ── */
.upload-card--wall .upload-zone {
  border-radius: 0;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: none;
  min-height: 140px;
}

/* ── Upload zone ── */
.upload-zone {
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius);
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  overflow: hidden;
  background: var(--gray-50);
  position: relative;
}

.upload-zone:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.upload-zone.dragover {
  border-color: var(--primary);
  background: #dbeafe;
  transform: scale(1.005);
}

.upload-zone.has-file {
  border-style: solid;
  border-color: var(--success);
  background: #f0fdf4;
}

/* ── Upload placeholder ── */
.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 20px;
  text-align: center;
  pointer-events: none;
}

.upload-icon { font-size: 1.8rem; margin-bottom: 4px; }

.upload-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-700);
}

.upload-sublabel { font-size: 0.77rem; color: var(--gray-400); }

.upload-hint {
  font-size: 0.7rem;
  color: var(--gray-400);
  margin-top: 4px;
  padding: 3px 10px;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  background: var(--white);
}

/* ── Upload preview ── */
.upload-preview { width: 100%; height: 100%; position: relative; }

.upload-preview img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,.55);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}

.remove-btn:hover { background: var(--danger); }

/* ── Target selector ── */
.target-selector {
  padding: 10px 12px;
  border-top: 1px solid var(--gray-100);
  background: var(--white);
}

.target-selector-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 7px;
}

.target-pills { display: flex; flex-wrap: wrap; gap: 5px; }

.target-pill {
  padding: 3px 9px;
  border-radius: 20px;
  border: 1.5px solid var(--gray-200);
  font-size: 0.71rem;
  font-weight: 500;
  cursor: pointer;
  background: var(--white);
  color: var(--gray-600);
  transition: var(--transition);
  line-height: 1.5;
  font-family: inherit;
}

.target-pill:hover { border-color: var(--primary); color: var(--primary); }

.target-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ── Add wall button ── */
.add-wall-row {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.btn-add-wall {
  display: flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 1.5px dashed var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 9px 20px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray-400);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-add-wall:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.btn-add-icon { font-size: 1rem; }

/* ── Validation message ── */
.validation-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fef9c3;
  border: 1px solid #fde047;
  color: #854d0e;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 20px;
}

/* ── Action area ── */
.action-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.action-note { font-size: 0.78rem; color: var(--gray-400); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37,99,235,.3);
}

.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,.4);
}

.btn--primary:active { transform: translateY(0); }
.btn--primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn--large { padding: 15px 36px; font-size: 1rem; }

.btn--secondary {
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}

.btn--secondary:hover { background: var(--gray-200); }

.btn--ghost {
  background: transparent;
  color: var(--gray-500);
  border: 1px solid var(--gray-200);
}

.btn--ghost:hover { background: var(--gray-100); }

/* ── Result section ── */
.result-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  margin-bottom: 32px;
  animation: slideUp .4s ease;
}

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

.result-container {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 768px) {
  .result-container { grid-template-columns: 1fr; }
  .result-section { padding: 24px; }
}

.result-image-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.result-image { width: 100%; display: block; }

.result-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

.result-details h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 14px;
}

/* ── Analysis cards ── */
.analysis-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.analysis-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
}

.analysis-card-header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}

.analysis-card-icon { font-size: 1rem; }

.analysis-card-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-700);
}

.analysis-card-target {
  font-size: 0.67rem;
  background: var(--primary-light);
  color: var(--primary);
  padding: 1px 7px;
  border-radius: 20px;
  font-weight: 600;
  margin-left: auto;
}

.analysis-card-text {
  font-size: 0.78rem;
  color: var(--gray-500);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Result actions ── */
.result-actions { display: flex; flex-direction: column; gap: 9px; }

/* ── Disclaimer ── */
.disclaimer {
  margin-top: 20px;
  padding: 14px 18px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: #0c4a6e;
}

/* ══════════════════════════════════════════════════════════
   LOADING OVERLAY
   ══════════════════════════════════════════════════════════ */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

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

.loading-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 44px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 360px;
  width: 90%;
}

.loading-animation {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.loading-logo { font-size: 1.6rem; line-height: 1; }

.loading-dots { display: flex; gap: 6px; }

.loading-dots span {
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
  animation: dot-bounce .8s ease-in-out infinite;
}

.loading-dots span:nth-child(2) { animation-delay: .16s; }
.loading-dots span:nth-child(3) { animation-delay: .32s; }

@keyframes dot-bounce {
  0%, 80%, 100% { transform: scale(0); opacity: .4; }
  40% { transform: scale(1); opacity: 1; }
}

.loading-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 18px;
}

.loading-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.loading-step {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--gray-400);
  background: var(--gray-50);
  transition: var(--transition);
}

.loading-step.active {
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 500;
}

.loading-step.done { color: var(--success); background: #f0fdf4; }
.loading-step .step-icon { font-size: 0.95rem; }

/* ── Progress bar ── */
.progress-bar-wrap {
  width: 100%;
  background: var(--gray-100);
  border-radius: 99px;
  height: 4px;
  margin-top: 16px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  border-radius: 99px;
  width: 0%;
  transition: width 1s linear;
}

/* ── Usage badge ── */
.usage-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 20px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  white-space: nowrap;
}

.usage-badge.badge--warn {
  background: #fef9c3;
  border-color: #fde047;
  color: #854d0e;
}

.usage-badge.badge--danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
  cursor: pointer;
}

/* ══════════════════════════════════════════════════════════
   HEADER USER INFO
   ══════════════════════════════════════════════════════════ */
.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-700);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-logout {
  font-size: 0.78rem;
  color: var(--gray-500);
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  font-weight: 500;
}

.btn-logout:hover { background: var(--gray-100); color: var(--gray-700); }

/* ══════════════════════════════════════════════════════════
   AUTH MODAL
   ══════════════════════════════════════════════════════════ */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn .2s ease;
}

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

@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: cardUp .25s ease;
}

@keyframes cardUp {
  from { opacity:0; transform:translateY(-16px) scale(.97); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}

.auth-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--gray-400);
  cursor: pointer;
  transition: color .15s;
  line-height: 1;
  padding: 4px;
}

.auth-close:hover { color: var(--gray-700); }

.auth-header { text-align: center; margin-bottom: 24px; }

.auth-logo {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 1.5rem;
  line-height: 1;
}

.auth-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.5;
}

.auth-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.82rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

.auth-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.82rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

.auth-form { display: flex; flex-direction: column; gap: 14px; }

.form-group { display: flex; flex-direction: column; gap: 5px; }

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-700);
}

.form-input {
  padding: 10px 13px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--gray-800);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  background: var(--white);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.form-input::placeholder { color: var(--gray-400); }

.btn-auth {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 4px;
  box-shadow: 0 4px 14px rgba(37,99,235,.3);
}

.btn-auth:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-auth:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.auth-toggle {
  text-align: center;
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--gray-500);
}

.auth-toggle a {
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
.footer {
  background: var(--gray-900);
  padding: 40px 0;
  color: var(--gray-400);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand { display: flex; flex-direction: column; gap: 6px; }

.footer-brand .logo-room { font-size: 1.2rem; color: #94a3b8; }
.footer-brand .logo-looka { font-size: 1.2rem; }

.footer-tagline {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.footer-meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-meta p { font-size: 0.8rem; }
.footer-meta strong { color: var(--gray-300); }
.footer-copy { font-size: 0.75rem; color: var(--gray-600); }

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
  .header-nav .nav-link:not(.nav-link--cta) { display: none; }
}
