/**
 * Theme Unified v4 — Site + Admin birleşik kurumsal tema (son katman)
 * Çakışan CSS katmanlarını düzeltir, mobil uyumu tamamlar.
 */

/* ═══════════════════════════════════════
   ORTAK DEĞİŞKENLER
   ═══════════════════════════════════════ */
:root {
  --u-navy: #0f172a;
  --u-navy-2: #1e293b;
  --u-slate: #334155;
  --u-bg: #f1f5f9;
  --u-bg-alt: #f8fafc;
  --u-white: #ffffff;
  --u-border: #e2e8f0;
  --u-text: #1e293b;
  --u-muted: #64748b;
  --u-accent: var(--brand, #ea580c);
  --u-accent-2: var(--brand-light, #f97316);
  --u-accent-soft: #fff7ed;
  --u-radius: 12px;
  --u-radius-lg: 18px;
  --u-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 6px 20px rgba(15, 23, 42, 0.06);
  --u-shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.1);
  --u-header-h: clamp(60px, 9vw, 76px);
  --u-z-header: 200;
  --u-z-overlay: 250;
  --u-z-drawer: 300;
  --u-z-cta: 850;
  --u-z-fab: 840;
}

/* ═══════════════════════════════════════
   FRONTEND — GENEL
   ═══════════════════════════════════════ */
body.theme-unified {
  background: var(--u-bg);
  color: var(--u-text);
  overflow-x: clip;
  min-height: 100dvh;
}

body.theme-unified #main-content {
  animation: none;
}

.theme-unified .container {
  max-width: 1200px;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}

/* Header */
.theme-unified .site-header {
  position: sticky;
  top: 0;
  z-index: var(--u-z-header);
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--u-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.theme-unified .site-header.scrolled {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.07);
}

.theme-unified .top-bar {
  background: var(--u-navy);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8rem;
  padding: 0.4rem 0;
}

.theme-unified .top-bar a,
.theme-unified .top-bar-item {
  color: rgba(255, 255, 255, 0.92);
}

.theme-unified .nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  min-height: var(--u-header-h);
}

.theme-unified .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.theme-unified .logo img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.theme-unified .logo strong {
  color: var(--u-navy);
  font-size: 1rem;
  line-height: 1.2;
}

.theme-unified .logo small {
  color: var(--u-muted);
  font-size: 0.72rem;
  display: block;
}

.theme-unified .main-nav a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--u-slate);
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
}

.theme-unified .main-nav a:hover,
.theme-unified .main-nav a.active {
  color: var(--u-accent);
  background: var(--u-accent-soft);
}

.theme-unified .nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.theme-unified .nav-overlay {
  z-index: calc(var(--u-z-drawer) - 1);
}

/* Hero */
.theme-unified .hero {
  background: linear-gradient(150deg, var(--u-navy) 0%, var(--u-navy-2) 50%, #1c1410 100%);
  min-height: clamp(460px, 80vh, 660px);
  position: relative;
  overflow: hidden;
}

.theme-unified .hero-content h1 {
  color: #fff;
  font-weight: 800;
  font-size: clamp(1.85rem, 5vw, 3rem);
  line-height: 1.15;
}

.theme-unified .hero-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  line-height: 1.7;
}

.theme-unified .gradient {
  background: linear-gradient(135deg, #fed7aa, #fb923c, var(--u-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Bölümler */
.theme-unified .section {
  padding: clamp(2.75rem, 5vw, 4.5rem) 0;
}

.theme-unified .section.bg-light,
.theme-unified .bg-light,
.theme-unified .bg-subtle {
  background: var(--u-bg-alt);
}

.theme-unified .section-label {
  color: var(--u-accent);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-unified .section-head h2 {
  color: var(--u-navy);
  font-weight: 800;
}

/* Kartlar */
.theme-unified .feature-card,
.theme-unified .product-card,
.theme-unified .article-card,
.theme-unified .showcase-card,
.theme-unified .testimonial-card,
.theme-unified .local-seo-aside {
  background: var(--u-white);
  border: 1px solid var(--u-border);
  border-radius: var(--u-radius-lg);
  box-shadow: var(--u-shadow);
}

.theme-unified .product-card:hover,
.theme-unified .article-card:hover,
.theme-unified .feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--u-shadow-lg);
  border-color: rgba(234, 88, 12, 0.25);
}

/* Butonlar */
.theme-unified .btn {
  font-weight: 600;
  border-radius: var(--u-radius);
  transition: transform 0.15s, box-shadow 0.15s;
}

.theme-unified .btn-primary {
  background: linear-gradient(135deg, var(--u-accent-2), var(--u-accent));
  border: none;
  color: #fff;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.3);
}

.theme-unified .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.35);
}

.theme-unified .btn-outline {
  border: 1.5px solid var(--u-border);
  background: var(--u-white);
  color: var(--u-text);
}

/* İç sayfa hero */
.theme-unified .page-hero {
  background: linear-gradient(135deg, var(--u-navy), var(--u-navy-2));
  padding: clamp(2.25rem, 4vw, 3.25rem) 0;
}

.theme-unified .page-hero h1 {
  color: #fff;
  font-weight: 800;
}

.theme-unified .page-hero p,
.theme-unified .page-hero-meta,
.theme-unified .back-link {
  color: rgba(255, 255, 255, 0.78);
}

.theme-unified .back-link:hover {
  color: #fff;
}

/* Footer */
.theme-unified .site-footer {
  background: var(--u-navy);
  color: rgba(255, 255, 255, 0.82);
  border-top: 3px solid var(--u-accent);
}

.theme-unified .site-footer h4 {
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
}

.theme-unified .site-footer a:hover {
  color: #fdba74;
}

.theme-unified .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
}

/* CTA */
.theme-unified .cta-section {
  background: linear-gradient(135deg, var(--u-navy), #1a1208);
}

.theme-unified .cta-box {
  background: var(--u-white);
  border-radius: var(--u-radius-lg);
  border: 1px solid var(--u-border);
  box-shadow: var(--u-shadow-lg);
}

/* Formlar */
.theme-unified input,
.theme-unified textarea,
.theme-unified select {
  border: 1px solid var(--u-border);
  border-radius: var(--u-radius);
  padding: 0.7rem 1rem;
  font-size: 1rem;
  background: var(--u-white);
  width: 100%;
}

.theme-unified input:focus,
.theme-unified textarea:focus,
.theme-unified select:focus {
  outline: none;
  border-color: var(--u-accent);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}

/* FAQ */
.theme-unified .faq-item {
  background: var(--u-white);
  border: 1px solid var(--u-border);
  border-radius: var(--u-radius);
  margin-bottom: 0.5rem;
}

.theme-unified .faq-item summary {
  padding: 1rem 1.15rem;
  font-weight: 600;
  cursor: pointer;
}

/* Floating & CTA bar */
.theme-unified .mobile-cta-bar {
  z-index: var(--u-z-cta);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--u-border);
}

.theme-unified .whatsapp-btn {
  z-index: var(--u-z-fab);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

.theme-unified .scroll-top {
  z-index: var(--u-z-fab);
}

/* Blog */
.theme-unified .blog-cat-filter {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  flex-wrap: nowrap;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.theme-unified .blog-cat-chip {
  white-space: nowrap;
  flex-shrink: 0;
}

.theme-unified .blog-search {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: 480px;
}

/* Breadcrumb */
.theme-unified .breadcrumbs {
  font-size: 0.85rem;
  color: var(--u-muted);
  padding: 0.65rem 0;
}

.theme-unified .page-hero + .breadcrumbs,
.theme-unified .breadcrumbs a {
  color: var(--u-muted);
}

/* Prose */
.theme-unified .prose {
  line-height: 1.75;
  color: var(--u-text);
}

.theme-unified .prose h2,
.theme-unified .prose h3 {
  color: var(--u-navy);
  margin-top: 1.75rem;
}

/* Loader — hızlı gizle */
.theme-unified .page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.show-desktop-only {
  display: flex;
}

.hide-mobile {
  display: inline-flex;
}

.hide-mobile-v2 {
  display: inline-flex;
}

.hide-desktop {
  display: none !important;
}

.theme-unified .btn-block {
  display: flex;
  width: 100%;
  justify-content: center;
}

.theme-unified .nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: calc(var(--u-z-drawer) - 1);
  opacity: 0;
  transition: opacity 0.3s;
}

.theme-unified .nav-overlay.visible {
  display: block;
  opacity: 1;
}

body.theme-unified.nav-open {
  overflow: hidden;
}

.theme-unified .page-loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (min-width: 992px) {
  .theme-unified .menu-toggle {
    display: none;
  }

  .theme-unified .mobile-nav-cta {
    display: none;
  }
}

@media (max-width: 991px) {
  .hide-mobile,
  .hide-mobile-v2 {
    display: none !important;
  }

  .hide-desktop {
    display: flex !important;
    flex-direction: column;
  }

  .theme-unified .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  body.theme-unified.has-cookie-banner.has-mobile-cta {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  body.theme-unified.has-cookie-banner.has-mobile-cta .whatsapp-btn {
    bottom: calc(82px + env(safe-area-inset-bottom)) !important;
  }

  body.theme-unified.has-cookie-banner.has-mobile-cta .scroll-top {
    bottom: calc(142px + env(safe-area-inset-bottom)) !important;
  }
}

/* ═══════════════════════════════════════
   FRONTEND — MOBİL
   ═══════════════════════════════════════ */
@media (max-width: 991px) {
  .show-desktop-only {
    display: none !important;
  }

  .theme-unified .logo small {
    display: none;
  }

  .theme-unified .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 92vw);
    height: 100dvh;
    background: linear-gradient(180deg, var(--u-navy), var(--u-navy-2)) !important;
    padding: calc(4.5rem + env(safe-area-inset-top)) 1rem 1.5rem;
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    transform: translateX(105%);
    transition: transform 0.3s ease;
    z-index: var(--u-z-drawer);
    overflow-y: auto;
    flex-direction: column;
    gap: 0.25rem;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.3);
  }

  .theme-unified .main-nav.open {
    transform: translateX(0);
  }

  .theme-unified .main-nav a {
    color: rgba(255, 255, 255, 0.9) !important;
    background: transparent !important;
    width: 100%;
    padding: 0.85rem 1rem;
    min-height: 48px;
    font-size: 1rem;
  }

  .theme-unified .main-nav a:hover,
  .theme-unified .main-nav a.active {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
  }

  .theme-unified .nav-actions.hide-mobile-v2 {
    display: none !important;
  }

  .theme-unified .mobile-nav-cta {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .theme-unified .mobile-nav-cta .btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  .theme-unified .hero {
    min-height: auto;
    padding: 2.75rem 0 2rem;
  }

  .theme-unified .hero-visual {
    display: none !important;
  }

  .theme-unified .hero-pills {
    display: flex;
  }

  .theme-unified .grid-3,
  .theme-unified .features,
  .theme-unified .split,
  .theme-unified .footer-grid,
  .theme-unified .local-seo-grid,
  .theme-unified .product-detail-grid,
  .theme-unified .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 1.15rem;
  }

  .theme-unified .mobile-cta-bar {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1.1fr;
    gap: 0.4rem;
    padding: 0.5rem max(0.65rem, env(safe-area-inset-left)) calc(0.5rem + env(safe-area-inset-bottom)) max(0.65rem, env(safe-area-inset-right));
  }

  body.theme-unified.has-mobile-cta {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  body.theme-unified.has-mobile-cta .whatsapp-btn {
    bottom: calc(82px + env(safe-area-inset-bottom)) !important;
  }

  body.theme-unified.has-mobile-cta .scroll-top {
    bottom: calc(142px + env(safe-area-inset-bottom)) !important;
  }

  .theme-unified .menu-toggle {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }
}

@media (max-width: 767px) {
  .theme-unified .hero-actions,
  .theme-unified .cta-actions,
  .theme-unified .cta-box-actions,
  .theme-unified .local-seo-cta {
    flex-direction: column;
    width: 100%;
  }

  .theme-unified .hero-actions .btn,
  .theme-unified .cta-actions .btn,
  .theme-unified .local-seo-cta .btn {
    width: 100%;
  }

  .theme-unified .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .theme-unified .article-contact-strip {
    grid-template-columns: 1fr;
  }

  .theme-unified .trust-items {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 479px) {
  .theme-unified .stats {
    grid-template-columns: 1fr 1fr;
  }

  .theme-unified .trust-items {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════
   ADMIN — BİRLEŞİK DÜZELTMELER
   ═══════════════════════════════════════ */
body.admin-body.theme-unified-admin {
  display: block;
  min-height: 100dvh;
  background: var(--u-bg);
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
}

.theme-unified-admin .admin-sidebar {
  width: 268px;
  background: linear-gradient(195deg, #0c1222 0%, #0f172a 50%, #111827 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  position: fixed;
  top: 0;
  left: 0;
  height: 100dvh;
  z-index: 400;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.theme-unified-admin .sidebar-nav {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0.65rem 1rem;
}

.theme-unified-admin .sidebar-nav a {
  color: #94a3b8;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.6rem 0.85rem;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.theme-unified-admin .sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
}

.theme-unified-admin .sidebar-nav a.active {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.2), rgba(194, 65, 12, 0.1));
  color: #fdba74;
  box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.2);
}

.theme-unified-admin .nav-group {
  color: #475569;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  padding: 1rem 0.85rem 0.35rem;
  text-transform: uppercase;
}

.theme-unified-admin .sidebar-head {
  padding: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.theme-unified-admin .sidebar-head strong {
  color: #fff;
  font-family: 'Outfit', sans-serif;
}

.theme-unified-admin .sidebar-foot {
  padding: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.theme-unified-admin .sidebar-foot a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: #94a3b8;
  border-radius: 8px;
}

.theme-unified-admin .sidebar-foot a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.theme-unified-admin .admin-shell {
  margin-left: 268px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.theme-unified-admin .admin-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--u-white);
  border-bottom: 1px solid var(--u-border);
  padding: 0.85rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.theme-unified-admin .admin-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--u-navy);
  margin: 0;
}

.theme-unified-admin .admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.theme-unified-admin .admin-main {
  padding: 1.5rem 1.75rem 2.5rem;
  flex: 1;
}

.theme-unified-admin .admin-card {
  background: var(--u-white);
  border: 1px solid var(--u-border);
  border-radius: var(--u-radius-lg);
  padding: 1.35rem;
  box-shadow: var(--u-shadow);
  margin-bottom: 1rem;
}

.theme-unified-admin .admin-card h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--u-navy);
  margin-bottom: 1rem;
}

.theme-unified-admin .admin-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.theme-unified-admin .admin-grid .full-width {
  grid-column: 1 / -1;
}

.theme-unified-admin .admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.theme-unified-admin .admin-table th {
  text-align: left;
  padding: 0.65rem 0.85rem;
  background: var(--u-bg-alt);
  color: var(--u-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--u-border);
}

.theme-unified-admin .admin-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--u-border);
  vertical-align: top;
}

.theme-unified-admin .admin-table tr:hover td {
  background: var(--u-bg-alt);
}

.theme-unified-admin .table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--u-radius);
  border: 1px solid var(--u-border);
}

.theme-unified-admin .admin-form label {
  display: block;
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--u-slate);
  margin-bottom: 0.35rem;
}

.theme-unified-admin .admin-form input,
.theme-unified-admin .admin-form textarea,
.theme-unified-admin .admin-form select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--u-border);
  border-radius: var(--u-radius);
  font-size: 0.9375rem;
  margin-bottom: 0.85rem;
  background: var(--u-white);
}

.theme-unified-admin .admin-form input:focus,
.theme-unified-admin .admin-form textarea:focus {
  outline: none;
  border-color: var(--u-accent);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

.theme-unified-admin .form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 1rem;
}

.theme-unified-admin .form-grid .full {
  grid-column: 1 / -1;
}

.theme-unified-admin .alert-success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  padding: 0.75rem 1rem;
  border-radius: var(--u-radius);
  margin-bottom: 1rem;
}

.theme-unified-admin .alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  padding: 0.75rem 1rem;
  border-radius: var(--u-radius);
  margin-bottom: 1rem;
}

.theme-unified-admin .seo-score-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--u-white);
  border: 1px solid var(--u-border);
  border-radius: var(--u-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--u-shadow);
}

.theme-unified-admin .seo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--u-border);
}

.theme-unified-admin .seo-tabs a {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--u-muted);
  background: var(--u-bg-alt);
}

.theme-unified-admin .seo-tabs a.active,
.theme-unified-admin .seo-tabs a:hover {
  background: var(--u-accent);
  color: #fff;
}

.theme-unified-admin .dash-welcome {
  background: linear-gradient(135deg, var(--u-navy), var(--u-navy-2));
  border-radius: var(--u-radius-lg);
  padding: 1.75rem;
  color: #fff;
  margin-bottom: 1.25rem;
}

.theme-unified-admin .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.theme-unified-admin .stat-card {
  background: var(--u-white);
  border: 1px solid var(--u-border);
  border-radius: var(--u-radius);
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--u-shadow);
  transition: transform 0.15s;
}

.theme-unified-admin .stat-card:hover {
  transform: translateY(-2px);
}

.theme-unified-admin .stat-card strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--u-accent);
}

.theme-unified-admin .stat-card span {
  font-size: 0.8rem;
  color: var(--u-muted);
}

.theme-unified-admin .nav-badge {
  margin-left: auto;
  background: var(--u-accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.theme-unified-admin .nav-badge.ok {
  background: #059669;
}

.theme-unified-admin .topbar-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--u-bg-alt);
  color: var(--u-muted);
  text-decoration: none;
}

.theme-unified-admin .topbar-pill.alert {
  background: #fef2f2;
  color: #b91c1c;
}

.theme-unified-admin .topbar-pill.ai-on {
  background: #ecfdf5;
  color: #047857;
}

.theme-unified-admin .admin-toast-stack {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top));
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: min(400px, calc(100vw - 2rem));
  pointer-events: none;
}

.theme-unified-admin .admin-toast {
  padding: 0.875rem 1.15rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--u-shadow-lg);
  pointer-events: auto;
}

.theme-unified-admin .admin-toast.success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.theme-unified-admin .admin-toast.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.theme-unified-admin .admin-menu-toggle {
  display: none;
  position: fixed;
  top: max(0.65rem, env(safe-area-inset-top));
  left: max(0.65rem, env(safe-area-inset-left));
  z-index: 500;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--u-border);
  background: var(--u-white);
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: var(--u-shadow);
}

.theme-unified-admin .admin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 350;
}

.theme-unified-admin .admin-overlay.open,
.theme-unified-admin .admin-overlay.visible {
  display: block;
}

/* Login */
body.admin-login-page.theme-unified-admin {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--u-navy), var(--u-navy-2));
  padding: 1.5rem;
}

.theme-unified-admin .login-box {
  width: 100%;
  max-width: 400px;
  background: var(--u-white);
  border-radius: var(--u-radius-lg);
  padding: 2rem;
  box-shadow: var(--u-shadow-lg);
}

.theme-unified-admin .login-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.theme-unified-admin .login-brand img {
  border-radius: 12px;
  margin: 0 auto 1rem;
}

.theme-unified-admin .login-brand h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  color: var(--u-navy);
}

.theme-unified-admin .login-features {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--u-muted);
  list-style: none;
  padding: 0;
}

.theme-unified-admin .login-features li {
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.theme-unified-admin .login-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--u-accent);
}

/* Admin mobil */
@media (max-width: 991px) {
  .theme-unified-admin .admin-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .theme-unified-admin .admin-sidebar {
    transform: translateX(-105%);
    transition: transform 0.3s ease;
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.3);
  }

  .theme-unified-admin .admin-sidebar.open {
    transform: translateX(0);
  }

  .theme-unified-admin .admin-shell {
    margin-left: 0;
  }

  .theme-unified-admin .admin-topbar {
    padding: 0.75rem 1rem 0.75rem 3.5rem;
  }

  .theme-unified-admin .admin-main {
    padding: 1rem;
    padding-top: 0.5rem;
  }

  .theme-unified-admin .admin-topbar-right .btn,
  .theme-unified-admin .topbar-user {
    display: none;
  }

  .theme-unified-admin .form-grid {
    grid-template-columns: 1fr;
  }

  .theme-unified-admin .seo-score-card {
    flex-direction: column;
    text-align: center;
  }

  .theme-unified-admin .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .theme-unified-admin .dash-welcome {
    flex-direction: column;
    text-align: left;
  }

  .theme-unified-admin .dash-welcome-actions {
    width: 100%;
    flex-direction: column;
  }

  .theme-unified-admin .dash-welcome-actions .btn {
    width: 100%;
  }
}

@media (max-width: 479px) {
  .theme-unified-admin .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .theme-unified-admin .admin-title {
    font-size: 1rem;
  }
}

.theme-unified-admin .btn-link.danger,
.theme-unified-admin .admin-delete-form button {
  background: none;
  border: none;
  color: #b91c1c;
  cursor: pointer;
  font-size: inherit;
  padding: 0;
  text-decoration: underline;
}

.theme-unified-admin .admin-pagination .btn.active {
  background: var(--u-accent);
  color: #fff;
  border-color: var(--u-accent);
}
