/* ==========================================================
   PLAN – iOS Liquid Glass theme
   Drop-in replacement: existing class names / IDs unchanged.
   New: .more-tiles / .more-tile / .more-list (menu "Więcej")
   ========================================================== */

:root {
  --bg-dark: #05060A;
  --bg-card: rgba(255, 255, 255, 0.07);
  --bg-card-2: rgba(255, 255, 255, 0.11);
  --bg-card-hover: rgba(255, 255, 255, 0.14);
  --fill: rgba(255, 255, 255, 0.14);
  --fill-2: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.14);
  --separator: rgba(255, 255, 255, 0.12);
  --border-focus: #0A84FF;

  --text-main: #FFFFFF;
  --text-muted: rgba(235, 235, 245, 0.68);
  --text-dim: rgba(235, 235, 245, 0.42);

  --accent-blue: #0A84FF;
  --accent-blue-glow: rgba(10, 132, 255, 0.35);
  --accent-green: #30D158;
  --accent-red: #FF453A;
  --accent-orange: #FF9F0A;
  --accent-purple: #BF5AF2;

  --nav-height: 64px;
  --header-height: 52px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);

  --radius-card: 24px;
  --radius-md: 16px;
  --spring: cubic-bezier(0.32, 0.72, 0, 1);

  /* liquid glass recipe */
  --glass-blur: saturate(190%) blur(28px);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -1px 0 rgba(255, 255, 255, 0.04), inset 0 0 0 0.5px rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  background: var(--bg-dark);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-font-smoothing: antialiased;
  -webkit-touch-callout: none;
  letter-spacing: -0.01em;
}

/* ambient colour blobs – glass needs something to refract */
body::before,
body::after {
  content: '';
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(70px);
}

body::before {
  width: 360px;
  height: 360px;
  top: -80px;
  left: -100px;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.55), transparent 70%);
}

body::after {
  width: 420px;
  height: 420px;
  bottom: -120px;
  right: -140px;
  background: radial-gradient(circle, rgba(191, 90, 242, 0.45), transparent 70%);
}

input,
textarea {
  user-select: text;
  -webkit-user-select: text;
  font-family: inherit;
}

button {
  font-family: inherit;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  z-index: 1;
}

/* ---------- Header ---------- */
.app-header {
  height: calc(var(--header-height) + var(--safe-top));
  padding: var(--safe-top) 16px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 12, 20, 0.45);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 0.5px solid var(--separator);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-badge {
  background: linear-gradient(180deg, #4AB0FF 0%, #0A6CE8 100%);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.6px;
  padding: 5px 9px;
  border-radius: 10px;
  box-shadow: 0 4px 16px var(--accent-blue-glow), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.brand-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: var(--glass-edge);
  padding: 5px 5px 5px 12px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  max-width: 150px;
  transition: transform 0.2s var(--spring), background 0.2s;
}

.user-pill:active {
  transform: scale(0.95);
  background: var(--fill);
}

.user-pill>span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-class-tag {
  background: var(--accent-blue);
  color: #fff;
  padding: 3px 9px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: var(--glass-edge);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s var(--spring), background 0.2s;
}

.icon-btn:active {
  transform: scale(0.88);
  background: var(--fill);
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

/* ---------- Main ---------- */
.main-content {
  flex: 1;
  padding: 14px 16px calc(var(--nav-height) + var(--safe-bottom) + 40px) 16px;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
}

.tab-view {
  animation: viewIn 0.4s var(--spring);
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Floating glass tab bar ---------- */
.bottom-nav {
  position: fixed;
  bottom: calc(var(--safe-bottom) + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 440px;
  height: var(--nav-height);
  padding: 0 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  backdrop-filter: saturate(200%) blur(32px);
  -webkit-backdrop-filter: saturate(200%) blur(32px);
  border-radius: 34px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), var(--glass-edge);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 50;
}

.nav-item {
  flex: 1;
  height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 600;
  border-radius: 28px;
  cursor: pointer;
  transition: color 0.2s, background 0.3s, transform 0.2s var(--spring);
}

.nav-item:active {
  transform: scale(0.92);
}

.nav-item svg {
  width: 22px;
  height: 22px;
  transition: transform 0.3s var(--spring);
}

.nav-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 2px 10px rgba(0, 0, 0, 0.25);
}

.nav-item.active svg {
  transform: scale(1.08);
  stroke: var(--accent-blue);
}

/* ---------- Glass cards ---------- */
.glass-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow), var(--glass-edge);
  border: none;
  border-radius: var(--radius-card);
  padding: 16px;
  margin-bottom: 12px;
  transition: transform 0.25s var(--spring), background 0.2s;
}

.glass-card.interactive:active,
.glass-card[onclick]:active {
  transform: scale(0.98);
  background: var(--bg-card-2);
}

/* NOW widget */
.now-card {
  background: linear-gradient(145deg, rgba(27, 79, 216, 0.85) 0%, rgba(10, 132, 255, 0.8) 55%, rgba(58, 160, 255, 0.75) 100%);
  box-shadow: 0 16px 40px rgba(10, 132, 255, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 0 0 0.5px rgba(255, 255, 255, 0.2);
  overflow: hidden;
  padding: 18px;
  border-radius: 28px;
}

.now-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% -10%, rgba(255, 255, 255, 0.35), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 40%);
  pointer-events: none;
}

.now-card>* {
  position: relative;
}

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

.live-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 5px 10px;
  border-radius: 100px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff !important;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9) !important;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

.now-title {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.6px;
  line-height: 1.15;
}

.now-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.now-card .badge,
.now-card .countdown-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.now-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}

.now-progress-fill {
  height: 100%;
  background: #fff;
  border-radius: 3px;
  transition: width 0.8s linear;
}

.now-footer {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.8);
  font-variant-numeric: tabular-nums;
}

.countdown-badge {
  font-weight: 700;
  color: #fff;
}

/* ---------- Stats ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 8px;
}

.stat-box {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow), var(--glass-edge);
  border-radius: 20px;
  padding: 14px 8px 12px;
  text-align: center;
}

.stat-val {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---------- Section header ---------- */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 10px;
  padding: 0 6px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title svg {
  width: 20px;
  height: 20px;
}

.section-link {
  font-size: 15px;
  color: var(--accent-blue);
  cursor: pointer;
  font-weight: 500;
}

.section-link:active {
  opacity: 0.5;
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.badge-blue {
  background: rgba(10, 132, 255, 0.24);
  color: #7CC0FF;
}

.badge-green {
  background: rgba(48, 209, 88, 0.22);
  color: #6BEB8E;
}

.badge-red {
  background: rgba(255, 69, 58, 0.22);
  color: #FF9A93;
}

.badge-orange {
  background: rgba(255, 159, 10, 0.22);
  color: #FFC166;
}

.badge-gray {
  background: var(--fill);
  color: var(--text-muted);
}

.badge-yellow {
  background: rgba(255, 214, 10, 0.22);
  color: #FFD60A;
}

.badge-purple {
  background: rgba(191, 90, 242, 0.24);
  color: #E0AAFF;
}

#plan-day-pills .tab-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 3px;
  min-height: 46px;
  position: relative;
}

.plan-day-events {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-day-event-card {
  border-radius: 16px;
  padding: 11px 14px;
  position: relative;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.plan-day-event-card:active {
  transform: scale(0.99);
}

.plan-day-event-exam {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-left: 4px solid #EF4444;
}

.plan-day-event-hw {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-left: 4px solid #F59E0B;
}

/* ---------- Lessons ---------- */
.lesson-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-edge);
  border-radius: 20px;
  margin-bottom: 8px;
  position: relative;
}

.lesson-row.current {
  background: rgba(10, 132, 255, 0.2);
  box-shadow: inset 0 0 0 1.5px rgba(10, 132, 255, 0.7), 0 0 24px rgba(10, 132, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.lesson-row.past {
  opacity: 0.5;
}

.lesson-idx-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
  gap: 2px;
}

.lesson-idx {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--fill);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lesson-time {
  font-size: 10px;
  color: var(--text-dim);
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

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

.lesson-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}

.lesson-details {
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.substitution-chip {
  background: rgba(255, 159, 10, 0.25);
  color: #FFC166;
  padding: 2px 7px;
  border-radius: 100px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  vertical-align: 1px;
}

/* ---------- Segmented control (glass) ---------- */
.tab-pills {
  display: flex;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3), inset 0 0 0 0.5px rgba(255, 255, 255, 0.1);
  padding: 3px;
  border-radius: 14px;
  gap: 2px;
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tab-pills::-webkit-scrollbar {
  display: none;
}

.tab-pill {
  flex: 1;
  text-align: center;
  padding: 7px 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 11px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s var(--spring), box-shadow 0.25s, transform 0.15s;
}

.tab-pill:active {
  transform: scale(0.96);
}

.tab-pill.active {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* ---------- Grades ---------- */
.grade-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  padding: 0 7px;
  cursor: pointer;
  transition: transform 0.2s var(--spring);
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.grade-badge:active {
  transform: scale(0.88);
}

.grade-weight-sup {
  font-size: 9px;
  font-weight: 600;
  margin-left: 1px;
  opacity: 0.8;
  align-self: flex-start;
  margin-top: 4px;
}

.subject-card {
  margin-bottom: 10px;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow), var(--glass-edge);
  border-radius: 24px;
  overflow: hidden;
  transition: background 0.25s;
}

.subject-card.expanded {
  background: rgba(255, 255, 255, 0.1);
}

.subject-card-header {
  padding: 15px 16px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: opacity 0.15s;
}

.subject-card-header:active {
  opacity: 0.6;
}

.subject-card-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.subject-card-title {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  text-transform: capitalize;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.3px;
}

.subject-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.subject-chevron {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: transform 0.35s var(--spring);
}

.subject-chevron svg {
  width: 16px;
  height: 16px;
}

.subject-card.expanded .subject-chevron {
  transform: rotate(180deg);
  color: var(--accent-blue);
}

.subject-chips-preview {
  padding: 0 16px 15px;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
  cursor: pointer;
}

.subject-details-pane {
  display: none;
  border-top: 0.5px solid var(--separator);
  padding: 14px 16px 16px;
  animation: fadeInPane 0.3s var(--spring);
}

@keyframes fadeInPane {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.subject-card.expanded .subject-details-pane {
  display: block;
}

.grade-detail-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 16px;
  background: var(--fill-2);
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.12);
  margin-bottom: 8px;
  cursor: pointer;
  transition: transform 0.2s var(--spring), background 0.2s;
}

.grade-detail-card:last-child {
  margin-bottom: 0;
}

.grade-detail-card:active {
  transform: scale(0.98);
  background: var(--fill);
}

.grade-detail-main {
  flex: 1;
  min-width: 0;
}

.grade-detail-cat {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.grade-detail-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.4;
}

.grade-detail-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-dim);
  margin-top: 6px;
  flex-wrap: wrap;
}

/* ---------- Calendar ---------- */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 10px;
}

.cal-day-head {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  padding-bottom: 4px;
  text-transform: uppercase;
}

.cal-day-cell {
  aspect-ratio: 1;
  background: transparent;
  border: none;
  border-radius: 16px;
  padding: 5px 2px 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: background 0.2s, transform 0.2s var(--spring);
}

.cal-day-cell:active {
  transform: scale(0.9);
  background: var(--fill-2);
}

.cal-day-cell.other-month {
  opacity: 0.25;
}

.cal-day-num {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

.cal-day-cell.today .cal-day-num {
  background: var(--accent-blue);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 12px var(--accent-blue-glow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.cal-day-cell.selected {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.cal-day-cell.selected:not(.today) .cal-day-num {
  color: var(--accent-blue);
  font-weight: 700;
}

.cal-dots {
  display: flex;
  gap: 3px;
  margin-top: auto;
  margin-bottom: 3px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
}

.cal-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

/* ---------- Modal = glass bottom sheet ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-sheet {
  background: linear-gradient(180deg, rgba(60, 60, 70, 0.72), rgba(28, 28, 34, 0.82));
  backdrop-filter: saturate(200%) blur(40px);
  -webkit-backdrop-filter: saturate(200%) blur(40px);
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  padding: 10px 20px calc(20px + var(--safe-bottom));
  width: 100%;
  max-width: 600px;
  max-height: 88vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.5s var(--spring);
  box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.modal-overlay.active .modal-sheet {
  transform: translateY(0);
}

.modal-handle {
  width: 36px;
  height: 5px;
  background: rgba(235, 235, 245, 0.35);
  border-radius: 3px;
  margin: 0 auto 18px;
}

.modal-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

#modal-close-btn {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* ---------- Forms & buttons ---------- */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0 0 6px 4px;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), inset 0 0 0 0.5px rgba(255, 255, 255, 0.14);
  border: 1.5px solid transparent;
  border-radius: 16px;
  padding: 14px 16px;
  color: #fff;
  font-size: 17px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.form-input::placeholder {
  color: var(--text-dim);
}

.form-input:focus {
  border-color: var(--accent-blue);
  background: rgba(255, 255, 255, 0.11);
}

.btn-primary {
  width: 100%;
  background: linear-gradient(180deg, #3AA0FF 0%, #0A84FF 100%);
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 15px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px var(--accent-blue-glow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.2s var(--spring), opacity 0.2s;
  letter-spacing: -0.2px;
}

.btn-primary:active {
  transform: scale(0.97);
  opacity: 0.85;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--glass-edge);
  border: none;
  color: #fff;
  border-radius: 100px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s var(--spring), background 0.2s;
}

.gemini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.22), rgba(155, 81, 224, 0.28));
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: #E9D5FF;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
  white-space: nowrap;
  line-height: 1.4;
}

.gemini-btn:hover {
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.4), rgba(155, 81, 224, 0.48));
  color: #fff;
  border-color: rgba(192, 132, 252, 0.85);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(155, 81, 224, 0.45);
}

.gemini-btn:active {
  transform: scale(0.96);
  opacity: 0.9;
}

.btn-secondary:active {
  transform: scale(0.94);
  background: rgba(255, 255, 255, 0.22);
}

.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
}

.custom-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background: transparent;
  border: 2px solid rgba(235, 235, 245, 0.35);
  border-radius: 50%;
  outline: none;
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: background 0.25s var(--spring), border-color 0.25s, transform 0.25s var(--spring);
}

.custom-checkbox input[type="checkbox"]:active {
  transform: scale(0.85);
}

.custom-checkbox input[type="checkbox"]:checked {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
}

.custom-checkbox input[type="checkbox"]:checked::before {
  content: "";
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

/* ---------- Spinner / empty ---------- */
.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.view-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  gap: 12px;
  color: var(--text-muted);
  font-size: 14px;
}

.empty-state {
  text-align: center;
  padding: 26px 20px;
  color: var(--text-dim);
  font-size: 14px;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-edge);
  border-radius: 20px;
  margin-bottom: 8px;
}

.empty-state svg {
  width: 48px;
  height: 48px;
  stroke: var(--text-dim);
  margin-bottom: 8px;
  opacity: 0.6;
}

/* ---------- Auth screen ---------- */
#auth-screen {
  background: radial-gradient(ellipse at 50% -10%, rgba(10, 132, 255, 0.3), transparent 60%);
}

#auth-screen .glass-card {
  background: rgba(255, 255, 255, 0.09);
  border-radius: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), var(--glass-edge);
}

/* ==========================================================
   WIĘCEJ – new simple menu: profile + tile grid + grouped list
   ========================================================== */
.more-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  margin-bottom: 18px;
}

.more-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4AB0FF, #BF5AF2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(10, 132, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

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

.more-profile-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.more-profile-badges {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 5px;
  flex-wrap: wrap;
}

.more-section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  margin: 0 0 10px 8px;
  letter-spacing: 0.2px;
}

.more-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

.more-tile {
  --tint: 10, 132, 255;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 0.92;
  padding: 14px;
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  background: linear-gradient(160deg, rgba(var(--tint), 0.30) 0%, rgba(var(--tint), 0.08) 100%);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow), var(--glass-edge), 0 0 0 0.5px rgba(var(--tint), 0.35) inset;
  transition: transform 0.3s var(--spring), background 0.2s;
}

.more-tile::after {
  content: '';
  position: absolute;
  width: 130px;
  height: 130px;
  right: -40px;
  top: -50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--tint), 0.45), transparent 70%);
  pointer-events: none;
}

.more-tile:active {
  transform: scale(0.95);
}

.more-tile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.more-tile-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--tint), 0.9);
  box-shadow: 0 6px 16px rgba(var(--tint), 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.more-tile-icon svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
}

.more-tile-bottom {
  position: relative;
  z-index: 1;
}

.more-tile-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.15;
}

.more-tile-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.more-list {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow), var(--glass-edge);
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 20px;
}

.more-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  cursor: pointer;
  transition: background 0.15s;
}

.more-row+.more-row {
  border-top: 0.5px solid var(--separator);
}

.more-row:active {
  background: rgba(255, 255, 255, 0.1);
}

.more-row-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.more-row-icon svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
}

.more-row-title {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
}

.more-row-chev {
  opacity: 0.4;
}

/* legacy menu classes kept so old markup/app.js still render */
.more-menu-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.more-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  background: var(--bg-card);
  box-shadow: var(--glass-edge);
  border-radius: 18px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.more-menu-item:active {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.12);
}

.more-menu-left {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  flex: 1;
}

.more-menu-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.more-menu-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.more-menu-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.more-menu-sub {
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.more-menu-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 10px;
}

/* ---------- Utility ---------- */
.hidden {
  display: none !important;
}

.text-success {
  color: var(--accent-green);
}

.text-danger {
  color: var(--accent-red);
}

.text-warning {
  color: var(--accent-orange);
}

.text-muted {
  color: var(--text-muted);
}

/* ==========================================================
   NO GLOW overrides
   ========================================================== */
:root {
  --accent-blue-glow: transparent;
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

body::before,
body::after,
.more-tile::after {
  display: none;
}

#auth-screen {
  background: none;
}

.now-card {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 0 0 0.5px rgba(255, 255, 255, 0.2);
}

.now-card::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 40%);
}

.pulse-dot {
  box-shadow: none !important;
}

.lesson-row.current {
  box-shadow: inset 0 0 0 1.5px rgba(10, 132, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.brand-badge,
.btn-primary,
.more-tile-icon,
.more-avatar,
.cal-day-cell.today .cal-day-num {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.more-tile {
  box-shadow: var(--glass-shadow), var(--glass-edge);
}

/* ==========================================================
   ANIMATIONS
   ========================================================== */
.tab-view {
  animation: fadeOnly 0.25s ease;
}

@keyframes fadeOnly {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes riseIn {
  0% {
    opacity: 0;
    transform: translateY(26px) scale(0.94);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes iconBounce {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.35) translateY(-3px);
  }

  100% {
    transform: scale(1.08);
  }
}

/* staggered entrance of everything that renders in a view */
.tab-view:not(.hidden) .glass-card,
.tab-view:not(.hidden) .section-head,
.tab-view:not(.hidden) .tab-pills,
.stat-box,
.lesson-row,
.subject-card,
.empty-state,
.plan-day-event-card,
.more-tile,
.more-list,
.more-section-label,
.more-menu-item {
  animation: riseIn 0.6s var(--bounce) both;
}

.stats-row>*,
.more-tiles>*,
#more-menu-hub>*,
.tab-view>*,
[id^="dashboard-"]>*,
[id$="-list"]>*,
#plan-lessons-list>*,
#plan-day-events>*,
#grades-subjects-list>* {
  animation-delay: calc(var(--i, 0) * 55ms);
}

:is(.stats-row, .more-tiles, #more-menu-hub, .tab-view, [id^="dashboard-"], [id$="-list"], #plan-lessons-list, #plan-day-events, #grades-subjects-list)>:nth-child(1) {
  --i: 0;
}

:is(.stats-row, .more-tiles, #more-menu-hub, .tab-view, [id^="dashboard-"], [id$="-list"], #plan-lessons-list, #plan-day-events, #grades-subjects-list)>:nth-child(2) {
  --i: 1;
}

:is(.stats-row, .more-tiles, #more-menu-hub, .tab-view, [id^="dashboard-"], [id$="-list"], #plan-lessons-list, #plan-day-events, #grades-subjects-list)>:nth-child(3) {
  --i: 2;
}

:is(.stats-row, .more-tiles, #more-menu-hub, .tab-view, [id^="dashboard-"], [id$="-list"], #plan-lessons-list, #plan-day-events, #grades-subjects-list)>:nth-child(4) {
  --i: 3;
}

:is(.stats-row, .more-tiles, #more-menu-hub, .tab-view, [id^="dashboard-"], [id$="-list"], #plan-lessons-list, #plan-day-events, #grades-subjects-list)>:nth-child(5) {
  --i: 4;
}

:is(.stats-row, .more-tiles, #more-menu-hub, .tab-view, [id^="dashboard-"], [id$="-list"], #plan-lessons-list, #plan-day-events, #grades-subjects-list)>:nth-child(6) {
  --i: 5;
}

:is(.stats-row, .more-tiles, #more-menu-hub, .tab-view, [id^="dashboard-"], [id$="-list"], #plan-lessons-list, #plan-day-events, #grades-subjects-list)>:nth-child(7) {
  --i: 6;
}

:is(.stats-row, .more-tiles, #more-menu-hub, .tab-view, [id^="dashboard-"], [id$="-list"], #plan-lessons-list, #plan-day-events, #grades-subjects-list)>:nth-child(n+8) {
  --i: 7;
}

/* menu tiles: pop in with their contents */
.more-tile .more-tile-icon {
  animation: popIn 0.55s var(--bounce) both;
  animation-delay: calc(var(--i, 0) * 55ms + 180ms);
}

.more-avatar {
  animation: popIn 0.6s var(--bounce) both;
  animation-delay: 120ms;
}

.more-tile {
  transition: transform 0.35s var(--bounce), background 0.2s;
}

.more-tile:active {
  transform: scale(0.92);
}

.more-row {
  transition: background 0.2s, padding-left 0.3s var(--bounce);
}

.more-row:active {
  padding-left: 22px;
}

/* subpage slides like iOS push */
#more-subpage-view:not(.hidden) {
  animation: slideInRight 0.45s var(--spring) both;
}

#more-menu-hub {
  animation: slideInLeft 0.4s var(--spring) both;
}

/* tab bar / pills / grades */
.nav-item.active svg {
  animation: iconBounce 0.5s var(--bounce) both;
}

.nav-item {
  transition: color 0.2s, background 0.35s var(--spring), transform 0.3s var(--bounce);
}

.nav-item:active {
  transform: scale(0.85);
}

.tab-pill.active {
  animation: popIn 0.35s var(--bounce) both;
}

.tab-pill {
  transition: background 0.3s var(--spring), box-shadow 0.3s, transform 0.3s var(--bounce);
}

.cal-day-cell.selected {
  animation: popIn 0.35s var(--bounce) both;
}

.cal-day-cell.today .cal-day-num {
  animation: popIn 0.5s var(--bounce) both;
}

.grade-badge,
.cal-dot {
  animation: popIn 0.45s var(--bounce) both;
}

.subject-details-pane {
  animation: riseIn 0.45s var(--bounce) both;
}

.grade-detail-card {
  animation: riseIn 0.5s var(--bounce) both;
}

.subject-chevron {
  transition: transform 0.45s var(--bounce), color 0.2s;
}

/* buttons: springy press */
.btn-primary,
.btn-secondary,
.icon-btn,
.user-pill,
.glass-card.interactive,
.lesson-row,
.stat-box {
  transition: transform 0.3s var(--bounce), background 0.2s, opacity 0.2s;
}

.stat-box:active,
.lesson-row:active {
  transform: scale(0.97);
}

/* modal sheet with overshoot */
.modal-sheet {
  transition: transform 0.6s cubic-bezier(0.34, 1.25, 0.64, 1);
}

/* now-card progress + live dot */
.now-card {
  animation: riseIn 0.7s var(--bounce) both;
}

.now-progress-fill {
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================
   PULPIT – jedna kolumna, kompaktowo (dopisz na KOŃCU style.css)
   Jeśli wkleiłeś poprzednią wersję tego bloku, USUŃ ją.
   HTML z dashboard-section.html zostaje bez zmian.
   ========================================================== */

#view-dashboard .glass-card {
  margin-bottom: 8px;
}

#view-dashboard .now-card {
  padding: 16px;
  margin-bottom: 10px;
}

#view-dashboard .now-title {
  font-size: 23px;
}

#view-dashboard .now-sub {
  margin-bottom: 12px;
}

/* liczby: niski pasek */
.stats-compact {
  gap: 8px;
  margin-bottom: 10px;
}

.stats-compact .stat-box {
  padding: 10px 6px 9px;
  border-radius: 18px;
}

.stats-compact .stat-val {
  font-size: 21px;
}

.stats-compact .stat-label {
  font-size: 10.5px;
}

/* ---------- panele: wszystkie jeden pod drugim ---------- */
.dash-panel {
  --tint: 10, 132, 255;
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(var(--tint), 0.20) 0%, rgba(var(--tint), 0.05) 70%);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow), var(--glass-edge);
  padding: 12px 12px 10px;
  margin-bottom: 10px;
}

.dash-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dash-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  cursor: pointer;
}

.dash-panel-head:active {
  opacity: 0.6;
}

.dash-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  min-width: 0;
}

.dash-panel-title svg {
  width: 26px;
  height: 26px;
  padding: 5px;
  flex-shrink: 0;
  border-radius: 9px;
  stroke: #fff;
  background: rgba(var(--tint), 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.dash-panel-more {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-blue);
  flex-shrink: 0;
}

/* ---------- zawartość ---------- */
.dash-panel-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.dash-panel-body>* {
  margin: 0 !important;
  min-width: 0;
  max-width: 100%;
}

/* elementy listy wewnątrz panelu: płaskie, ciaśniejsze */
.dash-panel-body>*:not(.lesson-row) {
  padding: 10px 12px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* w sekcjach pod planem max. 4 pozycje, żeby pulpit był krótki */
.dash-grid .dash-panel-body>:nth-child(n+5) {
  display: none !important;
}

.dash-panel-body .empty-state {
  padding: 14px 8px !important;
  font-size: 13px;
}

.dash-panel-body .empty-state svg {
  width: 30px;
  height: 30px;
  margin-bottom: 4px;
}

/* plan na dzisiaj */
.dash-lessons .lesson-row {
  padding: 9px 11px;
  margin-bottom: 0;
  border-radius: 16px;
  gap: 11px;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.06);
}

.dash-lessons .lesson-row.current {
  background: rgba(10, 132, 255, 0.22);
  box-shadow: inset 0 0 0 1.5px rgba(10, 132, 255, 0.7);
}

.dash-lessons .lesson-idx {
  width: 28px;
  height: 28px;
  font-size: 14px;
  border-radius: 9px;
}

.dash-lessons .lesson-idx-box {
  min-width: 44px;
}

.dash-lessons .lesson-title {
  font-size: 14.5px;
  margin-bottom: 1px;
}

.dash-lessons .lesson-details {
  font-size: 12px;
}

#dashboard-cal-alerts>* {
  margin-bottom: 8px;
}

/* Awatary i odznaki */
.header-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
  margin-right: 5px;
  flex-shrink: 0;
}

.avatar-edit-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.avatar-preset-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 10px 0;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.avatar-preset-btn:hover,
.avatar-preset-btn:active {
  transform: scale(1.18);
  background: rgba(255, 255, 255, 0.18);
}

.avatar-preset-btn.active {
  border-color: var(--accent-blue);
  background: rgba(10, 132, 255, 0.25);
  box-shadow: 0 0 10px rgba(10, 132, 255, 0.5);
}

.badge-orange {
  background: rgba(245, 158, 11, 0.2);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

/* Awatary i odznaki */
.header-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
  margin-right: 5px;
  flex-shrink: 0;
}

.avatar-edit-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.avatar-preset-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 10px 0;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.avatar-preset-btn:hover,
.avatar-preset-btn:active {
  transform: scale(1.18);
  background: rgba(255, 255, 255, 0.18);
}

.avatar-preset-btn.active {
  border-color: var(--accent-blue);
  background: rgba(10, 132, 255, 0.25);
  box-shadow: 0 0 10px rgba(10, 132, 255, 0.5);
}

.badge-orange {
  background: rgba(245, 158, 11, 0.2);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}
