/* ==========================================================================
   Donna Calendar — Design system v4 "Açık & ferah" (2026-11)
   styles.css'in üzerine yüklenen tema katmanı.
   Önceki koyu tema: theme-dark.css (geri dönmek için HTML'lerde bağlantıyı değiştirmek yeterli).
   ========================================================================== */

:root {
  color-scheme: light;

  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f3f4f9;
  --surface-3: #eceef6;

  --ink: #0b1020;
  --ink-2: #252d40;
  --mute: #5d6679;
  --faint: #9aa2b4;

  --line: #e8eaf2;
  --line-strong: #d6dae6;

  --accent: #5b5bf6;
  --accent-hover: #4a48e3;
  --accent-soft: #eef0ff;
  --accent-ring: rgba(91, 91, 246, 0.25);
  --brass: #b7791f;
  --brass-soft: #fdf5e6;

  --ok: #0e9f6e;
  --ok-soft: #e7f7f0;
  --warn: #c2770a;
  --warn-soft: #fff5e3;
  --danger: #e0485a;
  --danger-soft: #fdecee;

  --grad-primary: linear-gradient(135deg, #7c5cff 0%, #5b5bf6 50%, #3b82f6 100%);
  --grad-ink: linear-gradient(180deg, #0b1020 30%, #3a4260);

  --radius: 16px;
  --radius-sm: 11px;
  --radius-xs: 9px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;

  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-soft: 0 1px 2px rgba(16, 24, 40, 0.04), 0 6px 20px rgba(16, 24, 40, 0.05);
  --shadow: 0 2px 6px rgba(16, 24, 40, 0.05), 0 24px 56px rgba(16, 24, 40, 0.12);
  --lift: 0 2px 4px rgba(16, 24, 40, 0.04), 0 14px 34px rgba(91, 91, 246, 0.14);

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* ---------- Zemin: yumuşak renk ışıkları ---------- */
html { background: var(--bg); }
body { background: transparent; color: var(--ink); position: relative; }
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42vmax 32vmax at 8% -6%, rgba(124, 92, 255, 0.13), transparent 62%),
    radial-gradient(38vmax 28vmax at 96% 4%, rgba(59, 130, 246, 0.10), transparent 62%),
    radial-gradient(44vmax 30vmax at 70% 108%, rgba(244, 172, 92, 0.10), transparent 62%),
    var(--bg);
}

::selection { background: rgba(91, 91, 246, 0.18); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #d3d7e3; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #b9bfd0; }
::-webkit-scrollbar-track { background: transparent; }

h1, h2, h3, .page-head h1, .panel h2, .modal-head h2, .section-title { font-family: var(--display); letter-spacing: -0.02em; }

/* ---------- Butonlar ---------- */
.btn { border-radius: var(--radius-sm); transition: transform 0.18s var(--spring), background 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.25s var(--ease), color 0.18s var(--ease); }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 14px rgba(91, 91, 246, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { background: var(--grad-primary); box-shadow: 0 8px 24px rgba(91, 91, 246, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.3); transform: translateY(-1px); }
.btn-secondary { background: #fff; border-color: var(--line-strong); color: var(--ink); box-shadow: var(--shadow-xs); }
.btn-secondary:hover { background: #fff; border-color: #b9bfd0; box-shadow: var(--shadow-soft); }
.btn-ghost:hover { background: rgba(15, 23, 42, 0.05); }
.icon-btn:hover { background: var(--surface-2); }

/* ---------- Marka ---------- */
.brand { font-family: var(--display); font-weight: 650; letter-spacing: -0.02em; color: var(--ink); }
.brand-mark {
  color: #fff;
  font-family: var(--display);
  background: var(--grad-primary);
  box-shadow: 0 4px 12px rgba(91, 91, 246, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  border-radius: 10px;
}

/* ---------- Kartlar ---------- */
.panel,
.hearing-card,
.payment-card,
.firm-card,
.doc-item,
.finance-card,
.calendar-wrap,
.member-row,
.invite-box,
.admin-alert,
.admin-payment-toast,
.empty,
.auth-card {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.empty { color: var(--mute); }

a.hearing-card,
.payment-card,
.firm-card,
.doc-item {
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.3s var(--ease);
}
a.hearing-card:hover,
.payment-card:hover,
.doc-item:hover {
  transform: translateY(-2px);
  border-color: #c9cbff;
  box-shadow: var(--lift);
}
a.hearing-card:hover .actions .btn { border-color: var(--accent); color: var(--accent); }
.firm-card.is-open { border-color: #c9cbff; box-shadow: var(--lift); }

.hearing-date-box {
  background: linear-gradient(160deg, #eef0ff, #f6f7ff);
  border: 1px solid #dcdfff;
  color: var(--accent);
}
.deleted-case-card .hearing-date-box { background: var(--warn-soft); border-color: #f6dfb2; color: var(--warn); }

.payment-card.is-overdue { border-color: #f3d39b; box-shadow: inset 3px 0 0 var(--warn), var(--shadow-soft); }
.payment-card.is-due-today { border-color: #edd2a4; box-shadow: inset 3px 0 0 var(--brass), var(--shadow-soft); }

/* ---------- Üst menü: beyaz cam bar ---------- */
.app-topbar {
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6), 0 6px 24px rgba(16, 24, 40, 0.04);
}
.app-topbar .brand { color: var(--ink); }
.app-nav a.nav-link { color: var(--mute); border-radius: 10px; transition: color 0.2s var(--ease), background 0.2s var(--ease); }
.app-nav a.nav-link:hover { background: rgba(15, 23, 42, 0.05); color: var(--ink); }
.app-nav a.nav-link.active {
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px #dcdfff;
}
@media (min-width: 1024px) {
  .app-nav a.nav-link.active { box-shadow: inset 0 0 0 1px #dcdfff; border-radius: 10px; }
}
.firm-tag { border-color: #f0dcb5; color: #94621a; background: var(--brass-soft); }
.app-nav a.nav-link.nav-ai {
  color: #7a4f12;
  border: 1px solid #ecd3a5;
  background: linear-gradient(135deg, #fff6e6, #f1ecff);
}
.app-nav a.nav-link.nav-ai:hover { color: #5c3a0a; border-color: #ddb874; box-shadow: 0 4px 16px rgba(183, 121, 31, 0.18); }
.app-nav a.nav-link.nav-ai::before { animation: dc-twinkle 3.2s ease-in-out infinite; }
@keyframes dc-twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.18) rotate(18deg); } }
.app-topbar .user-meta strong { color: var(--ink); }
.app-topbar .user-meta span { color: var(--mute); }
.app-topbar .btn-ghost { color: var(--mute); }
.app-topbar .btn-ghost:hover { background: rgba(15, 23, 42, 0.05); color: var(--ink); }
.avatar { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line-strong); }
.nav-badge { background: var(--grad-primary); }

/* ---------- Sayfa başlığı ---------- */
.page-head h1 {
  font-weight: 650;
  background: var(--grad-ink);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Formlar ---------- */
.form-group input,
.form-group select,
.form-group textarea,
.party-row input,
.party-row select,
.session-row input,
input.date-tr,
input.date-tr-alt,
.toolbar select,
.toolbar input[type="month"],
.toolbar input[type="search"] {
  background: #fff;
  border-color: var(--line-strong);
  border-radius: var(--radius-xs);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.party-row input:focus,
.party-row select:focus,
.session-row input:focus,
input.date-tr:focus,
input.date-tr-alt:focus,
.toolbar select:focus,
.toolbar input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(91, 91, 246, 0.14);
}
.mode-switch button.active { color: var(--accent); }

/* ---------- Modal ---------- */
.modal-backdrop { background: rgba(15, 18, 35, 0.32); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 20px; }
.modal-backdrop.show .modal { animation: dc-modal-in 0.38s var(--spring) both; }
@keyframes dc-modal-in { from { opacity: 0; transform: translateY(18px) scale(0.96); } }

/* ---------- Takvim ---------- */
.calendar-wrap { overflow: hidden; }
.cal-weekdays { background: var(--surface-2); }
.cal-day:hover { background: #fafbff; }
.cal-day.today { background: linear-gradient(180deg, #f1f2ff, #fafaff); box-shadow: inset 0 2px 0 var(--accent); }
.cal-day.today .day-num { background: var(--grad-primary); color: #fff; box-shadow: 0 4px 12px rgba(91, 91, 246, 0.4); }
.cal-event { border-radius: 7px; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.cal-event:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(16, 24, 40, 0.1); }
.upload-zone:hover { background: var(--accent-soft); }

/* ==========================================================================
   Giriş & kayıt
   ========================================================================== */
.auth-visual {
  background:
    radial-gradient(60% 50% at 15% 15%, rgba(255, 255, 255, 0.22), transparent 70%),
    radial-gradient(50% 45% at 95% 95%, rgba(244, 172, 92, 0.35), transparent 70%),
    linear-gradient(150deg, #7c5cff 0%, #5b5bf6 45%, #3b82f6 100%);
}
.auth-visual::before { opacity: 0.25; }
.auth-visual h2 { font-family: var(--display); letter-spacing: -0.03em; }
.auth-visual .brand-mark { background: rgba(255, 255, 255, 0.18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
.auth-form-wrap { background: transparent; }
.auth-card { border-radius: 22px; padding: 2.2rem; box-shadow: var(--shadow); }
.auth-card .kicker { color: var(--accent); }

/* ==========================================================================
   Ana sayfa
   ========================================================================== */
.landing-page { background: transparent; color: var(--ink); }
.landing-page .lp-header .brand,
.landing-page .lp-header .landing-nav a { color: var(--ink); }
.landing-page .lp-header .landing-nav a { opacity: 0.75; }
.landing-page .lp-header.scrolled {
  background: rgba(255, 255, 255, 0.8);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}
.landing-page .lp-nav-cta { background: var(--grad-primary); color: #fff; box-shadow: 0 4px 14px rgba(91, 91, 246, 0.28); }
.landing-page .lp-nav-cta:hover { background: var(--grad-primary); }
.lp-ai-btn { color: #7a4f12; border-color: #ecd3a5; background: linear-gradient(135deg, #fff6e6, #f1ecff); }
.lp-ai-btn:hover { color: #5c3a0a; border-color: #ddb874; background: linear-gradient(135deg, #fff1d6, #e9e2ff); }

.lp-hero { background: transparent; color: var(--ink); }
.lp-hero-media img { opacity: 0.85; filter: grayscale(1) contrast(1.05) brightness(1.08); }
.lp-hero-veil {
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(246, 247, 251, 0.94) 38%, rgba(246, 247, 251, 0.55) 68%, rgba(246, 247, 251, 0.15) 100%),
    linear-gradient(180deg, rgba(246, 247, 251, 0) 55%, var(--bg) 100%),
    radial-gradient(45% 55% at 12% 40%, rgba(124, 92, 255, 0.14), transparent 70%);
}
.lp-hero h1 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #0b1020 40%, #4a4fb8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lp-lede { color: var(--mute); }
.lp-brand-signal { color: var(--brass); }
.lp-hero .btn-primary { background: var(--grad-primary); color: #fff; }
.lp-hero .btn-primary:hover { background: var(--grad-primary); }
.lp-hero .btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.lp-hero .btn-secondary:hover { background: #fff; border-color: #b9bfd0; }

.lp-stats { background: transparent; }
.lp-stats-grid strong, .lp-foundation strong {
  font-family: var(--display);
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lp-manifesto { background: transparent; }
.lp-manifesto h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; color: var(--ink); }
.lp-section, .lp-section-alt { background: transparent; }
.lp-pillars article, .lp-audience article {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.lp-pillars article:hover, .lp-audience article:hover { transform: translateY(-4px); border-color: #c9cbff; box-shadow: var(--lift); }

.lp-band {
  background: linear-gradient(180deg, rgba(238, 240, 255, 0.7), rgba(246, 247, 251, 0));
  color: var(--ink);
  border-block: 1px solid var(--line);
}
.lp-band .section-title { color: var(--ink); }
.lp-band .section-sub { color: var(--mute); }
.lp-checklist li { background: #fff; border-color: var(--line); color: var(--ink-2); box-shadow: var(--shadow-xs); }
.lp-checklist li::before,
.lp-ai-list li::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b5bf6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.lp-cta { background: transparent; }
.lp-cta-inner {
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(255, 255, 255, 0.25), transparent 70%),
    linear-gradient(135deg, #7c5cff 0%, #5b5bf6 50%, #3b82f6 100%);
  box-shadow: 0 30px 70px rgba(91, 91, 246, 0.28);
}
.lp-cta-inner p { color: rgba(255, 255, 255, 0.85); }
.lp-cta-inner .btn-primary { background: #fff; color: #2d2a8f; border-color: transparent; box-shadow: 0 8px 24px rgba(16, 24, 40, 0.15); }
.lp-cta-inner .btn-primary:hover { background: #f3f3ff; }

.lp-ai {
  background:
    radial-gradient(40% 60% at 8% 20%, rgba(124, 92, 255, 0.12), transparent 70%),
    radial-gradient(40% 60% at 92% 90%, rgba(244, 172, 92, 0.14), transparent 70%),
    #fbfbfe;
  color: var(--ink);
  border-block: 1px solid var(--line);
}
.lp-ai-badge { color: #94621a; border-color: #f0dcb5; background: var(--brass-soft); }
.lp-ai h2 em { color: var(--accent); }
.lp-ai-lede { color: var(--mute); }
.lp-ai-list li { color: var(--ink-2); }
.lp-ai .btn-primary { background: var(--grad-primary); color: #fff; }
.lp-ai .btn-primary:hover { background: var(--grad-primary); }
.lp-ai-domain { color: var(--faint); }
.lp-ai-note { color: var(--faint); }
.lp-ai-mock { background: #fff; border-color: var(--line); box-shadow: 0 30px 70px rgba(16, 24, 40, 0.12); animation: dc-float 7s ease-in-out infinite; }
@keyframes dc-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.lp-ai-mock-head { border-bottom-color: var(--line); }
.lp-ai-mock-head span { color: var(--mute); }
.lp-ai-msg.user { background: var(--grad-primary); color: #fff; }
.lp-ai-msg.bot { background: var(--surface-2); border-color: var(--line); color: var(--ink-2); }
.lp-ai-cite div { background: #fff; border: 1px solid var(--line); color: var(--mute); }
.lp-ai-cite b { color: var(--brass); }

.lp-footer { background: #fff; color: var(--mute); border-top: 1px solid var(--line); }
.lp-footer .brand { color: var(--ink); }
.lp-footer-links a { color: var(--mute); }
.lp-footer-links a:hover { color: var(--accent); }

/* ==========================================================================
   Hareket — koyu temadakiyle aynı koreografi
   ========================================================================== */

/* Veriler gelene kadar iskelet */
#caseList:empty, #deletedList:empty, #upcomingPayments:empty, #memberList:empty, #firmList:empty, #docList:empty, #hearingInfo:empty, #calGrid:empty {
  min-height: 220px;
  border-radius: var(--radius);
  background:
    linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.9) 40%, transparent 60%) 0 0 / 220% 100%,
    repeating-linear-gradient(180deg, #eceef5 0 64px, transparent 64px 76px);
  animation: dc-shimmer 1.3s linear infinite;
}
#calGrid:empty { min-height: 520px; grid-column: 1 / -1; }
#hearingInfo:empty, #docList:empty { min-height: 140px; }
@keyframes dc-shimmer { from { background-position: 120% 0, 0 0; } to { background-position: -120% 0, 0 0; } }

/* Kartlar sırayla süzülerek gelir */
.list-view > *, .payment-list > *, .doc-list > *, #memberList > *, #firmList > *, .info-list > .info-row, .detail-stack > .panel, .admin-grid > *, .cal-event {
  animation: dc-rise 0.5s var(--ease) both;
}
.list-view > :nth-child(2), .payment-list > :nth-child(2), .doc-list > :nth-child(2), #memberList > :nth-child(2), #firmList > :nth-child(2), .info-list > .info-row:nth-child(2), .detail-stack > .panel:nth-child(2), .admin-grid > :nth-child(2) { animation-delay: 0.05s; }
.list-view > :nth-child(3), .payment-list > :nth-child(3), .doc-list > :nth-child(3), #memberList > :nth-child(3), #firmList > :nth-child(3), .info-list > .info-row:nth-child(3), .detail-stack > .panel:nth-child(3), .admin-grid > :nth-child(3) { animation-delay: 0.1s; }
.list-view > :nth-child(4), .payment-list > :nth-child(4), .doc-list > :nth-child(4), #memberList > :nth-child(4), #firmList > :nth-child(4), .info-list > .info-row:nth-child(4), .detail-stack > .panel:nth-child(4) { animation-delay: 0.15s; }
.list-view > :nth-child(5), .payment-list > :nth-child(5), .doc-list > :nth-child(5), #memberList > :nth-child(5), #firmList > :nth-child(5), .info-list > .info-row:nth-child(5) { animation-delay: 0.2s; }
.list-view > :nth-child(6), .payment-list > :nth-child(6), #memberList > :nth-child(6), #firmList > :nth-child(6), .info-list > .info-row:nth-child(6) { animation-delay: 0.25s; }
.list-view > :nth-child(7), .payment-list > :nth-child(7), .info-list > .info-row:nth-child(7) { animation-delay: 0.3s; }
.list-view > :nth-child(n+8), .payment-list > :nth-child(n+8), .info-list > .info-row:nth-child(n+8) { animation-delay: 0.34s; }
.cal-grid { animation: dc-fade 0.45s var(--ease) both; }
@keyframes dc-rise { from { opacity: 0; transform: translateY(14px) scale(0.985); filter: blur(4px); } }
@keyframes dc-fade { from { opacity: 0; } }

.app-main > .page-head, .app-main > .toolbar { animation: dc-rise 0.55s var(--ease) both; }
.app-main > .toolbar { animation-delay: 0.06s; }

/* Bağlantıya tıklanınca ilerleme çizgisi */
html.is-navigating::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  z-index: 9999;
  background: linear-gradient(90deg, #7c5cff, #5b5bf6, #f4ac5c);
  box-shadow: 0 0 10px rgba(91, 91, 246, 0.6);
  transform-origin: left;
  animation: dc-progress 1.6s cubic-bezier(0.1, 0.7, 0.2, 1) forwards;
}
@keyframes dc-progress { from { transform: scaleX(0); } to { transform: scaleX(0.9); } }

/* Sayfa geçişi: içerik bulanıklıktan netleşerek yükselir */
::view-transition-old(app-main) { animation: dc-vt-out 0.22s cubic-bezier(0.4, 0, 1, 1) both; }
::view-transition-new(app-main) { animation: dc-vt-in 0.5s var(--ease) 0.05s both; }
/* Kök katman yalnız arka planı içerir (iki sayfada aynı): sade geçiş yeterli, görüntüde fark yaratmaz */
::view-transition-old(root) { animation: dc-vt-fade-out 0.25s ease both; }
::view-transition-new(root) { animation: dc-vt-fade-in 0.45s var(--ease) both; }
@keyframes dc-vt-out { to { opacity: 0; transform: translateY(-10px) scale(0.985); filter: blur(6px); } }
@keyframes dc-vt-in { from { opacity: 0; transform: translateY(22px) scale(0.99); filter: blur(8px); } }
@keyframes dc-vt-fade-out { to { opacity: 0; } }
@keyframes dc-vt-fade-in { from { opacity: 0; } }
.no-vt .app-main { animation: dc-vt-in 0.5s var(--ease) both; }

/* Ana sayfa ↔ giriş gibi menüsüz sayfalarda tüm sayfa aynı hareketle geçer */
html:not(:has(.app-main))::view-transition-old(root) { animation: dc-vt-out 0.22s cubic-bezier(0.4, 0, 1, 1) both; }
html:not(:has(.app-main))::view-transition-new(root) { animation: dc-vt-in 0.5s var(--ease) 0.05s both; }

/* Akıcılık: geçiş sürerken sayfa içi animasyonlar bekler, bitince kaldığı yerden sürer */
:root:active-view-transition *,
:root:active-view-transition *::before,
:root:active-view-transition *::after { animation-play-state: paused !important; }
.vt-nav .app-main > .page-head,
.vt-nav .app-main > .toolbar { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .lp-ai-mock, .app-nav a.nav-link.nav-ai::before { animation: none; }
  .list-view > *, .payment-list > *, .doc-list > *, #memberList > *, #firmList > *, .info-list > .info-row, .detail-stack > .panel, .admin-grid > *, .cal-event, .cal-grid, .app-main > .page-head, .app-main > .toolbar { animation: none; }
  html.is-navigating::before { animation: none; transform: scaleX(0.6); }
}

/* Mobilde başlık görselin üstüne denk gelir: okunurluk için görseli daha çok soldur */
@media (max-width: 760px) {
  .lp-hero-media img { opacity: 0.5; object-position: 72% 40%; }
  .lp-hero-veil {
    background:
      linear-gradient(180deg, rgba(246, 247, 251, 0.72) 0%, rgba(246, 247, 251, 0.9) 45%, var(--bg) 100%),
      radial-gradient(60% 50% at 20% 40%, rgba(124, 92, 255, 0.12), transparent 70%);
  }
}

/* Logo */
.brand-logo {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: block;
  border-radius: 9px;
  box-shadow: 0 4px 12px rgba(91, 91, 246, 0.28);
}
.auth-visual .brand-logo { box-shadow: 0 6px 18px rgba(16, 24, 40, 0.25); }

/* Swup: View Transitions desteklemeyen tarayıcılarda (ör. Firefox) aynı hissi veren yedek geçiş */
html:not(.swup-native) .transition-main { transition: opacity 0.22s ease, transform 0.4s var(--ease); }
html:not(.swup-native).is-animating .transition-main { opacity: 0; transform: translateY(14px); }
/* Swup ile gelinen sayfada içerik zaten bütün olarak giriyor */
.no-vt.vt-nav .app-main { animation: none; }

/* ==========================================================================
   Takvim — telefon görünümü: ızgara özet, altında okunur gündem kartları
   ========================================================================== */
.cal-dots, .month-agenda { display: none; }
.month-agenda[hidden] { display: none !important; }

@media (max-width: 720px) {
  /* Izgara: yalnız gün numarası + renkli noktalar */
  .cal-day {
    min-height: 54px;
    padding: 0.35rem 0.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .cal-day.muted { cursor: default; }
  .cal-day .cal-event { display: none; }
  .day-num { margin-bottom: 0.15rem; font-size: 0.9rem; }
  .cal-day.has-events .day-num { color: var(--accent); font-weight: 700; }
  .cal-day.today .day-num { color: #fff; }
  .cal-day.is-selected { background: var(--accent-soft); box-shadow: inset 0 0 0 2px #c9cbff; }
  .cal-dots { display: flex; justify-content: center; align-items: center; gap: 3px; flex-wrap: wrap; max-width: 100%; }
  .cal-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9); }
  .cal-dots b { font-size: 0.62rem; font-weight: 700; color: var(--mute); line-height: 1; }

  /* Gündem: gün başlığı + kartlar */
  .month-agenda { display: grid; gap: 1.25rem; margin-top: 1.25rem; }
  .agenda-day { display: grid; gap: 0.6rem; scroll-margin-top: 140px; border-radius: var(--radius); }
  .agenda-day.is-flash { animation: dc-agenda-flash 1.2s var(--ease); }
  @keyframes dc-agenda-flash { 0% { box-shadow: 0 0 0 0 rgba(91, 91, 246, 0); } 25% { box-shadow: 0 0 0 6px rgba(91, 91, 246, 0.18); } 100% { box-shadow: 0 0 0 0 rgba(91, 91, 246, 0); } }
  .agenda-date { display: flex; align-items: center; gap: 0.75rem; padding: 0 0.15rem; }
  .agenda-dnum {
    width: 46px; height: 46px; flex: 0 0 auto;
    display: grid; place-items: center;
    border-radius: 14px;
    background: var(--grad-primary);
    color: #fff;
    font-family: var(--display);
    font-size: 1.3rem; font-weight: 700;
    box-shadow: 0 6px 16px rgba(91, 91, 246, 0.3);
  }
  .agenda-dtext { display: grid; line-height: 1.25; min-width: 0; }
  .agenda-dtext strong { font-size: 1.02rem; color: var(--ink); text-transform: capitalize; }
  .agenda-dtext span { font-size: 0.85rem; color: var(--mute); text-transform: capitalize; }
  .agenda-count { margin-left: auto; font-size: 0.8rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 0.25rem 0.6rem; border-radius: 999px; white-space: nowrap; }

  .agenda-item {
    display: grid;
    gap: 0.65rem;
    padding: 1rem 1rem 0.95rem 1.1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--lc);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    color: var(--ink);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  }
  .agenda-item:active { transform: scale(0.985); }
  .agenda-item.is-procedure { background: linear-gradient(180deg, #fffaf0, #fff); }
  .agenda-kind { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
  .agenda-caseno { font-weight: 700; font-size: 1rem; color: var(--ink); font-variant-numeric: tabular-nums; }
  .agenda-parties { display: grid; gap: 0.5rem; }
  .agenda-parties div { display: grid; gap: 0.1rem; }
  .agenda-parties span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
  .agenda-parties strong { font-size: 1rem; font-weight: 600; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
  .agenda-meta { margin: 0; font-size: 0.9rem; line-height: 1.45; color: var(--ink-2); background: var(--surface-2); border-radius: 9px; padding: 0.5rem 0.65rem; }
  .agenda-lawyers { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; }
  .agenda-lawyer { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.86rem; color: var(--mute); font-weight: 500; }
  .agenda-lawyer i { width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12); }
}

/* ==========================================================================
   Belge önizleme
   ========================================================================== */
/* Belge listesi: tür simgesi + tıklanabilir ad */
.doc-main { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.doc-text { min-width: 0; display: grid; gap: 0.15rem; }
.doc-icon {
  width: 40px; height: 46px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 8px;
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.04em;
  color: #fff; background: #94a3b8;
  box-shadow: inset 0 -10px 0 rgba(0, 0, 0, 0.08);
}
.doc-icon-pdf { background: linear-gradient(160deg, #f0566b, #d6334a); }
.doc-icon-image { background: linear-gradient(160deg, #34c38f, #13a072); }
.doc-icon-docx { background: linear-gradient(160deg, #4f8cff, #2c64e0); }
.doc-icon-text { background: linear-gradient(160deg, #8b95a8, #6b7487); }
.doc-name-btn {
  border: 0; background: none; padding: 0; text-align: left; cursor: pointer;
  font-size: 0.9rem; font-weight: 600; color: var(--ink); word-break: break-word;
}
.doc-name-btn:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Önizleme penceresi */
html.preview-open { overflow: hidden; }
.preview-backdrop {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 2rem;
  background: rgba(15, 18, 35, 0.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.preview-backdrop.show { display: flex; animation: dc-fade 0.2s ease both; }
.preview-dialog {
  width: min(980px, 100%); height: min(92vh, 1200px);
  display: grid; grid-template-rows: auto 1fr;
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(16, 24, 40, 0.35);
  animation: dc-modal-in 0.35s var(--spring) both;
}
.preview-head {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1rem 0.85rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
}
.preview-title { min-width: 0; flex: 1; display: grid; }
.preview-title strong { font-size: 0.98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview-sub { font-size: 0.8rem; color: var(--mute); }
.preview-body {
  overflow: auto; -webkit-overflow-scrolling: touch;
  background: #eceef4;
  padding: 1.25rem;
  display: grid; justify-items: center; align-content: start; gap: 1rem;
}
.pdf-page { position: relative; background: #fff; box-shadow: 0 4px 18px rgba(16, 24, 40, 0.14); border-radius: 4px; overflow: hidden; max-width: 100%; }
.pdf-page canvas { display: block; max-width: 100%; height: auto !important; }
.pdf-page-num { position: absolute; right: 8px; bottom: 8px; font-size: 0.72rem; font-weight: 600; color: #fff; background: rgba(15, 18, 35, 0.55); padding: 0.15rem 0.45rem; border-radius: 999px; }
.preview-body.is-image { align-content: center; }
.preview-body.is-image img { max-width: 100%; max-height: calc(92vh - 120px); object-fit: contain; border-radius: 6px; box-shadow: 0 4px 18px rgba(16, 24, 40, 0.14); background: #fff; }
.preview-paper {
  width: min(820px, 100%);
  background: #fff; border-radius: 6px;
  box-shadow: 0 4px 18px rgba(16, 24, 40, 0.14);
  padding: 2.5rem 2.75rem;
  font-family: Georgia, 'Times New Roman', serif; font-size: 1.02rem; line-height: 1.75; color: #1a1d24;
  overflow-wrap: anywhere;
}
.preview-paper p { margin: 0 0 0.8rem; }
.preview-paper img { max-width: 100%; height: auto; }
.preview-paper table { border-collapse: collapse; max-width: 100%; }
.preview-paper td, .preview-paper th { border: 1px solid #d6dae6; padding: 0.3rem 0.5rem; }
.preview-loading { display: flex; align-items: center; gap: 0.6rem; color: var(--mute); font-size: 0.92rem; padding: 3rem 0; }
.preview-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #d6dae6; border-top-color: var(--accent); animation: dc-spin 0.8s linear infinite; }
@keyframes dc-spin { to { transform: rotate(360deg); } }
.preview-empty { display: grid; gap: 0.35rem; text-align: center; padding: 3rem 1rem; color: var(--mute); }
.preview-empty strong { color: var(--ink); font-size: 1rem; }
.preview-note { font-size: 0.85rem; color: var(--mute); }

/* Yüklemeden önce seçilen dosya */
.local-preview {
  margin: 0.7rem auto 0; max-width: 100%;
  display: grid; gap: 0.55rem; justify-items: center;
  padding: 0.75rem; border-radius: 12px;
  background: #fff; border: 1px solid var(--line);
}
.local-preview[hidden] { display: none; }
.local-preview-name { display: grid; text-align: center; gap: 0.1rem; max-width: 100%; }
.local-preview-name strong { font-size: 0.86rem; overflow-wrap: anywhere; }
.local-preview-name span { font-size: 0.76rem; color: var(--mute); }
.local-preview-body { width: 100%; max-width: 220px; display: grid; justify-items: center; }
.local-preview-body img, .pdf-thumb canvas { display: block; max-width: 100%; max-height: 260px; width: auto !important; height: auto !important; border-radius: 6px; box-shadow: 0 4px 14px rgba(16, 24, 40, 0.14); }
.local-preview-body pre { max-height: 160px; overflow: hidden; margin: 0; width: 100%; text-align: left; font-size: 0.72rem; white-space: pre-wrap; background: var(--surface-2); padding: 0.5rem; border-radius: 8px; }
.local-preview-icon { width: 64px; height: 76px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); color: var(--mute); font-weight: 800; font-size: 0.8rem; }
.local-preview .preview-loading { padding: 1rem 0; }

@media (max-width: 720px) {
  .preview-backdrop { padding: 0; }
  .preview-dialog { width: 100%; height: 100%; border-radius: 0; }
  .preview-body { padding: 0.75rem; }
  .preview-paper { padding: 1.4rem 1.2rem; font-size: 0.98rem; }
  .doc-item { flex-wrap: wrap; }
  .doc-actions { width: 100%; justify-content: flex-start; }
}
/* Sayfalar pencere yüksekliğine sıkıştırılmasın; her sayfa tam boyunda, kaydırılarak okunur */
.preview-body { grid-auto-rows: max-content; }

/* ==========================================================================
   Giriş sayfası — animasyonlu görsel panel
   ========================================================================== */
.login-page { grid-template-columns: 1.1fr 0.9fr; }
.lg-visual {
  justify-content: flex-start;
  gap: 1.6rem;
  padding: 2.4rem 3rem 2.2rem;
  background:
    radial-gradient(50% 45% at 100% 100%, rgba(244, 172, 92, 0.38), transparent 70%),
    linear-gradient(150deg, #6d4dff 0%, #5753f4 40%, #2f7bf3 100%);
  isolation: isolate;
}
.lg-visual .lg-orbs { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.lg-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; will-change: transform; }
.lg-orb.o1 { width: 420px; height: 420px; left: -120px; top: -140px; background: #a78bfa; animation: lg-drift1 22s ease-in-out infinite alternate; }
.lg-orb.o2 { width: 360px; height: 360px; right: -120px; top: 30%; background: #38bdf8; opacity: 0.45; animation: lg-drift2 26s ease-in-out infinite alternate; }
.lg-orb.o3 { width: 300px; height: 300px; left: 20%; bottom: -160px; background: #fbbf77; opacity: 0.4; animation: lg-drift3 30s ease-in-out infinite alternate; }
@keyframes lg-drift1 { to { transform: translate3d(140px, 90px, 0) scale(1.15); } }
@keyframes lg-drift2 { to { transform: translate3d(-160px, -60px, 0) scale(0.9); } }
@keyframes lg-drift3 { to { transform: translate3d(120px, -80px, 0) scale(1.2); } }

.lg-brand { color: #fff; }
.lg-copy { max-width: 34rem; animation: lg-in 0.8s var(--ease) 0.05s both; }
.lg-eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin-bottom: 1rem; padding: 0.35rem 0.8rem 0.35rem 0.6rem;
  border-radius: 999px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
}
.lg-pulse { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); animation: lg-pulse 2s ease-out infinite; }
@keyframes lg-pulse { 70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.lg-visual h2 { font-size: clamp(2rem, 3.2vw, 2.9rem); line-height: 1.08; max-width: 16ch; margin-bottom: 0.9rem; letter-spacing: -0.035em; }
.lg-visual h2 em { font-style: normal; background: linear-gradient(90deg, #fde68a, #fdba74); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lg-copy > p:last-child { color: rgba(255, 255, 255, 0.82); font-size: 1.02rem; }

/* Sahne: uygulamadan parçalar */
.lg-visual .lg-stage { position: relative; flex: 1; min-height: 330px; max-width: 560px; width: 100%; }
.lg-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 24px 50px rgba(20, 16, 70, 0.28), 0 2px 6px rgba(20, 16, 70, 0.12);
  padding: 0.9rem 1rem;
  will-change: transform;
}
.lg-card-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.6rem; }
.lg-card-head strong { font-family: var(--display); font-size: 0.92rem; }
.lg-card-head span { font-size: 0.74rem; color: var(--mute); }
.lg-card-head .lg-pill { padding: 0.15rem 0.5rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; }

.lg-agenda { left: 0; top: 0; width: min(330px, 66%); animation: lg-in 0.8s var(--ease) 0.25s both, lg-float 7s ease-in-out 1.2s infinite; }
.lg-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.6rem; padding: 0.55rem 0.4rem; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.lg-row b { display: block; font-size: 0.85rem; }
.lg-row small { display: block; font-size: 0.72rem; color: var(--mute); }
.lg-row > i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06); }
.lg-badge { font-size: 0.66rem; font-weight: 700; padding: 0.2rem 0.45rem; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }
.lg-badge.warn { background: var(--warn-soft); color: var(--warn); }
.lg-row::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(91, 91, 246, 0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: lg-sweep 5s ease-in-out 2s infinite;
}
.lg-row:nth-child(3)::after { animation-delay: 2.4s; }
.lg-row:nth-child(4)::after { animation-delay: 2.8s; }
@keyframes lg-sweep { 0%, 60% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }

.lg-cal { right: 0; top: 40px; width: 210px; padding: 0.8rem 0.85rem; animation: lg-in 0.8s var(--ease) 0.45s both, lg-float 8s ease-in-out 1.6s infinite reverse; }
.lg-cal-week, .lg-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.lg-cal-week span { font-size: 0.58rem; font-weight: 700; color: var(--faint); padding-bottom: 0.2rem; }
.lg-cal-grid span { font-size: 0.66rem; line-height: 22px; height: 22px; border-radius: 6px; color: var(--ink-2); font-variant-numeric: tabular-nums; position: relative; }
.lg-cal-grid span.on { color: var(--accent); font-weight: 700; }
.lg-cal-grid span.on::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #f97316; }
.lg-cal-grid span.today { background: var(--grad-primary); color: #fff; font-weight: 700; animation: lg-today 2.4s ease-in-out infinite; }
@keyframes lg-today { 0%, 100% { box-shadow: 0 0 0 0 rgba(91, 91, 246, 0.5); } 50% { box-shadow: 0 0 0 5px rgba(91, 91, 246, 0); } }

.lg-toast {
  left: 12%; bottom: 0;
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.75rem 1rem 0.75rem 0.75rem;
  animation: lg-toast-in 0.9s var(--spring) 1.1s both, lg-float 6.5s ease-in-out 2.1s infinite;
}
.lg-toast strong { display: block; font-size: 0.84rem; }
.lg-toast small { display: block; font-size: 0.74rem; color: var(--mute); }
.lg-toast-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(160deg, #fbbf24, #f59e0b); color: #fff; font-weight: 800; box-shadow: 0 6px 14px rgba(245, 158, 11, 0.35); }

.lg-chip {
  position: absolute; right: 4%; bottom: 74px;
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.8rem; border-radius: 999px;
  background: rgba(15, 18, 45, 0.55); border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fde68a; font-size: 0.76rem; font-weight: 600;
  animation: lg-in 0.8s var(--ease) 0.8s both, lg-float 9s ease-in-out 1.8s infinite;
}
.lg-chip span { display: inline-block; animation: dc-twinkle 3.2s ease-in-out infinite; }

.lg-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; margin: 0; padding: 0; font-size: 0.8rem; color: rgba(255, 255, 255, 0.85); animation: lg-in 0.8s var(--ease) 0.9s both; }
.lg-trust li { display: inline-flex; align-items: center; gap: 0.4rem; }
.lg-trust li::before { content: ''; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; opacity: 0.9; }

/* Giriş animasyonu translate/scale ile, yüzme transform ile: ikisi birbirini bozmaz */
@keyframes lg-in { from { opacity: 0; translate: 0 26px; scale: 0.97; } }
@keyframes lg-toast-in { from { opacity: 0; translate: 60px 0; } }
@keyframes lg-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* Form tarafı */
.login-page .auth-form-wrap { background: transparent; }
.login-page .auth-card { animation: lg-in 0.7s var(--ease) 0.15s both; }
.lg-submit { width: 100%; }
.lg-submit.is-loading { opacity: 0.85; cursor: progress; }
.lg-pass { position: relative; }
.form-group .lg-pass input { padding-right: 5.2rem; }
.lg-pass-toggle {
  position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%);
  border: 0; background: var(--surface-2); color: var(--mute);
  font-size: 0.78rem; font-weight: 600; padding: 0.3rem 0.6rem; border-radius: 7px; cursor: pointer;
}
.lg-pass-toggle:hover { color: var(--accent); background: var(--accent-soft); }

/* Orta ekranlar: sahneyi biraz küçült */
@media (max-width: 1200px) and (min-width: 961px) {
  .lg-cal { width: 180px; }
  .lg-chip { display: none; }
}

/* Telefon / tablet: üstte kısa başlık, form hemen altında */
@media (max-width: 960px) {
  .login-page { grid-template-columns: 1fr; }
  .lg-visual { min-height: 0; padding: 1.4rem 1.25rem 1.6rem; gap: 1rem; }
  .lg-visual .lg-stage, .lg-trust { display: none; }
  .lg-visual h2 { font-size: 1.7rem; margin-bottom: 0.4rem; }
  .lg-eyebrow { margin-bottom: 0.7rem; }
  .lg-orb.o1 { width: 260px; height: 260px; }
  .lg-orb.o2 { width: 220px; height: 220px; }
  .lg-orb.o3 { display: none; }
  .login-page .auth-form-wrap { padding: 1.5rem 1rem 2.5rem; place-items: start center; }
}

@media (prefers-reduced-motion: reduce) {
  .lg-orb, .lg-pulse, .lg-row::after, .lg-cal-grid span.today, .lg-chip span { animation: none !important; }
  .lg-copy, .lg-agenda, .lg-cal, .lg-toast, .lg-chip, .lg-trust, .login-page .auth-card { animation: none !important; }
}

/* ==========================================================================
   Takvim — kaza yeri / şehir etiketi (her şehir kendi renginde)
   ========================================================================== */
.place-chip {
  --pc: #5b5bf6;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  max-width: 100%;
  padding: 0.14rem 0.5rem 0.14rem 0.38rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--pc);
  background: #fff;
  background: color-mix(in srgb, var(--pc) 11%, #fff);
  border: 1px solid color-mix(in srgb, var(--pc) 32%, #fff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.place-chip::before {
  content: '';
  width: 0.85em;
  height: 0.85em;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7Zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7Zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Masaüstü takvim hücresi: etkinliğin en üstünde, kendi satırında */
.cal-event .place-chip.is-cal {
  display: flex;
  width: fit-content;
  margin: 0 0 0.22rem;
  font-size: 0.68rem;
  padding: 0.1rem 0.45rem 0.1rem 0.32rem;
}
@media (max-width: 960px) {
  /* Dar hücrede öteki yazılar gizlenir ama şehir görünür kalır */
  .cal-event .place-chip.is-cal { display: flex; }
}

/* Liste görünümü */
.hearing-meta .place-chip.is-list { font-size: 0.78rem; padding: 0.2rem 0.6rem 0.2rem 0.45rem; }

/* Telefon gündem kartı: başlık satırının sağında, büyük */
.agenda-kind .place-chip.is-agenda {
  margin-left: auto;
  font-size: 0.86rem;
  padding: 0.28rem 0.7rem 0.28rem 0.5rem;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--pc) 18%, transparent);
}
.agenda-item { border-left-width: 4px; }
/* Uzun not etiketleri kartın dışına taşmasın, alt satıra geçsin */
.hearing-meta .badge { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
/* Masaüstü takvimde şehir etiketi biraz daha belirgin */
.cal-event .place-chip.is-cal { font-size: 0.72rem; }

/* Şehir etiketi: dava numarasının yanında (Davalarım, dava detayı) */
.case-title { display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem 0.6rem; }
.place-chip.is-title { font-size: 0.82rem; padding: 0.22rem 0.65rem 0.22rem 0.48rem; font-family: var(--font); letter-spacing: 0; }
#pageTitle { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem 0.75rem; }
.place-chip.is-head { font-size: 0.95rem; padding: 0.3rem 0.8rem 0.3rem 0.6rem; -webkit-text-fill-color: currentColor; }
/* Takvimde daha belirgin */
.cal-event .place-chip.is-cal { font-size: 0.76rem; padding: 0.14rem 0.5rem 0.14rem 0.36rem; }

/* ==========================================================================
   Dosya yükleme: sürükle-bırak alanı
   ========================================================================== */
.visually-hidden-input {
  position: absolute !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}
.upload-zone { position: relative; background: #fff; border: 0; padding: 0; }
.upload-zone:hover { background: #fff; }
.drop-area {
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  padding: 1.4rem 1rem 1.2rem;
  border: 2px dashed #c9cbff;
  border-radius: 14px;
  background: linear-gradient(180deg, #fafaff, #f3f4ff);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.drop-area:hover { border-color: var(--accent); background: #f0f1ff; }
.drop-icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--grad-primary);
  box-shadow: 0 8px 18px rgba(91, 91, 246, 0.3);
  margin-bottom: 0.3rem;
  position: relative;
}
.drop-icon::before {
  content: '';
  width: 22px; height: 22px;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4'/%3E%3Cpath d='m6 10 6-6 6 6'/%3E%3Cpath d='M4 16v3a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4'/%3E%3Cpath d='m6 10 6-6 6 6'/%3E%3Cpath d='M4 16v3a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.drop-title { font-size: 0.95rem; color: var(--ink); }
.drop-sub { font-size: 0.86rem; color: var(--mute); }
.drop-sub u { color: var(--accent); text-underline-offset: 3px; font-weight: 600; }
.drop-hint { font-size: 0.74rem; color: var(--faint); margin-top: 0.2rem; max-width: 30ch; }
.drop-file { font-size: 0.84rem; font-weight: 600; color: var(--accent); overflow-wrap: anywhere; }
.drop-file:empty { display: none; }

/* Dosya üzerine sürüklenirken */
.drop-area.is-dragover {
  border-color: var(--accent);
  border-style: solid;
  background: linear-gradient(180deg, #eef0ff, #e4e6ff);
  transform: scale(1.015);
  box-shadow: 0 0 0 6px rgba(91, 91, 246, 0.12);
}
.drop-area.is-dragover .drop-icon { animation: dc-drop-bounce 0.8s var(--ease) infinite alternate; }
@keyframes dc-drop-bounce { to { transform: translateY(-5px); } }
.drop-area.has-file { border-style: solid; border-color: #a5a8ff; }

/* Klavye ile gezinirken odak görünsün */
.upload-zone:focus-within .drop-area { box-shadow: 0 0 0 4px rgba(91, 91, 246, 0.18); }

@media (prefers-reduced-motion: reduce) {
  .drop-area.is-dragover { transform: none; }
  .drop-area.is-dragover .drop-icon { animation: none; }
}

/* ==========================================================================
   Masraflar: kendi para birimi + "Ödendi" işareti
   ========================================================================== */
.party-row.expense-row {
  grid-template-columns: minmax(0, 1.6fr) minmax(84px, 0.8fr) 82px auto auto;
  align-items: center;
  padding: 0.35rem;
  border-radius: 10px;
  transition: background 0.2s var(--ease);
}
.expense-row select[data-field="currency"] {
  min-height: 38px;
  padding: 0.4rem 0.45rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  background: #fff;
  font-weight: 600;
}
.expense-paid {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mute);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  padding: 0 0.2rem;
}
.expense-paid input { width: 1.05rem; height: 1.05rem; accent-color: var(--ok); margin: 0; }
.expense-row.is-paid { background: var(--ok-soft); }
.expense-row.is-paid .expense-paid { color: var(--ok); }
.expense-row.is-paid input[data-field="description"],
.expense-row.is-paid input[data-field="amount"] { color: var(--mute); text-decoration: line-through; text-decoration-color: rgba(14, 159, 110, 0.5); }

/* Dava sayfası: masraf listesi ve kalan */
.expense-view li.is-paid { color: var(--mute); }
.expense-view li .badge { margin-left: 0.3rem; font-size: 0.68rem; vertical-align: middle; }
.fee-other { font-size: 0.85rem; font-weight: 600; color: var(--warn); white-space: nowrap; }
.fee-subtotal strong { color: var(--ink); }

@media (max-width: 720px) {
  .party-row.expense-row {
    grid-template-columns: minmax(0, 1fr) 82px auto auto;
    grid-template-areas:
      "desc desc desc desc"
      "amount cur paid del";
    row-gap: 0.4rem;
  }
  .expense-row input[data-field="description"] { grid-area: desc; }
  .expense-row input[data-field="amount"] { grid-area: amount; }
  .expense-row select[data-field="currency"] { grid-area: cur; }
  .expense-row .expense-paid { grid-area: paid; }
  .expense-row .party-remove { grid-area: del; }
}
/* Formdaki genel "label { display:block }" kuralını ez */
.expense-row label.expense-paid { display: inline-flex; margin: 0; font-size: 0.82rem; font-weight: 600; color: var(--mute); }
.expense-row.is-paid label.expense-paid { color: var(--ok); }
