/* BeeHR / BeeUp — Tasarım sistemi ve layout */
:root {
  /* Palette */
  --beeup-orange: #F69011;
  --beeup-orange-700: #D9790A;
  --beeup-navy: #08284F;
  --beeup-navy-900: #061E3A;
  --beeup-cyan: #0BAEE1;
  --beeup-cyan-200: #AEEAF7;
  /* Semantic */
  --beeup-primary: var(--beeup-orange);
  --beeup-primary-hover: var(--beeup-orange-700);
  --beeup-bg-dark: var(--beeup-navy);
  --beeup-bg-darker: var(--beeup-navy-900);
  --beeup-accent: var(--beeup-cyan);
  --beeup-accent-light: var(--beeup-cyan-200);
  /* UI */
  --beeup-radius: 14px;
  --beeup-radius-sm: 8px;
  --beeup-shadow: 0 1px 3px rgba(8, 40, 79, 0.06), 0 4px 16px rgba(8, 40, 79, 0.04);
  --beeup-shadow-lg: 0 8px 32px rgba(8, 40, 79, 0.10);
  --beeup-nav-height: 60px;
  --beeup-sidebar-width: 240px;
  --beeup-content-max: 1400px;
  /* Typography */
  --beeup-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --beeup-heading: var(--beeup-navy);
  --beeup-body: #374151;
  --beeup-muted: #6b7280;
  /* Surfaces */
  --beeup-bg: #f3f4f8;
  --beeup-card-bg: #ffffff;
  --beeup-border: #e5e7eb;
  /* Extras */
  --beeup-green: #22c55e;
  --beeup-red: #ef4444;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--beeup-font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--beeup-body);
  background: var(--beeup-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

ul { list-style: none; padding: 0; margin: 0; }

/* ================================================================
   LAYOUT: sidebar + main
   ================================================================ */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ── */
.app-sidebar {
  width: var(--beeup-sidebar-width);
  min-width: var(--beeup-sidebar-width);
  height: 100vh;
  background: var(--beeup-bg-dark);
  color: #fff;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
  overflow-y: auto;
  overflow-x: hidden;
}

.app-sidebar::-webkit-scrollbar { width: 4px; }
.app-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

.sidebar-brand {
  height: var(--beeup-nav-height);
  padding: 0 1.15rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.sidebar-brand a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-icon {
  font-size: 1.5rem;
  line-height: 1;
}

/* Nav list */
.sidebar-nav {
  flex: 1;
  padding: 0.5rem 0;
}

.nav-list {
  padding: 0 0.6rem;
}

.nav-list li + li { margin-top: 2px; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  border-radius: var(--beeup-radius-sm);
  transition: background 0.15s, color 0.15s;
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-link:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.nav-link.active {
  background: var(--beeup-primary);
  color: #fff;
}

.nav-icon {
  width: 20px;
  flex-shrink: 0;
  text-align: center;
  font-size: 1rem;
  line-height: 1;
}

/* Sidebar bottom */
.sidebar-bottom {
  padding: 0.5rem 0.6rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
  margin-top: auto;
}

.sidebar-bottom .nav-link {
  color: rgba(255,255,255,0.6);
}

.sidebar-bottom .nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

/* ── Main area ── */
.app-main {
  flex: 1;
  margin-left: var(--beeup-sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.25s ease;
}

/* ── Topbar ── */
.app-topbar {
  height: var(--beeup-nav-height);
  background: var(--beeup-card-bg);
  border-bottom: 1px solid var(--beeup-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sidebar-toggle {
  background: none;
  border: none;
  padding: 0.4rem;
  cursor: pointer;
  color: var(--beeup-body);
  border-radius: var(--beeup-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-toggle:hover { background: var(--beeup-bg); }

.topbar-greeting { display: flex; flex-direction: column; }

.greeting-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--beeup-heading);
  line-height: 1.2;
}

.greeting-date {
  font-size: 0.8rem;
  color: var(--beeup-muted);
}

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

.topbar-icon-btn {
  background: none;
  border: none;
  padding: 0.4rem;
  cursor: pointer;
  color: var(--beeup-muted);
  border-radius: var(--beeup-radius-sm);
  display: flex;
  align-items: center;
}

.topbar-icon-btn:hover { background: var(--beeup-bg); color: var(--beeup-heading); }

.user-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--beeup-accent-light);
  color: var(--beeup-bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

/* ── Content ── */
.app-content {
  flex: 1;
  padding: 1.25rem 1.5rem 2rem;
  max-width: var(--beeup-content-max);
  width: 100%;
  margin: 0 auto;
}

/* ================================================================
   BENTO DASHBOARD GRID
   ================================================================ */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.bento-profile       { grid-column: 1; grid-row: 1; }
.bento-leave-info    { grid-column: 2; grid-row: 1; }
.bento-upcoming-leave{ grid-column: 3; grid-row: 1; }
.bento-dept-chart    { grid-column: 1; grid-row: 2; }
.bento-birthdays     { grid-column: 2; grid-row: 2; }
.bento-holidays      { grid-column: 3; grid-row: 2 / span 1; }
.bento-events        { grid-column: 3; grid-row: 3; }

/* ── Bento card ── */
.bento-card {
  background: var(--beeup-card-bg);
  border-radius: var(--beeup-radius);
  box-shadow: var(--beeup-shadow);
  border: 1px solid var(--beeup-border);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
}

/* ── Card head (icon + title + action) ── */
.card-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.card-head h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--beeup-heading);
  flex: 1;
}

.card-head-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.bg-accent { background: var(--beeup-accent-light); }
.bg-navy   { background: #e0e7f1; }
.bg-orange { background: #fef0d6; }

.card-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--beeup-muted);
  font-size: 1rem;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
}
.card-menu-btn:hover { background: var(--beeup-bg); }

/* Dashboard canlı yükleme / boş durum */
.dashboard-loading,
.dashboard-empty {
  color: var(--beeup-muted);
  font-size: 0.9rem;
  padding: 0.5rem 0;
}
.dashboard-empty { font-style: italic; }

.card-action-link {
  display: inline-block;
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--beeup-accent);
  text-decoration: none;
  text-align: right;
}
.card-action-link:hover { color: var(--beeup-primary); }

/* ================================================================
   PROFILE CARD
   ================================================================ */
.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.profile-name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--beeup-heading);
}

.profile-title {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--beeup-muted);
}

.profile-avatar-lg {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--beeup-accent-light), var(--beeup-cyan));
  color: var(--beeup-bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.profile-details {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.85rem;
}

.profile-row {
  display: flex;
  justify-content: space-between;
}

.profile-label { color: var(--beeup-muted); }
.profile-value { font-weight: 500; color: var(--beeup-heading); }

/* ================================================================
   LEAVE INFO CARD
   ================================================================ */
.leave-expiry {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  color: var(--beeup-muted);
}

.leave-balance-big {
  font-size: 2rem;
  font-weight: 700;
  color: var(--beeup-heading);
  margin-bottom: 0.5rem;
}

.leave-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.leave-bar-used {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--beeup-primary), var(--beeup-red));
}

.leave-bar-legend {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--beeup-muted);
  margin-bottom: 0.85rem;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

.dot-future { background: var(--beeup-primary); }
.dot-used   { background: var(--beeup-red); }

/* Leave list */
.leave-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.leave-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--beeup-border);
}

.leave-list li:last-child { border-bottom: none; }

.leave-status-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.status-ok   { background: #dcfce7; color: var(--beeup-green); }
.status-no   { background: #fee2e2; color: var(--beeup-red); }
.status-wait { background: #fef9c3; color: #ca8a04; }

.leave-type { flex: 1; color: var(--beeup-heading); }

.leave-meta {
  font-size: 0.78rem;
  color: var(--beeup-muted);
  white-space: nowrap;
}

/* ================================================================
   PEOPLE LIST (upcoming leaves, birthdays)
   ================================================================ */
.people-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.people-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
}

.people-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--beeup-accent-light);
  color: var(--beeup-bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.people-name { flex: 1; color: var(--beeup-heading); font-weight: 500; }

.people-meta {
  font-size: 0.78rem;
  color: var(--beeup-muted);
  white-space: nowrap;
}

/* ================================================================
   INFO ROWS (holidays, events)
   ================================================================ */
.info-rows {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.info-rows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--beeup-border);
}

.info-rows li:last-child { border-bottom: none; }

.info-name { color: var(--beeup-heading); flex: 1; }

.info-meta {
  font-size: 0.78rem;
  color: var(--beeup-muted);
  white-space: nowrap;
}

/* ================================================================
   DONUT / DEPARTMENT CHART
   ================================================================ */
.dept-chart-area {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.donut-wrapper {
  position: relative;
  flex-shrink: 0;
}

.donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.donut-label {
  display: block;
  font-size: 0.7rem;
  color: var(--beeup-muted);
}

.donut-value {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--beeup-heading);
}

.dept-legend {
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dept-legend li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--beeup-body);
}

.dept-legend strong {
  margin-left: auto;
  font-weight: 600;
  color: var(--beeup-heading);
}

.dept-footer {
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--beeup-border);
  font-size: 0.82rem;
  color: var(--beeup-muted);
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--beeup-radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--beeup-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--beeup-primary-hover); }

.btn-secondary {
  background: var(--beeup-bg);
  color: var(--beeup-body);
  border: 1px solid var(--beeup-border);
}
.btn-secondary:hover { background: var(--beeup-border); }

.btn-ghost {
  background: transparent;
  color: var(--beeup-body);
}
.btn-ghost:hover { background: var(--beeup-bg); }

.btn-sm { padding: 0.3rem 0.6rem; font-size: 0.8rem; }

/* ================================================================
   CARDS / SURFACES (generic)
   ================================================================ */
.card {
  background: var(--beeup-card-bg);
  border-radius: var(--beeup-radius);
  box-shadow: var(--beeup-shadow);
  border: 1px solid var(--beeup-border);
  overflow: hidden;
}

.card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--beeup-border);
  font-weight: 600;
  color: var(--beeup-heading);
}

.card-body { padding: 1.25rem; }

/* ================================================================
   PAGE HEADER
   ================================================================ */
.page-header { margin-bottom: 1.25rem; }

.page-header h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--beeup-heading);
}

.page-header p {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  color: var(--beeup-muted);
}

/* ================================================================
   MODÜL SAYFALARI — Ortak layout (dinamik dashboard)
   ================================================================ */
.module-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.module-breadcrumb {
  font-size: 0.85rem;
  color: var(--beeup-muted);
  margin-bottom: 0.25rem;
}

.module-breadcrumb a {
  color: var(--beeup-accent);
  text-decoration: none;
}

.module-breadcrumb a:hover {
  text-decoration: underline;
}

.module-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.module-header .page-header {
  margin-bottom: 0;
}

.module-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.module-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.module-stat {
  background: var(--beeup-card-bg);
  border-radius: var(--beeup-radius-sm);
  padding: 0.6rem 1rem;
  border: 1px solid var(--beeup-border);
  font-size: 0.9rem;
}

.module-stat strong {
  color: var(--beeup-heading);
  margin-right: 0.35rem;
}

.module-content {
  flex: 1;
}

/* Boş / hazırlık durumu kartı */
.empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--beeup-card-bg);
  border-radius: var(--beeup-radius);
  border: 1px dashed var(--beeup-border);
  color: var(--beeup-muted);
}

.empty-state-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.8;
}

.empty-state h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--beeup-heading);
}

.empty-state p {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  max-width: 36em;
  margin-left: auto;
  margin-right: auto;
}

.empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ================================================================
   LOGIN
   ================================================================ */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--beeup-bg-darker) 0%, var(--beeup-bg-dark) 100%);
  padding: 1rem;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--beeup-card-bg);
  border-radius: var(--beeup-radius);
  box-shadow: var(--beeup-shadow-lg);
  padding: 2rem;
}

.login-card h1 {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  color: var(--beeup-heading);
  text-align: center;
}

.login-card .subtitle {
  text-align: center;
  color: var(--beeup-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.login-card label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--beeup-body);
  margin-bottom: 0.35rem;
}

.login-card input[type="text"],
.login-card input[type="password"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--beeup-border);
  border-radius: var(--beeup-radius-sm);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-family: inherit;
}

.login-card input:focus {
  outline: none;
  border-color: var(--beeup-accent);
  box-shadow: 0 0 0 3px rgba(11, 174, 225, 0.15);
}

.login-card .btn-primary {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.5rem;
}

.login-footer {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--beeup-muted);
}
.login-footer a { color: var(--beeup-accent); }

/* ================================================================
   PUBLIC PAGES (landing, register, pricing)
   ================================================================ */
.public-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--beeup-bg); width: 100%; }

/* ─── Public header: premium menü ─── */
.public-header {
  width: 100%;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--beeup-card-bg);
  border-bottom: 1px solid var(--beeup-border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}
.public-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: var(--beeup-nav-height);
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  gap: 2.5rem;
}
.public-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--beeup-heading);
  text-decoration: none;
  letter-spacing: -0.03em;
  transition: color 0.2s ease, opacity 0.2s ease;
  flex-shrink: 0;
}
.public-brand:hover { color: var(--beeup-primary); opacity: 0.95; }
.public-brand .brand-icon { font-size: 1.6rem; line-height: 1; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.06)); }
.public-brand .brand-text { position: relative; }
.public-brand .brand-text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--beeup-primary);
  transition: width 0.25s ease;
}
.public-brand:hover .brand-text::after { width: 100%; }

.public-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex: 1;
  justify-content: center;
}
.public-nav-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.public-nav-list li { margin: 0; }
.public-nav-list a {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  color: var(--beeup-body);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: var(--beeup-radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
  position: relative;
}
.public-nav-list a::after {
  content: "";
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 0.4rem;
  height: 1.5px;
  background: var(--beeup-primary);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform 0.22s ease;
}
.public-nav-list a:hover { color: var(--beeup-heading); }
.public-nav-list a:hover::after { transform: scaleX(1); }
.public-nav-list a:focus-visible { outline: 2px solid var(--beeup-accent); outline-offset: 2px; }

.public-nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}
.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.nav-btn-secondary {
  background: transparent;
  color: var(--beeup-body);
  border: 1px solid var(--beeup-border);
}
.nav-btn-secondary:hover {
  background: var(--beeup-bg);
  color: var(--beeup-heading);
  border-color: var(--beeup-border);
}
.nav-btn-primary {
  background: var(--beeup-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(246, 144, 17, 0.25);
}
.nav-btn-primary:hover {
  background: var(--beeup-primary-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(246, 144, 17, 0.35);
}
.nav-btn:focus-visible { outline: 2px solid var(--beeup-accent); outline-offset: 2px; }

/* Hamburger — sadece mobilde görünür */
.public-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  transition: background 0.2s ease;
  color: var(--beeup-heading);
}
.public-nav-toggle:hover { background: var(--beeup-bg); }
.public-nav-toggle:focus-visible { outline: 2px solid var(--beeup-accent); outline-offset: 2px; }
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
body.nav-drawer-open .public-nav-toggle .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nav-drawer-open .public-nav-toggle .nav-toggle-bar:nth-child(2) { opacity: 0; }
body.nav-drawer-open .public-nav-toggle .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
body.nav-drawer-open { overflow: hidden; }

/* Mobil drawer */
.public-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100vh;
  background: var(--beeup-card-bg);
  box-shadow: -8px 0 32px rgba(8, 40, 79, 0.12);
  z-index: 1002;
  padding: calc(var(--beeup-nav-height) + 1rem) 1.5rem 2rem;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
  overflow-y: auto;
}
body.nav-drawer-open .public-nav-drawer {
  transform: translateX(0);
  visibility: visible;
}
.public-nav-drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.public-nav-drawer-inner a {
  display: block;
  padding: 1rem 1.25rem;
  color: var(--beeup-body);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}
.public-nav-drawer-inner a:hover { background: var(--beeup-bg); color: var(--beeup-heading); }
.public-nav-drawer-inner .nav-drawer-cta { font-weight: 600; color: var(--beeup-accent); }
.public-nav-drawer-inner .nav-drawer-primary {
  margin-top: 0.5rem;
  background: var(--beeup-primary);
  color: #fff;
  text-align: center;
  font-weight: 600;
}
.public-nav-drawer-inner .nav-drawer-primary:hover { background: var(--beeup-primary-hover); color: #fff; }

.public-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 40, 79, 0.4);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
body.nav-drawer-open .public-nav-backdrop {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 1024px) {
  .public-nav { display: none; }
  .public-nav-toggle { display: flex; }
}

/* Landing header — hero üzerinde şeffaf / glass */
.public-header-landing {
  background: rgba(10, 45, 82, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}
.public-header-landing .public-brand { color: #fff; }
.public-header-landing .public-brand:hover { color: #fff; opacity: 0.9; }
.public-header-landing .public-brand .brand-text::after { background: rgba(255,255,255,0.8); }
.public-header-landing .public-nav-list a { color: rgba(255, 255, 255, 0.88); }
.public-header-landing .public-nav-list a:hover { color: #fff; }
.public-header-landing .public-nav-list a::after { background: rgba(255,255,255,0.9); }
.public-header-landing .nav-btn-secondary {
  color: rgba(255,255,255,0.95);
  border-color: rgba(255,255,255,0.35);
}
.public-header-landing .nav-btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.public-header-landing .nav-btn-primary {
  background: var(--beeup-primary);
  color: #fff;
  box-shadow: 0 2px 12px rgba(246, 144, 17, 0.4);
}
.public-header-landing .nav-btn-primary:hover {
  background: var(--beeup-primary-hover);
  color: #fff;
}
.public-header-landing .public-nav-toggle { color: #fff; }
.public-header-landing .public-nav-toggle:hover { background: rgba(255,255,255,0.1); }

.public-header-landing.is-scrolled {
  position: fixed;
  background: var(--beeup-card-bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: var(--beeup-border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
.public-header-landing.is-scrolled .public-brand { color: var(--beeup-heading); }
.public-header-landing.is-scrolled .public-brand:hover { color: var(--beeup-primary); }
.public-header-landing.is-scrolled .public-brand .brand-text::after { background: var(--beeup-primary); }
.public-header-landing.is-scrolled .public-nav-list a { color: var(--beeup-body); }
.public-header-landing.is-scrolled .public-nav-list a:hover { color: var(--beeup-heading); }
.public-header-landing.is-scrolled .public-nav-list a::after { background: var(--beeup-primary); }
.public-header-landing.is-scrolled .nav-btn-secondary {
  color: var(--beeup-body);
  border-color: var(--beeup-border);
}
.public-header-landing.is-scrolled .nav-btn-secondary:hover {
  background: var(--beeup-bg);
  color: var(--beeup-heading);
}
.public-header-landing.is-scrolled .nav-btn-primary {
  background: var(--beeup-primary);
  color: #fff;
}
.public-header-landing.is-scrolled .nav-btn-primary:hover {
  background: var(--beeup-primary-hover);
  color: #fff;
}
.public-header-landing.is-scrolled .public-nav-toggle { color: var(--beeup-heading); }
.public-header-landing.is-scrolled .public-nav-toggle:hover { background: var(--beeup-bg); }

.public-main { flex: 1; padding: 2rem 1.5rem; max-width: 900px; margin: 0 auto; width: 100%; }
.public-main.landing-main { max-width: none; padding: 0; width: 100%; }
.public-page.landing-page { overflow-x: hidden; }

.landing-hero {
  text-align: center;
  padding: 3rem 1rem;
}
.landing-hero h1 { font-size: 1.75rem; color: var(--beeup-heading); margin: 0 0 0.75rem; }
.landing-sub { color: var(--beeup-muted); margin-bottom: 1.5rem; font-size: 1.05rem; }
.landing-cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
.landing-features { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--beeup-border); }
.landing-features h2 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.landing-features ul { margin: 0; padding-left: 1.25rem; color: var(--beeup-body); }

.public-form-wrap { display: flex; justify-content: center; padding: 1rem 0; }
.public-form-card {
  width: 100%;
  max-width: 480px;
  background: var(--beeup-card-bg);
  border-radius: var(--beeup-radius);
  box-shadow: var(--beeup-shadow);
  padding: 2rem;
  border: 1px solid var(--beeup-border);
}
.public-form-card h1 { margin: 0 0 0.5rem; font-size: 1.35rem; }
.public-form-card .subtitle { color: var(--beeup-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.public-form fieldset { border: none; margin: 0 0 1.5rem; padding: 0; }
.public-form legend { font-weight: 600; margin-bottom: 0.75rem; color: var(--beeup-heading); }
.public-form label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 0.35rem; }
.public-form input[type="text"],
.public-form input[type="email"],
.public-form input[type="password"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--beeup-border);
  border-radius: var(--beeup-radius-sm);
  margin-bottom: 1rem;
  font-family: inherit;
}
.public-form input:focus { outline: none; border-color: var(--beeup-accent); }
.btn-block { width: 100%; }
.public-form .form-footer { margin-top: 1rem; text-align: center; font-size: 0.9rem; color: var(--beeup-muted); }
.public-form .form-footer a { color: var(--beeup-accent); }

.pricing-page { text-align: center; }
.pricing-page h1 { margin: 0 0 0.5rem; }
.pricing-intro { color: var(--beeup-muted); margin-bottom: 2rem; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
  text-align: left;
}
.pricing-card {
  background: var(--beeup-card-bg);
  border: 1px solid var(--beeup-border);
  border-radius: var(--beeup-radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.pricing-card-free { border-color: var(--beeup-accent); background: linear-gradient(180deg, #f0fdfa 0%, var(--beeup-card-bg) 100%); }
.pricing-price { font-size: 1.5rem; font-weight: 700; color: var(--beeup-heading); margin: 0 0 0.25rem; }
.pricing-price span { font-size: 0.9rem; font-weight: 500; color: var(--beeup-muted); }
.pricing-plan-name { margin: 0 0 0.5rem; font-size: 1.1rem; font-weight: 600; color: var(--beeup-heading); }
.pricing-limit { font-size: 0.85rem; margin: 0 0 0.5rem; }
.pricing-content-title { font-size: 0.85rem; font-weight: 600; color: var(--beeup-heading); margin: 0.5rem 0 0.25rem; }
.pricing-modules { list-style: none; padding: 0; margin: 0 0 0.75rem; font-size: 0.8rem; color: var(--beeup-body); }
.pricing-modules li { padding: 0.2rem 0; }
.pricing-detail { font-size: 0.8rem; color: var(--beeup-muted); margin-top: 0.5rem; flex: 1; }
.pricing-note { font-size: 0.9rem; color: var(--beeup-muted); }

/* Paketim (dashboard) */
.plan-current-card { margin-bottom: 1.5rem; }
.plan-current-card .plan-name { font-size: 1.25rem; font-weight: 600; margin: 0.25rem 0; }
.plan-ends { font-size: 0.9rem; color: var(--beeup-muted); margin: 0; }
.plan-upgrade-title { margin: 1.5rem 0 0.5rem; font-size: 1.1rem; }
.plan-upgrade-desc { color: var(--beeup-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.plan-upgrade-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.plan-option-card h4 { margin: 0 0 0.5rem; }
.plan-option-card .plan-price { font-weight: 700; margin: 0 0 0.25rem; }
.plan-option-card .plan-limit { font-size: 0.85rem; color: var(--beeup-muted); margin: 0; }

/* ================================================================
   ALERTS
   ================================================================ */
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--beeup-radius-sm);
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-info {
  background: var(--beeup-cyan-200);
  color: var(--beeup-navy);
  border: 1px solid var(--beeup-cyan);
}

/* ================================================================
   DASHBOARD GRID (eski — modül placeholder kartları)
   ================================================================ */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.dashboard-card {
  background: var(--beeup-card-bg);
  border-radius: var(--beeup-radius);
  box-shadow: var(--beeup-shadow);
  border: 1px solid var(--beeup-border);
  padding: 1.15rem 1.25rem;
  transition: box-shadow 0.2s;
  text-decoration: none;
}

.dashboard-card:hover { box-shadow: var(--beeup-shadow-lg); }

.dashboard-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--beeup-heading);
}

.dashboard-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--beeup-muted);
}

.dashboard-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--beeup-accent);
}

.dashboard-card .card-link:hover { color: var(--beeup-primary); }

/* ================================================================
   SUBSCRIPTION / PAKET PAGE
   ================================================================ */
.sub-page { max-width: 1100px; }

.sub-header { margin-bottom: 1.5rem; }
.sub-header h1 { font-size: 1.5rem; font-weight: 700; color: var(--beeup-heading); margin: 0 0 0.25rem; }
.sub-header p  { color: var(--beeup-muted); margin: 0; font-size: 0.9rem; }

/* Tabs */
.sub-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--beeup-border);
  margin-bottom: 1.5rem;
}
.sub-tab {
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  color: var(--beeup-muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.sub-tab:hover { color: var(--beeup-heading); }
.sub-tab.active {
  color: var(--beeup-primary);
  border-bottom-color: var(--beeup-primary);
}
.sub-tab-panel { display: none; }
.sub-tab-panel.active { display: block; }

/* Current Plan Card */
.sub-current-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--beeup-card-bg);
  border-radius: var(--beeup-radius);
  border: 1px solid var(--beeup-border);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--beeup-shadow);
}
.sub-current-left { display: flex; gap: 1rem; align-items: flex-start; }
.sub-current-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
}
.sub-current-badge.free { background: #e0f2fe; color: #0369a1; }
.sub-current-badge.paid { background: #fef3c7; color: #92400e; }
.sub-current-info h3 { margin: 0 0 0.25rem; font-size: 1rem; color: var(--beeup-heading); }
.sub-current-info p  { margin: 0; font-size: 0.85rem; color: var(--beeup-muted); }
.sub-current-price { font-size: 1.25rem; font-weight: 700; color: var(--beeup-heading); margin-bottom: 0.25rem !important; }
.sub-current-plan-name { font-size: 1.1rem; font-weight: 600; color: var(--beeup-heading); margin-bottom: 0.25rem !important; }
.sub-current-limit { margin-bottom: 0.5rem !important; }
.sub-current-desc { margin-top: 0.5rem !important; }
.sub-plan-modules { list-style: none; padding: 0; margin: 0.25rem 0 0; font-size: 0.85rem; }
.sub-plan-modules li { padding: 0.2rem 0; display: flex; align-items: center; gap: 0.5rem; }
.sub-current-right { text-align: right; flex-shrink: 0; }
.sub-status-row { margin-bottom: 0.4rem; }
.sub-status-badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
}
.sub-status-badge.active { background: #dcfce7; color: #166534; }
.sub-status-badge.past_due { background: #fef3c7; color: #92400e; }
.sub-status-badge.cancelled, .sub-status-badge.expired { background: #fee2e2; color: #991b1b; }
.sub-period { font-size: 0.8rem; color: var(--beeup-muted); margin-bottom: 0.5rem; }
.sub-cancel-form { margin-top: 0.35rem; }
.sub-cancel-btn { color: var(--beeup-red) !important; font-size: 0.8rem; }

.sub-section-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--beeup-heading);
  margin: 0 0 1rem;
}

/* Plan Grid */
.sub-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.sub-plan-card {
  position: relative;
  background: var(--beeup-card-bg);
  border-radius: var(--beeup-radius);
  border: 2px solid var(--beeup-border);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sub-plan-card:hover {
  border-color: var(--beeup-accent);
  box-shadow: var(--beeup-shadow-lg);
}
.sub-plan-card.current {
  border-color: var(--beeup-primary);
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}
.sub-plan-current-tag,
.sub-plan-popular-tag {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.15rem 0.75rem;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sub-plan-current-tag { background: var(--beeup-primary); color: #fff; }
.sub-plan-popular-tag { background: var(--beeup-accent); color: #fff; }
.sub-plan-price { margin-bottom: 0.5rem; }
.sub-plan-name { margin: 0 0 0.5rem; font-size: 1.15rem; font-weight: 600; color: var(--beeup-heading); }
.sub-plan-limit { margin: 0 0 0.25rem; font-size: 0.85rem; color: var(--beeup-muted); }
.sub-plan-content-title { font-size: 0.85rem; font-weight: 600; color: var(--beeup-heading); margin: 0.5rem 0 0.25rem; text-align: left; }
.price-amount { font-size: 2rem; font-weight: 700; color: var(--beeup-heading); }
.price-currency { font-size: 1rem; color: var(--beeup-muted); }
.price-period { font-size: 0.8rem; }
.sub-plan-features {
  text-align: left;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}
.sub-plan-features li {
  padding: 0.3rem 0;
  font-size: 0.85rem;
  color: var(--beeup-body);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.feat-icon { font-size: 0.9rem; flex-shrink: 0; }
.sub-plan-select-btn { width: 100%; }

/* Card List */
.sub-cards-list { display: flex; flex-direction: column; gap: 0.75rem; }
.sub-card-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--beeup-card-bg);
  border-radius: var(--beeup-radius-sm);
  border: 1px solid var(--beeup-border);
  transition: border-color 0.15s;
}
.sub-card-item.default { border-color: var(--beeup-primary); }
.sub-card-icon { flex-shrink: 0; }
.card-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 32px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
}
.card-brand.visa { background: #1a1f71; color: #fff; }
.card-brand.mc   { background: #eb001b; color: #fff; }
.card-brand.other { background: #e5e7eb; font-size: 1.1rem; }
.card-brand-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 22px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.5px;
  margin-right: 0.35rem;
  vertical-align: middle;
}
.card-brand-sm.visa { background: #1a1f71; color: #fff; }
.card-brand-sm.mc   { background: #eb001b; color: #fff; }
.card-brand-sm.other { background: #e5e7eb; }
.sub-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
}
.sub-card-number { font-family: monospace; font-size: 0.95rem; font-weight: 500; color: var(--beeup-heading); }
.sub-card-holder { font-size: 0.8rem; color: var(--beeup-muted); }
.sub-card-alias  { font-size: 0.75rem; color: var(--beeup-accent); }
.sub-card-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.sub-card-default-badge, .sub-card-default-badge-sm {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  background: #dcfce7;
  color: #166534;
}
.sub-card-default-badge-sm { font-size: 0.65rem; padding: 0.1rem 0.4rem; }
.inline-form { display: inline; }
.btn-xs { font-size: 0.75rem; padding: 0.2rem 0.5rem; }
.btn-danger-text { color: var(--beeup-red) !important; }

/* Card Form */
.sub-card-form {
  background: var(--beeup-card-bg);
  border-radius: var(--beeup-radius);
  border: 1px solid var(--beeup-border);
  padding: 1.5rem;
  max-width: 520px;
}
.sub-form-row { display: flex; gap: 0.75rem; margin-bottom: 0.75rem; }
.sub-form-group { flex: 1; display: flex; flex-direction: column; }
.sub-form-group.full { flex: 1 1 100%; }
.sub-form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--beeup-heading);
  margin-bottom: 0.3rem;
}
.sub-form-group input,
.sub-form-group select {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--beeup-border);
  border-radius: var(--beeup-radius-sm);
  font-size: 0.9rem;
  font-family: var(--beeup-font-sans);
  background: #fff;
  transition: border-color 0.15s;
}
.sub-form-group input:focus,
.sub-form-group select:focus {
  outline: none;
  border-color: var(--beeup-primary);
  box-shadow: 0 0 0 2px rgba(246, 144, 17, 0.15);
}
.sub-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--beeup-body);
  margin: 0.5rem 0 0;
  cursor: pointer;
}
.sub-checkbox-label input[type="checkbox"] { accent-color: var(--beeup-primary); }

/* Invoice Table */
.sub-invoices-table-wrap { overflow-x: auto; }
.sub-invoices-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.sub-invoices-table th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  font-weight: 600;
  color: var(--beeup-heading);
  background: #f8f9fb;
  border-bottom: 2px solid var(--beeup-border);
  white-space: nowrap;
}
.sub-invoices-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--beeup-border);
  color: var(--beeup-body);
  white-space: nowrap;
}
.sub-invoices-table tr:hover td { background: #f8f9fb; }
.inv-number { font-family: monospace; font-weight: 500; color: var(--beeup-heading); }
.inv-total  { font-weight: 600; color: var(--beeup-heading); }
.inv-status {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
}
.inv-status-paid     { background: #dcfce7; color: #166534; }
.inv-status-pending  { background: #fef3c7; color: #92400e; }
.inv-status-failed   { background: #fee2e2; color: #991b1b; }
.inv-status-refunded { background: #e0f2fe; color: #0369a1; }

.sub-empty-state {
  padding: 2rem;
  text-align: center;
  color: var(--beeup-muted);
  background: var(--beeup-card-bg);
  border-radius: var(--beeup-radius);
  border: 1px dashed var(--beeup-border);
}

/* Payment Modal */
.sub-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 40, 79, 0.45);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.sub-modal {
  background: var(--beeup-card-bg);
  border-radius: var(--beeup-radius);
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 60px rgba(8, 40, 79, 0.25);
  animation: modalIn 0.2s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.sub-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--beeup-border);
}
.sub-modal-header h3 { margin: 0; font-size: 1.1rem; color: var(--beeup-heading); }
.sub-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--beeup-muted);
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.sub-modal-close:hover { color: var(--beeup-heading); }
.sub-modal-body { padding: 1.5rem; }
.sub-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--beeup-border);
}

.sub-modal-summary {
  background: #f8f9fb;
  border-radius: var(--beeup-radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  text-align: center;
}
.sub-modal-plan-name { font-weight: 600; color: var(--beeup-heading); margin-bottom: 0.25rem; }
.sub-modal-plan-price { font-size: 1.25rem; font-weight: 700; color: var(--beeup-primary); }
.sub-modal-tax { font-size: 0.75rem; color: var(--beeup-muted); font-weight: 400; }

.sub-payment-method-toggle {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.sub-radio-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  cursor: pointer;
}
.sub-radio-label input[type="radio"] { accent-color: var(--beeup-primary); }

.sub-saved-card-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--beeup-border);
  border-radius: var(--beeup-radius-sm);
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: border-color 0.15s;
}
.sub-saved-card-option:hover { border-color: var(--beeup-accent); }
.sub-saved-card-option.selected { border-color: var(--beeup-primary); background: #fffbeb; }
.sub-saved-card-option input[type="radio"] { accent-color: var(--beeup-primary); }
.sub-saved-card-label { font-size: 0.85rem; font-family: monospace; }

/* ================================================================
   DATA TABLE (Çalışanlar vb. modül listeleri)
   ================================================================ */
.data-table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table th {
  text-align: left;
  padding: 0.7rem 0.85rem;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--beeup-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: #f8f9fb;
  border-bottom: 2px solid var(--beeup-border);
  white-space: nowrap;
  position: sticky;
  top: 0;
}

.data-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--beeup-border);
  color: var(--beeup-body);
  vertical-align: middle;
}

.data-table tbody tr:hover td {
  background: #f8f9fb;
}

.data-table .col-narrow { width: 90px; }
.data-table .col-actions { width: 100px; text-align: right; }

.cell-mono {
  font-family: "SF Mono", "Cascadia Code", monospace;
  font-size: 0.82rem;
  color: var(--beeup-heading);
}

.cell-person {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.person-avatar-sm {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--beeup-accent-light), var(--beeup-cyan));
  color: var(--beeup-bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.7rem;
  flex-shrink: 0;
  text-transform: uppercase;
}

.person-name-link {
  color: var(--beeup-heading);
  font-weight: 500;
  text-decoration: none;
}

.person-name-link:hover {
  color: var(--beeup-primary);
  text-decoration: underline;
}

.table-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
}

.sort-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.sort-link:hover { color: var(--beeup-heading); }
.sort-link.sort-asc::after  { content: "▲"; font-size: 0.6rem; color: var(--beeup-primary); }
.sort-link.sort-desc::after { content: "▼"; font-size: 0.6rem; color: var(--beeup-primary); }

/* ================================================================
   BADGES
   ================================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-sm { font-size: 0.7rem; padding: 0.15rem 0.5rem; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info    { background: #e0f2fe; color: #0369a1; }
.badge-accent  { background: var(--beeup-accent-light); color: var(--beeup-bg-dark); }

/* ================================================================
   FILTER BAR
   ================================================================ */
.filter-card {
  padding: 0.85rem 1rem;
  margin-bottom: 0;
}

.filter-form { width: 100%; }

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.filter-search {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.filter-search-icon {
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--beeup-muted);
  pointer-events: none;
}

.filter-search-input {
  padding-left: 2.2rem !important;
}

.filter-select {
  min-width: 140px;
  max-width: 180px;
}

/* ================================================================
   FORM ELEMENTS (module forms)
   ================================================================ */
.form-input,
.form-select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--beeup-border);
  border-radius: var(--beeup-radius-sm);
  font-size: 0.9rem;
  font-family: var(--beeup-font-sans);
  color: var(--beeup-body);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--beeup-primary);
  box-shadow: 0 0 0 3px rgba(246, 144, 17, 0.12);
}

.form-input::placeholder { color: var(--beeup-muted); }

.form-select { appearance: auto; cursor: pointer; }

.form-check-input {
  accent-color: var(--beeup-primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.form-check-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--beeup-body);
}

/* ================================================================
   MODULE FORM LAYOUT
   ================================================================ */
.module-form { width: 100%; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.form-card { overflow: visible; }

.form-card .card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-header-icon {
  font-size: 1rem;
  line-height: 1;
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--beeup-heading);
  margin-bottom: 0.3rem;
}

.form-group-check {
  justify-content: flex-end;
  padding-top: 1.5rem;
}

.required { color: var(--beeup-red); }

.form-error {
  font-size: 0.78rem;
  color: var(--beeup-red);
  margin-top: 0.25rem;
}

.form-error-list {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  font-size: 0.85rem;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ================================================================
   DETAIL PAGE
   ================================================================ */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.detail-card .card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detail-avatar-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--beeup-border);
}

.detail-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--beeup-accent-light), var(--beeup-cyan));
  color: var(--beeup-bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
  text-transform: uppercase;
}

.detail-avatar-info h2 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--beeup-heading);
}

.detail-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1.5rem;
}

.detail-field {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.detail-label {
  font-size: 0.78rem;
  color: var(--beeup-muted);
  font-weight: 500;
}

.detail-value {
  font-size: 0.9rem;
  color: var(--beeup-heading);
  font-weight: 500;
}

.detail-value a {
  color: var(--beeup-accent);
  text-decoration: none;
}
.detail-value a:hover { text-decoration: underline; }

.detail-divider {
  border: none;
  border-top: 1px solid var(--beeup-border);
  margin: 1rem 0;
}

.employment-item {
  padding: 0.75rem 0;
}

.employment-primary {
  background: #fffbeb;
  margin: -0.75rem -1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--beeup-radius-sm);
}

.empty-state-inline {
  text-align: center;
  padding: 1.5rem 0;
  color: var(--beeup-muted);
}

.empty-state-inline p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

.text-muted { color: var(--beeup-muted); }

/* ================================================================
   TIMELINE
   ================================================================ */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--beeup-border);
}

.timeline-item {
  display: flex;
  gap: 1rem;
  padding: 0.85rem 0;
  position: relative;
}

.timeline-item + .timeline-item {
  border-top: none;
}

.timeline-marker {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--beeup-card-bg);
  border: 2px solid var(--beeup-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.timeline-content {
  flex: 1;
  min-width: 0;
}

.timeline-header-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
}

.timeline-header-row strong {
  color: var(--beeup-heading);
  font-size: 0.9rem;
}

.timeline-desc {
  margin: 0.25rem 0;
  font-size: 0.85rem;
  color: var(--beeup-body);
}

.timeline-date {
  font-size: 0.78rem;
  color: var(--beeup-muted);
}

/* Leave calc info */
.leave-calc-info {
  margin-top: 0.75rem;
  padding: 0.5rem 0;
}

.leave-balance-summary {
  padding: 0;
}

/* ================================================================
   ORGANIZATION TABS
   ================================================================ */
.org-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--beeup-border);
  margin-bottom: 1rem;
}

.org-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--beeup-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}

.org-tab:hover { color: var(--beeup-heading); }

.org-tab.active {
  color: var(--beeup-primary);
  border-bottom-color: var(--beeup-primary);
}

.org-tab-icon { font-size: 0.95rem; line-height: 1; }

.filter-row-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

/* Cell helpers */
.cell-bold { font-weight: 500; color: var(--beeup-heading); }
.cell-muted { font-size: 0.8rem; color: var(--beeup-muted); }
.cell-truncate { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cell-with-indent {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.indent-marker {
  color: var(--beeup-muted);
  font-size: 0.8rem;
}

/* Form hint */
.form-hint {
  font-size: 0.75rem;
  color: var(--beeup-muted);
  margin-top: 0.2rem;
}

/* Textarea inside form */
.form-textarea {
  resize: vertical;
  min-height: 70px;
}

/* Org form card — max width */
.org-form-card { max-width: 700px; }

/* ================================================================
   PAGINATION
   ================================================================ */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--beeup-border);
  font-size: 0.82rem;
}

.pagination-info {
  color: var(--beeup-muted);
}

.pagination-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.pagination-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  border-radius: var(--beeup-radius-sm);
  background: var(--beeup-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.82rem;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bento-profile        { grid-column: 1; grid-row: auto; }
  .bento-leave-info     { grid-column: 2; grid-row: auto; }
  .bento-upcoming-leave { grid-column: 1; grid-row: auto; }
  .bento-dept-chart     { grid-column: 2; grid-row: auto; }
  .bento-birthdays      { grid-column: 1; grid-row: auto; }
  .bento-holidays       { grid-column: 2; grid-row: auto; }
  .bento-events         { grid-column: 1 / -1; grid-row: auto; }
}

@media (max-width: 768px) {
  .app-sidebar {
    transform: translateX(-100%);
  }
  .app-sidebar.open {
    transform: translateX(0);
  }
  .app-main {
    margin-left: 0;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-profile, .bento-leave-info, .bento-upcoming-leave,
  .bento-dept-chart, .bento-birthdays, .bento-holidays, .bento-events {
    grid-column: 1;
    grid-row: auto;
  }

  .dept-chart-area { flex-direction: column; }

  .sub-current-card { flex-direction: column; }
  .sub-current-right { text-align: left; }
  .sub-plans-grid { grid-template-columns: 1fr; }
  .sub-card-item { flex-wrap: wrap; }
  .sub-card-actions { width: 100%; justify-content: flex-end; margin-top: 0.5rem; }
  .sub-form-row.three-col { flex-wrap: wrap; }
  .sub-invoices-table { font-size: 0.78rem; }
  .sub-modal { max-width: 100%; margin: 0.5rem; }

  .filter-row { flex-direction: column; }
  .filter-search { min-width: 100%; }
  .filter-select { max-width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; gap: 0.75rem; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-fields { grid-template-columns: 1fr; }
  .pagination-bar { flex-direction: column; gap: 0.5rem; }
  .module-stats-bar { flex-direction: column; }
  .form-group-check { padding-top: 0; }
  .org-tabs { overflow-x: auto; }
  .org-tab { white-space: nowrap; padding: 0.55rem 0.85rem; font-size: 0.82rem; }
  .filter-row { flex-direction: column; align-items: stretch; }
  .filter-actions { margin-left: 0; }
}

/* Profil / Destek / Bildirimler */
.card-body.p-0 { padding: 0; }
.mt-3 { margin-top: 1rem; }

.profile-dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.5rem 1.25rem;
  margin: 0;
}
.profile-dl dt { color: var(--beeup-muted); font-weight: 500; }
.profile-dl dd { margin: 0; }

.support-faq { display: flex; flex-direction: column; gap: 1.25rem; }
.support-faq .faq-item h3 { margin: 0 0 0.35rem; font-size: 1rem; color: var(--beeup-heading); }
.support-faq .faq-item p { margin: 0; font-size: 0.9rem; color: var(--beeup-body); }

.notification-list { list-style: none; padding: 0; margin: 0; }
.notification-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--beeup-border);
}
.notification-item:last-child { border-bottom: none; }
.notification-unread { background: rgba(11, 174, 225, 0.06); }
.notification-body { flex: 1; min-width: 0; }
.notification-type {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--beeup-muted);
  margin-bottom: 0.25rem;
}
.notification-type-approval { color: var(--beeup-green); }
.notification-type-alert { color: var(--beeup-red); }
.notification-type-workflow { color: var(--beeup-accent); }
.notification-title { margin: 0 0 0.35rem; font-size: 0.95rem; font-weight: 600; color: var(--beeup-heading); }
.notification-message { margin: 0 0 0.35rem; font-size: 0.9rem; color: var(--beeup-body); }
.notification-date { font-size: 0.8rem; color: var(--beeup-muted); }
.notification-link { font-size: 0.85rem; color: var(--beeup-accent); }
.notification-action { flex-shrink: 0; }

.pagination-wrap { padding: 1rem 1.25rem; border-top: 1px solid var(--beeup-border); }
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pagination-info { font-size: 0.9rem; color: var(--beeup-muted); }
