/* Volo Portal - mirrors the app's Modern Lavender CI (constants/Colors.ts) */

:root {
  --primary: #C8A8C8;
  --primary-dark: #B090B0;
  --primary-light: #D8C0D8;
  --background: #FAFAFA;
  --background-secondary: #F8F8F8;
  --surface: #FFFFFF;
  --text: #1A1A1A;
  --text-secondary: #666666;
  --text-light: #999999;
  --border: #E0E0E0;
  --shadow: rgba(200, 168, 200, 0.3);
  --error: #FF3B30;
  --success: #34C759;
  --warning: #FF9500;
  --radius: 20px;
  --radius-sm: 14px;

  /* Marketing landing / dashboard background - same accent as the rest of
     the app's CI (--primary/--primary-dark above), just a pale pink page bg */
  --landing-bg: #FBF1F5;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* The `hidden` attribute must always win over any element's own `display`
   rule (e.g. .form-row's `display:grid`, which otherwise silently cancels
   `[hidden]`'s UA-stylesheet `display:none` since both have equal
   specificity and the author stylesheet loads after it). */
[hidden] { display: none !important; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--background);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-badge {
  width: 56px; height: 56px;
  object-fit: contain;
}

.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a {
  text-decoration: none; color: var(--text-secondary);
  font-weight: 600; font-size: 14px;
  padding: 8px 14px; border-radius: 999px;
}
.nav a:hover { background: var(--background-secondary); }
.nav a.active { background: var(--primary); color: #fff; }
.nav .nav-signout { color: var(--error); }

/* Hamburger toggle - hidden on desktop, shown only below the mobile breakpoint */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 8px;
  background: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle:hover { background: var(--background-secondary); }
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 680px) {
  .nav-toggle { display: flex; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    padding: 10px 16px 18px;
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 14px 12px;
    border-radius: 12px;
    text-align: left;
  }
  .nav .nav-signout { margin-top: 6px; border-top: 1px solid var(--border); padding-top: 16px; border-radius: 0; }
}

/* Layout */
.app { flex: 1; width: 100%; max-width: 960px; margin: 0 auto; padding: 28px 20px 60px; }
/* The landing page is full-bleed (its own header, edge-to-edge background)
   - override the dashboard's centered/padded container just for it. */
.app:has(.landing) { max-width: none; padding: 0; }
.app:has(.auth-page) { max-width: none; padding: 0; }
.center { text-align: center; padding: 60px 20px; }
.muted { color: var(--text-secondary); }
.boot-logo { width: 72px; height: 72px; object-fit: contain; margin: 0 auto 16px; display: block; }
.small { font-size: 13px; }

.page-hero {
  position: relative;
  height: 180px;
  border-radius: var(--radius);
  margin-bottom: 22px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 10, 30, 0) 40%, rgba(20, 10, 30, 0.65) 100%);
}
.page-hero-text {
  position: absolute; left: 24px; bottom: 18px; z-index: 1;
  color: #fff; font-weight: 700; font-size: 20px; letter-spacing: -0.2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
h1.page-title { font-size: 26px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 6px; }
p.page-subtitle { color: var(--text-secondary); margin-bottom: 24px; }

/* Cards */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(200, 168, 200, 0.12);
  border: 1px solid var(--border);
}
.card h2 { font-size: 17px; font-weight: 700; letter-spacing: -0.1px; margin-bottom: 12px; }
.card h2 .count { color: var(--text-light); font-weight: 600; }
.card-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.card-row:last-child { border-bottom: none; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }

/* Merchant dashboard - event cards */
.event-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.event-card {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; background: var(--surface);
}
.event-card-image { width: 100%; height: 140px; object-fit: cover; display: block; background: var(--background-secondary); }
.event-card-image-placeholder { display: flex; align-items: center; justify-content: center; font-size: 32px; opacity: 0.4; }
.event-card-body { padding: 14px 16px; }
.event-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.event-card-title { font-weight: 700; font-size: 15px; }
.event-card-stats { display: flex; gap: 16px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--border); }
.event-card-stat-value { font-weight: 700; font-size: 15px; }
.event-card-stat-label { color: var(--text-secondary); font-size: 12px; margin-top: 2px; }
.event-form-preview { display: block; max-width: 220px; max-height: 160px; object-fit: cover; border-radius: var(--radius-sm); margin: -8px 0 4px; }

/* Info banner (matches the app's left-accent banner) */
.banner {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--background-secondary);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text-secondary);
  font-size: 14px; line-height: 1.5;
  margin-bottom: 18px;
}
.banner.error { border-left-color: var(--error); }
.banner.success { border-left-color: var(--success); }

/* Forms */
.form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; color: var(--text-secondary); letter-spacing: 0.5px; text-transform: uppercase; }
input, select, textarea {
  font: inherit;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--background-secondary);
  color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary-light); border-color: var(--primary); }
.checkbox { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); text-transform: none; letter-spacing: 0; font-weight: 500; }
.checkbox input { width: 18px; height: 18px; }

/* Like .checkbox, but top-aligned for longer, wrapping consent text (legal links etc.) */
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-secondary); text-transform: none; letter-spacing: 0; font-weight: 500; margin: 4px 0; }
.checkbox-row input { margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; }
.checkbox-row a { color: var(--primary-dark); }

/* Live password-policy feedback (register form) */
.pw-req-list { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: -6px; }
.pw-req { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-light); transition: color 0.15s ease; }
.pw-req-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); flex-shrink: 0; transition: background 0.15s ease; }
.pw-req.pw-req-met { color: var(--success); }
.pw-req.pw-req-met .pw-req-dot { background: var(--success); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 15px;
  padding: 13px 22px; border-radius: 999px;
  border: none; cursor: pointer; text-decoration: none;
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 12px var(--shadow);
  transition: background .15s ease;
}
.btn:hover { background: var(--primary-dark); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.secondary { background: var(--surface); color: var(--primary-dark); border: 2px solid var(--primary); box-shadow: none; }
.btn.danger { background: var(--surface); color: var(--error); border: 2px solid var(--error); box-shadow: none; }
.btn.small { padding: 8px 14px; font-size: 13px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* Badges */
.badge {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
}
.badge.grey { background: var(--background-secondary); color: var(--text-secondary); }
.badge.green { background: #E8F5E9; color: #2E7D32; }
.badge.orange { background: #FFF3E0; color: #E65100; }
.badge.red { background: #FFEBEE; color: #C62828; }
.badge.purple { background: #F5F0FF; color: var(--primary-dark); }

/* Tabs */
.tabs { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.tab {
  font: inherit; font-weight: 700; font-size: 14px;
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--text-secondary);
  border: 2px solid var(--border);
}
.tab.active { border-color: var(--primary); color: var(--primary-dark); background: var(--background-secondary); }

/* Stars */
.stars { color: #FFB300; letter-spacing: 2px; }

/* Store buttons on the "normal user" page */
.store-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }

/* Referral code chip */
.code-chip {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--background-secondary);
  border: 1px dashed var(--primary);
  border-radius: var(--radius-sm);
  padding: 10px 16px; font-weight: 700; letter-spacing: 2px;
  display: inline-block;
}

/* Footer */
.footer {
  background: var(--surface);
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 13px; font-weight: 600; }
.footer-links a:hover { color: var(--primary-dark); }
.footer-copy { color: var(--text-light); font-size: 13px; }

/* Toast */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: var(--text); color: #fff;
  padding: 12px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  z-index: 100;
}
.toast.error { background: var(--error); }

/* Cookie consent banner (two layers - see js/cookie-banner.js) */
.cookie-banner {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  max-width: 640px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 200;
}
.cookie-simple, .cookie-settings { display: flex; flex-direction: column; gap: 10px; }
.cookie-banner-text { font-size: 13px; line-height: 1.6; color: var(--text-secondary); }
.cookie-banner-text a { color: var(--primary-dark); font-weight: 700; text-decoration: none; }
/* All three buttons share the exact same .btn style/size/color on purpose -
   none may look more prominent than another (no "nudging" toward accept). */
.cookie-banner-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.cookie-legal-links { display: flex; gap: 14px; justify-content: flex-end; }
.cookie-legal-links a { font-size: 12px; color: var(--text-light); text-decoration: none; }
.cookie-legal-links a:hover { color: var(--text-secondary); }

.cookie-category { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; }
.cookie-category-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.cookie-category-head h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.cookie-category-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
.cookie-provider-details { margin-top: 10px; font-size: 12px; }
.cookie-provider-details summary { cursor: pointer; color: var(--text-secondary); font-weight: 600; }
.cookie-provider-empty { margin-top: 8px; color: var(--text-light); font-size: 12px; }
.cookie-provider-table-wrap { overflow-x: auto; margin-top: 8px; }
.cookie-provider-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.cookie-provider-table th, .cookie-provider-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.cookie-provider-table th { color: var(--text-light); font-weight: 700; }

/* Toggle switch - checkbox styled as a slider, essential's is disabled+on */
.cookie-toggle { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.cookie-toggle input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.cookie-toggle input:disabled { cursor: not-allowed; }
.cookie-toggle-slider {
  position: absolute; inset: 0;
  background: var(--border); border-radius: 999px;
  transition: background 0.15s ease; pointer-events: none;
}
.cookie-toggle-slider::before {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease;
}
.cookie-toggle input:checked + .cookie-toggle-slider { background: var(--primary); }
.cookie-toggle input:checked + .cookie-toggle-slider::before { transform: translateX(18px); }
.cookie-toggle input:disabled + .cookie-toggle-slider { opacity: 0.6; }
.cookie-toggle input:focus-visible + .cookie-toggle-slider { outline: 2px solid var(--primary-dark); outline-offset: 2px; }

@media (max-width: 480px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 16px; }
  .cookie-banner-actions { flex-direction: column; align-items: stretch; }
  .cookie-legal-links { justify-content: center; }
}

/* Auth screens - full-bleed background photo + centered floating card,
   with the normal site header (see landing.js's renderSiteHeader) on top. */
.auth-page {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  background-size: cover;
  background-position: center;
}
.auth-page-login { background-image: url('background-login.jpg'); }
.auth-page-signup { background-image: url('background-signup.jpg'); }
.auth-page-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 40px 36px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35), 0 6px 18px rgba(0, 0, 0, 0.12);
}
.auth-card .page-title { text-align: center; }
.auth-switch-line { text-align: center; font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }
.auth-switch-line a { color: var(--primary-dark); font-weight: 700; text-decoration: none; }

/* Simple table-ish list */
.list-item { padding: 14px 0; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: none; }
.list-item .title { font-weight: 700; }
.list-item .meta { color: var(--text-secondary); font-size: 13px; margin-top: 3px; line-height: 1.5; }
.list-item .actions { margin-top: 10px; }

/* ============================================
   Landing page - marketing homepage for logged-out visitors
   ============================================ */
.landing {
  min-height: 100vh;
  background: var(--landing-bg);
  display: flex;
  flex-direction: column;
}

.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 40px;
  position: relative;
}
/* Used when the header sits on top of a busy photo (auth pages) instead of
   the landing page's own flat background - needs its own backing to stay
   legible. */
.landing-header-solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
}

/* Hamburger toggle - hidden on desktop, shown only below the mobile breakpoint */
.landing-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 8px;
  background: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
}
.landing-nav-toggle:hover { background: rgba(0, 0, 0, 0.05); }
.landing-nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.landing-nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.landing-nav-toggle.open span:nth-child(2) { opacity: 0; }
.landing-nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.landing-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 20px;
}
.landing-logo { width: 48px; height: 48px; object-fit: contain; }

.landing-nav { display: flex; gap: 32px; }
.landing-nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.landing-nav a:hover { color: var(--text); }
.landing-nav a.active { color: var(--text); font-weight: 700; }

.landing-header-actions { display: flex; align-items: center; gap: 12px; }

/* Buttons - hover lift + shadow, a snappy press-down on click */
.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.landing-btn-outline {
  background: transparent;
  color: var(--primary-dark);
  border: 1.5px solid var(--primary);
}
.landing-btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--shadow);
}
.landing-btn-solid {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px var(--shadow);
}
.landing-btn-solid:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px var(--shadow);
}
.landing-btn:active { transform: translateY(0) scale(0.96); box-shadow: none; }
.landing-btn-large { padding: 14px 28px; font-size: 15px; }

.landing-hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 60px 40px 100px;
}

.landing-title {
  font-size: 48px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: var(--text);
  margin-bottom: 24px;
}
.landing-accent { color: var(--primary-dark); }

.landing-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  max-width: 460px;
  margin-bottom: 32px;
}

.landing-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero image - subtle tilt at rest, straightens + scales slightly on hover */
.landing-visual { position: relative; }
.landing-image-frame {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  transform: rotate(2deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.landing-visual:hover .landing-image-frame {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.2);
}
.landing-image { display: block; width: 100%; height: 460px; object-fit: cover; }

.landing-reco-card {
  position: absolute;
  left: 24px;
  bottom: 24px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
  max-width: 280px;
  /* Same rest angle as .landing-image-frame, so it reads as parallel to the photo */
  transform: rotate(2deg);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.landing-visual:hover .landing-reco-card {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.16);
}
.landing-reco-label { font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; }
.landing-reco-title { font-weight: 700; font-size: 16px; color: var(--text); }

@media (max-width: 900px) {
  .landing-header { padding: 16px 20px; }
  .landing-nav-toggle { display: flex; }
  .landing-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: var(--surface);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    padding: 12px 20px 18px;
    z-index: 10;
  }
  .landing-nav.open { display: flex; }
  .landing-nav a { padding: 12px; width: 100%; text-align: center; }
  .landing-hero {
    grid-template-columns: 1fr;
    padding: 40px 20px 60px;
    gap: 40px;
    text-align: center;
    justify-items: center;
  }
  .landing-title { font-size: 34px; }
  .landing-subtitle { margin-left: auto; margin-right: auto; }
  .landing-cta { justify-content: center; }
  .landing-image { height: 280px; }
  .landing-reco-card { max-width: calc(100% - 48px); }
}

/* ============================================
   Übersicht (Home) dashboard for logged-in users
   ============================================ */
.dashboard-grid { display: grid; gap: 20px; margin-bottom: 20px; }
.dashboard-grid-2-1 { grid-template-columns: 2fr 1fr; }
.dashboard-grid-1-1 { grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) {
  .dashboard-grid-2-1, .dashboard-grid-1-1 { grid-template-columns: 1fr; }
}

/* Colored "Volo Points" card */
.points-card {
  position: relative;
  background: var(--primary-dark);
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.points-card-bottom { margin-top: auto; padding-top: 20px; }
.points-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.points-label { font-size: 12px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; opacity: 0.85; }
.points-info-badge {
  width: 16px; height: 16px;
  font-size: 12px; line-height: 16px; text-align: center;
  opacity: 0.75; cursor: default;
}
.points-star {
  position: absolute;
  top: -6px; right: 8px;
  font-size: 70px;
  color: rgba(255, 255, 255, 0.18);
  line-height: 1;
  pointer-events: none;
}
.points-value { font-size: 34px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 20px; font-variant-numeric: tabular-nums; }
.points-unit { font-size: 15px; font-weight: 700; opacity: 0.85; }
.referral-chip {
  display: block;
  background: #fff;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.referral-chip:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15); }
.referral-code-display {
  display: block;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 999px;
  text-align: center;
}

/* "Punkte sammeln & einlösen" list */
.points-info-item { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.points-info-item:last-child { border-bottom: none; }
.points-info-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--background-secondary);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-dark);
}
.points-info-icon svg { width: 19px; height: 19px; }
.points-info-title { font-weight: 700; font-size: 14px; margin-bottom: 3px; }
.points-info-desc { color: var(--text-secondary); font-size: 13px; line-height: 1.5; }

/* ============================================
   Mobile centering (matches the PineApp Labs website's mobile layout).
   Abo/Händler/Verwaltung keep their left-aligned, data-dense layout -
   see main.js's route(), which toggles .no-center-mobile on #app.
   ============================================ */
@media (max-width: 680px) {
  .app:not(.no-center-mobile) h1.page-title,
  .app:not(.no-center-mobile) p.page-subtitle,
  .app:not(.no-center-mobile) .card h2,
  .app:not(.no-center-mobile) .card > p,
  .app:not(.no-center-mobile) .muted {
    text-align: center;
  }
  .app:not(.no-center-mobile) .btn-row,
  .app:not(.no-center-mobile) .store-cta,
  .app:not(.no-center-mobile) .tabs {
    justify-content: center;
  }
  .app:not(.no-center-mobile) .banner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .app:not(.no-center-mobile) .card-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
  }
  .app:not(.no-center-mobile) .points-info-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .app:not(.no-center-mobile) .list-item {
    text-align: center;
  }
  .app:not(.no-center-mobile) .list-item .actions {
    display: flex;
    justify-content: center;
  }
}
