/* ============================================================
   NEKUMI — hoja de estilos
   Un lector de manhwa que se apoya en el gesto real del medio:
   tiras verticales, no tarjetas uniformes.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=League+Gothic&family=Work+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root{
  --bg: #0E0B14;
  --bg-raised: #17111F;
  --bg-raised-2: #1E1729;
  --paper: #F2EEE9;
  --muted: #9C93AA;
  --muted-dim: #6C6478;
  --accent: #FF3D68;
  --accent-soft: rgba(255,61,104,0.14);
  --ongoing: #3DDC97;
  --finished: #FFC857;
  --line: rgba(242,238,233,0.09);
  --display: 'League Gothic', 'Arial Narrow', sans-serif;
  --body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 3px;
  --container: 1180px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; }

:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Nav ---------- */
.nav{
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(14,11,20,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row{
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.brand{
  font-family: var(--display);
  font-size: 30px;
  letter-spacing: 0.5px;
  line-height: 1;
  white-space: nowrap;
}
.brand span{ color: var(--accent); }

.search{
  flex: 1;
  max-width: 420px;
  position: relative;
}
.search input{
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--paper);
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--body);
}
.search input::placeholder{ color: var(--muted-dim); }
.search input:focus{ border-color: var(--accent); outline: none; }

.nav-links{
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
  color: var(--muted);
}
.nav-links a:hover, .nav-links a.current{ color: var(--paper); }

.menu-toggle{
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--paper);
  border-radius: var(--radius);
  font-size: 18px;
  padding: 6px 12px;
  cursor: pointer;
  margin-left: 8px;
}
.nav-mobile{
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--line);
  padding: 6px 28px 14px;
}
.nav-mobile a{
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}
.nav-mobile a:last-child{ border-bottom: none; }
.nav.menu-open .nav-mobile{ display: flex; }

@media (max-width: 720px){
  .nav-links{ display: none; }
  .search{ max-width: none; }
  .menu-toggle{ display: block; }
}

/* search suggestions dropdown */
.search{ position: relative; }
.search-suggestions{
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  z-index: 60;
  max-height: 320px;
  overflow-y: auto;
}
.suggestion{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 14px;
}
.suggestion:hover{ background: var(--bg-raised-2); }
.suggestion img{
  width: 32px; height: 42px; object-fit: cover; border-radius: 2px; flex-shrink: 0;
}

/* ---------- Hero ---------- */
.hero{
  padding: 56px 0 40px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-copy h1{
  font-family: var(--display);
  font-size: clamp(52px, 8vw, 92px);
  line-height: 0.92;
  margin: 0 0 20px;
  letter-spacing: 0.5px;
}
.hero-copy h1 em{
  font-style: normal;
  color: var(--accent);
}
.hero-copy p{
  color: var(--muted);
  max-width: 46ch;
  font-size: 17px;
  margin: 0 0 26px;
}
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #170A0E;
  font-weight: 700;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: 15px;
}
.btn:hover{ filter: brightness(1.08); }
.btn.ghost{
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--line);
}
.btn.ghost:hover{ border-color: var(--paper); }

/* staggered strip of covers */
.strip{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  height: 420px;
}
.strip a{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-raised);
}
.strip a img{ width: 100%; height: 100%; object-fit: cover; }
.strip a:nth-child(1){ align-self: start; height: 78%; }
.strip a:nth-child(2){ align-self: end; height: 92%; }
.strip a:nth-child(3){ align-self: start; height: 100%; }
.strip a:nth-child(4){ align-self: end; height: 70%; }
.strip a:nth-child(5){ align-self: start; height: 85%; }

@media (max-width: 900px){
  .hero{ grid-template-columns: 1fr; padding-top: 32px; }
  .strip{ height: 260px; grid-template-columns: repeat(4,1fr); }
}
@media (max-width: 560px){
  .strip{ display: none; }
}

/* ---------- Section headings ---------- */
.section{ padding: 46px 0; }
.section-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 16px;
}
.section-head h2{
  font-family: var(--display);
  font-size: 34px;
  letter-spacing: 0.3px;
  margin: 0;
}
.section-head .count{
  color: var(--muted-dim);
  font-size: 14px;
}

/* ---------- Chips / filters ---------- */
.chips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.chip{
  border: 1px solid var(--line);
  background: var(--bg-raised);
  color: var(--muted);
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 13.5px;
  cursor: pointer;
}
.chip:hover{ color: var(--paper); border-color: var(--muted); }
.chip.active{
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--paper);
}

/* ---------- Masonry-ish grid ---------- */
.grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 22px 18px;
}
.card{
  position: relative;
}
.card .card-link{ display: block; }
.card .cover{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-raised);
  aspect-ratio: 3 / 4.3;
  margin-bottom: 10px;
}
.card:nth-child(3n+1) .cover{ aspect-ratio: 3 / 4.9; }
.card:nth-child(4n+2) .cover{ aspect-ratio: 3 / 3.9; }
.card .cover img{ width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .cover img{ transform: scale(1.04); }
.fav-toggle{
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(14,11,20,0.7);
  color: var(--paper);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fav-toggle.active{ color: var(--accent); }
.fav-toggle:hover{ background: rgba(14,11,20,0.9); }
.badge{
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(14,11,20,0.78);
}
.badge.ongoing{ color: var(--ongoing); }
.badge.finished{ color: var(--finished); }
.rating{
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(14,11,20,0.78);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 3px;
}
.card h3{
  font-size: 14.5px;
  font-weight: 600;
  margin: 0 0 2px;
  line-height: 1.3;
}
.card .meta{
  font-size: 12.5px;
  color: var(--muted-dim);
}
.empty-state{
  color: var(--muted);
  padding: 40px 0;
  font-size: 15px;
}

/* continue-reading shelf */
.shelf{
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.shelf-item{
  flex: 0 0 200px;
}
.shelf-item .cover{ aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; background: var(--bg-raised); margin-bottom: 8px; position: relative;}
.shelf-item .cover img{ width:100%; height:100%; object-fit: cover; }
.progress-bar{
  position: absolute; left:0; right:0; bottom:0; height: 4px; background: rgba(0,0,0,.5);
}
.progress-bar span{ display:block; height:100%; background: var(--accent); }
.shelf-item h4{ font-size: 13.5px; margin: 0 0 2px; }
.shelf-item p{ font-size: 12px; color: var(--muted-dim); margin:0; }

/* ---------- Footer ---------- */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 34px 0 46px;
  color: var(--muted-dim);
  font-size: 13.5px;
}

/* ============================================================
   Página de ficha (manga.html)
   ============================================================ */
.detail-back{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  margin: 26px 0 18px;
}
.detail-back:hover{ color: var(--paper); }

.detail-head{
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.detail-cover{
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4.3;
  background: var(--bg-raised);
}
.detail-cover img{ width: 100%; height: 100%; object-fit: cover; }

.detail-title{
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 60px);
  line-height: 0.96;
  margin: 0;
}
.detail-title-row{
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.detail-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}
.detail-meta .status{ font-weight: 600; }
.detail-meta .status.ongoing{ color: var(--ongoing); }
.detail-meta .status.finished{ color: var(--finished); }
.detail-meta .rating-inline{ color: var(--accent); font-weight: 700; }

.detail-synopsis{
  color: var(--paper);
  max-width: 62ch;
  margin: 0 0 20px;
  font-size: 15.5px;
}
.detail-genres{ display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tag{
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--muted);
}

@media (max-width: 720px){
  .detail-head{ grid-template-columns: 150px 1fr; gap: 22px; }
}

.chapter-list-head{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.chapter-list-head h2{
  font-family: var(--display);
  font-size: 26px;
  margin: 0;
}
.sort-toggle{
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13.5px;
  cursor: pointer;
}
.sort-toggle:hover{ color: var(--paper); }

.chapter-row{
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
}
.chapter-row:hover{ background: var(--bg-raised); }
.chapter-num{
  font-family: var(--display);
  font-size: 26px;
  color: var(--muted-dim);
  width: 56px;
  flex-shrink: 0;
}
.chapter-info h4{ margin: 0 0 2px; font-size: 15px; font-weight: 600; }
.chapter-info p{ margin: 0; font-size: 12.5px; color: var(--muted-dim); }
.chapter-row .read-mark{
  margin-left: auto;
  font-size: 12px;
  color: var(--ongoing);
  flex-shrink: 0;
}
.chapter-row.is-read .chapter-num,
.chapter-row.is-read h4{ color: var(--muted-dim); }
.chapter-row .read-check{
  margin-left: auto;
  color: var(--muted-dim);
  font-size: 14px;
  flex-shrink: 0;
}

.similar-section{ margin-top: 54px; }
.similar-section h2{
  font-family: var(--display);
  font-size: 30px;
  margin: 0 0 20px;
}

/* ============================================================
   Lector (reader.html) — la tira vertical real
   ============================================================ */
body.reader-mode{
  background: var(--reader-bg, #08060B);
  --reader-width: 100%;
  --reader-gap: 0px;
  --reader-bg: #08060B;
  transition: background .2s ease;
}
body.reader-mode[data-theme="sepia"] .r-title,
body.reader-mode[data-theme="white"] .r-title,
body.reader-mode[data-theme="sepia"] .r-pagecount,
body.reader-mode[data-theme="white"] .r-pagecount{ color: #1a1a1a; }
body.reader-mode[data-theme="sepia"] .reader-topbar,
body.reader-mode[data-theme="white"] .reader-topbar{
  background: linear-gradient(to bottom, rgba(231,222,200,0.94), transparent);
}
body.reader-mode[data-theme="white"] .reader-topbar{
  background: linear-gradient(to bottom, rgba(245,245,245,0.94), transparent);
}

.dim-overlay{
  position: fixed;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  z-index: 45;
}

.reader-topbar{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: linear-gradient(to bottom, rgba(8,6,11,0.94), transparent);
  transition: transform .25s ease;
}
.reader-topbar.hidden{ transform: translateY(-100%); }
.reader-topbar .r-back{ font-size: 14px; color: var(--muted); flex-shrink: 0; }
.r-title-block{
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-right: auto;
}
.reader-topbar .r-title{
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.r-pagecount{ font-size: 12px; color: var(--muted-dim); }

.icon-btn{
  background: var(--bg-raised);
  border: 1px solid var(--line);
  color: var(--paper);
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 15px;
  flex-shrink: 0;
}
.icon-btn:hover{ border-color: var(--muted); }

.fav-toggle.static{
  position: static;
  width: 34px; height: 34px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.fav-toggle.static.active{ color: var(--accent); border-color: var(--accent); }

.reader-topbar select{
  background: var(--bg-raised);
  color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 8px;
  font-size: 13px;
  max-width: 160px;
  flex-shrink: 0;
}

@media (max-width: 680px){
  .reader-topbar select{ display: none; }
  .r-title{ font-size: 15px; }
}

.progress-rail{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.06);
  z-index: 51;
}
.progress-rail span{ display: block; height: 100%; background: var(--accent); width: 0%; transition: width .15s linear; }

/* ---- modo tira continua ---- */
.strip-pages{
  max-width: calc(760px * var(--reader-width) / 100);
  margin: 0 auto;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  gap: var(--reader-gap);
}
.strip-pages img{ width: 100%; display: block; }

/* ---- modo paginado ---- */
.paged-view{
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--reader-bg, #000);
}
.paged-page{
  max-width: calc(min(92vw, 900px) * var(--reader-width) / 100);
  max-height: 96vh;
  object-fit: contain;
}
.tap-zone{
  position: absolute;
  top: 0; bottom: 0;
  width: 35%;
  background: none;
  border: none;
  cursor: pointer;
}
.tap-left{ left: 0; }
.tap-right{ right: 0; }

.reader-endcard{
  padding: 60px 24px 100px;
  text-align: center;
  color: var(--muted);
}
.reader-endcard h3{
  font-family: var(--display);
  font-size: 30px;
  color: var(--paper);
  margin: 0 0 14px;
}
.reader-endcard .btn{ margin: 6px; }

.reader-bottombar{
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  gap: 10px;
  background: rgba(23,17,31,0.92);
  border: 1px solid var(--line);
  padding: 8px;
  border-radius: 999px;
  transition: opacity .25s ease, transform .25s ease;
}
.reader-bottombar.hidden{ opacity: 0; transform: translate(-50%, 20px); pointer-events: none; }
.reader-bottombar button{
  background: none;
  border: none;
  color: var(--paper);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  cursor: pointer;
}
.reader-bottombar button:disabled{ color: var(--muted-dim); cursor: not-allowed; }
.reader-bottombar button:not(:disabled):hover{ background: var(--bg-raised-2); }

/* ---- panel de ajustes ---- */
.settings-drawer{
  position: fixed;
  top: 0; right: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: var(--bg-raised);
  border-left: 1px solid var(--line);
  z-index: 60;
  padding: 20px;
  overflow-y: auto;
}
.settings-head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.settings-head h3{ font-family: var(--display); font-size: 24px; margin: 0; }
.setting-block{ margin-bottom: 22px; }
.setting-block label{
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 8px;
}
.setting-block input[type="range"]{
  width: 100%;
  accent-color: var(--accent);
}
.segmented{
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.segmented button{
  flex: 1;
  background: none;
  border: none;
  color: var(--muted);
  padding: 9px 6px;
  font-size: 12.5px;
  cursor: pointer;
}
.segmented button + button{ border-left: 1px solid var(--line); }
.segmented button.active{ background: var(--accent-soft); color: var(--paper); }

.switch-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--paper);
  font-size: 14px;
  margin-bottom: 10px;
}
.switch{ position: relative; display: inline-block; width: 40px; height: 22px; }
.switch input{ opacity: 0; width: 0; height: 0; }
.switch-track{
  position: absolute; inset: 0;
  background: var(--bg-raised-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background .15s ease;
}
.switch-track::before{
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  left: 2px; top: 2px;
  background: var(--muted);
  border-radius: 50%;
  transition: transform .15s ease, background .15s ease;
}
.switch input:checked + .switch-track{ background: var(--accent-soft); border-color: var(--accent); }
.switch input:checked + .switch-track::before{ transform: translateX(18px); background: var(--accent); }

/* ---- miniaturas ---- */
.thumb-toggle{
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 50;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(23,17,31,0.92);
  border: 1px solid var(--line);
  color: var(--paper);
  font-size: 16px;
  cursor: pointer;
}
.thumb-drawer{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  max-height: 40vh;
  overflow-y: auto;
  background: var(--bg-raised);
  border-top: 1px solid var(--line);
  z-index: 55;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 10px;
  padding: 16px;
}
.thumb{
  background: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  padding: 0;
}
.thumb img{ width: 100%; aspect-ratio: 3/4.2; object-fit: cover; }
.thumb span{
  position: absolute; bottom: 2px; right: 4px;
  font-size: 10px; color: var(--paper);
  background: rgba(0,0,0,0.6);
  padding: 1px 4px;
  border-radius: 2px;
}

/* ---- volver arriba ---- */
.scroll-top-btn{
  position: fixed;
  bottom: 18px;
  right: 68px;
  z-index: 50;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(23,17,31,0.92);
  border: 1px solid var(--line);
  color: var(--paper);
  font-size: 18px;
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease;
}
.scroll-top-btn:hover{ transform: translateY(-2px); }

/* ---- atajos de teclado ---- */
.shortcuts-hint{
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 6px;
}
.shortcuts-hint h4{
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted-dim);
  margin: 0 0 8px;
}
.shortcuts-hint p{
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.9;
  margin: 0;
}
kbd{
  background: var(--bg-raised-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 11.5px;
  font-family: inherit;
}

/* ---- cuenta / login (auth.js) ---- */
.auth-nav-btn{
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  padding: 7px 13px;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  margin-left: 4px;
}
.auth-nav-btn:hover{ color: var(--paper); border-color: var(--muted); }
.auth-nav-btn[data-state="in"]{ color: var(--accent); border-color: var(--accent); }
.nav-mobile .auth-nav-btn{
  margin: 8px 0 0;
  width: fit-content;
}

.auth-modal{
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(8,6,11,0.72);
  backdrop-filter: blur(3px);
}
.auth-modal-box{
  position: relative;
  width: min(360px, 90vw);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
}
.auth-modal-close{
  position: absolute;
  top: 12px; right: 12px;
}
.auth-modal-box h3{
  font-family: var(--display);
  font-size: 26px;
  margin: 0 0 6px;
}
.auth-modal-sub{
  color: var(--muted);
  font-size: 13.5px;
  margin: 0 0 20px;
}
.auth-modal-box input{
  width: 100%;
  background: var(--bg-raised-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--paper);
  padding: 11px 13px;
  font-size: 14px;
  font-family: var(--body);
  margin-bottom: 10px;
}
.auth-modal-box input:focus{ border-color: var(--accent); outline: none; }
.auth-modal-actions{
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.auth-modal-actions .btn{ flex: 1; justify-content: center; font-size: 13.5px; padding: 11px; }
.auth-modal-divider{
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted-dim);
  font-size: 12px;
  margin: 18px 0 14px;
}
.auth-modal-divider::before, .auth-modal-divider::after{
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.auth-google-btn{ width: 100%; justify-content: center; }
.auth-modal-error{
  color: var(--accent);
  font-size: 13px;
  margin: 14px 0 0;
}

.loading-state, .error-state{
  padding: 80px 24px;
  text-align: center;
  color: var(--muted);
}
.error-state h3{ color: var(--paper); font-family: var(--display); font-size: 26px; }
