@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
  /* v2 — turuncu + siyah (açık tema, landing uyumlu) */
  --primary: #F97316;
  --primary-hover: #EA580C;
  --primary-light: rgba(249, 115, 22, 0.12);
  --primary-dim: rgba(249, 115, 22, 0.06);

  --bg-body: #f4f5f7;
  --bg-surface: #FFFFFF;
  --bg-surface-hover: #F5F5F4;

  --text-main: #17181c;
  --text-muted: #6b7280;
  --text-light: #9ca3af;

  --border-color: #e8eaee;
  --border-light: #eef0f3;

  --success: #10b981;
  --success-bg: #d1fae5;
  --danger: #ef4444;
  --danger-bg: #fee2e2;
  --warning: #f59e0b;
  --warning-bg: #fef3c7;
  --info: #3b82f6;
  --info-bg: #dbeafe;

  --font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.06);

  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  --sidebar-width: 272px;
  --topbar-height: 60px;
}

/* ──────────────────────────────────────────────────────────
   TEMEL SIFIRLAMA (RESET) VE GENEL AYARLAR
────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0; padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--primary-hover);
}

img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ──────────────────────────────────────────────────────────
   LAYOUT (SIDEBAR + MAIN + TOPBAR)
────────────────────────────────────────────────────────── */
.layout {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR — soft rail */
.sidebar {
  width: var(--sidebar-width);
  background: #f7f8fa;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 50;
  transition: transform 0.3s ease;
}

.sidebar-brand {
  padding: 0.95rem 0.95rem 0.85rem;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
}

.sidebar-logo {
  height: auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border-bottom: none;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.sidebar-logo-link {
  display: flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.sidebar-logo-icon {
  width: 34px;
  height: 34px;
  background: var(--primary);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.sidebar-logo-text {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-main);
  letter-spacing: -0.03em;
}

.sidebar-logo img {
  display: block;
  height: auto;
  width: auto;
  max-height: 42px;
  max-width: 168px;
  object-fit: contain;
  flex-shrink: 0;
}

.sidebar-logo .site-logo-text {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.sidebar-balance-card {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid #fcd9b0;
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  box-shadow: 0 1px 2px rgba(249, 115, 22, 0.06);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.sidebar-balance-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  color: inherit;
}
.sidebar-balance-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.sidebar-balance-card-top span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9a3412;
}
.sidebar-balance-card-top i {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #fff7ed;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}
.sidebar-balance-card-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.sidebar-admin-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border-color);
  color: var(--danger);
  font-size: 0.82rem;
  font-weight: 800;
}
.sidebar-admin-chip i { font-size: 0.9rem; }

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.95rem 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav-section-title {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #9ca3af;
  margin: 0.95rem 0 0.4rem 0.7rem;
}
.nav-section-title:first-child { margin-top: 0.15rem; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.72rem 0.85rem;
  border-radius: 12px;
  color: #4b5563;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  position: relative;
}

.nav-item i {
  font-size: 1.05rem;
  width: 20px;
  text-align: center;
  color: #9ca3af;
  transition: color 0.15s ease;
}

.nav-item:hover {
  background-color: rgba(249, 115, 22, 0.06);
  color: var(--primary);
  border-left-color: #fdba74;
}
.nav-item:hover i { color: var(--primary); }

.nav-item.active {
  background-color: #fff7ed;
  color: var(--primary);
  font-weight: 800;
  border-color: transparent;
  border-left: 3px solid var(--primary);
  box-shadow: none;
}
.nav-item.active i { color: var(--primary); }

.nav-item .badge {
  margin-left: auto;
}

.sidebar-footer {
  padding: 0.85rem 0.85rem 1rem;
  border-top: 1px solid var(--border-color);
  background: #fff;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
  min-width: 0;
}
.sidebar-user-link {
  text-decoration: none;
  color: inherit;
  padding: 0.45rem;
  margin: -0.45rem -0.45rem 0.7rem;
  border-radius: 12px;
  transition: background 0.15s;
}
.sidebar-user-link:hover {
  background: #fff7ed;
  color: inherit;
}

.sidebar-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fcd9b0;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.sidebar-user-meta { min-width: 0; flex: 1; }

.sidebar-username {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-role,
.sidebar-balance {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-top: 0.1rem;
}

.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--danger);
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.sidebar-logout:hover {
  background: var(--danger-bg);
  border-color: #fecaca;
  color: var(--danger);
}

/* Profile page */
.profile-info-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  background: #fafbfc;
}
.profile-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
}
.profile-info-row:last-child { border-bottom: none; }
.profile-info-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
}
.profile-info-value {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  text-align: right;
}
.profile-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
  font-weight: 700;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.25rem 0.55rem;
  color: var(--primary);
}
.profile-note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding: 0.85rem 1rem;
  background: #fff7ed;
  border: 1px solid #fcd9b0;
  border-radius: 10px;
}
.api-docs-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}
.api-docs-pre {
  margin: 0;
  padding: 0.95rem 1.05rem;
  background: #17181c;
  color: #f8fafc;
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* API docs page spacing */
.api-docs-page {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}
.api-docs-page > .page-header,
.api-docs-page > .panel-help,
.api-docs-page > .panel-tips,
.api-docs-page > .panel-block,
.api-docs-page > .panel-fill {
  margin-top: 0;
  margin-bottom: 0;
}
.api-docs-page > .panel-fill {
  gap: 1.35rem;
}
.api-docs-page > .panel-fill > .panel-block {
  margin-bottom: 0;
  height: 100%;
}

/* MAIN CONTENT */
.main {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
}

/* TOPBAR */
.topbar {
  height: var(--topbar-height);
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.35rem;
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.topbar-breadcrumb .current {
  color: var(--text-main);
  font-weight: 800;
}

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

.balance-chip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background-color: #fff7ed;
  padding: 0.4rem 0.85rem;
  border-radius: 10px;
  color: var(--primary);
  font-weight: 800;
  font-size: 0.88rem;
  border: 1px solid #fcd9b0;
  transition: background 0.15s ease, color 0.15s ease;
}
.balance-chip:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}
/* PAGE HEADER CARD */
.page-header {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem !important;
  margin-bottom: 1.25rem !important;
  box-shadow: var(--shadow-sm) !important;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary);
}
.page-header h1 {
  font-size: 1.65rem !important;
  font-weight: 800 !important;
  color: var(--text-main) !important;
  margin: 0 0 0.35rem 0 !important;
  letter-spacing: -0.035em;
  line-height: 1.2 !important;
}
.page-header p {
  font-size: 1rem !important;
  color: var(--text-muted) !important;
  margin: 0 !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  max-width: 52rem;
}

.page-content {
  padding: 1.35rem 1.6rem 2rem;
  flex: 1;
}

/* Panel duyuru bandı — panel diliyle sade */
.panel-announcement {
  position: relative;
  margin: 0 0 1.15rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.panel-announcement::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary);
}
.panel-announcement-inner {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  padding: 1.05rem 1.15rem 1.05rem 1.25rem;
}
.panel-announcement-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.05rem;
  background: #fff7ed;
  border: 1px solid #fcd9b0;
  color: var(--primary);
}
.panel-announcement-body {
  flex: 1;
  min-width: 0;
}
.panel-announcement-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.3rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.panel-announcement-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #d1d5db;
}
.panel-announcement-body strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.2rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.panel-announcement-body p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.5;
}
.panel-announcement-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: 0.15s ease;
}
.panel-announcement-close:hover {
  color: var(--text-main);
  background: #f4f5f7;
}
.panel-announcement-link {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}
.panel-announcement-link:hover {
  text-decoration: underline;
}

/* tip renkleri sadece sol şerit + ikon */
.panel-announcement-info::before { background: #2563eb; }
.panel-announcement-info .panel-announcement-icon {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}
.panel-announcement-warning::before { background: var(--primary); }
.panel-announcement-warning .panel-announcement-icon {
  background: #fff7ed;
  border-color: #fcd9b0;
  color: var(--primary);
}
.panel-announcement-success::before { background: #059669; }
.panel-announcement-success .panel-announcement-icon {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #059669;
}
.panel-announcement-danger::before { background: #dc2626; }
.panel-announcement-danger .panel-announcement-icon {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

/* Duyuru arşivi */
.ann-archive-current { margin-bottom: 1rem; }
.ann-archive-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.ann-card {
  position: relative;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1rem 1.1rem;
  overflow: hidden;
}
.ann-card-rail {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: #94a3b8;
}
.ann-card-info .ann-card-rail { background: #3b82f6; }
.ann-card-warning .ann-card-rail { background: #f97316; }
.ann-card-success .ann-card-rail { background: #10b981; }
.ann-card-danger .ann-card-rail { background: #ef4444; }
.ann-card.is-current {
  border-color: #fdba74;
  background: linear-gradient(180deg, #fffaf5 0%, #fff 65%);
}
.ann-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #f4f5f7;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ann-card-info .ann-card-icon { background: #dbeafe; border-color: #bfdbfe; color: #2563eb; }
.ann-card-warning .ann-card-icon { background: #ffedd5; border-color: #fcd9b0; color: #ea580c; }
.ann-card-success .ann-card-icon { background: #d1fae5; border-color: #a7f3d0; color: #059669; }
.ann-card-danger .ann-card-icon { background: #fee2e2; border-color: #fecaca; color: #dc2626; }
.ann-card-body { flex: 1; min-width: 0; }
.ann-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}
.ann-card-type {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.ann-card-top time {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}
.ann-card-body h2 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}
.ann-card-body p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.5;
}
.ann-card-badge {
  display: inline-flex;
  margin-top: 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #c2410c;
  background: #fff7ed;
  border: 1px solid #fcd9b0;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

/* ──────────────────────────────────────────────────────────
   BİLEŞENLER (COMPONENTS)
────────────────────────────────────────────────────────── */

/* Butonlar */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn i { font-size: 1.1em; }

.btn-primary {
  background-color: var(--primary);
  color: white;
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-outline:hover {
  background-color: var(--primary-light);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover {
  background-color: var(--bg-surface-hover);
  color: var(--text-main);
}

.btn-danger {
  background-color: var(--danger-bg);
  color: var(--danger);
}
.btn-danger:hover {
  background-color: var(--danger);
  color: white;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* Kartlar */
.card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
  margin-bottom: 1rem;
}
.card-header {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}
.card-body {
  padding: 1.1rem;
}

/* Formlar */
.form-group {
  margin-bottom: 1.25rem;
}
.form-label {
  display: block;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* Tablolar */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th, .table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}
.table th {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: var(--bg-surface-hover);
}
.table tbody tr:hover {
  background-color: var(--bg-surface-hover);
}
.table tbody tr:last-child td {
  border-bottom: none;
}

/* Badgeler */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
}
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger  { background: var(--danger-bg); color: var(--danger); }
.badge-info    { background: var(--info-bg); color: var(--info); }
.badge-primary { background: var(--primary-light); color: var(--primary); }

/* Alertler */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.alert-success { background: var(--success-bg); color: #065f46; border: 1px solid #a7f3d0; }
.alert-error   { background: var(--danger-bg); color: #991b1b; border: 1px solid #fecaca; }
.alert-warn, .alert-warning { background: var(--warning-bg); color: #92400e; border: 1px solid #fde68a; }

/* Grid Utilities */
.grid { display: grid; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ──────────────────────────────────────────────────────────
   DASHBOARD ÖZEL
────────────────────────────────────────────────────────── */
.hero-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  color: var(--text-main);
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.hero-banner::after { display: none; }
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
}
.hero-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  letter-spacing: -0.03em;
  color: var(--text-main);
}
.hero-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.hero-balance-box {
  background: #fff7ed;
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid #fcd9b0;
  text-align: right;
  min-width: 160px;
}
.hero-balance-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9a3412;
  margin-bottom: 0.25rem;
  font-weight: 800;
}
.hero-balance-value {
  font-size: 1.45rem;
  font-weight: 800;
  font-family: var(--font-family);
  color: var(--primary);
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.stat-card:hover {
  border-color: #fcd9b0;
  box-shadow: var(--shadow-md);
  transform: none;
}
.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.stat-icon.primary { background: #fff7ed; color: var(--primary); border: 1px solid #fcd9b0; }
.stat-icon.success { background: var(--success-bg); color: var(--success); }
.stat-icon.warning { background: var(--warning-bg); color: var(--warning); }
.stat-icon.danger  { background: var(--danger-bg); color: var(--danger); }

.stat-info { flex: 1; min-width: 0; }
.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.stat-value {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

/* Dashboard / panel scale */
.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.65rem;
  margin-bottom: 1.15rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.dash-head::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--primary);
}
.dash-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.4rem;
}
.dash-head h1 {
  margin: 0 0 0.4rem;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-main);
  line-height: 1.15;
}
.dash-head p {
  margin: 0;
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 36rem;
}
.dash-head-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.dash-head-actions .btn {
  padding: 0.75rem 1.35rem;
  font-size: 1rem;
  font-weight: 800;
}
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  margin-bottom: 1.15rem;
}
.dash-stats.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.dash-stat {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  min-height: 96px;
}
.dash-stat .stat-icon { width: 52px; height: 52px; font-size: 1.25rem; border-radius: 14px; }
.dash-stat .stat-info { display: flex; flex-direction: column; }
.dash-stat .stat-value { font-size: 1.65rem; order: 1; }
.dash-stat .stat-label { margin: 0.3rem 0 0; font-size: 0.9rem; order: 2; }
.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 1.15rem;
  margin-bottom: 1.15rem;
  align-items: start;
}
.dash-section-title {
  margin: 0 0 0.95rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}
.dash-empty {
  text-align: center;
  padding: 2.25rem 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fffaf5 0%, #fff 70%);
}
.dash-empty > i {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 18px;
  background: #fff7ed;
  border: 1px solid #fcd9b0;
  color: var(--primary);
  font-size: 1.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dash-empty h2,
.dash-empty h3 {
  font-size: 1.2rem !important;
  font-weight: 800 !important;
  color: var(--text-main) !important;
  margin: 0 0 0.45rem !important;
}
.dash-empty p {
  margin: 0 auto 1.1rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 28rem;
}
.dash-empty .btn {
  padding: 0.7rem 1.25rem;
  font-size: 0.98rem;
  font-weight: 800;
}
.dash-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.dash-quick a {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.05rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: #f7f8fa;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
  min-height: 88px;
}
.dash-quick a:hover {
  border-color: #fcd9b0;
  background: #fff7ed;
  transform: translateY(-1px);
}
.dash-quick a > i {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #fcd9b0;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.dash-quick strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.2rem;
  line-height: 1.25;
}
.dash-quick a > span > span {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.4;
}
.dash-svc-list { display: flex; flex-direction: column; }
.dash-svc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  color: inherit;
}
.dash-svc:last-child { border-bottom: none; }
.dash-svc:hover { background: #fff7ed; }
.dash-svc-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
  font-size: 1rem;
}

.panel-tips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-bottom: 1.15rem;
}
.panel-tip {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.2rem;
  display: flex;
  gap: 0.95rem;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  min-height: 108px;
}
.panel-tip-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: #fff7ed;
  border: 1px solid #fcd9b0;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.15rem;
}
.panel-tip strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.3rem;
  line-height: 1.25;
}
.panel-tip span {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 500;
}
.panel-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}
.panel-step {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.2rem;
  box-shadow: var(--shadow-sm);
  min-height: 0;
}
.panel-step-num {
  width: 36px; height: 36px;
  border-radius: 11px;
  background: var(--primary);
  border: none;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}
.panel-step-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fcd9b0;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
}
.panel-step strong {
  display: block;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}
.panel-step span {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 500;
}
.panel-svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}
.panel-svc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 1.35rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  box-shadow: var(--shadow-sm);
  min-height: 140px;
  justify-content: center;
}
.panel-svc-card:hover {
  border-color: #fcd9b0;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.panel-svc-card .service-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 1.35rem;
}
.panel-svc-card .name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
}
.panel-svc-card .cta {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary);
}
.panel-fill {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.15rem;
  align-items: start;
  margin-top: 1.15rem;
}
.panel-help {
  background: linear-gradient(145deg, #fff7ed 0%, #fff 55%);
  border: 1px solid #fcd9b0;
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.15rem;
  flex-wrap: wrap;
  margin-top: 1.15rem;
  margin-bottom: 1.35rem;
}
.panel-help strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.3rem;
  letter-spacing: -0.02em;
}
.panel-help p {
  margin: 0;
  font-size: 1rem;
  color: #9a3412;
  line-height: 1.5;
  max-width: 460px;
  font-weight: 500;
}
.panel-help .btn {
  padding: 0.75rem 1.25rem;
  font-weight: 800;
  font-size: 0.98rem;
}
.panel-block {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.4rem;
  margin-bottom: 1.15rem;
  box-shadow: var(--shadow-sm);
}
.panel-block > .dash-section-title { margin-bottom: 1rem; }
@media (max-width: 1100px) {
  .panel-svc-grid { grid-template-columns: repeat(3, 1fr); }
  .panel-steps { grid-template-columns: repeat(2, 1fr); }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-stats,
  .dash-stats.cols-3 { grid-template-columns: 1fr 1fr; }
  .dash-head h1 { font-size: 1.55rem; }
  .panel-tips { grid-template-columns: 1fr; }
  .panel-fill { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .dash-stats,
  .dash-stats.cols-3 { grid-template-columns: 1fr; }
  .panel-steps { grid-template-columns: 1fr; }
  .panel-svc-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-quick { grid-template-columns: 1fr; }
}

.service-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: white;
}
.service-icon.wa { background-color: #25D366; }
.service-icon.tg { background-color: #0088cc; }
.service-icon.go { background-color: #DB4437; }
.service-icon.ig { background-color: #E1306C; }
.service-icon.fb { background-color: #1877F2; }
.service-icon.ds { background-color: #5865F2; }
.service-icon.tw { background-color: #0f172a; }
.service-icon.oi { background-color: #10a37f; }

/* ──────────────────────────────────────────────────────────
   ORDER KARTLARI (Aktif Numaralar)
────────────────────────────────────────────────────────── */
.order-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.order-card.waiting {
  border-left: 4px solid var(--warning);
}
.order-card.received {
  border-left: 4px solid var(--success);
}
.order-number {
  font-size: 1.25rem;
  font-family: monospace;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 1px;
}
.countdown-wrap {
  flex: 1;
}
.countdown-bar-bg {
  height: 6px;
  background: var(--border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.countdown-bar {
  height: 100%;
  background: var(--warning);
  width: 100%;
  transition: width 1s linear;
}
.order-card.received .countdown-bar { background: var(--success); }

/* Toast */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toast {
  background: var(--bg-surface);
  color: var(--text-main);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  animation: toastIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}
.toast.success { border-color: var(--success); }
.toast.error   { border-color: var(--danger); }
.toast.info    { border-color: var(--info); }

@keyframes toastIn {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(249, 115, 22, 0); }
  100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

/* Animasyonlar */
.animate-in {
  animation: fadeInUp 0.5s ease backwards;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sidebar Toggle & Close Buttons */
.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.5rem;
  margin-right: 0.5rem;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.sidebar-toggle:hover {
  background: var(--border-light);
}

.sidebar-close {
  display: none;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.sidebar-close:hover {
  background: var(--border-light);
  color: var(--danger);
}

/* Sidebar Overlay */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transform: translate3d(0, 0, 0);
  z-index: 45;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.sidebar-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Mobile Settings / User Detail Tabs Scrollability */
.tabs-nav {
  overflow-x: auto !important;
  white-space: nowrap !important;
  -webkit-overflow-scrolling: touch;
}
.tabs-nav::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}
.tabs-nav {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}
.tab-btn {
  flex-shrink: 0 !important;
}

@media (max-width: 992px) {
  :root { --sidebar-width: 0px; }
  .sidebar { width: min(272px, 88vw); transform: translateX(-100%); }
  .sidebar.show { transform: translateX(0); }
  .main { margin-left: 0; }
  .page-content { padding: 1rem 0.9rem 1.5rem; }
  .page-header { padding: 0.95rem 1rem !important; margin-bottom: 0.85rem !important; }
  .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-2 { grid-template-columns: 1fr; }
  .hero-content { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .hero-balance-box { width: 100%; text-align: left; }
  
  .sidebar-toggle { display: inline-flex; }
  .sidebar-close { display: inline-flex; }
  
  .topbar {
    padding: 0 1rem;
  }
  .topbar-breadcrumb {
    display: none;
  }
}
@media (max-width: 576px) {
  .grid-cols-4 { grid-template-columns: 1fr; }
  .grid-cols-2 { grid-template-columns: 1fr; }
  .order-card { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .order-actions { width: 100%; display: flex; }
  .order-actions .btn { flex: 1; }
  .hero-banner { padding: 1.5rem; }
  .hero-title { font-size: 1.5rem; }
  .hero-balance-value { font-size: 2rem; }
}

/* ──────────────────────────────────────────────────────────
   ADMIN DASHBOARD GRID & STAT CARDS
   ────────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Stat card modifier styles inside admin */
.stat-card .stat-icon.red {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}
.stat-card .stat-icon.green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}
.stat-card .stat-icon.cyan {
  background: rgba(6, 182, 212, 0.1);
  color: #06b6d4;
}
.stat-card .stat-icon.yellow {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}
.stat-card .stat-icon.purple {
  background: rgba(249, 115, 22, 0.1);
  color: var(--primary);
}

@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ──────────────────────────────────────────────────────────
   EMPTY STATES
   ────────────────────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}
.empty-state i {
  font-size: 2.5rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
  display: block;
}
.empty-state p {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.5;
}
.empty-state p small {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ──────────────────────────────────────────────────────────
   CODE EDITOR BOX (SYNTAX HIGHLIGHTING)
   ────────────────────────────────────────────────────────── */
.code-editor-box {
  background: #0f172a;
  border-radius: 12px;
  border: 1px solid #1e293b;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  font-family: monospace;
}
.code-editor-header {
  background: #1e293b;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid #334155;
}
.code-editor-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.code-editor-header .dot.red { background: #ef4444; }
.code-editor-header .dot.yellow { background: #f59e0b; }
.code-editor-header .dot.green { background: #10b981; }
.code-editor-title {
  color: #94a3b8;
  font-size: 0.8rem;
  margin-left: 0.5rem;
  font-weight: 600;
}
.code-editor-body {
  padding: 1.5rem;
  color: #e2e8f0;
  font-size: 0.9rem;
  line-height: 1.7;
}
.code-editor-body pre {
  margin: 0;
}
.code-editor-body code {
  font-family: inherit;
}
/* Renk Kodları */
.code-keyword { color: #f472b6; font-weight: 700; }
.code-variable { color: #38bdf8; }
.code-comment { color: #64748b; font-style: italic; }
.code-number { color: #fbbf24; }
.code-operator { color: #fb7185; }
.code-function { color: #c084fc; }

/* ──────────────────────────────────────────────────────────
   ENHANCED ANIMATIONS & MICRO-INTERACTIONS
   ────────────────────────────────────────────────────────── */

/* ── Global Enhanced Transitions ── */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Button Enhancements ── */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
  transition: left 0.5s ease;
}
.btn:hover::before {
  left: 100%;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.btn:active {
  transform: translateY(0);
  transition: all 0.1s ease;
}

/* ── Card Enhancements ── */
.card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* ── Form Input Enhancements ── */
.form-control, .search-input {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.form-control:focus, .search-input:focus {
  transform: scale(1.02);
  box-shadow: 0 0 0 4px rgba(255, 102, 0, 0.15), 0 4px 15px rgba(255, 102, 0, 0.1);
}

/* ── Loading Animations ── */
@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}
.loading-shimmer {
  background: linear-gradient(90deg, var(--bg-surface) 25%, var(--border-light) 50%, var(--bg-surface) 75%);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite linear;
}

/* ── Pulse Animation ── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}
.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* ── Bounce Animation ── */
@keyframes bounce {
  0%, 20%, 53%, 80%, 100% { transform: translateY(0); }
  40%, 43% { transform: translateY(-20px); }
  70% { transform: translateY(-10px); }
  90% { transform: translateY(-4px); }
}
.bounce {
  animation: bounce 2s infinite;
}

/* ── Floating Animation ── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}
.float {
  animation: float 3s ease-in-out infinite;
}

/* ── Slide In Animations ── */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-slide-left {
  animation: slideInLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.animate-slide-right {
  animation: slideInRight 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.animate-slide-up {
  animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.animate-fade-scale {
  animation: fadeInScale 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Stagger Animation Delays ── */
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

/* ── Hover Effects ── */
.hover-scale {
  transition: transform 0.3s ease;
}
.hover-scale:hover {
  transform: scale(1.05);
}

.hover-glow {
  transition: all 0.3s ease;
}
.hover-glow:hover {
  box-shadow: 0 0 20px rgba(255, 102, 0, 0.3);
}

/* ── Interactive Elements ── */
.clickable {
  cursor: pointer;
  transition: all 0.2s ease;
}
.clickable:hover {
  transform: translateY(-1px);
}
.clickable:active {
  transform: translateY(0);
  transition: all 0.1s ease;
}

/* ── Success Animations ── */
@keyframes checkmark {
  0% { stroke-dashoffset: 50px; }
  100% { stroke-dashoffset: 0; }
}
@keyframes checkmark-circle {
  0% { stroke-dashoffset: 157px; }
  100% { stroke-dashoffset: 0; }
}

.success-checkmark {
  stroke-dasharray: 50px;
  stroke-dashoffset: 50px;
  animation: checkmark 0.6s ease-in-out 0.3s forwards;
}
.success-circle {
  stroke-dasharray: 157px;
  stroke-dashoffset: 157px;
  animation: checkmark-circle 0.6s ease-in-out forwards;
}

/* ── Loading Spinner ── */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.spinner {
  animation: spin 1s linear infinite;
}

/* ── Notification Slide ── */
@keyframes slideInNotification {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.notification-slide {
  animation: slideInNotification 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── History filter bar ── */
.hf-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1rem 1.15rem 1.1rem;
  margin-bottom: 0.95rem;
  position: relative;
  overflow: hidden;
}
.hf-bar::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #F97316, #fb923c);
}
.hf-bar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}
.hf-bar-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hf-bar-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, #fff7ed, #ffedd5);
  border: 1px solid #fcd9b0;
  color: var(--primary);
  font-size: 0.95rem;
  flex-shrink: 0;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.hf-bar-icon::before {
  line-height: 1;
  display: block;
}
.hf-bar-title strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}
.hf-bar-title span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.1rem;
}
.hf-bar-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.hf-count {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  background: #f4f5f7;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}
.hf-count.is-active {
  color: #c2410c;
  background: #fff7ed;
  border-color: #fcd9b0;
}
.hf-clear {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: 0.15s ease;
}
.hf-clear:hover {
  color: var(--danger);
  background: #fef2f2;
  border-color: #fecaca;
}
.hf-search-row {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}
.hf-search {
  flex: 1;
  position: relative;
  min-width: 0;
}
.hf-search > i {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 0.85rem;
  pointer-events: none;
}
.hf-search input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: #f8f9fb;
  padding: 0 1rem 0 2.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.hf-search input::placeholder {
  color: #9ca3af;
  font-weight: 500;
}
.hf-search input:focus {
  background: #fff;
  border-color: #fdba74;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}
.hf-submit {
  height: 44px;
  padding: 0 1.15rem;
  border-radius: 12px;
  font-weight: 800;
  flex-shrink: 0;
  white-space: nowrap;
}
.hf-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}
.hf-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: #fff;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
  transition: 0.15s ease;
}
.hf-chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.hf-chip:hover {
  border-color: #fdba74;
  color: var(--primary);
  background: #fffaf5;
}
.hf-chip.is-on {
  background: #fff7ed;
  border-color: #fb923c;
  color: #c2410c;
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.08);
}
.hf-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr;
  gap: 0.65rem;
}
.hf-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
  letter-spacing: 0.01em;
}
.hf-select {
  position: relative;
}
.hf-select select,
.hf-dates input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: #f8f9fb;
  padding: 0 2rem 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.hf-select select:focus,
.hf-dates input:focus {
  background: #fff;
  border-color: #fdba74;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}
.hf-select > i {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.65rem;
  color: #9ca3af;
  pointer-events: none;
}
.hf-dates {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.hf-dates input {
  padding-right: 0.55rem;
  min-width: 0;
}
.hf-dates-sep {
  color: #9ca3af;
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.history-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.9rem;
  flex-wrap: wrap;
}
.history-pagination-info {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}
@media (max-width: 900px) {
  .hf-fields {
    grid-template-columns: 1fr 1fr;
  }
  .hf-field-date {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  .hf-search-row {
    flex-direction: column;
  }
  .hf-submit {
    width: 100%;
    justify-content: center;
  }
  .hf-fields {
    grid-template-columns: 1fr;
  }
  .hf-field-date {
    grid-column: auto;
  }
  .hf-dates {
    flex-direction: column;
    align-items: stretch;
  }
  .hf-dates-sep {
    display: none;
  }
}

/* ── PREMIUM MOBILE UX IMPROVEMENTS ── */
@media (max-width: 768px) {
  /* Prevent iOS Safari auto-zoom on input focus */
  input,
  select,
  textarea,
  .form-control,
  .search-input {
    font-size: 16px !important;
  }

  /* Fluid touch scroll for responsive tables */
  .table-responsive {
    -webkit-overflow-scrolling: touch;
  }

  /* Reduce animations on mobile for performance */
  .btn:hover {
    transform: none;
  }
  .card:hover {
    transform: translateY(-2px);
  }
  
  /* Enhanced touch targets */
  .btn, .clickable {
    min-height: 44px;
    min-width: 44px;
  }
}

/* 5sim operatör listesi (sipariş özeti) */
.op-list {
  width: 100%;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 220px;
  overflow-y: auto;
  text-align: left;
}
.op-list-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}
.op-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.65rem;
  align-items: center;
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
  text-align: left;
}
.op-row:hover:not(:disabled) {
  border-color: #fdba74;
  background: #fff7ed;
}
.op-row.is-on {
  border-color: var(--primary);
  background: #fff7ed;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}
.op-row.is-empty,
.op-row:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.op-name {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: capitalize;
}
.op-stock {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.op-price {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}


