
:root{
  --green:#0b5a46; --green-2:#073f32; --green-3:#0f7358;
  --mint:#e9f4ef; --mint-2:#f3f9f6; --cream:#f7f4ed;
  --gold:#c5a151; --red:#c53c34; --red-soft:#fff0ee;
  --ink:#1d2b26; --muted:#68766f; --line:#dfe8e3; --white:#fff;
  --shadow:0 12px 36px rgba(13,70,54,.09);
  --r:24px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; background:#edf1ef; color:var(--ink);
  font-family:"Tahoma","Arial","Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased;
}
button,a{font:inherit}
a{color:inherit}
.phone-shell{
  width:100%; max-width:480px; min-height:100vh; margin:0 auto;
  background:linear-gradient(180deg,#fbfdfc 0,#f4f7f5 50%,#f8faf9 100%);
  box-shadow:0 0 80px rgba(15,55,45,.12); overflow:hidden;
  padding-bottom:max(18px, env(safe-area-inset-bottom));
}
.topbar{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 16px 10px; background:rgba(255,255,255,.93);
  backdrop-filter:blur(12px); position:relative; z-index:10;
}
.brand{display:flex; align-items:center; gap:10px; min-width:0}
.brand-logo{width:58px;height:58px;object-fit:contain;filter:drop-shadow(0 4px 8px rgba(0,0,0,.08))}
.brand-ar{font-size:15px;font-weight:800;color:var(--green-2);line-height:1.2}
.brand-en{font-size:9px;color:#5c6b65;direction:ltr;text-align:right;margin-top:2px}
.brand-lib{font-size:11px;font-weight:700;color:var(--green-3);margin-top:3px}
.icon-btn{
  width:42px;height:42px;border-radius:14px;border:1px solid var(--line);
  background:#fff;color:var(--green);display:grid;place-items:center;cursor:pointer;
}
.icon-btn svg{width:20px;height:20px}
.hero{
  position:relative; margin:6px 14px 12px; min-height:315px; overflow:hidden;
  border-radius:30px; background:
    linear-gradient(145deg,rgba(7,63,50,.98),rgba(11,90,70,.95) 60%,rgba(16,115,87,.92));
  color:#fff; padding:26px 22px 122px; box-shadow:0 18px 44px rgba(7,63,50,.22);
}
.hero::after{
  content:"";position:absolute;inset:auto -38px -62px -38px;height:170px;
  background:rgba(255,255,255,.055);transform:rotate(-6deg);border-radius:50%;
}
.hero-glow{position:absolute;border-radius:50%;filter:blur(2px);opacity:.35}
.hero-glow-a{width:160px;height:160px;background:#d6bd77;left:-70px;top:-65px}
.hero-glow-b{width:130px;height:130px;background:#56aa8f;right:-60px;bottom:35px}
.hero-content{position:relative;z-index:2}
.eyebrow{
  display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:700;
  background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.16);
  padding:8px 11px;border-radius:999px
}
.eyebrow svg{width:16px;height:16px}
.hero h1{font-size:28px;line-height:1.42;margin:18px 0 10px;letter-spacing:-.4px}
.hero p{font-size:14px;line-height:1.8;margin:0;color:rgba(255,255,255,.82)}
.hero-chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}
.hero-chips span{display:flex;gap:5px;align-items:center;font-size:10px;color:#eaf6f1}
.hero-chips svg{width:13px}
.book-art{position:absolute;z-index:3;left:26px;bottom:33px;width:165px;height:92px}
.book{position:absolute;height:20px;border-radius:5px 8px 8px 5px;box-shadow:0 7px 12px rgba(0,0,0,.15)}
.book::after{content:"";position:absolute;left:12px;right:8px;top:4px;bottom:4px;background:#f6f1e7;border-radius:3px}
.b1{width:145px;right:0;bottom:0;background:#c8a553}
.b2{width:118px;right:14px;bottom:25px;background:#dcebe4}
.b3{width:96px;right:4px;bottom:49px;background:#b4473f}
.lamp{position:absolute;width:48px;height:48px;border:5px solid rgba(255,255,255,.22);border-radius:50%;left:-12px;bottom:15px}
.ticker-wrap{
  margin:0 14px 12px;border:1px solid #dce6e1;background:#fff;border-radius:17px;
  display:flex;align-items:stretch;overflow:hidden;box-shadow:0 6px 18px rgba(12,68,52,.05)
}
.ticker-label{background:var(--green);color:#fff;padding:10px 12px;display:flex;gap:6px;align-items:center;flex:0 0 auto;font-size:12px}
.ticker-label svg{width:17px}
.ticker{overflow:hidden;display:flex;align-items:center;min-width:0;position:relative}
.ticker-track{display:flex;white-space:nowrap;gap:70px;min-width:max-content;animation:ticker 24s linear infinite;padding:0 40px}
.ticker-track span{font-size:12px;color:#4d5b56}
@keyframes ticker{from{transform:translateX(-50%)}to{transform:translateX(0)}}
.quick-nav{display:flex;gap:8px;overflow-x:auto;padding:2px 14px 14px;scrollbar-width:none}
.quick-nav::-webkit-scrollbar{display:none}
.quick-nav a{
  text-decoration:none;background:#fff;border:1px solid var(--line);color:var(--green-2);
  padding:9px 13px;border-radius:999px;display:flex;align-items:center;gap:6px;
  flex:0 0 auto;font-size:12px;font-weight:700
}
.quick-nav svg{width:15px;height:15px}
.welcome-card,.section{margin:0 14px 14px;background:#fff;border:1px solid rgba(215,228,221,.88);border-radius:var(--r);box-shadow:var(--shadow)}
.welcome-card{
  padding:19px;display:flex;gap:13px;align-items:flex-start;
  background:linear-gradient(135deg,#fff,#f1f8f4)
}
.section{padding:18px}
.section-heading{display:flex;align-items:center;gap:11px;margin-bottom:15px}
.section-heading h2{font-size:19px;line-height:1.35;margin:2px 0 0;color:var(--green-2)}
.section-kicker{font-size:10px;letter-spacing:.15px;color:var(--green-3);font-weight:800}
.section-kicker.danger{color:var(--red)}
.section-icon{
  width:42px;height:42px;border-radius:14px;background:var(--mint);
  color:var(--green);display:grid;place-items:center;flex:0 0 auto
}
.section-icon.large{width:48px;height:48px}
.section-icon svg{width:22px;height:22px}
.section-icon.large svg{width:25px;height:25px}
.section-icon.alert-icon{background:var(--red-soft);color:var(--red)}
.welcome-card p,.body-copy{font-size:14px;line-height:1.95;margin:5px 0 0;color:#485851}
.body-copy.compact{margin-top:-2px}
.info-stack{display:grid;gap:10px}
.mini-card{padding:14px;border-radius:18px;display:flex;gap:11px;align-items:flex-start;border:1px solid}
.accent-green{background:#f4faf7;border-color:#d9ebe2}
.accent-gold{background:#fbf8ef;border-color:#eee4c8}
.mini-icon{width:35px;height:35px;border-radius:12px;display:grid;place-items:center;color:var(--green);background:#fff;flex:0 0 auto}
.mini-icon svg{width:18px}
.mini-card h3{font-size:14px;margin:1px 0 5px;color:#1b4035}
.mini-card p{font-size:12.5px;line-height:1.8;color:#5a6762;margin:0}
.borrowing-list{display:grid;gap:9px}
.borrow-row{
  display:grid;grid-template-columns:1fr auto;gap:8px 12px;padding:13px 14px;
  background:#f8fbf9;border:1px solid #e5eee9;border-radius:17px
}
.borrow-row .cat{font-size:13px;font-weight:800;color:#2d4039;align-self:center}
.borrow-stats{display:flex;gap:7px;align-items:center;grid-column:1 / -1}
.stat{background:#fff;border:1px solid #e0e9e4;border-radius:12px;padding:7px 10px;min-width:92px}
.stat small{display:block;font-size:9px;color:#849089;margin-bottom:2px}
.stat b{font-size:12px;color:var(--green-2)}
.note-box{display:flex;gap:8px;align-items:flex-start;background:#fff9eb;border:1px solid #f0e0b7;color:#6c5828;padding:11px 12px;border-radius:15px;margin-top:11px}
.note-box svg{width:17px;flex:0 0 auto;margin-top:2px}
.note-box p{font-size:11.5px;line-height:1.75;margin:0}
.warning-section{background:linear-gradient(180deg,#fff,#fffafa)}
.fine-amount{display:flex;align-items:center;gap:12px;background:#fff1ef;border:1px solid #f1d1ce;border-radius:18px;padding:13px;margin-bottom:13px}
.fine-icon{width:42px;height:42px;background:#fff;border-radius:14px;color:var(--red);display:grid;place-items:center}
.fine-icon svg{width:23px}
.fine-amount small{display:block;color:#96655f;font-size:10px}
.fine-amount strong{font-size:16px;color:#8f2923;display:block;margin-top:2px}
.steps{counter-reset:step;list-style:none;padding:0;margin:0;display:grid;gap:10px}
.steps li{position:relative;padding:0 42px 0 0;font-size:12.5px;line-height:1.85;color:#4c5854;min-height:32px}
.steps li::before{
  counter-increment:step;content:counter(step);position:absolute;right:0;top:0;
  width:28px;height:28px;border-radius:10px;background:var(--green);color:#fff;
  display:grid;place-items:center;font-weight:800;font-size:11px
}
.restriction{margin-top:14px;background:#293b35;color:#fff;padding:12px;border-radius:16px;display:flex;gap:9px;align-items:flex-start}
.restriction svg{width:18px;flex:0 0 auto;margin-top:2px;color:#ffdca0}
.restriction p{margin:0;font-size:11.5px;line-height:1.8;color:#f1f5f3}
.rules-list{display:grid;gap:9px}
.rule-card{display:flex;gap:12px;padding:13px;border-radius:18px;background:#f8faf9;border:1px solid #e4ebe7}
.rule-icon{width:43px;height:43px;border-radius:15px;background:#e8f3ee;color:var(--green);display:grid;place-items:center;flex:0 0 auto}
.rule-icon svg{width:22px;height:22px}
.rule-card h3{font-size:13.5px;margin:1px 0 5px;color:#294038}
.rule-card p{font-size:11.5px;line-height:1.75;color:#647069;margin:0}
.nonloan{background:linear-gradient(180deg,#fff,#fff8f7)}
.chips-grid{display:flex;flex-wrap:wrap;gap:8px;margin-top:13px}
.chip{padding:9px 11px;border-radius:13px;background:#fff;border:1px solid #efd7d4;color:#833b36;font-size:11.5px;font-weight:700}
.digital-links{display:grid;gap:10px}
.digital-link{
  text-decoration:none;border:1px solid #dce8e2;background:linear-gradient(135deg,#fff,#f2f8f5);
  border-radius:19px;padding:13px;display:flex;gap:11px;align-items:center;transition:.2s ease
}
.digital-link:active{transform:scale(.985)}
.link-icon{width:43px;height:43px;border-radius:14px;background:var(--green);color:#fff;display:grid;place-items:center;flex:0 0 auto}
.link-icon svg{width:22px}
.digital-link .txt{min-width:0;flex:1}
.digital-link h3{font-size:13.5px;margin:0 0 4px;color:#224239}
.digital-link p{font-size:10.5px;color:#7a8781;margin:0;line-height:1.55}
.digital-link .arrow{color:#8a9892}
.digital-link .arrow svg{width:17px}
.footer{
  margin:8px 14px 0;background:linear-gradient(155deg,var(--green-2),#0a5a46);
  color:#fff;border-radius:28px;padding:25px 20px;text-align:center;box-shadow:0 18px 40px rgba(5,60,45,.17)
}
.footer-logo{width:78px;height:68px;object-fit:contain;filter:brightness(0) invert(1);opacity:.94}
.footer-title{font-size:15px;font-weight:800;margin-top:5px}
.footer-message{font-size:12px;color:#d6e8e1;margin-top:7px}
.footer-line{height:1px;background:rgba(255,255,255,.14);margin:16px 0 11px}
.footer-meta{display:flex;justify-content:center;align-items:center;gap:5px;font-size:10px;color:#c9dcd5}
.footer-meta svg{width:14px}
.toast{position:fixed;left:50%;bottom:22px;transform:translate(-50%,16px);background:#162b24;color:#fff;padding:10px 14px;border-radius:13px;font-size:12px;opacity:0;pointer-events:none;transition:.25s;z-index:99;box-shadow:0 10px 30px rgba(0,0,0,.18)}
.toast.show{opacity:1;transform:translate(-50%,0)}
.reveal{opacity:0;transform:translateY(10px);transition:opacity .5s ease,transform .5s ease}
.reveal.visible{opacity:1;transform:none}
svg{display:block;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
@media(min-width:700px){body{padding:28px 0}.phone-shell{border-radius:34px;min-height:calc(100vh - 56px)}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.ticker-track{animation:none}.reveal{opacity:1;transform:none;transition:none}}
