:root {
  --brand-primary: #0056b3;
  --brand-sky: #00a0df;
  --brand-dark: #003e85;
  --bg-page: #f4f8fc;
  --bg-surface: #ffffff;
  --bg-subtle: #eef4fa;
  --border: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 32px rgba(0, 86, 179, 0.12);
  --shadow-lg: 0 24px 48px rgba(15, 23, 42, 0.18);
  --radius-lg: 22px;
  --radius-md: 16px;
}

[data-theme="dark"] {
  --bg-page: #0b1120;
  --bg-surface: #111827;
  --bg-subtle: #1e293b;
  --border: #1f2937;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.65);
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 45% at 50% -10%, rgba(0, 160, 223, 0.16), transparent 65%),
    radial-gradient(ellipse 50% 35% at 95% 15%, rgba(0, 86, 179, 0.1), transparent 60%);
  pointer-events: none;
}

/* Top Bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg-surface) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.greeting {
  color: var(--text-main);
  font-weight: 700;
}

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

.bcv-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #047857;
  font-size: 12px;
  font-weight: 700;
}

[data-theme="dark"] .bcv-pill {
  color: #6ee7b7;
}

.bcv-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
}

.top-link {
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 12px;
  color: var(--text-main);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  transition: transform 0.15s ease, background 0.15s ease;
}

.top-link:hover {
  transform: translateY(-1px);
}

.top-link-primary {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-sky));
  color: #ffffff;
  border-color: transparent;
}

.top-link-redvital {
  background: linear-gradient(135deg, #003594, #e31b23);
  color: #ffffff;
  border-color: transparent;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

/* Main Container */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 20px 56px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Hero Search */
.search-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding-top: 8px;
}

.brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.brand-logos-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  padding: 14px 28px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.brand-logo-link:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.brand-logo {
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-logo-dynalab,
.brand-logo-redvital {
  height: 36px;
}

.brand-divider {
  width: 1.5px;
  height: 36px;
  background: #dbe3ee;
  border-radius: 2px;
}

.brand-subtitle {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.search-modes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.mode-tab {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mode-tab:hover {
  color: var(--text-main);
  background: var(--bg-subtle);
}

.mode-tab.active {
  background: var(--brand-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 86, 179, 0.25);
}

.search-form {
  width: 100%;
  max-width: 740px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 6px 8px 6px 18px;
  box-shadow: var(--shadow-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box:focus-within {
  border-color: var(--brand-sky);
  box-shadow: 0 14px 36px rgba(0, 160, 223, 0.22);
}

.google-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-main);
  font-size: 16px;
  font-weight: 500;
  padding: 10px 4px;
}

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

.clear-btn {
  border: none;
  background: var(--bg-subtle);
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  flex-shrink: 0;
}

.search-submit {
  border: none;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-sky));
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.search-submit:hover {
  opacity: 0.94;
  transform: scale(1.02);
}

.search-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 12px;
}

.new-tab-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.recent-searches {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.recent-chip {
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.recent-chip:hover {
  color: var(--brand-primary);
  border-color: var(--brand-sky);
}

/* Quick Links */
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.quick-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.quick-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-sky);
  box-shadow: var(--shadow-md);
}

.quick-card-featured {
  border-color: rgba(0, 160, 223, 0.4);
  background: linear-gradient(135deg, var(--bg-surface), color-mix(in srgb, var(--brand-sky) 8%, var(--bg-surface)));
}

.quick-card-redvital {
  border-color: rgba(227, 27, 35, 0.35);
  background: linear-gradient(135deg, var(--bg-surface), color-mix(in srgb, #e31b23 7%, var(--bg-surface)));
}

.quick-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.bg-redvital { background: rgba(227, 27, 35, 0.12); }
.bg-blue { background: rgba(0, 86, 179, 0.12); }
.bg-sky { background: rgba(0, 160, 223, 0.14); }
.bg-indigo { background: rgba(79, 70, 229, 0.12); }
.bg-emerald { background: rgba(16, 185, 129, 0.12); }
.bg-amber { background: rgba(245, 158, 11, 0.14); }
.bg-rose { background: rgba(244, 63, 94, 0.12); }

.quick-body {
  min-width: 0;
  flex: 1;
}

.quick-body h3 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quick-body p {
  margin: 2px 0 0;
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quick-arrow {
  color: var(--brand-sky);
  font-weight: 800;
}

/* Featured Corporate Announcement */
.featured-banner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: center;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #004b99, #0056b3 55%, #00a0df);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.featured-banner.no-image {
  grid-template-columns: 1fr;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.featured-date,
.featured-cat {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.featured-title {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 900;
}

.featured-excerpt {
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-primary {
  border: none;
  background: #ffffff;
  color: var(--brand-primary);
  font-size: 13px;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.btn-ghost {
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 15px;
  border-radius: 12px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
}

.featured-image-wrap {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.featured-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Columns: News & Events */
.content-columns {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 24px;
  align-items: start;
}

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

.section-title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.section-subtitle {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.refresh-btn {
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 10px;
  cursor: pointer;
}

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

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-align: left;
  padding: 0;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.news-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-sky);
  box-shadow: var(--shadow-md);
}

.news-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: var(--bg-subtle);
  display: block;
}

.news-thumb-placeholder {
  width: 100%;
  height: 110px;
  background: linear-gradient(135deg, rgba(0, 86, 179, 0.12), rgba(0, 160, 223, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.news-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
}

.news-cat {
  color: var(--brand-primary);
}

[data-theme="dark"] .news-cat {
  color: var(--brand-sky);
}

.news-card-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-excerpt {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Events Sidebar */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 13px 15px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.event-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.event-date {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(0, 160, 223, 0.14);
  color: var(--brand-primary);
}

[data-theme="dark"] .event-date {
  color: #7dd3fc;
}

.event-dept {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.event-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.3;
}

.event-loc {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

/* Skeletons & Empty States */
.skeleton-card,
.skeleton-event {
  border-radius: 16px;
  background: linear-gradient(90deg, var(--bg-subtle) 25%, var(--border) 50%, var(--bg-subtle) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

.skeleton-card { height: 220px; }
.skeleton-event { height: 84px; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.empty-state {
  padding: 24px;
  border-radius: 16px;
  background: var(--bg-surface);
  border: 1px dashed var(--border);
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

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

.footer-links a {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 700;
}

[data-theme="dark"] .footer-links a {
  color: var(--brand-sky);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  max-width: 720px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

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

.modal-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-header .pill-badge {
  background: rgba(0, 86, 179, 0.12);
  color: var(--brand-primary);
}

[data-theme="dark"] .modal-header .pill-badge {
  color: #7dd3fc;
}

.modal-date {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.modal-close {
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-main);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}

.modal-scroll {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-image {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 16px;
}

.modal-title {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 900;
}

.modal-body p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-main);
}

.modal-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.modal-footer .btn-ghost {
  color: var(--text-main);
  border-color: var(--border);
  background: var(--bg-subtle);
}

.modal-footer .btn-primary {
  background: var(--brand-primary);
  color: #ffffff;
}

/* Personal Custom Sites ("Mis Páginas Más Visitadas") */
.add-site-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: none;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-sky));
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 86, 179, 0.24);
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
  white-space: nowrap;
}

.add-site-header-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 160, 223, 0.32);
  opacity: 0.96;
}

.custom-sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.custom-site-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 12px 14px;
  border-radius: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text-main);
  text-align: center;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.custom-site-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-sky);
  box-shadow: var(--shadow-md);
}

.custom-site-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 17px;
  font-weight: 900;
  color: var(--brand-primary);
}

[data-theme="dark"] .custom-site-icon {
  color: #7dd3fc;
}

.custom-site-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.custom-site-name {
  font-size: 13px;
  font-weight: 800;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-site-host {
  font-size: 11px;
  color: var(--text-muted);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-site-actions {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.custom-site-card:hover .custom-site-actions,
.custom-site-card:focus-within .custom-site-actions {
  opacity: 1;
}

.site-mini-btn {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-mini-btn:hover {
  color: var(--brand-primary);
  border-color: var(--brand-sky);
}

.site-mini-btn.danger:hover {
  color: #dc2626;
  border-color: #fca5a5;
}

.custom-site-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 12px;
  border-radius: 16px;
  background: transparent;
  border: 2px dashed var(--border);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  min-height: 114px;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.custom-site-add:hover {
  border-color: var(--brand-sky);
  color: var(--brand-primary);
  background: color-mix(in srgb, var(--brand-sky) 6%, var(--bg-surface));
}

.custom-site-add-plus {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}

.modal-card-sm {
  max-width: 440px;
}

.site-modal-heading {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
}

.site-form {
  padding: 20px 22px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  outline: none;
}

.form-group input:focus {
  border-color: var(--brand-sky);
  background: var(--bg-surface);
}

.form-error {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.25);
  border-radius: 10px;
  padding: 8px 12px;
}

.site-form-footer {
  margin: 4px -22px 0;
}

/* Responsive */
@media (max-width: 960px) {
  .quick-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .featured-banner {
    grid-template-columns: 1fr;
  }
  .content-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 22px 14px 40px;
  }
  .quick-links-grid {
    grid-template-columns: 1fr;
  }
  .brand-logos-row {
    gap: 14px;
    padding: 12px 18px;
  }
  .brand-logo-dynalab,
  .brand-logo-redvital {
    height: 26px;
  }
  .brand-divider {
    height: 24px;
  }
  .custom-site-actions {
    opacity: 1;
  }
  .search-submit {
    padding: 10px 16px;
    font-size: 13px;
  }
  .featured-banner {
    padding: 18px;
  }
  .featured-title {
    font-size: 18px;
  }
}

