/* Kolay Reklam - Premium Animated Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #080a0f;
  --surface: #12151f;
  --surface2: #1a1f2e;
  --border: #2a3145;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #6366f1;
  --accent2: #a855f7;
  --neon: #00d4ff;
  --success: #22c55e;
  --warning: #eab308;
  --danger: #ef4444;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: #818cf8; text-decoration: none; transition: color .2s; }
a:hover { color: var(--neon); text-decoration: none; }

.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-mesh::before,
.bg-mesh::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
  animation: floatOrb 18s ease-in-out infinite;
}
.bg-mesh::before {
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  top: -120px; left: -80px;
}
.bg-mesh::after {
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--accent2), transparent 70%);
  bottom: -100px; right: -60px;
  animation-delay: -9s;
}
@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 20px) scale(1.08); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(99,102,241,.2); }
  50% { box-shadow: 0 0 35px rgba(99,102,241,.45); }
}
@keyframes progressShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.animate-up { animation: fadeUp .6s ease backwards; }
.animate-in { animation: fadeIn .5s ease; }

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}
.auth-card {
  position: relative;
  z-index: 1;
  background: rgba(18, 21, 31, .85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(99, 102, 241, .25);
  border-radius: 24px;
  padding: 40px 36px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 25px 50px rgba(0,0,0,.4), 0 0 40px rgba(99,102,241,.15);
  animation: fadeUp .7s ease;
}
.auth-logo {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
  box-shadow: 0 8px 24px rgba(99,102,241,.4);
  animation: pulseGlow 3s ease infinite;
}
.logo-text {
  font-size: 1.75rem;
  font-weight: 800;
  text-align: center;
  background: linear-gradient(135deg, #fff, #818cf8, var(--neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.auth-sub { text-align: center; color: var(--muted); margin-bottom: 28px; font-size: 14px; }
.auth-features {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
}
.auth-features span { font-size: 11px; color: var(--muted); display: block; margin-top: 4px; }
.auth-features div { font-size: 20px; }

.app { display: flex; min-height: 100vh; position: relative; z-index: 1; }
.sidebar {
  width: 268px;
  background: rgba(18, 21, 31, .92);
  backdrop-filter: blur(12px);
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease;
}
.sidebar-brand {
  padding: 22px 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #fff, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  -webkit-text-fill-color: initial;
  box-shadow: 0 4px 14px rgba(99,102,241,.35);
}
.sidebar-nav { flex: 1; padding: 16px 12px; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--muted);
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}
.sidebar-nav a::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 0;
  background: linear-gradient(180deg, var(--accent), var(--neon));
  border-radius: 0 3px 3px 0;
  transition: height .25s;
}
.sidebar-nav a:hover {
  background: rgba(99,102,241,.1);
  color: #c7d2fe;
  transform: translateX(4px);
}
.sidebar-nav a.active {
  background: linear-gradient(90deg, rgba(99,102,241,.2), transparent);
  color: #a5b4fc;
  box-shadow: inset 0 0 20px rgba(99,102,241,.08);
}
.sidebar-nav a.active::before { height: 60%; }
.nav-icon { font-size: 18px; width: 24px; text-align: center; }
.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  background: rgba(0,0,0,.15);
}
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  padding: 14px 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 10, 15, .75);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-badge {
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(99,102,241,.15);
  border: 1px solid rgba(99,102,241,.3);
  font-size: 13px;
  font-weight: 600;
  color: #a5b4fc;
}
.content { padding: 28px; flex: 1; }
.page-header { margin-bottom: 28px; }
.page-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-sub { color: var(--muted); font-size: 14px; }

.menu-toggle {
  display: none;
  background: rgba(99,102,241,.15);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  padding: 6px 10px;
}
@media (max-width: 768px) {
  .sidebar { position: fixed; left: -280px; top: 0; bottom: 0; z-index: 100; }
  .sidebar.open { left: 0; box-shadow: 20px 0 40px rgba(0,0,0,.5); }
  .menu-toggle { display: block; }
  .overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 99; backdrop-filter: blur(2px); }
  .overlay.show { display: block; animation: fadeIn .3s; }
  .content { padding: 16px; }
  .auth-features { grid-template-columns: 1fr; }
}

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .grid-4 { grid-template-columns: 1fr; } }

.stat-card {
  background: linear-gradient(145deg, rgba(26,31,46,.9), rgba(18,21,31,.95));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99,102,241,.4);
  box-shadow: 0 12px 40px rgba(0,0,0,.3), 0 0 24px rgba(99,102,241,.12);
}
.stat-card:hover::after { opacity: 1; }
.stat-card.stat-glow { animation: pulseGlow 4s ease infinite; }
.stat-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  background: rgba(99,102,241,.15);
  border: 1px solid rgba(99,102,241,.25);
}
.stat-icon.green { background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.25); }
.stat-icon.blue { background: rgba(0,212,255,.1); border-color: rgba(0,212,255,.25); }
.stat-icon.purple { background: rgba(168,85,247,.12); border-color: rgba(168,85,247,.25); }
.stat-icon.orange { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.25); }
.stat-body { min-width: 0; }
.stat-label { font-size: 12px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.stat-value { font-size: 1.4rem; font-weight: 800; margin-top: 4px; line-height: 1.2; }

.hero-banner {
  border-radius: 20px;
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(99,102,241,.25), rgba(168,85,247,.15), rgba(0,212,255,.08));
  border: 1px solid rgba(99,102,241,.3);
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  overflow: hidden;
  animation: fadeUp .5s ease;
}
.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.03) 50%, transparent 60%);
  background-size: 200% 100%;
  animation: shimmer 4s infinite;
}
.hero-banner h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: 6px; position: relative; }
.hero-banner p { color: var(--muted); font-size: 14px; position: relative; }
.hero-actions { position: relative; display: flex; gap: 10px; flex-wrap: wrap; }

.card {
  background: rgba(18, 21, 31, .85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  transition: border-color .3s, box-shadow .3s;
  animation: fadeUp .6s ease backwards;
}
.card:hover { border-color: rgba(99,102,241,.25); }
.card-glow {
  border-color: rgba(99,102,241,.35);
  box-shadow: 0 0 30px rgba(99,102,241,.1);
}
.card-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chart-box { position: relative; height: 260px; }
.chart-box-sm { height: 220px; }
.chart-empty {
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
}
.chart-empty span { font-size: 40px; margin-bottom: 8px; opacity: .5; }

label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 6px; font-weight: 500; }
input, select, textarea {
  width: 100%;
  padding: 11px 14px;
  background: rgba(26,31,46,.8);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,.2);
}
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: all .25s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 4px 16px rgba(99,102,241,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99,102,241,.45);
  opacity: 1;
}
.btn-secondary {
  background: rgba(26,31,46,.9);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); background: rgba(99,102,241,.1); opacity: 1; }
.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 12px; }
.w-full { width: 100%; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mb-4 { margin-bottom: 16px; }
.flex { display: flex; } .gap-2 { gap: 8px; } .justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(0,0,0,.15);
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  text-align: left;
  padding: 14px 16px;
  background: rgba(26,31,46,.8);
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
td { padding: 14px 16px; border-top: 1px solid var(--border); transition: background .2s; }
tbody tr:hover td { background: rgba(99,102,241,.06); }

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.badge-pending, .badge-warning { background: rgba(234,179,8,.15); color: #fde047; border: 1px solid rgba(234,179,8,.3); }
.badge-processing { background: rgba(59,130,246,.15); color: #93c5fd; border: 1px solid rgba(59,130,246,.3); }
.badge-completed, .badge-approved, .badge-active { background: rgba(34,197,94,.15); color: #86efac; border: 1px solid rgba(34,197,94,.3); }
.badge-cancelled, .badge-rejected, .badge-inactive { background: rgba(239,68,68,.15); color: #fca5a5; border: 1px solid rgba(239,68,68,.3); }

.progress-wrap { min-width: 130px; }
.progress-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.progress-bar {
  height: 8px;
  background: rgba(26,31,46,.9);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--neon));
  border-radius: 4px;
  transition: width 1s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  animation: progressShine 2s infinite;
}
.progress-note { font-size: 10px; color: var(--muted); margin-top: 4px; }

.alert {
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 14px;
  transition: opacity .4s, transform .4s;
  animation: fadeUp .4s ease;
}
.alert-error { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.35); color: #fca5a5; }
.alert-success { background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.35); color: #86efac; }
.alert-info { background: rgba(99,102,241,.12); border: 1px solid rgba(99,102,241,.35); color: #a5b4fc; }
.text-muted { color: var(--muted); }

.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 200; padding: 20px;
  animation: fadeIn .25s;
}
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: fadeUp .35s ease;
  box-shadow: 0 25px 50px rgba(0,0,0,.5);
}
.modal h3 { margin-bottom: 16px; }
.modal-close { float: right; background: none; border: none; color: var(--muted); font-size: 24px; cursor: pointer; }

.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.pkg-btn, .svc-btn {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(26,31,46,.6);
  cursor: pointer;
  transition: all .25s ease;
  position: relative;
}
.pkg-btn { text-align: center; color: var(--text); }
.svc-btn { text-align: left; width: 100%; margin-bottom: 8px; color: var(--text); display: block; }
.pkg-btn:hover, .svc-btn:hover, .pkg-btn.active, .svc-btn.active {
  border-color: var(--accent);
  background: rgba(99,102,241,.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99,102,241,.15);
}
.svc-btn input[type=radio], .pkg-btn input[type=radio] {
  position: absolute; opacity: 0; width: 0; height: 0;
}

.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; font-size: 13px; color: var(--muted); }
.check-list { list-style: none; margin: 16px 0; }
.check-list li { padding: 8px 0; font-size: 14px; }
.check-list li:before { content: "✓ "; color: var(--success); font-weight: 700; }

.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 200px; padding-top: 20px; }
.bar-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bar { width: 100%; background: linear-gradient(180deg, var(--accent), var(--accent2)); border-radius: 4px 4px 0 0; min-height: 4px; transition: height .6s ease; }
.bar-label { font-size: 10px; color: var(--muted); text-align: center; word-break: break-all; }
