/* ============================================================
   BenomCore - Main Stylesheet
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --primary:        #5b4af5;
  --primary-dark:   #4338d4;
  --primary-light:  #7c6ff7;
  --secondary:      #1e2a4a;
  --accent:         #00d4aa;
  --danger:         #ef4444;
  --warning:        #f59e0b;
  --success:        #10b981;
  --info:           #3b82f6;

  --body-bg:        #f0f2f8;
  --card-bg:        #ffffff;
  --sidebar-bg:     #1e2a4a;
  --sidebar-width:  260px;

  --text-primary:   #1e2a4a;
  --text-secondary: #64748b;
  --text-muted:     #94a3b8;

  --border-color:   #e2e8f0;
  --border-radius:  0.75rem;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.08);
  --shadow-md:      0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:      0 8px 32px rgba(0,0,0,.12);

  --font-main:      'Inter', 'Segoe UI', system-ui, sans-serif;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-main);
  background: var(--body-bg);
  color: var(--text-primary);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ── Auth Layout ────────────────────────────────────────────── */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e2a4a 0%, #2d1f6e 50%, #1e2a4a 100%);
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
}

.auth-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(91,74,245,.15) 0%, transparent 60%);
  animation: pulse-bg 8s ease-in-out infinite;
}

@keyframes pulse-bg {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--card-bg);
  border-radius: 1.25rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo .logo-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .75rem;
  box-shadow: 0 8px 24px rgba(91,74,245,.35);
}

.auth-logo .logo-icon svg { width: 28px; height: 28px; fill: #fff; }
.auth-logo h1 { font-size: 1.6rem; font-weight: 700; color: var(--secondary); margin: 0; }
.auth-logo span { color: var(--primary); }
.auth-logo p { color: var(--text-secondary); font-size: .875rem; margin: .25rem 0 0; }

/* ── Form Elements ──────────────────────────────────────────── */
.form-label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: .35rem;
}

.form-control, .form-select {
  border: 1.5px solid var(--border-color);
  border-radius: .625rem;
  padding: .65rem 1rem;
  font-size: .9rem;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
  background: #fff;
  color: var(--text-primary);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91,74,245,.18);
  outline: none;
}

.form-control.is-invalid { border-color: var(--danger); }
.invalid-feedback { font-size: .8rem; color: var(--danger); margin-top: .3rem; display: block; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  font-weight: 600;
  border-radius: .625rem;
  padding: .65rem 1.5rem;
  font-size: .9rem;
  transition: all .2s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(91,74,245,.4);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(91,74,245,.5); color: #fff; }

.btn-success {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(16,185,129,.35);
}
.btn-success:hover { transform: translateY(-1px); color: #fff; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; transform: translateY(-1px); }

.btn-outline-primary {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
}
.btn-outline-primary:hover { background: var(--primary); color: #fff; }

.btn-lg { padding: .85rem 2rem; font-size: 1rem; }
.btn-sm { padding: .4rem .9rem; font-size: .8rem; }
.btn-full { width: 100%; }

/* ── Alerts ─────────────────────────────────────────────────── */
.alert {
  padding: .875rem 1.125rem;
  border-radius: .625rem;
  font-size: .875rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: .6rem;
}

.alert-danger  { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #14532d; border: 1px solid #bbf7d0; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert-info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
  font-size: .95rem;
  background: transparent;
}

.card-body { padding: 1.5rem; }

/* ── Package Cards ──────────────────────────────────────────── */
.package-card {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: all .25s;
  position: relative;
  cursor: pointer;
  height: 100%;
}

.package-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.package-card.featured {
  border-color: var(--primary);
  background: linear-gradient(135deg, #fafaff 0%, #f3f0ff 100%);
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(91,74,245,.18);
}

.package-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: .3rem 1.25rem;
  border-radius: 0 0 .75rem .75rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .5px;
}

.package-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: .25rem;
}

.package-price {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin: 1rem 0 .25rem;
}

.package-price sup { font-size: 1rem; font-weight: 600; vertical-align: super; }
.package-price span { font-size: .9rem; color: var(--text-secondary); font-weight: 500; }

.package-features { list-style: none; padding: 0; margin: 1.5rem 0; }
.package-features li {
  padding: .4rem 0;
  font-size: .88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: .5rem;
  border-bottom: 1px solid #f1f5f9;
}
.package-features li:last-child { border-bottom: none; }
.package-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}

/* ── Billing Toggle ─────────────────────────────────────────── */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0 2.5rem;
}

.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #cbd5e1;
  border-radius: 28px;
  transition: .3s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  left: 4px; bottom: 4px;
  background: #fff;
  border-radius: 50%;
  transition: .3s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(24px); }

.billing-label { font-weight: 600; font-size: .9rem; color: var(--text-secondary); }
.billing-label.active { color: var(--primary); }
.billing-save { background: var(--accent); color: var(--secondary); padding: .2rem .6rem; border-radius: .35rem; font-size: .7rem; font-weight: 700; }

/* ── Admin Sidebar ──────────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100;
  transition: transform .3s;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.12) transparent;
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}
.sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.12);
  border-radius: 4px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,.25);
}

/* Global sayfa scroll */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,.15);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,.28);
}
.content-wrapper{
padding: 10px;
}
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,.15) transparent;
}


.sidebar-logo {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  gap: .75rem;
}

.sidebar-logo .logo-box {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: .625rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-logo .logo-box svg { width: 20px; height: 20px; fill: #fff; }
.sidebar-logo h2 { color: #fff; font-size: 1.1rem; font-weight: 700; margin: 0; }
.sidebar-logo small { color: rgba(255,255,255,.5); font-size: .7rem; display: block; }

.sidebar-nav { flex: 1; padding: 1rem 0; }
.sidebar-nav-label {
  padding: .5rem 1.5rem .25rem;
  font-size: .7rem;
  font-weight: 700;
  color: rgba(255,255,255,.35);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 1.5rem;
  color: rgba(255,255,255,.65);
  font-size: .875rem;
  font-weight: 500;
  transition: all .2s;
  border-left: 3px solid transparent;
  margin: .1rem 0;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
  color: #fff;
  background: rgba(91,74,245,.25);
  border-left-color: var(--primary-light);
}

.sidebar-nav a svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Disabled / coming-soon nav items */
.sidebar-nav a.nav-disabled {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none;
}
.nav-badge-soon {
  font-size: .6rem;
  margin-left: auto;
  background: rgba(255,255,255,.15);
  padding: .1rem .4rem;
  border-radius: .25rem;
  white-space: nowrap;
}

/* ── Accordion / Sub-menu ────────────────────────────────── */
.nav-item { position: relative; }

.nav-parent {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 1.5rem;
  color: rgba(255,255,255,.65);
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  border-left: 3px solid transparent;
  margin: .1rem 0;
  user-select: none;
  transition: all .2s;
  text-decoration: none;
}
.nav-parent:hover,
.nav-parent.open,
.nav-parent.has-active,
.nav-parent.active {
  color: #fff;
  background: rgba(91,74,245,.25);
  border-left-color: var(--primary-light);
}
.nav-parent svg:first-child { width: 18px; height: 18px; flex-shrink: 0; }
.nav-parent.nav-disabled {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none;
}

.nav-chevron {
  margin-left: auto;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform .2s;
  opacity: .6;
}
/* Bootstrap collapse adds/removes .show — chevron rotates when open */
.nav-submenu.show + * .nav-chevron,
.nav-parent[aria-expanded="true"] .nav-chevron { transform: rotate(90deg); }
.nav-parent.open .nav-chevron { transform: rotate(90deg); }

/* Bootstrap collapse handles visibility; we only style appearance */
.nav-submenu {
  background: rgba(0,0,0,.15);
  padding: .25rem 0;
}

.nav-submenu a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .48rem 1.5rem .48rem 3rem;
  color: rgba(255,255,255,.55);
  font-size: .82rem;
  font-weight: 400;
  border-left: 3px solid transparent;
  transition: all .15s;
  text-decoration: none;
}
.nav-submenu a::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  flex-shrink: 0;
}
.nav-submenu a:hover,
.nav-submenu a.active {
  color: #fff;
  background: rgba(91,74,245,.2);
  border-left-color: var(--primary-light);
}
.nav-submenu a.active::before { background: var(--primary-light); }
.nav-submenu a.nav-disabled {
  opacity: .35;
  cursor: not-allowed;
  pointer-events: none;
}

.sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.sidebar-user { display: flex; align-items: center; gap: .75rem; color: rgba(255,255,255,.7); font-size: .8rem; }
.sidebar-user-avatar {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: .85rem;
  flex-shrink: 0;
}

/* ── Main Content ───────────────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 0 1.75rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-title { font-size: 1.1rem; font-weight: 700; color: var(--secondary); }
.topbar-actions { display: flex; align-items: center; gap: 1rem; }
.topbar-user { display: flex; align-items: center; gap: .6rem; font-size: .875rem; color: var(--text-secondary); }

.page-content { padding: 1.75rem; flex: 1; }

/* ── Stats Cards ────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.25rem; margin-bottom: 1.75rem; }

.stat-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.stat-card-icon {
  width: 44px; height: 44px;
  border-radius: .625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-card-icon svg { width: 22px; height: 22px; }
.stat-card-value { font-size: 1.75rem; font-weight: 800; color: var(--secondary); line-height: 1; }
.stat-card-label { font-size: .8rem; color: var(--text-secondary); font-weight: 500; }

.bg-primary-soft { background: rgba(91,74,245,.12); color: var(--primary); }
.bg-success-soft { background: rgba(16,185,129,.12); color: var(--success); }
.bg-warning-soft { background: rgba(245,158,11,.12); color: var(--warning); }
.bg-danger-soft  { background: rgba(239,68,68,.12);  color: var(--danger); }
.bg-info-soft    { background: rgba(59,130,246,.12); color: var(--info); }

/* ── Table ──────────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: .875rem; }
thead th {
  background: #f8fafc;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}
tbody td { padding: .875rem 1rem; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #fafbff; }

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .25rem .7rem;
  border-radius: 2rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .3px;
}

.badge-success  { background: rgba(16,185,129,.12);  color: #065f46; }
.badge-warning  { background: rgba(245,158,11,.12);  color: #92400e; }
.badge-danger   { background: rgba(239,68,68,.12);   color: #991b1b; }
.badge-info     { background: rgba(59,130,246,.12);  color: #1e40af; }
.badge-secondary{ background: rgba(100,116,139,.12); color: #334155; }
.badge-primary  { background: rgba(91,74,245,.12);   color: #3730a3; }

/* ── Checkout / Payment ─────────────────────────────────────── */
.checkout-wrapper { max-width: 900px; margin: 0 auto; }

.payment-method-card {
  border: 2px solid var(--border-color);
  border-radius: .75rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
}
.payment-method-card:hover, .payment-method-card.selected {
  border-color: var(--primary);
  background: rgba(91,74,245,.04);
}

.payment-method-card input[type="radio"] { accent-color: var(--primary); }
.payment-method-icon { width: 36px; height: 36px; border-radius: .5rem; display: flex; align-items: center; justify-content: center; }

/* ── Pending Approval ───────────────────────────────────────── */
.pending-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--body-bg);
  padding: 2rem;
}

.pending-card {
  max-width: 560px;
  width: 100%;
  text-align: center;
  background: var(--card-bg);
  border-radius: 1.25rem;
  padding: 3rem 2rem;
  box-shadow: var(--shadow-md);
}

.pending-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(245,158,11,.15), rgba(245,158,11,.25));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.pending-icon svg { width: 40px; height: 40px; }

/* ── Dashboard App Layout ───────────────────────────────────── */
.app-layout { display: flex; min-height: 100vh; }
.app-sidebar { width: var(--sidebar-width); background: var(--sidebar-bg); }
.app-main { margin-left: var(--sidebar-width); flex: 1; }

/* ── Utilities ──────────────────────────────────────────────── */
.text-primary-color { color: var(--primary) !important; }
.text-muted { color: var(--text-muted) !important; }
.fw-700 { font-weight: 700; }
.fw-600 { font-weight: 600; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.mt-auto { margin-top: auto; }

.divider { border: none; border-top: 1px solid var(--border-color); margin: 1.5rem 0; }

/* ── Wizard Steps ───────────────────────────────────────────── */
.wizard-header {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.75rem 2rem;
  margin-bottom: 1.75rem;
  display: flex;
  justify-content: center;
}

.wizard-steps {
  display: flex;
  align-items: flex-start;
  width: 100%;
  max-width: 680px;
}

.wizard-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  cursor: default;
}

.wizard-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 19px;
  left: calc(50% + 22px);
  right: calc(-50% + 22px);
  height: 2px;
  background: var(--border-color);
  z-index: 0;
  transition: background .35s;
}

.wizard-step.completed:not(:last-child)::after {
  background: #10b981;
}

.wizard-step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .875rem;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
  transition: all .25s;
  flex-shrink: 0;
}

.wizard-step.active .wizard-step-circle {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(91,74,245,.12);
}

.wizard-step.completed .wizard-step-circle {
  border-color: #10b981;
  background: #10b981;
  color: #fff;
}

.wizard-step-label {
  margin-top: .5rem;
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  transition: color .25s;
}

.wizard-step.active .wizard-step-label  { color: var(--primary); }
.wizard-step.completed .wizard-step-label { color: #10b981; }

.wizard-pane { display: none; }
.wizard-pane.active { display: block; animation: wizardFadeIn .2s ease; }

@keyframes wizardFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.wizard-pane .card-section-title {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--border-color);
}

/* ── Bank Rows ──────────────────────────────────────────────── */
.bank-row {
  background: var(--body-bg);
  border: 1px solid var(--border-color);
  border-radius: .625rem;
  padding: 1rem 1.25rem;
  margin-bottom: .75rem;
  position: relative;
}
.bank-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .75rem;
}

/* ── Logo Drop Zone ─────────────────────────────────────────── */
.logo-drop-zone {
  width: 130px;
  height: 130px;
  border: 2px dashed var(--border-color);
  border-radius: .875rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: var(--body-bg);
  position: relative;
  flex-shrink: 0;
}
.logo-drop-zone:hover { border-color: var(--primary); background: rgba(91,74,245,.04); }
.logo-drop-zone.drag-over { border-color: var(--primary); background: rgba(91,74,245,.08); box-shadow: 0 0 0 4px rgba(91,74,245,.1); }
.logo-drop-zone img { width: 100%; height: 100%; object-fit: cover; }
.logo-placeholder-text { font-size: .63rem; color: var(--text-muted); text-align: center; margin-top: .3rem; line-height: 1.3; }
.logo-del-btn {
  position: absolute; top: 5px; right: 5px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(239,68,68,.88);
  border: none; color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: .65rem; font-weight: 700;
  z-index: 10; line-height: 1;
  transition: background .15s;
}
.logo-del-btn:hover { background: #dc2626; }

/* ── Phone Input Group ──────────────────────────────────────── */
.phone-group { display: flex; }
.phone-group .phone-prefix {
  flex: 0 0 90px;
  max-width: 90px;
  border-radius: .375rem 0 0 .375rem !important;
  border-right: 0 !important;
  font-size: .8rem;
  padding: .375rem .4rem;
}
.phone-group .phone-num { border-radius: 0 .375rem .375rem 0 !important; }

/* ── Classification Row ─────────────────────────────────────── */
.sinif-group { display: flex; gap: .5rem; align-items: flex-end; }
.sinif-group .sinif-select-wrap { flex: 1; }
.sinif-add-btn {
  flex-shrink: 0;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: .5rem !important;
  padding: 0;
  font-size: 1.1rem;
  font-weight: 400;
}

/* ── Sinif Card List ─────────────────────────────────────────── */
.sinif-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 240px;
  overflow-y: auto;
}
.sinif-liste-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .45rem .75rem;
  border-bottom: 1px solid var(--border-color);
  transition: background .12s;
}
.sinif-liste-item:last-child { border-bottom: none; }
.sinif-liste-item:hover { background: var(--body-bg); }
.sinif-liste-label {
  display: flex;
  align-items: center;
  flex: 1;
  cursor: pointer;
  margin: 0;
  font-size: .875rem;
}
.sinif-item-aksiyonlar {
  display: flex;
  gap: .25rem;
  opacity: 0;
  transition: opacity .15s;
}
.sinif-liste-item:hover .sinif-item-aksiyonlar { opacity: 1; }
.btn-sinif-duzenle, .btn-sinif-sil {
  background: none;
  border: none;
  cursor: pointer;
  padding: .2rem .3rem;
  border-radius: .35rem;
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  transition: background .12s, color .12s;
}
.btn-sinif-duzenle:hover { background: #e8f4fd; color: var(--info); }
.btn-sinif-sil:hover     { background: #fde8e8; color: var(--danger); }


/* ── Wizard 6-step responsive ───────────────────────────────── */
@media (max-width: 640px) {
  .wizard-steps { gap: 0; }
  .wizard-step-label { display: none; }
  .wizard-header { padding: 1rem .75rem; }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --sidebar-width: 0px; }
  .sidebar { transform: translateX(-260px); }
  .sidebar.open { transform: translateX(0); width: 260px; }
  .main-content, .app-main { margin-left: 0; }
  .auth-card { padding: 1.75rem 1.25rem; }
  .package-card.featured { transform: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .package-card { transform: none !important; }
}

/* ── Hatırlatma & Takvim Widget ─────────────────────────────── */

/* Topbar icon buttons (calendar & bell) */
.hatr-topbar-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.hatr-topbar-btn:hover,
.hatr-topbar-btn.hatr-active {
  background: #ede9ff;
  color: var(--primary);
}
.hatr-badge {
  position: absolute;
  top: 3px; right: 3px;
  background: var(--danger);
  color: #fff;
  font-size: .58rem;
  font-weight: 700;
  min-width: 15px;
  height: 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  pointer-events: none;
  border: 1.5px solid var(--card-bg);
}

/* Floating panels base */
.hatr-panel {
  position: fixed;
  top: 68px;
  right: 8px;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 32px rgba(0,0,0,.16),0 2px 8px rgba(0,0,0,.08);
  border: 1px solid var(--border-color);
  z-index: 400;
  animation: hatr-fadein .18s ease;
}
@keyframes hatr-fadein {
  from { opacity: 0; transform: translateY(-8px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Calendar panel */
.hatr-takvim-panel {
  width: 308px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

/* Notification dropdown */
.hatr-bildirim-dropdown {
  width: 290px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

/* Panel header */
.hatr-panel-header {
  display: flex;
  align-items: center;
  padding: .7rem .9rem;
  border-bottom: 1px solid var(--border-color);
  gap: .35rem;
}
.hatr-ay-baslik {
  flex: 1;
  text-align: center;
  font-weight: 700;
  font-size: .88rem;
  color: var(--secondary);
}
.hatr-nav-btn,
.hatr-kapat-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.hatr-nav-btn:hover { background: var(--body-bg); color: var(--primary); }
.hatr-kapat-btn:hover { background: #fde8e8; color: var(--danger); }

/* Calendar grid */
.hatr-takvim-grid { padding: .4rem .5rem; }
.hatr-gun-basliklari {
  display: grid;
  grid-template-columns: repeat(7,1fr);
  margin-bottom: .2rem;
}
.hatr-gun-basliklari span {
  text-align: center;
  font-size: .65rem;
  font-weight: 700;
  color: var(--text-secondary);
  padding: .2rem 0;
  text-transform: uppercase;
}
.hatr-gun-basliklari span:last-child { color: #ef4444; }
.hatr-gunler {
  display: grid;
  grid-template-columns: repeat(7,1fr);
  gap: 1px;
}
.hatr-gun {
  min-height: 38px;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2px 1px;
  transition: background .12s;
}
.hatr-gun:hover:not(.hatr-bos) { background: var(--body-bg); }
.hatr-gun.hatr-bos { cursor: default; opacity: .3; }
.hatr-gun.hatr-bos:hover { background: transparent; }
.hatr-gun.hatr-bugun .hatr-gun-no {
  background: var(--primary);
  color: #fff;
}
.hatr-gun.hatr-secili { background: #ede9ff; }
.hatr-gun.hatr-secili:hover { background: #ddd8ff; }
.hatr-gun-no {
  font-size: .8rem;
  font-weight: 500;
  width: 24px; height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  line-height: 1;
  color: var(--secondary);
}
.hatr-gun.hatr-bos .hatr-gun-no { color: var(--text-secondary); }
.hatr-gun-dots {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 28px;
  margin-top: 1px;
}
.hatr-gun-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Day reminders list section */
.hatr-gun-liste-baslik {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .45rem .9rem .3rem;
  font-size: .78rem;
  font-weight: 700;
  color: var(--secondary);
  border-top: 1px solid var(--border-color);
  background: #fafbff;
}
.hatr-gun-ekle-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .25rem;
  font-size: .73rem;
  font-weight: 600;
  color: var(--primary);
  padding: .2rem .45rem;
  border-radius: .35rem;
  transition: background .12s;
}
.hatr-gun-ekle-btn:hover { background: #ede9ff; }
.hatr-item-liste {
  padding: .35rem .7rem .5rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.hatr-liste-item {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .38rem .55rem;
  border-radius: .45rem;
  background: var(--body-bg);
  cursor: pointer;
  transition: background .12s;
}
.hatr-liste-item:hover { background: #ede9ff; }
.hatr-liste-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hatr-liste-info { flex: 1; min-width: 0; }
.hatr-liste-baslik {
  font-size: .8rem;
  font-weight: 500;
  color: var(--secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hatr-liste-saat {
  font-size: .7rem;
  color: var(--text-secondary);
}
.hatr-liste-sil {
  background: none;
  border: none;
  cursor: pointer;
  padding: .18rem .3rem;
  border-radius: .3rem;
  color: var(--text-secondary);
  opacity: 0;
  transition: opacity .12s, background .12s;
  flex-shrink: 0;
}
.hatr-liste-item:hover .hatr-liste-sil { opacity: 1; }
.hatr-liste-sil:hover { background: #fde8e8; color: var(--danger); }
.hatr-bos-mesaj {
  text-align: center;
  font-size: .75rem;
  color: var(--text-secondary);
  padding: .5rem 0 .25rem;
  font-style: italic;
}

/* Calendar panel footer */
.hatr-takvim-footer {
  padding: .45rem .7rem .65rem;
  border-top: 1px solid var(--border-color);
}
.hatr-yeni-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .45rem;
  border-radius: .5rem;
  border: 1.5px dashed var(--border-color);
  background: none;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 600;
  color: var(--primary);
  transition: all .15s;
}
.hatr-yeni-btn:hover { background: #ede9ff; border-color: var(--primary); }

/* Notifications dropdown */
.hatr-bd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--border-color);
}
.hatr-bd-title {
  font-weight: 700;
  font-size: .88rem;
  color: var(--secondary);
}
.hatr-bd-tumu-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: .72rem;
  font-weight: 600;
  color: var(--primary);
  padding: .2rem .5rem;
  border-radius: .35rem;
  display: flex;
  align-items: center;
  gap: .3rem;
  transition: background .12s;
}
.hatr-bd-tumu-btn:hover { background: #ede9ff; }
.hatr-bd-liste { max-height: 320px; overflow-y: auto; }
.hatr-bd-item {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  padding: .6rem 1rem;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background .12s;
}
.hatr-bd-item:last-child { border-bottom: none; }
.hatr-bd-item:hover { background: var(--body-bg); }
.hatr-bd-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}
.hatr-bd-baslik {
  font-size: .8rem;
  font-weight: 500;
  color: var(--secondary);
}
.hatr-bd-meta {
  font-size: .7rem;
  color: var(--text-secondary);
  margin-top: .1rem;
}
.hatr-bd-bos {
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: .8rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* Reminder Modal */
.hatr-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,15,30,.5);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.hatr-modal {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  animation: hatr-modal-in .2s ease;
}
@keyframes hatr-modal-in {
  from { transform: scale(.95) translateY(-12px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.hatr-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.2rem .75rem;
  border-bottom: 1px solid var(--border-color);
}
.hatr-modal-header h5 {
  margin: 0;
  font-size: .92rem;
  font-weight: 700;
  color: var(--secondary);
}
.hatr-modal-body { padding: 1.1rem 1.2rem; }
.hatr-modal-footer {
  display: flex;
  align-items: center;
  padding: .7rem 1.2rem;
  border-top: 1px solid var(--border-color);
  gap: .5rem;
}
.hatr-form-field { margin-bottom: .85rem; }
.hatr-form-field label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: .3rem;
}
.hatr-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

/* Color picker */
.hatr-renk-secici { display: flex; gap: .45rem; flex-wrap: wrap; }
.hatr-renk-btn { cursor: pointer; position: relative; }
.hatr-renk-btn input { position: absolute; opacity: 0; width: 0; height: 0; }
.hatr-renk-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: block;
  outline: 3px solid transparent;
  outline-offset: 2px;
  transition: outline-color .1s, transform .1s;
}
.hatr-renk-btn input:checked + .hatr-renk-dot {
  outline-color: rgba(0,0,0,.35);
  transform: scale(1.15);
}

/* Notification settings box */
.hatr-bildirim-kutu {
  background: var(--body-bg);
  border-radius: .55rem;
  padding: .65rem .75rem;
  margin-bottom: .75rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  border: 1px solid var(--border-color);
}
.hatr-bildirim-satir {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
}
.hatr-bildirim-chk {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex: 1;
  min-width: 140px;
}
.hatr-bildirim-chk label {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  font-weight: 500;
  color: var(--secondary);
  cursor: pointer;
  margin: 0;
}
.hatr-bildirim-chk input[type="checkbox"] {
  width: 14px; height: 14px;
  cursor: pointer;
}
.hatr-sure-sel {
  width: 125px !important;
  font-size: .76rem !important;
}
.hatr-yakin-badge {
  font-size: .6rem;
  background: #fef3c7;
  color: #92400e;
  padding: .1rem .35rem;
  border-radius: .25rem;
  font-weight: 700;
  border: 1px solid #fde68a;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .hatr-takvim-panel,
  .hatr-bildirim-dropdown { right: 4px; width: calc(100vw - 8px); }
  .hatr-form-row-2 { grid-template-columns: 1fr; gap: 0; }
}
