@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Sora:wght@500;600;700&display=swap");

:root {
  --bg: #060d17;
  --bg-soft: #0c1726;
  --surface: rgba(13, 23, 38, 0.88);
  --surface-strong: rgba(16, 28, 46, 0.94);
  --surface-highlight: rgba(24, 39, 62, 0.96);
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(76, 201, 240, 0.26);
  --text: #e7eefb;
  --muted: #94a3b8;
  --accent: #4cc9f0;
  --accent-soft: #8be9ff;
  --success: #34d399;
  --danger: #f87171;
  --danger-deep: #7f1d1d;
  --shadow: 0 24px 60px rgba(2, 10, 20, 0.42);
  --font-body: "Plus Jakarta Sans", "Segoe UI Variable", "Segoe UI", sans-serif;
  --font-heading: "Sora", "Plus Jakarta Sans", "Segoe UI Variable", sans-serif;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body) !important;
  background:
    radial-gradient(circle at top left, rgba(76, 201, 240, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.1), transparent 24%),
    linear-gradient(180deg, #07101b 0%, #050b15 100%) !important;
  color: var(--text) !important;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 500;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 100%);
  opacity: 0.5;
}

body::after {
  background:
    radial-gradient(circle at 15% 15%, rgba(76, 201, 240, 0.12), transparent 22%),
    radial-gradient(circle at 85% 12%, rgba(14, 165, 233, 0.1), transparent 18%),
    radial-gradient(circle at 50% 100%, rgba(52, 211, 153, 0.08), transparent 22%);
  opacity: 0.9;
}

a {
  color: inherit;
  text-decoration: none !important;
}

a:hover,
a:focus,
a:active,
button,
button:hover,
button:focus,
button:active,
.brand,
.brand:hover,
.nav a,
.nav a:hover,
.nav-links a,
.nav-links a:hover,
.hero-actions a,
.hero-actions a:hover,
.quick-links a,
.quick-links a:hover,
a.link-btn,
a.link-btn:hover {
  text-decoration: none !important;
}

#snowCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.32;
  mix-blend-mode: screen;
}

.container {
  padding-top: 28px !important;
  padding-bottom: 36px !important;
}

.topbar {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 24px !important;
  background: rgba(6, 13, 23, 0.72) !important;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 23px !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em;
  color: var(--text) !important;
}

.brand::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  box-shadow: 0 0 18px rgba(76, 201, 240, 0.46);
}

.brand span {
  color: var(--accent-soft) !important;
}

.nav a,
.nav button,
.nav-links a,
.nav-links button,
.hero-actions a,
.hero-actions button,
.quick-links a,
button.primary,
button,
a.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 11px 18px !important;
  border-radius: 12px !important;
  border: 1px solid var(--line) !important;
  background: linear-gradient(180deg, rgba(13, 22, 36, 0.96), rgba(8, 14, 24, 0.96)) !important;
  color: var(--text) !important;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 22px rgba(3, 9, 18, 0.24);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: currentColor;
  font-size: 12px;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  flex: 0 0 22px;
}

.btn-label {
  display: inline-block;
}

.nav a:hover,
.nav button:hover,
.nav-links a:hover,
.nav-links button:hover,
.hero-actions a:hover,
.hero-actions button:hover,
.quick-links a:hover,
button.primary:hover,
button:hover,
a.link-btn:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 30px rgba(4, 14, 26, 0.32);
}

.hero-actions .primary,
button.primary,
button.primary.info,
a.link-btn.primary {
  background: linear-gradient(135deg, #4dc8ea 0%, #7fe3fb 52%, #b7f4ff 100%) !important;
  color: #05131f !important;
  border-color: rgba(139, 233, 255, 0.42) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 14px 28px rgba(76, 201, 240, 0.22);
}

.hero-actions .primary .btn-icon,
button.primary .btn-icon,
button.primary.info .btn-icon,
a.link-btn.primary .btn-icon {
  background: rgba(5, 19, 31, 0.14);
  color: #05131f;
}

.hero-actions .secondary,
a.link-btn.secondary,
button.secondary {
  background: linear-gradient(180deg, rgba(10, 17, 29, 0.92), rgba(7, 13, 23, 0.96)) !important;
  border-color: rgba(139, 233, 255, 0.18) !important;
  color: var(--text) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 10px 20px rgba(3, 9, 18, 0.2);
}

.hero-actions .secondary:hover,
a.link-btn.secondary:hover,
button.secondary:hover {
  border-color: rgba(139, 233, 255, 0.34) !important;
  background: linear-gradient(180deg, rgba(12, 22, 38, 0.96), rgba(8, 15, 26, 0.98)) !important;
}

.info,
button.info,
.table-actions button.info {
  background: linear-gradient(135deg, rgba(15, 89, 131, 0.94), rgba(14, 116, 144, 0.96)) !important;
  border-color: rgba(103, 232, 249, 0.22) !important;
  color: #e8fcff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 22px rgba(14, 116, 144, 0.18);
}

.info .btn-icon,
button.info .btn-icon,
.table-actions button.info .btn-icon {
  background: rgba(232, 252, 255, 0.14);
  color: #e8fcff;
}

.hero-card,
.hero-highlight,
.info-card,
.footer-card,
.card,
.stat,
.shell {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(13, 23, 38, 0.94), rgba(8, 14, 24, 0.94)) !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow) !important;
  backdrop-filter: blur(18px);
}

.hero-card::after,
.hero-highlight::after,
.info-card::after,
.card::after,
.stat::after,
.shell::after {
  content: none !important;
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.22), rgba(255,255,255,0));
  pointer-events: none;
}

.hero-highlight {
  background: linear-gradient(180deg, rgba(11, 25, 40, 0.95), rgba(8, 18, 30, 0.95)) !important;
}

.eyebrow {
  border: 1px solid var(--line-strong);
  background: rgba(8, 18, 30, 0.74) !important;
  color: var(--accent-soft) !important;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1.08;
  text-decoration: none !important;
  border-bottom: 0 !important;
}

h1 {
  font-weight: 700;
}

.hero p,
p,
.muted,
.info-card p,
.footer-card,
.title {
  color: var(--muted) !important;
}

p,
.muted,
.info-card p,
.footer-card,
label,
input,
select,
td,
th {
  font-family: var(--font-body);
}

label {
  font-size: 13px !important;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #c7d4e3 !important;
}

.title {
  font-size: 13px !important;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-highlight .muted {
  color: #bfdff1 !important;
}

.hero-highlight .big,
.value {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}

.notice,
.status-box,
.order-summary,
.result {
  background: rgba(7, 16, 27, 0.74) !important;
  border: 1px solid rgba(76, 201, 240, 0.14) !important;
  color: #c5d4e7 !important;
}

.notice {
  color: #d1e4f4 !important;
}

input,
select {
  min-height: 46px;
  padding: 11px 14px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(148, 163, 184, 0.14) !important;
  background: rgba(4, 10, 18, 0.74) !important;
  color: var(--text) !important;
  font-size: 14px !important;
  font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

input::placeholder,
select::placeholder {
  color: #64748b;
}

input:focus,
select:focus {
  outline: none;
  border-color: rgba(76, 201, 240, 0.48) !important;
  box-shadow: 0 0 0 4px rgba(76, 201, 240, 0.12);
}

table {
  font-variant-numeric: tabular-nums;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
  min-width: 720px;
}

th {
  color: #a9bbd0 !important;
  font-size: 12px !important;
  letter-spacing: 0.04em;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 10px 12px !important;
  background: transparent !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

td {
  color: #d6e2f2;
  font-size: 14px !important;
  font-weight: 500;
  vertical-align: middle;
  border-top: 1px solid rgba(148, 163, 184, 0.055);
  border-bottom: 1px solid rgba(148, 163, 184, 0.055);
}

tbody tr {
  transition: background 0.18s ease, transform 0.18s ease;
}

tbody tr:hover {
  background: rgba(15, 23, 42, 0.42);
}

thead tr {
  background: transparent;
}

thead th:first-child {
  border-top-left-radius: 0;
}

thead th:last-child {
  border-top-right-radius: 0;
}

tbody td {
  background: rgba(8, 14, 24, 0.46);
}

tbody tr:nth-child(even) td {
  background: rgba(10, 18, 30, 0.56);
}

tbody tr:hover td {
  background: rgba(14, 24, 38, 0.82);
}

tbody td:first-child {
  border-left: 1px solid rgba(148, 163, 184, 0.055);
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

tbody td:last-child {
  border-right: 1px solid rgba(148, 163, 184, 0.055);
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.table-wrap {
  margin-top: 14px;
  padding: 8px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(6, 12, 22, 0.88), rgba(8, 15, 26, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow-x: auto;
}

.table-wrap table {
  margin-top: 0 !important;
}

.table-wrap::-webkit-scrollbar {
  height: 10px;
}

.table-wrap::-webkit-scrollbar-thumb {
  background: rgba(76, 201, 240, 0.22);
  border-radius: 999px;
}

.badge-admin,
.badge-user {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-admin::before,
.badge-user::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  flex: 0 0 7px;
}

.badge-admin::before {
  background: #86efac;
  box-shadow: 0 0 12px rgba(134, 239, 172, 0.45);
}

.badge-user::before {
  background: #94a3b8;
}

.table-actions {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap !important;
  padding: 6px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(9, 16, 27, 0.94), rgba(7, 13, 23, 0.94));
  border: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 18px rgba(2, 10, 20, 0.18);
}

.table-actions button {
  min-height: 34px !important;
  padding: 8px 12px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 14px rgba(2, 10, 20, 0.14) !important;
}

.table-actions .btn-icon {
  width: 18px;
  height: 18px;
  font-size: 10px;
  flex: 0 0 18px;
}

.table-actions .btn-label {
  white-space: nowrap;
}

.promo-marquee {
  border-color: rgba(76, 201, 240, 0.2) !important;
  background: linear-gradient(90deg, rgba(8, 18, 30, 0.92), rgba(13, 23, 38, 0.96)) !important;
}

.promo-marquee::before {
  background: linear-gradient(90deg, rgba(7, 16, 27, 1), rgba(7, 16, 27, 0)) !important;
}

.promo-marquee::after {
  background: linear-gradient(270deg, rgba(7, 16, 27, 1), rgba(7, 16, 27, 0)) !important;
}

.promo-track {
  animation-duration: 34s !important;
}

.promo-item {
  background: rgba(4, 10, 18, 0.72) !important;
  border: 1px solid rgba(148, 163, 184, 0.1) !important;
  color: #d9e6f4 !important;
}

.promo-item strong {
  color: var(--accent-soft) !important;
}

.table-actions button,
.danger,
button.danger {
  border-radius: 12px !important;
}

.table-actions button {
  background: linear-gradient(180deg, rgba(13, 22, 36, 0.96), rgba(8, 14, 24, 0.96)) !important;
  border: 1px solid var(--line) !important;
  color: var(--text) !important;
}

.danger,
button.danger,
.table-actions button.danger {
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.96), rgba(185, 28, 28, 0.96)) !important;
  border-color: rgba(248, 113, 113, 0.34) !important;
  color: #fff1f2 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 24px rgba(127, 29, 29, 0.22);
}

.danger:hover,
button.danger:hover,
.table-actions button.danger:hover {
  border-color: rgba(254, 202, 202, 0.42) !important;
  background: linear-gradient(135deg, rgba(153, 27, 27, 0.98), rgba(220, 38, 38, 0.98)) !important;
}

.danger .btn-icon,
button.danger .btn-icon,
.table-actions button.danger .btn-icon {
  background: rgba(255, 241, 242, 0.14);
  color: #fff1f2;
}

#toast {
  border: 1px solid rgba(76, 201, 240, 0.22);
  backdrop-filter: blur(14px);
  font-size: 14px;
}

@media (max-width: 768px) {
  .topbar {
    padding: 14px;
    border-radius: 18px !important;
  }

  .hero-card,
  .hero-highlight,
  .info-card,
  .card,
  .stat,
  .shell,
  .footer-card {
    border-radius: 18px !important;
  }

  .table-wrap {
    padding: 6px;
    border-radius: 16px;
  }

  table {
    min-width: 640px;
  }

  .table-actions {
    min-width: max-content;
  }
}
