:root {
  --bg: #f6f8fb;
  --panel: #ffffff;
  --ink: #18202f;
  --muted: #6b7280;
  --line: #e5e9f0;
  --brand: #1f6feb;
  --brand-dark: #144ea6;
  --accent: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --sidebar: #101828;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a { text-decoration: none; }
.btn { border-radius: 7px; font-weight: 650; }
.form-control, .form-select { border-radius: 7px; border-color: #d8dee9; }
.form-control:focus, .form-select:focus { box-shadow: 0 0 0 .2rem rgba(31,111,235,.12); }

.login-bg {
  min-height: 100vh;
  background:
    linear-gradient(145deg, rgba(255,255,255,.92), rgba(246,248,251,.86)),
    url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1600&q=80") center/cover fixed;
}
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card {
  width: min(440px, 100%);
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 24px 80px rgba(16,24,40,.18);
  border-radius: 8px;
  padding: 30px;
}
.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #0ea5e9);
  font-weight: 800;
  margin-bottom: 18px;
}
.login-card h1 { font-size: 1.65rem; font-weight: 800; margin: 0 0 6px; }
.password-toggle { position: absolute; right: 10px; top: 34px; border: 0; background: transparent; color: var(--muted); }
.cred-box { border: 1px solid var(--line); background: #f8fafc; border-radius: 8px; padding: 14px; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 272px;
  flex: 0 0 272px;
  background: var(--sidebar);
  color: #d0d5dd;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 14px;
}
.sidebar .brand { display: flex; gap: 12px; align-items: center; color: #fff; padding: 4px 8px 18px; font-weight: 800; }
.sidebar .brand .brand-mark { width: 38px; height: 38px; margin: 0; border-radius: 7px; }
.nav-link {
  color: #cbd5e1;
  border-radius: 7px;
  padding: 10px 12px;
  margin: 2px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,.1); color: #fff; }
.content { flex: 1; min-width: 0; }
.topbar {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 14px 22px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.page { padding: 22px; }
.page-title { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 18px; }
.page-title h1 { font-size: 1.45rem; margin: 0; font-weight: 800; }

.metric-card, .panel, .empty-state {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16,24,40,.05);
}
.metric-card { padding: 18px; min-height: 112px; }
.metric-card .icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: var(--brand);
}
.metric-card .value { font-size: 1.6rem; font-weight: 850; margin: 12px 0 0; }
.metric-card .label { color: var(--muted); font-weight: 650; font-size: .92rem; }
.logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 750;
}
.metric-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.metric-card-link {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.metric-link:hover .metric-card-link {
  transform: translateY(-2px);
  border-color: rgba(37,99,235,.32);
  box-shadow: 0 14px 32px rgba(37,99,235,.14);
}
.panel { padding: 18px; }
.table { vertical-align: middle; }
.table-hover tbody tr:hover { background: #f8fbff; }
.badge-soft { background: #eef4ff; color: #175cd3; border: 1px solid #d6e4ff; }
.status-dot { width: 9px; height: 9px; border-radius: 99px; display: inline-block; margin-right: 6px; background: var(--accent); }
.status-suspended, .status-expired, .status-failed { background: var(--danger); }
.status-trial, .status-pending, .status-initiated { background: var(--warning); }
.status-ready, .status-success, .status-active { background: var(--accent); }
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  text-transform: capitalize;
}
.status-pill-active { background: #dcfce7; color: #166534; }
.status-pill-inactive { background: #fff7ed; color: #9a3412; }
.status-pill-blocked { background: #fee2e2; color: #991b1b; }
.customer-name-cell { display: flex; align-items: center; gap: 10px; min-width: 210px; }
.avatar-dot {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #e0f2fe;
  color: #075985;
  font-weight: 850;
  flex: 0 0 36px;
}
.action-group { display: inline-flex; gap: 7px; align-items: center; }
.action-group form { margin: 0; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 12px;
}
.secure-gallery { grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); }
.photo-tile {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #111827;
  aspect-ratio: 1 / 1;
  border: 2px solid transparent;
  box-shadow: 0 10px 22px rgba(15,23,42,.12);
}
.photo-tile.selected { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(16,185,129,.18), 0 10px 22px rgba(15,23,42,.12); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.protected-photo {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.photo-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: #111827;
  cursor: zoom-in;
  overflow: hidden;
}
.photo-media-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.photo-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,0) 38%, rgba(0,0,0,.42));
}
.photo-tile .watermark {
  position: absolute;
  inset: auto 8px 8px auto;
  color: rgba(255,255,255,.82);
  text-shadow: 0 1px 3px rgba(0,0,0,.8);
  font-size: .75rem;
  font-weight: 700;
  pointer-events: none;
}
.watermark-center {
  inset: 50% auto auto 50% !important;
  transform: translate(-50%, -50%) rotate(-18deg);
  text-align: center;
  font-size: .9rem !important;
  color: rgba(255,255,255,.42) !important;
  text-transform: uppercase;
  line-height: 1.45;
  min-width: 190px;
}
.photo-number, .state-badge {
  position: absolute;
  z-index: 2;
  top: 8px;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(15,23,42,.72);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
}
.photo-number { left: 8px; }
.state-badge { right: 8px; text-transform: capitalize; }
.photo-tile[data-state="selected"] .state-badge { background: rgba(22,163,74,.9); }
.photo-tile[data-state="favourite"] .state-badge { background: rgba(245,158,11,.92); }
.photo-tile[data-state="rejected"] .state-badge { background: rgba(220,38,38,.9); }
.photo-tile[data-state="maybe"] .state-badge { background: rgba(37,99,235,.9); }
.photo-tile[data-state="unselected"] .state-badge { background: rgba(71,85,105,.84); }
.gallery-toolbar { position: sticky; top: 70px; z-index: 8; }
.filter-scroll { display: flex; gap: 6px; overflow-x: auto; max-width: 100%; padding-bottom: 2px; }
.filter-scroll .btn { white-space: nowrap; }
.selection-progress-cell {
  min-width: 160px;
}
.selection-progress-cell strong,
.selection-progress-cell span {
  display: block;
}
.selection-split {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 190px;
}
.selection-split span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: #344054;
  font-size: .78rem;
  font-weight: 750;
  white-space: nowrap;
}
.gallery-title h1 { line-height: 1.2; }
.preview-photo {
  width: min(94vw, 1100px);
  height: min(86vh, 760px);
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: #05070b;
}
.preview-photo::after {
  content: attr(data-watermark);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.32);
  font-weight: 900;
  font-size: 3rem;
  transform: rotate(-18deg);
  text-align: center;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.preview-error {
  color: #fff;
  background: rgba(15,23,42,.72);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  padding: 18px 22px;
  font-weight: 800;
}
.photo-actions {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: flex;
  gap: 6px;
  z-index: 3;
}
.photo-actions .btn { flex: 1; padding: 6px 4px; }
.photo-action-btn {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.58);
  background: rgba(255,255,255,.9);
  color: #111827;
  border-radius: 7px;
  display: inline-grid;
  place-items: center;
  flex: 1;
  transition: transform .12s ease, background .12s ease;
}
.photo-action-btn:hover { transform: translateY(-1px); background: #fff; }
.photo-action-btn.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.selection-bar {
  position: sticky;
  bottom: 0;
  z-index: 12;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 12px;
}
.dropzone {
  border: 1.5px dashed #9aa8bd;
  border-radius: 8px;
  background: #f8fafc;
  padding: 28px;
  text-align: center;
}
.empty-state { padding: 34px; text-align: center; color: var(--muted); }
.mobile-nav-btn { display: none; }

@media (max-width: 991px) {
  .app-shell { display: block; }
  .sidebar {
    position: fixed;
    transform: translateX(-100%);
    transition: transform .18s ease;
    z-index: 30;
  }
  .sidebar.show { transform: translateX(0); }
  .sidebar-backdrop.show {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.45);
    z-index: 20;
  }
  .mobile-nav-btn { display: inline-flex; }
  .page { padding: 16px; }
  .topbar { padding: 12px 16px; }
  .page-title { align-items: flex-start; flex-direction: column; }
}

/* Premium UI refresh */
:root {
  --bg: #f3f5f8;
  --panel: #ffffff;
  --ink: #151923;
  --muted: #667085;
  --line: #dde3ec;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --accent: #0f9f6e;
  --danger: #dc2626;
  --warning: #d97706;
  --sidebar: #17181d;
  --sidebar-soft: #202229;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.05);
  --shadow-md: 0 12px 30px rgba(16,24,40,.08);
  --shadow-lg: 0 22px 60px rgba(16,24,40,.16);
}

body {
  background:
    linear-gradient(180deg, #f8fafc 0, #f3f5f8 280px, #eef2f6 100%);
  min-height: 100vh;
  font-size: 15px;
}
body.sidebar-open {
  overflow: hidden;
}

.btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 7px;
  box-shadow: none;
}
.btn-sm { min-height: 32px; }
.btn-primary {
  border-color: var(--brand);
  background: linear-gradient(180deg, #3478f6, var(--brand));
  box-shadow: 0 8px 18px rgba(37,99,235,.2);
}
.btn-primary:hover {
  border-color: var(--brand-dark);
  background: linear-gradient(180deg, #2563eb, #1e40af);
}
.btn-outline-primary {
  border-color: #b7c8f7;
  color: #1d4ed8;
  background: #fff;
}
.btn-outline-primary:hover,
.btn-outline-primary.active {
  border-color: var(--brand);
  background: #eff6ff;
  color: #1d4ed8;
}
.btn-outline-secondary {
  border-color: #d5dce8;
  color: #475467;
  background: #fff;
}
.btn-outline-danger {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fff;
}
.icon-btn {
  width: 36px;
  padding-inline: 0;
}

.form-label {
  margin-bottom: 7px;
  color: #344054;
  font-size: .86rem;
  font-weight: 750;
}
.form-control,
.form-select {
  min-height: 42px;
  border-color: #d7deea;
  background-color: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
textarea.form-control { min-height: 104px; }
.form-control::placeholder { color: #98a2b3; }
.form-control:focus,
.form-select:focus {
  border-color: #84a9f8;
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}
.form-check-input:checked {
  background-color: var(--brand);
  border-color: var(--brand);
}

.login-bg {
  background:
    linear-gradient(135deg, rgba(250,252,255,.96), rgba(241,245,249,.9)),
    url("https://images.unsplash.com/photo-1520390138845-fd2d229dd553?auto=format&fit=crop&w=1800&q=80") center/cover fixed;
}
.login-shell {
  align-items: center;
  justify-items: center;
}
.login-card {
  border: 1px solid rgba(255,255,255,.72);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg);
  padding: 34px;
}
.login-card h1 {
  color: #101828;
  font-size: 1.75rem;
}
.login-card .brand-mark {
  box-shadow: 0 16px 30px rgba(37,99,235,.24);
}
.password-toggle {
  top: 38px;
  width: 34px;
  height: 34px;
  border-radius: 7px;
}
.password-toggle:hover { background: #f2f4f7; }

.app-shell {
  background: transparent;
}
.sidebar {
  background:
    linear-gradient(180deg, #1f2026 0, #17181d 58%, #141519 100%);
  border-right: 1px solid rgba(255,255,255,.08);
  padding: 16px 12px;
  box-shadow: 12px 0 34px rgba(15,23,42,.08);
  display: flex;
  flex-direction: column;
}
.sidebar .brand {
  min-height: 62px;
  padding: 8px 8px 16px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: relative;
}
.brand-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}
.brand-copy strong {
  color: #fff;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-copy small {
  color: #a7b0be;
  font-size: .74rem;
  font-weight: 650;
}
.sidebar .brand .brand-mark {
  background: linear-gradient(135deg, #2f80ed, #12b886);
  box-shadow: 0 12px 26px rgba(18,184,134,.16);
}
.sidebar-close {
  display: none;
  width: 34px;
  height: 34px;
  margin-left: auto;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 7px;
  background: rgba(255,255,255,.06);
  color: #d0d5dd;
}
.sidebar-nav {
  display: grid;
  align-content: start;
  gap: 12px;
  padding-top: 8px;
  overflow-y: auto;
  min-height: 0;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.22) transparent;
}
.sidebar-nav::-webkit-scrollbar {
  width: 6px;
}
.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.18);
  border-radius: 999px;
}
.nav-group {
  display: grid;
  gap: 4px;
}
.nav-section-label {
  padding: 4px 10px 2px;
  color: #7d8ca3;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav-link {
  min-height: 43px;
  color: #c9d0dc;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 7px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: background .14s ease, border-color .14s ease, color .14s ease, transform .14s ease;
}
.nav-link i {
  width: 20px;
  color: #8fa0b8;
  text-align: center;
  transition: color .14s ease, transform .14s ease;
}
.nav-link:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.08);
  transform: translateX(2px);
}
.nav-link.active {
  background:
    linear-gradient(90deg, rgba(18,184,134,.22), rgba(255,255,255,.1)),
    linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.08));
  border-color: rgba(110,231,183,.22);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
}
.nav-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 99px 99px 0;
  background: #6ee7b7;
}
.nav-link.active::after {
  content: "";
  position: absolute;
  right: 12px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #6ee7b7;
  box-shadow: 0 0 0 4px rgba(110,231,183,.12);
}
.nav-link.active i {
  color: #6ee7b7;
  transform: scale(1.05);
}
.sidebar-mini-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  background: rgba(255,255,255,.055);
}
.sidebar-mini-card strong,
.sidebar-mini-card small {
  display: block;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-mini-card strong {
  color: #fff;
  font-size: .88rem;
  line-height: 1.2;
}
.sidebar-mini-card small {
  margin-top: 1px;
  color: #98a2b3;
  font-size: .73rem;
  font-weight: 750;
}
.sidebar-credit .small-avatar {
  background: rgba(220,53,69,.14);
  color: #fb7185;
}
.sidebar-credit strong {
  max-width: 180px;
  white-space: normal;
  line-height: 1.3;
}
.sidebar-credit .footer-heart {
  margin: 0 1px;
}

.content {
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,0) 220px);
}
.topbar {
  min-height: 68px;
  background: rgba(255,255,255,.86);
  border-bottom: 1px solid rgba(214,222,233,.86);
  box-shadow: 0 8px 24px rgba(16,24,40,.04);
}
.topbar-title {
  display: grid;
  line-height: 1.15;
}
.topbar-title strong {
  color: #101828;
  font-size: 1rem;
}
.topbar-title span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 650;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-chip {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 10px 4px 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #344054;
  font-weight: 750;
  box-shadow: var(--shadow-sm);
}
.small-avatar {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  border-radius: 7px;
  background: #e8f7f0;
  color: #08704f;
  font-size: .78rem;
}
.plan-chip {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 850;
  box-shadow: var(--shadow-sm);
}
.plan-chip small {
  color: #475467;
  font-size: .74rem;
  font-weight: 750;
}
.plan-chip i {
  color: #d97706;
}
.plan-chip-success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}
.plan-chip-warning {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}
.plan-chip-danger {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}
.subscription-alert {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-md);
}
.subscription-alert > div:first-child {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
}
.subscription-alert strong,
.subscription-alert span {
  display: block;
}
.subscription-alert strong {
  color: #101828;
  font-size: .98rem;
}
.subscription-alert span {
  margin-top: 2px;
  color: #667085;
  font-weight: 650;
}
.subscription-alert-warning {
  border-color: #fed7aa;
  background: #fffaf3;
}
.subscription-alert-warning > div:first-child {
  background: #ffedd5;
  color: #9a3412;
}
.subscription-alert-danger {
  border-color: #fecaca;
  background: #fff7f7;
}
.subscription-alert-danger > div:first-child {
  background: #fee2e2;
  color: #991b1b;
}

.page {
  width: min(100%, 1680px);
  margin: 0 auto;
  padding: 26px;
}
.page-title {
  margin-bottom: 20px;
}
.page-title h1 {
  color: #101828;
  font-size: 1.55rem;
  line-height: 1.18;
}
.alert {
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}
.app-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px 14px;
}
.app-alert i {
  flex: 0 0 auto;
}
.app-alert span {
  flex: 1;
  font-weight: 700;
}

.dashboard-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid rgba(214,222,233,.92);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,250,252,.94)),
    radial-gradient(circle at 92% 18%, rgba(18,184,134,.14), transparent 34%);
  box-shadow: var(--shadow-md);
}
.dashboard-hero h1 {
  margin: 2px 0 4px;
  color: #101828;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  font-weight: 900;
}
.dashboard-hero p {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}
.hero-eyebrow {
  color: #1d4ed8;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.quick-action {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 11px;
  align-items: center;
  padding: 14px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #fff;
  color: #182230;
  box-shadow: var(--shadow-sm);
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.quick-action:hover {
  transform: translateY(-1px);
  border-color: #bfd0ea;
  color: #101828;
  box-shadow: var(--shadow-md);
}
.quick-action span {
  grid-row: 1 / 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
}
.quick-action strong {
  font-size: .94rem;
  line-height: 1.15;
}
.quick-action small {
  color: var(--muted);
  font-weight: 650;
}
.quick-action-green span { background: linear-gradient(135deg, #12b886, #0f9f6e); }
.quick-action-blue span { background: linear-gradient(135deg, #3478f6, #2563eb); }
.quick-action-amber span { background: linear-gradient(135deg, #f59e0b, #d97706); }
.quick-action-red span { background: linear-gradient(135deg, #ef4444, #dc2626); }
.dashboard-status-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: -4px 0 16px;
}
.dashboard-status-strip a,
.dashboard-status-strip div {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  color: #344054;
  text-decoration: none;
  font-size: .84rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(16,24,40,.04);
}
.dashboard-status-strip a:hover {
  border-color: rgba(37,99,235,.32);
  color: #175cd3;
}
.dashboard-status-strip i {
  color: #2563eb;
}
.dashboard-insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr);
  gap: 16px;
}
.dashboard-worklist {
  display: grid;
  gap: 10px;
}
.dashboard-workitem {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}
.workitem-main strong,
.workitem-main span,
.workitem-side small {
  display: block;
}
.workitem-main strong {
  color: #101828;
  font-weight: 850;
}
.workitem-main span,
.workitem-side small {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 650;
}
.workitem-side {
  display: grid;
  justify-items: end;
  gap: 6px;
}
.studio-health-panel {
  align-self: start;
}
.health-list {
  display: grid;
  gap: 10px;
}
.health-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.health-list div:last-child {
  border-bottom: 0;
}
.health-list span {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 700;
}
.health-list strong {
  color: #101828;
  text-align: right;
  font-weight: 850;
}
.plan-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.plan-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.plan-summary-strip div,
.plan-edit-banner {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow-md);
}
.plan-summary-strip div {
  padding: 14px;
}
.plan-summary-strip span,
.plan-edit-banner span {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}
.plan-summary-strip strong {
  display: block;
  margin-top: 4px;
  color: #101828;
  font-size: 1.35rem;
  font-weight: 900;
}
.plan-toolbar {
  padding: 14px;
}
.plan-edit-banner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-color: rgba(37,99,235,.24);
  background: linear-gradient(135deg, #f8fbff, #ffffff);
}
.plan-edit-banner strong,
.plan-edit-banner small {
  display: block;
}
.plan-edit-banner strong {
  color: #101828;
  font-size: 1.08rem;
  font-weight: 900;
}
.plan-edit-banner small {
  color: var(--muted);
  font-weight: 700;
}
.plan-management-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow-md);
}
.plan-management-card.is-editing {
  border-color: rgba(37,99,235,.45);
  box-shadow: 0 16px 34px rgba(37,99,235,.14);
}
.plan-card-top,
.plan-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.plan-code-chip {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: #475467;
  font-size: .72rem;
  font-weight: 850;
}
.plan-management-card h3 {
  margin: 8px 0 4px;
  color: #101828;
  font-size: 1.15rem;
  font-weight: 900;
}
.plan-management-card p {
  min-height: 40px;
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
}
.plan-price {
  color: #101828;
  font-size: 1.55rem;
  font-weight: 900;
}
.plan-price small {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 750;
}
.plan-mini-limits,
.plan-card-actions,
.plan-feature-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.plan-feature-badges span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: .73rem;
  font-weight: 800;
}
.plan-feature-badges .enabled {
  color: #067647;
  background: #ecfdf3;
  border-color: #abefc6;
}
.plan-feature-badges .disabled {
  color: #667085;
  background: #f8fafc;
}
.plan-card-foot small {
  color: var(--muted);
  font-weight: 750;
}
.plan-mini-limits span {
  padding: 5px 8px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
  color: #344054;
  font-size: .76rem;
  font-weight: 750;
}
.plan-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}
.feature-tab-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}
.feature-tab-summary strong {
  color: #101828;
}
.feature-tab-summary span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}
.feature-toggle {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.feature-toggle input {
  margin-top: 4px;
}
.feature-toggle strong,
.feature-toggle small {
  display: block;
}
.feature-toggle strong {
  color: #101828;
  font-size: .9rem;
}
.feature-toggle small {
  color: var(--muted);
  font-size: .72rem;
}

.metric-card,
.panel,
.empty-state {
  border: 1px solid rgba(214,222,233,.9);
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow-md);
}
.panel {
  padding: 20px;
}
.panel h5 {
  margin-bottom: 16px;
  color: #182230;
  font-size: 1rem;
  font-weight: 850;
}
.metric-card {
  min-height: 126px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.metric-card::after {
  content: "";
  position: absolute;
  inset: auto 14px 14px auto;
  width: 52px;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, #12b886, #f59e0b);
  opacity: .55;
}
.metric-card .icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #2563eb, #0f9f6e);
  box-shadow: 0 12px 22px rgba(37,99,235,.18);
}
.metric-card .value {
  color: #101828;
  font-size: 1.72rem;
}
.metric-card .label {
  color: #667085;
}

.table-responsive {
  border-radius: 8px;
}
.table {
  margin-bottom: 0;
  color: #344054;
}
.table thead th {
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
  color: #667085;
  font-size: .76rem;
  font-weight: 850;
  text-transform: uppercase;
}
.table tbody td {
  padding: 14px 12px;
  border-color: #edf1f6;
}
.table-sm tbody td { padding: 11px 10px; }
.table-modern tbody tr {
  transition: background .12s ease;
}
.table-modern tbody tr:hover {
  background: #fbfdff;
}
.cell-muted {
  color: #98a2b3;
  font-weight: 700;
}
.date-cell {
  color: #475467;
  font-weight: 750;
  white-space: nowrap;
}
.money-cell {
  color: #101828;
  font-weight: 850;
  white-space: nowrap;
}
.badge-soft {
  background: #eff6ff;
  border-color: #c7d7fe;
  color: #1d4ed8;
  border-radius: 999px;
  padding: 6px 9px;
}
.status-pill {
  border: 1px solid transparent;
}
.status-pill-active {
  border-color: #bbf7d0;
}
.status-pill-enabled,
.status-pill-completed,
.status-pill-delivered,
.status-pill-payment-completed,
.status-pill-confirmed,
.status-pill-upcoming {
  background: #dcfce7;
  border-color: #bbf7d0;
  color: #166534;
}
.status-pill-inactive {
  border-color: #fed7aa;
}
.status-pill-draft,
.status-pill-trial,
.status-pill-photos-uploading,
.status-pill-selection-in-progress,
.status-pill-in-progress,
.status-pill-follow-up,
.status-pill-medium,
.status-pill-high,
.status-pill-urgent {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}
.status-pill-ready,
.status-pill-ready-for-selection,
.status-pill-selection-submitted,
.status-pill-review,
.status-pill-editing,
.status-pill-client-review,
.status-pill-photos-processing {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}
.status-pill-blocked {
  border-color: #fecaca;
}
.status-pill-success {
  background: #dcfce7;
  border-color: #bbf7d0;
  color: #166534;
}
.status-pill-initiated,
.status-pill-pending {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}
.status-pill-failed,
.status-pill-cancelled,
.status-pill-refunded,
.status-pill-suspended {
  background: #fee2e2;
  border-color: #fecaca;
  color: #991b1b;
}
.status-pill-low {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #475569;
}
.empty-state {
  display: grid;
  place-items: center;
  gap: 7px;
}
.empty-state i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 1.15rem;
}
.empty-state strong {
  color: #344054;
}
.empty-state span {
  color: var(--muted);
  font-size: .88rem;
}
.avatar-dot {
  background: linear-gradient(135deg, #e0f2fe, #dcfce7);
  color: #155e75;
}
.action-group .btn {
  width: 34px;
  padding: 0;
}

.modal-content {
  border: 1px solid rgba(214,222,233,.95);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}
.modal-header,
.modal-footer {
  border-color: #edf1f6;
}
.modal-title {
  font-weight: 850;
  color: #101828;
}

.dropzone {
  border-color: #b8c4d6;
  background:
    linear-gradient(180deg, #fbfdff, #f4f7fb);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.dropzone i {
  color: var(--brand);
}

.gallery-grid {
  gap: 14px;
}
.photo-tile {
  border-radius: 8px;
  border-width: 1px;
}
.photo-action-btn {
  min-height: 34px;
  backdrop-filter: blur(8px);
}
.photo-action-btn.is-active {
  background: linear-gradient(180deg, #12b886, #0f9f6e);
  border-color: #0f9f6e;
}
.gallery-toolbar {
  top: 78px;
}
.preview-photo::after {
  font-size: 3rem;
}
.selection-bar {
  border: 1px solid rgba(214,222,233,.92);
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -12px 28px rgba(16,24,40,.08);
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 18px;
}
.album-card {
  overflow: hidden;
  border: 1px solid rgba(214,222,233,.92);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-md);
}
.album-cover {
  position: relative;
  min-height: 168px;
  background:
    linear-gradient(135deg, rgba(37,99,235,.86), rgba(15,159,110,.72)),
    linear-gradient(135deg, #e8eef9, #f8fafc);
  background-position: center;
  background-size: cover;
}
.album-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.42));
}
.album-status,
.album-count {
  position: absolute;
  z-index: 2;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #182230;
  font-size: .76rem;
  font-weight: 850;
  text-transform: capitalize;
  backdrop-filter: blur(8px);
}
.album-status { left: 12px; }
.album-count { right: 12px; }
.album-body {
  padding: 16px;
}
.album-heading h5 {
  margin: 0;
  color: #101828;
  font-size: 1.04rem;
  font-weight: 850;
}
.album-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 650;
}
.album-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.album-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid #e4e9f2;
  border-radius: 7px;
  background: #f8fafc;
  color: #475467;
  font-size: .82rem;
  font-weight: 750;
}
.album-meta i {
  color: var(--brand);
}
.album-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}
.album-actions .btn:first-child {
  grid-column: 1 / -1;
}
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.album-workspace {
  display: grid;
  gap: 16px;
}
.workspace-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.mini-stat {
  padding: 15px;
  border: 1px solid rgba(214,222,233,.92);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.mini-stat span {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}
.mini-stat strong {
  display: block;
  margin-top: 4px;
  color: #101828;
  font-size: 1.2rem;
  line-height: 1.2;
  text-transform: capitalize;
}
.upload-panel {
  padding: 16px;
}
.upload-dropzone {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin: 0;
  cursor: pointer;
  text-align: left;
}
.upload-dropzone input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}
.upload-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--brand);
  font-size: 1.4rem;
}
.upload-dropzone strong {
  display: block;
  color: #101828;
  font-size: 1rem;
}
.upload-dropzone small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 650;
}
.upload-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.locked-panel {
  min-height: 150px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  border: 1px dashed #fca5a5;
  border-radius: 8px;
  background: #fff7f7;
}
.locked-panel i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fee2e2;
  color: #991b1b;
}
.locked-panel strong {
  color: #991b1b;
}
.locked-panel span {
  color: #667085;
  font-weight: 650;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 20px 0 12px;
}
.section-heading h5 {
  margin: 0;
  color: #101828;
  font-weight: 850;
}
.section-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .88rem;
}
.album-photo-grid {
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
}
.album-photo-tile .state-badge {
  top: auto;
  right: 8px;
  bottom: 8px;
}
.settings-hero,
.customer-studio-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(214,222,233,.92);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
  box-shadow: var(--shadow-md);
}
.settings-logo,
.customer-studio-logo {
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: linear-gradient(135deg, #eff6ff, #dcfce7);
  color: #155e75;
  font-size: 1.8rem;
  font-weight: 900;
}
.settings-logo img,
.customer-studio-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.settings-hero h2,
.customer-studio-card h2 {
  margin: 0;
  color: #101828;
  font-size: 1.25rem;
  font-weight: 900;
}
.settings-hero p,
.customer-studio-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 650;
}
.settings-hero-meta,
.customer-studio-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.settings-hero-meta span,
.customer-studio-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid #e4e9f2;
  border-radius: 999px;
  background: #fff;
  color: #475467;
  font-size: .82rem;
  font-weight: 800;
}
.settings-hero-meta i,
.customer-studio-meta i {
  color: var(--brand);
}
.subscription-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(214,222,233,.92);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-md);
}
.subscription-card h2 {
  margin: 3px 0;
  color: #101828;
  font-size: 1.35rem;
  font-weight: 900;
}
.subscription-card p {
  margin: 0;
  color: var(--muted);
  text-transform: capitalize;
}
.sub-eyebrow,
.sub-detail span {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
}
.sub-detail {
  min-width: 150px;
  padding: 12px;
  border: 1px solid #e4e9f2;
  border-radius: 8px;
  background: #f8fafc;
}
.sub-detail strong {
  display: block;
  margin-top: 4px;
  color: #101828;
  font-size: 1rem;
}
.subscription-success { box-shadow: inset 4px 0 0 #16a34a, var(--shadow-md); }
.subscription-warning { box-shadow: inset 4px 0 0 #d97706, var(--shadow-md); }
.subscription-danger { box-shadow: inset 4px 0 0 #dc2626, var(--shadow-md); }
.bill-upload-form {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(150px, 1.2fr) auto;
  gap: 6px;
  justify-content: end;
  align-items: center;
  min-width: 380px;
}
.bill-upload-form .form-control {
  min-height: 32px;
}
.renewal-list,
.bill-pending-list {
  display: grid;
  gap: 10px;
}
.renewal-card {
  display: grid;
  grid-template-columns: minmax(220px, .9fr) 1.4fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e4e9f2;
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.renewal-card-danger { border-left-color: #dc2626; }
.renewal-card-warning { border-left-color: #d97706; }
.renewal-card-success { border-left-color: #16a34a; }
.renewal-main strong,
.bill-pending-item strong {
  display: block;
  color: #101828;
}
.renewal-main span,
.bill-pending-item span {
  display: block;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 650;
}
.renewal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}
.renewal-tags span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid #e4e9f2;
  border-radius: 999px;
  background: #f8fafc;
  color: #475467;
  font-size: .76rem;
  font-weight: 800;
}
.renewal-mini-form {
  display: grid;
  grid-template-columns: minmax(130px, 1.2fr) minmax(90px, .8fr) repeat(2, minmax(116px, .9fr)) auto;
  gap: 8px;
  align-items: end;
}
.renewal-mini-form label {
  color: #667085;
  font-size: .72rem;
  font-weight: 850;
}
.bill-pending-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e4e9f2;
  border-radius: 8px;
  background: #fff;
}
.bill-pending-item form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}
.template-helper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 10px;
  border: 1px solid #e4e9f2;
  border-radius: 8px;
  background: #f8fafc;
}
.template-helper span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 850;
}
.template-helper button {
  min-height: 30px;
  border: 1px solid #c7d7fe;
  border-radius: 999px;
  background: #fff;
  color: #1d4ed8;
  font-size: .8rem;
  font-weight: 800;
  padding: 4px 10px;
}
.template-helper button:hover {
  background: #eff6ff;
}
.audit-pagination {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #edf1f6;
}
.audit-pagination .page-link {
  min-width: 36px;
  min-height: 36px;
  display: grid;
  place-items: center;
  border-color: #dbe4f0;
  color: #344054;
  font-weight: 800;
}
.audit-pagination .page-item.active .page-link {
  border-color: var(--brand);
  background: var(--brand);
}
.planner-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 18px;
  padding-bottom: 2px;
}
.planner-tabs a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #fff;
  color: #475467;
  font-weight: 800;
  white-space: nowrap;
}
.planner-tabs a.active {
  border-color: var(--brand);
  background: #eff6ff;
  color: #1d4ed8;
}
.planner-agenda,
.booking-list {
  display: grid;
  gap: 10px;
}
.agenda-item,
.booking-card {
  display: grid;
  grid-template-columns: 1fr auto minmax(180px, 220px);
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e4e9f2;
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.agenda-item strong,
.booking-card strong {
  display: block;
  color: #101828;
}
.agenda-item span,
.booking-card span {
  display: block;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 650;
}
.booking-side {
  display: grid;
  justify-items: end;
  gap: 6px;
}
.booking-status-form {
  min-width: 180px;
}
.status-inquiry { border-left-color: #d97706; }
.status-follow_up { border-left-color: #2563eb; }
.status-confirmed,
.status-upcoming { border-left-color: #16a34a; }
.status-in_progress,
.status-editing,
.status-client_review { border-left-color: #7c3aed; }
.status-cancelled { border-left-color: #dc2626; }
.status-delivered,
.status-payment_completed { border-left-color: #0f9f6e; }
.app-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 28px -26px -26px;
  padding: 16px 26px;
  border-top: 1px solid #dbe4f0;
  color: #52627a;
  font-size: .88rem;
  font-weight: 750;
}
.footer-heart {
  color: #dc3545;
  font-size: 1rem;
  margin: 0 3px;
}
.footer-heart {
  display: inline-block;
  width: 1em;
  overflow: hidden;
  vertical-align: -1px;
  color: transparent;
}
.footer-heart::before {
  content: "\2665";
  color: #dc3545;
}

@media (max-width: 1199px) {
  .page { padding: 22px; }
  .secure-gallery { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); }
  .dashboard-status-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .plan-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .dashboard-insight-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-workitem {
    grid-template-columns: 1fr;
  }
  .workitem-side {
    justify-items: start;
  }
  .sidebar {
    width: 284px;
    height: 100dvh;
    padding-top: 14px;
  }
  .sidebar-close {
    display: inline-grid;
    place-items: center;
  }
  .sidebar-nav {
    padding-bottom: 10px;
  }
  .topbar {
    min-height: 62px;
  }
  .mobile-nav-btn {
    width: 40px;
    padding: 0;
  }
  .page {
    padding: 18px;
  }
  .gallery-toolbar {
    top: 62px;
  }
  .topbar-actions {
    gap: 6px;
  }
  .dashboard-hero {
    align-items: stretch;
    flex-direction: column;
  }
  .dashboard-hero .btn,
  .dashboard-hero .page-actions {
    width: 100%;
  }
  .dashboard-hero .page-actions .btn {
    flex: 1;
  }
  .quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .plan-chip small {
    display: none;
  }
  .subscription-alert {
    grid-template-columns: auto 1fr;
  }
  .subscription-alert .btn {
    grid-column: 1 / -1;
    width: 100%;
  }
  .workspace-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .upload-dropzone {
    grid-template-columns: auto 1fr;
  }
  .upload-dropzone .btn {
    grid-column: 1 / -1;
  }
  .subscription-card {
    grid-template-columns: 1fr 1fr;
  }
  .subscription-card > div:first-child {
    grid-column: 1 / -1;
  }
  .bill-upload-form {
    min-width: 300px;
    grid-template-columns: 1fr;
  }
  .renewal-card,
  .renewal-mini-form {
    grid-template-columns: 1fr;
  }
  .agenda-item,
  .booking-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .booking-side {
    justify-items: start;
  }
  .booking-status-form {
    min-width: 0;
  }
}

@media (max-width: 575px) {
  body { font-size: 14px; }
  .login-card {
    padding: 24px;
  }
  .page {
    padding: 14px;
  }
  .page-title {
    gap: 10px;
  }
  .dashboard-status-strip {
    grid-template-columns: 1fr;
  }
  .plan-summary-strip {
    grid-template-columns: 1fr;
  }
  .plan-edit-banner,
  .plan-card-foot {
    align-items: flex-start;
    flex-direction: column;
  }
  .page-title h1 {
    font-size: 1.28rem;
  }
  .topbar {
    gap: 8px;
  }
  .topbar-title span {
    display: none;
  }
  .user-chip {
    padding-right: 5px;
  }
  .quick-actions {
    grid-template-columns: 1fr;
  }
  .quick-action {
    min-height: 72px;
  }
  .panel {
    padding: 15px;
  }
  .metric-card {
    min-height: 112px;
  }
  .metric-card .value {
    font-size: 1.44rem;
  }
  .secure-gallery,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .photo-actions {
    gap: 4px;
    left: 6px;
    right: 6px;
    bottom: 6px;
  }
  .photo-action-btn {
    width: auto;
    height: 32px;
    min-height: 32px;
  }
  .filter-scroll {
    width: 100%;
  }
  .preview-photo::after {
    font-size: 1.7rem;
  }
  .app-footer {
    align-items: flex-start;
    flex-direction: column;
    margin: 22px -14px -14px;
    padding: 14px;
  }
  .album-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .album-cover {
    min-height: 148px;
  }
  .album-actions {
    grid-template-columns: 1fr;
  }
  .album-actions .btn:first-child {
    grid-column: auto;
  }
  .page-actions {
    width: 100%;
  }
  .page-actions .btn {
    width: 100%;
  }
  .workspace-stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .mini-stat {
    padding: 12px;
  }
  .upload-footer {
    align-items: stretch;
    flex-direction: column;
  }
  .upload-footer .btn {
    width: 100%;
  }
  .album-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .settings-hero,
  .customer-studio-card {
    align-items: flex-start;
    padding: 14px;
  }
  .settings-logo,
  .customer-studio-logo {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    font-size: 1.3rem;
  }
  .settings-hero h2,
  .customer-studio-card h2 {
    font-size: 1.05rem;
  }
  .plan-chip {
    padding-inline: 9px;
  }
  .plan-chip span {
    display: none;
  }
  .subscription-card {
    grid-template-columns: 1fr;
  }
  .sub-detail {
    min-width: 0;
  }
}
