/* ═══════════════════════════════════════════════════════════
   SKEDINK v2 — Global Styles
═══════════════════════════════════════════════════════════ */

*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg:           #0a0909;
  --surface:      #131212;
  --surface2:     #1c1a1a;
  --surface3:     #242222;
  --border:       rgba(255,255,255,0.07);
  --border2:      rgba(255,255,255,0.13);
  --text:         #f0edec;
  --muted:        #5a5555;
  --muted2:       #8a8282;
  --accent:       #e8c547;
  --accent-dim:   rgba(232,197,71,0.12);
  --accent-border:rgba(232,197,71,0.25);
  --red:          #e85447;
  --red-dim:      rgba(232,84,71,0.12);
  --green:        #47e8a0;
  --green-dim:    rgba(71,232,160,0.12);
  --blue:         #4793e8;
  --blue-dim:     rgba(71,147,232,0.12);
  --orange:       #e89147;
  --orange-dim:   rgba(232,145,71,0.12);
  --radius:       12px;
  --radius-sm:    8px;
  --sidebar-w:    224px;
  --topbar-h:     56px;
  --bottomnav-h:  64px;
}

html, body {
  height: 100%;
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ── */
.font-display {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px;
}

.logo-text {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 3px;
  font-size: 26px;
  color: var(--text);
}
.logo-text span { color: var(--accent); }

/* ── LAYOUT ── */
.hidden { display: none !important; }
.flex   { display: flex; }
.col    { flex-direction: column; }
.center { align-items: center; justify-content: center; }
.gap4   { gap: 4px; }
.gap8   { gap: 8px; }
.gap12  { gap: 12px; }
.gap16  { gap: 16px; }
.gap20  { gap: 20px; }
.w100   { width: 100%; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  line-height: 1;
}

.btn:active { transform: scale(0.97); }
.btn-full   { width: 100%; }
.btn-sm     { padding: 8px 13px; font-size: 12px; min-height: 34px; }
.btn-icon   { padding: 10px; min-width: 44px; }

.btn-accent  { background: var(--accent); color: #0a0909; }
.btn-accent:hover { background: #f0d060; }

.btn-ghost   { background: var(--surface2); color: var(--text); border: 1px solid var(--border2); }
.btn-ghost:hover { background: var(--surface3); }

.btn-danger  { background: var(--red-dim); color: var(--red); border: 1px solid rgba(232,84,71,0.2); }
.btn-success { background: var(--green-dim); color: var(--green); border: 1px solid rgba(71,232,160,0.2); }
.btn-warning { background: var(--orange-dim); color: var(--orange); border: 1px solid rgba(232,145,71,0.2); }

/* ══════════════════════════════════════
   FORM ELEMENTS
══════════════════════════════════════ */
.f-group   { margin-bottom: 14px; }
.f-row     { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.f-row-3   { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }

.f-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted2);
  margin-bottom: 7px;
}

.f-input, .f-select, .f-textarea {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 15px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
}

.f-input:focus,
.f-select:focus,
.f-textarea:focus { border-color: var(--accent); }

.f-input::placeholder,
.f-textarea::placeholder { color: var(--muted); }

.f-select  { cursor: pointer; }
.f-textarea { resize: vertical; min-height: 80px; }

.f-input.small, .f-select.small { padding: 9px 12px; font-size: 13px; }

/* Payment method picker */
.pay-picker { display: flex; gap: 6px; }
.pay-btn {
  flex: 1;
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border2);
  background: var(--surface2);
  color: var(--muted2);
  font-family: 'DM Sans', sans-serif;
  text-align: center;
  transition: all 0.15s;
}
.pay-btn.active { background: var(--accent-dim); color: var(--accent); border-color: var(--accent-border); }

/* ── FEEDBACK ── */
.msg-err {
  background: var(--red-dim);
  border: 1px solid rgba(232,84,71,0.2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--red);
  margin-bottom: 14px;
  display: none;
}

.msg-ok {
  background: var(--green-dim);
  border: 1px solid rgba(71,232,160,0.2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--green);
  margin-bottom: 14px;
  display: none;
}

.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 13px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  text-decoration: underline;
  padding: 0;
}

/* ══════════════════════════════════════
   PANELS & CARDS
══════════════════════════════════════ */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}

.panel-hdr {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.panel-title { font-size: 13px; font-weight: 600; }
.panel-body  { padding: 18px; }
.panel-act   {
  font-size: 12px; color: var(--accent);
  cursor: pointer; background: none; border: none;
  font-family: 'DM Sans', sans-serif;
}
.panel-act:hover { text-decoration: underline; }

/* ── STAT CARDS ── */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 38px;
  letter-spacing: 1px;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-num.yellow { color: var(--accent); }
.stat-num.red    { color: var(--red); }
.stat-num.green  { color: var(--green); }
.stat-num.blue   { color: var(--blue); }
.stat-num.orange { color: var(--orange); }
.stat-label { font-size: 11px; color: var(--muted2); line-height: 1.3; }

/* ── LIST ITEMS ── */
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.12s;
}
.list-item:last-child { border-bottom: none; }
.list-item:hover      { background: var(--surface2); }
.list-item.no-hover   { cursor: default; }
.list-item.no-hover:hover { background: transparent; }

.item-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--surface3);
  border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.item-body   { flex: 1; min-width: 0; }
.item-name   { font-size: 14px; font-weight: 600; }
.item-sub    { font-size: 12px; color: var(--muted2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-meta   { display: flex; gap: 5px; margin-top: 5px; flex-wrap: wrap; align-items: center; }
.item-right  { flex-shrink: 0; text-align: right; }
.item-time   { font-size: 11px; color: var(--muted); }

/* ── TAGS ── */
.tag {
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.tag-yellow { background: var(--accent-dim);  color: var(--accent); }
.tag-red    { background: var(--red-dim);     color: var(--red); }
.tag-green  { background: var(--green-dim);   color: var(--green); }
.tag-blue   { background: var(--blue-dim);    color: var(--blue); }
.tag-orange { background: var(--orange-dim);  color: var(--orange); }
.tag-gray   { background: var(--surface3);    color: var(--muted2); }

/* ══════════════════════════════════════
   MODAL (bottom sheet on mobile)
══════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  z-index: 500;
  align-items: flex-end;
  justify-content: center;
}
.modal-overlay.show { display: flex; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 660px;
  max-height: 92vh;
  overflow-y: auto;
  animation: slideUp 0.22s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-handle {
  width: 36px; height: 4px;
  background: var(--border2);
  border-radius: 2px;
  margin: 12px auto 0;
}

.modal-hdr {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1;
  position: sticky; top: 0;
  background: var(--surface);
  z-index: 1;
}

.modal-title { font-size: 15px; font-weight: 700; }
.modal-close {
  background: none; border: none;
  color: var(--muted2); font-size: 18px;
  cursor: pointer; padding: 4px;
  min-width: 32px; min-height: 32px;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { color: var(--text); }
.modal-body { padding: 20px; }

/* ── DETAIL ROWS ── */
.detail-section  { margin-bottom: 20px; }
.detail-label    { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.detail-row      { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.detail-row:last-child { border-bottom: none; }
.detail-key      { color: var(--muted2); }
.detail-val      { font-weight: 500; text-align: right; max-width: 65%; }

/* ══════════════════════════════════════
   TOAST
══════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 80px; left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--surface3);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  font-size: 13px; font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: all 0.25s;
  white-space: nowrap;
  pointer-events: none;
  max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ══════════════════════════════════════
   LOADING OVERLAY
══════════════════════════════════════ */
.loading-overlay {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.loading-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  letter-spacing: 4px;
  color: var(--text);
}
.loading-logo span { color: var(--accent); }

.spinner {
  width: 26px; height: 26px;
  border: 2px solid var(--border2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════
   APP LAYOUT
══════════════════════════════════════ */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ── SIDEBAR (desktop) ── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo-sub { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-top: 3px; }

.sidebar-user {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}

.user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface3);
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.user-name   { font-size: 13px; font-weight: 600; line-height: 1.3; }
.user-role   { font-size: 11px; color: var(--accent); }

.sidebar-nav { padding: 10px 10px; flex: 1; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  color: var(--muted2);
  cursor: pointer;
  transition: all 0.12s;
  margin-bottom: 2px;
  border: none; background: none;
  width: 100%; text-align: left;
  font-family: 'DM Sans', sans-serif;
  position: relative;
}
.nav-item:hover  { background: var(--surface2); color: var(--text); }
.nav-item.active { background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent-border); }
.nav-icon        { font-size: 15px; width: 18px; text-align: center; flex-shrink: 0; }

.nav-badge {
  margin-left: auto;
  background: var(--red);
  color: white;
  font-size: 10px; font-weight: 700;
  padding: 2px 6px;
  border-radius: 20px;
  min-width: 18px;
  text-align: center;
}

.sidebar-bottom {
  padding: 12px 10px;
  border-top: 1px solid var(--border);
}

/* ── LANG TOGGLE ── */
.lang-toggle {
  display: flex;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 3px; gap: 2px;
}

.lang-btn {
  flex: 1; padding: 6px;
  border-radius: 6px;
  font-size: 12px; font-weight: 600;
  cursor: pointer; border: none;
  background: none; color: var(--muted2);
  font-family: 'DM Sans', sans-serif;
  transition: all 0.12s;
}
.lang-btn.active { background: var(--accent); color: #0a0909; }

/* ── MAIN CONTENT ── */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  padding-bottom: 32px;
}

.view { display: none; padding: 26px 24px; }
.view.active { display: block; }

/* ── PAGE HEADER ── */
.page-hdr {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 12px;
  flex-wrap: wrap;
}

.page-title { font-family: 'Bebas Neue', sans-serif; font-size: 30px; letter-spacing: 1px; line-height: 1; }
.page-sub   { font-size: 13px; color: var(--muted2); margin-top: 4px; }
.page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ── MOBILE TOPBAR ── */
.mobile-topbar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 150;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.mobile-logo { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 2px; }
.mobile-logo span { color: var(--accent); }

/* ── BOTTOM NAV (mobile) ── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bottomnav-h);
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 200;
  padding: 0 4px;
  padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-inner {
  display: flex;
  height: 100%;
  align-items: center;
}

.bnav-item {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px; padding: 6px 4px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  background: none; border: none;
  font-family: 'DM Sans', sans-serif;
  color: var(--muted2);
  position: relative;
  transition: color 0.12s;
}
.bnav-item.active { color: var(--accent); }
.bnav-icon  { font-size: 20px; line-height: 1; }
.bnav-label { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

.bnav-badge {
  position: absolute;
  top: 3px; right: calc(50% - 20px);
  background: var(--red);
  color: white;
  font-size: 9px; font-weight: 700;
  padding: 1px 5px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
}

/* ══════════════════════════════════════
   CALENDAR — WEEKLY VIEW
══════════════════════════════════════ */
.cal-week-grid {
  display: grid;
  grid-template-columns: 52px repeat(7, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.cal-week-header {
  display: contents;
}

.cal-corner {
  background: var(--surface2);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 10px 6px;
}

.cal-day-col-hdr {
  background: var(--surface2);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 10px 6px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted2);
  cursor: pointer;
  transition: background 0.12s;
}
.cal-day-col-hdr:hover  { background: var(--surface3); }
.cal-day-col-hdr.today  { color: var(--accent); }
.cal-day-col-hdr .day-num { font-family: 'Bebas Neue', sans-serif; font-size: 22px; line-height: 1; color: var(--text); display: block; margin-top: 2px; }
.cal-day-col-hdr.today .day-num { color: var(--accent); }

.cal-time-label {
  grid-column: 1;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0 6px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: 4px;
  font-size: 10px;
  color: var(--muted);
  height: 52px;
  flex-shrink: 0;
}

.cal-slot {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  height: 52px;
  position: relative;
  cursor: pointer;
  transition: background 0.1s;
}
.cal-slot:hover { background: var(--accent-dim); }
.cal-slot:last-child { border-right: none; }

.cal-event {
  position: absolute;
  left: 2px; right: 2px;
  top: 2px;
  border-radius: 5px;
  padding: 3px 6px;
  font-size: 11px;
  font-weight: 600;
  overflow: hidden;
  cursor: pointer;
  z-index: 1;
  line-height: 1.3;
}

.cal-event.accent  { background: var(--accent-dim);  color: var(--accent);  border-left: 3px solid var(--accent); }
.cal-event.green   { background: var(--green-dim);   color: var(--green);   border-left: 3px solid var(--green); }
.cal-event.blue    { background: var(--blue-dim);    color: var(--blue);    border-left: 3px solid var(--blue); }
.cal-event.red     { background: var(--red-dim);     color: var(--red);     border-left: 3px solid var(--red); }
.cal-event.orange  { background: var(--orange-dim);  color: var(--orange);  border-left: 3px solid var(--orange); }

/* ── MINI CALENDAR (month picker) ── */
.mini-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.mini-cal-hdr { text-align: center; font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); padding: 5px 2px; font-weight: 700; }

.mini-cal-day {
  aspect-ratio: 1;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.1s;
  position: relative;
}
.mini-cal-day:hover    { background: var(--surface2); }
.mini-cal-day.today    { background: var(--accent-dim); color: var(--accent); font-weight: 700; border: 1px solid var(--accent-border); }
.mini-cal-day.selected { background: var(--accent); color: #0a0909; font-weight: 700; }
.mini-cal-day.has-apt::after { content: ''; position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.mini-cal-day.empty    { opacity: 0.15; cursor: default; }

/* ══════════════════════════════════════
   STATIONS VIEW
══════════════════════════════════════ */
.stations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.station-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
}
.station-card.free   { border-color: rgba(71,232,160,0.25); }
.station-card.free:hover { border-color: var(--green); background: var(--green-dim); }
.station-card.taken  { opacity: 0.65; cursor: default; }
.station-card.mine   { border-color: var(--accent-border); background: var(--accent-dim); cursor: default; }

.station-num { font-family: 'Bebas Neue', sans-serif; font-size: 40px; line-height: 1; margin-bottom: 5px; }
.station-card.free  .station-num { color: var(--green); }
.station-card.taken .station-num { color: var(--red); }
.station-card.mine  .station-num { color: var(--accent); }
.station-card-label  { font-size: 11px; color: var(--muted2); }
.station-card-who    { font-size: 12px; font-weight: 600; margin-top: 4px; color: var(--text); }

/* ══════════════════════════════════════
   ARTISTS GRID
══════════════════════════════════════ */
.artist-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s;
}
.artist-card:hover { border-color: var(--accent); }

.artist-card-top {
  height: 68px;
  background: linear-gradient(135deg, var(--surface3), var(--surface2));
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  position: relative;
}

.artist-dot {
  position: absolute; top: 9px; right: 9px;
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 2px solid var(--surface);
}
.dot-online { background: var(--green); }
.dot-busy   { background: var(--red); }

.artist-card-body   { padding: 13px; }
.artist-card-name   { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.artist-card-style  { font-size: 11px; color: var(--accent); margin-bottom: 9px; }
.artist-card-stats  { display: flex; gap: 10px; }
.ac-stat            { font-size: 11px; color: var(--muted2); }
.ac-stat strong     { color: var(--text); font-weight: 600; }

/* ══════════════════════════════════════
   INCOME TABLE
══════════════════════════════════════ */
.income-table { width: 100%; border-collapse: collapse; }
.income-table th {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--muted); font-weight: 700;
  padding: 10px 18px; text-align: left;
  border-bottom: 1px solid var(--border);
}
.income-table td {
  padding: 12px 18px; font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.income-table tr:last-child td { border-bottom: none; }
.income-table tr:hover td { background: var(--surface2); }

/* ══════════════════════════════════════
   AUTH PAGE
══════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
}

.auth-page::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,197,71,0.05) 0%, transparent 65%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.auth-box {
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 1;
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 56px;
  letter-spacing: 4px;
  line-height: 1;
}
.auth-logo-name span { color: var(--accent); }
.auth-logo-sub { font-size: 11px; text-transform: uppercase; letter-spacing: 3px; color: var(--muted); margin-top: 4px; }

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 26px 22px;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}

.auth-tab {
  flex: 1; padding: 10px 6px;
  text-align: center;
  font-size: 13px; font-weight: 600;
  color: var(--muted2);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  background: none;
  border-left: none; border-right: none; border-top: none;
  font-family: 'DM Sans', sans-serif;
}
.auth-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.auth-panel { display: none; }
.auth-panel.active { display: block; }

/* ══════════════════════════════════════
   PUBLIC FORM PAGE
══════════════════════════════════════ */
.form-page {
  min-height: 100vh;
  padding: 32px 16px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-page-inner {
  width: 100%;
  max-width: 560px;
}

.form-page-logo {
  text-align: center;
  margin-bottom: 28px;
}

.form-page-logo-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 40px;
  letter-spacing: 3px;
}
.form-page-logo-name span { color: var(--accent); }

.form-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
  font-weight: 700;
  margin: 22px 0 14px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.form-section-title:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.upload-area {
  border: 2px dashed var(--border2);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.upload-area:hover { border-color: var(--accent); background: var(--accent-dim); }

.success-screen {
  text-align: center;
  padding: 60px 20px;
}
.success-icon  { font-size: 64px; margin-bottom: 20px; }
.success-title { font-family: 'Bebas Neue', sans-serif; font-size: 36px; letter-spacing: 1px; margin-bottom: 10px; }
.success-sub   { font-size: 14px; color: var(--muted2); line-height: 1.7; }

/* ══════════════════════════════════════
   RESPONSIVE — MOBILE (≤768px)
══════════════════════════════════════ */
@media (max-width: 768px) {
  .sidebar          { display: none; }
  .main-content     { margin-left: 0; padding-top: var(--topbar-h); padding-bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom) + 16px); }
  .view             { padding: 14px 13px; }
  .mobile-topbar    { display: flex; }
  .bottom-nav       { display: flex; }

  .grid-2           { grid-template-columns: 1fr; }
  .grid-3           { grid-template-columns: 1fr 1fr; }
  .grid-4           { grid-template-columns: 1fr 1fr; }
  .stat-num         { font-size: 30px; }

  .page-hdr         { flex-direction: column; gap: 10px; }
  .page-actions     { width: 100%; }
  .page-actions .btn { flex: 1; }

  .f-row            { grid-template-columns: 1fr; }
  .f-row-3          { grid-template-columns: 1fr; }

  .modal            { max-height: 90vh; }

  .income-table th,
  .income-table td  { padding: 9px 12px; font-size: 12px; }

  .cal-week-grid    { grid-template-columns: 40px repeat(7, 1fr); }
  .cal-time-label   { font-size: 9px; padding: 3px 4px; }
  .cal-event        { font-size: 9px; padding: 2px 3px; }

  .stations-grid    { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

@media (max-width: 420px) {
  .grid-3           { grid-template-columns: 1fr; }
  .artist-card-stats { gap: 6px; }
}

/* ══════════════════════════════════════
   v7 — MOBILE
══════════════════════════════════════ */

@media (max-width: 768px) {

  /* ── Bottom nav — evenly distributed ── */
  .bottom-nav {
    display: flex;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
    height: 62px;
    padding: 0 4px;
    padding-bottom: env(safe-area-inset-bottom);
    display: flex;
    align-items: center;
  }

  .bottom-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
    padding: 0 4px;
  }

  .bnav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px 2px;
    border-radius: 10px;
    background: none;
    border: none;
    font-family: 'DM Sans', sans-serif;
    color: var(--muted2);
    cursor: pointer;
    transition: all 0.15s;
    min-width: 0;
  }

  .bnav-item.active {
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
  }

  .bnav-icon {
    font-size: 20px;
    line-height: 1;
    letter-spacing: -1px;
  }

  .bnav-label {
    font-size: 8px;
    font-weight: 700;
    text-transform: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 52px;
    text-align: center;
  }

  /* ── Main content ── */
  .main-content {
    padding-bottom: calc(62px + env(safe-area-inset-bottom) + 16px);
  }

  /* ── Mini cal hidden ── */
  .cal-mini-wrap { display: none !important; }
  .cal-layout { grid-template-columns: 1fr !important; }

  /* ── Settings single col ── */
  #view-settings > div { grid-template-columns: 1fr !important; }

  /* ── Requests filter scroll ── */
  #view-requests .page-actions {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  #view-requests .page-actions .btn { flex-shrink: 0; flex: unset; }

  /* ── Artists 2 col ── */
  #artists-grid { grid-template-columns: 1fr 1fr !important; }

  /* ── Income table scroll ── */
  #view-artists .panel:last-child { overflow-x: auto; }

  /* ── Page header ── */
  .page-hdr { margin-bottom: 14px; }
  .page-title { font-size: 24px; }

  /* ── Modals ── */
  .modal { max-height: 95vh; }
}

/* ── More drawer ── */
.more-drawer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  border-radius: var(--radius);
  background: var(--surface2);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  text-align: center;
  min-height: 72px;
}

.more-drawer-item:hover {
  background: var(--accent-dim);
  border-color: var(--accent-border);
  color: var(--accent);
}

/* ── Calendar layout ── */
.cal-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 900px) {
  .cal-layout { grid-template-columns: 1fr; }
  .cal-mini-wrap { display: none; }
}

/* ── Autocomplete dropdown ── */
[id$="-dropdown"] {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  z-index: 300;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

/* ── WhatsApp button ── */
.btn-wa {
  background: #25D366 !important;
  color: white !important;
  border: none !important;
  font-weight: 700;
  white-space: nowrap;
}
.btn-wa:hover { background: #1fb558 !important; }

/* ── Invite result ── */
#invite-result { animation: fadeIn 0.3s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ── Calendar date picker button ── */
#cal-date-btn {
  font-weight: 600;
  min-width: 180px;
}

@media (max-width: 768px) {
  .cal-today-btn { display: none; }
  #cal-date-btn  { min-width: 140px; font-size: 13px; }
  
  /* Page actions calendar: wrap nicely */
  #view-calendar .page-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
  }
}

/* ── v10 fixes ── */

/* Hide app footer on mobile - bottom nav already there */
@media (max-width: 768px) {
  .app-footer-bar { display: none !important; }
}

/* More drawer overlay — full width bottom sheet */
#more-drawer-overlay {
  align-items: flex-end !important;
}

#more-drawer-overlay > div {
  width: 100%;
  max-width: 100%;
  border-radius: 20px 20px 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  background: var(--surface);
  border: 1px solid var(--border2);
  border-bottom: none;
}

/* More drawer items grid */
#more-drawer-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.more-drawer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 14px 6px;
  border-radius: 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  text-align: center;
  min-height: 70px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}

.more-drawer-item:active {
  background: var(--accent-dim);
  border-color: var(--accent-border);
  color: var(--accent);
  transform: scale(0.96);
}

.more-drawer-item > span:first-child {
  font-size: 24px;
  line-height: 1;
  display: block;
}

/* Stats section spacing */
#stats-owner-section .panel,
#stats-artist-section .panel {
  margin-bottom: 16px;
}

/* Terms checkbox on register */
.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--muted2);
  margin: 12px 0;
  line-height: 1.5;
}
.terms-check input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.terms-check a { color: var(--accent); }

/* ══════════════════════════════════════
   v12 — Calendar Grid
══════════════════════════════════════ */

.cal-grid-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cal-grid-header {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface);
  border-bottom: 2px solid var(--border2);
}

.cal-time-gutter {
  width: 52px;
  flex-shrink: 0;
}

.cal-col-header {
  flex: 1;
  min-width: 140px;
  padding: 10px 8px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  border-left: 1px solid var(--border);
  color: var(--text);
}

.cal-grid-body {
  display: flex;
}

.cal-time-col {
  width: 52px;
  flex-shrink: 0;
}

.cal-time-slot {
  height: 60px;
  display: flex;
  align-items: flex-start;
  padding-top: 4px;
  font-size: 11px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-left: 4px;
}

.cal-station-col {
  flex: 1;
  min-width: 140px;
  border-left: 1px solid var(--border);
  position: relative;
}

.cal-slot-empty {
  height: 60px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.1s;
}

.cal-slot-empty:hover {
  background: var(--accent-dim);
}

.cal-slot-busy {
  height: 60px;
  border-bottom: 1px solid var(--border);
}

.cal-apt-block {
  margin: 2px 4px;
  transition: opacity 0.15s;
}

.cal-apt-block:hover { opacity: 0.85; }

@media (max-width: 768px) {
  .cal-col-header { min-width: 110px; font-size: 11px; }
  .cal-station-col { min-width: 110px; }
  .cal-time-gutter { width: 40px; }
  .cal-time-col { width: 40px; }
  .cal-time-slot { font-size: 10px; padding-left: 2px; }
}

/* ── STYLE TAGS ── */
.style-tag {
  display:inline-block;padding:5px 12px;border-radius:20px;font-size:12px;
  font-weight:600;cursor:pointer;border:1px solid var(--border2);
  color:var(--muted2);background:var(--surface2);transition:all 0.15s;user-select:none;
}
.style-tag.selected {
  background:var(--accent-dim);border-color:var(--accent-border);color:var(--accent);
}

/* ── CALENDAR MOBILE ── */

/* Hide on mobile */
.hide-mobile { display: flex; gap: 8px; align-items: center; }
@media (max-width:768px) {
  .hide-mobile { display: none !important; }
}

/* Date navigation row */
.cal-date-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.cal-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border2);
  background: var(--surface2);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cal-arrow:active { background: var(--surface3); }
.cal-date-center {
  flex: 1;
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border2);
  background: var(--surface2);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.cal-date-center:active { background: var(--surface3); }

/* Floating action button — calendar mobile */
.cal-fab {
  display: none;
}
@media (max-width:768px) {
  .cal-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: calc(var(--bottomnav-h) + 16px);
    right: 16px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent);
    color: #0a0909;
    font-size: 28px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    z-index: 150;
    box-shadow: 0 4px 16px rgba(232,197,71,0.4);
  }
}
