@import url("https://fonts.googleapis.com/css2?family=Archivo+Black&family=Inter:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --warm-white: #080709;
  --cream: #141114;
  --champagne: #ff2f4b;
  --champagne-2: #ff5269;
  --rose-gold: #ff2f4b;
  --rose-gold-dark: #d7193a;
  --dark-brown: #fff9f5;
  --brown: #e8dfe1;
  --muted-brown: #bdb2b5;
  --line: rgba(255, 255, 255, 0.12);
  --card: rgba(20, 17, 20, 0.92);
  --card-solid: #141114;
  --success: #51d493;
  --danger: #ff6579;
  --warning: #ffc66b;
  --shadow-soft: 0 26px 90px rgba(0, 0, 0, 0.42);
  --shadow-card: 0 18px 55px rgba(0, 0, 0, 0.28);
  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --container: 1180px;
  --transition: 180ms ease;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: #080709;
  color: var(--dark-brown);
  font-family: Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 92% 6%, rgba(255, 47, 75, 0.16), transparent 34rem),
    radial-gradient(circle at 8% 88%, rgba(154, 75, 224, 0.1), transparent 30rem),
    #080709;
  color: var(--dark-brown);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img, video { max-width: 100%; display: block; }

h1, h2, h3, h4, p, li, label, a, button, span {
  min-width: 0;
}

h1, h2, h3, h4 {
  overflow-wrap: break-word;
  text-wrap: balance;
}

p, li {
  text-wrap: pretty;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 7, 9, 0.9);
  backdrop-filter: blur(20px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-weight: 800;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid #ff2f4b;
  border-radius: 2px;
  background: transparent;
  color: #ff2f4b;
  box-shadow: 0 12px 34px rgba(255, 47, 75, 0.2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted-brown);
  font-size: 0.94rem;
  font-weight: 650;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--dark-brown);
  font-weight: 750;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.button-primary {
  border-color: #ff2f4b;
  background: #ff2f4b;
  color: #fff;
}

.button-ghost {
  background: transparent;
}

.button-danger {
  border-color: rgba(159, 53, 47, 0.25);
  color: var(--danger);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--rose-gold);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-title, .section-title, .page-title {
  margin: 0;
  font-family: "Archivo Black", "Arial Black", sans-serif;
  letter-spacing: -0.055em;
  color: var(--dark-brown);
}

.hero-title {
  max-width: 880px;
  font-size: clamp(4rem, 9vw, 8.7rem);
  line-height: 0.82;
}

.section-title, .page-title {
  font-size: clamp(2.35rem, 4.8vw, 4.65rem);
  line-height: 0.94;
}

.lead {
  color: var(--muted-brown);
  font-size: clamp(1.05rem, 1.6vw, 1.26rem);
  line-height: 1.72;
}

.card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
}

.grid {
  display: grid;
  gap: 20px;
}

.form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.label {
  color: var(--brown);
  font-size: 0.9rem;
  font-weight: 780;
}

.input, .textarea, .select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: #0d0b0e;
  color: var(--dark-brown);
  outline: none;
  padding: 15px 16px;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.textarea {
  min-height: 145px;
  resize: vertical;
}

.input:focus, .textarea:focus, .select:focus {
  border-color: #ff2f4b;
  box-shadow: 0 0 0 4px rgba(255, 47, 75, 0.14);
  background: #100d10;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  width: min(420px, calc(100vw - 44px));
  padding: 16px 18px;
  border: 1px solid rgba(255, 47, 75, 0.42);
  border-radius: 10px;
  background: rgba(20, 17, 20, 0.97);
  box-shadow: var(--shadow-soft);
  color: var(--dark-brown);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: 220ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.footer {
  padding: 70px 0 34px;
  color: var(--muted-brown);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.7fr);
  gap: 34px;
  padding: 34px;
}

.footer h3, .footer h4 {
  margin: 0 0 12px;
  color: var(--dark-brown);
}

.footer a, .footer p {
  display: block;
  margin: 0 0 10px;
  color: var(--muted-brown);
}

.app-footer {
  width: 100%;
  margin-top: 54px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  color: var(--muted-brown);
}

.app-footer-inner {
  display: flex;
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
  align-items: center;
  gap: 22px;
}

.dashboard-main > .app-footer .app-footer-inner,
.app-main > .app-footer .app-footer-inner {
  width: 100%;
}

.app-footer-brand {
  color: var(--dark-brown);
  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-size: 0.9rem;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.app-footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.app-footer-links a,
.app-footer-copy {
  color: var(--muted-brown);
  font-size: 0.78rem;
  font-weight: 650;
}

.app-footer-links a:hover { color: var(--dark-brown); }
.app-footer-copy { margin-left: auto; }

.system-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px;
}

.system-card {
  width: min(100%, 560px);
  padding: 42px;
  border: 1px solid rgba(255, 47, 75, 0.28);
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  text-align: center;
  backdrop-filter: blur(18px);
}

.system-card h1 {
  margin: 0;
  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.system-card p {
  margin: 18px auto 26px;
  max-width: 38rem;
  color: var(--muted-brown);
  line-height: 1.7;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px;
  border-right: 1px solid rgba(255, 47, 75, 0.22);
  background: rgba(9, 7, 10, 0.94);
  backdrop-filter: blur(18px);
}

.sidebar-nav {
  display: grid;
  gap: 8px;
  margin-top: 34px;
}

.sidebar-nav a, .sidebar-nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted-brown);
  font-weight: 760;
  cursor: pointer;
  text-align: left;
}

.sidebar-nav a.active, .sidebar-nav a:hover, .sidebar-nav button:hover {
  background: #ff2f4b;
  color: #fff;
}

.dashboard-main {
  padding: 34px;
}

.page-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.stat-card {
  padding: 22px;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}

.table-card {
  overflow: hidden;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th, .table td {
  padding: 15px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  text-align: left;
  vertical-align: top;
}

.table th {
  color: var(--muted-brown);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero-title { font-size: clamp(3.4rem, 19vw, 5.3rem); }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .dashboard-shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; }
  .dashboard-main { padding: 22px; }
  .page-head { display: grid; }
  .stat-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 26px, var(--container)); }
  .nav-actions .button-ghost { display: none; }
  .button { width: 100%; }
  .nav-actions .button { width: auto; }
  .app-footer-inner { align-items: flex-start; flex-direction: column; gap: 14px; }
  .app-footer-links { gap: 12px 16px; }
  .app-footer-copy { margin-left: 0; }
  .page-title, .section-title { font-size: clamp(2.05rem, 11vw, 3.25rem); }
}
