* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-1: #060b1a;
  --bg-2: #081428;
  --panel: rgba(8, 18, 37, 0.78);
  --line: #27d7ff;
  --line-2: #ff2bda;
  --text: #d6f7ff;
  --muted: #9ccfe0;
  --danger: #ff466f;
  --ok: #27ffb0;

  --glass-top: rgba(255, 255, 255, 0.14);
  --glass-mid: rgba(255, 255, 255, 0.04);
  --glass-base: rgba(7, 16, 33, 0.84);
  --neon-cyan: rgba(39, 215, 255, 0.9);
  --neon-violet: rgba(155, 97, 255, 0.8);
}

body.neon-body {
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 20%, #12315f 0%, var(--bg-1) 38%, #040913 100%);
  position: relative;
  overflow-x: hidden;
}

.neon-bg-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(39, 215, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 215, 255, 0.07) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.4;
}

.page-wrap,
.auth-wrap {
  max-width: 1100px;
  margin: 28px auto;
  padding: 0 14px 40px;
  position: relative;
  z-index: 2;
}

.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.neon-panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, var(--glass-top) 0%, var(--glass-mid) 34%, rgba(255, 255, 255, 0.015) 60%),
    linear-gradient(145deg, rgba(9, 20, 42, 0.9), var(--glass-base));
  border: 1px solid rgba(130, 227, 255, 0.42);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.36),
    0 0 14px rgba(39, 215, 255, 0.22),
    0 0 18px rgba(155, 97, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -8px 18px rgba(0, 0, 0, 0.32);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.neon-panel::before {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  top: 8px;
  height: 40%;
  border-radius: 14px;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04) 35%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.neon-panel > * {
  position: relative;
  z-index: 2;
}

.auth-panel {
  width: min(520px, 95%);
  padding: 28px;
}

.neon-title {
  color: #9cecff;
  text-shadow: 0 0 10px rgba(39, 215, 255, 0.9), 0 0 20px rgba(39, 215, 255, 0.5);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.neon-title.small {
  font-size: 1.5rem;
}

.neon-subtitle {
  color: var(--muted);
  margin-bottom: 14px;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin: 14px 0;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  border: 1px solid rgba(39, 215, 255, 0.6);
  background: rgba(39, 215, 255, 0.1);
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
}

.auth-tab.active {
  border-color: var(--line-2);
  box-shadow: 0 0 10px rgba(255, 43, 218, 0.7);
}

.auth-form {
  display: grid;
  gap: 10px;
}

.hidden {
  display: none;
}

label {
  color: var(--muted);
  font-size: 0.92rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(133, 220, 255, 0.45);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03) 45%, rgba(255, 255, 255, 0.01)),
    linear-gradient(145deg, rgba(8, 16, 33, 0.9), rgba(7, 14, 30, 0.78));
  color: var(--text);
  outline: none;
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(39, 215, 255, 0.08) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

select option {
  background: #081428;
  color: #d6f7ff;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(158, 119, 255, 0.92);
  box-shadow:
    0 0 0 1px rgba(158, 119, 255, 0.25) inset,
    0 0 14px rgba(39, 215, 255, 0.28),
    0 0 18px rgba(155, 97, 255, 0.28);
}

.btn {
  border: none;
  cursor: pointer;
}

.neon-btn {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05) 42%, rgba(255, 255, 255, 0.01) 70%),
    linear-gradient(100deg, rgba(46, 190, 255, 0.32), rgba(138, 95, 255, 0.28));
  color: var(--text);
  border: 1px solid rgba(130, 226, 255, 0.62);
  border-radius: 16px;
  padding: 11px 16px;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.34),
    0 0 16px rgba(39, 215, 255, 0.26),
    0 0 14px rgba(155, 97, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -8px 14px rgba(7, 12, 26, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    filter 0.22s ease;
}

.neon-btn::before {
  content: '';
  position: absolute;
  top: 8%;
  left: 6%;
  width: 70%;
  height: 44%;
  border-radius: 999px;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.12), transparent 75%);
  pointer-events: none;
}

.neon-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(165, 228, 255, 0.95);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.38),
    0 0 20px rgba(39, 215, 255, 0.4),
    0 0 20px rgba(155, 97, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -10px 18px rgba(6, 11, 24, 0.36);
  filter: saturate(1.08);
}

.neon-btn:active {
  transform: translateY(0) scale(0.985);
}

.neon-btn.danger {
  border-color: rgba(255, 70, 111, 0.85);
  color: #ffd0db;
}

.delete-icon-btn {
  border: none !important;
  background: transparent !important;
  color: #ff2f52 !important;
  fill: #ff2f52 !important;
  box-shadow: none !important;
  text-shadow: 0 0 6px rgba(255, 47, 82, 0.45);
  padding: 0 !important;
  min-width: auto;
  font-size: 1.12rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, color 0.18s ease, filter 0.18s ease, text-shadow 0.18s ease;
}

.delete-icon-btn:hover {
  color: #ff5a78 !important;
  fill: #ff5a78 !important;
  transform: scale(1.18);
  text-shadow: 0 0 10px rgba(255, 90, 120, 0.8);
  filter: drop-shadow(0 0 8px rgba(255, 47, 82, 0.7));
}

.delete-icon-btn:active {
  transform: scale(0.96);
}

.neon-btn.mini {
  padding: 6px 10px;
  font-size: 12px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  margin-bottom: 16px;
}

.topbar-actions {
  display: flex;
  gap: 8px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.menu-card {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  text-align: center;
  padding: 28px 12px;
  border: 1px solid rgba(130, 224, 255, 0.45);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.03) 38%, rgba(255, 255, 255, 0.01) 62%),
    linear-gradient(145deg, rgba(10, 22, 46, 0.9), rgba(8, 18, 38, 0.78));
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.34),
    0 0 14px rgba(39, 215, 255, 0.24),
    0 0 14px rgba(155, 97, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -12px 18px rgba(6, 12, 25, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease, filter 0.26s ease;
}

.menu-card::before {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  top: 8px;
  height: 36%;
  border-radius: 14px;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.08), transparent 74%);
  pointer-events: none;
}

.menu-card:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(166, 122, 255, 0.88);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(39, 215, 255, 0.34),
    0 0 22px rgba(155, 97, 255, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    inset 0 -14px 20px rgba(6, 12, 25, 0.35);
  filter: brightness(1.04);
}

.menu-card:active {
  transform: translateY(-1px) scale(0.995);
}

.menu-card h2 {
  font-size: 1.2rem;
}

.menu-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  text-shadow: 0 0 14px rgba(39, 215, 255, 0.9);
}

.section-block {
  padding: 16px;
  margin-bottom: 16px;
}

.section-block h2 {
  margin-bottom: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid rgba(39, 215, 255, 0.2);
  font-size: 0.9rem;
}

th {
  color: #8ce9ff;
  text-align: left;
}

.ringkasan {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ringkasan-item {
  position: relative;
  overflow: hidden;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(130, 223, 255, 0.4);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03) 45%, rgba(255, 255, 255, 0.01)),
    linear-gradient(145deg, rgba(8, 18, 37, 0.88), rgba(6, 14, 30, 0.78));
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.3),
    0 0 10px rgba(39, 215, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.ringkasan-item span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.ringkasan-item strong {
  color: var(--ok);
}

.card-list {
  list-style: none;
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.card-item {
  position: relative;
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(130, 220, 255, 0.38);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.02) 42%, rgba(255, 255, 255, 0.005)),
    linear-gradient(145deg, rgba(7, 16, 34, 0.88), rgba(5, 11, 24, 0.8));
  box-shadow:
    0 9px 18px rgba(0, 0, 0, 0.3),
    0 0 10px rgba(39, 215, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.card-item h3 {
  margin-bottom: 6px;
}

.elegant-menu-panel {
  position: relative;
  overflow: hidden;
}

.elegant-menu-panel::before {
  content: '';
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background: radial-gradient(circle at 20% 15%, rgba(39, 215, 255, 0.14), transparent 45%),
              radial-gradient(circle at 80% 85%, rgba(255, 43, 218, 0.12), transparent 50%);
  filter: blur(2px);
}

.elegant-menu-grid {
  position: relative;
  z-index: 2;
}

@media (max-width: 900px) {
  .menu-grid {
    grid-template-columns: 1fr;
  }

  .ringkasan {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
