.homework-card {
  background: linear-gradient(135deg, #fff5dc 0%, #fde8b8 100%);
  border-color: var(--gold);
}
.homework-card .card-title {
  justify-content: space-between;
}

.admin-toggle {
  background: rgba(255, 255, 255, 0.5);
  border: 1.5px solid rgba(201, 127, 29, 0.3);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: var(--gold-deep);
}
.admin-toggle:hover {
  background: white;
  transform: rotate(45deg);
}
.admin-toggle.active {
  background: var(--gold-deep);
  color: white;
  transform: rotate(45deg);
}

.hw-display {
  text-align: center;
  padding: 8px 0;
}

.hw-empty {
  padding: 24px 16px;
  color: var(--ink-soft);
  font-size: 15px;
}
.hw-empty .big-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 10px;
  opacity: 0.5;
}

.hw-iqra-badge {
  display: inline-block;
  background: linear-gradient(135deg, #b888c9 0%, #9b6bb0 100%);
  color: white;
  font-family: 'Klee One', serif;
  font-size: 17px;
  padding: 8px 22px;
  border-radius: 999px;
  box-shadow: 0 3px 8px rgba(155, 107, 176, 0.35);
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}

.hw-pages-label {
  font-family: 'Klee One', serif;
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.2em;
  margin-bottom: 4px;
}

.hw-pages-value {
  font-family: 'Klee One', serif;
  font-size: clamp(28px, 6vw, 38px);
  color: var(--gold-deep);
  font-weight: 600;
  line-height: 1.2;
}

.hw-range {
  font-family: 'Klee One', serif;
  font-weight: 600;
  font-size: clamp(24px, 5.5vw, 32px);
  color: var(--gold-deep);
  line-height: 1.2;
  margin-bottom: 2px;
}
.hw-progress {
  font-family: 'Klee One', serif;
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 8px;
}

.admin-panel {
  border-top: 2px dashed rgba(201, 127, 29, 0.3);
  margin-top: 18px;
  padding-top: 18px;
}

.admin-label {
  text-align: center;
  font-family: 'Klee One', serif;
  font-size: 14px;
  color: var(--gold-deep);
  margin-bottom: 14px;
  letter-spacing: 0.1em;
}

.admin-field { margin-bottom: 14px; }
.admin-field-label {
  font-family: 'Klee One', serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  text-align: center;
}

.iqra-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.iqra-book {
  aspect-ratio: 3 / 4;
  background: var(--paper);
  border: 2px solid var(--cream-dark);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  user-select: none;
}
.iqra-book::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6%;
  bottom: 6%;
  width: 3px;
  background: rgba(0,0,0,0.08);
  border-radius: 0 2px 2px 0;
}
.iqra-book:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(155, 107, 176, 0.2);
}
.iqra-book.active {
  background: linear-gradient(135deg, #b888c9 0%, #9b6bb0 100%);
  border-color: var(--plum);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 5px 12px rgba(155, 107, 176, 0.45);
}
.iqra-book.active::before { background: rgba(255,255,255,0.25); }
.iqra-book.active::after {
  content: '✓';
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--gold);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  font-family: 'Klee One', serif;
}
.iqra-book-label {
  font-family: 'Klee One', serif;
  font-size: 9px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
  margin-bottom: 2px;
  transition: color 0.2s;
}
.iqra-book-num {
  font-family: 'Klee One', serif;
  font-size: clamp(18px, 4vw, 24px);
  color: var(--plum);
  line-height: 1;
  transition: color 0.2s;
}
.iqra-book.active .iqra-book-label,
.iqra-book.active .iqra-book-num {
  color: white;
}

.admin-input {
  font-family: 'Klee One', serif;
  font-size: 16px;
  padding: 11px 14px;
  border: 2px solid var(--cream-dark);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
}
.admin-input:focus { border-color: var(--gold); }

.admin-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.admin-current-page {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}
.admin-current-page input {
  width: 80px;
  text-align: center;
  font-family: 'Klee One', serif;
  font-size: 18px;
}
.admin-current-page .of {
  font-family: 'Klee One', serif;
  font-size: 13px;
  color: var(--ink-soft);
}

.reward-edit-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.reward-edit-row .star-tag {
  font-family: 'Klee One', serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--gold-deep);
  text-align: center;
  background: rgba(232, 168, 56, 0.15);
  border-radius: 10px;
  padding: 8px 4px;
}
.reward-edit-row input {
  font-size: 14px;
  padding: 8px 12px;
}
