
@import url('https://api.fontshare.com/v2/css?f[]=ranade@100,300,400,500,700&display=swap');

:root{
  --blue:#71340f;
  --blue-dark:#3f1b08;
  --blue-pale:#f0e4d4;
  --bg:#faf6ee;
  --surface:#fffdfa;
  --ink:#24150e;
  --muted:#796d62;
  --line:#e9dfd4;
  --shadow:0 10px 30px rgba(73,39,17,.08);
  --cream:#faf6ee;
  --burnt:#873b13;
  --espresso:#1a0d08;
  --gold:#d6c59d;
}

:root[data-theme=dark]{
  --bg:#1a0d08;
  --surface:#28170e;
  --ink:#fbf2e6;
  --muted:#c6b7a5;
  --line:#493021;
  --blue-pale:#4a2a18;
  --blue:#d6a66d;
  --blue-dark:#f0d9b5;
  --shadow:0 10px 30px rgba(0,0,0,.24);
}

*{box-sizing:border-box}

body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font:14px 'Ranade',sans-serif;
}

a{text-decoration:none;color:inherit}

button,input,select,textarea{font:inherit}

button{cursor:pointer}

svg{
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* BRANDING */

.brand{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:0;
  color:var(--ink);
  font:800 19px Georgia;
}

.brand img{
  width:150px;
  height:58px;
  object-fit:contain;
  display:block;
}

.brand span,
.top-brand-mobile b{
  display:none!important;
}

/* PUBLIC HOMEPAGE */

.public-nav{
  height:78px;
  max-width:1240px;
  margin:auto;
  padding:0 25px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.public-nav>div{
  display:flex;
  align-items:center;
  gap:20px;
}

.login-link{
  font-weight:700;
  color:var(--ink);
}

.primary-btn,.secondary-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  background:var(--blue);
  color:#fff;
  border:0;
  border-radius:12px;
  padding:13px 18px;
  font-weight:800;
}

.secondary-btn{
  background:var(--blue-pale);
  color:var(--blue);
}

.public-main{
  max-width:1240px;
  margin:auto;
  padding:35px 25px 65px;
}

.public-hero{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:45px;
  align-items:center;
  min-height:470px;
}

.public-copy h1{
  font:800 clamp(36px,5vw,58px)/1.12 Georgia;
  letter-spacing:-1.8px;
  margin:16px 0;
}

.public-copy>p{
  font-size:16px;
  line-height:1.8;
  color:var(--muted);
  max-width:590px;
}

.eyebrow{
  font-size:11px;
  letter-spacing:1px;
  color:var(--blue);
  font-weight:800;
}

.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:25px;
}

.trust-line{
  display:flex;
  gap:9px;
  flex-wrap:wrap;
  margin-top:28px;
  color:var(--muted);
  font-size:12px;
}

.public-image{
  height:420px;
  border-radius:28px;
  overflow:hidden;
  position:relative;
  box-shadow:var(--shadow);
}

.public-image:after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(0deg,#1a0d0830,transparent 60%);
}

.public-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.public-features{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin:45px 0;
}

.public-features>div,.empty-reflections{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:20px;
  padding:25px;
  box-shadow:var(--shadow);
}

.feature-icon{
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  border-radius:15px;
  background:var(--blue-pale);
  color:var(--blue);
}

.public-features h3{
  font:800 17px Georgia;
}

.public-features p,.public-community p{
  color:var(--muted);
  line-height:1.7;
}

.public-community{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:30px;
  align-items:center;
  padding:35px 0;
}

.public-community h2{
  font:800 29px Georgia;
}

.empty-reflections{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:12px;
}

.empty-reflections small{color:var(--muted)}

.public-footer{
  border-top:1px solid var(--line);
  padding:22px max(25px,calc((100% - 1190px)/2));
  display:flex;
  justify-content:space-between;
  align-items:center;
  color:var(--muted);
  font-size:12px;
}

/* APP LAYOUT */

.app-layout{min-height:100vh}

.sidebar{
  position:fixed;
  inset:0 auto 0 0;
  width:250px;
  background:var(--surface);
  border-right:1px solid var(--line);
  padding:24px 18px;
  display:flex;
  flex-direction:column;
  z-index:5;
}

.sidebar .brand{
  padding:0 8px 35px;
  min-height:75px;
}

.nav-caption{
  font-size:10px;
  font-weight:800;
  color:var(--muted);
  letter-spacing:1.5px;
  padding:10px 13px;
}

.sidebar nav{
  display:grid;
  gap:8px;
}

.nav-link{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:13px;
  padding:12px 14px;
  border-radius:30px;
  color:var(--muted);
  font-weight:700;
  transition:.2s;
}

.nav-link svg{
  width:22px;
  height:22px;
  flex:none;
}

.nav-link:hover{
  background:var(--blue-pale);
  color:var(--blue);
}

.nav-link.active{
  background:var(--blue);
  color:#fff;
  box-shadow:0 7px 18px #71340f35;
}

.profile-shortcut{
  margin-top:auto;
  border-top:1px solid var(--line);
  padding:18px 5px 4px;
  display:flex;
  align-items:center;
  gap:12px;
}

.profile-shortcut b,.profile-shortcut small{display:block}

.profile-shortcut b{font-size:12px}

.profile-shortcut small{
  font-size:11px;
  color:var(--muted);
  margin-top:3px;
}

.avatar-placeholder{
  width:40px;
  height:40px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:var(--blue-pale);
  color:var(--blue);
}

.main{
  margin-left:250px;
  min-height:100vh;
}

.topbar{
  height:76px;
  background:var(--surface);
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 36px;
  position:sticky;
  top:0;
  z-index:4;
}

.top-title{font:800 16px Georgia}

.top-brand-mobile{display:none}

.top-actions{
  display:flex;
  align-items:center;
  gap:13px;
}

.theme-toggle{
  width:42px;
  height:42px;
  border:1px solid var(--line);
  border-radius:50%;
  background:var(--bg);
  color:var(--ink);
  display:grid;
  place-items:center;
  font-size:22px;
}

.theme-toggle .sun{display:none}

:root[data-theme=dark] .theme-toggle .sun{display:inline}
:root[data-theme=dark] .theme-toggle .moon{display:none}

.top-avatar{
  width:42px;
  height:42px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:var(--blue-pale);
  color:var(--blue);
}

.content{
  max-width:1450px;
  margin:auto;
  padding:30px 36px 60px;
}

.welcome{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:22px;
}

.welcome h1,.page-intro h1{
  font:800 28px Georgia;
  margin:7px 0;
}

.welcome p,.page-intro p{
  color:var(--muted);
  margin:0;
  line-height:1.6;
}

.date-pill,.soft-tag{
  background:var(--blue-pale);
  color:var(--blue);
  border-radius:30px;
  padding:9px 13px;
  font-size:11px;
  font-weight:750;
}

.stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin:20px 0;
}

.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:19px;
  padding:21px;
  box-shadow:var(--shadow);
}

.stat{
  display:flex;
  align-items:center;
  gap:14px;
}

.stat-symbol{
  width:45px;
  height:45px;
  border-radius:15px;
  background:var(--blue-pale);
  color:var(--blue);
  display:grid;
  place-items:center;
}

.stat small{
  display:block;
  color:var(--muted);
  font-weight:600;
}

.stat strong{
  display:block;
  font:800 23px Georgia;
  margin-top:4px;
}

.stat em{
  font:600 12px 'DM Sans';
  color:var(--muted);
}

.home-grid{
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(280px,.85fr);
  gap:19px;
}

.main-stack,.side-stack{
  display:grid;
  gap:18px;
  align-content:start;
}

.hero{
  position:relative;
  min-height:255px;
  border-radius:21px;
  overflow:hidden;
  background:#71340f;
  color:white;
  isolation:isolate;
}

.hero-image{
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(83,35,8,.94),rgba(65,28,8,.72) 55%,rgba(35,15,7,.52)),url('https://images.unsplash.com/photo-1504052434569-70ad5836ab65?w=1200&auto=format&fit=crop&q=85') center/cover;
  z-index:-1;
  opacity:.9;
}

.hero-content{
  padding:28px;
  max-width:65%;
}

.hero-kicker{
  font-size:10px;
  letter-spacing:1.3px;
  font-weight:800;
  color:#f5e7d2;
}

.hero h2{
  font:800 27px/1.15 Georgia;
  margin:10px 0;
}

.hero p{
  color:#f5e7d2;
  line-height:1.6;
  max-width:370px;
}

.white-btn{
  display:inline-flex;
  gap:15px;
  align-items:center;
  background:white;
  color:var(--blue-dark);
  border:0;
  border-radius:11px;
  padding:12px 16px;
  font-weight:800;
  margin-top:9px;
}

.section-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:14px;
}

.section-heading h2,.card h2{
  font:800 16px Georgia;
  margin:0;
}

.section-heading a{
  font-size:11px;
  color:var(--blue);
  font-weight:750;
}

.progress-card>p,.consistency p{
  color:var(--muted);
  font-size:12px;
}

.progress-meta{
  display:flex;
  justify-content:space-between;
  font-size:12px;
  color:var(--muted);
  margin:17px 0 8px;
}

.progress-meta b{color:var(--blue)}

.progress{
  height:8px;
  background:var(--blue-pale);
  border-radius:20px;
  overflow:hidden;
}

.progress i{
  height:100%;
  display:block;
  background:var(--blue);
  border-radius:20px;
}

.muted-row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  color:var(--muted);
  font-size:11px;
  margin-top:12px;
}

.muted-row a{
  color:var(--blue);
  font-weight:700;
}

.consistency{
  background:linear-gradient(145deg,var(--blue-pale),var(--surface));
}

.streak-number{
  display:block;
  color:var(--blue);
  font:800 34px Georgia;
  margin:14px 0 3px;
}

.streak-number small{font:700 12px 'DM Sans'}

.week{
  display:flex;
  justify-content:space-between;
  margin-top:18px;
}

.week span{
  width:29px;
  height:29px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:var(--surface);
  color:var(--muted);
  font-size:11px;
}

.empty-inline{
  padding:22px 4px;
  color:var(--muted);
  font-size:13px;
}

.verse-card blockquote,.key-verse{
  font:600 18px/1.7 Georgia;
  color:var(--ink);
  margin:12px 0;
}

.verse-card small,.muted{color:var(--muted)}

.page-intro{margin-bottom:23px}

.back-link{
  display:inline-block;
  color:var(--blue);
  font-weight:750;
  font-size:12px;
  margin-bottom:17px;
}

.month-list{display:grid;gap:12px}

.month-row{
  min-height:86px;
  border-radius:17px;
  padding:17px 24px;
  color:#fff;
  background:var(--month-gradient);
  display:flex;
  align-items:center;
  justify-content:space-between;
  box-shadow:0 5px 13px #152d4510;
  transition:transform .18s;
}

.month-row.available:hover{transform:translateY(-2px)}
.month-row.locked{filter:saturate(.85);cursor:not-allowed}

.month-title-line{
  display:flex;
  align-items:center;
  gap:12px;
}

.month-title-line h2{
  font:500 23px 'Georgia',Georgia,serif;
  margin:0;
}

.month-status{
  border-radius:30px;
  padding:5px 10px;
  background:#ffffff2d;
  font-size:10px;
  font-weight:750;
  color:#fff;
}

.month-row p{
  margin:6px 0 0;
  color:#ffffffd9;
  font-size:14px;
  font-weight:600;
}

.month-chevron{
  font:300 30px Arial;
  color:#ffffffd8;
}

.notice{
  display:flex;
  gap:12px;
  align-items:flex-start;
  background:var(--blue-pale);
  color:var(--blue);
  border-radius:13px;
  padding:14px 16px;
  margin-top:18px;
}

.notice p{
  margin:0;
  font-size:12px;
  line-height:1.6;
}

.day-list{display:grid;gap:9px}

.day-row{
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px 16px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:14px;
}

.day-row.day-locked{opacity:.55}

.day-number{
  width:43px;
  height:43px;
  border-radius:13px;
  background:var(--blue-pale);
  color:var(--blue);
  display:grid;
  place-items:center;
  font:800 15px Georgia;
}

.day-detail{flex:1}
.day-detail b,.day-detail small{display:block}

.day-detail small{
  color:var(--muted);
  margin-top:4px;
}

.day-status{
  font-size:11px;
  font-weight:750;
  color:var(--blue);
}

.chapter-banner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:linear-gradient(110deg,#873b13,#321607);
  border-radius:20px;
  color:white;
  padding:24px 28px;
  margin-bottom:18px;
}

.banner-label{
  font-size:10px;
  font-weight:800;
  letter-spacing:1px;
  color:#f5e7d2;
}

.chapter-banner h2{
  font:800 27px Georgia;
  margin:7px 0;
}

.chapter-banner p{
  color:#f5e7d2;
  margin:0;
}

.banner-art{color:#ffffffb5}
.banner-art svg{width:85px;height:85px}

.lesson-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 285px;
  gap:18px;
}

.lesson-main{
  display:grid;
  gap:16px;
  align-content:start;
}

.lesson-main .card p{
  color:var(--muted);
  line-height:1.8;
}

.lesson-main h3{
  font:800 14px Georgia;
  margin:20px 0 5px;
}

.reflection-questions{
  padding-left:22px;
  color:var(--muted);
  line-height:1.9;
}

.reflection-questions li{padding:4px 0 4px 5px}

.attendance-panel{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
}

.attendance-panel p{
  margin:6px 0 0;
  font-size:12px;
  color:var(--muted);
}

.primary-btn:disabled{opacity:.6}

.side-item{
  display:flex;
  align-items:center;
  gap:11px;
  padding:14px 0;
  border-bottom:1px solid var(--line);
}

.side-item>span{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:var(--blue-pale);
  color:var(--blue);
  font-weight:800;
}

.side-item b,.side-item small{display:block}
.side-item b{font-size:12px}

.side-item small{
  color:var(--muted);
  font-size:10px;
  margin-top:3px;
}

.field{
  width:100%;
  padding:13px 14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--bg);
  color:var(--ink);
  outline:none;
  margin:7px 0 12px;
}

.field:focus{border-color:#c99b6a}

.form-label{
  display:block;
  font-size:12px;
  font-weight:750;
  margin-top:13px;
}

.profile-form{max-width:600px}

.calendar-grid{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:9px;
  margin-top:18px;
}

.calendar-grid span{
  aspect-ratio:1;
  border-radius:10px;
  background:var(--bg);
  display:grid;
  place-items:center;
  color:var(--muted);
}

/* MODALS */

.modal-backdrop{
  display:none;
  position:fixed;
  inset:0;
  background:#0b1728b5;
  z-index:30;
  padding:20px;
  align-items:center;
  justify-content:center;
}

.modal-backdrop.show{display:flex}

.reader-modal{
  width:min(850px,100%);
  max-height:92vh;
  background:var(--surface);
  border-radius:20px;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  box-shadow:0 25px 90px #0004;
}

.reader-head{
  padding:19px 23px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:1px solid var(--line);
}

.reader-head h2{
  font:800 20px Georgia;
  margin:4px 0;
}

.close-reader,.close-result{
  border:0;
  background:var(--blue-pale);
  color:var(--blue);
  width:38px;
  height:38px;
  border-radius:50%;
  font-size:24px;
}

.translation-tabs{
  display:flex;
  gap:7px;
  overflow-x:auto;
  padding:13px 20px;
  border-bottom:1px solid var(--line);
}

.translation{
  white-space:nowrap;
  border:0;
  border-radius:9px;
  background:var(--bg);
  color:var(--muted);
  padding:9px 12px;
  font-size:10px;
  font-weight:800;
}

.translation.selected{
  background:var(--blue);
  color:white;
}

.reader-tools{
  display:flex;
  gap:15px;
  align-items:center;
  flex-wrap:wrap;
  padding:12px 20px;
  background:var(--bg);
  font-size:11px;
  color:var(--muted);
}

.reader-tools label{
  display:flex;
  align-items:center;
  gap:6px;
}

.reader-tools select,.reader-tools button{
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--surface);
  color:var(--ink);
  padding:6px;
}

.reader-body{
  padding:20px 26px;
  overflow:auto;
  font:18px/1.95 Georgia,serif;
  color:var(--ink);
}

.reader-body h3{font:800 20px Georgia}

.reader-body sup{
  color:var(--blue);
  font:700 11px 'DM Sans';
}

.reader-note{
  font:12px/1.6 'DM Sans';
  color:var(--muted);
  background:var(--blue-pale);
  padding:12px;
  border-radius:10px;
}

.reader-footer{
  padding:12px 20px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  font-size:11px;
  color:var(--muted);
}

/* QUIZ */

.quiz-list{display:grid;gap:13px}

.question legend{
  font-weight:700;
  line-height:1.6;
  padding:0 0 12px;
}

.question legend b{
  color:var(--blue);
  margin-right:6px;
}

.answer-option{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:10px;
  margin:7px 0;
  cursor:pointer;
  color:var(--muted);
}

.answer-option:has(input:checked){
  border-color:var(--blue);
  background:var(--blue-pale);
  color:var(--ink);
}

.answer-option input{accent-color:var(--blue)}

.answer-letter{
  width:25px;
  height:25px;
  border-radius:8px;
  background:var(--bg);
  display:grid;
  place-items:center;
  font-size:11px;
  font-weight:800;
  color:var(--blue);
}

.answer-ref{display:none}

.submit-quiz{
  width:100%;
  padding:15px;
}

.result-modal{
  position:fixed;
  inset:0;
  z-index:40;
  background:#101b2bcc;
  display:grid;
  place-items:center;
  padding:15px;
  overflow:auto;
}

.result-modal[hidden]{display:none}

.result-card{
  position:relative;
  background:var(--surface);
  color:var(--ink);
  border-radius:20px;
  padding:25px;
  max-width:650px;
  width:100%;
  max-height:90vh;
  overflow:auto;
}

.close-result{
  position:absolute;
  right:17px;
  top:17px;
}

.result-score{
  font:800 42px Georgia;
  color:var(--blue);
}

.result-status{
  display:inline-block;
  padding:5px 10px;
  border-radius:20px;
  font-size:10px;
  font-weight:800;
}

.passed{background:#dff5e8;color:#17834b}
.failed{background:#ffebdf;color:#b54b20}

.review-row{
  padding:10px 0;
  border-bottom:1px solid var(--line);
}

.review-row p{font-size:12px}
.review-row small{color:var(--muted)}
.correct-answer{color:#17834b}

.bottom-nav{display:none}

/* SUCCESS POPUP */

.success-overlay{
  position:fixed;
  inset:0;
  z-index:60;
  background:#07172dbb;
  display:grid;
  place-items:center;
  padding:18px;
  animation:fadeIn .2s;
}

.success-dialog{
  position:relative;
  width:min(430px,100%);
  background:var(--surface);
  border-radius:26px;
  padding:34px 28px 27px;
  text-align:center;
  box-shadow:0 30px 100px #0005;
  animation:popIn .3s;
}

.success-close{
  position:absolute;
  right:16px;
  top:15px;
  width:34px;
  height:34px;
  border:0;
  border-radius:50%;
  background:var(--bg);
  color:var(--muted);
  font-size:23px;
}

.success-mark{
  width:82px;
  height:82px;
  border-radius:50%;
  background:#def5e7;
  color:#18864b;
  display:grid;
  place-items:center;
  margin:3px auto 18px;
  box-shadow:0 0 0 9px #def5e755;
}

.success-mark svg{
  width:44px;
  height:44px;
  stroke-width:3;
}

.success-label{
  font-size:10px;
  letter-spacing:1.3px;
  color:#18864b;
  font-weight:900;
}

.success-dialog h2{
  font:800 30px Georgia;
  margin:10px 0;
}

.success-dialog>p{
  font-size:14px;
  line-height:1.7;
  color:var(--muted);
  margin:0 auto 20px;
  max-width:330px;
}

.success-study{
  display:flex;
  align-items:center;
  text-align:left;
  gap:13px;
  padding:14px;
  background:var(--bg);
  border:1px solid var(--line);
  border-radius:15px;
  margin:0 0 17px;
}

.success-study>span{font-size:25px}
.success-study b,.success-study small{display:block}

.success-study small{
  font-size:11px;
  color:var(--muted);
  margin-top:4px;
}

.success-continue{width:100%}

/* TOAST */

.toast{
  position:fixed;
  bottom:25px;
  left:50%;
  transform:translate(-50%,15px);
  opacity:0;
  background:var(--ink);
  color:var(--surface);
  padding:12px 18px;
  border-radius:12px;
  z-index:80;
  transition:.25s;
  max-width:90%;
  text-align:center;
}

.toast.visible{
  opacity:1;
  transform:translate(-50%,0);
}

/* LOGIN AND REGISTRATION */

.auth-wrap{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  padding:25px;
}

.auth-wrap>.brand{margin-bottom:25px}

.auth-card{
  width:min(480px,100%);
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:22px;
  padding:30px;
  box-shadow:var(--shadow);
}

.auth-card h1{
  font:800 28px Georgia;
  margin:9px 0;
}

.auth-card>p{
  color:var(--muted);
  line-height:1.6;
}

.full-btn{
  width:100%;
  margin-top:12px;
}

.auth-switch{
  text-align:center;
  margin-top:20px;
  color:var(--muted);
  font-size:12px;
}

.auth-switch a{
  color:var(--blue);
  font-weight:800;
}

.preview-note{
  display:block;
  text-align:center;
  color:var(--muted);
  font-size:10px;
  line-height:1.5;
  margin-top:18px;
}

/* ANIMATIONS */

@keyframes fadeIn{
  from{opacity:0}
  to{opacity:1}
}

@keyframes popIn{
  from{opacity:0;transform:translateY(12px) scale(.97)}
  to{opacity:1;transform:none}
}

/* TABLET */

@media(max-width:1100px){
  .sidebar{width:220px}
  .main{margin-left:220px}
  .content{padding:25px}
  .home-grid{grid-template-columns:1fr}
  .side-stack{grid-template-columns:1fr 1fr}
}

/* MOBILE */

@media(max-width:700px){

  body{font-size:13px}

  .public-nav{
    height:68px;
    padding:0 16px;
  }

  .public-nav .brand img{
    width:125px;
    height:48px;
  }

  .public-nav>div{gap:13px}

  .public-nav .primary-btn{
    padding:10px 12px;
    font-size:11px;
  }

  .public-main{padding:20px 15px 40px}

  .public-hero{
    grid-template-columns:1fr;
    gap:22px;
    min-height:0;
  }

  .public-copy h1{font-size:37px}

  .public-copy>p{font-size:14px}

  .public-image{
    height:250px;
    grid-row:1;
  }

  .hero-actions{display:grid}
  .hero-actions>*{width:100%}

  .public-features{
    grid-template-columns:1fr;
    gap:11px;
    margin:30px 0;
  }

  .public-features>div{padding:19px}

  .public-community{
    grid-template-columns:1fr;
    padding:20px 0;
  }

  .public-footer{
    padding:18px 15px;
    gap:12px;
  }

  .sidebar{display:none}
  .main{margin:0}

  .topbar{
    height:62px;
    padding:0 15px;
  }

  .top-title{display:none}

  .top-brand-mobile{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:0;
  }

  .top-brand-mobile img{
    width:125px;
    height:46px;
    object-fit:contain;
  }

  .theme-toggle{
    width:37px;
    height:37px;
  }

  .top-avatar{
    width:37px;
    height:37px;
  }

  .content{padding:20px 14px 105px}

  .welcome{
    align-items:flex-start;
    gap:12px;
  }

  .welcome h1{font-size:22px}
  .welcome p{font-size:12px}
  .date-pill{display:none}

  .stats{gap:8px}

  .card{
    padding:16px;
    border-radius:16px;
  }

  .stat{
    display:block;
    padding:13px;
  }

  .stat-symbol{
    width:34px;
    height:34px;
    margin-bottom:8px;
  }

  .stat strong{font-size:18px}
  .stat small{font-size:10px}

  .home-grid,.lesson-layout{grid-template-columns:1fr}
  .side-stack{grid-template-columns:1fr}

  .hero{min-height:230px}
  .hero-content{padding:22px;max-width:83%}
  .hero h2{font-size:23px}
  .hero p{font-size:12px}

  .month-row{
    min-height:82px;
    padding:15px 16px;
    border-radius:15px;
  }

  .month-title-line h2{font-size:21px}
  .month-row p{font-size:12px}
  .month-status{font-size:9px;padding:5px 8px}
  .month-chevron{font-size:26px}

  .day-row{padding:11px;gap:10px}
  .day-number{width:38px;height:38px}
  .day-status{font-size:10px}

  .chapter-banner{padding:19px}
  .chapter-banner h2{font-size:23px}
  .banner-art svg{width:60px;height:60px}

  .lesson-side{order:-1}

  .attendance-panel{
    align-items:flex-start;
    flex-direction:column;
  }

  .attendance-panel .primary-btn{width:100%}

  .reader-modal{
    max-height:94vh;
    border-radius:16px;
  }

  .modal-backdrop{padding:8px}

  .reader-head{padding:14px 16px}
  .reader-head h2{font-size:17px}

  .reader-tools{
    gap:9px;
    padding:10px 13px;
  }

  .reader-body{
    padding:16px;
    font-size:17px;
  }

  .reader-footer{
    align-items:flex-start;
    flex-direction:column;
  }

  .bottom-nav{
    display:flex;
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    min-height:75px;
    padding:8px 5px calc(8px + env(safe-area-inset-bottom));
    background:var(--surface);
    border-top:1px solid var(--line);
    justify-content:space-around;
    align-items:center;
    z-index:15;
    box-shadow:0 -8px 22px #4a2a180d;
  }

  .bottom-nav .nav-link{
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:center;
    gap:5px;
    padding:10px 8px;
    border-radius:30px;
    color:var(--muted);
    font-size:10px;
    white-space:nowrap;
  }

  .bottom-nav .nav-link svg{
    width:19px;
    height:19px;
  }

  .bottom-nav .nav-link.active{
    background:var(--blue);
    color:#fff;
    box-shadow:0 5px 14px #71340f40;
    padding:11px 12px;
  }

  .bottom-nav .nav-link:not(.active){
    padding-left:5px;
    padding-right:5px;
  }

  .page-intro h1{font-size:23px}

  .muted-row{flex-direction:column}

  .result-card{padding:20px}

  .success-dialog{padding:30px 20px 22px}

  .auth-card{
    padding:23px;
  }

  .auth-card h1{font-size:24px}
}

/* DAILY WORD WARM VISUAL SYSTEM */

:root{
  color-scheme:light;
  --blue:#78370f;
  --blue-dark:#4b210b;
  --blue-pale:#f2e6d6;
  --bg:#faf6ee;
  --surface:#fffdfa;
  --ink:#26170f;
  --muted:#74675b;
  --line:#e8ddd0;
  --shadow:0 12px 32px rgba(65,35,15,.08);
  --cream:#faf6ee;
  --burnt:#873b13;
  --espresso:#1a0d08;
  --gold:#d6c59d;
  --success:#187647;
  --success-bg:#e4f3e8;
  --danger:#a64224;
  --danger-bg:#fae9e2;
}

:root[data-theme="dark"]{
  color-scheme:dark;
  --bg:#1b100b;
  --surface:#2b1b12;
  --ink:#fff5e8;
  --muted:#c7b7a5;
  --line:#4a3425;
  --blue-pale:#49301f;
  --blue:#d6a66d;
  --blue-dark:#f2d9b7;
  --shadow:0 12px 32px rgba(0,0,0,.28);
  --success:#8dd6a5;
  --success-bg:#203b2b;
  --danger:#ffb49c;
  --danger-bg:#48271e;
}

html,body{
  background:var(--bg);
  color:var(--ink);
}

body{font-family:'Ranade',sans-serif}

h1,h2,h3,h4,.brand,.top-title,.public-copy h1,.hero h2,.chapter-banner h2,.month-title-line h2,.success-dialog h2{
  font-family:'Ranade',sans-serif;
}

p,small,label,input,button,select,textarea,.nav-link,.eyebrow,.badge,.month-status{
  font-family:'Ranade',sans-serif;
}

.card,.stat,.public-features>div,.empty-reflections,.auth-card,.reader-modal,.success-dialog,.quiz-card,.note-card,.profile-card,.attendance-card,.community-card,.day-row,.list-card,.panel,.settings-card{
  background:var(--surface);
  color:var(--ink);
  border-color:var(--line);
}

.sidebar,.topbar,.bottom-nav,.reader-modal,.reader-head,.reader-footer,.auth-card,.success-dialog{
  background:var(--surface);
  color:var(--ink);
  border-color:var(--line);
}

input,select,textarea,.input,.form-control{
  background:var(--surface);
  color:var(--ink);
  border:1px solid var(--line);
}

input::placeholder,textarea::placeholder{
  color:var(--muted);
  opacity:.85;
}

.primary-btn,.full-btn,.success-continue,.nav-link.active,.bottom-nav .nav-link.active{
  background:var(--burnt);
  color:#fffaf2;
}

.secondary-btn{
  background:var(--blue-pale);
  color:var(--blue-dark);
  border:1px solid var(--line);
}

:root[data-theme="dark"] .secondary-btn{color:var(--ink)}

:root[data-theme="dark"] .card,
:root[data-theme="dark"] .stat,
:root[data-theme="dark"] .public-features>div,
:root[data-theme="dark"] .empty-reflections,
:root[data-theme="dark"] .auth-card,
:root[data-theme="dark"] .reader-modal,
:root[data-theme="dark"] .success-dialog,
:root[data-theme="dark"] .quiz-card,
:root[data-theme="dark"] .note-card,
:root[data-theme="dark"] .profile-card,
:root[data-theme="dark"] .attendance-card,
:root[data-theme="dark"] .community-card,
:root[data-theme="dark"] .day-row,
:root[data-theme="dark"] .list-card,
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .settings-card{
  background:var(--surface);
  color:var(--ink);
  border-color:var(--line);
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] .input,
:root[data-theme="dark"] .form-control{
  background:#21140e;
  color:var(--ink);
  border-color:var(--line);
}

:root[data-theme="dark"] .muted,
:root[data-theme="dark"] .text-muted,
:root[data-theme="dark"] .card p,
:root[data-theme="dark"] .stat small{
  color:var(--muted);
}

.theme-toggle{
  background:var(--surface);
  color:var(--ink);
  border:1px solid var(--line);
}

.bottom-nav{background:var(--surface)}

.month-row{color:#fffaf2}

.chapter-banner{
  background:linear-gradient(115deg,#873b13,#1a0d08);
  color:#fffaf2;
}

.chapter-banner p{color:#f5e7d2}

.reader-body{
  background:var(--surface);
  color:var(--ink);
}

.reader-tools,.reader-footer,.success-study{
  background:var(--bg);
  color:var(--ink);
  border-color:var(--line);
}

.success-overlay{background:rgba(26,13,8,.72)}
.success-dialog>p{color:var(--muted)}

.toast{
  background:var(--ink);
  color:var(--surface);
}

@media(max-width:700px){
  .bottom-nav{
    background:var(--surface);
    border-top:1px solid var(--line);
  }

  .bottom-nav .nav-link.active{
    background:var(--burnt);
    color:#fffaf2;
  }
}

/* RANADE TYPOGRAPHY */

html,body,button,input,select,textarea,h1,h2,h3,h4,h5,h6,
p,span,label,a,small,strong,em,li,th,td,.brand,.top-title,
.nav-link,.month-title-line,.chapter-banner,.reader-modal,.success-dialog{
  font-family:'Ranade',sans-serif!important;
}

/* LOGIN AND REGISTER RESPONSIVE HEADER */

.auth-wrap{
  position:relative;
  width:100%;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:100px 24px 35px;
}

/* Website logo — top left */

.auth-wrap>.brand{
  position:absolute;
  top:28px;
  left:max(24px,calc((100% - 1120px) / 2));
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:0;
  margin:0;
  z-index:2;
}

.auth-wrap>.brand img{
  width:150px;
  height:58px;
  object-fit:contain;
}

/* Theme toggle — top right */

.auth-wrap>.auth-theme-toggle{
  position:absolute;
  top:28px;
  right:max(24px,calc((100% - 1120px) / 2));
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  margin:0;
  z-index:3;
}

/* Login and registration card */

.auth-card{
  width:min(480px,100%);
  margin:0 auto;
  background:var(--surface);
  color:var(--ink);
  border:1px solid var(--line);
  border-radius:22px;
  padding:30px;
  box-shadow:var(--shadow);
}

/* Form fields */

.auth-card .form-label{
  display:block;
  margin-top:13px;
  color:var(--ink);
  font-weight:700;
}

.auth-card .field{
  width:100%;
  min-height:46px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--surface);
  color:var(--ink);
}

.auth-card .field:focus{
  outline:none;
  border-color:var(--blue);
}

.auth-card .full-btn{
  width:100%;
  min-height:48px;
  margin-top:14px;
}

/* TABLET AND MOBILE RESPONSIVENESS */

@media(max-width:700px){

  .auth-wrap{
    min-height:100vh;
    min-height:100svh;
    justify-content:flex-start;
    padding:90px 16px 30px;
  }

  .auth-wrap>.brand{
    top:18px;
    left:16px;
    gap:0;
  }

  .auth-wrap>.brand img{
    width:125px;
    height:46px;
  }

  .auth-wrap>.auth-theme-toggle{
    top:16px;
    right:16px;
    width:40px;
    height:40px;
  }

  .auth-card{
    width:100%;
    max-width:480px;
    margin:10px auto 0;
    padding:23px 19px;
    border-radius:18px;
  }

  .auth-card h1{
    font-size:25px;
    line-height:1.2;
  }
}

/* VERY SMALL MOBILE SCREENS */

@media(max-width:360px){

  .auth-wrap{
    padding-left:12px;
    padding-right:12px;
  }

  .auth-wrap>.brand{left:12px}

  .auth-wrap>.brand img{
    width:112px;
    height:42px;
  }

  .auth-wrap>.auth-theme-toggle{
    right:12px;
    width:38px;
    height:38px;
  }

  .auth-card{padding:19px 15px}
}

/* REMOVE BACK-TO-HOMEPAGE LINKS AND AUTH HEADINGS */

.auth-wrap .back-link,
.auth-card .back-link{
  display:none!important;
}

.auth-card h1{display:none!important}

/* =========================================
   LOGO-ONLY BRANDING
   ========================================= */

/* Hide any remaining brand text beside the logo */

.brand span,
.brand b,
.top-brand-mobile b{
  display:none!important;
}

/* Keep brand containers aligned around the logo only */

.public-nav .brand,
.public-footer .brand,
.sidebar .brand,
.auth-wrap>.brand,
.top-brand-mobile{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:0;
}

/* Desktop public header and footer logo */

.public-nav .brand img,
.public-footer .brand img{
  display:block;
  width:150px;
  height:58px;
  max-width:100%;
  object-fit:contain;
}

/* Desktop sidebar logo */

.sidebar .brand img{
  display:block;
  width:165px;
  height:65px;
  max-width:100%;
  object-fit:contain;
}

/* Mobile app header logo */

.top-brand-mobile img{
  display:block;
  width:125px;
  height:46px;
  object-fit:contain;
}

/* Login and registration logo */

.auth-wrap>.brand img{
  display:block;
  width:150px;
  height:58px;
  object-fit:contain;
}

/* Keep logos from shrinking in flex layouts */

.brand img,
.top-brand-mobile img{
  flex:none;
}

/* Mobile logo sizing */

@media(max-width:700px){

  .public-nav .brand img,
  .public-footer .brand img,
  .auth-wrap>.brand img{
    width:125px;
    height:46px;
  }

  .sidebar .brand img{
    width:140px;
    height:54px;
  }

  .top-brand-mobile img{
    width:115px;
    height:44px;
  }
}

/* Extra-small screens */

@media(max-width:360px){

  .public-nav .brand img,
  .public-footer .brand img,
  .auth-wrap>.brand img{
    width:112px;
    height:42px;
  }

  .top-brand-mobile img{
    width:105px;
    height:40px;
  }
}

/* DASHBOARD BIBLE STUDY BUTTON — DARK MODE FIX */

.white-btn {
  background: #fffdfa;
  color: #4b210b;
  transition: background .2s ease, color .2s ease;
}

:root[data-theme="dark"] .white-btn {
  background: #2b1302;
  color: #fff5e8;
  border: 1px solid #65452e;
}
