/* Cloudflare .dev Directory Modern Stylesheet */

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Theme: Dark (Default) */
  --bg-page: #0B0F19;
  --bg-surface: #111827;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-card-hover: rgba(31, 41, 55, 0.85);
  --bg-input: #1F2937;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.12);
  --border-focus: #F6821F;

  --text-main: #F3F4F6;
  --text-muted: #9CA3AF;
  --text-sub: #6B7280;

  --cf-orange: #F6821F;
  --cf-orange-hover: #E06F0F;
  --cf-amber: #FAAD3F;

  --emerald: #10B981;
  --emerald-bg: rgba(16, 185, 129, 0.15);
  --emerald-border: rgba(16, 185, 129, 0.3);

  --amber: #F59E0B;
  --amber-bg: rgba(245, 158, 11, 0.15);

  --rose: #EF4444;
  --rose-bg: rgba(239, 68, 68, 0.15);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 25px rgba(246, 130, 31, 0.2);

  --container-max: 1280px;
}

[data-theme="light"] {
  --bg-page: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: #FFFFFF;
  --bg-input: #F1F5F9;
  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-card: rgba(0, 0, 0, 0.09);

  --text-main: #0F172A;
  --text-muted: #475569;
  --text-sub: #64748B;

  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Ambient Glows */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
  z-index: 0;
}
.bg-glow-1 {
  width: 500px;
  height: 500px;
  top: -150px;
  right: -100px;
  background: radial-gradient(circle, rgba(246, 130, 31, 0.15) 0%, transparent 70%);
}
.bg-glow-2 {
  width: 450px;
  height: 450px;
  top: 300px;
  left: -150px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background-color: rgba(11, 15, 25, 0.75);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.2s ease;
}
[data-theme="light"] .site-header {
  background-color: rgba(248, 250, 252, 0.85);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(246, 130, 31, 0.1);
  border: 1px solid rgba(246, 130, 31, 0.3);
  border-radius: var(--radius-md);
  box-shadow: 0 0 12px rgba(246, 130, 31, 0.15);
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-accent {
  background: linear-gradient(135deg, var(--cf-orange), var(--cf-amber));
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(246, 130, 31, 0.35);
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--emerald);
}
.sync-badge.loading {
  background: rgba(246, 130, 31, 0.1);
  border-color: rgba(246, 130, 31, 0.25);
  color: var(--cf-orange);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: pulse-ring 2s infinite ease-in-out;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cf-orange), #EA580C);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(246, 130, 31, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--cf-orange-hover), #C2410C);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(246, 130, 31, 0.45);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-card);
}
.btn-secondary:hover {
  background: var(--bg-input);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover {
  color: var(--text-main);
  background: var(--bg-surface);
}

.btn-icon-only {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.sun-icon { display: none; }
.moon-icon { display: block; }
[data-theme="light"] .sun-icon { display: block; }
[data-theme="light"] .moon-icon { display: none; }

.refresh-icon.rotating {
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* Hero Section */
.hero-section {
  padding: 3.5rem 0 2rem;
  text-align: center;
}

.hero-content {
  max-width: 780px;
  margin: 0 auto 2.5rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(246, 130, 31, 0.1);
  border: 1px solid rgba(246, 130, 31, 0.25);
  color: var(--cf-orange);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}
.pill-sparkle { font-size: 0.9rem; }
.pill-sep { opacity: 0.5; }

.hero-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.gradient-text {
  background: linear-gradient(135deg, #F6821F 20%, #FBAD41 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.code-pill {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  color: var(--cf-amber);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 1040px;
  margin: 0 auto;
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(246, 130, 31, 0.3);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-sub);
  margin-bottom: 0.35rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.stat-value-sm {
  font-size: 1.35rem;
  padding-top: 0.4rem;
}

.stat-footer {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.text-emerald { color: var(--emerald); }
.text-orange { color: var(--cf-orange); }

/* Controls Strip */
.controls-section {
  padding: 1.5rem 0 2rem;
}

.search-bar {
  margin-bottom: 1.25rem;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 0.25rem 0.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-input-wrapper:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(246, 130, 31, 0.15);
}

.search-icon {
  margin-left: 0.75rem;
  color: var(--text-sub);
  flex-shrink: 0;
}

#searchInput {
  width: 100%;
  background: transparent;
  border: none;
  padding: 0.85rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-main);
  outline: none;
}
#searchInput::placeholder {
  color: var(--text-sub);
}

.clear-btn {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-sub);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}
.clear-btn:hover { color: var(--text-main); }

.shortcut-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  color: var(--text-sub);
  margin-right: 0.5rem;
}

/* Category Pills & Filters */
.filter-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.category-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.pill:hover {
  color: var(--text-main);
  background: var(--bg-input);
}
.pill.active {
  background: var(--cf-orange);
  border-color: var(--cf-orange);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(246, 130, 31, 0.35);
}
.pill-count {
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
}
.pill.active .pill-count {
  background: rgba(255, 255, 255, 0.25);
}

.extra-filters {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.status-toggle-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}
.status-toggle-label input {
  display: none;
}
.custom-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--border-card);
  background: var(--bg-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.status-toggle-label input:checked + .custom-checkbox {
  background: var(--emerald);
  border-color: var(--emerald);
}
.status-toggle-label input:checked + .custom-checkbox::after {
  content: '✓';
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 800;
}

.sort-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sort-label {
  font-size: 0.8rem;
  color: var(--text-sub);
}
.sort-select {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-md);
  outline: none;
  cursor: pointer;
}

/* Sites Grid */
.sites-section {
  padding-bottom: 5rem;
}

.sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}

/* Site Card Component */
.site-card {
  container-type: inline-size;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.site-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cf-orange), var(--cf-amber));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.site-card:hover {
  transform: translateY(-3px);
  border-color: rgba(246, 130, 31, 0.4);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.site-card:hover::before {
  opacity: 1;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-project-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.project-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(246, 130, 31, 0.2), rgba(99, 102, 241, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--cf-orange);
  flex-shrink: 0;
}

.project-name-wrap {
  min-width: 0;
}

.project-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-domain {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cf-amber);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
}
.project-domain:hover {
  text-decoration: underline;
}

.card-badges {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.platform-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background: rgba(246, 130, 31, 0.1);
  border: 1px solid rgba(246, 130, 31, 0.25);
  color: var(--cf-orange);
  white-space: nowrap;
}

.card-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}
.status-online {
  background: var(--emerald-bg);
  border: 1px solid var(--emerald-border);
  color: var(--emerald);
}
.status-offline {
  background: var(--amber-bg);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--amber);
}

.card-description {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.1rem;
}

.custom-domains-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.custom-domain-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  color: var(--text-sub);
}

.card-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.tag-badge {
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.btn-open {
  flex: 1;
}

/* Loading & Empty States */
.loading-state, .empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 1rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-card);
  border-radius: var(--radius-lg);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(246, 130, 31, 0.2);
  border-top-color: var(--cf-orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

/* Modals */
.modal {
  border: none;
  background: transparent;
  padding: 1rem;
  max-width: 580px;
  width: 90vw;
  margin: auto;
}
.modal::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.modal-icon { font-size: 1.5rem; }

.project-avatar-sm {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(246, 130, 31, 0.2), rgba(99, 102, 241, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--cf-orange);
}

.modal-domain {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cf-amber);
}

.close-modal-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-sub);
  cursor: pointer;
  line-height: 1;
}
.close-modal-btn:hover { color: var(--text-main); }

.modal-body {
  padding: 1.5rem;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.modal-desc-text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-main);
  background: var(--bg-page);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-top: 0.4rem;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.detail-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-sub);
}
.detail-val {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}
.code-val {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  word-break: break-all;
}

.custom-domains-box {
  margin-top: 1.25rem;
}
.custom-domain-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

/* Guide Steps */
.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.guide-step {
  display: flex;
  gap: 1rem;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cf-orange);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.step-content p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.token-config-box {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
}
.token-config-box pre {
  margin-top: 0.75rem;
  background: #000000;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cf-amber);
  overflow-x: auto;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-page);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 100;
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-left: 3px solid var(--cf-orange);
  box-shadow: var(--shadow-lg);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: slide-in 0.2s ease-out;
}
@keyframes slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 0;
  font-size: 0.8rem;
  color: var(--text-sub);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-right code {
  font-family: var(--font-mono);
  background: var(--bg-surface);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .header-inner {
    height: auto;
    padding: 1rem 0;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  .hero-section {
    padding: 2rem 0 1rem;
  }
  .filter-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .extra-filters {
    justify-content: space-between;
  }
  .sites-grid {
    grid-template-columns: 1fr;
  }
}
