:root {
  --teal-50: #EAF4F5;
  --teal-100: #DCEFF1;
  --teal-300: #8FC4CE;
  --teal-500: #4A94A8;
  --teal-700: #225468;
  --teal-900: #0D2130;

  --coral-50: #FFF1EC;
  --coral-100: #FFE4DC;
  --coral-300: #FFAB94;
  --coral-500: #FF7A59;
  --coral-700: #E85A3B;

  --ink: #12202A;
  --ink-muted: #6B7280;
  --surface: #FFFFFF;
  --surface-muted: #F0F4F6;
  --surface-border: #E3E8EB;

  --success: #2FBF71;
  --warning: #F5A623;
  --danger: #EF4A63;

  --radius-button: 8px;
  --radius-card: 22px;
  --shadow-glass: 0 8px 24px rgba(13, 33, 48, 0.12);
  --gradient-brand: linear-gradient(135deg, #4A94A8 0%, #225468 55%, #0D2130 100%);
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/InterVariable.woff2') format('woff2-variations'), url('fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--surface-muted);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, p { margin: 0; }

.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
}

.app-main {
  padding: 20px 20px 120px;
  padding-top: calc(20px + env(safe-area-inset-top));
  padding-bottom: calc(120px + env(safe-area-inset-bottom));
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .app-shell { display: flex; }
  .app-main { padding: 32px 40px; margin: 0; flex: 1; min-width: 0; max-width: none; }
}

.sidebar {
  display: none;
}

@media (min-width: 1024px) {
  .sidebar {
    display: flex;
    flex-direction: column;
    width: 256px;
    flex-shrink: 0;
    background: var(--gradient-brand);
    color: #fff;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
  }
  .sidebar-logo { padding: 32px 24px 24px; position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .sidebar-logo-img { display: block; height: 22px; width: auto; }
  .sidebar-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
  .sidebar-nav, .sidebar-footer { position: relative; z-index: 1; }
  .sidebar-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.22; will-change: transform; }
  .sidebar-orb-1 { width: 300px; height: 300px; background: var(--teal-300); top: -80px; left: -100px; animation: sidebarOrbDrift 46s ease-in-out infinite alternate; }
  .sidebar-orb-2 { width: 300px; height: 300px; background: var(--coral-500); bottom: 10%; right: -110px; opacity: 0.32; animation: sidebarOrbDrift 54s ease-in-out infinite alternate; animation-delay: -18s; }
  .sidebar-orb-3 { width: 220px; height: 220px; background: var(--teal-500); bottom: -90px; left: 30%; opacity: 0.18; animation: sidebarOrbDrift 39s ease-in-out infinite alternate; animation-delay: -9s; }
  @keyframes sidebarOrbDrift { from { transform: translate(0,0) scale(1); } to { transform: translate(26px,-30px) scale(1.12); } }
  .sidebar-nav { flex: 1; padding: 0 12px; display: flex; flex-direction: column; gap: 4px; }
  .sidebar-link {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-radius: 12px;
    font-weight: 600; font-size: 14px;
    color: var(--teal-100);
    border: 1px solid transparent;
  }
  .sidebar-link:hover:not(.active) {
    background: rgba(255,255,255,0.08);
    color: #fff;
  }
  .sidebar-link.active {
    background: #fff;
    border-color: transparent;
    color: var(--teal-900);
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  }
  .sidebar-link.active svg { color: var(--coral-700); }
  .sidebar-footer {
    padding: 20px 16px; border-top: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; gap: 12px;
  }
  .sidebar-footer .name { font-size: 14px; font-weight: 600; }
  .sidebar-footer .sub { font-size: 12px; color: var(--teal-100); }
  .sidebar-footer .footer-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
  .sidebar-footer button, .sidebar-footer .footer-actions a {
    background: none; border: none; color: var(--teal-100); cursor: pointer; padding: 4px;
    display: inline-flex; text-decoration: none;
  }
  .sidebar-footer button:hover, .sidebar-footer .footer-actions a:hover { color: #fff; }
}

.bottom-nav {
  position: fixed;
  left: 16px; right: 16px;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 40;
  max-width: 420px;
  margin: 0 auto;
  background: rgba(255,255,255,0.62);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 9999px;
  box-shadow: var(--shadow-glass), inset 0 1px 0 rgba(255,255,255,0.6);
  display: flex;
  padding: 8px;
}

@media (min-width: 1024px) {
  .bottom-nav { display: none; }
}

.bottom-nav a, .bottom-nav .more-btn {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 6px 0; border-radius: 9999px;
  font-size: 11px; font-weight: 600; color: var(--ink-muted);
  background: none; border: none; cursor: pointer;
  font-family: inherit;
}

.bottom-nav .icon-wrap {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 9999px;
}

.bottom-nav a.active .icon-wrap, .bottom-nav .more-btn.active .icon-wrap { background: var(--coral-50); }
.bottom-nav a.active, .bottom-nav .more-btn.active { color: var(--coral-500); }

.more-sheet {
  position: fixed; inset: 0; z-index: 50;
  display: none;
  align-items: flex-end;
}
.more-sheet.open { display: flex; }
.more-sheet-backdrop { position: absolute; inset: 0; background: rgba(18,32,42,0.4); }
.more-sheet-panel {
  position: relative; width: 100%; background: #fff;
  border-radius: 24px 24px 0 0; padding: 20px 20px 32px;
  box-shadow: var(--shadow-glass);
}
.more-sheet-panel a, .more-sheet-panel button {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 14px 12px; border-radius: 12px; font-size: 14px; font-weight: 600;
  color: var(--ink); background: none; border: none; text-align: left; cursor: pointer;
  font-family: inherit;
}
.more-sheet-panel a:hover, .more-sheet-panel button:hover { background: var(--surface-muted); }
.more-sheet-panel .danger { color: var(--danger); }
.more-sheet-lang-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--ink);
}
.more-sheet-lang-label { display: flex; align-items: center; gap: 12px; }
.more-sheet-panel button.more-sheet-lang-flag {
  width: auto; padding: 0; border-radius: 9999px; flex-shrink: 0;
}
.more-sheet-panel button.more-sheet-lang-flag:hover { background: none; }

@media (min-width: 1024px) { .more-sheet, .fab { display: none !important; } }

.kundoo-modal-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(18,32,42,0.45);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.kundoo-modal-overlay[hidden] { display: none; }
.kundoo-modal {
  background: #fff; border-radius: 20px; padding: 24px;
  max-width: 380px; width: 100%; box-shadow: var(--shadow-glass);
}
.kundoo-modal h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.kundoo-modal p { font-size: 14px; color: var(--ink-muted); margin-bottom: 20px; }
.kundoo-modal .modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.kundoo-modal .modal-actions .btn { flex: 0 0 auto; }
@media (max-width: 480px) {
  .kundoo-modal .modal-actions { flex-direction: column-reverse; }
  .kundoo-modal .modal-actions .btn { width: 100%; }
}
.kundoo-modal-actions-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  margin-bottom: 4px;
}
.kundoo-modal-actions-grid a, .kundoo-modal-actions-grid button {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 7px 3px; border-radius: 11px; background: var(--surface-muted);
  border: 1px solid var(--surface-border); font-size: 9.5px; font-weight: 600;
  color: var(--ink); text-align: center; cursor: pointer; font-family: inherit;
  line-height: 1.15;
}
.kundoo-modal-actions-grid svg { width: 15px; height: 15px; }
.kundoo-modal-actions-grid a:hover, .kundoo-modal-actions-grid button:hover { background: var(--teal-50); }

.termin-card { padding: 12px 14px; }
a.icon-btn.termin-icon-btn { width: 26px; height: 26px; flex-shrink: 0; }

.card {
  border-radius: var(--radius-card);
  background: #FAFAFA;
  box-shadow: var(--shadow-glass);
  border: 1px solid var(--surface-border);
}

.card-pad { padding: 20px; }

.kpi-tile { display: flex; flex-direction: column; gap: 10px; }
.kpi-tile-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.kpi-tile-icon {
  width: 24px; height: 24px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.kpi-tile-icon svg { width: 14px; height: 14px; }
.kpi-tile-icon-info { background: var(--teal-50); color: var(--teal-700); }
.kpi-tile-icon-success { background: rgba(47, 191, 113, 0.14); color: #1D8A52; }
.kpi-tile-icon-attention { background: var(--coral-50); color: var(--coral-700); }
.kpi-tile-label { font-size: 12px; color: var(--ink-muted); min-width: 0; }
.kpi-tile-body { min-width: 0; overflow-wrap: anywhere; }
.kpi-amt-22 { font-size: 22px; }
.kpi-amt-20 { font-size: 20px; }
.kpi-amt-18 { font-size: 18px; }
.kpi-amt-22.kpi-amt-compact { font-size: 17px; }
.kpi-amt-20.kpi-amt-compact { font-size: 16px; }
.kpi-amt-18.kpi-amt-compact { font-size: 15px; }
html[data-theme="dark"] .kpi-tile-icon-info { background: rgba(74, 148, 168, 0.18); color: var(--teal-300); }
html[data-theme="dark"] .kpi-tile-icon-success { background: rgba(47, 191, 113, 0.18); color: #4FD98B; }
html[data-theme="dark"] .kpi-tile-icon-attention { background: rgba(255, 122, 89, 0.18); color: var(--coral-300); }

.totp-reminder-banner {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.totp-reminder-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--coral-50); color: var(--coral-700);
}
.totp-reminder-icon svg { width: 20px; height: 20px; }
html[data-theme="dark"] .totp-reminder-icon { background: rgba(255, 122, 89, 0.18); color: var(--coral-300); }
.totp-reminder-body { flex: 1; min-width: 0; padding-right: 24px; }
.totp-reminder-title { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.totp-reminder-text { font-size: 13px; color: var(--ink-muted); margin: 0 0 12px; line-height: 1.5; }
.totp-reminder-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.totp-reminder-actions form { display: inline-flex; }
.totp-reminder-snooze {
  background: none; border: none; color: var(--ink-muted); font-size: 13px;
  font-weight: 600; cursor: pointer; padding: 0; font-family: inherit;
}
.totp-reminder-snooze:hover { color: var(--ink); text-decoration: underline; }
.totp-reminder-close {
  position: absolute; top: 12px; right: 12px; background: none; border: none;
  cursor: pointer; color: var(--ink-muted); padding: 4px; border-radius: 9999px;
  display: flex;
}
.totp-reminder-close:hover { background: var(--surface-muted); color: var(--ink); }

.nav-alert-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--coral-500);
  flex-shrink: 0; margin-left: auto;
}

.compare-badge {
  display: inline-flex; align-items: center; gap: 3px; font-size: 12px;
  font-weight: 700; white-space: nowrap;
}
.compare-badge-lg { gap: 4px; font-size: 13px; }
@media (max-width: 639px) {
  .compare-badge, .compare-badge-lg { font-size: 10.5px; gap: 2px; }
  .compare-badge svg, .compare-badge-lg svg { width: 10px; height: 10px; }
}

.card-list > * + * { border-top: 1px solid var(--surface-border); }
.card-list > a, .card-list > div.row { display: block; padding: 16px 20px; }
.card-list > a:hover { background: var(--surface-muted); }
.card-list > a:nth-child(even), .card-list > div.row:nth-child(even) { background: var(--teal-50); }
html[data-theme="dark"] .card-list > a:nth-child(even),
html[data-theme="dark"] .card-list > div.row:nth-child(even) { background: rgba(74, 148, 168, 0.18); }

.card-list-flat > a:nth-child(even), .card-list-flat > div.row:nth-child(even) { background: transparent; }

.page-title { font-size: 20px; font-weight: 800; margin-bottom: 16px; }

.page-action-desktop { display: none; }
@media (min-width: 1024px) {
  .page-action-desktop { display: flex; justify-content: flex-end; margin-bottom: 12px; }
  .page-action-desktop .btn { width: auto; padding: 10px 20px; }
}
.section-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.text-muted { color: var(--ink-muted); }
.text-sm { font-size: 13px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 12px; padding: 0 18px; height: 46px;
  font-weight: 700; font-size: 14px; border: none; cursor: pointer;
  font-family: inherit;
}
.btn-block { width: 100%; }
.btn-primary { background: var(--coral-500); color: #fff; }
.btn-primary:hover { background: var(--coral-700); }
.btn-secondary { background: var(--teal-50); color: var(--teal-700); }
.btn-secondary:hover { background: var(--teal-100); }
.btn-outline { background: #fff; color: var(--ink); border: 1px solid var(--surface-border); }
.btn-outline:hover { border-color: var(--teal-500); }
.btn-danger { background: #fff; color: var(--danger); border: 1px solid var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-ghost { background: none; color: var(--ink-muted); height: auto; padding: 6px 10px; }
.btn-sm { height: 38px; font-size: 13px; padding: 0 14px; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.fab {
  position: fixed; right: 20px;
  bottom: calc(126px + env(safe-area-inset-bottom));
  z-index: 30;
  width: 56px; height: 56px; border-radius: 9999px;
  background: var(--coral-500); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-glass); font-size: 26px; border: none;
}

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input[type=text], .field input[type=email], .field input[type=password],
.field input[type=number], .field input[type=date], .field input[type=datetime-local],
.field input[type=tel], .field select, .field textarea {
  width: 100%; border: 1px solid var(--surface-border); border-radius: 10px;
  padding: 11px 14px; font-size: 14px; font-family: inherit; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--teal-500); outline-offset: -1px; border-color: transparent;
}
.field textarea { resize: vertical; min-height: 80px; }
.field .error { color: var(--danger); font-size: 12px; margin-top: 4px; }
.field .hint { color: var(--ink-muted); font-size: 12px; margin-top: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 639px) {
  .field input[type=text], .field input[type=email], .field input[type=password],
  .field input[type=number], .field input[type=date], .field input[type=datetime-local],
  .field input[type=tel], .field select, .field textarea {
    font-size: 16px;
  }
}

.field input[type=date] {
  min-width: 0;
  max-width: 100%;
  padding-left: 12px;
  padding-right: 8px;
}
.field-date { overflow: hidden; border-radius: 10px; }
.field-date:has(.premium-field) { overflow: visible; }
.field-row-3 { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }

.premium-field { position: relative; }
.premium-field-native {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0;
  pointer-events: none; margin: 0; border: 0; padding: 0;
}
.premium-field-trigger {
  width: 100%; display: flex; align-items: center; gap: 8px; text-align: left;
  border: 1px solid var(--surface-border); border-radius: 10px; padding: 11px 14px;
  font-size: 14px; font-family: inherit; background: #fff; color: var(--ink); cursor: pointer;
}
.premium-field-trigger:focus-visible { outline: 2px solid var(--teal-500); outline-offset: -1px; border-color: transparent; }
.premium-field-trigger .icon-lead { color: var(--teal-700); flex-shrink: 0; display: flex; }
.premium-field-trigger .trigger-text { flex: 1; }
.premium-field-trigger .trigger-text.is-placeholder { color: var(--ink-muted); }
.premium-field-trigger .icon-chevron { color: var(--ink-muted); flex-shrink: 0; display: flex; transition: transform .15s ease; }
.premium-field.is-open .premium-field-trigger .icon-chevron { transform: rotate(180deg); }
.premium-field.is-open .premium-field-trigger { border-color: var(--teal-500); }

.premium-date-panel, .premium-time-panel {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 30;
  background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-glass);
  border: 1px solid var(--surface-border); overflow: hidden; width: 280px; max-width: calc(100vw - 32px);
}
.premium-date-panel[hidden], .premium-time-panel[hidden] { display: none; }

.premium-date-head {
  background: var(--gradient-brand); color: #fff; padding: 12px 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.premium-date-head button {
  background: none; border: none; color: #fff; cursor: pointer; padding: 4px; display: flex;
}
.premium-date-head span { font-size: 13.5px; font-weight: 700; }
.premium-date-body { padding: 12px; }
.premium-date-weekdays, .premium-date-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.premium-date-weekdays span { font-size: 10.5px; color: var(--ink-muted); text-align: center; padding-bottom: 4px; font-weight: 700; }
.premium-date-grid button {
  aspect-ratio: 1; border: none; background: none; border-radius: 9999px; font-size: 12.5px;
  color: var(--ink); cursor: pointer; font-family: inherit;
}
.premium-date-grid button:hover:not(:disabled) { background: var(--teal-50); }
.premium-date-grid button.is-muted { color: var(--ink-muted); opacity: .55; }
.premium-date-grid button.is-today { border: 1.5px solid var(--teal-500); font-weight: 700; }
.premium-date-grid button.is-selected { background: var(--coral-500); color: #fff; font-weight: 700; }
.premium-date-grid button:disabled { opacity: .3; cursor: not-allowed; }

.premium-time-body { padding: 14px; }
.premium-time-columns { position: relative; background: var(--surface-muted); border-radius: 12px; padding: 6px 0; }
.premium-time-highlight {
  position: absolute; left: 6px; right: 6px; top: 50%; transform: translateY(-50%);
  height: 32px; background: var(--teal-50); border-radius: 8px; pointer-events: none;
}
.premium-time-cols-inner { display: grid; grid-template-columns: 1fr 1fr; }
.premium-time-col { max-height: 168px; overflow-y: auto; scroll-snap-type: y mandatory; position: relative; padding: 68px 0; }
.premium-time-col button {
  display: block; width: 100%; border: none; background: none; text-align: center; padding: 6px 0;
  font-size: 14px; color: var(--ink-muted); cursor: pointer; font-family: inherit; scroll-snap-align: center;
}
.premium-time-col button.is-selected { color: var(--teal-700); font-weight: 700; font-size: 15px; }
.premium-time-actions { display: flex; gap: 8px; margin-top: 14px; }
.premium-time-actions button {
  flex: 1; padding: 9px 0; border-radius: 8px; font-size: 13px; font-family: inherit; cursor: pointer;
}
.premium-time-actions .time-cancel { border: 1px solid var(--surface-border); background: #fff; color: var(--ink); }
.premium-time-actions .time-apply { border: none; background: var(--coral-500); color: #fff; font-weight: 700; }

.url-field { position: relative; }
.url-field input { padding-left: 40px !important; padding-right: 36px !important; }
.url-field-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--teal-700); pointer-events: none; display: flex;
}
.url-field-clear {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: none; padding: 6px; cursor: pointer; color: var(--ink-muted);
  display: none; border-radius: 6px;
}
.url-field.has-value .url-field-clear { display: flex; }
.url-field-clear:hover { color: var(--danger); }

.url-copy-btn.is-copied { color: var(--success); }

.address-autocomplete-wrap, .article-autocomplete-wrap, .customer-autocomplete-wrap { position: relative; }
.address-suggestions, .article-suggestions, .customer-suggestions {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 30; margin-top: 4px;
  background: #fff; border: 1px solid var(--surface-border); border-radius: 12px;
  max-height: 240px; overflow-y: auto; box-shadow: var(--shadow-glass);
}
.address-suggestions[hidden], .article-suggestions[hidden], .customer-suggestions[hidden] { display: none; }
.address-suggestions button, .article-suggestions button, .customer-suggestions button {
  display: block; width: 100%; text-align: left; padding: 10px 14px;
  font-size: 13px; border: none; background: none; cursor: pointer; color: var(--ink);
}
.address-suggestions button + button, .article-suggestions button + button, .customer-suggestions button + button { border-top: 1px solid var(--surface-border); }
.address-suggestions button:hover, .article-suggestions button:hover, .customer-suggestions button:hover { background: var(--surface-muted); }

.article-picker-toggle {
  background: none; border: none; padding: 0; font-size: 12px; font-weight: 600;
  color: var(--teal-700); cursor: pointer; font-family: inherit; text-decoration: underline;
}
.article-price-list {
  margin-top: 8px; max-height: 220px; overflow-y: auto;
  border: 1px solid var(--surface-border); border-radius: 12px;
}
.article-price-list[hidden] { display: none; }
.article-price-list button {
  display: block; width: 100%; text-align: left; padding: 10px 14px;
  font-size: 13px; border: none; background: none; cursor: pointer; color: var(--ink);
}
.article-price-list button + button { border-top: 1px solid var(--surface-border); }
.article-price-list button:hover { background: var(--surface-muted); }

.password-field { position: relative; }
.password-field input { padding-right: 44px !important; }
.password-toggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--ink-muted); cursor: pointer; padding: 0;
}
.password-toggle:hover { color: var(--teal-700); }
.password-toggle .icon-off { display: none; }
.password-toggle.showing .icon-on { display: none; }
.password-toggle.showing .icon-off { display: flex; }

.password-strength { margin-top: 10px; }
.password-strength-bar { display: flex; gap: 4px; height: 5px; }
.password-strength-bar span { flex: 1; border-radius: 3px; background: var(--surface-border); transition: background-color .15s ease; }
.password-strength-label { font-size: 11px; color: var(--ink-muted); margin-top: 6px; font-weight: 700; }
.password-strength[data-level="1"] .password-strength-bar span:nth-child(-n+1) { background: var(--danger); }
.password-strength[data-level="2"] .password-strength-bar span:nth-child(-n+2) { background: var(--warning); }
.password-strength[data-level="3"] .password-strength-bar span:nth-child(-n+3) { background: #F2C94C; }
.password-strength[data-level="4"] .password-strength-bar span:nth-child(-n+4) { background: var(--success); }
.password-strength[data-level="1"] .password-strength-label { color: var(--danger); }
.password-strength[data-level="2"] .password-strength-label { color: #B5790C; }
.password-strength[data-level="3"] .password-strength-label { color: #8A7300; }
.password-strength[data-level="4"] .password-strength-label { color: var(--success); }

.password-checklist { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.password-checklist li {
  display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-muted);
  transition: color .15s ease;
}
.password-checklist li svg { flex-shrink: 0; color: var(--surface-border); transition: color .15s ease; }
.password-checklist li.is-met { color: var(--success); }
.password-checklist li.is-met svg { color: var(--success); }

.search-box { position: relative; margin-bottom: 16px; }
.search-box input {
  width: 100%; border: 1px solid var(--surface-border); border-radius: 9999px;
  padding: 13px 16px 13px 42px; font-size: 14px; font-family: inherit;
}
.search-box .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-muted); }

.chip-row { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 16px; padding-bottom: 2px; }
.chip {
  flex-shrink: 0; border-radius: 9999px; padding: 9px 16px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--surface-border); background: #fff; color: var(--ink-muted);
  cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; gap: 6px;
}
.chip svg { flex-shrink: 0; opacity: .7; }
.chip.active { background: var(--coral-500); color: #fff; border-color: transparent; }
.chip.active svg { opacity: 1; }
.chip.active::after { content: "✓"; font-size: 11px; font-weight: 700; margin-left: 2px; }

.segmented {
  display: inline-flex; width: 100%; background: var(--surface-muted); border: 1px solid var(--surface-border);
  border-radius: 9999px; padding: 4px; margin-bottom: 20px;
}
.segmented a {
  flex: 1; text-align: center; padding: 9px 0; border-radius: 9999px; font-size: 13px; font-weight: 600;
  color: var(--ink-muted);
}
.segmented a.active { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,0.06); }

.badge {
  display: inline-flex; align-items: center; border-radius: 9999px; border: 2px solid; padding: 2px 10px;
  font-size: 11px; font-weight: 700;
}
.badge-teal { border-color: var(--teal-500); color: var(--teal-700); }
.badge-coral { border-color: var(--coral-500); color: var(--coral-700); }
.badge-success { border-color: var(--success); color: #1D8A52; }
.badge-warning { border-color: var(--warning); color: #B87A0F; }
.badge-danger { border-color: var(--danger); color: #C93A50; }
.badge-neutral { border-color: var(--surface-border); color: var(--ink-muted); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 9999px; flex-shrink: 0; }
.dot-teal { background: var(--teal-500); }
.dot-coral { background: var(--coral-500); }
.dot-success { background: var(--success); }
.dot-warning { background: var(--warning); }
.dot-danger { background: var(--danger); }
.dot-neutral { background: var(--ink-muted); }

.notify-badge-anchor { position: relative; }
.notify-badge {
  position: absolute; top: -6px; right: -6px; z-index: 2;
  width: 18px; height: 18px; border-radius: 9999px;
  background: var(--danger); color: #fff; font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; line-height: 1;
  border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
html[data-theme="dark"] .notify-badge { border-color: var(--surface); }

.status-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 9999px;
  background: var(--ink-muted); opacity: 0.4; flex-shrink: 0;
}
.status-dot-online { background: var(--success); animation: status-pulse 2.4s ease-in-out infinite; }
.status-dot-offline { background: var(--danger); animation: status-pulse 1.2s ease-in-out infinite; }
@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.activity-box summary {
  cursor: pointer; font-size: 14px; font-weight: 700; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
.activity-box summary::-webkit-details-marker { display: none; }
.activity-box summary::marker { content: ''; }
.activity-box summary svg { transition: transform 0.15s ease; }
.activity-box[open] summary svg { transform: rotate(90deg); }

.avatar {
  display: inline-flex; align-items: center; justify-content: center; border-radius: 9999px;
  color: #fff; font-weight: 700; flex-shrink: 0;
}

.tabs { display: flex; border-bottom: 1px solid var(--surface-border); margin-bottom: 20px; }
.tabs a {
  flex: 1; text-align: center; padding-bottom: 12px; font-size: 14px; font-weight: 600;
  color: var(--ink-muted); border-bottom: 2px solid transparent; margin-bottom: -1px;
  position: relative;
}
.tabs a.active { color: var(--teal-700); border-color: var(--coral-500); }
.tabs a.active::after {
  content: ''; position: absolute; left: 8px; right: 8px; bottom: -2px; height: 2px;
  border-radius: 2px; box-shadow: 0 0 6px 1px rgba(255, 122, 89, 0.55); pointer-events: none;
}
@media (max-width: 639px) {
  .tabs { flex-wrap: wrap; row-gap: 8px; }
  .tabs a { flex: 0 1 auto; padding: 0 4px 10px; }
}

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px 0; text-align: center; }
.cal-grid-kw { grid-template-columns: 22px repeat(7, 1fr); }
.cal-weekday { font-size: 10px; font-weight: 700; color: var(--ink-muted); padding-bottom: 6px; }
.cal-weekday.weekend { color: var(--coral-500); }
.cal-day { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 2px 0; }
.cal-day-num {
  width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  border-radius: 9999px; font-size: 12px; color: var(--ink);
}
.cal-day-num.today { border: 2px solid var(--coral-500); font-weight: 700; }
.cal-day-num.selected { background: var(--coral-500); color: #fff; font-weight: 700; }
.cal-day-num.outside { color: rgba(107,114,128,0.4); }
.cal-dots { display: flex; gap: 2px; height: 5px; }
.cal-dots span { width: 5px; height: 5px; border-radius: 9999px; }
.cal-kw-cell {
  display: flex; align-items: center; justify-content: center;
  font-size: 9.5px; color: var(--ink-muted); font-weight: 600;
}
.cal-kw-num { padding: 2px 0; }
.cal-kw-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 16px; padding: 0 3px;
  border-radius: 6px;
  background: var(--teal-50); color: var(--teal-700);
  font-size: 9.5px; font-weight: 700; font-variant-numeric: tabular-nums;
}
html[data-theme="dark"] .cal-kw-badge { background: rgba(74, 148, 168, 0.18); color: var(--teal-300); }
.cal-leg { display: flex; align-items: center; gap: 10px; padding: 2px 8px 2px 24px; }
.cal-leg-line {
  width: 1px; align-self: stretch; min-height: 22px; flex-shrink: 0;
  background: repeating-linear-gradient(to bottom, var(--teal-500) 0, var(--teal-500) 4px, transparent 4px, transparent 8px);
}
.cal-leg-icon {
  width: 26px; height: 26px; border-radius: 9999px; flex-shrink: 0;
  background: var(--coral-50); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.cal-leg-text { font-size: 12.5px; color: var(--ink-muted); }
.cal-leg-text strong { color: var(--teal-700); font-weight: 600; }
html[data-theme="dark"] .cal-leg-icon { background: rgba(255, 122, 89, 0.18); }
html[data-theme="dark"] .cal-leg-text strong { color: var(--teal-300); }
.cal-month-select { background: #fff; color: var(--ink); }
html[data-theme="dark"] .cal-month-select { background: var(--surface); color: var(--ink); border-color: var(--surface-border); }

.empty-state { text-align: center; padding: 56px 20px; }
.empty-state .icon-circle {
  width: 56px; height: 56px; border-radius: 9999px; background: var(--coral-50);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
  color: var(--coral-700); font-size: 22px;
}
.empty-state .title { font-size: 14px; font-weight: 700; }
.empty-state .desc { font-size: 13px; color: var(--ink-muted); margin-top: 4px; max-width: 280px; margin-left: auto; margin-right: auto; }

#kundoo-toast-stack {
  position: fixed; z-index: 55; display: flex; flex-direction: column; gap: 10px;
  pointer-events: none; width: calc(100% - 32px); max-width: 380px;
  top: 20px; right: 16px; left: auto;
}
@media (max-width: 1023px) {
  #kundoo-toast-stack {
    top: auto; right: 16px; left: 16px; width: auto;
    bottom: calc(128px + env(safe-area-inset-bottom));
  }
}
.flash {
  border-radius: var(--radius-card); padding: 12px 16px; font-size: 13px; font-weight: 600;
  margin-bottom: 16px;
}
.flash-success { background: #E3F8ED; color: #1D8A52; }
.flash-error { background: #FDEAEA; color: #C93A50; }
#kundoo-toast-stack .flash {
  pointer-events: auto; margin-bottom: 0; display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; box-shadow: var(--shadow-glass); position: relative; overflow: hidden;
  color: #fff; animation: toast-in .25s cubic-bezier(.2,.8,.3,1.2);
}
#kundoo-toast-stack .flash.toast-leaving { animation: toast-out .2s ease forwards; }
#kundoo-toast-stack .flash-success { background: linear-gradient(135deg, #2FBF71 0%, #1C7A4C 100%); }
#kundoo-toast-stack .flash-error { background: linear-gradient(135deg, #F0616F 0%, #B23148 100%); }
.toast-icon {
  width: 30px; height: 30px; border-radius: 9999px; background: rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff;
}
.toast-body { flex: 1; font-size: 13.5px; font-weight: 500; line-height: 1.4; padding-top: 4px; }
.toast-close {
  background: none; border: none; padding: 4px; margin: -4px -4px -4px 0; cursor: pointer;
  color: rgba(255,255,255,0.85); flex-shrink: 0; display: flex;
}
.toast-close:hover { color: #fff; }
.toast-bar {
  position: absolute; left: 0; bottom: 0; height: 3px; background: rgba(255,255,255,0.55);
  animation: toast-countdown 3s linear forwards;
}
@keyframes toast-countdown { from { width: 100%; } to { width: 0%; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: scale(.96); } }
@media (prefers-reduced-motion: reduce) {
  #kundoo-toast-stack .flash, #kundoo-toast-stack .flash.toast-leaving { animation: none; }
  .toast-bar { animation-duration: 3s; }
}

.inactivity-banner {
  display: none; position: fixed; top: 32px; right: 100px; z-index: 55;
  height: 44px; align-items: center; gap: 8px; padding: 0 14px 0 12px;
  border-radius: 9999px; background: linear-gradient(135deg, #F0997B 0%, #D85A30 55%, #993C1D 100%);
  color: #fff; box-shadow: var(--shadow-glass); white-space: nowrap;
}
@media (min-width: 1024px) {
  .inactivity-banner.is-visible { display: flex; }
}
.inactivity-banner-icon { display: flex; flex-shrink: 0; }
.inactivity-banner-text { font-size: 12.5px; font-weight: 700; }
.inactivity-banner-countdown { font-weight: 800; }
.inactivity-banner-stay {
  background: rgba(255,255,255,0.94); color: #993C1D; border: none; border-radius: 9999px;
  padding: 6px 12px; font-size: 12px; font-weight: 700; cursor: pointer; flex-shrink: 0;
}
.inactivity-banner-stay:hover { background: #fff; }

.milestone-overlay { z-index: 70; }
.milestone-confetti-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.milestone-confetti-piece {
  position: absolute; top: -20px;
  animation-name: confettiFall; animation-timing-function: linear; animation-fill-mode: forwards;
  will-change: transform, opacity;
}
@keyframes confettiFall {
  0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  8% { opacity: 1; }
  100% { transform: translateY(100vh) translateX(var(--drift, 0px)) rotate(var(--spin, 360deg)); opacity: 0; }
}
.milestone-modal { position: relative; z-index: 1; text-align: center; }
.milestone-modal h3, .milestone-modal p { text-align: center; }
.milestone-modal-close {
  position: absolute; top: 10px; right: 10px; background: none; border: none; cursor: pointer;
  color: var(--ink-muted); padding: 6px; border-radius: 9999px; display: flex;
}
.milestone-modal-close:hover { background: var(--surface-muted); color: var(--ink); }
.milestone-modal-emoji { display: block; font-size: 40px; margin: 6px 0 14px; }
@media (prefers-reduced-motion: reduce) {
  .milestone-confetti-piece { display: none; }
}

.kpi-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 32px; }
.tile-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }

@media (min-width: 640px) {
  .kpi-grid.kpi-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kpi-grid.kpi-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.revenue-page { max-width: 520px; }
.revenue-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.revenue-col-left, .revenue-col-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
@media (min-width: 1024px) {
  .revenue-page { max-width: 900px; }
  .revenue-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
  }
  .revenue-col-left, .revenue-col-right {
    gap: 20px;
  }
  .revenue-col-left { flex: 1.4; }
  .revenue-col-right { flex: 1; }
}

.stat-bar-row { margin-bottom: 14px; }
.stat-bar-row:last-child { margin-bottom: 0; }
.stat-bar-track { height: 8px; border-radius: 4px; background: var(--surface-muted); overflow: hidden; margin-top: 5px; }
.stat-bar-fill { height: 100%; border-radius: 4px; background: var(--teal-500); }

.profile-actions { display: flex; justify-content: center; gap: 24px; margin-top: 20px; flex-wrap: wrap; }
.profile-action { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.profile-action .circle {
  width: 52px; height: 52px; border-radius: 9999px;
  background: linear-gradient(155deg, var(--teal-50), #fff);
  border: 1px solid var(--teal-100);
  display: flex; align-items: center; justify-content: center; color: var(--teal-700);
  box-shadow: 0 3px 10px rgba(34, 84, 104, 0.14);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.profile-action:hover .circle, .profile-action:focus-visible .circle {
  transform: translateY(-2px); box-shadow: 0 6px 16px rgba(34, 84, 104, 0.22);
}
.profile-action.disabled .circle {
  background: var(--surface-muted); border-color: var(--surface-border);
  color: rgba(107,114,128,0.35); box-shadow: none;
}
.profile-action span.label { font-size: 12px; font-weight: 600; color: var(--ink-muted); }
html[data-theme="dark"] .profile-action .circle { background: linear-gradient(155deg, rgba(74,148,168,0.22), var(--surface)); border-color: var(--surface-border); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 12px; margin-bottom: 16px; }
.timeline .dot { margin-top: 6px; }

.sticky-cta {
  position: fixed; left: auto; right: 16px;
  bottom: calc(128px + env(safe-area-inset-bottom)); z-index: 20;
  width: auto;
}
.sticky-cta .btn {
  width: auto; border-radius: 9999px; padding: 0 24px;
}
@media (min-width: 1024px) {
  .sticky-cta { right: 40px; bottom: 32px; }
}

.action-fab-menu {
  position: absolute; bottom: calc(100% + 12px); right: 0;
  display: flex; flex-direction: column; gap: 8px; min-width: 216px;
}
.action-fab-menu[hidden] { display: none; }
.action-fab-item {
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
  background: #fff; border: 1px solid var(--surface-border); border-radius: 9999px;
  padding: 11px 18px; font-size: 14px; font-weight: 600; color: var(--ink);
  box-shadow: var(--shadow-glass);
}
.action-fab-item:hover { border-color: var(--teal-500); }
.action-fab-item .avatar { flex-shrink: 0; }
.action-fab-toggle svg { transition: transform 0.15s ease; }
.action-fab-toggle[aria-expanded="true"] svg { transform: rotate(45deg); }
html[data-theme="dark"] .action-fab-item { background: var(--surface); border-color: var(--surface-border); color: var(--ink); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 9999px; background: #fff;
  border: 1px solid var(--surface-border); color: var(--ink-muted); flex-shrink: 0;
}
.icon-btn:hover { border-color: var(--teal-500); }

html[data-theme="dark"] {
  --ink: #E7EEF1;
  --ink-muted: #93A2AC;
  --surface: #1E313D;
  --surface-muted: #0B141A;
  --surface-border: #324B59;
  --surface-sunken: #0F1A21;
  --surface-sunken-border: #3D5A6B;
  --teal-700: var(--teal-300);
}
html[data-theme="dark"] .card { background: rgba(30, 49, 61, 0.92); }
html[data-theme="dark"] .bottom-nav {
  background: rgba(23, 38, 47, 0.55);
  border-color: rgba(255,255,255,0.08);
  box-shadow: var(--shadow-glass), inset 0 1px 0 rgba(255,255,255,0.06);
}
html[data-theme="dark"] .more-sheet-panel { background: var(--surface); }
html[data-theme="dark"] .more-sheet-panel a:hover,
html[data-theme="dark"] .more-sheet-panel button:hover { background: var(--surface-muted); }
html[data-theme="dark"] .field input[type=text], html[data-theme="dark"] .field input[type=email],
html[data-theme="dark"] .field input[type=password], html[data-theme="dark"] .field input[type=number],
html[data-theme="dark"] .field input[type=date], html[data-theme="dark"] .field input[type=datetime-local],
html[data-theme="dark"] .field input[type=tel], html[data-theme="dark"] .field input[type=file],
html[data-theme="dark"] .field select, html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .search-box input {
  background: var(--surface-sunken); color: var(--ink); border-color: var(--surface-sunken-border);
}
html[data-theme="dark"] .btn-outline, html[data-theme="dark"] .icon-btn {
  background: var(--surface); color: var(--ink); border-color: var(--surface-border);
}
html[data-theme="dark"] .btn-secondary { background: rgba(74, 148, 168, 0.18); color: var(--teal-300); }
html[data-theme="dark"] .chip { background: var(--surface); border-color: var(--surface-border); color: var(--ink-muted); }
html[data-theme="dark"] .chip.active { background: var(--coral-500); color: #fff; border-color: transparent; }
html[data-theme="dark"] .segmented { background: var(--surface-muted); border-color: var(--surface-border); }
html[data-theme="dark"] .segmented a.active { background: var(--surface); color: var(--ink); }
html[data-theme="dark"] .flash-success { background: rgba(47, 191, 113, 0.16); color: #4FD98B; }
html[data-theme="dark"] .flash-error { background: rgba(239, 74, 99, 0.16); color: #FF8A9B; }
html[data-theme="dark"] .empty-state .icon-circle { background: rgba(255, 122, 89, 0.14); color: var(--coral-300); }
html[data-theme="dark"] .address-suggestions, html[data-theme="dark"] .article-suggestions, html[data-theme="dark"] .article-price-list, html[data-theme="dark"] .customer-suggestions { background: var(--surface); border-color: var(--surface-border); }
html[data-theme="dark"] .premium-field-trigger { background: var(--surface-sunken); border-color: var(--surface-sunken-border); color: var(--ink); }
html[data-theme="dark"] .premium-date-panel, html[data-theme="dark"] .premium-time-panel { background: var(--surface); border-color: var(--surface-border); }
html[data-theme="dark"] .premium-date-grid button:hover:not(:disabled) { background: rgba(74, 148, 168, 0.18); }
html[data-theme="dark"] .premium-time-columns { background: var(--surface-sunken); }
html[data-theme="dark"] .premium-time-highlight { background: rgba(74, 148, 168, 0.22); }
html[data-theme="dark"] .premium-time-col button.is-selected { color: var(--teal-300); }
html[data-theme="dark"] .premium-time-actions .time-cancel { background: var(--surface-sunken); border-color: var(--surface-sunken-border); color: var(--ink); }
html[data-theme="dark"] .cal-day-num.outside { color: rgba(147, 162, 172, 0.4); }
html[data-theme="dark"] .kundoo-modal { background: var(--surface); }
html[data-theme="dark"] .kundoo-modal-actions-grid a, html[data-theme="dark"] .kundoo-modal-actions-grid button { background: var(--surface-muted); border-color: var(--surface-border); }
html[data-theme="dark"] .kundoo-modal-actions-grid a:hover, html[data-theme="dark"] .kundoo-modal-actions-grid button:hover { background: rgba(74,148,168,0.18); }

html[data-style="glass"] .card {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-color: rgba(255,255,255,0.6);
  box-shadow: var(--shadow-glass), inset 0 1px 0 rgba(255,255,255,0.7);
}
html[data-theme="dark"][data-style="glass"] .card {
  background: rgba(30,49,61,0.55);
  border-color: rgba(255,255,255,0.09);
  box-shadow: var(--shadow-glass), inset 0 1px 0 rgba(255,255,255,0.06);
}
html[data-style="glass"] .field input[type=text], html[data-style="glass"] .field input[type=email],
html[data-style="glass"] .field input[type=password], html[data-style="glass"] .field input[type=number],
html[data-style="glass"] .field input[type=date], html[data-style="glass"] .field input[type=datetime-local],
html[data-style="glass"] .field input[type=tel], html[data-style="glass"] .field select,
html[data-style="glass"] .field textarea, html[data-style="glass"] .search-box input {
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
html[data-theme="dark"][data-style="glass"] .field input[type=text], html[data-theme="dark"][data-style="glass"] .field input[type=email],
html[data-theme="dark"][data-style="glass"] .field input[type=password], html[data-theme="dark"][data-style="glass"] .field input[type=number],
html[data-theme="dark"][data-style="glass"] .field input[type=date], html[data-theme="dark"][data-style="glass"] .field input[type=datetime-local],
html[data-theme="dark"][data-style="glass"] .field input[type=tel], html[data-theme="dark"][data-style="glass"] .field select,
html[data-theme="dark"][data-style="glass"] .field textarea, html[data-theme="dark"][data-style="glass"] .search-box input {
  background: rgba(11,20,26,0.65);
  border-color: rgba(255,255,255,0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.ui-style-option {
  display: flex; align-items: center; gap: 14px; cursor: pointer; text-align: left;
  padding: 12px; border-radius: 14px; border: 1px solid transparent;
}
.ui-style-option + .ui-style-option { margin-top: 12px; }
.ui-style-option input[type=radio] { position: absolute; opacity: 0; width: 0; height: 0; }
.ui-style-option-swatch {
  position: relative; flex: none; width: 64px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--teal-500), var(--coral-500));
  overflow: hidden;
}
.ui-style-option-swatch::after {
  content: ''; position: absolute; inset: 10px 6px; border-radius: 8px;
  background: rgba(255,255,255,0.92); border: 1px solid rgba(255,255,255,0.9);
}
.ui-style-option-swatch-glass::after {
  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(6px) saturate(160%);
  -webkit-backdrop-filter: blur(6px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
.ui-style-option-title { font-size: 14px; font-weight: 600; }
.ui-style-option-desc { display: block; font-size: 12px; color: var(--ink-muted); margin-top: 2px; }
.ui-style-option-active { border-color: var(--coral-500); box-shadow: 0 0 0 1px var(--coral-500); }
.ui-style-option input:focus-visible ~ .ui-style-option-swatch { outline: 2px solid var(--coral-300); outline-offset: 2px; }
.lang-page-flag { display: flex; align-items: center; justify-content: center; flex: none; width: 48px; }
.ui-style-option input:focus-visible ~ .lang-page-flag { outline: 2px solid var(--coral-300); outline-offset: 2px; border-radius: 9999px; }

.card.card-tint { background: var(--teal-50); }
html[data-theme="dark"] .card.card-tint { background: rgba(74, 148, 168, 0.20); }

body { -webkit-tap-highlight-color: transparent; }
.btn, .chip, a.card, button.card, .icon-btn, .fab, .bottom-nav a, .bottom-nav .more-btn, .sidebar-link {
  transition: transform 100ms ease-out, opacity 100ms ease-out, background-color 150ms ease, border-color 150ms ease, color 150ms ease;
  touch-action: manipulation;
}
.btn:active, .chip:active, a.card:active, button.card:active, .icon-btn:active, .fab:active,
.bottom-nav a:active, .bottom-nav .more-btn:active {
  transform: scale(0.97);
  opacity: 0.92;
}

body, .card, .sidebar, .bottom-nav, .more-sheet-panel,
.field input, .field select, .field textarea {
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

details.activity-box > summary > svg { transition: transform 200ms ease; }
details.activity-box[open] > summary > svg { transform: rotate(90deg); }
.acc-panel { overflow: hidden; transition: max-height 260ms cubic-bezier(0.22,1,0.36,1); }

.theme-icon-dark, .theme-label-to-light { display: none; }
html[data-theme="dark"] .theme-icon-light, html[data-theme="dark"] .theme-label-to-dark { display: none; }
html[data-theme="dark"] .theme-icon-dark, html[data-theme="dark"] .theme-label-to-light { display: inline-flex; }

.lang-flag-btn {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.25); padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.12); font-size: 15px; line-height: 1;
}
.lang-flag-btn:hover { background: rgba(255,255,255,0.22); }
.lang-flag-en { display: none; }
html[lang="en"] .lang-flag-de { display: none; }
html[lang="en"] .lang-flag-en { display: inline; }

.lang-toggle-mobile { position: fixed; top: calc(16px + env(safe-area-inset-top)); right: 16px; z-index: 50; }
.lang-toggle-mobile .lang-flag-btn { background: var(--surface); border-color: var(--surface-border); box-shadow: var(--shadow-glass); }
@media (min-width: 1024px) {
  .lang-toggle-mobile { display: none; }
}

.lang-toggle-auth { position: fixed; top: calc(16px + env(safe-area-inset-top)); right: 16px; z-index: 50; }
.lang-toggle-auth .lang-flag-btn { background: rgba(255,255,255,0.9); border-color: rgba(255,255,255,0.6); box-shadow: var(--shadow-glass); }

.lang-toggle-account .lang-flag-btn { background: var(--surface-muted); border-color: var(--surface-border); }

.lang-switcher { position: relative; }
.lang-switcher-trigger { cursor: pointer; list-style: none; }
.lang-switcher-trigger::-webkit-details-marker { display: none; }
.lang-switcher-trigger::marker { content: ''; }
.lang-switcher-panel {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  min-width: 128px; max-width: calc(100vw - 24px);
  background: var(--surface); border: 1px solid var(--surface-border);
  border-radius: 14px; box-shadow: var(--shadow-glass); padding: 6px;
}
.lang-switcher-option {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border-radius: 9px; border: 0; background: transparent;
  font-family: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  text-transform: uppercase; text-align: left; color: var(--ink); cursor: pointer;
}
.lang-switcher-option:hover { background: var(--surface-muted); }
.lang-switcher-option .lang-switcher-flag { display: inline-flex; flex-shrink: 0; }
.lang-switcher-option .lang-switcher-name { flex: 1; }
.sidebar-footer .lang-switcher-option,
.sidebar-footer .lang-switcher-option:hover { color: var(--ink); }
.sidebar-footer .lang-switcher-option.active,
.sidebar-footer .lang-switcher-option.active:hover { color: var(--teal-700); }
html[data-theme="dark"] .sidebar-footer .lang-switcher-option.active,
html[data-theme="dark"] .sidebar-footer .lang-switcher-option.active:hover { color: var(--teal-300); }
.lang-switcher-option .lang-switcher-check { display: none; color: var(--teal-500); flex-shrink: 0; }
.lang-switcher-option.active { background: var(--teal-50); color: var(--teal-700); }
.lang-switcher-option.active .lang-switcher-check { display: inline-flex; }
html[data-theme="dark"] .lang-switcher-option.active {
  background: rgba(74, 148, 168, 0.18); color: var(--teal-300);
}
.lang-toggle-auth .lang-switcher-trigger { background: none; border: none; box-shadow: none; }
.lang-toggle-mobile .lang-switcher-trigger { background: var(--surface); border-color: var(--surface-border); box-shadow: var(--shadow-glass); }
.footer-actions .lang-switcher-trigger {
  background: none; border: none; color: var(--teal-100); cursor: pointer;
  padding: 4px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; line-height: 1;
}
.footer-actions .lang-switcher-trigger:hover { color: #fff; }
.footer-actions .lang-switcher-panel { top: auto; bottom: calc(100% + 8px); right: 0; }
.footer-actions .lang-switcher-panel::after {
  content: ''; position: absolute; bottom: -5px; right: 10px;
  width: 10px; height: 10px; background: var(--surface);
  border-right: 1px solid var(--surface-border); border-bottom: 1px solid var(--surface-border);
  transform: rotate(45deg); border-radius: 0 0 3px 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.coin-rain { position: fixed; inset: 0; pointer-events: none; z-index: 9999; overflow: hidden; }
.coin-rain-particle {
  position: absolute;
  animation-name: coinCannonArc; animation-fill-mode: forwards;
  will-change: transform, opacity;
}
.coin-rain-coin {
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff6d5 0%, #ffe07a 28%, #f6c331 55%, #d69a12 80%, #a97908 100%);
  box-shadow: inset 0 0 0 1px rgba(120, 84, 6, 0.55), inset 0 -2px 3px rgba(120, 84, 6, 0.3), 0 2px 4px rgba(0,0,0,0.22);
}
.coin-rain-coin::after {
  content: '€';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 55%; font-weight: 800; color: rgba(120, 84, 6, 0.55);
}
.coin-rain-bill {
  border-radius: 3px;
  background: linear-gradient(135deg, #eafff1 0%, #7ee39a 22%, #2fa85c 55%, #1c7b41 80%, #125c2f 100%);
  box-shadow: inset 0 0 0 1px rgba(15, 79, 36, 0.55), 0 2px 4px rgba(0,0,0,0.22);
}
.coin-rain-bill::after {
  content: '€';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 50%; font-weight: 800; color: rgba(255,255,255,0.75);
}
@keyframes coinCannonArc {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0; animation-timing-function: ease-out; }
  8% { opacity: 1; }
  38% {
    transform: translate(var(--dx1), var(--dy1)) rotate(var(--rot1));
    opacity: 1;
    animation-timing-function: ease-in;
  }
  100% {
    transform: translate(calc(var(--dx1) + var(--dx2)), calc(var(--dy1) + var(--dy2))) rotate(var(--rot2));
    opacity: 0;
  }
}

.kundoo-checkbox { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.kundoo-checkbox input { position: absolute; opacity: 0; width: 0; height: 0; }
.kundoo-checkbox-mark {
  position: relative; flex-shrink: 0; width: 21px; height: 21px;
  background: var(--surface); border: 2px solid var(--surface-border);
  border-radius: 6px; transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.kundoo-checkbox-mark::after {
  content: ''; position: absolute; display: none;
  left: 6px; top: 2px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.kundoo-checkbox:hover .kundoo-checkbox-mark { border-color: var(--coral-300); }
.kundoo-checkbox input:checked ~ .kundoo-checkbox-mark {
  background: var(--coral-500); border-color: var(--coral-500);
  box-shadow: 0 3px 7px rgba(255, 122, 89, 0.32);
}
.kundoo-checkbox input:checked ~ .kundoo-checkbox-mark::after { display: block; }
.kundoo-checkbox input:focus-visible ~ .kundoo-checkbox-mark { outline: 2px solid var(--coral-300); outline-offset: 2px; }
html[data-theme="dark"] .kundoo-checkbox-mark { background: var(--surface); border-color: var(--surface-border); }

.kundoo-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.kundoo-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.kundoo-switch-slider {
  position: absolute; inset: 0; cursor: pointer;
  background: var(--surface-border); border-radius: 34px;
  transition: background 0.25s ease;
}
.kundoo-switch-slider::before {
  content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px;
  background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  transition: transform 0.25s ease;
}
.kundoo-switch input:checked ~ .kundoo-switch-slider {
  background: linear-gradient(135deg, var(--coral-500), var(--coral-700));
}
.kundoo-switch input:checked ~ .kundoo-switch-slider::before { transform: translateX(20px); }
.kundoo-switch input:focus-visible ~ .kundoo-switch-slider { outline: 2px solid var(--coral-300); outline-offset: 2px; }

.help-item { transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.help-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  cursor: pointer; list-style: none; font-size: 14px; font-weight: 600;
  color: var(--ink); transition: color 0.2s ease;
}
.help-item summary::-webkit-details-marker { display: none; }
.help-item summary svg { color: var(--teal-500); transition: transform 0.25s ease, color 0.25s ease; flex-shrink: 0; }
.help-item:hover summary { color: var(--coral-700); }
.help-item:hover summary svg { color: var(--coral-500); }
.help-item[open] { border-color: var(--coral-300); box-shadow: 0 4px 16px rgba(255, 122, 89, 0.1); }
.help-item[open] summary { color: var(--coral-700); }
.help-item[open] summary svg { transform: rotate(90deg); color: var(--coral-500); }
html[data-theme="dark"] .help-item[open] { box-shadow: 0 4px 16px rgba(255, 122, 89, 0.18); }

.kpi-progress { margin-top: 8px; }
.kpi-progress-track {
  position: relative; height: 6px; border-radius: 999px;
  background: var(--surface-border); overflow: hidden;
}
.kpi-progress-fill {
  position: absolute; inset: 0 auto 0 0; height: 100%; border-radius: 999px;
  width: var(--kpi-progress-target, 0%);
  background: linear-gradient(90deg, var(--coral-300), var(--coral-500), var(--coral-700));
  background-size: 200% 100%;
  animation: kpiProgressFill 1s cubic-bezier(0.4, 0, 0.2, 1) both, kpiProgressGlow 2.4s ease-in-out 1s infinite;
}
.kpi-progress-label { margin-top: 5px; font-size: 11px; color: var(--ink-muted); }
@keyframes kpiProgressFill {
  from { width: 0%; }
  to { width: var(--kpi-progress-target, 0%); }
}
@keyframes kpiProgressGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .kpi-progress-fill { animation: none; width: var(--kpi-progress-target, 0%); }
}
.sidebar-legal-links { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 10px 20px 14px; font-size: 11px; }
.sidebar-legal-links a { color: var(--ink-muted); text-decoration: none; }
.sidebar-legal-links a:hover { text-decoration: underline; }
