* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  color: #f4f1e8;
  background-color: #0c0d10;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
  background-image:
    radial-gradient(ellipse 50% 36% at 85% -8%, rgba(214, 255, 63, 0.16), transparent 58%),
    radial-gradient(ellipse 42% 30% at 8% 12%, rgba(255, 92, 168, 0.12), transparent 60%),
    radial-gradient(ellipse 36% 28% at 0% 100%, rgba(214, 255, 63, 0.07), transparent 62%),
    linear-gradient(rgba(214, 255, 63, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 255, 63, 0.05) 1px, transparent 1px);
  background-size: auto, auto, auto, 32px 32px, 32px 32px;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.app-top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(12, 13, 16, 0.92);
  border-bottom: 1px solid rgba(214, 255, 63, 0.2);
  backdrop-filter: blur(16px);
}

.app-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dash-logo {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: none;
  font-weight: 800;
  color: #12130f;
  background: #d6ff3f;
}
.dash-brand-name { font-weight: 800; font-size: 15px; line-height: 1.1; }
.dash-brand-sub { color: #93a0bd; font-size: 12px; }

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 4px;
  padding: 6px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(12, 13, 16, 0.96);
  border-top: 1px solid rgba(214, 255, 63, 0.22);
}
.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 54px;
  border-radius: 14px;
  color: #8b97b3;
  font-size: 11px;
  font-weight: 700;
}
.tabbar a.is-on { color: #d6ff3f; background: rgba(214, 255, 63, 0.14); }
.ico {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  color: #12130f;
  background: #d6ff3f;
}

.app-body {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 16px 16px 120px;
}

.dash-hello { color: #9aa6c2; font-size: 13px; font-weight: 600; margin: 0; }
.store-hero-title {
  margin: 4px 0 0;
  font-size: 2rem;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.app-intro p { color: #9aa6c2; font-size: 14px; margin: 8px 0 0; }

.eq {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 22px;
  margin-top: 14px;
}
.eq span {
  width: 4px;
  border-radius: 99px;
  background: #d6ff3f;
  animation: bounce 1s ease-in-out infinite;
}
.eq span:nth-child(1) { height: 8px; animation-delay: 0s; }
.eq span:nth-child(2) { height: 16px; animation-delay: .12s; }
.eq span:nth-child(3) { height: 11px; animation-delay: .24s; }
.eq span:nth-child(4) { height: 20px; animation-delay: .08s; }
.eq span:nth-child(5) { height: 9px; animation-delay: .2s; }
@keyframes bounce {
  0%, 100% { transform: scaleY(.45); }
  50% { transform: scaleY(1); }
}

.app-layout { display: grid; gap: 12px; margin-top: 16px; }

.store-main,
.widget-card {
  background: rgba(18, 20, 16, 0.92);
  border: 1px solid rgba(214, 255, 63, 0.2);
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  padding: 16px;
}

.store-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.store-card-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.store-card-sub { color: #9aa6c2; font-size: 14px; margin: 4px 0 0; }
.section + .section { margin-top: 22px; }

.choice-grid { display: grid; gap: 10px; margin-top: 14px; }

.choice {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(214, 255, 63, 0.16);
  border-radius: 20px;
  background: rgba(7, 12, 10, 0.45);
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.choice:hover { border-color: rgba(214, 255, 63, 0.5); }
.choice.is-on {
  border-color: #d6ff3f;
  background: rgba(214, 255, 63, 0.1);
  box-shadow: 0 0 0 4px rgba(214, 255, 63, 0.12);
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.avatar.sundrip { color: #2a1608; background: linear-gradient(160deg, #ffd36a, #ff7a18 58%, #d6ff3f); }
.avatar.maza { color: #fff; background: linear-gradient(160deg, #7cf0ff, #7a5cff 52%, #ff4d9a); }
.avatar.nami { color: #06222a; background: linear-gradient(160deg, #7ef0d8, #2f8bff); }
.avatar.aphro { color: #2a1020; background: linear-gradient(160deg, #ffd1e8, #ff6b9d 60%, #d6ff3f); }

.kicker {
  color: #d6ff3f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.choice h3 { margin: 0; font-size: 1.15rem; font-weight: 800; }
.choice p { margin: 0; color: #9aa6c2; font-size: 13px; }
.price { color: #d6ff3f; font-weight: 800; }
.muted { color: #9aa6c2; }

.price-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.price-table th,
.price-table td {
  padding: 12px 8px;
  text-align: left;
  border-bottom: 1px solid rgba(214, 255, 63, 0.12);
  font-size: 14px;
}
.price-table th { color: #9aa6c2; font-size: 12px; font-weight: 700; }
.price-table td:last-child,
.price-table th:last-child { text-align: right; }

.hours { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.hours .choice { padding: 12px 10px; }
.hours strong { font-size: 1.15rem; }

label {
  display: block;
  margin: 12px 0 8px;
  color: #c5d0e6;
  font-size: 13px;
  font-weight: 700;
}

.date-pick {
  display: grid;
  grid-template-columns: 72px 1fr 92px;
  gap: 8px;
}
.time-pick {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}
.time-pick span {
  color: #d6ff3f;
  font-size: 1.4rem;
  font-weight: 800;
}
select.input-field {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #d6ff3f 50%), linear-gradient(135deg, #d6ff3f 50%, transparent 50%);
  background-position: calc(100% - 18px) 22px, calc(100% - 12px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 32px;
}

.input-field,
textarea.input-field {
  width: 100%;
  min-height: 50px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 12, 26, 0.55);
  color: #fff;
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 600;
}
textarea.input-field { min-height: 96px; resize: vertical; }
.input-field::placeholder { color: #7f8ba6; font-weight: 500; }
.input-field:focus {
  outline: none;
  border-color: #d6ff3f;
  box-shadow: 0 0 0 4px rgba(214, 255, 63, 0.18);
}

.form-grid { display: grid; gap: 0; }
.store-btn-primary,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 14px;
  border: 0;
  border-radius: 16px;
  font-weight: 800;
  cursor: pointer;
}
.store-btn-primary {
  background: #d6ff3f;
  color: #12130f;
  box-shadow: 0 10px 24px rgba(214, 255, 63, 0.28);
}
.store-btn-primary:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: #7f8ba6;
  box-shadow: none;
}
.ghost-btn {
  border: 1px solid rgba(214, 255, 63, 0.35);
  background: transparent;
  color: #f4f1e8;
}
.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 120, 90, 0.4);
  background: transparent;
  color: #ffc7b8;
  font-weight: 800;
  cursor: pointer;
}

.summary {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #c5d0e6;
  font-size: 14px;
  font-weight: 700;
}
.summary-row b { color: #fff; }
.total {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(214, 255, 63, 0.16);
  font-size: 18px;
}
.total b { color: #d6ff3f; }

.step-line {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  color: #f4f1e8;
  font-weight: 700;
  font-size: 14px;
}
.step-line b {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #d6ff3f;
  color: #12130f;
  font-size: 12px;
}

.toast {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
}
.toast.ok { display: block; color: #d6ff3f; background: rgba(214, 255, 63, 0.12); }
.toast.err { display: block; color: #ffc7b8; background: rgba(180, 70, 50, 0.16); }

.app-foot {
  color: #7f8ba6;
  font-size: 12px;
  margin-top: 16px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.app-foot a:hover { color: #d6ff3f; }

.hidden { display: none !important; }
.stats-grid { display: grid; gap: 10px; margin: 14px 0; }
.stat-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(214, 255, 63, 0.16);
  background: rgba(7, 12, 10, 0.45);
}
.stat-card strong { display: block; font-size: 1.35rem; font-weight: 800; }
.month-bar { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.dj-split { display: grid; gap: 14px; margin-top: 16px; }
.dj-col {
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(214, 255, 63, 0.16);
  background: rgba(7, 12, 10, 0.35);
}
.dj-col h3 { margin: 0; font-size: 1.15rem; font-weight: 800; }
.sched {
  margin-top: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(214, 255, 63, 0.12);
  background: rgba(12, 13, 16, 0.55);
}
.sched strong { display: block; margin: 4px 0; }
.sched-date {
  margin: 16px 0 0;
  color: #d6ff3f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.slot-time { font-size: 1.15rem; }
.cal-nav {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 22px;
  border: 1px solid rgba(214, 255, 63, 0.2);
  background: rgba(18, 20, 16, 0.92);
}
.cal-label { text-align: center; }
.cal-label h2 {
  margin: 2px 0 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.cal-btn {
  width: 52px;
  height: 52px;
  margin: 0;
  border: 1px solid rgba(214, 255, 63, 0.35);
  border-radius: 16px;
  background: transparent;
  color: #d6ff3f;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.cal-btn:disabled {
  opacity: 0.28;
  cursor: default;
}
.cal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.cal-count {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(214, 255, 63, 0.14);
  color: #d6ff3f;
  font-size: 1.1rem;
}
.slot-table { margin-top: 8px; }
.slot-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(214, 255, 63, 0.1);
}
.slot-day {
  text-align: center;
}
.slot-day b {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.slot-day span {
  color: #9aa6c2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.slot-item {
  display: grid;
  grid-template-columns: 108px 1fr auto;
  gap: 8px;
  align-items: baseline;
  padding: 5px 0;
}
.slot-item time {
  color: #d6ff3f;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.slot-map {
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.empty-month { margin: 16px 0 4px; }
.sched a { color: #d6ff3f; font-size: 13px; word-break: break-all; }
.sched.is-edit {
  border-color: #d6ff3f;
  box-shadow: 0 0 0 3px rgba(214, 255, 63, 0.14);
}
.row-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.row-actions .danger-btn { margin-top: 0; min-height: 42px; }
.edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(214, 255, 63, 0.35);
  background: transparent;
  color: #d6ff3f;
  font-weight: 800;
  cursor: pointer;
}
.choice.mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
}
.choice.mini .avatar { width: 40px; height: 40px; border-radius: 14px; font-size: 13px; }
.choice-grid.compact { margin-top: 10px; }
.panel-form { margin-top: 12px; }
.form-actions {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.form-actions:not(:has(.hidden)) { grid-template-columns: 1fr 1fr; }
.form-actions .store-btn-primary,
.form-actions .ghost-btn { margin-top: 8px; }
#panel-box { display: grid; gap: 12px; }
#panel-box.hidden { display: none !important; }
@media (max-width: 520px) {
  .slot-item { grid-template-columns: 1fr auto; }
  .slot-item time { grid-column: 1 / -1; }
}
@media (min-width: 720px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .dj-split { grid-template-columns: 1fr 1fr; align-items: start; }
}
.dc-preview {
  margin: 10px 0 0;
  padding: 12px;
  border-radius: 14px;
  background: rgba(7, 12, 10, 0.55);
  color: #d6ff3f;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th,
.admin-table td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(214, 255, 63, 0.12);
  text-align: left;
  vertical-align: top;
}
.admin-table th { color: #9aa6c2; font-size: 11px; }

@media (min-width: 720px) {
  .choice-grid.two { grid-template-columns: 1fr 1fr; }
  .form-grid.two { grid-template-columns: 1fr 1fr; gap: 0 12px; }
}

@media (min-width: 960px) {
  .app-top {
    width: min(1120px, calc(100% - 40px));
    margin: 16px auto 0;
    padding: 10px 14px;
    border: 1px solid rgba(214, 255, 63, 0.22);
    border-radius: 22px;
    background: rgba(18, 20, 16, 0.92);
  }
  .tabbar {
    position: static;
    display: flex;
    width: auto;
    margin-left: auto;
    padding: 0;
    background: none;
    border: 0;
  }
  .tabbar a {
    flex-direction: row;
    min-height: 42px;
    padding: 0 12px;
    font-size: 14px;
    gap: 8px;
  }
  .app-body { padding: 18px 0 40px; width: min(1120px, calc(100% - 40px)); }
  .store-hero-title { font-size: 2.4rem; }
  .app-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
  .dash-widgets { position: sticky; top: 96px; display: grid; gap: 12px; }
  .store-main { padding: 22px; }
}
