/* ============================================================
   VacationMonitor — Design System
   ============================================================ */

/* ---- Tokens ----------------------------------------------- */
:root {
  --c-primary:        #2563eb;
  --c-primary-hover:  #1d4ed8;
  --c-primary-light:  #eff6ff;
  --c-primary-ring:   rgba(37,99,235,.15);
  --c-accent:         #f97316;
  --c-accent-light:   #fff7ed;
  --c-success:        #16a34a;
  --c-success-bg:     #f0fdf4;
  --c-warning:        #d97706;
  --c-warning-bg:     #fffbeb;
  --c-danger:         #ef4444;
  --c-danger-hover:   #dc2626;
  --c-danger-bg:      #fef2f2;

  --c-bg:       #f8fafc;
  --c-surface:  #ffffff;
  --c-border:   #e2e8f0;
  --c-border-2: #cbd5e1;

  --c-text:       #0f172a;
  --c-text-muted: #64748b;
  --c-text-light: #94a3b8;

  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   14px;
  --radius-xl:   20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(15,23,42,.07), 0 1px 2px rgba(15,23,42,.04);
  --shadow:    0 4px 14px rgba(15,23,42,.08), 0 2px 6px rgba(15,23,42,.05);
  --shadow-lg: 0 20px 48px rgba(15,23,42,.12), 0 6px 16px rgba(15,23,42,.07);

  --nav-h:    60px;
  --font:     system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --t:        0.18s ease;
}

/* ---- Reset ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--c-text); background: var(--c-bg); line-height: 1.5; min-height: 100vh; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
[x-cloak] { display: none !important; }

/* ---- Layout ----------------------------------------------- */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 32px; } }

/* ---- Navigation ------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; gap: 16px;
}
@media (min-width: 640px) { .nav__inner { padding: 0 24px; } }
.nav__brand {
  display: flex; align-items: center; gap: 9px;
  font-size: 1.05rem; font-weight: 800; color: var(--c-primary); letter-spacing: -0.02em;
  flex-shrink: 0;
}
.nav__brand-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem; flex-shrink: 0;
}
.nav__actions { display: flex; align-items: center; gap: 6px; }
.nav__user-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 5px;
  border-radius: var(--radius-full);
  border: 1px solid var(--c-border);
  background: var(--c-bg);
  transition: border-color var(--t), box-shadow var(--t);
  cursor: pointer;
}
.nav__user-btn:hover { border-color: var(--c-border-2); box-shadow: var(--shadow-sm); }
.nav__avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--c-primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; color: var(--c-primary);
  overflow: hidden; flex-shrink: 0;
}
.nav__avatar img { width: 100%; height: 100%; object-fit: cover; }
.nav__name { font-size: 0.83rem; font-weight: 600; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) { .nav__name { display: none; } }

/* ---- Page scaffold ---------------------------------------- */
.page { padding-top: calc(var(--nav-h) + 28px); padding-bottom: 56px; min-height: 100vh; }

/* ---- Page header ------------------------------------------ */
.page-header { margin-bottom: 28px; }
.page-header__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-title { font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; }
.page-subtitle { font-size: 0.9rem; color: var(--c-text-muted); margin-top: 5px; }
.back-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.85rem; font-weight: 600; color: var(--c-text-muted);
  margin-bottom: 14px; transition: color var(--t);
}
.back-link:hover { color: var(--c-primary); }

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 0 16px; height: 38px; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 600; white-space: nowrap; user-select: none;
  transition: background var(--t), box-shadow var(--t), color var(--t), border-color var(--t), opacity var(--t), transform var(--t);
  flex-shrink: 0;
}
.btn:disabled { opacity: 0.52; cursor: not-allowed; pointer-events: none; }
.btn:active { transform: scale(.97); }

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

.btn--secondary { background: var(--c-surface); color: var(--c-text); border: 1.5px solid var(--c-border); }
.btn--secondary:hover { background: var(--c-bg); border-color: var(--c-border-2); }

.btn--ghost { background: transparent; color: var(--c-primary); }
.btn--ghost:hover { background: var(--c-primary-light); }

.btn--muted { background: transparent; color: var(--c-text-muted); }
.btn--muted:hover { background: var(--c-bg); color: var(--c-text); }

.btn--danger { background: var(--c-danger-bg); color: var(--c-danger); }
.btn--danger:hover { background: var(--c-danger); color: #fff; }

.btn--danger-solid { background: var(--c-danger); color: #fff; }
.btn--danger-solid:hover { background: var(--c-danger-hover); }

.btn--success-solid { background: var(--c-success); color: #fff; }

.btn--lg { height: 48px; padding: 0 28px; font-size: 1rem; border-radius: var(--radius-lg); }
.btn--sm { height: 32px; padding: 0 12px; font-size: 0.8rem; border-radius: 8px; }
.btn--xs { height: 26px; padding: 0 8px; font-size: 0.75rem; border-radius: 6px; }
.btn--icon { width: 36px; height: 36px; padding: 0; border-radius: var(--radius); }
.btn--icon-sm { width: 30px; height: 30px; padding: 0; border-radius: 8px; }

/* ---- Badges ----------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: var(--radius-full);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap;
}
.badge--active  { background: #dcfce7; color: #15803d; }
.badge--paused  { background: #fef9c3; color: #a16207; }
.badge--running { background: #dbeafe; color: #1d4ed8; }
.badge--error   { background: var(--c-danger-bg); color: var(--c-danger); }
.badge--dot::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0;
}

/* ---- Cards ------------------------------------------------ */
.card {
  background: var(--c-surface); border-radius: var(--radius-lg);
  border: 1px solid var(--c-border); box-shadow: var(--shadow-sm); overflow: hidden;
}
.card--hover { transition: box-shadow var(--t), transform var(--t); }
.card--hover:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card__body { padding: 20px; }
.card__footer {
  padding: 12px 20px; border-top: 1px solid var(--c-border);
  background: #fcfcfd; display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.card__section { padding: 20px; border-top: 1px solid var(--c-border); }

/* ---- Search card grid ------------------------------------- */
.search-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px)  { .search-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .search-grid { grid-template-columns: repeat(3, 1fr); } }

.search-card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.search-card__title { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; word-break: break-word; }
.search-card__meta { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.meta-row { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--c-text-muted); }
.meta-row svg { flex-shrink: 0; }
.search-card__price-row { padding-top: 12px; border-top: 1px solid var(--c-border); display: flex; align-items: baseline; gap: 6px; }
.price-value { font-size: 1.4rem; font-weight: 800; color: var(--c-primary); letter-spacing: -0.03em; }
.price-label { font-size: 0.75rem; color: var(--c-text-muted); }

/* ---- Forms ------------------------------------------------ */
.form-stack { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.label { font-size: 0.87rem; font-weight: 700; color: var(--c-text); }
.label-hint { font-size: 0.8rem; color: var(--c-text-muted); font-weight: 400; margin-left: 4px; }
.input {
  width: 100%; height: 42px; padding: 0 13px;
  border: 1.5px solid var(--c-border); border-radius: var(--radius);
  background: var(--c-surface); font-size: 0.9rem;
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
}
.input:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-ring); }
.input--error { border-color: var(--c-danger) !important; }
.input--error:focus { box-shadow: 0 0 0 3px rgba(239,68,68,.12); }
textarea.input { height: auto; padding: 10px 13px; min-height: 90px; resize: vertical; line-height: 1.5; }
select.input {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; padding-right: 34px;
}
.field-error { font-size: 0.78rem; color: var(--c-danger); display: flex; align-items: center; gap: 4px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 500px) { .form-row--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 500px) { .form-row--3 { grid-template-columns: repeat(3, 1fr); } }
.form-section { border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 20px; background: var(--c-surface); }
.form-section__title { font-size: 0.87rem; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 7px; color: var(--c-text); }

/* ---- Toggle ----------------------------------------------- */
.toggle-wrap { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.toggle {
  position: relative; width: 40px; height: 22px; flex-shrink: 0;
  background: var(--c-border-2); border-radius: var(--radius-full);
  transition: background var(--t); cursor: pointer;
}
.toggle::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25);
  transition: left var(--t);
}
.toggle--on { background: var(--c-primary); }
.toggle--on::after { left: 21px; }
.toggle-label { font-size: 0.875rem; font-weight: 500; }
.toggle-desc { font-size: 0.8rem; color: var(--c-text-muted); }

/* ---- Checkbox --------------------------------------------- */
.checkbox-wrap { 
  display: flex; align-items: center; gap: 8px; 
  cursor: pointer; user-select: none; 
  font-size: 0.875rem;
}
.checkbox-wrap input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  width: 18px; height: 18px; flex-shrink: 0;
  border: 1.5px solid var(--c-border-2); border-radius: 4px;
  background: var(--c-surface); cursor: pointer;
  transition: all var(--t);
  position: relative;
}
.checkbox-wrap input[type="checkbox"]:hover { border-color: var(--c-primary); }
.checkbox-wrap input[type="checkbox"]:checked {
  background: var(--c-primary); border-color: var(--c-primary);
}
.checkbox-wrap input[type="checkbox"]:checked::after {
  content: '';
  position: absolute; left: 5px; top: 2px;
  width: 4px; height: 8px;
  border: solid white; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checkbox-wrap input[type="checkbox"]:focus { 
  outline: none; box-shadow: 0 0 0 3px var(--c-primary-ring); 
}

/* ---- Tag input -------------------------------------------- */
.tag-input-wrap {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 7px 10px; min-height: 42px;
  border: 1.5px solid var(--c-border); border-radius: var(--radius);
  background: var(--c-surface); cursor: text;
  transition: border-color var(--t), box-shadow var(--t);
}
.tag-input-wrap:focus-within { border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-ring); }
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px 2px 10px;
  background: var(--c-primary-light); color: var(--c-primary);
  border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 600;
}
.tag__remove {
  width: 15px; height: 15px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: background var(--t); cursor: pointer; font-size: 0.7rem;
}
.tag__remove:hover { background: var(--c-primary); color: #fff; }
.tag-text-input {
  border: none; outline: none; font-size: 0.875rem; min-width: 120px; flex: 1;
  background: transparent; padding: 1px 2px;
}

/* ---- Tabs ------------------------------------------------- */
.tabs { display: flex; gap: 3px; padding: 4px; background: var(--c-bg); border-radius: var(--radius); border: 1px solid var(--c-border); width: fit-content; }
.tab { padding: 7px 20px; border-radius: 7px; font-size: 0.875rem; font-weight: 600; color: var(--c-text-muted); transition: all var(--t); cursor: pointer; }
.tab--active { background: var(--c-surface); color: var(--c-text); box-shadow: var(--shadow-sm); }

/* ---- Table ------------------------------------------------ */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-lg); border: 1px solid var(--c-border); box-shadow: var(--shadow-sm); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
thead { background: var(--c-bg); }
th {
  padding: 10px 14px; text-align: left;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--c-text-muted); white-space: nowrap; border-bottom: 1px solid var(--c-border);
}
th.sortable { cursor: pointer; user-select: none; transition: color var(--t); }
th.sortable:hover { color: var(--c-text); }
td { padding: 12px 14px; border-bottom: 1px solid var(--c-border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tbody tr { transition: background var(--t); }
tbody tr:hover { background: var(--c-bg); }
.td-price { font-weight: 800; color: var(--c-primary); font-size: 0.95rem; }
.td-hotel { font-weight: 600; }
.td-stars { color: #f59e0b; letter-spacing: 1px; }
.td-muted { color: var(--c-text-muted); font-size: 0.82rem; }

/* ---- Modal overlay ---------------------------------------- */
.overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15,23,42,.45); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.dialog {
  background: var(--c-surface); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); width: 100%; max-width: 420px; padding: 28px;
  animation: dialogIn .15s ease;
}
.dialog--lg { max-width: 580px; }
@keyframes dialogIn {
  from { opacity: 0; transform: scale(.96) translateY(-6px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.dialog__title { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.dialog__body { color: var(--c-text-muted); font-size: 0.9rem; margin-bottom: 22px; line-height: 1.6; }
.dialog__actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* ---- Toast ------------------------------------------------ */
.toast-region {
  position: fixed; bottom: 20px; right: 20px; z-index: 300;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  font-size: 0.875rem; font-weight: 500; max-width: 340px;
  pointer-events: all; animation: toastIn .2s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: translateX(0); } }
.toast--success { background: var(--c-success-bg); color: #14532d; border: 1px solid #a7f3d0; }
.toast--error   { background: var(--c-danger-bg); color: #7f1d1d; border: 1px solid #fca5a5; }
.toast--info    { background: var(--c-primary-light); color: #1e3a8a; border: 1px solid #bfdbfe; }

/* ---- Skeleton --------------------------------------------- */
@keyframes shimmer {
  from { background-position: -200% 0; }
  to   { background-position:  200% 0; }
}
.sk {
  background: linear-gradient(90deg, #e8eef4 25%, #f1f5f9 50%, #e8eef4 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius);
}
.sk-text { height: 13px; }
.sk-text--lg { height: 20px; }
.sk-text--xl { height: 28px; }
.skeleton-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }

/* ---- Empty state ------------------------------------------ */
.empty-state { text-align: center; padding: 64px 20px; }
.empty-state__icon { font-size: 3.5rem; margin-bottom: 16px; opacity: 0.55; }
.empty-state__title { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.empty-state__text { color: var(--c-text-muted); font-size: 0.9rem; max-width: 360px; margin: 0 auto 24px; line-height: 1.6; }

/* ---- Insights card ---------------------------------------- */
.insights-toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; cursor: pointer; user-select: none;
  background: var(--c-surface); transition: background var(--t);
}
.insights-toggle:hover { background: var(--c-bg); }
.insights-toggle__title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.95rem; }
.insights-body { padding: 16px 20px; border-top: 1px solid var(--c-border); }
.insights-body h1, .insights-body h2, .insights-body h3 { font-size: 1rem; font-weight: 700; margin: 14px 0 6px; }
.insights-body p { font-size: 0.875rem; color: var(--c-text-muted); line-height: 1.7; margin-bottom: 8px; }
.insights-body ul, .insights-body ol { padding-left: 20px; list-style: disc; margin-bottom: 10px; }
.insights-body li { font-size: 0.875rem; color: var(--c-text-muted); line-height: 1.7; }
.insights-body strong { color: var(--c-text); font-weight: 600; }

/* ---- Chart ------------------------------------------------ */
.chart-wrap { position: relative; height: 260px; }
@media (min-width: 640px) { .chart-wrap { height: 320px; } }

/* ---- Chips ------------------------------------------------ */
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; background: var(--c-bg);
  border: 1px solid var(--c-border); border-radius: var(--radius-full);
  font-size: 0.8rem; color: var(--c-text-muted);
}
.chip strong { color: var(--c-text); font-weight: 600; }
.chip--accent { background: var(--c-accent-light); border-color: #fed7aa; color: var(--c-accent); }
.chip--primary { background: var(--c-primary-light); border-color: #bfdbfe; color: var(--c-primary); }

/* ---- Section label ---------------------------------------- */
.section-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--c-text-light); margin-bottom: 12px; }
.divider { height: 1px; background: var(--c-border); margin: 24px 0; }

/* ---- Spinner ---------------------------------------------- */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.spinner--lg { width: 28px; height: 28px; border-width: 3px; }

/* ---- Utilities -------------------------------------------- */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.text-muted { color: var(--c-text-muted); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.78rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-full { width: 100%; }
.min-w-0 { min-width: 0; }
.text-danger { color: var(--c-danger); }
.text-success { color: var(--c-success); }
.relative { position: relative; }

/* ---- Landing ---------------------------------------------- */
.landing {
  min-height: 100vh;
  background: linear-gradient(145deg, #0a0f1e 0%, #0d1b4f 30%, #1e3a8a 70%, #2563eb 100%);
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.landing::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(99,102,241,.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 70%, rgba(249,115,22,.1) 0%, transparent 70%);
  pointer-events: none;
}
.landing__hero {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 48px 20px; position: relative; z-index: 1;
}
.landing__logo {
  width: 80px; height: 80px;
  background: rgba(255,255,255,.1); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.2); border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; margin: 0 auto 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.landing__title {
  font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 900; color: #fff;
  letter-spacing: -0.04em; line-height: 1.08; margin-bottom: 14px;
}
.landing__title span { color: #93c5fd; }
.landing__sub {
  font-size: 1.1rem; color: rgba(255,255,255,.65); max-width: 520px;
  margin: 0 auto 40px; line-height: 1.65;
}
.landing__features {
  display: grid; grid-template-columns: 1fr; gap: 12px;
  max-width: 600px; width: 100%; margin: 0 auto 44px;
}
@media (min-width: 480px) { .landing__features { grid-template-columns: repeat(3, 1fr); } }
.feature-card {
  background: rgba(255,255,255,.07); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 20px 16px;
}
.feature-card__icon { font-size: 1.7rem; margin-bottom: 10px; }
.feature-card__title { font-size: 0.85rem; font-weight: 700; color: #fff; margin-bottom: 5px; }
.feature-card__text { font-size: 0.78rem; color: rgba(255,255,255,.6); line-height: 1.5; }
.google-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 30px; background: #fff; color: #1a1a1a;
  border-radius: 14px; font-weight: 700; font-size: 1rem;
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
  transition: transform var(--t), box-shadow var(--t);
}
.google-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,.38); }
.google-btn svg { flex-shrink: 0; }
.landing__footer { padding: 16px 20px; text-align: center; color: rgba(255,255,255,.35); font-size: 0.8rem; position: relative; z-index: 1; }
.landing__footer a { color: rgba(255,255,255,.5); text-decoration: underline; text-underline-offset: 2px; }

/* ---- Settings profile ------------------------------------ */
.profile-card { display: flex; align-items: center; gap: 16px; padding: 20px; }
.profile-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: var(--c-primary-light); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800; color: var(--c-primary); overflow: hidden;
  border: 3px solid var(--c-border);
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-size: 1.1rem; font-weight: 800; }
.profile-email { font-size: 0.85rem; color: var(--c-text-muted); margin-top: 3px; }

/* ---- Danger zone ---------------------------------------- */
.danger-zone { border: 1.5px solid #fca5a5; border-radius: var(--radius-lg); padding: 20px; background: var(--c-danger-bg); }
.danger-zone__title { font-size: 0.9rem; font-weight: 700; color: var(--c-danger); margin-bottom: 6px; }
.danger-zone__text { font-size: 0.85rem; color: #b91c1c; line-height: 1.5; margin-bottom: 16px; }

/* ---- FAB ------------------------------------------------- */
.fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 50;
  width: 54px; height: 54px; border-radius: var(--radius-full);
  background: var(--c-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37,99,235,.5);
  transition: transform var(--t), box-shadow var(--t);
  font-size: 1.5rem; font-weight: 300;
}
.fab:hover { transform: scale(1.08); box-shadow: 0 10px 28px rgba(37,99,235,.6); }
@media (min-width: 640px) { .fab { display: none; } }

/* ---- Search detail header -------------------------------- */
.detail-hero {
  background: linear-gradient(135deg, var(--c-primary) 0%, #1d4ed8 100%);
  border-radius: var(--radius-lg); padding: 24px; color: #fff; margin-bottom: 20px;
}
.detail-hero__title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; }
.detail-hero__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.btn--hero { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(6px); }
.btn--hero:hover { background: rgba(255,255,255,.25); border-color: rgba(255,255,255,.4); }
.btn--hero-primary { background: #fff; color: var(--c-primary); }
.btn--hero-primary:hover { background: rgba(255,255,255,.9); }

/* ---- Responsive ------------------------------------------ */
@media (max-width: 480px) {
  .page { padding-top: calc(var(--nav-h) + 16px); padding-bottom: 80px; }
  .dialog { padding: 22px; border-radius: var(--radius-xl); }
  .detail-hero { padding: 18px; }
  .detail-hero__title { font-size: 1.2rem; }
}
