:root {
  --brand: #0f766e;
  --brand-dark: #134e4a;
  --surface: #ffffff;
  --bg: #f6f8fb;
  --text: #102033;
  --muted: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

body {
  background: linear-gradient(180deg, #f7fbff 0%, #f3f7fb 100%);
  color: var(--text);
}

body.customer-shell {
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.12), transparent 28%),
    radial-gradient(circle at 90% 15%, rgba(59, 130, 246, 0.10), transparent 20%),
    linear-gradient(180deg, #f7fbff 0%, #f2f7fb 100%);
}

body.admin-shell {
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.14), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #eef6fb 100%);
}

.navbar-support {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.24), transparent 24%),
    linear-gradient(135deg, #0f172a 0%, #134e4a 44%, #0ea5a4 100%);
  box-shadow: 0 16px 38px rgba(8, 15, 32, 0.22);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.hero {
  background: radial-gradient(circle at top right, rgba(19, 78, 74, 0.16), transparent 30%),
              linear-gradient(135deg, #ffffff 0%, #ecfeff 100%);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto -5% -15% auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.18), transparent 68%);
  filter: blur(4px);
  pointer-events: none;
}

.card-soft {
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
}

.btn-primary {
  --bs-btn-bg: #14b8a6;
  --bs-btn-border-color: #14b8a6;
  --bs-btn-hover-bg: #0f9f8f;
  --bs-btn-hover-border-color: #0f9f8f;
  --bs-btn-active-bg: #0d9488;
  --bs-btn-active-border-color: #0d9488;
  box-shadow: 0 12px 24px rgba(20, 184, 166, 0.24);
}

.btn-success {
  --bs-btn-bg: #22c55e;
  --bs-btn-border-color: #22c55e;
  --bs-btn-hover-bg: #16a34a;
  --bs-btn-hover-border-color: #16a34a;
  box-shadow: 0 12px 24px rgba(34, 197, 94, 0.22);
}

.btn-outline-primary {
  --bs-btn-color: #0f766e;
  --bs-btn-border-color: #0f766e;
  --bs-btn-hover-bg: #0f766e;
  --bs-btn-hover-border-color: #0f766e;
}

.btn-outline-secondary {
  --bs-btn-color: #475569;
  --bs-btn-border-color: #cbd5e1;
  --bs-btn-hover-bg: #e2e8f0;
  --bs-btn-hover-border-color: #cbd5e1;
  color: #334155;
}

.form-control,
.form-select {
  color: var(--text);
  background-color: #ffffff;
}

.form-control:focus,
.form-select:focus {
  color: var(--text);
  background-color: #ffffff;
}

.form-select option,
.form-select optgroup {
  color: var(--text);
  background-color: #ffffff;
}

.form-select.status-select {
  font-weight: 700;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.form-select.status-select.status-select-open {
  color: #0f766e;
  background: linear-gradient(135deg, rgba(20,184,166,.16), rgba(6,182,212,.10));
  border-color: rgba(20,184,166,.42);
  box-shadow: 0 0 0 .2rem rgba(20,184,166,.08);
}

.form-select.status-select.status-select-review {
  color: #b45309;
  background: linear-gradient(135deg, rgba(245,158,11,.18), rgba(251,113,133,.10));
  border-color: rgba(245,158,11,.38);
  box-shadow: 0 0 0 .2rem rgba(245,158,11,.08);
}

.form-select.status-select.status-select-solved {
  color: #15803d;
  background: linear-gradient(135deg, rgba(34,197,94,.16), rgba(16,185,129,.10));
  border-color: rgba(34,197,94,.38);
  box-shadow: 0 0 0 .2rem rgba(34,197,94,.08);
}

.btn-glow,
.btn-glow-outline {
  border-radius: 999px;
  padding-inline: 1rem;
}

.btn-glow-outline {
  background: rgba(255,255,255,0.12);
}

.hero-panel {
  min-height: 100%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(3px);
  opacity: 0.95;
  animation: float 8s ease-in-out infinite;
}

.hero-orb.orb-a {
  width: 140px;
  height: 140px;
  top: -30px;
  right: -10px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.45), rgba(20, 184, 166, 0.04));
}

.hero-orb.orb-b {
  width: 90px;
  height: 90px;
  bottom: 18px;
  right: 26px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.38), rgba(37, 99, 235, 0.04));
  animation-delay: -2s;
}

.hero-orb.orb-c {
  width: 60px;
  height: 60px;
  top: 22px;
  left: 12px;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.14), transparent);
  animation-delay: -4s;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.feature-chip {
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(15, 118, 110, 0.15);
  border-radius: 1rem;
  padding: .85rem 1rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.ticket-success {
  position: relative;
}

.ticket-success-graphic {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(20, 184, 166, 0.18), transparent 22%),
    radial-gradient(circle at 82% 0%, rgba(59, 130, 246, 0.16), transparent 18%),
    linear-gradient(135deg, rgba(255,255,255,0.85), rgba(236, 254, 255, 0.55));
  pointer-events: none;
}

.ticket-success .card-body {
  position: relative;
}

.ticket-success .card-body::before {
  content: '';
  position: absolute;
  left: -15%;
  top: -35px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.16), transparent 65%);
  pointer-events: none;
}

.stats-card {
  border: 0;
  color: white;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  box-shadow: var(--shadow);
}

.stats-card.alt {
  background: linear-gradient(135deg, #1d4ed8, #38bdf8);
}

.stats-card.warn {
  background: linear-gradient(135deg, #b45309, #f59e0b);
}

.stats-card.dark {
  background: linear-gradient(135deg, #111827, #374151);
}

.badge-status {
  font-size: 0.78rem;
  letter-spacing: .02em;
}

.table thead th {
  white-space: nowrap;
}

.ticket-step {
  display: none;
}

.ticket-step.active {
  display: block;
}

.file-preview-item {
  border: 1px dashed var(--border);
  padding: .75rem;
  border-radius: .75rem;
  background: white;
}

.sidebar {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.18), transparent 24%),
    linear-gradient(180deg, #09111f 0%, #0f3c5c 48%, #0ea5a4 100%);
  color: white;
  min-height: 100vh;
  position: sticky;
  top: 0;
}

.sidebar-brand {
  display: flex;
  gap: .85rem;
  align-items: center;
  padding: 1rem;
  border-radius: 1.25rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.sidebar-brand-badge {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #0f172a;
  background: linear-gradient(135deg, #fff, #cffafe 45%, #fde68a);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

.sidebar-pill {
  color: rgba(255,255,255,.88);
  text-decoration: none;
  border-radius: 999px;
  padding: .8rem 1rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.10);
  transition: all .2s ease;
}

.sidebar-pill.active,
.sidebar-pill:hover {
  color: white;
  background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.08));
  border-color: rgba(255,255,255,.22);
  transform: translateX(2px);
}

.pill-dashboard.active, .pill-dashboard:hover { background: linear-gradient(135deg, rgba(59,130,246,.45), rgba(20,184,166,.28)); }
.pill-tickets.active, .pill-tickets:hover { background: linear-gradient(135deg, rgba(20,184,166,.44), rgba(34,197,94,.28)); }
.pill-settings.active, .pill-settings:hover { background: linear-gradient(135deg, rgba(245,158,11,.46), rgba(249,115,22,.28)); }
.pill-users.active, .pill-users:hover { background: linear-gradient(135deg, rgba(168,85,247,.46), rgba(59,130,246,.28)); }
.pill-logout.active, .pill-logout:hover { background: linear-gradient(135deg, rgba(239,68,68,.46), rgba(244,63,94,.28)); }

.badge-status-color {
  border-radius: 999px;
  padding: .45rem .75rem;
  color: white;
  font-weight: 600;
  letter-spacing: .01em;
}

.status-open { background: linear-gradient(135deg, #14b8a6, #06b6d4); }
.status-review { background: linear-gradient(135deg, #f59e0b, #fb7185); }
.status-pending { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
.status-waiting { background: linear-gradient(135deg, #0ea5e9, #22c55e); }
.status-solved { background: linear-gradient(135deg, #22c55e, #10b981); }
.status-closed { background: linear-gradient(135deg, #334155, #0f172a); }
.status-reopened { background: linear-gradient(135deg, #ec4899, #f97316); }
.status-default { background: linear-gradient(135deg, #64748b, #475569); }

.text-accent {
  color: #0f766e;
}

.bg-soft-accent {
  background: linear-gradient(135deg, rgba(20,184,166,.08), rgba(59,130,246,.06));
}

.page-title {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.small-help {
  color: var(--muted);
  font-size: .92rem;
}

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