/* ============================================================
   YilmazSocial - Premium App CSS
   Modern, Responsive, Professional
   ============================================================ */

/* --- CSS Variables / Design Tokens --- */
:root {
  --ys-primary: #5d87ff;
  --ys-primary-dark: #4570ea;
  --ys-primary-light: #ecf2ff;
  --ys-primary-rgb: 93, 135, 255;
  --ys-success: #13deb9;
  --ys-success-dark: #0aa085;
  --ys-warning: #ffae1f;
  --ys-warning-dark: #a06800;
  --ys-danger: #fa896b;
  --ys-danger-dark: #cc4922;
  --ys-info: #539bff;
  --ys-info-dark: #1d63c2;
  --ys-bg: #f6f9fc;
  --ys-card: #ffffff;
  --ys-border: #e5eaef;
  --ys-text: #2a3547;
  --ys-muted: #6c757d;
  --ys-radius: 0.75rem;
  --ys-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --ys-shadow-md: 0 6px 24px rgba(0, 0, 0, 0.06);
  --ys-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
  --ys-shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12);
  --ys-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --ys-sidebar-width: 260px;
  --ys-topbar-height: 60px;
}

/* --- Reset & Base --- */
*, *:before, *:after { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, Arial, sans-serif;
  background: var(--ys-bg);
  color: var(--ys-text);
  font-size: 0.92rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(93, 135, 255, 0.2);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(93, 135, 255, 0.4); }

/* --- Selection --- */
::selection {
  background: rgba(93, 135, 255, 0.15);
  color: var(--ys-primary-dark);
}

/* --- Links --- */
a {
  color: var(--ys-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--ys-primary-dark); }

/* --- Buttons --- */
.btn {
  border-radius: 0.5rem;
  font-weight: 500;
  padding: 0.55rem 1.15rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--ys-transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  line-height: 1.5;
  position: relative;
  overflow: hidden;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--ys-primary), var(--ys-primary-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgba(var(--ys-primary-rgb), 0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--ys-primary-dark), #3a5fd9);
  color: #fff;
  box-shadow: 0 6px 20px rgba(var(--ys-primary-rgb), 0.4);
  transform: translateY(-1px);
}
.btn-success {
  background: linear-gradient(135deg, var(--ys-success), var(--ys-success-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgba(19, 222, 185, 0.3);
}
.btn-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(19, 222, 185, 0.4);
  color: #fff;
}

.btn-warning {
  background: linear-gradient(135deg, var(--ys-warning), #e69a00);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 174, 31, 0.3);
}
.btn-warning:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 174, 31, 0.4);
  color: #fff;
}
.btn-danger {
  background: linear-gradient(135deg, var(--ys-danger), var(--ys-danger-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgba(250, 137, 107, 0.3);
}
.btn-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(250, 137, 107, 0.4);
  color: #fff;
}
.btn-light {
  background: #fff;
  border-color: var(--ys-border);
  color: var(--ys-text);
  box-shadow: var(--ys-shadow-sm);
}
.btn-light:hover {
  background: #f8fafc;
  border-color: var(--ys-primary);
  color: var(--ys-primary);
  box-shadow: 0 4px 12px rgba(var(--ys-primary-rgb), 0.1);
}
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.85rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }

/* --- Cards --- */
.card {
  background: var(--ys-card);
  border: 1px solid var(--ys-border);
  border-radius: var(--ys-radius);
  overflow: hidden;
  transition: var(--ys-transition);
  box-shadow: var(--ys-shadow-sm);
}
.card:hover {
  box-shadow: var(--ys-shadow-md);
  transform: translateY(-2px);
}
.card-body { padding: 1.25rem; }
.card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--ys-border);
  font-weight: 600;
  background: linear-gradient(135deg, #fafbfc, #f6f9fc);
}

/* --- Forms --- */
.form-label {
  font-weight: 500;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
  display: block;
  color: var(--ys-text);
}
.form-control, .form-select {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: 1.5px solid var(--ys-border);
  border-radius: 0.5rem;
  background: #fff;
  color: var(--ys-text);
  font-size: 0.92rem;
  transition: var(--ys-transition);
  min-height: 44px;
}
.form-control:focus, .form-select:focus {
  border-color: var(--ys-primary);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(var(--ys-primary-rgb), 0.12), 0 2px 8px rgba(var(--ys-primary-rgb), 0.08);
}
.form-control:hover, .form-select:hover {
  border-color: rgba(var(--ys-primary-rgb), 0.4);
}
.form-control.is-invalid { border-color: var(--ys-danger); }
.form-control.is-invalid:focus {
  box-shadow: 0 0 0 4px rgba(250, 137, 107, 0.12);
}
.input-error { color: var(--ys-danger); font-size: 0.85rem; margin-top: 0.25rem; }
.form-text { color: var(--ys-muted); font-size: 0.85rem; margin-top: 0.3rem; }
textarea.form-control { min-height: 110px; resize: vertical; }

/* --- Alerts --- */
.alert {
  padding: 0.85rem 1.1rem;
  border-radius: 0.6rem;
  border: 1px solid transparent;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: slideDown 0.3s ease;
}
.alert-success { background: rgba(19, 222, 185, 0.08); border-color: rgba(19, 222, 185, 0.2); color: #0aa085; }
.alert-danger { background: rgba(250, 137, 107, 0.08); border-color: rgba(250, 137, 107, 0.2); color: #cc4922; }
.alert-warning { background: rgba(255, 174, 31, 0.08); border-color: rgba(255, 174, 31, 0.2); color: #a06800; }
.alert-info { background: rgba(83, 155, 255, 0.08); border-color: rgba(83, 155, 255, 0.2); color: #1d63c2; }

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3em 0.65em;
  font-size: 0.78em;
  font-weight: 600;
  border-radius: 0.4rem;
  white-space: nowrap;
  transition: var(--ys-transition);
}
.badge-primary { background: rgba(93, 135, 255, 0.12); color: var(--ys-primary); }
.badge-success { background: rgba(19, 222, 185, 0.12); color: #0aa085; }
.badge-warning { background: rgba(255, 174, 31, 0.12); color: #a06800; }
.badge-danger { background: rgba(250, 137, 107, 0.12); color: #cc4922; }
.badge-info { background: rgba(83, 155, 255, 0.12); color: #1d63c2; }
.badge-secondary { background: rgba(108, 117, 125, 0.12); color: #5a6268; }
.badge-dark { background: rgba(42, 53, 71, 0.12); color: #2a3547; }

/* --- Public Header --- */
.public-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ys-border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s ease;
}
.public-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.public-header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}
.brand {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ys-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--ys-transition);
}
.brand:hover { opacity: 0.85; color: var(--ys-primary); }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--ys-primary), var(--ys-primary-dark));
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(var(--ys-primary-rgb), 0.3);
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

.public-header nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.public-header nav a {
  color: var(--ys-text);
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
  transition: var(--ys-transition);
  position: relative;
  margin-right: 0;
}
.public-header nav a:hover {
  color: var(--ys-primary);
  background: var(--ys-primary-light);
}
.public-header nav a.active {
  color: var(--ys-primary);
  background: var(--ys-primary-light);
}

/* Mobile hamburger toggle */
.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: var(--ys-transition);
  font-size: 1.5rem;
  color: var(--ys-text);
}
.mobile-toggle:hover { background: var(--ys-primary-light); }

/* --- Hero Section --- */
.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, #ecf2ff 0%, #f0f5ff 40%, #f6f9fc 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(var(--ys-primary-rgb), 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(19, 222, 185, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  margin: 0 0 1rem;
  background: linear-gradient(135deg, var(--ys-text) 0%, var(--ys-primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.6s ease;
}
.hero p {
  color: var(--ys-muted);
  font-size: 1.15rem;
  max-width: 680px;
  margin: 0 auto 2rem;
  animation: fadeInUp 0.6s ease 0.1s both;
}

/* --- Category Grid --- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.cat-card {
  background: #fff;
  border: 1px solid var(--ys-border);
  border-radius: var(--ys-radius);
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: var(--ys-transition);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ys-primary), var(--ys-info));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ys-shadow-lg);
  border-color: rgba(var(--ys-primary-rgb), 0.2);
}
.cat-card:hover::before { opacity: 1; }
.cat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  transition: var(--ys-transition);
}
.cat-card:hover .cat-icon { transform: scale(1.08); }

/* --- Footer --- */
.public-footer {
  background: linear-gradient(180deg, #1c2536 0%, #141c2b 100%);
  color: #cbd3df;
  padding: 3.5rem 0 1.5rem;
  margin-top: 4rem;
}
.public-footer h6 {
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.public-footer a {
  color: #cbd3df;
  display: block;
  padding: 0.3rem 0;
  transition: var(--ys-transition);
}
.public-footer a:hover { color: #fff; padding-left: 4px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  text-align: center;
  color: #8b97aa;
}

/* --- Auth Pages --- */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #ecf2ff 0%, #f0f5ff 50%, #f6f9fc 100%);
  position: relative;
}
.auth-wrap::before {
  content: '';
  position: absolute;
  top: 10%;
  right: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(var(--ys-primary-rgb), 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid var(--ys-border);
  border-radius: 1.25rem;
  padding: 2.5rem 2rem;
  box-shadow: var(--ys-shadow-lg);
  animation: fadeInUp 0.5s ease;
  position: relative;
  z-index: 1;
}
.auth-card h2 { margin: 0 0 0.25rem; font-size: 1.6rem; font-weight: 700; }
.auth-card .lead { color: var(--ys-muted); margin-bottom: 1.75rem; }

/* --- Panel Layout (App Shell) --- */
.app-shell {
  display: grid;
  grid-template-columns: var(--ys-sidebar-width) 1fr;
  min-height: 100vh;
}

/* Sidebar */
.app-sidebar {
  background: #fff;
  border-right: 1px solid var(--ys-border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  transition: var(--ys-transition);
  z-index: 60;
  scrollbar-width: thin;
}
.app-sidebar::-webkit-scrollbar { width: 4px; }
.app-sidebar::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
}
.app-sidebar .brand {
  display: flex;
  align-items: center;
  font-weight: 700;
  color: var(--ys-primary);
  padding: 0.5rem 1.25rem 1.25rem;
  border-bottom: 1px solid var(--ys-border);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  gap: 0.5rem;
}
.sb-section {
  font-size: 0.7rem;
  color: var(--ys-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.6rem 1.25rem 0.3rem;
  margin-top: 0.75rem;
}
.sb-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1.25rem;
  color: var(--ys-text);
  font-weight: 500;
  transition: var(--ys-transition);
  border-left: 3px solid transparent;
  min-height: 44px;
  font-size: 0.9rem;
}
.sb-link:hover {
  background: var(--ys-primary-light);
  color: var(--ys-primary);
  border-left-color: rgba(var(--ys-primary-rgb), 0.3);
}
.sb-link.active {
  background: var(--ys-primary-light);
  color: var(--ys-primary);
  border-left-color: var(--ys-primary);
  font-weight: 600;
}
.sb-link .badge { margin-left: auto; }
.sb-sub { padding-left: 2.6rem; display: none; }
.sb-link.has-sub.open + .sb-sub { display: block; }
.sb-sub a {
  display: block;
  padding: 0.45rem 0;
  color: var(--ys-muted);
  font-size: 0.88rem;
  transition: var(--ys-transition);
  min-height: 36px;
  display: flex;
  align-items: center;
}
.sb-sub a:hover, .sb-sub a.active { color: var(--ys-primary); }

/* Main Content Area */
.app-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--ys-bg);
}
.app-topbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ys-border);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--ys-topbar-height);
  transition: box-shadow 0.3s ease;
}
.balance-pill {
  background: rgba(19, 222, 185, 0.1);
  color: #0aa085;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  transition: var(--ys-transition);
}
.balance-pill:hover {
  background: rgba(19, 222, 185, 0.15);
  transform: scale(1.02);
}
.profile-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  border: 1px solid var(--ys-border);
  border-radius: 0.6rem;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  transition: var(--ys-transition);
  min-height: 44px;
}
.profile-btn:hover {
  border-color: var(--ys-primary);
  box-shadow: 0 2px 8px rgba(var(--ys-primary-rgb), 0.1);
}
.profile-btn .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ys-primary), var(--ys-primary-dark));
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}
.app-content {
  padding: 1.5rem;
  flex: 1;
  animation: fadeIn 0.3s ease;
}

/* --- Dashboard Stat Cards --- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: #fff;
  border: 1px solid var(--ys-border);
  border-radius: var(--ys-radius);
  transition: var(--ys-transition);
  box-shadow: var(--ys-shadow-sm);
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ys-shadow-md);
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.stat-meta b { font-size: 1.4rem; display: block; line-height: 1.3; }
.stat-meta span { color: var(--ys-muted); font-size: 0.85rem; }

.deposit-cta {
  background: linear-gradient(135deg, #13deb9 0%, #0fc9a7 50%, #0bb89a 100%);
  color: #fff;
  border-radius: var(--ys-radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(19, 222, 185, 0.25);
  transition: var(--ys-transition);
}
.deposit-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(19, 222, 185, 0.35);
}
.deposit-cta a { color: #fff; font-weight: 600; }

/* --- Progress Bar --- */
.progress {
  height: 8px;
  background: #eef1f6;
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--ys-primary), var(--ys-info));
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 999px;
}

/* --- Tables --- */
.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--ys-border);
  border-radius: var(--ys-radius);
  box-shadow: var(--ys-shadow-sm);
  -webkit-overflow-scrolling: touch;
}
.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}
.table th, .table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--ys-border);
  text-align: left;
  font-size: 0.9rem;
  white-space: nowrap;
}
.table th {
  background: linear-gradient(180deg, #f8fafc, #f4f7fa);
  color: var(--ys-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  position: sticky;
  top: 0;
}
.table tbody tr {
  transition: background 0.2s ease;
}
.table tbody tr:hover { background: rgba(var(--ys-primary-rgb), 0.02); }
.table tbody tr:last-child td { border-bottom: none; }

/* --- Tabs --- */
.tabs {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--ys-border);
  margin-bottom: 1.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tab {
  padding: 0.65rem 1.1rem;
  border-bottom: 2px solid transparent;
  color: var(--ys-muted);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: var(--ys-transition);
  white-space: nowrap;
  margin-bottom: -2px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.tab:hover { color: var(--ys-primary); background: var(--ys-primary-light); border-radius: 0.5rem 0.5rem 0 0; }
.tab.active {
  color: var(--ys-primary);
  border-bottom-color: var(--ys-primary);
  font-weight: 600;
}

/* --- FAQ --- */
.faq-item {
  background: #fff;
  border: 1px solid var(--ys-border);
  border-radius: var(--ys-radius);
  margin-bottom: 0.75rem;
  transition: var(--ys-transition);
  overflow: hidden;
}
.faq-item:hover { box-shadow: var(--ys-shadow-sm); }
.faq-q {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 52px;
  transition: var(--ys-transition);
}
.faq-q:hover { color: var(--ys-primary); }
.faq-a {
  padding: 0 1.25rem 1rem;
  color: var(--ys-muted);
  display: none;
  animation: fadeIn 0.3s ease;
}
.faq-item.open .faq-a { display: block; }
.faq-item.open { border-color: rgba(var(--ys-primary-rgb), 0.2); }

/* --- Sections --- */
.section {
  padding: 4rem 0;
  position: relative;
}
.section h2 {
  text-align: center;
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}
.section .lead {
  text-align: center;
  color: var(--ys-muted);
  margin: 0 auto 2.5rem;
  max-width: 680px;
  font-size: 1.05rem;
}

/* --- Sidebar Toggle Button --- */
.sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ys-text);
  width: 44px;
  height: 44px;
  border-radius: 0.5rem;
  transition: var(--ys-transition);
}
.sidebar-toggle:hover { background: var(--ys-primary-light); color: var(--ys-primary); }

/* Sidebar overlay backdrop */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 55;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

/* ============================================================
   KEYFRAME ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Loading spinner */
.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--ys-border);
  border-top-color: var(--ys-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 0.5rem;
}

/* ============================================================
   RESPONSIVE - TABLET (max-width: 992px)
   ============================================================ */
@media (max-width: 992px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .app-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--ys-sidebar-width);
    height: 100vh;
    z-index: 60;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
  }
  .app-sidebar.open {
    transform: translateX(0);
    box-shadow: var(--ys-shadow-xl);
  }
  .sidebar-toggle {
    display: inline-flex;
  }
  .app-content {
    padding: 1.25rem;
  }
  .app-topbar {
    padding: 0.65rem 1rem;
  }
  .stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  .deposit-cta {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  /* Public header responsive */
  .public-header nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 1.5rem 2rem;
    gap: 0.25rem;
    box-shadow: var(--ys-shadow-xl);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
    overflow-y: auto;
  }
  .public-header nav.open {
    transform: translateX(0);
  }
  .public-header nav a {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 0.5rem;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .container {
    padding: 0 1rem;
  }
}

/* ============================================================
   RESPONSIVE - MOBILE (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
  body { font-size: 0.9rem; }

  .container { padding: 0 0.85rem; }

  /* Hero */
  .hero {
    padding: 3rem 0 2.5rem;
  }
  .hero h1 { font-size: 1.75rem; }
  .hero p { font-size: 1rem; margin-bottom: 1.5rem; }

  /* Category grid */
  .cat-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.75rem;
  }
  .cat-card { padding: 1rem; }
  .cat-icon { width: 42px; height: 42px; font-size: 1rem; }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .public-footer { padding: 2.5rem 0 1.5rem; margin-top: 2.5rem; }

  /* Auth */
  .auth-card {
    padding: 1.75rem 1.25rem;
    border-radius: 1rem;
  }
  .auth-card h2 { font-size: 1.4rem; }

  /* Panel */
  .app-content { padding: 1rem; }
  .app-topbar { padding: 0.6rem 0.85rem; }

  /* Stat cards */
  .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .stat-card {
    padding: 0.9rem;
    gap: 0.75rem;
  }
  .stat-icon { width: 40px; height: 40px; font-size: 1rem; }
  .stat-meta b { font-size: 1.15rem; }
  .stat-meta span { font-size: 0.78rem; }

  /* Tables */
  .table-wrap {
    border-radius: 0.5rem;
    margin: 0 -0.25rem;
  }
  .table th, .table td {
    padding: 0.7rem 0.75rem;
    font-size: 0.85rem;
  }

  /* Cards */
  .card-body { padding: 1rem; }
  .card-header { padding: 0.85rem 1rem; }

  /* Buttons - touch targets */
  .btn { min-height: 44px; padding: 0.6rem 1rem; }
  .btn-sm { min-height: 38px; }

  /* Forms - touch targets */
  .form-control, .form-select { min-height: 46px; padding: 0.65rem 0.85rem; }

  /* Tabs scrollable */
  .tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
  .tab { flex-shrink: 0; }

  /* Section */
  .section { padding: 2.5rem 0; }
  .section h2 { font-size: 1.4rem; }
  .section .lead { font-size: 0.95rem; margin-bottom: 1.75rem; }

  /* Balance pill */
  .balance-pill { padding: 0.35rem 0.7rem; font-size: 0.82rem; }

  /* Profile button */
  .profile-btn { padding: 0.35rem 0.6rem; }
  .profile-btn span:not(.avatar) { display: none; }
}

/* ============================================================
   RESPONSIVE - SMALL MOBILE (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
  .hero { padding: 2.5rem 0 2rem; }
  .hero h1 { font-size: 1.5rem; }
  .hero p { font-size: 0.92rem; }

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
  .cat-card { padding: 0.85rem; }
  .cat-icon { width: 38px; height: 38px; border-radius: 10px; }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 1.5rem 1rem;
    border-radius: 0.75rem;
    box-shadow: var(--ys-shadow-md);
  }

  .app-content { padding: 0.75rem; }

  .public-header .nav { padding: 0.7rem 0; }

  .footer-grid { gap: 1.25rem; }

  .deposit-cta { padding: 1.15rem; }

  /* Full width buttons on very small screens */
  .btn-block-xs { display: block; width: 100%; }
}

/* ============================================================
   RESPONSIVE - DESKTOP LARGE (min-width: 993px)
   ============================================================ */
@media (min-width: 993px) {
  .sidebar-toggle { display: none; }
  .mobile-toggle { display: none; }
  .sidebar-overlay { display: none !important; }
}

/* ============================================================
   RESPONSIVE - EXTRA LARGE (min-width: 1400px)
   ============================================================ */
@media (min-width: 1400px) {
  .container { max-width: 1320px; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-muted { color: var(--ys-muted); }
.text-primary { color: var(--ys-primary); }
.text-success { color: var(--ys-success-dark); }
.text-danger { color: var(--ys-danger-dark); }
.text-warning { color: var(--ys-warning-dark); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.w-100 { width: 100%; }
.rounded { border-radius: var(--ys-radius); }

/* Fade in animation for page elements */
.animate-in {
  animation: fadeInUp 0.4s ease both;
}
.animate-in:nth-child(1) { animation-delay: 0s; }
.animate-in:nth-child(2) { animation-delay: 0.05s; }
.animate-in:nth-child(3) { animation-delay: 0.1s; }
.animate-in:nth-child(4) { animation-delay: 0.15s; }
.animate-in:nth-child(5) { animation-delay: 0.2s; }
.animate-in:nth-child(6) { animation-delay: 0.25s; }

/* Hover lift effect */
.hover-lift {
  transition: var(--ys-transition);
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--ys-shadow-lg);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--ys-primary), var(--ys-info));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .app-sidebar,
  .app-topbar,
  .sidebar-toggle,
  .public-header,
  .public-footer { display: none; }
  .app-shell { grid-template-columns: 1fr; }
  .app-content { padding: 0; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}

/* ============================================================
   REDUCED MOTION - Accessibility
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ============================================================
   DARK MODE SUPPORT (optional - follows system preference)
   ============================================================ */
@media (prefers-color-scheme: dark) {
  :root {
    --ys-bg: #0f1419;
    --ys-card: #1a2332;
    --ys-border: #2a3547;
    --ys-text: #e4e8ed;
    --ys-muted: #8b97aa;
  }
}


/* ============================================================
   === ADMIN PREMIUM ===
   Premium SaaS-style admin panel.
   ============================================================ */

:root {
  --ad-primary: #5d87ff;
  --ad-primary-dark: #4570ea;
  --ad-primary-soft: #eef3ff;
  --ad-accent: #8b5cf6;
  --ad-accent-soft: #f3eefe;
  --ad-bg: #f6f9fc;
  --ad-card: #ffffff;
  --ad-text: #111827;
  --ad-text-2: #1f2937;
  --ad-muted: #6b7280;
  --ad-border: #e5e7eb;
  --ad-border-2: #f3f4f6;
  --ad-success: #10b981;
  --ad-success-soft: #d1fae5;
  --ad-danger: #ef4444;
  --ad-danger-soft: #fee2e2;
  --ad-warning: #f59e0b;
  --ad-warning-soft: #fef3c7;
  --ad-info: #3b82f6;
  --ad-info-soft: #dbeafe;
  --ad-radius: 12px;
  --ad-radius-sm: 8px;
  --ad-shadow-xs: 0 1px 2px rgba(17, 24, 39, .05);
  --ad-shadow-sm: 0 2px 8px rgba(17, 24, 39, .04), 0 1px 2px rgba(17, 24, 39, .03);
  --ad-shadow-md: 0 8px 24px rgba(17, 24, 39, .06);
  --ad-shadow-lg: 0 24px 48px rgba(17, 24, 39, .12);
  --ad-sidebar-width: 248px;
}

/* --- Body wrapper override only when admin layout is active --- */
body.admin-body {
  background: var(--ad-bg);
  color: var(--ad-text);
}

/* ===== SHELL ===== */
body.admin-body .app-shell {
  display: grid;
  grid-template-columns: var(--ad-sidebar-width) 1fr;
  min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.ad-sidebar {
  background: #fff;
  border-right: 1px solid var(--ad-border);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden auto;
  display: flex;
  flex-direction: column;
  z-index: 60;
  scrollbar-width: thin;
}
.ad-sidebar::-webkit-scrollbar { width: 4px; }
.ad-sidebar::-webkit-scrollbar-thumb { background: rgba(0,0,0,.08); border-radius: 999px; }

.ad-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--ad-border-2);
  text-decoration: none;
  color: var(--ad-text);
}
.ad-brand:hover { color: var(--ad-text); }
.ad-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: #fff;
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .04em;
}
.ad-brand-text {
  font-weight: 700;
  font-size: .98rem;
  line-height: 1.1;
}
.ad-brand-text small {
  display: block;
  color: var(--ad-muted);
  font-weight: 500;
  font-size: .72rem;
  margin-top: 2px;
  letter-spacing: .02em;
}

.ad-nav { padding: .65rem .65rem 2rem; flex: 1; }
.ad-nav-section {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--ad-muted);
  padding: .9rem .85rem .35rem;
}
.ad-nav-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem .75rem;
  margin: 1px 0;
  border-radius: var(--ad-radius-sm);
  color: var(--ad-text-2);
  text-decoration: none;
  font-weight: 500;
  font-size: .88rem;
  transition: background .15s, color .15s;
  position: relative;
}
.ad-nav-link svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--ad-muted); transition: color .15s; }
.ad-nav-link:hover {
  background: var(--ad-primary-soft);
  color: var(--ad-primary-dark);
}
.ad-nav-link:hover svg { color: var(--ad-primary); }
.ad-nav-link.active {
  background: var(--ad-primary-soft);
  color: var(--ad-primary-dark);
  font-weight: 600;
}
.ad-nav-link.active svg { color: var(--ad-primary); }
.ad-nav-link .ad-pill {
  margin-left: auto;
  background: var(--ad-danger);
  color: #fff;
  font-size: .68rem;
  padding: 1px 7px;
  border-radius: 999px;
  font-weight: 600;
}
.ad-nav-link.active::before {
  content: '';
  position: absolute;
  left: -.65rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--ad-primary);
  border-radius: 0 3px 3px 0;
}

.ad-sidebar-footer {
  padding: .75rem 1rem;
  border-top: 1px solid var(--ad-border-2);
  font-size: .78rem;
  color: var(--ad-muted);
}

/* ===== MAIN ===== */
body.admin-body .app-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--ad-bg);
}

/* ===== TOPBAR ===== */
.ad-topbar {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ad-border);
  padding: .65rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 60px;
}
.ad-topbar-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--ad-border);
  cursor: pointer;
  padding: .4rem;
  border-radius: var(--ad-radius-sm);
  color: var(--ad-text);
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
}
.ad-topbar-toggle:hover { background: var(--ad-bg); border-color: var(--ad-primary); color: var(--ad-primary); }

.ad-search {
  position: relative;
  flex: 1;
  max-width: 380px;
}
.ad-search input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--ad-border);
  background: var(--ad-bg);
  border-radius: var(--ad-radius-sm);
  padding: 0 .75rem 0 2.25rem;
  font-size: .88rem;
  color: var(--ad-text);
  transition: all .2s;
}
.ad-search input:focus {
  outline: none;
  background: #fff;
  border-color: var(--ad-primary);
  box-shadow: 0 0 0 4px rgba(93, 135, 255, .12);
}
.ad-search svg {
  position: absolute;
  left: .65rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--ad-muted);
  pointer-events: none;
}
.ad-search kbd {
  position: absolute;
  right: .5rem;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid var(--ad-border);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: .68rem;
  color: var(--ad-muted);
  font-family: ui-monospace, monospace;
  pointer-events: none;
}

.ad-topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.ad-icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: var(--ad-radius-sm);
  border: 1px solid var(--ad-border);
  background: #fff;
  color: var(--ad-text-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.ad-icon-btn:hover {
  border-color: var(--ad-primary);
  background: var(--ad-primary-soft);
  color: var(--ad-primary);
}
.ad-icon-btn svg { width: 18px; height: 18px; }
.ad-icon-btn .ad-dot {
  position: absolute;
  top: 6px;
  right: 7px;
  background: var(--ad-danger);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid #fff;
}

.ad-profile-btn {
  display: flex;
  align-items: center;
  gap: .55rem;
  background: #fff;
  border: 1px solid var(--ad-border);
  padding: .25rem .65rem .25rem .25rem;
  border-radius: 999px;
  cursor: pointer;
  height: 38px;
  font-weight: 500;
  font-size: .88rem;
  color: var(--ad-text);
  transition: all .2s;
}
.ad-profile-btn:hover { border-color: var(--ad-primary); }
.ad-profile-btn .ad-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f2937, #111827);
  color: #fff;
  font-weight: 700;
  font-size: .72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ad-profile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid var(--ad-border);
  border-radius: var(--ad-radius);
  min-width: 220px;
  box-shadow: var(--ad-shadow-lg);
  z-index: 70;
  overflow: hidden;
  display: none;
}
.ad-profile-menu.open { display: block; }
.ad-profile-menu-head {
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--ad-border-2);
}
.ad-profile-menu-head b { display: block; font-weight: 600; }
.ad-profile-menu-head small { color: var(--ad-muted); font-size: .78rem; }
.ad-profile-menu a, .ad-profile-menu button {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  padding: .6rem 1rem;
  background: none;
  border: none;
  font-size: .88rem;
  color: var(--ad-text-2);
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.ad-profile-menu a:hover, .ad-profile-menu button:hover { background: var(--ad-bg); }
.ad-profile-menu a svg, .ad-profile-menu button svg { width: 16px; height: 16px; color: var(--ad-muted); }
.ad-profile-menu .divider { border-top: 1px solid var(--ad-border-2); margin: 0; }

/* ===== CONTENT ===== */
body.admin-body .app-content {
  padding: 1.5rem;
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* Breadcrumb */
.ad-breadcrumb {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  color: var(--ad-muted);
  margin-bottom: .6rem;
  flex-wrap: wrap;
}
.ad-breadcrumb a { color: var(--ad-muted); text-decoration: none; transition: color .15s; }
.ad-breadcrumb a:hover { color: var(--ad-primary); }
.ad-breadcrumb svg { width: 12px; height: 12px; opacity: .6; }
.ad-breadcrumb .current { color: var(--ad-text); font-weight: 500; }

/* Page header */
.ad-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.ad-page-head h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -.02em;
  color: var(--ad-text);
}
.ad-page-head p { color: var(--ad-muted); margin: .15rem 0 0; font-size: .9rem; }
.ad-page-head .ad-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }

/* ===== CARDS ===== */
body.admin-body .ad-card {
  background: var(--ad-card);
  border: 1px solid var(--ad-border);
  border-radius: var(--ad-radius);
  box-shadow: var(--ad-shadow-xs);
  overflow: hidden;
  transition: box-shadow .2s;
}
body.admin-body .ad-card:hover { box-shadow: var(--ad-shadow-sm); }

.ad-card-head {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--ad-border-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
}
.ad-card-head h3, .ad-card-head h4 {
  margin: 0;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ad-text);
}
.ad-card-head small { color: var(--ad-muted); font-size: .82rem; }
.ad-card-body { padding: 1.25rem; }
.ad-card-foot {
  padding: .85rem 1.25rem;
  border-top: 1px solid var(--ad-border-2);
  background: #fafbfc;
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
}

/* Form section card */
.ad-section {
  background: #fff;
  border: 1px solid var(--ad-border);
  border-radius: var(--ad-radius);
  margin-bottom: 1rem;
  overflow: hidden;
}
.ad-section-head {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--ad-border-2);
}
.ad-section-head h3 {
  margin: 0;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ad-text);
}
.ad-section-head p {
  margin: .2rem 0 0;
  font-size: .82rem;
  color: var(--ad-muted);
}
.ad-section-body { padding: 1.25rem; }

/* ===== KPI CARDS ===== */
.ad-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.ad-kpi {
  background: #fff;
  border: 1px solid var(--ad-border);
  border-radius: var(--ad-radius);
  padding: 1.15rem 1.25rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow .2s, transform .15s;
  display: flex;
  flex-direction: column;
}
.ad-kpi:hover { box-shadow: var(--ad-shadow-sm); transform: translateY(-1px); }
.ad-kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .65rem;
}
.ad-kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ad-kpi-icon svg { width: 18px; height: 18px; }
.ad-kpi-icon.primary { background: var(--ad-primary-soft); color: var(--ad-primary); }
.ad-kpi-icon.success { background: var(--ad-success-soft); color: var(--ad-success); }
.ad-kpi-icon.warning { background: var(--ad-warning-soft); color: #b45309; }
.ad-kpi-icon.danger { background: var(--ad-danger-soft); color: var(--ad-danger); }
.ad-kpi-icon.info { background: var(--ad-info-soft); color: var(--ad-info); }
.ad-kpi-icon.accent { background: var(--ad-accent-soft); color: var(--ad-accent); }

.ad-kpi-trend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: .75rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
}
.ad-kpi-trend.up { background: var(--ad-success-soft); color: #047857; }
.ad-kpi-trend.down { background: var(--ad-danger-soft); color: #b91c1c; }
.ad-kpi-trend svg { width: 11px; height: 11px; }

.ad-kpi-label {
  color: var(--ad-muted);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .01em;
}
.ad-kpi-value {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ad-text);
  margin: 2px 0 0;
  line-height: 1.15;
}
.ad-kpi-sub {
  margin-top: .35rem;
  font-size: .76rem;
  color: var(--ad-muted);
}

/* Sparkline (CSS-only via inline SVG) */
.ad-spark {
  margin-top: .65rem;
  width: 100%;
  height: 32px;
  display: block;
}

/* ===== TABLES ===== */
.ad-table-wrap {
  background: #fff;
  border: 1px solid var(--ad-border);
  border-radius: var(--ad-radius);
  overflow: hidden;
  box-shadow: var(--ad-shadow-xs);
}
.ad-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ad-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.ad-table thead th {
  background: #fafbfc;
  color: var(--ad-muted);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-align: left;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--ad-border);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}
.ad-table tbody td {
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--ad-border-2);
  color: var(--ad-text-2);
  font-size: .88rem;
  vertical-align: middle;
}
.ad-table tbody tr:nth-child(even) td { background: #fcfcfd; }
.ad-table tbody tr:hover td { background: var(--ad-primary-soft); }
.ad-table tbody tr:last-child td { border-bottom: none; }
.ad-table .col-actions { text-align: right; white-space: nowrap; }
.ad-table .col-check { width: 36px; padding-right: 0; }
.ad-table .row-id {
  font-family: ui-monospace, "SFMono-Regular", monospace;
  font-size: .8rem;
  color: var(--ad-muted);
}
.ad-table tbody td a:not(.btn):not(.ad-icon-tip) {
  color: var(--ad-primary-dark);
  font-weight: 500;
  text-decoration: none;
}
.ad-table tbody td a:not(.btn):not(.ad-icon-tip):hover { text-decoration: underline; }

.ad-table-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .85rem 1.25rem;
  border-bottom: 1px solid var(--ad-border-2);
  background: #fff;
  align-items: center;
}
.ad-table-toolbar .ad-bulk {
  font-size: .82rem;
  color: var(--ad-muted);
}

/* Action icon (in tables) */
.ad-icon-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid transparent;
  color: var(--ad-muted);
  transition: all .15s;
  background: transparent;
  cursor: pointer;
}
.ad-icon-tip svg { width: 15px; height: 15px; }
.ad-icon-tip:hover { background: var(--ad-bg); color: var(--ad-primary); border-color: var(--ad-border); }
.ad-icon-tip.danger:hover { background: var(--ad-danger-soft); color: var(--ad-danger); border-color: var(--ad-danger-soft); }
.ad-icon-tip.success:hover { background: var(--ad-success-soft); color: var(--ad-success); border-color: var(--ad-success-soft); }
.ad-icon-tip[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(2px);
  background: #111827;
  color: #fff;
  font-size: .72rem;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s, transform .15s;
  z-index: 10;
}
.ad-icon-tip:hover[data-tip]::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== STATUS PILLS ===== */
.ad-pill-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .76rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.ad-pill-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .8;
}
.ad-pill-status.success { background: var(--ad-success-soft); color: #047857; }
.ad-pill-status.warning { background: var(--ad-warning-soft); color: #b45309; }
.ad-pill-status.danger { background: var(--ad-danger-soft); color: #b91c1c; }
.ad-pill-status.info { background: var(--ad-info-soft); color: #1d4ed8; }
.ad-pill-status.primary { background: var(--ad-primary-soft); color: var(--ad-primary-dark); }
.ad-pill-status.secondary { background: #f3f4f6; color: #4b5563; }
.ad-pill-status.dark { background: #e5e7eb; color: #1f2937; }

/* ===== BUTTONS (admin overrides) ===== */
body.admin-body .btn {
  border-radius: var(--ad-radius-sm);
  font-weight: 500;
  font-size: .88rem;
  padding: .5rem 1rem;
  min-height: 38px;
  box-shadow: none;
  background: #fff;
  border: 1px solid var(--ad-border);
  color: var(--ad-text);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: all .15s;
}
body.admin-body .btn svg { width: 15px; height: 15px; }
body.admin-body .btn:hover { transform: none; }
body.admin-body .btn.btn-primary {
  background: var(--ad-primary);
  border-color: var(--ad-primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(93,135,255,.3);
}
body.admin-body .btn.btn-primary:hover {
  background: var(--ad-primary-dark);
  border-color: var(--ad-primary-dark);
  color: #fff;
  box-shadow: 0 4px 12px rgba(93,135,255,.3);
}
body.admin-body .btn.btn-success {
  background: var(--ad-success);
  border-color: var(--ad-success);
  color: #fff;
  box-shadow: none;
}
body.admin-body .btn.btn-success:hover { background: #059669; border-color: #059669; color: #fff; box-shadow: 0 4px 12px rgba(16,185,129,.3); }
body.admin-body .btn.btn-danger {
  background: var(--ad-danger);
  border-color: var(--ad-danger);
  color: #fff;
}
body.admin-body .btn.btn-danger:hover { background: #dc2626; border-color: #dc2626; color: #fff; box-shadow: 0 4px 12px rgba(239,68,68,.3); }
body.admin-body .btn.btn-warning {
  background: var(--ad-warning);
  border-color: var(--ad-warning);
  color: #fff;
}
body.admin-body .btn.btn-warning:hover { background: #d97706; border-color: #d97706; color: #fff; }
body.admin-body .btn.btn-light, body.admin-body .btn.btn-outline {
  background: #fff;
  border: 1px solid var(--ad-border);
  color: var(--ad-text);
}
body.admin-body .btn.btn-light:hover, body.admin-body .btn.btn-outline:hover {
  background: var(--ad-bg);
  border-color: var(--ad-primary);
  color: var(--ad-primary);
}
body.admin-body .btn.btn-sm { min-height: 32px; padding: .35rem .75rem; font-size: .82rem; }
body.admin-body .btn.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ad-muted);
}
body.admin-body .btn.btn-ghost:hover { background: var(--ad-bg); color: var(--ad-primary); }

/* ===== FORMS (admin overrides) ===== */
body.admin-body .form-control,
body.admin-body .form-select {
  border-color: var(--ad-border);
  background: #fff;
  font-size: .88rem;
  min-height: 40px;
  border-radius: var(--ad-radius-sm);
}
body.admin-body .form-control:focus, body.admin-body .form-select:focus {
  border-color: var(--ad-primary);
  box-shadow: 0 0 0 4px rgba(93,135,255,.12);
}
body.admin-body .form-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--ad-text-2);
  margin-bottom: .35rem;
}
body.admin-body .form-text {
  font-size: .76rem;
  color: var(--ad-muted);
}
body.admin-body textarea.form-control { min-height: 100px; }

/* Toggle/checkbox styles */
.ad-toggle {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  cursor: pointer;
  user-select: none;
  font-size: .85rem;
  padding: .5rem .75rem;
  border: 1px solid var(--ad-border);
  border-radius: var(--ad-radius-sm);
  background: #fff;
  transition: all .15s;
}
.ad-toggle:hover { border-color: var(--ad-primary); background: var(--ad-primary-soft); }
.ad-toggle input { accent-color: var(--ad-primary); margin: 0; }
.ad-toggle.checked { border-color: var(--ad-primary); background: var(--ad-primary-soft); color: var(--ad-primary-dark); font-weight: 500; }

/* ===== ALERTS / TOASTS ===== */
body.admin-body .alert {
  border-radius: var(--ad-radius-sm);
  border: 1px solid transparent;
  padding: .75rem 1rem;
  font-size: .88rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .55rem;
}
body.admin-body .alert svg { width: 18px; height: 18px; flex-shrink: 0; }
body.admin-body .alert-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
body.admin-body .alert-danger { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
body.admin-body .alert-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
body.admin-body .alert-info { background: #eff6ff; color: #1e3a8a; border-color: #bfdbfe; }

/* ===== EMPTY STATE ===== */
.ad-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--ad-muted);
}
.ad-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--ad-primary-soft);
  color: var(--ad-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.ad-empty-icon svg { width: 28px; height: 28px; }
.ad-empty h3 { color: var(--ad-text); margin: 0 0 .35rem; font-size: 1.05rem; font-weight: 600; }
.ad-empty p { margin: 0 0 1.25rem; font-size: .9rem; max-width: 360px; margin-inline: auto; }

/* ===== PAGINATION ===== */
.ad-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--ad-border-2);
  background: #fff;
}
.ad-pagination-info { font-size: .82rem; color: var(--ad-muted); }
.ad-pagination-pages { display: flex; gap: .25rem; align-items: center; }
.ad-pagination-pages a, .ad-pagination-pages span {
  min-width: 32px;
  height: 32px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 500;
  color: var(--ad-text-2);
  text-decoration: none;
  border: 1px solid transparent;
  padding: 0 .55rem;
  transition: all .15s;
}
.ad-pagination-pages a:hover { background: var(--ad-primary-soft); color: var(--ad-primary); border-color: var(--ad-primary-soft); }
.ad-pagination-pages a.active { background: var(--ad-primary); color: #fff; border-color: var(--ad-primary); }
.ad-pagination-pages span.dots { color: var(--ad-muted); }

/* ===== MODAL ===== */
.ad-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, .55);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn .15s;
}
.ad-modal-backdrop.open { display: flex; }
.ad-modal {
  background: #fff;
  border-radius: var(--ad-radius);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow: auto;
  box-shadow: var(--ad-shadow-lg);
  animation: slideUp .2s;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.ad-modal-head {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--ad-border-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ad-modal-head h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.ad-modal-close {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--ad-muted);
  padding: 4px;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ad-modal-close:hover { background: var(--ad-bg); color: var(--ad-text); }
.ad-modal-body { padding: 1.25rem; }
.ad-modal-foot {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--ad-border-2);
  background: #fafbfc;
  display: flex;
  gap: .5rem;
  justify-content: flex-end;
}

/* ===== EDITOR (legal) ===== */
.ad-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--ad-border);
  border-bottom: none;
  border-radius: var(--ad-radius-sm) var(--ad-radius-sm) 0 0;
  background: #fafbfc;
}
.ad-editor-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  color: var(--ad-text-2);
  font-size: .85rem;
  font-weight: 600;
  transition: all .15s;
}
.ad-editor-btn:hover { background: #fff; border-color: var(--ad-border); color: var(--ad-primary); }
.ad-editor-btn svg { width: 14px; height: 14px; }
.ad-editor-sep {
  width: 1px;
  background: var(--ad-border);
  margin: 4px 4px;
}
.ad-editor-textarea {
  font-family: ui-monospace, "SFMono-Regular", "Menlo", monospace;
  font-size: .85rem;
  line-height: 1.6;
  border: 1px solid var(--ad-border);
  border-radius: 0 0 var(--ad-radius-sm) var(--ad-radius-sm);
  padding: 1rem;
  width: 100%;
  min-height: 420px;
  background: #fff;
  resize: vertical;
  tab-size: 2;
}
.ad-editor-textarea:focus { outline: none; border-color: var(--ad-primary); box-shadow: 0 0 0 4px rgba(93,135,255,.12); }

/* ===== TWO-COL LAYOUTS ===== */
.ad-grid-2 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}
.ad-grid-3-1 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}
.ad-grid-equal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 992px) {
  .ad-grid-2, .ad-grid-3-1, .ad-grid-equal { grid-template-columns: 1fr; }
}

/* ===== SIDEBAR (mobile) ===== */
@media (max-width: 992px) {
  body.admin-body .app-shell {
    grid-template-columns: 1fr;
  }
  .ad-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--ad-sidebar-width);
    height: 100vh;
    transform: translateX(-100%);
    transition: transform .25s cubic-bezier(.4, 0, .2, 1);
    z-index: 150;
  }
  .ad-sidebar.open { transform: translateX(0); box-shadow: var(--ad-shadow-lg); }
  .ad-topbar-toggle { display: inline-flex; }
  .ad-search { max-width: none; }
  body.admin-body .app-content { padding: 1rem; }
}

@media (max-width: 768px) {
  .ad-search { display: none; }
  .ad-profile-btn span:not(.ad-avatar) { display: none; }
  .ad-page-head { flex-direction: column; align-items: stretch; }
  .ad-kpi-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .ad-kpi-value { font-size: 1.3rem; }
  .ad-topbar { padding: .55rem .75rem; gap: .5rem; }
  body.admin-body .app-content { padding: .85rem; }
}

@media (max-width: 480px) {
  .ad-kpi-grid { grid-template-columns: 1fr; }
}

/* ===== ADMIN OVERLAY (mobile sidebar) ===== */
.ad-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17,24,39,.45);
  backdrop-filter: blur(2px);
  z-index: 140;
  display: none;
}
.ad-overlay.active { display: block; }

/* ===== TOAST premium ===== */
#ys-toast .alert {
  box-shadow: var(--ad-shadow-md);
  border-width: 1px;
  font-weight: 500;
}

/* ===== UTILITIES ===== */
.ad-flex { display: flex; }
.ad-items-center { align-items: center; }
.ad-justify-between { justify-content: space-between; }
.ad-gap-1 { gap: .5rem; }
.ad-gap-2 { gap: 1rem; }
.ad-gap-3 { gap: 1.5rem; }
.ad-mb-0 { margin-bottom: 0; }
.ad-mb-1 { margin-bottom: .5rem; }
.ad-mb-2 { margin-bottom: 1rem; }
.ad-mb-3 { margin-bottom: 1.5rem; }
.ad-mt-1 { margin-top: .5rem; }
.ad-mt-2 { margin-top: 1rem; }
.ad-mt-3 { margin-top: 1.5rem; }
.ad-text-muted { color: var(--ad-muted); }
.ad-text-success { color: #047857; }
.ad-text-danger { color: #b91c1c; }
.ad-mono { font-family: ui-monospace, "SFMono-Regular", monospace; font-size: .85rem; }

/* ===== USER CELL ===== */
.ad-user-cell {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.ad-user-cell .ad-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f2937, #111827);
  color: #fff;
  font-weight: 700;
  font-size: .72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ad-user-cell .ad-user-info b { display: block; font-weight: 600; color: var(--ad-text); }
.ad-user-cell .ad-user-info small { color: var(--ad-muted); font-size: .75rem; }

/* ===== PROGRESS BAR (admin) ===== */
body.admin-body .progress {
  background: #f3f4f6;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
}
body.admin-body .progress-bar {
  background: linear-gradient(90deg, var(--ad-primary), var(--ad-info));
}


/* === LOGO (premium SVG) === */
.brand-logo {
  height: 42px;
  width: auto;
  display: block;
  transition: transform .2s ease, filter .2s ease;
}
.brand:hover .brand-logo { transform: translateY(-1px); filter: drop-shadow(0 4px 14px rgba(93,135,255,.25)); }

.app-sidebar .brand img,
.ad-sidebar .ad-brand img {
  height: 38px;
  width: auto;
  max-width: 100%;
}

.public-footer .brand img {
  height: 42px;
  width: auto;
}

@media (max-width: 480px){
  .brand-logo { height: 36px; }
  .public-header .brand img { height: 34px; }
}


/* ============================================================
   === CUSTOMER PREMIUM ===
   Müşteri panelini admin paneliyle aynı seviyede premium yap.
   Mümkün olduğunda admin (.ad-*) global sınıflarını yeniden
   kullanır. Müşteriye özgü desenler için "cu-" prefix.
   ============================================================ */

body.customer-body {
  background: var(--ad-bg);
  color: var(--ad-text);
}

/* Wrapper grid */
body.customer-body .app-shell {
  display: grid;
  grid-template-columns: var(--ad-sidebar-width) 1fr;
  min-height: 100vh;
}

body.customer-body .app-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--ad-bg);
}
body.customer-body .app-content {
  padding: 1.5rem;
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* Buttons */
body.customer-body .btn {
  border-radius: var(--ad-radius-sm);
  font-weight: 500;
  font-size: .88rem;
  padding: .5rem 1rem;
  min-height: 38px;
  box-shadow: none;
  background: #fff;
  border: 1px solid var(--ad-border);
  color: var(--ad-text);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: all .15s;
}
body.customer-body .btn svg { width: 15px; height: 15px; }
body.customer-body .btn:hover { transform: none; }
body.customer-body .btn.btn-primary {
  background: var(--ad-primary);
  border-color: var(--ad-primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(93,135,255,.3);
}
body.customer-body .btn.btn-primary:hover {
  background: var(--ad-primary-dark);
  border-color: var(--ad-primary-dark);
  color: #fff;
  box-shadow: 0 4px 12px rgba(93,135,255,.3);
}
body.customer-body .btn.btn-success {
  background: var(--ad-success);
  border-color: var(--ad-success);
  color: #fff;
  box-shadow: none;
}
body.customer-body .btn.btn-success:hover { background: #059669; border-color: #059669; color: #fff; box-shadow: 0 4px 12px rgba(16,185,129,.3); }
body.customer-body .btn.btn-danger {
  background: var(--ad-danger);
  border-color: var(--ad-danger);
  color: #fff;
}
body.customer-body .btn.btn-danger:hover { background: #dc2626; border-color: #dc2626; color: #fff; box-shadow: 0 4px 12px rgba(239,68,68,.3); }
body.customer-body .btn.btn-warning {
  background: var(--ad-warning);
  border-color: var(--ad-warning);
  color: #fff;
}
body.customer-body .btn.btn-warning:hover { background: #d97706; border-color: #d97706; color: #fff; }
body.customer-body .btn.btn-light, body.customer-body .btn.btn-outline {
  background: #fff;
  border: 1px solid var(--ad-border);
  color: var(--ad-text);
}
body.customer-body .btn.btn-light:hover, body.customer-body .btn.btn-outline:hover {
  background: var(--ad-bg);
  border-color: var(--ad-primary);
  color: var(--ad-primary);
}
body.customer-body .btn.btn-sm { min-height: 32px; padding: .35rem .75rem; font-size: .82rem; }
body.customer-body .btn.btn-lg { min-height: 46px; padding: .75rem 1.4rem; font-size: 1rem; }
body.customer-body .btn.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ad-muted);
}
body.customer-body .btn.btn-ghost:hover { background: var(--ad-bg); color: var(--ad-primary); }

/* Forms (customer overrides) */
body.customer-body .form-control,
body.customer-body .form-select {
  border-color: var(--ad-border);
  background: #fff;
  font-size: .9rem;
  min-height: 42px;
  border-radius: var(--ad-radius-sm);
}
body.customer-body .form-control:focus, body.customer-body .form-select:focus {
  border-color: var(--ad-primary);
  box-shadow: 0 0 0 4px rgba(93,135,255,.12);
}
body.customer-body .form-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--ad-text-2);
  margin-bottom: .35rem;
}
body.customer-body .form-text {
  font-size: .76rem;
  color: var(--ad-muted);
}
body.customer-body textarea.form-control { min-height: 100px; }

/* Cards */
body.customer-body .card,
body.customer-body .ad-card {
  background: var(--ad-card);
  border: 1px solid var(--ad-border);
  border-radius: var(--ad-radius);
  box-shadow: var(--ad-shadow-xs);
  overflow: hidden;
  transition: box-shadow .2s;
}
body.customer-body .card:hover,
body.customer-body .ad-card:hover { box-shadow: var(--ad-shadow-sm); transform: none; }
body.customer-body .card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--ad-border-2);
  background: #fff;
  font-weight: 600;
  font-size: .95rem;
  color: var(--ad-text);
}
body.customer-body .card-body { padding: 1.25rem; }

/* Alerts */
body.customer-body .alert {
  border-radius: var(--ad-radius-sm);
  border: 1px solid transparent;
  padding: .75rem 1rem;
  font-size: .88rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .55rem;
}
body.customer-body .alert svg { width: 18px; height: 18px; flex-shrink: 0; }
body.customer-body .alert-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
body.customer-body .alert-danger { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
body.customer-body .alert-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
body.customer-body .alert-info { background: #eff6ff; color: #1e3a8a; border-color: #bfdbfe; }
body.customer-body .alert-secondary { background: #f3f4f6; color: #374151; border-color: #e5e7eb; }

/* Progress bar */
body.customer-body .progress {
  background: #f3f4f6;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
}
body.customer-body .progress.lg { height: 10px; }
body.customer-body .progress-bar {
  background: linear-gradient(90deg, var(--ad-primary), var(--ad-info));
  transition: width .6s cubic-bezier(.4,0,.2,1);
}
body.customer-body .progress-bar.success { background: linear-gradient(90deg, var(--ad-success), #34d399); }
body.customer-body .progress-bar.warning { background: linear-gradient(90deg, var(--ad-warning), #fbbf24); }

/* Badges */
body.customer-body .badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: .72rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
}
body.customer-body .badge-primary { background: var(--ad-primary-soft); color: var(--ad-primary-dark); }
body.customer-body .badge-success { background: var(--ad-success-soft); color: #047857; }
body.customer-body .badge-warning { background: var(--ad-warning-soft); color: #b45309; }
body.customer-body .badge-danger { background: var(--ad-danger-soft); color: #b91c1c; }
body.customer-body .badge-info { background: var(--ad-info-soft); color: #1d4ed8; }
body.customer-body .badge-secondary { background: #f3f4f6; color: #4b5563; }
body.customer-body .badge-dark { background: #e5e7eb; color: #1f2937; }

/* ===== CUSTOMER SIDEBAR ===== */
.cu-sidebar {
  background: #fff;
  border-right: 1px solid var(--ad-border);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden auto;
  display: flex;
  flex-direction: column;
  z-index: 60;
  scrollbar-width: thin;
}
.cu-sidebar::-webkit-scrollbar { width: 4px; }
.cu-sidebar::-webkit-scrollbar-thumb { background: rgba(0,0,0,.08); border-radius: 999px; }

.cu-brand {
  display: block;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--ad-border-2);
  text-decoration: none;
  color: var(--ad-text);
}
.cu-brand:hover { color: var(--ad-text); }
.cu-brand img { display: block; }
.cu-brand-sub {
  display: block;
  font-size: .7rem;
  color: var(--ad-muted);
  margin-top: .2rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.cu-nav { padding: .65rem .65rem 2rem; flex: 1; }
.cu-nav-section {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--ad-muted);
  padding: .9rem .85rem .35rem;
}
.cu-nav-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem .75rem;
  margin: 1px 0;
  border-radius: var(--ad-radius-sm);
  color: var(--ad-text-2);
  text-decoration: none;
  font-weight: 500;
  font-size: .88rem;
  transition: background .15s, color .15s;
  position: relative;
}
.cu-nav-link svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--ad-muted); transition: color .15s; }
.cu-nav-link:hover {
  background: var(--ad-primary-soft);
  color: var(--ad-primary-dark);
}
.cu-nav-link:hover svg { color: var(--ad-primary); }
.cu-nav-link.active {
  background: var(--ad-primary-soft);
  color: var(--ad-primary-dark);
  font-weight: 600;
}
.cu-nav-link.active svg { color: var(--ad-primary); }
.cu-nav-link .cu-pill {
  margin-left: auto;
  background: var(--ad-danger);
  color: #fff;
  font-size: .68rem;
  padding: 1px 7px;
  border-radius: 999px;
  font-weight: 600;
}
.cu-nav-link.active::before {
  content: '';
  position: absolute;
  left: -.65rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--ad-primary);
  border-radius: 0 3px 3px 0;
}
.cu-nav-link .cu-mini {
  margin-left: auto;
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: var(--ad-accent-soft);
  color: var(--ad-accent);
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 700;
}
.cu-sidebar-footer {
  padding: .75rem 1rem;
  border-top: 1px solid var(--ad-border-2);
  font-size: .78rem;
  color: var(--ad-muted);
}

/* ===== CUSTOMER TOPBAR ===== */
.cu-topbar {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ad-border);
  padding: .65rem 1.5rem;
  display: flex;
  align-items: center;
  gap: .85rem;
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 60px;
}
.cu-topbar-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--ad-border);
  cursor: pointer;
  padding: .4rem;
  border-radius: var(--ad-radius-sm);
  color: var(--ad-text);
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
}
.cu-topbar-toggle:hover { background: var(--ad-bg); border-color: var(--ad-primary); color: var(--ad-primary); }

.cu-balance-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 1px solid #a7f3d0;
  color: #047857;
  font-weight: 700;
  padding: 0 .25rem 0 .85rem;
  border-radius: 999px;
  height: 38px;
  font-size: .9rem;
  text-decoration: none;
  transition: all .15s;
}
.cu-balance-pill:hover {
  border-color: var(--ad-success);
  box-shadow: 0 4px 12px rgba(16,185,129,.18);
  color: #047857;
}
.cu-balance-pill svg { width: 16px; height: 16px; }
.cu-balance-pill .cu-balance-amount { line-height: 1; }
.cu-balance-pill .cu-balance-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--ad-success);
  color: #fff;
  border-radius: 999px;
  margin-left: .15rem;
  transition: background .15s;
}
.cu-balance-pill:hover .cu-balance-add { background: #059669; }
.cu-balance-pill .cu-balance-add svg { width: 14px; height: 14px; }

.cu-topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.cu-icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: var(--ad-radius-sm);
  border: 1px solid var(--ad-border);
  background: #fff;
  color: var(--ad-text-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  text-decoration: none;
}
.cu-icon-btn:hover {
  border-color: var(--ad-primary);
  background: var(--ad-primary-soft);
  color: var(--ad-primary);
}
.cu-icon-btn svg { width: 18px; height: 18px; }
.cu-icon-btn .cu-dot {
  position: absolute;
  top: 6px;
  right: 7px;
  background: var(--ad-danger);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid #fff;
}

.cu-profile-btn {
  display: flex;
  align-items: center;
  gap: .55rem;
  background: #fff;
  border: 1px solid var(--ad-border);
  padding: .25rem .65rem .25rem .25rem;
  border-radius: 999px;
  cursor: pointer;
  height: 38px;
  font-weight: 500;
  font-size: .88rem;
  color: var(--ad-text);
  transition: all .2s;
}
.cu-profile-btn:hover { border-color: var(--ad-primary); }
.cu-profile-btn .cu-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ad-primary), var(--ad-primary-dark));
  color: #fff;
  font-weight: 700;
  font-size: .72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cu-profile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid var(--ad-border);
  border-radius: var(--ad-radius);
  min-width: 240px;
  box-shadow: var(--ad-shadow-lg);
  z-index: 70;
  overflow: hidden;
  display: none;
}
.cu-profile-menu.open { display: block; }
.cu-profile-menu-head {
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--ad-border-2);
}
.cu-profile-menu-head b { display: block; font-weight: 600; }
.cu-profile-menu-head small { color: var(--ad-muted); font-size: .78rem; }
.cu-profile-menu a, .cu-profile-menu button {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  padding: .6rem 1rem;
  background: none;
  border: none;
  font-size: .88rem;
  color: var(--ad-text-2);
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.cu-profile-menu a:hover, .cu-profile-menu button:hover { background: var(--ad-bg); }
.cu-profile-menu a svg, .cu-profile-menu button svg { width: 16px; height: 16px; color: var(--ad-muted); }
.cu-profile-menu .divider { border-top: 1px solid var(--ad-border-2); }

/* ===== CUSTOMER PAGE HEAD / HERO ===== */
body.customer-body .cu-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
body.customer-body .cu-page-head h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -.02em;
  color: var(--ad-text);
}
body.customer-body .cu-page-head p { color: var(--ad-muted); margin: .15rem 0 0; font-size: .9rem; }
body.customer-body .cu-page-head .cu-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }

.cu-hero {
  background: linear-gradient(135deg, #5d87ff 0%, #7e60d8 50%, #8b5cf6 100%);
  color: #fff;
  border-radius: var(--ad-radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(93,135,255,.25);
}
.cu-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 90% -20%, rgba(255,255,255,.18), transparent 60%),
    radial-gradient(400px 200px at 0% 110%, rgba(255,255,255,.10), transparent 60%);
  pointer-events: none;
}
.cu-hero h2 {
  margin: 0 0 .35rem;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.cu-hero p {
  margin: 0;
  opacity: .92;
  font-size: .95rem;
  max-width: 560px;
}
.cu-hero .cu-hero-cta {
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
}
.cu-hero .cu-hero-cta .btn {
  background: #fff;
  color: var(--ad-primary-dark);
  border-color: #fff;
  font-weight: 600;
}
.cu-hero .cu-hero-cta .btn:hover { background: var(--ad-primary-soft); color: var(--ad-primary-dark); border-color: var(--ad-primary-soft); }
.cu-hero .cu-hero-cta .btn-glass {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.3);
  color: #fff;
  backdrop-filter: blur(6px);
}
.cu-hero .cu-hero-cta .btn-glass:hover { background: rgba(255,255,255,.25); color: #fff; border-color: rgba(255,255,255,.4); }

/* Category quick-launch grid */
.cu-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.cu-cat-card {
  background: #fff;
  border: 1px solid var(--ad-border);
  border-radius: var(--ad-radius);
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  color: var(--ad-text);
  position: relative;
  overflow: hidden;
}
.cu-cat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ad-primary), var(--ad-accent));
  opacity: 0;
  transition: opacity .2s;
}
.cu-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ad-shadow-md);
  border-color: var(--ad-primary);
  color: var(--ad-text);
}
.cu-cat-card:hover::before { opacity: 1; }
.cu-cat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: .65rem;
  letter-spacing: .02em;
  transition: transform .2s;
}
.cu-cat-card:hover .cu-cat-icon { transform: scale(1.08); }
.cu-cat-name {
  display: block;
  font-weight: 600;
  font-size: .88rem;
  line-height: 1.2;
}
.cu-cat-sub {
  display: block;
  font-size: .72rem;
  color: var(--ad-muted);
  margin-top: 4px;
}

/* ===== KPI ROW for customer ===== */
body.customer-body .ad-kpi-grid { margin-bottom: 1.5rem; }

/* ===== Empty state ===== */
.cu-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--ad-muted);
}
.cu-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--ad-primary-soft);
  color: var(--ad-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.cu-empty-icon svg { width: 28px; height: 28px; }
.cu-empty h3 { color: var(--ad-text); margin: 0 0 .35rem; font-size: 1.05rem; font-weight: 600; }
.cu-empty p { margin: 0 0 1.25rem; font-size: .9rem; max-width: 360px; margin-inline: auto; }

/* ===== Filter tabs (admin-like) ===== */
.cu-tabs {
  display: flex;
  gap: .25rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--ad-border);
  margin-bottom: 1.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.cu-tab {
  padding: .55rem .85rem;
  border-bottom: 2px solid transparent;
  color: var(--ad-muted);
  font-weight: 500;
  font-size: .85rem;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
  margin-bottom: -1px;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.cu-tab:hover { color: var(--ad-primary); }
.cu-tab.active {
  color: var(--ad-primary);
  border-bottom-color: var(--ad-primary);
  font-weight: 600;
}
.cu-tab .cu-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: .7rem;
  font-weight: 600;
}
.cu-tab.active .cu-tab-count { background: var(--ad-primary-soft); color: var(--ad-primary-dark); }

/* ===== NEW ORDER 3-step wizard ===== */
.cu-wizard {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 1100px) {
  .cu-wizard { grid-template-columns: 1fr; }
}

.cu-steps {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.cu-step {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .85rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--ad-border);
  color: var(--ad-muted);
  font-size: .82rem;
  font-weight: 500;
}
.cu-step .cu-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
}
.cu-step.active {
  background: var(--ad-primary-soft);
  border-color: rgba(93,135,255,.4);
  color: var(--ad-primary-dark);
}
.cu-step.active .cu-step-num { background: var(--ad-primary); color: #fff; }
.cu-step.done {
  background: var(--ad-success-soft);
  border-color: rgba(16,185,129,.3);
  color: #047857;
}
.cu-step.done .cu-step-num { background: var(--ad-success); color: #fff; }
.cu-steps-sep {
  flex: 0 0 24px;
  height: 1px;
  background: var(--ad-border);
}

.cu-step-card {
  background: #fff;
  border: 1px solid var(--ad-border);
  border-radius: var(--ad-radius);
  margin-bottom: 1rem;
  overflow: hidden;
}
.cu-step-card-head {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--ad-border-2);
  display: flex;
  align-items: center;
  gap: .75rem;
}
.cu-step-card-head .cu-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ad-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .76rem;
  font-weight: 700;
  flex-shrink: 0;
}
.cu-step-card-head h3 {
  margin: 0;
  font-size: .98rem;
  font-weight: 600;
  color: var(--ad-text);
}
.cu-step-card-head p {
  margin: .15rem 0 0;
  font-size: .82rem;
  color: var(--ad-muted);
}
.cu-step-card-body { padding: 1.25rem; }

/* Service selectable cards */
.cu-svc-list { display: grid; gap: .5rem; }
.cu-svc-item {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  border: 1px solid var(--ad-border);
  border-radius: var(--ad-radius-sm);
  background: #fff;
  cursor: pointer;
  transition: all .15s;
}
.cu-svc-item:hover { border-color: var(--ad-primary); background: var(--ad-primary-soft); }
.cu-svc-item.selected {
  border-color: var(--ad-primary);
  background: var(--ad-primary-soft);
  box-shadow: 0 0 0 3px rgba(93,135,255,.1);
}
.cu-svc-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--ad-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  flex-shrink: 0;
}
.cu-svc-item.selected .cu-svc-radio { border-color: var(--ad-primary); }
.cu-svc-item.selected .cu-svc-radio::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ad-primary);
}
.cu-svc-meta b {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  color: var(--ad-text);
}
.cu-svc-meta small {
  display: block;
  color: var(--ad-muted);
  font-size: .76rem;
  margin-top: 2px;
}
.cu-svc-price {
  font-weight: 700;
  color: var(--ad-primary-dark);
  font-size: .92rem;
  text-align: right;
}
.cu-svc-price small {
  display: block;
  color: var(--ad-muted);
  font-weight: 500;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* Quantity quick buttons */
.cu-qty-quick { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .5rem; }
.cu-qty-quick button {
  background: #fff;
  border: 1px solid var(--ad-border);
  border-radius: 999px;
  padding: .25rem .75rem;
  font-size: .78rem;
  cursor: pointer;
  color: var(--ad-text-2);
  font-weight: 500;
  transition: all .15s;
}
.cu-qty-quick button:hover { background: var(--ad-primary-soft); border-color: var(--ad-primary); color: var(--ad-primary-dark); }

/* Sticky summary (right column) */
.cu-summary {
  position: sticky;
  top: 76px;
  background: #fff;
  border: 1px solid var(--ad-border);
  border-radius: var(--ad-radius);
  overflow: hidden;
  box-shadow: var(--ad-shadow-sm);
}
.cu-summary-head {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--ad-border-2);
}
.cu-summary-head h3 { margin: 0; font-size: .98rem; font-weight: 600; }
.cu-summary-body { padding: 1.25rem; }
.cu-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem 0;
  font-size: .88rem;
  color: var(--ad-text-2);
}
.cu-summary-row + .cu-summary-row { border-top: 1px dashed var(--ad-border-2); }
.cu-summary-row b { font-weight: 600; }
.cu-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, var(--ad-primary-soft), #f5f3ff);
  border-top: 1px solid var(--ad-border-2);
}
.cu-summary-total .cu-summary-total-label {
  font-size: .82rem;
  color: var(--ad-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
}
.cu-summary-total .cu-summary-total-value {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ad-primary-dark);
  letter-spacing: -.01em;
}
.cu-summary-foot {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--ad-border-2);
}
.cu-summary-bal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  color: var(--ad-muted);
  margin-bottom: .65rem;
}
.cu-summary-bal b { color: var(--ad-text); font-weight: 600; }
.cu-summary-foot .btn-primary { width: 100%; min-height: 46px; font-size: .95rem; font-weight: 600; }
.cu-summary-warn {
  margin-top: .75rem;
  padding: .55rem .75rem;
  background: var(--ad-warning-soft);
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: var(--ad-radius-sm);
  font-size: .78rem;
  display: flex;
  gap: .4rem;
  align-items: flex-start;
}
.cu-summary-warn svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; }

/* ===== ORDER DETAIL ===== */
.cu-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}
@media (max-width: 992px) {
  .cu-detail-grid { grid-template-columns: 1fr; }
}
.cu-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1rem 0;
}
.cu-stat-row > div {
  background: var(--ad-bg);
  border-radius: var(--ad-radius-sm);
  padding: .85rem 1rem;
  text-align: left;
}
.cu-stat-row .cu-stat-label {
  font-size: .72rem;
  color: var(--ad-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 600;
}
.cu-stat-row .cu-stat-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ad-text);
  margin-top: 2px;
}

.cu-info-list { list-style: none; padding: 0; margin: 0; }
.cu-info-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px dashed var(--ad-border-2);
  font-size: .88rem;
}
.cu-info-list li:last-child { border-bottom: none; }
.cu-info-list .cu-info-key { color: var(--ad-muted); }
.cu-info-list .cu-info-val { color: var(--ad-text); font-weight: 500; word-break: break-word; }

/* ===== BALANCE PAGE ===== */
.cu-amount-quick { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .55rem; }
.cu-amount-quick button {
  flex: 1 1 auto;
  min-width: 70px;
  background: #fff;
  border: 1px solid var(--ad-border);
  border-radius: var(--ad-radius-sm);
  padding: .5rem .65rem;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--ad-text-2);
  transition: all .15s;
}
.cu-amount-quick button:hover { border-color: var(--ad-primary); background: var(--ad-primary-soft); color: var(--ad-primary-dark); }

.cu-bank-info {
  display: grid;
  gap: .65rem;
}
.cu-bank-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: .75rem;
  padding: .65rem .85rem;
  background: var(--ad-bg);
  border-radius: var(--ad-radius-sm);
  font-size: .88rem;
}
.cu-bank-row .cu-bank-key { color: var(--ad-muted); font-weight: 500; }
.cu-bank-row .cu-bank-val {
  font-family: ui-monospace, "SFMono-Regular", monospace;
  font-weight: 600;
  color: var(--ad-text);
  word-break: break-all;
}
.cu-copy-btn {
  border: 1px solid var(--ad-border);
  background: #fff;
  color: var(--ad-muted);
  border-radius: 6px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .15s;
}
.cu-copy-btn:hover { color: var(--ad-primary); border-color: var(--ad-primary); background: var(--ad-primary-soft); }
.cu-copy-btn svg { width: 14px; height: 14px; }

/* ===== API CODE BLOCK ===== */
.cu-code {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: var(--ad-radius-sm);
  padding: 1rem 1.25rem;
  font-family: ui-monospace, "SFMono-Regular", monospace;
  font-size: .82rem;
  line-height: 1.6;
  overflow: auto;
  position: relative;
  margin: 0;
}
.cu-code .cu-code-comment { color: #94a3b8; }
.cu-code .cu-code-kw { color: #7dd3fc; }
.cu-code-copy {
  position: absolute;
  top: .5rem;
  right: .5rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #e2e8f0;
  border-radius: 6px;
  padding: .25rem .55rem;
  font-size: .72rem;
  cursor: pointer;
}
.cu-code-copy:hover { background: rgba(255,255,255,.18); }

/* ===== REFERRAL HERO ===== */
.cu-ref-hero {
  background: linear-gradient(135deg, #fde68a 0%, #fbbf24 50%, #f59e0b 100%);
  border-radius: var(--ad-radius);
  padding: 2rem 1.75rem;
  color: #78350f;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.cu-ref-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 250px at 100% 0%, rgba(255,255,255,.35), transparent 60%);
  pointer-events: none;
}
.cu-ref-hero h2 {
  margin: 0 0 .35rem;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.cu-ref-hero p {
  margin: 0;
  font-size: .95rem;
  opacity: .9;
  max-width: 560px;
}
.cu-ref-hero .cu-ref-amount {
  font-size: 2.4rem;
  font-weight: 900;
  background: linear-gradient(135deg, #b45309, #78350f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* ===== TICKET CHAT ===== */
.cu-chat { display: flex; flex-direction: column; gap: .75rem; }
.cu-chat-msg {
  background: #fff;
  border: 1px solid var(--ad-border);
  border-radius: var(--ad-radius);
  padding: .85rem 1rem;
  max-width: 75%;
  position: relative;
}
.cu-chat-msg.mine {
  align-self: flex-end;
  background: var(--ad-primary-soft);
  border-color: rgba(93,135,255,.3);
}
.cu-chat-msg.theirs { align-self: flex-start; }
.cu-chat-head {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  font-size: .76rem;
  color: var(--ad-muted);
  margin-bottom: .35rem;
}
.cu-chat-head b { color: var(--ad-text-2); font-weight: 600; }
.cu-chat-body { white-space: pre-wrap; line-height: 1.55; font-size: .9rem; }

/* ===== RESPONSIVE (sidebar mobile, etc.) ===== */
@media (max-width: 992px) {
  body.customer-body .app-shell {
    grid-template-columns: 1fr;
  }
  .cu-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--ad-sidebar-width);
    height: 100vh;
    transform: translateX(-100%);
    transition: transform .25s cubic-bezier(.4, 0, .2, 1);
    z-index: 150;
  }
  .cu-sidebar.open { transform: translateX(0); box-shadow: var(--ad-shadow-lg); }
  .cu-topbar-toggle { display: inline-flex; }
  body.customer-body .app-content { padding: 1rem; }
}
@media (max-width: 768px) {
  .cu-balance-pill .cu-balance-amount { font-size: .82rem; }
  .cu-profile-btn span:not(.cu-avatar) { display: none; }
  .cu-page-head { flex-direction: column; align-items: stretch; }
  .cu-hero { padding: 1.25rem; }
  .cu-hero h2 { font-size: 1.2rem; }
  .cu-stat-row { grid-template-columns: 1fr; }
  .cu-bank-row { grid-template-columns: 1fr; }
  .cu-bank-row .cu-bank-key { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
  body.customer-body .app-content { padding: .85rem; }
  .cu-topbar { padding: .55rem .75rem; gap: .5rem; }
}
@media (max-width: 480px) {
  .cu-balance-pill { padding: 0 .15rem 0 .65rem; height: 34px; font-size: .82rem; }
  .cu-balance-pill .cu-balance-add { width: 24px; height: 24px; }
}
/* === END CUSTOMER PREMIUM === */


/* === HERO premium === */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .85rem;
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(93,135,255,.2);
  color: var(--ys-primary-dark);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero-badge svg { color: #f59e0b; }
.hero h1 { display: flex; flex-direction: column; align-items: center; gap: .25rem; }
.hero-grad {
  background: linear-gradient(135deg, #5d87ff 0%, #7b6cff 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-cta {
  display: inline-flex;
  gap: .65rem;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-lg { padding: .75rem 1.5rem; font-size: 1rem; min-height: 48px; }
.hero-stars {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .65rem;
  color: var(--ys-muted);
  font-size: .85rem;
}
.hero-stars span { color: #f59e0b; font-size: 1.1rem; letter-spacing: 2px; }

/* Cat icon SVG centered */
.cat-icon svg { display: block; }

@media (max-width: 768px) {
  .hero { padding: 3rem 1rem 2.5rem; }
  .hero h1 { font-size: 1.85rem; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; }
}


/* =====================================================
 * SEO sayfalari - kategori, landing'ler
 * ===================================================== */
.seo-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
  margin-bottom: 1rem;
  font-size: .9rem;
  color: var(--ys-muted);
}
.seo-breadcrumb a {
  color: var(--ys-muted);
  text-decoration: none;
  transition: color .2s;
}
.seo-breadcrumb a:hover { color: var(--ys-primary); }
.seo-breadcrumb .sep { color: #c7d0de; }
.seo-breadcrumb .current { color: var(--ys-text); font-weight: 600; }

.seo-cat-head {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  margin: 1rem 0 1.5rem;
}
.seo-cat-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.6rem;
  box-shadow: 0 8px 24px rgba(93,135,255,.18);
}
.seo-cat-icon svg { display: block; }
.seo-cat-head h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.25rem);
  margin: 0 0 .25rem;
  line-height: 1.15;
}
.seo-cat-head .lead { margin: 0; color: var(--ys-muted); }

.seo-cat-intro {
  background: #fff;
  border: 1px solid var(--ys-border);
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  margin: 1rem 0 1.5rem;
  box-shadow: var(--ys-shadow-sm);
}
.seo-cat-intro p { margin: 0 0 .75rem; line-height: 1.7; }
.seo-cat-intro p:last-child { margin-bottom: 0; }

.seo-info-block {
  background: linear-gradient(135deg, rgba(93,135,255,.05), rgba(139,92,246,.05));
  border: 1px solid rgba(93,135,255,.12);
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
}
.seo-info-block p { line-height: 1.7; margin: 0 0 .75rem; }
.seo-info-block p:last-child { margin-bottom: 0; }

.seo-pros { padding-left: 1.25rem; line-height: 1.8; }
.seo-pros li { margin-bottom: .5rem; }

/* Testimonial card */
.testimonial-card {
  background: #fff;
  border: 1px solid var(--ys-border);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: var(--ys-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.testimonial-card .t-stars { color: #f59e0b; letter-spacing: 2px; font-size: 1rem; }
.testimonial-card p { margin: 0; line-height: 1.6; color: var(--ys-text); }
.testimonial-card strong { font-weight: 700; }

@media (max-width: 720px) {
  .seo-cat-head { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .seo-cat-icon { width: 52px; height: 52px; border-radius: 13px; }
}
