html, body {
  touch-action: auto !important;
}

:root {
  --bg-color: #f7f4ef;
  --card-bg: #ffffff;
  --primary: #8b262a;
  --primary-hover: #6d1d20;
  --text-main: #2b2b2b;
  --text-muted: #6e6e6e;
  --border-color: #e5e0d8;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.5;
  padding-bottom: 40px;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
}

.hidden { display: none !important; }

.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  line-height: 1.2;
}

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

.btn-outline { background: transparent; border: 1px solid var(--border-color); color: var(--text-main); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-dashed { background: transparent; border: 1px dashed var(--border-color); color: var(--text-muted); }
.btn-dashed:hover { border-color: var(--primary); color: var(--primary); }

.btn-icon { background: transparent; border: none; cursor: pointer; padding: 6px; border-radius: 6px; color: var(--text-muted); }
.btn-icon:hover { background: #f0ebe1; color: var(--text-main); }

.w-100 { width: 100%; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }

/* GİRİŞ EKRANI */
.auth-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  padding: 36px 28px;
  text-align: center;
}

.auth-header { margin-bottom: 28px; }
.auth-header h1 { font-size: clamp(27px, 9vw, 40px); white-space: nowrap; }
.auth-header h1 span { font-style: italic; color: #1a1a1a; font-weight: 400; font-size: 0.62em; }

.pin-input-wrapper { position: relative; }
.pin-input-wrapper input {
  width: 100%; padding: 10px; padding-right: 40px;
  border: 1px solid var(--border-color); border-radius: 8px;
  text-align: center; font-size: 20px; letter-spacing: 4px;
}

.btn-eye {
  position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--text-muted);
}

/* ANA UYGULAMA */
.app-container { max-width: 1260px; margin: 0 auto; padding: 20px; }
.main-header { margin-bottom: 24px; }

.header-top-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.brand h1 { font-size: clamp(26px, 8vw, 38px); white-space: nowrap; }
.brand h1 span { font-style: italic; color: #1a1a1a; font-weight: 400; font-size: 0.62em; }

/* ARAMA ÇUBUĞU STİLLERİ */
.search-container { position: relative; }
.search-input-wrapper {
  display: flex; align-items: center; gap: 8px;
  background: #fff; padding: 6px 12px; border-radius: 20px;
  border: 1px solid var(--border-color); width: 220px; transition: width 0.2s;
}
.search-input-wrapper:focus-within { width: 280px; border-color: var(--primary); }
.search-input-wrapper input {
  border: none; outline: none; background: transparent; font-size: 13px; width: 100%; font-family: inherit;
}
.search-results-dropdown {
  position: absolute; right: 0; top: 115%; background: #fff;
  border: 1px solid var(--border-color); border-radius: 10px; box-shadow: var(--shadow);
  width: 320px; max-height: 350px; overflow-y: auto; z-index: 200; padding: 6px;
}
.search-result-item {
  padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: 12.5px; border-bottom: 1px solid #f5f2eb;
}
.search-result-item:hover { background: #f7f4ef; color: var(--primary); }

.user-profile-badge {
  display: flex; align-items: center; gap: 8px;
  background: #fff; padding: 6px 14px; border-radius: 20px;
  border: 1px solid var(--border-color); cursor: pointer; font-size: 13.5px;
}

.profile-menu-container { position: relative; }

.profile-dropdown {
  position: absolute; right: 0; top: 110%;
  background: #fff; border: 1px solid var(--border-color);
  border-radius: 10px; box-shadow: var(--shadow); width: 200px; z-index: 100; padding: 4px;
}

.dropdown-item {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 8px 12px; background: none; border: none; text-align: left; font-size: 13px; cursor: pointer; border-radius: 6px;
}
.dropdown-item:hover { background: #f7f4ef; color: var(--primary); }

.nav-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--border-color); padding-bottom: 12px; }
.nav-btn {
  display: flex; align-items: center; gap: 6px; background: transparent;
  border: none; font-size: 14px; font-weight: 600; color: var(--text-muted); cursor: pointer; padding: 8px 14px; border-radius: 8px;
}
.nav-btn.active { background: var(--primary); color: #fff; }

.content-wrapper { display: flex; gap: 24px; }
.main-column { flex: 1; min-width: 0; }
.sidebar-column { width: 300px; flex-shrink: 0; }

.tab-content { display: none; }
.tab-content.active { display: block; }

/* KİTAP KARTLARI & MİNİMAL KAPAK */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(max(130px, calc((100% - 5 * var(--grid-gap, 16px)) / 6)), 1fr)); /* en fazla 6 kitap yan yana */
  gap: 16px; margin-top: 16px;
}

.book-card {
  background: #fff; border: 1px solid var(--border-color);
  border-radius: 10px; padding: 10px; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
}
.book-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.06); }

.book-cover-box { width: 100%; height: 180px; border-radius: 6px; overflow: hidden; background: #eee; margin-bottom: 8px; }
.book-cover { width: 100%; height: 100%; object-fit: cover; }

.book-cover-placeholder {
  width: 100%; height: 100%; background: #eae5dc;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 12px; font-family: 'Playfair Display', serif; font-size: 13px; color: #333; line-height: 1.3;
}

.book-title { font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book-author { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book-pages { font-size: 11.5px; color: #333333; margin-top: 4px; font-weight: 600; }

.add-book-card {
  border: 2px dashed var(--border-color); border-radius: 10px; height: 235px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  color: var(--text-muted); cursor: pointer; transition: all 0.2s;
}
.add-book-card:hover { border-color: var(--primary); color: var(--primary); background: #fff; }

/* HEDEF VE İSTATİSTİKLER */
.goal-card { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.goal-progress-circle { width: 80px; height: 80px; position: relative; }
.circular-chart { width: 100%; height: 100%; }
.circle-bg { fill: none; stroke: #e5e0d8; stroke-width: 3.8; }
.circle { fill: none; stroke: var(--primary); stroke-width: 3.8; stroke-linecap: round; transition: stroke-dasharray 0.3s; }

.circle-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
.circle-text span { font-weight: 700; font-size: 13px; display: block; }
.circle-text small { font-size: 10px; color: var(--text-muted); }

.progress-bar-bg { background: #eee; height: 7px; border-radius: 4px; overflow: hidden; margin-top: 8px; }
.progress-bar-fill { background: var(--primary); height: 100%; transition: width 0.3s; }

.stat-card { text-align: center; }
.stat-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.big-stat { margin-top: 10px; border-bottom: 1px solid #f0f0f0; padding-bottom: 6px; }
.stat-label { font-size: 11.5px; color: var(--text-muted); display: block; }
.stat-number { font-size: 22px; font-weight: 700; font-family: 'Playfair Display', serif; }

.chart-container { display: flex; align-items: flex-end; justify-content: space-between; height: 110px; margin-top: 16px; padding-top: 10px; }
.bar-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; cursor: pointer; }
.bar-wrapper { height: 75px; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.bar { width: 12px; background: #e0d8cd; border-radius: 3px; transition: height 0.3s ease; min-height: 6px; }
.bar-item.active .bar { background: var(--primary); }
.bar-item span { font-size: 10px; color: var(--text-muted); }
.bar-item.active span { color: var(--primary); font-weight: 700; }

/* ÖZEL TİK (Aylık Plan Listesi İçin) */
.custom-checkbox-label { display: flex; align-items: center; gap: 12px; cursor: pointer; position: relative; user-select: none; }
.custom-checkbox-label input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.custom-checkmark {
  position: relative; height: 20px; width: 20px; background-color: #fff;
  border: 1.5px solid var(--border-color); border-radius: 6px; transition: all 0.2s ease;
  display: flex; align-items: center; justify-content: center;
}
.custom-checkbox-label:hover input ~ .custom-checkmark { border-color: var(--primary); }
.custom-checkbox-label input:checked ~ .custom-checkmark { background-color: var(--primary); border-color: var(--primary); }
.custom-checkmark:after { content: ""; position: absolute; display: none; }
.custom-checkbox-label input:checked ~ .custom-checkmark:after { display: block; }
.custom-checkbox-label .custom-checkmark:after {
  left: 6px; top: 2px; width: 5px; height: 10px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* AYLIK PLAN KİTAP BAĞLANTISI STİLİ */
.monthly-book-link {
  font-size: 13.5px; color: var(--text-main); text-decoration: none; transition: color 0.2s;
}
.monthly-book-link:hover {
  text-decoration: underline; color: var(--primary);
}

/* VURGULAMA (HIGHLIGHT) EFEKTİ */
@keyframes highlightPulse {
  0% { background-color: #fef08a; }
  100% { background-color: transparent; }
}
.highlight-flash {
  animation: highlightPulse 2s ease-out;
  border-radius: 4px;
  padding: 2px 4px;
}

/* KİTAP SİL BUTONU */
.delete-book-btn-right {
  background: transparent;
  border: 1px solid #dc2626;
  color: #dc2626;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  line-height: 1.2;
}
.delete-book-btn-right:hover {
  background: #dc2626;
  color: #fff;
}

/* DETAY SAYFASI VE MODALLAR */
.full-page-detail {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: var(--bg-color); z-index: 1000; overflow-y: auto; display: none; padding: 30px 20px;
}
.full-page-detail.active { display: block; }

.detail-header-bar { max-width: 900px; margin: 0 auto 20px auto; display: flex; justify-content: space-between; align-items: center; }

.journal-paper-container {
  max-width: 900px; margin: 0 auto; display: flex; gap: 28px;
  background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}

.journal-left { width: 260px; flex-shrink: 0; }
.journal-right { flex: 1; min-width: 0; }

.cover-wrapper {
  width: 100%; height: 370px; border-radius: 8px; overflow: hidden;
  background: #f0ebe1; position: relative; box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.cover-wrapper img { width: 100%; height: 100%; object-fit: cover; }

.edit-cover-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.4); display: flex; justify-content: center; align-items: center; backdrop-filter: blur(2px);
}

.rating-box { text-align: center; padding: 12px; }
.interactive-stars-wrapper { position: relative; display: inline-block; font-size: 24px; cursor: pointer; color: #ddd; }
.stars-fill { position: absolute; top: 0; left: 0; overflow: hidden; color: #f59e0b; white-space: nowrap; }
.rating-score-text { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.journal-box h3 {
  font-size: 16px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
  color: var(--primary); border-bottom: 1px solid var(--border-color); padding-bottom: 6px;
}

.view-text { font-size: 13.5px; color: #333; white-space: pre-line; line-height: 1.6; }
textarea, input[type="text"], input[type="number"], select {
  width: 100%; padding: 8px 12px; border: 1px solid var(--border-color); border-radius: 6px; font-size: 13.5px; font-family: inherit;
}

.format-tag { background: var(--primary); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 4px; }

.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.4); display: none; justify-content: center; align-items: center; z-index: 2000;
}
.modal-overlay.open { display: flex; }

.modal-card { background: #fff; border-radius: var(--radius); padding: 22px; width: 100%; max-width: 400px; box-shadow: var(--shadow); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.close-btn { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text-muted); }

.months-grid-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.month-picker-btn {
  padding: 8px; font-size: 12.5px; border: 1px solid var(--border-color);
  border-radius: 6px; background: #fff; cursor: pointer; transition: all 0.2s; color: var(--text-main); font-weight: 500;
}
.month-picker-btn:hover { border-color: var(--primary); color: var(--primary); }
.month-picker-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.toast-notification {
  position: fixed; bottom: 20px; right: 20px; background: var(--text-main); color: #fff;
  padding: 10px 18px; border-radius: 6px; font-size: 13px; transform: translateY(100px); opacity: 0; transition: all 0.3s; z-index: 3000;
}
.toast-notification.show { transform: translateY(0); opacity: 1; }

@media (max-width: 850px) {
  .content-wrapper { flex-direction: column; }
  .sidebar-column { width: 100%; }
  .journal-paper-container { flex-direction: column; padding: 16px; gap: 20px; }
  .journal-left { width: 100%; max-width: 220px; margin: 0 auto; }
}

/* FORMAT VE EDEBİ FORM BUTON GRUPLARI */
.format-options,
.genre-options {
  display: flex !important;
  gap: 5px !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
}

.format-btn,
.genre-btn {
  height: 28px !important;
  padding: 0 8px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  flex: 0 0 auto !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  transition: all 0.15s ease !important;
}

.format-btn svg,
.format-btn i,
.genre-btn svg,
.genre-btn i {
  width: 12px !important;
  height: 12px !important;
  min-width: 12px !important;
  min-height: 12px !important;
  display: inline-block !important;
  vertical-align: middle !important;
}
/* E-posta/şifre alanları (PIN stilinin ezilmesi) */
.pin-input-wrapper.pw input { text-align: left; font-size: 15px; letter-spacing: normal; }


/* ===== Giriş / kayıt ekranı (yeni tasarım) ===== */
.auth-header { margin-bottom: 22px; }
.auth-header::after { content: ''; display: block; width: 56px; height: 1px; background: #dccdbb; margin: 16px auto 0; }
.auth-form h3 { font-family: 'Playfair Display', serif; font-size: 21px; text-align: center; margin: 0 0 20px; }
.auth-google {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 14px 18px;
  background: #fbf6ee; border: 1px solid #dccdbb; border-radius: 999px; cursor: pointer;
  font-family: 'Playfair Display', serif; font-size: 16px; color: #2b2b2b; transition: background .2s, box-shadow .2s;
}
.auth-google:hover { background: #fff; box-shadow: 0 2px 10px rgba(80, 40, 20, .1); }
.auth-or { display: flex; align-items: center; gap: 14px; margin: 18px 0; color: #8a7a6b; font-family: 'Playfair Display', serif; font-size: 14px; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: #e4d8c8; }
.auth-field { margin-bottom: 14px; text-align: left; }
.auth-field label { display: block; margin-bottom: 7px; font-family: 'Playfair Display', serif; font-size: 14px; color: #4a3a30; }
.auth-field input, .auth-field .pin-input-wrapper input {
  width: 100%; box-sizing: border-box; padding: 13px 16px; border: 1px solid #e0d3c3; border-radius: 12px;
  background: #fffdfa; font-size: 15px; text-align: left; letter-spacing: normal; color: #2b2b2b;
}
.auth-field .pin-input-wrapper input { padding-right: 46px; }
.auth-field input::placeholder { color: #b8aa9b; }
.auth-field input:focus { outline: none; border-color: #8b262a; box-shadow: 0 0 0 3px rgba(139, 38, 42, .12); }
.auth-submit {
  display: block; width: 100%; margin-top: 20px; padding: 15px; border: none; border-radius: 999px; cursor: pointer;
  background: #8b262a; color: #fff; font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 600;
  box-shadow: 0 6px 16px rgba(139, 38, 42, .28); transition: background .2s, transform .15s;
}
.auth-submit:hover { background: #7a1f23; transform: translateY(-1px); }
.auth-links { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.auth-links button {
  display: inline-flex; align-items: center; gap: 7px; background: none; border: none; cursor: pointer; padding: 6px 4px;
  font-family: 'Playfair Display', serif; font-size: 14.5px; color: #6f6054;
}
.auth-links button:hover { color: #8b262a; }
.auth-links svg { width: 16px; height: 16px; }
.auth-sep { width: 1px; height: 18px; background: #dccdbb; }

/* ===== Misafir bağlantısı ===== */
.auth-guest { display: block; margin: 18px auto 0; background: none; border: none; cursor: pointer; padding: 6px 10px; font-family: 'Playfair Display', serif; font-size: 15px; color: #6f6054; text-decoration: underline; text-underline-offset: 4px; }
.auth-guest:hover { color: #8b262a; }

/* ===== Tanıtım (tour) ===== */
.rjt-dim { position: fixed; inset: 0; z-index: 5000; cursor: pointer; }
.rjt-dim.rjt-solid { background: rgba(24, 10, 12, .55); }
.rjt-hole { position: fixed; z-index: 5001; border-radius: 12px; pointer-events: none; display: none; box-shadow: 0 0 0 9999px rgba(24, 10, 12, .42), 0 0 0 3px #8b262a, 0 0 18px 4px rgba(139, 38, 42, .55); transition: all .25s ease; }
.rjt-tip { position: fixed; z-index: 5002; width: 340px; max-width: calc(100vw - 24px); box-sizing: border-box; background: #fffdfa; border: 1px solid #e0d3c3; border-radius: 16px; padding: 18px 18px 14px; box-shadow: 0 14px 40px rgba(40, 15, 10, .35); font-family: 'Plus Jakarta Sans', sans-serif; }
.rjt-title { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; color: #2b2b2b; margin: 0 24px 6px 0; }
.rjt-text { font-size: 14px; line-height: 1.55; color: #4a3a30; }
.rjt-x { position: absolute; top: 8px; right: 10px; width: 30px; height: 30px; border: none; background: none; font-size: 24px; line-height: 1; color: #8a7a6b; cursor: pointer; }
.rjt-x:hover { color: #8b262a; }
.rjt-dots { display: flex; gap: 5px; margin: 12px 0 10px; flex-wrap: wrap; }
.rjt-dots i { width: 6px; height: 6px; border-radius: 50%; background: #e0d3c3; }
.rjt-dots i.on { background: #8b262a; }
.rjt-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rjt-hint { font-size: 11px; color: #9a8b7c; text-align: center; flex: 1; }
.rjt-back, .rjt-next { border: none; border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: pointer; }
.rjt-back { background: #f1e8dc; color: #4a3a30; }
.rjt-back:disabled { opacity: .4; cursor: default; }
.rjt-next { background: #8b262a; color: #fff; }
.rjt-next:hover { background: #7a1f23; }
@media (max-width: 640px) { .rjt-hint { display: none; } .rjt-tip { width: auto; } }

.rjt-notice { position: fixed; inset: 0; z-index: 5100; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(24, 10, 12, .6); }
.rjt-card { max-width: 440px; background: #fffdfa; border-radius: 18px; padding: 24px 24px 20px; box-shadow: 0 18px 50px rgba(0, 0, 0, .4); font-family: 'Plus Jakarta Sans', sans-serif; }
.rjt-card h3 { font-family: 'Playfair Display', serif; font-size: 21px; margin: 0 0 10px; color: #2b2b2b; }
.rjt-card p { font-size: 14px; line-height: 1.6; color: #4a3a30; margin: 0 0 10px; }
.rjt-btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
.rjt-btns button { border: none; border-radius: 999px; padding: 10px 20px; font-size: 14px; font-weight: 600; cursor: pointer; }
.rjt-ok { background: #f1e8dc; color: #4a3a30; }
.rjt-home { background: #8b262a; color: #fff; }

.rjt-hint { margin-top: 2px; font-size: 12px; color: #9a8b7c; text-align: center; }
.rjt-tip { cursor: pointer; }
@media (max-width: 640px) { .rjt-hint { display: block; } }

/* Tanıtım: küçük geri düğmesi ve hızlı çerçeve */
.rjt-foot { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.rjt-foot .rjt-hint { flex: 1; margin: 0; text-align: center; }
.rjt-back { flex: none; width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 1px solid #e0d3c3; background: #fff; color: #4a3a30; font-size: 15px; line-height: 1; font-weight: 400; cursor: pointer; }
.rjt-back:hover { border-color: #8b262a; color: #8b262a; }
.rjt-back:disabled { visibility: hidden; }
.rjt-hole { transition: all .16s ease; }


/* ---- Mobil: istatistik kartı hedef çubuğunun altında, kompakt ---- */
.stat-expand-btn, .stat-summary { display: none; }
@media (max-width: 850px) {
  .sidebar-column:empty { display: none; }
  .stat-card { padding: 12px 14px; margin-bottom: 16px; text-align: left; }
  .stat-card .stat-header { margin-bottom: 4px; }
  .stat-card .stat-header h3 { font-size: 16px; margin: 0; }
  .stat-card .stat-actions { display: flex; align-items: center; gap: 2px; }
  .stat-expand-btn { display: inline-flex; transition: transform .2s; }
  .stat-card:not(.stat-collapsed) .stat-expand-btn { transform: rotate(180deg); }
  .stat-card > div:nth-of-type(2) { justify-content: flex-start !important; margin-bottom: 2px !important; }
  .stat-summary { display: block; font-size: 14px; font-weight: 600; color: var(--text-main); }
  .stat-card:not(.stat-collapsed) .stat-summary { display: none; }
  .stat-card.stat-collapsed .big-stat, .stat-card.stat-collapsed .chart-container { display: none; }
  .stat-card:not(.stat-collapsed) { text-align: center; }
}

/* E-posta doğrulama paneli */
.auth-note { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; margin: 8px 0; }
.auth-email { font-weight: 600; font-size: 15px; word-break: break-all; margin: 4px 0 8px; }

/* Başlık: Read (Re ve d kırmızı, a siyah) */
.wm { font-weight: 700; letter-spacing: -0.01em; }
.wm i { font-style: normal; }
.wm .r { color: #8b1a1a; }
.wm .k { color: #000; }
.brand h1 .sep, .auth-header h1 .sep { display: inline-block; width: 0.45em; height: 2px; background: #8b1a1a; vertical-align: middle; margin: 0 0.3em 0 0.35em; border-radius: 1px; opacity: .8; }


/* Vurgulama (kalem) */
mark.hl { background: linear-gradient(transparent 8%, #ffe27a 8%, #ffe27a 94%, transparent 94%); color: inherit; padding: 0 .12em; margin: 0 -.12em; border-radius: .35em .6em .4em .55em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hl-pen { position: fixed; z-index: 2500; width: 32px; height: 32px; border-radius: 50%; border: 1px solid #d9b93c; background: #ffe27a; color: #3b3200; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.18); padding: 0; }
.hl-pen:hover { background: #ffd84f; }
.hl-pen.hidden { display: none; }

/* Aç-kapa başlıklar */
.collapsible-h { cursor: pointer; user-select: none; display: flex; align-items: center; gap: 6px; }
.collapsible-h .collapse-chev { margin-left: auto; font-size: 15px; color: var(--text-muted, #888); transition: transform .15s ease; }
.journal-box.collapsed .collapse-chev { transform: rotate(-90deg); }
.journal-box.collapsed > :not(h3) { display: none !important; }
.journal-box.collapsed > h3 { margin-bottom: 0; }

/* Yazı kutuları yalnızca aşağı doğru uzasın, yana taşmasın */
textarea { resize: vertical; max-width: 100%; box-sizing: border-box; }
