/* ==========================================================================
   ASİL DANIŞMANLIK - ÖĞRENCİ PORTALI, ENES MENKET ADMİN SUITE & ÇİZELGE STİLLERİ
   (ÇOK SAYFALI MİMARİ, KUSURSUZ HİZALAMA VE ÖZEL OK SİSTEMİ)
   ========================================================================== */

/* ----------------------------------------------------
   1. PORTAL GLOBAL SAYFA DÜZENİ (STUDENT.HTML & ADMIN.HTML)
   ---------------------------------------------------- */
.portal-body {
  min-height: 100vh;
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(184, 159, 20, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 90% 40%, rgba(185, 144, 16, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(185, 144, 16, 0.05) 0%, transparent 40%);
  display: flex;
  flex-direction: column;
}

.portal-navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(41, 35, 12, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(185, 144, 16, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  padding: 12px 24px;
}

.portal-nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.portal-nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-nav-outline {
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-nav-outline:hover {
  background: rgba(185, 144, 16, 0.18);
  border-color: var(--gold-primary);
  transform: translateY(-1px);
}

.btn-nav-logout {
  padding: 8px 18px;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #FB7185;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  transition: var(--transition-smooth);
}

.btn-nav-logout:hover {
  background: #F43F5E;
  color: white;
  box-shadow: 0 0 15px rgba(244, 63, 94, 0.4);
}

.portal-main-wrap {
  flex: 1;
  padding: 40px 20px 80px;
}

.dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.nav-portal-direct-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: inherit;
}

.badge-portal-hint {
  font-size: 0.72rem;
  opacity: 0.85;
  font-weight: 600;
}

/* ----------------------------------------------------
   2. KİLİTLİ ÇİZELGE ÖNİZLEME (INDEX.HTML - %100 ORTALANMIŞ)
   ---------------------------------------------------- */
.locked-tracking-preview-section {
  padding: 80px 20px;
  position: relative;
}

.locked-preview-card {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 2px solid var(--border-gold);
  box-shadow: var(--shadow-lg), 0 0 35px rgba(185, 144, 16, 0.15);
  background: #29230C;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.locked-preview-blur-bg {
  width: 100%;
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  opacity: 0.25;
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

.dummy-day-card {
  background: rgba(64, 55, 19, 0.7);
  border: 1px solid rgba(185, 144, 16, 0.2);
  border-radius: 18px;
  min-height: 240px;
}

.locked-overlay-gate {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(43, 37, 13, 0.88) 0%, rgba(20, 17, 6, 0.97) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  z-index: 10;
  margin: 0 auto;
  width: 100%;
}

.gate-lock-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(185, 144, 16, 0.15);
  border: 2px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 20px;
  box-shadow: 0 0 25px var(--gold-glow);
}

.gate-title {
  font-family: var(--font-royal);
  font-size: 2.1rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 14px;
  text-align: center;
}

.gate-desc {
  max-width: 620px;
  font-size: 1.05rem;
  color: #EDE4C2;
  line-height: 1.65;
  margin: 0 auto 30px;
  text-align: center;
}

.gate-btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

/* ----------------------------------------------------
   3. ÖĞRENCİ ÇALIŞMA PORTALI (STUDENT.HTML)
   ---------------------------------------------------- */
.student-membership-banner {
  background: linear-gradient(135deg, #3F3612 0%, #5C4F1B 100%);
  border: 1.5px solid var(--border-gold);
  border-radius: 24px;
  padding: 24px 30px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-md), 0 0 25px rgba(185, 144, 16, 0.12);
}

.student-banner-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.student-avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2.5px solid var(--gold-primary);
  object-fit: cover;
  box-shadow: 0 0 15px var(--gold-glow);
}

.student-role-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(185, 144, 16, 0.18);
  border: 1px solid rgba(185, 144, 16, 0.4);
  color: #D3AA34;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.student-welcome-title {
  font-family: var(--font-royal);
  font-size: 1.6rem;
  font-weight: 800;
  color: white;
}

.student-target-line {
  font-size: 0.9rem;
  color: #E1DCCB;
}

.membership-status-card {
  background: rgba(31, 26, 9, 0.85);
  border: 1px solid rgba(185, 144, 16, 0.3);
  border-radius: 16px;
  padding: 14px 20px;
  min-width: 280px;
}

.status-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.pkg-name {
  font-weight: 700;
  color: var(--gold-light);
}

.status-pill {
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
}

.status-pill.active { background: rgba(185, 144, 16, 0.2); color: #D3AA34; }
.status-pill.expired { background: rgba(244, 63, 94, 0.2); color: #FB7185; }

.status-card-bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #B8B094;
}

.days-remaining-text {
  font-size: 0.95rem;
  color: #D3AA34;
  font-weight: 800;
}

.days-remaining-text.urgent {
  color: #FB7185;
}

.membership-alert-box {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.4);
  border-radius: 16px;
  padding: 16px 20px;
  color: #FECDD3;
  margin-bottom: 30px;
  font-size: 0.92rem;
}

/* ----------------------------------------------------
   4. ENES MENKET ADMİN SUITE & ÖZEL DROPDOWN (ADMIN.HTML)
   ---------------------------------------------------- */
.admin-suite-header-card {
  background: linear-gradient(135deg, #383010 0%, #514518 100%);
  border: 1.5px solid var(--gold-primary);
  border-radius: 28px;
  padding: 30px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.admin-header-title-box {
  display: flex;
  align-items: center;
  gap: 18px;
}

.admin-avatar-lg {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  object-fit: cover;
  box-shadow: 0 0 15px var(--gold-glow);
}

.admin-title-text {
  font-family: var(--font-royal);
  font-size: 1.65rem;
  font-weight: 800;
  color: white;
}

.admin-subtitle-text {
  color: var(--gold-light);
  font-size: 0.9rem;
  font-weight: 600;
}

.admin-nav-tabs {
  display: flex;
  gap: 8px;
  background: rgba(31, 26, 9, 0.75);
  padding: 6px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(185, 144, 16, 0.25);
  flex-wrap: wrap;
}

.admin-nav-tab-btn {
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.88rem;
  color: #E1DCCB;
  transition: var(--transition-smooth);
}

.admin-nav-tab-btn.is-active {
  background: var(--gold-gradient);
  color: #1D1909;
  box-shadow: 0 0 15px var(--gold-glow);
}

/* Özel Kraliyet Dropdown Seçici (İncelenen Öğrenci Barı) */
.admin-schedule-top-selector {
  background: linear-gradient(135deg, #3F3612 0%, #534718 100%);
  border: 1.5px solid var(--gold-primary);
  border-radius: 22px;
  padding: 20px 26px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-md), 0 0 20px rgba(185, 144, 16, 0.12);
}

.selector-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 320px;
}

.selector-label {
  font-family: var(--font-royal);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold-light);
  white-space: nowrap;
}

/* Özel Altın Ok Dropdown */
.royal-custom-select {
  flex: 1;
  background-color: #2C250D;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px 16px;
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-full);
  padding: 10px 42px 10px 18px;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
}

.royal-custom-select:hover, .royal-custom-select:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px var(--gold-glow);
}

.royal-custom-select option {
  background-color: #2C250D;
  color: #FFFFFF;
  padding: 10px;
}

.selector-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-badge-exp {
  padding: 8px 16px;
  background: rgba(185, 144, 16, 0.15);
  border: 1px solid rgba(185, 144, 16, 0.4);
  border-radius: var(--radius-full);
  color: #D3AA34;
  font-size: 0.85rem;
  font-weight: 800;
}

.admin-badge-exp.expired {
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.4);
  color: #FB7185;
}

.btn-admin-add-task-global {
  padding: 9px 20px;
  background: var(--gold-gradient);
  color: #1D1909;
  font-weight: 800;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-admin-add-task-global:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(185, 144, 16, 0.4);
}

/* ----------------------------------------------------
   5. ÖĞRENCİ VE ÜYELİK TABLOSU
   ---------------------------------------------------- */
.admin-table-wrapper {
  background: #342C0F;
  border: 1.5px solid var(--border-gold);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 20px;
}

.admin-table-topbar {
  padding: 20px 24px;
  background: rgba(31, 26, 9, 0.8);
  border-bottom: 1px solid rgba(185, 144, 16, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.table-topbar-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-add-student-main {
  padding: 10px 22px;
  background: var(--gold-gradient);
  color: #1D1909;
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(185, 144, 16, 0.3);
}

.btn-add-student-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(185, 144, 16, 0.5);
}

.admin-table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.admin-data-table th {
  padding: 14px 18px;
  background: #26200B;
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--gold-primary);
}

.admin-data-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #F0EDE2;
  vertical-align: middle;
}

.admin-table-row:hover {
  background: rgba(185, 144, 16, 0.05);
}

.table-student-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-primary);
  object-fit: cover;
}

.table-sub-text {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.student-code-tag {
  display: inline-block;
  padding: 1px 6px;
  background: rgba(185, 144, 16, 0.15);
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 2px;
}

.credentials-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.8rem;
}

.credentials-box code {
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--gold-light);
}

/* Admin: "şifreyi göster" butonu (admin isteği — kullanıcı özelliği) */
.pwd-toggle-btn {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(185, 144, 16, 0.4);
  border-radius: 4px;
  color: var(--gold-light);
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1.4;
  margin-left: 4px;
  padding: 1px 6px;
  vertical-align: middle;
}

.pwd-toggle-btn:hover {
  background: rgba(185, 144, 16, 0.25);
}

.package-cell-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: #F2EBD3;
  background: rgba(184, 159, 20, 0.15);
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-block;
}

.expiry-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.expiry-date-text {
  font-size: 0.82rem;
  color: #E1DCCB;
}

.days-left-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  width: fit-content;
}

.days-left-chip.good { background: rgba(185, 144, 16, 0.2); color: #D3AA34; }
.days-left-chip.warning { background: rgba(245, 158, 11, 0.2); color: #FBBF24; }
.days-left-chip.urgent { background: rgba(244, 63, 94, 0.2); color: #FB7185; }

.badge-status {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-status.status-active { background: rgba(185, 144, 16, 0.2); color: #D3AA34; }
.badge-status.status-suspended { background: rgba(245, 158, 11, 0.2); color: #FBBF24; }
.badge-status.status-cancelled { background: rgba(244, 63, 94, 0.2); color: #FB7185; }

.table-action-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-action-pill {
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  transition: var(--transition-smooth);
}

.btn-action-pill.btn-inspect { background: var(--gold-gradient); color: #1D1909; }
.btn-action-pill.btn-extend { background: rgba(185, 144, 16, 0.2); border: 1px solid rgba(185, 144, 16, 0.4); color: #D3AA34; }
.btn-action-pill.btn-extend-short { background: rgba(59, 130, 246, 0.2); border: 1px solid rgba(59, 130, 246, 0.4); color: #60A5FA; }
.btn-action-pill.btn-reduce { background: rgba(245, 158, 11, 0.2); border: 1px solid rgba(245, 158, 11, 0.4); color: #FBBF24; }
.btn-action-pill.btn-toggle-status.cancel { background: rgba(244, 63, 94, 0.15); border: 1px solid rgba(244, 63, 94, 0.3); color: #FB7185; }
.btn-action-pill.btn-toggle-status.activate { background: rgba(185, 144, 16, 0.15); border: 1px solid rgba(185, 144, 16, 0.3); color: #D3AA34; }
.btn-action-pill.btn-delete { background: rgba(255, 255, 255, 0.05); color: #B8B094; }
.btn-action-pill.btn-delete:hover { background: #F43F5E; color: white; }

/* ----------------------------------------------------
   6. 💎 ADMİN DİNAMİK PAKET VE FİYAT YÖNETİMİ (TAB 4)
   ---------------------------------------------------- */
.admin-packages-manager-wrap {
  margin-top: 20px;
}

.admin-packages-category-title {
  font-family: var(--font-royal);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gold-light);
  margin: 30px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-pkg-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
}

.admin-pkg-card {
  background: linear-gradient(180deg, #3F3612 0%, #29230C 100%);
  border: 1.5px solid var(--border-gold);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.admin-pkg-card:hover {
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-md), var(--shadow-gold);
}

.admin-pkg-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.admin-pkg-name {
  font-family: var(--font-royal);
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
}

.admin-pkg-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(185, 144, 16, 0.25);
  border-radius: 12px;
  padding: 10px 16px;
  margin: 14px 0;
}

.old-price-val {
  font-size: 1.1rem;
  text-decoration: line-through;
  text-decoration-color: #EF4444;
  text-decoration-thickness: 2px;
  color: #B8B094;
  opacity: 0.85;
}

.current-price-num {
  font-family: var(--font-royal);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--gold-light);
  text-shadow: 0 0 15px rgba(185, 144, 16, 0.4);
  letter-spacing: 0.5px;
}

.current-price-period {
  font-size: 0.85rem;
  font-weight: 600;
  color: #E1DCCB;
}

.admin-pkg-features-preview {
  font-size: 0.84rem;
  color: #E1DCCB;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-pkg-actions-bar {
  display: flex;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

.btn-admin-pkg-edit {
  flex: 1;
  padding: 9px;
  background: var(--gold-gradient);
  color: #1D1909;
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: var(--radius-full);
  text-align: center;
}

.btn-admin-pkg-delete {
  padding: 9px 16px;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #FB7185;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius-full);
}

/* ----------------------------------------------------
   7. SORU STEPPER OKLARI & ÖZEL NUMARA GİRİŞİ (GÖRSEL 4 FIX)
   ---------------------------------------------------- */
/* Tarayıcının varsayılan beyaz çirkin oklarını tamamen gizleme */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

/* Özel Altın Yaldızlı Soru Stepper Bileşeni */
.q-stepper-wrap {
  display: inline-flex;
  align-items: center;
  background: #211C09;
  border: 1.5px solid var(--border-gold);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.btn-q-step {
  width: 24px;
  height: 26px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--gold-light);
  font-weight: 900;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.btn-q-step:hover {
  background: var(--gold-gradient);
  color: #1D1909;
}

.q-input-custom {
  width: 44px;
  height: 26px;
  background: transparent;
  border: none;
  color: var(--gold-light);
  font-weight: 800;
  font-size: 0.88rem;
  text-align: center;
  outline: none;
}

/* ----------------------------------------------------
   7.9 V27: HAFTA/AY SEÇİCİ ÜST BAR
   ---------------------------------------------------- */
.week-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: linear-gradient(180deg, #383010 0%, #27210B 100%);
  border: 1.5px solid rgba(185, 144, 16, 0.35);
  border-radius: 18px;
  padding: 12px 18px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm), 0 0 18px rgba(185, 144, 16, 0.08);
}

.week-nav-btn {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: 12px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.week-nav-btn:hover {
  background: rgba(212, 175, 55, 0.25);
  border-color: var(--gold-primary);
  transform: translateY(-1px);
}

.week-nav-label {
  font-size: 0.92rem;
  font-weight: 800;
  color: white;
  letter-spacing: 0.4px;
  text-align: center;
  flex: 1;
}

/* V27: Haftalık / Aylık / Genel istatistik sekmeleri */
.eval-scope-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.eval-scope-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(185, 144, 16, 0.25);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 999px;
  padding: 7px 18px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.eval-scope-tab:hover {
  color: var(--gold-light);
  border-color: rgba(212, 175, 55, 0.5);
}

.eval-scope-tab.is-active {
  background: var(--gold-gradient);
  color: #1A1406;
  border-color: rgba(118, 93, 6, 0.9);
  box-shadow: 0 3px 12px rgba(185, 144, 16, 0.3);
}

/* ----------------------------------------------------
   8. HAFTALIK DEĞERLENDİRME & GÜNLÜK ÇİZELGE KARTLARI
   ---------------------------------------------------- */
.weekly-summary-card {
  background: linear-gradient(180deg, #383010 0%, #27210B 100%);
  border: 2px solid rgba(185, 144, 16, 0.4);
  border-radius: 28px;
  padding: 32px 28px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-lg), var(--shadow-gold);
}

.weekly-evaluation-grid {
  display: grid;
  grid-template-columns: 320px 1.4fr 1fr;
  gap: 30px;
  align-items: stretch;
}

.eval-main-ring-col {
  background: rgba(31, 26, 9, 0.7);
  border: 1px solid rgba(185, 144, 16, 0.2);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.eval-title {
  font-family: var(--font-royal);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: white;
  margin-bottom: 12px;
}

.eval-ring-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px 0;
}

.progress-ring-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-ring-svg {
  transform: rotate(-90deg);
}

.progress-ring-indicator {
  transition: stroke-dashoffset 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-ring-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.percent-val {
  font-family: var(--font-royal);
  font-size: 1.8rem;
  font-weight: 900;
  color: white;
}

.eval-ring-meta {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.eval-stat-chip {
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
}

.eval-stat-chip.success {
  background: rgba(185, 144, 16, 0.15);
  border: 1px solid rgba(185, 144, 16, 0.3);
  color: #D3AA34;
}

.eval-stat-chip.remaining {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #FB7185;
}

.eval-task-counts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
}

.count-pill {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  font-size: 0.82rem;
  color: #E1DCCB;
}

.count-pill.highlight {
  background: rgba(185, 144, 16, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
}

.eval-table-col {
  background: rgba(31, 26, 9, 0.7);
  border: 1px solid rgba(185, 144, 16, 0.2);
  border-radius: 20px;
  padding: 20px;
  overflow-x: auto;
}

.pdf-table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  padding: 10px 12px;
  background: #29230C;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--gold-light);
  text-align: center;
  border-bottom: 2px solid var(--gold-primary);
}

.pdf-table-header span:first-child { text-align: left; }

.pdf-table-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.pdf-table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  font-size: 0.85rem;
  align-items: center;
  text-align: center;
}

.pdf-table-row:hover { background: rgba(185, 144, 16, 0.08); }
.pdf-table-row .day-name { text-align: left; font-weight: 700; color: white; }

.badge-num { font-weight: 700; }
.badge-num.completed { color: #D3AA34; }
.badge-num.remaining { color: #FB7185; }
.badge-num.total { color: #B8B094; }

.badge-num.rate {
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.8rem;
}

.badge-num.rate.high { background: rgba(185, 144, 16, 0.2); color: #D3AA34; }
.badge-num.rate.mid { background: rgba(245, 158, 11, 0.2); color: #FBBF24; }
.badge-num.rate.low { background: rgba(244, 63, 94, 0.2); color: #FB7185; }

.pdf-table-row.total-row {
  background: rgba(185, 144, 16, 0.15);
  border-top: 2px solid var(--gold-primary);
  margin-top: 6px;
  color: white;
}

.coach-feedback-col {
  background: rgba(31, 26, 9, 0.7);
  border: 1px solid rgba(185, 144, 16, 0.25);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.coach-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.coach-avatar { font-size: 2rem; }
.coach-header h4 { font-size: 0.98rem; font-weight: 700; color: white; }
.coach-role-title { font-size: 0.75rem; color: var(--gold-light); }

.coach-score-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(185, 144, 16, 0.1);
  padding: 8px 14px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 0.85rem;
}

.score-badge { font-weight: 800; color: var(--gold-light); }

.coach-note-content {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 14px;
  font-size: 0.88rem;
  color: #DBD9D1;
  line-height: 1.5;
  flex: 1;
  margin-bottom: 14px;
}

.btn-coach-edit {
  width: 100%;
  padding: 10px;
  background: rgba(185, 144, 16, 0.15);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
}

.btn-coach-edit:hover {
  background: var(--gold-primary);
  color: #1D1909;
}

.days-schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 24px;
}

.day-card {
  background: linear-gradient(180deg, #3C3311 0%, #26200B 100%);
  border: 1.5px solid rgba(185, 144, 16, 0.22);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.day-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), 0 0 25px rgba(185, 144, 16, 0.12);
}

.day-card-header {
  padding: 20px 22px;
  background: rgba(31, 26, 9, 0.8);
  border-bottom: 1px solid rgba(185, 144, 16, 0.15);
}

.day-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.day-name {
  font-family: var(--font-royal) !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.8px !important;
  color: #FFFFFF !important;
  text-shadow: 0 2px 8px rgba(212, 175, 55, 0.25) !important;
}

.task-count-tag {
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-light);
}

.day-ring-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 10px 0 !important;
}

.day-ring-labels {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  font-size: 0.8rem;
  color: #E1DCCB;
}

.day-sub-stat {
  font-size: 0.78rem !important;
  color: #D1CBB8 !important;
}

.day-sub-stat strong {
  color: var(--gold-light) !important;
  font-weight: 700 !important;
}

/* Kalan görev sayacı kırmızı kalır (görsel anlam) — özgün haliyle */
.day-sub-stat.rem strong {
  color: #FB7185 !important;
}

/* V31: Gün kartı halkası içindeki yüzde yazısı — ana çemberle birebir oran */
.day-ring-row .ring-percent-text {
  font-family: var(--font-royal) !important;
  font-weight: 900 !important;
  font-size: 0.95rem !important;
  color: #FFFFFF !important;
}

.day-tasks-list {
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 180px;
  /* V30: Sabit yükseklik (max-height:280px) ve kaydırma çubuğu KALDIRILDI —
     kartlar serbest akar, her yeni görev alta eklenir.
     Görevler arası boşluk .task-item margin-bottom (8px) ile sağlanır. */
}

/* V31: Gün başlığındaki tarih etiketi — PAZARTESİ (17 AĞU) — ana başlıkla birebir uyum */
.day-name span.day-date-tag {
  font-family: var(--font-main) !important;
  font-size: 0.76rem !important;
  color: var(--gold-light) !important;
  font-weight: 600 !important;
  letter-spacing: 0px !important;
}

.no-tasks {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
  text-align: center;
  padding: 30px 10px;
}

.task-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition-smooth);
}

.task-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(185, 144, 16, 0.3);
}

.task-item.is-completed {
  background: rgba(185, 144, 16, 0.07);
  border-color: rgba(185, 144, 16, 0.3);
}

.task-item.is-completed .task-topic-name {
  text-decoration: line-through;
  color: #B8B094;
}

.custom-checkbox {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  cursor: pointer;
}

.custom-checkbox input {
  opacity: 0;
  width: 0;
  height: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 22px;
  width: 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid var(--border-gold);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.custom-checkbox:hover .checkmark { border-color: var(--gold-primary); }

.custom-checkbox input:checked ~ .checkmark {
  background: #B99010;
  border-color: #B99010;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark:after { display: block; }

.task-info { flex: 1; }
.task-subject-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-light);
  text-transform: uppercase;
}

.task-topic-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  line-height: 1.3;
}

.task-note-text {
  font-size: 0.75rem;
  color: #B8B094;
  margin-top: 2px;
}

.task-questions-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.75rem;
  text-align: right;
}

.q-target-row { color: #B8B094; }
.q-target-row strong { color: white; }

.q-solved-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.task-actions {
  display: flex;
  align-items: center;
}

.btn-task-del {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #8B8364;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.btn-task-del:hover {
  background: rgba(244, 63, 94, 0.2);
  color: #FB7185;
}

.day-card-footer {
  padding: 12px 20px;
  background: rgba(31, 26, 9, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-add-task-day {
  width: 100%;
  padding: 8px;
  background: rgba(185, 144, 16, 0.08);
  border: 1px dashed var(--border-gold);
  border-radius: 10px;
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.btn-add-task-day:hover {
  background: rgba(185, 144, 16, 0.18);
  border-style: solid;
}

/* Modallar */
.custom-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 14, 5, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.custom-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.custom-modal-card {
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #342C0F;
  border: 1.5px solid var(--gold-primary);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  position: relative;
}

.modal-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-header-row h3 {
  font-family: var(--font-royal);
  font-size: 1.35rem;
  color: white;
}

.modal-form-group { margin-bottom: 16px; }
.modal-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.modal-input, .modal-select, .modal-textarea {
  width: 100%;
  background: #443A14;
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  padding: 10px 14px;
  color: white;
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
}

.modal-input:focus, .modal-select:focus, .modal-textarea:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-glow);
}

.modal-footer-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.btn-modal-save {
  flex: 1;
  padding: 12px;
  background: var(--gold-gradient);
  color: #1D1909;
  font-weight: 800;
  border-radius: var(--radius-full);
}

.btn-modal-cancel {
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border-radius: var(--radius-full);
}

/* KPI Kartları */
.admin-stats-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.kpi-card {
  background: linear-gradient(135deg, #372F10 0%, #4D4116 100%);
  border: 1.5px solid rgba(185, 144, 16, 0.25);
  border-radius: 22px;
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.kpi-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
}

.kpi-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.kpi-val {
  font-family: var(--font-royal);
  font-size: 2.4rem;
  font-weight: 900;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.kpi-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #E1DCCB;
}

@media (max-width: 1024px) {
  .weekly-evaluation-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   TOAST BİLDİRİM KAPSAYICISI (GÖRSEL 1 VE 2 BİREBİR)
   ========================================================================== */
.asil-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  padding: 13px 32px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  z-index: 99999;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  background: #241E0A;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.asil-toast.is-show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.asil-toast.toast-info {
  border: 1.5px solid var(--gold-primary);
  color: #FCFBF8;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(185, 144, 16, 0.3);
}

.asil-toast.toast-success {
  border: 1.5px solid #B99010;
  color: #D3AA34;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(185, 144, 16, 0.3);
}


/* ==========================================================================
   KONU TAKİP ÇİZELGESİ (öğrenci: bitirilen konular — renkli kutu, çizik YOK)
   ========================================================================== */
.topic-track-section {
  background: linear-gradient(180deg, #383010 0%, #27210B 100%);
  border: 2px solid rgba(185, 144, 16, 0.4);
  border-radius: 28px;
  padding: 30px 26px;
  margin-top: 42px;
  box-shadow: var(--shadow-lg), var(--shadow-gold);
}

.topic-track-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(185, 144, 16, 0.28);
}

.topic-track-title {
  font-family: var(--font-royal);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  background: var(--gold-gradient-x);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerText 6s linear infinite;
}

.topic-track-sub {
  color: var(--text-muted);
  font-size: 0.86rem;
  margin-top: 6px;
  max-width: 520px;
  line-height: 1.6;
}

.topic-track-sub strong { color: var(--gold-light); }

.topic-track-total {
  min-width: 230px;
  flex-shrink: 0;
}

.topic-total-count {
  color: var(--gold-pale);
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.topic-total-count strong {
  color: var(--gold-bright);
  font-size: 1.3rem;
}

.topic-progress-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(10, 8, 3, 0.85);
  border: 1px solid rgba(185, 144, 16, 0.35);
  overflow: hidden;
}

.topic-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--gold-gradient);
  transition: width 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.topic-total-pct {
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 6px;
  letter-spacing: 0.4px;
}

/* --- Ana başlıklar (TÜRKÇE / MATEMATİK / SOSYAL BİLİMLER / FEN BİLİMLERİ) --- */
.topic-group { margin-bottom: 30px; }

.topic-group-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.topic-group-title span {
  font-family: var(--font-royal);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 2.2px;
  color: #FBF7EF;
  white-space: nowrap;
}

.topic-group-title::after {
  content: '';
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-primary), transparent);
}

/* --- Ders kartları (TYT X yanına AYT X gelecek şekilde satır grid'i) --- */
.topic-row-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.topic-course-card {
  background: rgba(20, 16, 6, 0.65);
  border: 1.5px solid rgba(185, 144, 16, 0.35);
  border-radius: 18px;
  padding: 16px 16px 12px;
}

.topic-course-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.topic-course-label {
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 1px;
  color: var(--gold-bright);
}

.topic-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.topic-count-done { color: var(--gold-bright); }

.topic-mini-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(10, 8, 3, 0.8);
  overflow: hidden;
  margin-bottom: 12px;
}

.topic-mini-fill {
  height: 100%;
  background: var(--gold-gradient);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.topic-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
}

/* --- Konu satırı: tik atılınca RENKLİ ALTIN KUTU (üstü çizilmez) --- */
.topic-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
  position: relative;
}

.topic-item:hover {
  background: rgba(185, 144, 16, 0.10);
  border-color: rgba(185, 144, 16, 0.3);
}

.topic-item.is-done {
  background: var(--gold-gradient);
  border-color: rgba(118, 93, 6, 0.9);
  box-shadow: 0 4px 14px rgba(185, 144, 16, 0.25);
}

.topic-check-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.topic-check {
  width: 20px;
  height: 20px;
  border: 2px solid var(--gold-primary);
  border-radius: 6px;
  flex-shrink: 0;
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.25s ease;
}

.topic-item.is-done .topic-check {
  background: #1A1406;
  border-color: #1A1406;
}

.topic-item.is-done .topic-check::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 900;
}

.topic-name {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.45;
  /* Bilerek çizik YOK: tik atılan konu renkli kutuya girer */
}

.topic-item.is-done .topic-name {
  color: #140F03;
  font-weight: 700;
}

/* V27: Konu satırındaki görev/soru sayaç çipi — [ 2 Görev | 180 Soru ] */
.topic-stat-chip {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 999px;
  white-space: nowrap;
}

.topic-stat-chip.is-done {
  color: #1A1406;
  background: rgba(255, 220, 120, 0.95);
  border-color: rgba(118, 93, 6, 0.9);
  box-shadow: 0 0 10px rgba(255, 215, 100, 0.55);
  animation: topicChipGlow 2s ease-in-out infinite;
}

@keyframes topicChipGlow {
  0%, 100% { box-shadow: 0 0 6px rgba(255, 215, 100, 0.4); }
  50% { box-shadow: 0 0 14px rgba(255, 215, 100, 0.85); }
}

/* ==========================================================================
   GÖREV SAHİPLİK ROZETİ (öğrencinin kendi eklediği görevler)
   ========================================================================== */
.task-owner-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.64rem;
  font-weight: 800;
  padding: 2.5px 9px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: var(--gold-light);
  letter-spacing: 0.4px;
  white-space: nowrap;
  vertical-align: middle;
  margin-left: 6px;
}

.task-item.is-student-owned {
  border-left: 3px solid rgba(245, 158, 11, 0.65);
}

.btn-add-task-day.student-add {
  background: rgba(245, 158, 11, 0.10);
  border-color: rgba(245, 158, 11, 0.45);
}

/* ==========================================================================
   ÖĞRENCİ HAREKETLERİ PANELİ (admin: ekleme/silme kayıtları)
   ========================================================================== */
.student-activity-panel {
  margin-top: 26px;
  background: linear-gradient(180deg, #332A0E 0%, #241E09 100%);
  border: 1.5px solid rgba(185, 144, 16, 0.38);
  border-radius: 20px;
  padding: 22px 24px;
}

.activity-panel-title {
  font-family: var(--font-royal);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--gold-bright);
  margin-bottom: 14px;
}

.activity-panel-hint {
  font-family: var(--font-main);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.activity-list {
  display: flex;
  flex-direction: column;
}

.activity-entry {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 9px 2px;
  border-bottom: 1px dashed rgba(185, 144, 16, 0.18);
}

.activity-entry:last-child { border-bottom: none; }

.activity-date {
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  min-width: 118px;
}

.activity-text {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

.activity-empty {
  color: var(--text-muted);
  font-size: 0.86rem;
  padding: 10px 0 4px;
  font-style: italic;
}

.activity-more {
  color: var(--text-muted);
  font-size: 0.76rem;
  margin-top: 8px;
}

.activity-panel-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(185, 144, 16, 0.2);
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

/* Uyarı toast'u (örn. öğrenci koç görevini silmeye çalışınca) */
.asil-toast.toast-warning {
  border: 1.5px solid #F59E0B;
  color: #FBD38D;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(245, 158, 11, 0.35);
}
/* Mobil uyum */
@media (max-width: 768px) {
  .topic-track-section { padding: 20px 14px; }
  .topic-track-head { flex-direction: column; align-items: stretch; }
  .topic-track-total { min-width: 0; }
  .topic-row-cards { grid-template-columns: 1fr; }
  .topic-list { max-height: 300px; }
  .activity-entry { flex-direction: column; gap: 2px; }
  .activity-date { min-width: 0; }
}

/* ==========================================================================
   ADMİN: KONU TAKİP YÖNETİMİ (öğrenci konu listesine ekleme/çıkarma)
   ========================================================================== */
.topic-admin-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.topic-admin-form .royal-custom-select {
  flex: 1 1 220px;
  min-width: 200px;
}

.topic-admin-input {
  flex: 2 1 260px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(185, 144, 16, 0.4);
  background: rgba(10, 8, 3, 0.6);
  color: var(--text-secondary);
  font-size: 0.88rem;
  outline: none;
}

.topic-admin-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(185, 144, 16, 0.15);
}

.topic-admin-add-btn {
  flex: 0 0 auto;
  padding: 10px 18px !important;
  font-size: 0.84rem !important;
}

.topic-admin-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 6px;
  max-height: 300px;
  overflow-y: auto;
  padding: 4px 2px;
}

.topic-admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px 6px 12px;
  border-radius: 9px;
  border: 1px solid rgba(185, 144, 16, 0.22);
  background: rgba(20, 16, 6, 0.55);
}

.topic-admin-name {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.btn-topic-admin-del {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: #FB7185;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.btn-topic-admin-del:hover {
  background: #F43F5E;
  color: white;
}

/* ==========================================================================
   👨‍👩‍👦 VELİ SİSTEMİ (Admin Paneli + Veli Portalı)
   Mevcut renk paleti değişkenleri aynen kullanılır; yeni renk tanımlanmaz.
   ========================================================================== */

/* --- Yeni Öğrenci Modalı: Satır Satır Veli Tanımlama Bloğu --- */
.parent-inline-block {
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  border: 1px dashed var(--border-gold);
  background: rgba(185, 144, 16, 0.05);
}

.parent-inline-head {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 12px;
}

.parent-inline-head > span {
  font-family: var(--font-royal);
  font-size: 0.98rem;
  color: var(--gold-light);
  font-weight: 700;
}

.parent-inline-head > small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.parent-inline-row {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(185, 144, 16, 0.22);
  background: rgba(20, 16, 6, 0.45);
  margin-bottom: 10px;
}

.pir-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.pir-title > span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 0.4px;
}

.pir-remove {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #FB7185;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  cursor: pointer;
}

.pir-remove:hover {
  background: #F43F5E;
  color: white;
}

.pir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 9px;
}

.btn-inline-add-parent {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-light);
  background: rgba(185, 144, 16, 0.10);
  border: 1px dashed var(--border-gold);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-inline-add-parent:hover:not(:disabled) {
  background: rgba(185, 144, 16, 0.20);
  color: white;
}

.btn-inline-add-parent:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- Veli Modalı Kontenjan İpucu --- */
.parent-quota-hint {
  display: block;
  margin-top: 5px;
  font-size: 0.74rem;
  color: var(--gold-light);
}

/* --- Tablo Etiketleri --- */
.parent-count-tag,
.parent-readonly-tag {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--gold-light);
  background: rgba(185, 144, 16, 0.12);
  border: 1px solid rgba(185, 144, 16, 0.32);
}

.parent-readonly-tag {
  color: var(--gold-bright);
  background: rgba(231, 198, 110, 0.10);
  border-color: rgba(231, 198, 110, 0.30);
}

.parents-count-badge {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- Öğrenci Bazlı Veli Kontenjan Panosu --- */
.parent-quota-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  padding: 16px;
}

.parent-quota-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border-gold);
  background: var(--glass-bg);
}

.parent-quota-card.is-full {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(20, 16, 6, 0.5);
}

.pq-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pq-head > strong {
  color: white;
  font-size: 0.92rem;
}

.pq-chip {
  flex-shrink: 0;
  padding: 2px 9px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--gold-light);
  background: rgba(185, 144, 16, 0.14);
  border: 1px solid rgba(185, 144, 16, 0.35);
}

.pq-chip.full {
  color: #CBD5E1;
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.32);
}

.pq-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 42px;
}

.pq-empty {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

.pq-parent {
  font-size: 0.78rem;
  color: #CBD5E1;
}

.pq-add-btn {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-light);
  background: rgba(185, 144, 16, 0.10);
  border: 1px solid var(--border-gold);
  cursor: pointer;
  transition: all 0.25s ease;
}

.pq-add-btn:hover:not(:disabled) {
  background: rgba(185, 144, 16, 0.22);
  color: white;
}

.pq-add-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* --- Veli Portalı: Salt Okunur Şerit & Boş Durum --- */
.parent-readonly-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 18px;
  margin-bottom: 20px;
  border-radius: 14px;
  border: 1px solid var(--border-gold);
  background: rgba(185, 144, 16, 0.08);
}

.prb-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.prb-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 240px;
  min-width: 0;
}

.prb-text > strong {
  font-family: var(--font-royal);
  font-size: 0.98rem;
  color: var(--gold-light);
}

.prb-text > span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.prb-badge {
  flex-shrink: 0;
  padding: 6px 13px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: white;
  background: rgba(185, 144, 16, 0.16);
  border: 1px solid rgba(185, 144, 16, 0.4);
}

.parent-empty-state {
  text-align: center;
  padding: 60px 24px;
  border-radius: 16px;
  border: 1px solid var(--border-gold);
  background: var(--glass-bg);
}

.parent-empty-state .pes-icon {
  font-size: 2.6rem;
  display: block;
  margin-bottom: 12px;
}

.parent-empty-state h2 {
  font-family: var(--font-royal);
  color: var(--gold-light);
  margin-bottom: 8px;
}

.parent-empty-state p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 480px;
  margin: 0 auto;
}

/* --- Salt Okunur Çizelge Görünümü --- */
.day-card.is-readonly .q-input-custom,
.topic-track-section.is-readonly .topic-check-input {
  cursor: not-allowed;
}

.day-card.is-readonly input[type="checkbox"] {
  cursor: not-allowed;
}

.topic-track-section.is-readonly .topic-item {
  cursor: default;
}

/* ==========================================================================
   🎨 ANA SAYFA (KARŞILAMA EKRANI) YÖNETİM BÖLMELERİ — SiteAdminEngine
   Yeni renk tanımı yapılmaz; mevcut altın paleti değişkenleri kullanılır.
   ========================================================================== */

/* --- Üst Bilgi & Genel Aksiyonlar --- */
.site-admin-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 22px;
  margin-bottom: 22px;
  border-radius: 16px;
  border: 1px solid var(--border-gold);
  background: var(--glass-bg);
}

.sai-text {
  flex: 1 1 320px;
  min-width: 0;
}

.sai-text h3 {
  font-family: var(--font-royal);
  font-size: 1.25rem;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.sai-text p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 720px;
}

.sai-text p strong {
  color: var(--gold-bright);
}

.sai-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.sai-actions .btn-action-pill {
  text-decoration: none;
}

/* --- Akordiyon Bölme Kartları --- */
.site-sections-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-section-card {
  border-radius: 14px;
  border: 1px solid rgba(185, 144, 16, 0.24);
  background: rgba(20, 16, 6, 0.42);
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.site-section-card.is-open {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}

.site-section-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.25s ease;
}

.site-section-head:hover {
  background: rgba(185, 144, 16, 0.07);
}

.ssh-index {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--gold-light);
  background: rgba(185, 144, 16, 0.14);
  border: 1px solid rgba(185, 144, 16, 0.34);
}

.ssh-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.ssh-title {
  flex: 1;
  font-family: var(--font-royal);
  font-size: 1rem;
  font-weight: 700;
  color: white;
  min-width: 0;
}

.ssh-chevron {
  flex-shrink: 0;
  color: var(--gold-light);
  font-size: 0.9rem;
  transition: transform 0.25s ease;
}

.site-section-card.is-open .ssh-chevron {
  transform: rotate(180deg);
}

.site-section-body {
  padding: 6px 18px 18px;
  border-top: 1px solid rgba(185, 144, 16, 0.16);
}

/* --- Alan (Field) Izgarası --- */
.sf-block {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(185, 144, 16, 0.18);
  background: rgba(185, 144, 16, 0.04);
}

.sf-block-title {
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-family: var(--font-royal);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.sf-block-title small {
  font-family: inherit;
  font-weight: 400;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.sf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.sf-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.sf-field > label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.2px;
}

.sf-field.sf-full {
  grid-column: 1 / -1;
}

.sf-hint {
  font-size: 0.71rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Anahtar (switch benzeri onay kutusu) */
.sf-field.sf-check {
  justify-content: center;
}

.sf-switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(185, 144, 16, 0.26);
  background: rgba(20, 16, 6, 0.5);
}

.sf-switch input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--gold-primary);
  cursor: pointer;
}

.sf-switch > span {
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
}

/* --- Resim Alanı --- */
.sf-image-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

.sf-image-prev {
  width: 132px;
  height: 88px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border-gold);
  background: rgba(20, 16, 6, 0.6);
  flex-shrink: 0;
}

.sf-image-controls {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.sf-image-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sf-upload-btn,
.sf-clear-btn {
  padding: 7px 13px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  color: var(--gold-light);
  background: rgba(185, 144, 16, 0.10);
  border: 1px solid var(--border-gold);
}

.sf-upload-btn:hover,
.sf-clear-btn:hover {
  background: rgba(185, 144, 16, 0.22);
  color: white;
}

.sf-clear-btn {
  color: #FB7185;
  background: rgba(244, 63, 94, 0.10);
  border-color: rgba(244, 63, 94, 0.32);
}

.sf-clear-btn:hover {
  background: #F43F5E;
  color: white;
}

/* --- Tekrarlanan Satırlar (slayt, sayaç, menü, S.S.S. vb.) --- */
.sf-rows {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 12px;
}

.sf-rows-inner {
  margin-top: 8px;
  gap: 9px;
}

.sf-row {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(185, 144, 16, 0.2);
  background: rgba(20, 16, 6, 0.5);
}

.sf-row-lg {
  border-color: var(--border-gold);
  background: rgba(20, 16, 6, 0.62);
}

.sf-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(185, 144, 16, 0.22);
}

.sf-row-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--gold-bright);
  letter-spacing: 0.3px;
}

.sf-row-tools {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.sf-row-tools button {
  width: 25px;
  height: 25px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  color: var(--gold-light);
  background: rgba(185, 144, 16, 0.12);
  border: 1px solid rgba(185, 144, 16, 0.32);
  transition: all 0.2s ease;
}

.sf-row-tools button:hover {
  background: rgba(185, 144, 16, 0.28);
  color: white;
}

.sf-row-tools button.danger {
  color: #FB7185;
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.35);
}

.sf-row-tools button.danger:hover {
  background: #F43F5E;
  color: white;
}

.sf-add-btn {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-light);
  background: rgba(185, 144, 16, 0.08);
  border: 1px dashed var(--border-gold);
  cursor: pointer;
  transition: all 0.25s ease;
}

.sf-add-btn:hover {
  background: rgba(185, 144, 16, 0.20);
  color: white;
}

/* --- Alt Blok (iç içe gruplar: slayt butonları, footer kolon linkleri) --- */
.sf-subblock {
  margin-top: 11px;
  padding: 11px;
  border-radius: 10px;
  border: 1px solid rgba(185, 144, 16, 0.16);
  background: rgba(185, 144, 16, 0.045);
}

.sf-subblock-title {
  margin-bottom: 9px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--gold-light);
  letter-spacing: 0.3px;
}

.sf-two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 11px;
}

/* --- Bölme Alt Çubuğu (Kaydet / Sıfırla) --- */
.sf-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(185, 144, 16, 0.2);
}

@media (max-width: 640px) {
  .site-admin-intro { flex-direction: column; align-items: flex-start; }
  .sf-grid { grid-template-columns: 1fr; }
  .sf-image-prev { width: 100%; height: 150px; }
  .sf-footer { justify-content: stretch; }
  .sf-footer > button { flex: 1 1 auto; }
  .parent-quota-grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   PORTAL (ADMIN & STUDENT & PARENT) MOBIL FULL RESPONSIVE DÜZENİ (V3.3)
   ========================================================================== */
@media (max-width: 992px) {
  .portal-navbar { padding: 10px 14px; }
  .portal-nav-container {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .portal-nav-right {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
  }
  .portal-nav-right .btn-nav-outline,
  .portal-nav-right .btn-nav-logout,
  .portal-nav-right .nav-user-chip {
    padding: 7px 12px;
    font-size: 0.78rem;
    white-space: nowrap;
  }
  .admin-suite-header-card {
    padding: 20px 16px;
    border-radius: 20px;
  }
  .admin-header-title-box {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .admin-nav-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    width: 100%;
  }
  .admin-nav-tab-btn {
    padding: 10px;
    font-size: 0.8rem;
    justify-content: center;
    text-align: center;
    border-radius: 12px;
  }
}

@media (max-width: 640px) {
  .portal-main-wrap { padding: 14px 8px 60px; }
  .portal-navbar { padding: 8px 10px; }
  .portal-nav-container .brand-logo { gap: 8px; }
  .portal-nav-container .logo-crown-icon,
  .portal-nav-container .logo-crown-icon img { height: 32px; }
  .portal-nav-container .brand-name { font-size: 0.88rem; }
  .portal-nav-container .brand-sub { font-size: 0.56rem; }
  
  .portal-nav-right {
    gap: 5px;
  }
  .portal-nav-right .btn-nav-outline,
  .portal-nav-right .btn-nav-logout,
  .portal-nav-right .nav-user-chip {
    padding: 6px 9px;
    font-size: 0.72rem;
    border-radius: 10px;
    flex: 1 1 calc(50% - 10px);
    text-align: center;
    justify-content: center;
  }
  
  .admin-suite-header-card { padding: 14px 10px; }
  .admin-suite-title { font-size: 1.25rem; }
  .admin-suite-sub { font-size: 0.75rem; }
  .admin-nav-tabs {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .admin-nav-tab-btn {
    padding: 8px 6px;
    font-size: 0.74rem;
  }
  
  /* Kartlar & Tablolar */
  .admin-card {
    padding: 14px 10px;
    border-radius: 14px;
  }
  .admin-card-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .admin-card-header .btn-primary-cta,
  .admin-card-header .btn-nav-outline {
    width: 100%;
    justify-content: center;
  }
  .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .admin-table th, .admin-table td {
    padding: 7px 8px;
    font-size: 0.74rem;
    white-space: nowrap;
  }
  
  /* Modallar */
  .custom-modal-overlay { padding: 10px; }
  .custom-modal-card {
    padding: 18px 14px;
    border-radius: 18px;
    max-width: 100%;
    max-height: 92vh;
    overflow-y: auto;
  }
  .custom-modal-card .modal-title { font-size: 1.2rem; }
  .modal-grid-2 { grid-template-columns: 1fr !important; gap: 8px !important; }
  .modal-input, .modal-select, .modal-textarea {
    padding: 10px 12px;
    font-size: 0.88rem;
  }
  
  /* Öğrenci Çizelge Portalı */
  .student-header-card { padding: 14px 10px; }
  .student-name-title { font-size: 1.3rem; }
  .student-quick-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-mini-box { padding: 10px 8px; }
  .stat-mini-num { font-size: 1.2rem; }
  .tracking-days-grid { grid-template-columns: 1fr; gap: 12px; }
  .day-card { padding: 12px 10px; }
}


/* Admin tablosu mobilde taşmayı önleme ve parmakla kaydırma */
.admin-table-wrapper,
.table-responsive,
.admin-card-table-wrap {
  width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

.admin-table {
  min-width: 600px;
}

/* ==========================================================================
   V28 — BOŞ NAVBAR ROZETİNİ TAMAMEN GİZLE (Giriş Yap ile Randevu Al arası)
   Giriş yapmamış ziyaretçide #nav-auth-user-badge boş kaldığında oval halka
   görünmesin diye: boş / display:none / görünmez durumların tamamı yok edilir.
   ========================================================================== */
#nav-auth-user-badge:empty,
.nav-user-chip:empty,
#nav-auth-user-badge[style*="display: none"],
#nav-auth-user-badge[style*="display:none"] {
  display: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* ==========================================================================
   V28 — İSTATİSTİK TABLOSU: 5 SÜTUNLU TEMİZ GRID (mobilde yapışma yok)
   GÜNLER | HEDEF | ÇÖZÜLEN | KALAN | ORAN başlığı ve altındaki sayılar
   artık tek bir grid içinde hizalı, ferah ve okunabilir.
   ========================================================================== */
.pdf-table-header,
.pdf-table-row {
  display: grid !important;
  grid-template-columns: 2.2fr 1fr 1fr 1fr 1.3fr !important;
  align-items: center !important;
  text-align: center !important;
  padding: 10px 8px !important;
  gap: 4px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.pdf-table-header {
  background: rgba(212, 175, 55, 0.15) !important;
  border-bottom: 1.5px solid rgba(212, 175, 55, 0.35) !important;
  border-radius: 12px 12px 0 0 !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  color: var(--gold-light) !important;
  letter-spacing: 0.5px !important;
}
.pdf-table-header span,
.pdf-table-row span {
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.pdf-table-header span:first-child,
.pdf-table-row .day-name {
  text-align: left !important;
  padding-left: 6px !important;
  font-weight: 700 !important;
}
.pdf-table-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  font-size: 0.82rem !important;
  background: rgba(255, 255, 255, 0.02) !important;
}
.pdf-table-row.total-row {
  background: rgba(212, 175, 55, 0.1) !important;
  border-top: 1.5px solid rgba(212, 175, 55, 0.4) !important;
  font-weight: 800 !important;
  border-radius: 0 0 12px 12px !important;
}
.badge-num.rate {
  padding: 2px 6px !important;
  border-radius: 8px !important;
  font-size: 0.75rem !important;
}

/* ==========================================================================
   V29: LAPTOP (1280px - 1440px) YAZI SIĞMA & GÖREV KARTI İÇ DÜZENİ
   ========================================================================== */
@media (min-width: 992px) and (max-width: 1440px) {
  .weekly-evaluation-grid {
    grid-template-columns: 280px 1.3fr 1fr !important;
    gap: 16px !important;
  }
  .pdf-table-header, .pdf-table-row {
    padding: 8px 6px !important;
    font-size: 0.78rem !important;
  }
  .pdf-table-row .day-name {
    font-size: 0.76rem !important;
    white-space: normal !important; /* Üç nokta kesmesini engelle */
    line-height: 1.2 !important;
  }
}

/* Görev Kartı İçi Üst Üste Binmeyi Önleme (V29) — ders adı, konu, hedef ve
   [ - 0 + ] soru butonları artık kart içinde ayrı katmanlarda, ferah durur. */
.task-item {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding: 12px 14px !important;
  position: relative !important;
}

.task-item-header {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  width: 100% !important;
}

.task-info {
  flex: 1 !important;
  min-width: 0 !important;
}

.task-subject-tag {
  display: inline-block !important;
  font-size: 0.72rem !important;
  margin-bottom: 3px !important;
}

.task-topic-name {
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  word-break: break-word !important;
}

.task-item-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  padding-top: 8px !important;
  margin-top: 4px !important;
}

.task-questions-box {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

/* Öğrenci Hareketleri: panel başlığı + "Tümünü Temizle" + satır sil butonu (V29) */
.activity-panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.activity-panel-title-row .activity-panel-title {
  margin-bottom: 0;
}

.btn-clear-activity {
  padding: 7px 14px;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #FB7185;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-clear-activity:hover {
  background: #F43F5E;
  color: white;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.35);
}

.activity-entry {
  align-items: center !important;
}

.btn-activity-del {
  width: 24px;
  height: 24px;
  margin-left: auto;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #FB7185;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-activity-del:hover {
  background: #F43F5E;
  color: white;
}

/* Öğrenci Düzenle butonu (V29) — mavi vurgu */
.btn-action-pill.btn-edit-student {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60A5FA;
}

.btn-action-pill.btn-edit-student:hover {
  background: rgba(59, 130, 246, 0.35);
}

/* ==========================================================================
   V30: KOMPAKT GÖREV KARTI & AYLIK TABLO SIĞDIRMA
   ========================================================================== */
/* Kompakt görev kartı — Hedef ve Çözülen YAN YANA tek satırda (%50 yer tasarrufu) */
.task-item {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  padding: 10px 12px !important;
  background: rgba(26, 21, 15, 0.7) !important;
  border: 1px solid rgba(212, 175, 55, 0.2) !important;
  border-radius: 12px !important;
  margin-bottom: 8px !important;
}

.task-item-header {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

/* Hedef ve Çözülen Yan Yana Kompakt Satır */
.task-stats-compact-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  padding-top: 8px !important;
  margin-top: 6px !important;
}

.task-target-label {
  font-size: 0.80rem !important;
  color: #B8B29F !important;
  white-space: nowrap !important;
}

.task-target-label strong {
  color: var(--gold-light) !important;
  font-weight: 800 !important;
  margin-left: 2px !important;
}

.task-solved-stepper-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.task-solved-stepper-wrap span {
  font-size: 0.75rem !important;
  color: var(--gold-light) !important;
}

/* Aylık tabloda hafta yazısı (AĞUSTOS 2026 — 3. HA...) üç nokta kesmesi yok */
.pdf-table-row .day-name,
.pdf-table-header span:first-child {
  font-size: 0.76rem !important;
  letter-spacing: 0px !important;
  white-space: normal !important;
  line-height: 1.2 !important;
}

.weekly-evaluation-grid .pdf-table-header {
  font-size: 0.70rem !important;
}

/* V30: Sunucuya yazma hatası toast'u */
.asil-toast.toast-error {
  border: 1.5px solid #EF4444;
  color: #FECACA;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(239, 68, 68, 0.35);
}
