/* ===================================================================
   ALPET İntranet — Kurumsal Tasarım Sistemi (Design System)
   Marka renkleri kurumsal kimlik kılavuzuna sadık kalınarak tanımlanmıştır.
   =================================================================== */

:root {
  /* --- Marka Renkleri (Alpet Marka Kimliği Kılavuzu 2024) --- */
  --alpet-blue: #0073c6;      /* Ana kurumsal renk — Pantone 285 C */
  --alpet-blue-dark: #005a9e;
  --alpet-blue-light: #e3f0fb;
  --alpet-blue-2: #3fa9f5;    /* Açık mavi (destekleyici) — Pantone 298 C */
  --alpet-green: #5bbf21;     /* İkincil — Pantone 361 C */
  --alpet-green-dark: #4a9d19;
  --alpet-green-light: #edf8e2;
  --alpet-orange: #ff8828;    /* İşlevsel uyarı/dikkat (marka dışı) */
  --alpet-orange-light: #fff1e3;

  /* --- Nötr Renkler --- */
  --black: #000000;
  --white: #ffffff;
  --gray-50: #f7f9fb;
  --gray-100: #eef1f4;
  --gray-200: #dfe4ea;
  --gray-300: #c7cfd8;
  --gray-500: #7a8694;
  --gray-700: #454f5b;
  --gray-900: #1c2733;

  /* --- Anlamsal Renkler --- */
  --text: var(--gray-900);
  --text-muted: var(--gray-500);
  --bg: var(--gray-50);
  --surface: var(--white);
  --border: var(--gray-200);
  --primary: var(--alpet-blue);
  --success: var(--alpet-green);
  --warning: var(--alpet-orange);

  /* --- Tipografi --- */
  --font-sans: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Poppins", var(--font-sans);

  /* --- Yerleşim --- */
  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --shadow-sm: 0 1px 0.1875rem rgba(0, 0, 0, 0.08);
  --shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 0.75rem 2rem rgba(0, 94, 184, 0.12);
  --sidebar-w: 16.25rem;
  --header-h: 4.375rem;
  --page-max: 90rem;
  --transition: 0.2s ease;
}

/* --- Sıfırlama --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Kök font-size — rem tabanlı ölçek temeli */
html { font-size: 16px; scroll-behavior: smooth; background: var(--bg); }

/* Windows ekran ölçeklendirmesi (%125 / %150) telafisi:
   yüksek DPI'da kök fontu küçülterek tüm rem değerleri orantılı küçülür. */
@media (min-resolution: 144dpi) { html { font-size: 13px; } }
@media (min-resolution: 160dpi) { html { font-size: 11.5px; } }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--alpet-blue-dark); }

img { max-width: 100%; display: block; }

/* --- Yardımcı --- */
.container { width: 100%; max-width: var(--page-max); margin: 0 auto; padding: 0 2rem; }

/* --- Butonlar --- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1.25rem; border: none; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
}
.btn-primary { background: var(--alpet-blue); color: var(--white); }
.btn-primary:hover { background: var(--alpet-blue-dark); color: var(--white); }
.btn-success { background: var(--alpet-green); color: var(--white); }
.btn-success:hover { background: var(--alpet-green-dark); }
.btn-outline { background: transparent; border: 0.09375rem solid var(--alpet-blue); color: var(--alpet-blue); }
.btn-outline:hover { background: var(--alpet-blue); color: var(--white); }

/* --- Kart --- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

/* ===================================================================
   LAYOUT — Header & Profil Drawer
   =================================================================== */
.app-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(0.875rem);
  -webkit-backdrop-filter: saturate(180%) blur(0.875rem);
  border-bottom: 1px solid var(--border);
}
.app-header .header-inner {
  height: 100%; display: flex; align-items: center; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: 0.625rem; font-family: var(--font-display); font-weight: 700; }
.brand img { height: 2.25rem; width: auto; }
.brand .brand-name { font-size: 1.3rem; color: var(--alpet-blue); letter-spacing: -0.03125rem; }
.brand .brand-name b { color: var(--alpet-green); }

.main-nav { display: flex; align-items: center; gap: 0.25rem; margin: 0 auto; }
.main-nav a {
  display: flex; align-items: center; gap: 0.375rem;
  padding: 0.5rem 0.875rem; border-radius: 0.625rem;
  color: var(--gray-700); font-weight: 500; font-size: 0.92rem;
  white-space: nowrap; transition: all var(--transition);
}
.main-nav a .material-symbols-rounded { font-size: 1.25rem; }
.main-nav a:hover { background: var(--alpet-blue-light); color: var(--alpet-blue); }
.main-nav a.active { background: var(--alpet-blue); color: var(--white); }

/* Header açılır menü (Kurumsal) */
.nav-dropdown { position: relative; }
.nav-dropdown .nav-drop-toggle {
  display: flex; align-items: center; gap: 0.375rem; padding: 0.5rem 0.75rem; border-radius: 0.625rem;
  color: var(--gray-700); font-weight: 500; font-size: 0.92rem; white-space: nowrap;
  cursor: pointer; transition: all var(--transition);
}
.nav-dropdown .nav-drop-toggle .material-symbols-rounded { font-size: 1.25rem; }
.nav-dropdown .nav-drop-toggle .chev { font-size: 1.125rem; transition: transform var(--transition); }
.nav-dropdown:hover .nav-drop-toggle,
.nav-dropdown.open .nav-drop-toggle { background: var(--alpet-blue-light); color: var(--alpet-blue); }
.nav-dropdown.open .nav-drop-toggle .chev { transform: rotate(180deg); }
.nav-submenu {
  position: absolute; top: calc(100% + 0.625rem); left: 0; min-width: 15.625rem;
  background: #fff; border: 1px solid var(--border); border-radius: 0.875rem;
  box-shadow: var(--shadow-lg); padding: 0.5rem; z-index: 130;
  opacity: 0; visibility: hidden; transform: translateY(-0.5rem); transition: all var(--transition);
}
.nav-dropdown.open .nav-submenu { opacity: 1; visibility: visible; transform: none; }
.nav-submenu::before {
  content: ""; position: absolute; top: -0.3125rem; left: 1.5rem; width: 0.75rem; height: 0.75rem;
  background: #fff; border-left: 1px solid var(--border); border-top: 1px solid var(--border); transform: rotate(45deg);
}
.main-nav .nav-submenu a {
  display: flex; align-items: center; gap: 0.6875rem; padding: 0.625rem 0.75rem; border-radius: 0.5625rem;
  color: var(--gray-700); font-size: 0.9rem; font-weight: 500; white-space: nowrap;
}
.main-nav .nav-submenu a:hover { background: var(--alpet-blue-light); color: var(--alpet-blue); }
.main-nav .nav-submenu a .material-symbols-rounded { font-size: 1.1875rem; color: var(--alpet-blue); }
.main-nav .nav-submenu a.active { background: var(--alpet-blue); color: #fff; }
.main-nav .nav-submenu a.active .material-symbols-rounded { color: #fff; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
.icon-btn {
  position: relative; width: 2.625rem; height: 2.625rem; border-radius: 0.75rem;
  display: grid; place-items: center; border: none; cursor: pointer;
  background: transparent; color: var(--gray-700); transition: all var(--transition);
}
.icon-btn:hover { background: var(--gray-100); color: var(--alpet-blue); }
.icon-btn .badge {
  position: absolute; top: 0.375rem; right: 0.375rem; min-width: 1.0625rem; height: 1.0625rem;
  padding: 0 0.25rem; border-radius: 0.5625rem; background: var(--alpet-orange);
  color: #fff; font-size: 0.65rem; font-weight: 700;
  display: grid; place-items: center; border: 2px solid var(--white);
}
.profile-trigger {
  display: flex; align-items: center; gap: 0.625rem; padding: 0.3125rem 0.75rem 0.3125rem 0.3125rem;
  border: 1px solid var(--border); border-radius: 2.5rem; background: var(--white);
  cursor: pointer; transition: all var(--transition);
}
.profile-trigger:hover { box-shadow: var(--shadow-sm); border-color: var(--alpet-blue); }
.avatar { border-radius: 50%; object-fit: cover; background: var(--gray-200); }
.avatar.sm { width: 2.125rem; height: 2.125rem; }
.avatar.md { width: 3rem; height: 3rem; }
.avatar.lg { width: 4.5rem; height: 4.5rem; }
.profile-trigger .who { text-align: left; line-height: 1.2; }
.profile-trigger .who strong { font-size: 0.85rem; display: block; }
.profile-trigger .who span { font-size: 0.72rem; color: var(--text-muted); }

/* Drawer (genel) */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(15, 30, 50, 0.4);
  backdrop-filter: blur(2px); opacity: 0; visibility: hidden;
  transition: all var(--transition); z-index: 200;
}
.drawer-overlay.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 1.125rem; right: 1.125rem; bottom: 1.125rem; height: auto;
  width: 22.5rem; max-width: calc(100vw - 2.25rem);
  background: var(--white); border-radius: 1.25rem; overflow: hidden;
  box-shadow: -12px 0 44px rgba(0,0,0,0.16);
  transform: translateX(calc(100% + 1.125rem)); transition: transform 0.28s cubic-bezier(.4,0,.2,1);
  z-index: 201; display: flex; flex-direction: column;
}
.drawer.wide { width: 40vw; min-width: 27.5rem; }
.drawer.xwide { width: 60vw; min-width: 32.5rem; }
#notifDrawer { width: 20vw; min-width: 20rem; }
/* Soldan açılan varyant */
.drawer.left {
  right: auto; left: 1.125rem;
  box-shadow: 12px 0 44px rgba(0,0,0,0.16);
  transform: translateX(calc(-100% - 1.125rem));
}
.drawer.open { transform: none; }
.drawer-header {
  padding: 1.25rem; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.drawer-header h3 { font-family: var(--font-display); font-size: 1.05rem; display: flex; align-items: center; gap: 0.6875rem; }
.drawer-header h3 .material-symbols-rounded { font-size: 1.25rem; color: var(--alpet-blue); background: var(--alpet-blue-light); width: 2.25rem; height: 2.25rem; border-radius: 0.625rem; display: grid; place-items: center; }
.drawer-body { padding: 1.25rem; overflow-y: auto; flex: 1; }
/* Firma arama kutusu (drawer içinde) */
.firm-search { position: relative; margin-bottom: 0.875rem; }
.firm-search .material-symbols-rounded { position: absolute; left: 0.8125rem; top: 50%; transform: translateY(-50%); font-size: 1.25rem; color: var(--gray-500); pointer-events: none; }
.firm-search input { width: 100%; height: 2.75rem; padding: 0 0.875rem 0 2.625rem; border: 1px solid var(--border); border-radius: 0.6875rem; background: var(--gray-50); font-size: 0.9rem; font-family: inherit; transition: all var(--transition); }
.firm-search input:focus { outline: none; background: #fff; border-color: var(--alpet-blue); box-shadow: 0 0 0 3px var(--alpet-blue-light); }
.firm-empty { text-align: center; color: var(--text-muted); font-size: 0.88rem; padding: 1.375rem 0; }
.firm-empty[hidden] { display: none; }

/* Profil drawer içeriği */
.profile-card {
  text-align: center; padding: 1.5rem 1.25rem;
  background: linear-gradient(135deg, var(--alpet-blue), var(--alpet-green));
  color: #fff; border-radius: var(--radius); margin-bottom: 1rem;
}
.profile-card .avatar { border: 0.1875rem solid rgba(255,255,255,0.6); margin: 0 auto 0.75rem; }
.profile-card h4 { font-size: 1.1rem; }
.profile-card p { font-size: 0.85rem; opacity: 0.9; }
.drawer-menu { list-style: none; }
.drawer-menu a {
  display: flex; align-items: center; gap: 0.875rem; padding: 0.75rem 0.875rem;
  border-radius: 0.625rem; color: var(--gray-700); font-weight: 500;
}
.drawer-menu a:hover { background: var(--gray-100); color: var(--alpet-blue); }
.drawer-menu a.logout { color: #d64545; }
.drawer-menu .material-symbols-rounded { font-size: 1.375rem; }
.drawer-menu li.divider { height: 1px; background: var(--border); margin: 0.5rem 0; }

/* Bildirim drawer */
.notif-head-actions { display: flex; align-items: center; gap: 0.5rem; }
.notif-mark { font-size: 0.78rem; font-weight: 600; color: var(--alpet-blue); cursor: pointer; }
.notif-mark:hover { text-decoration: underline; }
.notif-list { list-style: none; display: flex; flex-direction: column; }
.notif-item { display: flex; gap: 0.75rem; padding: 0.875rem 0.375rem; border-bottom: 1px solid var(--gray-100); cursor: pointer; transition: background var(--transition); position: relative; }
.notif-item:hover { background: var(--gray-50); }
.notif-item.unread { background: var(--alpet-blue-light); }
.notif-item.unread:hover { background: #dcebfa; }
.notif-item .n-ic { width: 2.5rem; height: 2.5rem; border-radius: 0.6875rem; display: grid; place-items: center; flex-shrink: 0; }
.notif-item .n-ic .material-symbols-rounded { font-size: 1.3125rem; }
.n-ic.blue { background: var(--alpet-blue-light); color: var(--alpet-blue); }
.n-ic.green { background: var(--alpet-green-light); color: var(--alpet-green-dark); }
.n-ic.orange { background: var(--alpet-orange-light); color: #cc6a10; }
.n-ic.red { background: #fbeaea; color: #d64545; }
.notif-item .n-body { flex: 1; min-width: 0; }
.notif-item .n-body p { font-size: 0.86rem; line-height: 1.4; }
.notif-item .n-body p b { font-weight: 600; }
.notif-item .n-time { font-size: 0.74rem; color: var(--text-muted); margin-top: 0.25rem; display: flex; align-items: center; gap: 0.3125rem; }
.notif-item .n-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--alpet-blue); flex-shrink: 0; align-self: center; }
.notif-empty { text-align: center; padding: 2.5rem 1.25rem; color: var(--text-muted); }

/* ===================================================================
   ANA SAYFA — Bento Grid Dashboard
   =================================================================== */
main.page { padding: 1.125rem 0 3.75rem; }
.page-head { margin-bottom: 1.375rem; }
.page-head h1 { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.03125rem; }
.page-head p { color: var(--text-muted); font-size: 0.92rem; }

/* Dashboard hero şeridi (greeting + saat kartı, bento ile aynı 12 kolon) */
.dash-hero {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.125rem;
  align-items: center; margin-bottom: 1rem;
}
.dash-hero .greet { grid-column: span 8; }
.dash-hero .greet h1 { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: -0.03125rem; line-height: 1.2; }
.dash-hero .greet p { color: var(--text-muted); font-size: 0.88rem; }

/* Canlı saat kartı (hava durumu genişliğinde = col-4, ince tasarım) */
.hclock {
  grid-column: span 4;
  display: flex; align-items: center; gap: 0.875rem; color: #fff;
  background: linear-gradient(135deg, var(--alpet-blue), var(--alpet-blue-dark));
  border-radius: 0.75rem; padding: 0.5625rem 1rem; box-shadow: var(--shadow);
}
.hclock .clock-ic {
  font-size: 1.25rem; width: 2.25rem; height: 2.25rem; border-radius: 0.625rem;
  background: rgba(255,255,255,0.16); display: grid; place-items: center; flex-shrink: 0;
}
.hclock .time { font-size: 1.45rem; font-weight: 700; font-family: var(--font-display); line-height: 1; font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; letter-spacing: 0.03125rem; min-width: 7.375rem; text-align: center; }
.hclock .clock-div { width: 1px; align-self: stretch; margin: 2px 0.25rem; background: rgba(255,255,255,0.25); }
.hclock .clock-date { line-height: 1.25; }
.hclock .clock-date strong { font-size: 0.9rem; font-weight: 600; display: block; }
.hclock .clock-date span { font-size: 0.75rem; opacity: 0.85; }
@media (max-width: 900px) {
  .dash-hero .greet, .hclock { grid-column: span 12; }
}

.bento {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 1.125rem; align-items: stretch;   /* aynı satırdaki kartlar eşit yükseklik */
}
.bento > * { min-width: 0; }
.col-3 { grid-column: span 3; } .col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; } .col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; } .col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; } .col-12 { grid-column: span 12; }

.tile {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 1.125rem; position: relative; overflow: hidden;
  display: flex; flex-direction: column;   /* içerik alta yaslanabilsin, eşit yükseklik */
}
/* Kart üstünde ince aksan çizgisi */
.tile::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 0.1875rem;
  background: linear-gradient(90deg, var(--alpet-blue), var(--alpet-green));
  border-radius: var(--radius) var(--radius) 0 0; opacity: 0.9;
}
.tile.accent-orange::before { background: linear-gradient(90deg, var(--alpet-orange), #ffb56b); }
.tile.accent-green::before { background: linear-gradient(90deg, var(--alpet-green), #a5e06b); }
.tile.no-accent::before { display: none; }
.weather::before, .survey::before { display: none; }
.tile.glass {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(0.625rem); -webkit-backdrop-filter: blur(0.625rem);
  border: 1px solid rgba(255,255,255,0.7);
}
/* Kart başlığı: ikon + ince ayraç çizgisi */
.tile-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: -2px -1.125rem 1rem; padding: 0 1.125rem 0.875rem;
  border-bottom: 1px solid var(--border);
}
.tile-head h3 {
  font-family: var(--font-display); font-size: 1rem;
  display: flex; align-items: center; gap: 0.625rem;
}
.tile-head h3 .material-symbols-rounded {
  color: var(--alpet-blue); font-size: 1.25rem;
  background: var(--alpet-blue-light); width: 2.125rem; height: 2.125rem;
  border-radius: 0.625rem; display: grid; place-items: center;
}
.tile-head .more { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }
.tile-head .more:hover { color: var(--alpet-blue); }

/* Slider */
.slider { border-radius: var(--radius); overflow: hidden; position: relative; height: 20rem; }
.slides { display: flex; height: 100%; transition: transform 0.5s ease; }
.slide { min-width: 100%; position: relative; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide .caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.75rem 1.5rem;
  background: linear-gradient(transparent, rgba(0,20,50,0.85)); color: #fff;
}
.slide .caption .tag {
  display: inline-block; background: var(--alpet-green); color: #fff;
  font-size: 0.7rem; font-weight: 700; padding: 0.1875rem 0.625rem; border-radius: 1.25rem; margin-bottom: 0.5rem;
}
.slide .caption h2 { font-family: var(--font-display); font-size: 1.4rem; }
.slider-dots { position: absolute; bottom: 1rem; right: 1.25rem; display: flex; gap: 0.4375rem; }
.slider-dots button { width: 0.5625rem; height: 0.5625rem; border-radius: 50%; border: none; background: rgba(255,255,255,0.5); cursor: pointer; }
.slider-dots button.active { background: #fff; width: 1.5rem; border-radius: 0.3125rem; }
.slider-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 2.5rem; height: 2.5rem; border-radius: 50%; border: none; background: rgba(255,255,255,0.85); cursor: pointer; display: grid; place-items: center; }
.slider-nav.prev { left: 0.875rem; } .slider-nav.next { right: 0.875rem; }

/* Ticker (kayan yazı) */
.ticker {
  display: flex; align-items: center; gap: 0; background: var(--alpet-blue);
  color: #fff; border-radius: var(--radius); overflow: hidden;
}
.ticker .label {
  background: var(--alpet-orange); padding: 0.75rem 1.125rem; font-weight: 700;
  font-size: 0.85rem; display: flex; align-items: center; gap: 0.375rem; white-space: nowrap;
}
.ticker .track-wrap { overflow: hidden; flex: 1; }
.ticker .track { display: inline-flex; white-space: nowrap; animation: ticker 30s linear infinite; padding: 0.75rem 0; }
.ticker .track span { padding: 0 2rem; font-size: 0.88rem; position: relative; }
.ticker .track span::after { content: "•"; position: absolute; right: -0.25rem; opacity: 0.5; }
.ticker:hover .track { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* CMS içerik kartları */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.875rem; }
.news-card { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: #fff; transition: all var(--transition); cursor: pointer; }
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-0.1875rem); }
.news-card .thumb { height: 8.125rem; position: relative; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .cat { position: absolute; top: 0.625rem; left: 0.625rem; font-size: 0.68rem; font-weight: 700; color: #fff; padding: 0.1875rem 0.5625rem; border-radius: 1.25rem; }
.news-card .body { padding: 0.75rem 0.875rem 1rem; }
.news-card h4 { font-size: 0.95rem; margin-bottom: 0.375rem; line-height: 1.35; }
.news-card p { font-size: 0.8rem; color: var(--text-muted); }
.news-card .meta { margin-top: 0.625rem; font-size: 0.72rem; color: var(--gray-500); display: flex; gap: 0.75rem; }
.cat.blue { background: var(--alpet-blue); } .cat.green { background: var(--alpet-green); } .cat.orange { background: var(--alpet-orange); }

/* ---- İçerik varyant widgetları (farklı kategoriler, farklı gösterim) ---- */
/* Holdingten Haberler — kompakt liste */
.mini-news-list { display: flex; flex-direction: column; gap: 0.25rem; }
.mini-news-item { display: flex; gap: 0.75rem; align-items: center; cursor: pointer; padding: 0.5rem; border-radius: 0.625rem; transition: background var(--transition); }
.mini-news-item:hover { background: var(--gray-50); }
.mini-news-item img { width: 4rem; height: 3.125rem; border-radius: 0.5rem; object-fit: cover; flex-shrink: 0; }
.mini-news-item h4 { font-size: 0.84rem; line-height: 1.3; }
.mini-news-item .m { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.1875rem; display: flex; gap: 0.5rem; }

/* Başarılarımız — madalyalı vurgu */
.achv-list { display: flex; flex-direction: column; gap: 0.625rem; }
.achv { display: flex; gap: 0.75rem; align-items: center; padding: 0.6875rem 0.75rem; border-radius: 0.75rem; background: linear-gradient(90deg, var(--alpet-green-light), transparent); border: 1px solid var(--alpet-green-light); }
.achv .medal { width: 2.625rem; height: 2.625rem; border-radius: 50%; background: linear-gradient(135deg, var(--alpet-green), var(--alpet-green-dark)); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.achv h4 { font-size: 0.87rem; line-height: 1.3; }
.achv span { font-size: 0.75rem; color: var(--text-muted); }

/* Ayın Kitabı — öne çıkan içerik */
.book { display: flex; gap: 1rem; }
.book .cover { width: 6.125rem; height: 9rem; border-radius: 0.625rem; object-fit: cover; box-shadow: var(--shadow); flex-shrink: 0; }
.book .b-meta { display: flex; flex-direction: column; }
.book h4 { font-size: 1.02rem; font-family: var(--font-display); line-height: 1.25; }
.book .author { font-size: 0.8rem; color: var(--alpet-blue); font-weight: 600; margin-bottom: 0.5rem; }
.book .desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }
.book .stars { color: var(--alpet-orange); margin-top: auto; font-size: 0.95rem; letter-spacing: 2px; }

/* Kişi listeleri (doğum günü / yeni katılan) */
.person-list { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; }
.person-item { display: flex; align-items: center; gap: 0.75rem; }
.person-item .info { line-height: 1.25; }
.person-item .info strong { font-size: 0.88rem; }
.person-item .info span { font-size: 0.76rem; color: var(--text-muted); display: block; }
.person-item .action { margin-left: auto; }
.person-list .extra { display: none; }
.person-list.expanded .extra { display: flex; }
.list-more { margin-top: auto; padding-top: 0.75rem; }
.list-more button {
  width: 100%; border: 1px dashed var(--border); background: var(--gray-50);
  color: var(--alpet-blue); font: inherit; font-weight: 600; font-size: 0.82rem;
  padding: 0.5625rem; border-radius: 0.625rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 0.25rem;
  transition: all var(--transition);
}
.list-more button:hover { background: var(--alpet-blue-light); border-color: var(--alpet-blue); }
.list-more button .material-symbols-rounded { font-size: 1.125rem; transition: transform var(--transition); }
.list-more button.open .material-symbols-rounded { transform: rotate(180deg); }
.pill { font-size: 0.7rem; font-weight: 600; padding: 0.25rem 0.625rem; border-radius: 1.25rem; }
.pill.green { background: var(--alpet-green-light); color: var(--alpet-green-dark); }
.pill.blue { background: var(--alpet-blue-light); color: var(--alpet-blue); }
.pill.orange { background: var(--alpet-orange-light); color: #cc6a10; }
.pill.gray { background: var(--gray-100); color: var(--gray-700); }

/* Hava durumu */
.weather .tile-head, .survey .tile-head { border-bottom-color: rgba(255,255,255,0.25); }
.weather .tile-head h3 .material-symbols-rounded,
.survey .tile-head h3 .material-symbols-rounded { background: rgba(255,255,255,0.2); color: #fff; }
.weather { text-align: center; background: linear-gradient(135deg, #4a90d9, var(--alpet-blue)); color: #fff; }
.weather .temp { font-size: 2.6rem; font-weight: 700; font-family: var(--font-display); }
.weather .material-symbols-rounded { font-size: 2.875rem; }
.weather .loc { font-size: 0.85rem; opacity: 0.9; }
.weather .forecast { display: flex; justify-content: space-between; margin-top: 0.875rem; padding-top: 0.875rem; border-top: 1px solid rgba(255,255,255,0.25); }
.weather .forecast div { font-size: 0.75rem; text-align: center; }
.weather .forecast .material-symbols-rounded { font-size: 1.5rem; display: block; }

/* Mini takvim */
.mini-cal .cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.625rem; }
.mini-cal .cal-head strong { font-family: var(--font-display); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.1875rem; text-align: center; }
.cal-grid .dow { font-size: 0.68rem; color: var(--text-muted); font-weight: 600; padding: 0.25rem 0; }
.cal-grid .day { font-size: 0.8rem; padding: 0.375rem 0; border-radius: 0.5rem; cursor: pointer; position: relative; }
.cal-grid .day:hover { background: var(--gray-100); }
.cal-grid .day.muted { color: var(--gray-300); }
.cal-grid .day.today { background: var(--alpet-blue); color: #fff; font-weight: 700; }
.cal-grid .day.has-event::after { content: ""; position: absolute; bottom: 0.1875rem; left: 50%; transform: translateX(-50%); width: 0.3125rem; height: 0.3125rem; border-radius: 50%; background: var(--alpet-orange); }
.cal-grid .day.today.has-event::after { background: #fff; }
.mini-cal .mc-nav { display: flex; align-items: center; gap: 0.25rem; }
.mini-cal .mc-btn { border: 1px solid var(--border); background: #fff; border-radius: 0.5rem; cursor: pointer; color: var(--gray-700); display: inline-flex; align-items: center; justify-content: center; height: 1.875rem; transition: all var(--transition); }
.mini-cal .mc-btn:not(.mc-today) { width: 1.875rem; }
.mini-cal .mc-btn.mc-today { padding: 0 0.625rem; font: inherit; font-size: 0.76rem; font-weight: 600; }
.mini-cal .mc-btn:hover { border-color: var(--alpet-blue); color: var(--alpet-blue); }
.mini-cal .mc-btn .material-symbols-rounded { font-size: 1.125rem; }
.cal-grid .day.selected { background: var(--alpet-blue-light); color: var(--alpet-blue); font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--alpet-blue); }
.cal-grid .day.today.selected { background: var(--alpet-blue); color: #fff; box-shadow: none; }
.day-events .de-head { display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem; font-weight: 700; color: var(--gray-700); text-transform: uppercase; letter-spacing: 0.01875rem; }
.day-events .de-clear { border: none; background: var(--alpet-blue-light); color: var(--alpet-blue); font: inherit; font-size: 0.72rem; font-weight: 600; padding: 0.1875rem 0.625rem; border-radius: 1.25rem; cursor: pointer; text-transform: none; }
.day-events .de-empty { font-size: 0.82rem; color: var(--text-muted); }
.day-events .de-extra { display: flex; flex-direction: column; gap: 0.5rem; }
.day-events .de-extra[hidden] { display: none; }
.day-events .de-more { align-self: flex-start; display: inline-flex; align-items: center; gap: 0.25rem; border: none; background: var(--alpet-blue-light); color: var(--alpet-blue); font: inherit; font-size: 0.78rem; font-weight: 600; padding: 0.375rem 0.75rem; border-radius: 1.25rem; cursor: pointer; margin-top: 2px; }
.day-events .de-more:hover { background: #d5e6f7; }
.day-events .de-more .material-symbols-rounded { font-size: 1rem; transition: transform var(--transition); }
.day-events .de-more.open .material-symbols-rounded { transform: rotate(180deg); }
.day-events { margin-top: 0.875rem; padding-top: 0.75rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 0.5rem; }
.event-line { display: flex; gap: 0.625rem; align-items: flex-start; font-size: 0.82rem; }
.event-line .dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; margin-top: 0.375rem; flex-shrink: 0; }
.event-line .time { color: var(--text-muted); font-size: 0.74rem; }

/* Onay listeleri */
.approve-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.approve-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem; border: 1px solid var(--border); border-radius: 0.625rem; }
.approve-item .ico { width: 2.375rem; height: 2.375rem; border-radius: 0.625rem; display: grid; place-items: center; flex-shrink: 0; }
.approve-item .ico.leave { background: var(--alpet-green-light); color: var(--alpet-green-dark); }
.approve-item .ico.advance { background: var(--alpet-orange-light); color: #cc6a10; }
.approve-item .ico.travel { background: var(--alpet-blue-light); color: var(--alpet-blue); }
.approve-item .txt { line-height: 1.3; flex: 1; }
.approve-item .txt strong { font-size: 0.85rem; }
.approve-item .txt span { font-size: 0.74rem; color: var(--text-muted); }
.approve-item .btns { display: flex; gap: 0.375rem; }
.mini-btn { width: 1.875rem; height: 1.875rem; border-radius: 0.5rem; border: none; cursor: pointer; display: grid; place-items: center; }
.mini-btn.ok { background: var(--alpet-green); color: #fff; } .mini-btn.no { background: #fbeaea; color: #d64545; }
.tabs-mini { display: flex; gap: 0.375rem; background: var(--gray-100); padding: 0.25rem; border-radius: 0.625rem; margin-bottom: 0.75rem; }
.tabs-mini button { flex: 1; border: none; background: transparent; padding: 0.4375rem; border-radius: 0.4375rem; font-weight: 600; font-size: 0.82rem; cursor: pointer; color: var(--gray-700); }
.tabs-mini button.active { background: #fff; color: var(--alpet-blue); box-shadow: var(--shadow-sm); }

/* Kısa yollar */
.shortcut-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.625rem; }
.shortcut { display: block; text-align: center; padding: 0.875rem 0.5rem; border-radius: 0.75rem; border: 1px solid var(--border); cursor: pointer; transition: all var(--transition); color: inherit; text-decoration: none; }
.shortcut:hover { border-color: var(--alpet-blue); background: var(--alpet-blue-light); transform: translateY(-2px); }
.shortcut .material-symbols-rounded { font-size: 1.625rem; color: var(--alpet-blue); }
.shortcut span { display: block; font-size: 0.74rem; margin-top: 0.375rem; font-weight: 500; }

/* Anket wizard */
.survey { background: linear-gradient(135deg, var(--alpet-green), var(--alpet-green-dark)); color: #fff; }
.survey .tile-head h3 { color: #fff; } .survey .tile-head h3 .material-symbols-rounded { color: #fff; }
.survey .q { font-size: 1.02rem; font-weight: 600; margin-bottom: 0.875rem; font-family: var(--font-display); }
.survey .opts { display: flex; flex-direction: column; gap: 0.5rem; }
.survey .opt { background: rgba(255,255,255,0.15); border: 0.09375rem solid rgba(255,255,255,0.3); color: #fff; padding: 0.6875rem 0.875rem; border-radius: 0.625rem; cursor: pointer; text-align: left; font-size: 0.9rem; font-weight: 500; transition: all var(--transition); }
.survey .opt:hover { background: rgba(255,255,255,0.28); }
.survey .opt.selected { background: #fff; color: var(--alpet-green-dark); border-color: #fff; }
.survey .wiz-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; }
.survey .steps { display: flex; gap: 0.375rem; }
.survey .steps i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: rgba(255,255,255,0.4); }
.survey .steps i.active { background: #fff; width: 1.375rem; border-radius: 0.25rem; }
.survey .btn-next { background: #fff; color: var(--alpet-green-dark); border: none; padding: 0.5625rem 1.125rem; border-radius: 0.5625rem; font-weight: 700; cursor: pointer; }

/* ---- Mobil alt navigasyon (bottom nav) — yüzen, modern ---- */
.bottom-nav { display: none; }
@media (max-width: 820px) {
  .bottom-nav {
    display: flex; position: fixed; left: 0.75rem; right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0));
    height: 4.5rem; padding: 0 0.375rem; gap: 0.25rem;
    background: rgba(255,255,255,0.75);
    backdrop-filter: saturate(180%) blur(1.25rem); -webkit-backdrop-filter: saturate(180%) blur(1.25rem);
    border: 1px solid rgba(255,255,255,0.6); border-radius: 1.375rem;
    box-shadow: 0 10px 30px -6px rgba(16,35,59,0.28), 0 2px 8px rgba(16,35,59,0.08);
    z-index: 150;
  }
  .bottom-nav a, .bottom-nav button {
    position: relative; flex: 1; border: none; background: transparent; cursor: pointer; font: inherit;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem;
    color: var(--gray-500); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.01em;
    -webkit-tap-highlight-color: transparent; transition: color var(--transition);
  }
  /* İkon kabı — yükselen çip */
  .bottom-nav a .material-symbols-rounded,
  .bottom-nav button .material-symbols-rounded {
    font-size: 1.5rem; width: 3rem; height: 2rem; display: grid; place-items: center;
    border-radius: 1rem; transition: all 0.24s cubic-bezier(.34,1.4,.5,1);
  }
  .bottom-nav a:active .material-symbols-rounded,
  .bottom-nav button:active .material-symbols-rounded { transform: scale(0.9); }
  /* Aktif öğe: gradyanlı, yukarı kalkan, gölge + FILL */
  .bottom-nav a.active { color: var(--alpet-blue); font-weight: 700; }
  .bottom-nav a.active .material-symbols-rounded {
    color: #fff; font-variation-settings: "FILL" 1;
    background: linear-gradient(135deg, var(--alpet-blue), #0a74d6);
    box-shadow: 0 6px 14px -3px rgba(0,94,184,0.55);
    transform: translateY(-0.25rem);
  }
  /* Menü butonu (en sağ) — yeşil vurgulu ayrım */
  .bottom-nav #menuBtn .material-symbols-rounded {
    color: var(--alpet-green-dark); background: var(--alpet-green-light);
  }
  .bottom-nav #menuBtn:active .material-symbols-rounded { background: #d9f0c6; }
}

/* ===================================================================
   ORTAK DIALOG (confirm / prompt) — SweetAlert benzeri
   =================================================================== */
.dialog-overlay { position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100dvh; background: rgba(15,30,50,0.5); backdrop-filter: blur(0.1875rem); -webkit-backdrop-filter: blur(0.1875rem); display: flex; align-items: center; justify-content: center; padding: 1.25rem; z-index: 500; opacity: 0; visibility: hidden; transition: opacity var(--transition), visibility var(--transition); overflow-y: auto; }
.dialog-overlay.open { opacity: 1; visibility: visible; }
.dialog { width: 25.625rem; max-width: 100%; background: #fff; border-radius: 1.125rem; box-shadow: var(--shadow-lg); padding: 1.75rem 1.625rem 1.375rem; text-align: center; transform: scale(0.94); transition: transform var(--transition); }
.dialog-overlay.open .dialog { transform: none; }
.dialog .d-icon { width: 4.125rem; height: 4.125rem; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1rem; }
.dialog .d-icon .material-symbols-rounded { font-size: 2.125rem; }
.d-icon.danger { background: #fbeaea; color: #d64545; }
.d-icon.warn { background: var(--alpet-orange-light); color: var(--alpet-orange); }
.d-icon.info { background: var(--alpet-blue-light); color: var(--alpet-blue); }
.d-icon.success { background: var(--alpet-green-light); color: var(--alpet-green-dark); }
.dialog h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 0.5rem; }
.dialog p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1.25rem; line-height: 1.5; }
.dialog .d-input { width: 100%; padding: 0.6875rem 0.875rem; border: 1px solid var(--border); border-radius: 0.625rem; font: inherit; font-size: 0.95rem; outline: none; margin-bottom: 1.25rem; text-align: left; transition: border var(--transition), box-shadow var(--transition); }
.dialog .d-input:focus { border-color: var(--alpet-blue); box-shadow: 0 0 0 3px var(--alpet-blue-light); }
.dialog .d-textarea { width: 100%; padding: 0.6875rem 0.875rem; border: 1px solid var(--border); border-radius: 0.625rem; font: inherit; font-size: 0.92rem; outline: none; margin-bottom: 0.5rem; text-align: left; resize: vertical; min-height: 5.25rem; transition: border var(--transition), box-shadow var(--transition); }
.dialog .d-textarea:focus { border-color: var(--alpet-blue); box-shadow: 0 0 0 3px var(--alpet-blue-light); }
.dialog .d-input.err, .dialog .d-textarea.err { border-color: #d64545; box-shadow: 0 0 0 3px #fbeaea; }
.dialog .d-err { color: #d64545; font-size: 0.8rem; font-weight: 600; text-align: left; margin: -0.25rem 0 0.875rem; }
.dialog .d-actions { display: flex; gap: 0.625rem; margin-top: 0.75rem; }
/* Otomatik kapanma geri sayım çubuğu */
.dialog .d-progress { display: none; margin-top: 1rem; }
.dialog .d-progress.on { display: block; }
.dialog .d-progress .d-progress-bar { height: 0.3125rem; border-radius: 1.25rem; background: var(--gray-100); overflow: hidden; }
.dialog .d-progress .d-progress-bar span { display: block; height: 100%; width: 100%; border-radius: 1.25rem; background: var(--alpet-blue); transform-origin: left center; }
@keyframes dProgShrink { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.dialog .d-progress.warn .d-progress-bar span { background: var(--alpet-orange); }
.dialog .d-progress.danger .d-progress-bar span { background: #d64545; }
.dialog .d-progress.success .d-progress-bar span { background: var(--alpet-green); }
.dialog .d-progress .d-progress-lbl { font-size: 0.74rem; color: var(--text-muted); margin-top: 0.5rem; text-align: center; }
.dialog-overlay.reverse .d-actions { flex-direction: row-reverse; }
.dialog .d-actions .btn { flex: 1; justify-content: center; }
.btn-danger { background: #d64545; color: #fff; }
.btn-danger:hover { background: #be3a3a; }

/* ===================================================================
   RESİM KIRPICI (crop)
   =================================================================== */
.crop-overlay { position: fixed; inset: 0; background: rgba(15,30,50,0.6); backdrop-filter: blur(0.1875rem); -webkit-backdrop-filter: blur(0.1875rem); display: grid; place-items: center; z-index: 520; opacity: 0; visibility: hidden; transition: opacity var(--transition), visibility var(--transition); padding: 1.25rem; }
.crop-overlay.open { opacity: 1; visibility: visible; }
.crop-box { background: #fff; border-radius: 1.125rem; box-shadow: var(--shadow-lg); padding: 1.375rem; max-width: 100%; }
.crop-box h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 1rem; text-align: center; }
.crop-stage { position: relative; overflow: hidden; background: #111; margin: 0 auto; touch-action: none; cursor: grab; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2); }
.crop-stage.dragging { cursor: grabbing; }
.crop-stage.round { border-radius: 50%; }
.crop-stage img { position: absolute; top: 0; left: 0; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; max-width: none; }
.crop-zoom { display: flex; align-items: center; gap: 0.625rem; margin: 1.125rem 0.25rem; }
.crop-zoom input[type="range"] { flex: 1; accent-color: var(--alpet-blue); cursor: pointer; }
.crop-zoom .material-symbols-rounded { color: var(--gray-500); font-size: 1.25rem; }
.crop-actions { display: flex; gap: 0.625rem; }
.crop-actions .btn { flex: 1; justify-content: center; }

/* ===================================================================
   SOHBET (yalnızca masaüstü) — Messenger tarzı
   =================================================================== */
.chat-dock { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 140; display: flex; align-items: flex-end; gap: 0.875rem; }
@media (max-width: 900px) { .chat-dock { display: none; } }

.chat-contacts { width: 17.5rem; background: #fff; border: 1px solid var(--border); border-radius: 1rem; box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column; max-height: 62vh; }
.chat-contacts .cc-head { padding: 0.8125rem 1rem; display: flex; align-items: center; justify-content: space-between; cursor: pointer; background: linear-gradient(135deg, var(--alpet-blue), var(--alpet-blue-dark)); color: #fff; }
.chat-contacts .cc-head h4 { font-family: var(--font-display); font-size: 0.98rem; display: flex; align-items: center; gap: 0.5rem; }
.chat-contacts .cc-head .cc-count { font-size: 0.72rem; background: rgba(255,255,255,0.22); padding: 2px 0.5625rem; border-radius: 1.25rem; }
.chat-contacts .cc-head .chev { transition: transform var(--transition); }
.chat-contacts.collapsed .cc-head .chev { transform: rotate(180deg); }
.chat-contacts.collapsed .cc-body,
.chat-contacts.collapsed .cc-search { display: none; }
.cc-body { overflow-y: auto; padding: 0.375rem; }
.cc-item { display: flex; gap: 0.6875rem; align-items: center; padding: 0.5625rem 0.625rem; border-radius: 0.625rem; cursor: pointer; transition: background var(--transition); }
.cc-item:hover { background: var(--gray-50); }
.cc-avatar { position: relative; flex-shrink: 0; }
.cc-avatar img { width: 2.625rem; height: 2.625rem; border-radius: 50%; object-fit: cover; }
.online-dot { position: absolute; bottom: 1px; right: 1px; width: 0.6875rem; height: 0.6875rem; border-radius: 50%; background: var(--alpet-green); border: 2px solid #fff; }
.online-dot.away { background: var(--alpet-orange); }
.online-dot.off { background: var(--gray-300); }
.cc-item .cc-info { flex: 1; min-width: 0; }
.cc-item .cc-info strong { font-size: 0.88rem; display: block; }
.cc-item .cc-info span { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.cc-item .cc-unread { background: var(--alpet-orange); color: #fff; font-size: 0.68rem; font-weight: 700; min-width: 1.125rem; height: 1.125rem; border-radius: 0.5625rem; display: grid; place-items: center; padding: 0 0.3125rem; }
.cc-item.has-unread { background: var(--alpet-blue-light); }
.cc-item.has-unread .cc-info strong { font-weight: 700; }
.cc-item.has-unread .cc-info span { color: var(--gray-900); font-weight: 500; }
.cc-head .cc-total { background: var(--alpet-orange); color: #fff; font-size: 0.68rem; font-weight: 700; min-width: 1.125rem; height: 1.125rem; border-radius: 0.5625rem; display: none; place-items: center; padding: 0 0.3125rem; }
.cc-head .cc-total.show { display: grid; }
/* Panel içi arama */
.cc-search { padding: 0.625rem 0.75rem; border-bottom: 1px solid var(--border); }
.cc-search .cc-search-box { display: flex; align-items: center; gap: 0.5rem; background: var(--gray-50); border: 1px solid var(--border); border-radius: 0.625rem; padding: 0.4375rem 0.75rem; }
.cc-search input { border: none; outline: none; background: transparent; font: inherit; font-size: 0.85rem; flex: 1; min-width: 0; }
.cc-search .material-symbols-rounded { font-size: 1.1875rem; color: var(--gray-500); }
.cc-section-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.025rem; color: var(--text-muted); font-weight: 700; padding: 0.625rem 0.75rem 0.25rem; }
.cc-empty { padding: 1.5rem 1rem; text-align: center; color: var(--text-muted); font-size: 0.83rem; }

.chat-win { width: 19.375rem; background: #fff; border: 1px solid var(--border); border-radius: 1rem; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; height: 26.25rem; overflow: hidden; animation: chatpop 0.2s ease; }
@keyframes chatpop { from { transform: translateY(1rem); opacity: 0; } to { transform: none; opacity: 1; } }
.chat-win .cw-head { padding: 0.625rem 0.875rem; background: linear-gradient(135deg, var(--alpet-blue), var(--alpet-blue-dark)); color: #fff; display: flex; align-items: center; gap: 0.625rem; }
.chat-win .cw-head img { width: 2.125rem; height: 2.125rem; border-radius: 50%; object-fit: cover; }
.chat-win .cw-head .cw-name { flex: 1; line-height: 1.2; }
.chat-win .cw-head .cw-name strong { font-size: 0.9rem; display: block; }
.chat-win .cw-head .cw-name span { font-size: 0.7rem; opacity: 0.85; }
.chat-win .cw-head button { border: none; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; width: 1.875rem; height: 1.875rem; border-radius: 0.5rem; }
.chat-win .cw-head button:hover { background: rgba(255,255,255,0.18); }
.cw-body { flex: 1; overflow-y: auto; padding: 0.875rem; display: flex; flex-direction: column; gap: 0.5rem; background: var(--gray-50); }
.cw-body .day-sep { text-align: center; font-size: 0.7rem; color: var(--text-muted); margin: 0.25rem 0; }
.msg { max-width: 76%; padding: 0.5rem 0.75rem; border-radius: 0.875rem; font-size: 0.85rem; line-height: 1.4; word-wrap: break-word; }
.msg.them { background: #fff; border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 0.25rem; }
.msg.me { background: var(--alpet-blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 0.25rem; }
.cw-input { display: flex; gap: 0.5rem; padding: 0.625rem; border-top: 1px solid var(--border); }
.cw-input input { flex: 1; border: 1px solid var(--border); border-radius: 1.25rem; padding: 0.5625rem 0.875rem; outline: none; font: inherit; font-size: 0.88rem; }
.cw-input input:focus { border-color: var(--alpet-blue); }
.cw-input button { border: none; background: var(--alpet-blue); color: #fff; width: 2.5rem; border-radius: 50%; cursor: pointer; display: grid; place-items: center; flex-shrink: 0; }
.cw-input button:hover { background: var(--alpet-blue-dark); }

/* ===================================================================
   GLOBAL ARAMA MODALI (command palette)
   =================================================================== */
.search-overlay {
  position: fixed; inset: 0; background: rgba(15,30,50,0.5);
  backdrop-filter: blur(0.1875rem); -webkit-backdrop-filter: blur(0.1875rem);
  display: flex; justify-content: center; align-items: flex-start; padding: 11vh 1.25rem 1.25rem;
  z-index: 400; opacity: 0; visibility: hidden; transition: opacity var(--transition), visibility var(--transition);
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-modal {
  width: 38.75rem; max-width: 100%; background: #fff; border-radius: 1rem;
  box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column;
  max-height: 74vh; transform: translateY(-0.75rem) scale(0.98); transition: transform var(--transition);
}
.search-overlay.open .search-modal { transform: none; }
.search-modal .search-results { flex: 1; }
.search-input-row { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.search-input-row > .material-symbols-rounded { color: var(--alpet-blue); font-size: 1.5rem; }
.search-input-row input { flex: 1; border: none; outline: none; font: inherit; font-size: 1.05rem; background: transparent; }
.search-input-row kbd { font-family: var(--font-sans); font-size: 0.72rem; color: var(--gray-500); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 0.375rem; padding: 2px 0.4375rem; background: var(--gray-50); }
.search-cats { display: flex; gap: 0.375rem; padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.search-cats button { border: 1px solid var(--border); background: #fff; border-radius: 1.25rem; padding: 0.375rem 0.875rem; font: inherit; font-size: 0.82rem; font-weight: 600; color: var(--gray-700); cursor: pointer; transition: all var(--transition); display: inline-flex; align-items: center; gap: 0.375rem; }
.search-cats button .material-symbols-rounded { font-size: 1.0625rem; }
.search-cats button:hover { border-color: var(--alpet-blue); color: var(--alpet-blue); }
.search-cats button.active { background: var(--alpet-blue); color: #fff; border-color: var(--alpet-blue); }
.search-results { overflow-y: auto; padding: 0.5rem; }
.sr-group-title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.025rem; color: var(--text-muted); font-weight: 700; padding: 0.75rem 0.75rem 0.3125rem; }
.sr-item { display: flex; gap: 0.75rem; align-items: center; padding: 0.625rem 0.75rem; border-radius: 0.625rem; cursor: pointer; text-decoration: none; color: var(--text); }
.sr-item:hover, .sr-item.active { background: var(--alpet-blue-light); }
.sr-item .sr-ic { width: 2.5rem; height: 2.5rem; border-radius: 0.625rem; display: grid; place-items: center; flex-shrink: 0; overflow: hidden; }
.sr-item .sr-ic img { width: 100%; height: 100%; object-fit: cover; }
.sr-item .sr-ic .material-symbols-rounded { font-size: 1.3125rem; }
.sr-item .sr-txt strong { font-size: 0.9rem; display: block; }
.sr-item .sr-txt span { font-size: 0.77rem; color: var(--text-muted); }
.sr-item .sr-tag { margin-left: auto; font-size: 0.7rem; font-weight: 700; padding: 0.1875rem 0.5625rem; border-radius: 1.25rem; background: var(--gray-100); color: var(--gray-700); }
.sr-empty { padding: 2.5rem 1.25rem; text-align: center; color: var(--text-muted); }
.sr-empty .material-symbols-rounded { font-size: 2.5rem; opacity: 0.5; }
.sr-ic.blue { background: var(--alpet-blue-light); color: var(--alpet-blue); }
.sr-ic.green { background: var(--alpet-green-light); color: var(--alpet-green-dark); }
.sr-ic.orange { background: var(--alpet-orange-light); color: #cc6a10; }

/* ===================================================================
   SATIŞ PANOSU & GRAFİKLER
   =================================================================== */
.seg { display: inline-flex; background: var(--gray-100); border-radius: 0.625rem; padding: 0.1875rem; }
.seg button { border: none; background: transparent; padding: 0.4375rem 0.875rem; border-radius: 0.4375rem; font: inherit; font-weight: 600; font-size: 0.82rem; color: var(--gray-600); cursor: pointer; transition: all var(--transition); }
.seg button.active { background: #fff; color: var(--alpet-blue); box-shadow: var(--shadow-sm); }

.sales-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin-bottom: 1.125rem; }
.kpi { border: 1px solid var(--border); border-radius: 0.75rem; padding: 0.875rem 1rem; background: var(--gray-50); }
.kpi .k-lbl { font-size: 0.76rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.375rem; }
.kpi .k-lbl .material-symbols-rounded { font-size: 1.0625rem; }
.kpi .k-val { font-size: 1.45rem; font-weight: 700; font-family: var(--font-display); margin-top: 0.375rem; line-height: 1; }
.kpi .k-delta { font-size: 0.75rem; font-weight: 600; display: inline-flex; align-items: center; gap: 2px; margin-top: 0.375rem; }
.kpi .k-delta .material-symbols-rounded { font-size: 0.9375rem; }
.kpi .k-delta.up { color: var(--alpet-green-dark); } .kpi .k-delta.down { color: #d64545; }
@media (max-width: 820px) { .sales-kpis { grid-template-columns: repeat(2, 1fr); } }

.chart { position: relative; }
.chart svg { display: block; width: 100%; }
.chart svg .vbar { fill: var(--bar); transition: opacity 0.15s; cursor: pointer; }
.chart svg .vbar:hover { opacity: 0.82; }
.chart svg .vx { font-size: 0.6875rem; fill: var(--gray-500); }
.chart svg .gridline { stroke: var(--gray-200); stroke-width: 1; }
.chart-tip { position: absolute; background: var(--gray-900); color: #fff; font-size: 0.78rem; padding: 0.375rem 0.625rem; border-radius: 0.5rem; pointer-events: none; transform: translate(-50%, -120%); white-space: nowrap; z-index: 5; box-shadow: var(--shadow); }

/* Yatay bar (ürün bazlı) */
.hbars { display: flex; flex-direction: column; gap: 0.875rem; }
.hbar .hb-top { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; margin-bottom: 0.375rem; }
.hbar .hb-name { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.hbar .hb-dot { width: 0.6875rem; height: 0.6875rem; border-radius: 0.1875rem; flex-shrink: 0; }
.hbar .hb-val { color: var(--gray-700); font-variant-numeric: tabular-nums; }
.hbar .hb-track { height: 0.625rem; background: var(--gray-100); border-radius: 0.375rem; overflow: hidden; }
.hbar .hb-fill { height: 100%; border-radius: 0.375rem; transition: width 0.5s ease; }

/* Donut (ürün dağılımı) */
.donut-wrap { display: flex; align-items: center; gap: 1.625rem; flex-wrap: wrap; }
.donut-legend { display: flex; flex-direction: column; gap: 0.625rem; flex: 1; min-width: 11.25rem; }
.donut-legend .dl { display: flex; align-items: center; gap: 0.5625rem; font-size: 0.86rem; }
.donut-legend .dl i { width: 0.75rem; height: 0.75rem; border-radius: 0.1875rem; flex-shrink: 0; }
.donut-legend .dl b { margin-left: auto; font-variant-numeric: tabular-nums; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
.hamburger { display: none; }
@media (max-width: 1100px) {
  .col-3, .col-4, .col-5 { grid-column: span 6; }
  .col-7, .col-8, .col-9 { grid-column: span 12; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  :root { --header-h: 3.75rem; }
  .app-header { background: rgba(255,255,255,0.96); }
  .app-header .header-inner { position: relative; }
  /* Logo solda, "ALPET·B2B" yazısı ortada */
  .brand .brand-name { display: inline; font-size: 1.15rem; position: absolute; left: 50%; transform: translateX(-50%); pointer-events: none; }
  .main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; padding: 0.75rem; box-shadow: var(--shadow); transform: translateY(calc(-100% - var(--header-h) - 0.75rem)); transition: transform 0.25s; gap: 0.25rem; }
  .main-nav.open { transform: translateY(0); }
  .hamburger { display: none !important; }
  main.page { padding-bottom: 6.75rem; }
  .nav-dropdown { width: 100%; }
  .nav-submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 2px 0 0.375rem 1.5rem; display: none; min-width: 0; }
  .nav-submenu::before { display: none; }
  .nav-dropdown.open .nav-submenu { display: block; }
  .hamburger { display: grid; }
  .profile-trigger .who { display: none; }
  .bento > * { grid-column: span 12 !important; }
  .news-grid { grid-template-columns: 1fr; }
  .shortcut-grid { grid-template-columns: repeat(3, 1fr); }
  .container { padding: 0 1rem; }
}

/* Mobilde hesap chip'i: sadece avatar kalınca ortala (yazı+ok gizli) */
@media (max-width: 980px) {
  .header-actions .account-chip { padding: 0.25rem; gap: 0; }
}
