:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: rgba(255, 255, 255, 0.86);
  --card: rgba(255, 255, 255, 0.9);
  --stroke: rgba(148, 163, 184, 0.25);
  --text: #0f172a;
  --muted: #475569;
  --accent: #0ea5e9;
  --accent-2: #38bdf8;
  --accent-3: #0284c7;
  --positive: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
}

body[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1120;
  --surface: #0f172a;
  --surface-2: rgba(15, 23, 42, 0.72);
  --card: rgba(255, 255, 255, 0.06);
  --stroke: rgba(148, 163, 184, 0.18);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #22d3ee;
  --accent-2: #38bdf8;
  --accent-3: #0ea5e9;
  --positive: #34d399;
  --warning: #fbbf24;
  --danger: #fb7185;
  --shadow: 0 30px 60px rgba(2, 6, 23, 0.5);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  background: radial-gradient(circle at top left, #eef2ff 0%, #f8fafc 40%, #e2e8f0 100%);
  color: var(--text);
  min-height: 100vh;
  padding: 24px 32px 24px;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

html.overlay-lock,
body.overlay-lock {
  overflow: hidden !important;
  overscroll-behavior: none;
  touch-action: none;
}

body.overlay-lock {
  position: fixed;
  inset: 0;
  width: 100%;
}

body[data-theme="dark"] {
  background: radial-gradient(circle at top left, #1e293b 0%, #0b1120 55%, #060914 100%);
}

.ambient span {
  position: fixed;
  inset: auto auto auto auto;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.28), transparent 60%);
  filter: blur(0px);
  opacity: 0.6;
  z-index: 0;
  animation: float 18s ease-in-out infinite;
}

.ambient span:nth-child(1) {
  top: -120px;
  left: -120px;
}

.ambient span:nth-child(2) {
  bottom: -150px;
  right: 10%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.24), transparent 60%);
  animation-delay: -6s;
}

.ambient span:nth-child(3) {
  top: 25%;
  right: -120px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18), transparent 60%);
  animation-delay: -12s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(30px); }
}

.topbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 0;
  margin-bottom: -30px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 80px;
  overflow: hidden;
}

.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  cursor: pointer;
}

.brand-logo.large {
  width: 260px;
  height: 260px;
  margin-top: -10px;
}

.auth-card {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  overflow: hidden;
  border-color: rgba(14, 165, 233, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.86)),
    radial-gradient(circle at 18% 0%, rgba(56, 189, 248, 0.22), transparent 34%),
    radial-gradient(circle at 95% 18%, rgba(16, 185, 129, 0.18), transparent 32%);
  animation: authEnter 0.55s ease both;
}

body[data-theme="dark"] .auth-card {
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.78)),
    radial-gradient(circle at 16% 0%, rgba(34, 211, 238, 0.2), transparent 34%),
    radial-gradient(circle at 95% 18%, rgba(16, 185, 129, 0.14), transparent 32%);
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: -45% auto auto -25%;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: conic-gradient(from 120deg, rgba(14, 165, 233, 0.18), rgba(16, 185, 129, 0.18), rgba(14, 165, 233, 0.18));
  filter: blur(6px);
  opacity: 0.75;
  animation: authGlow 8s linear infinite;
  pointer-events: none;
}

.auth-hero {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
}

.auth-hero h3 {
  margin: 8px 0 6px;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
}

.auth-hero p {
  max-width: 420px;
  color: var(--muted);
  line-height: 1.55;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(14, 165, 233, 0.32);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(14, 165, 233, 0.1);
  color: var(--accent-3);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-split {
  position: relative;
  z-index: 1;
  display: block;
}

.auth-pane {
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  transform-origin: center;
}

body[data-theme="dark"] .auth-pane {
  background: rgba(15, 23, 42, 0.64);
}

.auth-panel {
  display: none;
}

.auth-panel.is-active {
  display: block;
  animation: authPanelIn 0.28s ease both;
}

.auth-pane h4 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.28rem;
}

.auth-pane-copy {
  margin: -3px 0 14px;
  color: var(--muted);
  line-height: 1.5;
}

.auth-submit {
  width: 100%;
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.18);
}

.auth-switch-copy {
  margin-top: 14px;
  color: var(--muted);
  text-align: center;
}

.auth-switch-copy button {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--accent-3);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.auth-switch-copy button:hover {
  text-decoration: underline;
}

@keyframes authEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes authPanelIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes authGlow {
  to {
    transform: rotate(360deg);
  }
}

.creator-dashboard.is-hidden {
  display: none;
}

.profile-hero {
  background: var(--surface-2);
  border-radius: 22px;
  border: 1px solid var(--stroke);
  overflow: hidden;
  margin-top: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.creator-dashboard .profile-hero {
  display: none;
}

.profile-cover {
  height: 140px;
  background: linear-gradient(120deg, rgba(14, 165, 233, 0.35), rgba(16, 185, 129, 0.35));
}

body[data-theme="dark"] .profile-cover {
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.25), rgba(14, 165, 233, 0.25));
}

.profile-header {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 20px;
  padding: 20px;
  align-items: center;
}

.creator-avatar-wrap {
  position: relative;
  width: 120px;
  height: 120px;
}

#creator-avatar-large {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  object-fit: cover;
  border: none;
  margin-top: -22px;
  background: var(--surface-2);
  box-shadow: none;
}

.creator-dashboard.profile-section-active .creator-avatar-wrap.subscription-active #creator-avatar-large {
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.82), 0 0 14px rgba(245, 158, 11, 0.28);
}

.creator-dashboard.profile-section-active .creator-avatar-wrap.subscription-active::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: conic-gradient(from 0deg, rgba(255,255,255,0) 0deg, rgba(255,244,214,0.72) 26deg, rgba(255,255,255,0) 68deg, rgba(255,255,255,0) 360deg);
  animation: premiumSheenRotate 6.2s linear infinite;
  pointer-events: none;
}

.avatar-plan-star {
  position: absolute;
  top: -6px;
  right: -6px;
  z-index: 2;
  font-size: 0.95rem;
  color: #facc15;
  text-shadow: 0 0 10px rgba(250, 204, 21, 0.9);
}

body[data-theme="dark"] #creator-avatar-large {
  background: var(--surface-2);
}

.profile-info h3 {
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 6px;
}

.profile-stats {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-unread {
  background: #ef4444;
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  animation: pulse 1.6s ease-in-out infinite;
}

.chat-unread.is-hidden {
  display: none;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
}

@keyframes premiumSheenRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .profile-header {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-actions {
    flex-direction: row;
    justify-content: center;
  }
}

.brand-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: lowercase;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.88rem;
}

.nav-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-btn.is-active {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.25), rgba(14, 165, 233, 0.45));
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.45);
}

.cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.creator-plan-chip {
  display: none !important;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  border: 1px solid rgba(245, 158, 11, 0.55);
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.9), rgba(245, 158, 11, 0.85));
}

.creator-plan-chip.plan-starter {
  border-color: rgba(16, 185, 129, 0.58);
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.88), rgba(16, 185, 129, 0.82));
}

.creator-plan-chip.plan-pro {
  border-color: rgba(245, 158, 11, 0.55);
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.9), rgba(245, 158, 11, 0.85));
}

.creator-plan-chip.plan-studio {
  border-color: rgba(192, 132, 252, 0.65);
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.85), rgba(192, 132, 252, 0.8));
}

.creator-user {
  position: relative;
  z-index: 160;
}

.creator-user-btn {
  width: 42px;
  height: 42px;
  border-radius: 50% !important;
  border: 1px solid var(--stroke);
  background: var(--surface);
  display: grid;
  place-items: center;
  padding: 2px;
  overflow: hidden;
  cursor: pointer;
}

.creator-user-btn.subscription-active {
  position: relative;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.62), 0 0 10px rgba(245, 158, 11, 0.22);
}

.creator-user-btn.subscription-active::before {
  content: none;
}

.creator-user-btn.subscription-active::after {
  content: none;
}

.creator-user-btn img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.creator-user-btn.plan-starter {
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.82), 0 0 12px rgba(16, 185, 129, 0.26);
}

.creator-user-btn.plan-pro {
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.82), 0 0 12px rgba(245, 158, 11, 0.28);
}

.creator-user-btn.plan-studio {
  box-shadow: 0 0 0 2px rgba(192, 132, 252, 0.82), 0 0 12px rgba(192, 132, 252, 0.26);
}

.creator-user-dropdown {
  position: absolute;
  left: 50%;
  top: calc(100% + 6px);
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 999;
  opacity: 0;
  transform: translateX(-50%) translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.creator-user-dropdown.is-open {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
}

.creator-user-dropdown button {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: var(--text);
  padding: 10px 12px;
  cursor: pointer;
}

.creator-user-dropdown button:hover {
  background: rgba(56, 189, 248, 0.12);
}

.creator-user-plan {
  padding: 9px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #dbeafe;
  background: rgba(37, 99, 235, 0.2);
  border-bottom: 1px solid var(--stroke);
}

.creator-user-plan.plan-starter {
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.2);
}

.creator-user-plan.plan-pro {
  color: #fef3c7;
  background: rgba(245, 158, 11, 0.24);
}

.creator-user-plan.plan-studio {
  color: #f3e8ff;
  background: rgba(168, 85, 247, 0.24);
}

body:not([data-theme="dark"]) .creator-user-plan {
  color: #1e3a8a;
  background: rgba(59, 130, 246, 0.22);
  border-bottom-color: rgba(59, 130, 246, 0.25);
}

body:not([data-theme="dark"]) .creator-user-plan.plan-starter {
  color: #065f46;
  background: rgba(16, 185, 129, 0.28);
}

body:not([data-theme="dark"]) .creator-user-plan.plan-pro {
  color: #7c2d12;
  background: rgba(245, 158, 11, 0.34);
}

body:not([data-theme="dark"]) .creator-user-plan.plan-studio {
  color: #581c87;
  background: rgba(168, 85, 247, 0.3);
}

.pill {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.pill.ghost {
  background: transparent;
  color: var(--muted);
}

.user-profile {
  width: 118px;
  height: 44px;
  border-radius: 13px;
  padding: 0;
  border: none;
  background: linear-gradient(to bottom right, #2e8eff 0%, rgba(46, 142, 255, 0) 30%);
  background-color: rgba(46, 142, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease;
}

.user-profile:hover,
.user-profile:focus-visible {
  background-color: rgba(46, 142, 255, 0.7);
  box-shadow: 0 0 10px rgba(46, 142, 255, 0.5);
  outline: none;
}

.user-profile .user-profile-inner {
  width: 114px;
  height: 40px;
  border-radius: 11px;
  background-color: #1a1a1a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.84rem;
  line-height: 1;
}

.user-profile .user-profile-inner svg {
  width: 19px;
  height: 19px;
  fill: #fff;
  flex: 0 0 auto;
}

.user-profile .user-profile-inner span,
.user-profile .user-profile-inner p {
  margin: 0;
}

.field select,
#request-form select,
#report-form select,
.results-sort select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  color: #e5f3ff;
  background-color: rgba(24, 33, 56, 0.96);
  border: 1px solid rgba(84, 134, 204, 0.45);
  padding-right: 2.1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23e5f3ff' d='M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.72rem center;
  background-size: 0.78rem;
}

.field select:hover,
#request-form select:hover,
#report-form select:hover,
.results-sort select:hover {
  border-color: rgba(56, 189, 248, 0.72);
  background-color: rgba(34, 45, 72, 0.98);
}

.field select:focus,
#request-form select:focus,
#report-form select:focus,
.results-sort select:focus {
  outline: 2px solid rgba(56, 189, 248, 0.58);
  outline-offset: 2px;
}

body:not([data-theme="dark"]) .field select,
body:not([data-theme="dark"]) #request-form select,
body:not([data-theme="dark"]) #report-form select,
body:not([data-theme="dark"]) .results-sort select {
  color: #0f172a;
  background-color: rgba(233, 243, 255, 0.98);
  border-color: rgba(125, 165, 208, 0.6);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%230f172a' d='M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z'/%3E%3C/svg%3E");
}

.btn.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.75;
}

.btn.is-loading::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-top-color: transparent;
  border-radius: 50%;
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
  animation: spin 0.8s linear infinite;
}

.btn.is-success {
  background: rgba(16, 185, 129, 0.2) !important;
  border-color: rgba(16, 185, 129, 0.5) !important;
  color: #065f46 !important;
  transition: background 0.4s ease;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.theme-switch #theme-toggle {
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2196f3;
  border: 1px solid rgba(226, 232, 240, 0.42);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.18);
  transition: 0.4s;
  z-index: 0;
  overflow: hidden;
}

body[data-theme="dark"] .theme-slider {
  border-color: rgba(148, 163, 184, 0.5);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.16);
}

body[data-theme="light"] .theme-slider {
  border-color: rgba(15, 23, 42, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.theme-sun-moon {
  position: absolute;
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: #facc15;
  transition: 0.4s;
}

#theme-toggle:checked + .theme-slider {
  background-color: #020617;
}

#theme-toggle:focus + .theme-slider {
  box-shadow: 0 0 1px #2196f3;
}

#theme-toggle:checked + .theme-slider .theme-sun-moon {
  transform: translateX(26px);
  background-color: #fff;
  animation: rotate-center 0.6s ease-in-out both;
}

.theme-moon-dot {
  opacity: 0;
  transition: 0.4s;
  fill: #9ca3af;
}

#theme-toggle:checked + .theme-slider .theme-sun-moon .theme-moon-dot {
  opacity: 1;
}

.theme-slider.round {
  border-radius: 34px;
}

.theme-slider.round .theme-sun-moon {
  border-radius: 50%;
}

#theme-moon-dot-1 {
  left: 10px;
  top: 3px;
  position: absolute;
  width: 6px;
  height: 6px;
  z-index: 4;
}

#theme-moon-dot-2 {
  left: 2px;
  top: 10px;
  position: absolute;
  width: 10px;
  height: 10px;
  z-index: 4;
}

#theme-moon-dot-3 {
  left: 16px;
  top: 18px;
  position: absolute;
  width: 3px;
  height: 3px;
  z-index: 4;
}

#theme-light-ray-1 {
  left: -8px;
  top: -8px;
  position: absolute;
  width: 43px;
  height: 43px;
  z-index: -1;
  fill: #fff;
  opacity: 0.1;
}

#theme-light-ray-2 {
  left: -50%;
  top: -50%;
  position: absolute;
  width: 55px;
  height: 55px;
  z-index: -1;
  fill: #fff;
  opacity: 0.1;
}

#theme-light-ray-3 {
  left: -18px;
  top: -18px;
  position: absolute;
  width: 60px;
  height: 60px;
  z-index: -1;
  fill: #fff;
  opacity: 0.1;
}

.theme-cloud-light {
  position: absolute;
  fill: #e5e7eb;
  animation: cloud-move 6s infinite;
}

.theme-cloud-dark {
  position: absolute;
  fill: #d1d5db;
  animation: cloud-move 6s infinite;
  animation-delay: 1s;
}

#theme-cloud-1 { left: 30px; top: 15px; width: 40px; }
#theme-cloud-2 { left: 44px; top: 10px; width: 20px; }
#theme-cloud-3 { left: 18px; top: 24px; width: 30px; }
#theme-cloud-4 { left: 36px; top: 18px; width: 40px; }
#theme-cloud-5 { left: 48px; top: 14px; width: 20px; }
#theme-cloud-6 { left: 22px; top: 26px; width: 30px; }

.theme-stars {
  transform: translateY(-32px);
  opacity: 0;
  transition: 0.4s;
}

.theme-star {
  fill: #fff;
  position: absolute;
  transition: 0.4s;
  animation: star-twinkle 2s infinite;
}

#theme-toggle:checked + .theme-slider .theme-stars {
  transform: translateY(0);
  opacity: 1;
}

#theme-star-1 { width: 20px; top: 2px; left: 3px; animation-delay: 0.3s; }
#theme-star-2 { width: 6px; top: 16px; left: 3px; }
#theme-star-3 { width: 12px; top: 20px; left: 10px; animation-delay: 0.6s; }
#theme-star-4 { width: 18px; top: 0; left: 18px; animation-delay: 1.3s; }

@keyframes rotate-center {
  0% { transform: translateX(26px) rotate(0deg); }
  100% { transform: translateX(26px) rotate(360deg); }
}

@keyframes cloud-move {
  0% { transform: translateX(0); }
  40% { transform: translateX(4px); }
  80% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

@keyframes star-twinkle {
  0% { transform: scale(1); }
  40% { transform: scale(1.2); }
  80% { transform: scale(0.8); }
  100% { transform: scale(1); }
}

.notice {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 0.9rem;
}

.hint {
  color: var(--muted);
  font-size: 0.82rem;
}

.twofa-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
}

.twofa-popup-form {
  width: min(420px, 94vw);
  border: 2px solid rgba(56, 189, 248, 0.45);
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #e2e8f0;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(15, 27, 52, 0.98));
  border-radius: 10px;
  position: relative;
  box-shadow: 10px 10px 24px rgba(0, 0, 0, 0.28);
}

.twofa-popup-info {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.twofa-popup-title {
  font-size: 1.35rem;
  font-weight: 900;
}

.twofa-popup-description {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #93c5fd;
}

.twofa-popup-inputs {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.twofa-popup-inputs input {
  height: 2.5em;
  width: 2.5em;
  outline: none;
  text-align: center;
  font-size: 1.35rem;
  color: #e2e8f0;
  border-radius: 6px;
  border: 2px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.78);
}

.twofa-popup-inputs input:focus {
  border: 1px solid rgba(56, 189, 248, 0.9);
  box-shadow: inset 10px 10px 10px rgba(0, 0, 0, 0.18);
  transform: scale(1.05);
  transition: 0.3s;
}

.twofa-popup-actions {
  display: flex;
  margin-top: 20px;
  gap: 0.5rem;
}

.twofa-popup-verify,
.twofa-popup-clear {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  user-select: none;
  transition: 0.3s ease;
}

.twofa-popup-verify {
  color: #fff;
  background: #0f172a;
  border: 1px solid #334155;
}

.twofa-popup-verify:hover,
.twofa-popup-verify:focus {
  background: #1e293b;
}

.twofa-popup-clear {
  color: #cbd5e1;
  background: transparent;
  border: 1px solid #475569;
}

.twofa-popup-clear:hover,
.twofa-popup-clear:focus {
  color: #fecaca;
  border-color: #ef4444;
}

.twofa-popup-close {
  position: absolute;
  right: 10px;
  top: 10px;
  background: rgba(100, 116, 139, 0.4);
  color: #f1f5f9;
  height: 30px;
  width: 30px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  border: none;
  transition: 0.25s ease;
}

.twofa-popup-close:hover {
  background: #ef4444;
  color: #fff;
}

.is-hidden,
[hidden] {
  display: none !important;
}

.site-gate {
  position: fixed;
  inset: 0;
  width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  z-index: 4000;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 15% 15%, rgba(44, 110, 186, 0.28), transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(21, 155, 182, 0.24), transparent 36%),
    linear-gradient(160deg, #050a14, #0c1526);
  touch-action: none;
}

#site-mode-overlay.is-hidden {
  display: none !important;
}

.site-gate .is-hidden {
  display: none !important;
}

.site-gate-card {
  width: min(560px, 100%);
  border: 1px solid rgba(124, 164, 215, 0.25);
  border-radius: 18px;
  background: rgba(11, 21, 38, 0.86);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.46);
  padding: 24px;
  text-align: center;
  color: #e7f0ff;
}

.site-gate-logo {
  width: 180px;
  max-width: 70%;
  margin-bottom: 14px;
}

.site-gate-card h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.site-gate-card p {
  margin: 8px 0 0;
}

.site-gate-until {
  color: #9fd8e5;
  font-weight: 600;
}

.site-gate-form {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

#dev-step-token,
#dev-step-email,
#dev-step-code,
#dev-step-nda {
  display: grid;
  gap: 10px;
}

#dev-step-token .btn,
#dev-step-email .btn,
#dev-step-code .btn,
#dev-step-nda .btn {
  margin-top: 6px;
  width: 100%;
  justify-self: stretch;
}

.site-gate-form label {
  text-align: left;
  font-size: 0.95rem;
  color: #bad1ef;
}

.site-gate-form input {
  margin-top: 6px;
  width: 100%;
  border: 1px solid rgba(133, 170, 220, 0.42);
  border-radius: 10px;
  background: rgba(10, 20, 35, 0.92);
  color: #e7f0ff;
  padding: 10px 12px;
}

.site-gate-form textarea {
  margin-top: 6px;
  width: 100%;
  border: 1px solid rgba(133, 170, 220, 0.42);
  border-radius: 10px;
  background: rgba(10, 20, 35, 0.92);
  color: #e7f0ff;
  padding: 10px 12px;
  resize: vertical;
}

.site-gate-form .switch-row {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  color: #bad1ef;
  margin-top: 4px;
}

.site-gate-form .switch-row input[type="checkbox"] {
  width: auto;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  flex: 0 0 auto;
}

.site-gate-form .switch-row span {
  margin: 0;
  line-height: 1.35;
}

#dev-nda-finish {
  margin-top: 12px;
}

.dev-nda-content {
  margin-top: 6px;
  width: 100%;
  border: 1px solid rgba(133, 170, 220, 0.42);
  border-radius: 10px;
  background: rgba(10, 20, 35, 0.92);
  color: #e7f0ff;
  padding: 12px;
  max-height: 300px;
  overflow: auto;
  line-height: 1.45;
  font-size: 0.92rem;
}

.dev-nda-content p {
  margin: 0 0 10px;
}

.dev-nda-content p:last-child {
  margin-bottom: 0;
}

.dev-nda-content .nda-section {
  margin-top: 12px;
}

.dev-nda-content .nda-section strong {
  display: block;
  font-weight: 800;
  color: #ffffff;
}

.site-gate-error {
  min-height: 20px;
  color: #ff97ad;
}

#blocked-overlay.is-hidden {
  display: none !important;
}

.divider {
  border: none;
  border-top: 1px solid var(--stroke);
  margin: 16px 0;
}

.pill.small {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.hero {
  margin: 40px 0 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 12px 0 16px;
}

.lead {
  color: var(--muted);
  line-height: 1.6;
  max-width: 540px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.72rem;
  color: var(--accent);
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #04121f;
  box-shadow: 0 12px 24px rgba(34, 211, 238, 0.3);
}

.btn.secondary {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text);
  border: 1px solid var(--stroke);
}

.btn.small {
  padding: 6px 10px;
  font-size: 0.85rem;
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--stroke);
  color: var(--muted);
}

.hero-card {
  background: var(--surface-2);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 640px;
  justify-self: start;
  justify-content: center;
}

.hero-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--accent);
}

.hero-card-bottom h3 {
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 6px;
}

.hero-card-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 132px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 0;
  text-align: center;
  align-items: center;
  justify-items: center;
  width: 100%;
}

.hero-metrics > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  width: 100%;
  min-width: 0;
  max-width: 132px;
  justify-self: center;
}

.hero-metrics p {
  margin: 0;
}

.hero-metrics p:not(.metric) {
  width: 100%;
  min-height: 2.4em;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  text-wrap: balance;
}

.metric {
  width: 100%;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

main {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 12px;
}

.status-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid var(--stroke);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.search-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.search-header .eyebrow {
  margin-bottom: 10px;
}

.search-header h3 {
  margin-top: 0;
}

.step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-radius: 16px;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid var(--stroke);
  transition: all 0.35s ease;
}

.step > * {
  min-width: 0;
}

body[data-theme="dark"] .step {
  background: rgba(15, 23, 42, 0.6);
}

.search-step {
  max-height: 520px;
  opacity: 1;
  transform: translateY(0);
}

.search-step.is-collapsed {
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  padding: 0;
  border-color: transparent;
  margin: 0;
  pointer-events: none;
  overflow: hidden;
}

.search-step.is-open {
  animation: stepOpen 0.35s ease;
}

.search-step .inline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.step-title {
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  min-height: 32px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

@keyframes stepOpen {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #04121f;
  font-weight: 700;
}

.card {
  background: var(--surface-2);
  border-radius: 18px;
  padding: 20px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.card h3 {
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 14px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.field label {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 6px;
  display: block;
}

.field input:not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background-color: rgba(242, 249, 255, 0.96);
  border: 1px solid rgba(56, 189, 248, 0.18);
  color: var(--text);
  padding: 0.9rem 0.95rem;
  border-radius: 1rem;
  box-shadow: 0 0.38rem 0 rgba(125, 165, 208, 0.32);
  transition: box-shadow 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
  cursor: text;
}

body[data-theme="dark"] .field input:not([type="checkbox"]),
body[data-theme="dark"] .field select,
body[data-theme="dark"] .field textarea {
  background-color: rgba(15, 23, 42, 0.85);
  border-color: rgba(56, 189, 248, 0.28);
  box-shadow: 0 0.38rem 0 rgba(8, 13, 24, 0.78);
}

.field input:not([type="checkbox"]):focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(56, 189, 248, 0.58);
  outline-offset: 2px;
  border-color: rgba(14, 165, 233, 0.64);
  box-shadow: 0 0.25rem 0 rgba(56, 189, 248, 0.2);
}

.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  border-color: rgba(56, 189, 248, 0.36);
  box-shadow: 0 0 0 1000px rgba(242, 249, 255, 0.96) inset, 0 0.38rem 0 rgba(125, 165, 208, 0.32);
  transition: background-color 9999s ease-out;
}

body[data-theme="dark"] .field input:-webkit-autofill,
body[data-theme="dark"] .field input:-webkit-autofill:hover,
body[data-theme="dark"] .field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  border-color: rgba(56, 189, 248, 0.28);
  box-shadow: 0 0 0 1000px rgba(15, 23, 42, 0.96) inset, 0 0.38rem 0 rgba(8, 13, 24, 0.78);
}

body[data-theme="dark"] .field input:not([type="checkbox"]):focus,
body[data-theme="dark"] .field select:focus,
body[data-theme="dark"] .field textarea:focus {
  outline-color: rgba(125, 211, 252, 0.72);
  box-shadow: 0 0.25rem 0 rgba(8, 47, 73, 0.88);
}

.all-day-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.all-day-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid rgba(14, 165, 233, 0.45);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.all-day-row input[type="checkbox"]:hover {
  transform: translateY(-1px);
  border-color: rgba(14, 165, 233, 0.75);
}

.all-day-row input[type="checkbox"]:checked {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
}

.all-day-row input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.all-day-row input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
}

.all-day-row span {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.1;
  pointer-events: none;
  user-select: none;
}

body[data-theme="dark"] .all-day-row input[type="checkbox"] {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(56, 189, 248, 0.45);
}

.chip-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip-select {
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid var(--stroke);
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

body[data-theme="dark"] .chip-select {
  background: rgba(15, 23, 42, 0.6);
}

.chip-select.is-active {
  background: rgba(34, 211, 238, 0.2);
  color: var(--text);
  border-color: rgba(34, 211, 238, 0.4);
}

.avatar-upload {
  display: grid;
  grid-template-columns: minmax(150px, 180px) 1fr;
  gap: 12px;
  align-items: center;
}

#avatar-preview {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.4), rgba(14, 165, 233, 0.4));
  object-fit: cover;
  border: 1px solid var(--stroke);
}

.thumb-preview {
  width: 170px;
  height: 104px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--stroke);
}

.avatar-upload input[type="file"] {
  max-width: 100%;
  display: none;
}

.media-image-editor {
  position: relative;
}

.media-upload-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.58));
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.media-image-editor.is-thumb .media-upload-overlay {
  width: 170px;
  height: 104px;
  border-radius: 14px;
}

.media-image-editor:hover .media-upload-overlay,
.media-image-editor:focus-within .media-upload-overlay {
  opacity: 1;
  pointer-events: auto;
}

.media-image-editor .media-upload-overlay .btn {
  font-size: 0.78rem;
  padding: 8px 12px;
}

.media-image-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

#customer-avatar-input {
  display: none;
}

#customer-avatar-preview {
  width: 84px;
  height: 84px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.25), rgba(14, 165, 233, 0.28));
  object-fit: cover;
  border: 1px solid var(--stroke);
}

.customer-card-head {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.customer-card-meta {
  min-width: 0;
}

.customer-card-meta strong {
  display: block;
  margin-bottom: 4px;
}

.customer-card-meta p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.customer-list-avatar {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--stroke);
  flex: 0 0 auto;
}

.customer-form-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .avatar-upload {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .media-upload-overlay,
  .media-image-editor.is-thumb .media-upload-overlay {
    width: 100%;
  }

  .media-upload-overlay {
    height: 140px;
  }

  .media-image-editor.is-thumb .media-upload-overlay {
    height: 104px;
  }

  .portfolio-upload-row {
    align-items: stretch;
  }

  #portfolio-open-upload {
    width: 100%;
    min-width: 0;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  width: 100%;
  margin: 10px auto 0;
}

.portfolio-grid.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  width: 100%;
}

.custum-file-upload.portfolio-empty-upload {
  min-height: 188px;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(56, 189, 248, 0.45);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.8));
  padding: 1.1rem;
  border-radius: 12px;
  box-shadow: 0 20px 28px -24px rgba(14, 165, 233, 0.5);
}

.custum-file-upload.portfolio-empty-upload .icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.custum-file-upload.portfolio-empty-upload .icon svg {
  height: 62px;
  width: 62px;
  fill: #93c5fd;
}

.custum-file-upload.portfolio-empty-upload .text {
  text-align: center;
}

.custum-file-upload.portfolio-empty-upload .text span {
  font-weight: 600;
  color: #dbeafe;
  font-size: 0.92rem;
}

.custum-file-upload.portfolio-empty-upload:hover {
  border-color: rgba(34, 211, 238, 0.75);
  box-shadow: 0 24px 30px -24px rgba(34, 211, 238, 0.7);
}

body:not([data-theme="dark"]) .custum-file-upload.portfolio-empty-upload {
  border-color: rgba(14, 165, 233, 0.38);
  background: linear-gradient(145deg, rgba(241, 245, 249, 0.98), rgba(226, 232, 240, 0.96));
  box-shadow: 0 20px 28px -24px rgba(37, 99, 235, 0.35);
}

body:not([data-theme="dark"]) .custum-file-upload.portfolio-empty-upload .icon svg {
  fill: #2563eb;
}

body:not([data-theme="dark"]) .custum-file-upload.portfolio-empty-upload .text span {
  color: #1e293b;
}

body:not([data-theme="dark"]) .custum-file-upload.portfolio-empty-upload:hover {
  border-color: rgba(37, 99, 235, 0.62);
  box-shadow: 0 24px 30px -24px rgba(37, 99, 235, 0.45);
}

.portfolio-empty-trigger {
  border: 0;
  display: flex;
  margin: 0 auto;
  align-self: center;
}

.portfolio-upload-modal-content {
  width: min(560px, 96vw);
}

.portfolio-drop-zone {
  width: 100%;
  min-height: 240px;
  max-width: none;
  margin: 0;
}

#portfolio-drop-zone.is-dragover,
.portfolio-upl-area.is-dragover {
  border-color: rgba(34, 211, 238, 0.9);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.18), 0 24px 30px -24px rgba(34, 211, 238, 0.7);
}

#portfolio-modal-input {
  display: none;
}

.portfolio-upl-card {
  width: min(500px, 94vw);
  margin: 10px auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: #0d0f21;
}

.portfolio-upl-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.2rem 1.2rem 0.8rem;
}

.portfolio-upl-logo-circle {
  width: 3.3rem;
  height: 3.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e9f8ff;
}

.portfolio-upl-logo-circle svg {
  fill: #0ea5e9;
}

.portfolio-upl-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.portfolio-upl-close svg {
  fill: #64748b;
}

.portfolio-upl-close:hover {
  background: #e9f8ff;
}

.portfolio-upl-body {
  padding: 0.7rem 1.2rem;
}

.portfolio-upl-title {
  margin: 0;
  font-weight: 700;
}

.portfolio-upl-description {
  margin: 0.2rem 0 0.9rem;
  color: #64748b;
}

.portfolio-upl-area {
  margin-top: 0.35rem;
  background: transparent;
  padding: 2rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px dashed #64748b;
  border-radius: 8px;
  text-align: center;
}

.portfolio-upl-area:hover {
  cursor: pointer;
  border: 1px solid #64748b;
}

.portfolio-upl-area-icon svg {
  fill: #0ea5e9;
}

.portfolio-upl-area-title {
  margin-top: 0.8rem;
  display: block;
  font-weight: 700;
  color: #0d0f21;
}

.portfolio-upl-area-description {
  display: block;
  color: #6a6b76;
}

.portfolio-upl-area-description strong {
  color: #0ea5e9;
}

.portfolio-upl-footer {
  padding: 1rem 1.2rem 1.2rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.portfolio-upl-btn-secondary,
.portfolio-upl-btn-primary {
  padding: 0.5rem 1rem;
  font-weight: 600;
  border: 2px solid #e5e5e5;
  border-radius: 0.35rem;
  background: transparent;
  cursor: pointer;
}

.portfolio-upl-btn-primary {
  color: #fff;
  background-color: #0ea5e9;
  border-color: #0ea5e9;
}

.portfolio-upl-btn-primary.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.85;
}

.portfolio-upl-btn-primary.is-loading::after {
  content: "";
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-top-color: transparent;
  border-radius: 50%;
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
  animation: spin 0.8s linear infinite;
}

body[data-theme="dark"] .portfolio-upl-card {
  background: #0f172a;
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

body[data-theme="dark"] .portfolio-upl-logo-circle {
  background: rgba(56, 189, 248, 0.16);
}

body[data-theme="dark"] .portfolio-upl-logo-circle svg {
  fill: #38bdf8;
}

body[data-theme="dark"] .portfolio-upl-close:hover {
  background: rgba(56, 189, 248, 0.15);
}

body[data-theme="dark"] .portfolio-upl-close svg {
  fill: #cbd5e1;
}

body[data-theme="dark"] .portfolio-upl-title {
  color: #f8fafc;
}

body[data-theme="dark"] .portfolio-upl-description {
  color: #94a3b8;
}

body[data-theme="dark"] .portfolio-upl-area {
  border-color: rgba(148, 163, 184, 0.55);
  background: rgba(15, 23, 42, 0.45);
}

body[data-theme="dark"] .portfolio-upl-area:hover {
  border-color: #38bdf8;
  background: rgba(15, 23, 42, 0.62);
}

body[data-theme="dark"] .portfolio-upl-area-title {
  color: #e2e8f0;
}

body[data-theme="dark"] .portfolio-upl-area-description {
  color: #94a3b8;
}

body[data-theme="dark"] .portfolio-upl-area-description strong {
  color: #22d3ee;
}

body[data-theme="dark"] .portfolio-upl-btn-secondary {
  border-color: rgba(148, 163, 184, 0.45);
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.55);
}

.portfolio-modal-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  gap: 8px;
}

.portfolio-modal-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--stroke);
}

#portfolio-upload-close {
  z-index: 2;
  cursor: pointer;
}

.portfolio-upload-loading {
  margin-top: 12px;
}

.portfolio-loading-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.portfolio-loading-dot {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #d1d5db;
  animation: portfolioPulse 1.1s ease-in-out infinite;
}

.portfolio-loading-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portfolio-loading-line {
  height: 20px;
  border-radius: 999px;
  background: #d1d5db;
  animation: portfolioPulse 1.1s ease-in-out infinite;
}

.portfolio-loading-line.w1 { width: 112px; }
.portfolio-loading-line.w2 { width: 144px; }

@keyframes portfolioPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

body[data-theme="dark"] .portfolio-loading-dot,
body[data-theme="dark"] .portfolio-loading-line {
  background: rgba(148, 163, 184, 0.38);
}

.portfolio-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  cursor: zoom-in;
}

.portfolio-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.portfolio-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  border: none;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.portfolio-item:hover .portfolio-remove,
.portfolio-item:focus-within .portfolio-remove {
  opacity: 1;
}

.portfolio-limit-note {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.portfolio-upload-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

#portfolio-upload-row.is-hidden {
  display: none !important;
}

#portfolio-input {
  display: none;
}

#portfolio-open-upload {
  min-width: 160px;
}

#portfolio-selection-hint {
  margin-top: 8px;
  margin-bottom: 2px;
}

.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  z-index: 50;
}

body:not([data-theme="dark"]) .toast {
  background: rgba(15, 23, 42, 0.9);
}

.toast.is-hidden {
  display: none;
}

.error-toast {
  position: fixed;
  left: 0;
  bottom: 16px;
  z-index: 6000;
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.34s ease, opacity 0.34s ease;
}

.error-toast.is-open {
  transform: translateX(0);
  opacity: 1;
}

.error-toast-card {
  width: min(360px, calc(100vw - 28px));
  padding: 6px 10px;
  border-left: 5px solid #ef4444;
  border-radius: 0 15px 15px 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  background: linear-gradient(to right, rgba(247, 87, 87, 0.45), rgba(247, 87, 87, 0.24) 50%, rgba(247, 87, 87, 0.35));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.error-toast-card span {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.error-toast-card svg {
  height: 28px;
  min-width: 28px;
  margin-left: 10px;
  margin-top: 0;
  fill: #ef4444;
}

.error-toast-card p {
  margin: 0 0 0 16px;
  color: #fff;
  font-size: 14px;
  line-height: 1.3;
  display: flex;
  align-items: center;
  min-height: 44px;
}

.calendar {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 12px;
}

#calendar-card {
  max-width: 860px;
}

.calendar-sync-panel,
.calendar-settings-group {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 12px;
  background: rgba(148, 163, 184, 0.08);
}

.settings-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.settings-group-head h4 {
  margin: 0;
}

.icon-info-btn {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(14, 165, 233, 0.55);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(16, 185, 129, 0.14));
  color: #0369a1;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.icon-info-btn:hover {
  transform: translateY(-1px) scale(1.04);
  border-color: rgba(14, 165, 233, 0.78);
  box-shadow: 0 14px 34px rgba(14, 165, 233, 0.24);
}

#calendar-sync-info {
  position: relative;
}

#calendar-sync-info::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  border: 1px solid rgba(14, 165, 233, 0.28);
  animation: infoPulse 2.2s ease-out infinite;
  pointer-events: none;
}

@keyframes infoPulse {
  0% {
    opacity: 0.8;
    transform: scale(0.86);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.28);
  }
}

body[data-theme="dark"] .icon-info-btn {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.28), rgba(16, 185, 129, 0.18));
  color: #bae6fd;
}

.calendar-export-box {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(14, 165, 233, 0.34);
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(16, 185, 129, 0.08));
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.1);
}

.calendar-export-box strong {
  display: block;
  margin-bottom: 4px;
}

.calendar-export-box .hint {
  margin: 0;
}

.calendar-export-box-standalone {
  margin: 12px 0 16px;
}

.calendar-feed-copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.calendar-feed-copy-row input {
  min-width: 0;
}

.calendar-subscribe-help {
  border-top: 1px solid rgba(14, 165, 233, 0.22);
  padding-top: 8px;
}

.calendar-subscribe-help summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 800;
  list-style: none;
}

.calendar-subscribe-help summary::-webkit-details-marker {
  display: none;
}

.calendar-subscribe-help summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 900;
}

.calendar-subscribe-help[open] summary::after {
  content: "−";
}

.calendar-subscribe-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.calendar-subscribe-grid article {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.58);
}

.calendar-subscribe-grid h5,
.calendar-subscribe-grid p {
  margin: 0;
}

.calendar-subscribe-grid h5 {
  margin-bottom: 4px;
  font-size: 0.88rem;
}

.calendar-subscribe-grid p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

body[data-theme="dark"] .calendar-export-box {
  border-color: rgba(56, 189, 248, 0.42);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(16, 185, 129, 0.12));
}

body[data-theme="dark"] .calendar-subscribe-grid article {
  background: rgba(15, 23, 42, 0.38);
}

.calendar-connection {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.82);
}

body[data-theme="dark"] .calendar-connection {
  background: rgba(15, 23, 42, 0.45);
}

.calendar-connection.is-error {
  border-color: rgba(239, 68, 68, 0.45);
}

.calendar-connection strong {
  display: block;
  margin-bottom: 4px;
}

.calendar-connection p {
  margin: 0;
}

.calendar-help-content {
  max-width: 720px;
}

.calendar-help-list {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.calendar-help-list article {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 12px;
  background: rgba(148, 163, 184, 0.08);
}

.calendar-help-list h4,
.calendar-help-list p {
  margin: 0;
}

.calendar-help-list h4 {
  margin-bottom: 5px;
}

body[data-theme="dark"] .calendar {
  background: rgba(15, 23, 42, 0.5);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.calendar-header button {
  background: transparent;
  border: 1px solid var(--stroke);
  color: var(--text);
  border-radius: 8px;
  padding: 4px 10px;
  cursor: pointer;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-grid.is-year-view {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.calendar-month {
  text-align: left;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  padding: 12px;
  cursor: pointer;
  min-height: 78px;
}

.calendar-month strong {
  display: block;
  text-transform: capitalize;
  margin-bottom: 4px;
}

.calendar-month span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
}

body[data-theme="dark"] .calendar-month {
  background: rgba(15, 23, 42, 0.45);
}

.calendar-day {
  aspect-ratio: 1/1;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid transparent;
  cursor: pointer;
}

body[data-theme="dark"] .calendar-day {
  background: rgba(15, 23, 42, 0.4);
}

.calendar-day.is-free {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.4);
  color: #065f46;
}

.calendar-day.is-request {
  background: rgba(251, 191, 36, 0.2);
  border-color: rgba(251, 191, 36, 0.5);
  color: #92400e;
}

.calendar-day.is-appointment {
  background: rgba(251, 113, 133, 0.2);
  border-color: rgba(251, 113, 133, 0.5);
  color: #9f1239;
}

.calendar-day.is-completed {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.9);
  color: #047857;
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.9);
}

body[data-theme="dark"] .calendar-day.is-completed {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(74, 222, 128, 0.95);
  color: #86efac;
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.95);
}

.calendar-day.is-muted {
  opacity: 0.35;
  cursor: default;
}

.calendar-legend {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--muted);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot.free { background: var(--positive); }
.dot.busy { background: var(--danger); }
.dot.request { background: var(--warning); }

.request-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.tab {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--stroke);
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.tab.is-active {
  background: rgba(34, 211, 238, 0.2);
  color: var(--text);
  border-color: rgba(34, 211, 238, 0.4);
}

.request-card {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.9);
}

.request-card.is-selected {
  border-color: rgba(14, 165, 233, 0.6);
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}

.request-card.is-completed {
  border-color: rgba(16, 185, 129, 0.88);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.45);
}

body[data-theme="dark"] .request-card {
  background: rgba(15, 23, 42, 0.6);
}

body[data-theme="dark"] .request-card.is-completed {
  border-color: rgba(74, 222, 128, 0.95);
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.45);
}

.request-card p {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 4px 0;
}

.request-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.request-actions .btn.small {
  min-height: 34px;
  border-radius: 10px;
  font-weight: 700;
  padding: 7px 12px;
}

.invoice-logo-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 10px;
  align-items: center;
}

#invoice-logo-preview {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  object-fit: cover;
  background: rgba(15, 23, 42, 0.18);
}

#invoice-logo-input {
  display: none;
}

.invoice-pos-row {
  grid-template-columns: minmax(170px, 2.2fr) minmax(58px, 0.7fr) minmax(110px, 0.95fr) minmax(90px, 0.9fr) minmax(132px, auto);
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.invoice-pos-head {
  display: grid;
  grid-template-columns: minmax(170px, 2.2fr) minmax(58px, 0.7fr) minmax(110px, 0.95fr) minmax(90px, 0.9fr) minmax(132px, auto);
  gap: 8px;
  font-size: 0.78rem;
  margin-bottom: 4px;
  align-items: center;
}

.invoice-pos-row .field input:not([type="checkbox"]) {
  height: 40px;
  min-height: 40px;
  padding: 0 0.72rem;
  line-height: 1.2;
  box-shadow: 0 0.28rem 0 rgba(125, 165, 208, 0.28);
}

.invoice-pos-row [data-remove-pos] {
  align-self: center;
  min-height: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}

.invoice-pos-row .field {
  display: flex;
  align-items: center;
  min-width: 0;
}

.invoice-pos-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.invoice-pos-actions .btn.small {
  min-height: 40px;
  height: 40px;
  min-width: 38px;
  padding: 0 10px;
}

.invoice-pos-actions [data-drag-handle] {
  cursor: grab;
}

.invoice-pos-row.is-dragging {
  opacity: 0.62;
  outline: 1px dashed rgba(56, 189, 248, 0.8);
  outline-offset: 2px;
}

body[data-theme="dark"] .invoice-pos-row .field input:not([type="checkbox"]) {
  box-shadow: 0 0.28rem 0 rgba(8, 13, 24, 0.62);
}

.invoice-preview {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  line-height: 1.45;
}

body[data-theme="dark"] .invoice-preview {
  background: rgba(15, 23, 42, 0.5);
}

.invoice-preview-frame-wrap {
  min-height: 700px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8px;
}

#invoice-live-preview-frame {
  width: 100%;
  height: 100%;
  min-height: 650px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: #ffffff;
}

body[data-theme="dark"] #invoice-live-preview-frame {
  background: #0b1220;
}

.invoice-preview-status {
  min-height: 18px;
}

#invoice-modal .invoice-modal-content {
  max-width: none;
  width: min(1700px, calc(100vw - 20px));
  height: min(95vh, 1100px);
  max-height: 95vh;
  overflow-y: auto;
  padding-bottom: 16px;
  position: relative;
  z-index: 5601;
}

#invoice-step-edit {
  display: grid;
  grid-template-areas: "left preview";
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.32fr);
  gap: 20px;
  align-items: start;
  align-content: start;
}

#invoice-edit-left {
  grid-area: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: flex-start;
  align-items: stretch;
  align-self: start;
  min-width: 0;
}

#invoice-edit-left > .inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

#invoice-edit-left > .inline > .field {
  min-width: 0;
}

#invoice-live-preview-wrap {
  grid-area: preview;
  position: sticky;
  top: 4px;
  align-self: start;
}

#invoice-live-preview-wrap .muted {
  margin: 0;
  font-size: 0.8rem;
}

#invoice-position-list {
  max-height: 50vh;
  overflow-y: auto;
  padding: 8px 4px 16px 0;
}

#invoice-to-address {
  resize: none;
}

#invoice-add-position {
  margin-top: 10px;
}

.invoice-meta-inline {
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px;
}

.invoice-adjustment-wrap {
  display: grid;
  gap: 8px;
}

.invoice-adjustment-toggle {
  justify-self: start;
}

.invoice-adjustment-wrap .invoice-meta-inline.is-hidden {
  display: none !important;
}

#invoice-edit-left .request-actions {
  position: static;
  background: transparent;
  padding-top: 0;
  margin-top: 4px;
  z-index: 1;
}

@media (max-width: 980px) {
  #invoice-modal .invoice-modal-content {
    width: min(98vw, 98vw);
    height: min(95vh, 95vh);
  }
  #invoice-step-edit {
    grid-template-areas:
      "left"
      "preview";
    grid-template-columns: 1fr;
  }
  #invoice-edit-left > .inline {
    grid-template-columns: 1fr;
  }
  .invoice-meta-inline {
    grid-template-columns: 1fr;
  }
  #invoice-live-preview-wrap {
    grid-column: 1;
    grid-row: auto;
    position: static;
  }
  .invoice-preview-frame-wrap {
    min-height: 420px;
  }
  #invoice-live-preview-frame {
    min-height: 360px;
  }
}

.invoice-filter-row {
  align-items: end;
  gap: 10px;
}

.invoice-reset-wrap {
  min-width: 220px;
}

#invoice-list .request-actions .btn.small.is-delete {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.32);
  color: #991b1b;
}

body[data-theme="dark"] #invoice-list .request-actions .btn.small.is-delete {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

#request-list .request-actions .btn.small.is-approve {
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #166534;
}

#request-list .request-actions .btn.small.is-reject {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.32);
  color: #991b1b;
}

#request-list .request-actions .btn.small.is-delete {
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--muted);
}

body[data-theme="dark"] #request-list .request-actions .btn.small.is-approve {
  color: #bbf7d0;
}

body[data-theme="dark"] #request-list .request-actions .btn.small.is-reject {
  color: #fecaca;
}

body[data-theme="dark"] #request-list .request-actions .btn.small.is-delete {
  color: #cbd5e1;
}

#request-form input,
#request-form select,
#request-form textarea,
#report-form select,
#report-form textarea,
#reply-form textarea {
  border-radius: 1rem;
  border: 1px solid rgba(56, 189, 248, 0.18);
  background-color: rgba(242, 249, 255, 0.96);
  padding: 0.9rem 0.95rem;
  box-shadow: 0 0.38rem 0 rgba(125, 165, 208, 0.32);
  transition: box-shadow 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}

body[data-theme="dark"] #request-form input,
body[data-theme="dark"] #request-form select,
body[data-theme="dark"] #request-form textarea,
body[data-theme="dark"] #report-form select,
body[data-theme="dark"] #report-form textarea,
body[data-theme="dark"] #reply-form textarea {
  background-color: rgba(15, 23, 42, 0.85);
  color: var(--text);
  border-color: rgba(56, 189, 248, 0.28);
  box-shadow: 0 0.38rem 0 rgba(8, 13, 24, 0.78);
}

#request-form input:focus,
#request-form select:focus,
#request-form textarea:focus,
#report-form select:focus,
#report-form textarea:focus,
#reply-form textarea:focus {
  outline: 2px solid rgba(56, 189, 248, 0.58);
  outline-offset: 2px;
  border-color: rgba(14, 165, 233, 0.64);
  box-shadow: 0 0.25rem 0 rgba(56, 189, 248, 0.2);
}

#reply-message {
  min-height: 260px;
  resize: vertical;
  line-height: 1.5;
}

#reply-footer {
  min-height: 130px;
  resize: none;
  line-height: 1.45;
  opacity: 0.92;
  cursor: default;
}

.request-summary {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(148, 163, 184, 0.1);
  display: grid;
  gap: 4px;
}

.request-summary-title {
  margin: 0 0 2px;
  font-weight: 700;
  color: var(--text);
}

.request-summary p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

body[data-theme="dark"] .request-summary {
  background: rgba(15, 23, 42, 0.5);
}

.request-actions.is-hidden {
  display: none;
}

.appointments-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.appointments-panel {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 12px;
  background: rgba(148, 163, 184, 0.08);
  overflow: visible;
}

body[data-theme="dark"] .appointments-panel {
  background: rgba(30, 41, 59, 0.35);
}

.appointments-panel-head {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--stroke);
}

.appointments-panel-head h4 {
  margin: 0;
  font-size: 0.95rem;
}

#appointment-form .field {
  min-width: 0;
  overflow: visible;
}

#appointment-form input[type="date"],
#appointment-form input[type="time"] {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-inline-size: 0 !important;
  inline-size: 100% !important;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box !important;
  padding-right: 12px !important;
}

.creator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.creator-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.creator-card.preview-milky {
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.2), rgba(14, 165, 233, 0.14)) !important;
  backdrop-filter: blur(7px) saturate(1.24);
  -webkit-backdrop-filter: blur(7px) saturate(1.24);
  border-color: rgba(56, 189, 248, 0.5);
  position: relative;
  overflow: hidden;
}

.creator-card.preview-milky > * {
  filter: blur(2px);
  opacity: 0.78;
  pointer-events: none;
  user-select: none;
}

.creator-card.preview-milky::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(34, 211, 238, 0.05));
  pointer-events: none;
}

body[data-theme="dark"] .creator-card.preview-milky {
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.22), rgba(15, 23, 42, 0.42)) !important;
  border-color: rgba(56, 189, 248, 0.44);
}

body[data-theme="dark"] .creator-card {
  background: rgba(15, 23, 42, 0.6);
}

body:not([data-theme="dark"]) .creator-card {
  background: rgba(255, 255, 255, 0.9);
}

.creator-card.teaser {
  position: relative;
  overflow: hidden;
  min-height: 180px;
}

.creator-card.teaser .teaser-blur {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(16, 185, 129, 0.2));
  filter: blur(6px);
}

.creator-card.teaser .teaser-text {
  position: relative;
  z-index: 1;
  font-weight: 700;
  text-align: center;
  color: var(--text);
  padding: 24px 12px;
  line-height: 1.4;
  display: grid;
  place-items: center;
  height: 100%;
}

.creator-menu {
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 8px;
  background: var(--surface);
  min-width: 230px;
  align-self: start;
  position: sticky;
  top: 96px;
  height: fit-content;
}

body[data-theme="dark"] .creator-menu {
  background: rgba(2, 6, 23, 0.72);
  border-color: rgba(148, 163, 184, 0.24);
}

.creator-menu-primary {
  display: grid;
  gap: 4px;
}

.creator-menu-mobile-toggle {
  display: none;
  width: 100%;
  border: 1px solid var(--stroke);
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
}

.creator-menu .nav-btn {
  border: none;
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 600;
}

.creator-menu .nav-btn .nav-icon {
  width: 18px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: transparent;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1;
  opacity: 1;
}

body[data-theme="dark"] .creator-menu .nav-btn .nav-icon {
  color: #ffffff;
}

body[data-theme="light"] .creator-menu .nav-btn .nav-icon {
  color: #0f172a;
}

.creator-menu .nav-btn .nav-icon svg {
  width: 16px;
  height: 16px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-theme="dark"] .creator-menu .nav-btn {
  color: #dbeafe;
}

.creator-menu .nav-btn:hover {
  background: rgba(56, 189, 248, 0.08);
  transform: none;
}

.creator-menu .nav-btn.is-active {
  background: rgba(56, 189, 248, 0.12);
  box-shadow: inset 3px 0 0 rgba(14, 165, 233, 0.85);
}

.creator-menu .nav-btn.has-lock-banner {
  position: relative;
  overflow: hidden;
  padding-right: 62px;
}

.menu-lock-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(120deg, #b91c1c, #ef4444);
  border-bottom-left-radius: 8px;
  padding: 2px 6px 2px 6px;
}

.feature-lock-pill {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fee2e2;
  border: 1px solid rgba(248, 113, 113, 0.65);
  background: rgba(127, 29, 29, 0.65);
  border-radius: 999px;
  padding: 2px 7px;
  vertical-align: middle;
}

.profile-upgrade-wrap {
  margin-top: 10px;
}

.upgrade-cta {
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.25), 0 0 0 1px rgba(34, 211, 238, 0.24);
}

#invoices-card {
  position: relative;
  overflow: hidden;
}

.feature-lock-banner {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(120deg, #b91c1c, #ef4444);
  padding: 5px 10px;
  border-bottom-right-radius: 10px;
}

.feature-lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  gap: 10px;
  text-align: center;
  padding: 20px;
  background: rgba(7, 12, 25, 0.78);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.feature-lock-overlay h4 {
  margin: 0;
}

.feature-lock-overlay p {
  margin: 0;
  color: var(--muted);
  max-width: 520px;
}

.invoice-action-locked {
  position: relative;
  overflow: visible;
}

.invoice-action-locked::before {
  content: "Gesperrt";
  position: absolute;
  top: 4px;
  right: 4px;
  border-radius: 8px;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: #fff;
  background: linear-gradient(120deg, #b91c1c, #ef4444);
  padding: 2px 6px;
  box-shadow: 0 4px 10px rgba(185, 28, 28, 0.34);
  pointer-events: none;
}

.subscription-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.subscription-current-hero {
  margin: 4px 0 14px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(148, 163, 184, 0.09);
}

.subscription-current-hero strong {
  display: block;
  margin-top: 4px;
  font-size: 1.28rem;
  line-height: 1.15;
}

.subscription-current-hero.plan-free strong { color: #93c5fd; }
.subscription-current-hero.plan-starter strong { color: #34d399; }
.subscription-current-hero.plan-pro strong { color: #f59e0b; }
.subscription-current-hero.plan-studio strong { color: #c084fc; }

.subscription-plan {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 14px;
  background: rgba(148, 163, 184, 0.08);
}

.subscription-plan[data-plan="starter"] { background: linear-gradient(145deg, rgba(16, 185, 129, 0.12), rgba(6, 78, 59, 0.08)); }
.subscription-plan[data-plan="pro"] { background: linear-gradient(145deg, rgba(245, 158, 11, 0.16), rgba(120, 53, 15, 0.08)); }
.subscription-plan[data-plan="studio"] { background: linear-gradient(145deg, rgba(192, 132, 252, 0.16), rgba(88, 28, 135, 0.08)); }

.subscription-plan[data-plan="starter"].is-active { border-color: rgba(16, 185, 129, 0.8); box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.35) inset; }
.subscription-plan[data-plan="pro"].is-active { border-color: rgba(245, 158, 11, 0.82); box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.35) inset; }
.subscription-plan[data-plan="studio"].is-active { border-color: rgba(192, 132, 252, 0.82); box-shadow: 0 0 0 1px rgba(192, 132, 252, 0.35) inset; }

.subscription-plan h4 {
  margin: 0 0 4px;
}

.subscription-price {
  margin: 8px 0;
  font-weight: 700;
}

.subscription-features {
  margin: 0 0 12px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.85rem;
}

.menu-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-left: 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  background: #ef4444;
  color: #fff;
}

.menu-counter.is-hidden {
  display: none !important;
}

.tab-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-left: 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  background: rgba(56, 189, 248, 0.18);
  color: var(--text);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.tab-counter.is-hidden {
  display: none !important;
}

.creator-menu .nav-btn.is-alert {
  border-color: rgba(239, 68, 68, 0.8);
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.35), 0 0 16px rgba(239, 68, 68, 0.45);
  animation: menuPulseRed 1.35s ease-in-out infinite;
}

.request-tabs .tab.is-alert {
  border-color: rgba(239, 68, 68, 0.75);
  color: #ef4444;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.25);
}

@keyframes menuPulseRed {
  0% { box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.2), 0 0 0 rgba(239, 68, 68, 0.0); }
  50% { box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.4), 0 0 20px rgba(239, 68, 68, 0.55); }
  100% { box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.2), 0 0 0 rgba(239, 68, 68, 0.0); }
}

.creator-dashboard {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.creator-dashboard .profile-hero {
  grid-column: 1 / -1;
}

.creator-dashboard .creator-menu {
  grid-column: 1;
}

.creator-dashboard .grid-3 {
  grid-column: 2;
}

.stats-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.stats-kpi {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 20px;
  padding: 14px;
  background: #ffffff;
  box-shadow: 0 10px 15px -3px rgba(2, 6, 23, 0.13), 0 4px 6px -2px rgba(2, 6, 23, 0.08);
}

.stats-kpi-header {
  display: flex;
  align-items: center;
}

.stats-kpi-icon {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.9rem;
}

.stats-kpi-icon svg {
  width: 14px;
  height: 14px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-theme="light"] .stats-kpi-icon {
  background: #0f172a;
  color: #ffffff;
}

body[data-theme="dark"] .stats-kpi-icon {
  background: #ffffff;
  color: #0f172a;
}

.stats-kpi-label {
  margin: 0 0 0 0.5rem;
  color: #374151;
  font-size: 0.95rem;
  font-weight: 600;
}

.stats-kpi-percent {
  margin: 0 0 0 auto;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
}

.stats-kpi-percent.is-positive {
  color: #059669;
}

.stats-kpi-percent.is-negative {
  color: #dc2626;
}

.stats-kpi-percent.is-neutral {
  color: #6b7280;
}

.stats-kpi strong {
  display: block;
  margin-top: 8px;
  font-size: 1.65rem;
  font-family: "Space Grotesk", sans-serif;
  color: #1f2937;
}

.stats-kpi-delta {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 700;
}

.stats-kpi-delta.is-positive {
  color: #22c55e;
}

.stats-kpi-delta.is-negative {
  color: #f87171;
}

.stats-kpi-delta.is-neutral {
  color: var(--muted);
}

.stats-kpi-range {
  position: relative;
  background-color: #e5e7eb;
  width: 100%;
  height: 0.5rem;
  border-radius: 0.25rem;
  margin-top: 8px;
}

.stats-kpi-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  border-radius: 0.25rem;
  transition: width 0.35s ease;
}

.stats-kpi-fill.is-positive {
  background-color: #10b981;
}

.stats-kpi-fill.is-negative {
  background-color: #ef4444;
}

.stats-kpi-fill.is-neutral {
  background-color: #94a3b8;
}

body[data-theme="dark"] .stats-kpi {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.35);
}

body[data-theme="dark"] .stats-kpi-label {
  color: #dbeafe;
}

body[data-theme="dark"] .stats-kpi strong {
  color: #f8fafc;
}

.stats-chart-controls {
  display: grid;
  gap: 10px;
  margin-bottom: 8px;
}

#stats-chart {
  width: 100%;
  height: 300px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.1), rgba(15, 23, 42, 0.08));
  cursor: ew-resize;
}

@media (max-width: 900px) {
  #stats-chart {
    height: 240px;
  }
}

.settings-group {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 12px;
  background: rgba(148, 163, 184, 0.06);
  display: grid;
  gap: 10px;
}

.settings-group h4 {
  margin: 0;
  font-size: 0.95rem;
  font-family: "Space Grotesk", sans-serif;
}

.social-settings-group {
  margin-top: 4px;
}

.actions-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.twofa-qr-wrap {
  display: grid;
  place-items: center;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 10px;
  background: rgba(148, 163, 184, 0.06);
}

#creator-2fa-qr {
  width: 220px;
  height: 220px;
  display: grid;
  place-items: center;
}

#creator-2fa-qr canvas,
#creator-2fa-qr img {
  width: 220px !important;
  height: 220px !important;
  max-width: 220px;
  max-height: 220px;
}

.media-profile-preview {
  position: relative;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.media-cover {
  height: 150px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.35), rgba(16, 185, 129, 0.35));
  background-size: cover;
  background-position: center;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.media-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  margin-top: -44px;
  margin-left: 14px;
  border: 3px solid var(--surface);
  object-fit: cover;
  background: var(--surface-2);
  cursor: pointer;
  position: relative;
  z-index: 8;
}

.media-hover-tag {
  position: absolute;
  z-index: 6;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 10px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.media-hover-tag-cover {
  top: 10px;
  right: 10px;
  z-index: 6;
}

.media-hover-tag-avatar {
  left: 12px;
  top: 112px;
  z-index: 9;
}

.media-cover:hover,
.media-avatar:hover {
  filter: brightness(1.04);
}

@media (hover: hover) {
  .media-profile-preview:hover .media-hover-tag,
  .media-profile-preview:focus-within .media-hover-tag {
    opacity: 1;
    transform: translateY(0);
  }
}

.media-meta {
  padding: 10px 14px 14px;
}

.media-meta strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
}

.media-meta p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.social-link-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.social-link {
  --social-accent: #0ea5e9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 32px;
  padding: 6px 11px 6px 8px;
  border: 1px solid color-mix(in srgb, var(--social-accent) 28%, var(--stroke));
  border-radius: 999px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--social-accent) 13%, #fff), rgba(255, 255, 255, 0.82));
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  transform: translateY(0);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.social-link svg {
  width: 17px;
  height: 17px;
  color: var(--social-accent);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  flex: 0 0 auto;
  transition: transform 0.18s ease;
}

.social-link svg path,
.social-link svg rect,
.social-link svg circle {
  vector-effect: non-scaling-stroke;
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--social-accent) 56%, var(--stroke));
  box-shadow: 0 12px 30px color-mix(in srgb, var(--social-accent) 18%, transparent);
}

.social-link:hover svg {
  transform: scale(1.08) rotate(-3deg);
}

.social-instagram { --social-accent: #e4405f; }
.social-facebook { --social-accent: #1877f2; }
.social-youtube { --social-accent: #ff0033; }
.social-x { --social-accent: #111827; }
.social-tiktok { --social-accent: #00a3a3; }
.social-website { --social-accent: #0ea5e9; }

.social-facebook svg,
.social-tiktok svg {
  fill: currentColor;
  stroke: none;
}

.social-youtube svg rect {
  fill: currentColor;
  stroke: none;
}

.social-youtube svg path {
  fill: #fff;
  stroke: none;
}

body[data-theme="dark"] .social-link {
  background: linear-gradient(135deg, color-mix(in srgb, var(--social-accent) 18%, rgba(15, 23, 42, 0.94)), rgba(15, 23, 42, 0.82));
}

@media (prefers-reduced-motion: reduce) {
  #calendar-sync-info::after {
    animation: none;
    opacity: 0;
  }

  .social-link,
  .social-link svg {
    transition: none;
  }
  .social-link:hover,
  .social-link:hover svg {
    transform: none;
  }
}

.modal-social-links {
  margin-top: 12px;
}

@media (max-width: 840px) {
  .creator-dashboard {
    grid-template-columns: 1fr;
  }
  .creator-dashboard .creator-menu,
  .creator-dashboard .grid-3,
  .creator-dashboard .profile-hero {
    grid-column: auto;
  }
  .creator-menu {
    position: static;
    min-width: 0;
    width: 100%;
  }
  .creator-menu-mobile-toggle {
    display: block;
  }
  .creator-menu .creator-menu-primary {
    display: none;
  }
  .creator-menu.is-open .creator-menu-primary {
    display: grid;
  }
  .stats-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.creator-section {
  display: none;
}

.creator-section.is-active {
  display: block;
}

.creator-avatar-only {
  width: 96px;
  height: 96px;
  border-radius: 0;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.9);
  align-self: center;
  margin: 6px 0 4px;
}

.creator-card img.creator-avatar-only {
  border-radius: 0 !important;
}

body[data-theme="dark"] .creator-avatar-only {
  border-color: rgba(15, 23, 42, 0.9);
}

.creator-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rating-pill {
  border: 1px solid var(--stroke);
  background: rgba(148, 163, 184, 0.12);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 5600;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal.is-open {
  display: flex;
}

body.invoice-modal-open .topbar,
body.invoice-modal-open .site-footer,
body.invoice-modal-open #faq-fab {
  visibility: hidden !important;
  pointer-events: none !important;
}

body.creator-modal-open .site-footer,
body.creator-modal-open #faq-fab {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.modal-content {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 24px;
  width: min(720px, 100%);
  box-shadow: var(--shadow);
  position: relative;
}

.request-time-modal {
  background: rgba(2, 6, 23, 0.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 5400;
}

.request-time-modal-content {
  width: min(520px, 96vw);
}

.danger-confirm-modal {
  background: rgba(2, 6, 23, 0.48);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 5200;
}

.danger-card {
  overflow: hidden;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  width: min(340px, 92vw);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

.danger-header {
  padding: 1.25rem 1rem 1rem;
  position: relative;
}

.danger-image {
  display: flex;
  margin: 0 auto;
  background: rgba(220, 38, 38, 0.14);
  justify-content: center;
  align-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
}

.danger-image svg {
  color: #ef4444;
  width: 1.5rem;
  height: 1.5rem;
}

.danger-content {
  margin-top: 0.75rem;
  text-align: center;
}

.danger-title {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5rem;
  display: block;
}

.danger-message {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.danger-password-wrap {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.danger-password-wrap input {
  width: 100%;
  border: 1px solid var(--stroke);
  background: rgba(15, 23, 42, 0.04);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.92rem;
}

.danger-password-wrap input:focus {
  outline: none;
  border-color: rgba(239, 68, 68, 0.55);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.danger-password-hint {
  margin: 0;
  font-size: 0.78rem;
  color: #ef4444;
  min-height: 1em;
}

.danger-actions {
  margin-top: 0.85rem;
  display: grid;
  gap: 10px;
}

.danger-confirm-btn {
  display: inline-flex;
  padding: 0.56rem 1rem;
  background: #dc2626;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.4rem;
  font-weight: 600;
  justify-content: center;
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.danger-confirm-btn:hover {
  background: #b91c1c;
}

.danger-cancel-btn {
  display: inline-flex;
  padding: 0.56rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.4rem;
  font-weight: 600;
  justify-content: center;
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.danger-cancel-btn:hover {
  background: #f8fafc;
}

.danger-close {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.3);
  color: #f8fafc;
  font-weight: 700;
  cursor: pointer;
}

.danger-close:hover {
  background: #ef4444;
  color: #fff;
}

.image-modal {
  width: min(560px, 78vw);
  max-height: min(76vh, calc(100dvh - 120px));
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

#image-viewer {
  width: 100%;
  max-height: min(54vh, calc(100dvh - 200px));
  height: auto;
  border-radius: 16px;
  display: block;
  object-fit: contain;
}

.cropper-modal {
  width: min(520px, 100%);
}

.cropper-stage {
  position: relative;
  display: grid;
  place-items: center;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 12px;
}

body[data-theme="dark"] .cropper-stage {
  background: rgba(15, 23, 42, 0.6);
}

#cropper-canvas {
  border-radius: 12px;
  background: #0f172a;
  cursor: grab;
}

#cropper-canvas:active {
  cursor: grabbing;
}

.cropper-mask {
  position: absolute;
  inset: 18px;
  border: 2px dashed rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  pointer-events: none;
}

.cropper-mask.is-circle {
  border-radius: 999px;
}

.cropper-controls {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(226, 232, 240, 0.38);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.22);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #f8fafc;
  z-index: 3;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.modal-close:hover {
  transform: scale(1.04);
  background: rgba(239, 68, 68, 0.88);
  border-color: rgba(254, 202, 202, 0.65);
}

#creator-modal .modal-content {
  width: min(780px, calc(100vw - 24px));
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, #0ea5e9), var(--surface));
  scrollbar-gutter: stable;
}

.modal-body {
  display: grid;
  gap: 16px;
}

.modal-hero {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
}

.modal-cover {
  height: 160px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--stroke);
}

.modal-hero img {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  object-fit: cover;
  border: 1px solid var(--stroke);
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-category-details {
  border: 1px solid rgba(56, 189, 248, 0.26);
  border-radius: 16px;
  background: rgba(14, 165, 233, 0.06);
  overflow: hidden;
}

.modal-category-details summary {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.modal-category-details summary::-webkit-details-marker {
  display: none;
}

.modal-category-details summary::after {
  content: "⌄";
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.34);
  color: var(--accent-2);
  transition: transform 0.18s ease;
}

.modal-category-details[open] summary::after {
  transform: rotate(180deg);
}

.modal-category-details .modal-tags {
  padding: 0 14px 14px;
}

.modal-category-details summary span:last-child {
  margin-left: auto;
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  color: var(--accent-2);
  font-size: 0.78rem;
}

.modal-portfolio {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.modal-portfolio img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--stroke);
}

.chat-panel {
  position: fixed;
  right: 24px;
  bottom: 72px;
  width: min(360px, 92vw);
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  z-index: 130;
  overflow: hidden;
}

.onboarding {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  padding: 24px;
}

.onboarding.is-hidden {
  display: none;
}

.onboarding-card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 24px;
  width: min(520px, 100%);
  max-height: 90dvh;
  overflow: auto;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.onboarding-action {
  padding: 12px;
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid var(--stroke);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body[data-theme="dark"] .onboarding-action {
  background: rgba(15, 23, 42, 0.6);
}

.onboarding-action .hint {
  margin: 0;
}

.onboarding-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, transparent, var(--surface) 30%);
  padding-top: 10px;
}

.onboard-image-preview {
  border: 1px solid var(--stroke);
  background: rgba(148, 163, 184, 0.12);
  object-fit: cover;
}

.onboard-image-preview.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
}

.onboard-image-preview.thumb {
  width: min(100%, 220px);
  height: 124px;
  border-radius: 12px;
}

.suggestions {
  position: relative;
}

.suggestions-list {
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  max-height: 180px;
  overflow-y: auto;
  z-index: 10;
  box-shadow: var(--shadow);
}

.suggestion-item {
  padding: 8px 10px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text);
}

.suggestion-item:hover {
  background: rgba(148, 163, 184, 0.15);
}

.location-verify-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.location-verify-status {
  font-size: 0.8rem;
  color: var(--muted);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 4px 10px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.location-verify-status.is-pending {
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.4);
}

.location-verify-status.is-ok {
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.12);
}

.location-verify-status.is-fail {
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.12);
}

.results-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.results-sort {
  min-width: 260px;
}

.results-sort label {
  font-size: 0.78rem;
}

.results-sort select {
  width: 100%;
}

.results-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.results-toolbar-meta {
  min-width: 0;
}

.results-toolbar-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(125, 211, 252, 0.88);
}

.results-toolbar-title {
  margin: 2px 0 0;
  font-weight: 700;
  color: var(--text);
}

@media (max-width: 760px) {
  .results-head {
    align-items: stretch;
    flex-direction: column;
  }

  .results-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .results-sort {
    min-width: 0;
    width: 100%;
  }

  .subscription-grid {
    grid-template-columns: 1fr;
  }

  .calendar-feed-copy-row {
    grid-template-columns: 1fr;
  }

  .calendar-feed-copy-row .btn {
    width: 100%;
  }

  .calendar-subscribe-grid {
    grid-template-columns: 1fr;
  }
}


.chat-panel.is-open {
  display: flex;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(148, 163, 184, 0.12);
}

body[data-theme="dark"] .chat-header {
  background: rgba(15, 23, 42, 0.6);
}

.chat-title {
  font-weight: 700;
}

.chat-sub {
  font-size: 0.8rem;
  color: var(--muted);
}

.chat-presence {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.presence-item {
  font-size: 0.75rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.presence-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.presence-dot.online {
  background: #22c55e;
  box-shadow: 0 0 0 rgba(34, 197, 94, 0.6);
  animation: presencePing 1.35s ease-out infinite;
}

.presence-dot.offline {
  background: #ef4444;
}

@keyframes presencePing {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.chat-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
}

.chat-bubble {
  padding: 10px 12px;
  border-radius: 14px;
  max-width: 80%;
  background: rgba(148, 163, 184, 0.2);
  align-self: flex-start;
  font-size: 0.88rem;
  opacity: 1;
  transform: translateY(0);
}

.chat-text {
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-time {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  line-height: 1.1;
  opacity: 0.75;
}

.chat-bubble.me .chat-time {
  opacity: 0.85;
}

.chat-bubble.is-enter {
  opacity: 0;
  transform: translateY(8px) scale(0.985);
}

.chat-bubble.is-enter.is-show {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 220ms ease, transform 220ms ease;
}

.chat-bubble.me {
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #04121f;
  align-self: flex-end;
}

.chat-input {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--stroke);
}

.chat-input input {
  flex: 1;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.9);
}

.chat-email {
  width: 100%;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.9);
}

.chat-auth-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.chat-auth-step.is-hidden {
  display: none;
}

.chat-auth-buttons {
  margin-top: 0;
}

#chat-message.is-hidden {
  display: none !important;
}

#chat-form button.is-hidden {
  display: none !important;
}

body[data-theme="dark"] .chat-email {
  background: rgba(15, 23, 42, 0.6);
  color: var(--text);
}

body[data-theme="dark"] .chat-input input {
  background: rgba(15, 23, 42, 0.6);
  color: var(--text);
}

.creator-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
}

.creator-cover {
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.creator-cover img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.creator-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid #fff;
  position: absolute;
  bottom: -22px;
  left: 12px;
  background: #fff;
  object-fit: cover;
}

body[data-theme="dark"] .creator-avatar {
  border-color: rgba(15, 23, 42, 0.9);
  background: rgba(15, 23, 42, 0.9);
}

.creator-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
}

.creator-line {
  display: block;
}

.creator-company {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--text);
  margin: 0 0 2px 0;
}

.creator-person-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 3px;
}

.creator-meta.creator-line {
  display: block;
  justify-content: normal;
}

.status-tag {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.status-tag.free { background: rgba(52, 211, 153, 0.2); color: #86efac; }
.status-tag.busy { background: rgba(251, 113, 133, 0.2); color: #fecdd3; }
.status-tag.maybe { background: rgba(251, 191, 36, 0.2); color: #fde68a; }

body:not([data-theme="dark"]) .status-tag {
  font-weight: 700;
  border: 1px solid transparent;
}

body:not([data-theme="dark"]) .status-tag.free {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(5, 150, 105, 0.35);
  color: #065f46;
}

body:not([data-theme="dark"]) .status-tag.busy {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(220, 38, 38, 0.32);
  color: #991b1b;
}

body:not([data-theme="dark"]) .status-tag.maybe {
  background: rgba(245, 158, 11, 0.24);
  border-color: rgba(217, 119, 6, 0.34);
  color: #92400e;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

#view-help {
  padding-bottom: 110px;
}

#view-help .section-header {
  margin-top: 56px;
}

.help-card-center {
  text-align: center;
}

.help-list {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.help-card-center .help-list {
  list-style-position: inside;
  padding-left: 0;
}

.help-examples {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.help-example-card {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 10px;
  background: rgba(148, 163, 184, 0.08);
}

.help-example-card strong {
  display: block;
  margin-bottom: 4px;
}

.help-back-btn {
  position: fixed;
  left: 22px;
  bottom: 96px;
  z-index: 80;
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 16px 8px 9px;
  border: 1px solid rgba(14, 165, 233, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(14px);
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.help-back-btn::before {
  content: "←";
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0ea5e9, #10b981);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(14, 165, 233, 0.25);
  transition: transform 0.18s ease;
}

.help-back-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 165, 233, 0.62);
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.18);
}

.help-back-btn:hover::before {
  transform: translateX(-2px);
}

#view-help.is-active .help-back-btn {
  display: inline-flex;
}

body[data-theme="dark"] .help-back-btn {
  background: rgba(15, 23, 42, 0.82);
  border-color: rgba(56, 189, 248, 0.36);
}

.faq-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(147deg, #22d3ee 0%, #2563eb 74%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 16px rgba(2, 6, 23, 0.22);
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 90;
  opacity: 0.45;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

.faq-button.is-visible {
  opacity: 0.45;
}

.chat-open .faq-button {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(10px);
}

body.chat-open .site-footer {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

body.chat-open .chat-panel {
  z-index: 6200 !important;
  filter: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

body.chat-open main > #chat-panel {
  filter: none !important;
  transform: none !important;
}

@media (max-width: 760px) {
  body.chat-open .ambient,
  body.chat-open .topbar,
  body.chat-open main > :not(#chat-panel) {
    filter: blur(7px) brightness(0.58);
    transform: translateZ(0);
    pointer-events: none;
    user-select: none;
  }
}

.faq-button.is-hidden-near-footer {
  opacity: 0 !important;
  pointer-events: none;
  transform: translateY(12px);
}

.faq-button svg {
  height: 1.45em;
  fill: #fff;
}

.faq-button:hover {
  opacity: 1;
  box-shadow: 0 14px 24px rgba(2, 6, 23, 0.3);
}

.faq-button:hover svg {
  animation: jello-vertical 0.7s both;
}

.faq-button .tooltip {
  position: absolute;
  top: -20px;
  opacity: 0;
  background: linear-gradient(147deg, #22d3ee 0%, #2563eb 74%);
  color: #fff;
  padding: 5px 10px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition-duration: 0.2s;
  pointer-events: none;
  letter-spacing: 0.4px;
  font-size: 0.76rem;
  font-weight: 700;
}

.faq-button .tooltip::before {
  position: absolute;
  content: "";
  width: 10px;
  height: 10px;
  background-color: #2563eb;
  transform: rotate(45deg);
  bottom: -15%;
  transition-duration: 0.3s;
}

.faq-button:hover .tooltip {
  top: -40px;
  opacity: 1;
  transition-duration: 0.3s;
}

body[data-theme="light"] .faq-button {
  background: linear-gradient(147deg, #38bdf8 0%, #3b82f6 74%);
  box-shadow: 0 10px 16px rgba(30, 64, 175, 0.25);
}

body[data-theme="light"] .faq-button .tooltip {
  background: linear-gradient(147deg, #38bdf8 0%, #3b82f6 74%);
  color: #fff;
}

body[data-theme="light"] .faq-button .tooltip::before {
  background-color: #3b82f6;
}

body[data-theme="dark"] .faq-button {
  background: linear-gradient(147deg, #22d3ee 0%, #1d4ed8 74%);
}

@keyframes jello-vertical {
  0% { transform: scale3d(1, 1, 1); }
  30% { transform: scale3d(0.75, 1.25, 1); }
  40% { transform: scale3d(1.25, 0.75, 1); }
  50% { transform: scale3d(0.85, 1.15, 1); }
  65% { transform: scale3d(1.05, 0.95, 1); }
  75% { transform: scale3d(0.95, 1.05, 1); }
  100% { transform: scale3d(1, 1, 1); }
}

.help-ai-card {
  grid-column: 1 / -1;
  min-height: 460px;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
}

.help-bot-head {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  align-items: center;
}

#help-bot-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.2);
}

body[data-theme="dark"] #help-bot-avatar {
  border-color: rgba(15, 23, 42, 0.9);
}

.help-bot-log {
  margin-top: 10px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.08);
  padding: 10px;
  min-height: 300px;
  max-height: 44vh;
  overflow-y: auto;
  display: grid;
  gap: 8px;
  width: 100%;
}

.help-bot-msg {
  max-width: 92%;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 8px;
  opacity: 1;
  transform: translateY(0);
}

.help-bot-msg.is-enter {
  opacity: 0;
  transform: translateY(8px) scale(0.99);
}

.help-bot-msg.is-enter.is-show {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 220ms ease, transform 220ms ease;
}

.help-bot-msg-text {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.35;
  white-space: pre-line;
}

.help-bot-msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  margin-top: 1px;
}

.help-bot-msg.user {
  justify-self: end;
  grid-template-columns: 1fr;
}

.help-bot-msg.bot {
  justify-self: start;
}

.help-bot-msg.user .help-bot-msg-text {
  background: rgba(14, 165, 233, 0.2);
  border: 1px solid rgba(14, 165, 233, 0.35);
}

.help-bot-msg.bot .help-bot-msg-text {
  background: rgba(148, 163, 184, 0.18);
  border: 1px solid var(--stroke);
}

.help-bot-form {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  width: 100%;
  padding: 8px;
  border: 1px solid rgba(14, 165, 233, 0.28);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(56, 189, 248, 0.04));
}

body[data-theme="dark"] .help-bot-form {
  border-color: rgba(56, 189, 248, 0.35);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(15, 23, 42, 0.3));
}

#help-bot-input {
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.92);
  padding: 0 12px;
  font-size: 0.94rem;
}

body[data-theme="dark"] #help-bot-input {
  background: rgba(2, 6, 23, 0.55);
  border-color: rgba(148, 163, 184, 0.32);
}

#help-bot-input::placeholder {
  color: rgba(71, 85, 105, 0.78);
}

body[data-theme="dark"] #help-bot-input::placeholder {
  color: rgba(148, 163, 184, 0.86);
}

#help-bot-input:focus {
  outline: none;
  border-color: rgba(14, 165, 233, 0.65);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.16);
}

.help-bot-quick {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}

.btn.tiny {
  padding: 6px 8px;
  border-radius: 10px;
  font-size: 0.74rem;
}

.site-footer {
  position: relative !important;
  left: auto;
  right: auto;
  top: auto !important;
  bottom: auto !important;
  margin: 18px 0 0;
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(8px);
  z-index: 20;
  transform: translateZ(0) translateY(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

body.footer-visible .site-footer {
  opacity: 1;
  pointer-events: auto;
  transform: translateZ(0) translateY(0);
}

body[data-theme="dark"] .site-footer {
  background: rgba(15, 23, 42, 0.54);
  border-color: rgba(148, 163, 184, 0.14);
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-modal-content {
  max-width: 900px;
  width: min(900px, 96vw);
  max-height: 88vh;
  overflow-y: auto;
}

.legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 10px;
}

.legal-tab.is-active {
  border-color: rgba(14, 165, 233, 0.6);
  background: rgba(14, 165, 233, 0.2);
  color: #0ea5e9;
}

.legal-body {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 12px;
  background: rgba(148, 163, 184, 0.08);
}

.legal-panel {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-panel h4 {
  color: var(--text);
}

.cookie-banner {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: none;
  place-items: center;
  padding: 16px;
  background: rgba(2, 6, 23, 0.32);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transform: scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.cookie-banner.is-visible {
  display: grid;
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner-inner {
  width: 300px;
  height: 220px;
  background-color: #ffffff;
  background-image: linear-gradient(140deg, #ffffff 0%, #f3f8ff 100%);
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 24px;
  gap: 10px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.16);
  color: #1a1a1a;
}

body[data-theme="light"] .cookie-banner-inner {
  background: #fff;
}

body[data-theme="dark"] .cookie-banner-inner {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.96) 100%);
  border-color: rgba(56, 189, 248, 0.25);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.55);
  color: #e2e8f0;
}

#cookieSvg {
  width: 50px;
  height: 50px;
}

#cookieSvg g path {
  fill: rgb(97, 81, 81);
}

.cookieHeading {
  margin: 0;
  font-size: 1.05em;
  font-weight: 800;
  color: #1a1a1a;
}

.cookieDescription {
  margin: 0;
  text-align: center;
  font-size: 0.7em;
  font-weight: 600;
  color: rgb(99, 99, 99);
  line-height: 1.35;
}

.cookieDescription a {
  color: rgb(37, 99, 235);
  text-decoration: none;
}

.cookieDescription a:hover {
  text-decoration: underline;
}

body[data-theme="dark"] #cookieSvg g path {
  fill: #93c5fd;
}

body[data-theme="dark"] .cookieHeading {
  color: #e2e8f0;
}

body[data-theme="dark"] .cookieDescription {
  color: #94a3b8;
}

body[data-theme="dark"] .cookieDescription a {
  color: #38bdf8;
}

.buttonContainer {
  display: flex;
  gap: 20px;
  flex-direction: row;
}

.acceptButton,
.declineButton {
  width: 80px;
  height: 30px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.35s ease;
}

.acceptButton {
  background: linear-gradient(135deg, #22c1ff, #0ea5e9);
  color: #f1f5f9;
  box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.45), 0 2px 4px -1px rgba(14, 165, 233, 0.45);
}

.acceptButton:hover {
  background: linear-gradient(135deg, #38d0ff, #22b7f5);
  box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.4), 0 4px 6px -2px rgba(14, 165, 233, 0.35);
}

.declineButton {
  background: #dadada;
  color: #2e2e2e;
  box-shadow: 0 4px 6px -1px #bebdbd, 0 2px 4px -1px #bebdbd;
}

.declineButton:hover {
  background: #ebebeb;
  box-shadow: 0 10px 15px -3px #bebdbd, 0 4px 6px -2px #bebdbd;
}

body[data-theme="dark"] .declineButton {
  background: rgba(100, 116, 139, 0.34);
  color: #e2e8f0;
  box-shadow: 0 4px 10px -2px rgba(15, 23, 42, 0.45);
}

body[data-theme="dark"] .declineButton:hover {
  background: rgba(100, 116, 139, 0.52);
  box-shadow: 0 8px 16px -4px rgba(15, 23, 42, 0.5);
}

body.cookies-required main,
body.cookies-required .topbar,
body.cookies-required .hero,
body.cookies-required .site-footer {
  pointer-events: none;
}

@media (max-width: 900px) {
  body {
    width: 100%;
    padding: 18px 14px calc(104px + env(safe-area-inset-bottom));
    overflow-x: hidden;
  }
  .topbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
  }
  .brand { height: 44px; min-width: 0; display: flex; align-items: center; overflow: hidden; }
  .brand-logo.large {
    width: 148px;
    height: 44px;
    max-height: 44px;
    margin-top: 0;
    display: block;
    object-fit: contain;
  }
  .cta {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
    min-width: 0;
    position: relative;
    z-index: 220;
    height: 44px;
  }
  .creator-plan-chip {
    display: none !important;
  }
  .pill { padding: 8px 12px; }
  .user-profile {
    width: 112px;
    height: 44px;
  }
  .user-profile .user-profile-inner {
    gap: 8px;
    font-size: 0.82rem;
  }
  .user-profile .user-profile-inner svg {
    width: 18px;
    height: 18px;
  }
  .creator-user-btn { width: 40px; height: 40px; }
  .creator-user-btn img { width: 32px; height: 32px; }
  .brand-logo.large { transform: translateY(1px); }
  .creator-user-dropdown { min-width: 168px; }
  .creator-user-dropdown { top: calc(100% + 4px); }
  .hero { margin-top: 24px; }
  .hero-card { max-width: none; justify-self: stretch; }
  .hero-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card,
  .search-card,
  .search-step,
  .modal-content,
  .creator-card {
    min-width: 0;
    max-width: 100%;
  }
  .search-card {
    overflow: hidden;
  }
  .search-step {
    overflow: hidden;
  }
  .step {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 10px;
  }
  .search-step > .stack {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }
  .step-title {
    display: block;
    min-height: 0;
    overflow-wrap: anywhere;
    hyphens: auto;
  }
  .search-step .inline {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .field,
  .inline,
  .stack {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .search-step .field {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }
  .field input:not([type="checkbox"]),
  .field select,
  .field textarea,
  input[type="date"],
  input[type="time"],
  input[type="number"],
  input[type="text"],
  input[type="email"],
  input[type="url"] {
    display: block;
    width: 100% !important;
    inline-size: 100% !important;
    min-width: 0;
    min-inline-size: 0 !important;
    max-width: 100%;
    max-inline-size: 100%;
    box-sizing: border-box;
  }
  .search-step input[type="date"],
  .search-step input[type="time"],
  .search-step input[type="number"],
  .search-step input[type="text"],
  .search-step select {
    -webkit-appearance: none;
    appearance: none;
    width: 100% !important;
    inline-size: 100% !important;
    min-width: 0 !important;
    min-inline-size: 0 !important;
    max-width: 100% !important;
    max-inline-size: 100% !important;
  }
  .location-verify-status {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
  }
  #appointment-form { overflow: visible; }
  .appointments-panel .inline { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .appointments-panel .appointment-inline-time {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
  }
  .appointments-panel .appointment-inline-time > .field {
    width: 100%;
  }
  .appointments-panel .field { min-width: 0; width: 100%; }
  .appointments-panel .inline > .field { min-width: 0; }
  #appointment-form .inline { gap: 8px; }
  #appointment-form .field input:not([type="checkbox"]),
  #appointment-form .field select,
  #appointment-form .field textarea {
    min-width: 0;
    min-inline-size: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  #appointment-form input[type="date"],
  #appointment-form input[type="time"] {
    min-width: 0;
    width: 100%;
  }
  #appointment-form .field label {
    margin-bottom: 4px;
    font-size: 0.78rem;
  }
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
  select,
  textarea {
    font-size: 16px !important;
  }
  .auth-split {
    display: block;
  }
  .help-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-footer {
    margin-top: 16px;
  }
  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .help-ai-card {
    min-height: 0;
  }
  .help-bot-log {
    min-height: 240px;
    max-height: 42vh;
  }
}

@media (max-width: 560px) {
  .modal {
    align-items: flex-start;
    padding: 10px;
    overflow-y: auto;
  }
  .modal-content {
    width: 100%;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
    border-radius: 16px;
  }
  .modal-cover {
    height: 118px;
  }
  .modal-hero {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }
  .modal-hero img {
    width: 108px;
    height: 108px;
    border-radius: 16px;
  }
  .modal-hero > div {
    min-width: 0;
  }
  .modal-hero p,
  .modal-hero h3,
  .creator-meta,
  .creator-line {
    overflow-wrap: anywhere;
  }
  .modal-tags {
    gap: 7px;
  }
  .modal-tags .chip {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .stats-kpis {
    grid-template-columns: 1fr;
  }
  .stats-kpi {
    min-width: 0;
    overflow: hidden;
  }
  .stats-kpi-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    align-items: start;
  }
  .stats-kpi-label {
    margin-left: 0;
    overflow-wrap: anywhere;
  }
  .stats-kpi-percent {
    grid-column: 2;
    margin-left: 0;
    justify-self: start;
    font-size: 0.82rem;
  }
  .stats-kpi strong {
    font-size: 1.45rem;
  }
  #stats-chart {
    height: 220px;
  }
  .help-grid {
    grid-template-columns: 1fr;
  }
  .appointments-panel .inline { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .appointments-panel .appointment-inline-time {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
  }
  #appointment-form .field input:not([type="checkbox"]),
  #appointment-form .field select,
  #appointment-form .field textarea {
    padding: 9px 10px;
  }
  .invoice-pos-row {
    grid-template-columns: 1fr !important;
  }
  .invoice-pos-head {
    grid-template-columns: 1fr !important;
  }
  .invoice-logo-row {
    grid-template-columns: 1fr !important;
  }
  .invoice-filter-row {
    grid-template-columns: 1fr !important;
  }
  .invoice-reset-wrap {
    min-width: 0;
  }
  .cookie-banner {
    inset: 0;
    padding: 10px;
  }
  .cookie-banner-inner {
    width: min(300px, 100%);
    margin-left: auto;
    margin-right: auto;
  }
  .buttonContainer {
    width: 100%;
    justify-content: center;
  }
  .faq-button {
    right: 14px;
    bottom: calc(18px + env(safe-area-inset-bottom));
  }
  .chat-panel {
    right: 10px;
    left: 10px;
    width: auto;
    max-height: calc(100dvh - 136px);
    bottom: calc(88px + env(safe-area-inset-bottom));
  }
  .chat-header {
    align-items: flex-start;
    gap: 10px;
  }
  .chat-title {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .chat-input {
    align-items: stretch;
  }
  .chat-input input {
    min-width: 0;
  }
}

@media (max-width: 420px) {
  .site-footer {
    border-radius: 10px;
  }
  .help-back-btn {
    bottom: 104px;
    left: 12px;
  }
  .modal-hero {
    grid-template-columns: 96px minmax(0, 1fr);
  }
  .modal-hero img {
    width: 96px;
    height: 96px;
  }
  .social-link {
    min-height: 30px;
    padding: 6px 9px 6px 8px;
    font-size: 0.74rem;
  }
  .appointments-panel .appointment-inline-time { grid-template-columns: 1fr !important; }
  .appointments-panel .inline { grid-template-columns: 1fr !important; }
}
