:root {
  --page: #f6f7f3;
  --surface: #ffffff;
  --surface-soft: #eef3ef;
  --ink: #171a18;
  --muted: #69716c;
  --line: #dde3df;
  --brand: #0d6b5f;
  --brand-dark: #084c44;
  --brand-soft: #e2f2ed;
  --warm: #f1eadf;
  --danger: #ad2d2d;
  --shadow-sm: 0 8px 28px rgba(27, 47, 40, 0.07);
  --shadow-lg: 0 26px 70px rgba(27, 47, 40, 0.12);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --shell: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.premium-site {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.premium-site a { color: inherit; text-decoration: none; }
body.premium-site img { max-width: 100%; }
body.premium-site .main-wrapper { overflow: visible !important; min-height: 100vh; }
.site-main { min-height: 62vh; }
.library-shell { width: min(var(--shell), calc(100% - 48px)); margin-inline: auto; }
.sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important;
  margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important;
  white-space: nowrap !important; border: 0 !important;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid rgba(221,227,223,.9);
  backdrop-filter: blur(16px);
}
.site-header__inner {
  width: min(var(--shell), calc(100% - 48px)); min-height: 74px; margin: 0 auto;
  display: grid; grid-template-columns: auto auto minmax(240px, 1fr) auto; align-items: center; gap: 24px;
}
.site-brand { display: inline-flex; align-items: center; gap: 6px; min-width: 178px; white-space: nowrap; }
.site-brand__mark { color: var(--brand); font-size: 22px; line-height: 1; font-weight: 840; letter-spacing: -1px; }
.site-brand__name { color: #222925; font-size: 17px; line-height: 1; font-weight: 690; letter-spacing: -.45px; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a, .header-account > a {
  font-size: 14px; line-height: 1; font-weight: 650; color: #353b37; transition: color .18s ease;
}
.site-nav a:hover, .header-account > a:hover { color: var(--brand); }
.header-search {
  width: 100%; max-width: 440px; justify-self: center; height: 44px;
  display: flex; align-items: center; gap: 10px; padding: 0 15px;
  background: #f1f3f0; border: 1px solid transparent; border-radius: 999px;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.header-search:focus-within { background: #fff; border-color: #a7bdb6; box-shadow: 0 0 0 4px rgba(13,107,95,.08); }
.header-search i { color: #707873; font-size: 14px; }
.header-search input { width: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.header-search input::placeholder { color: #848c87; }
.header-account { display: flex; align-items: center; justify-content: flex-end; gap: 14px; white-space: nowrap; }
.header-account__primary {
  padding: 11px 16px; color: #fff !important; background: var(--brand); border-radius: 999px;
}
.header-account__primary:hover { background: var(--brand-dark); }
.mobile-menu-button { display: none; border: 0; background: transparent; width: 42px; height: 42px; padding: 10px; border-radius: 10px; }
.mobile-menu-button span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 99px; transition: transform .2s ease, opacity .2s ease; }
.mobile-menu-button.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-button.is-open span:nth-child(2) { opacity: 0; }
.mobile-menu-button.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; }

/* Home */
.library-hero {
  position: relative; overflow: hidden; background: #f0eee6; border-bottom: 1px solid #e3e0d6;
}
.library-hero::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -170px; top: -210px;
  border-radius: 50%; background: rgba(13,107,95,.09); filter: blur(1px); pointer-events: none;
}
.library-hero__grid {
  min-height: 460px; padding-block: 58px; display: grid; grid-template-columns: minmax(0, .95fr) minmax(440px, 1.05fr); align-items: center; gap: 64px;
}
.library-hero__copy { position: relative; z-index: 2; max-width: 660px; }
.library-hero__copy h1 {
  margin: 0; max-width: 650px; color: #14201b; font-size: clamp(42px, 5.3vw, 74px); line-height: .98; letter-spacing: -3.6px; font-weight: 780;
}
.library-hero__copy > p { margin: 24px 0 0; max-width: 600px; font-size: 18px; line-height: 1.65; color: #52605a; }
.library-hero__search {
  max-width: 610px; height: 58px; margin-top: 32px; display: flex; align-items: center; gap: 12px;
  padding: 6px 6px 6px 20px; background: #fff; border: 1px solid #d6ddd8; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.library-hero__search i { color: #78817c; }
.library-hero__search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--ink); }
.library-hero__search button {
  height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font-size: 14px; font-weight: 750; cursor: pointer;
}
.cover-scene { position: relative; z-index: 2; height: 350px; min-width: 470px; }
.cover-scene__item {
  position: absolute; width: 170px; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 12px; background: #dde2dc;
  box-shadow: 0 22px 42px rgba(31, 43, 37, .2); transform-origin: center bottom;
}
.cover-scene__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-scene__item--1 { left: 7%; top: 42px; transform: rotate(-8deg); }
.cover-scene__item--2 { left: 28%; top: 0; z-index: 3; transform: rotate(-2deg); }
.cover-scene__item--3 { left: 51%; top: 35px; z-index: 2; transform: rotate(6deg); }
.cover-scene__item--4 { left: 68%; top: 85px; width: 148px; transform: rotate(12deg); }
.cover-scene__item--5 { left: 0; top: 128px; width: 130px; transform: rotate(-14deg); opacity: .95; }

.library-section { padding-block: 54px 12px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading h2 { margin: 0; color: var(--ink); font-size: clamp(25px, 2.4vw, 34px); line-height: 1.15; letter-spacing: -1px; font-weight: 760; }
.section-heading a { color: var(--brand); font-size: 14px; font-weight: 700; }
.section-heading--feed { margin-bottom: 28px; }
.section-heading--feed p { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.book-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 176px; gap: 20px; overflow-x: auto; overflow-y: hidden; padding: 3px 2px 18px;
  scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #cbd3ce transparent;
}
.book-rail::-webkit-scrollbar { height: 7px; }
.book-rail::-webkit-scrollbar-thumb { background: #cbd3ce; border-radius: 99px; }
.rail-card { min-width: 0; scroll-snap-align: start; }
.rail-card__cover { display: block; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 11px; background: #e4e7e4; box-shadow: 0 10px 22px rgba(22,30,26,.1); }
.rail-card__cover img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s ease; }
.rail-card:hover .rail-card__cover img { transform: scale(1.025); }
.rail-card h3 { margin: 12px 0 0; font-size: 15px; line-height: 1.35; font-weight: 720; }
.rail-card h3 a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rail-card p { margin: 5px 0 0; font-size: 13px; line-height: 1.35; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.category-strip {
  display: flex; gap: 10px; overflow-x: auto; padding-block: 34px 8px; scrollbar-width: none;
}
.category-strip::-webkit-scrollbar { display: none; }
.category-strip a {
  flex: 0 0 auto; padding: 11px 17px; border: 1px solid #d7ddd9; border-radius: 999px; background: #fff;
  color: #3d4742; font-size: 14px; font-weight: 650; transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.category-strip a:hover { border-color: #9ebbb2; background: var(--brand-soft); color: var(--brand-dark); }
.quiet-ad { margin: 34px auto 6px; text-align: center; overflow: hidden; }
.quiet-ad.is-empty { display: none; }
.library-section--feed { padding-top: 54px; padding-bottom: 78px; }
.library-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px 22px; }
.library-card { min-width: 0; }
.library-card__cover {
  display: block; aspect-ratio: 2 / 3; overflow: hidden; background: #e2e5e2; border-radius: 12px; box-shadow: 0 10px 28px rgba(26,34,30,.09);
}
.library-card__cover img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .28s ease, filter .28s ease; }
.library-card:hover .library-card__cover img { transform: scale(1.025); filter: saturate(1.03); }
.library-card__copy { padding-top: 13px; }
.library-card__copy h3 { margin: 0; font-size: 15px; line-height: 1.4; font-weight: 730; }
.library-card__copy h3 a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.library-card__copy p { margin: 6px 0 0; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.infinite-status { height: 82px; display: flex; align-items: center; justify-content: center; }
.infinite-status.is-hidden { display: none; }
.infinite-spinner { width: 26px; height: 26px; border: 2px solid #d1d9d4; border-top-color: var(--brand); border-radius: 50%; animation: spin .75s linear infinite; }
.infinite-sentinel { height: 2px; }
.noscript-next { text-align: center; margin: 25px 0; }
.noscript-next a { color: var(--brand); font-weight: 700; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Tool directory and tools */
.tools-shell { width: min(1040px, calc(100% - 48px)); margin-inline: auto; padding: 64px 0 88px; }
.tools-intro { max-width: 730px; margin-bottom: 38px; }
.tools-intro h1, .tool-page__intro h1 { margin: 0; color: var(--ink); font-size: clamp(38px, 5vw, 62px); line-height: 1.02; letter-spacing: -2.6px; font-weight: 780; }
.tools-intro p, .tool-page__intro p { margin: 18px 0 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.tool-directory-card {
  min-height: 150px; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 28px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 5px 20px rgba(28,41,34,.035);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.tool-directory-card:hover { transform: translateY(-2px); border-color: #b8c9c2; box-shadow: var(--shadow-sm); }
.tool-directory-card__icon {
  flex: 0 0 50px; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; background: var(--brand-soft); color: var(--brand); font-size: 20px;
}
.tool-directory-card__body { min-width: 0; flex: 1; }
.tool-directory-card h2 { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 760; }
.tool-directory-card p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.tool-directory-card__arrow { color: #94a19b; font-size: 18px; }

.tool-page { width: min(940px, calc(100% - 48px)); margin-inline: auto; padding: 58px 0 88px; }
.tool-page__back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; color: var(--brand); font-size: 14px; font-weight: 700; }
.tool-page__intro { max-width: 760px; margin-bottom: 32px; }
.tool-page__intro h1 { font-size: clamp(36px, 4.5vw, 56px); }
.tool-panel { padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-sm); }
.tool-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.tool-field { min-width: 0; }
.tool-field--full { grid-column: 1 / -1; }
.tool-field label, .tool-label { display: block; margin-bottom: 8px; color: #36413c; font-size: 13px; font-weight: 720; }
.tool-input, .tool-select {
  width: 100%; height: 50px; padding: 0 14px; border: 1px solid #d5ddd8; border-radius: 12px; outline: none; background: #fff; color: var(--ink); font-size: 15px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.tool-input:focus, .tool-select:focus { border-color: #8eb4a8; box-shadow: 0 0 0 4px rgba(13,107,95,.08); }
.tool-input--large { height: 58px; font-size: 17px; }
.tool-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.tool-button {
  min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 19px;
  border: 1px solid transparent; border-radius: 999px; background: var(--brand); color: #fff !important; font-size: 14px; font-weight: 750; cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.tool-button:hover { background: var(--brand-dark); }
.tool-button:active { transform: translateY(1px); }
.tool-button:disabled { cursor: not-allowed; opacity: .55; }
.tool-button--secondary { background: #fff; color: var(--ink) !important; border-color: #d7ded9; }
.tool-button--secondary:hover { background: #f3f5f3; }
.tool-result { margin-top: 24px; padding: 22px; border-radius: 16px; background: var(--surface-soft); }
.tool-result[hidden] { display: none !important; }
.tool-result__value { margin: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.05; letter-spacing: -1.4px; font-weight: 800; color: var(--brand-dark); overflow-wrap: anywhere; }
.tool-result__text { margin: 9px 0 0; color: #55615b; font-size: 14px; line-height: 1.6; }
.tool-note { margin: 18px 0 0; color: #737d77; font-size: 13px; line-height: 1.6; }
.tool-error { margin-top: 16px; color: var(--danger); font-size: 14px; }
.tool-error:empty { display: none; }

.segmented-control { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.segmented-control input { position: absolute; opacity: 0; pointer-events: none; }
.segmented-control label { margin: 0; padding: 10px 14px; border: 1px solid #d7ded9; border-radius: 999px; background: #fff; color: #55605a; font-size: 13px; font-weight: 700; cursor: pointer; }
.segmented-control input:checked + label { border-color: #97b8ae; background: var(--brand-soft); color: var(--brand-dark); }

.password-output { display: flex; gap: 10px; }
.password-output .tool-input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .3px; }
.password-output .tool-button { flex: 0 0 auto; border-radius: 12px; min-width: 110px; }
.range-row { display: grid; grid-template-columns: 1fr 72px; align-items: center; gap: 14px; }
.tool-range { width: 100%; accent-color: var(--brand); }
.password-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.check-option { display: flex; align-items: center; gap: 10px; padding: 12px 13px; border: 1px solid #dde3df; border-radius: 12px; cursor: pointer; }
.check-option input { width: 17px; height: 17px; accent-color: var(--brand); }
.check-option span { font-size: 14px; color: #414b46; }
.password-meter { height: 7px; margin-top: 16px; overflow: hidden; border-radius: 99px; background: #e3e8e5; }
.password-meter span { display: block; height: 100%; width: 25%; background: var(--brand); border-radius: inherit; transition: width .2s ease; }

.drop-zone {
  display: grid; place-items: center; min-height: 210px; padding: 28px; border: 1.5px dashed #bfcac4; border-radius: 18px; background: #fafbf9; text-align: center; cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.drop-zone.is-dragging { border-color: var(--brand); background: var(--brand-soft); }
.drop-zone input { display: none; }
.drop-zone i { margin-bottom: 13px; color: var(--brand); font-size: 31px; }
.drop-zone strong { display: block; font-size: 16px; }
.drop-zone span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }
.file-summary { margin-top: 15px; padding: 13px 15px; border-radius: 12px; background: #f1f4f1; color: #49554f; font-size: 14px; overflow-wrap: anywhere; }
.compression-progress { margin-top: 18px; }
.compression-progress[hidden] { display: none; }
.compression-progress__track { height: 8px; overflow: hidden; border-radius: 99px; background: #e2e7e4; }
.compression-progress__bar { width: 0; height: 100%; background: var(--brand); border-radius: inherit; transition: width .16s ease; }
.compression-progress p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.ip-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.ip-result-row { padding: 14px 15px; border: 1px solid #dce3de; border-radius: 13px; background: #fff; }
.ip-result-row span { display: block; color: #7a847e; font-size: 12px; }
.ip-result-row strong { display: block; margin-top: 5px; color: #26302b; font-size: 14px; overflow-wrap: anywhere; }

/* Calm restyle for existing public CMS pages */
.premium-site .container { max-width: var(--shell); }
.premium-site .p-40 { padding: 48px 0 !important; }
.premium-site .pt-40 { padding-top: 48px !important; }
.premium-site .mb-40 { margin-bottom: 28px !important; }
.premium-site .heading h3, .premium-site .button-bar h3, .premium-site .top-row h3 { color: var(--ink) !important; letter-spacing: -.7px; font-weight: 760; }
.premium-site .coming-block, .premium-site .blog-box, .premium-site .book-card, .premium-site .week-deal-card {
  background: #fff !important; border: 1px solid var(--line) !important; border-radius: 16px !important; box-shadow: none !important; overflow: hidden;
}
.premium-site .coming-block .br-20 { border-radius: 11px !important; }
.premium-site .cus-btn { border-radius: 999px !important; background: var(--brand) !important; color: #fff !important; border-color: var(--brand) !important; box-shadow: none !important; }
.premium-site .cus-btn .icon { display: none !important; }
.premium-site .bg-lightest-gray { background: #fff !important; }
.premium-site .color-primary { color: var(--brand) !important; }
.premium-site input.form-control, .premium-site textarea.form-control, .premium-site select.form-control { border-color: #d5ddd8 !important; border-radius: 12px !important; }
.premium-site .pagination .page-link { color: var(--brand); }
.premium-site .pagination .active .page-link { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #fff; }
.site-footer__inner {
  width: min(var(--shell), calc(100% - 48px)); margin: 0 auto; padding: 56px 0 44px;
  display: grid; grid-template-columns: 1.15fr 1.85fr; gap: 70px;
}
.site-brand--footer { min-width: 0; }
.site-footer__brand p { max-width: 440px; margin: 17px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.site-footer__inner--with-social { grid-template-columns: minmax(210px, 1.05fr) minmax(130px, .6fr) minmax(0, 1.85fr); gap: clamp(24px, 3.1vw, 55px); }
.site-footer__links { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; }
.site-footer__social h6 { margin: 0 0 18px; color: var(--ink); font-size: 13px; font-weight: 780; }
.site-footer__social-icons { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.site-footer__social-icons .site-footer__social-link { display: inline-flex; align-items: center; gap: 9px; width: auto; min-height: 19px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #5d6761 !important; font-size: 13px; font-weight: 450; line-height: 1.45; transition: color .15s ease; }
.site-footer__social-icons .site-footer__social-link:hover { background: transparent; color: var(--brand) !important; }
.site-footer__social-mark { display: inline-flex; width: 18px; height: 18px; flex: 0 0 18px; align-items: center; justify-content: center; }
.social-icon-svg { display: block; width: 18px; height: 18px; }
.site-footer__social-link--facebook .site-footer__social-mark { color: #1877f2; }
.site-footer__social-link--x .site-footer__social-mark { color: #14171a; }
.site-footer__social-link--telegram .site-footer__social-mark { color: #229ed9; }
.site-footer__social-link--tiktok .site-footer__social-mark { color: #111; }
.site-footer__social-link--instagram .site-footer__social-mark { color: #d62976; }
.site-footer__social-link--whatsapp .site-footer__social-mark { color: #16a34a; }

.site-footer__links h6 { margin: 0 0 15px; color: var(--ink); font-size: 13px; font-weight: 780; }
.site-footer__links a { display: block; margin: 10px 0; color: #5d6761; font-size: 13px; line-height: 1.45; }
.site-footer__links a:hover { color: var(--brand); }
.site-footer__bottom { width: min(var(--shell), calc(100% - 48px)); margin: 0 auto; padding: 20px 0 28px; border-top: 1px solid #edf0ed; color: #7a837e; font-size: 12px; }

@media (max-width: 1100px) {
  .site-header__inner { grid-template-columns: auto 1fr auto; }
  .site-nav { display: none; }
  .header-search { max-width: 520px; }
  .library-hero__grid { grid-template-columns: 1fr .85fr; gap: 36px; }
  .cover-scene { min-width: 350px; transform: scale(.88); transform-origin: center; }
  .library-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .library-shell, .tools-shell, .tool-page, .site-header__inner, .site-footer__inner, .site-footer__bottom { width: min(100% - 32px, var(--shell)); }
  .site-header__inner { min-height: 66px; grid-template-columns: auto 1fr auto; gap: 14px; }
  .site-brand { min-width: 166px; }
  .site-brand__mark { font-size: 20px; }
  .site-brand__name { font-size: 15px; }
  .header-search, .header-account { display: none; }
  .mobile-menu-button { display: block; justify-self: end; }
  .mobile-menu {
    width: 100%; padding: 0 16px 18px; background: #fff; border-top: 1px solid #edf0ed;
  }
  .mobile-menu.is-open { display: block; }
  .mobile-search { height: 44px; margin: 14px 0; display: flex; align-items: center; gap: 9px; padding: 0 13px; background: #f1f3f0; border-radius: 12px; }
  .mobile-search input { width: 100%; border: 0; outline: 0; background: transparent; }
  .mobile-menu nav { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 5px; }
  .mobile-menu nav a { padding: 11px 10px; border-radius: 9px; font-size: 14px; font-weight: 650; }
  .mobile-menu nav a:hover { background: #f3f5f3; }

  .library-hero__grid { min-height: auto; grid-template-columns: 1fr; padding-block: 52px 38px; }
  .library-hero__copy { max-width: 720px; }
  .cover-scene { width: 100%; min-width: 0; height: 250px; transform: none; }
  .cover-scene__item { width: 130px; }
  .cover-scene__item--1 { left: 5%; top: 34px; }
  .cover-scene__item--2 { left: 27%; top: 0; }
  .cover-scene__item--3 { left: 49%; top: 28px; }
  .cover-scene__item--4 { left: 70%; top: 52px; width: 118px; }
  .cover-scene__item--5 { display: none; }
  .library-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 17px; }
  .tools-grid { grid-template-columns: 1fr; }
  .site-footer__inner, .site-footer__inner--with-social { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 620px) {
  .library-shell, .tools-shell, .tool-page, .site-header__inner, .site-footer__inner, .site-footer__bottom { width: min(100% - 24px, var(--shell)); }
  .library-hero__grid { padding-top: 42px; gap: 26px; }
  .library-hero__copy h1 { letter-spacing: -2.2px; }
  .library-hero__copy > p { font-size: 16px; line-height: 1.6; }
  .library-hero__search { height: 54px; margin-top: 24px; padding-left: 16px; }
  .library-hero__search button { padding: 0 18px; }
  .cover-scene { height: 205px; overflow: hidden; }
  .cover-scene__item { width: 104px; border-radius: 8px; }
  .cover-scene__item--1 { left: 4%; top: 32px; }
  .cover-scene__item--2 { left: 27%; top: 2px; }
  .cover-scene__item--3 { left: 51%; top: 25px; }
  .cover-scene__item--4 { left: 75%; top: 55px; width: 92px; }
  .library-section { padding-top: 42px; }
  .book-rail { grid-auto-columns: 145px; gap: 15px; }
  .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 15px; }
  .library-card__copy h3, .rail-card h3 { font-size: 14px; }
  .category-strip { padding-top: 28px; }
  .tools-shell, .tool-page { padding-top: 42px; padding-bottom: 65px; }
  .tools-intro h1, .tool-page__intro h1 { letter-spacing: -1.7px; }
  .tool-panel { padding: 20px; border-radius: 18px; }
  .tool-form-grid { grid-template-columns: 1fr; gap: 14px; }
  .tool-field--full { grid-column: auto; }
  .password-output { flex-direction: column; }
  .password-output .tool-button { width: 100%; }
  .password-options { grid-template-columns: 1fr; }
  .ip-results { grid-template-columns: 1fr; }
  .site-footer__links { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 30px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* Archive and detail pages */
.page-heading { padding: 48px 0 22px; }
.page-heading h1 { margin: 0; color: var(--ink); font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -2px; font-weight: 780; }
.archive-page { padding: 12px 0 76px; }
.archive-summary { margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.archive-summary p { margin: 0; color: var(--muted); font-size: 13px; }
.archive-grid { --bs-gutter-x: 22px; --bs-gutter-y: 30px; }
.archive-grid__item { margin-bottom: 0; }
.archive-pagination { display: flex; justify-content: center; padding-top: 42px; }
.collection-card { min-width: 0; }
.collection-card__cover { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 14px; background: #e3e6e3; box-shadow: 0 8px 22px rgba(27,38,32,.07); }
.collection-card__cover img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s ease; }
.collection-card:hover .collection-card__cover img { transform: scale(1.025); }
.collection-card h3 { margin: 12px 0 0; font-size: 15px; line-height: 1.4; font-weight: 730; }
.collection-card p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }

.novel-detail { padding: 28px 0 38px; }
.novel-detail__crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 30px; color: #7b847f; font-size: 12px; }
.novel-detail__crumbs a:hover { color: var(--brand); }
.novel-detail__grid { display: grid; grid-template-columns: minmax(240px, 310px) minmax(0, 1fr); gap: clamp(42px, 6vw, 82px); align-items: start; }
.novel-detail__cover { overflow: hidden; border-radius: 16px; background: #e2e5e2; box-shadow: 0 18px 45px rgba(24,37,31,.14); }
.novel-detail__cover img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.novel-detail__content { padding-top: 10px; max-width: 760px; }
.novel-detail__content h1 { margin: 0; color: var(--ink); font-size: clamp(36px, 4.5vw, 62px); line-height: 1.02; letter-spacing: -2.5px; font-weight: 790; }
.novel-detail__author { margin-top: 18px; color: #4d5953; font-size: 16px; line-height: 1.5; }
.novel-detail__author a { color: var(--brand); font-weight: 700; }
.novel-detail__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 15px; margin-top: 22px; color: #69736d; font-size: 13px; }
.novel-detail__meta > * { position: relative; }
.novel-detail__meta > * + *::before { content: ""; position: absolute; left: -8px; top: 50%; width: 3px; height: 3px; margin-top: -1px; border-radius: 50%; background: #aeb7b2; }
.novel-detail__meta a { color: var(--brand); font-weight: 680; }
.novel-detail__collection { margin: 18px 0 0; color: #66716b; font-size: 14px; }
.novel-detail__collection a { color: var(--brand); font-weight: 700; }
.novel-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.novel-action { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 20px; border-radius: 999px; font-size: 14px; font-weight: 760; }
.novel-action--primary { background: var(--brand); color: #fff !important; }
.novel-action--primary:hover { background: var(--brand-dark); }
.novel-action--secondary { border: 1px solid #d4ddd7; background: #fff; color: #313b36 !important; }
.novel-action--secondary:hover { background: #f3f5f3; }
.access-note { flex-basis: 100%; margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.novel-share { margin-top: 26px; }
.novel-share__heading { display: block; margin-bottom: 11px; color: #69736d; font-size: 13px; font-weight: 630; }
.novel-share__links { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.premium-site .novel-share__link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid transparent; border-radius: 9px; font-size: 13px; font-weight: 700; line-height: 1.1; color: #fff !important; text-decoration: none; transition: filter .15s ease, transform .15s ease; }
.premium-site .novel-share__link:hover { color: #fff !important; filter: brightness(.91); transform: translateY(-1px); }
.premium-site .novel-share__link:focus-visible, .site-footer__social-link:focus-visible { outline: 3px solid #e6aa32; outline-offset: 3px; }
.novel-share__link--whatsapp { background: #168e4a; }
.novel-share__link--telegram { background: #238bc3; }
.novel-share__link--facebook { background: #1877f2; }
.novel-share__link--x { background: #171717; }
.novel-share__link .social-icon-svg { width: 17px; height: 17px; }

.novel-body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .7fr); gap: clamp(34px, 5vw, 66px); padding: 42px 0 68px; border-top: 1px solid var(--line); }
.novel-description h2, .review-panel h2, .related-library h2 { margin: 0; color: var(--ink); font-size: 27px; line-height: 1.2; letter-spacing: -.8px; font-weight: 760; }
.novel-description__text { margin-top: 20px; color: #414b46; font-size: 16px; line-height: 1.82; overflow-wrap: anywhere; }
.novel-description__text p { margin: 0 0 18px; }
.novel-description__text img { max-width: 100%; height: auto; border-radius: 12px; }
.review-panel { min-width: 0; }
.review-panel h2 span { color: #8b948f; font-size: 15px; font-weight: 650; }
.review-panel__signin { margin: 16px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.review-panel__signin a { color: var(--brand); font-weight: 700; }
.review-form-clean { margin-top: 18px; }
.review-form-clean textarea { width: 100%; min-height: 120px; resize: vertical; padding: 13px 14px; border: 1px solid #d5ddd8; border-radius: 13px; outline: none; background: #fff; color: var(--ink); font: inherit; font-size: 14px; line-height: 1.55; }
.review-form-clean textarea:focus { border-color: #8eb4a8; box-shadow: 0 0 0 4px rgba(13,107,95,.08); }
.review-form-clean button { margin-top: 10px; min-height: 42px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 750; }
.review-list { margin-top: 26px; }
.related-library { padding: 4px 0 80px; }
.related-library .section-heading { margin-bottom: 24px; }

@media (max-width: 860px) {
  .page-heading { padding-top: 38px; }
  .novel-detail__grid { grid-template-columns: 220px minmax(0,1fr); gap: 34px; }
  .novel-body { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .page-heading { padding-top: 32px; }
  .archive-page { padding-bottom: 58px; }
  .novel-detail { padding-top: 18px; }
  .novel-detail__crumbs { margin-bottom: 22px; }
  .novel-detail__grid { grid-template-columns: 1fr; gap: 26px; }
  .novel-detail__cover-column { width: min(64vw, 260px); }
  .novel-detail__content { padding-top: 0; }
  .novel-detail__content h1 { letter-spacing: -1.7px; }
  .novel-actions { margin-top: 24px; }
  .novel-action { flex: 1 1 auto; }
  .novel-body { padding-top: 36px; padding-bottom: 56px; }
  .archive-grid { --bs-gutter-x: 14px; --bs-gutter-y: 24px; }
}

/* Focused reading experience */
.reader-page { background: #fbfbf8; border-bottom: 1px solid var(--line); }
.reader-shell { width: min(860px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 70px; }
.reader-topbar { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid #e6e9e5; }
.reader-back { display: inline-flex; align-items: center; gap: 8px; color: #5d6862; font-size: 13px; font-weight: 700; }
.reader-back:hover { color: var(--brand); }
.reader-controls { display: flex; align-items: center; gap: 7px; }
.reader-controls button { width: 42px; height: 36px; border: 1px solid #d7ddd9; border-radius: 10px; background: #fff; color: #3f4944; font-size: 13px; font-weight: 750; cursor: pointer; }
.reader-controls button:hover { border-color: #a7bbb4; background: #f4f6f4; }
.reader-heading { padding: 38px 0 20px; }
.reader-heading > p { margin: 0 0 8px; color: var(--brand); font-size: 12px; font-weight: 760; }
.reader-heading h1 { margin: 0; color: var(--ink); font-size: clamp(32px, 4.6vw, 52px); line-height: 1.05; letter-spacing: -1.8px; font-weight: 780; }
.reader-meta { display: flex; flex-wrap: wrap; gap: 9px 16px; margin-top: 14px; color: #707a74; font-size: 13px; }
.reader-meta a { color: var(--brand); font-weight: 680; }
.reader-text { margin-top: 22px; color: #2e3732; font-family: Georgia, "Times New Roman", serif; font-size: 20px; line-height: 1.92; letter-spacing: .01px; overflow-wrap: anywhere; }
.reader-text p { margin: 0 0 1.3em; }
.reader-text img { max-width: 100%; height: auto; border-radius: 12px; }
.reader-pdf { margin-top: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.reader-pdf iframe { width: 100% !important; min-height: 75vh; border: 0; }
.reader-access { margin: 34px 0; padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: #fff; text-align: center; }
.reader-access h2 { margin: 0; color: var(--ink); font-size: 24px; font-weight: 760; }
.reader-access p { margin: 10px auto 0; max-width: 560px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.reader-access__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 20px; }
.reader-access__actions a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 750; }
.reader-access__actions a.secondary { border: 1px solid #d7ddd9; background: #fff; color: var(--ink); }
.reader-pagination { margin-top: 44px; padding-top: 24px; border-top: 1px solid #e4e8e4; }
.reader-pagination__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.reader-pagination__edge { display: inline-flex; align-items: center; gap: 7px; color: var(--brand); font-size: 13px; font-weight: 740; }
.reader-pagination__edge:last-child { justify-self: end; }
.reader-pagination__pages { display: flex; gap: 5px; }
.reader-pagination__pages a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; color: #59635e; font-size: 13px; font-weight: 700; }
.reader-pagination__pages a:hover { background: #edf2ef; }
.reader-pagination__pages a.is-current { background: var(--brand); color: #fff; }
.reader-related { padding: 52px 0 76px; }

@media (max-width: 620px) {
  .reader-shell { width: min(100% - 28px, 860px); padding-top: 18px; padding-bottom: 54px; }
  .reader-heading { padding-top: 30px; }
  .reader-text { font-size: 18px; line-height: 1.88; }
  .reader-pagination__inner { grid-template-columns: 1fr 1fr; }
  .reader-pagination__pages { grid-column: 1 / -1; grid-row: 1; justify-content: center; }
  .reader-pagination__edge { grid-row: 2; }
}

/* Authentication pages */
.auth-page { min-height: 100vh; background: var(--page); }
.auth-page #preloader, .auth-page .back-to-top { display: none !important; }
.auth-page .header.st-2 { background: #fff !important; border-bottom: 1px solid var(--line); box-shadow: none !important; }
.auth-page .header.st-2 .container { min-height: 72px; display: flex; align-items: center; }
.auth-page .navbar-brand.site-brand { padding: 0; margin: 0; }
.auth-page .signup { padding: 58px 0 84px !important; margin: 0 !important; }
.auth-page .signup > .container > .row { justify-content: center; }
.auth-page .signup > .container > .row > .col-xl-6:first-child { flex: 0 0 min(100%, 560px); max-width: 560px; }
.auth-page .signup > .container > .row > .col-xl-6:last-child { display: none !important; }
.auth-page .form-block { padding: 36px !important; border: 1px solid var(--line); border-radius: 22px !important; background: #fff !important; box-shadow: var(--shadow-sm); }
.auth-page .form-block h3 { margin-bottom: 30px !important; color: var(--ink); font-size: 34px; letter-spacing: -1px; font-weight: 780; }
.auth-page .form-block h6 { color: var(--muted); font-weight: 500; line-height: 1.55; }
.auth-page .form-block .form-control { min-height: 50px; padding: 0 14px; border: 1px solid #d5ddd8; border-radius: 12px; background: #fff; font-size: 14px; }
.auth-page .form-block .form-control:focus { border-color: #8eb4a8; box-shadow: 0 0 0 4px rgba(13,107,95,.08); }
.auth-page .form-block .cus-btn { min-height: 48px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 760; }
.auth-page .register-bottom { gap: 18px; align-items: center; }
.auth-page .register-bottom h6 { margin: 0; }
.auth-page .color-primary { color: var(--brand) !important; }
@media (max-width: 620px) {
  .auth-page .signup { padding: 34px 0 58px !important; }
  .auth-page .form-block { padding: 24px !important; border-radius: 18px !important; }
  .auth-page .form-block h3 { font-size: 30px; }
}

/* Quiet, readable editorial guides under each useful tool. */
.tool-guide { width: min(100%, 780px); margin: 72px auto 0; padding-top: 36px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.83; color: #36413c; overflow-wrap: break-word; }
.tool-guide h2 { margin: 48px 0 16px; font-size: clamp(24px, 3vw, 29px); line-height: 1.25; font-weight: 740; letter-spacing: -.6px; color: var(--ink); }
.tool-guide h2:first-child { margin-top: 4px; }
.tool-guide h3 { margin: 30px 0 11px; font-size: 19px; line-height: 1.35; font-weight: 710; letter-spacing: -.2px; color: #26332b; }
.tool-guide p { margin: 0 0 18px; }
.tool-guide ul, .tool-guide ol { padding-left: 1.4em; margin: 0 0 22px; }
.tool-guide li { padding-left: .25em; margin-bottom: 9px; }
.tool-guide a { color: var(--brand); text-decoration: underline; }
.tool-guide__table-wrap { width: 100%; overflow-x: auto; margin: 18px 0 28px; }
.tool-guide table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.tool-guide th, .tool-guide td { border-bottom: 1px solid var(--line); padding: 12px 15px; text-align: left; }
.tool-guide th { color: var(--ink); background: #f0f4f0; font-weight: 720; }
@media (max-width: 620px) { .tool-guide { margin-top: 52px; padding-top: 22px; font-size: 15px; line-height: 1.82; } .tool-guide h2 { margin-top: 36px; } }
