:root {
  --primary: #0f9f95;
  --primary-hover: #0b8078;
  --primary-light: #e8fbf8;
  --success: #059669;
  --success-bg: #ecfdf5;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --info: #0284c7;
  --info-bg: #f0f9ff;

  --bg: #f5f7f8;
  --bg-card: #ffffff;
  --bg-header: #ffffff;
  --bg-input: #ffffff;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --text: #142126;
  --text-secondary: #53656d;
  --text-muted: #8999a1;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --header-h: 64px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --bg-card: #1e293b;
    --bg-header: #1e293b;
    --bg-input: #334155;
    --border: #334155;
    --border-light: #1e293b;
    --text: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
    --shadow: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.5);
    --primary-light: #1e1b4b;
    --success-bg: #022c22;
    --warning-bg: #451a03;
    --danger-bg: #450a0a;
    --info-bg: #082f49;
  }
}

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

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-hover); }

img { max-width: 100%; height: auto; display: block; }

input, select, textarea, button {
  font-family: inherit;
  font-size: inherit;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: var(--header-h);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text) !important;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo span { color: var(--primary); }

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.nav a:hover {
  background: var(--bg);
  color: var(--text);
}

.nav a.active {
  background: var(--primary-light);
  color: var(--primary);
}

.lang-switcher { position: relative; }

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text);
  cursor: pointer;
  font-size: 0.875rem;
  transition: all var(--transition);
}

.lang-btn:hover { border-color: var(--primary); }

.lang-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  max-height: 360px;
  overflow-y: auto;
  z-index: 200;
}

.lang-switcher:hover .lang-dropdown { display: block; }

.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: var(--text);
  transition: background var(--transition);
}

.lang-dropdown a:hover { background: var(--bg); }
.lang-dropdown a.active { background: var(--primary-light); color: var(--primary); }

.lang-flag { font-size: 1.1rem; line-height: 1; }

.hero {
  text-align: center;
  padding: 64px 24px 48px;
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 32px;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.stat-item { text-align: center; }

.stat-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

.search-bar {
  max-width: 680px;
  margin: 0 auto 32px;
  display: flex;
  gap: 8px;
}

.search-bar input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text);
  font-size: 0.9375rem;
  transition: all var(--transition);
  outline: none;
}

.search-bar input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.search-bar input::placeholder { color: var(--text-muted); }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
  padding: 0 24px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.site-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all var(--transition);
  position: relative;
}

.site-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.site-detail-card {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  padding: 28px;
}

.site-index {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--mono);
  text-decoration: none;
  transition: all var(--transition);
  z-index: 1;
}
.site-index:hover {
  color: var(--primary);
  text-decoration: underline;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--badge-bg);
  color: var(--badge-color);
  margin-bottom: 10px;
}

.site-url {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary) !important;
  word-break: break-all;
  margin-bottom: 6px;
  line-height: 1.4;
}

.site-title {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.site-description {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.site-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}

.site-links a {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--bg);
  color: var(--text-secondary);
  transition: all var(--transition);
  border: 1px solid transparent;
}

.site-links a:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
  text-decoration: none;
}

.site-meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.site-meta-info span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 32px 24px 48px;
  max-width: 1280px;
  margin: 0 auto;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.pagination a:hover {
  background: var(--bg);
  color: var(--text);
}

.pagination a.active {
  background: var(--primary);
  color: white;
}

.pagination span {
  color: var(--text-muted);
}

/* SEO Content */
.seo-content {
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.seo-content p {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto;
}
.seo-engines {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.seo-engines h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

/* Service Bar */
.service-bar {
  padding: 28px 24px 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.service-bar-title {
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.service-bar-title::before {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border));
}
.service-bar-title::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}
.service-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.service-link {
  display: inline-flex;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.service-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-1px);
}

/* Country Bar */
.country-bar {
  padding: 32px 24px 36px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  position: relative;
}

.country-bar .country-buttons:last-child {
  margin-bottom: 0;
}

.country-bar-separator {
  height: 1px;
  background: var(--border);
  margin-bottom: 22px;
}

.country-bar-title {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.country-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.country-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 18px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  min-width: 0;
  line-height: 1.4;
  font-family: inherit;
}
.country-btn .country-icon {
  display: none;
}
.country-btn .lang-flag {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
}
.country-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(99,102,241,0.18);
}
.country-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(99,102,241,0.12);
}
.country-btn.active {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary);
  box-shadow: 0 3px 12px rgba(99,102,241,0.3);
}
.country-btn.active:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(99,102,241,0.35);
}
.country-btn.active:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(99,102,241,0.25);
}
.country-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.service-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 22px;
  border: 1.5px solid var(--primary);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--bg-card);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  line-height: 1.4;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}
.service-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary);
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}
.service-btn:hover {
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99,102,241,0.25);
}
.service-btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}
.service-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(99,102,241,0.15);
}
.service-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.service-btn > * {
  position: relative;
  z-index: 1;
}

.footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.footer p { margin-bottom: 4px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-card);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white !important;
  border-color: var(--primary);
}

.btn-primary:hover { background: var(--primary-hover); opacity: 0.95; }

.btn-success {
  background: var(--success);
  color: white !important;
  border-color: var(--success);
}

.btn-success:hover { opacity: 0.9; }

.btn-warning {
  background: var(--warning);
  color: white !important;
  border-color: var(--warning);
}

.btn-warning:hover { opacity: 0.9; }

.btn-danger {
  background: var(--danger);
  color: white !important;
  border-color: var(--danger);
}

.btn-danger:hover { opacity: 0.9; }

.btn-sm { padding: 5px 12px; font-size: 0.8125rem; }

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover { background: var(--bg); }

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text);
  font-size: 0.9375rem;
  transition: all var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-control::placeholder { color: var(--text-muted); }

textarea.form-control { resize: vertical; min-height: 80px; }

select.form-control { cursor: pointer; }

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-info { background: var(--info-bg); color: var(--info); border: 1px solid var(--info); }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid var(--success); }
.alert-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid var(--warning); }
.alert-danger { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger); }

/* Route Pages */
.route-content {
  padding: 40px 24px 60px;
}
.route-article {
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow);
  line-height: 1.8;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}
.route-article p {
  margin-bottom: 18px;
}
.route-article p:last-child {
  margin-bottom: 0;
}
.route-article strong {
  color: var(--text);
  font-weight: 600;
}
.route-links {
  max-width: 860px;
  margin: 32px auto 0;
}
.route-links h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: 0.03em;
}

/* Submit Page */
.submit-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 24px;
}

.submit-header {
  text-align: center;
  margin-bottom: 36px;
}

.submit-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.submit-header p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.submit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.step-indicator {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.step.active { color: var(--primary); }
.step.completed { color: var(--success); }

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.step.active .step-number {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.step.completed .step-number {
  background: var(--success);
  color: white;
  border-color: var(--success);
}

.step-divider {
  width: 32px;
  height: 1px;
  background: var(--border);
  align-self: center;
}

.char-counter {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 4px;
}

.char-counter.warning { color: var(--warning); }
.char-counter.danger { color: var(--danger); }

.math-captcha {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.math-captcha .question {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}

/* Admin Layout */
.admin-body { background: var(--bg); }

.admin-layout {
  display: flex;
  min-height: calc(100vh - var(--header-h));
}

.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 16px;
}

.admin-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 2px;
  transition: all var(--transition);
}

.admin-sidebar a:hover {
  background: var(--bg);
  color: var(--text);
}

.admin-sidebar a.active {
  background: var(--primary-light);
  color: var(--primary);
}

.admin-content {
  flex: 1;
  padding: 28px;
  min-width: 0;
}

.admin-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.admin-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

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

.stat-card .label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 4px;
}

.stat-card .value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.stat-card .sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.table-container {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
}

table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

table td {
  padding: 12px 16px;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

table tr:last-child td { border-bottom: none; }

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

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

/* Filter bar */
.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-bar .form-control { width: auto; min-width: 160px; }

/* Edit form */
.edit-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.edit-form h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

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

.form-grid .full { grid-column: 1 / -1; }

.form-section {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 8px;
}

.form-section h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.extra-link-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}

.extra-link-row input[type="text"] {
  flex: 1;
}

.extra-link-row input:first-child {
  flex: 0 0 150px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  cursor: pointer;
  margin-left: auto;
}

/* Responsive */
@media (max-width: 1024px) {
  .sites-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .admin-sidebar { width: 200px; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 1.75rem; }
  .hero { padding: 40px 20px 32px; }
  .nav a { padding: 6px 10px; font-size: 0.8125rem; }
  .sites-grid { grid-template-columns: 1fr; padding: 0 16px 16px; }
  .admin-sidebar { display: none; }
  .admin-content { padding: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .extra-link-row { flex-direction: column; }
  .extra-link-row input:first-child { flex: 1; }
  .submit-card { padding: 20px; }
  .header-inner { padding: 0 16px; }
  .stats { gap: 24px; }
  .stat-number { font-size: 1.5rem; }
  .search-bar { flex-direction: column; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .filter-bar .form-control { min-width: 100%; }
  .actions { flex-direction: column; }
  .actions .btn { width: 100%; justify-content: center; }
}

/* Utility */
.flex { display: flex; }
.flex-center { align-items: center; }
.flex-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.8125rem; }
.text-xs { font-size: 0.75rem; }
.font-mono { font-family: var(--mono); }
.font-bold { font-weight: 700; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-full { width: 100%; }
.hidden { display: none; }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.site-card { animation: fadeIn 0.3s ease-out; }
.alert { animation: fadeIn 0.3s ease-out; }

/* WebTakip Professional Theme Refresh */
:root { --primary:#0f9f95; --primary-hover:#0b8078; --primary-light:#e8fbf8; --accent:#f59e0b; --success:#0f8f5f; --success-bg:#e9f9f1; --warning:#b7791f; --warning-bg:#fff7e6; --danger:#c24141; --danger-bg:#fff0f0; --info:#2563eb; --info-bg:#eff6ff; --bg:#f5f7f8; --bg-card:#fff; --bg-header:rgba(255,255,255,.92); --bg-input:#fff; --border:#dce4e8; --border-light:#edf2f4; --text:#142126; --text-secondary:#53656d; --text-muted:#8999a1; --shadow-sm:0 1px 2px rgba(20,33,38,.05); --shadow:0 10px 28px rgba(20,33,38,.08); --shadow-md:0 16px 42px rgba(20,33,38,.12); --shadow-lg:0 24px 70px rgba(20,33,38,.16); --radius:8px; --radius-sm:6px; --radius-lg:8px; }
body { background:linear-gradient(180deg,#fff 0%,#f5f7f8 42%,#eef3f4 100%); }.header{box-shadow:0 1px 0 rgba(20,33,38,.04)}.logo{letter-spacing:0;gap:10px}.logo small{color:var(--text-muted);font-size:.72rem;font-weight:700;margin-left:2px;text-transform:uppercase}.logo-word{color:var(--text)!important}.logo-word span{color:var(--primary)!important}.logo-icon{background:linear-gradient(135deg,#0f9f95,#17464d);border-radius:8px;box-shadow:0 12px 24px rgba(15,159,149,.22)}
.wt-hero{max-width:1280px;display:grid;grid-template-columns:minmax(0,1.04fr) minmax(360px,.72fr);align-items:center;gap:42px;text-align:left;padding:76px 24px 54px}.hero-copy h1,.wt-hero h1{font-size:clamp(2.1rem,4.2vw,4.9rem);letter-spacing:0;line-height:1.02;margin-bottom:20px;background:none;-webkit-text-fill-color:currentColor;color:var(--text)}.hero-copy p,.wt-hero p{margin:0 0 26px;max-width:700px;font-size:1.08rem;color:var(--text-secondary)}.hero-actions{display:flex;gap:10px;flex-wrap:wrap}.hero-console{background:#132328;color:#d8f8f4;border:1px solid rgba(255,255,255,.09);border-radius:8px;padding:18px;box-shadow:0 26px 70px rgba(19,35,40,.24);position:relative;overflow:hidden}.hero-console::after{content:'';position:absolute;inset:auto -20% -36% 20%;height:150px;background:radial-gradient(circle,rgba(15,159,149,.28),transparent 62%)}.console-top{display:flex;align-items:center;gap:10px;margin-bottom:16px;color:#b9d7d4}.console-top span{width:10px;height:10px;border-radius:50%;background:#31d0bd;box-shadow:0 0 0 5px rgba(49,208,189,.12)}.console-top strong{flex:1;font-size:.85rem}.console-top em{font-style:normal;color:#f8c76a;font-size:.72rem;text-transform:uppercase}.console-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.console-grid div{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);border-radius:8px;padding:16px}.console-grid span{display:block;color:#fff;font-size:1.65rem;font-weight:800;line-height:1}.console-grid small{color:#9fc5c0;font-size:.75rem}.signal-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;position:relative;z-index:1}.signal-list span{border:1px solid rgba(255,255,255,.12);color:#d8f8f4;border-radius:999px;padding:5px 10px;font-size:.74rem}
.search-bar{background:#fff;border:1px solid var(--border);border-radius:8px;padding:8px;box-shadow:var(--shadow);max-width:840px}.search-bar input{border:none;background:transparent;padding:12px 14px}.wt-feature-strip{max-width:1280px;margin:0 auto 32px;padding:0 24px;display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.wt-feature-strip article{background:#fff;border:1px solid var(--border);border-left:4px solid var(--primary);border-radius:8px;padding:18px;box-shadow:var(--shadow-sm)}.wt-feature-strip strong{display:block;color:var(--text);margin-bottom:6px}.wt-feature-strip span{color:var(--text-secondary);font-size:.85rem;line-height:1.55}.section-heading{max-width:1280px;margin:28px auto 16px;padding:0 24px;display:flex;justify-content:space-between;align-items:end;gap:16px}.section-heading span{color:var(--text);font-size:1.35rem;font-weight:800}.section-heading strong{color:var(--text-muted);font-size:.86rem;font-weight:600}.site-card{border-radius:8px;border-color:#dce6e8;box-shadow:0 8px 24px rgba(20,33,38,.05)}.site-card:hover{border-color:var(--primary);transform:translateY(-3px);box-shadow:var(--shadow-md)}.site-url{color:#087c74!important}.site-links a{border:1px solid var(--border);background:#f8fbfb;border-radius:6px}.btn{border-radius:8px;font-weight:700}.btn-primary{box-shadow:0 12px 22px rgba(15,159,149,.18)}.footer{background:#132328;color:#b8c8cc;border-top:none}.footer a{color:#68d8ce!important}
.login-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 20% 10%,rgba(15,159,149,.16),transparent 34%),#eef4f5}.login-shell{width:min(980px,calc(100% - 32px));display:grid;grid-template-columns:1fr 420px;gap:18px;align-items:stretch}.login-brand,.login-card{background:#fff;border:1px solid var(--border);border-radius:8px;padding:34px;box-shadow:var(--shadow)}.login-brand{background:#132328;color:#fff;display:flex;flex-direction:column;justify-content:center}.login-brand .logo{color:#fff!important;margin-bottom:46px}.login-brand h1{font-size:2.25rem;line-height:1.08;margin-bottom:14px}.login-brand p{color:#b8c8cc;max-width:520px}.login-points{display:flex;flex-wrap:wrap;gap:8px;margin-top:28px}.login-points span{border:1px solid rgba(255,255,255,.14);border-radius:999px;padding:7px 11px;color:#d8f8f4;font-size:.78rem}.login-card h2{font-size:1.35rem;margin-bottom:6px}.login-card>p{color:var(--text-muted);margin-bottom:22px}.login-back{display:block;text-align:center;margin-top:18px}
.admin-body{background:#f4f7f8}.admin-topbar{background:#fff}.admin-sidebar{background:#132328;border-right:0;padding:18px}.admin-sidebar a{color:#b8c8cc;border-radius:8px}.admin-sidebar a:hover,.admin-sidebar a.active{background:rgba(255,255,255,.08);color:#fff}.admin-sidebar .sidebar-muted{color:#89a1a8;font-size:.8125rem}.admin-content{padding:30px}.admin-hero-panel{background:#fff;border:1px solid var(--border);border-radius:8px;padding:26px;display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:20px;box-shadow:var(--shadow-sm)}.admin-hero-panel span{color:var(--primary);font-size:.78rem;font-weight:800;text-transform:uppercase}.admin-hero-panel h1{font-size:clamp(1.55rem,2.5vw,2.4rem);line-height:1.1;margin:8px 0}.admin-hero-panel p{color:var(--text-secondary);max-width:780px}.admin-health{width:144px;height:144px;border-radius:50%;border:12px solid var(--primary-light);display:grid;place-items:center;text-align:center;flex-shrink:0;color:var(--primary)}.admin-health strong{display:block;font-size:2rem;line-height:1}.admin-health small{color:var(--text-muted);font-weight:700}.pro-stats{grid-template-columns:repeat(4,minmax(160px,1fr))}.stat-card{border-radius:8px;box-shadow:var(--shadow-sm);position:relative;overflow:hidden}.stat-card::before{content:'';position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,var(--primary),var(--accent))}.stat-card .value.success{color:var(--success)}.stat-card .value.warning{color:var(--warning)}.stat-card .value.danger{color:var(--danger)}.stat-card .value.policy{color:var(--primary);font-size:1.2rem}.admin-status-ribbon{background:#132328;color:#d8f8f4;border-radius:8px;padding:14px 16px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:20px}.admin-status-ribbon a{color:#68d8ce}.admin-status-ribbon span{color:#b8c8cc;flex:1}.admin-panels-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:20px}.admin-panel-card{background:#fff;border:1px solid var(--border);border-radius:8px;padding:18px;box-shadow:var(--shadow-sm)}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.panel-title h2{font-size:1.05rem;margin:0}.compact-table{border-radius:8px}.activity-list{display:flex;flex-direction:column;gap:10px}.activity-item{border:1px solid var(--border-light);background:#f9fbfb;border-radius:8px;padding:12px}.activity-item strong{display:block;font-size:.85rem}.activity-item span{display:block;color:var(--text-secondary);font-size:.78rem;margin-top:3px}.activity-item small{color:var(--text-muted);font-size:.72rem}@media (max-width:900px){.wt-hero,.login-shell,.admin-panels-grid{grid-template-columns:1fr}.hero-console{min-width:0}.wt-feature-strip,.pro-stats{grid-template-columns:1fr 1fr}.admin-health{width:112px;height:112px;border-width:9px}}@media (max-width:640px){.wt-hero{padding-top:42px}.wt-feature-strip,.pro-stats{grid-template-columns:1fr}.section-heading,.admin-hero-panel{align-items:flex-start;flex-direction:column}.login-brand,.login-card{padding:24px}.console-grid{grid-template-columns:1fr}}
/* WebTakip live polish */
.header-inner { max-width: 1360px; }
.wt-hero { min-height: calc(100vh - 210px); }
.hero-copy h1 { max-width: 860px; }
.hero-actions .btn { min-height: 44px; padding-inline: 22px; }
.hero-console { transform: translateZ(0); }
.hero-console::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.08), transparent 34%); pointer-events: none; }
.console-grid div { min-height: 96px; display: flex; flex-direction: column; justify-content: space-between; }
.site-card::before { content: ''; position: absolute; left: 20px; top: 14px; width: 34px; height: 3px; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--accent)); opacity: .75; }
.site-card { padding-top: 26px; }
.site-index { top: 14px; }
.submit-card, .edit-form, .table-container { box-shadow: 0 12px 34px rgba(20,33,38,.07); }
.admin-content h2, .admin-content h3 { letter-spacing: 0; }
table th { background: #f4f8f8; color: #61757c; }
table td { color: #26363b; }
.status-badge, .badge { border-radius: 999px; font-weight: 800; letter-spacing: 0; }
.admin-panel-card .table-container { border-color: #e5edef; }
.activity-item { transition: transform .2s ease, border-color .2s ease; }
.activity-item:hover { transform: translateY(-1px); border-color: var(--primary); }
@media (max-width: 768px) { .header { height: auto; min-height: var(--header-h); } .header-inner { flex-wrap: wrap; padding-block: 10px; } .nav { flex-wrap: wrap; justify-content: flex-end; } }
/* WebTakip Corporate V3 - live theme, intentionally distinct */
:root {
  --primary: #00b3a4 !important;
  --primary-hover: #008f84 !important;
  --primary-light: #ddfbf7 !important;
  --accent: #ffb020 !important;
  --bg: #eef3f4 !important;
  --bg-card: #ffffff !important;
  --bg-header: #0b171d !important;
  --border: #d7e2e5 !important;
  --text: #101b22 !important;
  --text-secondary: #50646d !important;
  --text-muted: #80939b !important;
  --radius: 8px !important;
  --radius-sm: 6px !important;
  --radius-lg: 8px !important;
  --shadow: 0 18px 45px rgba(12, 29, 36, .10) !important;
  --shadow-md: 0 24px 70px rgba(12, 29, 36, .16) !important;
}
html { background: #0b171d !important; }
body {
  background:
    linear-gradient(180deg, #0b171d 0, #0e2329 430px, #eef3f4 431px, #eef3f4 100%) !important;
  color: var(--text) !important;
}
.header {
  background: rgba(11, 23, 29, .94) !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: none !important;
}
.header-inner { max-width: 1440px !important; padding: 0 34px !important; }
.logo, .logo-word { color: #ffffff !important; }
.header .logo .logo-word,
.header .logo .logo-word span { color: #ffffff !important; }
.logo-icon {
  background: linear-gradient(135deg, #21d4c2, #08756e) !important;
  color: #061113 !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 14px 34px rgba(0,179,164,.36) !important;
}
.nav a { color: #f2f6f4 !important; border: 1px solid transparent !important; }
.nav a:hover, .nav a.active {
  color: #fff1ad !important;
  background: rgba(255,241,173,.10) !important;
  border-color: rgba(255,241,173,.22) !important;
}
.lang-btn { background: rgba(255,255,255,.09) !important; color: #fff9df !important; border-color: rgba(255,241,173,.24) !important; }
.lang-dropdown { background: #10232a !important; border-color: rgba(255,255,255,.12) !important; }
.lang-dropdown a { color: #d8e4e7 !important; }
.wt-hero {
  max-width: 1440px !important;
  min-height: 560px !important;
  padding: 86px 34px 74px !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(430px, .78fr) !important;
  gap: 64px !important;
  color: #ffffff !important;
  position: relative !important;
}
.wt-hero::before {
  content: '' !important;
  position: absolute !important;
  inset: 22px 34px 26px 34px !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 8px !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.02)),
    radial-gradient(circle at 75% 25%, rgba(0,179,164,.20), transparent 36%) !important;
  pointer-events: none !important;
}
.hero-copy, .hero-console { position: relative !important; z-index: 1 !important; }
.hero-copy h1, .wt-hero h1 {
  color: #ffffff !important;
  font-size: clamp(2.6rem, 5vw, 5.8rem) !important;
  line-height: .98 !important;
  font-weight: 800 !important;
  max-width: 940px !important;
  letter-spacing: 0 !important;
  margin-bottom: 26px !important;
  -webkit-text-fill-color: #ffffff !important;
}
.hero-copy h1::after {
  content: '' !important;
  display: block !important;
  width: 112px !important;
  height: 5px !important;
  border-radius: 999px !important;
  background: #ffe58a !important;
  margin-top: 24px !important;
}
.hero-copy p, .wt-hero p {
  color: #18262c !important;
  font-size: 1.14rem !important;
  max-width: 760px !important;
  line-height: 1.7 !important;
}
.hero-actions { gap: 14px !important; }
.hero-actions .btn { min-height: 52px !important; padding: 0 26px !important; font-size: .94rem !important; }
.wt-hero .hero-actions .btn-primary {
  background: #ffe58a !important;
  border-color: #ffe58a !important;
  color: #172027 !important;
  box-shadow: 0 18px 36px rgba(255,229,138,.22) !important;
}
.wt-hero .hero-actions .btn-primary:hover {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #101820 !important;
}
.btn-primary {
  background: #18caba !important;
  border-color: #18caba !important;
  color: #062124 !important;
  box-shadow: 0 18px 36px rgba(24,202,186,.26) !important;
}
.btn-primary:hover { background: #35d9cc !important; color: #061113 !important; }
.btn-ghost {
  background: rgba(255,255,255,.72) !important;
  border-color: rgba(24,38,44,.24) !important;
  color: #18262c !important;
}
.hero-console {
  background: #f7fbfb !important;
  color: #142126 !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  border-radius: 8px !important;
  padding: 22px !important;
  box-shadow: 0 34px 90px rgba(0,0,0,.32) !important;
}
.hero-console::before { background: linear-gradient(135deg, rgba(0,179,164,.08), transparent 38%) !important; }
.hero-console::after { background: radial-gradient(circle, rgba(0,179,164,.16), transparent 62%) !important; }
.console-top { color: #53656d !important; border-bottom: 1px solid #e0eaed !important; padding-bottom: 14px !important; }
.console-top strong { color: #10232a !important; }
.console-top em { color: #0f8f5f !important; background: #e9f9f1 !important; border-radius: 999px !important; padding: 4px 8px !important; }
.console-grid div {
  background: #ffffff !important;
  border: 1px solid #dfe9ec !important;
  min-height: 112px !important;
}
.console-grid span { color: #10232a !important; }
.console-grid small { color: #687c84 !important; }
.signal-list span { color: #0d6f67 !important; background: #e8fbf8 !important; border-color: #b9eee8 !important; }
.container { max-width: 1440px !important; padding: 0 34px !important; }
.search-bar {
  max-width: 1440px !important;
  margin: -18px auto 24px !important;
  padding: 12px !important;
  border-radius: 8px !important;
  border: 1px solid #d7e2e5 !important;
  box-shadow: 0 20px 70px rgba(12,29,36,.12) !important;
  position: relative !important;
  z-index: 3 !important;
}
.search-bar input { min-height: 50px !important; font-size: 1rem !important; }
.wt-feature-strip {
  max-width: 1440px !important;
  margin: 10px auto 34px !important;
  padding: 0 34px !important;
  gap: 18px !important;
}
.wt-feature-strip article {
  border: 0 !important;
  border-radius: 8px !important;
  padding: 24px !important;
  background: #ffffff !important;
  box-shadow: 0 16px 45px rgba(12,29,36,.08) !important;
  position: relative !important;
  overflow: hidden !important;
}
.wt-feature-strip article::before {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 4px !important;
  background: linear-gradient(90deg, #00b3a4, #ffb020) !important;
}
.section-heading {
  max-width: 1440px !important;
  margin: 42px auto 18px !important;
  padding: 0 34px !important;
}
.section-heading span { font-size: 1.9rem !important; color: #101b22 !important; }
.sites-grid {
  max-width: 1440px !important;
  grid-template-columns: repeat(auto-fill, minmax(390px, 1fr)) !important;
  gap: 20px !important;
  padding: 0 34px 34px !important;
}
.site-card {
  border: 1px solid #d7e2e5 !important;
  border-radius: 8px !important;
  padding: 26px !important;
  background:
    linear-gradient(180deg, #ffffff, #f8fbfb) !important;
  box-shadow: 0 14px 38px rgba(12,29,36,.08) !important;
}
.site-card::before { width: 46px !important; height: 4px !important; left: 26px !important; top: 18px !important; }
.site-card:hover { transform: translateY(-5px) !important; box-shadow: 0 30px 80px rgba(12,29,36,.14) !important; }
.site-url { font-size: 1.02rem !important; color: #006f67 !important; margin-top: 8px !important; }
.site-title { font-size: .92rem !important; color: #2c3d44 !important; font-weight: 700 !important; }
.site-description { font-size: .86rem !important; color: #667a82 !important; }
.site-links { gap: 7px !important; }
.site-links a {
  background: #eef8f7 !important;
  border: 1px solid #cde9e6 !important;
  color: #0b746b !important;
  border-radius: 999px !important;
  padding: 5px 10px !important;
  font-weight: 700 !important;
}
.country-bar { background: #ffffff !important; border-top: 1px solid #dbe6e9 !important; }
.footer { background: #071116 !important; color: #b7c7cc !important; padding: 54px 24px !important; }
.admin-layout { min-height: calc(100vh - var(--header-h)) !important; background: #eef3f4 !important; }
.admin-sidebar { width: 278px !important; background: #071116 !important; padding: 22px !important; }
.admin-content { padding: 34px !important; }
.admin-hero-panel {
  background: linear-gradient(135deg, #0b171d, #123039) !important;
  color: #ffffff !important;
  border: 0 !important;
  padding: 34px !important;
  box-shadow: 0 28px 80px rgba(12,29,36,.18) !important;
}
.admin-hero-panel h1 { color: #ffffff !important; }
.admin-hero-panel p { color: #c7d7db !important; }
.admin-health { background: rgba(255,255,255,.06) !important; color: #35d9cc !important; border-color: rgba(53,217,204,.35) !important; }
.admin-health small { color: #c7d7db !important; }
.stat-card, .admin-panel-card, .edit-form, .submit-card, .table-container {
  border: 1px solid #d7e2e5 !important;
  border-radius: 8px !important;
  box-shadow: 0 18px 50px rgba(12,29,36,.09) !important;
}
@media (max-width: 900px) {
  .wt-hero { grid-template-columns: 1fr !important; padding: 54px 20px !important; }
  .wt-hero::before { inset: 12px !important; }
  .sites-grid { grid-template-columns: 1fr !important; padding: 0 18px 24px !important; }
  .wt-feature-strip { grid-template-columns: 1fr !important; padding: 0 18px !important; }
  .section-heading { padding: 0 18px !important; flex-direction: column !important; align-items: flex-start !important; }
}

.site-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: start;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 28px;
}

.detail-identity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
}

.detail-identity h1 {
  margin: 0;
  background: none !important;
  color: #ffffff !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .28);
}

.detail-identity + p a {
  color: #ffe58a !important;
  font-weight: 700;
}

.detail-identity + p a:hover { color: #ffffff !important; }

.detail-favicon {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 62px;
  height: 62px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .22);
}

.detail-favicon img {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
}

.detail-favicon-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), #0b746b);
  color: #fff;
  font: 800 1.65rem/1 var(--font);
  text-transform: uppercase;
}

.detail-stats-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 1180px;
  margin: -6px auto 18px;
  padding: 0 24px;
}

.detail-stat-card {
  position: relative;
  overflow: hidden;
  padding: 17px 20px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 13px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 14px 38px rgba(12, 29, 36, .1);
}

.detail-stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 74px;
  height: 74px;
  border-radius: 0 0 0 100%;
  background: linear-gradient(135deg, transparent, rgba(15, 159, 149, .1));
  pointer-events: none;
}

.detail-stat-card span,
.detail-stat-card small {
  display: block;
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 600;
}

.detail-stat-card span {
  letter-spacing: .035em;
  text-transform: uppercase;
}

.detail-stat-card strong {
  display: block;
  margin: 4px 0 2px;
  color: var(--text);
  font: 800 1.65rem/1.1 var(--mono);
}

.detail-stat-online i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, .12);
  animation: online-pulse 2s ease-in-out infinite;
}

@keyframes online-pulse {
  50% { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .detail-stat-online i { animation: none; }
}

@media (max-width: 640px) {
  .detail-identity {
    flex-direction: column;
    gap: 12px;
  }

  .detail-favicon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
  }

  .detail-favicon img {
    width: 42px;
    height: 42px;
  }

  .detail-stats-strip {
    grid-template-columns: 1fr;
    padding: 0 18px;
  }
}

.sitemap-card {
  padding: 22px;
  box-shadow: var(--shadow);
}

.sitemap-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.sitemap-card-head h2 {
  margin: 3px 0 0;
  font-size: 1rem;
}

.sitemap-kicker {
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sitemap-count {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font: 600 0.72rem/1 var(--mono);
}

.sitemap-url-list {
  display: grid;
  gap: 7px;
  max-height: 590px;
  overflow-y: auto;
  padding-right: 4px;
}

.sitemap-url-btn {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  text-decoration: none;
  transition: all var(--transition);
}

.sitemap-url-btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateX(2px);
}

.sitemap-url-btn span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--bg);
  color: var(--text-muted);
  font: 600 0.68rem/1 var(--mono);
}

.sitemap-url-btn strong {
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sitemap-url-btn em {
  color: var(--primary);
  font-style: normal;
}

.sitemap-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.6;
  text-align: center;
}

.sitemap-source {
  display: inline-block;
  margin-top: 14px;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 860px) {
  .site-detail-layout {
    grid-template-columns: 1fr;
  }

  .sitemap-url-list {
    max-height: 460px;
  }
}

.sitemap-url-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
}

.sitemap-qr-btn {
  display: grid;
  place-items: center;
  width: 42px;
  min-height: 40px;
  padding: 0;
  border: 1px solid #cde9e6;
  border-radius: 9px;
  background: #eef8f7;
  color: #0b746b;
  cursor: pointer;
  transition: all var(--transition);
}

.sitemap-qr-btn:hover,
.sitemap-qr-btn:focus-visible {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 159, 149, .2);
  outline: none;
  transform: translateY(-1px);
}

.sitemap-qr-btn svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.qr-modal[hidden] { display: none !important; }

.qr-modal {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.qr-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(5, 17, 22, .72);
  backdrop-filter: blur(5px);
  cursor: default;
}

.qr-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 18px;
  background: var(--bg-card);
  box-shadow: 0 32px 90px rgba(0, 0, 0, .32);
  text-align: center;
}

.qr-modal-panel h2 {
  margin: 5px 32px 4px;
  color: var(--text);
  font-size: 1.35rem;
}

.qr-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.qr-modal-label {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: .85rem;
  font-weight: 600;
}

.qr-code-frame {
  display: inline-grid;
  place-items: center;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: #fff;
  box-shadow: inset 0 0 0 6px #f3f8f8;
}

#sitemap-qr-code,
#sitemap-qr-code canvas,
#sitemap-qr-code img {
  display: block;
  width: 220px !important;
  height: 220px !important;
}

.qr-modal-url {
  margin: 16px 0;
  overflow: hidden;
  color: var(--text-muted);
  font: 500 .72rem/1.5 var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qr-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

body.qr-modal-open { overflow: hidden; }

@media (max-width: 520px) {
  .qr-modal-panel { padding: 24px 18px 20px; }
  #sitemap-qr-code,
  #sitemap-qr-code canvas,
  #sitemap-qr-code img {
    width: 190px !important;
    height: 190px !important;
  }
}

.site-contact-card {
  margin: 18px 0 4px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fbfb, #eef8f7);
}

.site-social-card { margin-top: 18px; padding: 22px; border: 1px solid #b8dfd1; border-radius: 18px; background: linear-gradient(135deg, #087f5b, #0e6d50); color: #fff; }
.site-social-head { margin-bottom: 18px; }
.site-social-head span { display: block; color: #c9f4e5; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.site-social-head h2 { margin: 4px 0 0; color: #fff; font-size: 1.12rem; }
.site-social-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 14px 10px; }
.site-social-link { display: flex; min-width: 0; align-items: center; flex-direction: column; gap: 7px; color: #fff; text-align: center; text-decoration: none; }
.site-social-link span { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 50%; background: #fff; color: #0b3154; box-shadow: 0 8px 20px rgba(0,0,0,.13); transition: transform .18s ease, box-shadow .18s ease; }
.site-social-link svg { width: 23px; height: 23px; fill: currentColor; }
.site-social-link strong { max-width: 100%; overflow: hidden; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.site-social-link:hover span, .site-social-link:focus-visible span { transform: translateY(-3px) scale(1.04); box-shadow: 0 12px 26px rgba(0,0,0,.2); }
.admin-social-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.admin-social-heading h4, .admin-social-heading p { margin-top: 0; }
.admin-social-list { display: grid; gap: 10px; margin-top: 14px; }
.admin-social-row { display: grid; grid-template-columns: 46px minmax(140px,.7fr) minmax(220px,1.7fr) 110px 38px; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.admin-social-preview { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: #edf8f4; color: #0b3154; }
.admin-social-preview svg { width: 21px; height: 21px; fill: currentColor; }
@media (max-width: 760px) { .admin-social-heading { align-items: stretch; flex-direction: column; } .admin-social-row { grid-template-columns: 42px 1fr 38px; } .admin-social-row input, .admin-social-row .social-status { grid-column: 1 / -1; } .site-social-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }

.site-contact-head span,
.site-gallery-head span {
  color: var(--primary);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-contact-head h2,
.site-gallery-head h2 {
  margin: 3px 0 14px;
  color: var(--text);
  font-size: 1rem;
}

.site-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.contact-action {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid #d7e8e7;
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  transition: all var(--transition);
}

.contact-action:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(15, 159, 149, .12);
  transform: translateY(-1px);
}

.contact-action span { color: var(--text-muted); font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.contact-action strong { overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.contact-whatsapp { border-color: #bde8d0; background: #f3fcf6; color: #08783d; }

.site-gallery-section {
  max-width: 1180px;
  margin: 0 auto 30px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.site-gallery-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.site-gallery-head strong { color: var(--text-muted); font-size: .76rem; }

.site-gallery-grid,
.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.site-gallery-item {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}

.site-gallery-item[hidden] { display: none !important; }
.site-gallery-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}
.site-gallery-page-number {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg-card);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.site-gallery-page-number:hover,
.site-gallery-page-number[aria-current="page"] {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.site-gallery-item img,
.admin-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.site-gallery-item:hover img { transform: scale(1.035); }

.gallery-lightbox[hidden] { display: none !important; }

.gallery-lightbox {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 26px;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(3, 12, 16, .9);
  backdrop-filter: blur(7px);
  cursor: zoom-out;
}

.gallery-lightbox-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  align-items: center;
  width: min(1120px, 100%);
  max-height: calc(100vh - 52px);
}

.gallery-lightbox-panel figure {
  margin: 0;
  min-width: 0;
  text-align: center;
}

.gallery-lightbox-panel figure img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 110px);
  margin: 0 auto;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .5);
  object-fit: contain;
}

.gallery-lightbox-panel figcaption {
  margin-top: 10px;
  color: rgba(255, 255, 255, .75);
  font-size: .76rem;
  font-weight: 600;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: rgba(8, 25, 31, .78);
  color: #fff;
  cursor: pointer;
  transition: all var(--transition);
}

.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover,
.gallery-lightbox-close:focus-visible,
.gallery-lightbox-nav:focus-visible {
  border-color: #fff;
  background: var(--primary);
  outline: none;
}

.gallery-lightbox-close {
  position: fixed;
  z-index: 2;
  top: 22px;
  right: 22px;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  line-height: 1;
}

.gallery-lightbox-nav {
  width: 44px;
  height: 44px;
  margin: 0 auto;
  font-size: 2.2rem;
  line-height: 1;
}

body.gallery-lightbox-open { overflow: hidden; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.admin-gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  cursor: pointer;
}

.admin-gallery-item span {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 5px 8px;
  border-radius: 7px;
  background: rgba(127, 29, 29, .9);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
}

.gallery-upload-box {
  margin-top: 14px;
  padding: 18px;
  border: 1px dashed var(--primary);
  border-radius: 11px;
  background: var(--primary-light);
}

@media (max-width: 900px) {
  .site-gallery-grid,
  .admin-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .site-contact-grid { grid-template-columns: 1fr; }
  .site-gallery-section { margin: 0 18px 24px; padding: 16px; }
  .site-gallery-grid,
  .admin-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-lightbox { padding: 14px; }
  .gallery-lightbox-panel { grid-template-columns: 40px minmax(0, 1fr) 40px; }
  .gallery-lightbox-nav { width: 36px; height: 36px; font-size: 1.75rem; }
  .gallery-lightbox-close { top: 12px; right: 12px; width: 42px; height: 42px; }
}




body .hero-copy h1 span.hero-title-dark {
  color: #18262c !important;
  -webkit-text-fill-color: #18262c !important;
}

/* Detail profile: trust, health and primary actions */
.detail-title-wrap { display:flex; flex-direction:column; align-items:center; gap:12px; min-width:0; }
.verified-badge { display:inline-flex; align-items:center; gap:7px; padding:8px 13px; border:1px solid #a8e7df; border-radius:999px; background:#e8fbf8; color:#08756e; font-size:.78rem; font-weight:800; letter-spacing:.02em; }
.verified-badge.is-unverified { border-color:#d7e2e5; background:#f3f7f8; color:#61757c; }
.verified-badge svg,.detail-primary-actions svg { width:17px; height:17px; fill:currentColor; }
.detail-trust-panel { position:relative; z-index:3; width:min(680px,calc(100% - 12px)); margin:30px auto 0; padding:18px; border:1px solid rgba(255,255,255,.85); border-radius:16px; background:rgba(255,255,255,.96); box-shadow:0 24px 65px rgba(0,0,0,.26); backdrop-filter:blur(12px); }
.detail-trust-identity { display:flex; align-items:center; justify-content:center; gap:12px; flex-wrap:wrap; }
.detail-trust-url { min-width:0; overflow-wrap:anywhere; color:#0b625d !important; font-size:.9rem; font-weight:800; text-decoration:none; }
.detail-trust-url:hover { color:#063f3b !important; text-decoration:underline; }
.detail-primary-actions { display:flex; justify-content:center; gap:10px; flex-wrap:wrap; margin-top:14px; position:relative; z-index:2; }
.detail-primary-actions .btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:46px; padding:0 20px; }
.detail-action-whatsapp { background:#11895b; border:1px solid #11895b; color:#fff; }
.detail-action-whatsapp:hover { background:#087247; color:#fff; }
.detail-action-call { background:#fff; border:1px solid #d7e2e5; color:#132328; }
.detail-action-call:hover { border-color:#18caba; color:#087c74; }
.site-health-card { max-width:1440px; margin:20px auto; padding:24px 34px; border:1px solid #d7e2e5; border-radius:16px; background:#fff; box-shadow:0 16px 44px rgba(12,29,36,.08); }
.site-health-heading { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:18px; }
.site-health-heading span { display:block; margin-bottom:4px; color:#0f9f95; font-size:.72rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.site-health-heading h2 { margin:0; font-size:1.35rem; }
.site-health-score { display:flex; align-items:baseline; color:#0d6f67; font-size:2rem; line-height:1; }
.site-health-score small { color:#80939b; font-size:.78rem; }
.site-health-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:10px; }
.health-item { min-width:0; padding:14px; border:1px solid #dfe9ec; border-radius:10px; background:#f8fbfb; }
.health-item::before { content:''; display:block; width:8px; height:8px; margin-bottom:10px; border-radius:50%; background:#9aa9ae; }
.health-item.is-good::before { background:#16a34a; box-shadow:0 0 0 4px rgba(22,163,74,.10); }
.health-item.is-bad::before { background:#dc2626; box-shadow:0 0 0 4px rgba(220,38,38,.10); }
.health-item span { display:block; color:#71858d; font-size:.7rem; font-weight:700; text-transform:uppercase; }
.health-item strong { display:block; margin-top:5px; overflow:hidden; color:#142126; font-size:.9rem; text-overflow:ellipsis; white-space:nowrap; }
.site-health-foot { display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap; margin-top:14px; color:#71858d; font-size:.76rem; }
.profile-trust-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-top:14px; padding:12px 14px; border-radius:9px; background:#f5f8f9; color:#61757c; font-size:.78rem; }
.profile-trust-actions a { color:#087c74; font-weight:800; }
.profile-message { max-width:1180px; margin:18px auto 0; }
.domain-index-card,.profile-engagement-card { margin-top:18px; padding:22px; border:1px solid #d8e6e8; border-radius:16px; background:#fff; }
.domain-index-head>span,.profile-engagement-head>span { color:#0f9f95; font-size:.7rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.domain-index-head h2,.profile-engagement-head h2 { margin:5px 0 16px; color:#142126; font-size:1.12rem; }
.domain-index-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.domain-index-grid article { padding:14px; border:1px solid #dfe9ec; border-radius:10px; background:#f8fbfb; }
.domain-index-grid article.is-good { border-color:#bde8d0; background:#f3fcf6; }
.domain-index-grid article.is-warning { border-color:#f2d29d; background:#fff9ed; }
.domain-index-grid span,.canonical-row>span { display:block; color:#71858d; font-size:.68rem; font-weight:800; text-transform:uppercase; }
.domain-index-grid strong { display:block; margin-top:5px; color:#142126; font-size:.88rem; }
.domain-index-grid small { display:block; margin-top:4px; color:#71858d; font-size:.68rem; }
.canonical-row { display:grid; grid-template-columns:90px minmax(0,1fr) auto; gap:10px; align-items:center; margin-top:12px; padding:12px 14px; border-radius:10px; background:#eef8f7; }
.canonical-row a { min-width:0; overflow:hidden; color:#087c74; font-size:.78rem; font-weight:700; text-overflow:ellipsis; white-space:nowrap; }
.canonical-row small,.domain-index-note { color:#71858d; font-size:.7rem; }
.domain-index-note { margin:10px 0 0; }
.profile-engagement-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.profile-favorite-btn { display:inline-flex; align-items:center; gap:8px; border:1px solid #f0b5bd; background:#fff5f6; color:#a5162d; }
.profile-favorite-btn svg { width:17px; height:17px; fill:currentColor; }
.profile-favorite-btn.is-active { background:#b91c35; color:#fff; }
.profile-follower-count { color:#71858d; font-size:.76rem; }
.profile-follow-form { margin-top:16px; padding:15px; border-radius:12px; background:#f4f8f8; }
.profile-follow-form label { display:block; margin-bottom:8px; color:#142126; font-size:.82rem; font-weight:800; }
.profile-follow-form>div { display:flex; gap:8px; }
.profile-follow-form>div input { flex:1; }
.profile-follow-form small { display:block; margin-top:7px; color:#71858d; font-size:.68rem; }
.profile-report-box { margin-top:14px; border-top:1px solid #dfe9ec; padding-top:14px; }
.profile-report-box summary { color:#087c74; cursor:pointer; font-size:.8rem; font-weight:800; }
.profile-report-box form { display:grid; gap:10px; margin-top:12px; }
.profile-report-grid { display:grid; grid-template-columns:1fr 1fr 1fr; gap:8px; }
.profile-report-box .btn { justify-self:start; }
.report-math-field { display:grid; grid-template-columns:minmax(210px,auto) 120px; gap:10px; align-items:center; color:#344a52; font-size:.8rem; font-weight:800; }
.report-rate-note { color:#71858d; font-size:.7rem; }
.admin-domain-editor { border-left:4px solid #7c3aed; }
.domain-auto-check { display:grid; grid-template-columns:minmax(240px,1fr) auto; gap:12px; align-items:end; margin-bottom:18px; padding:16px; border:1px solid #d9cff7; border-radius:10px; background:#f7f4ff; }
.domain-auto-check label { display:block; margin-bottom:6px; color:#44337a; font-size:.78rem; font-weight:800; }
.domain-auto-check small { grid-column:1/-1; color:#74679a; font-size:.7rem; }
.admin-report-stats { display:grid; grid-template-columns:auto auto; gap:4px 10px; align-items:baseline; }
.admin-report-stats strong { color:#35d9cc; font-size:1.6rem; }
.admin-report-stats small { color:#b8c8cc; }
.admin-report-list { display:grid; gap:12px; }
.admin-report-item { padding:16px; border:1px solid #dfe9ec; border-radius:10px; background:#f9fbfb; }
.admin-report-meta { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.admin-report-meta strong { color:#142126; }
.admin-report-meta a { color:#087c74; font-size:.75rem; font-weight:700; }
.admin-report-meta .admin-report-edit-link { padding:6px 9px; border:1px solid #b9eee8; border-radius:7px; background:#e8fbf8; color:#0d6f67; }
.admin-report-meta .admin-report-site-id { padding:5px 8px; border-radius:6px; background:#e9eef8; color:#31558b; font-weight:800; }
.admin-report-source { display:flex; align-items:center; gap:10px; margin-top:10px; padding:10px 12px; border-radius:8px; background:#eef8f7; }
.admin-report-source span { flex-shrink:0; color:#71858d; font-size:.68rem; font-weight:800; text-transform:uppercase; }
.admin-report-source a { min-width:0; overflow:hidden; color:#087c74; font-size:.78rem; font-weight:700; text-overflow:ellipsis; white-space:nowrap; }
.admin-report-meta span,.admin-report-item small { color:#71858d; font-size:.72rem; }
.admin-report-item p { margin:10px 0; color:#344a52; line-height:1.55; }
.admin-report-form { display:grid; grid-template-columns:160px minmax(220px,1fr) auto auto; gap:8px; margin-top:12px; }
.admin-inline-actions { display:flex; gap:6px; align-items:center; }
.site-device-preview { margin-top:18px; padding:22px; border:1px solid #d8e6e8; border-radius:16px; background:linear-gradient(145deg,#f8fbfb,#eef6f6); }
.site-device-preview-head { margin-bottom:18px; }
.site-device-preview-head > span { color:#0f9f95; font-size:.7rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.site-device-preview-head h2 { margin:5px 0 4px; color:#142126; font-size:1.12rem; }
.site-device-preview-head p { margin:0; color:#71858d; font-size:.78rem; }
.site-device-preview-grid { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(180px,.58fr); gap:18px; align-items:start; }
.device-preview { min-width:0; margin:0; }
.device-preview .device-frame { position:relative; overflow:hidden; border:7px solid #142126; background:#dfe9ec; box-shadow:0 18px 38px rgba(12,29,36,.18); }
.device-preview-desktop .device-frame { aspect-ratio:16/9; border-radius:12px; }
.device-preview-mobile { width:min(100%,240px); justify-self:center; }
.device-preview-mobile .device-frame { aspect-ratio:390/844; border-width:8px; border-radius:25px; }
.device-preview img { display:block; width:100%; height:100%; object-fit:cover; object-position:top center; background:#fff; }
.device-preview-mobile img { object-fit:cover; }
.device-camera { display:none; position:absolute; z-index:2; top:5px; left:50%; width:44px; height:5px; border-radius:999px; background:#26383e; transform:translateX(-50%); }
.device-preview-mobile .device-camera { display:block; }
.device-preview figcaption { display:flex; justify-content:space-between; gap:10px; margin-top:11px; color:#53656d; font-size:.75rem; }
.device-preview figcaption strong { color:#142126; }
.device-preview figcaption a { color:#087c74; font-weight:800; }
.preview-error-message { display:none; margin:10px 0 0; color:#a13b3b; font-size:.75rem; }
.device-preview.preview-error .device-frame { display:none; }
.device-preview.preview-error .preview-error-message { display:block; }
.admin-section-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:16px; }
.admin-section-heading h4 { margin:0 0 4px; }
.admin-quality-badge { flex-shrink:0; padding:6px 10px; border-radius:999px; background:#fff5d8; color:#8a5a00; font-size:.72rem; font-weight:800; }
.admin-meta-editor { border-left:4px solid #f3b61f; }
.admin-trust-editor { border-left:4px solid #0f9f95; }
.admin-health-editor { border-left:4px solid #2563eb; }
@media (max-width:1100px) { .site-health-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:640px) {
  .site-health-card { margin:14px 16px; padding:18px; }
  .site-health-grid { grid-template-columns:1fr 1fr; }
  .site-health-heading { align-items:flex-start; }
  .detail-primary-actions { padding:0 16px; }
  .detail-primary-actions .btn { flex:1 1 140px; }
  .detail-trust-panel { width:calc(100% - 8px); margin-top:24px; padding:15px; }
  .detail-trust-identity { flex-direction:column; }
  .admin-section-heading { flex-direction:column; }
  .site-device-preview { padding:16px; }
  .site-device-preview-grid { grid-template-columns:1fr; }
  .device-preview-mobile { width:min(72%,230px); }
  .domain-index-grid { grid-template-columns:1fr 1fr; }
  .canonical-row { grid-template-columns:1fr; }
  .profile-follow-form>div,.profile-report-grid,.admin-report-form { grid-template-columns:1fr; display:grid; }
  .report-math-field { grid-template-columns:1fr; }
  .domain-auto-check { grid-template-columns:1fr; }
}

