/* ==========================================================================
   GNZSOFT PORTAL v2 - ULTRA MODERN SAAS DASHBOARD DESIGN
   ========================================================================== */

:root {
  --navy-darker: #060c18;
  --navy-sidebar: #0b1329;
  --navy-sidebar-hover: #13203f;
  --navy: #0f1d38;
  --navy-2: #1e3561;
  --navy-light: #2c497f;
  
  --orange: #f97316;
  --orange-hover: #ea580c;
  --orange-light: #ffedd5;
  --orange-glow: rgba(249, 115, 22, 0.3);
  
  --bg: #f8fafc;
  --card: #ffffff;
  --card-border: #e2e8f0;
  --card-hover-border: #cbd5e1;
  
  --text: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --line: #e2e8f0;
  --line-subtle: #f1f5f9;
  
  --ok: #10b981;
  --ok-bg: #ecfdf5;
  --ok-border: #a7f3d0;
  --ok-text: #065f46;
  
  --warn: #f59e0b;
  --warn-bg: #fffbeb;
  --warn-border: #fde68a;
  --warn-text: #92400e;
  
  --bad: #ef4444;
  --bad-bg: #fef2f2;
  --bad-border: #fecaca;
  --bad-text: #991b1b;
  
  --info: #0ea5e9;
  --info-bg: #f0f9ff;
  --info-border: #bae6fd;
  --info-text: #0369a1;
  
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.09), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 20px rgba(249, 115, 22, 0.25);
}

/* Temel Sıfırlama & Tipografi */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14.5px;
  line-height: 1.55;
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--navy-2);
  text-decoration: none;
  transition: all 0.15s ease;
}
a:hover {
  color: var(--orange);
}

/* ==========================================================================
   APP SHELL (SIDEBAR + TOPBAR + MAIN LAYOUT)
   ========================================================================== */

.app-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background-color: var(--bg);
}

/* Sidebar */
.app-sidebar {
  width: 270px;
  min-width: 270px;
  background: var(--navy-sidebar);
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 100;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-brand {
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text .wordmark {
  color: #ffffff;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 2px;
  line-height: 1.1;
}

.brand-text .portal-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 1.5px;
  margin-top: 2px;
}

.mobile-close-btn {
  display: none;
  background: transparent;
  border: 0;
  color: #94a3b8;
  font-size: 24px;
  cursor: pointer;
}

.sidebar-section-title {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #475569;
  padding: 20px 22px 8px;
}

.sidebar-nav {
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #94a3b8;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
  position: relative;
}

.nav-item i {
  font-size: 18px;
  color: #64748b;
  transition: color 0.15s ease, transform 0.15s ease;
}

.nav-item:hover {
  background: var(--navy-sidebar-hover);
  color: #ffffff;
}

.nav-item:hover i {
  color: var(--orange);
  transform: scale(1.1);
}

.nav-item.on {
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.16) 0%, rgba(249, 115, 22, 0.04) 100%);
  color: #ffffff;
  font-weight: 600;
}

.nav-item.on i {
  color: var(--orange);
}

.nav-item.on::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3.5px;
  background: var(--orange);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 8px var(--orange);
}

.nav-item.nav-logout {
  margin-top: auto;
  color: #ef4444;
}
.nav-item.nav-logout i {
  color: #ef4444;
}
.nav-item.nav-logout:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

/* Sidebar Kullanıcı Profil Kartı */
.sidebar-user {
  margin: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--navy-2);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.user-name {
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-sub {
  color: #64748b;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-logout-btn {
  color: #64748b;
  font-size: 18px;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.15s ease;
}
.user-logout-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* ==========================================================================
   APP MAIN & TOPBAR
   ========================================================================== */

.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg);
}

.app-topbar {
  min-height: 72px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-toggle-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.topbar-title-wrap {
  display: flex;
  flex-direction: column;
}

.topbar-breadcrumb {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.topbar-page-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
  letter-spacing: -0.02em;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.system-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: var(--ok-bg);
  border: 1px solid var(--ok-border);
  color: var(--ok-text);
  font-size: 12px;
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.topbar-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1px solid var(--line);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s ease;
}
.topbar-action-btn:hover {
  background: #e2e8f0;
  color: var(--navy);
}

/* ==========================================================================
   APP CONTENT CONTAINER
   ========================================================================== */

.app-content.wrap {
  width: 100%;
  max-width: 100%;
  padding: 32px 40px 60px;
  flex: 1;
}

/* Sayfa İçi Başlıklar */
h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.025em;
  margin: 0 0 6px;
}
h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.015em;
  margin: 0 0 18px;
}
.sub {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 24px;
}
ol {
  padding-left: 22px;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
ol li {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   KARTLAR & METRİKLER (CARDS & STATS)
   ========================================================================== */

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  box-shadow: var(--shadow);
  border-color: var(--card-hover-border);
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-bottom: 24px;
}

.stat {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}
.stat:hover {
  transform: translateY(-2.5px);
  box-shadow: var(--shadow-md);
  border-color: var(--card-hover-border);
}
.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f97316 0%, #ea580c 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.stat:hover::before {
  opacity: 1;
}

.stat .k {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.stat .v {
  font-size: 34px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.stat .v small {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: normal;
  margin-left: 6px;
}

/* İlerleme Çubuğu */
.bar {
  height: 8px;
  background: #f1f5f9;
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid #e2e8f0;
}
.bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #f97316 0%, #ea580c 100%);
  border-radius: 9999px;
  transition: width 0.4s ease;
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.4);
}

/* ==========================================================================
   ÜRÜN SEÇİCİ & ÜRÜN KARTLARI (MULTI-PRODUCT)
   ========================================================================== */

.ptabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 22px;
}
.ptabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 9999px;
  border: 1.5px solid var(--line);
  background: #fff;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 13.5px;
  transition: all 0.15s ease;
}
.ptabs a:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: var(--navy);
}
.ptabs a.on {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 29, 56, 0.25);
}

.pcards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  margin-bottom: 26px;
}
.pcard {
  background: linear-gradient(145deg, #0f1d38 0%, #182e58 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}
.pcard:hover {
  transform: translateY(-2.5px);
  box-shadow: 0 16px 30px -8px rgba(11, 19, 41, 0.4);
  border-color: rgba(255, 255, 255, 0.25);
}
.pcard.on {
  border: 2px solid var(--orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.25), var(--shadow-md);
}
.pcard img {
  height: 52px;
  align-self: flex-start;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}
.pcard .meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
}
.pcard .meta b { color: #fff; }

.plogo {
  height: 42px;
  vertical-align: middle;
  background: var(--navy);
  border-radius: 8px;
  padding: 6px 10px;
}

/* ==========================================================================
   TABLOLAR (DATA TABLES)
   ========================================================================== */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-xs);
}
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
th, td {
  text-align: left;
  padding: 15px 20px;
  vertical-align: middle;
}
th {
  background: #f8fafc;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  border-bottom: 1px solid var(--line-subtle);
  font-size: 14px;
  color: var(--text-secondary);
  transition: background-color 0.15s ease;
}
tr:hover td {
  background-color: #f8fafc;
}
tr:last-child td {
  border-bottom: 0;
}

/* ==========================================================================
   BUTONLAR & ETİKETLER (BUTTONS & BADGES)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  padding: 10px 20px;
  font: 600 14px/1.3 "Plus Jakarta Sans", system-ui, sans-serif;
  cursor: pointer;
  text-decoration: none;
  background: linear-gradient(135deg, #0f1d38 0%, #1e3561 100%);
  color: #fff;
  box-shadow: 0 2px 4px rgba(15, 29, 56, 0.2);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 14px rgba(15, 29, 56, 0.28);
  color: #fff;
}
.btn:active {
  transform: translateY(0);
}

.btn.orange {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
}
.btn.orange:hover {
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.5);
  filter: brightness(1.05);
}

.btn.light {
  background: #f1f5f9;
  color: var(--text-secondary);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn.light:hover {
  background: #e2e8f0;
  color: var(--navy);
  border-color: #cbd5e1;
}

.btn.danger {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  box-shadow: none;
}
.btn.danger:hover {
  background: #fecaca;
  color: #7f1d1d;
}

.btn.sm {
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 8px;
}
.btn.big {
  padding: 14px 28px;
  font-size: 15px;
  border-radius: 12px;
  font-weight: 700;
}

/* Rozetler */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.b-ok { background: var(--ok-bg); color: var(--ok-text); border: 1px solid var(--ok-border); }
.b-warn { background: var(--warn-bg); color: var(--warn-text); border: 1px solid var(--warn-border); }
.b-bad { background: var(--bad-bg); color: var(--bad-text); border: 1px solid var(--bad-border); }
.b-info { background: var(--info-bg); color: var(--info-text); border: 1px solid var(--info-border); }
.b-mute { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  font-size: 12px;
  font-weight: 500;
  border-radius: 9999px;
  padding: 4px 12px;
  background: #f1f5f9;
  color: var(--navy-2);
  border: 1px solid #e2e8f0;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.15s ease;
}
.chip:hover {
  border-color: #cbd5e1;
  background: #e2e8f0;
}
.chip.bad {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

/* ==========================================================================
   FORMLAR (FORM CONTROLS)
   ========================================================================== */

form .row {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 16px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}
input[type=text],
input[type=email],
input[type=password],
input[type=number],
input[type=date],
input[type=url],
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}
textarea {
  min-height: 95px;
  resize: vertical;
}
.hint {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 6px;
  line-height: 1.45;
}

/* Bildirim Kutuları */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius);
  margin-bottom: 22px;
  border: 1px solid;
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 12px;
}
.alert.ok {
  background: var(--ok-bg);
  border-color: var(--ok-border);
  color: var(--ok-text);
  border-left: 4px solid var(--ok);
}
.alert.err {
  background: var(--bad-bg);
  border-color: var(--bad-border);
  color: var(--bad-text);
  border-left: 4px solid var(--bad);
}
.alert.info {
  background: var(--info-bg);
  border-color: var(--info-border);
  color: var(--info-text);
  border-left: 4px solid var(--info);
}

/* Anahtar-Değer Tablosu (.kv) */
.kv {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px 18px;
  align-items: center;
  background: #f8fafc;
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.kv dt {
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.kv dd {
  margin: 0;
  font-weight: 600;
  word-break: break-all;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--navy);
}
.copy {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}
.copy:hover {
  border-color: #94a3b8;
  background: #f1f5f9;
  color: var(--navy);
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: #fff;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}
.muted { color: var(--text-muted); }
.right { text-align: right; }
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* Footer */
.app-footer {
  padding: 24px 40px;
  background: #ffffff;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}
.app-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
}
.app-footer a:hover {
  color: var(--orange);
}
.footer-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ==========================================================================
   GİRİŞ SAYFALARI (PUBLIC / LOGIN)
   ========================================================================== */

body.public {
  background: radial-gradient(circle at 50% 15%, #182e5b 0%, #0c182f 60%, #060c18 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
body.public main.wrap {
  width: 100%;
  max-width: 440px;
  margin: auto;
  padding: 40px 20px;
}
.auth {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
}
.auth-brand-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  margin: 0 auto 18px;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
}
.auth .wordmark {
  display: block;
  text-align: center;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: 5px;
  font-size: 28px;
  margin-bottom: 8px;
}
.auth h1 {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.auth .sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 26px;
}
.auth .btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}
.auth .links {
  text-align: center;
  margin-top: 20px;
  font-size: 13.5px;
}
.auth .links a {
  color: var(--text-muted);
}
.auth .links a:hover {
  color: var(--orange);
}
body.public .foot {
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px;
  text-align: center;
}

iframe#paytriframe {
  width: 100%;
  border: 0;
  min-height: 600px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================== */

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 12, 24, 0.6);
  backdrop-filter: blur(4px);
  z-index: 95;
}

@media (max-width: 992px) {
  .app-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  }
  .app-sidebar.open {
    transform: translateX(0);
  }
  .sidebar-overlay.show {
    display: block;
  }
  .mobile-close-btn,
  .mobile-toggle-btn {
    display: flex;
  }
  .app-topbar {
    padding: 0 20px;
  }
  .app-content.wrap {
    padding: 24px 20px 48px;
  }
  .app-footer {
    padding: 20px;
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .hide-mobile {
    display: none;
  }
}

@media (max-width: 640px) {
  .kv {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px;
  }
  .kv dt {
    margin-top: 8px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 20px 18px;
  }
}
