:root {
  --bg-1: #0f172a;
  --bg-2: #0f766e;
  --bg-3: #f97316;
  --surface: rgba(15, 23, 42, 0.86);
  --surface-light: rgba(255, 255, 255, 0.08);
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #f97316;
  --success: #10b981;
  --danger: #ef4444;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px;
}

.brand-logo-lg {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px;
}

.brand-name {
  font-weight: 600;
  font-size: 18px;
}

.brand-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.brand-placeholder {
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text-primary);
  background: var(--bg-1);
}

body {
  overflow-x: hidden;
}

.gradient-bg {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.25), transparent 40%),
    linear-gradient(120deg, var(--bg-1), var(--bg-2), var(--bg-3));
  background-size: 200% 200%;
  animation: gradientShift 12s ease infinite;
  z-index: -2;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.page-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.sidebar {
  width: 260px;
  background: rgba(15, 23, 42, 0.78);
  border-right: 1px solid rgba(148, 163, 184, 0.2);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  backdrop-filter: blur(18px);
}

.sidebar h1 {
  font-family: "DM Serif Display", serif;
  font-size: 24px;
  margin: 0;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: 12px;
  background: transparent;
  transition: 0.2s ease;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--surface-light);
  color: var(--accent);
}

.content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.top-bar {
  padding: 24px 40px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.top-bar h2 {
  margin: 0;
  font-size: 28px;
  font-family: "DM Serif Display", serif;
}

.content {
  padding: 16px 40px 48px;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

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

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.button {
  border: none;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--accent);
  color: #0f172a;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.button.secondary {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--text-primary);
}

.button.danger {
  background: var(--danger);
  color: #fff;
}

.button:hover {
  transform: translateY(-2px);
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-primary);
  font-size: 14px;
}

.label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: inline-block;
}

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

.table th,
.table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.table th {
  color: var(--text-muted);
  font-weight: 500;
}

.tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.18);
  color: var(--accent);
  font-size: 12px;
  display: inline-block;
}

.hero {
  text-align: center;
  padding: 60px 20px;
}

.hero h1 {
  font-family: "DM Serif Display", serif;
  font-size: 48px;
  margin-bottom: 16px;
}

.hero p {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 640px;
  margin: 0 auto 32px;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.notice {
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent);
  margin-bottom: 16px;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--surface);
  padding: 24px;
  border-radius: 16px;
  width: min(520px, 92vw);
}

.map-container {
  width: 100%;
  height: 70vh;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

@media (max-width: 1024px) {
  .page-wrapper {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
  }

  .nav-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }

  .top-bar {
    padding: 20px;
  }

  .content {
    padding: 20px;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 36px;
  }

  .top-bar h2 {
    font-size: 22px;
  }
}
