@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@500;600;700;800&display=swap');

/* ══════════════════════════════════════════════════════════════════════════════
   RAKS V3.6 — SHOPLYTIC SAAS DESIGN SYSTEM (ortak.css)
   Pixel-Perfect Match for Shoplytic Aesthetic: Amber, Crisp White & Dark Mode
   ══════════════════════════════════════════════════════════════════════════════ */

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Layout Dimensions */
  --sidebar-w: 248px;
  --sidebar-w-collapsed: 72px;
  --topbar-h: 76px;
  --mobile-nav-h: 62px;

  /* Light Theme Colors (Default) */
  --canvas-bg: #F4F5F7;
  --surface-bg: #FFFFFF;
  --surface-hover: #F8F9FA;
  --border-subtle: #ECEEF1;
  --border-light: #E5E7EB;

  /* Amber & Brand Accents */
  --brand-amber: #FF9F1C;
  --brand-orange: #F97316;
  --brand-gradient: linear-gradient(135deg, #FF9F1C 0%, #F97316 100%);
  --brand-amber-light: #FFF7ED;
  --brand-amber-border: #FED7AA;

  /* Semantic Accents */
  --emerald-accent: #10B981;
  --emerald-light: #ECFDF5;
  --emerald-border: #A7F3D0;

  --rose-accent: #EF4444;
  --rose-light: #FEF2F2;
  --rose-border: #FECACA;

  --purple-accent: #A855F7;
  --purple-light: #F3E8FF;
  --purple-border: #E9D5FF;

  --blue-accent: #3B82F6;
  --blue-light: #EFF6FF;
  --blue-border: #BFDBFE;

  /* Text Colors */
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;

  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.02), 0 2px 8px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 4px 14px rgba(0, 0, 0, 0.05);
  --shadow-dropdown: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-tooltip: 0 8px 20px rgba(0, 0, 0, 0.08);

  /* Transitions */
  --transition-smooth: 0.2s cubic-bezier(0.16, 1, 0.3, 1);

  /* Backward Compatibility Aliases */
  --bg-canvas: var(--canvas-bg);
  --bg-surface: var(--surface-bg);
  --border-focus: #111827;
  --zinc-950: #09090b;
  --zinc-900: #18181b;
  --zinc-800: #27272a;
  --zinc-700: #3f3f46;
  --zinc-600: #52525b;
  --zinc-500: #71717a;
  --zinc-400: #a1a1aa;
  --zinc-300: #d4d4d8;
  --zinc-200: #e4e4e7;
  --zinc-100: #f4f4f5;
  --zinc-50:  #fafafa;
}

/* ══════════════════════════════════════════════════════════════════════════════
   DARK THEME (GECE MODU - FULL COMPATIBILITY)
   ══════════════════════════════════════════════════════════════════════════════ */
html.dark, body.dark {
  --canvas-bg: #0B0F17;
  --surface-bg: #111827;
  --surface-hover: #1F2937;
  --border-subtle: #1F2937;
  --border-light: #374151;

  --text-primary: #F9FAFB;
  --text-secondary: #E5E7EB;
  --text-muted: #9CA3AF;
  --text-light: #6B7280;

  --brand-amber-light: rgba(255, 159, 28, 0.15);
  --brand-amber-border: rgba(255, 159, 28, 0.3);

  --emerald-light: rgba(16, 185, 129, 0.15);
  --emerald-border: rgba(16, 185, 129, 0.3);

  --rose-light: rgba(239, 68, 68, 0.15);
  --rose-border: rgba(239, 68, 68, 0.3);

  --purple-light: rgba(168, 85, 247, 0.15);
  --purple-border: rgba(168, 85, 247, 0.3);

  --blue-light: rgba(59, 130, 246, 0.15);
  --blue-border: rgba(59, 130, 246, 0.3);

  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 4px 14px rgba(0, 0, 0, 0.5);
  --shadow-dropdown: 0 10px 25px rgba(0, 0, 0, 0.6);

  --bg-canvas: var(--canvas-bg);
  --bg-surface: var(--surface-bg);
  --zinc-950: #fafafa;
  --zinc-900: #f4f4f5;
  --zinc-800: #e4e4e7;
  --zinc-700: #d4d4d8;
  --zinc-600: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-400: #52525b;
  --zinc-300: #3f3f46;
  --zinc-200: #27272a;
  --zinc-100: #18181b;
  --zinc-50:  #09090b;
}

/* Gece Modunda Tailwind Hardcoded Renklerini Uyumlu Yapma */
html.dark body {
  background-color: #0B0F17 !important;
  color: #F9FAFB !important;
}

html.dark .sh-card, 
html.dark .raks-card, 
html.dark .cp-table-outer, 
html.dark .cp-unified-kpi-card,
html.dark .lux-card,
html.dark .cp-modal-content {
  background-color: #111827 !important;
  border-color: #1F2937 !important;
  color: #F9FAFB !important;
}

html.dark .bg-white {
  background-color: #111827 !important;
}

html.dark .bg-gray-50, 
html.dark .bg-slate-50, 
html.dark .bg-\[\#f8fafc\], 
html.dark .bg-\[\#F4F5F7\] {
  background-color: #0B0F17 !important;
}

html.dark .text-gray-900, 
html.dark .text-slate-900, 
html.dark .text-slate-800, 
html.dark .text-\[\#0a0a0c\] {
  color: #F9FAFB !important;
}

html.dark .text-gray-500, 
html.dark .text-gray-600, 
html.dark .text-slate-500, 
html.dark .text-slate-600 {
  color: #9CA3AF !important;
}

html.dark .border-gray-100, 
html.dark .border-gray-200, 
html.dark .border-slate-100, 
html.dark .border-slate-200 {
  border-color: #1F2937 !important;
}

html.dark input, 
html.dark select, 
html.dark textarea {
  background-color: #1F2937 !important;
  border-color: #374151 !important;
  color: #F9FAFB !important;
}

html.dark table thead tr {
  background-color: #1F2937 !important;
  color: #9CA3AF !important;
}

html.dark table tbody tr:hover {
  background-color: #1F2937 !important;
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* ══════════════════════════════════════════════════════════════════════════════
   GLOBAL RESET & TYPOGRAPHY
   ══════════════════════════════════════════════════════════════════════════════ */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: pan-y;
  overscroll-behavior-x: none;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  font-family: var(--font-sans) !important;
  background-color: var(--canvas-bg);
  color: var(--text-primary);
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: var(--font-sans) !important;
  background-color: var(--canvas-bg) !important;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.012em;
}

body.no-scroll {
  overflow: hidden !important;
}

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

svg.lucide-icon, svg.stroke-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  vertical-align: middle;
}

/* ══════════════════════════════════════════════════════════════════════════════
   APP LAYOUT
   ══════════════════════════════════════════════════════════════════════════════ */
#app {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  background-color: var(--canvas-bg);
}

/* ══════════════════════════════════════════════════════════════════════════════
   SIDEBAR (LEFT NAV)
   ══════════════════════════════════════════════════════════════════════════════ */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  height: 100vh;
  height: 100dvh;
  background: var(--surface-bg);
  border-right: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width var(--transition-smooth), transform var(--transition-smooth), background-color var(--transition-smooth);
  user-select: none;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 0;
}

.sidebar-header {
  padding: 22px 20px 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-squircle-logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.25);
  flex-shrink: 0;
}

.brand-squircle-logo svg {
  width: 22px;
  height: 22px;
  fill: #FFFFFF;
}

.brand-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.brand-text span.brand-accent {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-orange);
  background: var(--brand-amber-light);
  padding: 1px 6px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-close-mobile {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
}

.sidebar-nav-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-subtle) transparent;
}

.sidebar-nav-scroll::-webkit-scrollbar {
  width: 4px;
}
.sidebar-nav-scroll::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-smooth);
  border: none;
  background: transparent;
  width: 100%;
  cursor: pointer;
  text-align: left;
}

.nav-item:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.nav-item .nav-icon {
  width: 19px;
  height: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: inherit;
}

.nav-item .nav-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item .nav-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-item .nav-chevron {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: transform var(--transition-smooth);
  flex-shrink: 0;
}

.nav-item .nav-chevron svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.nav-item.active {
  background: var(--surface-hover);
  color: var(--text-primary);
  font-weight: 600;
}

.nav-item.active .nav-icon {
  color: var(--text-primary);
}

.nav-item .active-indicator {
  display: none;
}

.nav-item.active .active-indicator {
  display: block;
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 22px;
  background: var(--brand-amber);
  border-radius: 4px;
}

.nav-group-collapsible {
  display: flex;
  flex-direction: column;
}

.nav-group-collapsible.expanded > .nav-item .nav-chevron {
  transform: rotate(180deg);
}

.nav-group-collapsible.expanded > .nav-item {
  color: var(--text-primary);
}

.nav-sub-list {
  display: none;
  flex-direction: column;
  gap: 2px;
  margin: 3px 0 6px 24px;
  padding-left: 12px;
  border-left: 1.5px solid var(--border-subtle);
}

.nav-group-collapsible.expanded > .nav-sub-list {
  display: flex;
}

.nav-sub-item {
  display: flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition-smooth);
  white-space: nowrap;
}

.nav-sub-item:hover {
  color: var(--text-primary);
  background: var(--surface-hover);
}

.nav-sub-item.active {
  color: var(--brand-orange);
  background: var(--brand-amber-light);
  font-weight: 700;
}

.sidebar-bottom-menu {
  padding: 14px 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
  background: var(--surface-bg);
}

.bottom-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-smooth);
  cursor: pointer;
}

.bottom-nav-item:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.bottom-nav-item .nav-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-nav-item.logout-link {
  color: var(--brand-amber);
  font-weight: 600;
}

.bottom-nav-item.logout-link:hover {
  background: var(--brand-amber-light);
  color: var(--brand-orange);
}

.bottom-nav-item.logout-link .nav-icon {
  color: var(--brand-amber);
}

/* ══════════════════════════════════════════════════════════════════════════════
   MAIN CONTENT AREA & TOPBAR
   ══════════════════════════════════════════════════════════════════════════════ */
.main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--canvas-bg);
}

.top-bar {
  height: var(--topbar-h);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--canvas-bg);
  flex-shrink: 0;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.mobile-hamburger {
  display: none;
  background: var(--surface-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 8px;
  cursor: pointer;
  color: var(--text-primary);
  box-shadow: var(--shadow-card);
}

.mobile-hamburger svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.greeting-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.greeting-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.greeting-subtitle {
  margin: 2px 0 0 0;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.search-pill {
  height: 42px;
  width: 250px;
  border-radius: var(--radius-full);
  background: var(--surface-bg);
  border: 1px solid var(--border-light);
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-card);
}

.search-pill:hover {
  border-color: #D1D5DB;
  color: var(--text-secondary);
}

.search-pill .search-icon {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

.search-pill .search-placeholder {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mobil için Arama Butonu */
.search-mobile-btn {
  display: none;
}

.icon-circle-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--surface-bg);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
  text-decoration: none;
}

.icon-circle-btn:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
  border-color: #D1D5DB;
}

.icon-circle-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.user-profile-menu-wrapper {
  position: relative;
}

.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: opacity var(--transition-smooth);
}

.user-profile-btn:hover {
  opacity: 0.9;
}

.user-avatar-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--brand-gradient);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(249, 115, 22, 0.3);
  flex-shrink: 0;
}

.user-meta {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.user-meta .user-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.user-meta .user-role {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-light);
}

.profile-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 230px;
  background: var(--surface-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dropdown);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 100;
}

.profile-dropdown-menu.active {
  display: flex;
  animation: dropdownFadeIn 0.15s ease-out;
}

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

.dropdown-user-header {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 4px;
}

.dropdown-user-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.dropdown-user-store {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-link-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-smooth);
}

.dropdown-link-item:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.dropdown-link-item.danger {
  color: var(--rose-accent);
}

.dropdown-link-item.danger:hover {
  background: var(--rose-light);
}

.dropdown-link-item svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.content-area {
  flex: 1;
  padding: 0 28px 40px 28px;
  max-width: 100%;
  box-sizing: border-box;
}

.sh-card, .raks-card {
  background: var(--surface-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-smooth), background-color var(--transition-smooth), border-color var(--transition-smooth);
}

.sh-card:hover, .raks-card:hover {
  box-shadow: var(--shadow-hover);
}

/* ══════════════════════════════════════════════════════════════════════════════
   SPOTLIGHT COMMAND PALETTE (⌘K)
   ══════════════════════════════════════════════════════════════════════════════ */
.cmd-palette-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14vh;
}

.cmd-palette-overlay.active {
  display: flex;
}

.cmd-palette-dialog {
  background: var(--surface-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-dropdown);
  width: 100%;
  max-width: 580px;
  overflow: hidden;
  animation: cmdSlideDown 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cmdSlideDown {
  from { opacity: 0; transform: translateY(-12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.cmd-search-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.cmd-search-header svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-light);
  stroke-width: 2;
  fill: none;
}

.cmd-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  background: transparent;
}

.cmd-search-esc {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
  background: var(--canvas-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 3px 7px;
  cursor: pointer;
}

.cmd-results-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cmd-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: background var(--transition-smooth);
}

.cmd-item-row:hover {
  background: var(--surface-hover);
}

.cmd-item-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--canvas-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.cmd-item-icon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

/* ══════════════════════════════════════════════════════════════════════════════
   MODAL ENGINE & BACKDROP
   ══════════════════════════════════════════════════════════════════════════════ */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 45;
  display: none;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.drawer-backdrop.active {
  display: block;
  opacity: 1;
}

.cp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.cp-modal-overlay.active {
  display: flex;
}

.cp-modal-content {
  background: var(--surface-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-dropdown);
  width: 100%;
  max-width: 520px;
  padding: 24px;
  position: relative;
  animation: modalPop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.cp-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cp-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.cp-modal-close {
  background: transparent;
  border: none;
  font-size: 18px;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
}

.cp-modal-close:hover {
  color: var(--text-primary);
}

/* ══════════════════════════════════════════════════════════════════════════════
   MOBİL ALT NAVİGASYON BAR (5 ÖĞELİ APPLE HIG)
   ══════════════════════════════════════════════════════════════════════════════ */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--mobile-nav-h);
  background: var(--surface-bg);
  border-top: 1px solid var(--border-subtle);
  z-index: 40;
  padding: 0 10px;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.mob-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  text-decoration: none;
  border: none;
  background: transparent;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 8px;
  transition: color var(--transition-smooth);
}

.mob-nav-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.mob-nav-btn.active {
  color: var(--brand-orange);
}

/* ══════════════════════════════════════════════════════════════════════════════
   KULLANICI TANIMLI DROPDOWN MOTORU
   ══════════════════════════════════════════════════════════════════════════════ */
.cp-custom-dropdown {
  position: relative;
  display: inline-block;
}
.cp-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: var(--surface-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  user-select: none;
  transition: border-color var(--transition-smooth);
}
.cp-dropdown-header:hover {
  border-color: #D1D5DB;
}
.cp-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  background: var(--surface-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-dropdown);
  display: none;
  z-index: 50;
  padding: 4px;
}
.cp-custom-dropdown.open .cp-dropdown-menu {
  display: block;
  animation: dropdownFadeIn 0.15s ease-out;
}
.cp-dropdown-item {
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition-smooth);
  white-space: nowrap;
}
.cp-dropdown-item:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}
.cp-dropdown-item.selected {
  background: var(--brand-amber-light);
  color: var(--brand-orange);
  font-weight: 700;
}

/* Container Utilities (Shoplytic Universal Full-Width) */
.compact-20, .compact-50, .cp-container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   GLOBAL SHOPLYTIC CORE COMPONENTS (UNIFIED ACROSS ALL PAGES)
   ══════════════════════════════════════════════════════════════════════════════ */

/* 1. Unified KPI Card (Siparisler, Urunler, Iletisim, Degerlendirmeler) */
.cp-unified-kpi-card {
  display: flex !important;
  align-items: stretch !important;
  background: var(--surface-bg) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: var(--shadow-card) !important;
  width: 100% !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  transition: background-color var(--transition-smooth), border-color var(--transition-smooth) !important;
}

.cp-kpi-col {
  flex: 1 !important;
  min-width: 0 !important;
  padding: 12px 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  cursor: pointer !important;
  border-radius: var(--radius-lg) !important;
  transition: all var(--transition-smooth) !important;
  user-select: none !important;
  box-sizing: border-box !important;
}

.cp-kpi-col:hover {
  background: var(--surface-hover) !important;
}

.cp-kpi-col.active {
  background: var(--brand-amber-light) !important;
  box-shadow: inset 0 -3px 0 var(--brand-orange) !important;
}

.cp-kpi-col.active .cp-kpi-title {
  color: var(--brand-orange) !important;
  font-weight: 800 !important;
}

.cp-kpi-col.active .cp-kpi-value {
  color: var(--brand-orange) !important;
}

.cp-kpi-title {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: var(--text-muted) !important;
  white-space: nowrap !important;
  text-transform: uppercase !important;
  letter-spacing: 0.4px !important;
}

.cp-kpi-value {
  font-size: 17px !important;
  font-weight: 900 !important;
  color: var(--text-primary) !important;
  line-height: 1.2 !important;
  font-family: var(--font-mono) !important;
}

.cp-kpi-sub {
  font-size: 10.5px !important;
  font-weight: 600 !important;
  color: var(--text-light) !important;
  white-space: nowrap !important;
}

.cp-v-divider {
  width: 1.5px !important;
  height: 32px !important;
  color: var(--border-subtle) !important;
  stroke: var(--border-subtle) !important;
  flex-shrink: 0 !important;
  align-self: center !important;
}

/* 2. Unified Filter Bar & Search Expander */
.cp-filter-bar-desktop {
  background: var(--surface-bg) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-lg) !important;
  padding: 10px 14px !important;
  box-shadow: var(--shadow-card) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.cp-search-expanded-box {
  background: var(--canvas-bg) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: var(--radius-full) !important;
  padding: 6px 14px !important;
}

.cp-search-expanded-box input {
  color: var(--text-primary) !important;
  font-family: var(--font-sans) !important;
}

/* 3. Unified Table Styling */
.cp-table-outer {
  background: var(--surface-bg) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: var(--shadow-card) !important;
  overflow: hidden !important;
}

.cp-table-inner thead th {
  background: var(--canvas-bg) !important;
  color: var(--text-muted) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 12px 14px !important;
}

.cp-table-inner tbody tr {
  border-bottom: 1px solid var(--border-subtle) !important;
  transition: background var(--transition-smooth) !important;
}

.cp-table-inner tbody tr:hover {
  background: var(--surface-hover) !important;
}

.cp-table-inner tbody td {
  padding: 12px 14px !important;
  color: var(--text-secondary) !important;
}

/* 4. Mobile Cards & Boxes */
.sp-mob-order-box {
  background: var(--surface-bg) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: var(--shadow-card) !important;
}

/* 5. Reklam & Tanıtım / Pazarlama Cards */
.lux-card {
  background: var(--surface-bg) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: var(--shadow-card) !important;
  transition: box-shadow var(--transition-smooth) !important;
}

.lux-card:hover {
  box-shadow: var(--shadow-hover) !important;
}

.segmented-btn {
  background: var(--canvas-bg) !important;
  color: var(--text-muted) !important;
  border-radius: var(--radius-md) !important;
  font-family: var(--font-sans) !important;
  font-weight: 700 !important;
}

.segmented-btn:hover {
  color: var(--text-primary) !important;
}

.segmented-btn.active {
  background: var(--surface-bg) !important;
  color: var(--brand-orange) !important;
  box-shadow: var(--shadow-card) !important;
  border: 1px solid var(--border-subtle) !important;
}

/* 6. Tabs & Badges */
.amz-tab-active {
  color: var(--brand-orange) !important;
  border-bottom: 2.5px solid var(--brand-orange) !important;
  font-weight: 800 !important;
}

.amz-tab:hover {
  color: var(--brand-orange) !important;
  border-color: var(--brand-amber-border) !important;
}


/* ══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS (TABLET & MOBİL)
   ══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
    box-shadow: var(--shadow-dropdown);
  }

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

  .sidebar-close-mobile {
    display: block;
  }

  .mobile-hamburger {
    display: flex;
  }

  .top-bar {
    padding: 0 16px;
    height: 66px;
  }

  .content-area {
    padding: 0 16px 80px 16px;
  }

  .mobile-bottom-nav {
    display: flex;
  }
}

@media (max-width: 640px) {
  .search-pill {
    display: none !important;
  }

  .search-mobile-btn {
    display: flex !important;
  }

  .user-meta {
    display: none;
  }

  .top-bar {
    padding: 0 12px;
  }

  .greeting-title {
    font-size: 16px;
  }

  .greeting-subtitle {
    display: none;
  }

  .content-area {
    padding: 12px 12px 85px 12px !important;
  }
  .compact-20, .compact-50, .cp-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════════════
   UNIVERSAL FULL-WIDTH CONTAINER SYSTEM (SHOPLYTIC STANDARD)
   ══════════════════════════════════════════════════════════════════════════════ */
.content-area {
  flex: 1;
  width: 100%;
  padding: 20px 28px 48px 28px;
  box-sizing: border-box;
}

.compact-20, .compact-50, .cp-container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   SHOPLYTIC SAAS UNIVERSAL UI HELPERS
   ══════════════════════════════════════════════════════════════════════════════ */
.sh-card, .raks-card {
  background: var(--surface-bg) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-brand, .btn-shoplytic-primary {
  background: linear-gradient(135deg, #FF9F1C 0%, #F97316 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.28) !important;
  border-radius: 14px !important;
  font-weight: 800 !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  border: none !important;
}
.btn-brand:hover, .btn-shoplytic-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.38) !important;
  transform: translateY(-1px);
}
.btn-brand:active, .btn-shoplytic-primary:active {
  transform: scale(0.97);
}

.raks-switch input:checked + .raks-switch-slider {
  background: linear-gradient(135deg, #FF9F1C 0%, #F97316 100%) !important;
}

/* Dark mode overrides for SweetAlert2 */
html.dark .swal2-popup, html.dark .raks-swal {
  background: #111827 !important;
  color: #F9FAFB !important;
  border: 1px solid #1F2937 !important;
}
html.dark .swal2-title, html.dark .swal2-html-container {
  color: #F9FAFB !important;
}