/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

:root {
  /* Type Scale */
  --text-xs:   clamp(0.7rem,  0.65rem + 0.25vw, 0.8125rem);
  --text-sm:   clamp(0.8125rem, 0.75rem + 0.3vw, 0.9375rem);
  --text-base: clamp(0.9375rem, 0.9rem + 0.2vw, 1rem);
  --text-lg:   clamp(1.0625rem, 0.95rem + 0.5vw, 1.3125rem);
  --text-xl:   clamp(1.375rem, 1.1rem + 1vw, 1.75rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Colors — DigiAssist Dark Theme */
  --bg:              #0f1117;
  --surface:         #161822;
  --surface-2:       #1c1f2e;
  --surface-3:       #242738;
  --border:          #2a2d3e;
  --border-hover:    #3a3d50;

  --text:            #e4e4e8;
  --text-muted:      #8b8d9a;
  --text-faint:      #5c5e6e;

  --teal:            #0d9488;
  --teal-hover:      #0fb9ab;
  --teal-dim:        rgba(13, 148, 136, 0.15);
  --teal-glow:       rgba(13, 148, 136, 0.25);

  --green:           #22c55e;
  --green-dim:       rgba(34, 197, 94, 0.15);
  --red:             #ef4444;
  --red-dim:         rgba(239, 68, 68, 0.12);
  --yellow:          #eab308;
  --yellow-dim:      rgba(234, 179, 8, 0.12);
  --blue:            #3b82f6;
  --blue-dim:        rgba(59, 130, 246, 0.15);
  --purple:          #a855f7;
  --purple-dim:      rgba(168, 85, 247, 0.12);
  --orange:          #f97316;
  --orange-dim:      rgba(249, 115, 22, 0.12);
  --pink:            #ec4899;
  --pink-dim:        rgba(236, 72, 153, 0.12);
  --cyan:            #06b6d4;
  --cyan-dim:        rgba(6, 182, 212, 0.12);

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.35);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.4);

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 180ms;

  /* Layout */
  --nav-height: 3.5rem;
  --bottom-bar-height: 4.5rem;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

body {
  min-height: 100dvh;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-hover); }

/* Focus */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ===== APP SHELL ===== */
.app {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: var(--space-3) var(--space-4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.header-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--teal);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  color: #fff;
  flex-shrink: 0;
}

.header-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.header-subtitle {
  font-size: var(--text-xs);
  color: var(--text-faint);
  line-height: 1.2;
}

.header-subtitle a {
  color: var(--text-faint);
}

.header-subtitle a:hover {
  color: var(--teal);
}

/* Main content area */
.main {
  flex: 1;
  padding: var(--space-4);
  padding-bottom: calc(var(--bottom-bar-height) + var(--safe-bottom) + var(--space-8));
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

/* Bottom navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-bottom: var(--safe-bottom);
}

.bottom-nav-inner {
  display: flex;
  max-width: 640px;
  margin: 0 auto;
}

.nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--space-2) var(--space-1);
  color: var(--text-faint);
  font-size: 0.6875rem;
  font-weight: 500;
  transition: color var(--duration) var(--ease);
  position: relative;
}

.nav-tab svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}

.nav-tab.active {
  color: var(--teal);
}

.nav-tab.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--teal);
  border-radius: 0 0 2px 2px;
}

/* ===== PAGE TRANSITIONS ===== */
.page {
  display: none;
  animation: fadeIn 200ms var(--ease);
}
.page.active { display: block; }

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

/* ===== DASHBOARD ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: border-color var(--duration) var(--ease);
}

.stat-card:hover {
  border-color: var(--border-hover);
}

.stat-card.wide {
  grid-column: 1 / -1;
}

.stat-value {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.stat-value.teal { color: var(--teal); }
.stat-value.green { color: var(--green); }

.stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-1);
}

/* Status breakdown */
.breakdown-section {
  margin-bottom: var(--space-6);
}

.section-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}

.breakdown-bars {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.breakdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.breakdown-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  width: 100px;
  flex-shrink: 0;
}

.breakdown-bar-track {
  flex: 1;
  height: 6px;
  background: var(--surface-3);
  border-radius: 3px;
  overflow: hidden;
}

.breakdown-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 400ms var(--ease);
}

.breakdown-count {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  width: 24px;
  text-align: right;
}

/* Action items */
.action-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.action-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  cursor: pointer;
  transition: border-color var(--duration) var(--ease);
}

.action-item:hover {
  border-color: var(--teal);
}

.action-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.action-text {
  font-size: var(--text-sm);
  color: var(--text);
  line-height: 1.4;
}

.action-sub {
  font-size: var(--text-xs);
  color: var(--text-faint);
  margin-top: 2px;
}

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1.6;
}

/* Status badges */
.badge-applied   { background: var(--blue-dim);    color: var(--blue); }
.badge-waiting   { background: var(--yellow-dim);   color: var(--yellow); }
.badge-interview { background: var(--purple-dim);   color: var(--purple); }
.badge-offered   { background: var(--teal-dim);     color: var(--teal-hover); }
.badge-accepted  { background: var(--green-dim);    color: var(--green); }
.badge-rejected  { background: var(--red-dim);      color: var(--red); }
.badge-cancelled { background: rgba(140,140,160,0.12); color: #8b8d9a; }
.badge-withdrawn { background: rgba(140,140,160,0.12); color: #8b8d9a; }

/* Type badges */
.badge-job        { background: var(--blue-dim);    color: var(--blue); }
.badge-ausbildung { background: var(--cyan-dim);    color: var(--cyan); }
.badge-fsj        { background: var(--purple-dim);  color: var(--purple); }
.badge-zeitarbeit { background: var(--orange-dim);  color: var(--orange); }
.badge-university { background: var(--teal-dim);    color: var(--teal-hover); }
.badge-language   { background: var(--green-dim);   color: var(--green); }
.badge-visa       { background: var(--pink-dim);    color: var(--pink); }
.badge-scholarship { background: var(--yellow-dim); color: var(--yellow); }

/* Recommendation badges */
.badge-reapply   { background: var(--green-dim);  color: var(--green); }
.badge-dont      { background: var(--red-dim);    color: var(--red); }
.badge-waitb2    { background: var(--yellow-dim); color: var(--yellow); }
.badge-followup  { background: var(--teal-dim);   color: var(--teal-hover); }

/* ===== APPLICATION CARDS ===== */
.card-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  cursor: pointer;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.app-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.card-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 2px;
}

.card-institution {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-faint);
}

.card-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-meta-item svg {
  width: 14px;
  height: 14px;
}

/* ===== FILTERS & SEARCH ===== */
.filter-bar {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.search-input-wrapper {
  position: relative;
}

.search-input-wrapper svg {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-faint);
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3) var(--space-2) 2.5rem;
  font-size: var(--text-sm);
  color: var(--text);
  transition: border-color var(--duration) var(--ease);
}

.search-input::placeholder { color: var(--text-faint); }
.search-input:focus { border-color: var(--teal); outline: none; }

.filter-row {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.filter-row::-webkit-scrollbar { display: none; }

.filter-chip {
  padding: var(--space-1) var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  flex-shrink: 0;
}

.filter-chip:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.filter-chip.active {
  background: var(--teal-dim);
  border-color: var(--teal);
  color: var(--teal);
}

.sort-select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-muted);
  cursor: pointer;
  min-width: max-content;
}

.sort-select:focus { border-color: var(--teal); outline: none; }

/* ===== FORM ===== */
.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}

.form-label small {
  color: var(--text-faint);
  font-weight: 400;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--text);
  transition: border-color var(--duration) var(--ease);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--teal);
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-faint);
}

.form-select {
  appearance: none;
  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='%235c5e6e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 2.5rem;
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: all var(--duration) var(--ease);
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  width: 100%;
  padding: var(--space-3) var(--space-5);
}

.btn-primary:hover { background: var(--teal-hover); }

.btn-secondary {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--surface-3);
}

.btn-danger {
  background: var(--red-dim);
  color: var(--red);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
}

.btn-sm {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
}

/* ===== DETAIL VIEW ===== */
.detail-header {
  margin-bottom: var(--space-6);
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  cursor: pointer;
  transition: color var(--duration) var(--ease);
}

.detail-back:hover { color: var(--teal); }

.detail-back svg {
  width: 18px;
  height: 18px;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.detail-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: var(--space-1);
}

.detail-institution {
  font-size: var(--text-lg);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.detail-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}

.detail-section-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}

.detail-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: var(--space-3);
}

.detail-field:last-child { margin-bottom: 0; }

.detail-field-label {
  font-size: var(--text-xs);
  color: var(--text-faint);
}

.detail-field-value {
  font-size: var(--text-sm);
  color: var(--text);
  word-break: break-word;
}

.detail-field-value a {
  color: var(--teal);
}

.detail-actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.detail-actions .btn { flex: 1; }

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  display: flex;
  gap: var(--space-3);
  padding-bottom: var(--space-3);
  position: relative;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
  z-index: 1;
}

.timeline-content {
  flex: 1;
}

.timeline-date {
  font-size: var(--text-xs);
  color: var(--text-faint);
}

.timeline-text {
  font-size: var(--text-sm);
  color: var(--text);
}

/* ===== SETTINGS ===== */
.settings-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--duration) var(--ease);
}

.settings-item:last-child { border-bottom: none; }
.settings-item:hover { background: var(--surface-2); }

.settings-item-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.settings-item-left svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.settings-item-text {
  font-size: var(--text-sm);
  color: var(--text);
}

.settings-item-desc {
  font-size: var(--text-xs);
  color: var(--text-faint);
}

.settings-item svg.chevron {
  width: 18px;
  height: 18px;
  color: var(--text-faint);
}

/* ===== MODAL / OVERLAY ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeOverlay 200ms ease;
}

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

.modal-content {
  background: var(--surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: var(--space-6) var(--space-4) var(--space-4);
  width: 100%;
  max-width: 640px;
  max-height: 80dvh;
  overflow-y: auto;
  animation: slideUp 250ms var(--ease);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-handle {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto var(--space-4);
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: var(--space-12) var(--space-4);
}

.empty-state svg {
  width: 48px;
  height: 48px;
  color: var(--text-faint);
  margin: 0 auto var(--space-4);
}

.empty-state-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.empty-state-text {
  font-size: var(--text-sm);
  color: var(--text-faint);
  max-width: 280px;
  margin: 0 auto;
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: var(--space-8) var(--space-4) var(--space-4);
  font-size: var(--text-xs);
  color: var(--text-faint);
}

.footer a {
  color: var(--text-faint);
}

.footer a:hover { color: var(--teal); }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: calc(var(--bottom-bar-height) + var(--safe-bottom) + var(--space-4));
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  z-index: 300;
  opacity: 0;
  transition: transform 300ms var(--ease), opacity 300ms var(--ease);
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ===== CONFIRM DIALOG ===== */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.confirm-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  max-width: 340px;
  width: 100%;
  text-align: center;
}

.confirm-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-2);
}

.confirm-msg {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-5);
}

.confirm-actions {
  display: flex;
  gap: var(--space-3);
}

.confirm-actions .btn { flex: 1; }

/* ===== FILE INPUT ===== */
.file-input-wrapper {
  position: relative;
}

.file-input-wrapper input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .main {
    padding: var(--space-6);
    padding-bottom: calc(var(--bottom-bar-height) + var(--safe-bottom) + var(--space-6));
  }
}
