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

:root {
  --background: 0 0% 100%;
  --foreground: 240 10% 3.9%;
  --card: 0 0% 100%;
  --card-foreground: 240 10% 3.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 240 10% 3.9%;
  --primary: 240 5.9% 10%;
  --primary-foreground: 0 0% 98%;
  --secondary: 240 4.8% 95.9%;
  --secondary-foreground: 240 5.9% 10%;
  --muted: 240 4.8% 95.9%;
  --muted-foreground: 240 3.8% 46.1%;
  --accent: 240 4.8% 95.9%;
  --accent-foreground: 240 5.9% 10%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  --border: 240 5.9% 90%;
  --ring: 240 5.9% 10%;
  --radius: 0.75rem;

  --brand-primary: #0048f7;
  --brand-primary-hover: #003ad4;
  --brand-primary-soft: rgba(0, 72, 247, 0.08);

  --accent-gradient: linear-gradient(135deg, #0048f7 0%, #0ea5e9 100%);
  --accent-glow: rgba(0, 72, 247, 0.15);
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(240, 240, 245, 0.8);
  --hero-strong: linear-gradient(135deg, #0f172a 0%, #1e293b 54%, #334155 100%);
}

[data-theme="dark"] {
  --background: 240 10% 3.9%;
  --foreground: 0 0% 98%;
  --card: 240 10% 5.9%;
  --card-foreground: 0 0% 98%;
  --popover: 240 10% 3.9%;
  --popover-foreground: 0 0% 98%;
  --primary: 0 0% 98%;
  --primary-foreground: 240 5.9% 10%;
  --secondary: 240 3.7% 15.9%;
  --secondary-foreground: 0 0% 98%;
  --muted: 240 3.7% 15.9%;
  --muted-foreground: 240 5% 64.9%;
  --accent: 240 3.7% 15.9%;
  --accent-foreground: 0 0% 98%;
  --border: 240 3.7% 15.9%;
  --ring: 240 4.9% 83.9%;

  --accent-glow: rgba(56, 189, 248, 0.15);
  --glass: rgba(9, 9, 11, 0.7);
  --glass-border: rgba(39, 39, 42, 0.8);
  --hero-strong: linear-gradient(135deg, #09090b 0%, #0f172a 50%, #1e293b 100%);
  --brand-primary-soft: rgba(0, 72, 247, 0.16);
  color-scheme: dark;
}

/* Global Reset & Base */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem; /* Accounts for the sticky header height beautifully so sections aren't cut off */
}

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

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Base Container & Structure */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Beautiful Sticky Navigation */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid hsl(var(--border));
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background-color: var(--glass);
  transition: border-color 0.3s, background-color 0.3s;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.logo-obj,
.logo-svg {
  height: 58px; /* Increased from 52px to 58px for a larger, bolder presence */
  width: auto;
  aspect-ratio: 224 / 60;
  max-width: 100%;
  pointer-events: none; /* Crucial so parent link remains clickable */
  display: block;
  background: transparent;
}

.logo-brand-text {
  fill: #0f172a;
}

.logo-brand-accent {
  fill: #0048f7;
}

.logo-sub-text {
  fill: #64748b;
}

[data-theme="dark"] .logo-brand-text {
  fill: #f8fafc;
}

[data-theme="dark"] .logo-brand-accent {
  fill: #5b8fff;
}

[data-theme="dark"] .logo-sub-text {
  fill: #94a3b8;
}

/* Identical sizing and alignments for action buttons in header */
.btn-header-action {
  min-width: 100px;
  text-align: center;
  justify-content: center;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  opacity: 0.8;
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
  transition: all 0.2s ease;
}

.nav-link:hover {
  opacity: 1;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease-out;
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.topbar-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* Reusable UI Components - Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}

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

.btn-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  border-color: hsl(var(--border));
}

.btn-secondary:hover {
  background-color: hsl(var(--accent));
  border-color: hsl(var(--border));
}

.btn-outline {
  background-color: transparent;
  color: hsl(var(--foreground));
  border-color: hsl(var(--border));
}

.btn-outline:hover {
  background-color: hsl(var(--accent));
}

.btn-ghost {
  background-color: transparent;
  color: hsl(var(--foreground));
}

.btn-ghost:hover {
  background-color: hsl(var(--accent));
}

.theme-btn-style {
  padding: 0.5rem;
  border-radius: 9999px;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-icon-svg {
  color: hsl(var(--foreground));
  transition: transform 0.3s ease;
  display: block;
}

.theme-icon-moon {
  display: none;
}

[data-theme="dark"] .theme-icon-sun {
  display: none;
}

[data-theme="dark"] .theme-icon-moon {
  display: block;
}

.theme-btn-style:hover .theme-icon-svg {
  transform: rotate(30deg);
}

.btn-danger {
  background-color: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
}

.btn-danger:hover {
  opacity: 0.9;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-glow:hover {
  box-shadow: 0 10px 25px -3px var(--accent-glow);
}

.btn-icon {
  flex-shrink: 0;
}

/* Accent Glow background layer */
.landing-ambient-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1400px;
  height: 600px;
  background-image: radial-gradient(circle at 50% -20%, rgba(0, 72, 247, 0.08) 0%, rgba(14, 165, 233, 0.04) 50%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

/* Hero Section */
.hero-section {
  padding: 5rem 0 3rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.announcement-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-gradient);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #ffffff;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.announcement-badge .sparkle {
  animation: pulse 1.5s infinite alternate;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: hsl(var(--foreground));
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 42rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
}

.hero-badges {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
}

.badge-icon {
  color: #10b981;
}

/* Phone Live Preview Mockup */
.preview-container {
  display: grid;
  place-items: center;
}

.phone-mockup {
  width: 320px;
  height: 640px;
  background-color: #09090b;
  border: 10px solid #18181b;
  border-radius: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 20px;
  background-color: #18181b;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  padding: 1.6rem 1rem 1.25rem;
  overflow-y: auto;
  background-color: #0c0b09;
  background-image:
    radial-gradient(340px 200px at 88% -6%, rgba(255, 138, 60, 0.18), transparent 60%),
    radial-gradient(320px 220px at 4% 6%, rgba(90, 120, 255, 0.16), transparent 58%),
    radial-gradient(360px 240px at 50% 108%, rgba(255, 80, 140, 0.14), transparent 62%);
  color: #f6f2ea;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.phone-screen::-webkit-scrollbar {
  display: none;
}

/* Real QR menu replica – header */
.mp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.5rem 0 1.3rem;
}

.mp-eyebrow {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a89f93;
  margin-bottom: 0.3rem;
}

.mp-title {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.025em;
  color: #f6f2ea;
}

.mp-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.mp-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(18, 15, 11, 0.7);
  color: #f6f2ea;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Category grid */
.mp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.mp-cat {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 36px -22px rgba(0, 0, 0, 0.9);
}

.mp-cat-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

.mp-cat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 4%, rgba(0,0,0,0.28) 42%, rgba(0,0,0,0) 68%);
  z-index: 1;
}

/* Food-like photo tones (no external assets) */
.mp-cat-1 { background-image: radial-gradient(120% 85% at 28% 18%, rgba(255,224,160,0.55), transparent 60%), linear-gradient(150deg, #6f3711, #d1782b 55%, #f2b45c); }
.mp-cat-2 { background-image: radial-gradient(120% 85% at 28% 18%, rgba(210,255,190,0.5), transparent 60%), linear-gradient(150deg, #234f2c, #4f9d55 60%, #a7d98a); }
.mp-cat-3 { background-image: radial-gradient(120% 85% at 28% 18%, rgba(190,220,255,0.5), transparent 60%), linear-gradient(150deg, #22344f, #3f6f9e 60%, #86b7e0); }
.mp-cat-4 { background-image: radial-gradient(120% 85% at 28% 18%, rgba(255,200,215,0.5), transparent 60%), linear-gradient(150deg, #5f1f2b, #b23a4a 55%, #e08a97); }

.mp-cat-count {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.92);
  color: #17130d;
}

.mp-cat-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0.6rem 0.65rem 0.7rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.4rem;
}

.mp-cat-name {
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.mp-cat-arrow {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.mp-footer {
  margin-top: 1.3rem;
  text-align: center;
  font-size: 0.62rem;
  color: #a89f93;
}

.mp-footer strong { color: #f6f2ea; font-weight: 700; }

/* Sections styling */
.section-container {
  padding: 5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header-centered {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: hsl(var(--foreground));
}

.section-subtitle {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
}

/* Bento Grid — tidy equal cards */
.features-section {
  position: relative;
}

.features-section::before {
  content: '';
  position: absolute;
  inset: 0 -10vw auto;
  height: 36%;
  background:
    radial-gradient(ellipse 50% 80% at 15% 0%, rgba(0, 72, 247, 0.06), transparent 70%),
    radial-gradient(ellipse 40% 60% at 85% 10%, rgba(14, 165, 233, 0.05), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.features-section > * {
  position: relative;
  z-index: 1;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  align-items: stretch;
}

.bento-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.25s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.bento-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 72, 247, 0.28);
  box-shadow: 0 14px 32px -16px rgba(0, 72, 247, 0.28);
}

.bento-media {
  position: relative;
  flex: 0 0 auto;
  height: 148px;
  overflow: hidden;
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
}

.bento-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.05rem 1.15rem 1.2rem;
  flex: 1 1 auto;
}

.bento-card h3 {
  font-size: 1.02rem;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin: 0;
}

.bento-card p {
  color: hsl(var(--muted-foreground));
  font-size: 0.86rem;
  line-height: 1.45;
  margin: 0;
}

.bento-icon-box,
.bento-icon {
  display: none;
}

/* Mosaic 2x2 */
.bento-media--mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  padding: 3px;
  background: #0b1220;
  height: 148px;
}

.bento-media--mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.bento-card:hover .bento-media--mosaic img {
  transform: scale(1.06);
}

.bento-media-chip {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  font-size: 0.65rem;
  font-weight: 750;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Survey */
.bento-media--survey {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1rem;
  background:
    radial-gradient(circle at 30% 20%, rgba(251, 191, 36, 0.22), transparent 50%),
    linear-gradient(160deg, #0f172a, #1e293b);
}

.bv-survey {
  width: 100%;
  max-width: 200px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.85rem;
  padding: 0.75rem 0.85rem;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.bv-survey-label {
  font-size: 0.7rem;
  color: rgba(248, 250, 252, 0.7);
}

.bv-stars {
  display: flex;
  gap: 0.22rem;
}

.bv-stars span {
  width: 0.95rem;
  height: 0.95rem;
  background: #fbbf24;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.bv-stars span.is-dim { opacity: 0.28; }

.bv-survey-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.bv-survey-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.bv-survey-score {
  font-size: 0.85rem;
  font-weight: 800;
}

/* Languages */
.bento-media--langs {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1rem;
  background:
    radial-gradient(circle at 70% 30%, rgba(0, 72, 247, 0.3), transparent 55%),
    linear-gradient(145deg, #0b1220, #172554);
}

.bv-langs {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
  max-width: 190px;
}

.bv-lang {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.7rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 650;
}

.bv-lang.is-active {
  background: #fff;
  color: #0f172a;
  border-color: transparent;
}

/* Wheel */
.bento-media--wheel {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(14, 165, 233, 0.18), transparent 55%),
    linear-gradient(160deg, #020617, #0f172a 60%, #1e3a5f);
}

.bv-wheel-stage {
  position: relative;
  width: 108px;
  height: 108px;
}

.bv-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 4px rgba(0, 72, 247, 0.22), 0 10px 24px rgba(0, 0, 0, 0.3);
  background: conic-gradient(
    #0048f7 0deg 60deg,
    #0ea5e9 60deg 120deg,
    #22c55e 120deg 180deg,
    #f59e0b 180deg 240deg,
    #ef4444 240deg 300deg,
    #6366f1 300deg 360deg
  );
  animation: bv-spin 14s linear infinite;
}

.bv-wheel-pin {
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 12px solid #fff;
  z-index: 2;
}

.bv-wheel-prize {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0f172a;
  border: 2px solid #fff;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes bv-spin {
  to { transform: rotate(360deg); }
}

/* Campaign */
.bento-media--campaign img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.bento-card:hover .bento-media--campaign img {
  transform: scale(1.06);
}

.bento-media--campaign::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.78));
}

.bv-campaign-copy {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.75rem;
  z-index: 1;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.bv-campaign-tag {
  align-self: flex-start;
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: var(--brand-primary);
}

.bv-campaign-copy strong {
  font-size: 0.9rem;
  letter-spacing: -0.02em;
}

.bv-campaign-copy em {
  font-style: normal;
  font-size: 0.7rem;
  opacity: 0.8;
}

/* Branches */
.bento-media--branches {
  padding: 0.85rem;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 16px, rgba(255,255,255,0.035) 16px, rgba(255,255,255,0.035) 17px),
    repeating-linear-gradient(90deg, transparent, transparent 16px, rgba(255,255,255,0.035) 16px, rgba(255,255,255,0.035) 17px),
    linear-gradient(160deg, #0f172a, #1e293b);
}

.bv-map {
  position: relative;
  height: 100%;
  min-height: 116px;
}

.bv-pin {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: #0ea5e9;
  box-shadow: 0 0 0 5px rgba(14, 165, 233, 0.18);
  animation: bv-pin-pulse 2.4s ease-in-out infinite;
}

.bv-pin-1 { top: 22%; left: 20%; }
.bv-pin-2 { top: 38%; left: 55%; background: #0048f7; box-shadow: 0 0 0 5px rgba(0, 72, 247, 0.22); animation-delay: 0.4s; }
.bv-pin-3 { top: 58%; left: 34%; animation-delay: 0.8s; }

.bv-branch-list {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.bv-branch-list span {
  padding: 0.28rem 0.5rem;
  border-radius: 0.45rem;
  font-size: 0.65rem;
  font-weight: 650;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bv-branch-list span.is-on {
  background: #fff;
  color: #0f172a;
}

@keyframes bv-pin-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12); }
  50% { box-shadow: 0 0 0 8px rgba(14, 165, 233, 0.06); }
}

/* Google */
.bento-media--google {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
  background: linear-gradient(145deg, #111827, #1f2937);
}

.bv-google {
  width: 100%;
  max-width: 200px;
  background: #fff;
  color: #111827;
  border-radius: 0.85rem;
  padding: 0.7rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.bv-g-logo {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0);
  color: #fff;
  font-weight: 800;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 2px #fff;
}

.bv-g-stars {
  color: #f59e0b;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
}

.bv-google p {
  color: #4b5563 !important;
  font-size: 0.72rem !important;
  font-style: italic;
  margin: 0;
  line-height: 1.3 !important;
}

.bv-g-cta {
  margin-top: 0.15rem;
  font-size: 0.65rem;
  font-weight: 750;
  color: #0048f7;
}

/* Analytics */
.bento-media--analytics {
  display: flex;
  align-items: center;
  padding: 0.85rem 1rem;
  background:
    radial-gradient(circle at 80% 20%, rgba(0, 72, 247, 0.28), transparent 45%),
    linear-gradient(160deg, #020617, #0f172a);
}

.bv-analytics {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: end;
}

.bv-stat {
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.bv-stat strong {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.bv-stat span {
  font-size: 0.58rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bv-stat--accent strong { color: #38bdf8; }

.bv-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.28rem;
  height: 72px;
}

.bv-bars i {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #38bdf8, #0048f7);
  opacity: 0.9;
  transform-origin: bottom;
  animation: bv-bar-rise 1.1s ease both;
}

.bv-bars i:nth-child(odd) { animation-delay: 0.06s; }
.bv-bars i:nth-child(even) { animation-delay: 0.14s; }

@keyframes bv-bar-rise {
  from { transform: scaleY(0.25); opacity: 0.35; }
  to { transform: scaleY(1); opacity: 0.9; }
}

/* Hub */
.bento-media--hub {
  background: #0b1220;
}

.bv-hub-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.42);
  transition: transform 0.6s ease;
}

.bento-card:hover .bv-hub-bg {
  transform: scale(1.06);
}

.bv-hub-phone {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(170px, 78%);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 0;
  border-radius: 0.85rem 0.85rem 0 0;
  padding: 0.65rem 0.6rem 0.75rem;
  color: #fff;
}

.bv-hub-brand {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
  text-align: center;
}

.bv-hub-actions {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.bv-hub-actions span {
  display: block;
  text-align: center;
  padding: 0.35rem 0.45rem;
  border-radius: 0.45rem;
  font-size: 0.65rem;
  font-weight: 650;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bv-hub-actions span:first-child {
  background: var(--brand-primary);
  border-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .bv-wheel,
  .bv-bars i,
  .bv-pin {
    animation: none !important;
  }
}

@media (max-width: 960px) {
  .bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-media {
    height: 140px;
  }
}

/* Beautiful Steps Workflow Section */
.steps-section {
  background: 
    radial-gradient(circle at 15% 85%, rgba(0, 72, 247, 0.14) 0%, transparent 55%),
    radial-gradient(circle at 85% 15%, rgba(14, 165, 233, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, hsl(var(--secondary)) 0%, color-mix(in srgb, var(--accent) 4%, hsl(var(--background))) 100%);
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
  padding: 6rem 1.5rem;
  position: relative;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  position: relative;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-item:hover {
  transform: translateY(-4px);
  border-color: #0048f7;
  box-shadow: 0 12px 30px -10px var(--accent-glow);
}

.step-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: var(--accent-gradient);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.step-item h4 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
}

.step-item p {
  color: hsl(var(--muted-foreground));
  font-size: 0.925rem;
  line-height: 1.6;
}

/* Premium Pricing Section Layout */
.pricing-deck {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.pricing-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) * 1.5);
  padding: 3rem 2.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Beautiful Subtle Color Themes for Each Package Card */
.package-starter {
  background: linear-gradient(180deg, hsl(var(--card)) 50%, color-mix(in srgb, #64748b 4%, hsl(var(--card))) 100%);
}

.package-pro {
  background: linear-gradient(180deg, hsl(var(--card)) 50%, color-mix(in srgb, #0048f7 6%, hsl(var(--card))) 100%);
  border-color: rgba(0, 72, 247, 0.3);
}

.package-pro .package-name {
  color: #003ad4;
  background: linear-gradient(135deg, #0048f7 0%, #003ad4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.package-pro .check-icon {
  color: #0048f7;
}

.package-premium {
  background: linear-gradient(180deg, hsl(var(--card)) 50%, color-mix(in srgb, #0ea5e9 6%, hsl(var(--card))) 100%);
  border-color: rgba(14, 165, 233, 0.3);
}

.package-premium .package-name {
  color: #0ea5e9;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.package-premium .check-icon {
  color: #0ea5e9;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
}

.pricing-card.recommended {
  border-color: #0048f7;
  box-shadow: 0 20px 45px -15px rgba(0, 72, 247, 0.2);
}

.recommended-badge {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  background-color: #e0e7ff;
  color: #003ad4;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.package-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.price-box {
  margin-top: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
}

.price-value {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price-currency {
  font-size: 1.5rem;
  font-weight: 700;
}

.price-period {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-left: 0.25rem;
}

.package-divider {
  height: 1px;
  background-color: hsl(var(--border));
  margin: 1.5rem 0;
}

.package-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
  flex-grow: 1; /* Pushes the button to the absolute bottom of each card, ensuring perfect horizontal alignment */
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.check-icon {
  color: #10b981;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.feature-text {
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.4;
}

/* High-End Testimonials Slider Styling */
.testimonials-slider-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.testimonials-viewport {
  overflow: hidden;
  width: 100%;
}

.testimonials-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.testimonial-slide {
  flex: 0 0 100%;
  width: 100%;
  padding: 0.5rem;
}

.testimonial-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04);
}

.testimonial-stars {
  color: #f59e0b;
  letter-spacing: 0.15em;
  font-size: 1.1rem;
}

.testimonial-quote {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.7;
  font-style: italic;
  color: hsl(var(--foreground));
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-top: 1px solid hsl(var(--border));
  padding-top: 1rem;
}

.author-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.author-title {
  font-size: 0.825rem;
  color: hsl(var(--muted-foreground));
}

/* Slider Controls */
.slider-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
  z-index: 10;
}

.slider-btn:hover {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  transform: scale(1.05);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.slider-dots .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: hsl(var(--border));
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-dots .dot.active {
  background: var(--accent-gradient);
  width: 1.5rem;
}

/* Trust Strip Section Layout */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.trust-item strong {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.trust-item span {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
}

/* Elegant Action CTA card */
.action-cta-card {
  background: var(--accent-gradient); /* Use our signature vibrant blue/indigo gradient as requested */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: calc(var(--radius) * 1.5);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  overflow: hidden;
  box-shadow: 0 20px 45px var(--accent-glow);
  color: #ffffff;
  position: relative;
  isolation: isolate;
}

.action-cta-card::before {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%);
  left: -50px;
  top: -50px;
  z-index: -1;
  pointer-events: none;
}

.cta-inner-content {
  padding: 4rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}

.cta-inner-content h2 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.cta-inner-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
}

.cta-inner-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* Beautiful solid white button with black text for the primary call-to-action */
.action-cta-card .btn-primary {
  background-color: #ffffff !important;
  color: #0f172a !important; /* Rich black text */
  border-color: #ffffff !important;
  font-weight: 700 !important;
}

.action-cta-card .btn-primary:hover {
  opacity: 0.92 !important;
  transform: translateY(-1.5px);
  box-shadow: 0 10px 25px -3px rgba(255, 255, 255, 0.25) !important;
}

.text-white-outline {
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
}

.text-white-outline:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
}

.cta-contact-box {
  background-color: rgba(0, 0, 0, 0.12); /* Subtle dark overlay on top of our signature blue gradient */
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.cta-contact-box h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.cta-contact-box p {
  font-size: 0.875rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.contact-links-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.contact-link-item.contact-item-white {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}

.contact-link-item.contact-item-white:hover {
  opacity: 0.85;
  text-decoration: underline;
}

/* Beautiful Professional Footer Styling */
.app-footer {
  background-color: hsl(var(--card));
  border-top: 1px solid hsl(var(--border));
  padding-top: 5rem;
  margin-top: 5rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 0.75fr 1fr;
  gap: 3.5rem;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  display: inline-flex;
}

.footer-logo-obj,
.footer-logo-obj.logo-svg {
  height: 52px; /* Increased from 44px to 52px */
  width: auto;
  aspect-ratio: 224 / 60;
  pointer-events: none;
  display: block;
}

.footer-desc {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 32ch;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background-color: hsl(var(--secondary));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
  transition: all 0.2s ease;
}

.social-link:hover {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  transform: translateY(-1.5px);
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-links-col h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  letter-spacing: -0.01em;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-list a {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s ease;
}

.footer-list a:hover {
  color: hsl(var(--foreground));
}

.contact-list-footer {
  gap: 1rem !important;
}

.contact-list-footer li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.contact-list-footer li svg {
  color: hsl(var(--foreground));
  flex-shrink: 0;
}

.contact-list-footer li a {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
}

.contact-list-footer li a:hover {
  color: hsl(var(--foreground));
  text-decoration: underline;
}

.footer-bottom-bar {
  border-top: 1px solid hsl(var(--border));
  padding: 1.5rem 0;
  background-color: hsl(var(--secondary));
}

.footer-bottom-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

.built-by-link {
  font-weight: 700;
  color: hsl(var(--foreground));
  text-decoration: none;
}

.built-by-link:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-bottom-container {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

/* Beautiful Elegant Legal Pages Styling */
.legal-page {
  max-width: 800px;
  margin: 4rem auto;
  padding: 3.5rem 3rem;
  border-radius: calc(var(--radius) * 1.5);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
}

.legal-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  border-bottom: 1px solid hsl(var(--border));
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
}

.legal-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: hsl(var(--foreground));
  line-height: 1.2;
}

.legal-subtitle {
  font-size: 1.1rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.legal-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.legal-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: hsl(var(--foreground));
}

.legal-section p {
  font-size: 0.975rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
}

.legal-bullets {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-left: 0.5rem;
  margin-top: 0.5rem;
}

.legal-bullets li {
  font-size: 0.975rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  position: relative;
  padding-left: 1.5rem;
}

.legal-bullets li::before {
  content: "•";
  color: #0048f7; /* Brand Indigo */
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: -0.3rem;
  line-height: 1;
}

.legal-bullets code {
  background-color: hsl(var(--secondary));
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.875rem;
}

@media (max-width: 640px) {
  .legal-page {
    padding: 2.25rem 1.5rem;
    margin: 2rem auto;
  }
  .legal-title {
    font-size: 2rem;
  }
}

/* Dashboard Forms Layout */
.form-grid {
  display: grid;
  gap: 1rem;
}

.form-grid.inline {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

input, select {
  background-color: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  border-radius: var(--radius);
  padding: 0.65rem 0.85rem;
  font-size: 0.875rem;
  outline: none;
  transition: all 0.2s ease;
}

input:focus, select:focus {
  border-color: hsl(var(--ring));
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.narrow {
  max-width: 480px;
  margin: 4rem auto;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Simple Responsive Table Styling */
.table-wrap {
  overflow-x: auto;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background-color: hsl(var(--card));
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

th {
  background-color: hsl(var(--secondary));
  color: hsl(var(--foreground));
  font-weight: 700;
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid hsl(var(--border));
}

td {
  padding: 1rem;
  border-bottom: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
}

/* Toast Notifications (Shadcn style) */
#toast-root {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 9999; /* Ensure it is on top of everything */
}

.toast {
  background-color: hsl(var(--card));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 0.85rem 1.25rem;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 320px;
  max-width: 420px;
  backdrop-filter: blur(8px);
  animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.toast-success {
  border-left: 4px solid #10b981;
}

.toast-success::before {
  content: "";
  display: inline-block;
  width: 1rem;
  height: 1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.toast-error {
  border-left: 4px solid #ef4444;
}

.toast-error::before {
  content: "";
  display: inline-block;
  width: 1rem;
  height: 1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='15' y1='9' x2='9' y2='15'%3E%3C/line%3E%3Cline x1='9' y1='9' x2='15' y2='15'%3E%3C/line%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.toast-info {
  border-left: 4px solid #0ea5e9;
}

.toast-info::before {
  content: "";
  display: inline-block;
  width: 1rem;
  height: 1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230ea5e9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='16' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'%3E%3C/line%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

/* Modals */
dialog {
  margin: auto;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background-color: hsl(var(--card));
  color: hsl(var(--foreground));
  padding: 2rem;
  max-width: 400px;
  width: calc(100% - 2rem);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px); /* Enhanced blur from 4px to 8px for an absolute premium backdrop */
}

/* Beautiful Shadcn Style Confirm Dialog Override */
.confirm-dialog {
  max-width: 440px !important;
  border-radius: calc(var(--radius) * 1.5) !important;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.2) !important;
  border: 1px solid hsl(var(--border)) !important;
  padding: 1.75rem !important;
  overflow: hidden;
}

.confirm-dialog-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.confirm-dialog-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.confirm-dialog-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  background-color: rgba(239, 68, 68, 0.08); /* Destructive soft background */
  color: #ef4444; /* Alert red */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.05);
}

.confirm-dialog-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: hsl(var(--foreground));
}

.confirm-dialog-desc {
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
  margin-bottom: 0 !important;
}

.confirm-dialog-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  border-top: 1px solid hsl(var(--border));
  padding-top: 1.25rem;
}

.confirm-dialog-footer .btn {
  padding: 0.65rem 1rem !important;
  font-weight: 700;
  font-size: 0.875rem !important;
  border-radius: var(--radius);
  justify-content: center;
}

#confirm-message {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.15); opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Globally hide mobile drawer overlay on desktop */
.mobile-drawer-overlay {
  display: none;
}

/* Media Queries & Responsive Refinement */
.mobile-menu-btn {
  display: none !important;
}

@media (max-width: 1024px) {
  .topbar-nav {
    display: none;
  }

  .header-desktop-only {
    display: none !important;
  }

  .mobile-menu-btn {
    display: inline-flex !important;
    padding: 0.5rem;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
  }

  /* Beautiful Drawer CSS */
  .mobile-drawer-overlay {
    display: block !important; /* Expose drawer structure on mobile viewports */
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .mobile-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-drawer-content {
    position: absolute;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: hsl(var(--card));
    border-left: 1px solid hsl(var(--border));
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .mobile-drawer-overlay.active .mobile-drawer-content {
    right: 0;
  }

  .drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid hsl(var(--border));
    padding-bottom: 1rem;
  }

  .drawer-logo {
    height: 46px; /* Increased from 38px to 46px */
    width: auto;
    aspect-ratio: 224 / 60;
  }

  .close-drawer-btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .drawer-link {
    font-size: 1.05rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    text-decoration: none;
    transition: color 0.15s ease;
  }

  .drawer-link:hover {
    color: #0048f7;
  }

  .drawer-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-top: 1px solid hsl(var(--border));
    padding-top: 1.5rem;
  }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
    padding-top: 3rem;
  }

  .hero-container {
    align-items: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-badges {
    justify-content: center;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .col-span-2 {
    grid-column: span 1;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pricing-deck {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .slider-btn {
    display: none;
  }

  .action-cta-card {
    grid-template-columns: 1fr;
  }

  .cta-contact-box {
    border-left: none;
    border-top: 1px solid hsl(var(--border));
    padding: 3rem 2rem;
  }

  .cta-inner-content {
    padding: 3rem 2rem;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 0.75rem 1rem;
  }

  /* Scale down logo and ensure perfect containment on mobile */
  .logo-obj {
    height: 48px; /* Increased from 42px to 48px */
    width: auto;
    aspect-ratio: 224 / 60;
  }

  .trust-strip {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-section {
    padding-top: 2rem;
  }

  /* Make CTA action buttons stack with identical 100% width on mobile */
  .cta-inner-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .cta-inner-actions .btn {
    width: 100% !important;
    text-align: center;
    justify-content: center;
  }
}

/* Auth Pages Premium Styling */
.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 12rem); /* Keep footer visible but let form take central focus */
  padding: 3.5rem 1.5rem;
  position: relative;
}

/* Beautiful decorative glow spheres in the background */
.auth-ambient-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  border-radius: 9999px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.8;
}

.auth-ambient-glow.top-left {
  top: -100px;
  left: -100px;
}

.auth-ambient-glow.bottom-right {
  bottom: -150px;
  right: -100px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) * 1.5);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05);
  padding: 3rem 2.5rem;
  position: relative;
  z-index: 10;
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 72, 247, 0.1);
}

.auth-header {
  text-align: center;
  margin-bottom: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: hsl(var(--foreground));
  line-height: 1.25;
}

.auth-subtitle {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.auth-label {
  font-size: 0.825rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  text-align: left;
  display: block;
}

/* ===== Çok dilli içerik giriş bloğu ===== */
.i18n-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
  text-align: left;
  margin-top: 0.35rem;
  padding: 0.9rem 1rem;
  border: 1px dashed hsl(var(--border));
  border-radius: var(--radius);
  background-color: hsl(var(--secondary) / 0.4);
}
.i18n-block-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: hsl(var(--muted-foreground));
}
.i18n-block-head-title {
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.i18n-block-head-hint {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 0.68rem;
}
.i18n-block-head span {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}
.i18n-field.auth-field-group {
  align-items: stretch;
  text-align: left;
}
.i18n-field .auth-label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
}
.i18n-label-text {
  line-height: 1.3;
}
.i18n-flag {
  display: inline-flex;
  width: 20px;
  height: 14px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}
.i18n-flag svg,
.i18n-flag .menu-lang-flag {
  display: block;
  width: 100%;
  height: 100%;
}

.auth-input, .auth-select {
  background-color: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  outline: none;
  width: 100%;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-input:hover, .auth-select:hover {
  border-color: hsl(var(--border));
}

.auth-input:focus, .auth-select:focus {
  border-color: #0ea5e9; /* Blue accent color */
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
  background-color: hsl(var(--card));
}

.auth-submit-btn {
  width: 100%;
  padding: 0.8rem 1.25rem;
  background: linear-gradient(135deg, #0ea5e9 0%, #0048f7 100%);
  color: #ffffff !important;
  font-size: 0.925rem;
  font-weight: 700;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px var(--accent-glow);
  margin-top: 0.5rem;
}

.auth-submit-btn:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 10px 22px -5px rgba(0, 72, 247, 0.35);
  opacity: 0.95;
}

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

.auth-footer {
  margin-top: 1.75rem;
  text-align: center;
  font-size: 0.825rem;
  color: hsl(var(--muted-foreground));
  border-top: 1px solid hsl(var(--border));
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.auth-link {
  color: #0ea5e9;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.15s ease;
}

.auth-link:hover {
  color: #0048f7;
  text-decoration: underline;
}

.auth-forgot-row {
  display: flex;
  justify-content: flex-end;
  margin: -0.35rem 0 0.35rem;
}

.auth-forgot-row .auth-link {
  font-size: 0.82rem;
  font-weight: 650;
}

/* Specific styling adjustments for multi-column structures or selects if needed */
.auth-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' 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 1rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

/* Custom Elegant Checkbox Styles for Auth Pages - Minimalist Version */
.checkbox-group {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 0.4rem;
}

.checkbox-item {
  display: flex !important;
  flex-direction: row !important; /* Force override any global label rule */
  align-items: center !important;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: opacity 0.2s ease;
}

.checkbox-item.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.checkbox-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-custom {
  position: relative;
  height: 1.05rem;
  width: 1.05rem;
  background-color: hsl(var(--background));
  border: 1.5px solid hsl(var(--border));
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.checkbox-item:hover:not(.disabled) .checkbox-custom {
  border-color: var(--brand-primary);
}

.checkbox-item.checked:not(.disabled) .checkbox-custom {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.checkbox-item.disabled .checkbox-custom {
  background-color: hsl(var(--secondary));
  border-color: hsl(var(--border));
}

.checkbox-item.disabled.checked .checkbox-custom {
  background-color: hsl(var(--muted-foreground));
  border-color: hsl(var(--muted-foreground));
}

.checkbox-custom::after {
  content: "";
  position: absolute;
  display: none;
  width: 3.5px;
  height: 7px;
  border: solid white;
  border-width: 0 1.75px 1.75px 0;
  transform: rotate(45deg);
  margin-top: -1.5px;
}

.checkbox-item.checked .checkbox-custom::after {
  display: block;
}

.checkbox-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s ease, font-weight 0.2s ease;
}

.checkbox-item.checked .checkbox-text {
  color: hsl(var(--foreground));
  font-weight: 600;
}

/* Shadcn Switch Component (Toggle Switch) */
.switch {
  position: relative;
  display: inline-block !important;
  width: 2.25rem !important;
  height: 1.35rem !important;
  flex-shrink: 0;
  cursor: pointer;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.slider-switch {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: hsl(var(--secondary));
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 9999px;
  border: 1px solid hsl(var(--border));
}

.slider-switch:before {
  position: absolute;
  content: "";
  height: 1rem;
  width: 1rem;
  left: 2px;
  bottom: 1.5px;
  background-color: #ffffff;
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* Checked state */
input:checked + .slider-switch {
  background-color: #10b981 !important; /* Success Green color */
  border-color: #10b981 !important;
}

input:checked + .slider-switch:before {
  transform: translateX(0.85rem);
}

/* Focus outline */
input:focus-visible + .slider-switch {
  outline: 2px solid #0048f7;
  outline-offset: 2px;
}


@media (max-width: 640px) {
  .auth-container {
    padding: 2rem 1rem;
  }
  .auth-card {
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
  }
}

/* Admin Panel Premium Styling */
.admin-container {
  padding: 3rem 0;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.admin-page-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  border-bottom: none;
  padding-bottom: 0;
}

.admin-page-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: hsl(var(--foreground));
}

.admin-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  white-space: nowrap; /* Prevent ugly button text wrapping */
  flex-shrink: 0;
}

.admin-page-subtitle {
  font-size: 0.925rem;
  color: hsl(var(--muted-foreground));
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.05);
}

.stat-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: calc(var(--radius) * 0.75);
  background-color: hsl(var(--secondary));
  color: #0048f7; /* Indigo accent */
}

.stat-icon-wrapper.blue {
  color: #0ea5e9;
  background-color: rgba(14, 165, 233, 0.06);
}

.stat-icon-wrapper.green {
  color: #10b981;
  background-color: rgba(16, 185, 129, 0.06);
}

.stat-icon-wrapper.purple {
  color: var(--brand-primary);
  background-color: var(--brand-primary-soft);
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
  line-height: 1.2;
  margin-top: 0.25rem;
}

/* Beautiful Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.status-badge.active {
  background-color: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.inactive {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-badge.payment-pending {
  background-color: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-badge.payment-none {
  background-color: rgba(100, 116, 139, 0.1);
  color: #64748b;
  border: 1px solid rgba(100, 116, 139, 0.2);
}

/* Action button row layout inside table */
.actions-cell-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Modern admin table controls overrides */
.admin-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 4px 20px -8px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-bottom: 1px solid hsl(var(--border));
  padding-bottom: 1rem;
}

.admin-card-title {
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.015em;
  color: hsl(var(--foreground));
}

.admin-card-subtitle {
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
}

/* Edit user dialog overrides */
.edit-user-dialog {
  max-width: 480px !important;
  border-radius: calc(var(--radius) * 1.5) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
  border: 1px solid hsl(var(--border)) !important;
}

.edit-dialog-header {
  margin-bottom: 1.5rem;
  text-align: left !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
}

.edit-dialog-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
  text-align: left !important;
}

.edit-dialog-subtitle {
  font-size: 0.825rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
  text-align: left !important;
}

.edit-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
  border-top: 1px solid hsl(var(--border));
  padding-top: 1rem;
}

/* Responsive clean grid for forms in modal */
.form-grid-modal {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

/* ==========================================================================
   DEDICATED DASHBOARD & ADMIN PANEL STYLING (SHADCN INSPIRATION)
   ========================================================================== */

.dashboard-body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  overflow-x: hidden;
  min-height: 100vh;
}

.dashboard-layout-wrapper {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Sidebar Styling */
.dashboard-sidebar {
  width: 260px;
  background-color: hsl(var(--card));
  border-right: 1px solid hsl(var(--border));
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-brand-area {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
}

.sidebar-logo-obj {
  height: 46px; /* Increased from 38px to 46px */
  width: auto;
  aspect-ratio: 224 / 60;
  pointer-events: none;
  display: block;
}

.sidebar-close-mobile-only {
  display: none;
  padding: 0.4rem;
}

.sidebar-nav-menu {
  flex-grow: 1;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
}

.menu-section-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: hsl(var(--muted-foreground));
  padding: 0.75rem 0.5rem 0.35rem;
  text-transform: uppercase;
}

.sidebar-menu-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.75rem;
  border-radius: var(--radius);
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.sidebar-badge {
  margin-left: auto;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  background: #ef4444;
}
.sidebar-badge[hidden] { display: none !important; }
.sidebar-menu-link.active .sidebar-badge {
  background: #ef4444;
  color: #fff;
}

.sidebar-menu-link:hover {
  background-color: hsl(var(--secondary));
  color: hsl(var(--foreground));
}

.sidebar-menu-link.active {
  background-color: hsl(var(--secondary));
  color: #0048f7; /* Brand Indigo */
  border-color: rgba(0, 72, 247, 0.1);
}

[data-theme="dark"] .sidebar-menu-link.active {
  color: #ffffff !important; /* Make white in dark mode as requested */
}

/* Collapsible sidebar submenu (e.g. Ürün Yönetimi) */
.sidebar-submenu {
  display: flex;
  flex-direction: column;
}
.sidebar-submenu > summary {
  list-style: none;
  cursor: pointer;
}
.sidebar-submenu > summary::-webkit-details-marker { display: none; }
.submenu-chevron {
  margin-left: auto;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.sidebar-submenu[open] > summary .submenu-chevron { transform: rotate(90deg); }

.sidebar-submenu-items {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.25rem 0 0.15rem 1.35rem;
  margin-left: 0.55rem;
  border-left: 1px solid hsl(var(--border));
}
.sidebar-sublink {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius);
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.sidebar-sublink:hover {
  background-color: hsl(var(--secondary));
  color: hsl(var(--foreground));
}
.sidebar-sublink.active {
  background-color: hsl(var(--secondary));
  color: #0048f7;
}
[data-theme="dark"] .sidebar-sublink.active {
  color: #ffffff !important;
}

.sidebar-menu-logout-wrapper {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--border));
}

.btn-logout-sidebar {
  background: none;
  border: none;
  width: 100%;
  cursor: pointer;
  text-align: left;
}

.btn-logout-sidebar:hover {
  background-color: rgba(239, 68, 68, 0.05);
  color: #ef4444;
}

/* Backdrop Overlay for mobile */
.sidebar-mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 95;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.sidebar-mobile-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Main Area Container */
.dashboard-main-area {
  flex-grow: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: hsl(var(--background)); /* Pure clean background for elegant minimalist dark mode */
  overflow-x: hidden; /* Prevent horizontal scrolling entirely */
}

/* Header bar */
.dashboard-top-header {
  height: 70px;
  background-color: hsl(var(--card));
  border-bottom: 1px solid hsl(var(--border));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 40;
}

.top-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sidebar-toggle-btn {
  display: none;
}

.dashboard-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.breadcrumb-root {
  color: hsl(var(--muted-foreground));
  font-weight: 500;
}

.breadcrumb-slash {
  color: hsl(var(--border));
}

.breadcrumb-current {
  color: hsl(var(--foreground));
  font-weight: 700;
}

.top-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-divider-line {
  width: 1px;
  height: 1.5rem;
  background-color: hsl(var(--border));
}

.header-user-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.user-avatar-circle {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #0ea5e9 0%, #0048f7 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.875rem;
  box-shadow: 0 4px 10px rgba(0, 72, 247, 0.2);
}

.user-meta-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.meta-username {
  font-size: 0.85rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.meta-role-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-top: 0.15rem;
  text-transform: uppercase;
}

.meta-role-badge.admin-tag {
  color: #10b981;
}

.meta-role-badge.user-tag {
  color: #0ea5e9;
}

/* Page View Padding Inside Dashboard */
.dashboard-page-view-container {
  padding: 2.5rem;
  flex-grow: 1;
}

@media (max-width: 1400px) {
  .dashboard-page-view-container {
    padding: 1.5rem; /* Slightly more compact on laptops and tablets to maximize workspace */
  }
}

/* Responsiveness overrides for panels */
@media (max-width: 1024px) {
  .dashboard-sidebar {
    transform: translateX(-100%);
  }

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

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

  .dashboard-main-area {
    margin-left: 0;
  }

  .sidebar-close-mobile-only {
    display: flex;
  }

  .sidebar-toggle-btn {
    display: flex;
  }

  .dashboard-page-view-container {
    padding: 1rem; /* Compact padding on mobile */
  }

  /* Make tables responsive inside card on mobile */
  .table-wrap {
    margin: 0;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
  }

  td, th {
    padding: 0.75rem 1rem !important; /* Compact table columns for mobile */
  }

  /* Compact padding for cards on mobile */
  .admin-card {
    padding: 1.25rem 1rem !important;
  }

  .admin-card-header {
    padding: 1rem 1rem !important;
  }
}

@media (max-width: 640px) {
  .dashboard-top-header {
    padding: 0 1rem;
  }

  .dashboard-breadcrumb {
    display: none; /* Hide breadcrumbs on narrow screens to prevent overlap */
  }

  .header-user-badge .user-meta-info {
    display: none; /* Hide textual username on tiny mobile headers, keep avatar */
  }

  /* Stack admin header elements and button vertically on mobile to prevent squishing */
  .admin-page-header {
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: left !important;
    gap: 1rem !important;
  }

  .admin-header-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.9rem !important;
  }
}

/* Premium Minimalist Table Actions */
.table-action-edit {
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  color: hsl(var(--foreground));
  font-size: 0.75rem !important;
  font-weight: 700;
  padding: 0.4rem 0.75rem !important;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: calc(var(--radius) * 0.75);
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.table-action-edit:hover {
  background-color: hsl(var(--secondary));
  border-color: hsl(var(--border));
  color: #0048f7; /* Brand Indigo */
  transform: translateY(-1px);
}

.table-action-delete {
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  color: #ef4444; /* Clean Red color */
  font-size: 0.75rem !important;
  font-weight: 700;
  padding: 0.4rem 0.75rem !important;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: calc(var(--radius) * 0.75);
  transition: all 0.2s ease;
  cursor: pointer;
}

.table-action-delete:hover {
  background-color: rgba(239, 68, 68, 0.05); /* Soft red background */
  border-color: rgba(239, 68, 68, 0.3);
  color: #dc2626; /* Darker red */
  transform: translateY(-1px);
}

/* ==========================================================================
   ADMIN PANEL — Minimal dark sidebar (distinct from business dashboard)
   ========================================================================== */

.admin-panel {
  --admin-sidebar-w: 252px;
  --admin-brand-indigo: var(--brand-primary);
  --admin-brand-sky: #0ea5e9;
  --admin-sidebar-blue: var(--brand-primary);
  --admin-main-surface: #f4f6f8;
  --admin-bg: var(--admin-sidebar-blue);
  --admin-bg-elevated: rgba(255, 255, 255, 0.1);
  --admin-border: rgba(255, 255, 255, 0.12);
  --admin-text: #ffffff;
  --admin-text-strong: #ffffff;
  --admin-cutout-size: 18px;
}

[data-theme="dark"] .admin-panel {
  /* Slate-navy palet — light ile aynı hiyerarşi, sade kontrast */
  --background: 222 22% 10%;
  --foreground: 210 22% 92%;
  --card: 222 20% 12%;
  --card-foreground: 210 22% 92%;
  --secondary: 222 20% 13%;
  --secondary-foreground: 210 22% 92%;
  --muted: 222 18% 15%;
  --muted-foreground: 215 12% 58%;
  --border: 222 18% 16%;
  --ring: 220 55% 62%;

  --brand-primary: #4a7dff;
  --brand-primary-hover: #6691ff;
  --brand-primary-soft: rgba(74, 125, 255, 0.1);

  /* Sidebar: koyu marka mavisi · içerik: bir ton açık — cut-out efekti için kontrast */
  --admin-main-surface: hsl(222 22% 10%);
  --admin-sidebar-blue: #082560;
  --admin-bg-elevated: rgba(255, 255, 255, 0.08);
  --admin-border: rgba(255, 255, 255, 0.1);
  --admin-text: rgba(220, 228, 240, 0.72);
  --admin-text-strong: #edf0f5;
  --admin-brand-indigo: #4a7dff;
}

[data-theme="dark"] .admin-panel .admin-nav-link.active {
  color: #ffffff;
}

[data-theme="dark"] .admin-panel .admin-nav-link.active .admin-nav-icon {
  color: #ffffff;
}

.admin-panel .dashboard-sidebar.admin-sidebar {
  width: var(--admin-sidebar-w);
  background: var(--admin-sidebar-blue);
  border-right: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  z-index: 110;
}

.admin-panel .dashboard-main-area.admin-main-area {
  margin-left: var(--admin-sidebar-w);
  background: var(--admin-main-surface);
}

.admin-sidebar-head {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem 0 1.1rem;
  border-bottom: 1px solid var(--admin-border);
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  min-width: 0;
}

.admin-sidebar-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.admin-sidebar-brand-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--admin-text-strong);
  letter-spacing: -0.02em;
}

.admin-sidebar-brand-role {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--admin-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-sidebar-close {
  color: #fff;
}

.admin-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.85rem 0 0.85rem 0.65rem;
  overflow-y: auto;
  overflow-x: visible;
}

.admin-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.15rem 0;
}

.admin-nav-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  padding: 0 0.75rem 0.2rem calc(0.35rem + 0.95rem);
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.48rem 0.85rem 0.48rem 0.95rem;
  margin-left: 0.35rem;
  border-radius: 0;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  background: transparent;
  width: calc(100% - 0.35rem);
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  position: relative;
  z-index: 1;
}

.admin-nav-link:hover:not(.active) {
  background: var(--admin-bg-elevated);
  color: #ffffff;
}

/* Aktif öğe — yuvarlak sol pill + sağ concave cut-out */
.admin-nav-link.active {
  background: var(--admin-main-surface);
  color: var(--admin-brand-indigo);
  margin-left: 0.5rem;
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
  width: calc(100% - 0.5rem);
  padding-left: 1rem;
  padding-right: 0.95rem;
  border-radius: 999px 0 0 999px;
  z-index: 2;
  box-shadow: none;
}

.admin-nav-link.active::before,
.admin-nav-link.active::after {
  content: "";
  position: absolute;
  right: 0;
  width: var(--admin-cutout-size);
  height: var(--admin-cutout-size);
  background: transparent;
  pointer-events: none;
}

.admin-nav-link.active::before {
  top: calc(var(--admin-cutout-size) * -1);
  border-bottom-right-radius: var(--admin-cutout-size);
  box-shadow: 6px 6px 0 6px var(--admin-main-surface);
}

.admin-nav-link.active::after {
  bottom: calc(var(--admin-cutout-size) * -1);
  border-top-right-radius: var(--admin-cutout-size);
  box-shadow: 6px -6px 0 6px var(--admin-main-surface);
}

.admin-nav-icon {
  width: 1rem;
  height: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: inherit;
}

.admin-nav-icon svg {
  stroke: currentColor;
  width: 15px;
  height: 15px;
}

.admin-nav-link.active .admin-nav-icon {
  color: var(--admin-brand-indigo);
}

.admin-nav-text {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-nav-badge.sidebar-badge {
  margin-left: auto;
  min-width: 1.2rem;
  height: 1.2rem;
  font-size: 0.62rem;
  background: #f43f5e;
  color: #fff;
}

.admin-nav-link.active .admin-nav-badge.sidebar-badge {
  background: #f43f5e;
  color: #fff;
}

.admin-sidebar-foot {
  margin-top: auto;
  padding: 0.75rem 0 0.25rem;
  border-top: 1px solid var(--admin-border);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.admin-logout-form {
  margin: 0;
  padding: 0;
  width: 100%;
  display: block;
}

.admin-logout-form .admin-nav-link {
  margin-left: 0.35rem;
  width: calc(100% - 0.35rem);
}

.admin-nav-link-muted {
  color: #ffffff;
}

.admin-panel .admin-top-header {
  height: 56px;
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
  padding: 0 2rem;
  justify-content: space-between;
}

[data-theme="dark"] .admin-panel .admin-top-header {
  background: transparent;
}

.admin-header-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.2;
}

[data-theme="dark"] .admin-panel .admin-header-title {
  color: hsl(var(--foreground));
}

.admin-header-actions {
  gap: 0.5rem;
}

.admin-header-icon-btn {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 10px;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* Hamburger yalnızca mobilde — admin-header-icon-btn display'ini ezmesin */
.admin-panel .sidebar-toggle-btn.admin-header-icon-btn {
  display: none;
}

@media (max-width: 1024px) {
  .admin-panel .sidebar-toggle-btn.admin-header-icon-btn {
    display: inline-flex;
  }
}

.admin-header-icon-btn:hover {
  background: rgba(0, 72, 247, 0.08);
  color: #0048f7;
  border-color: rgba(0, 72, 247, 0.12);
}

[data-theme="dark"] .admin-panel .admin-header-icon-btn {
  color: hsl(var(--muted-foreground));
}

[data-theme="dark"] .admin-panel .admin-header-icon-btn:hover {
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  border-color: rgba(74, 125, 255, 0.18);
}

.admin-header-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem 0.25rem 0.25rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

[data-theme="dark"] .admin-panel .admin-header-user-pill {
  background: hsl(var(--card));
  border-color: hsl(var(--border));
  box-shadow: none;
}

.admin-header-avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #0048f7, #0ea5e9);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

.admin-header-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  letter-spacing: -0.01em;
  max-width: 9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="dark"] .admin-panel .admin-header-name {
  color: hsl(var(--foreground));
}

.admin-panel .dashboard-page-view-container {
  padding: 1.25rem 2rem 1.75rem;
}

@media (max-width: 1024px) {
  .admin-panel .dashboard-main-area.admin-main-area {
    margin-left: 0;
  }

  .admin-panel .dashboard-sidebar.admin-sidebar {
    transform: translateX(-100%);
  }

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

  .admin-panel .admin-nav-link.active {
    margin-left: 0.35rem;
    margin-top: 0.15rem;
    margin-bottom: 0.15rem;
    width: calc(100% - 0.7rem);
    border-radius: 10px;
  }

  .admin-panel .admin-nav-link.active::before,
  .admin-panel .admin-nav-link.active::after {
    display: none;
    content: none;
    box-shadow: none;
  }
}

@media (max-width: 640px) {
  .admin-panel .dashboard-page-view-container {
    padding: 1rem;
  }

  .admin-panel .admin-top-header {
    padding: 0 1rem;
  }

  .admin-header-title {
    font-size: 1rem;
  }

  .admin-header-name {
    display: none;
  }

  .admin-header-user-pill {
    padding: 0.2rem;
    border: none;
    background: transparent;
    box-shadow: none;
  }
}

/* Admin panel — marka rengi */
.admin-panel .btn-primary {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.admin-panel .btn-primary:hover {
  background-color: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
}

.admin-panel .admin-header-icon-btn:hover {
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  border-color: rgba(0, 72, 247, 0.15);
}

.admin-panel .admin-header-avatar {
  background: var(--brand-primary);
}

/* Admin — Kullanıcılar sayfası */
.au-page {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 100%;
}

.au-page [hidden] {
  display: none !important;
}

.au-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.au-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a;
}

[data-theme="dark"] .au-title {
  color: hsl(var(--foreground));
}

.au-subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 500;
}

.au-btn-add {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border: none;
  border-radius: 8px;
  background: var(--brand-primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.au-btn-add:hover {
  background: var(--brand-primary-hover);
}

.au-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #fff;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.au-btn-ghost:hover {
  background: #f8fafc;
  border-color: rgba(0, 72, 247, 0.2);
  color: var(--brand-primary);
}

[data-theme="dark"] .au-btn-ghost {
  background: hsl(var(--card));
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}

[data-theme="dark"] .au-btn-ghost:hover {
  background: hsl(var(--secondary));
  color: var(--brand-primary);
}

.au-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.au-stat {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 8px;
}

[data-theme="dark"] .au-stat {
  background: hsl(var(--card));
  border-color: hsl(var(--border));
}

.au-stat-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-primary);
  letter-spacing: -0.02em;
}

.au-stat-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: #64748b;
}

.au-stat--green .au-stat-value { color: #10b981; }
.au-stat--amber .au-stat-value { color: #f59e0b; }
.au-stat--muted .au-stat-value { color: #64748b; }

.au-table-section {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 10px;
  overflow: hidden;
}

.au-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: #fff;
}

[data-theme="dark"] .au-table-toolbar {
  background: hsl(var(--card));
  border-color: hsl(var(--border));
}

.au-search {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
  max-width: 300px;
  padding: 0.28rem 0.55rem;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 6px;
  font-weight: 400;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.au-search:focus-within {
  border-color: var(--brand-primary);
  background: #fff;
  box-shadow: 0 0 0 2px rgba(0, 72, 247, 0.08);
}

[data-theme="dark"] .au-search {
  background: hsl(var(--secondary));
  border-color: hsl(var(--border));
}

[data-theme="dark"] .au-search:focus-within {
  background: hsl(var(--card));
}

.au-search-icon {
  flex-shrink: 0;
  display: block;
  width: 14px;
  height: 14px;
  color: #94a3b8;
}

.au-search-input {
  width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 0.75rem;
  line-height: 1.2;
  font-family: inherit;
  color: #0f172a;
  outline: none;
  padding: 0;
}

.au-search-input::placeholder {
  color: #94a3b8;
}

.au-search-input::-webkit-search-cancel-button {
  cursor: pointer;
}

[data-theme="dark"] .au-search-input {
  color: hsl(var(--foreground));
}

.au-search-meta {
  font-size: 0.68rem;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
}

.au-table-empty td {
  padding: 2.5rem 1rem;
  text-align: center;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 500;
}

[data-theme="dark"] .au-table-section {
  background: hsl(var(--card));
  border-color: hsl(var(--border));
}

.au-table-scroll {
  overflow-x: auto;
}

.au-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.au-table thead th {
  padding: 0.65rem 1rem;
  text-align: left;
  font-size: 0.68rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: #fafbfc;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  white-space: nowrap;
}

[data-theme="dark"] .au-table thead th {
  background: hsl(var(--secondary));
  color: hsl(var(--muted-foreground));
  border-color: hsl(var(--border));
}

.au-table tbody td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  vertical-align: middle;
  white-space: nowrap;
}

[data-theme="dark"] .au-table tbody td {
  border-color: hsl(var(--border));
}

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

.au-table tbody tr:hover td {
  background: rgba(0, 72, 247, 0.02);
}

.au-table thead th.au-th-actions,
.au-td-actions {
  text-align: right;
}

.au-user-cell {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.au-user-avatar {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 6px;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  flex-shrink: 0;
}

.au-user-name {
  font-weight: 600;
  color: #0f172a;
  font-size: 0.8rem;
}

[data-theme="dark"] .au-user-name {
  color: hsl(var(--foreground));
}

.au-td-muted {
  color: #64748b;
  font-size: 0.78rem;
}

.au-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

[data-theme="dark"] .au-tag {
  background: hsl(var(--secondary));
  color: hsl(var(--muted-foreground));
}

.au-lang {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brand-primary);
  letter-spacing: 0.04em;
}

.au-status-form {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
}

.au-status-form.is-locked {
  opacity: 0.55;
}

.au-status-text {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
}

.au-status-text.is-on {
  color: #10b981;
}

.au-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.au-pill--warn {
  color: #b45309;
  background: rgba(245, 158, 11, 0.1);
}

.au-pill--ok {
  color: #64748b;
  background: #f1f5f9;
}

[data-theme="dark"] .au-pill--ok {
  background: hsl(var(--secondary));
}

.au-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  justify-content: flex-end;
}

.au-actions form {
  margin: 0;
  display: inline-flex;
}

.au-action-btn {
  width: 1.85rem;
  height: 1.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 6px;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

[data-theme="dark"] .au-action-btn {
  background: hsl(var(--card));
  border-color: hsl(var(--border));
  color: hsl(var(--muted-foreground));
}

.au-action-btn:hover:not(:disabled) {
  border-color: rgba(0, 72, 247, 0.25);
  color: var(--brand-primary);
  background: var(--brand-primary-soft);
}

.au-action-btn--danger:hover:not(:disabled) {
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
  background: rgba(239, 68, 68, 0.06);
}

.au-action-btn.is-disabled,
.au-action-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .au-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .au-table thead th:nth-child(2),
  .au-table tbody td:nth-child(2) {
    display: none;
  }
}

/* Admin — Yeni kullanıcı modal */
.au-modal {
  padding: 0 !important;
  max-width: 480px !important;
  width: calc(100% - 1.5rem) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 12px !important;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.18) !important;
  overflow: hidden;
  text-align: left;
}

[data-theme="dark"] .au-modal {
  border-color: hsl(var(--border)) !important;
}

.au-modal::backdrop {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}

.au-modal-head > div {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.au-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: #fff;
}

[data-theme="dark"] .au-modal-head {
  background: hsl(var(--card));
  border-color: hsl(var(--border));
}

.au-modal-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

[data-theme="dark"] .au-modal-title {
  color: hsl(var(--foreground));
}

.au-modal-desc,
.au-modal-sub {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 500;
}

.au-modal-close {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.au-modal-close:hover {
  background: #f1f5f9;
  color: #475569;
}

[data-theme="dark"] .au-modal-close:hover {
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
}

.au-modal-form {
  display: flex;
  flex-direction: column;
}

.au-modal-body {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: min(68vh, 520px);
  overflow-y: auto;
}

.au-modal-section {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.au-modal-section-title {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  text-align: left;
}

.au-modal-fields {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.au-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.au-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.au-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  text-align: left;
}

[data-theme="dark"] .au-label {
  color: hsl(var(--muted-foreground));
}

.au-input,
.au-select {
  width: 100%;
  padding: 0.5rem 0.7rem;
  font-size: 0.8rem;
  font-family: inherit;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

[data-theme="dark"] .au-input,
[data-theme="dark"] .au-select {
  background: hsl(var(--background));
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}

.au-input:hover,
.au-select:hover {
  border-color: rgba(0, 72, 247, 0.2);
}

.au-input:focus,
.au-select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(0, 72, 247, 0.1);
  background: #fff;
}

[data-theme="dark"] .au-input:focus,
[data-theme="dark"] .au-select:focus {
  background: hsl(var(--card));
}

.au-textarea {
  resize: vertical;
  min-height: 4rem;
}

.au-lang-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.au-modal .au-lang-chip {
  margin: 0;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 6px;
  background: #f8fafc;
  font-size: 0.72rem;
  gap: 0.35rem;
}

[data-theme="dark"] .au-modal .au-lang-chip {
  background: hsl(var(--secondary));
  border-color: hsl(var(--border));
}

.au-modal .au-lang-chip .checkbox-custom {
  width: 0.9rem;
  height: 0.9rem;
}

.au-modal .au-lang-chip.checked:not(.disabled) {
  border-color: rgba(0, 72, 247, 0.35);
  background: rgba(0, 72, 247, 0.06);
}

.au-modal .au-lang-chip.checked:not(.disabled) .checkbox-text {
  color: var(--brand-primary);
}

.au-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  background: transparent;
}

.au-modal-body .au-modal-foot {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
  margin-top: 0.25rem;
}

[data-theme="dark"] .au-modal-foot {
  background: transparent;
  border-color: hsl(var(--border));
}

.au-modal-btn-ghost,
.au-modal-btn-primary {
  padding: 0.5rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.au-modal-btn-ghost {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
  color: #475569;
}

.au-modal-btn-ghost:hover {
  background: #f1f5f9;
}

[data-theme="dark"] .au-modal-btn-ghost {
  background: hsl(var(--card));
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}

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

.au-modal-btn-primary:hover {
  background: var(--brand-primary-hover);
}

@media (max-width: 520px) {
  .au-field-row {
    grid-template-columns: 1fr;
  }
}

.au-field-error {
  display: none;
  font-size: 0.72rem;
  font-weight: 600;
  color: #ef4444;
  margin-top: -0.25rem;
}

.au-field-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
}

.au-field-switch {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.au-field-switch .au-label {
  margin: 0;
}

.switch.is-locked {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Onay diyalogu — silme, çıkış, genel */
.au-confirm {
  padding: 0 !important;
  max-width: 400px !important;
  width: calc(100% - 1.5rem) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 12px !important;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.18) !important;
  overflow: hidden;
  text-align: left;
  background: #fff;
}

[data-theme="dark"] .au-confirm {
  border-color: hsl(var(--border)) !important;
  background: hsl(var(--card));
}

.au-confirm::backdrop {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}

.au-confirm-body {
  padding: 1.25rem 1.25rem 1.15rem;
  text-align: left;
  background: #fff;
}

[data-theme="dark"] .au-confirm-body {
  background: hsl(var(--card));
}

.au-confirm-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: #0f172a;
  text-align: left;
}

[data-theme="dark"] .au-confirm-title {
  color: hsl(var(--foreground));
}

.au-confirm-desc {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: #64748b;
  font-weight: 500;
  text-align: left;
}

.au-confirm-desc:empty {
  display: none;
}

[data-theme="dark"] .au-confirm-desc {
  color: hsl(var(--muted-foreground));
}

.au-confirm-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  background: #fafbfc;
}

[data-theme="dark"] .au-confirm-foot {
  background: hsl(var(--secondary));
  border-color: hsl(var(--border));
}

.au-confirm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.5rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.2;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.au-confirm-btn-cancel {
  background: #fff;
  color: #475569;
  border-color: rgba(15, 23, 42, 0.1);
}

.au-confirm-btn-cancel:hover {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.14);
  color: #334155;
}

[data-theme="dark"] .au-confirm-btn-cancel {
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  border-color: hsl(var(--border));
}

[data-theme="dark"] .au-confirm-btn-cancel:hover {
  background: hsl(var(--background));
}

.au-confirm-btn-approve {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}

.au-confirm-btn-approve:hover {
  background: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
}

.au-confirm-btn-danger {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

.au-confirm-btn-danger:hover {
  background: #dc2626;
  border-color: #dc2626;
}

.au-confirm--delete .au-confirm-title {
  color: #0f172a;
}

[data-theme="dark"] .au-confirm--delete .au-confirm-title {
  color: hsl(var(--foreground));
}

/* Admin — Bildirimler sayfası */
.au-notif-toolbar {
  justify-content: flex-start;
}

.au-notif-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.au-notif-filter {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.au-notif-filter:hover {
  border-color: rgba(0, 72, 247, 0.2);
  color: var(--brand-primary);
}

.au-notif-filter.is-active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

[data-theme="dark"] .au-notif-filter {
  background: hsl(var(--secondary));
  border-color: hsl(var(--border));
  color: hsl(var(--muted-foreground));
}

[data-theme="dark"] .au-notif-filter.is-active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.au-notif-list {
  display: flex;
  flex-direction: column;
}

.au-notif-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  background: #fff;
  transition: background 0.15s ease;
}

.au-notif-item:last-child {
  border-bottom: none;
}

.au-notif-item:hover {
  background: rgba(0, 72, 247, 0.02);
}

.au-notif-item.is-unread {
  background: rgba(0, 72, 247, 0.03);
  box-shadow: inset 3px 0 0 var(--brand-primary);
}

.au-notif-item.is-unread:hover {
  background: rgba(0, 72, 247, 0.05);
}

[data-theme="dark"] .au-notif-item {
  background: hsl(var(--card));
  border-color: hsl(var(--border));
}

[data-theme="dark"] .au-notif-item.is-unread {
  background: rgba(0, 72, 247, 0.08);
}

.au-notif-content {
  flex: 1;
  min-width: 0;
}

.au-notif-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0f172a;
  line-height: 1.35;
}

[data-theme="dark"] .au-notif-title {
  color: hsl(var(--foreground));
}

.au-notif-body {
  margin: 0.3rem 0 0;
  font-size: 0.76rem;
  line-height: 1.5;
  color: #64748b;
  font-weight: 500;
}

[data-theme="dark"] .au-notif-body {
  color: hsl(var(--muted-foreground));
}

.au-notif-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.au-notif-date {
  font-size: 0.68rem;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
}

.au-pill--new {
  color: var(--brand-primary);
  background: var(--brand-primary-soft);
}

.au-pill--danger {
  color: #dc2626;
  background: rgba(239, 68, 68, 0.1);
}

.au-notif-mark-form {
  margin: 0;
  flex-shrink: 0;
}

.au-notif-mark-btn {
  width: 1.85rem;
  height: 1.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 6px;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
}

.au-notif-mark-btn:hover {
  border-color: rgba(0, 72, 247, 0.25);
  color: var(--brand-primary);
  background: var(--brand-primary-soft);
}

[data-theme="dark"] .au-notif-mark-btn {
  background: hsl(var(--card));
  border-color: hsl(var(--border));
  color: hsl(var(--muted-foreground));
}

.au-notif-empty {
  padding: 2.5rem 1rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748b;
}

[data-theme="dark"] .au-notif-empty {
  color: hsl(var(--muted-foreground));
}

@media (max-width: 640px) {
  .au-notif-item {
    flex-direction: column;
    gap: 0.5rem;
  }

  .au-notif-mark-form {
    align-self: flex-end;
  }
}

/* Admin — Destek talepleri sayfası */
.au-sup-table tbody tr.is-unread {
  background: rgba(0, 72, 247, 0.03);
  box-shadow: inset 3px 0 0 var(--brand-primary);
}

.au-sup-table tbody tr.is-unread:hover td {
  background: rgba(0, 72, 247, 0.05);
}

.au-sup-table tbody tr.is-unread .au-sup-link {
  font-weight: 700;
  color: #0f172a;
}

.au-sup-row-flash {
  animation: auSupFlash 1.2s ease;
}

@keyframes auSupFlash {
  0% { background: rgba(239, 68, 68, 0.1); }
  100% { background: transparent; }
}

.au-sup-link {
  display: inline;
  font-size: 0.8rem;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  line-height: 1.35;
  transition: color 0.15s ease;
}

.au-sup-link:hover {
  color: var(--brand-primary);
}

[data-theme="dark"] .au-sup-link {
  color: hsl(var(--foreground));
}

.au-sup-id {
  color: var(--brand-primary);
  font-weight: 700;
}

.au-sup-preview {
  margin: 0.3rem 0 0;
  font-size: 0.74rem;
  line-height: 1.45;
  color: #64748b;
  max-width: 420px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
}

[data-theme="dark"] .au-sup-preview {
  color: hsl(var(--muted-foreground));
}

.au-sup-user {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.au-sup-username {
  font-size: 0.78rem;
  font-weight: 600;
  color: #0f172a;
}

[data-theme="dark"] .au-sup-username {
  color: hsl(var(--foreground));
}

.au-sup-email {
  font-size: 0.72rem;
  color: #64748b;
}

[data-theme="dark"] .au-sup-email {
  color: hsl(var(--muted-foreground));
}

.au-sup-msg-count {
  margin-top: 0.3rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #94a3b8;
}

.au-sup-date,
.au-sup-th-date {
  white-space: nowrap;
  font-size: 0.74rem;
  color: #64748b;
}

.au-sup-th-date {
  text-align: right;
}

.au-sup-date {
  text-align: right;
}

@media (max-width: 768px) {
  .au-sup-preview {
    max-width: 100%;
  }

  .au-sup-th-date,
  .au-sup-date {
    display: none;
  }
}

/* Admin — Destek sohbet detay */
.au-chat-page .au-header {
  align-items: flex-start;
  gap: 1rem;
}

.au-chat-page .au-header-text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.au-chat-back {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  width: fit-content;
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.au-chat-back:hover {
  color: var(--brand-primary);
}

.au-chat-subline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.au-chat-subline .au-pill {
  margin: 0;
}

.au-chat-subsep {
  color: #cbd5e1;
}

.au-chat-panel {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.au-chat-thread {
  min-height: 280px;
  max-height: min(56vh, 500px);
  overflow-y: auto;
}

.au-chat-msg {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.au-chat-msg:last-child {
  border-bottom: none;
}

.au-chat-msg.is-mine {
  background: rgba(0, 72, 247, 0.03);
  box-shadow: inset 3px 0 0 var(--brand-primary);
}

[data-theme="dark"] .au-chat-msg.is-mine {
  background: rgba(0, 72, 247, 0.08);
}

.au-chat-msg-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
}

.au-chat-msg-avatar {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 6px;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  flex-shrink: 0;
}

.au-chat-msg.is-theirs .au-chat-msg-avatar {
  background: #f1f5f9;
  color: #475569;
}

[data-theme="dark"] .au-chat-msg.is-theirs .au-chat-msg-avatar {
  background: hsl(var(--secondary));
  color: hsl(var(--muted-foreground));
}

.au-chat-msg-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
}

.au-chat-msg-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
}

[data-theme="dark"] .au-chat-msg-name {
  color: hsl(var(--foreground));
}

.au-chat-msg-time {
  font-size: 0.68rem;
  font-weight: 600;
  color: #94a3b8;
}

.au-chat-msg-body {
  margin: 0;
  padding-left: 2.2rem;
  font-size: 0.8rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  color: #334155;
}

[data-theme="dark"] .au-chat-msg-body {
  color: hsl(var(--foreground));
}

.au-chat-compose {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding: 0.85rem 1rem;
  background: #fafbfc;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

[data-theme="dark"] .au-chat-compose {
  background: hsl(var(--secondary));
  border-color: hsl(var(--border));
}

.au-chat-field {
  margin: 0;
}

.au-chat-textarea {
  min-height: 4.5rem;
  resize: vertical;
}

.au-chat-compose-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.au-chat-hint {
  font-size: 0.68rem;
  font-weight: 500;
  color: #94a3b8;
}

.au-chat-closed-note {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  color: #64748b;
}

.au-chat-error {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #dc2626;
}

#support-send-btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .au-chat-compose-foot {
    flex-direction: column;
    align-items: stretch;
  }

  #support-send-btn {
    width: 100%;
    justify-content: center;
  }

  .au-chat-msg-body {
    padding-left: 0;
  }
}

/* Admin — Paketler sayfası */
.au-pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.au-pkg-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.au-pkg-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: #fafbfc;
}

[data-theme="dark"] .au-pkg-head {
  background: hsl(var(--secondary));
  border-color: hsl(var(--border));
}

.au-pkg-head-text {
  min-width: 0;
}

.au-pkg-name {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0f172a;
}

[data-theme="dark"] .au-pkg-name {
  color: hsl(var(--foreground));
}

.au-pkg-id {
  margin: 0.15rem 0 0;
  font-size: 0.68rem;
  font-weight: 600;
  color: #94a3b8;
}

.au-pkg-form {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.au-pkg-fields {
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.au-pkg-price-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.au-pkg-price-row .au-input {
  max-width: 140px;
}

.au-pkg-price-suffix {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}

.au-pkg-hint {
  margin: 0.25rem 0 0;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.4;
  color: #94a3b8;
}

.au-pkg-features {
  min-height: 6.5rem;
  resize: vertical;
  font-family: inherit;
  line-height: 1.45;
}

.au-pkg-foot {
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  background: #fafbfc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.au-pkg-delete-form {
  margin: 0;
}

.au-pkg-delete {
  color: #dc2626;
  border-color: rgba(220, 38, 38, 0.2);
}

.au-pkg-delete:hover {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.35);
  color: #b91c1c;
}

[data-theme="dark"] .au-pkg-foot {
  background: hsl(var(--secondary));
  border-color: hsl(var(--border));
}

.au-pkg-save {
  width: 100%;
  justify-content: center;
}

@media (min-width: 480px) {
  .au-pkg-save {
    width: auto;
  }
}

/* Admin — İstatistikler sayfası */
.au-st-charts {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.au-st-chart-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  grid-column: span 4;
}

.au-st-chart-card--status,
.au-st-chart-card--packages {
  grid-column: span 4;
}

.au-st-chart-card--cities {
  grid-column: span 4;
}

.au-st-chart-card--wide {
  grid-column: span 12;
}

.au-st-panel {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.au-st-panel-head {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: #fafbfc;
}

[data-theme="dark"] .au-st-panel-head {
  background: hsl(var(--secondary));
  border-color: hsl(var(--border));
}

.au-st-panel-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

[data-theme="dark"] .au-st-panel-title {
  color: hsl(var(--foreground));
}

.au-st-panel-desc {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  font-weight: 500;
  color: #64748b;
}

.au-st-chart-wrap {
  position: relative;
  padding: 0.75rem 1rem 1rem;
  min-height: 220px;
  height: 260px;
}

.au-st-chart-wrap--donut {
  min-height: 240px;
  height: 280px;
}

.au-st-chart-wrap--line {
  min-height: 240px;
  height: 300px;
}

.au-st-empty {
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 500;
  color: #94a3b8;
}

.au-st-toolbar {
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
}

.au-st-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
}

.au-st-filter {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 130px;
  flex: 1 1 130px;
  max-width: 200px;
}

.au-st-select {
  padding-top: 0.42rem;
  padding-bottom: 0.42rem;
  font-size: 0.76rem;
  min-height: 2.05rem;
  box-sizing: border-box;
}

.au-st-filter--actions {
  flex: 0 0 auto;
  min-width: auto;
  max-width: none;
}

.au-st-filter-label-spacer {
  visibility: hidden;
  user-select: none;
  line-height: 1.2;
}

.au-st-filter-actions-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.au-st-filter-btn {
  padding: 0.42rem 0.75rem;
  font-size: 0.74rem;
  min-height: 2.05rem;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.au-st-loc {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}

.au-st-loc-main {
  font-size: 0.78rem;
  font-weight: 600;
  color: #0f172a;
}

[data-theme="dark"] .au-st-loc-main {
  color: hsl(var(--foreground));
}

.au-st-loc-sub {
  font-size: 0.68rem;
  font-weight: 500;
  color: #94a3b8;
}

@media (max-width: 1100px) {
  .au-st-chart-card--status,
  .au-st-chart-card--cities,
  .au-st-chart-card--packages {
    grid-column: span 6;
  }
}

@media (max-width: 900px) {
  .au-st-chart-card--status,
  .au-st-chart-card--cities,
  .au-st-chart-card--packages,
  .au-st-chart-card--wide {
    grid-column: span 12;
  }
}

@media (max-width: 640px) {
  .au-st-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .au-st-filters {
    width: 100%;
  }

  .au-st-filter {
    max-width: none;
    flex: 1 1 100%;
  }

  .au-st-filter--actions {
    flex: 1 1 100%;
  }

  .au-st-filter-actions-row {
    width: 100%;
  }

  .au-st-filter-actions-row .au-st-filter-btn {
    flex: 1;
    justify-content: center;
  }

  .au-st-toolbar .au-search-meta {
    align-self: flex-end;
  }
}

/* Admin — Kayıtlar sayfası */
.au-pill--success {
  color: #059669;
  background: rgba(16, 185, 129, 0.12);
}

.au-log-toolbar {
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
}

.au-log-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
}

.au-log-filter--search {
  flex: 1 1 200px;
  max-width: 320px;
  min-width: 180px;
}

.au-log-search {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}

.au-log-table tbody td.au-log-detail {
  white-space: normal;
  min-width: 200px;
  max-width: 420px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #64748b;
}

[data-theme="dark"] .au-log-table tbody td.au-log-detail {
  color: hsl(var(--muted-foreground));
}

.au-log-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  background: #fafbfc;
}

[data-theme="dark"] .au-log-pager {
  background: hsl(var(--secondary));
  border-color: hsl(var(--border));
}

.au-log-pager-meta {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
}

.au-log-pager-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.au-log-pager-btn {
  text-decoration: none;
  font-size: 0.74rem;
  padding: 0.42rem 0.75rem;
}

@media (max-width: 640px) {
  .au-log-filter--search {
    flex: 1 1 100%;
    max-width: none;
  }

  .au-log-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .au-log-filters {
    width: 100%;
  }

  .au-log-pager {
    flex-direction: column;
    align-items: stretch;
  }

  .au-log-pager-actions {
    width: 100%;
  }

  .au-log-pager-btn {
    flex: 1;
    justify-content: center;
  }
}

/* Global dark — ortak au-* tonları (işletme paneli) */
[data-theme="dark"] .au-subtitle,
[data-theme="dark"] .au-modal-desc,
[data-theme="dark"] .au-st-panel-desc,
[data-theme="dark"] .au-notif-date,
[data-theme="dark"] .au-search-meta,
[data-theme="dark"] .au-stat-label,
[data-theme="dark"] .au-td-muted,
[data-theme="dark"] .au-table-empty td,
[data-theme="dark"] .au-notif-empty,
[data-theme="dark"] .au-status-text,
[data-theme="dark"] .au-modal-close,
[data-theme="dark"] .au-chat-back,
[data-theme="dark"] .au-sup-date,
[data-theme="dark"] .au-sup-id {
  color: hsl(var(--muted-foreground));
}

[data-theme="dark"] .au-table tbody tr:hover td {
  background: rgba(0, 72, 247, 0.06);
}

[data-theme="dark"] .au-user-avatar {
  background: rgba(0, 72, 247, 0.16);
  color: #7da8ff;
}

[data-theme="dark"] .au-pill--success {
  color: #3ecf8e;
  background: rgba(62, 207, 142, 0.12);
}

[data-theme="dark"] .au-pill--warn {
  color: #e4a82e;
  background: rgba(228, 168, 46, 0.12);
}

[data-theme="dark"] .au-pill--danger {
  color: #f08080;
  background: rgba(240, 128, 128, 0.12);
}

[data-theme="dark"] .au-pill--new {
  color: #7da8ff;
  background: rgba(0, 72, 247, 0.16);
}

[data-theme="dark"] .au-lang {
  color: #7da8ff;
}

[data-theme="dark"] .au-chat-subsep {
  color: hsl(var(--border));
}

[data-theme="dark"] .au-chat-msg {
  border-bottom-color: hsl(var(--border));
}

/* Admin & işletme paneli — tutarlı dark tema (au-* bileşenleri) */
[data-theme="dark"] .admin-panel .au-subtitle,
[data-theme="dark"] .business-panel .au-subtitle,
[data-theme="dark"] .admin-panel .au-modal-desc,
[data-theme="dark"] .business-panel .au-modal-desc,
[data-theme="dark"] .admin-panel .au-modal-sub,
[data-theme="dark"] .business-panel .au-modal-sub,
[data-theme="dark"] .admin-panel .au-st-panel-desc,
[data-theme="dark"] .business-panel .au-st-panel-desc,
[data-theme="dark"] .admin-panel .au-pkg-hint,
[data-theme="dark"] .business-panel .au-pkg-hint,
[data-theme="dark"] .admin-panel .au-pkg-price-suffix,
[data-theme="dark"] .business-panel .au-pkg-price-suffix,
[data-theme="dark"] .admin-panel .au-pkg-id,
[data-theme="dark"] .business-panel .au-pkg-id,
[data-theme="dark"] .admin-panel .au-notif-date,
[data-theme="dark"] .business-panel .au-notif-date,
[data-theme="dark"] .admin-panel .au-search-meta,
[data-theme="dark"] .business-panel .au-search-meta,
[data-theme="dark"] .admin-panel .au-log-pager-meta,
[data-theme="dark"] .business-panel .au-log-pager-meta,
[data-theme="dark"] .admin-panel .au-st-loc-sub,
[data-theme="dark"] .business-panel .au-st-loc-sub,
[data-theme="dark"] .admin-panel .au-stat-label,
[data-theme="dark"] .business-panel .au-stat-label,
[data-theme="dark"] .admin-panel .au-td-muted,
[data-theme="dark"] .business-panel .au-td-muted,
[data-theme="dark"] .admin-panel .au-table-empty td,
[data-theme="dark"] .business-panel .au-table-empty td,
[data-theme="dark"] .admin-panel .au-st-empty,
[data-theme="dark"] .business-panel .au-st-empty,
[data-theme="dark"] .admin-panel .au-notif-empty,
[data-theme="dark"] .business-panel .au-notif-empty,
[data-theme="dark"] .admin-panel .au-status-text,
[data-theme="dark"] .business-panel .au-status-text,
[data-theme="dark"] .admin-panel .au-modal-close,
[data-theme="dark"] .business-panel .au-modal-close,
[data-theme="dark"] .admin-panel .au-chat-back,
[data-theme="dark"] .business-panel .au-chat-back,
[data-theme="dark"] .admin-panel .au-sup-date,
[data-theme="dark"] .business-panel .au-sup-date,
[data-theme="dark"] .admin-panel .au-sup-id,
[data-theme="dark"] .business-panel .au-sup-id {
  color: hsl(var(--muted-foreground));
}

[data-theme="dark"] .admin-panel .au-title,
[data-theme="dark"] .business-panel .au-title,
[data-theme="dark"] .admin-panel .au-user-name,
[data-theme="dark"] .business-panel .au-user-name,
[data-theme="dark"] .admin-panel .au-modal-title,
[data-theme="dark"] .business-panel .au-modal-title,
[data-theme="dark"] .admin-panel .au-notif-title,
[data-theme="dark"] .business-panel .au-notif-title,
[data-theme="dark"] .admin-panel .au-pkg-name,
[data-theme="dark"] .business-panel .au-pkg-name,
[data-theme="dark"] .admin-panel .au-st-panel-title,
[data-theme="dark"] .business-panel .au-st-panel-title,
[data-theme="dark"] .admin-panel .au-sup-link,
[data-theme="dark"] .business-panel .au-sup-link,
[data-theme="dark"] .admin-panel .au-sup-username,
[data-theme="dark"] .business-panel .au-sup-username,
[data-theme="dark"] .admin-panel .au-st-loc-main,
[data-theme="dark"] .business-panel .au-st-loc-main {
  color: hsl(var(--foreground));
}

[data-theme="dark"] .admin-panel .au-stat,
[data-theme="dark"] .business-panel .au-stat,
[data-theme="dark"] .admin-panel .au-table-section,
[data-theme="dark"] .business-panel .au-table-section,
[data-theme="dark"] .admin-panel .au-table-toolbar,
[data-theme="dark"] .business-panel .au-table-toolbar,
[data-theme="dark"] .admin-panel .au-action-btn,
[data-theme="dark"] .business-panel .au-action-btn,
[data-theme="dark"] .admin-panel .au-modal-head,
[data-theme="dark"] .business-panel .au-modal-head,
[data-theme="dark"] .admin-panel .au-modal-foot,
[data-theme="dark"] .business-panel .au-modal-foot,
[data-theme="dark"] .admin-panel .au-confirm-body,
[data-theme="dark"] .business-panel .au-confirm-body,
[data-theme="dark"] .admin-panel .au-confirm-foot,
[data-theme="dark"] .business-panel .au-confirm-foot {
  background: hsl(var(--card));
  border-color: hsl(var(--border));
}

[data-theme="dark"] .admin-panel .au-search,
[data-theme="dark"] .business-panel .au-search,
[data-theme="dark"] .admin-panel .au-table thead th,
[data-theme="dark"] .business-panel .au-table thead th,
[data-theme="dark"] .admin-panel .au-notif-filter,
[data-theme="dark"] .business-panel .au-notif-filter,
[data-theme="dark"] .admin-panel .au-pkg-head,
[data-theme="dark"] .business-panel .au-pkg-head,
[data-theme="dark"] .admin-panel .au-pkg-foot,
[data-theme="dark"] .business-panel .au-pkg-foot,
[data-theme="dark"] .admin-panel .au-st-panel-head,
[data-theme="dark"] .business-panel .au-st-panel-head,
[data-theme="dark"] .admin-panel .au-log-pager,
[data-theme="dark"] .business-panel .au-log-pager,
[data-theme="dark"] .admin-panel .au-btn-ghost,
[data-theme="dark"] .business-panel .au-btn-ghost,
[data-theme="dark"] .admin-panel .au-modal-btn-ghost,
[data-theme="dark"] .business-panel .au-modal-btn-ghost,
[data-theme="dark"] .admin-panel .au-confirm-btn-cancel,
[data-theme="dark"] .business-panel .au-confirm-btn-cancel {
  background: hsl(var(--secondary));
  border-color: hsl(var(--border));
}

[data-theme="dark"] .admin-panel .au-search:focus-within,
[data-theme="dark"] .business-panel .au-search:focus-within,
[data-theme="dark"] .admin-panel .au-input:focus,
[data-theme="dark"] .business-panel .au-input:focus,
[data-theme="dark"] .admin-panel .au-select:focus,
[data-theme="dark"] .business-panel .au-select:focus {
  background: hsl(var(--card));
  box-shadow: 0 0 0 2px rgba(74, 125, 255, 0.14);
}

[data-theme="dark"] .admin-panel .au-input,
[data-theme="dark"] .business-panel .au-input,
[data-theme="dark"] .admin-panel .au-select,
[data-theme="dark"] .business-panel .au-select,
[data-theme="dark"] .admin-panel .au-label,
[data-theme="dark"] .business-panel .au-label {
  background: hsl(var(--secondary));
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}

[data-theme="dark"] .admin-panel .au-tag,
[data-theme="dark"] .business-panel .au-tag {
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
}

[data-theme="dark"] .admin-panel .au-table tbody tr:hover td,
[data-theme="dark"] .business-panel .au-table tbody tr:hover td {
  background: var(--brand-primary-soft);
}

[data-theme="dark"] .admin-panel .au-user-avatar,
[data-theme="dark"] .business-panel .au-user-avatar {
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
}

[data-theme="dark"] .admin-panel .au-stat--green .au-stat-value { color: #3ecf8e; }
[data-theme="dark"] .business-panel .au-stat--green .au-stat-value { color: #3ecf8e; }
[data-theme="dark"] .admin-panel .au-stat--amber .au-stat-value { color: #e4a82e; }
[data-theme="dark"] .business-panel .au-stat--amber .au-stat-value { color: #e4a82e; }
[data-theme="dark"] .admin-panel .au-stat--muted .au-stat-value { color: hsl(var(--muted-foreground)); }
[data-theme="dark"] .business-panel .au-stat--muted .au-stat-value { color: hsl(var(--muted-foreground)); }

[data-theme="dark"] .admin-panel .au-pill--ok,
[data-theme="dark"] .business-panel .au-pill--ok {
  color: hsl(var(--muted-foreground));
  background: hsl(var(--muted));
}

[data-theme="dark"] .admin-panel .au-pill--warn,
[data-theme="dark"] .business-panel .au-pill--warn {
  color: #e4a82e;
  background: rgba(228, 168, 46, 0.12);
}

[data-theme="dark"] .admin-panel .au-pill--success,
[data-theme="dark"] .business-panel .au-pill--success {
  color: #3ecf8e;
  background: rgba(62, 207, 142, 0.12);
}

[data-theme="dark"] .admin-panel .au-pill--danger,
[data-theme="dark"] .business-panel .au-pill--danger {
  color: #f08080;
  background: rgba(240, 128, 128, 0.12);
}

[data-theme="dark"] .admin-panel .au-pill--new,
[data-theme="dark"] .business-panel .au-pill--new {
  color: #6b9aff;
  background: rgba(74, 125, 255, 0.14);
}

[data-theme="dark"] .admin-panel .au-notif-filter,
[data-theme="dark"] .business-panel .au-notif-filter {
  color: hsl(var(--muted-foreground));
}

[data-theme="dark"] .admin-panel .au-notif-filter:hover,
[data-theme="dark"] .business-panel .au-notif-filter:hover {
  color: var(--brand-primary);
  border-color: rgba(74, 125, 255, 0.22);
}

[data-theme="dark"] .admin-panel .au-notif-filter.is-active,
[data-theme="dark"] .business-panel .au-notif-filter.is-active {
  background: var(--brand-primary-soft);
  border-color: rgba(74, 125, 255, 0.32);
  color: var(--brand-primary);
}

[data-theme="dark"] .admin-panel .au-notif-item,
[data-theme="dark"] .business-panel .au-notif-item {
  border-bottom-color: hsl(var(--border));
}

[data-theme="dark"] .admin-panel .au-notif-item.is-unread,
[data-theme="dark"] .business-panel .au-notif-item.is-unread {
  background: var(--brand-primary-soft);
}

[data-theme="dark"] .admin-panel .au-notif-body,
[data-theme="dark"] .business-panel .au-notif-body,
[data-theme="dark"] .admin-panel .au-sup-preview,
[data-theme="dark"] .business-panel .au-sup-preview,
[data-theme="dark"] .admin-panel .au-sup-email,
[data-theme="dark"] .business-panel .au-sup-email {
  color: hsl(var(--muted-foreground));
}

[data-theme="dark"] .admin-panel .au-sup-table tbody tr.is-unread,
[data-theme="dark"] .business-panel .au-sup-table tbody tr.is-unread {
  background: var(--brand-primary-soft);
}

[data-theme="dark"] .admin-panel .au-sup-table tbody tr.is-unread:hover td,
[data-theme="dark"] .business-panel .au-sup-table tbody tr.is-unread:hover td {
  background: rgba(74, 125, 255, 0.14);
}

[data-theme="dark"] .admin-panel .au-btn-ghost:hover,
[data-theme="dark"] .business-panel .au-btn-ghost:hover,
[data-theme="dark"] .admin-panel .au-modal-btn-ghost:hover,
[data-theme="dark"] .business-panel .au-modal-btn-ghost:hover,
[data-theme="dark"] .admin-panel .au-confirm-btn-cancel:hover,
[data-theme="dark"] .business-panel .au-confirm-btn-cancel:hover {
  background: hsl(var(--card));
  border-color: rgba(74, 125, 255, 0.22);
  color: var(--brand-primary);
}

[data-theme="dark"] .admin-panel .au-action-btn:hover:not(:disabled),
[data-theme="dark"] .business-panel .au-action-btn:hover:not(:disabled) {
  border-color: rgba(74, 125, 255, 0.28);
  color: var(--brand-primary);
  background: var(--brand-primary-soft);
}

[data-theme="dark"] .admin-panel .au-pkg-delete,
[data-theme="dark"] .business-panel .au-pkg-delete {
  color: #f08080;
  border-color: rgba(240, 128, 128, 0.22);
}

[data-theme="dark"] .admin-panel .au-pkg-delete:hover,
[data-theme="dark"] .business-panel .au-pkg-delete:hover {
  background: rgba(240, 128, 128, 0.1);
  border-color: rgba(240, 128, 128, 0.35);
  color: #f5a0a0;
}

[data-theme="dark"] .admin-panel .au-lang,
[data-theme="dark"] .business-panel .au-lang {
  color: var(--brand-primary);
}

[data-theme="dark"] .admin-panel .au-modal,
[data-theme="dark"] .business-panel .au-modal {
  border-color: hsl(var(--border)) !important;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.55) !important;
}

[data-theme="dark"] .admin-panel .au-modal::backdrop,
[data-theme="dark"] .business-panel .au-modal::backdrop {
  background: rgba(4, 8, 14, 0.72);
}

[data-theme="dark"] .admin-panel .au-confirm,
[data-theme="dark"] .business-panel .au-confirm {
  border-color: hsl(var(--border));
}

[data-theme="dark"] .admin-panel .au-chat-msg,
[data-theme="dark"] .business-panel .au-chat-msg {
  border-bottom-color: hsl(var(--border));
}

[data-theme="dark"] .admin-panel .au-chat-msg.is-mine,
[data-theme="dark"] .business-panel .au-chat-msg.is-mine {
  background: var(--brand-primary-soft);
}

[data-theme="dark"] .admin-panel .au-chat-subsep,
[data-theme="dark"] .business-panel .au-chat-subsep {
  color: hsl(var(--border));
}

[data-theme="dark"] .admin-panel .toast,
[data-theme="dark"] .business-panel .toast {
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .admin-panel .admin-header-avatar {
  background: var(--brand-primary);
}

[data-theme="dark"] .business-panel .biz-header-avatar {
  background: var(--brand-primary);
}

[data-theme="dark"] .admin-panel .sidebar-mobile-backdrop,
[data-theme="dark"] .business-panel .sidebar-mobile-backdrop {
  background: rgba(4, 8, 14, 0.68);
}

@media (max-width: 640px) {
  [data-theme="dark"] .admin-panel .admin-header-user-pill,
  [data-theme="dark"] .business-panel .biz-header-user-pill {
    background: transparent;
    border-color: transparent;
  }
}
/* ==========================================================================
   BUSINESS PANEL — Müşteri / işletme paneli (admin ile uyumlu)
   ========================================================================== */

.business-panel {
  --biz-sidebar-w: 260px;
  --biz-main-surface: #f4f6f8;
  --biz-sidebar-blue: var(--brand-primary);
  --biz-cutout-size: 18px;
}

[data-theme="dark"] .business-panel {
  --background: 222 22% 10%;
  --foreground: 210 22% 92%;
  --card: 222 20% 12%;
  --card-foreground: 210 22% 92%;
  --secondary: 222 20% 13%;
  --secondary-foreground: 210 22% 92%;
  --muted: 222 18% 15%;
  --muted-foreground: 215 12% 58%;
  --border: 222 18% 16%;
  --ring: 220 55% 62%;

  --brand-primary: #4a7dff;
  --brand-primary-hover: #6691ff;
  --brand-primary-soft: rgba(74, 125, 255, 0.1);

  --biz-main-surface: hsl(222 22% 10%);
  --biz-sidebar-blue: #082560;
}

.business-panel .dashboard-sidebar.biz-sidebar {
  width: var(--biz-sidebar-w);
  background: var(--biz-sidebar-blue);
  border-right: none;
  box-shadow: none;
  z-index: 110;
  overflow: visible;
}

.business-panel .dashboard-main-area.biz-main-area {
  margin-left: var(--biz-sidebar-w);
  background: var(--biz-main-surface);
}

.business-panel .biz-sidebar-head {
  height: 64px;
  padding: 0 1rem 0 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.business-panel .biz-sidebar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
}

.business-panel .biz-sidebar-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.business-panel .biz-sidebar-brand-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.business-panel .biz-sidebar-brand-role {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.business-panel .biz-sidebar-close {
  color: #fff;
}

.business-panel .biz-nav {
  padding: 0.85rem 0 0.85rem 0.65rem;
  gap: 0.2rem;
  overflow-y: auto;
  overflow-x: visible;
}

.business-panel .menu-section-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: rgba(255, 255, 255, 0.45);
  padding: 0.65rem 0.75rem 0.2rem calc(0.35rem + 0.95rem);
}

.business-panel .sidebar-menu-link,
.business-panel .sidebar-submenu > summary.sidebar-menu-link {
  color: #fff;
  border: none;
  margin-left: 0.35rem;
  width: calc(100% - 0.35rem);
  padding: 0.48rem 0.85rem 0.48rem 0.95rem;
  font-size: 0.78rem;
  border-radius: 0;
  position: relative;
  z-index: 1;
}

.business-panel .sidebar-menu-link svg,
.business-panel .sidebar-submenu > summary.sidebar-menu-link svg {
  opacity: 0.92;
}

.business-panel .sidebar-menu-link:hover:not(.active),
.business-panel .sidebar-submenu > summary.sidebar-menu-link:hover:not(.active) {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.business-panel .sidebar-menu-link.active,
.business-panel .sidebar-submenu > summary.sidebar-menu-link.active {
  background: var(--biz-main-surface);
  color: var(--brand-primary);
  margin-left: 0.5rem;
  margin-top: 0.3rem;
  margin-bottom: 0.3rem;
  width: calc(100% - 0.5rem);
  padding-left: 1rem;
  border-radius: 999px 0 0 999px;
  z-index: 2;
  border-color: transparent;
}

[data-theme="dark"] .business-panel .sidebar-menu-link.active,
[data-theme="dark"] .business-panel .sidebar-submenu > summary.sidebar-menu-link.active {
  color: var(--brand-primary);
}

[data-theme="dark"] .business-panel .sidebar-sublink.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .business-panel .stat-card,
[data-theme="dark"] .business-panel .admin-card {
  background: hsl(var(--card));
  border-color: hsl(var(--border));
}

[data-theme="dark"] .business-panel .breadcrumb-root {
  color: hsl(var(--muted-foreground));
}

[data-theme="dark"] .business-panel .btn-outline:hover {
  border-color: rgba(74, 125, 255, 0.22);
  color: var(--brand-primary);
  background: var(--brand-primary-soft);
}

.business-panel .sidebar-menu-link.active::before,
.business-panel .sidebar-menu-link.active::after,
.business-panel .sidebar-submenu > summary.sidebar-menu-link.active::before,
.business-panel .sidebar-submenu > summary.sidebar-menu-link.active::after {
  content: "";
  position: absolute;
  right: 0;
  width: var(--biz-cutout-size);
  height: var(--biz-cutout-size);
  background: transparent;
  pointer-events: none;
}

.business-panel .sidebar-menu-link.active::before,
.business-panel .sidebar-submenu > summary.sidebar-menu-link.active::before {
  top: calc(var(--biz-cutout-size) * -1);
  border-bottom-right-radius: var(--biz-cutout-size);
  box-shadow: 6px 6px 0 6px var(--biz-main-surface);
}

.business-panel .sidebar-menu-link.active::after,
.business-panel .sidebar-submenu > summary.sidebar-menu-link.active::after {
  bottom: calc(var(--biz-cutout-size) * -1);
  border-top-right-radius: var(--biz-cutout-size);
  box-shadow: 6px -6px 0 6px var(--biz-main-surface);
}

.business-panel .sidebar-submenu-items {
  margin-left: 0.55rem;
  padding-left: 1.1rem;
  border-left-color: rgba(255, 255, 255, 0.18);
}

.business-panel .sidebar-sublink {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  padding: 0.45rem 0.7rem;
}

.business-panel .sidebar-sublink:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.business-panel .sidebar-sublink.active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.business-panel .sidebar-menu-logout-wrapper {
  border-top-color: rgba(255, 255, 255, 0.12);
  padding-top: 0.85rem;
}

.business-panel .btn-logout-sidebar {
  color: rgba(255, 255, 255, 0.92);
}

.business-panel .btn-logout-sidebar:hover {
  background: rgba(239, 68, 68, 0.18);
  color: #fecaca;
}

.business-panel .biz-top-header {
  height: 56px;
  background: transparent;
  border-bottom: none;
  padding: 0 2rem;
}

.business-panel .breadcrumb-root {
  font-size: 0.78rem;
  color: #94a3b8;
}

.business-panel .breadcrumb-current {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}

[data-theme="dark"] .business-panel .breadcrumb-current {
  color: hsl(var(--foreground));
}

.business-panel .biz-header-divider {
  display: none;
}

.business-panel .biz-header-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem 0.25rem 0.25rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

[data-theme="dark"] .business-panel .biz-header-user-pill {
  background: hsl(var(--card));
  border-color: hsl(var(--border));
  box-shadow: none;
}

.business-panel .biz-header-avatar {
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.72rem;
  background: linear-gradient(135deg, #0048f7, #0ea5e9);
}

.business-panel .biz-header-meta {
  gap: 0;
}

.business-panel .biz-header-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  letter-spacing: -0.01em;
}

[data-theme="dark"] .business-panel .biz-header-name {
  color: hsl(var(--foreground));
}

.business-panel .biz-header-role {
  display: none;
}

.business-panel .dashboard-page-view-container {
  padding: 1.25rem 2rem 1.75rem;
}

/* Eski sınıfları au-* diline yaklaştır */
.business-panel .admin-container {
  padding: 0;
  gap: 1.25rem;
}

.business-panel .admin-page-header {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.business-panel .admin-page-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.business-panel .admin-page-subtitle {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: 500;
}

.business-panel .admin-stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.business-panel .stat-card {
  flex: 1 1 160px;
  padding: 0.55rem 0.85rem;
  gap: 0.65rem;
  border-radius: 8px;
  box-shadow: none;
  align-items: center;
}

.business-panel .stat-card:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(0, 72, 247, 0.2);
}

.business-panel .stat-icon-wrapper {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
}

.business-panel .stat-icon-wrapper.purple {
  color: var(--brand-primary);
  background: var(--brand-primary-soft);
}

.business-panel .stat-info {
  min-width: 0;
}

.business-panel .stat-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: #64748b;
}

.business-panel .stat-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-primary);
  letter-spacing: -0.02em;
}

.business-panel .admin-card {
  padding: 0;
  gap: 0;
  border-radius: 10px;
  box-shadow: none;
  overflow: hidden;
}

.business-panel .admin-card-header {
  padding: 0.85rem 1rem;
  margin: 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: #fafbfc;
}

[data-theme="dark"] .business-panel .admin-card-header {
  background: hsl(var(--secondary));
  border-color: hsl(var(--border));
}

.business-panel .admin-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.business-panel .admin-card-subtitle {
  font-size: 0.72rem;
  margin-top: 0.15rem;
}

.business-panel .admin-card > form,
.business-panel .admin-card > ul,
.business-panel .admin-card > div:not(.admin-card-header) {
  padding: 0.85rem 1rem 1rem;
}

.business-panel .grid-two {
  gap: 1rem;
}

.business-panel .btn-primary {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}

.business-panel .btn-primary:hover {
  background: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
}

.business-panel .btn-outline {
  border-color: rgba(15, 23, 42, 0.12);
  color: #475569;
  font-weight: 600;
}

.business-panel .btn-outline:hover {
  border-color: rgba(0, 72, 247, 0.25);
  color: var(--brand-primary);
  background: var(--brand-primary-soft);
}

[data-theme="dark"] .business-panel .btn-outline {
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}

.business-panel .auth-input,
.business-panel .auth-select {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
  border-radius: 8px;
}

[data-theme="dark"] .business-panel .auth-input,
[data-theme="dark"] .business-panel .auth-select {
  background: hsl(var(--background));
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}

.business-panel .auth-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
}

[data-theme="dark"] .business-panel .auth-label {
  color: hsl(var(--muted-foreground));
}

.business-panel .i18n-field .auth-label,
.au-modal .i18n-field .auth-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
}

[data-theme="dark"] .business-panel .stat-label {
  color: hsl(var(--muted-foreground));
}

@media (max-width: 1024px) {
  .business-panel .dashboard-main-area.biz-main-area {
    margin-left: 0;
  }

  .business-panel .dashboard-sidebar.biz-sidebar {
    transform: translateX(-100%);
  }

  .business-panel .dashboard-sidebar.biz-sidebar.open {
    transform: translateX(0);
  }

  /* Mobilde concave köşe efekti kırpılıyor — sade pill kullan */
  .business-panel .sidebar-menu-link.active,
  .business-panel .sidebar-submenu > summary.sidebar-menu-link.active {
    margin-left: 0.35rem;
    margin-top: 0.15rem;
    margin-bottom: 0.15rem;
    width: calc(100% - 0.7rem);
    border-radius: 10px;
  }

  .business-panel .sidebar-menu-link.active::before,
  .business-panel .sidebar-menu-link.active::after,
  .business-panel .sidebar-submenu > summary.sidebar-menu-link.active::before,
  .business-panel .sidebar-submenu > summary.sidebar-menu-link.active::after {
    display: none;
    content: none;
    box-shadow: none;
  }
}

@media (max-width: 640px) {
  .business-panel .dashboard-page-view-container {
    padding: 1rem;
  }

  .business-panel .biz-top-header {
    padding: 0 1rem;
  }

  .business-panel .biz-header-name {
    display: none;
  }

  .business-panel .biz-header-user-pill {
    padding: 0.2rem;
    border: none;
    background: transparent;
    box-shadow: none;
  }

  [data-theme="dark"] .business-panel .biz-header-user-pill {
    background: transparent;
    border-color: transparent;
  }
}

/* İşletme paneli — sayfa bileşenleri */
.business-panel .au-stat-link {
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.business-panel .au-stat-link:hover {
  border-color: rgba(0, 72, 247, 0.25);
  background: var(--brand-primary-soft);
}

.biz-dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.biz-dash-card-body {
  padding: 0.85rem 1rem 1rem;
}

.biz-qr-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem;
  border: 1px dashed rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #f8fafc;
}

[data-theme="dark"] .biz-qr-box {
  background: hsl(var(--secondary));
  border-color: hsl(var(--border));
}

.biz-qr-preview {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

[data-theme="dark"] .biz-qr-preview {
  background: hsl(var(--card));
  border-color: hsl(var(--border));
}

.biz-qr-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
}

[data-theme="dark"] .biz-qr-title {
  color: hsl(var(--foreground));
}

.biz-qr-url {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  color: #64748b;
  word-break: break-all;
}

.biz-dash-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}

.biz-tips {
  list-style: none;
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.biz-tips li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #475569;
}

[data-theme="dark"] .biz-tips li {
  color: hsl(var(--muted-foreground));
}

.biz-tip-num {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: #059669;
  background: rgba(16, 185, 129, 0.12);
}

.au-td-price {
  font-weight: 700;
  color: #10b981;
  font-size: 0.78rem;
}

.biz-empty-link {
  display: inline-block;
  margin-left: 0.35rem;
  color: var(--brand-primary);
  font-weight: 600;
  text-decoration: none;
}

.biz-empty-link:hover {
  text-decoration: underline;
}

.biz-support-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 1rem;
  align-items: start;
}

.biz-support-form {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.biz-support-list {
  display: flex;
  flex-direction: column;
}

.biz-support-item {
  display: block;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: background 0.15s ease;
}

[data-theme="dark"] .biz-support-item {
  border-bottom-color: hsl(var(--border));
}

.biz-support-item:hover {
  background: rgba(0, 72, 247, 0.03);
}

.biz-support-item.is-unread {
  background: rgba(0, 72, 247, 0.04);
  box-shadow: inset 3px 0 0 var(--brand-primary);
}

[data-theme="dark"] .biz-support-item.is-unread {
  background: rgba(0, 72, 247, 0.08);
}

.biz-support-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.biz-support-item-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

[data-theme="dark"] .biz-support-item-title {
  color: hsl(var(--foreground));
}

.biz-support-item.is-unread .biz-support-item-title {
  font-weight: 800;
}

.biz-support-item-preview {
  margin: 0.4rem 0 0;
  font-size: 0.76rem;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.biz-support-item-meta {
  margin: 0.35rem 0 0;
  font-size: 0.68rem;
  font-weight: 600;
  color: #94a3b8;
}

/* Destek — işletme paneli */
.sup-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.sup-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.45;
}

[data-theme="dark"] .sup-hint {
  color: hsl(var(--muted-foreground));
}

.sup-list {
  max-height: 520px;
  overflow-y: auto;
}

.sup-list::-webkit-scrollbar {
  width: 8px;
}

.sup-list::-webkit-scrollbar-thumb {
  background-color: rgba(15, 23, 42, 0.12);
  border-radius: 999px;
}

[data-theme="dark"] .sup-list::-webkit-scrollbar-thumb {
  background-color: hsl(var(--border));
}

.biz-support-item.sup-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.sup-item-main {
  flex: 1;
  min-width: 0;
}

.sup-item-arrow {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  transition: color 0.15s ease, transform 0.15s ease;
}

.biz-support-item.sup-item:hover .sup-item-arrow {
  color: var(--brand-primary);
  transform: translateX(2px);
}

[data-theme="dark"] .sup-item-arrow {
  color: hsl(var(--muted-foreground));
}

.sup-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-align: center;
  padding: 3rem 1.5rem;
  color: #64748b;
}

[data-theme="dark"] .sup-empty {
  color: hsl(var(--muted-foreground));
}

.sup-empty-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: var(--brand-primary);
}

[data-theme="dark"] .sup-empty-icon {
  background: hsl(var(--secondary));
  border-color: hsl(var(--border));
  color: #93c5fd;
}

.sup-empty-title {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.95rem;
}

[data-theme="dark"] .sup-empty-title {
  color: hsl(var(--foreground));
}

.sup-empty-desc {
  font-size: 0.82rem;
  max-width: 24rem;
}

@media (max-width: 900px) {
  .biz-dash-grid,
  .biz-support-grid {
    grid-template-columns: 1fr;
  }
}

/* Alerjen yönetimi */
.allg-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 1rem;
}

.allg-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.4rem 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--brand-primary-soft);
  border: 1px solid rgba(0, 72, 247, 0.18);
  color: var(--brand-primary);
  font-size: 0.8rem;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

[data-theme="dark"] .allg-chip {
  background: rgba(0, 72, 247, 0.14);
  border-color: rgba(0, 72, 247, 0.28);
  color: #93c5fd;
}

.allg-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -10px rgba(0, 72, 247, 0.28);
  border-color: rgba(0, 72, 247, 0.32);
}

.allg-chip form {
  margin: 0;
  display: inline-flex;
}

.allg-chip-delete {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: rgba(0, 72, 247, 0.1);
  color: var(--brand-primary);
  cursor: pointer;
  transition: all 0.15s ease;
}

[data-theme="dark"] .allg-chip-delete {
  background: rgba(0, 0, 0, 0.2);
  color: #93c5fd;
}

.allg-chip-delete:hover {
  background: #ef4444;
  color: #fff;
}

.allg-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-align: center;
  padding: 3rem 1.5rem;
  color: #64748b;
}

[data-theme="dark"] .allg-empty {
  color: hsl(var(--muted-foreground));
}

.allg-empty-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: var(--brand-primary);
}

[data-theme="dark"] .allg-empty-icon {
  background: hsl(var(--secondary));
  border-color: hsl(var(--border));
  color: #93c5fd;
}

.allg-empty-title {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.95rem;
}

[data-theme="dark"] .allg-empty-title {
  color: hsl(var(--foreground));
}

.allg-empty-desc {
  font-size: 0.82rem;
  max-width: 24rem;
}

/* Etiket yönetimi */
.lbl-color-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.lbl-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.lbl-swatch {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 7px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.lbl-swatch:hover {
  transform: scale(1.06);
}

.lbl-swatch.selected {
  border-color: #0f172a;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(15, 23, 42, 0.15);
}

[data-theme="dark"] .lbl-swatch.selected {
  border-color: #f1f5f9;
  box-shadow: 0 0 0 2px hsl(var(--card)), 0 0 0 4px rgba(241, 245, 249, 0.2);
}

.lbl-color-native {
  width: 40px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 7px;
  background: none;
  cursor: pointer;
}

[data-theme="dark"] .lbl-color-native {
  border-color: hsl(var(--border));
}

.lbl-preview {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background-color: #ef4444;
}

.lbl-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 1rem;
}

.lbl-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.38rem 0.38rem 0.5rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lbl-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.35);
}

.lbl-chip form {
  margin: 0;
  display: inline-flex;
}

.lbl-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}

.lbl-chip-delete {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lbl-chip-delete:hover {
  background: rgba(0, 0, 0, 0.35);
}

.lbl-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-align: center;
  padding: 3rem 1.5rem;
  color: #64748b;
}

[data-theme="dark"] .lbl-empty {
  color: hsl(var(--muted-foreground));
}

.lbl-empty-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: var(--brand-primary);
}

[data-theme="dark"] .lbl-empty-icon {
  background: hsl(var(--secondary));
  border-color: hsl(var(--border));
  color: #93c5fd;
}

.lbl-empty-title {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.95rem;
}

[data-theme="dark"] .lbl-empty-title {
  color: hsl(var(--foreground));
}

.lbl-empty-desc {
  font-size: 0.82rem;
  max-width: 24rem;
}

.au-label-opt {
  font-weight: 500;
  color: #94a3b8;
  text-transform: none;
}

[data-theme="dark"] .au-label-opt {
  color: hsl(var(--muted-foreground));
}

/* Kampanyalar */
.camp-list {
  display: flex;
  flex-direction: column;
}

.camp-list-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: background-color 0.15s ease;
}

[data-theme="dark"] .camp-list-row {
  border-color: hsl(var(--border));
}

.camp-list-row:last-child {
  border-bottom: none;
}

.camp-list-row:hover {
  background: rgba(0, 72, 247, 0.03);
}

[data-theme="dark"] .camp-list-row:hover {
  background: hsl(var(--secondary) / 0.5);
}

.camp-list-thumb {
  width: 72px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f1f5f9;
}

[data-theme="dark"] .camp-list-thumb {
  background: hsl(var(--secondary));
  border-color: hsl(var(--border));
}

.camp-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.camp-list-thumb--text {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

[data-theme="dark"] .camp-list-thumb--text {
  color: hsl(var(--muted-foreground));
}

.camp-list-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.camp-list-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

[data-theme="dark"] .camp-list-title {
  color: hsl(var(--foreground));
}

.camp-list-title--muted {
  color: #94a3b8;
  font-weight: 600;
}

[data-theme="dark"] .camp-list-title--muted {
  color: hsl(var(--muted-foreground));
}

.camp-list-desc {
  font-size: 0.76rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="dark"] .camp-list-desc {
  color: hsl(var(--muted-foreground));
}

.camp-list-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.camp-list-actions form {
  margin: 0;
  display: flex;
}

.camp-list-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s ease;
}

[data-theme="dark"] .camp-list-btn {
  background: hsl(var(--background));
  border-color: hsl(var(--border));
  color: hsl(var(--muted-foreground));
}

.camp-list-btn.delete:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

.camp-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-align: center;
  padding: 3rem 1.5rem;
  color: #64748b;
}

[data-theme="dark"] .camp-empty {
  color: hsl(var(--muted-foreground));
}

.camp-empty-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: var(--brand-primary);
}

[data-theme="dark"] .camp-empty-icon {
  background: hsl(var(--secondary));
  border-color: hsl(var(--border));
  color: #93c5fd;
}

.camp-empty-title {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.95rem;
}

[data-theme="dark"] .camp-empty-title {
  color: hsl(var(--foreground));
}

.camp-empty-desc {
  font-size: 0.82rem;
  max-width: 24rem;
}

/* Şubeler */
.br-add-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  align-items: start;
}

.br-list {
  display: flex;
  flex-direction: column;
}

.br-list-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: background-color 0.15s ease;
}

[data-theme="dark"] .br-list-row {
  border-color: hsl(var(--border));
}

.br-list-row:last-child {
  border-bottom: none;
}

.br-list-row:hover {
  background: rgba(0, 72, 247, 0.03);
}

[data-theme="dark"] .br-list-row:hover {
  background: hsl(var(--secondary) / 0.5);
}

.br-list-row.is-inactive .br-list-name {
  color: #94a3b8;
}

[data-theme="dark"] .br-list-row.is-inactive .br-list-name {
  color: hsl(var(--muted-foreground));
}

.br-list-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(0, 72, 247, 0.08);
  border: 1px solid rgba(0, 72, 247, 0.12);
  color: var(--brand-primary);
}

[data-theme="dark"] .br-list-icon {
  background: rgba(0, 72, 247, 0.12);
  border-color: rgba(0, 72, 247, 0.2);
  color: #93c5fd;
}

.br-list-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.br-list-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  word-break: break-word;
}

[data-theme="dark"] .br-list-name {
  color: hsl(var(--foreground));
}

.br-list-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.br-list-meta-item {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.35rem;
  font-size: 0.76rem;
  color: #64748b;
  line-height: 1.4;
  word-break: break-word;
}

.br-list-meta-item svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  opacity: 0.7;
}

[data-theme="dark"] .br-list-meta-item {
  color: hsl(var(--muted-foreground));
}

.br-list-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #94a3b8;
}

.br-list-stat--muted {
  color: #f59e0b;
}

[data-theme="dark"] .br-list-stat--muted {
  color: #fbbf24;
}

.br-list-stat-sep {
  opacity: 0.5;
}

.br-list-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  padding-top: 0.1rem;
}

.br-list-actions form {
  margin: 0;
  display: flex;
}

.br-list-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s ease;
}

[data-theme="dark"] .br-list-btn {
  background: hsl(var(--background));
  border-color: hsl(var(--border));
  color: hsl(var(--muted-foreground));
}

.br-list-btn.delete:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

.br-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-align: center;
  padding: 3rem 1.5rem;
  color: #64748b;
}

[data-theme="dark"] .br-empty {
  color: hsl(var(--muted-foreground));
}

.br-empty-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: var(--brand-primary);
}

[data-theme="dark"] .br-empty-icon {
  background: hsl(var(--secondary));
  border-color: hsl(var(--border));
  color: #93c5fd;
}

.br-empty-title {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.95rem;
}

[data-theme="dark"] .br-empty-title {
  color: hsl(var(--foreground));
}

.br-empty-desc {
  font-size: 0.82rem;
  max-width: 26rem;
}

/* Anket yönetimi */
.sv-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.sv-list {
  display: flex;
  flex-direction: column;
  max-height: 520px;
  overflow-y: auto;
}

.sv-list::-webkit-scrollbar {
  width: 8px;
}

.sv-list::-webkit-scrollbar-thumb {
  background-color: rgba(15, 23, 42, 0.12);
  border-radius: 999px;
}

[data-theme="dark"] .sv-list::-webkit-scrollbar-thumb {
  background-color: hsl(var(--border));
}

.sv-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: background-color 0.15s ease;
}

[data-theme="dark"] .sv-row {
  border-color: hsl(var(--border));
}

.sv-row:last-child {
  border-bottom: none;
}

.sv-row:hover {
  background: rgba(0, 72, 247, 0.03);
}

[data-theme="dark"] .sv-row:hover {
  background: hsl(var(--secondary) / 0.5);
}

.sv-row-top {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.sv-row-num {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 0.7rem;
  font-weight: 800;
  color: #94a3b8;
}

[data-theme="dark"] .sv-row-num {
  background: hsl(var(--secondary));
  border-color: hsl(var(--border));
  color: hsl(var(--muted-foreground));
}

.sv-row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sv-row-q {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  word-break: break-word;
}

[data-theme="dark"] .sv-row-q {
  color: hsl(var(--foreground));
}

.sv-type {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.sv-type--rating {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

[data-theme="dark"] .sv-type--rating {
  color: #34d399;
}

.sv-type--text {
  background: rgba(0, 72, 247, 0.08);
  color: var(--brand-primary);
  border: 1px solid rgba(0, 72, 247, 0.15);
}

[data-theme="dark"] .sv-type--text {
  color: #93c5fd;
}

.sv-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.sv-actions form {
  margin: 0;
  display: flex;
}

.sv-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s ease;
}

[data-theme="dark"] .sv-btn {
  background: hsl(var(--background));
  border-color: hsl(var(--border));
  color: hsl(var(--muted-foreground));
}

.sv-btn.edit:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.sv-btn.delete:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

.sv-resp {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-left: calc(30px + 0.75rem);
}

.sv-resp-empty {
  font-size: 0.76rem;
  font-weight: 600;
  color: #94a3b8;
}

[data-theme="dark"] .sv-resp-empty {
  color: hsl(var(--muted-foreground));
}

.sv-resp-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.sv-resp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 0.74rem;
  font-weight: 700;
  color: #475569;
}

[data-theme="dark"] .sv-resp-badge {
  background: hsl(var(--secondary));
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}

.sv-resp-badge--rating {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.22);
  color: #d97706;
}

[data-theme="dark"] .sv-resp-badge--rating {
  color: #fbbf24;
}

.sv-resp-badge svg {
  flex-shrink: 0;
}

.sv-answers {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
}

[data-theme="dark"] .sv-answers {
  background: hsl(var(--secondary) / 0.5);
  border-color: hsl(var(--border));
}

.sv-answers > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
}

.sv-answers > summary::-webkit-details-marker {
  display: none;
}

[data-theme="dark"] .sv-answers > summary {
  color: hsl(var(--foreground));
}

.sv-chev {
  margin-left: auto;
  transition: transform 0.2s ease;
  color: #94a3b8;
}

.sv-answers[open] > summary .sv-chev {
  transform: rotate(180deg);
}

.sv-answer-item {
  padding: 0.65rem 0.85rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 0.82rem;
  color: #0f172a;
  line-height: 1.45;
  word-break: break-word;
}

[data-theme="dark"] .sv-answer-item {
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}

.sv-answer-meta {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #94a3b8;
}

[data-theme="dark"] .sv-answer-meta {
  color: hsl(var(--muted-foreground));
}

.sv-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-align: center;
  padding: 3rem 1.5rem;
  color: #64748b;
}

[data-theme="dark"] .sv-empty {
  color: hsl(var(--muted-foreground));
}

.sv-empty-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: var(--brand-primary);
}

[data-theme="dark"] .sv-empty-icon {
  background: hsl(var(--secondary));
  border-color: hsl(var(--border));
  color: #93c5fd;
}

.sv-empty-title {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.95rem;
}

[data-theme="dark"] .sv-empty-title {
  color: hsl(var(--foreground));
}

.sv-empty-desc {
  font-size: 0.82rem;
  max-width: 24rem;
}

/* Sistem ayarları */
.set-page {
  max-width: 1080px;
}

.set-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.15rem;
  align-items: start;
}

.set-main,
.set-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.set-side {
  position: sticky;
  top: 1.15rem;
}

.set-profile-fields,
.set-password-fields,
.set-hub-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  align-items: start;
}

.set-inline-hint {
  margin: -0.15rem 0 0;
  font-size: 0.78rem;
  color: hsl(var(--muted-foreground));
  word-break: break-all;
}

.set-inline-hint span {
  font-weight: 600;
  color: hsl(var(--foreground));
}

.set-upload-hint {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: hsl(var(--muted-foreground));
}

.set-upload-card {
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  background: #f8fafc;
}

[data-theme="dark"] .set-upload-card {
  background: hsl(var(--secondary) / 0.35);
  border-color: hsl(var(--border));
}

.set-hub-preview-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
  flex-wrap: wrap;
}

.set-hub-preview {
  border-radius: 8px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--muted) / 0.35);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.set-hub-preview--logo {
  width: 120px;
  height: 52px;
  padding: 0.35rem 0.5rem;
  background: #0d1118;
}

.set-hub-preview--bg {
  width: 120px;
  height: 72px;
}

.set-hub-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.set-hub-preview--bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.set-hub-remove {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  user-select: none;
}

.set-hub-remove input {
  margin: 0;
}

.set-menu-body {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.set-sub-compact .au-table-toolbar {
  padding: 0.75rem 1rem;
  margin: 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] .set-sub-compact .au-table-toolbar {
  border-color: hsl(var(--border));
}

.set-sub-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
}

.set-sub-chip {
  flex: 1 1 120px;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] .set-sub-chip {
  background: hsl(var(--secondary) / 0.5);
  border-color: hsl(var(--border));
}

.set-sub-chip-label {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

[data-theme="dark"] .set-sub-chip-label {
  color: hsl(var(--muted-foreground));
}

.set-sub-chip-val {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
}

[data-theme="dark"] .set-sub-chip-val {
  color: hsl(var(--foreground));
}

.set-test-details {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] .set-test-details {
  border-color: hsl(var(--border));
}

.set-test-details > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #64748b;
}

.set-test-details > summary::-webkit-details-marker {
  display: none;
}

[data-theme="dark"] .set-test-details > summary {
  color: hsl(var(--muted-foreground));
}

.set-test-chev {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  opacity: 0.7;
}

.set-test-details[open] > summary .set-test-chev {
  transform: rotate(180deg);
}

.set-test-inner {
  padding: 0 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.set-test-desc {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #94a3b8;
}

[data-theme="dark"] .set-test-desc {
  color: hsl(var(--muted-foreground));
}

.set-test-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.set-test-grid form {
  margin: 0;
}

.set-test-btn {
  width: 100%;
  justify-content: center;
  font-size: 0.75rem;
  padding: 0.4rem 0.35rem;
}

.set-test-reset {
  width: 100%;
  border: 1px solid rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.06);
  color: #dc2626;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.set-test-reset:hover {
  background: rgba(239, 68, 68, 0.12);
}

[data-theme="dark"] .set-test-reset {
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.08);
  color: #f87171;
}

.set-url-field {
  margin: 0;
}

.set-url-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.25rem 0.2rem 0.65rem;
  border-radius: 9px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #f8fafc;
}

[data-theme="dark"] .set-url-row {
  background: hsl(var(--secondary) / 0.45);
  border-color: hsl(var(--border));
}

.set-url-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 600;
  color: #0f172a;
  outline: none;
}

[data-theme="dark"] .set-url-input {
  color: hsl(var(--foreground));
}

.set-url-copy {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.set-url-copy:hover {
  background: rgba(0, 72, 247, 0.08);
  color: var(--brand-primary);
}

.set-qr-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
}

.set-qr-preview-wrap {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  padding: 0.55rem;
  width: fit-content;
  margin: 0 auto;
  flex-shrink: 0;
}

[data-theme="dark"] .set-qr-preview-wrap {
  background: hsl(var(--background));
  border-color: hsl(var(--border));
}

.set-qr-preview {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.set-qr-preview img,
.set-qr-preview canvas {
  width: 120px !important;
  height: 120px !important;
  display: block;
}

.set-qr-side {
  width: 100%;
  min-width: 0;
}

.set-qr-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.set-qr-actions .au-btn-add,
.set-qr-actions .au-btn-ghost {
  width: 100%;
  justify-content: center;
  flex: none;
}

.set-live-link {
  text-decoration: none;
}

@media (max-width: 900px) {
  .set-page {
    max-width: none;
  }

  .set-page-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .set-main,
  .set-side {
    display: contents;
  }

  .set-side {
    position: static;
  }

  .set-profile-fields,
  .set-password-fields,
  .set-hub-fields {
    grid-template-columns: 1fr;
  }

  .set-upload-card {
    padding: 0;
    border: none;
    background: transparent;
  }

  [data-theme="dark"] .set-upload-card {
    background: transparent;
    border: none;
  }

  /* Mobil sıra: profil → görünüm → şifre → abonelik → QR */
  .set-card--profile { order: 1; }
  .set-card--appearance { order: 2; }
  .set-card--password { order: 3; }
  .set-sub-compact { order: 4; }
  .set-menu-panel { order: 5; }

  .set-qr-panel {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .set-qr-preview-wrap {
    margin: 0;
  }

  .set-qr-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .set-qr-actions .au-btn-add,
  .set-qr-actions .au-btn-ghost {
    width: auto;
    flex: 1 1 130px;
  }
}

/* Google yorum */
.grv-page-grid {
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: 1rem;
  align-items: start;
}

.grv-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.grv-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.45;
}

[data-theme="dark"] .grv-hint {
  color: hsl(var(--muted-foreground));
}

.grv-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.grv-preview-body {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.grv-preview-cta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}

[data-theme="dark"] .grv-preview-cta {
  background: linear-gradient(135deg, hsl(var(--card)) 0%, hsl(var(--secondary)) 100%);
  border-color: hsl(var(--border));
}

.grv-preview-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
}

.grv-preview-label {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.grv-preview-label strong {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
}

.grv-preview-label small {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
}

[data-theme="dark"] .grv-preview-label small {
  color: hsl(var(--muted-foreground));
}

.grv-preview-arrow {
  flex-shrink: 0;
  opacity: 0.75;
}

.grv-preview-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
}

.grv-preview-status--on {
  color: #059669;
}

[data-theme="dark"] .grv-preview-status--on {
  color: #34d399;
}

.grv-url-chip {
  display: inline-block;
  max-width: 100%;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="dark"] .grv-url-chip {
  background: hsl(var(--secondary));
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}

.grv-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-align: center;
  padding: 2rem 1rem;
  color: #64748b;
}

[data-theme="dark"] .grv-empty {
  color: hsl(var(--muted-foreground));
}

.grv-empty-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: var(--brand-primary);
}

[data-theme="dark"] .grv-empty-icon {
  background: hsl(var(--secondary));
  border-color: hsl(var(--border));
  color: #93c5fd;
}

.grv-empty-title {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.95rem;
}

[data-theme="dark"] .grv-empty-title {
  color: hsl(var(--foreground));
}

.grv-empty-desc {
  font-size: 0.82rem;
  max-width: 22rem;
}

.grv-help-card .au-st-panel-head {
  margin-bottom: 0;
}

.grv-steps {
  margin: 0;
  padding: 0.75rem 1rem 1rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.5;
}

[data-theme="dark"] .grv-steps {
  color: hsl(var(--muted-foreground));
}

.grv-steps li::marker {
  color: var(--brand-primary);
  font-weight: 700;
}

.grv-steps code {
  font-size: 0.74rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(0, 72, 247, 0.08);
  color: var(--brand-primary);
}

[data-theme="dark"] .grv-steps code {
  background: rgba(0, 72, 247, 0.15);
  color: #93c5fd;
}

@media (max-width: 900px) {
  .grv-page-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .br-add-grid {
    grid-template-columns: 1fr;
  }

  .br-list-row {
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 0.65rem;
  }

  .br-list-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .br-list-icon svg {
    width: 16px;
    height: 16px;
  }

  .br-list-name {
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .br-list-stats {
    font-size: 0.64rem;
    gap: 0.25rem;
  }

  .br-list-actions {
    flex-shrink: 0;
    gap: 0.35rem;
    padding-top: 0;
  }

  .br-list-btn {
    width: 28px;
    height: 28px;
  }

  .sv-row-top {
    flex-wrap: wrap;
  }

  .sv-actions {
    flex: 1 1 100%;
    justify-content: flex-end;
    padding-top: 0.25rem;
  }

  .sv-resp {
    padding-left: 0;
  }

  .camp-list-row {
    flex-wrap: wrap;
  }

  .camp-list-actions {
    flex: 1 1 100%;
    justify-content: flex-end;
    padding-top: 0.35rem;
  }
}

/* Çark / Etkinlikler */
.sw-page-grid {
  display: grid;
  grid-template-columns: minmax(280px, 400px) 1fr;
  gap: 1rem;
  align-items: start;
}

.sw-page-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sw-page-col .au-st-panel-desc {
  margin: 0;
  font-size: 0.72rem;
  color: #94a3b8;
}

.sw-publish-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  flex-shrink: 0;
}

.sw-publish-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
}

[data-theme="dark"] .sw-publish-label {
  color: hsl(var(--muted-foreground));
}

.sw-hint {
  margin: 0;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.45;
}

[data-theme="dark"] .sw-hint {
  color: hsl(var(--muted-foreground));
}

.sw-add-grid {
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 0.75rem;
  align-items: start;
}

.sw-color-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.sw-color-native {
  width: 36px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

[data-theme="dark"] .sw-color-native {
  border-color: hsl(var(--border));
}

.sw-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.sw-palette-btn {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 2px solid rgba(15, 23, 42, 0.08);
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.12s ease;
}

.sw-palette-btn:hover {
  transform: scale(1.08);
}

.sw-slices-panel {
  min-height: 100%;
}

.sw-slice-list {
  display: flex;
  flex-direction: column;
}

.sw-slice-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: background-color 0.15s ease;
}

[data-theme="dark"] .sw-slice-row {
  border-color: hsl(var(--border));
}

.sw-slice-row:last-child {
  border-bottom: none;
}

.sw-slice-row:hover {
  background: rgba(0, 72, 247, 0.03);
}

[data-theme="dark"] .sw-slice-row:hover {
  background: hsl(var(--secondary) / 0.5);
}

.sw-slice-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.sw-slice-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sw-slice-label {
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.35;
  word-break: break-word;
  color: #0f172a;
}

[data-theme="dark"] .sw-slice-label {
  color: hsl(var(--foreground));
}

.sw-slice-weight {
  font-size: 0.68rem;
  font-weight: 600;
  color: #94a3b8;
}

.sw-slice-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.sw-slice-actions form {
  margin: 0;
  display: flex;
}

.sw-slice-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s ease;
}

[data-theme="dark"] .sw-slice-btn {
  background: hsl(var(--background));
  border-color: hsl(var(--border));
  color: hsl(var(--muted-foreground));
}

.sw-slice-btn.delete:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

.sw-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-align: center;
  padding: 3rem 1.5rem;
  color: #64748b;
}

[data-theme="dark"] .sw-empty {
  color: hsl(var(--muted-foreground));
}

.sw-empty-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: var(--brand-primary);
}

[data-theme="dark"] .sw-empty-icon {
  background: hsl(var(--secondary));
  border-color: hsl(var(--border));
  color: #93c5fd;
}

.sw-empty-title {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.95rem;
}

[data-theme="dark"] .sw-empty-title {
  color: hsl(var(--foreground));
}

.sw-empty-desc {
  font-size: 0.82rem;
  max-width: 24rem;
}

@media (max-width: 960px) {
  .sw-page-grid {
    grid-template-columns: 1fr;
  }

  .sw-add-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .sw-slice-row {
    flex-wrap: wrap;
    padding: 0.75rem;
  }

  .sw-slice-actions {
    flex: 1 1 100%;
    justify-content: flex-end;
    padding-top: 0.25rem;
  }
}

.au-an-header {
  align-items: flex-end;
}

.au-an-ranges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.28rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #f8fafc;
}

[data-theme="dark"] .au-an-ranges {
  background: hsl(var(--secondary));
  border-color: hsl(var(--border));
}

.au-an-range {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.au-an-range:hover {
  color: #0f172a;
  background: rgba(0, 72, 247, 0.06);
}

[data-theme="dark"] .au-an-range:hover {
  color: hsl(var(--foreground));
}

.au-an-range.is-active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
  font-weight: 700;
}

.au-an-peak-value {
  font-size: 0.88rem;
}

.au-an-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.au-an-card {
  padding: 0;
  overflow: hidden;
}

.au-an-hour-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.22rem;
  height: 200px;
  padding: 0.75rem 1rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] .au-an-hour-chart {
  border-bottom-color: hsl(var(--border));
}

.au-an-hour-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

.au-an-bar-wrap {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: flex-end;
  min-height: 0;
}

.au-an-bar {
  width: 70%;
  max-width: 16px;
  margin: 0 auto;
  border-radius: 4px 4px 2px 2px;
  background: var(--brand-primary);
  min-height: 0;
  opacity: 0.35;
  transition: height 0.2s ease, opacity 0.2s ease;
}

.au-an-bar.is-peak {
  opacity: 1;
}

.au-an-bar.is-empty {
  height: 0 !important;
  opacity: 0 !important;
  background: transparent !important;
}

.au-an-hour-labels {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  padding: 0.5rem 1rem 0.75rem;
}

.au-an-hour-labels span {
  font-size: 0.62rem;
  font-weight: 600;
  color: #94a3b8;
  text-align: center;
}

.au-st-bars {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 280px;
  overflow-y: auto;
}

.au-st-bar-item {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.au-st-bar-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.au-st-bar-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: #0f172a;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-theme="dark"] .au-st-bar-label {
  color: hsl(var(--foreground));
}

.au-st-bar-value {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-primary);
  white-space: nowrap;
}

.au-st-bar-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #f1f5f9;
  overflow: hidden;
}

[data-theme="dark"] .au-st-bar-track {
  background: hsl(var(--secondary));
}

.au-st-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: rgba(0, 72, 247, 0.35);
  transition: width 0.2s ease;
}

.au-st-bar-fill.is-top {
  background: var(--brand-primary);
}

.au-an-day-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  height: 160px;
  padding: 0.75rem 1rem 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.au-an-day-col {
  flex: 1 0 28px;
  max-width: 42px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.au-an-day-bar {
  opacity: 0.55;
}

.au-an-day-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
}

.au-th-num,
.au-td-num {
  text-align: right;
}

.au-an-peak-pill {
  margin-left: 0.45rem;
  vertical-align: middle;
}

@media (max-width: 900px) {
  .au-an-grid {
    grid-template-columns: 1fr;
  }

  .au-an-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .au-an-ranges {
    width: 100%;
    justify-content: stretch;
  }

  .au-an-range {
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .au-an-hour-chart {
    height: 150px;
    gap: 0.12rem;
  }

  .au-an-bar {
    width: 55%;
    max-width: 10px;
  }

  .au-an-day-chart {
    height: 130px;
  }

  .au-st-bars {
    max-height: none;
  }
}

/* ===== Kategoriler (işletme paneli) ===== */
.au-cat-section .au-cat-head {
  padding: 0.85rem 1rem;
  background: #fafbfc;
}

[data-theme="dark"] .au-cat-section .au-cat-head {
  background: hsl(var(--secondary));
}

.au-cat-head-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.au-view-toggle {
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.2rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #f1f5f9;
}

[data-theme="dark"] .au-view-toggle {
  background: hsl(var(--secondary));
  border-color: hsl(var(--border));
}

.au-view-toggle button {
  width: 32px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: 6px;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s ease;
}

.au-view-toggle button:hover {
  color: #475569;
}

[data-theme="dark"] .au-view-toggle button:hover {
  color: hsl(var(--foreground));
}

.au-view-toggle button.active {
  background: #fff;
  color: var(--brand-primary);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] .au-view-toggle button.active {
  background: hsl(var(--card));
  color: #93c5fd;
}

.cat-views[data-view="list"] .cat-grid { display: none; }
.cat-views[data-view="grid"] .cat-list { display: none; }

.cat-toolbar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: #fafbfc;
}

[data-theme="dark"] .cat-toolbar {
  background: hsl(var(--secondary) / 0.35);
  border-color: hsl(var(--border));
}

.cat-search {
  flex: 1 1 200px;
  min-width: 0;
  max-width: none;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

[data-theme="dark"] .cat-card {
  background: hsl(var(--card));
  border-color: hsl(var(--border));
}

.cat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -12px rgba(0, 72, 247, 0.18);
  border-color: rgba(0, 72, 247, 0.35);
}

.cat-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  overflow: hidden;
}

[data-theme="dark"] .cat-card-media {
  background: hsl(var(--secondary));
  color: hsl(var(--muted-foreground));
}

.cat-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cat-card-index {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: rgba(15, 23, 42, 0.65);
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.cat-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.85rem 0.9rem 0.95rem;
  flex: 1;
}

.cat-card-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.cat-card-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  word-break: break-word;
}

[data-theme="dark"] .cat-card-name {
  color: hsl(var(--foreground));
}

.cat-card-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.cat-card-actions form {
  flex: 1;
  display: flex;
  margin: 0;
}

.cat-card-btn {
  flex: 1;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border-radius: 7px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

[data-theme="dark"] .cat-card-btn {
  background: hsl(var(--background));
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}

.cat-card-btn.edit:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.cat-card-btn.delete:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

.cat-list {
  display: flex;
  flex-direction: column;
}

.cat-list-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

[data-theme="dark"] .cat-list-row {
  border-color: hsl(var(--border));
}

.cat-list-row:last-child {
  border-bottom: none;
}

.cat-list-row:hover {
  background: rgba(0, 72, 247, 0.03);
}

[data-theme="dark"] .cat-list-row:hover {
  background: hsl(var(--secondary) / 0.5);
}

.cat-list-row.dragging {
  opacity: 0.4;
  background: var(--brand-primary-soft);
}

.cat-list-row.drag-over-top {
  box-shadow: inset 0 2px 0 0 var(--brand-primary);
}

.cat-list-row.drag-over-bottom {
  box-shadow: inset 0 -2px 0 0 var(--brand-primary);
}

.cat-drag-handle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 28px;
  cursor: grab;
  color: #94a3b8;
  border-radius: 6px;
  touch-action: none;
}

.cat-drag-handle:hover {
  color: #475569;
  background: #f1f5f9;
}

[data-theme="dark"] .cat-drag-handle:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--secondary));
}

.cat-drag-handle:active {
  cursor: grabbing;
}

.cat-list.filtering .cat-drag-handle {
  opacity: 0.35;
  pointer-events: none;
}

.cat-seq {
  flex-shrink: 0;
  min-width: 24px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8;
}

.cat-list-thumb {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

[data-theme="dark"] .cat-list-thumb {
  background: hsl(var(--secondary));
  border-color: hsl(var(--border));
  color: hsl(var(--muted-foreground));
}

.cat-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cat-list-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cat-list-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
}

[data-theme="dark"] .cat-list-name {
  color: hsl(var(--foreground));
}

.cat-list-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.cat-list-actions form {
  margin: 0;
  display: flex;
}

.cat-list-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s ease;
}

[data-theme="dark"] .cat-list-btn {
  background: hsl(var(--background));
  border-color: hsl(var(--border));
  color: hsl(var(--muted-foreground));
}

.cat-list-btn.edit:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.cat-list-btn.delete:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

.cat-card.is-passive .cat-card-media,
.cat-card.is-passive .cat-card-name {
  opacity: 0.45;
}

.cat-list-row.is-passive .cat-list-thumb,
.cat-list-row.is-passive .cat-list-main {
  opacity: 0.45;
}

.cat-edit-preview-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cat-edit-preview-row.is-marked-remove {
  opacity: 0.45;
}

.cat-edit-preview-row.is-marked-remove .cat-edit-hint {
  text-decoration: line-through;
}

.au-image-preview-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  min-width: 0;
}

.au-image-delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.au-image-delete-btn:hover {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.55);
}

[data-theme="dark"] .au-image-delete-btn {
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
}

.cat-edit-current {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

[data-theme="dark"] .cat-edit-current {
  background: hsl(var(--secondary));
  border-color: hsl(var(--border));
  color: hsl(var(--muted-foreground));
}

.cat-edit-current img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cat-edit-hint,
.cat-field-hint {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.4;
}

[data-theme="dark"] .cat-edit-hint,
[data-theme="dark"] .cat-field-hint {
  color: hsl(var(--muted-foreground));
}

.au-file-input {
  padding: 0.35rem 0.5rem;
  cursor: pointer;
}

.ms-filter {
  position: relative;
  flex: 0 1 220px;
  min-width: 170px;
}

.ms-filter.is-open {
  z-index: 50;
}

.ms-filter-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 2.25rem 0.55rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  color: #0f172a;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: inherit;
  line-height: normal;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  text-align: left;
  position: relative;
}

[data-theme="dark"] .ms-filter-btn {
  background: hsl(var(--card));
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}

.ms-filter.is-open .ms-filter-btn {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(0, 72, 247, 0.1);
  background: #fff;
}

[data-theme="dark"] .ms-filter.is-open .ms-filter-btn {
  background: hsl(var(--card));
}

.ms-filter-btn .ms-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ms-filter-btn .ms-badge {
  flex-shrink: 0;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--brand-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.ms-filter-btn .ms-badge.is-visible {
  display: inline-flex;
}

.ms-filter-btn .ms-chevron {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  flex-shrink: 0;
  color: #94a3b8;
  pointer-events: none;
  transition: transform 0.15s ease;
}

.ms-filter.is-open .ms-chevron {
  transform: translateY(-50%) rotate(180deg);
}

.ms-filter-panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  left: auto;
  width: max(100%, 320px);
  min-width: 320px;
  z-index: 40;
  padding: 0.35rem;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  color: #0f172a;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12);
}

[data-theme="dark"] .ms-filter-panel {
  background: hsl(var(--popover));
  border-color: hsl(var(--border));
  color: hsl(var(--popover-foreground));
  box-shadow: 0 12px 40px hsl(0 0% 0% / 0.35);
}

.ms-filter.is-open .ms-filter-panel {
  display: block;
}

.ms-filter-actions {
  display: flex;
  gap: 0.3rem;
  padding: 0.2rem 0.3rem 0.45rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  margin-bottom: 0.2rem;
}

[data-theme="dark"] .ms-filter-actions {
  border-color: hsl(var(--border));
}

.ms-filter-actions button {
  flex: 1;
  height: 1.75rem;
  border-radius: 6px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
  color: #475569;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

[data-theme="dark"] .ms-filter-actions button {
  background: hsl(var(--secondary));
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}

.ms-filter-actions button:hover {
  background: var(--brand-primary-soft);
  border-color: rgba(0, 72, 247, 0.2);
  color: var(--brand-primary);
}

.ms-filter-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem;
  max-height: 240px;
  overflow-y: auto;
  padding: 0.1rem;
}

.ms-filter-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.5rem;
  border-radius: 7px;
  cursor: pointer;
  user-select: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  transition: background 0.12s ease;
  min-width: 0;
}

[data-theme="dark"] .ms-filter-option {
  color: hsl(var(--foreground));
}

.ms-filter-option > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ms-filter-option:hover {
  background: #f1f5f9;
}

[data-theme="dark"] .ms-filter-option:hover {
  background: hsl(var(--secondary));
}

.ms-filter-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.ms-check {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  border-radius: 5px;
  border: 1.5px solid rgba(15, 23, 42, 0.15);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s ease;
}

[data-theme="dark"] .ms-check {
  background: hsl(var(--background));
  border-color: hsl(var(--border));
}

.ms-check svg {
  width: 10px;
  height: 10px;
  opacity: 0;
  color: #fff;
}

.ms-filter-option:has(input:checked) .ms-check {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
}

.ms-filter-option:has(input:checked) .ms-check svg {
  opacity: 1;
}

.cat-branch-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.12rem 0.4rem;
  border-radius: 5px;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  white-space: nowrap;
  align-self: flex-start;
}

.cat-no-results {
  display: none;
  text-align: center;
  padding: 2.5rem 1rem;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 600;
}

[data-theme="dark"] .cat-no-results {
  color: hsl(var(--muted-foreground));
}

.cat-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-align: center;
  padding: 3.5rem 1.5rem;
  color: #64748b;
}

[data-theme="dark"] .cat-empty {
  color: hsl(var(--muted-foreground));
}

.cat-empty-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: #94a3b8;
}

[data-theme="dark"] .cat-empty-icon {
  background: hsl(var(--secondary));
  border-color: hsl(var(--border));
  color: hsl(var(--muted-foreground));
}

.cat-empty-title {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.95rem;
}

[data-theme="dark"] .cat-empty-title {
  color: hsl(var(--foreground));
}

.cat-empty-desc {
  font-size: 0.82rem;
  max-width: 28rem;
}

/* Kategori ekle formu */
.cat-add-form {
  padding: 1rem;
}

.cat-add-grid {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 1.25rem;
  align-items: start;
}

.cat-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  border: 2px dashed rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  background: #f8fafc;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .cat-dropzone {
  background: hsl(var(--secondary));
  border-color: hsl(var(--border));
}

.cat-dropzone:hover,
.cat-dropzone.is-dragover {
  border-color: var(--brand-primary);
  background: var(--brand-primary-soft);
  box-shadow: 0 0 0 3px rgba(0, 72, 247, 0.08);
}

.cat-dropzone-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1rem;
  text-align: center;
  pointer-events: none;
}

.cat-dropzone.has-image .cat-dropzone-placeholder {
  display: none;
}

.cat-dropzone-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--brand-primary);
}

[data-theme="dark"] .cat-dropzone-icon {
  background: hsl(var(--card));
  border-color: hsl(var(--border));
}

.cat-dropzone .dz-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
}

[data-theme="dark"] .cat-dropzone .dz-title {
  color: hsl(var(--foreground));
}

.cat-dropzone .dz-hint {
  font-size: 0.7rem;
  color: #64748b;
  max-width: 12rem;
  line-height: 1.35;
}

[data-theme="dark"] .cat-dropzone .dz-hint {
  color: hsl(var(--muted-foreground));
}

.cat-dropzone-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.cat-dropzone.has-image .cat-dropzone-preview {
  display: block;
}

.cat-dropzone-badge {
  position: absolute;
  bottom: 0.65rem;
  right: 0.65rem;
  display: none;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.cat-dropzone.has-image .cat-dropzone-badge {
  display: inline-flex;
}

.cat-add-fields {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cat-add-fields .au-btn-add {
  align-self: flex-start;
  margin-top: 0.25rem;
}

@media (max-width: 720px) {
  .cat-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .cat-list-row {
    padding: 0.75rem;
    flex-wrap: wrap;
  }

  .cat-add-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ms-filter {
    flex: 1 1 100%;
    min-width: 0;
  }

  .ms-filter-panel {
    left: 0;
    right: 0;
    width: 100%;
    min-width: 0;
  }
}

/* ===== Ürünler (işletme paneli) ===== */
.au-prod-section .au-cat-head {
  padding: 0.85rem 1rem;
  background: #fafbfc;
}

[data-theme="dark"] .au-prod-section .au-cat-head {
  background: hsl(var(--secondary));
}

.prod-views[data-view="list"] .prod-grid { display: none; }
.prod-views[data-view="grid"] .prod-list { display: none; }

.prod-toolbar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: #fafbfc;
}

[data-theme="dark"] .prod-toolbar {
  background: hsl(var(--secondary) / 0.35);
  border-color: hsl(var(--border));
}

.prod-search {
  flex: 1 1 180px;
  min-width: 0;
  max-width: none;
}

.prod-cat-filter {
  flex: 0 1 180px;
  min-width: 150px;
}

.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.prod-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

[data-theme="dark"] .prod-card {
  background: hsl(var(--card));
  border-color: hsl(var(--border));
}

.prod-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -12px rgba(0, 72, 247, 0.18);
  border-color: rgba(0, 72, 247, 0.35);
}

.prod-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  overflow: hidden;
}

[data-theme="dark"] .prod-card-media {
  background: hsl(var(--secondary));
  color: hsl(var(--muted-foreground));
}

.prod-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prod-card-cat {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  background: rgba(15, 23, 42, 0.65);
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  max-width: calc(100% - 1rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prod-card-price {
  position: absolute;
  bottom: 0.55rem;
  right: 0.55rem;
  font-size: 0.75rem;
  font-weight: 800;
  background: #10b981;
  color: #fff;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px -4px rgba(16, 185, 129, 0.5);
}

.prod-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.85rem 0.9rem 0.95rem;
  flex: 1;
}

.prod-card-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.prod-card-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  word-break: break-word;
}

[data-theme="dark"] .prod-card-name {
  color: hsl(var(--foreground));
}

.prod-card-allergens {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.prod-allergen-chip {
  font-size: 0.62rem;
  font-weight: 700;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  border: 1px solid rgba(0, 72, 247, 0.18);
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
}

.prod-card-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.prod-card-actions form {
  flex: 1;
  display: flex;
  margin: 0;
}

.prod-card-btn {
  flex: 1;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border-radius: 7px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

[data-theme="dark"] .prod-card-btn {
  background: hsl(var(--background));
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}

.prod-card-btn.edit:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.prod-card-btn.delete:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

.prod-list {
  display: flex;
  flex-direction: column;
}

.prod-list-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

[data-theme="dark"] .prod-list-row {
  border-color: hsl(var(--border));
}

.prod-list-row:last-child { border-bottom: none; }

.prod-list-row:hover {
  background: rgba(0, 72, 247, 0.03);
}

[data-theme="dark"] .prod-list-row:hover {
  background: hsl(var(--secondary) / 0.5);
}

.prod-list-row.dragging {
  opacity: 0.4;
  background: var(--brand-primary-soft);
}

.prod-list-row.drag-over-top {
  box-shadow: inset 0 2px 0 0 var(--brand-primary);
}

.prod-list-row.drag-over-bottom {
  box-shadow: inset 0 -2px 0 0 var(--brand-primary);
}

.prod-drag-handle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 28px;
  cursor: grab;
  color: #94a3b8;
  border-radius: 6px;
  touch-action: none;
}

.prod-drag-handle:hover {
  color: #475569;
  background: #f1f5f9;
}

[data-theme="dark"] .prod-drag-handle:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--secondary));
}

.prod-drag-handle:active { cursor: grabbing; }

.prod-list.filtering .prod-drag-handle {
  opacity: 0.35;
  pointer-events: none;
}

.prod-seq {
  flex-shrink: 0;
  min-width: 24px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8;
}

.prod-list-thumb {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

[data-theme="dark"] .prod-list-thumb {
  background: hsl(var(--secondary));
  border-color: hsl(var(--border));
  color: hsl(var(--muted-foreground));
}

.prod-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prod-list-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.prod-list-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
}

[data-theme="dark"] .prod-list-name {
  color: hsl(var(--foreground));
}

.prod-list-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.prod-list-cat {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}

[data-theme="dark"] .prod-list-cat {
  background: hsl(var(--secondary));
  border-color: hsl(var(--border));
  color: hsl(var(--muted-foreground));
}

.prod-branch-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.12rem 0.4rem;
  border-radius: 5px;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  white-space: nowrap;
}

.prod-list-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.prod-list-price {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: #10b981;
  white-space: nowrap;
}

.prod-list-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.prod-list-actions form {
  margin: 0;
  display: flex;
}

.prod-list-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s ease;
}

[data-theme="dark"] .prod-list-btn {
  background: hsl(var(--background));
  border-color: hsl(var(--border));
  color: hsl(var(--muted-foreground));
}

.prod-list-btn.edit:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.prod-list-btn.delete:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

.prod-list-row.is-passive .prod-list-thumb,
.prod-list-row.is-passive .prod-list-main,
.prod-list-row.is-passive .prod-list-price { opacity: 0.45; }

.prod-card.is-passive .prod-card-media,
.prod-card.is-passive .prod-card-name,
.prod-card.is-passive .prod-card-allergens { opacity: 0.45; }

.prod-label-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.prod-label {
  font-size: 0.58rem;
  font-weight: 800;
  color: #fff;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  white-space: nowrap;
}

.prod-no-results {
  display: none;
  text-align: center;
  padding: 2.5rem 1rem;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 600;
}

[data-theme="dark"] .prod-no-results {
  color: hsl(var(--muted-foreground));
}

.prod-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-align: center;
  padding: 3.5rem 1.5rem;
  color: #64748b;
}

[data-theme="dark"] .prod-empty {
  color: hsl(var(--muted-foreground));
}

.prod-empty-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: #94a3b8;
}

[data-theme="dark"] .prod-empty-icon {
  background: hsl(var(--secondary));
  border-color: hsl(var(--border));
  color: hsl(var(--muted-foreground));
}

.prod-empty-title {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.95rem;
}

[data-theme="dark"] .prod-empty-title {
  color: hsl(var(--foreground));
}

.prod-empty-desc {
  font-size: 0.82rem;
  max-width: 28rem;
}

/* Alerjen & etiket seçiciler */
.allergen-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  max-height: 130px;
  overflow-y: auto;
  padding: 0.2rem 0;
}

.allergen-picker label {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  font-weight: 500;
  color: #64748b;
  padding: 0.25rem 0;
  transition: color 0.15s ease;
  white-space: nowrap;
}

[data-theme="dark"] .allergen-picker label {
  color: hsl(var(--muted-foreground));
}

.allergen-picker label:hover { color: #0f172a; }

[data-theme="dark"] .allergen-picker label:hover {
  color: hsl(var(--foreground));
}

.allergen-picker input[type="checkbox"] {
  width: 15px;
  height: 15px;
  min-width: 15px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--brand-primary);
}

.allergen-picker label:has(input:checked) {
  color: #0f172a;
  font-weight: 600;
}

[data-theme="dark"] .allergen-picker label:has(input:checked) {
  color: hsl(var(--foreground));
}

.label-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.label-picker .label-chip {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.label-picker input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.label-picker span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1.5px solid var(--c);
  color: var(--c);
  background: transparent;
  transition: all 0.15s ease;
}

.label-picker span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: currentColor;
  flex-shrink: 0;
}

.label-picker label:hover span {
  background: color-mix(in srgb, var(--c) 12%, transparent);
}

.label-picker input:checked + span {
  background: var(--c);
  color: #fff;
  border-color: var(--c);
}

.prod-edit-preview-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.prod-edit-preview-row.is-marked-remove {
  opacity: 0.45;
}

.prod-edit-preview-row.is-marked-remove .cat-edit-hint {
  text-decoration: line-through;
}

.prod-edit-current {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f1f5f9;
}

.prod-edit-current img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prod-price-compare {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.4;
  margin-top: 0.25rem;
}

.au-modal--prod {
  max-width: 520px !important;
}

/* Ürün ekle formu */
.prod-add-form {
  padding: 1rem;
}

.prod-add-grid {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 1.25rem;
  align-items: start;
}

.prod-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  border: 2px dashed rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  background: #f8fafc;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .prod-dropzone {
  background: hsl(var(--secondary));
  border-color: hsl(var(--border));
}

.prod-dropzone:hover,
.prod-dropzone.is-dragover {
  border-color: var(--brand-primary);
  background: var(--brand-primary-soft);
  box-shadow: 0 0 0 3px rgba(0, 72, 247, 0.08);
}

.prod-dropzone-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1rem;
  text-align: center;
  pointer-events: none;
}

.prod-dropzone.has-image .prod-dropzone-placeholder { display: none; }

.prod-dropzone-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--brand-primary);
}

[data-theme="dark"] .prod-dropzone-icon {
  background: hsl(var(--card));
  border-color: hsl(var(--border));
}

.prod-dropzone .dz-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
}

[data-theme="dark"] .prod-dropzone .dz-title {
  color: hsl(var(--foreground));
}

.prod-dropzone .dz-hint {
  font-size: 0.7rem;
  color: #64748b;
  max-width: 12rem;
  line-height: 1.35;
}

.prod-dropzone-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.prod-dropzone.has-image .prod-dropzone-preview { display: block; }

.prod-dropzone-badge {
  position: absolute;
  bottom: 0.65rem;
  right: 0.65rem;
  display: none;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.prod-dropzone.has-image .prod-dropzone-badge { display: inline-flex; }

.prod-add-fields {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.prod-field-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.prod-add-fields .au-btn-add {
  align-self: flex-start;
  margin-top: 0.25rem;
}

.prod-warn-box {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 1rem;
  margin: 1rem;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #b45309;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
}

.prod-warn-box a {
  color: #d97706;
  font-weight: 700;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .prod-field-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .prod-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .prod-list { gap: 0.75rem; padding: 0.75rem; }

  .prod-list-row {
    position: relative;
    flex-wrap: wrap;
    row-gap: 0.65rem;
    padding: 0.85rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    background: #f8fafc;
  }

  [data-theme="dark"] .prod-list-row {
    background: hsl(var(--secondary) / 0.4);
    border-color: hsl(var(--border));
  }

  .prod-list-row:hover { background: #f8fafc; }

  .prod-drag-handle { display: none; }

  .prod-seq {
    position: absolute;
    top: -8px;
    left: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    color: #fff;
    background: var(--brand-primary);
    box-shadow: 0 2px 6px -1px rgba(0, 72, 247, 0.4);
  }

  .prod-list-thumb { width: 54px; height: 54px; }

  .prod-list-main { flex: 1 1 0; min-width: 0; gap: 0.35rem; }

  .prod-list-meta .prod-list-allergens { display: none; }

  .prod-list-controls {
    flex: 1 1 100%;
    justify-content: flex-start;
    gap: 0.45rem;
    padding-top: 0.7rem;
    border-top: 1px dashed rgba(15, 23, 42, 0.1);
  }

  .prod-list-controls .prod-status-toggle { margin-left: auto; }

  .prod-add-grid { grid-template-columns: 1fr; }
}

/* ---- Fiyat karşılaştırma ---- */
.au-pc-header { align-items: flex-end; }
.au-pc-search {
  display: inline-flex;
  align-items: center;
  min-width: min(260px, 100%);
  max-width: 300px;
  flex: 0 1 300px;
}
.au-pc-stat-below .au-stat-value { color: #059669; }
[data-theme="dark"] .au-pc-stat-below .au-stat-value { color: #34d399; }

.au-pc-stat-btn {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.au-pc-stat-btn:hover {
  border-color: color-mix(in srgb, var(--brand-primary) 40%, hsl(var(--border)));
}
.au-pc-stat-btn.is-active {
  box-shadow: inset 0 0 0 2px var(--brand-primary);
}

.au-pc-panel { padding: 0; overflow: hidden; }
.au-pc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--card));
}
.au-pc-toolbar-text {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  min-width: 0;
}
.au-pc-status-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: hsl(var(--muted-foreground));
}
.au-pc-select {
  min-width: 170px;
  padding: 0.4rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 650;
}

.au-pc-rows { display: flex; flex-direction: column; }
.au-pc-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 0.9fr 0.9fr 0.85fr 0.95fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid hsl(var(--border));
}
.au-pc-row:last-child { border-bottom: none; }
.au-pc-row--head {
  padding: 0.5rem 1.1rem;
  background: #eef2f7;
  border-bottom: 1px solid hsl(var(--border));
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}
[data-theme="dark"] .au-pc-row--head {
  background: rgba(255, 255, 255, 0.04);
  color: hsl(var(--muted-foreground));
}

/* Zebra: tek / çift satır */
.au-pc-row.is-odd {
  background: #ffffff;
}
.au-pc-row.is-even {
  background: #f3f6fb;
}
[data-theme="dark"] .au-pc-row.is-odd {
  background: hsl(var(--card));
}
[data-theme="dark"] .au-pc-row.is-even {
  background: rgba(255, 255, 255, 0.035);
}
.au-pc-row:not(.au-pc-row--head):hover {
  background: color-mix(in srgb, var(--brand-primary) 6%, transparent);
}

.au-pc-col { min-width: 0; }
.au-pc-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: hsl(var(--foreground));
  line-height: 1.3;
}
.au-pc-cat {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.72rem;
  color: hsl(var(--muted-foreground));
}
.au-pc-col--mine strong,
.au-pc-col--avg {
  font-size: 0.88rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--foreground));
}
.au-pc-col--diff {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}
.au-pc-diff {
  font-size: 0.9rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.au-pc-diff--below { color: #059669; }
.au-pc-diff--near { color: #2563eb; }
.au-pc-diff--above { color: #d97706; }
[data-theme="dark"] .au-pc-diff--below { color: #34d399; }
[data-theme="dark"] .au-pc-diff--near { color: #93c5fd; }
[data-theme="dark"] .au-pc-diff--above { color: #fbbf24; }
.au-pc-diff-amt {
  font-size: 0.7rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
}
.au-pc-muted { color: hsl(var(--muted-foreground)); }

.au-pc-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.55rem;
  border: none;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.au-pc-pill:hover { filter: brightness(0.96); transform: translateY(-1px); }
.au-pc-pill--below { background: rgba(16, 185, 129, 0.14); color: #047857; }
.au-pc-pill--near { background: rgba(37, 99, 235, 0.12); color: #1d4ed8; }
.au-pc-pill--above { background: rgba(245, 158, 11, 0.18); color: #b45309; }
.au-pc-pill--unmatched { background: rgba(100, 116, 139, 0.12); color: #475569; }
[data-theme="dark"] .au-pc-pill--below { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
[data-theme="dark"] .au-pc-pill--near { background: rgba(59, 130, 246, 0.22); color: #93c5fd; }
[data-theme="dark"] .au-pc-pill--above { background: rgba(245, 158, 11, 0.22); color: #fbbf24; }
[data-theme="dark"] .au-pc-pill--unmatched { background: rgba(148, 163, 184, 0.14); color: #cbd5e1; }

.au-pc-empty-filter,
.au-pc-note {
  margin: 0;
  font-size: 0.78rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.45;
}
.au-pc-empty-filter { text-align: center; padding: 1rem 0.5rem; }

@media (max-width: 860px) {
  .au-pc-row--head { display: none; }
  .au-pc-row:not(.au-pc-row--head) {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 0.7rem;
    padding: 0.85rem 1rem;
  }
  .au-pc-col--product { grid-column: 1 / -1; }
  .au-pc-col--status { grid-column: 1 / -1; }
  .au-pc-col--mine,
  .au-pc-col--avg,
  .au-pc-col--diff {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
  }
  .au-pc-col--mine::before,
  .au-pc-col--avg::before,
  .au-pc-col--diff::before {
    content: attr(data-label);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground));
  }
}
@media (max-width: 640px) {
  .au-pc-header { align-items: stretch; }
  .au-pc-search { width: 100%; max-width: none; flex: 1 1 auto; }
  .au-pc-toolbar { align-items: stretch; }
  .au-pc-status-filter { width: 100%; justify-content: space-between; }
  .au-pc-select { flex: 1; }
}

/* —— Çevre fiyatları: toplu seçim / tablo —— */
.cp-bulk {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cp-bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.65rem 0.85rem;
  margin: 0 0 0.15rem;
  border: 1px solid hsl(var(--border));
  border-radius: 10px;
  background: hsl(var(--secondary) / 0.45);
}
[data-theme="dark"] .cp-bulk-bar {
  background: hsl(var(--secondary) / 0.35);
}
.cp-bulk-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.cp-check-label {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem !important;
  margin: 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  cursor: pointer;
  user-select: none;
}
.cp-check {
  width: 1rem;
  height: 1rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--brand-primary, #0048f7);
  cursor: pointer;
}
.cp-bulk-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
}
.cp-bulk-delete {
  color: #b91c1c !important;
  border-color: rgba(185, 28, 28, 0.28) !important;
}
.cp-bulk-delete:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.cp-bulk-delete:not(:disabled):hover {
  background: rgba(185, 28, 28, 0.08) !important;
  border-color: rgba(185, 28, 28, 0.45) !important;
  color: #991b1b !important;
}
[data-theme="dark"] .cp-bulk-delete {
  color: #f87171 !important;
  border-color: rgba(248, 113, 113, 0.35) !important;
}
[data-theme="dark"] .cp-bulk-delete:not(:disabled):hover {
  background: rgba(248, 113, 113, 0.12) !important;
  color: #fecaca !important;
}
.cp-table .cp-col-check {
  width: 2.25rem;
  text-align: center;
  vertical-align: middle;
}
.cp-table .cp-col-action {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}
.cp-single-delete {
  color: #b91c1c !important;
  padding: 0.35rem 0.7rem;
}
[data-theme="dark"] .cp-single-delete {
  color: #f87171 !important;
}
.cp-single-delete:hover {
  background: rgba(185, 28, 28, 0.08) !important;
  border-color: rgba(185, 28, 28, 0.4) !important;
}

.cp-list-toolbar {
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}
.cp-list-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: flex-end;
}
.cp-filter-label {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.28rem !important;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
}
.cp-filter-label .au-select {
  min-width: 8.5rem;
}
.cp-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  align-items: center;
  padding: 0.85rem 0 0.25rem;
}
.cp-pagination .au-btn-ghost.is-active {
  font-weight: 700;
  border-color: var(--brand-primary, #0048f7);
  color: var(--brand-primary, #0048f7);
}
.cp-page-ellipsis {
  color: hsl(var(--muted-foreground));
  font-size: 0.85rem;
  padding: 0 0.15rem;
}
