@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --account-bg: #050608;
  --account-bg-2: #090d16;
  --account-panel: rgba(13, 18, 29, 0.84);
  --account-panel-strong: rgba(15, 23, 42, 0.95);
  --account-border: rgba(148, 163, 184, 0.16);
  --account-border-strong: rgba(129, 140, 248, 0.28);
  --account-border-muted: rgba(148, 163, 184, 0.18);
  --account-text: #f8fafc;
  --account-muted: #a8b3c7;
  --account-faint: #64748b;
  --account-indigo: #a5b4fc;
  --account-indigo-strong: #6366f1;
  --account-green: #2dd4bf;
  --account-gold: #f4c95d;
  --account-danger: #f87171;
  --account-radius: 26px;
}

body {
  background: var(--account-bg);
  background-image:
    radial-gradient(circle at 12% -8%, rgba(99, 102, 241, 0.22), transparent 34%),
    radial-gradient(circle at 88% 4%, rgba(45, 212, 191, 0.10), transparent 28%),
    linear-gradient(180deg, #07090f 0%, #050608 46%, #030407 100%);
  color: var(--account-text);
  font-family: 'IBM Plex Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.014) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent 76%);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

.dash-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.account-shell {
  max-width: 1320px;
  margin: 0 auto;
}

.dash-shell {
  max-width: 1320px;
  margin: 0 auto;
}

.glass-card {
  background:
    linear-gradient(180deg, rgba(17,24,39,0.82), rgba(5,8,14,0.93));
  border: 1px solid var(--account-border);
  backdrop-filter: blur(18px);
  border-radius: var(--account-radius);
  box-shadow: 0 22px 70px rgba(0,0,0,0.34), 0 1px 0 rgba(255,255,255,0.045) inset;
}

.hero-panel {
  background:
    radial-gradient(circle at top right, rgba(45,212,191,0.14), transparent 34%),
    radial-gradient(circle at bottom left, rgba(129,140,248,0.18), transparent 32%),
    linear-gradient(135deg, rgba(17,24,39,0.92), rgba(4,7,17,0.98));
  position: relative;
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.08), transparent 28%),
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
  opacity: 0.65;
}

h1, h2, h3, .sidebar-user-name {
  font-family: 'Space Grotesk', 'IBM Plex Sans', system-ui, sans-serif;
  letter-spacing: -0.025em;
}

.hero-panel h1 {
  letter-spacing: -0.045em;
}

.panel-muted {
  color: var(--account-muted);
}

.metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.18);
  background: rgba(255,255,255,0.052);
  font-size: 11px;
  color: #d7deea;
  box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset;
}

.metric-chip i {
  color: var(--account-green);
}

.primary-btn {
  background: linear-gradient(90deg, #ffffff 0%, #dbeafe 100%);
  color: #050608;
  border: 1px solid rgba(255,255,255,0.42);
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  box-shadow: 0 20px 55px rgba(148,163,184,0.20), 0 1px 0 rgba(255,255,255,0.55) inset;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(90deg, #ffffff 0%, #eef6ff 100%);
  box-shadow: 0 26px 70px rgba(148,163,184,0.28), 0 1px 0 rgba(255,255,255,0.65) inset;
}

.secondary-btn {
  border-radius: 999px;
  padding: 12px 18px;
  border: 1px solid rgba(148,163,184,0.18);
  color: #dbeafe;
  background: rgba(255,255,255,0.04);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.secondary-btn:hover {
  border-color: rgba(129,140,248,0.38);
  color: #fff;
  background: rgba(129,140,248,0.08);
  transform: translateY(-1px);
}

.form-input,
.form-textarea,
.form-select-dark {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--account-border-muted);
  background: rgba(1, 4, 10, 0.58);
  color: #fff;
  padding: 12px 14px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select-dark:focus {
  outline: none;
  border-color: rgba(129,140,248,0.62);
  background: rgba(0,0,0,0.4);
  box-shadow: 0 0 0 4px rgba(129,140,248,0.10);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #64748b;
}

.data-table-row {
  border-bottom: 1px solid rgba(75,85,99,0.28);
}

.data-table-row:last-child {
  border-bottom: 0;
}

.page-section-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #99f6e4;
  font-weight: 800;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(129,140,248,0.13), transparent 42%),
    radial-gradient(circle at bottom right, rgba(45,212,191,0.08), transparent 34%),
    rgba(3, 6, 12, 0.96) !important;
  border-color: rgba(148,163,184,0.12) !important;
  box-shadow: 1px 0 0 rgba(255,255,255,0.035) inset;
}

.sidebar a[href="/"] .w-8.h-8,
.mobile-menu-surface .w-8.h-8,
.auth-page a[href="/"] .w-10.h-10,
.brand-mark {
  border-radius: 14px !important;
  background: linear-gradient(135deg, #f8fafc 0%, #c7d2fe 42%, #8b93ff 100%) !important;
  color: #050608 !important;
  box-shadow: 0 16px 34px rgba(99,102,241,0.22) !important;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  color: #a8b3c7;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 700;
}

.sidebar-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.058);
  border-color: rgba(148,163,184,0.12);
  transform: translateX(2px);
}

.sidebar-link.active {
  background: linear-gradient(90deg, rgba(45,212,191,0.13), rgba(129,140,248,0.08));
  color: #eef6ff;
  border: 1px solid rgba(45,212,191,0.20);
  box-shadow: inset 3px 0 0 rgba(45,212,191,0.85), 0 10px 24px rgba(0,0,0,0.18);
}

.sidebar-user-card {
  background: linear-gradient(180deg, rgba(15,23,42,0.82), rgba(5,8,14,0.92));
  border: 1px solid rgba(148,163,184,0.16);
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset;
}

.sidebar-user-name {
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
}

.sidebar-user-plan {
  color: #99f6e4;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 2px;
}

.logout-link {
  display: block;
  text-align: center;
  color: #f87171;
  background: rgba(127, 29, 29, 0.10);
  border: 1px solid rgba(127, 29, 29, 0.34);
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.logout-link:hover {
  color: #fecaca;
  background: rgba(127, 29, 29, 0.18);
}

.mobile-menu-surface {
  background:
    radial-gradient(circle at top right, rgba(45,212,191,0.13), transparent 36%),
    radial-gradient(circle at top left, rgba(129,140,248,0.18), transparent 34%),
    linear-gradient(180deg, #071022 0%, #030611 100%) !important;
}

.mobile-sheet {
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.account-stat-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.account-stat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(45,212,191,0.12), transparent 38%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.account-stat-card:hover::after {
  opacity: 1;
}

.account-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(45,212,191,0.24);
}

.notice-card {
  border: 1px solid rgba(245, 158, 11, 0.24);
  background: rgba(245, 158, 11, 0.08);
  color: #fde68a;
  border-radius: 18px;
  padding: 16px;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(129,140,248,0.18), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(45,212,191,0.10), transparent 26%),
    linear-gradient(180deg, #07090f 0%, #030407 100%);
}

.auth-card {
  background:
    radial-gradient(circle at top right, rgba(45,212,191,0.10), transparent 38%),
    linear-gradient(180deg, rgba(17,24,39,0.86), rgba(5,8,14,0.94));
  border: 1px solid rgba(148,163,184,0.16);
  backdrop-filter: blur(18px);
  border-radius: 30px;
  box-shadow: 0 28px 90px rgba(0,0,0,0.42), 0 1px 0 rgba(255,255,255,0.05) inset;
}

.auth-kicker {
  color: var(--account-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #f8fafc 0%, #c7d2fe 42%, #8b93ff 100%);
  color: #050608;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 14px 34px rgba(99,102,241,0.26);
}

.account-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.account-topbar-title {
  color: #fff;
  font-family: 'Space Grotesk', 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.icon-tile {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(45,212,191,0.10);
  color: #99f6e4;
  border: 1px solid rgba(45,212,191,0.16);
}

.plan-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.plan-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(45,212,191,0.10), transparent 34%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.plan-card:hover {
  transform: translateY(-3px);
  border-color: rgba(45,212,191,0.26);
  box-shadow: 0 30px 90px rgba(0,0,0,0.40), 0 1px 0 rgba(255,255,255,0.05) inset;
}

.plan-card:hover::before {
  opacity: 1;
}

.plan-card > * {
  position: relative;
  z-index: 1;
}

.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.24);
  font-size: 0.875rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.danger-btn:hover {
  color: #fff;
  background: rgba(127, 29, 29, 0.20);
  border-color: rgba(248, 113, 113, 0.40);
}

.quiet-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(148,163,184,0.16);
  color: #dbeafe;
  font-weight: 700;
  transition: all 0.2s ease;
}

.quiet-btn:hover {
  color: #fff;
  border-color: rgba(45,212,191,0.28);
  background: rgba(45,212,191,0.08);
}

.ticket-bubble {
  border: 1px solid rgba(148,163,184,0.14);
  box-shadow: 0 12px 34px rgba(0,0,0,0.20);
}

.ticket-bubble-me {
  background: linear-gradient(135deg, rgba(99,102,241,0.88), rgba(45,212,191,0.22));
  color: #fff;
  border-color: rgba(129,140,248,0.28);
}

.ticket-bubble-team {
  background: rgba(15,23,42,0.84);
  color: #d7deea;
}

.auth-benefits {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}

.auth-benefit {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #a8b3c7;
  font-size: 0.78rem;
}

.auth-benefit i {
  color: #2dd4bf;
}

.drop-surface {
  border-color: rgba(129,140,248,0.32) !important;
  background:
    radial-gradient(circle at top, rgba(129,140,248,0.08), transparent 42%),
    linear-gradient(180deg, rgba(8,13,24,0.96), rgba(3,6,12,0.98)) !important;
}

.drop-surface.dragover {
  border-color: rgba(45,212,191,0.44) !important;
  background:
    radial-gradient(circle at top, rgba(45,212,191,0.10), transparent 42%),
    linear-gradient(180deg, rgba(11,18,32,0.98), rgba(3,6,12,0.98)) !important;
}

.status-pill {
  border-radius: 999px !important;
}

code,
.font-mono {
  color: #dbeafe;
}

@media (max-width: 768px) {
  .dash-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  main {
    padding: 1.25rem !important;
  }

  .hero-panel h1 {
    font-size: 2rem !important;
  }

  .account-topbar {
    margin-bottom: 1.25rem;
  }
}
