:root {
  --ink: #232821; --cream: #F7F2E9; --pine: #33473B; --pine-dark: #263029;
  --honey: #C69447; --honey-dark: #AD7C34; --mist: #E7E9DF; --white: #fff;
  --danger: #B3453D;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--mist); color: var(--ink); line-height: 1.5;
}
.top-bar {
  background: var(--pine); color: var(--cream); padding: 1rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
}
.top-bar h1 { font-size: 1.2rem; margin: 0; }
.top-bar button { background: var(--honey); border: none; color: var(--ink); padding: 0.5em 1.2em; border-radius: 6px; cursor: pointer; font-weight: 600; }

.wrap { max-width: 1000px; margin: 0 auto; padding: 2rem; }
.login-wrap { max-width: 360px; margin: 8rem auto; background: var(--white); padding: 2rem; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.login-wrap h2 { margin-top: 0; }

.card { background: var(--white); border-radius: 10px; padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.card h2 { margin-top: 0; font-size: 1.1rem; }

.tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.tabs button { background: var(--white); border: 2px solid var(--mist); padding: 0.6em 1.4em; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--ink); }
.tabs button.active { background: var(--pine); color: var(--cream); border-color: var(--pine); }

label { display: block; font-weight: 600; font-size: 0.85rem; margin: 0.8rem 0 0.3rem; }
input, textarea, select {
  width: 100%; padding: 0.6em 0.8em; border-radius: 6px; border: 2px solid var(--mist);
  font-family: inherit; font-size: 0.95rem;
}
textarea { min-height: 90px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.btn { display: inline-block; padding: 0.6em 1.4em; border-radius: 6px; border: none; cursor: pointer; font-weight: 600; margin-top: 1rem; }
.btn-primary { background: var(--pine); color: var(--cream); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--pine); color: var(--pine); }
.btn-small { padding: 0.3em 0.9em; font-size: 0.85rem; margin: 0; }

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 0.6em 0.5em; border-bottom: 1px solid var(--mist); }
th { color: var(--pine); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }

.slot-row { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.5rem; }
.slot-row input { flex: 1; }
.session-list-item { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 0; border-bottom: 1px solid var(--mist); }
.badge { display: inline-block; padding: 0.15em 0.6em; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.badge-active { background: #DCEEDC; color: #2C6B2F; }
.badge-inactive { background: #EEE; color: #888; }
.badge-paid { background: #DCEEDC; color: #2C6B2F; }
.badge-pending { background: #FCEFD8; color: #A66B15; }
.badge-failed { background: #F6DEDC; color: var(--danger); }
.error-msg { color: var(--danger); font-size: 0.9rem; margin-top: 0.5rem; }
.hint { font-size: 0.8rem; color: #777; margin-top: 0.2rem; }

/* Photo management (hero + gallery) */
.thumb-box {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--mist);
}
.thumb-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-box .thumb-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
#hero-preview .thumb-box { width: 160px; height: 100px; }
