/* =========================================
   BetReview — Main Stylesheet
   Colors: #4a4e69 (deep indigo), #005f73 (teal), #e76f51 (orange accent)
   ========================================= */

:root {
  --color-primary: #4a4e69;
  --color-primary-dark: #3a3e56;
  --color-secondary: #005f73;
  --color-secondary-dark: #004a5a;
  --color-accent: #e76f51;
  --color-accent-dark: #d4603f;
  --color-bg: #f5f5f7;
  --color-surface: #ffffff;
  --color-text: #1e1e2e;
  --color-text-muted: #6b7280;
  --color-border: #e4e4eb;
  --header-height: 68px;
  --radius: 12px;
  --shadow: 0 2px 16px rgba(74,78,105,0.10);
  --shadow-lg: 0 8px 32px rgba(74,78,105,0.14);
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  margin: 0;
  padding: 0;
}

/* ---- Header ---- */
.site-header {
  background: var(--color-primary);
  height: var(--header-height);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  position: sticky;
  top: 0;
  z-index: 500;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: 1;
}
.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--color-accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}
.site-logo-img { height: 40px; }
.header-sidebar-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.header-sidebar-btn:hover { background: rgba(255,255,255,0.12); }
.header-desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.header-nav-link {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.header-nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.12);
}

/* ---- Mobile Sidebar Overlay ---- */
.site-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1998;
  transition: opacity 0.3s;
}
.site-sidebar-overlay.show { display: block; }
body.sidebar-lock { overflow: hidden; }

/* ---- Mobile Sidebar ---- */
.site-sidebar {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100%;
  background: var(--color-primary-dark);
  z-index: 1999;
  transition: left 0.28s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.site-sidebar.open { left: 0; }
.site-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.site-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}
.logo-icon-sm {
  width: 32px; height: 32px;
  background: var(--color-accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem;
}
.site-sidebar-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.2s;
}
.site-sidebar-close:hover { color: #fff; background: rgba(255,255,255,0.1); }
.site-sidebar-nav {
  padding: 12px 12px 8px;
  flex-shrink: 0;
}
.site-sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  border-radius: 10px;
  font-weight: 500;
  transition: all 0.18s;
}
.site-sidebar-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.site-sidebar-link i { font-size: 1rem; }
.site-sidebar-section-title {
  padding: 6px 26px 8px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.35);
  font-weight: 700;
  flex-shrink: 0;
}
.site-sidebar-countries {
  flex: 1;
  overflow-y: auto;
  padding: 4px 12px 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.site-sidebar-country {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  border-radius: 9px;
  font-size: 0.9rem;
  transition: all 0.18s;
}
.site-sidebar-country:hover { color: #fff; background: rgba(255,255,255,0.08); }
.site-sidebar-country .country-flag-img { border-radius: 2px; }

/* ---- Hero ---- */
.hero-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 60%, var(--color-secondary-dark) 100%);
  padding: 72px 0 96px;
  border-bottom: 4px solid var(--color-accent);
}
.hero-content { max-width: 680px; margin: 0 auto; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.hero-country { color: var(--color-accent); }
.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0;
}

/* ---- Main Content ---- */
.main-content {
  padding-top: 0;
  padding-bottom: 60px;
  margin-top: -44px;
  position: relative;
  z-index: 10;
}

/* ---- Country Selector ---- */
.country-selector-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  margin-bottom: 28px;
  overflow: hidden;
}
.country-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.country-tabs::-webkit-scrollbar { display: none; }
.country-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 9px;
  background: #f0f0f5;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.18s;
  border: 2px solid transparent;
  flex-shrink: 0;
}
.country-tab:hover {
  background: #e4e4f0;
  color: var(--color-primary);
}
.country-tab.active {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-secondary-dark);
  box-shadow: 0 4px 12px rgba(0,95,115,0.25);
  transform: translateY(-1px);
}
.country-flag-img {
  border-radius: 3px;
  display: inline-block;
  vertical-align: middle;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
  flex-shrink: 0;
}
.country-tab .country-flag-img {
  width: 24px;
  height: 16px;
  object-fit: cover;
}
.country-tab.active .country-flag-img {
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.country-name { font-size: 0.9rem; }

/* ---- Turkey Warning ---- */
.alert-warning-turkey {
  display: flex;
  gap: 14px;
  background: #fff8f5;
  border: 2px solid #e76f51;
  border-left: 6px solid #d4603f;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 24px;
}
.alert-warning-turkey .alert-icon {
  color: #e76f51;
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.alert-warning-turkey .alert-body strong {
  display: block;
  font-size: 1rem;
  color: #c0392b;
  margin-bottom: 4px;
}
.alert-warning-turkey .alert-body p {
  margin: 0;
  font-size: 0.9rem;
  color: #6b3a30;
}

/* ---- Site Cards ---- */
.sites-list { display: flex; flex-direction: column; gap: 18px; }
.site-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  gap: 24px;
  position: relative;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s, transform 0.2s;
  overflow: hidden;
}
.site-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.site-rank {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--color-accent);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom-right-radius: 12px;
}
.site-logo-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 110px;
  padding-top: 10px;
}
.site-logo {
  max-width: 100px;
  max-height: 60px;
  object-fit: contain;
  border-radius: 8px;
}
.site-logo-placeholder {
  width: 80px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
}
.site-score-circle {
  text-align: center;
  background: rgba(255,255,255,0.95);
  border: 3px solid var(--score-color, #2a7a4b);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.score-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--score-color, #2a7a4b);
  line-height: 1;
}
.score-max { font-size: 0.65rem; color: #999; }
.site-info { flex: 1; min-width: 0; }
.site-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.site-name { font-size: 1.3rem; font-weight: 700; color: var(--color-primary); margin: 0; }
.badge-featured {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fbbf24;
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 0.77rem;
  font-weight: 600;
}
.site-desc { color: var(--color-text-muted); margin-bottom: 10px; font-size: 0.95rem; }
.site-bonus-tag {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 0.86rem;
  margin-bottom: 12px;
  display: inline-block;
}
.site-features-row { display: flex; flex-wrap: wrap; gap: 6px; }
.feature-tag {
  background: #f4f4f8;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}
.feature-tag i { color: var(--color-secondary); margin-right: 3px; }
.site-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  align-items: stretch;
  min-width: 140px;
}
.btn-visit {
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 0.97rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn-visit:hover { background: var(--color-accent-dark); color: #fff; transform: translateY(-1px); }
.btn-review {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
  border-radius: 10px;
  padding: 10px 22px;
  font-weight: 600;
  font-size: 0.93rem;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
}
.btn-review:hover { background: var(--color-primary); color: #fff; }

/* ---- No Sites ---- */
.no-sites-msg {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-muted);
  font-size: 1rem;
}
.no-sites-msg i { font-size: 3rem; display: block; margin-bottom: 12px; }

/* ---- Review Page ---- */
.review-header {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 24px;
  border: 1px solid var(--color-border);
}
.review-logo-area { min-width: 120px; }
.review-logo { max-width: 120px; max-height: 80px; object-fit: contain; }
.review-logo-placeholder {
  width: 90px; height: 70px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.6rem; font-weight: 700;
}
.review-header-info { flex: 1; }
.review-site-name { font-size: 2rem; font-weight: 800; color: var(--color-primary); margin-bottom: 8px; }
.review-short-desc { color: var(--color-text-muted); margin-bottom: 14px; }
.review-countries { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.review-countries .label { font-size: 0.85rem; color: var(--color-text-muted); margin-right: 4px; }
.country-chip {
  background: #f0f0f7;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 0.82rem;
  color: var(--color-text);
}
.review-score-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.review-overall-score {
  text-align: center;
  background: linear-gradient(135deg, #fff, #f8f8fc);
  border: 4px solid var(--score-color, #2a7a4b);
  border-radius: 16px;
  padding: 20px 24px;
  min-width: 120px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.overall-number { font-size: 2.8rem; font-weight: 900; color: var(--score-color, #2a7a4b); line-height: 1; }
.overall-label { font-size: 0.75rem; font-weight: 600; color: #666; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }
.overall-max { font-size: 0.72rem; color: #999; }
.btn-visit-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.9rem;
  width: 100%;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn-visit-top:hover { background: var(--color-accent-dark); color: #fff; transform: translateY(-1px); }

.score-breakdown-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--color-border);
}
.card-section-title { font-size: 1rem; font-weight: 700; color: var(--color-primary); margin-bottom: 18px; }
.score-bars { display: flex; flex-direction: column; gap: 14px; }
.score-bar-item {}
.score-bar-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  font-size: 0.9rem;
}
.score-bar-label i { color: var(--color-secondary); }
.score-bar-label span { flex: 1; }
.score-bar-label strong { font-size: 0.95rem; }
.score-bar-track {
  background: #ebebf0;
  border-radius: 99px;
  height: 10px;
  overflow: hidden;
}
.score-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.6s ease;
}

.review-section {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid var(--color-border);
}
.section-title { font-size: 1.05rem; font-weight: 700; color: var(--color-primary); margin-bottom: 14px; }
.section-title i { margin-right: 6px; }
.review-screenshot { width: 100%; border-radius: 10px; box-shadow: var(--shadow); }
.review-content { line-height: 1.75; color: var(--color-text); }
.review-content h2 { font-size: 1.2rem; font-weight: 700; color: var(--color-primary); margin-top: 20px; }
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { padding: 7px 0; border-bottom: 1px solid #f0f0f5; font-size: 0.95rem; }
.feature-list li i { color: var(--color-secondary); margin-right: 8px; }

.review-cta-box {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 16px;
  border: 1px solid var(--color-border);
  text-align: center;
}
.btn-visit-large {
  display: block;
  background: var(--color-accent);
  color: #fff;
  border-radius: 12px;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  margin-bottom: 10px;
  transition: background 0.2s;
}
.btn-visit-large:hover { background: var(--color-accent-dark); color: #fff; }
.cta-disclaimer { font-size: 0.78rem; color: #999; margin: 0; }

.info-box {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid var(--color-border);
}
.info-box h5 { font-size: 0.95rem; font-weight: 700; color: var(--color-primary); margin-bottom: 10px; }
.info-box h5 i { color: var(--color-secondary); margin-right: 6px; }
.info-box p { font-size: 0.9rem; color: var(--color-text-muted); margin: 0; }
.info-box-bonus { background: #fffbf0; border-color: #fbbf24; }
.info-box-bonus h5 { color: #92400e; }
.info-box-bonus h5 i { color: #d97706; }
.info-box-bonus p { color: #78350f; }

/* ---- Page content (no hero) ---- */
.page-content { padding-top: 32px; padding-bottom: 60px; }

/* ---- Page Hero Small ---- */
.page-hero-small {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary-dark));
  padding: 48px 0 72px;
  border-bottom: 4px solid var(--color-accent);
  margin-bottom: 0;
}
.page-hero-title { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 8px; }
.page-hero-subtitle { color: rgba(255,255,255,0.7); margin: 0; }

/* ---- Page Hero Mini (breadcrumb bar) ---- */
.page-hero-mini {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary-dark));
  padding: 12px 0 56px;
  border-bottom: 3px solid var(--color-accent);
}
.review-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.88rem;
}
.review-breadcrumb a { color: rgba(255,255,255,0.65); text-decoration: none; }
.review-breadcrumb a:hover { color: #fff; }
.review-breadcrumb i { color: rgba(255,255,255,0.35); font-size: 0.7rem; }
.review-breadcrumb span { color: rgba(255,255,255,0.9); font-weight: 500; }

/* ---- Articles ---- */
.article-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  border: 1px solid var(--color-border);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.article-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.article-date { font-size: 0.82rem; color: var(--color-text-muted); margin-bottom: 10px; }
.article-title { font-size: 1.1rem; font-weight: 700; color: var(--color-primary); margin-bottom: 12px; }
.article-title a { color: inherit; text-decoration: none; }
.article-title a:hover { color: var(--color-secondary); }
.article-excerpt { font-size: 0.9rem; color: var(--color-text-muted); flex: 1; margin-bottom: 16px; }
.article-read-more { color: var(--color-secondary); font-weight: 600; text-decoration: none; font-size: 0.9rem; margin-top: auto; }
.article-read-more:hover { color: var(--color-accent); }

.back-link { color: var(--color-text-muted); text-decoration: none; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 5px; margin-bottom: 20px; }
.back-link:hover { color: var(--color-primary); }
.article-full { background: var(--color-surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px; border: 1px solid var(--color-border); }
.article-header { margin-bottom: 28px; border-bottom: 2px solid var(--color-border); padding-bottom: 24px; }
.article-date-full { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 10px; }
.article-full-title { font-size: 2rem; font-weight: 800; color: var(--color-primary); margin-bottom: 12px; }
.article-full-excerpt { font-size: 1.1rem; color: var(--color-text-muted); }
.article-body { line-height: 1.85; color: var(--color-text); }
.article-body h2 { font-size: 1.3rem; font-weight: 700; color: var(--color-primary); margin-top: 28px; }
.article-body ul, .article-body ol { padding-left: 24px; }
.article-body li { margin-bottom: 6px; }

/* ---- Footer ---- */
.site-footer { background: var(--color-primary-dark); color: rgba(255,255,255,0.75); margin-top: 60px; }
.footer-top { padding: 50px 0 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.footer-logo-icon { background: var(--color-accent); width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; }
.footer-logo-text { font-size: 1.2rem; font-weight: 700; color: #fff; }
.footer-disclaimer { font-size: 0.82rem; color: rgba(255,255,255,0.5); line-height: 1.7; }
.footer-heading { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.4); margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--color-accent); }
.footer-bottom { background: rgba(0,0,0,0.25); padding: 16px 0; font-size: 0.82rem; color: rgba(255,255,255,0.45); }

/* ---- Admin Login ---- */
.admin-login-page { background: var(--color-primary); min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.admin-login-wrap { width: 100%; max-width: 420px; padding: 20px; }
.admin-login-card { background: #fff; border-radius: 16px; padding: 40px 36px; box-shadow: 0 20px 60px rgba(0,0,0,0.25); text-align: center; }
.admin-login-logo { font-size: 2.5rem; color: var(--color-primary); margin-bottom: 12px; }
.admin-login-title { font-size: 1.5rem; font-weight: 800; color: var(--color-primary); margin-bottom: 4px; }
.admin-login-subtitle { color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: 24px; }
.admin-login-card .form-control { background: #f5f5f7; border: 2px solid #e4e4eb; border-radius: 10px; padding: 12px 16px; font-size: 0.97rem; }
.admin-login-card .btn-primary { background: var(--color-secondary); border: none; border-radius: 10px; padding: 12px; font-weight: 700; font-size: 1rem; }
.admin-login-card .btn-primary:hover { background: var(--color-secondary-dark); }

/* ---- Admin Panel ---- */
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-body { background: #f0f0f5; }
.admin-sidebar {
  width: 240px;
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.85);
  flex-shrink: 0;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  overflow-y: auto;
  z-index: 100;
  transition: transform 0.3s;
}
.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}
.admin-sidebar-brand i { font-size: 1.3rem; color: var(--color-accent); }
.admin-nav { padding: 14px 0; }
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.18s;
  border-left: 3px solid transparent;
}
.admin-nav-link:hover { color: #fff; background: rgba(255,255,255,0.07); }
.admin-nav-link.active { color: #fff; background: rgba(0,95,115,0.4); border-left-color: var(--color-accent); }
.admin-nav-link i { font-size: 1rem; width: 20px; text-align: center; }
.admin-nav-section {
  padding: 10px 20px 4px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
}
.admin-nav-logout { color: rgba(255,100,100,0.75); margin-top: 8px; }
.admin-nav-logout:hover { color: #ff8080; background: rgba(255,0,0,0.08); }

.admin-main { flex: 1; margin-left: 240px; display: flex; flex-direction: column; min-height: 100vh; }
.admin-topbar {
  background: #fff;
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}
.admin-toggle-btn { border: none; background: none; font-size: 1.3rem; color: var(--color-primary); cursor: pointer; display: none; }
.admin-topbar-right { font-size: 0.88rem; color: var(--color-text-muted); }
.admin-content { padding: 28px 28px 60px; flex: 1; }
.admin-page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-page-title { font-size: 1.5rem; font-weight: 800; color: var(--color-primary); margin: 0 0 4px; }
.admin-page-subtitle { font-size: 0.88rem; color: var(--color-text-muted); margin: 0; }

.admin-card { background: #fff; border-radius: 12px; box-shadow: 0 1px 8px rgba(0,0,0,0.07); border: 1px solid var(--color-border); }
.admin-card-header { padding: 16px 20px; border-bottom: 1px solid var(--color-border); display: flex; align-items: center; justify-content: space-between; }
.admin-card-header h5 { margin: 0; font-size: 0.95rem; font-weight: 700; color: var(--color-primary); }
.admin-card-body { padding: 20px; }

.admin-table { margin: 0; font-size: 0.9rem; }
.admin-table th { background: #f8f8fc; color: var(--color-text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; }
.admin-table td { vertical-align: middle; }

.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.07);
  border-left: 4px solid var(--color-primary);
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-card-blue { border-left-color: var(--color-secondary); }
.stat-card-green { border-left-color: #16a34a; }
.stat-card-purple { border-left-color: #7c3aed; }
.stat-card-orange { border-left-color: var(--color-accent); }
.stat-icon { font-size: 2rem; color: var(--color-text-muted); }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--color-primary); line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--color-text-muted); }

.badge-score {
  color: #fff;
  border-radius: 8px;
  padding: 4px 12px;
  font-weight: 700;
  font-size: 0.9rem;
}

.countries-check-list { max-height: 300px; overflow-y: auto; }
.html-editor { font-family: monospace; font-size: 0.88rem; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .site-card { flex-direction: column; }
  .site-logo-area { flex-direction: row; min-width: auto; }
  .site-cta { flex-direction: row; flex-wrap: wrap; }
  .review-header { flex-direction: column; }
  .review-score-col { flex-direction: row; align-self: stretch; justify-content: space-between; }
  .admin-sidebar { transform: translateX(-100%); }
  .admin-main { margin-left: 0; }
  .admin-toggle-btn { display: block; }
  .admin-wrapper.sidebar-collapsed .admin-sidebar { transform: translateX(0); }
  .hero-section { padding: 48px 0 72px; }
  .header-desktop-nav { display: none; }
}

@media (min-width: 769px) {
  .header-desktop-nav { display: flex; }
}

@media (min-width: 992px) {
  .main-content { padding-top: 0; }
}
