:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #1d4ed8;
  --primary-2: #2563eb;
  --sidebar: #0f172a;
  --sidebar-2: #111827;
  --sidebar-text: #e5e7eb;
  --sidebar-muted: #94a3b8;
  --danger: #dc2626;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Sayfa auth guard onayı gelmeden görünmesin */
html.management-page {
  visibility: hidden;
}

html.management-page.auth-ready {
  visibility: visible;
}

body {
  overflow-x: hidden;
  overflow-y: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font: inherit;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.logout-btn {
  width: 100%;
  min-height: 44px;
  border: none;
  border-radius: 12px;
  background: rgba(220, 38, 38, 0.18);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  transition: 0.2s ease;
}

.logout-btn:hover {
  background: rgba(220, 38, 38, 0.28);
}

#userEmail {
  display: block;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* CONTENT */
.content {
  flex: 1 1 auto;
  width: 100%;
  padding: 24px;
  overflow: visible;
}

.hero-card,
.card,
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 26px;
  margin-bottom: 22px;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.hero-card h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.hero-card p {
  margin: 0;
  max-width: 780px;
  color: var(--muted);
  line-height: 1.6;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.card {
  padding: 20px;
}

.card-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  transition: 0.2s ease;
}

.card-link:hover {
  background: var(--primary-2);
}

.card-link-btn {
  border: none;
  cursor: pointer;
}

.panel {
  margin-bottom: 22px;
}

.panel-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.panel-head h3 {
  margin: 0;
  font-size: 18px;
}

.panel-body {
  padding: 18px 20px 20px;
}

.notes {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

/* FLOW PANEL */
.flow-panel .panel-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.flow-intro {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.flow-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.flow-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.flow-step-no {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
  font-size: 20px;
  font-weight: 700;
}

.flow-step-body h4 {
  margin: 0 0 8px;
  font-size: 17px;
}

.flow-step-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.flow-summary {
  padding: 16px 18px;
  border-radius: 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  line-height: 1.6;
}

.hidden {
  display: none !important;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  cursor: pointer;
}

.mobile-only {
  display: none;
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .grid-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .app-shell {
    min-height: 100vh;
  }

  .content {
    padding: 16px;
  }

  .mobile-only {
    display: inline-grid;
    place-items: center;
  }

  .flow-step {
    grid-template-columns: 48px 1fr;
  }

  .flow-step-no {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }
}

@media (max-width: 520px) {
  .flow-step {
    grid-template-columns: 1fr;
  }

  .flow-step-no {
    width: 44px;
    height: 44px;
  }
}