/* Feedback Fédéral — Design System v2 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #DA291C;
  --red-dark: #B82217;
  --blue: #0033A0;
  --blue-dark: #001F66;
  --blue-light: #1A4DB8;
  --white: #FFFFFF;
  --bg: #F0F3F8;
  --surface: #FFFFFF;
  --border: #DDE2EA;
  --text: #1A2332;
  --text-muted: #5C6578;
  --success: #1B7F4A;
  --warning: #B8860B;
  --danger: #C0392B;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(0, 51, 160, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 51, 160, 0.14);
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --header-h: 64px;
  --bottom-nav-h: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Swiss cross pattern */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,51,160,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,51,160,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

#app-shell { position: relative; z-index: 1; min-height: 100dvh; display: flex; flex-direction: column; }

/* ── Splash ── */
#app-splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.5s, visibility 0.5s;
}

#app-splash.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.splash-cross {
  width: 80px;
  height: 80px;
  background: var(--red);
  border-radius: 8px;
  position: relative;
  animation: splashPulse 1.5s ease-in-out infinite;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.splash-cross::before, .splash-cross::after {
  content: "";
  position: absolute;
  background: var(--white);
  border-radius: 2px;
}

.splash-cross::before { width: 16px; height: 56px; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.splash-cross::after { width: 56px; height: 16px; left: 50%; top: 50%; transform: translate(-50%, -50%); }

@keyframes splashPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.splash-title { color: var(--white); font-size: 1.25rem; font-weight: 700; letter-spacing: 0.02em; }
.splash-sub { color: rgba(255,255,255,0.7); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; }

.splash-loader {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Gov bar ── */
.gov-bar {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.9);
  font-size: 0.72rem;
  padding: 0.35rem 1rem;
}

.gov-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gov-bar-left { display: flex; align-items: center; gap: 0.4rem; }
.gov-dot { width: 7px; height: 7px; background: #4ADE80; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

/* ── Header ── */
.site-header {
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 0 var(--border);
}

.header-stripe {
  height: 4px;
  background: linear-gradient(90deg, var(--red) 33.33%, var(--white) 33.33%, var(--white) 66.66%, var(--blue) 66.66%);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.625rem 1rem;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit; }
.brand-mark { flex-shrink: 0; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.12)); }
.brand-title { font-size: 1rem; font-weight: 700; color: var(--blue); line-height: 1.2; }
.brand-sub { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

.nav-desktop { display: flex; align-items: center; gap: 0.25rem; }
.nav-desktop a, .nav-desktop button.link-btn {
  font-family: var(--font); font-size: 0.875rem; font-weight: 500;
  color: var(--text-muted); background: none; border: none; cursor: pointer;
  padding: 0.45rem 0.75rem; border-radius: var(--radius-sm); transition: var(--transition);
  text-decoration: none;
}
.nav-desktop a:hover, .nav-desktop button.link-btn:hover { background: var(--bg); color: var(--blue); }

.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--blue); border-radius: 1px; transition: var(--transition); }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-drawer {
  display: none;
  position: fixed; top: calc(var(--header-h) + 4px + 28px); left: 0; right: 0;
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 0.75rem; z-index: 199;
  flex-direction: column; gap: 0.25rem;
  transform: translateY(-110%); transition: transform var(--transition);
  box-shadow: var(--shadow-lg);
}
.mobile-drawer.open { transform: translateY(0); }
.mobile-drawer a, .mobile-drawer button {
  font-family: var(--font); font-size: 1rem; text-align: left;
  padding: 0.75rem 1rem; border: none; background: none; cursor: pointer;
  border-radius: var(--radius-sm); color: var(--text); width: 100%;
}
.mobile-drawer a:hover, .mobile-drawer button:hover { background: var(--bg); color: var(--blue); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font); font-size: 0.9375rem; font-weight: 600;
  padding: 0.7rem 1.35rem; border: 2px solid transparent;
  border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); box-shadow: 0 4px 12px rgba(218,41,28,0.25); }
.btn-primary:hover:not(:disabled) { background: var(--red-dark); transform: translateY(-1px); }
.btn-secondary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-secondary:hover:not(:disabled) { background: var(--blue-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--border); }
.btn-outline:hover:not(:disabled) { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-sm { font-size: 0.8125rem; padding: 0.45rem 0.875rem; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }

/* ── Main ── */
main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem 1.5rem;
}

body.has-bottom-nav main { padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 1rem); }

.view { display: none; }
.view.active { display: block; animation: viewIn 0.35s ease; }
@keyframes viewIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ── Hero ── */
.hero {
  background: linear-gradient(145deg, var(--blue) 0%, var(--blue-dark) 60%, #000D33 100%);
  color: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  margin: 0 -1rem 1.5rem;
  padding: 2.5rem 1.25rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 280px; height: 280px;
  background: var(--red);
  opacity: 0.08;
  border-radius: 50%;
  animation: heroFloat 8s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  left: 10%; bottom: -40px;
  width: 120px; height: 120px;
  border: 2px solid rgba(255,255,255,0.08);
  transform: rotate(45deg);
}

@keyframes heroFloat { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-20px,20px)} }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,0.12); backdrop-filter: blur(8px);
  padding: 0.3rem 0.875rem; border-radius: 999px;
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
  border: 1px solid rgba(255,255,255,0.15); margin-bottom: 1rem;
}
.hero-badge-dot { width: 6px; height: 6px; background: #4ADE80; border-radius: 50%; }

.hero h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.35rem);
  font-weight: 700; line-height: 1.2; margin-bottom: 0.875rem;
  letter-spacing: -0.02em;
}

.hero .lead { font-size: 1rem; opacity: 0.88; margin-bottom: 1.5rem; max-width: 520px; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-actions .btn-outline { color: var(--white); border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.08); }
.hero-actions .btn-outline:hover { background: var(--white); color: var(--blue); }

.hero-trust-list { list-style: none; margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.45rem; }
.hero-trust-list li { font-size: 0.85rem; opacity: 0.85; display: flex; align-items: center; gap: 0.5rem; }
.hero-trust-list li::before { content: "✓"; color: #4ADE80; font-weight: 700; }

.hero-card {
  background: rgba(255,255,255,0.1); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius);
  padding: 1.5rem;
}

.hero-card-title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.7; margin-bottom: 0.875rem; }
.hero-stat { display: flex; justify-content: space-between; align-items: baseline; padding: 0.55rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.hero-stat:last-child { border-bottom: none; }
.hero-stat-value { font-size: 1.35rem; font-weight: 700; }
.hero-stat-label { font-size: 0.78rem; opacity: 0.75; }

/* ── Trust strip ── */
.trust-strip {
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 2rem;
  padding: 1rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.trust-strip-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.75rem; }

.trust-card {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.75rem; border-radius: var(--radius-sm); transition: var(--transition);
}
.trust-card:hover { background: var(--bg); }

.trust-icon {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.trust-icon.red { background: #FDECEA; }
.trust-icon.blue { background: #E8EEF8; }
.trust-icon.green { background: #E8F5EE; }
.trust-icon.gold { background: #FEF9E7; }

.trust-card h4 { font-size: 0.8125rem; font-weight: 700; color: var(--blue); margin-bottom: 0.1rem; }
.trust-card p { font-size: 0.75rem; color: var(--text-muted); line-height: 1.4; }

/* ── Sections ── */
section { margin-bottom: 2.5rem; }
.section-label { display: inline-block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--red); margin-bottom: 0.35rem; }
section h2 { font-size: clamp(1.2rem, 3vw, 1.5rem); color: var(--blue); margin-bottom: 1.25rem; font-weight: 700; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }

.step-card {
  background: var(--surface); padding: 1.5rem; border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: var(--transition); position: relative; overflow: hidden;
}
.step-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--red), var(--blue)); }
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.step-num {
  width: 36px; height: 36px; background: var(--blue); color: var(--white);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; margin-bottom: 0.875rem;
}
.step-card h3 { font-size: 1rem; color: var(--blue); margin-bottom: 0.4rem; font-weight: 700; }
.step-card p { font-size: 0.875rem; color: var(--text-muted); }

.security-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.security-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; display: flex; gap: 0.875rem; transition: var(--transition);
}
.security-item:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.security-item-icon { font-size: 1.5rem; }
.security-item h4 { font-size: 0.9rem; color: var(--blue); margin-bottom: 0.25rem; font-weight: 700; }
.security-item p { font-size: 0.8125rem; color: var(--text-muted); }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 0.5rem; }
.faq-item { background: var(--surface); border-radius: var(--radius-sm); border: 1px solid var(--border); overflow: hidden; transition: var(--transition); }
.faq-item.open { border-color: var(--blue); box-shadow: var(--shadow); }

.faq-question {
  width: 100%; text-align: left; font-family: var(--font); font-size: 0.9rem; font-weight: 600;
  color: var(--text); padding: 1rem 1.125rem; border: none; background: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 0.75rem;
}
.faq-item.open .faq-question { color: var(--blue); }
.faq-question::after {
  content: "+"; font-size: 1.1rem; color: var(--red); flex-shrink: 0;
  width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  background: #FDECEA; border-radius: 50%;
}
.faq-item.open .faq-question::after { content: "−"; background: #E8EEF8; color: var(--blue); }
.faq-answer { display: none; padding: 0 1.125rem 1rem; font-size: 0.875rem; color: var(--text-muted); }
.faq-item.open .faq-answer { display: block; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-card, .official-seal {
  background: var(--surface); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.contact-card h4 { font-size: 0.9375rem; color: var(--blue); margin-bottom: 0.875rem; font-weight: 700; }
.contact-card p { margin-bottom: 0.4rem; font-size: 0.875rem; color: var(--text-muted); }
.contact-card a { color: var(--blue); font-weight: 500; }

.official-seal { display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: center; background: linear-gradient(135deg, var(--bg), var(--surface)); border-style: dashed; }
.official-seal strong { display: block; color: var(--blue); font-size: 0.875rem; margin: 0.75rem 0 0.25rem; }
.official-seal p { font-size: 0.78rem; color: var(--text-muted); max-width: 220px; }

/* ── Forms ── */
.form-container {
  max-width: 520px; margin: 1.5rem auto;
  background: var(--surface); padding: 2rem; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.form-container h2 { font-size: 1.375rem; color: var(--blue); margin-bottom: 0.25rem; font-weight: 700; }
.form-subtitle { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1.25rem; }

.form-trust-bar {
  display: flex; align-items: center; gap: 0.5rem;
  background: #E8F5EE; border: 1px solid #A8D5BC; border-radius: var(--radius-sm);
  padding: 0.55rem 0.875rem; font-size: 0.78rem; color: var(--success); margin-bottom: 1.125rem;
}

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--text); margin-bottom: 0.3rem; }
.form-group label .required { color: var(--red); }

.form-group input, .form-group select, .form-group textarea {
  width: 100%; font-family: var(--font); font-size: 1rem;
  padding: 0.75rem 0.875rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); background: var(--surface); transition: var(--transition);
  -webkit-appearance: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,51,160,0.12);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.875rem; }
.checkbox-group {
  display: flex; align-items: flex-start; gap: 0.625rem; margin-bottom: 0.75rem;
  padding: 0.75rem; background: var(--bg); border-radius: var(--radius-sm); border: 1px solid var(--border);
}
.checkbox-group input { margin-top: 0.15rem; accent-color: var(--blue); flex-shrink: 0; width: 18px; height: 18px; }
.checkbox-group label { font-size: 0.8125rem; font-weight: 400; color: var(--text-muted); }
.checkbox-group label a { color: var(--blue); font-weight: 500; }
.form-actions { display: flex; gap: 0.625rem; flex-wrap: wrap; margin-top: 1.25rem; }

.alert { padding: 0.875rem 1rem; border-radius: var(--radius-sm); font-size: 0.875rem; margin-bottom: 1rem; }
.alert-success { background: #E8F5EE; color: var(--success); border: 1px solid #A8D5BC; }
.alert-error { background: #FDECEA; color: var(--danger); border: 1px solid #F5C6CB; }
.alert-info { background: #E8EEF8; color: var(--blue); border: 1px solid #B3C4E8; }

/* ── Dashboard ── */
.dashboard-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0 1.25rem;
  padding-bottom: 1.25rem; border-bottom: 1px solid var(--border);
}
.dashboard-header h2 { font-size: 1.375rem; color: var(--blue); font-weight: 700; }

.points-card {
  background: linear-gradient(145deg, var(--blue), var(--blue-dark));
  color: var(--white); padding: 1.25rem 1.75rem; border-radius: var(--radius);
  text-align: center; min-width: 180px; box-shadow: 0 8px 24px rgba(0,51,160,0.25);
  position: relative; overflow: hidden;
}
.points-card::after { content: "CHF"; position: absolute; right: -8px; bottom: -12px; font-size: 3.5rem; font-weight: 900; opacity: 0.07; }
.points-value { font-size: 2.5rem; font-weight: 700; line-height: 1; }
.points-label { font-size: 0.72rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.2rem; }
.chf-balance { font-size: 1.05rem; font-weight: 600; margin-top: 0.4rem; padding-top: 0.4rem; border-top: 1px solid rgba(255,255,255,0.2); }

.withdrawal-progress-wrap {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.125rem 1.25rem; margin-bottom: 1.25rem; border: 1px solid var(--border);
}
.withdrawal-progress-header { display: flex; justify-content: space-between; font-size: 0.8125rem; font-weight: 600; color: var(--blue); margin-bottom: 0.5rem; }
.withdrawal-progress-bar { height: 10px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.withdrawal-progress-fill { height: 100%; background: linear-gradient(90deg, var(--red), var(--blue)); border-radius: 999px; width: 0%; transition: width 0.5s cubic-bezier(0.4,0,0.2,1); }
.withdrawal-progress-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.5rem; }

.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }

.card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.25rem; border: 1px solid var(--border); transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); }
.card h3 { font-size: 0.9375rem; color: var(--blue); margin-bottom: 0.875rem; padding-bottom: 0.625rem; border-bottom: 1px solid var(--border); font-weight: 700; display: flex; align-items: center; gap: 0.4rem; }

.survey-question { margin-bottom: 1.25rem; }
.survey-question p { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.5rem; }
.rating-scale { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.rating-scale label {
  display: flex; flex-direction: column; align-items: center; cursor: pointer;
  font-size: 0.72rem; color: var(--text-muted); padding: 0.5rem 0.625rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); min-width: 44px; transition: var(--transition);
}
.rating-scale label:has(input:checked) { border-color: var(--blue); background: #E8EEF8; color: var(--blue); font-weight: 700; }
.rating-scale input { accent-color: var(--blue); margin-bottom: 0.15rem; }

.referral-box { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.referral-box input {
  flex: 1; min-width: 180px; font-family: var(--font); font-size: 0.8125rem;
  padding: 0.6rem 0.75rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--bg);
}
.referral-info { font-size: 0.8125rem; color: var(--text-muted); margin-top: 0.625rem; }

.badge { display: inline-block; font-size: 0.68rem; font-weight: 700; padding: 0.2rem 0.55rem; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.03em; }
.badge-none { background: var(--bg); color: var(--text-muted); }
.badge-pending { background: #FEF9E7; color: var(--warning); }
.badge-approved { background: #E8F5EE; color: var(--success); }
.badge-rejected { background: #FDECEA; color: var(--danger); }

.admin-table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
th, td { padding: 0.65rem 0.75rem; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--bg); color: var(--blue); font-weight: 700; font-size: 0.72rem; text-transform: uppercase; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg); }
.admin-actions { display: flex; gap: 0.625rem; flex-wrap: wrap; margin-bottom: 1rem; }

.legal-content {
  max-width: 760px; margin: 1.5rem auto; background: var(--surface);
  padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border);
}
.legal-content h2 { font-size: 1.375rem; color: var(--blue); margin-bottom: 0.5rem; font-weight: 700; }
.legal-content h3 { font-size: 0.9375rem; color: var(--blue); margin: 1.5rem 0 0.4rem; font-weight: 700; }
.legal-content p, .legal-content li { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.legal-content ul { padding-left: 1.25rem; margin-bottom: 0.875rem; }

.success-icon {
  width: 68px; height: 68px; background: #E8F5EE; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; color: var(--success); margin: 0 auto 1rem;
}

/* ── Bottom nav (mobile app) ── */
.bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  height: calc(var(--bottom-nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 300;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}

body.has-bottom-nav .bottom-nav { display: flex; }

.bottom-nav-inner {
  display: flex; width: 100%; max-width: 500px; margin: 0 auto;
  height: var(--bottom-nav-h);
}

.bottom-nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.15rem; border: none; background: none; cursor: pointer;
  font-family: var(--font); font-size: 0.65rem; font-weight: 600;
  color: var(--text-muted); transition: var(--transition); padding: 0.25rem;
  text-decoration: none;
}
.bottom-nav-item .nav-icon { font-size: 1.25rem; line-height: 1; }
.bottom-nav-item.active { color: var(--blue); }
.bottom-nav-item.active .nav-icon { transform: scale(1.1); }

/* ── Footer ── */
.site-footer { background: var(--blue-dark); color: rgba(255,255,255,0.85); margin-top: auto; }
.footer-trust { background: rgba(0,0,0,0.15); padding: 1rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-trust-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; font-size: 0.75rem; }
.footer-main { max-width: 1200px; margin: 0 auto; padding: 2rem 1rem; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.5rem; }
.footer-brand p { font-size: 0.8125rem; opacity: 0.65; margin-top: 0.625rem; max-width: 260px; line-height: 1.5; }
.footer-col h5 { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem; opacity: 0.55; }
.footer-col a { display: block; color: rgba(255,255,255,0.8); font-size: 0.8125rem; text-decoration: none; margin-bottom: 0.4rem; transition: var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 1rem; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; font-size: 0.72rem; opacity: 0.55; }

/* ── Cookie banner ── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--surface); border-top: 3px solid var(--red);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.12);
  padding: 1.125rem 1rem;
  transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.cookie-banner.visible { transform: translateY(0); }
body.has-bottom-nav .cookie-banner.visible { bottom: calc(var(--bottom-nav-h) + var(--safe-bottom)); }

.cookie-banner-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; }
.cookie-banner h3 { font-size: 0.9rem; color: var(--blue); margin-bottom: 0.25rem; font-weight: 700; }
.cookie-banner p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }
.cookie-banner p a { color: var(--blue); font-weight: 500; }
.cookie-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: flex-end; }
.cookie-settings { display: none; margin-top: 0.875rem; padding-top: 0.875rem; border-top: 1px solid var(--border); grid-column: 1 / -1; }
.cookie-settings.open { display: block; }
.cookie-option { display: flex; justify-content: space-between; align-items: center; padding: 0.625rem 0; border-bottom: 1px solid var(--border); gap: 0.75rem; }
.cookie-option-info h4 { font-size: 0.8125rem; color: var(--text); }
.cookie-option-info p { font-size: 0.72rem; color: var(--text-muted); }
.cookie-toggle { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.cookie-toggle input { opacity: 0; width: 0; height: 0; }
.cookie-toggle-slider { position: absolute; inset: 0; background: var(--border); border-radius: 999px; cursor: pointer; transition: var(--transition); }
.cookie-toggle-slider::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: white; border-radius: 50%; transition: var(--transition); box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.cookie-toggle input:checked + .cookie-toggle-slider { background: var(--blue); }
.cookie-toggle input:checked + .cookie-toggle-slider::before { transform: translateX(20px); }

/* ── Install PWA prompt ── */
.install-prompt {
  display: none;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: var(--white); border-radius: var(--radius); padding: 1rem 1.25rem;
  margin-bottom: 1.25rem; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.install-prompt.visible { display: flex; }
.install-prompt p { font-size: 0.875rem; }
.install-prompt .btn-outline { color: var(--white); border-color: rgba(255,255,255,0.4); }
.install-prompt .btn-outline:hover { background: var(--white); color: var(--blue); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }
  .mobile-drawer { display: flex; }
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .hero { margin: 0 -1rem 1.25rem; padding: 2rem 1rem; border-radius: 0; }
  .form-container { padding: 1.25rem; margin: 1rem auto; }
  .cookie-banner-inner { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .gov-bar-badges { display: none; }
  body.has-bottom-nav .site-footer { padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom)); }
}

@media (min-width: 901px) {
  body.has-bottom-nav .bottom-nav { display: none; }
  body.has-bottom-nav main { padding-bottom: 1.5rem; }
}

@media (display-mode: standalone) {
  .gov-bar { display: none; }
  .install-prompt { display: none !important; }
}
