.reading-study-page {
  background: transparent;
}

/* Hero Quote */
.reading-quote {
  margin: 16px 0 0;
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  border-left: 2px solid #10b981;
  padding-left: 12px;
  line-height: 1.5;
  text-align: left;
}

.reading-quote-author {
  display: block;
  font-size: 0.8rem;
  color: #a7f3d0;
  margin-top: 4px;
  font-weight: 600;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Custom level tabs active glow states */
.reading-study-page .level-tab[data-reading-level-tab="easy"] {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  text-shadow: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.reading-study-page .level-tab[data-reading-level-tab="medium"] {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  text-shadow: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.reading-study-page .level-tab[data-reading-level-tab="hard"] {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  text-shadow: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.reading-study-page .level-tab[data-reading-level-tab="easy"].active {
  background: linear-gradient(135deg, rgba(46, 232, 120, 0.15), rgba(46, 232, 120, 0.35));
  border-color: rgba(46, 232, 120, 0.5);
  color: #2ee878;
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.1),
    0 0 20px rgba(46, 232, 120, 0.25);
  text-shadow: 0 0 8px rgba(46, 232, 120, 0.4);
}

.reading-study-page .level-tab[data-reading-level-tab="medium"].active {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.15), rgba(250, 204, 21, 0.35));
  border-color: rgba(250, 204, 21, 0.5);
  color: #facc15;
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.1),
    0 0 20px rgba(250, 204, 21, 0.25);
  text-shadow: 0 0 8px rgba(250, 204, 21, 0.4);
}

.reading-study-page .level-tab[data-reading-level-tab="hard"].active {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.35));
  border-color: rgba(239, 68, 68, 0.5);
  color: #ef4444;
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.1),
    0 0 20px rgba(239, 68, 68, 0.25);
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

/* Premium Override for Search Box on Reading Page */
.reading-study-page .study-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 8px 18px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
  min-height: 48px;
}

.reading-study-page .study-search:focus-within {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.08),
    0 0 20px rgba(56, 189, 248, 0.2);
  background: rgba(15, 23, 42, 0.85);
}

.reading-study-page .study-search input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.92rem;
  width: 100%;
}

.reading-study-page .study-search i {
  color: #94a3b8;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.reading-study-page .study-search:focus-within i {
  color: #38bdf8;
}

/* Premium Override for Calendar Schedule Button */
.reading-study-page .schedule-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.6), rgba(3, 7, 18, 0.8));
  color: #ffffff;
  padding: 8px 18px;
  cursor: pointer;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.reading-study-page .schedule-button:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.1),
    0 0 20px rgba(56, 189, 248, 0.15);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.8), rgba(3, 7, 18, 0.95));
}

.reading-study-page .schedule-button-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.reading-study-page .schedule-button:hover .schedule-button-icon {
  transform: scale(1.1) rotate(5deg);
  background: rgba(56, 189, 248, 0.2);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.reading-study-page .schedule-button-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.reading-study-page .schedule-button-copy strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
}

.reading-study-page .schedule-button-copy small {
  font-size: 0.74rem;
  color: #94a3b8;
  font-weight: 600;
}

/* Layout */
.reading-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  width: 100%;
}

.reading-toolbar-row .study-mode-switch {
  margin-bottom: 0;
  flex-shrink: 0;
}

.reading-toolbar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.reading-toolbar-controls .study-search {
  width: 300px;
  min-width: 200px;
  box-sizing: border-box;
}

.reading-toolbar-controls .schedule-button {
  flex-shrink: 0;
  white-space: nowrap;
}

.reading-study-page .study-toolbar {
  justify-content: flex-end;
  gap: 24px;
}

.reading-study-page .study-toolbar .study-search {
  width: min(100%, 398px);
}

.reading-layout {
  display: grid;
  grid-template-columns: 96px minmax(250px, 290px) minmax(0, 1fr);
  gap: 24px 16px;
  align-items: start;
}

.reading-level-rail {
  position: sticky;
  top: 94px;
  z-index: 3;
  align-self: start;
}

.reading-study-page .reading-level-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: 100%;
  padding: 6px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
}

.reading-study-page .reading-level-tabs .level-tab {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 10px 8px;
}

/* Progress Section */
.reading-progress-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top left, rgba(46, 232, 120, 0.08), transparent 35%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.7) 0%, rgba(3, 7, 18, 0.95) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 32px;
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.05),
    0 20px 50px rgba(0, 0, 0, 0.4);
}

.reading-progress-hero > div:first-child {
  display: grid;
  align-content: center;
  gap: 8px;
}

.reading-progress-hero strong[data-reading-progress-score] {
  color: #2ee878;
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px rgba(46, 232, 120, 0.3);
}

.reading-progress-hero p {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.96rem;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 12px;
}

.progress-track span[data-reading-progress-bar] {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #2ee878);
  border-radius: 999px;
  box-shadow: 0 0 12px #2ee878;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reading-progress-metrics {
  display: grid;
  gap: 12px;
}

.reading-progress-metrics > span {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.6);
  color: #38bdf8;
  font-weight: 700;
  padding: 14px 18px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.04);
}

.reading-progress-metrics strong {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 800;
}

/* Sticky Sidebar Topic List */
.reading-topic-list {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 12px;
}

/* Premium Sidebar Topic Cards */
.reading-topic-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 96px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.5) 0%, rgba(3, 7, 18, 0.8) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f8fbff;
  padding: 16px 44px 16px 18px;
  text-align: left;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.05),
    0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.reading-topic-open {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  border: 0;
  border-radius: inherit;
  background: transparent;
  padding: 0;
}

/* Prevent hover flicker loop when card translates up */
.reading-topic-card:hover .reading-topic-open {
  bottom: -20px;
}

.reading-topic-card > *:not(.reading-topic-open) {
  position: relative;
  z-index: 1;
}

.reading-topic-open:focus-visible {
  outline: 3px solid var(--theme-color, rgba(125, 211, 252, 0.78));
  outline-offset: -5px;
}

/* Accent lines by level for active topic card */
.reading-topic-card[data-reading-level="easy"] {
  --theme-color: #2ee878;
  --theme-color-rgb: 46, 232, 120;
}

.reading-topic-card[data-reading-level="medium"] {
  --theme-color: #facc15;
  --theme-color-rgb: 250, 204, 21;
}

.reading-topic-card[data-reading-level="hard"] {
  --theme-color: #ef4444;
  --theme-color-rgb: 239, 68, 68;
}

.reading-topic-card span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--theme-color);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Pulsing dot inside badge */
.reading-topic-card span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--theme-color);
  box-shadow: 0 0 6px var(--theme-color);
}

.reading-topic-card strong {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  transition: color 0.3s ease;
}

.reading-topic-card small {
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.8rem;
}

.reading-topic-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(var(--theme-color-rgb), 0.4);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.75) 0%, rgba(3, 7, 18, 0.95) 100%);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.1),
    0 0 15px rgba(var(--theme-color-rgb), 0.15),
    0 12px 24px rgba(0, 0, 0, 0.4);
}

.reading-topic-card.is-active {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(var(--theme-color-rgb), 0.6);
  background: 
    radial-gradient(circle at top left, rgba(var(--theme-color-rgb), 0.08), transparent 45%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.8) 0%, rgba(3, 7, 18, 0.95) 100%);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.15),
    0 0 25px rgba(var(--theme-color-rgb), 0.25),
    0 12px 24px rgba(0, 0, 0, 0.4);
}

.reading-topic-card.is-active strong {
  color: var(--theme-color);
}

/* Beautiful slide-in/scaling checked icon at the top-right corner */
.reading-topic-card .topic-check {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(46, 232, 120, 0.35);
  border-radius: 50%;
  background: rgba(46, 232, 120, 0.12);
  color: #2ee878;
  font-size: 0.76rem;
  box-shadow: 0 0 8px rgba(46, 232, 120, 0.2);
  opacity: 0;
  transform: scale(0.78);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reading-topic-card {
  order: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.reading-topic-card.is-viewed {
  order: 99;
  opacity: 0.78;
}

.reading-topic-card.is-viewed .topic-check {
  opacity: 1;
  transform: scale(1);
}

/* Reading Passage Foot - Aligned to Far Right & Dimmed Completion Style */
.reading-passage-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.reading-passage-foot button[data-reading-mark-read] {
  margin-left: auto;
  min-height: 40px;
  padding: 8px 22px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 999px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dimmed style when completed (Tối button đi khi hoàn thành) */
.reading-passage-foot button[data-reading-mark-read].is-active {
  background: rgba(15, 23, 42, 0.7) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #64748b !important;
  opacity: 0.55 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  filter: grayscale(0.4);
}

.reading-passage-foot button[data-reading-mark-read].is-active:hover {
  opacity: 0.85 !important;
  color: #94a3b8 !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

/* Main Passage Container */
.reading-passages {
  display: grid;
  gap: 20px;
}

/* Premium Reading Passage Interactive Card */
.reading-passage {
  position: relative;
  overflow: hidden;
  scroll-margin-top: 110px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: 
    radial-gradient(circle at 10% 10%, rgba(var(--level-glow-rgb), 0.06), transparent 45%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.75) 0%, rgba(3, 7, 18, 0.95) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.05),
    0 20px 50px rgba(0, 0, 0, 0.4);
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Active Level theme colors inside passage */
.reading-passage[data-reading-level="easy"] {
  --level-glow: #2ee878;
  --level-glow-rgb: 46, 232, 120;
}

.reading-passage[data-reading-level="medium"] {
  --level-glow: #facc15;
  --level-glow-rgb: 250, 204, 21;
}

.reading-passage[data-reading-level="hard"] {
  --level-glow: #ef4444;
  --level-glow-rgb: 239, 68, 68;
}

.reading-passage:hover {
  border-color: rgba(var(--level-glow-rgb), 0.25);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.08),
    0 0 30px rgba(var(--level-glow-rgb), 0.08),
    0 25px 60px rgba(0, 0, 0, 0.45);
}

.reading-passage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.reading-passage-head > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.reading-passage-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.reading-points-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.15) 0%, rgba(234, 179, 8, 0.06) 100%);
  border: 1px solid rgba(250, 204, 21, 0.35);
  color: #facc15;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 0 15px rgba(250, 204, 21, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  letter-spacing: 0.02em;
}

.reading-points-badge i {
  font-size: 0.95rem;
  color: #facc15;
}

/* Translation Toggle and Read Toggle as Premium Widgets */
.reading-passage-head .translation-toggle,
.reading-passage-head .reading-read-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 6px 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Translation toggle */
.reading-passage-head .translation-toggle {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.reading-passage-head .translation-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-2px);
}

.reading-passage-head .translation-toggle.is-showing {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}

/* Read Toggle (Toggle Switch Widget) */
.reading-passage-head .reading-read-toggle {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.reading-passage-head .reading-read-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-2px);
}

.reading-passage-head .reading-read-toggle.is-on {
  background: rgba(46, 232, 120, 0.12);
  border-color: rgba(46, 232, 120, 0.4);
  color: #2ee878;
  box-shadow: 0 0 15px rgba(46, 232, 120, 0.25);
}

/* Custom interactive Toggle Switch tracks and thumbs */
.topic-view-toggle-track {
  width: 26px;
  height: 14px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  position: relative;
  transition: background 0.3s ease;
}

.is-on .topic-view-toggle-track {
  background: #2ee878;
}

.topic-view-toggle-thumb {
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.is-on .topic-view-toggle-thumb {
  transform: translateX(12px);
  background: #022c22;
}

.reading-passage h2 {
  margin: 10px 0 8px;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

.reading-passage:hover h2 {
  color: var(--level-glow);
}

.reading-passage-head p {
  color: #94a3b8;
  font-size: 0.94rem;
  line-height: 1.5;
}

/* Sentence Stack (Interactive conversational flow) */
.sentence-stack {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 14px;
}

.sentence-row {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 12px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 2px solid transparent;
}

.sentence-row:last-child {
  border-bottom: 0;
}

.sentence-row:hover {
  background: rgba(255, 255, 255, 0.02);
  border-left-color: var(--level-glow, #38bdf8);
  padding-left: 16px; /* Smooth elegant indent */
}

.sentence-en {
  margin: 0;
  color: #ffffff;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.005em;
}

.sentence-vi {
  position: relative;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  color: #a7fbc0; /* Soft beautiful pastel green */
  font-size: 0.94rem;
  line-height: 1.35;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Gorgeous Shimmering Holographic spoiler skeleton for hidden translation */
.translations-muted .sentence-vi {
  min-width: min(100%, 280px);
  min-height: 28px;
  border: 1px dashed rgba(56, 189, 248, 0.25);
  border-radius: 999px;
  background: linear-gradient(
    90deg, 
    rgba(56, 189, 248, 0.08) 0%, 
    rgba(46, 232, 120, 0.12) 50%, 
    rgba(56, 189, 248, 0.08) 100%
  );
  background-size: 200% 100%;
  animation: shimmer-spoiler 2.5s infinite linear;
  color: transparent !important;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2);
  padding: 3px 14px;
  cursor: pointer;
  user-select: none;
}

.translations-muted .sentence-vi.is-revealed {
  min-width: auto;
  min-height: auto;
  border: none;
  background: none;
  animation: none;
  color: #a7fbc0 !important;
  box-shadow: none;
  padding: 0;
  user-select: auto;
  cursor: pointer;
}

@keyframes shimmer-spoiler {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.translations-muted .sentence-row:nth-child(-n + 2) .sentence-vi::after {
  content: "🔒 Nhấp để mở khóa bản dịch";
  position: absolute;
  left: 16px;
  top: 50%;
  color: #9be8ff;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-50%);
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
}

.translations-muted .sentence-row .sentence-vi.is-revealed::after {
  display: none;
}

.translations-muted .sentence-row:hover .sentence-vi::after {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* Responsiveness overrides */
@media (max-width: 980px) {
  .reading-layout {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 16px;
  }

  .reading-progress-hero {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .reading-level-rail {
    top: 82px;
  }

  .reading-topic-list {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .reading-passages {
    grid-column: 2;
  }
}

@media (max-width: 680px) {
  .reading-layout {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
  }

  .reading-level-rail {
    position: static;
  }

  .reading-study-page .reading-level-tabs {
    border-radius: 14px;
    padding: 5px;
  }

  .reading-study-page .reading-level-tabs .level-tab {
    min-height: 44px;
    border-radius: 12px;
    font-size: 0.78rem;
    padding: 8px 4px;
  }

  .reading-passage-head {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 12px;
  }

  .reading-topic-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .reading-passages {
    grid-column: 1 / -1;
  }

  .reading-passage {
    border-radius: 18px;
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .reading-toolbar-row {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .reading-toolbar-controls {
    flex-wrap: wrap;
    width: 100%;
  }

  .reading-toolbar-controls .study-search {
    width: 100%;
    min-width: 100%;
  }

  .reading-toolbar-controls .schedule-button {
    width: 100%;
    justify-content: center;
  }
}

/* Reading Calendar Modal Styles */
.reading-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.reading-modal-backdrop[hidden] {
  display: none !important;
}

.reading-modal-card {
  width: min(100%, 410px);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.96), rgba(3, 7, 18, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.6),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalScaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.reading-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.reading-modal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.reading-modal-header h3 {
  margin: 2px 0 0;
  font-size: 1.05rem;
  color: #ffffff;
}

.reading-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reading-streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(239, 68, 68, 0.2));
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fef08a;
  font-size: 0.78rem;
}

.reading-streak-badge strong {
  color: #f59e0b;
}

.reading-modal-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.reading-modal-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.reading-modal-body {
  padding: 16px 18px;
}

.calendar-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.calendar-month-label {
  font-size: 0.95rem;
  color: #ffffff;
}

.btn-cal-nav {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.6);
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.8rem;
}

.btn-cal-nav:hover {
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  background: rgba(15, 23, 42, 0.9);
}

.calendar-weekdays-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 8px;
}

.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 14px;
}

.calendar-day-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.calendar-day-cell.is-empty {
  background: transparent;
  border: none;
}

.calendar-day-cell.is-today {
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
  color: #ffffff;
}

.calendar-day-cell.is-done {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.calendar-day-cell .day-level-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  margin-top: 2px;
}

.day-level-dot.easy { background: #2ee878; box-shadow: 0 0 4px rgba(46, 232, 120, 0.6); }
.day-level-dot.medium { background: #facc15; box-shadow: 0 0 4px rgba(250, 204, 21, 0.6); }
.day-level-dot.hard { background: #ef4444; box-shadow: 0 0 4px rgba(239, 68, 68, 0.6); }

.calendar-day-cell .done-check {
  font-size: 0.6rem;
  position: absolute;
  top: 2px;
  right: 3px;
  color: #10b981;
}

.calendar-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-bottom: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.calendar-legend .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 3px;
}

.calendar-legend .dot-easy { background: #2ee878; }
.calendar-legend .dot-medium { background: #facc15; }
.calendar-legend .dot-hard { background: #ef4444; }
.calendar-legend .dot-done { background: #10b981; }

.today-assignment-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(15, 23, 42, 0.8));
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.today-assignment-info .today-tag {
  display: inline-block;
  font-size: 0.7rem;
  color: #38bdf8;
  font-weight: 700;
  margin-bottom: 2px;
}

.today-assignment-info h4 {
  margin: 0;
  font-size: 0.92rem;
  color: #ffffff;
}

.today-assignment-info p {
  margin: 1px 0 0;
  font-size: 0.75rem;
  color: #94a3b8;
}
