:root,
[data-theme="light"] {
  --bg: #f4f6f9;
  --bg-card: #ffffff;
  --bg-hover: #eef2f6;
  --bg-elevated: #ffffff;
  --border: #dce3eb;
  --border-strong: #c5d0dc;
  --text: #111827;
  --text-muted: #5b6776;
  --accent: #0f766e;
  --accent-hover: #0d9488;
  --green: #059669;
  --yellow: #d97706;
  --red: #dc2626;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.08);
  --primary-muted: rgba(15, 118, 110, 0.08);
  --primary-muted-strong: rgba(15, 118, 110, 0.14);
  --nav-active-bg: rgba(15, 118, 110, 0.1);
  --nav-active-text: #0f766e;
  --row-hover: rgba(15, 23, 42, 0.03);
  --overlay: rgba(15, 23, 42, 0.4);
  --success-bg: rgba(5, 150, 105, 0.1);
  --warning-bg: rgba(217, 119, 6, 0.1);
  --danger-bg: rgba(220, 38, 38, 0.08);
  --badge-bg: #eef2f6;
  --badge-text: #475569;
  --font-heading: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
}

[data-theme="dark"] {
  --bg: #0f1318;
  --bg-card: #171c23;
  --bg-hover: #1e242d;
  --bg-elevated: #1c222b;
  --border: #2a323d;
  --border-strong: #384252;
  --text: #e8edf3;
  --text-muted: #93a0b0;
  --accent: #2dd4bf;
  --accent-hover: #5eead4;
  --green: #34d399;
  --yellow: #fbbf24;
  --red: #f87171;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 12px 32px rgba(0, 0, 0, 0.35);
  --primary-muted: rgba(45, 212, 191, 0.1);
  --primary-muted-strong: rgba(45, 212, 191, 0.16);
  --nav-active-bg: rgba(45, 212, 191, 0.12);
  --nav-active-text: #5eead4;
  --row-hover: rgba(255, 255, 255, 0.03);
  --overlay: rgba(0, 0, 0, 0.62);
  --success-bg: rgba(52, 211, 153, 0.12);
  --warning-bg: rgba(251, 191, 36, 0.12);
  --danger-bg: rgba(248, 113, 113, 0.12);
  --badge-bg: rgba(255, 255, 255, 0.06);
  --badge-text: #a8b4c4;
}

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

html { color-scheme: light dark; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .page-header h2, .panel-header h3, #profile-title {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.hidden { display: none !important; }

.app {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
  transition: grid-template-columns 0.2s ease;
}

.app.sidebar-collapsed {
  grid-template-columns: 0 1fr;
}

.app.sidebar-collapsed .sidebar {
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  padding: 0;
  border: none;
}

/* Sidebar */
.sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
}

.brand-text { flex: 1; min-width: 0; }

.btn-sidebar-toggle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-hover);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.btn-sidebar-toggle:hover {
  color: var(--text);
  border-color: var(--accent);
}

.btn-sidebar-toggle svg {
  width: 18px;
  height: 18px;
}

.sidebar-open-fab {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.sidebar-open-fab:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
}

.sidebar-open-fab svg {
  width: 20px;
  height: 20px;
}

.app:not(.sidebar-collapsed) .sidebar-open-fab {
  display: none !important;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.03em;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .brand-icon { color: #0f1318; }

.brand h1 { font-size: 16px; font-weight: 700; }
.brand p { font-size: 12px; color: var(--text-muted); }

.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }

.nav-item,
.nav-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.nav-item:hover,
.nav-group-title:hover { background: var(--bg-hover); }

.nav-item.active {
  background: var(--nav-active-bg);
  color: var(--nav-active-text);
  font-weight: 600;
}

.nav-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
}

.nav-item.active .nav-icon { color: var(--nav-active-text); }

.nav-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.75;
}

.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-group-title { color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.nav-chevron { margin-left: auto; font-size: 10px; }
.nav-group:not(.open) .nav-submenu { display: none; }
.nav-submenu { display: flex; flex-direction: column; gap: 2px; padding-left: 8px; }
.nav-submenu .nav-item { font-size: 13px; text-transform: none; letter-spacing: normal; font-weight: 500; }
.nav-item.nav-soon { opacity: 0.45; cursor: not-allowed; }

.page-header {
  padding: 8px 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.page-eyebrow { display: none; }
.page-header h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.page-desc { color: var(--text-muted); font-size: 14px; }

.youtube-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.youtube-layout .panel-wide { grid-column: 1 / -1; }
.panel-body { padding: 16px; }
.panel-body label { display: block; font-size: 12px; color: var(--text-muted); margin: 12px 0 6px; }
.panel-body input,
.panel-body textarea,
.panel-body select {
  width: 100%;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
}

.channel-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.channel-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
}
.channel-card img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--border); }
.channel-card .ch-info { flex: 1; min-width: 0; }
.channel-card .ch-title { font-size: 14px; font-weight: 600; }
.channel-card .ch-meta { font-size: 11px; color: var(--text-muted); }
.channel-card .ch-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.page-header-actions { display: flex; gap: 8px; align-items: flex-start; }

.quota-banner {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  border: 1px solid transparent;
}
.quota-banner.warning {
  background: var(--warning-bg);
  border-color: var(--yellow);
  color: var(--yellow);
}
.quota-banner.danger {
  background: var(--danger-bg);
  border-color: var(--red);
  color: var(--red);
}

.oauth-mini-summary {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}
.oauth-mini-summary .mini-row { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.oauth-mini-summary .mini-row:last-child { margin-bottom: 0; }

.oauth-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.oauth-summary-card {
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
}
.oauth-summary-card .osc-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.oauth-summary-card .osc-value { font-size: 22px; font-weight: 700; margin-top: 4px; }
.oauth-summary-card.ok .osc-value { color: var(--green); }
.oauth-summary-card.warn .osc-value { color: var(--yellow); }
.oauth-summary-card.bad .osc-value { color: var(--red); }

.oauth-table th,
.oauth-table td { font-size: 12px; vertical-align: middle; }
.oauth-table .app-label { font-weight: 600; font-size: 13px; }
.oauth-table .app-id { font-size: 11px; color: var(--text-muted); }
.oauth-table-hint { margin-top: 12px; }

.monitoring-hub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.monitoring-hub-tab {
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.monitoring-hub-tab:hover {
  color: var(--text);
}

.monitoring-hub-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.monitoring-section.hidden {
  display: none !important;
}

.oauth-summary-card .osc-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

.volume-bar {
  height: 8px;
  min-width: 120px;
  background: var(--bg-elevated);
  border-radius: 999px;
  overflow: hidden;
}

.volume-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--green));
  border-radius: 999px;
  min-width: 2px;
}

.volume-server-panel .panel-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.volume-server-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.volume-server-usage {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

.volume-server-used { color: var(--text); }
.volume-server-sep { color: var(--text-muted); margin: 0 4px; font-weight: 500; }
.volume-server-total { color: var(--text-muted); font-size: 22px; font-weight: 600; }

.volume-server-free {
  font-size: 13px;
  color: var(--text-muted);
}

.volume-server-bar {
  height: 14px;
  background: var(--bg-elevated);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.volume-server-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--green));
  min-width: 2px;
  transition: width 0.35s ease;
}

.volume-server-bar.warn span {
  background: linear-gradient(90deg, var(--yellow), #f59e0b);
}

.volume-server-bar.critical span {
  background: linear-gradient(90deg, var(--red), #ef4444);
}

.monitoring-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.monitoring-tab {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-hover);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.monitoring-tab:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--accent);
}
.monitoring-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.monitoring-tab:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.monitoring-table th,
.monitoring-table td { font-size: 12px; vertical-align: middle; }
.monitoring-table .mon-account { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.monitoring-table .mon-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-hover);
  flex-shrink: 0;
}
.monitoring-table .mon-avatar.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}
.monitoring-table .mon-name { font-weight: 600; font-size: 13px; }
.monitoring-table .mon-handle { font-size: 11px; color: var(--text-muted); }
.monitoring-table .platform-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
  background: var(--bg-hover);
  border: 1px solid var(--border);
}
.monitoring-table .money { color: var(--green); font-weight: 600; }

.monitoring-connect-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.monitoring-connect-row input[type="text"] {
  flex: 1;
  min-width: 200px;
}
.monitoring-connected-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.monitoring-connected-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-hover);
}
.monitoring-connected-item .mon-actions { margin-left: auto; display: flex; gap: 6px; }
.badge-muted { background: var(--bg-hover); color: var(--text-muted); }

.th-sortable {
  white-space: nowrap;
  user-select: none;
}

.th-sortable > span:first-child {
  margin-right: 4px;
}

.th-sort-arrows {
  display: inline-flex;
  flex-direction: column;
  vertical-align: middle;
  gap: 1px;
  margin-left: 2px;
}

.th-sort-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 11px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 8px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.35;
  transition: opacity 0.15s, color 0.15s;
}

.th-sort-btn:hover {
  opacity: 0.85;
  color: var(--text);
}

.th-sort-btn.active {
  opacity: 1;
  color: var(--accent);
}

.col-select {
  width: 36px;
  text-align: center;
  padding-left: 8px !important;
  padding-right: 4px !important;
}

.col-select input[type="checkbox"],
.video-select {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--accent);
}

tr.video-row-selected {
  background: var(--primary-muted);
}

.status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.status-badge.ok { background: var(--success-bg); color: var(--green); }
.status-badge.warning { background: var(--warning-bg); color: var(--yellow); }
.status-badge.exhausted,
.status-badge.minute_limit { background: var(--danger-bg); color: var(--red); }
.status-badge.disabled { background: var(--badge-bg); color: var(--badge-text); }

.quota-bar-wrap { min-width: 120px; }
.quota-bar-label { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.quota-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}
.quota-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}
.quota-bar-fill.ok { background: var(--green); }
.quota-bar-fill.warning { background: var(--yellow); }
.quota-bar-fill.exhausted { background: var(--red); }

.oauth-actions { display: flex; gap: 4px; flex-wrap: wrap; }

.yt-single-tool {
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--primary-muted);
}
.yt-single-tool-summary {
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 14px;
  list-style: none;
}
.yt-single-tool-summary::-webkit-details-marker { display: none; }
.yt-single-tool-body { padding: 0 14px 14px; border-top: 1px solid var(--border); }
.schedule-block { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
.schedule-block.schedule-disabled { opacity: 0.55; }

.title-variants { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.title-variant-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.15s;
}
.title-variant-card:hover,
.title-variant-card.selected { border-color: var(--accent); background: var(--primary-muted); }
.title-variant-card input { margin-top: 4px; }
.title-variant-card .tv-title { font-weight: 600; font-size: 14px; }
.title-variant-card .tv-meta { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.tag-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag-chips .chip {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.ab-actions { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }

.sidebar-section h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0;
  margin: 0;
}

.sidebar-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 8px;
  margin-bottom: 8px;
}

.sidebar-section-header .btn {
  font-size: 11px;
  padding: 4px 8px;
  flex-shrink: 0;
}

.sidebar-profiles {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.profile-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  max-height: min(42vh, 360px);
  padding-right: 2px;
}

.profile-folder-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-folder-head {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border-radius: 6px;
}

.profile-folder-head:hover {
  background: var(--bg-hover);
}

.profile-folder-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  padding: 4px 6px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.profile-folder-toggle .folder-chevron {
  font-size: 10px;
  width: 12px;
  flex-shrink: 0;
}

.profile-folder-toggle .folder-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}

.profile-folder-toggle .folder-count {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
}

.profile-folder-actions {
  display: flex;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.15s;
}

.profile-folder-head:hover .profile-folder-actions {
  opacity: 1;
}

.profile-folder-actions .btn {
  padding: 2px 5px;
  font-size: 11px;
  min-width: 0;
}

.profile-folder-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 8px;
}

.profile-folder-group.collapsed .profile-folder-items {
  display: none;
}

.profile-folder-group.collapsed .folder-chevron {
  transform: rotate(-90deg);
}

.profile-uncategorized-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 4px 8px 2px;
}

.folder-move-menu {
  position: fixed;
  z-index: 300;
  min-width: 160px;
  max-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.folder-move-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}

.folder-move-menu button:hover {
  background: var(--bg-hover);
}

.folder-move-menu .menu-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 6px 10px 2px;
}

.profile-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  border: 1px solid transparent;
}

.profile-item:hover { background: var(--bg-hover); }
.profile-item.active {
  background: var(--nav-active-bg);
  border-color: var(--border-strong);
}

.profile-item .pi-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: var(--bg-hover);
}

.profile-item .pi-name { font-size: 14px; font-weight: 500; }
.profile-item .pi-meta { font-size: 11px; color: var(--text-muted); }

.sidebar-footer { margin-top: auto; }

.sidebar-hint {
  font-size: 11px;
  color: var(--text-muted);
  padding: 4px 8px 0;
  line-height: 1.4;
}

.hint-ok { color: var(--green); }
.hint-warn { color: var(--yellow); }

.cookies-platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.cookie-platform-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cookie-platform-card.ok { border-color: rgba(34, 197, 94, 0.35); }
.cookie-platform-card.warn { border-color: rgba(234, 179, 8, 0.35); }

.cookie-platform-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cookie-platform-title {
  font-size: 15px;
  font-weight: 600;
}

.cookie-platform-site {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.cookie-platform-status {
  font-size: 12px;
  line-height: 1.4;
}

.cookie-platform-status.ok { color: var(--green); }
.cookie-platform-status.warn { color: var(--yellow); }

.cookie-platform-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.cookie-platform-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.btn-danger {
  background: rgba(255, 107, 107, 0.15);
  color: var(--red);
  border: 1px solid rgba(255, 107, 107, 0.3);
}
.btn-danger:hover { background: rgba(255, 107, 107, 0.25); }

.modal-wide { max-width: 520px; }

.tab-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  background: var(--bg-hover);
  padding: 4px;
  border-radius: 8px;
}

.tab {
  flex: 1;
  padding: 8px 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.tab.active { background: var(--bg-card); color: var(--text); }

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

.tab-panel textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 12px;
  resize: vertical;
}

.code-hint {
  display: block;
  font-size: 11px;
  color: var(--accent);
  background: var(--primary-muted);
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.profile-item {
  position: relative;
}

.profile-item .pi-body {
  flex: 1;
  min-width: 0;
}

.profile-item .pi-move {
  flex-shrink: 0;
  opacity: 0;
  padding: 4px 6px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  transition: opacity 0.15s, background 0.15s;
}

.profile-item:hover .pi-move,
.profile-item.active .pi-move {
  opacity: 1;
}

.profile-item .pi-move:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.label-hint {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 10px;
}

.api-status {
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 14px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
}
.api-status.ok { border-color: var(--green); color: var(--green); }
.api-status.warn { border-color: var(--yellow); color: var(--yellow); }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-top: 10px;
  color: var(--text-muted);
}

.checkbox-label input { width: auto; }

.api-actions { flex-wrap: wrap; }

.api-help {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
}
.api-help summary { cursor: pointer; color: var(--accent); }
.api-help ol { margin: 8px 0 0 18px; line-height: 1.6; }
.api-help a { color: var(--accent); }

.modal-content select,
.modal-content input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 4px;
}

/* Buttons */
.btn {
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); filter: brightness(1.03); }
[data-theme="dark"] .btn-primary { color: #0f1318; }
.btn-secondary {
  background: var(--bg-hover);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); background: var(--bg-hover); }
.btn-sm { padding: 6px 10px; font-size: 12px; }

/* Main */
.main { padding: 28px 32px; overflow-y: auto; }

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
  gap: 12px;
}

.empty-icon { font-size: 48px; }
.empty-state h2 { font-size: 22px; }
.empty-state p { color: var(--text-muted); max-width: 360px; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.platform-badge {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--bg-hover);
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

#profile-title { font-size: 26px; font-weight: 700; }
#profile-link { font-size: 13px; color: var(--accent); text-decoration: none; }
#profile-link:hover { text-decoration: underline; }

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

.download-controls {
  display: flex;
  gap: 6px;
  align-items: center;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 6px 4px 4px;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.stat-label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.stat-value { font-size: 22px; font-weight: 700; }
.stat-small { font-size: 14px !important; }
.stat-green .stat-value { color: var(--green); }
.stat-yellow .stat-value { color: var(--yellow); }
.stat-accent .stat-value { color: var(--accent); }

/* Content grid */
.content-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 16px;
}


.downloaded-panel {
  margin-top: 16px;
}

.downloaded-panel .panel-hint {
  margin: 0;
  padding: 10px 20px 0;
  font-size: 12px;
  color: var(--text-muted);
}

.downloaded-panel .table-wrap {
  max-height: 360px;
}

.downloaded-empty {
  padding: 28px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.loc-server {
  background: rgba(0, 184, 148, 0.15);
  color: var(--green);
}

.loc-pc {
  background: rgba(116, 185, 255, 0.15);
  color: #74b9ff;
}

.row-downloaded td {
  opacity: 0.92;
}

@media (max-width: 1100px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .content-grid { grid-template-columns: 1fr; }
}

.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.panel-header h3 { font-size: 15px; font-weight: 600; }

.badge {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid var(--border);
}

.filters { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.filter-count { font-size: 12px; color: var(--text-muted); }

.filters input[type="date"],
.filters input[type="number"] {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-family: inherit;
  width: 130px;
}

.filters input[type="number"] { width: 110px; }

select {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-family: inherit;
}

/* Hero list */
.hero-list { padding: 12px; display: flex; flex-direction: column; gap: 8px; max-height: 520px; overflow-y: auto; }

.hero-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: var(--bg-hover);
  align-items: center;
}

.hero-rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.hero-item:nth-child(1) .hero-rank { background: #ffd700; color: #333; }
.hero-item:nth-child(2) .hero-rank { background: #c0c0c0; color: #333; }
.hero-item:nth-child(3) .hero-rank { background: #cd7f32; color: #333; }

.hero-info { flex: 1; min-width: 0; }
.hero-title { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-gmv { font-size: 14px; font-weight: 700; color: var(--green); }
.hero-meta { font-size: 11px; color: var(--text-muted); }

/* Table */
.table-wrap { overflow-x: auto; max-height: 520px; overflow-y: auto; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }

thead { position: sticky; top: 0; background: var(--bg-card); z-index: 1; }

th {
  text-align: left;
  padding: 10px 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

tr:hover td { background: var(--row-hover); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 500;
}

.status-done { background: rgba(0,184,148,0.15); color: var(--green); }
.status-downloaded { background: rgba(231, 76, 60, 0.15); color: var(--red); }
.status-pending { background: rgba(253,203,110,0.15); color: var(--yellow); }

.video-title {
  font-weight: 500;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-title-downloaded {
  color: var(--red);
  font-weight: 600;
}

.video-id { font-size: 11px; color: var(--text-muted); }

.money { font-weight: 600; color: var(--green); }
.money-empty { color: var(--text-muted); }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
}

.modal-content h3 { font-size: 18px; margin-bottom: 8px; }
.modal-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }

.modal-content label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  margin-top: 14px;
}

.modal-content input[type="text"],
.modal-content input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}

.platform-picker { display: flex; gap: 8px; }

.platform-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.platform-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--primary-muted);
}

.platform-option input { display: none; }

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
}

/* Toast & Loading */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 14px 20px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  z-index: 200;
  font-size: 14px;
  max-width: 360px;
}

.toast.success { border-color: var(--green); }
.toast.error { border-color: var(--red); }

.loading {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 150;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

#loading-text { font-size: 14px; color: var(--text-muted); }

/* Theme toggle */
.theme-toggle-wrap {
  padding: 0 8px;
  margin-bottom: 4px;
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-hover);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.theme-toggle:hover {
  background: var(--bg-card);
  border-color: var(--border-strong);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.75;
  color: var(--text-muted);
}

[data-theme="light"] .theme-toggle .icon-dark { display: none; }
[data-theme="dark"] .theme-toggle .icon-light { display: none; }

.empty-icon svg {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
  opacity: 0.5;
}

.sidebar {
  box-shadow: 1px 0 0 var(--border);
}

.panel {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

[data-theme="dark"] .panel {
  box-shadow: none;
}

.btn:focus-visible,
.nav-item:focus-visible,
.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Auth / Login */
.auth-page {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, var(--primary-muted-strong) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 80%, var(--primary-muted) 0%, transparent 50%),
    var(--bg);
}

[data-theme="dark"] .auth-bg {
  background:
    radial-gradient(ellipse 70% 55% at 15% 25%, rgba(45, 212, 191, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 85% 75%, rgba(45, 212, 191, 0.05) 0%, transparent 50%),
    var(--bg);
}

.auth-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.auth-brand-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.auth-logo {
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.03em;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

[data-theme="dark"] .auth-logo { color: #0f1318; }

.auth-theme-btn {
  width: auto;
}

.auth-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 32px 64px;
  min-height: calc(100vh - 76px);
}

.auth-showcase {
  padding-right: 16px;
}

.auth-showcase-inner {
  max-width: 480px;
}

.auth-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--primary-muted);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.auth-headline {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.auth-lead {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 420px;
}

.auth-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.auth-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text);
}

.auth-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-feature-icon svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  stroke-width: 1.75;
}

.auth-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
}

.auth-platform-pill svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.75;
}

.auth-form-panel {
  display: flex;
  justify-content: center;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 32px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow);
}

.auth-card-header {
  margin-bottom: 28px;
}

.auth-card h1 {
  font-size: 1.375rem;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

.auth-field {
  margin-bottom: 18px;
}

.auth-field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 12px;
  display: flex;
  align-items: center;
  pointer-events: none;
  color: var(--text-muted);
}

.auth-input-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.75;
}

.auth-input-wrap input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-input-wrap input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.auth-input-wrap input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--primary-muted);
}

.auth-input-wrap input:focus + .auth-input-action,
.auth-input-wrap:focus-within .auth-input-icon {
  color: var(--accent);
}

.auth-input-wrap input[type="password"],
.auth-input-wrap input[type="text"]#password {
  padding-right: 44px;
}

.auth-input-action {
  position: absolute;
  right: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.auth-input-action:hover {
  color: var(--text);
  background: var(--bg-card);
}

.auth-input-action svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.75;
}

.auth-input-action .icon-hide { display: none; }
.auth-input-action.revealed .icon-show { display: none; }
.auth-input-action.revealed .icon-hide { display: block; }

.auth-submit {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 14px;
}

.auth-submit-icon {
  width: 16px;
  height: 16px;
  stroke-width: 2;
  transition: transform 0.15s;
}

.auth-submit:not(:disabled):hover .auth-submit-icon {
  transform: translateX(2px);
}

.auth-submit.is-loading .auth-submit-icon {
  display: none;
}

.auth-submit:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.auth-error {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--danger-bg);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 8px;
  color: var(--red);
  font-size: 13px;
  display: none;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.auth-footer-hint {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}

.auth-footer-hint svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--accent);
  stroke-width: 1.75;
}

.auth-footer-hint code {
  font-size: 11px;
  background: var(--badge-bg);
  color: var(--badge-text);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, 'SF Mono', monospace;
}

.auth-layout-single {
  grid-template-columns: 1fr;
  justify-items: center;
}

.auth-alt-link {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-alt-link a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.auth-alt-link a:hover {
  text-decoration: underline;
}

.auth-success {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--success-bg);
  border: 1px solid rgba(5, 150, 105, 0.25);
  border-radius: 8px;
  color: var(--green);
  font-size: 13px;
  line-height: 1.4;
}

.user-status-pending { color: var(--yellow); }
.user-status-approved { color: var(--green); }
.user-status-rejected { color: var(--red); }

.page-header-sub {
  padding: 8px 0 20px;
}

.page-header-sub h2 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.subscription-banner {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--warning-bg);
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}

.subscription-banner.danger {
  background: var(--danger-bg);
  border-color: rgba(220, 38, 38, 0.25);
  color: var(--red);
}

.subscription-banner.ok {
  background: var(--success-bg);
  border-color: rgba(5, 150, 105, 0.25);
  color: var(--green);
}

@media (max-width: 900px) {
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 16px 20px 48px;
    min-height: auto;
  }

  .auth-showcase {
    padding-right: 0;
    text-align: center;
  }

  .auth-showcase-inner {
    max-width: none;
  }

  .auth-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .auth-features {
    align-items: center;
  }

  .auth-features li {
    max-width: 280px;
    width: 100%;
  }

  .auth-platforms {
    justify-content: center;
  }

  .auth-headline br {
    display: none;
  }
}

@media (max-width: 480px) {
  .auth-topbar {
    padding: 16px 20px;
  }

  .auth-theme-btn span {
    display: none;
  }

  .auth-card {
    padding: 28px 22px;
    border-radius: 12px;
  }
}