/*
   YÜKSEL İLGEN — WEB & SEO
   Admin Panel Design System (Isolated CSS)
   Clean, Minimal, Dark Navy + Violet Aesthetics
*/

:root {
  --admin-bg: #070E27;
  --admin-sidebar: #060D24;
  --admin-topbar: #08112F;
  --admin-card: #0B163B;
  --admin-card-hover: #0E1C4A;
  --admin-border: rgba(255, 255, 255, 0.08);
  --admin-border-focus: rgba(154, 140, 255, 0.4);
  --admin-text-primary: #FFFFFF;
  --admin-text-secondary: rgba(255, 255, 255, 0.68);
  --admin-text-muted: rgba(255, 255, 255, 0.45);
  --admin-accent: #7457FF;
  --admin-accent-gradient: linear-gradient(100deg, #526DFF 0%, #7457FF 100%);
  --admin-font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --admin-sidebar-width: 260px;
}

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

body.admin-body {
  font-family: var(--admin-font);
  background-color: var(--admin-bg);
  color: var(--admin-text-primary);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ─── AUTH / LOGIN PAGE (PREMIUM REDESIGN) ─────────────────────────────────── */
.admin-auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background:
    radial-gradient(circle at 50% 25%, rgba(116, 87, 255, 0.14) 0%, transparent 65%),
    radial-gradient(circle at 80% 80%, rgba(82, 109, 255, 0.08) 0%, transparent 50%),
    #070E27;
  position: relative;
}

.admin-auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  opacity: 0.7;
}

.admin-login-split-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 940px;
  background: #0B163B;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(154, 140, 255, 0.08);
}

/* Left Brand Panel */
.admin-login-brand-panel {
  background: linear-gradient(180deg, #091333 0%, #060D24 100%);
  padding: 44px 36px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.admin-login-brand-top {
  display: flex;
  flex-direction: column;
}

.admin-login-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #9A8CFF;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.admin-login-brand-name {
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.admin-login-brand-tagline {
  font-size: 11.5px;
  font-weight: 700;
  color: #9A8CFF;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 4px;
}

.admin-login-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 280px;
  min-height: 48px;
  margin: 6px 0 2px;
}

.admin-login-logo-img {
  max-width: 280px;
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.admin-login-brand-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--admin-text-secondary);
  margin-top: 18px;
}

/* Capabilities List */
.admin-login-capabilities {
  list-style: none;
  padding: 0;
  margin: 28px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-login-cap-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}

.admin-login-cap-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(116, 87, 255, 0.12);
  border: 1px solid rgba(116, 87, 255, 0.22);
  color: #9A8CFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-login-brand-footer {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11.5px;
  color: var(--admin-text-muted);
}

/* Right Form Panel */
.admin-login-form-panel {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.admin-login-form-header {
  margin-bottom: 24px;
}

.admin-login-heading {
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.admin-login-description {
  font-size: 13px;
  color: var(--admin-text-secondary);
  margin-top: 6px;
}

/* Form Controls & Password Toggle */
.admin-input-wrap {
  position: relative;
  width: 100%;
}

.admin-input-auth {
  width: 100%;
  height: 52px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0 16px;
  font-family: var(--admin-font);
  font-size: 14px;
  color: #FFFFFF;
  transition: all 0.2s ease;
}

.admin-input-auth:focus {
  outline: none;
  border-color: #9A8CFF;
  box-shadow: 0 0 0 3px rgba(154, 140, 255, 0.25);
  background: rgba(0, 0, 0, 0.45);
}

.admin-input-auth.has-toggle {
  padding-right: 48px;
}

.admin-password-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--admin-text-muted);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

.admin-password-toggle-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
}

.admin-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 11.5px;
  color: var(--admin-text-muted);
  text-align: center;
}

/* Responsive Split Layout */
@media (max-width: 900px) {
  .admin-login-split-card {
    grid-template-columns: 1fr;
    max-width: 480px;
    border-radius: 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .admin-login-form-panel {
    padding: 32px 24px;
    width: 100%;
    box-sizing: border-box;
  }

  .admin-login-brand-panel {
    padding: 24px 24px 26px;
    border-right: none;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    order: 2;
    width: 100%;
    box-sizing: border-box;
  }

  .admin-login-logo-wrap {
    margin: 4px 0 2px;
  }

  .admin-login-brand-desc {
    margin-top: 12px;
    font-size: 12.5px;
    line-height: 1.55;
  }

  .admin-login-capabilities {
    margin-top: 16px;
    gap: 9px;
  }

  .admin-login-cap-item {
    font-size: 12px;
  }

  .admin-login-brand-footer {
    display: none;
  }
}

@media (max-width: 480px) {
  .admin-auth-page {
    padding: 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .admin-login-form-panel {
    padding: 26px 18px;
  }

  .admin-login-brand-panel {
    padding: 20px 18px 24px;
  }

  .admin-login-brand-desc {
    margin-top: 10px;
    font-size: 12px;
  }

  .admin-login-capabilities {
    margin-top: 14px;
    gap: 8px;
  }
}

.admin-form-group {
  margin-top: 20px;
}

.admin-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--admin-text-secondary);
  margin-bottom: 8px;
}

.admin-input, .admin-select, .admin-textarea {
  width: 100%;
  height: 46px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  padding: 0 14px;
  font-family: var(--admin-font);
  font-size: 14px;
  color: #FFFFFF;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-textarea {
  height: auto;
  padding: 12px 14px;
}

.admin-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239A8CFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 38px;
  cursor: pointer;
}

.admin-select option {
  background-color: #070E27;
  color: #FFFFFF;
  padding: 8px;
}

.admin-input:focus, .admin-select:focus, .admin-textarea:focus {
  outline: none;
  border-color: #9A8CFF;
  box-shadow: 0 0 0 3px rgba(154, 140, 255, 0.2);
}

.admin-input::placeholder, .admin-textarea::placeholder {
  color: var(--admin-text-muted);
}

/* Chrome/Safari/Edge Autofill Theme Hardening */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-text-fill-color: #FFFFFF !important;
  -webkit-box-shadow: 0 0 0 1000px #070E27 inset !important;
  box-shadow: 0 0 0 1000px #070E27 inset !important;
  transition: background-color 5000s ease-in-out 0s;
  caret-color: #FFFFFF !important;
}

.admin-remember-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  cursor: pointer;
  user-select: none;
}

.admin-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--admin-accent);
  cursor: pointer;
}

.admin-remember-text {
  font-size: 13px;
  color: var(--admin-text-secondary);
}

.admin-btn-auth {
  width: 100%;
  height: 48px;
  margin-top: 24px;
  background: var(--admin-accent-gradient);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  font-family: var(--admin-font);
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(82, 109, 255, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-btn-auth:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(82, 109, 255, 0.35);
}

.admin-alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #FCA5A5;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 18px;
}

/* ─── ADMIN DASHBOARD & LAYOUT ─────────────────────────────────────────── */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
  width: var(--admin-sidebar-width);
  background: var(--admin-sidebar);
  border-right: 1px solid var(--admin-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 100;
  min-height: 100vh;
  align-self: stretch;
}

.admin-sidebar-header {
  padding: 18px 20px;
  min-height: 92px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--admin-border);
}

.admin-sidebar-logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  width: 100%;
}

.admin-sidebar-logo-img {
  max-width: 180px;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.admin-sidebar-nav {
  padding: 20px 12px;
  flex: 1;
}

.admin-nav-group-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--admin-text-muted);
  text-transform: uppercase;
  padding: 12px 12px 6px;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--admin-text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 3px;
  transition: all 0.15s ease;
}

.admin-nav-link svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  opacity: 0.85;
}

.admin-nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
}

.admin-nav-link.active {
  background: var(--admin-accent-gradient);
  color: #FFFFFF;
  font-weight: 600;
}

.admin-nav-link.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.admin-nav-badge {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--admin-text-muted);
}

/* Main Area */
.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--admin-bg);
}

/* Topbar */
.admin-topbar {
  height: 70px;
  background: var(--admin-topbar);
  border-bottom: 1px solid var(--admin-border);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
}

.admin-topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  padding: 6px;
}

.admin-page-heading {
  font-size: 16px;
  font-weight: 600;
  color: #FFFFFF;
}

.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.admin-user-info {
  text-align: right;
}

.admin-user-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #FFFFFF;
}

.admin-user-role {
  font-size: 11px;
  color: #9A8CFF;
}

.admin-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  color: #FCA5A5;
  font-family: var(--admin-font);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-logout-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #FFFFFF;
}

/* Content */
.admin-content {
  padding: 32px;
  flex: 1;
}

/* ─── REDESIGNED DASHBOARD STYLES (PHASE 1) ─────────────────────── */
.admin-dashboard-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* 1. Welcome Banner */
.admin-welcome-banner {
  background: linear-gradient(135deg, rgba(11, 22, 59, 0.95) 0%, rgba(14, 28, 74, 0.85) 100%);
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.admin-welcome-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: 10%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(116, 87, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.admin-welcome-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #9A8CFF;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.admin-welcome-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.25;
}

.admin-welcome-desc {
  font-size: 13.5px;
  color: var(--admin-text-secondary);
  margin-top: 4px;
  max-width: 600px;
}

.admin-welcome-status-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 18px;
  border-radius: 12px;
  flex-shrink: 0;
}

.admin-status-dot-pulse {
  width: 8px;
  height: 8px;
  background-color: #34D399;
  border-radius: 50%;
  box-shadow: 0 0 8px #34D399;
}

.admin-welcome-user-name {
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
}

.admin-welcome-user-role {
  font-size: 11px;
  color: #9A8CFF;
}

/* 2. KPI Cards Row */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.admin-kpi-card {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.admin-kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(154, 140, 255, 0.35);
}

.admin-kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.admin-kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--admin-text-secondary);
}

.admin-kpi-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(116, 87, 255, 0.12);
  color: #9A8CFF;
  flex-shrink: 0;
}

.admin-kpi-icon svg {
  width: 17px;
  height: 17px;
}

.admin-kpi-value-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.admin-kpi-number {
  font-size: 24px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1;
}

.admin-kpi-sub {
  font-size: 11.5px;
  color: var(--admin-text-muted);
}

.admin-kpi-badge {
  display: inline-block;
  margin-top: 8px;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(52, 211, 153, 0.12);
  color: #34D399;
}

.admin-kpi-badge.alert {
  background: rgba(239, 68, 68, 0.15);
  color: #FCA5A5;
}

/* 3. Section Titles */
.admin-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.admin-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-section-title::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--admin-accent-gradient);
  border-radius: 2px;
}

/* 4. Compact Management Modules */
.admin-modules-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.admin-module-box {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  transition: all 0.2s ease;
  min-height: 130px;
}

.admin-module-box:hover {
  background: var(--admin-card-hover);
  border-color: rgba(154, 140, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.admin-module-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.admin-module-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9A8CFF;
  flex-shrink: 0;
}

.admin-module-icon svg {
  width: 18px;
  height: 18px;
}

.admin-module-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.3;
}

.admin-module-desc {
  font-size: 11.5px;
  color: var(--admin-text-secondary);
  line-height: 1.4;
  margin-bottom: 12px;
}

.admin-module-cta {
  font-size: 11.5px;
  font-weight: 600;
  color: #9A8CFF;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
}

.admin-module-box:hover .admin-module-cta {
  color: #FFFFFF;
}

/* 5. Two-Column Dashboard Layout (Feeds & Status) */
.admin-dashboard-split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}

.admin-panel-card {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.admin-panel-card:last-child {
  margin-bottom: 0;
}

.admin-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--admin-border);
  margin-bottom: 14px;
}

.admin-panel-title {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-panel-link {
  font-size: 12px;
  font-weight: 600;
  color: #9A8CFF;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.admin-panel-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* Activity Items List */
.admin-feed-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-feed-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.15s ease;
}

.admin-feed-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.admin-feed-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.admin-feed-title {
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-feed-sub {
  font-size: 11.5px;
  color: var(--admin-text-muted);
}

.admin-feed-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.admin-feed-date {
  font-size: 11px;
  color: var(--admin-text-muted);
}

.admin-feed-empty {
  text-align: center;
  padding: 24px;
  color: var(--admin-text-muted);
  font-size: 13px;
}

/* System Status Items */
.admin-status-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.admin-status-label {
  color: var(--admin-text-secondary);
  font-weight: 500;
}

.admin-status-val {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-pill-green {
  background: rgba(52, 211, 153, 0.12);
  color: #34D399;
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
}

/* Quick Actions Grid */
.admin-quick-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.admin-quick-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--admin-border);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.admin-quick-btn:hover {
  background: rgba(116, 87, 255, 0.15);
  border-color: rgba(154, 140, 255, 0.4);
  color: #9A8CFF;
  transform: translateY(-1px);
}

.admin-quick-btn svg {
  width: 14px;
  height: 14px;
  color: #9A8CFF;
}

/* ─── RESPONSIVE BREAKPOINTS (DASHBOARD) ────────────────────────── */
@media (max-width: 1360px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .admin-modules-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .admin-dashboard-split {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .admin-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-modules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .admin-topbar {
    padding: 0 14px;
    height: 60px;
  }

  .admin-topbar-right {
    gap: 8px;
  }

  .admin-user-info {
    display: none;
  }

  .admin-topbar-site-link span {
    display: none;
  }

  .admin-topbar-site-link {
    padding: 6px 8px !important;
  }

  .admin-logout-btn span {
    display: none;
  }

  .admin-logout-btn {
    padding: 6px 9px;
  }

  .admin-content {
    padding: 16px 14px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .admin-dashboard-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 20px;
    box-sizing: border-box;
  }

  .admin-welcome-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 16px;
    width: 100%;
    box-sizing: border-box;
    gap: 14px;
  }

  .admin-welcome-title {
    font-size: 19px;
  }

  .admin-welcome-desc {
    font-size: 12.5px;
    line-height: 1.5;
  }

  .admin-welcome-status-box {
    padding: 8px 14px;
  }

  /* KPI Grid: 2 Columns on 390px Mobile */
  .admin-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100%;
    box-sizing: border-box;
  }

  .admin-kpi-card {
    padding: 14px 12px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .admin-kpi-label {
    font-size: 11px;
  }

  .admin-kpi-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
  }

  .admin-kpi-icon svg {
    width: 14px;
    height: 14px;
  }

  .admin-kpi-number {
    font-size: 20px;
  }

  .admin-kpi-sub {
    font-size: 10px;
  }

  .admin-kpi-badge {
    font-size: 9.5px;
    padding: 2px 5px;
    white-space: normal;
  }

  /* Management Modules: 1 Column on Mobile */
  .admin-modules-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100%;
    box-sizing: border-box;
  }

  .admin-module-box {
    width: 100%;
    min-width: 0;
    padding: 16px;
    min-height: auto;
    box-sizing: border-box;
  }

  .admin-module-name {
    font-size: 13.5px;
    overflow-wrap: break-word;
  }

  .admin-module-desc {
    font-size: 12px;
    margin-bottom: 10px;
    overflow-wrap: break-word;
  }

  /* Activity Panels */
  .admin-dashboard-split {
    grid-template-columns: 1fr !important;
    width: 100%;
    box-sizing: border-box;
  }

  .admin-dashboard-split > div {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .admin-panel-card {
    padding: 16px 14px;
    margin-bottom: 16px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .admin-feed-list {
    width: 100%;
    min-width: 0;
  }

  .admin-feed-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .admin-feed-main {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  .admin-feed-title {
    font-size: 12.5px;
    white-space: normal !important;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100% !important;
  }

  .admin-feed-sub {
    font-size: 11px;
    overflow-wrap: break-word;
  }

  .admin-feed-side {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .admin-feed-empty {
    padding: 18px 12px;
    font-size: 12px;
    white-space: normal;
    text-align: center;
    overflow-wrap: anywhere;
  }

  /* Quick Actions & System Status */
  .admin-quick-actions-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    width: 100%;
    box-sizing: border-box;
  }

  .admin-quick-btn {
    width: 100%;
    box-sizing: border-box;
    font-size: 12px;
    padding: 10px 12px;
  }

  .admin-status-row {
    padding: 8px 10px;
    font-size: 12px;
    gap: 8px;
  }

  .admin-status-label {
    overflow-wrap: break-word;
  }
}

@media (max-width: 360px) {
  .admin-kpi-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ─── HERO VISUAL PREVIEW & MEDIA PICKER ───────────────────────── */
.admin-hero-media-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 24px;
}

.admin-hero-preview-canvas {
  width: 100%;
  max-width: 380px;
  height: 260px;
  background: radial-gradient(circle at 50% 50%, rgba(116, 87, 255, 0.15) 0%, rgba(11, 22, 59, 0.9) 80%);
  border: 1px dashed rgba(154, 140, 255, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.admin-hero-preview-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.admin-hero-status-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(11, 22, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  backdrop-filter: blur(4px);
}

.admin-hero-status-pill.custom {
  border-color: rgba(52, 211, 153, 0.4);
  color: #34D399;
}

/* Reusable Media Modal */
.admin-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(6, 13, 36, 0.85);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-modal-backdrop.active {
  display: flex;
}

.admin-modal-box {
  width: 100%;
  max-width: 840px;
  max-height: 85vh;
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.admin-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
}

.admin-modal-close {
  background: none;
  border: none;
  color: var(--admin-text-secondary);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.admin-modal-close:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

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

.admin-media-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
}

.admin-media-picker-item {
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid var(--admin-border);
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.15s ease;
}

.admin-media-picker-item:hover {
  border-color: #9A8CFF;
  background: rgba(116, 87, 255, 0.1);
  transform: translateY(-2px);
}

.admin-media-picker-item img {
  width: 100%;
  height: 90px;
  object-fit: contain;
  border-radius: 6px;
  margin-bottom: 6px;
}

.admin-media-picker-item .name {
  font-size: 11px;
  font-weight: 500;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.admin-shortcut-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  transition: all 0.15s ease;
}

.admin-shortcut-card:hover {
  background: var(--admin-card-hover);
  border-color: rgba(154, 140, 255, 0.4);
  transform: translateY(-2px);
}

.admin-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(116, 87, 255, 0.12);
  border: 1px solid rgba(116, 87, 255, 0.24);
  color: #9A8CFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-card-icon svg {
  width: 20px;
  height: 20px;
}

.admin-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
}

.admin-card-status {
  font-size: 13px;
  color: var(--admin-text-muted);
}

.admin-card-badge {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  color: var(--admin-text-muted);
  border: 1px solid var(--admin-border);
}

.admin-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.admin-table-card {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  overflow: hidden;
}

.admin-table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.admin-table th {
  background: rgba(0, 0, 0, 0.2);
  padding: 14px 18px;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--admin-text-muted);
  border-bottom: 1px solid var(--admin-border);
  white-space: nowrap;
}

.admin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--admin-border);
  color: var(--admin-text-secondary);
  vertical-align: middle;
}

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

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.admin-status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 5px;
  white-space: nowrap;
}

.admin-status-badge.success {
  background: rgba(52, 211, 153, 0.15);
  color: #34D399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.admin-status-badge.draft {
  background: rgba(255, 255, 255, 0.06);
  color: var(--admin-text-muted);
  border: 1px solid var(--admin-border);
}

.admin-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--admin-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--admin-text-secondary);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.admin-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.admin-action-btn.edit {
  color: #9A8CFF;
  border-color: rgba(154, 140, 255, 0.3);
}

.admin-action-btn.edit:hover {
  background: rgba(154, 140, 255, 0.15);
}

.admin-action-btn.delete {
  color: #FCA5A5;
  border-color: rgba(239, 68, 68, 0.25);
  margin-left: 6px;
}

.admin-action-btn.delete:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #FFFFFF;
}

.admin-form-card {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 28px;
}

.admin-form-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.admin-form-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.admin-form-section-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9A8CFF;
  margin: 28px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--admin-border);
}

.admin-textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--admin-font);
  font-size: 14px;
  color: #FFFFFF;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-textarea:focus {
  outline: none;
  border-color: #9A8CFF;
  box-shadow: 0 0 0 3px rgba(154, 140, 255, 0.2);
}

.admin-alert-success {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: #34D399;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  margin-bottom: 20px;
}

/* =========================================================
   EXPANDABLE ICON PICKER COMPONENT (Collapsible & Compact)
   ========================================================= */

.expandable-icon-picker-component {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  padding: 10px 12px;
  position: relative;
  transition: border-color 0.2s ease;
}

.expandable-icon-picker-component:focus-within {
  border-color: rgba(154, 140, 255, 0.4);
}

.icon-picker-preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.icon-picker-preview-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.icon-picker-preview-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(124, 108, 255, 0.15);
  border: 1px solid rgba(124, 108, 255, 0.28);
  color: #9A8CFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.icon-picker-preview-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.icon-picker-preview-title {
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon-picker-preview-sub {
  font-size: 11px;
  color: var(--admin-text-muted);
}

.icon-picker-toggle-btn {
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(124, 108, 255, 0.12);
  border: 1px solid rgba(124, 108, 255, 0.3);
  color: #B4A7FF;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.icon-picker-toggle-btn:hover {
  background: rgba(124, 108, 255, 0.22);
  color: #FFFFFF;
  border-color: rgba(154, 140, 255, 0.5);
}

.icon-picker-dropdown-panel {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  animation: fadeInDown 0.15s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.icon-picker-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.icon-picker-search-input {
  font-size: 12px;
  padding: 6px 10px;
  height: 32px;
}

.icon-picker-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--admin-border);
  color: var(--admin-text-secondary);
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: all 0.15s ease;
}

.icon-picker-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #FFFFFF;
  border-color: rgba(239, 68, 68, 0.4);
}

.icon-picker-options-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 4px;
}

.icon-picker-option-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--admin-border);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  min-height: 60px;
}

.icon-picker-radio-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.icon-picker-option-svg {
  color: var(--admin-text-muted);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, transform 0.15s ease;
}

.icon-picker-option-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--admin-text-muted);
  line-height: 1.2;
  white-space: normal;
  word-break: break-word;
  transition: color 0.15s ease;
}

.icon-picker-option-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(154, 140, 255, 0.4);
  transform: translateY(-1px);
}

.icon-picker-option-item:hover .icon-picker-option-svg {
  color: #FFFFFF;
  transform: scale(1.1);
}

.icon-picker-option-item:hover .icon-picker-option-label {
  color: #FFFFFF;
}

.icon-picker-option-item.is-selected {
  border-color: #7C6CFF;
  background: rgba(124, 108, 255, 0.18);
  box-shadow: 0 0 0 2px rgba(124, 108, 255, 0.3);
}

.icon-picker-option-item.is-selected .icon-picker-option-svg {
  color: #B4A7FF;
}

.icon-picker-option-item.is-selected .icon-picker-option-label {
  color: #FFFFFF;
  font-weight: 600;
}

@media (max-width: 1100px) {
  .service-icon-picker-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .service-icon-picker-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ─── FILE UPLOAD COMPONENT ────────────────────────────────────────────── */
.admin-file-upload-wrapper {
  margin-top: 10px;
  width: 100%;
}

.admin-file-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.admin-file-dropzone {
  border: 2px dashed rgba(154, 140, 255, 0.3);
  background: rgba(7, 14, 39, 0.6);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  position: relative;
}

.admin-file-dropzone:hover {
  border-color: #9A8CFF;
  background: rgba(154, 140, 255, 0.05);
}

.admin-dropzone-icon {
  color: #9A8CFF;
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
}

.admin-dropzone-text {
  font-size: 13.5px;
  color: #F8FAFC;
  margin-bottom: 4px;
}

.admin-dropzone-text strong {
  color: #9A8CFF;
}

.admin-dropzone-help {
  font-size: 11.5px;
  color: var(--admin-text-muted);
}

.admin-dropzone-preview-box {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  background: rgba(11, 22, 59, 0.9);
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--admin-border);
}

.admin-dropzone-preview-thumb {
  width: 70px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.admin-dropzone-file-info {
  flex: 1;
  min-width: 0;
}

.admin-dropzone-file-name {
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-dropzone-file-size {
  font-size: 11.5px;
  color: #9A8CFF;
  margin-top: 2px;
}

.admin-dropzone-actions {
  display: flex;
  gap: 8px;
}

/* ─── CUSTOM CHECKBOX (SCOPED — SEKTÖR ANASAYFA VİTRİNİ) ──────────────────
   Same visual recipe as .customer-checkbox-custom (müşteri paneli auth),
   resized to match the admin panel's 18px .admin-checkbox convention and
   using the admin panel's own --admin-accent-gradient token. Scoped to its
   own class so the other 5 admin views still using plain .admin-checkbox
   are unaffected. */
.admin-checkbox-custom {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: rgba(4, 9, 26, 0.75);
  border: 1.5px solid rgba(154, 140, 255, 0.35);
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  flex-shrink: 0;
}

.admin-checkbox-custom::before {
  content: "";
  width: 5px;
  height: 9px;
  border: solid #FFFFFF;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: -2px;
}

.admin-remember-row:hover .admin-checkbox-custom,
.admin-checkbox-custom:hover {
  border-color: #9A8CFF;
  background: rgba(154, 140, 255, 0.12);
  box-shadow: 0 0 12px rgba(154, 140, 255, 0.25);
}

.admin-checkbox-custom:checked {
  background: var(--admin-accent-gradient);
  border-color: #9A8CFF;
  box-shadow: 0 2px 10px rgba(82, 109, 255, 0.45);
}

.admin-checkbox-custom:checked::before {
  transform: rotate(45deg) scale(1);
}

.admin-checkbox-custom:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.admin-checkbox-custom:focus {
  outline: none;
}

.admin-checkbox-custom:focus-visible {
  outline: none;
  border-color: #C4B5FD;
  box-shadow: 0 0 0 3px rgba(154, 140, 255, 0.45);
}

/* ─── COMPACT FILE PICKER (SCOPED — SEKTÖR ANASAYFA VİTRİNİ) ──────────────
   A small, controlled replacement for the native file input chrome — NOT
   the drag & drop .admin-file-dropzone component above. Reuses the same
   .admin-file-input-hidden visually-hidden technique so the real
   <input type="file"> stays in the DOM, keyboard-focusable, with its
   original name/id/accept intact. Sized down from .admin-btn-secondary's
   44px recipe to fit a compact inline control. */
.admin-file-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 100%;
}

.admin-file-picker-trigger {
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--admin-border);
  font-family: var(--admin-font);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  color: var(--admin-text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
  transition: all 0.15s ease;
}

.admin-file-picker-trigger:hover {
  background: rgba(154, 140, 255, 0.1);
  color: #FFFFFF;
  border-color: #9A8CFF;
}

.admin-file-picker-trigger svg {
  color: #9A8CFF;
  flex-shrink: 0;
}

.admin-file-input-hidden:focus-visible + .admin-file-picker-trigger {
  outline: none;
  border-color: #C4B5FD;
  box-shadow: 0 0 0 3px rgba(154, 140, 255, 0.45);
}

.admin-file-picker-status {
  font-size: 12px;
  color: var(--admin-text-muted);
  min-width: 0;
  flex: 1 1 120px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
}

.admin-file-picker-status-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.admin-file-picker-status-icon {
  color: #34D399;
  flex-shrink: 0;
}

.admin-file-picker-status.is-filled {
  color: #D8D0FF;
  font-weight: 500;
}

@media (max-width: 480px) {
  .admin-file-picker-status {
    flex-basis: 0;
  }
}

/* ─── ADMIN PAGINATION COMPONENT ───────────────────────────────────────── */
.admin-pagination-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
}

.admin-pagination-list {
  display: flex;
  list-style: none;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

.admin-page-item {
  display: inline-block;
}

.admin-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--admin-text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.admin-page-link:hover {
  background: rgba(154, 140, 255, 0.15);
  border-color: rgba(154, 140, 255, 0.4);
  color: #FFFFFF;
}

.admin-page-item.active .admin-page-link {
  background: var(--admin-accent-gradient);
  border-color: transparent;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(116, 87, 255, 0.35);
}

.admin-page-item.disabled .admin-page-link {
  color: var(--admin-text-muted);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.04);
  cursor: not-allowed;
  opacity: 0.5;
}

/* ─── GLOBAL ADMIN FORM BUTTON SYSTEM ──────────────────────────────────── */
.admin-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--admin-border);
  flex-wrap: wrap;
}

.admin-btn {
  height: 44px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-family: var(--admin-font);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  width: auto;
  min-width: 0;
  box-sizing: border-box;
  transition: all 0.18s ease;
}

.admin-btn-primary {
  height: 44px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  background: var(--admin-accent-gradient);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--admin-font);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  width: auto;
  min-width: 0;
  box-sizing: border-box;
  box-shadow: 0 8px 24px rgba(82, 109, 255, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.admin-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(82, 109, 255, 0.35);
  color: #FFFFFF;
}

.admin-btn-secondary {
  height: 44px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--admin-border);
  font-family: var(--admin-font);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  color: var(--admin-text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  width: auto;
  min-width: 0;
  box-sizing: border-box;
  transition: all 0.15s ease;
}

.admin-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.2);
}

.admin-btn-danger {
  height: 44px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  font-family: var(--admin-font);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  color: #FCA5A5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  width: auto;
  min-width: 0;
  box-sizing: border-box;
  transition: all 0.15s ease;
}

.admin-btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #FFFFFF;
}

/* ─── MENU MANAGEMENT GRID RECOVERY ─────────────────────────────────── */
.admin-menu-grid {
  display: grid;
  grid-template-columns: minmax(320px, 360px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  width: 100%;
}

@media (max-width: 1199px) {
  .admin-menu-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ─── RESPONSIVE RULES ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-mobile-toggle {
    display: block;
  }

  .admin-topbar {
    padding: 0 18px;
  }

  .admin-content {
    padding: 20px 18px;
  }
}

@media (max-width: 1024px) {
  .admin-hero-media-card > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

@media (max-width: 768px) {
  .admin-hero-media-card .admin-btn-secondary,
  .admin-hero-media-card .admin-btn-primary {
    flex: 1 1 auto;
  }
}

/* ==========================================================================
   CUSTOMER PORTAL LOGIN — PREMIUM CLIENT EXPERIENCE (PUBLIC FACING)
   ========================================================================== */

.customer-auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background:
    radial-gradient(ellipse 65% 55% at 50% 28%, rgba(154, 140, 255, 0.12) 0%, rgba(82, 109, 255, 0.05) 45%, transparent 75%),
    radial-gradient(circle at 85% 85%, rgba(116, 87, 255, 0.06) 0%, transparent 50%),
    #070E27;
  position: relative;
  overflow-x: hidden;
}

.customer-auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: 0.85;
}

.customer-login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1140px;
  min-height: 640px;
  background: #091334;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 28px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(154, 140, 255, 0.12);
}

/* ─── LEFT: Editorial Client Experience Panel ─── */
.customer-exp-panel {
  position: relative;
  background: linear-gradient(175deg, rgba(13, 24, 64, 0.95) 0%, rgba(7, 14, 39, 0.98) 100%);
  padding: 52px 48px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

/* Animated layered gradient wash (approved Fable "art__paint" treatment) —
   replaces the previous single static glow blob with the full painterly
   background from the reference; .customer-exp-top/.customer-journey-wrap/
   .customer-exp-footer already carry position:relative + z-index:1, so
   this stays safely behind all real content. */
.customer-exp-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 85% 70% at 12% 108%, #2d3ec7 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 88% 96%, #7c3aed 0%, transparent 58%),
    radial-gradient(ellipse 60% 48% at 68% 60%, rgba(217, 130, 255, 0.32) 0%, transparent 62%),
    radial-gradient(ellipse 90% 62% at 32% 42%, rgba(74, 58, 190, 0.42) 0%, transparent 64%),
    radial-gradient(ellipse 50% 36% at 86% 18%, rgba(80, 140, 255, 0.24) 0%, transparent 60%),
    radial-gradient(ellipse 40% 28% at 8% 12%, rgba(236, 150, 255, 0.12) 0%, transparent 60%);
  pointer-events: none;
  animation: customerPaintBreathe 26s ease-in-out infinite alternate;
}

/* Film-grain texture (approved Fable "art__grain") */
.customer-exp-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.1;
  mix-blend-mode: overlay;
  pointer-events: none;
}

@keyframes customerPaintBreathe {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.07);
  }
}

/* Readability vignette over the art panel (approved Fable treatment) */
.customer-exp-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 11, 32, 0.5), transparent 34%, transparent 62%, rgba(9, 11, 32, 0.55));
  pointer-events: none;
}

.customer-exp-top {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.customer-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.customer-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #C4B5FD;
  text-transform: uppercase;
}

.customer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(154, 140, 255, 0.1);
  border: 1px solid rgba(154, 140, 255, 0.22);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #D8D0FF;
  letter-spacing: 0.04em;
}

.customer-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.7);
}

.customer-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 24px;
}

.customer-logo-img {
  max-width: 260px;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.customer-main-statement {
  font-size: clamp(26px, 2.3vw, 32px);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin-bottom: 16px;
}

.customer-main-statement span {
  background: linear-gradient(135deg, #FFFFFF 30%, #C4B5FD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.customer-exp-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  max-width: 460px;
  margin-bottom: 32px;
}

/* Decorative Project Journey Motif */
.customer-journey-wrap {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 20px 22px;
  margin-top: auto;
}

.customer-journey-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9A8CFF;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.customer-journey-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  position: relative;
}

.customer-journey-step {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.customer-journey-num {
  font-size: 11px;
  font-weight: 800;
  color: #C4B5FD;
  letter-spacing: 0.04em;
}

.customer-journey-line {
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, rgba(154, 140, 255, 0.5) 0%, rgba(255, 255, 255, 0.1) 100%);
  border-radius: 2px;
  margin: 2px 0 6px 0;
}

.customer-journey-name {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.customer-journey-sub {
  font-size: 10.5px;
  color: var(--admin-text-muted);
}

.customer-exp-footer {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  font-size: 11.5px;
  color: var(--admin-text-muted);
}

/* ─── RIGHT: Authentication Surface ─── */
.customer-login-panel {
  background: #091334;
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.customer-form-header {
  margin-bottom: 28px;
}

.customer-form-header .customer-eyebrow {
  margin-bottom: 8px;
}

.customer-heading {
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.customer-desc {
  font-size: 13.5px;
  color: var(--admin-text-secondary);
  margin-top: 6px;
}

.customer-input-auth {
  width: 100%;
  height: 56px;
  background: rgba(4, 9, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0 18px;
  font-family: var(--admin-font);
  font-size: 14px;
  color: #FFFFFF;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.customer-input-auth:focus {
  outline: none;
  border-color: #9A8CFF;
  box-shadow: 0 0 0 3px rgba(154, 140, 255, 0.22);
  background: rgba(4, 9, 26, 0.9);
}

.customer-input-auth.has-toggle {
  padding-right: 52px;
}

.customer-password-toggle-btn {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--admin-text-muted);
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.customer-password-toggle-btn:hover {
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.06);
}

.customer-password-toggle-btn svg {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}

.customer-btn-auth {
  width: 100%;
  height: 54px;
  background: linear-gradient(100deg, #526DFF 0%, #7457FF 100%);
  border: none;
  border-radius: 14px;
  color: #FFFFFF;
  font-family: var(--admin-font);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(82, 109, 255, 0.32);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.customer-btn-auth:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(82, 109, 255, 0.45);
}

.customer-btn-auth:active {
  transform: translateY(0);
}

.customer-security-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 11.5px;
  color: var(--admin-text-muted);
}

.customer-security-row svg {
  color: #9A8CFF;
  flex-shrink: 0;
}

/* ─── Greeting/status chip (approved Fable "art__chip") ─── */
.customer-greeting-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 7px 14px;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px rgba(5, 6, 20, 0.25);
  position: relative;
  z-index: 1;
  align-self: flex-start;
}

.customer-greeting-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  position: relative;
  flex-shrink: 0;
}

.customer-greeting-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid rgba(74, 222, 128, 0.6);
  animation: customerChipPulse 2.4s ease-out infinite;
}

@keyframes customerChipPulse {
  0% {
    transform: scale(0.7);
    opacity: 1;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

/* ─── Caps Lock warning (approved Fable "caps") ─── */
.customer-caps-hint {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #ffd98a;
  margin-top: 8px;
}

.customer-caps-hint.show {
  display: flex;
  animation: customerAlertIn 0.25s ease;
}

.customer-caps-hint svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

@keyframes customerAlertIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* Form shake on a real (server-returned) validation error — rendered once
   via a conditional Blade class, so it only ever plays after a genuine
   failed login attempt, never speculatively. */
.customer-shake {
  animation: customerShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes customerShake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

/* ─── Submit button loading state (real submit event, no fake success) ─── */
.customer-btn-auth {
  position: relative;
}

.customer-btn-txt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.2s ease;
}

.customer-btn-spin {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}

.customer-btn-spin i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  animation: customerBtnSpin 0.7s linear infinite;
}

@keyframes customerBtnSpin {
  to {
    transform: rotate(360deg);
  }
}

.customer-btn-auth.loading {
  pointer-events: none;
}

.customer-btn-auth.loading .customer-btn-txt {
  opacity: 0;
}

.customer-btn-auth.loading .customer-btn-spin {
  opacity: 1;
}

/* ─── Security/Payment trust section (approved Fable reference, section 11)
   — preserved layout/hierarchy/badges/spacing/styling as-is, namespaced
   under customer-* so nothing here can collide with shared .admin-* rules
   used by the real admin panel. ─── */
.customer-trust {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.customer-trust-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--admin-text-muted);
  justify-content: center;
}

.customer-trust-title::before,
.customer-trust-title::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14));
}

.customer-trust-title::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), transparent);
}

.customer-trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.customer-pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 30px;
  padding: 0 13px;
  border-radius: 8px;
  background: rgba(4, 9, 26, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.75;
  transition: opacity 0.25s ease, border-color 0.25s ease;
}

.customer-pay:hover {
  opacity: 1;
  border-color: rgba(154, 140, 255, 0.3);
}

/* Mastercard — intersecting circles */
.customer-pay-c1,
.customer-pay-c2 {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: inline-block;
}

.customer-pay-c1 {
  background: #EB001B;
  margin-right: -7px;
}

.customer-pay-c2 {
  background: #F79E1B;
  mix-blend-mode: screen;
}

/* Visa wordmark */
.customer-pay--visa span {
  font-size: 13px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.04em;
  color: #cfd4f2;
}

/* Troy */
.customer-pay--troy span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #cfd4f2;
}

.customer-pay--troy span b {
  color: #9A8CFF;
  font-weight: 700;
}

/* Security badges (3D Secure / 256-bit SSL) */
.customer-pay--sec {
  gap: 6px;
}

.customer-pay--sec svg {
  width: 13px;
  height: 13px;
  color: #9A8CFF;
}

.customer-pay--sec span {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--admin-text-secondary);
  letter-spacing: 0.02em;
}

.customer-trust-note {
  text-align: center;
  font-size: 10.5px;
  color: var(--admin-text-muted);
  margin-top: 12px;
  line-height: 1.6;
}

/* ─── RESPONSIVE BREAKPOINTS (TABLET & MOBILE) ─── */
@media (max-width: 980px) {
  .customer-auth-page {
    padding: 32px 18px;
  }

  .customer-login-card {
    grid-template-columns: 1fr;
    max-width: 520px;
    min-height: auto;
    border-radius: 22px;
  }

  .customer-login-panel {
    padding: 36px 28px;
    order: 1;
  }

  .customer-exp-panel {
    padding: 28px 28px 32px;
    border-right: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    order: 2;
  }

  .customer-main-statement {
    font-size: 22px;
  }

  .customer-journey-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 16px;
  }
}

@media (max-width: 480px) {
  .customer-auth-page {
    padding: 20px 14px;
  }

  .customer-login-card {
    border-radius: 20px;
  }

  .customer-login-panel {
    padding: 28px 18px 24px;
  }

  .customer-heading {
    font-size: 21px;
  }

  .customer-input-auth {
    height: 52px;
    border-radius: 12px;
    font-size: 13.5px;
  }

  .customer-btn-auth {
    height: 52px;
    border-radius: 12px;
    font-size: 14px;
  }

  .customer-exp-panel {
    padding: 24px 18px 26px;
  }

  .customer-main-statement {
    font-size: 19px;
    margin-bottom: 12px;
  }

  .customer-exp-desc {
    font-size: 12.5px;
    margin-bottom: 20px;
  }

  .customer-journey-wrap {
    padding: 16px;
    border-radius: 14px;
  }

  .customer-journey-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}



/* ─── CUSTOM CHECKBOX (MÜŞTERİ PANELİ AUTH) ─── */
.customer-remember-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  margin-top: 0;
}

.customer-checkbox-custom {
  appearance: none;
  -webkit-appearance: none;
  width: 19px;
  height: 19px;
  background: rgba(4, 9, 26, 0.75);
  border: 1.5px solid rgba(154, 140, 255, 0.35);
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  flex-shrink: 0;
}

.customer-checkbox-custom::before {
  content: "";
  width: 5px;
  height: 9px;
  border: solid #FFFFFF;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: -2px;
}

.customer-remember-row:hover .customer-checkbox-custom,
.customer-checkbox-custom:hover {
  border-color: #9A8CFF;
  background: rgba(154, 140, 255, 0.12);
  box-shadow: 0 0 12px rgba(154, 140, 255, 0.25);
}

.customer-checkbox-custom:checked {
  background: linear-gradient(135deg, #526DFF 0%, #7457FF 100%);
  border-color: #9A8CFF;
  box-shadow: 0 2px 10px rgba(82, 109, 255, 0.45);
}

.customer-checkbox-custom:checked::before {
  transform: rotate(45deg) scale(1);
}

.customer-checkbox-custom:focus {
  outline: none;
}

.customer-checkbox-custom:focus-visible {
  outline: none;
  border-color: #C4B5FD;
  box-shadow: 0 0 0 3px rgba(154, 140, 255, 0.45);
}

.customer-remember-text {
  color: #FFFFFF;
  font-weight: 500;
  font-size: 13px;
  transition: color 0.15s ease;
}

.customer-remember-row:hover .customer-remember-text {
  color: #D8D0FF;
}

.customer-payment-row {
  color: rgba(52, 211, 153, 0.9);
}

.customer-payment-row svg {
  color: #34D399;
}

/* ─── Reduced motion (customer login page only) ─── */
@media (prefers-reduced-motion: reduce) {
  .customer-exp-panel::before,
  .customer-greeting-dot::after,
  .customer-btn-spin i,
  .customer-shake {
    animation: none;
  }
  .customer-caps-hint.show,
  .customer-btn-txt,
  .customer-input-auth,
  .customer-checkbox-custom,
  .customer-checkbox-custom::before,
  .customer-btn-auth,
  .customer-pay {
    transition: none;
  }
}


/* ─── SHARED ADMIN SCROLLBAR STYLING ──────────────────────────────────────── */
:root {
  --admin-scrollbar-track: rgba(7, 14, 39, 0.75);
  --admin-scrollbar-thumb: rgba(154, 140, 255, 0.35);
  --admin-scrollbar-thumb-hover: rgba(154, 140, 255, 0.6);
}

/* Firefox standard scrollbar properties */
html,
body.admin-body,
.admin-body *,
.admin-textarea,
.admin-table-responsive,
.admin-modal-box,
.admin-modal-body,
.admin-media-picker-grid,
pre {
  scrollbar-width: thin;
  scrollbar-color: var(--admin-scrollbar-thumb) var(--admin-scrollbar-track);
}

/* Chromium / WebKit / Safari custom scrollbar */
.admin-body ::-webkit-scrollbar,
html::-webkit-scrollbar,
body.admin-body::-webkit-scrollbar,
.admin-textarea::-webkit-scrollbar,
.admin-table-responsive::-webkit-scrollbar,
.admin-modal-box::-webkit-scrollbar,
.admin-modal-body::-webkit-scrollbar,
.admin-media-picker-grid::-webkit-scrollbar,
pre::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.admin-body ::-webkit-scrollbar-track,
html::-webkit-scrollbar-track,
body.admin-body::-webkit-scrollbar-track,
.admin-textarea::-webkit-scrollbar-track,
.admin-table-responsive::-webkit-scrollbar-track,
.admin-modal-box::-webkit-scrollbar-track,
.admin-modal-body::-webkit-scrollbar-track,
.admin-media-picker-grid::-webkit-scrollbar-track,
pre::-webkit-scrollbar-track {
  background: var(--admin-scrollbar-track);
  border-radius: 4px;
}

.admin-body ::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-thumb,
body.admin-body::-webkit-scrollbar-thumb,
.admin-textarea::-webkit-scrollbar-thumb,
.admin-table-responsive::-webkit-scrollbar-thumb,
.admin-modal-box::-webkit-scrollbar-thumb,
.admin-modal-body::-webkit-scrollbar-thumb,
.admin-media-picker-grid::-webkit-scrollbar-thumb,
pre::-webkit-scrollbar-thumb {
  background: var(--admin-scrollbar-thumb);
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: content-box;
}

.admin-body ::-webkit-scrollbar-thumb:hover,
html::-webkit-scrollbar-thumb:hover,
body.admin-body::-webkit-scrollbar-thumb:hover,
.admin-textarea::-webkit-scrollbar-thumb:hover,
.admin-table-responsive::-webkit-scrollbar-thumb:hover,
.admin-modal-box::-webkit-scrollbar-thumb:hover,
.admin-modal-body::-webkit-scrollbar-thumb:hover,
.admin-media-picker-grid::-webkit-scrollbar-thumb:hover,
pre::-webkit-scrollbar-thumb:hover {
  background: var(--admin-scrollbar-thumb-hover);
  background-clip: content-box;
}

.admin-body ::-webkit-scrollbar-corner {
  background: transparent;
}

/* ─── VERSION HISTORY ENHANCEMENTS ────────────────────────────────────────── */
.admin-revision-badge {
  background: rgba(116, 87, 255, 0.12);
  color: #B4A9FF;
  border: 1px solid rgba(154, 140, 255, 0.25);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
}

.admin-action-btn.restore {
  color: #34D399;
  border-color: rgba(52, 211, 153, 0.3);
  margin-left: 6px;
}

.admin-action-btn.restore:hover {
  background: rgba(52, 211, 153, 0.15);
  color: #FFFFFF;
  border-color: rgba(52, 211, 153, 0.5);
}

/* ─── MEDIA LIBRARY TOOLBAR & PER PAGE SELECT ─────────────────────────────── */
.admin-media-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--admin-border);
  flex-wrap: wrap;
}

.admin-media-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 360px;
}

.admin-media-search-input {
  height: 38px;
  font-size: 12.5px;
  padding-left: 36px;
}

.admin-media-perpage-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--admin-text-secondary);
}

.admin-media-perpage-select {
  height: 38px;
  width: 90px;
  padding: 6px 28px 6px 12px;
  font-size: 12.5px;
  background-color: #070E27;
  border-color: var(--admin-border);
  cursor: pointer;
}

/* ─── MEDIA PICKER MODAL ITEM & DELETE ACTION ─────────────────────────────── */
.admin-media-picker-item {
  position: relative;
}

.admin-media-picker-delete-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(11, 22, 59, 0.92);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #FCA5A5;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.88);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  z-index: 10;
  padding: 0;
}

.admin-media-picker-item:hover .admin-media-picker-delete-btn,
.admin-media-picker-delete-btn:focus,
.admin-media-picker-delete-btn:focus-visible {
  opacity: 1;
  transform: scale(1);
}

.admin-media-picker-delete-btn:hover {
  background: #EF4444;
  color: #FFFFFF;
  border-color: #EF4444;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.admin-media-picker-item.deleting {
  opacity: 0.3;
  pointer-events: none;
  transform: scale(0.92);
  transition: all 0.25s ease;
}

/* =====================================================================
   TRIX EDITOR — DARK THEME OVERRIDE
   -----------------------------------------------------------------
   Trix ships a light-themed stylesheet (public/vendor/trix/trix.css) by
   default. This block re-skins it to match the existing dark
   .admin-input/.admin-textarea aesthetic used throughout the admin, without
   touching trix.css itself (kept vendor-pure for easy version upgrades).
   Used by every <x-admin.rich-text-field> instance (Service description,
   Sector content, Sectors-index intro paragraphs).
   ===================================================================== */

.admin-richtext-field trix-toolbar {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--admin-border);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  padding: 6px 8px;
}

.admin-richtext-field trix-toolbar .trix-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.admin-richtext-field trix-toolbar .trix-button-group {
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  margin: 2px 4px 2px 0;
}

.admin-richtext-field trix-toolbar .trix-button {
  background: transparent;
  color: var(--admin-text-secondary);
  border: none;
  min-width: 36px;
  height: 32px;
}

.admin-richtext-field trix-toolbar .trix-button:not(:first-child) {
  border-left: 1px solid var(--admin-border);
}

.admin-richtext-field trix-toolbar .trix-button.trix-active {
  background: rgba(154, 140, 255, 0.22);
  color: #FFFFFF;
}

.admin-richtext-field trix-toolbar .trix-button:hover:not(:disabled) {
  background: rgba(154, 140, 255, 0.12);
  color: #FFFFFF;
}

.admin-richtext-field trix-toolbar .trix-button--icon::before {
  filter: invert(1) brightness(1.6);
  opacity: 0.85;
}

.admin-richtext-field trix-toolbar .trix-button.trix-active .trix-button--icon::before,
.admin-richtext-field trix-toolbar .trix-button.trix-active::before {
  opacity: 1;
}

.admin-richtext-field trix-toolbar .trix-dialog {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  color: var(--admin-text-primary);
}

.admin-richtext-field trix-toolbar .trix-input--dialog {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--admin-border);
  color: #FFFFFF;
}

.admin-richtext-field trix-toolbar .trix-button--dialog {
  background: rgba(154, 140, 255, 0.15);
  border: 1px solid rgba(154, 140, 255, 0.35);
  color: #FFFFFF;
}

.admin-trix-editor {
  min-height: 160px;
  max-height: 420px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--admin-border);
  border-radius: 0 0 10px 10px;
  padding: 12px 14px;
  font-family: var(--admin-font);
  font-size: 14px;
  line-height: 1.65;
  color: #FFFFFF;
}

.admin-trix-editor:focus {
  outline: none;
  border-color: #9A8CFF;
  box-shadow: 0 0 0 3px rgba(154, 140, 255, 0.2);
}

.admin-trix-editor h3 {
  font-size: 16px;
  font-weight: 600;
  color: #FFFFFF;
  margin: 12px 0 6px;
}

.admin-trix-editor blockquote {
  border-left: 3px solid #9A8CFF;
  padding-left: 12px;
  margin: 10px 0;
  color: var(--admin-text-secondary);
  font-style: italic;
}

.admin-trix-editor a {
  color: #9A8CFF;
}

.admin-trix-editor ul,
.admin-trix-editor ol {
  padding-left: 24px;
  margin: 8px 0;
}

.admin-trix-editor::-moz-selection,
.admin-trix-editor *::-moz-selection { background: rgba(154, 140, 255, 0.35); }
.admin-trix-editor::selection,
.admin-trix-editor *::selection { background: rgba(154, 140, 255, 0.35); }

@media (max-width: 480px) {
  .admin-trix-editor {
    min-height: 130px;
    padding: 10px 12px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   Dijital Büyüme — Görsel Yönetimi (settings partial)
   ═══════════════════════════════════════════════════════════════════ */
.settings-section {
  margin-top: 32px;
  padding: 24px;
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: 14px;
}

.settings-section__header {
  margin-bottom: 24px;
}

.settings-section__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--admin-text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
}

.settings-section__icon {
  font-size: 20px;
  line-height: 1;
}

.settings-section__desc {
  font-size: 12.5px;
  color: var(--admin-text-muted);
  line-height: 1.55;
  margin: 0;
}

.settings-group {
  margin-bottom: 24px;
}

.settings-group:last-child {
  margin-bottom: 0;
}

.settings-group__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--admin-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--admin-border);
}

.settings-row {
  display: grid;
  gap: 18px;
}

.settings-row--3col {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .settings-row--3col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .settings-row--3col {
    grid-template-columns: 1fr;
  }
}

.settings-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--admin-text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.settings-ratio-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--admin-accent);
  background: rgba(116, 87, 255, 0.12);
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.settings-current-img {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings-img-thumb {
  width: 100%;
  max-height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--admin-border);
  background: rgba(0, 0, 0, 0.2);
}

.settings-img-thumb--tall {
  max-height: 160px;
  object-fit: contain;
}

.settings-img-thumb--wide {
  max-height: 100px;
  object-fit: cover;
}

.settings-remove-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #FCA5A5;
  cursor: pointer;
  user-select: none;
}

.settings-remove-label input[type="checkbox"] {
  accent-color: #EF4444;
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.settings-file-input {
  width: 100%;
  font-size: 12px;
  color: var(--admin-text-secondary);
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed var(--admin-border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.settings-file-input:hover,
.settings-file-input:focus {
  border-color: var(--admin-border-focus);
}

.settings-file-input::file-selector-button {
  font-family: var(--admin-font);
  font-size: 11px;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--admin-accent-gradient);
  border: none;
  border-radius: 6px;
  padding: 5px 12px;
  margin-right: 10px;
  cursor: pointer;
}

.settings-error {
  font-size: 12px;
  color: #FCA5A5;
  margin: 0;
}
