/* ============ Marmarotay Panel — Dashboard (Profiliniz) ============ */
.profile-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 90px 32px 140px;
}

.profile-header h1 {
  font-size: clamp(28px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.profile-email {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  margin: 0 0 32px;
}

/* Student promo banner */
.promo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #131313;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 20px 26px;
  margin-bottom: 46px;
  text-decoration: none;
  color: #fff;
  font-size: 15px;
  transition: border-color .15s ease, background .15s ease;
}
.promo-banner:hover { border-color: rgba(255,255,255,0.22); background: #171717; }
.promo-banner .arrow { transition: transform .18s ease; flex-shrink: 0; }
.promo-banner:hover .arrow { transform: translateX(3px); }

/* Tabs */
.profile-tabs {
  display: flex;
  gap: 34px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 40px;
  overflow-x: auto;
}
.profile-tab {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  padding: 0 0 16px;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: color .15s ease;
}
.profile-tab:hover:not(.active) { color: rgba(255,255,255,0.75); }
.profile-tab.active { color: #fff; font-weight: 800; }
.profile-tab.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #fff;
}

/* Panels */
.profile-panel { display: none; }
.profile-panel.active { display: block; animation: panelFadeIn .3s ease both; }
@keyframes panelFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Plan tab */
.plan-current { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.plan-current img { height: 20px; width: auto; }
.plan-current .plan-name { font-weight: 800; font-size: 16px; }
.plan-current .plan-tier { color: rgba(255,255,255,0.4); font-size: 16px; }
.plan-note { font-size: 14px; color: rgba(255,255,255,0.45); margin: 0 0 30px; }

/* Placeholder for not-yet-built tabs */
.panel-placeholder {
  padding: 40px 0;
  color: rgba(255,255,255,0.35);
  font-size: 14.5px;
}

/* Stats tab */
.stats-grid {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.stat-item strong {
  display: block;
  font-size: 38px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.stat-item span {
  font-size: 14.5px;
  color: rgba(255,255,255,0.5);
}

.chart-empty {
  margin-top: 70px;
  border: 1px dashed rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 50px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.chart-empty svg { width: 40px; height: 40px; color: rgba(255,255,255,0.3); }
.chart-empty p { margin: 0; font-size: 14.5px; color: rgba(255,255,255,0.45); max-width: 380px; line-height: 1.6; }

/* Ayarlar tab */
.settings-toggle-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.settings-toggle-row:first-child { padding-top: 0; }
.settings-toggle-text h3 { font-size: 15.5px; font-weight: 700; margin: 0 0 6px; }
.settings-toggle-text p { font-size: 13.5px; color: rgba(255,255,255,0.5); line-height: 1.55; margin: 0; max-width: 600px; }

.settings-toggle { position: relative; width: 44px; height: 26px; flex-shrink: 0; margin-top: 2px; }
.settings-toggle input { opacity: 0; width: 0; height: 0; }
.settings-toggle-track {
  position: absolute; inset: 0; border-radius: 13px; background: rgba(255,255,255,0.15); cursor: pointer; transition: background .2s ease;
}
.settings-toggle-track::after {
  content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1);
}
.settings-toggle input:checked + .settings-toggle-track { background: var(--accent-red, #e6362c); }
.settings-toggle input:checked + .settings-toggle-track::after { transform: translateX(18px); }
.settings-toggle input:disabled + .settings-toggle-track { opacity: 0.35; cursor: not-allowed; }

.settings-divider { border: none; border-top: 1px solid rgba(255,255,255,0.08); margin: 30px 0; }

.settings-link-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
  text-decoration: none; color: #fff; transition: opacity .15s ease;
}
.settings-link-row:first-child { padding-top: 0; }
.settings-link-row:hover { opacity: 0.75; }
.settings-link-row h3 { font-size: 15.5px; font-weight: 700; margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.settings-link-row p { font-size: 13.5px; color: rgba(255,255,255,0.5); line-height: 1.5; margin: 0; }
.settings-link-row .arrow-icon { flex-shrink: 0; margin-top: 3px; transition: transform .15s ease; }
.settings-link-row:hover .arrow-icon { transform: translateX(3px); }
.settings-link-row.danger { color: var(--accent-red, #e6362c); }
.settings-link-row.danger p { color: rgba(230,54,44,0.6); }
.settings-soon-badge {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); border: 1px solid rgba(255,255,255,0.15); padding: 2px 8px; border-radius: 999px;
}
.settings-link-row.disabled { cursor: not-allowed; opacity: 0.55; }
.settings-link-row.disabled:hover { opacity: 0.55; }
.settings-link-row.disabled:hover .arrow-icon { transform: none; }

@media (max-width: 640px) {
  .profile-main { padding: 60px 20px 100px; }
  .profile-tabs { gap: 24px; }
  .promo-banner { flex-direction: column; align-items: flex-start; }
  .stats-grid { gap: 32px; }
}

/* ---------- Notification bell ---------- */
.notif-bell-btn {
  position: relative; background: none; border: none; cursor: pointer;
  color: #fff; padding: 8px; display: flex; align-items: center; justify-content: center;
}
.notif-bell-badge {
  position: absolute; top: 2px; right: 2px; background: var(--accent-red, #e6362c); color: #fff;
  font-size: 10px; font-weight: 800; line-height: 1; min-width: 15px; height: 15px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
.notif-dropdown {
  position: absolute; top: 60px; right: 24px; width: 340px; max-width: calc(100vw - 32px);
  background: #131313; border: 1px solid rgba(255,255,255,0.1); border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5); z-index: 400; display: none; overflow: hidden;
}
.notif-dropdown.show { display: block; }
.notif-dropdown-header {
  padding: 16px 18px; font-weight: 800; font-size: 14.5px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.notif-dropdown-list { max-height: 380px; overflow-y: auto; }
.notif-item {
  display: block; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,0.06);
  text-decoration: none; color: #fff; transition: background .15s ease;
}
.notif-item:hover { background: rgba(255,255,255,0.03); }
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: rgba(255,255,255,0.03); }
.notif-item .title { font-size: 13.5px; font-weight: 700; margin: 0 0 4px; }
.notif-item .body { font-size: 12.5px; color: rgba(255,255,255,0.55); line-height: 1.5; margin: 0 0 6px; }
.notif-item .date { font-size: 11px; color: rgba(255,255,255,0.35); }
.notif-empty { padding: 30px 18px; text-align: center; font-size: 13px; color: rgba(255,255,255,0.4); }

/* ---------- Security modals (health-data 2FA gate) ---------- */
.sec-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.75);
  display: none; align-items: center; justify-content: center; z-index: 500; padding: 20px;
}
.sec-modal-overlay.show { display: flex; }

.sec-modal {
  width: 100%; max-width: 680px; border-radius: 20px; overflow: hidden;
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}
.sec-modal-visual {
  background: var(--accent-red, #e6362c);
  display: flex; align-items: center; justify-content: center;
  min-height: 260px;
}
.sec-modal-visual svg { width: 68px; height: 68px; color: #fff; }
.sec-modal-body { background: #0d0d0d; padding: 40px 36px; display: flex; flex-direction: column; }
.sec-modal-body h2 { font-size: 22px; font-weight: 800; margin: 0 0 16px; color: #fff; }
.sec-modal-body p { font-size: 14.5px; line-height: 1.65; color: rgba(255,255,255,0.7); margin: 0 0 16px; }
.sec-modal-actions { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.sec-modal-actions .btn { padding: 11px 20px; font-size: 13.5px; }

/* OTP code input */
.sec-otp-row { display: flex; gap: 10px; margin: 14px 0 6px; }
.sec-otp-row input {
  width: 40px; height: 50px; text-align: center; font-size: 20px; font-weight: 800;
  background: transparent; border: none; border-bottom: 2px solid rgba(255,255,255,0.3);
  color: #fff; font-family: inherit; outline: none; transition: border-color .15s ease;
}
.sec-otp-row input:focus { border-color: #fff; }

@media (max-width: 620px) {
  .sec-modal { grid-template-columns: 1fr; }
  .sec-modal-visual { min-height: 120px; }
}
