:root {
  --bg: #050909;
  --surface: #0c1520;
  --surface-strong: #101a24;
  --surface-soft: rgba(9, 19, 32, 0.92);
  --text: #e7eef7;
  --muted: #94a9c6;
  --accent: #00d1e5;
  --accent-strong: #00a7c8;
  --success: #3fd18b;
  --danger: #ff5f6d;
  --border: rgba(0, 173, 181, 0.18);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(0, 173, 181, 0.14), transparent 18%),
              radial-gradient(circle at bottom right, rgba(0, 173, 181, 0.08), transparent 20%),
              linear-gradient(180deg, #020509 0%, #0d131c 100%);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.site-header,
.hero-card,
.section-card,
.table-card,
.stats-grid,
.feature-grid {
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(12, 20, 28, 0.94);
  box-shadow: var(--shadow);
}

.site-header,
.hero-card,
.section-card {
  padding: 32px;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.brand {
  max-width: 640px;
}

.site-header h1,
.hero-card h1,
.section-card h2,
.table-card h2 {
  margin: 0;
  font-size: clamp(2rem, 2.8vw, 3.6rem);
  color: #f8fbff;
}

.site-header p,
.hero-card p,
.section-card p,
.feature-card p,
.footer-note p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.main-nav,
.hero-actions,
.stats-grid,
.feature-grid,
.tab-row,
.detail-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.main-nav a,
.button,
.tab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.main-nav a {
  color: var(--text);
  background: rgba(0, 173, 181, 0.12);
  border: 1px solid rgba(0, 173, 181, 0.14);
}

.main-nav a:hover,
.button:hover,
.tab-button:hover {
  transform: translateY(-1px);
}

.button,
.tab-button {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border: 1px solid rgba(0, 173, 181, 0.18);
}

.button-secondary,
.status {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.hero-section,
.form-panel,
.table-card,
.stats-grid,
.feature-grid {
  margin-top: 24px;
}

.hero-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: stretch;
}

.hero-copy {
  display: grid;
  gap: 20px;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 4vw, 4.8rem);
}

.hero-copy .hero-text {
  max-width: 720px;
}

.hero-actions {
  align-items: center;
}

.copy-notice {
  display: inline-block;
  margin-left: 12px;
  color: var(--success);
  min-width: 120px;
}

.hero-frame {
  min-height: 360px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(10, 18, 28, 0.96), rgba(6, 10, 18, 0.92));
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.hero-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(0, 173, 181, 0.18), transparent 20%),
              radial-gradient(circle at bottom left, rgba(0, 173, 181, 0.08), transparent 18%);
}

.hero-frame .hero-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  height: 100%;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 18px;
}

.feature-card,
.stat-card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(10, 18, 28, 0.94);
  border: 1px solid rgba(0, 173, 181, 0.14);
}

.feature-card h3,
.stat-card h3 {
  margin: 0 0 12px;
  color: #f8fbff;
}

.feature-card p,
.stat-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 18px;
}

.stat-card strong {
  display: block;
  margin-top: 16px;
  font-size: 2rem;
  color: #fff;
}

.form-grid,
.detail-row {
  display: grid;
  gap: 18px;
}

.form-grid label {
  display: grid;
  gap: 10px;
  color: #c8d2e0;
}

input,
textarea,
select {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 16px;
  background: rgba(9, 15, 22, 0.96);
  color: var(--text);
  font-size: 0.97rem;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 6px rgba(0, 173, 181, 0.16);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.alert {
  border-radius: 18px;
  padding: 18px 20px;
  border: 1px solid transparent;
  font-weight: 600;
}

.alert-success {
  background: rgba(63, 209, 139, 0.12);
  border-color: rgba(63, 209, 139, 0.24);
  color: #d3f9de;
}

.alert-error {
  background: rgba(255, 95, 109, 0.12);
  border-color: rgba(255, 95, 109, 0.24);
  color: #ffcccf;
}

.table-card {
  padding: 28px;
  margin-top: 24px;
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

thead {
  background: rgba(0, 173, 181, 0.08);
}

th,
td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(0, 173, 181, 0.1);
  color: #dde6f0;
}

th {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

tbody tr {
  transition: background 0.2s ease;
}

tbody tr:hover {
  background: rgba(0, 173, 181, 0.06);
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 700;
  font-size: 0.85rem;
}

.status-success {
  background: rgba(63, 209, 139, 0.14);
  color: #dffae2;
  border-color: rgba(63, 209, 139, 0.22);
}

.status-danger {
  background: rgba(255, 95, 109, 0.14);
  color: #ffd7db;
  border-color: rgba(255, 95, 109, 0.22);
}

.status-pending {
  background: rgba(0, 173, 181, 0.14);
  color: #cce8ff;
  border-color: rgba(0, 173, 181, 0.22);
}

.actions-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.action-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tab-button {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 173, 181, 0.14);
}

.footer-note {
  margin-top: 24px;
  padding: 22px 26px;
  background: rgba(10, 16, 24, 0.94);
}

@media (max-width: 980px) {
  .hero-section,
  .feature-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .site-header,
  .table-card,
  .hero-card,
  .section-card {
    padding: 24px;
  }
}

@media (max-width: 700px) {
  .site-header,
  .main-nav,
  .hero-actions,
  .action-form,
  .stats-grid,
  .feature-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav a,
  .button,
  .tab-button {
    width: 100%;
  }
}
