/* ================================================================
   COMPONENTS.CSS
   İçindəkilər:
   - PDF List & PDF Section Header
   - PDF Item (Desktop & Mobile)
   - PDF Number badge
   - PDF File Icon
   - PDF Type Badge & Exam Type Badge
   - PDF Actions (Aç / Endir / Seçilmişlər düymələri)
   - Pill Button sistemi
   - Fav Button
   - Axtarış (Search Bar)
   - Report Error Button & Modal
   - Məlumat Paneli (Info Panel)
   - Empty state
   - Thanks Modal & Overlay
   - Easter Egg Modal
   - About Modal
   - Privacy / Terms Modal
   - Hamburger Button
   - Sidebar Overlay & Sidebar
   - Footer (gizli)
   - PWA Install Banner
   - Home Quick Actions
   - Home Footer Block
   - Support Page
   - Support Toast & Sidebar Support Block
   - Xəta Bildiriş Modal
   - PDF Yükləmə Overlay
   - Mobile responsive overrides (max-width: 768px)
   ================================================================ */

/* ─── PDF List ──────────────────────────────────────────────── */
.pdf-section-header {
  margin-bottom: 24px;
}

.pdf-subject-title {
  font-family: 'Arial Nova', 'Nunito', 'Arial', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.pdf-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ─── PDF Item (Desktop) ────────────────────────────────────── */
.pdf-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color 0.2s, background 0.2s;
}

.pdf-item:hover {
  border-color: var(--border);
  background: var(--surface2);
}

/* ─── PDF File Icon ─────────────────────────────────────────── */
.pdf-file-icon {
  width: 46px;
  height: 54px;
  background: #ef4444;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pdf-file-icon span {
  font-size: 0.6rem;
  font-weight: 800;
  color: white;
  letter-spacing: 0.05em;
}

/* ─── PDF Info ──────────────────────────────────────────────── */
.pdf-info { flex: 1; min-width: 0; }

.pdf-name {
  font-family: 'Arial Nova', 'Nunito', 'Arial', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
  word-break: break-word;
}

/* ─── PDF Number ────────────────────────────────────────────── */
.pdf-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  color: white;
  margin-right: 8px;
  padding: 0 7px;
  font-family: 'Arial Nova', 'Nunito', 'Arial', sans-serif;
  vertical-align: middle;
}

.pdf-meta {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 1.5;
}

/* ─── PDF Actions (Desktop) ─────────────────────────────────── */
.pdf-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ─── Pill Düymə Sistemi ────────────────────────────────────── */
.pill-btn {
  height: 40px;
  width: 110px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: var(--surface2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition-duration: 0.3s;
  overflow: hidden;
  flex-shrink: 0;
  padding: 0;
  text-decoration: none;
}
.pill-icon {
  width: 30px;
  height: 30px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 2;
  transition-duration: 0.3s;
  flex-shrink: 0;
}
.pill-btn-open .pill-icon { background: linear-gradient(to bottom, #60a5fa, #3b82f6); }
.pill-btn-dl   .pill-icon { background: linear-gradient(to bottom, #f87171, #ef4444); }
.pill-btn-fav  .pill-icon { background: linear-gradient(to bottom, #d1d5db, #9ca3af); transition-duration: 0.3s; }
.pill-btn-fav.active .pill-icon { background: linear-gradient(to bottom, #fcd34d, #f59e0b); }
.pill-icon svg { width: 14px; height: 14px; fill: white; }
.pill-text {
  height: 100%;
  width: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-family: 'Arial Nova', 'Nunito', 'Arial', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  z-index: 1;
  transition-duration: 0.3s;
  white-space: nowrap;
}
.pill-btn:hover .pill-icon { width: 96px; }
.pill-btn:hover .pill-text { transform: translateX(10px); width: 0; font-size: 0; }
.pill-btn:active { transform: scale(0.95); transition-duration: 0.3s; }

/* ─── Aç düyməsi ────────────────────────────────────────────── */
.pdf-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 18px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  font-family: 'Arial Nova', 'Nunito', 'Arial', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.pdf-open-btn:hover {
  background: var(--accent2);
}

.pdf-open-btn:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 2px;
}

/* ─── Endir düyməsi ─────────────────────────────────────────── */
.pdf-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 18px;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  text-decoration: none;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  font-family: 'Arial Nova', 'Nunito', 'Arial', sans-serif;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.pdf-download-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.55);
}

.pdf-download-btn:focus-visible {
  outline: 2px solid #ef4444;
  outline-offset: 2px;
}

/* ─── Fav düyməsi ───────────────────────────────────────────── */
.fav-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fav-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.fav-btn:hover {
  border-color: #f59e0b;
  color: #f59e0b;
  background: rgba(245,158,11,0.08);
}

.fav-btn.active {
  border-color: #f59e0b;
  color: #f59e0b;
  background: rgba(245,158,11,0.12);
}

/* ─── PDF Type Badge ────────────────────────────────────────── */
.pdf-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: 'Arial Nova', 'Nunito', 'Arial', sans-serif;
  letter-spacing: 0.03em;
  border: 1px solid;
  flex-shrink: 0;
  text-transform: uppercase;
}

/* ─── İmtahan tipi badge ────────────────────────────────────── */
.exam-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.67rem;
  font-weight: 700;
  font-family: 'Arial Nova', 'Nunito', 'Arial', sans-serif;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.exam-type-test {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #60a5fa;
}

.exam-type-yazili {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: #c084fc;
}

/* ─── Search Bar ────────────────────────────────────────────── */
.search-bar-container {
  position: relative;
  z-index: 10;
  padding: 14px 0 4px;
  margin-bottom: 16px;
}

.search-bar-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 16px;
  transition: all 0.3s ease;
}

.search-bar-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.search-icon {
  font-size: 1.1rem;
  margin-right: 12px;
  opacity: 0.6;
  flex-shrink: 0;
}

#searchInput {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.95rem;
  font-family: 'Arial Nova', 'Nunito', 'Arial', sans-serif;
  padding: 14px 0;
  width: 100%;
}

#searchInput::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.search-clear {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-clear.visible {
  opacity: 1;
  visibility: visible;
}

.search-clear:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.search-results-info {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 8px;
  padding-left: 4px;
  min-height: 18px;
}

.no-results {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.no-results-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

/* ─── Xəta Bildir ───────────────────────────────────────────── */
.report-error-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  margin-top: 16px;
  background: transparent;
  border: 1px dashed rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  font-size: 0.82rem;
  font-family: 'Arial Nova', 'Nunito', 'Arial', sans-serif;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.25s ease;
}

.report-error-btn:hover {
  background: rgba(239, 68, 68, 0.07);
  border-color: rgba(239, 68, 68, 0.55);
  color: #ef4444;
}

.report-error-btn svg {
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.report-error-btn:hover svg { opacity: 1; }

/* ─── Xəta Modal ────────────────────────────────────────────── */
#reportOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: overlayIn 0.2s ease;
}

#reportOverlay.hidden { display: none; }

.report-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px 26px 24px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.report-modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.report-modal-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.report-modal-title {
  font-family: 'Arial Nova', 'Nunito', 'Arial', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  flex: 1;
}

.report-modal-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: none;
  background: var(--surface2);
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}

.report-modal-close:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.report-modal-subject {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 20px;
  padding-left: 44px;
  line-height: 1.4;
}

.report-field { margin-bottom: 14px; }

.report-field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  font-family: 'Arial Nova', 'Nunito', 'Arial', sans-serif;
}

.report-field select,
.report-field textarea {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.88rem;
  font-family: 'Arial Nova', 'Nunito', 'Arial', sans-serif;
  padding: 10px 13px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.report-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}

.report-field select option {
  background: var(--surface2);
  color: var(--text);
}

.report-field textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.55;
}

.report-field select:focus,
.report-field textarea:focus {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.report-modal-footer {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.report-cancel-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  font-family: 'Arial Nova', 'Nunito', 'Arial', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.report-cancel-btn:hover {
  background: var(--surface2);
  color: var(--text);
}

.report-send-btn {
  flex: 2;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  font-size: 0.85rem;
  font-family: 'Arial Nova', 'Nunito', 'Arial', sans-serif;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.2s;
}

.report-send-btn:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.55);
  transform: translateY(-1px);
}

.report-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.report-success {
  text-align: center;
  padding: 20px 10px 10px;
}

.report-success-icon { font-size: 2.5rem; margin-bottom: 12px; }

.report-success-title {
  font-family: 'Arial Nova', 'Nunito', 'Arial', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.report-success-desc {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ─── Məlumat Paneli (Info Panel) ───────────────────────────── */
.info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  line-height: 1;
}

.info-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.info-panel {
  margin-top: 12px;
  animation: fadeUp 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.info-panel.hidden { display: none; }

.info-panel-inner {
  background: var(--surface);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  max-width: 600px;
}

.info-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.info-panel-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent2);
  letter-spacing: 0.03em;
}

.info-panel-close {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.info-panel-close:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.info-panel-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
}

.info-panel-list li {
  font-size: 0.87rem;
  color: var(--text);
  line-height: 1.5;
  padding: 6px 10px;
  background: var(--surface2);
  border-radius: 8px;
}

.info-panel-test {
  border-left-color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.3);
}

.info-panel-test .info-panel-title { color: #60a5fa; }

.info-panel-yazili {
  border-left-color: #a855f7;
  border-color: rgba(168, 85, 247, 0.3);
}

.info-panel-yazili .info-panel-title { color: #c084fc; }

/* ─── Empty state ───────────────────────────────────────────── */
.empty-favs {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ─── Təşəkkürlər düyməsi ───────────────────────────────────── */
.thanks-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 10px;
  color: #f59e0b;
  font-size: 0.78rem;
  font-family: 'Arial Nova', 'Nunito', 'Arial', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  height: 36px;
}

.thanks-btn:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(245, 158, 11, 0.55);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.2);
}

@media (max-width: 520px) {
  .thanks-btn-text { display: none; }
  .thanks-btn { width: 36px; height: 36px; padding: 0; border-radius: 50%; }
}

/* ─── Thanks Overlay ────────────────────────────────────────── */
.thanks-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: overlayIn 0.2s ease;
}

.thanks-overlay.hidden { display: none; }

@keyframes overlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── Thanks Modal ──────────────────────────────────────────── */
.thanks-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px 28px 28px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.88) translateY(20px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);    }
}

.thanks-modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.thanks-modal-icon {
  font-size: 1.6rem;
  line-height: 1;
  animation: heartbeat 1.6s ease infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1);    }
  14%       { transform: scale(1.18); }
  28%       { transform: scale(1);    }
  42%       { transform: scale(1.12); }
  56%       { transform: scale(1);    }
}

.thanks-modal-title {
  font-family: 'Arial Nova', 'Nunito', 'Arial', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  flex: 1;
}

.thanks-modal-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: none;
  background: var(--surface2);
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}

.thanks-modal-close:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.thanks-modal-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.thanks-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  padding: 0;
}

.thanks-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 4px 2px;
  margin-top: 6px;
}

.thanks-section-label:first-child { margin-top: 0; }

.thanks-list li:not(.thanks-section-label) {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
  transition: border-color 0.2s;
}

.thanks-list li:not(.thanks-section-label):hover {
  border-color: rgba(245, 158, 11, 0.35);
}

.thanks-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
  font-family: 'Arial Nova', 'Nunito', 'Arial', sans-serif;
}

.thanks-person {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.thanks-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  font-family: 'Arial Nova', 'Nunito', 'Arial', sans-serif;
}

.thanks-heart { font-size: 1rem; color: #f59e0b; opacity: 0.7; }

.thanks-footer-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ─── Easter Egg ────────────────────────────────────────────── */
.easter-body { text-align: center; padding: 8px 0 4px; }

.easter-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  animation: spin 3s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.easter-title {
  font-family: 'Arial Nova', 'Nunito', 'Arial', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2), var(--accent3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.easter-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.easter-desc strong { color: var(--text); }

.easter-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.easter-person {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.88rem;
  color: var(--text);
}

.easter-num { font-size: 1.1rem; }

.easter-footer {
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 4px;
}

#logo-easter { cursor: pointer; user-select: none; }

/* ─── Privacy / Terms ───────────────────────────────────────── */
.privacy-modal { max-width: 480px !important; }

.privacy-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 4px;
}

.privacy-body::-webkit-scrollbar { width: 4px; }
.privacy-body::-webkit-scrollbar-track { background: transparent; }
.privacy-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.privacy-section h3 {
  font-family: 'Arial Nova', 'Nunito', 'Arial', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.privacy-section p {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.6;
}

.privacy-section ul {
  margin-top: 8px;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.privacy-section ul li {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.privacy-updated {
  font-size: 0.73rem;
  color: var(--muted);
  opacity: 0.6;
  text-align: right;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

.privacy-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.privacy-link:hover { color: var(--accent2); }

/* ─── About Modal ───────────────────────────────────────────── */
.about-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 4px;
}

.about-body p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

.about-body strong { color: var(--text); }

.about-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--text);
}

.about-item-icon { font-size: 1rem; flex-shrink: 0; }

.about-note {
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.82rem !important;
  color: #fb923c !important;
  line-height: 1.5 !important;
}

.about-contact {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.about-contact a {
  flex: 1;
  min-width: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.about-contact a:hover {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.08);
}

/* ─── Hamburger ─────────────────────────────────────────────── */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.hamburger-btn:hover {
  border-color: var(--accent);
  background: var(--surface2);
}

.hamburger-line {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--muted);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center;
}

.hamburger-btn:hover .hamburger-line { background: var(--accent); }

.hamburger-btn.is-open .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.is-open .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.is-open .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.hamburger-btn.is-open .hamburger-line { background: var(--accent); }

/* ─── Sidebar Overlay ───────────────────────────────────────── */
#sidebarOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  z-index: 1000;
  pointer-events: none;
  transition: background 0.35s ease, backdrop-filter 0.35s ease;
}

#sidebarOverlay.active {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  pointer-events: all;
}

/* ─── Sidebar ───────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  height: 100%;
  width: 300px;
  max-width: 85vw;
  background: var(--surface);
  border-right: 1px solid var(--border);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
  box-shadow: 4px 0 32px rgba(0, 0, 0, 0.3);
}

.sidebar.is-open { transform: translateX(0); }

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-title {
  font-family: 'Arial Nova', 'Nunito', 'Arial', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.sidebar-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: var(--surface2);
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.sidebar-close-btn:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.sidebar-section { padding: 16px 20px 12px; }

/* sidebar-section-label uses unified .section-label from base.css */

.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 0 20px;
}

.sidebar-theme-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-theme-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.sidebar-theme-opt:hover { background: var(--surface2); }

.sidebar-theme-opt.active {
  border-color: var(--accent);
  background: var(--surface2);
}

.theme-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sidebar-theme-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  font-family: 'Arial Nova', 'Nunito', 'Arial', sans-serif;
  margin-left: 2px;
}

.sidebar-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  font-family: 'Arial Nova', 'Nunito', 'Arial', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  margin-bottom: 4px;
}

.sidebar-menu-item:hover {
  background: var(--surface2);
  color: var(--accent);
}

.sidebar-menu-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  transition: background 0.2s;
}

.sidebar-menu-item:hover .sidebar-menu-icon {
  background: rgba(59, 130, 246, 0.15);
}

.sidebar-menu-arrow {
  margin-left: auto;
  color: var(--muted);
  font-size: 1.1rem;
  transition: transform 0.2s;
}

.sidebar-menu-item:hover .sidebar-menu-arrow {
  transform: translateX(3px);
  color: var(--accent);
}

.sidebar-footer {
  margin-top: auto;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
}

/* ─── Footer (gizli) ────────────────────────────────────────── */
.footer {
  display: none !important;
}

/* ─── PWA Install Banner ────────────────────────────────────── */
#installBanner {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  background: linear-gradient(135deg, #1e3a5f, #0d2a4a);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  color: var(--text);
  padding: 12px 20px;
  z-index: 9999;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
  flex-wrap: wrap;
  animation: slideDown 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

#installBanner.visible { display: flex; }

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

.banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.banner-btn-dismiss {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  font-family: 'Arial Nova', 'Arial', sans-serif;
  transition: all 0.2s;
}

.banner-btn-dismiss:hover {
  background: rgba(255,255,255,0.07);
  color: var(--text);
}

.banner-btn-install {
  padding: 6px 16px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Arial Nova', 'Arial', sans-serif;
  transition: all 0.2s;
}

.banner-btn-install:hover {
  background: var(--accent2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--border);
}

/* ─── Home Quick Actions ─────────────────────────────────────── */
.home-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 28px;
}

.home-quick-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--text);
}

.home-quick-btn:hover {
  border-color: var(--border);
  background: var(--surface2);
  transform: translateX(4px);
}

.home-quick-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--border), rgba(139,92,246,0.1));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-quick-label {
  flex: 1;
  font-family: 'Nunito', 'Arial', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
}

.home-quick-arrow {
  font-size: 1.3rem;
  color: var(--muted);
  transition: transform 0.2s, color 0.2s;
}

.home-quick-btn:hover .home-quick-arrow {
  transform: translateX(3px);
  color: var(--accent);
}

/* ─── Home Footer Block ──────────────────────────────────────── */
.home-footer-block {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 8px;
}

.home-footer-note {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 14px;
}

.home-footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px 12px;
  flex-wrap: wrap;
}

.home-footer-copy {
  font-size: 0.72rem;
  color: var(--muted);
  opacity: 0.7;
  width: 100%;
  text-align: center;
  margin-bottom: 4px;
}

.home-footer-link {
  font-size: 0.75rem;
  color: var(--accent2);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
  font-weight: 600;
}

.home-footer-link:hover { color: var(--accent); }

/* ─── Support Page ───────────────────────────────────────────── */
.support-page {
  max-width: 480px;
  margin: 0 auto;
  padding-top: 8px;
}

.support-page-header {
  text-align: center;
  margin-bottom: 28px;
}

.support-page-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  animation: supportPulse 2s ease infinite;
}

@keyframes supportPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.support-page-title {
  font-family: 'Nunito', 'Arial', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.support-page-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

.support-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
}

.support-card-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.support-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--muted);
  opacity: 0.7;
  margin-top: 16px;
}

.support-trust-row svg { color: var(--accent2); }

.support-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

.support-contact-row {
  display: flex;
  gap: 10px;
}

.support-contact-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--accent);
  font-family: 'Nunito', 'Arial', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.support-contact-btn:hover {
  border-color: var(--accent);
  background: var(--glow);
}

/* ─── Sidebar Support Block ──────────────────────────────────── */
.sidebar-support-block { padding-bottom: 4px; }

.sidebar-support-desc {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.45;
  padding: 0 2px;
}

.sidebar-support-btns {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.sidebar-support-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 6px 9px;
  text-decoration: none;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  position: relative;
}

.sidebar-support-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(59,130,246,0.5);
  background: var(--glow);
}

.ssb-featured {
  border-color: var(--accent);
  background: var(--glow);
}

.ssb-pop {
  position: absolute;
  top: -7px;
  font-size: 0.6rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
}

.ssb-amount {
  font-family: 'Nunito', Arial, sans-serif;
  font-weight: 800;
  font-size: 1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ssb-label { font-size: 0.68rem; color: var(--muted); margin-top: 2px; }

.sidebar-support-trust {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  color: var(--muted);
  opacity: 0.6;
  padding: 0 2px;
}

.sidebar-support-trust svg { color: var(--accent2); flex-shrink: 0; }

.ssb-method-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 7px;
}

.ssb-method-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ssb-dot-birbank { background: #e31e24; }
.ssb-dot-m10     { background: #00df8b; }

.ssb-m10-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 9px 12px;
  text-decoration: none;
  background: rgba(0, 223, 139, 0.1);
  border: 1px solid rgba(0, 223, 139, 0.35);
  border-radius: 10px;
  color: #00df8b;
  font-family: 'Nunito', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  box-sizing: border-box;
}

.ssb-m10-btn:hover {
  transform: translateY(-2px);
  background: rgba(0, 223, 139, 0.18);
  border-color: rgba(0, 223, 139, 0.6);
}

/* ─── Support Toast ──────────────────────────────────────────── */
.support-toast {
  position: fixed;
  top: -90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 14px;
  padding: 12px 14px 12px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45), 0 0 0 1px var(--glow);
  min-width: 280px;
  max-width: min(420px, calc(100vw - 32px));
  transition: top 0.45s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
  opacity: 0;
}

.support-toast.st-visible {
  top: 72px;
  pointer-events: all;
  opacity: 1;
}

.st-left { display: flex; align-items: center; gap: 11px; flex: 1; min-width: 0; }
.st-icon { font-size: 1.5rem; flex-shrink: 0; line-height: 1; }
.st-text { display: flex; flex-direction: column; min-width: 0; }

.st-title {
  font-family: 'Nunito', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.st-sub {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.st-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.st-btn {
  text-decoration: none;
  font-family: 'Nunito', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.76rem;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.st-btn-birbank {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
}

.st-btn-m10 {
  background: rgba(0, 223, 139, 0.15);
  border: 1px solid rgba(0, 223, 139, 0.45);
  color: #00df8b;
}

.st-btn:hover { opacity: 0.85; }

.st-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}

.st-close:hover { color: var(--text); }

.support-toast::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 0 0 14px 14px;
  transform-origin: left;
  transform: scaleX(1);
  animation: none;
}

.support-toast.st-visible::after {
  animation: toastProgress 5s linear forwards;
}

@keyframes toastProgress {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

/* ─── Tema Genişlənmə ────────────────────────────────────────── */
.theme-extra {
  display: none;
  animation: themeFadeIn 0.22s ease;
}
.theme-extra.theme-extra-visible { display: flex; }

@keyframes themeFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.theme-expand-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  font-family: 'Nunito', Arial, sans-serif;
  padding: 5px 10px;
  cursor: pointer;
  margin-top: 6px;
  width: 100%;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s;
}

.theme-expand-btn:hover {
  color: var(--text);
  border-color: var(--border);
}

#themeExpandIcon { transition: transform 0.25s ease; }
#themeExpandIcon.rotated { transform: rotate(180deg); }

/* ─── PDF Yükləmə Overlay ───────────────────────────────────── */
#pdfLoadingOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: overlayIn 0.2s ease;
}

#pdfLoadingOverlay.hidden { display: none; }

.pdf-loading-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 36px 32px 28px;
  max-width: 280px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pdf-spinner-wrap {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  position: relative;
}

.pdf-spinner-outer {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 3px solid rgba(59, 130, 246, 0.12);
  border-top-color: var(--accent);
  border-right-color: var(--accent2);
  animation: pdfSpin 1s linear infinite;
  position: absolute;
  inset: 0;
}

.pdf-spinner-inner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(139, 92, 246, 0.12);
  border-bottom-color: var(--accent3);
  animation: pdfSpin 0.7s linear infinite reverse;
  position: absolute;
  top: 13px;
  left: 13px;
}

.pdf-spinner-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 29px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  font-weight: 800;
  color: white;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

@keyframes pdfSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.pdf-loading-title {
  font-family: 'Arial Nova', 'Nunito', 'Arial', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.pdf-loading-subtitle {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.pdf-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}

.pdf-progress-fill {
  height: 100%;
  width: 5%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 10px;
  transition: width 0.3s ease;
}

.pdf-loading-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.pdf-loading-dots span {
  display: block;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  animation: dotBounce 1.2s ease infinite;
  opacity: 0.4;
}

.pdf-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.pdf-loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40%            { transform: translateY(-6px); opacity: 1; }
}

/* ================================================================
   MOBİL — PDF KART TAM DÜZƏLİŞİ  (max-width: 768px)
   ================================================================ */
@media (max-width: 768px) {

  .tab-btn {
    font-size: 0.78rem;
    padding: 8px 10px;
  }

  #searchInput {
    font-size: 0.9rem;
    padding: 12px 0;
  }

  .pdf-number {
    min-width: 22px;
    height: 22px;
    font-size: 0.72rem;
    padding: 0 5px;
  }

  /* PDF kart — vertical layout */
  .pdf-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 0;
  }

  /* Yuxarı: ikon + mətn yan-yana */
  .pdf-top-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    margin-bottom: 12px;
  }

  .pdf-file-icon {
    width: 42px;
    height: 52px;
    flex-shrink: 0;
  }

  .pdf-info {
    flex: 1;
    min-width: 0;
  }

  .pdf-name {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .pdf-meta {
    margin-top: 5px;
    font-size: 0.7rem;
  }

  /* Düymələr — tam en, yan-yana */
  .pdf-actions {
    width: 100%;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: unset;
  }

  .fav-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    flex-shrink: 0;
  }

  .pdf-open-btn {
    flex: 1;
    justify-content: center;
    min-height: 44px;
    padding: 0;
    font-size: 0.8rem;
  }

  .pdf-download-btn {
    flex: 1;
    justify-content: center;
    min-height: 44px;
    padding: 0;
    font-size: 0.8rem;
  }
}

/* ─── QR Ödəniş Düyməsi ─────────────────────────────────────── */
.qr-pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 9px 12px;
  border: none;
  border-radius: 10px;
  font-family: 'Nunito', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  box-sizing: border-box;
  margin-top: 10px;
}

.qr-pay-btn--birbank {
  background: rgba(227, 30, 36, 0.1);
  border: 1px solid rgba(227, 30, 36, 0.3);
  color: #e31e24;
}

.qr-pay-btn--birbank:hover {
  transform: translateY(-2px);
  background: rgba(227, 30, 36, 0.18);
  border-color: rgba(227, 30, 36, 0.55);
  box-shadow: 0 4px 14px rgba(227, 30, 36, 0.15);
}

.qr-pay-btn--m10 {
  background: rgba(0, 223, 139, 0.1);
  border: 1px solid rgba(0, 223, 139, 0.3);
  color: #00c97a;
}

.qr-pay-btn--m10:hover {
  transform: translateY(-2px);
  background: rgba(0, 223, 139, 0.18);
  border-color: rgba(0, 223, 139, 0.55);
  box-shadow: 0 4px 14px rgba(0, 223, 139, 0.15);
}

/* ─── QR Ödəniş Modali ──────────────────────────────────────── */
.qr-pay-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: qrOverlayIn 0.22s ease;
}

.qr-pay-overlay.hidden {
  display: none;
}

@keyframes qrOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.qr-pay-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px 20px 20px;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: qrModalIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes qrModalIn {
  from { transform: scale(0.88) translateY(16px); opacity: 0; }
  to   { transform: scale(1) translateY(0);       opacity: 1; }
}

.qr-pay-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.qr-pay-modal-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qr-pay-modal-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.qr-pay-modal-title {
  font-family: 'Nunito', Arial, sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
}

.qr-pay-modal-close {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 8px;
  width: 30px;
  height: 30px;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.qr-pay-modal-close:hover {
  background: var(--border);
  color: var(--text);
}

.qr-pay-modal-desc {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.45;
}

.qr-pay-img-wrap {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.qr-pay-img {
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: 6px;
  display: block;
}

.qr-pay-modal-note {
  font-size: 0.73rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
  opacity: 0.75;
}
