/* =========================================================
   CLUB PANEL — Premium SaaS Dashboard
   Palette: charcoal dark · subtle borders · clean typography
   ========================================================= */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0f0f11;
  color: #f4f4f5;
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0f0f11; }
::-webkit-scrollbar-thumb { background: #2a2a2e; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a3e; }

/* =========================================================
   AUTH MODAL
   ========================================================= */

.auth-modal {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.audit-date-picker {
  position: relative;
}

.audit-date-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 7px 14px;
  min-height: 38px;
  border-radius: 7px;
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  color: #f4f4f5;
  background: linear-gradient(180deg, #2a355c 0%, #1f294a 100%);
  border: 1px solid #445587;
  box-shadow: none;
  transform: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
  letter-spacing: 0;
  text-transform: none;
}

.audit-date-trigger:hover {
  background: linear-gradient(180deg, #32406f 0%, #243055 100%);
  border-color: #50649b;
  color: #f4f4f5;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.audit-date-popover {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  top: auto;
  z-index: 40;
  display: none;
  min-width: 320px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--c-border);
  background: linear-gradient(180deg, var(--c-surface) 0%, #121a2f 100%);
  box-shadow: 0 16px 38px rgba(4, 8, 18, 0.52);
}

.audit-date-popover.is-open {
  display: grid;
  gap: 8px;
}

.audit-date-popover-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.audit-date-popover-row label {
  font-size: 0.75rem;
  color: var(--c-text-muted);
}

.audit-date-popover-row input {
  width: 100%;
  max-width: none;
}

.auth-box {
  background: #18181b;
  padding: 48px 44px;
  border-radius: 16px;
  width: 400px;
  max-width: 92vw;
  border: 1px solid #2a2a2e;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255,255,255,0.04) inset;
}

.auth-box h2 {
  color: #f4f4f5;
  margin-bottom: 32px;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: left;
}

.auth-field {
  margin-bottom: 20px;
  text-align: left;
}

.auth-field label {
  display: block;
  margin-bottom: 7px;
  color: #a1a1aa;
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

.auth-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #2a2a2e;
  background: #0f0f11;
  color: #f4f4f5;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 400;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.auth-input:focus {
  border-color: #52525b;
  box-shadow: 0 0 0 3px rgba(82, 82, 91, 0.18);
}

.auth-btn {
  width: 100%;
  padding: 11px 16px;
  border: 1px solid #3f3f46;
  border-radius: 8px;
  background: #27272a;
  color: #f4f4f5;
  font-size: 0.875rem;
  cursor: pointer;
  font-weight: 500;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  margin-top: 4px;
  letter-spacing: 0.01em;
}

.auth-btn:hover {
  background: #3f3f46;
  border-color: #52525b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.auth-inline-error {
  margin-top: 4px;
  margin-bottom: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid rgba(248, 113, 113, 0.55);
  background: rgba(127, 29, 29, 0.22);
  color: #fecaca;
  font-size: 0.8125rem;
  line-height: 1.35;
}

#switchMode {
  margin-top: 22px;
  color: #71717a;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 400;
  text-align: center;
  display: block;
  transition: color 0.15s;
}

#switchMode:hover {
  color: #a1a1aa;
}

/* =========================================================
   APP LAYOUT — sidebar + main
   ========================================================= */

.app-layout {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
  width: 72px;
  transition: width 0.25s ease;
  flex-shrink: 0;
  background: #111113;
  border-right: 1px solid #1e1e21;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
}
.sidebar-backdrop.active {
  display: block;
}

.sidebar-header {
  height: 56px;
  padding: 0 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid #1e1e21;
  flex-shrink: 0;
}

.logo {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #f4f4f5;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sidebar-nav {
  flex: 1;
  padding: 22px 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 3.2px;
}

.nav-section-label {
  display: none;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 12.1px 8px;
  border-radius: 7px;
  color: #71717a;
  font-size: 0;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  border: none;
  background: transparent;
  font-family: inherit;
  width: 100%;
  text-align: left;
  line-height: 1.4;
  white-space: nowrap;
  letter-spacing: 0;
  text-transform: none;
}

.nav-item:hover {
  color: #d4d4d8;
  background: rgba(255, 255, 255, 0.05);
  transform: none;
  box-shadow: none;
}

.nav-item.active {
  color: #f4f4f5;
  background: rgba(255, 255, 255, 0.08);
}

.nav-icon {
  width: 23px;
  height: 23px;
  opacity: 0.65;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  position: relative;
}

.nav-notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ef4444;
  border: 1px solid rgba(10, 15, 29, 0.9);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
  display: none;
}

.nav-notification-badge.is-visible {
  display: block;
}

.nav-icon svg {
  width: 21px;
  height: 21px;
}

.nav-item.active .nav-icon,
.nav-item:hover .nav-icon {
  opacity: 1;
}

/* NAV LABEL — hidden when sidebar collapsed, visible when expanded */
.nav-label {
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.2s ease, max-width 0.25s ease;
}

/* SIDEBAR EXPANDED STATE */
.sidebar.sidebar-expanded {
  width: 240px;
  overflow-y: auto;
  box-shadow: 4px 0 32px rgba(0, 0, 0, 0.5);
}

.sidebar.sidebar-expanded .nav-label {
  opacity: 1;
  max-width: 180px;
  pointer-events: auto;
}

.sidebar.sidebar-expanded .nav-item {
  justify-content: flex-start;
  gap: 12px;
  padding: 12.1px 14px;
  font-size: 0.8125rem;
}


.sidebar.sidebar-expanded .user-meta {
  opacity: 1;
  max-height: 60px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar.sidebar-expanded .counter-wrap {
  opacity: 1;
  max-height: 30px;
  display: flex;
  align-items: center;
}

.sidebar.sidebar-expanded .btn-logout {
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 14px;
  font-size: 0.8125rem;
}

.sidebar.sidebar-expanded .btn-logout::before {
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 10px 8px;
  border-top: 1px solid #1e1e21;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.user-meta,
.counter-wrap {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.2s ease, max-height 0.25s ease;
}

.btn-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid #2a2a2e;
  background: transparent;
  color: #71717a;
  border-radius: 7px;
  cursor: pointer;
  font-size: 0;
  font-weight: 500;
  font-family: inherit;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  text-align: center;
  letter-spacing: 0.01em;
  width: 100%;
  text-transform: none;
}

.btn-logout::before {
  content: '\2192';
  font-size: 16px;
}

.btn-logout:hover {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.06);
  transform: none;
  box-shadow: none;
}

/* =========================================================
   MAIN WRAPPER
   ========================================================= */

.main-wrapper {
  margin-left: 72px;
  transition: margin-left 0.25s ease;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
}



/* =========================================================
   TOP HEADER
   ========================================================= */

.top-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 15, 17, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #1e1e21;
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* legacy .header kept for compat */
.header {
  display: none;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}


.sidebar-toggle-btn {
  display: none;
}

.page-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #f4f4f5;
  letter-spacing: -0.01em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Platform switcher lives in header */
.platform-btn {
  padding: 5px 14px;
  border: 1px solid transparent;
  background: transparent;
  color: #71717a;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: inherit;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
}

.platform-btn:hover {
  color: #d4d4d8;
  background: rgba(255, 255, 255, 0.05);
  transform: none;
  box-shadow: none;
}

.platform-btn.active {
  background: #27272a;
  color: #f4f4f5;
  border-color: #3f3f46;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* =========================================================
   CONTENT AREA
   ========================================================= */

.content-area {
  flex: 1;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

/* =========================================================
   DASHBOARD SECTION
   ========================================================= */

#dashboardSection {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dashboard-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dashboard-heading h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #f4f4f5;
  letter-spacing: -0.02em;
}

.dashboard-sub {
  display: none;
  font-size: 0.8rem;
  color: #52525b;
}

.admins-section {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 540px;
}

.admins-topbar {
  display: block;
}

.admins-invite-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 520px;
  max-width: 520px;
  margin-left: 0;
}

/* Stat cards grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.stat-card {
  background: #18181b;
  border: 1px solid #2a2a2e;
  border-radius: 12px;
  padding: 20px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: default;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  border-color: #3f3f46;
}

.stat-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid #2a2a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-bottom: 10px;
}

.stat-card-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: #f4f4f5;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-card-label {
  font-size: 0.775rem;
  color: #71717a;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-top: 4px;
}

/* Dashboard bottom row */
.dashboard-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: flex-start;
}

.dashboard-bottom .section-card-notifications {
  width: 100%;
  max-width: 100%;
}

/* Section card (box wrapper) */
.section-card {
  background: #18181b;
  border: 1px solid #2a2a2e;
  border-radius: 12px;
  overflow: hidden;
}

.section-card-notifications {
  width: min(100%, 760px);
  max-width: 760px;
  min-width: 0;
  align-self: flex-start;
}

.section-card-compact {
  width: fit-content;
  max-width: min(100%, 1160px);
  align-self: flex-start;
  padding: 14px 16px;
}

.section-card-compact--narrow {
  max-width: min(100%, 720px);
}

.section-card-compact--logs {
  max-width: min(100%, 1440px);
}

.section-card-header {
  padding: 14px 20px;
  border-bottom: 1px solid #1e1e21;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-card-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #a1a1aa;
  letter-spacing: 0.01em;
}

.section-card-notifications .section-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #f4f4f5;
  letter-spacing: -0.02em;
}

/* Recent Activity */
.activity-list {
  display: flex;
  flex-direction: column;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid #1e1e21;
  transition: background 0.15s;
}

.activity-item:last-child { border-bottom: none; }

.activity-item:hover { background: rgba(255, 255, 255, 0.025); }

.activity-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.app-layout.sidebar-pushed .main-wrapper {
  margin-left: 240px;
}


.activity-dot.green  { background: #4ade80; box-shadow: 0 0 4px rgba(74,222,128,0.5); }
.activity-dot.blue   { background: #60a5fa; box-shadow: 0 0 4px rgba(96,165,250,0.5); }
.activity-dot.yellow { background: #facc15; box-shadow: 0 0 4px rgba(250,204,21,0.5); }
.activity-dot.orange { background: #fb923c; box-shadow: 0 0 4px rgba(251,146,60,0.5); }
.activity-dot.red    { background: #f87171; box-shadow: 0 0 4px rgba(248,113,113,0.5); }
.activity-dot.gray   { background: #52525b; }

.activity-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.activity-text {
  font-size: 0.8125rem;
  color: #a1a1aa;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.activity-text strong { color: #d4d4d8; font-weight: 500; }

.activity-time {
  font-size: 0.7375rem;
  color: #52525b;
}

/* Notification items styling */
.activity-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.activity-item-booking-time-reached {
  border-left: none;
  background: transparent;
}

.activity-item-booking-late {
  border-left: none;
  background: transparent;
}

.activity-item-ps-time-expired,
.activity-item-ps-session-ending-soon {
  border-left: none;
  background: transparent;
}

.activity-item-booking-time-reached .activity-dot,
.activity-item-booking-late .activity-dot,
.activity-item-ps-time-expired .activity-dot,
.activity-item-ps-session-ending-soon .activity-dot {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

@keyframes notificationSoftGlow {
  0%,
  100% {
    background: rgba(255, 255, 255, 0.02);
  }
  50% {
    background: rgba(255, 255, 255, 0.045);
  }
}

.activity-item-booking-time-reached,
.activity-item-booking-late,
.activity-item-ps-time-expired,
.activity-item-ps-session-ending-soon {
  animation: notificationSoftGlow 3.6s ease-in-out infinite;
}

/* =========================================================
   CONTROLS ROW (booking actions bar)
   ========================================================= */

.controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: #18181b;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid #2a2a2e;
}

.left-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.controls-row[data-platform="pc"] {
  justify-content: flex-start;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.controls-row[data-platform="pc"] .left-buttons {
  background: linear-gradient(180deg, var(--c-surface) 0%, #121a2f 100%);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  box-shadow: 0 16px 38px rgba(4, 8, 18, 0.52);
  padding: 13px 16px;
}

/* =========================================================
   BUTTONS — global
   ========================================================= */

button {
  padding: 7px 14px;
  border: 1px solid #2a2a2e;
  background: #1c1c1f;
  color: #a1a1aa;
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
  letter-spacing: 0;
  white-space: nowrap;
  text-transform: none;
}

button:hover {
  background: #27272a;
  border-color: #3f3f46;
  color: #f4f4f5;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

/* Admin/owner action buttons */
.admin-btn {
  padding: 7px 14px;
  border: 1px solid #2a2a2e;
  background: #1c1c1f;
  color: #a1a1aa;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.8125rem;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  font-family: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.admin-btn:hover {
  background: #27272a;
  border-color: #3f3f46;
  color: #f4f4f5;
  transform: none;
  box-shadow: none;
}

/* =========================================================
   FORM PANELS (add / search)
   ========================================================= */

.panel {
  max-height: 0;
  overflow: hidden;
  background: #18181b;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid #2a2a2e;
  transition: max-height 0.35s ease, padding 0.35s ease, opacity 0.3s ease;
  opacity: 0;
}

.panel.show {
  max-height: 700px;
  padding: 22px;
  opacity: 1;
}

.panel .field {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.panel label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  min-width: 90px;
  white-space: nowrap;
}

input, select {
  padding: 9px 12px;
  border-radius: 7px;
  border: 1px solid #2a2a2e;
  background: #0f0f11;
  color: #f4f4f5;
  font-size: 0.8125rem;
  font-family: inherit;
  font-weight: 400;
  transition: border-color 0.15s, box-shadow 0.15s;
  flex: 1;
  max-width: 260px;
  outline: none;
}

input:focus, select:focus {
  border-color: #52525b;
  box-shadow: 0 0 0 3px rgba(82, 82, 91, 0.16);
}

select option {
  background: #18181b;
  color: #f4f4f5;
}

/* =========================================================
   MAIN TABLE
   ========================================================= */

.main-content {
  flex: 1;
  background: #18181b;
  border-radius: 12px;
  border: 1px solid #2a2a2e;
  overflow: visible;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  background: transparent;
  color: #52525b;
  padding: 12px 16px;
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-bottom: 1px solid #2a2a2e;
  font-size: 0.68rem;
}

td {
  padding: 13px 16px;
  text-align: center;
  border-bottom: 1px solid #1e1e21;
  color: #d4d4d8;
  font-size: 0.8125rem;
  font-weight: 400;
  position: relative;
  overflow: visible;
}

tr:last-child td { border-bottom: none; }

tr:hover td { background: rgba(255, 255, 255, 0.025); }

@keyframes overduePulse {
  0%, 100% {
    background-color: rgba(248, 113, 113, 0.045);
  }
  50% {
    background-color: rgba(248, 113, 113, 0.085);
  }
}

tr.booking-overdue td {
  animation: overduePulse 4s ease-in-out infinite;
}

tr.booking-overdue:hover td {
  background: rgba(248, 113, 113, 0.07) !important;
}

/* =========================================================
   TABLE ACTIONS
   ========================================================= */

.booking-actions-cell {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.booking-remind-inline {
  order: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  font-size: 0.75rem;
  line-height: 1;
  background: rgba(248, 113, 113, 0.08);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-radius: 6px;
}

.booking-remind-inline:hover {
  background: rgba(248, 113, 113, 0.16);
  border-color: rgba(248, 113, 113, 0.45);
  transform: translateY(-1px);
}

.phone-link {
  color: #4ade80;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.8125rem;
}

/* =========================================================
   STATUS BADGES (rating)
   ========================================================= */

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.73rem;
  font-weight: 600;
  margin-left: 6px;
}

.rating-excellent { background: rgba(74,222,128,0.1);  color: #4ade80; border: 1px solid rgba(74,222,128,0.25); }
.rating-good      { background: rgba(96,165,250,0.1);  color: #60a5fa; border: 1px solid rgba(96,165,250,0.25); }
.rating-fair      { background: rgba(250,204,21,0.1);  color: #facc15; border: 1px solid rgba(250,204,21,0.25); }
.rating-poor      { background: rgba(248,113,113,0.1); color: #f87171; border: 1px solid rgba(248,113,113,0.25); }

.rating-bar {
  display: inline-block;
  width: 16px;
  height: 5px;
  background: transparent;
  border-radius: 3px;
  overflow: hidden;
  margin-right: 4px;
}

.rating-fill {
  height: 100%;
  background: #4ade80;
  border-radius: 3px;
}

/* PC name tooltip */
.pc-booking-name-tooltip {
  position: relative;
  cursor: pointer;
}

.pc-booking-name-tooltip:hover::after {
  content: attr(data-admin-info);
  position: absolute;
  width: fit-content;
  min-width: 150px;
  background: #111113;
  color: #a1a1aa;
  text-align: left;
  border: 1px solid #2a2a2e;
  border-radius: 8px;
  padding: 8px 12px;
  z-index: 10000;
  font-size: 0.775rem;
  white-space: pre-line;
  box-shadow: 0 10px 28px rgba(0,0,0,0.55);
  pointer-events: none;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 6px;
  line-height: 1.5;
  font-weight: 400;
}

.pc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
}

.pc-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.12);
  cursor: pointer;
  transition: transform 0.15s;
}

.pc-badge:hover { transform: translateY(-1px); box-shadow: none; }

.pc-pending   { background: rgba(113,113,122,0.14); color: #a1a1aa; border-color: rgba(113,113,122,0.35); }
.pc-arrived   { background: rgba(74,222,128,0.1);   color: #4ade80; border-color: rgba(74,222,128,0.35); }
.pc-late      { background: rgba(250,204,21,0.1);   color: #facc15; border-color: rgba(250,204,21,0.35); }
.pc-cancelled,
.pc-no-show   { background: rgba(248,113,113,0.1);  color: #f87171; border-color: rgba(248,113,113,0.35); }

/* PC status in modals */
.pc-status-list { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }

.pc-status-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  align-items: center;
}

.pc-status-label { font-weight: 600; color: #d4d4d8; font-size: 0.8125rem; }
.pc-mini-modal   { min-width: 300px; max-width: 340px; }
.pc-mini-ok      { min-width: 56px; font-size: 1.1rem; padding: 9px 12px; }

/* =========================================================
   ACTION DROPDOWN
   ========================================================= */

.action-dropdown {
  order: 1;
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  flex-direction: column;
  background: #18181b;
  border: 1px solid #2a2a2e;
  border-radius: 9px;
  min-width: 185px;
  z-index: 1000;
  box-shadow: 0 12px 32px rgba(0,0,0,0.55);
  margin-top: 4px;
  top: 100%;
  right: 0;
  left: auto;
  overflow: hidden;
}

.dropdown-menu-top {
  top: auto;
  bottom: 100%;
  margin-top: 0;
  margin-bottom: 4px;
}

.action-dropdown:hover .dropdown-menu,
.action-dropdown:focus-within .dropdown-menu {
  display: flex;
  flex-direction: column;
}

.dropdown-menu button {
  width: 100%;
  padding: 9px 14px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #a1a1aa;
  text-align: left;
  cursor: pointer;
  font-size: 0.8rem;
  text-transform: none;
  font-weight: 500;
  letter-spacing: 0;
  box-shadow: none;
  transform: none;
}

.dropdown-menu button:hover {
  background: rgba(255,255,255,0.05);
  color: #f4f4f5;
  transform: none;
  box-shadow: none;
}

/* =========================================================
   MODALS
   ========================================================= */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-content {
  background: #18181b;
  padding: 32px 36px;
  border-radius: 14px;
  min-width: 360px;
  max-width: 560px;
  max-height: 82vh;
  overflow-y: auto;
  border: 1px solid #2a2a2e;
  box-shadow: 0 24px 64px rgba(0,0,0,0.7);
}

.modal-content h3 {
  color: #f4f4f5;
  margin-bottom: 20px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
}

.modal-content p {
  color: #a1a1aa;
  margin-bottom: 20px;
  font-size: 0.875rem;
  line-height: 1.6;
}

.modal-content .field {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.modal-content label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.modal-content input,
.modal-content select {
  max-width: none;
}

.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

.modal-buttons button { flex: 1; }

/* =========================================================
   ADMINS LIST
   ========================================================= */

#adminsPageList {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}

.admin-item {
  background: linear-gradient(180deg, var(--c-surface) 0%, #121a2f 100%);
  padding: 10px 14px;
  margin-bottom: 10px;
  border-radius: 9px;
  border: 1px solid var(--c-border);
  width: fit-content;
  min-width: 420px;
  max-width: 520px;
  align-self: flex-start;
  box-sizing: border-box;
}

.admin-item strong { color: #f4f4f5; font-weight: 600; font-size: 0.8625rem; }
.admin-item small  { color: #71717a; display: block; margin: 2px 0; font-size: 0.775rem; }
.admin-item button { font-size: 0.8rem; padding: 5px 12px; }
.admin-item--clickable { transition: border-color 0.15s, box-shadow 0.15s; }
.admin-item--clickable:hover { border-color: #3f3f46; box-shadow: 0 4px 16px rgba(0,0,0,0.35); }
.admin-item-header { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.admin-item-actions { display: flex; gap: 8px; margin-top: 10px; }
.admin-item-dropdown {
  margin-top: 0;
  padding-top: 0;
  border-top: 1px solid transparent;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-4px);
  transition: max-height 0.26s ease, opacity 0.2s ease, transform 0.2s ease, padding-top 0.2s ease, border-top-color 0.2s ease, margin-top 0.2s ease;
}
.admin-item-open .admin-item-dropdown {
  margin-top: 12px;
  padding-top: 12px;
  border-top-color: #2a2a2e;
  max-height: 720px;
  opacity: 1;
  transform: translateY(0);
}
.admin-item-open .btn-admin-stats { background: rgba(99,102,241,0.28); color: #c7d2fe; }
.btn-admin-stats { background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.3); color: #a5b4fc; border-radius: 6px; padding: 5px 12px; font-size: 0.8rem; cursor: pointer; transition: background 0.15s; }
.btn-admin-stats:hover { background: rgba(99,102,241,0.22); }
.btn-admin-delete { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.25); color: #fca5a5; border-radius: 6px; padding: 5px 12px; font-size: 0.8rem; cursor: pointer; transition: background 0.15s; }
.btn-admin-delete:hover { background: rgba(239,68,68,0.2); }
.admin-stats-grid { margin-bottom: 10px; }
.admin-stats-section-title { display: none; }
.admin-stat-card { padding: 12px 10px 9px; }
.admin-stat-label { font-size: 0.7rem; }
.admin-stats-modal-content { min-width: 320px; max-width: 480px; width: 100%; padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.admin-stats-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.admin-stats-modal-name { font-size: 1.1rem; font-weight: 700; color: #f4f4f5; }
.admin-stats-modal-meta { font-size: 0.775rem; color: #71717a; margin-top: 3px; }
.admin-stats-close-btn { background: transparent; border: none; color: #71717a; cursor: pointer; padding: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: color 0.15s; }
.admin-stats-close-btn:hover { color: #f4f4f5; }
.admin-stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.admin-stat-card { background: #18181b; border: 1px solid #2a2a2e; border-radius: 10px; padding: 12px 10px 9px; display: flex; flex-direction: column; gap: 4px; }
.admin-stat-value { font-size: 1.5rem; font-weight: 700; color: #f4f4f5; line-height: 1; letter-spacing: -0.03em; }
.admin-stat-label { font-size: 0.7rem; color: #71717a; font-weight: 500; line-height: 1.25; }
.admin-stats-status-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.admin-status-chip { display: flex; align-items: center; gap: 10px; border-radius: 8px; padding: 10px 12px; border: 1px solid; }
.admin-status-chip-val { font-size: 1.2rem; font-weight: 700; line-height: 1; }
.admin-status-chip-lbl { font-size: 0.75rem; font-weight: 500; opacity: 0.85; line-height: 1.2; }
.status-arrived   { background: rgba(34,197,94,0.08);  border-color: rgba(34,197,94,0.2);  color: #86efac; }
.status-late      { background: rgba(234,179,8,0.08);  border-color: rgba(234,179,8,0.2);  color: #fde047; }
.status-cancelled { background: rgba(239,68,68,0.08);  border-color: rgba(239,68,68,0.2);  color: #fca5a5; }
.status-noshow    { background: rgba(113,113,122,0.1); border-color: rgba(113,113,122,0.2); color: #a1a1aa; }

.admin-invite-toast {
  animation: fadeIn 0.25s ease-in-out;
  transition: opacity 0.25s ease-in-out;
}

.admin-invite-toast[style*="display: none"] {
  animation: fadeOut 0.25s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-4px); }
}

.root-badge {
  display: inline-block;
  background: rgba(255,255,255,0.05);
  color: #71717a;
  padding: 2px 9px;
  border-radius: 10px;
  font-size: 0.68rem;
  font-weight: 600;
  margin-left: 6px;
  border: 1px solid #2a2a2e;
}

/* =========================================================
   GUESTS / CLIENTS PAGE
   ========================================================= */

.guests-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.guest-card {
  background: #18181b;
  border: 1px solid #2a2a2e;
  border-radius: 12px;
  padding: 18px;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.guest-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.4);
  border-color: #3f3f46;
}

.guest-name  { font-size: 0.9375rem; font-weight: 600; color: #f4f4f5; margin-bottom: 5px; }
.guest-phone { font-size: 0.8rem;    color: #71717a;   margin-bottom: 10px; }
.guest-stats { font-size: 0.7875rem; color: #a1a1aa;   margin-bottom: 10px; line-height: 1.6; }
.guest-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.guest-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.guest-summary-item {
  padding: 10px 12px;
  border: 1px solid #2f3650;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
}
.guest-summary-item span {
  display: block;
  font-size: 0.75rem;
  color: #8993b8;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.guest-summary-item strong {
  font-size: 1rem;
  color: #f4f4f5;
}
.guest-last-booking {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.18);
}
.guest-last-booking-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8993b8;
}
.guest-last-booking-value {
  font-size: 0.86rem;
  color: #e5e7eb;
}
.guest-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.guest-action-btn {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(129, 140, 248, 0.26);
  background: rgba(99, 102, 241, 0.14);
  color: #dbe4ff;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
}
.guest-action-btn:hover {
  background: rgba(99, 102, 241, 0.22);
}
.guest-action-btn--secondary {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(255,255,255,0.05);
  color: #e5e7eb;
}

.guest-rating-bar {
  width: 100%;
  height: 4px;
  background: #27272a;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 5px;
}

.guest-rating-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s;
}

/* =========================================================
   OWNER STATS
   ========================================================= */

.owner-analytics-cards {
  display: flex;
  flex-direction: row;
  gap: 16px;
  flex-wrap: wrap;
  align-items: stretch;
}

.owner-analytics-card {
  flex: 1;
  min-width: 260px;
  max-width: 400px;
  overflow: hidden;
}

.owner-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 0;
  max-width: 700px;
  width: 100%;
}

.owner-stats-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.owner-stats-insights {
  grid-column: 1;
  grid-row: 1;
  overflow: hidden;
}

.owner-insights-content {
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.owner-insight-block {
  border: 1px solid #2a2a2e;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  padding: 10px 12px;
}

.owner-insight-title {
  font-size: 0.775rem;
  color: #a1a1aa;
  font-weight: 600;
  margin-bottom: 8px;
}

.owner-top-list,
.owner-days-list,
.owner-clients-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.owner-top-list li,
.owner-days-list li,
.owner-clients-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: #d4d4d8;
}

.owner-top-list li strong,
.owner-days-list li strong,
.owner-clients-list li strong {
  color: #f4f4f5;
  font-weight: 700;
}

.owner-clients-list .audit-booking-link {
  font-size: 0.8125rem;
  color: #c7d2fe;
}

.owner-clients-list .audit-booking-link:hover {
  color: #e0e7ff;
}

.owner-insight-peak {
  font-size: 1rem;
  font-weight: 700;
  color: #f4f4f5;
  letter-spacing: -0.01em;
}

.owner-insight-sub,
.owner-insight-empty {
  font-size: 0.775rem;
  color: #71717a;
}

.owner-stat-card {
  cursor: default;
}

.owner-stat-card.stat-card:hover {
  transform: none;
  border-color: #2a2a2e;
  box-shadow: none;
}

.owner-stat-card .stat-card-icon {
  margin-bottom: 10px;
}

/* Accordion Styles */
.owner-insights-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.owner-accordion-box {
  border: 1px solid #2a2a2e;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: all 0.2s ease;
}

.owner-accordion-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
}

.owner-accordion-header:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

.owner-accordion-icon {
  display: inline-block;
  width: 16px;
  text-align: center;
  color: #a1a1aa;
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.owner-accordion-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #a1a1aa;
  flex: 1;
}

.owner-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 12px 12px;
}

.owner-accordion-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.owner-time-toggle {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #2a2a2e;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  color: #a1a1aa;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.owner-time-toggle:hover {
  border-color: #3a3a3e;
  background: rgba(255, 255, 255, 0.05);
}

.owner-time-toggle.active {
  border-color: #c7d2fe;
  background: rgba(199, 210, 254, 0.1);
  color: #e0e7ff;
}

.owner-time-toggle-inline {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.owner-time-toggle-small {
  flex: 1;
  padding: 5px 8px;
  border: 1px solid #2a2a2e;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  color: #a1a1aa;
  font-size: 0.65rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.owner-time-toggle-small:hover {
  border-color: #3a3a3e;
  background: rgba(255, 255, 255, 0.05);
}

.owner-time-toggle-small.active {
  border-color: #c7d2fe;
  background: rgba(199, 210, 254, 0.1);
  color: #e0e7ff;
}

.owner-pcs-month-inline,
.owner-pcs-all-time-inline {
  transition: opacity 0.2s ease;
}

.owner-pcs-week-inline,
.owner-pcs-month-inline,
.owner-pcs-all-time-inline {
  transition: opacity 0.2s ease;
}

.owner-weekly-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.owner-weekly-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  border: 1px solid #2a2a2e;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
  transition: all 0.2s ease;
}

.owner-weekly-day.is-current {
  border-color: #c7d2fe;
  background: rgba(199, 210, 254, 0.15);
  box-shadow: inset 0 0 8px rgba(199, 210, 254, 0.2);
}

.owner-weekly-name {
  font-size: 0.7rem;
  color: #a1a1aa;
  font-weight: 500;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.owner-weekly-count {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f4f4f5;
}

.owner-weekly-prepay-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.owner-weekly-prepay-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid #2a2a2e;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.owner-weekly-prepay-row:hover {
  border-color: #3a3a3e;
  background: rgba(255, 255, 255, 0.05);
}

.owner-weekly-prepay-row.is-current {
  border-color: #c7d2fe;
  background: rgba(199, 210, 254, 0.15);
  box-shadow: inset 0 0 8px rgba(199, 210, 254, 0.2);
}

.owner-weekly-prepay-name-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.owner-weekly-prepay-name {
  font-size: 0.8rem;
  color: #a1a1aa;
  font-weight: 600;
  text-transform: uppercase;
}

.owner-weekly-prepay-date {
  font-size: 0.72rem;
  color: #71717a;
  font-weight: 500;
}

.owner-weekly-prepay-count {
  font-size: 1rem;
  color: #f4f4f5;
  font-weight: 700;
}

.owner-prepay-modal-content {
  min-width: 760px;
  max-width: 980px;
}

.owner-prepay-modal-summary {
  margin-top: -8px;
  margin-bottom: 14px;
  color: #a1a1aa;
}

.owner-prepay-modal-table-wrap {
  border: 1px solid #2a2a2e;
  border-radius: 10px;
  overflow: auto;
  max-height: 52vh;
}

.owner-prepay-modal-table {
  width: 100%;
  border-collapse: collapse;
}

.owner-prepay-modal-table th,
.owner-prepay-modal-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #2a2a2e;
  font-size: 0.8rem;
  white-space: nowrap;
}

.owner-prepay-modal-table thead th {
  position: sticky;
  top: 0;
  background: #18181b;
  color: #a1a1aa;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 1;
}

.owner-prepay-modal-empty {
  text-align: center;
  color: #71717a;
}

.tasks-create-body textarea {
  resize: vertical;
}

.tasks-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.tasks-urgent-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f4f4f5;
  font-size: 0.82rem;
}

.tasks-layout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.tasks-sidebar {
  width: 300px;
  flex-shrink: 0;
}

.tasks-create-card .tasks-create-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tasks-create-body .filter-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: none;
}

.tasks-create-body input,
.tasks-create-body textarea {
  max-width: 100%;
  width: 100%;
  flex: unset;
  background: #0f0f11;
  color: #f4f4f5;
  border: 1px solid #2a2a2e;
  border-radius: 7px;
  padding: 9px 12px;
  font-size: 0.8125rem;
  font-family: inherit;
  font-weight: 400;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.tasks-create-body input:focus,
.tasks-create-body textarea:focus {
  border-color: #52525b;
  box-shadow: 0 0 0 3px rgba(82,82,91,0.16);
}

.tasks-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tasks-filter-card {
  padding: 8px 12px;
  width: fit-content;
  align-self: flex-start;
}

.tasks-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tasks-filter-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #a1a1aa;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.tasks-filter-row select {
  flex: none;
  width: auto;
  max-width: none;
  padding: 6px 10px;
}

.tasks-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 760px) {
  .tasks-layout {
    flex-direction: column;
  }
  .tasks-sidebar {
    width: 100%;
  }
}

.task-card {
  border: 1px solid var(--c-border, #2a2a2e);
  border-radius: 9px;
  background: linear-gradient(180deg, var(--c-surface, #141b31) 0%, #121a2f 100%);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.task-card:hover {
  border-color: #3f3f46;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}

.task-card.is-done {
  opacity: 0.65;
}

.task-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.task-title {
  color: #f4f4f5;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}

.task-urgent-badge {
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
  background: rgba(239, 68, 68, 0.12);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.task-desc {
  color: #a1a1aa;
  font-size: 0.8rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.task-meta {
  color: #71717a;
  font-size: 0.75rem;
}

.task-actions {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.task-actions button {
  font-size: 0.8rem;
  padding: 5px 12px;
}

.task-actions .danger {
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.08);
}

.task-actions .danger:hover {
  border-color: rgba(239, 68, 68, 0.55);
  background: rgba(239, 68, 68, 0.15);
  color: #fecaca;
}

.owner-peak-info {
  padding: 12px;
  border-top: 1px solid #2a2a2e;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.01);
}

.owner-peak-label {
  font-size: 0.7rem;
  color: #a1a1aa;
  font-weight: 600;
  margin-bottom: 6px;
}

.owner-peak-time {
  font-size: 0.95rem;
  font-weight: 700;
  color: #e0e7ff;
  margin-bottom: 4px;
}

.owner-peak-count {
  font-size: 0.75rem;
  color: #71717a;
}

.owner-rating-section {
  margin-bottom: 14px;
}

.owner-rating-section:last-child {
  margin-bottom: 0;
}

.owner-rating-label {
  font-size: 0.75rem;
  color: #a1a1aa;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.owner-clients-collapsible {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.owner-clients-expand-btn {
  align-self: center;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2a2a2e;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #a1a1aa;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.owner-clients-expand-btn:hover {
  border-color: #3a3a3e;
  color: #e0e7ff;
  background: rgba(255, 255, 255, 0.06);
}

.owner-clients-expand-arrow {
  font-size: 0.72rem;
  line-height: 1;
  transform: translateY(-1px);
}

.owner-clients-expand-btn.is-expanded .owner-clients-expand-arrow {
  transform: translateY(-1px) rotate(180deg);
}

/* Responsive Accordion */
@media (max-width: 1400px) {
  .owner-analytics-cards {
    flex-wrap: wrap;
  }

  .owner-analytics-card {
    min-width: 280px;
    flex: 1 1 calc(33.333% - 16px);
  }
}

@media (max-width: 1024px) {
  .owner-analytics-cards {
    flex-wrap: wrap;
    flex-direction: row;
  }

  .owner-analytics-card {
    min-width: 300px;
    flex: 1 1 calc(50% - 8px);
  }

  .owner-stats-layout {
    flex-direction: column;
  }

  .owner-stats-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .owner-accordion-box {
    font-size: 0.9rem;
  }

  .owner-weekly-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
  }

  .owner-weekly-day {
    padding: 8px 4px;
  }

  .owner-weekly-name {
    font-size: 0.65rem;
  }

  .owner-weekly-count {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .owner-analytics-cards {
    flex-direction: column;
  }

  .owner-analytics-card {
    min-width: 100%;
    flex: 1 1 100%;
    max-width: 100%;
  }

  .owner-stats-grid {
    grid-template-columns: 1fr;
  }

  .owner-weekly-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
  }

  .owner-weekly-day {
    padding: 6px 3px;
  }

  .owner-weekly-name {
    font-size: 0.6rem;
  }

  .owner-weekly-count {
    font-size: 0.9rem;
  }

  .owner-top-list li,
  .owner-days-list li,
  .owner-clients-list li {
    font-size: 0.75rem;
  }

  .owner-time-toggle-inline {
    flex-direction: row;
    gap: 6px;
  }

  .owner-time-toggle-small {
    width: auto;
    flex: 1;
  }
}

/* =========================================================
   PLAYSTATION
   ========================================================= */

.ps-console-table { width: 100%; border-collapse: collapse; }

.ps-console-table thead th {
  background: transparent;
  color: #52525b;
  padding: 12px 16px;
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-bottom: 1px solid #2a2a2e;
  font-size: 0.68rem;
}

.ps-console-table tbody td {
  padding: 13px 16px;
  text-align: center;
  border-bottom: 1px solid #1e1e21;
  color: #d4d4d8;
  font-size: 0.8125rem;
}

.ps-console-table tbody tr:last-child td { border-bottom: none; }
.ps-console-table tbody tr:hover td  { background: rgba(255,255,255,0.025); }

.ps-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 20px;
  font-size: 0.775rem;
  font-weight: 600;
}

.ps-idle    { background: rgba(113,113,122,0.15); color: #71717a; }
.ps-active  { background: rgba(74,222,128,0.12);  color: #4ade80; }
.ps-warning { background: rgba(248,113,113,0.12); color: #f87171; animation: blink 0.7s infinite; }
.ps-booked  {
  background: rgba(96,165,250,0.12);
  color: #60a5fa;
  position: relative;
  cursor: pointer;
}

.ps-booked:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  min-width: 150px;
  background: #111113;
  color: #a1a1aa;
  text-align: left;
  border: 1px solid #2a2a2e;
  border-radius: 8px;
  padding: 8px 12px;
  z-index: 10000;
  font-size: 0.775rem;
  white-space: pre-line;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  pointer-events: none;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 6px;
  line-height: 1.5;
  font-weight: 400;
}

@keyframes blink { 50% { opacity: 0.5; } }

.ps-btn-group { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }

.ps-btn {
  padding: 5px 11px;
  border: 1px solid #2a2a2e;
  background: #1c1c1f;
  color: #a1a1aa;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: none;
  letter-spacing: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.ps-btn:hover {
  background: #27272a;
  border-color: #3f3f46;
  color: #f4f4f5;
  transform: none;
  box-shadow: none;
}

.ps-btn-danger { background: rgba(248,113,113,0.1); border-color: rgba(248,113,113,0.28); color: #f87171; }
.ps-btn-danger:hover { background: rgba(248,113,113,0.18); border-color: rgba(248,113,113,0.48); }

.ps-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}

.ps-package-btn {
  padding: 14px;
  background: #111113;
  border: 1px solid #2a2a2e;
  color: #d4d4d8;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.825rem;
  text-align: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  text-transform: none;
  letter-spacing: 0;
}

.ps-package-btn:hover {
  background: #27272a;
  border-color: #3f3f46;
  color: #f4f4f5;
  transform: none;
  box-shadow: none;
}

.ps-time-display {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f4f4f5;
  text-align: center;
  padding: 14px;
  background: #111113;
  border-radius: 8px;
  border: 1px solid #2a2a2e;
  margin: 14px 0;
  letter-spacing: -0.02em;
}

/* =========================================================
   JS COMPATIBILITY FIXES
   JS sets adminBtn/statsBtn/logsBtn to display:'inline-block'
   Attribute-selector override restores flex for correct icon+text layout
   ========================================================= */

#adminBtn[style*="inline-block"],
#statsBtn[style*="inline-block"],
#logsBtn[style*="inline-block"] {
  display: flex !important;
}

/* =========================================================
   DONE PAGE / INLINE SEARCH INPUTS
   ========================================================= */

#donePage input[type="text"],
#donePage input[type="tel"],
#donePage select,
#guestsPage input[type="text"] {
  padding: 9px 12px;
  border-radius: 7px;
  border: 1px solid #2a2a2e;
  background: #0f0f11;
  color: #f4f4f5;
  font-family: inherit;
  font-size: 0.8125rem;
  outline: none;
  transition: border-color 0.15s;
}

#donePage input:focus,
#donePage select:focus,
#guestsPage input:focus {
  border-color: #52525b;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
  .main-wrapper { margin-left: 72px; }
  .content-area { padding: 20px; }
  .stats-grid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 10px; }
  .top-header { padding: 0 18px; }
  .dashboard-bottom { grid-template-columns: 1fr; }
  .admins-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .admins-invite-panel {
    position: static;
    width: 100%;
    margin-left: 0;
    max-width: 100%;
  }
  .admins-section {
    padding-right: 0;
  }
  .section-card-compact,
  .section-card-compact--narrow,
  .section-card-compact--logs {
    width: 100%;
  }
  .owner-stats-layout {
    grid-template-columns: 1fr;
  }
  .owner-stats-grid,
  .owner-stats-insights {
    grid-column: auto;
  }
  .owner-stats-grid {
    grid-template-columns: 1fr;
  }
  .filter-field,
  .filter-field--md,
  .filter-field--lg,
  .filter-field--date,
  .filter-field--date-range {
    flex-basis: 200px;
  }
  .logs-filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .content-area { padding: 12px; }
  .controls-row { padding: 10px 12px; }
  .modal-content { min-width: auto; width: 94vw; padding: 22px 18px; }
  .panel .field { flex-direction: column; align-items: flex-start; }
  input, select { max-width: 100%; }
  .top-header { height: 48px; }
  .main-wrapper { margin-left: 72px; }
  .filter-field,
  .filter-field--md,
  .filter-field--lg,
  .filter-field--date,
  .filter-field--date-range,
  .compact-readonly-input {
    width: 100%;
    max-width: 100%;
    flex-basis: auto;
  }
  .logs-filters-grid,
  .audit-date-range {
    grid-template-columns: 1fr;
  }
  .audit-filter-actions {
    flex-wrap: wrap;
  }
}

/* =========================================================
   FIGMA-LIKE CRYPTO DARK OVERRIDE
   (RecehTok-style: deep navy, cold surfaces, soft purple accent)
   ========================================================= */

:root {
  --c-bg: #0a0f1d;
  --c-bg-soft: #0f1426;
  --c-surface: #141b31;
  --c-surface-2: #18203a;
  --c-border: #27304d;
  --c-border-soft: #222a43;
  --c-text: #e8ecff;
  --c-text-soft: #a4acc9;
  --c-text-muted: #7982a3;
  --c-accent: #7c6cff;
  --c-accent-soft: rgba(124, 108, 255, 0.22);
  --c-green: #3cd7a4;
}

body {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(124,108,255,0.12), transparent 55%),
    radial-gradient(900px 500px at 110% -20%, rgba(60,215,164,0.06), transparent 55%),
    var(--c-bg);
  color: var(--c-text);
}

::-webkit-scrollbar-track { background: #0c1222; }
::-webkit-scrollbar-thumb { background: #26304e; }
::-webkit-scrollbar-thumb:hover { background: #334063; }

.main-wrapper,
.content-area {
  background: transparent;
}

.top-header {
  background: rgba(10, 15, 29, 0.82);
  border-bottom: 1px solid var(--c-border-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.sidebar {
  background: linear-gradient(180deg, #0b1020 0%, #090e1b 100%);
  border-right: 1px solid #1f2740;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.28);
}

.sidebar-backdrop {
  background: rgba(5, 10, 24, 0.6);
}

.sidebar-header,
.sidebar-footer {
  border-color: #1c2440;
}

.logo,
.page-title,
.auth-box h2,
.modal-content h3,
.stat-card-value,
.guest-name,
.owner-stat-card strong,
.current-user,
.activity-text strong {
  color: var(--c-text);
}

.nav-section-label,
.dashboard-sub,
.section-card-title,
.activity-time,
.guest-phone,
.guest-stats,
.counter,
.user-time,
th,
.stat-card-label,
.activity-text,
td,
.ps-console-table tbody td,
.owner-stat-card span {
  color: var(--c-text-soft);
}

.nav-item {
  color: #98a3c5;
}

.nav-item:hover {
  color: #eff2ff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-item.active {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(124,108,255,0.22), rgba(124,108,255,0.08));
  border: 1px solid rgba(124,108,255,0.28);
  box-shadow: inset 0 0 0 1px rgba(124,108,255,0.12);
}

.auth-box,
.modal-content,
.controls-row,
.panel,
.main-content,
.section-card,
.stat-card,
.guest-card,
.owner-stat-card {
  background: linear-gradient(180deg, var(--c-surface) 0%, #121a2f 100%);
  border: 1px solid var(--c-border);
  box-shadow: 0 16px 38px rgba(4, 8, 18, 0.52);
}

.section-card-header,
th,
td,
.activity-item,
.ps-console-table thead th,
.ps-console-table tbody td {
  border-color: var(--c-border-soft);
}

.activity-item:hover,
tr:hover td,
.ps-console-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.stat-card,
.guest-card {
  border-radius: 14px;
}

.stat-card-icon {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--c-border-soft);
}

button,
.admin-btn,
.auth-btn,
.ps-btn,
.ps-package-btn {
  background: linear-gradient(180deg, #1a2440 0%, #151d34 100%);
  border: 1px solid #2d385a;
  color: var(--c-text);
}

button:hover,
.admin-btn:hover,
.auth-btn:hover,
.ps-btn:hover,
.ps-package-btn:hover {
  background: linear-gradient(180deg, #202c4c 0%, #1a2340 100%);
  border-color: #3a4976;
  box-shadow: 0 8px 20px rgba(7, 12, 27, 0.42);
}

.btn-logout {
  background: transparent;
  border-color: #2f3a5f;
  color: #b7bfd9;
}

.btn-logout:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #43548a;
  color: #f3f5ff;
}

.auth-input,
input,
select,
#donePage input[type="text"],
#donePage input[type="tel"],
#donePage select,
#guestsPage input[type="text"] {
  background: #0f162b;
  color: var(--c-text);
  border-color: #2a3352;
}

input:focus,
select:focus,
.auth-input:focus,
#donePage input:focus,
#donePage select:focus,
#guestsPage input:focus {
  border-color: rgba(124, 108, 255, 0.62);
  box-shadow: 0 0 0 3px rgba(124, 108, 255, 0.22);
}

.phone-link { color: var(--c-green); }

.activity-dot.green { background: var(--c-green); box-shadow: 0 0 8px rgba(60,215,164,0.5); }
.activity-dot.gray  { background: #5f6786; }

.platform-btn.active {
  background: linear-gradient(180deg, #2a355c 0%, #1f294a 100%);
  border-color: #445587;
}

.dropdown-menu {
  background: #141b30;
  border-color: #2b3555;
}

.dropdown-menu button { color: #c8d0ea; }
.dropdown-menu button:hover { background: rgba(255, 255, 255, 0.04); color: #ffffff; }

.ps-time-display {
  background: #111a30;
  border-color: #2a3554;
  color: var(--c-text);
}

.subscription-notice {
  margin-top: 8px;
  font-size: 0.86rem;
  line-height: 1.35;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.45);
}

.subscription-notice.expiring {
  border-color: rgba(245, 158, 11, 0.55);
  color: #fbbf24;
  background: rgba(120, 53, 15, 0.2);
}

.subscription-notice.expired {
  border-color: rgba(239, 68, 68, 0.65);
  color: #fca5a5;
  background: rgba(127, 29, 29, 0.28);
}

.subscription-block-modal {
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.72);
}

.subscription-block-modal .modal-content {
  border: 1px solid rgba(239, 68, 68, 0.55);
}

/* ===================================================
   AUDIT LOGS PAGE
   =============================================== */

.filters-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: flex-end;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 0 1 220px;
}

.filter-field--md {
  flex-basis: 220px;
}

.filter-field--lg {
  flex-basis: 320px;
}

.filter-field--date {
  flex-basis: 230px;
}

.filter-field--date-range {
  flex: 0 1 240px;
}

.filter-field input,
.filter-field select,
.filter-actions input,
.filter-actions select {
  width: 100%;
  max-width: none;
  min-width: 0;
}

.filter-actions {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.audit-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-left: auto;
}

.logs-filters-grid {
  display: grid;
  grid-template-columns: 180px 180px 150px 180px auto;
  gap: 12px;
  align-items: end;
}

.audit-date-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.audit-date-range input {
  width: 100%;
  max-width: none;
}

.audit-filter-actions {
  justify-content: flex-start;
  flex-wrap: nowrap;
}

.section-card-compact--logs {
  overflow: visible;
}

.compact-readonly-input {
  max-width: 520px;
}

.audit-filter-label {
  display: block;
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  font-weight: 500;
}
.audit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.audit-table thead th {
  padding: 12px 14px;
  text-align: left;
  font-size: 0.75rem;
  color: var(--c-text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  border-bottom: 2px solid var(--c-border);
  white-space: nowrap;
  background: rgba(255,255,255,0.04);
}
.audit-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--c-border-soft);
  vertical-align: middle;
  text-align: left;
}
.audit-table tbody tr:last-child td { border-bottom: none; }
.audit-table tbody tr:hover td { background: rgba(255,255,255,0.02); }
.audit-cell-time {
  white-space: nowrap;
  color: var(--c-text-muted);
  font-size: 0.8rem;
  min-width: 130px;
}
.audit-cell-who {
  font-weight: 600;
  color: var(--c-text);
  min-width: 90px;
}
.audit-cell-details {
  color: var(--c-text-soft);
  max-width: 260px;
}
.audit-booking-link {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  color: var(--c-accent);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}
.audit-booking-link:hover {
  opacity: 0.85;
}
.audit-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.audit-badge--create  { background: rgba(60,215,164,0.15);  color: #3cd7a4; }
.audit-badge--success { background: rgba(60,215,164,0.12);  color: #3cd7a4; }
.audit-badge--update  { background: rgba(124,108,255,0.18); color: #a89bff; }
.audit-badge--delete  { background: rgba(248,113,113,0.15); color: #f87171; }
.audit-badge--danger  { background: rgba(248,113,113,0.15); color: #f87171; }
.audit-badge--warning { background: rgba(251,191,36,0.15);  color: #fbbf24; }
.audit-badge--neutral { background: rgba(164,172,201,0.12); color: var(--c-text-muted); }
.audit-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--c-text-muted);
  font-size: 0.9rem;
}

@media (max-width: 1300px) {
  .admins-invite-panel {
    position: static;
    width: min(100%, 520px);
  }
  .admins-section {
    padding-right: 0;
  }
  .admins-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
  }
}