/* ==========================================================================
   DORAEMON HOSTING V17 — PREMIUM PRODUCTION DESIGN SYSTEM
   - Scaled-up typography, buttons (46-52px), inputs (48-54px), and generous cards
   - Dark Mode: Deep Obsidian (#090b10) + Charcoal Surfaces + Warm Orange Accents
   - Light Mode: Warm Ivory (#fdf8f2) + Soft Cream Surfaces + Burnt Orange Accents
   - Semantic Accents: Orange (Primary), Green (Success), Red (Danger)
   - Full prefers-reduced-motion accessibility support
   ========================================================================== */
:root {
  --bg: #090b10;
  --bg-subtle: #0e121b;
  --surface: #131825;
  --surface-2: #192031;
  --surface-hover: #212a40;
  --border: rgba(148, 163, 184, 0.15);
  --border-strong: rgba(249, 115, 22, 0.36);

  --accent: #f97316;
  --accent-hover: #fb923c;
  --accent-2: #ea580c;
  --accent-soft: rgba(249, 115, 22, 0.15);
  --accent-fg: #fb923c;
  --accent-on: #ffffff;

  --pro-grad: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  --pro-grad-hover: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
  --pro-border-glow: rgba(249, 115, 22, 0.35);
  --pro-card-bg: linear-gradient(180deg, rgba(21, 27, 42, 0.96) 0%, rgba(14, 18, 29, 0.98) 100%);

  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.15);
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.15);
  --red: #ef4444;
  --red-soft: rgba(239, 68, 68, 0.15);
  --text: #f8fafc;
  --text-2: #a8b3c7;
  --text-3: #718099;
}

html[data-theme="light"] {
  --bg: #fdf8f2;
  --bg-subtle: #f8efe4;
  --surface: #fffbf6;
  --surface-2: #f5e9da;
  --surface-hover: #eddac4;
  --border: rgba(154, 52, 18, 0.14);
  --border-strong: rgba(234, 88, 12, 0.34);

  --accent: #ea580c;
  --accent-hover: #c2410c;
  --accent-2: #f97316;
  --accent-soft: rgba(234, 88, 12, 0.12);
  --accent-fg: #c2410c;
  --accent-on: #ffffff;

  --pro-grad: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  --pro-grad-hover: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  --pro-border-glow: rgba(234, 88, 12, 0.32);
  --pro-card-bg: linear-gradient(180deg, #fffdf9 0%, #fbf3e8 100%);

  --text: #1c1917;
  --text-2: #57534e;
  --text-3: #78716c;
}

/* Global Scaled-Up Readable Typography */
body {
  font-size: 16px !important;
  line-height: 1.62 !important;
  background-image:
    radial-gradient(ellipse 75% 42% at 15% -10%, rgba(249, 115, 22, 0.12), transparent 65%),
    radial-gradient(ellipse 60% 38% at 88% 8%, rgba(234, 88, 12, 0.08), transparent 62%) !important;
}
html[data-theme="light"] body {
  background-image:
    radial-gradient(ellipse 75% 42% at 15% -10%, rgba(234, 88, 12, 0.09), transparent 65%),
    radial-gradient(ellipse 60% 38% at 88% 8%, rgba(249, 115, 22, 0.07), transparent 62%) !important;
}

h1, .page-title, .auth-title {
  font-size: clamp(28px, 3vw, 38px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.2 !important;
}
h2, .section-title {
  font-size: clamp(21px, 2.2vw, 28px) !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em !important;
}
.page-desc, .auth-sub {
  font-size: 15.5px !important;
  line-height: 1.6 !important;
}

/* Larger Buttons (46px-52px height, comfortable touch targets) */
.btn, button.btn, a.btn {
  min-height: 46px !important;
  padding: 11px 20px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  border-radius: 12px !important;
  gap: 8px !important;
}
.btn-sm, button.btn-sm, a.btn-sm {
  min-height: 40px !important;
  padding: 8px 15px !important;
  font-size: 14px !important;
  border-radius: 10px !important;
}
.btn-primary, button.btn-primary, a.btn-primary {
  background: var(--pro-grad) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 22px rgba(249, 115, 22, 0.28) !important;
}
.btn-primary:hover, button.btn-primary:hover, a.btn-primary:hover {
  background: var(--pro-grad-hover) !important;
  transform: translateY(-1.5px);
}

/* Larger Inputs & Selects (48px-54px) */
.input, .select, textarea.input {
  min-height: 48px !important;
  padding: 12px 15px !important;
  font-size: 15.5px !important;
  border-radius: 12px !important;
}
.input.with-ic {
  padding-left: 44px !important;
}
.label {
  font-size: 14px !important;
  font-weight: 600 !important;
  margin-bottom: 7px !important;
}

/* Generous Dashboard Cards & Panels */
.panel, .card, .srv-card, .metric-card {
  padding: 24px !important;
  margin-bottom: 20px !important;
  border-radius: 18px !important;
}
.panel-head {
  margin-bottom: 16px !important;
}
.panel-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  gap: 10px !important;
}
.row-item {
  padding: 14px 16px !important;
  border-radius: 12px !important;
  gap: 12px !important;
}

/* Larger Navigation & Sidebar */
.rail {
  width: 274px !important;
}
.rail-head {
  height: 64px !important;
  padding: 0 18px !important;
}
.rail-brand {
  font-size: 17px !important;
}
.nav-link {
  height: 44px !important;
  padding: 0 14px !important;
  font-size: 14.5px !important;
  border-radius: 10px !important;
  margin-bottom: 4px !important;
}
.header {
  height: 64px !important;
  padding: 0 20px !important;
}
.ic {
  width: 19px !important;
  height: 19px !important;
}
.ic-sm {
  width: 16px !important;
  height: 16px !important;
}
.badge {
  font-size: 12.5px !important;
  padding: 5px 11px !important;
  font-weight: 600 !important;
}

/* Properly Sized Modals */
.modal-card {
  padding: 28px !important;
  border-radius: 20px !important;
}

/* Reduced-Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
