* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f5f7fa;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f4f8;
  --bg-input: #f8f9fb;
  --border: #e2e8f0;
  --border-focus: #6366f1;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: #eef2ff;
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --danger-light: #fef2f2;
  --success: #10b981;
  --warning: #f59e0b;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --radius: 12px;
  --radius-sm: 8px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ========== BRAND LOGO ========== */
.brand-logo {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}

.brand-logo span {
  color: var(--primary);
}

.brand-logo-sm {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
}

.header-logo {
  height: 30px;
  width: auto;
  border-radius: 5px;
  margin-right: 0.35rem;
}

/* Auth screen brand override */
.auth-header .brand-logo {
  font-size: 2.2rem;
  margin-bottom: 0.3rem;
}

.auth-logo {
  height: 72px;
  width: auto;
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

/* ========== AUTH / LOGIN SCREEN ========== */
#auth-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

.auth-container {
  width: 100%;
  max-width: 420px;
  padding: 1.5rem;
}

.auth-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 2.5rem 2rem 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 1px 3px rgba(0,0,0,0.1);
}

.auth-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 0.2rem;
}

.auth-header p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.auth-tabs {
  display: flex;
  gap: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.5px solid var(--border);
  margin-bottom: 1.5rem;
}

.auth-tab {
  flex: 1;
  padding: 0.6rem 1rem;
  border: none;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  background: var(--bg);
  color: var(--text-muted);
  transition: all 0.15s;
}

.auth-tab:first-child {
  border-right: 1px solid var(--border);
}

.auth-tab.active {
  background: var(--primary);
  color: #fff;
}

.auth-tab:hover:not(.active) {
  background: var(--bg-card-hover);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form .form-group {
  flex: none;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
}

.auth-error {
  background: var(--danger-light);
  color: var(--danger);
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.auth-success {
  background: rgba(74, 222, 128, 0.12);
  color: #22c55e;
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.forgot-password-link {
  text-align: center;
  margin-top: 0.75rem;
}

.forgot-password-link a {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s;
}

.forgot-password-link a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.forgot-password-info {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  text-align: center;
}

.auth-btn {
  width: 100%;
  padding: 0.75rem;
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* Settings gear nav button */
.main-nav-settings {
  font-size: 1.4rem;
  padding: 0.15rem 0.6rem;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.15s, color 0.15s;
}

.main-nav-settings:hover,
.main-nav-settings.active {
  opacity: 1;
}

/* Header Logout Button */
.header-logout {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
}

.header-logout:hover {
  background: var(--danger-light);
  color: var(--danger);
  border-color: #fecaca;
}

/* Subscription Info in Settings */
.subscription-limit-row {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
}

.subscription-limit-row span {
  color: var(--text-muted);
}

.subscription-limit-row strong {
  color: var(--text);
}

/* Plan Grid */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.25rem 0 0.5rem;
}

.plan-card {
  position: relative;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.plan-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.plan-card-pro {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.plan-header {
  margin-bottom: 1rem;
}

.plan-header h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.plan-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}

.plan-price span {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  flex: 1;
}

.plan-features li {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-left: 1.2rem;
  position: relative;
}

.plan-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
  font-size: 0.85rem;
}

.plan-btn {
  width: 100%;
  justify-content: center;
}

.plan-card-current {
  border-color: var(--success);
}

.plan-card-current .plan-btn {
  background: var(--bg);
  color: var(--success);
  border: 1px solid var(--success);
  cursor: default;
}

/* Quick Hatchling Form */
.quick-hatchling-form {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px dashed var(--primary);
  background: var(--bg);
  border-radius: var(--radius);
}
.quick-hatchling-form h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

/* Dashboard Section Header */
.dash-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.dash-section-header .dash-section-title {
  margin-bottom: 0;
}

/* Reminder Form */
.reminder-form-card {
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px dashed var(--primary);
  border-radius: var(--radius);
}
.reminder-form-card h4 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}
.reminder-checkbox-row {
  margin-top: 0.25rem;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

/* Custom Reminders List */
.custom-reminders-list {
  margin-bottom: 1rem;
}
.custom-reminder-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.7rem 0.75rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.4rem;
  transition: all 0.15s ease;
}
.custom-reminder-item.overdue {
  border-left: 3px solid var(--danger);
}
.custom-reminder-item.done {
  opacity: 0.5;
}
.custom-reminder-item.done .custom-reminder-subject {
  text-decoration: line-through;
}
.custom-reminder-check {
  padding-top: 2px;
  flex-shrink: 0;
}
.custom-reminder-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}
.custom-reminder-content {
  flex: 1;
  min-width: 0;
}
.custom-reminder-subject {
  font-weight: 500;
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
}
.custom-reminder-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.reminder-date-overdue {
  color: var(--danger);
  font-weight: 600;
}
.reminder-date-today {
  color: var(--primary);
  font-weight: 600;
}
.reminder-animal-tag {
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
}
.reminder-animal-tag:hover {
  opacity: 0.8;
}
.reminder-email-badge {
  font-size: 0.85rem;
  color: var(--primary);
  margin-left: 0.2rem;
}
.custom-reminder-delete {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 0.3rem;
  line-height: 1;
  flex-shrink: 0;
}
.custom-reminder-delete:hover {
  color: var(--danger);
}
.custom-reminders-done-header {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.5rem 0;
  cursor: pointer;
  user-select: none;
}
.custom-reminders-done-header:hover {
  color: var(--text);
}
.collapsed {
  display: none;
}

/* Settings Account */
.settings-user-card {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: #fff;
  padding: 1.2rem 1.25rem;
}
.settings-user-greeting {
  font-size: 1.05rem;
}
.settings-user-greeting strong {
  font-weight: 700;
}
.settings-section-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}
.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.form-hint.error {
  color: var(--danger);
}

.form-error {
  color: var(--danger);
  font-size: 0.85rem;
  margin: 0.5rem 0;
}
.form-success {
  color: var(--success);
  font-size: 0.85rem;
  margin: 0.5rem 0;
}

/* Share Button */
.btn-share {
  margin-left: auto;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 0.82rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
}
.btn-share:hover { opacity: 0.9; }

/* Share Overlay */
.share-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-menu {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 1.5rem;
  width: 90%;
  max-width: 360px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.share-menu h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  text-align: center;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.share-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  min-width: 72px;
  transition: all 0.15s ease;
}
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.share-btn svg { flex-shrink: 0; }

.share-whatsapp:hover { background: #25d366; color: #fff; border-color: #25d366; }
.share-email:hover { background: #ea4335; color: #fff; border-color: #ea4335; }
.share-sms:hover { background: #34b7f1; color: #fff; border-color: #34b7f1; }
.share-facebook:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.share-instagram:hover { background: #e4405f; color: #fff; border-color: #e4405f; }

.share-close {
  width: 100%;
  margin-top: 0.25rem;
}

/* Limit Toast */
.limit-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1e293b;
  color: #f1f5f9;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.limit-toast-icon {
  font-size: 1.1rem;
}

/* ========== DARK MODE: AUTH ========== */
body.dark-mode #auth-screen {
  background: linear-gradient(135deg, #312e81 0%, #581c87 100%);
}

body.dark-mode .auth-card {
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

body.dark-mode .auth-tab.active {
  background: var(--primary);
}

body.dark-mode .limit-toast {
  background: #334155;
}

body.dark-mode .plan-card {
  background: var(--bg-card);
}

body.dark-mode .plan-badge {
  background: var(--primary);
}

/* Header */
header {
  background: #ffffff;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 0.5rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}

.header-user {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.header-icon {
  font-size: 1.5rem;
}

header h1 {
  font-size: 1.3rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

header p {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-left: auto;
}

/* Main Navigation */
.main-nav {
  display: flex;
  gap: 0.25rem;
  padding: 0.75rem 0;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.main-nav-btn {
  padding: 0.55rem 1.15rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.15s;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.main-nav-btn:hover {
  color: var(--text);
  background: var(--bg-card-hover);
}

.main-nav-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Buttons */
.btn {
  padding: 0.55rem 1.15rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 2px 4px rgba(99, 102, 241, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: #cbd5e1;
}

.btn-danger {
  background: var(--danger-light);
  color: var(--danger);
  border: 1px solid #fecaca;
}
.btn-danger:hover {
  background: var(--danger);
  color: #fff;
}

.btn-back {
  background: transparent;
  color: var(--primary);
  padding: 0.4rem 0.6rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.btn-back:hover {
  background: var(--primary-light);
}

.btn-small {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}

.btn-icon {
  background: transparent;
  color: var(--text-light);
  padding: 0.2rem 0.45rem;
  font-size: 1rem;
  border-radius: 6px;
}
.btn-icon:hover {
  color: var(--danger);
  background: var(--danger-light);
}

/* List Header */
.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.list-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Section titles */
.section-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  padding-left: 0.25rem;
}

/* Animal grid */
.animal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.85rem;
  margin-bottom: 2rem;
}

/* Animal card */
.animal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

.animal-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-photo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.card-no-photo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1.3rem;
}

.card-info {
  flex: 1;
  min-width: 0;
}

.card-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

.card-subtitle {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 0.4rem;
}

.card-meta {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
}

.card-meta span {
  background: var(--bg);
  color: var(--text-muted);
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-weight: 500;
}

.card-meta .tag-weight {
  background: #ecfdf5;
  color: #059669;
  border-color: #a7f3d0;
}

.card-meta .tag-id {
  background: var(--primary-light);
  color: var(--primary);
  border-color: #c7d2fe;
}

.card-meta .tag-project-number {
  background: #1e293b;
  color: #ffffff;
  border-color: #1e293b;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.card-meta .tag-hatch-date {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
  font-weight: 600;
}

.card-meta .tag-overdue {
  background: #fef2f2;
  color: var(--danger);
  border-color: #fecaca;
  font-weight: 600;
}

.card-meta .tag-overdue-weight {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
  font-weight: 600;
}

.card-meta .tag-sex-male {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
}

.card-meta .tag-sex-female {
  background: #f5f3ff;
  color: #7c3aed;
  border-color: #ddd6fe;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state p {
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.empty-text {
  color: var(--text-muted);
  font-size: 0.88rem;
  padding: 1rem 0;
  text-align: center;
}

/* Form */
.form-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.form-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
}

.animal-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  flex-basis: 100%;
}

.form-group label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

input[type="text"],
input[type="number"],
input[type="date"],
select,
textarea {
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
  background: #fff;
}

textarea {
  resize: vertical;
}

input[type="file"] {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.photo-upload {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.photo-preview {
  max-width: 120px;
  max-height: 90px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border);
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

/* Detail view */
.detail-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.detail-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.detail-card-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.detail-info {
  display: flex;
  gap: 1.5rem;
}

.detail-photo {
  width: 130px;
  height: 130px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.detail-no-photo {
  width: 130px;
  height: 130px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 2.5rem;
  flex-shrink: 0;
}

.detail-fields {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 2rem;
  align-content: start;
}

.detail-field {
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.detail-field .label {
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.detail-field .value {
  font-weight: 500;
  color: var(--text);
}

/* Inline forms */
.inline-form {
  background: var(--primary-light);
  border: 1.5px solid #c7d2fe;
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1rem;
}

.inline-form-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* Data table */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.65rem 0.85rem;
  font-size: 0.875rem;
}

.data-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--border);
}

.data-table td {
  border-bottom: 1px solid var(--border);
}

.data-table tbody tr:hover {
  background: var(--bg);
}

.data-table td:last-child {
  text-align: right;
  width: 40px;
}

.status-gefressen {
  color: var(--success);
  font-weight: 600;
}

.status-nicht_gefressen {
  color: var(--warning);
  font-weight: 600;
}

.status-nicht_angeboten {
  color: var(--text-light);
  font-weight: 500;
}

/* Danger zone */
.danger-zone {
  padding: 1rem 0;
  text-align: right;
}

/* Weight chart */
.chart-container {
  position: relative;
  width: 100%;
  height: 220px;
  margin-bottom: 1rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.chart-container canvas {
  width: 100% !important;
  height: 100% !important;
}

.chart-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-light);
  font-size: 0.88rem;
}

/* Tabs */
.detail-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1rem;
}

.tab-btn {
  padding: 0.65rem 1.25rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.15s;
}

.tab-btn:hover {
  color: var(--text);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Reminder Banner */
.reminder-banner {
  background: linear-gradient(135deg, #fef3c7, #fef9c3);
  border: 1.5px solid #fbbf24;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.reminder-banner-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: #92400e;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.reminder-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  font-size: 0.85rem;
  color: #78350f;
  cursor: pointer;
  border-radius: 6px;
  padding-left: 0.5rem;
  transition: background 0.15s;
}

.reminder-item:hover {
  background: rgba(251, 191, 36, 0.2);
}

.reminder-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  white-space: nowrap;
}

.reminder-tag.feeding {
  background: #fde68a;
  color: #92400e;
}

.reminder-tag.weighing {
  background: #dbeafe;
  color: #1e40af;
}

/* Checkbox styling */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 500;
  user-select: none;
  padding: 0.5rem 0;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.form-section-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

/* Notes card */
.notes-card {
  padding: 1.25rem 1.5rem;
}

.notes-display {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.notes-edit textarea {
  width: 100%;
  margin-bottom: 0;
}

/* Detail reminders badges */
.detail-reminders {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}

.detail-reminder-badge {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.detail-reminder-badge.active {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.detail-reminder-badge.inactive {
  background: var(--bg);
  color: var(--text-light);
  border: 1px solid var(--border);
}

/* Scientific name italic */
.detail-scientific {
  font-style: italic;
}

/* Settings */
.settings-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
}

.settings-label strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.settings-label span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--border);
  border-radius: 26px;
  transition: background 0.25s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
}

/* ========== THEME SELECTOR ========== */

.theme-selector {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0 0.25rem;
}

.theme-option {
  flex: 1;
  background: none;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  font-family: inherit;
  color: var(--text);
}

.theme-option:hover {
  border-color: var(--text-muted);
}

.theme-option.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

body.theme-jungle .theme-option.active {
  border-color: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15);
}

.theme-option span {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.4rem;
}

/* Theme Previews */
.theme-preview {
  border-radius: 8px;
  height: 60px;
  overflow: hidden;
  position: relative;
}

.tp-header {
  height: 14px;
  margin-bottom: 4px;
  border-radius: 4px 4px 0 0;
}

.tp-cards {
  display: flex;
  gap: 3px;
  padding: 0 4px;
}

.tp-card {
  flex: 1;
  height: 30px;
  border-radius: 4px;
}

/* Light preview */
.theme-preview-light {
  background: #f5f7fa;
  border: 1px solid #e2e8f0;
}
.theme-preview-light .tp-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}
.theme-preview-light .tp-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

/* Dark preview */
.theme-preview-dark {
  background: #0f172a;
  border: 1px solid #334155;
}
.theme-preview-dark .tp-header {
  background: #1e293b;
  border-bottom: 1px solid #334155;
}
.theme-preview-dark .tp-card {
  background: #1e293b;
  border: 1px solid #334155;
}

/* Jungle preview */
.theme-preview-jungle {
  background: #0c1a0f;
  border: 1px solid #2d4a2d;
}
.theme-preview-jungle .tp-header {
  background: linear-gradient(135deg, #162415, #1e3320);
  border-bottom: 1px solid #2d4a2d;
}
.theme-preview-jungle .tp-card {
  background: linear-gradient(135deg, rgba(22, 36, 21, 0.8), rgba(30, 51, 32, 0.6));
  border: 1px solid rgba(74, 222, 128, 0.15);
}

/* Dark Mode */
body.dark-mode {
  --bg: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #273548;
  --bg-input: #1e293b;
  --border: #334155;
  --border-focus: #818cf8;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --primary: #818cf8;
  --primary-hover: #6366f1;
  --primary-light: rgba(99, 102, 241, 0.15);
  --danger-light: rgba(239, 68, 68, 0.15);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
  --shadow: 0 1px 3px rgba(0,0,0,0.25), 0 1px 2px rgba(0,0,0,0.15);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.2), 0 2px 4px rgba(0,0,0,0.15);
}

body.dark-mode header {
  background: #1e293b;
  border-bottom-color: #334155;
}

body.dark-mode input:focus,
body.dark-mode select:focus,
body.dark-mode textarea:focus {
  background: #273548;
}

body.dark-mode .inline-form {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.25);
}

body.dark-mode .reminder-banner {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.08));
  border-color: rgba(251, 191, 36, 0.4);
}

body.dark-mode .reminder-banner-title {
  color: #fbbf24;
}

body.dark-mode .reminder-item {
  color: #fde68a;
}

body.dark-mode .card-no-photo {
  background: linear-gradient(135deg, #334155, #1e293b);
}

body.dark-mode .detail-no-photo {
  background: linear-gradient(135deg, #334155, #1e293b);
}

body.dark-mode .breeding-card-icon {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(236, 72, 153, 0.08));
}

body.dark-mode .breeding-photo-delete {
  background: rgba(30, 41, 59, 0.9) !important;
  color: var(--danger);
}

body.dark-mode .pairing-extra-info {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.3);
}

body.dark-mode .hatch-date-preview {
  color: #fbbf24;
}

body.dark-mode .pricelist-price-input:focus {
  background: #273548;
}

body.dark-mode .btn-icon-delete:hover {
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
}

body.dark-mode .sale-status-available {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
}

body.dark-mode .sale-status-reservation {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
}

body.dark-mode .sale-status-sold {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

body.dark-mode .bk-type-einnahme {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
}

body.dark-mode .bk-type-ausgabe {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
}

body.dark-mode .bk-type-btn-einnahme.active {
  background: #059669;
  color: #fff;
}

body.dark-mode .bk-type-btn-ausgabe.active {
  background: #ef4444;
  color: #fff;
}

/* ========== JUNGLE THEME ========== */

body.theme-jungle {
  --bg: #0a1a0d;
  --bg-card: #122614;
  --bg-card-hover: #1a3620;
  --bg-input: #162e18;
  --border: #285a2e;
  --border-focus: #4ade80;
  --text: #e8f5e9;
  --text-muted: #a5d6a7;
  --text-light: #66bb6a;
  --primary: #4ade80;
  --primary-hover: #22c55e;
  --primary-light: rgba(74, 222, 128, 0.15);
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --danger-light: rgba(239, 68, 68, 0.15);
  --success: #4ade80;
  --warning: #facc15;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow: 0 2px 8px rgba(0,0,0,0.4), 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.35), 0 2px 6px rgba(0,0,0,0.25);
}

/* Jungle: Background with subtle gradient overlay */
body.theme-jungle {
  background-image: radial-gradient(ellipse at 20% 50%, rgba(34, 197, 94, 0.06) 0%, transparent 60%),
                     radial-gradient(ellipse at 80% 20%, rgba(250, 204, 21, 0.04) 0%, transparent 50%),
                     radial-gradient(ellipse at 60% 80%, rgba(74, 222, 128, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Jungle: Header — liquid glass with green-yellow shimmer */
body.theme-jungle header {
  background: linear-gradient(135deg, rgba(18, 38, 20, 0.92) 0%, rgba(26, 54, 32, 0.88) 50%, rgba(20, 42, 22, 0.92) 100%);
  border-bottom: 1px solid rgba(74, 222, 128, 0.2);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3), 0 1px 0 rgba(74, 222, 128, 0.1) inset;
}

body.theme-jungle .main-nav-btn {
  color: #a5d6a7;
}

body.theme-jungle .main-nav-btn:hover {
  color: #facc15;
}

body.theme-jungle .main-nav-btn.active {
  color: #facc15;
  border-bottom-color: #facc15;
}

body.theme-jungle .main-nav-settings {
  color: #facc15;
  opacity: 0.8;
}

body.theme-jungle input:focus,
body.theme-jungle select:focus,
body.theme-jungle textarea:focus {
  background: #1a3620;
  border-color: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18), 0 0 12px rgba(74, 222, 128, 0.08);
}

/* Jungle: Auth screen — deep forest */
body.theme-jungle #auth-screen {
  background: linear-gradient(160deg, #061208 0%, #0d2411 30%, #132a12 60%, #0a1a0d 100%);
}

body.theme-jungle .auth-card {
  background: linear-gradient(145deg, rgba(18, 38, 20, 0.85), rgba(26, 54, 32, 0.75));
  border: 1px solid rgba(74, 222, 128, 0.25);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(74, 222, 128, 0.05);
  backdrop-filter: blur(20px);
}

body.theme-jungle .auth-tab.active {
  background: linear-gradient(135deg, #4ade80, #22c55e);
  color: #0a1a0d;
}

body.theme-jungle .limit-toast {
  background: linear-gradient(135deg, rgba(26, 54, 32, 0.95), rgba(40, 90, 46, 0.9));
  border: 1px solid rgba(74, 222, 128, 0.3);
  backdrop-filter: blur(12px);
}

/* Jungle: Cards — liquid glass with green-to-yellow shimmer */
body.theme-jungle .detail-card,
body.theme-jungle .settings-card {
  background: linear-gradient(145deg, rgba(18, 38, 20, 0.75) 0%, rgba(30, 60, 34, 0.55) 50%, rgba(22, 46, 24, 0.7) 100%);
  border: 1px solid rgba(74, 222, 128, 0.18);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2), 0 1px 0 rgba(74, 222, 128, 0.06) inset;
}

body.theme-jungle .animal-card {
  background: linear-gradient(160deg, rgba(18, 38, 20, 0.8) 0%, rgba(26, 50, 28, 0.6) 60%, rgba(40, 70, 34, 0.45) 100%);
  border: 1px solid rgba(74, 222, 128, 0.15);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: all 0.25s;
}

body.theme-jungle .animal-card:hover {
  border-color: rgba(250, 204, 21, 0.4);
  box-shadow: 0 6px 24px rgba(74, 222, 128, 0.12), 0 0 0 1px rgba(250, 204, 21, 0.15);
  transform: translateY(-2px);
}

/* Jungle: Stat cards — glowing glass panels */
body.theme-jungle .stat-card {
  background: linear-gradient(145deg, rgba(18, 38, 20, 0.7), rgba(34, 66, 38, 0.5));
  border: 1px solid rgba(74, 222, 128, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2), 0 0 20px rgba(74, 222, 128, 0.04);
  position: relative;
  overflow: hidden;
}

body.theme-jungle .stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #4ade80, #facc15, #4ade80, transparent);
  opacity: 0.6;
}

body.theme-jungle .stat-value {
  background: linear-gradient(135deg, #4ade80, #facc15);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.theme-jungle .stat-label {
  color: #a5d6a7;
}

/* Jungle: Section titles with yellow accent */
body.theme-jungle .section-title,
body.theme-jungle .list-header h2 {
  color: #fde68a;
}

/* Jungle: Reminders — golden glow */
body.theme-jungle .reminder-banner {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.1) 0%, rgba(74, 222, 128, 0.06) 50%, rgba(250, 204, 21, 0.08) 100%);
  border: 1px solid rgba(250, 204, 21, 0.3);
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.05);
}

body.theme-jungle .reminder-banner-title {
  color: #facc15;
  text-shadow: 0 0 12px rgba(250, 204, 21, 0.3);
}

body.theme-jungle .reminder-item {
  color: #fde68a;
}

/* Jungle: Photos */
body.theme-jungle .card-no-photo {
  background: linear-gradient(135deg, #162e18, #1e3e22, #0f2212);
}

body.theme-jungle .detail-no-photo {
  background: linear-gradient(135deg, #162e18, #1e3e22, #0f2212);
}

body.theme-jungle .dashboard-reminder-no-photo {
  background: linear-gradient(135deg, #162e18, #0f2212);
}

body.theme-jungle .dash-hatch-no-photo {
  background: linear-gradient(135deg, #162e18, #1a4020);
}

/* Jungle: Breeding */
body.theme-jungle .breeding-card-icon {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.1), rgba(74, 222, 128, 0.08));
}

body.theme-jungle .breeding-photo-delete {
  background: rgba(10, 26, 13, 0.9) !important;
  color: var(--danger);
}

body.theme-jungle .pairing-extra-info {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.08), rgba(250, 204, 21, 0.04));
  border-color: rgba(250, 204, 21, 0.3);
}

body.theme-jungle .hatch-date-preview {
  color: #facc15;
  text-shadow: 0 0 8px rgba(250, 204, 21, 0.25);
}

/* Jungle: Inline form */
body.theme-jungle .inline-form {
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.06), rgba(250, 204, 21, 0.04));
  border-color: rgba(74, 222, 128, 0.2);
}

/* Jungle: Buttons — green gradient with glow */
body.theme-jungle .btn-primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  box-shadow: 0 2px 10px rgba(34, 197, 94, 0.25);
}

body.theme-jungle .btn-primary:hover {
  background: linear-gradient(135deg, #4ade80, #22c55e);
  box-shadow: 0 4px 16px rgba(74, 222, 128, 0.3);
}

body.theme-jungle .btn-secondary {
  border-color: #285a2e;
  color: #a5d6a7;
}

body.theme-jungle .btn-secondary:hover {
  background: rgba(74, 222, 128, 0.1);
  border-color: #4ade80;
  color: #4ade80;
}

/* Jungle: Data table */
body.theme-jungle .data-table th {
  color: #facc15;
  border-bottom-color: rgba(250, 204, 21, 0.2);
}

body.theme-jungle .data-table tr:hover td {
  background: rgba(74, 222, 128, 0.05);
}

/* Jungle: Pricelist */
body.theme-jungle .pricelist-price-input {
  background: rgba(18, 38, 20, 0.6);
  border-color: #285a2e;
}

body.theme-jungle .pricelist-price-input:focus {
  background: #1a3620;
}

body.theme-jungle .btn-icon-delete:hover {
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
}

body.theme-jungle .sale-status-available {
  background: rgba(74, 222, 128, 0.15);
  border-color: rgba(74, 222, 128, 0.35);
  color: #4ade80;
}

body.theme-jungle .sale-status-reservation {
  background: rgba(250, 204, 21, 0.12);
  border-color: rgba(250, 204, 21, 0.35);
  color: #facc15;
}

body.theme-jungle .sale-status-sold {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

/* Jungle: Bookkeeping */
body.theme-jungle .bk-type-einnahme {
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.3);
}

body.theme-jungle .bk-type-ausgabe {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
}

body.theme-jungle .bk-type-btn-einnahme.active {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

body.theme-jungle .bk-type-btn-ausgabe.active {
  background: #ef4444;
  color: #fff;
}

/* Jungle: Dashboard reminder details */
body.theme-jungle .reminder-detail.feeding {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
}

body.theme-jungle .reminder-detail.weighing {
  background: rgba(59, 130, 246, 0.1);
  color: #93c5fd;
}

/* Jungle: Plan cards — premium glass look */
body.theme-jungle .plan-card {
  background: linear-gradient(145deg, rgba(18, 38, 20, 0.8), rgba(34, 66, 38, 0.5));
  border: 1px solid rgba(74, 222, 128, 0.18);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

body.theme-jungle .plan-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4ade80, #facc15, #4ade80);
  opacity: 0.5;
}

body.theme-jungle .plan-badge {
  background: linear-gradient(135deg, #facc15, #fbbf24);
  color: #0a1a0d;
  font-weight: 700;
}

body.theme-jungle .plan-card-current {
  border-color: #facc15;
  box-shadow: 0 0 24px rgba(250, 204, 21, 0.12);
}

body.theme-jungle .plan-price {
  color: #facc15;
}

/* Jungle: Tags */
body.theme-jungle .tag-sex-male {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

body.theme-jungle .tag-sex-female {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
}

/* Jungle: Header user display */
body.theme-jungle #header-user-display {
  color: #a5d6a7;
}

/* Jungle: Scrollbar */
body.theme-jungle ::-webkit-scrollbar-track {
  background: #0a1a0d;
}

body.theme-jungle ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #285a2e, #1e3e22);
  border-radius: 4px;
}

body.theme-jungle ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #4ade80, #22c55e);
}

/* Jungle: Quick hatchling form */
body.theme-jungle .quick-hatchling-form {
  background: linear-gradient(145deg, rgba(18, 38, 20, 0.85), rgba(30, 60, 34, 0.65));
  border-color: rgba(74, 222, 128, 0.2);
}

/* Jungle: Dashboard hatch cards */
body.theme-jungle .dash-hatch-card {
  background: linear-gradient(145deg, rgba(18, 38, 20, 0.75), rgba(30, 60, 34, 0.55));
  border-color: rgba(74, 222, 128, 0.15);
}

body.theme-jungle .dash-hatch-card:hover {
  border-color: rgba(250, 204, 21, 0.35);
  box-shadow: 0 4px 16px rgba(74, 222, 128, 0.1);
}

/* Breeding Cards */
.breeding-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: linear-gradient(135deg, #fce7f3, #fdf2f8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ec4899;
  font-size: 1.4rem;
}

.tag-breeding-status {
  background: #fdf2f8;
  color: #be185d;
  border-color: #fbcfe8;
}

/* Breeding Pair Cards */
.breeding-pair-cards {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.breeding-animal-card {
  flex: 1;
  cursor: pointer;
}

.breeding-pair-separator {
  font-size: 1.5rem;
  color: var(--text-light);
  font-weight: 300;
  flex-shrink: 0;
}

/* Inline edit styles for pairing table */
.pairing-edit-date {
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 6px;
  padding: 0.3rem 0.5rem;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  width: 140px;
}

.pairing-edit-date:hover,
.pairing-edit-date:focus {
  border-color: var(--border);
  background: var(--bg-input);
  outline: none;
}

.pairing-date-display {
  font-size: 0.875rem;
}

.pairing-edit-btn {
  font-size: 0.85rem;
  padding: 0.15rem 0.35rem;
  margin-left: 0.35rem;
  color: var(--text-light);
  vertical-align: middle;
}

.pairing-edit-btn:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.pairing-edit-status {
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 20px;
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.pairing-edit-status:hover,
.pairing-edit-status:focus {
  border-color: var(--border);
  outline: none;
  appearance: auto;
  -webkit-appearance: menulist;
}

/* Pairing status tags */
.pairing-status-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-bevorstehend { background: #f0f9ff; color: #0369a1; }
.status-aktiv { background: #ecfdf5; color: #059669; }
.status-paarung-beobachtet { background: #fdf4ff; color: #a21caf; }
.status-paarung-nicht-beobachtet { background: #fff7ed; color: #c2410c; }
.status-ovulation { background: #fefce8; color: #a16207; }
.status-pos { background: #f0fdf4; color: #15803d; font-weight: 700; }
.status-eiablage { background: #fef3c7; color: #92400e; font-weight: 700; }
.status-geschlüpft { background: #d1fae5; color: #065f46; font-weight: 700; }

.pairing-extra-info {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  padding: 0.3rem 0.6rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
}

.hatch-date-preview {
  font-size: 0.82rem;
  color: #92400e;
  font-weight: 500;
  padding: 0.35rem 0;
}

/* Breeding Photos */
.breeding-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.breeding-photo-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
}

.breeding-photo-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: opacity 0.15s;
}

.breeding-photo-item img:hover {
  opacity: 0.85;
}

.breeding-photo-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(255,255,255,0.9) !important;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.15s;
}

.breeding-photo-item:hover .breeding-photo-delete {
  opacity: 1;
}

.breeding-photo-date {
  font-size: 0.7rem;
  color: var(--text-light);
  text-align: center;
  padding: 0.25rem;
}

/* Document link */
.doc-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.doc-link:hover {
  text-decoration: underline;
}

/* Layout toggle button */
.list-header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.btn-icon-toggle {
  font-size: 1.1rem;
  padding: 0.45rem 0.65rem;
  line-height: 1;
}

/* List layout (untereinander) */
.animal-grid.animal-list {
  grid-template-columns: 1fr;
}

/* Drag handle */
.drag-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 36px;
  color: var(--text-light);
  font-size: 0.9rem;
  cursor: grab;
  flex-shrink: 0;
  border-radius: 4px;
  opacity: 0.4;
  transition: opacity 0.15s, background 0.15s;
  user-select: none;
}

.drag-handle:hover {
  opacity: 1;
  background: var(--bg);
}

.drag-handle:active {
  cursor: grabbing;
}

/* Drag states */
.animal-card.dragging {
  opacity: 0.4;
  transform: scale(0.98);
  box-shadow: var(--shadow);
}

.animal-card.drag-over {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

/* Abgeschlossen Section */
.abgeschlossen-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid var(--border);
}

.abgeschlossen-section .animal-card {
  opacity: 0.8;
}

.abgeschlossen-section .animal-card:hover {
  opacity: 1;
}

/* Hatchling List */
.hatchling-row {
  cursor: pointer;
}

.hatchling-row:hover {
  background: var(--primary-light) !important;
}

/* Dashboard Section Title */
.dash-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.5rem 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Dashboard Stats */
.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.dashboard-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.dashboard-stat-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.dashboard-stat-icon {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.dashboard-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.dashboard-stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.dashboard-stat-sub {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* Dashboard Reminders */
.dashboard-reminders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}

.dashboard-reminder-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid #f59e0b;
}

.dashboard-reminder-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  border-left-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.dashboard-reminder-header {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0.6rem;
}

.dashboard-reminder-photo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.dashboard-reminder-no-photo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1.1rem;
}

.dashboard-reminder-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.dashboard-reminder-meta {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.dashboard-reminder-meta span {
  background: var(--bg);
  padding: 0.1rem 0.4rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-weight: 500;
}

.dashboard-reminder-details {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.reminder-detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
}

.reminder-detail.feeding {
  background: #fef2f2;
  color: #b91c1c;
}

.reminder-detail.weighing {
  background: #eff6ff;
  color: #1d4ed8;
}

.reminder-detail-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.reminder-detail-text {
  line-height: 1.3;
}

.reminder-detail-text strong {
  font-weight: 700;
}

body.dark-mode .dashboard-reminder-no-photo {
  background: linear-gradient(135deg, #334155, #1e293b);
}

body.dark-mode .reminder-detail.feeding {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}

body.dark-mode .reminder-detail.weighing {
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
}

/* Dashboard Upcoming Hatches */
.dashboard-hatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}

.dash-hatch-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 0.7rem;
  align-items: center;
  border-left: 3px solid #10b981;
}

.dash-hatch-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  border-left-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.dash-hatch-photo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.dash-hatch-no-photo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: linear-gradient(135deg, #d1fae5, #ecfdf5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.dash-hatch-info {
  flex: 1;
  min-width: 0;
}

.dash-hatch-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 0.2rem;
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.dash-hatch-name .tag-project-number {
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
}

.dash-hatch-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.dash-hatch-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dash-hatch-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.dash-hatch-progress-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #10b981, #34d399);
  transition: width 0.3s ease;
}

.dash-hatch-days-left {
  font-size: 0.7rem;
  font-weight: 600;
  color: #059669;
  white-space: nowrap;
}

body.dark-mode .dash-hatch-no-photo {
  background: linear-gradient(135deg, #064e3b, #022c22);
}

/* Preisliste */
.pricelist-table td:last-child {
  text-align: left;
  width: auto;
}

.pricelist-price-input {
  width: 90px;
  padding: 0.3rem 0.5rem;
  font-size: 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--bg-input);
  color: var(--text);
  font-family: inherit;
}

.pricelist-price-input:focus {
  border-color: var(--border-focus);
  outline: none;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.12);
  background: #fff;
}

.pricelist-status-select {
  padding: 0.3rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
}

.pricelist-status-select:focus {
  outline: none;
  border-color: var(--border-focus);
}

.sale-status-available {
  background: #ecfdf5;
  color: #059669;
  border-color: #a7f3d0;
}

.sale-status-reservation {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

.btn-icon-delete {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}

.btn-icon-delete:hover {
  color: #ef4444;
  background: #fef2f2;
}

.sale-status-sold {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.pricelist-row td {
  vertical-align: middle;
}

/* Buchhaltung - Typ Toggle */
.bk-type-toggle {
  display: flex;
  gap: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.5px solid var(--border);
}

.bk-type-btn {
  flex: 1;
  padding: 0.5rem 1rem;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  background: var(--bg);
  color: var(--text-muted);
  transition: all 0.15s;
}

.bk-type-btn:first-child {
  border-right: 1px solid var(--border);
}

.bk-type-btn-einnahme.active {
  background: #059669;
  color: #fff;
}

.bk-type-btn-ausgabe.active {
  background: #ef4444;
  color: #fff;
}

.bk-type-btn:hover:not(.active) {
  background: var(--bg-card-hover);
}

/* Buchhaltung - Summary */
.bk-summary-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.bk-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.bk-summary-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
}

.bk-summary-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.bk-einnahmen .bk-summary-value { color: #059669; }
.bk-ausgaben .bk-summary-value { color: #ef4444; }
.bk-positive .bk-summary-value { color: #059669; }
.bk-negative .bk-summary-value { color: #ef4444; }

.bk-amount-positive {
  color: #059669;
  font-weight: 600;
}

.bk-amount-negative {
  color: #ef4444;
  font-weight: 600;
}

.bk-type-einnahme {
  display: inline-block;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-right: 0.35rem;
}

.bk-type-ausgabe {
  display: inline-block;
  background: #fef2f2;
  color: #ef4444;
  border: 1px solid #fecaca;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-right: 0.35rem;
}

.bk-category-tag {
  display: inline-block;
  background: var(--bg);
  color: var(--text-muted);
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 500;
  border: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 768px) {
  .main-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav-btn {
    font-size: 0.8rem;
    padding: 0.45rem 0.85rem;
    white-space: nowrap;
  }
}

@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
  }

  .detail-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .detail-fields {
    grid-template-columns: 1fr;
  }

  .animal-grid {
    grid-template-columns: 1fr;
  }

  .breeding-pair-cards {
    flex-direction: column;
  }

  .breeding-pair-separator {
    transform: rotate(90deg);
  }

  header {
    padding: 1rem;
  }

  main {
    padding: 1rem;
  }

  .bk-summary-cards {
    grid-template-columns: 1fr;
  }

  .dashboard-stats-grid {
    grid-template-columns: 1fr;
  }

  .auth-container {
    padding: 1rem;
  }

  .auth-card {
    padding: 2rem 1.5rem 1.5rem;
  }

  .plan-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== PAYMENT MODAL ========== */

.payment-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.payment-modal {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  position: relative;
  animation: paymentSlideIn 0.25s ease-out;
  color: #1e293b;
}

.payment-modal label {
  color: #1e293b;
}

.payment-modal input {
  background: #ffffff !important;
  color: #1e293b !important;
  border-color: #e2e8f0 !important;
}

.payment-modal input:focus {
  border-color: #6366f1 !important;
}

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

.payment-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.15s;
}

.payment-close:hover {
  color: #1e293b;
}

.payment-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.payment-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.payment-header p {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.payment-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* Payment modal is always white, no dark-mode override needed */

.payment-features {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem;
}

.payment-features li {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.payment-features li::before {
  content: '\2713';
  color: #10b981;
  font-weight: 700;
  font-size: 0.95rem;
}

.payment-info {
  text-align: center;
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.payment-info svg {
  flex-shrink: 0;
}
