/* ==========================================================================
   İrsaliye Talep — Premium dark + glassmorphism theme
   ========================================================================== */

:root {
  --bg-0: #0a0e1a;
  --bg-1: #0f1428;
  --bg-2: #131a33;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #e8ecf3;
  --text-muted: #8a93a6;
  --text-dim: #5f677a;

  --accent: #7c5cff;
  --accent-2: #4ea1ff;
  --accent-glow: 0 0 24px rgba(124, 92, 255, 0.35);

  --success: #2bd4a4;
  --success-2: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --info: #60a5fa;

  --grad-primary:  linear-gradient(135deg, #7c5cff 0%, #4ea1ff 100%);
  --grad-success:  linear-gradient(135deg, #10b981 0%, #34d399 100%);
  --grad-warning:  linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  --grad-danger:   linear-gradient(135deg, #ef4444 0%, #f87171 100%);
  --grad-info:     linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow:    0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);

  --radius:    14px;
  --radius-lg: 22px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--bg-0);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

body::before, body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
  filter: blur(80px);
  opacity: 0.55;
  transition: opacity 1s var(--ease);
}
body::before {
  top: -180px; left: -180px;
  width: 540px; height: 540px;
  background: radial-gradient(circle, #7c5cff 0%, transparent 60%);
}
body::after {
  bottom: -220px; right: -220px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, #4ea1ff 0%, transparent 60%);
}

.text-muted     { color: var(--text-muted) !important; }
.text-secondary { color: var(--text-muted) !important; }
.text-danger    { color: var(--danger) !important; }
.text-success   { color: var(--success) !important; }
.text-warning   { color: var(--warning) !important; }
.text-info      { color: var(--info) !important; }
.text-primary   { color: var(--accent) !important; }
.form-text      { color: var(--text-dim) !important; }

a { color: var(--accent-2); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent); }

/* -------------------------- Navbar -------------------------- */
.navbar {
  background: rgba(10, 14, 26, 0.7) !important;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
  padding-top: 12px;
  padding-bottom: 12px;
}
.navbar-brand {
  font-weight: 800;
  font-size: 18px;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}
.navbar-dark .navbar-nav .nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 10px;
  margin: 0 2px;
  transition: all .2s var(--ease);
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--text);
  background: var(--surface-2);
}
.dropdown-menu {
  background: rgba(15, 20, 40, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
}
.dropdown-item {
  color: var(--text);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  transition: all .15s;
}
.dropdown-item:hover, .dropdown-item:focus {
  background: var(--surface-hover);
  color: var(--text);
}

/* -------------------------- Cards -------------------------- */
.card {
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.card:hover { border-color: var(--border-strong); }
.card h2, .card h3, .card h4, .card h5, .card h6 { color: var(--text); }

/* KPI cards */
.kpi {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px 20px;
  transition: transform .3s var(--ease-out), border-color .3s, box-shadow .3s;
}
.kpi::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity .3s var(--ease);
  z-index: 0;
}
.kpi > * { position: relative; z-index: 1; }
.kpi:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.kpi .kpi-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}
.kpi .kpi-value {
  font-size: 32px;
  font-weight: 700;
  margin-top: 6px;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}
.kpi.success .kpi-value { background: var(--grad-success); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.kpi.primary .kpi-value { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.kpi.warning .kpi-value { background: var(--grad-warning); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.kpi.danger  .kpi-value { background: var(--grad-danger);  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.kpi.info    .kpi-value { background: var(--grad-info);    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* -------------------------- Hero CTA (İrsaliye Talebi Oluştur) -------------------------- */
.hero-cta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 32px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  transition: transform .35s var(--ease-out), border-color .35s, box-shadow .35s;
  cursor: pointer;
  margin-bottom: 24px;
}
.hero-cta::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--grad-primary);
  opacity: 0.92;
  transition: opacity .35s var(--ease);
  z-index: 0;
}
.hero-cta::after {
  content: "";
  position: absolute;
  top: -40%; left: -10%;
  width: 60%; height: 200%;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-100%) skewX(-15deg);
  transition: transform 1s var(--ease-out);
  z-index: 1;
}
.hero-cta > * { position: relative; z-index: 2; color: white !important; }
.hero-cta:hover {
  transform: translateY(-6px) scale(1.005);
  box-shadow: 0 24px 60px rgba(124, 92, 255, 0.5);
  color: white;
}
.hero-cta:hover::after { transform: translateX(250%) skewX(-15deg); }
.hero-cta .hc-icon {
  font-size: 64px;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.25));
  animation: floaty 3.5s var(--ease) infinite;
}
.hero-cta .hc-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}
.hero-cta .hc-sub {
  font-size: 14px;
  opacity: 0.9;
  margin-top: 4px;
}
.hero-cta .hc-arrow {
  margin-left: auto;
  font-size: 28px;
  transition: transform .35s var(--ease-out);
}
.hero-cta:hover .hc-arrow { transform: translateX(8px); }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* Action grid (smaller cards) */
.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.action-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  transition: transform .3s var(--ease-out), border-color .3s, box-shadow .3s;
  cursor: pointer;
}
.action-card::before {
  content: "";
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .35s var(--ease);
  z-index: 0;
}
.action-card::after {
  content: "";
  position: absolute;
  top: -40%; left: -10%;
  width: 60%; height: 200%;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.08) 50%, transparent 70%);
  transform: translateX(-100%) skewX(-15deg);
  transition: transform .8s var(--ease-out);
  z-index: 1;
}
.action-card > * { position: relative; z-index: 2; }
.action-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow);
  color: white;
}
.action-card:hover::before { opacity: 1; }
.action-card:hover::after { transform: translateX(250%) skewX(-15deg); }
.action-card.primary::before { background: var(--grad-primary); }
.action-card.success::before { background: var(--grad-success); }
.action-card.warning::before { background: var(--grad-warning); }
.action-card.info::before    { background: var(--grad-info); }
.action-card .ac-icon {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
}
.action-card .ac-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.action-card .ac-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.3;
}
.action-card:hover .ac-sub { color: rgba(255,255,255,0.85); }

/* -------------------------- Buttons -------------------------- */
.btn {
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 18px;
  border: 1px solid transparent;
  transition: transform .15s var(--ease), filter .15s, background .15s, border-color .15s, box-shadow .2s;
  letter-spacing: 0.005em;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--grad-primary);
  border: 0;
  color: white;
  box-shadow: 0 6px 20px rgba(124, 92, 255, 0.35);
}
.btn-primary:hover {
  filter: brightness(1.1);
  color: white;
  box-shadow: 0 8px 26px rgba(124, 92, 255, 0.5);
}
.btn-primary:disabled, .btn-primary.disabled {
  filter: grayscale(0.4) brightness(0.7);
  box-shadow: none;
  cursor: not-allowed;
}

.btn-success {
  background: var(--grad-success);
  border: 0;
  color: white;
  box-shadow: 0 6px 20px rgba(43, 212, 164, 0.3);
}
.btn-success:hover { filter: brightness(1.1); color: white; box-shadow: 0 8px 26px rgba(43, 212, 164, 0.45); }

.btn-warning {
  background: var(--grad-warning);
  border: 0;
  color: #1a1304;
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.3);
}
.btn-warning:hover { filter: brightness(1.05); color: #1a1304; box-shadow: 0 8px 26px rgba(251, 191, 36, 0.45); }

.btn-danger {
  background: var(--grad-danger);
  border: 0;
  color: white;
}
.btn-danger:hover { filter: brightness(1.1); color: white; }

.btn-outline-primary, .btn-outline-secondary, .btn-outline-success,
.btn-outline-warning, .btn-outline-danger, .btn-outline-info {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn-outline-primary:hover   { background: rgba(124, 92, 255, 0.18); color: var(--text); border-color: var(--accent); }
.btn-outline-success:hover   { background: rgba(43, 212, 164, 0.18); color: var(--text); border-color: var(--success); }
.btn-outline-warning:hover   { background: rgba(251, 191, 36, 0.18); color: var(--text); border-color: var(--warning); }
.btn-outline-danger:hover    { background: rgba(248, 113, 113, 0.18); color: var(--text); border-color: var(--danger); }
.btn-outline-secondary:hover { background: var(--surface-hover); color: var(--text); border-color: var(--border-strong); }
.btn-outline-info:hover      { background: rgba(96, 165, 250, 0.18); color: var(--text); border-color: var(--info); }

.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 14px 24px; font-size: 16px; border-radius: 12px; }
.btn-close { filter: invert(1) brightness(1.2); }

/* -------------------------- Forms -------------------------- */
label, .form-label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
label .req { color: var(--danger); margin-left: 2px; }

.form-control, .form-select {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-control:focus, .form-select:focus {
  background: var(--surface-2);
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.18);
  outline: none;
}
.form-control::placeholder { color: var(--text-dim); }
.form-control[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.7); }
.form-select option { background: var(--bg-1); color: var(--text); }

.form-check-input {
  background-color: var(--surface);
  border-color: var(--border-strong);
}
.form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}
.form-check-label { color: var(--text); }

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

/* -------------------------- Tables -------------------------- */
.table {
  color: var(--text);
  --bs-table-bg: transparent;
  --bs-table-color: var(--text);
  --bs-table-border-color: var(--border);
  --bs-table-hover-bg: var(--surface-hover);
  --bs-table-hover-color: var(--text);
  --bs-table-striped-bg: rgba(255,255,255,0.02);
  margin-bottom: 0;
}
.table thead th {
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border-strong);
  padding: 12px 12px;
}
.table tbody td {
  border-bottom: 1px solid var(--border);
  padding: 12px 12px;
  vertical-align: middle;
}
.table tbody tr { transition: background-color .15s; }
.table-hover > tbody > tr:hover > * { background-color: var(--surface-hover); color: var(--text); }
.table tbody tr:last-child td { border-bottom: 0; }

code {
  color: var(--accent-2);
  background: rgba(78, 161, 255, 0.1);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 12px;
  font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
}
.req-id {
  font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, monospace;
  color: var(--accent-2);
  font-weight: 600;
}

/* -------------------------- Badges -------------------------- */
.badge {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.text-bg-primary   { background: rgba(124, 92, 255, 0.15) !important; color: #b29dff !important; border-color: rgba(124, 92, 255, 0.3); }
.text-bg-success   { background: rgba(43, 212, 164, 0.15) !important; color: #5fe3bf !important; border-color: rgba(43, 212, 164, 0.3); }
.text-bg-warning   { background: rgba(251, 191, 36, 0.15) !important; color: #ffd35a !important; border-color: rgba(251, 191, 36, 0.3); }
.text-bg-danger    { background: rgba(248, 113, 113, 0.15) !important; color: #ff9999 !important; border-color: rgba(248, 113, 113, 0.3); }
.text-bg-info      { background: rgba(96, 165, 250, 0.15) !important; color: #8fc1ff !important; border-color: rgba(96, 165, 250, 0.3); }
.text-bg-secondary { background: var(--surface-2) !important; color: var(--text-muted) !important; border-color: var(--border-strong); }

/* -------------------------- Alerts -------------------------- */
.alert {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: slideDown .3s var(--ease-out);
}
.alert-success { border-left: 3px solid var(--success); }
.alert-warning { border-left: 3px solid var(--warning); }
.alert-danger  { border-left: 3px solid var(--danger);  }
.alert-info    { border-left: 3px solid var(--info);    }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* -------------------------- Modal -------------------------- */
.modal-backdrop {
  background-color: #0a0e1a;
}
.modal-backdrop.show {
  opacity: 0.72;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-content {
  background: rgba(20, 26, 48, 0.98);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--text);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(124, 92, 255, 0.15);
}
.modal-header {
  border-bottom: 1px solid var(--border);
  padding: 18px 22px;
}
.modal-title { color: var(--text); font-weight: 700; }
.modal-body  { padding: 20px 22px; }
.modal-footer {
  border-top: 1px solid var(--border);
  padding: 14px 22px;
  background: rgba(255, 255, 255, 0.015);
}
/* Modal içindeki form-text'i daha okunaklı yap */
.modal-body .form-text {
  color: var(--text-muted) !important;
}
/* Modal açıkken body scroll'unun kaybolmaması için */
body.modal-open {
  overflow: hidden;
  padding-right: 0 !important;
}

/* -------------------------- Login -------------------------- */
.login-wrap {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}
.login-wrap::before, .login-wrap::after {
  content: "";
  position: absolute;
  filter: blur(80px);
  pointer-events: none;
}
.login-wrap::before {
  top: 10%; left: 15%;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.6) 0%, transparent 60%);
  animation: float 8s ease-in-out infinite;
}
.login-wrap::after {
  bottom: 12%; right: 18%;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(78, 161, 255, 0.5) 0%, transparent 60%);
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(40px, -30px); }
}

.login-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  animation: rise .6s var(--ease-out);
}
.login-card .brand {
  text-align: center;
  margin-bottom: 26px;
}
.login-card .brand .logo {
  font-size: 30px;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}
.login-card .brand .sub {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 4px;
}

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

/* -------------------------- Page header -------------------------- */
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 12px;
  flex-wrap: wrap;
}
.page-head h1 {
  font-size: 26px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}
.page-head .subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 2px;
}

/* -------------------------- Detail rows -------------------------- */
.kv-list {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.kv-list .kv-key {
  padding: 12px 16px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.kv-list .kv-val {
  padding: 12px 16px;
  background: transparent;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  word-break: break-word;
}
.kv-list .kv-key:last-of-type, .kv-list .kv-val:last-of-type { border-bottom: 0; }

@media (max-width: 640px) {
  .kv-list { grid-template-columns: 1fr; }
  .kv-list .kv-key { border-bottom: 0; padding-bottom: 0; }
}

/* -------------------------- File status badge -------------------------- */
.file-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
}
.file-status.ready {
  background: rgba(43, 212, 164, 0.1);
  border-color: rgba(43, 212, 164, 0.3);
  color: #5fe3bf;
}
.file-status.expired {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.3);
  color: #ff9999;
}
.file-status.pending {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.3);
  color: #ffd35a;
}

.countdown {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

/* -------------------------- Animations -------------------------- */
.fade-in { animation: fadeIn .4s var(--ease-out); }
.fade-up { animation: fadeUp .5s var(--ease-out); }
.stagger > * { animation: fadeUp .5s var(--ease-out) backwards; }
.stagger > *:nth-child(1) { animation-delay: 0.04s; }
.stagger > *:nth-child(2) { animation-delay: 0.10s; }
.stagger > *:nth-child(3) { animation-delay: 0.16s; }
.stagger > *:nth-child(4) { animation-delay: 0.22s; }
.stagger > *:nth-child(5) { animation-delay: 0.28s; }
.stagger > *:nth-child(6) { animation-delay: 0.34s; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* -------------------------- Misc -------------------------- */
.divider { height: 1px; background: var(--border); border: 0; margin: 18px 0; }
.empty-state { text-align: center; color: var(--text-muted); padding: 36px 16px; }
.empty-state .icon { font-size: 42px; opacity: 0.5; margin-bottom: 10px; }

/* Mobile tweaks */
@media (max-width: 576px) {
  .page-head h1 { font-size: 22px; }
  .kpi .kpi-value { font-size: 26px; }
  .hero-cta { padding: 22px 20px; gap: 14px; }
  .hero-cta .hc-icon { font-size: 44px; }
  .hero-cta .hc-title { font-size: 18px; }
  .hero-cta .hc-sub { font-size: 12px; }
  .hero-cta .hc-arrow { font-size: 22px; }
  .action-card { padding: 18px; }
  .action-card .ac-icon { font-size: 28px; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 999px; border: 2px solid var(--bg-0); }
::-webkit-scrollbar-thumb:hover { background: var(--surface-hover); }

/* Selection */
::selection { background: rgba(124, 92, 255, 0.45); color: white; }

/* iOS safe area */
@supports(padding:max(0px)) {
  body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
}
