/* ═══════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════ */
:root {
  --primary:        #1A56DB;
  --primary-hover:  #1E40AF;
  --primary-light:  #3B82F6;
  --primary-bg:     #EFF6FF;
  --primary-border: #BFDBFE;
  --primary-dark:   #1E3A8A;

  --white:     #FFFFFF;
  --gray-50:   #F9FAFB;
  --gray-100:  #F3F4F6;
  --gray-200:  #E5E7EB;
  --gray-300:  #D1D5DB;
  --gray-400:  #9CA3AF;
  --gray-500:  #6B7280;
  --gray-600:  #4B5563;
  --gray-700:  #374151;
  --gray-800:  #1F2937;
  --gray-900:  #111827;

  --success:        #059669;
  --success-hover:  #047857;
  --success-bg:     #ECFDF5;
  --success-border: #A7F3D0;
  --success-text:   #065F46;

  --danger:        #DC2626;
  --danger-hover:  #B91C1C;
  --danger-bg:     #FEF2F2;
  --danger-border: #FECACA;
  --danger-text:   #991B1B;

  --warning:        #D97706;
  --warning-bg:     #FFFBEB;
  --warning-border: #FDE68A;
  --warning-text:   #92400E;

  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius:      12px;
  --radius-lg:   16px;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:    0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.10), 0 10px 10px -5px rgba(0,0,0,0.04);

  --header-height: 56px;
  --nav-height:    68px;
  --max-width:     480px;
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ═══════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════ */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html { font-size: 16px; height: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--gray-900);
  height: 100%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-y: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }
input, select, textarea { font-family: var(--font); }

/* ═══════════════════════════════════════════════════
   APP SHELL
═══════════════════════════════════════════════════ */
#app {
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height – besser auf Mobile */
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

@media (min-width: 480px) {
  body { background: var(--gray-100); }
  #app { box-shadow: 0 0 50px rgba(0,0,0,0.12); }
}

/* ═══════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  z-index: 200;
  gap: 12px;
}

@media (min-width: 480px) {
  .header {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 480px;
  }
}
.header-logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 17px;
  color: var(--primary); letter-spacing: -0.3px;
}
.header-logo svg { width: 20px; height: 20px; flex-shrink: 0; }
.header-right {
  display: flex; align-items: center; gap: 8px;
  position: relative;
}
.user-avatar {
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; cursor: pointer;
  transition: opacity 0.15s;
  user-select: none;
}
.user-avatar:hover { opacity: 0.85; }

/* ═══════════════════════════════════════════════════
   HEADER DROPDOWN
═══════════════════════════════════════════════════ */
.header-dropdown {
  position: fixed;
  top: var(--header-height);
  right: 12px;
  background: var(--white);
  border: 1.5px solid var(--gray-200); border-radius: var(--radius);
  box-shadow: var(--shadow-md); z-index: 500;
  overflow: hidden; min-width: 200px;
  animation: fadeIn 0.12s ease;
}
.dropdown-divider { height: 1px; background: var(--gray-100); margin: 4px 0; }
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px;  font-size: 14px; font-weight: 500;
  color: var(--gray-700); cursor: pointer;
  transition: background 0.1s; width: 100%; text-align: left;
}
.dropdown-item:hover  { background: var(--gray-50); }
.dropdown-item.danger { color: var(--danger); }
.dropdown-item.danger:hover { background: var(--danger-bg); }
.dropdown-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.dropdown-user-info {
  padding: 12px 16px 8px;
  border-bottom: 1px solid var(--gray-100);
}
.dropdown-user-name { font-size: 14px; font-weight: 600; color: var(--gray-900); }
.dropdown-user-role { font-size: 12px; color: var(--gray-400); margin-top: 1px; }

/* ═══════════════════════════════════════════════════
   MAIN CONTENT
═══════════════════════════════════════════════════ */
.main-content {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: calc(var(--header-height) + 16px) 16px calc(var(--nav-height) + env(safe-area-inset-bottom, 0px) + 16px);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  box-sizing: border-box;
}

@media (min-width: 480px) {
  .main-content {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 480px;
  }
}

/* ═══════════════════════════════════════════════════
   BOTTOM NAVIGATION
═══════════════════════════════════════════════════ */
.bottom-nav {
  /* Mobile-First: immer volle Breite, kein max-width+margin Trick */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  display: flex;
  align-items: stretch;
  z-index: 200;
  /* iOS Home-Indicator Abstand */
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Desktop: in der Mitte zentrieren */
@media (min-width: 480px) {
  .bottom-nav {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 480px;
  }
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Abstände passen sich der Displaybreite an */
  gap: clamp(2px, 0.7vw, 4px);
  padding: 8px clamp(2px, 1.5vw, 6px);
  min-height: 52px;
  min-width: 0;
  color: var(--gray-400);
  /* Schriftgröße passt sich an: min 10px, max 12px */
  font-size: clamp(10px, 2.5vw, 12px);
  font-weight: 500;
  transition: color 0.15s;
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.nav-item svg {
  /* Icon-Größe passt sich an: min 19px, max 23px */
  width: clamp(19px, 5.5vw, 23px);
  height: clamp(19px, 5.5vw, 23px);
  flex-shrink: 0;
  display: block;
  transition: transform 0.15s;
}

.nav-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  text-align: center;
  line-height: 1;
}

/* Aktiver Tab: Farbe + inset-Shadow als Strich oben
   box-shadow: inset beeinflusst KEIN Layout – 100% zuverlässig */
.nav-item.active {
  color: var(--primary);
  box-shadow: inset 0 3px 0 0 var(--primary);
}
.nav-item.active svg { transform: scale(1.08); }

/* Touch-Feedback */
.nav-item:active { opacity: 0.7; }


/* ═══════════════════════════════════════════════════
   PAGE STRUCTURE
═══════════════════════════════════════════════════ */
.page-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; margin-bottom: 20px; gap: 12px;
}
.page-header h2 {
  font-size: 22px; font-weight: 700;
  color: var(--gray-900); letter-spacing: -0.4px; line-height: 1.2;
}
.page-subtitle { font-size: 13px; color: var(--gray-500); margin-top: 2px; }

.section-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: 0.8px;
  margin: 18px 0 8px;
}
.section-label svg { width: 13px; height: 13px; }
.section-label-warning { color: var(--warning); }
.section-label-success { color: var(--success); }

/* ═══════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 10px 18px;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
  line-height: 1; transition: all 0.15s; cursor: pointer;
  white-space: nowrap; border: 1.5px solid transparent; letter-spacing: 0.1px;
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:active:not(:disabled) { transform: scale(0.97); }

.btn-primary { background: var(--primary); color: white; border-color: var(--primary); }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); border-color: var(--primary-hover); }

.btn-outline { background: transparent; color: var(--gray-600); border-color: var(--gray-300); }
.btn-outline:hover:not(:disabled) { background: var(--gray-50); border-color: var(--gray-400); }

.btn-outline-primary { background: transparent; color: var(--primary); border-color: var(--primary-border); }
.btn-outline-primary:hover:not(:disabled) { background: var(--primary-bg); }

.btn-success { background: var(--success); color: white; border-color: var(--success); }
.btn-success:hover:not(:disabled) { background: var(--success-hover); }

.btn-danger { background: var(--danger); color: white; border-color: var(--danger); }
.btn-danger:hover:not(:disabled) { background: var(--danger-hover); }

.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: var(--radius-xs); }
.btn-sm svg { width: 13px; height: 13px; }
.btn-full { width: 100%; }

.btn-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-500); transition: all 0.15s; flex-shrink: 0;
}
.btn-icon:hover { background: var(--gray-100); color: var(--gray-700); }
.btn-icon svg  { width: 16px; height: 16px; }
.btn-icon-danger:hover { background: var(--danger-bg); color: var(--danger); }

/* ═══════════════════════════════════════════════════
   TASK CARDS
═══════════════════════════════════════════════════ */
.task-card {
  background: var(--white);
  border: 1.5px solid var(--primary-border);
  border-radius: var(--radius); padding: 14px 16px;
  margin-bottom: 10px; display: flex; align-items: center;
  gap: 12px; transition: all 0.2s; box-shadow: var(--shadow-xs);
}
.task-card:hover { box-shadow: var(--shadow-sm); }

.task-card-upcoming { background: var(--primary-bg); border-color: var(--primary-border); }
.task-card-overdue  { background: var(--warning-bg); border-color: var(--warning-border); }
.task-card-done     { background: var(--gray-50); border-color: var(--gray-200); opacity: 0.7; }

.task-card-content { flex: 1; min-width: 0; }
.task-card h4 {
  font-size: 15px; font-weight: 600; color: var(--gray-900);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.task-content-done h4 { text-decoration: line-through; color: var(--gray-400); }
.task-description { font-size: 13px; color: var(--gray-500); margin-top: 2px; }

.task-card-time {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 700;
  color: var(--primary); margin-bottom: 4px;
}
.task-card-overdue .task-card-time { color: var(--warning); }
.task-card-time svg { width: 12px; height: 12px; }

.task-time-row {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--gray-500); margin-bottom: 4px; flex-wrap: wrap;
}
.task-time-row svg { width: 12px; height: 12px; color: var(--gray-400); }

.task-meta { display: flex; align-items: center; gap: 6px; margin-top: 6px; flex-wrap: wrap; }

/* Check-Buttons */
.btn-check {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.15s; cursor: pointer; border: none;
}
.btn-check:hover  { background: var(--primary-hover); transform: scale(1.05); }
.btn-check:active { transform: scale(0.95); }
.btn-check svg    { width: 18px; height: 18px; }

.btn-check-sm {
  width: 28px; height: 28px; border-radius: var(--radius-xs);
  border: 2px solid var(--gray-300); background: white;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.15s; cursor: pointer; color: transparent;
}
.btn-check-sm:hover { border-color: var(--primary); background: var(--primary-bg); color: var(--primary); }
.btn-check-sm svg  { width: 14px; height: 14px; }

.task-check-done {
  width: 28px; height: 28px; border-radius: var(--radius-xs);
  border: 2px solid var(--success-border); background: var(--success-bg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--success);
}
.task-check-done svg { width: 14px; height: 14px; }

.task-card-full    { align-items: flex-start; }
.task-card-left    { padding-top: 2px; }
.task-card-actions { display: flex; align-items: center; gap: 4px; }

/* Animation beim Abhaken */
.task-completed-anim {
  opacity: 0; transform: translateX(24px) scale(0.95);
  transition: all 0.3s ease;
}

/* ═══════════════════════════════════════════════════
   BADGES
═══════════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; padding: 2px 8px;
  border-radius: var(--radius-full); font-size: 11px; font-weight: 600;
}
.badge-blue   { background: var(--primary-bg); color: var(--primary); border: 1px solid var(--primary-border); }
.badge-green  { background: var(--success-bg); color: var(--success); }
.badge-gray   { background: var(--gray-100);   color: var(--gray-600); }
.badge-warning{ background: var(--warning-bg); color: var(--warning); }
.badge-admin  { background: var(--primary-bg); color: var(--primary); border: 1px solid var(--primary-border); }
.badge-user   { background: var(--gray-100);   color: var(--gray-500); }
.badge-self   { font-size: 12px; color: var(--gray-400); padding: 4px 8px; }

.recurrence-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--radius-full); font-size: 11px; font-weight: 600; }

/* ═══════════════════════════════════════════════════
   FORMS
═══════════════════════════════════════════════════ */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--gray-700); margin-bottom: 6px; letter-spacing: 0.1px;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="time"],
.form-group input[type="number"],
.form-group textarea,
.form-group select,
.form-input {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  font-size: 14px; color: var(--gray-900); background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none; appearance: none; -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}
.form-group textarea { resize: vertical; min-height: 72px; }
.form-select {
  width: 100%; padding: 10px 36px 10px 12px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  font-size: 14px; color: var(--gray-900);
  background: var(--white) 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='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center;
  background-size: 16px; appearance: none; -webkit-appearance: none;
  cursor: pointer; outline: none; transition: border-color 0.15s;
}
.form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,86,219,0.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-error {
  padding: 10px 12px; background: var(--danger-bg); color: var(--danger);
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 500;
  margin-top: 8px; border: 1px solid var(--danger-border);
}
.input-error { border-color: var(--danger) !important; animation: shake 0.3s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-4px); }
  75%       { transform: translateX(4px); }
}

/* ═══════════════════════════════════════════════════
   MODAL (Bottom Sheet)
═══════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4); z-index: 300;
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  animation: fadeIn 0.15s ease;
}
.modal {
  position: fixed; bottom: 0;
  left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--max-width);
  background: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  z-index: 301; max-height: 92vh; overflow-y: auto;
  animation: slideUp 0.25s cubic-bezier(0.32, 0.72, 0, 1);
  padding-bottom: env(safe-area-inset-bottom, 16px);
}
@keyframes slideUp {
  from { transform: translateX(-50%) translateY(100%); }
  to   { transform: translateX(-50%) translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-handle {
  width: 36px; height: 4px; border-radius: 2px;
  background: var(--gray-200); margin: 12px auto 0;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 12px; border-bottom: 1px solid var(--gray-100);
}
.modal-header h3 { font-size: 17px; font-weight: 700; color: var(--gray-900); letter-spacing: -0.2px; }
.modal-body     { padding: 16px 20px; }
.modal-footer   {
  padding: 12px 20px 20px;
  display: flex; gap: 10px; justify-content: flex-end;
  border-top: 1px solid var(--gray-100);
}
.hidden { display: none !important; }

/* ═══════════════════════════════════════════════════
   TOAST NOTIFICATIONS
═══════════════════════════════════════════════════ */
.toast-container {
  position: fixed; top: calc(var(--header-height) + 8px);
  left: 50%; transform: translateX(-50%);
  width: calc(100% - 32px); max-width: calc(var(--max-width) - 32px);
  z-index: 500; display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--gray-900); color: white;
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(-10px);
  transition: all 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}
.toast-show   { opacity: 1; transform: translateY(0); }
.toast-success { background: var(--success); }
.toast-error   { background: var(--danger); }
.toast-info    { background: var(--gray-700); }

/* ═══════════════════════════════════════════════════
   AUTH PAGES
═══════════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh; display: flex;
  align-items: center; justify-content: center;
  padding: 24px 16px; background: var(--gray-50); overflow-y: auto;
}
.auth-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px 28px; width: 100%; max-width: 380px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--gray-200);
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo .logo-icon {
  width: 64px; height: 64px; border-radius: var(--radius);
  background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.auth-logo .logo-icon svg { width: 32px; height: 32px; }
.auth-logo h1 { font-size: 24px; font-weight: 800; color: var(--gray-900); letter-spacing: -0.5px; margin-bottom: 4px; }
.auth-logo p  { font-size: 14px; color: var(--gray-500); }

/* ═══════════════════════════════════════════════════
   EMPTY STATES
═══════════════════════════════════════════════════ */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 48px 24px; text-align: center;
}
.empty-state svg    { width: 52px; height: 52px; color: var(--gray-300); margin-bottom: 16px; }
.empty-state h3     { font-size: 17px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.empty-state p      { font-size: 14px; color: var(--gray-400); max-width: 240px; }
.empty-state-sm     { padding: 24px; text-align: center; color: var(--gray-400); font-size: 14px; }

/* ═══════════════════════════════════════════════════
   LOADING
═══════════════════════════════════════════════════ */
.loading-state { display: flex; align-items: center; justify-content: center; height: 200px; }
.spinner {
  width: 30px; height: 30px;
  border: 3px solid var(--primary-border);
  border-top-color: var(--primary);
  border-radius: 50%; animation: spin 0.65s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }

/* ═══════════════════════════════════════════════════
   SHOPPING LIST
═══════════════════════════════════════════════════ */
.shopping-add-form {
  display: flex; gap: 8px; margin-bottom: 20px;
  background: var(--gray-50); border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm); padding: 8px;
  transition: border-color 0.15s;
}
.shopping-add-form:focus-within { border-color: var(--primary); }
.shopping-input {
  flex: 1; border: none !important; background: transparent !important;
  box-shadow: none !important; padding: 8px !important;
  font-size: 15px;
}
.shopping-input:focus { border: none !important; box-shadow: none !important; }
.shopping-qty-input {
  width: 70px; border: none !important; background: transparent !important;
  box-shadow: none !important; padding: 8px !important;
  border-left: 1px solid var(--gray-200) !important; border-radius: 0 !important;
  font-size: 14px; text-align: center;
}
.shopping-qty-input:focus { box-shadow: none !important; }
.shopping-add-form .btn { flex-shrink: 0; width: 40px; height: 40px; padding: 0; border-radius: var(--radius-xs); }

.shopping-items-list {
  border: 1.5px solid var(--gray-100); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
}
.shopping-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; border-bottom: 1px solid var(--gray-100);
  gap: 12px; transition: background 0.12s;
}
.shopping-item:last-child { border-bottom: none; }
.shopping-item:hover { background: var(--gray-50); }
.shopping-item-cart { background: var(--success-bg); }
.shopping-item-cart:hover { background: var(--success-bg); filter: brightness(0.98); }

.shopping-item-info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.shopping-item-name { font-size: 15px; font-weight: 500; color: var(--gray-900); }
.shopping-item-done { text-decoration: line-through; color: var(--gray-400); }
.shopping-item-qty  {
  font-size: 12px; color: var(--gray-500); background: var(--gray-100);
  padding: 2px 8px; border-radius: var(--radius-full); font-weight: 500; white-space: nowrap;
}
.shopping-item-added { font-size: 11px; color: var(--gray-400); white-space: nowrap; }
.shopping-item-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════
   ADMIN
═══════════════════════════════════════════════════ */
.admin-section { margin-bottom: 28px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-header h3 { font-size: 14px; font-weight: 700; color: var(--gray-600); text-transform: uppercase; letter-spacing: 0.6px; }

.user-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius); margin-bottom: 10px;
  background: var(--white); box-shadow: var(--shadow-xs);
}
.user-avatar-lg {
  width: 40px; height: 40px; border-radius: var(--radius-full);
  background: var(--primary-bg); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; flex-shrink: 0;
  border: 1.5px solid var(--primary-border);
}
.user-info   { flex: 1; min-width: 0; }
.user-name   { font-size: 15px; font-weight: 600; color: var(--gray-900); }
.user-email  { font-size: 13px; color: var(--gray-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-badges { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.user-actions { display: flex; align-items: center; gap: 6px; }

.task-list-admin { border: 1.5px solid var(--gray-100); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-xs); }
.task-admin-card { display: flex; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--gray-100); gap: 12px; }
.task-admin-card:last-child { border-bottom: none; }
.task-admin-done { opacity: 0.55; }
.task-admin-info { flex: 1; min-width: 0; }
.task-admin-time { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--gray-500); font-weight: 600; margin-bottom: 2px; }
.task-admin-time svg { width: 12px; height: 12px; }
.task-admin-title { font-size: 14px; font-weight: 600; color: var(--gray-900); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-admin-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.task-admin-actions { flex-shrink: 0; }
.assigned-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--gray-500); }
.assigned-badge svg { width: 12px; height: 12px; }

/* ═══════════════════════════════════════════════════
   DASHBOARD EXTRAS
═══════════════════════════════════════════════════ */
.dashboard-footer { display: flex; justify-content: center; padding: 16px 0 8px; }

.greeting-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius); padding: 20px; margin-bottom: 20px; color: white;
}
.greeting-card h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; }
.greeting-card p  { font-size: 14px; opacity: 0.85; margin-top: 3px; }
.greeting-time    { font-size: 32px; font-weight: 800; letter-spacing: -1px; margin-bottom: 4px; }

/* ═══════════════════════════════════════════════════
   COMING SOON
═══════════════════════════════════════════════════ */
.coming-soon-card {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 56px 24px; text-align: center;
  background: var(--gray-50); border: 2px dashed var(--gray-200);
  border-radius: var(--radius-lg); margin-top: 8px;
}
.coming-soon-card svg { width: 52px; height: 52px; color: var(--gray-300); margin-bottom: 16px; }
.coming-soon-card h3  { font-size: 18px; font-weight: 700; color: var(--gray-700); margin-bottom: 8px; }
.coming-soon-card p   { font-size: 14px; color: var(--gray-500); max-width: 240px; }
.coming-soon-tag {
  margin-top: 16px; padding: 4px 14px;
  background: var(--primary-bg); color: var(--primary);
  border: 1px solid var(--primary-border); border-radius: var(--radius-full);
  font-size: 12px; font-weight: 600;
}

/* ═══════════════════════════════════════════════════
   PUSH BANNER
═══════════════════════════════════════════════════ */
.push-banner {
  background: var(--primary-bg); border: 1.5px solid var(--primary-border);
  border-radius: var(--radius); padding: 14px 16px;
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px;
}
.push-banner svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; margin-top: 1px; }
.push-banner-content { flex: 1; }
.push-banner-content strong { display: block; font-size: 14px; font-weight: 600; color: var(--gray-900); margin-bottom: 2px; }
.push-banner-content p { font-size: 13px; color: var(--gray-600); }
.push-banner-actions { display: flex; gap: 8px; margin-top: 10px; }

/* ═══════════════════════════════════════════════════
   UTILS
═══════════════════════════════════════════════════ */
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.flex  { display: flex; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; }
.text-sm { font-size: 14px; }
.text-xs { font-size: 12px; }
.text-gray { color: var(--gray-500); }
.font-semibold { font-weight: 600; }
