/* Koshur Quran — Noor design system / October 2026
   Brand: heritage emerald, warm manuscript, antique gold.
   Intentional quiet and clarity: motion decorates; Quran text remains still.
*/
:root{
  --bg:#f8f9f5;--surface:#fffefb;--ink:#20382d;--muted:#75837c;
  --line:#e6e9e1;--green:#215a43;--green-dark:#0a3025;--mint:#edf5ed;
  --gold:#d8b981;--shadow:0 14px 42px rgba(15,54,30,.045);
}
html{scroll-padding-top:96px}
body{background:var(--bg);background-image:radial-gradient(ellipse at 92% 4%,#f1eddc 0%,transparent 25%),radial-gradient(ellipse at 11% 66%,#e6f1e756 0%,transparent 25%)}
body.dark{--bg:#131f1b;--surface:#1c3029;--ink:#e8eee6;--muted:#acc1b2;--line:#31463a;--green:#8ecaa4;--mint:#244b36;--shadow:0 16px 45px #07140f40;background-image:radial-gradient(ellipse at 90% 5%,#33412d33,transparent 25%)}
button{touch-action:manipulation}
:focus-visible{outline:2px solid #7eae79;outline-offset:3px}
.sidebar{width:258px;padding:34px 18px 22px;border-right:1px solid #e7e9df;background:var(--surface);box-shadow:9px 0 45px rgba(15,48,31,.026)}
.dark .sidebar{border-right-color:var(--line)}
.identity{gap:12px;padding:0 9px 40px}
.identity-icon{width:48px;height:48px;border-radius:15px;background:radial-gradient(circle at 25% 20%,#376f4e,#0a3326 75%);color:#eddaac;box-shadow:0 10px 20px #0e3b261e,inset 0 0 0 1px #e5c48b77;transition:transform .2s}
.identity:hover .identity-icon{transform:rotate(-5deg)}
.identity-text strong{font-size:16px;letter-spacing:-.7px}
.identity-text small{font-size:10px;letter-spacing:.1px}
.nav-link{padding:13px 14px;border-radius:12px;gap:13px}
.nav-link.active{background:linear-gradient(90deg,#e3efe3,#f0f5eb);color:#21573e;box-shadow:inset 3px 0 #2d7350;border:1px solid #d2e6d8}
.dark .nav-link.active{background:#2d4b38;border-color:#476d4f;color:#b6e7c1}
.nav-link:hover:not(.active){background:#eef4ec;color:#1b533a}
.dark .nav-link:hover:not(.active){background:#294a39;color:#d6e8dd}
.side-label{color:#8da193;font-size:10px;letter-spacing:2.5px}
.sidebar-footer{letter-spacing:.2px}
.side-quote{border:1px solid #e4e9d8;background:linear-gradient(150deg,#f5f5e9,#ecf5e9)}
.side-quote p{font-family:"Cormorant Garamond",Georgia,serif;font-size:21px;line-height:1.15;letter-spacing:-.15px}
.dark .side-quote{background:#2e3d2d;border-color:#40533a}
.topbar{height:76px;background:color-mix(in srgb,var(--surface) 90%,transparent);backdrop-filter:blur(18px);border-bottom-color:var(--line)}
.topbar-path{letter-spacing:1.65px}
.topbar-search{background:var(--bg);border-color:var(--line);box-shadow:inset 0 1px 1px #1b513108}
.topbar-search:hover{border-color:#9ab7a2;box-shadow:0 0 0 3px #7dac8133}
.avatar-circle{background:radial-gradient(circle at 25% 20%,#376b4e,#0c3529);color:#e7d59c;box-shadow:0 0 0 3px #e8f0e7}
.dark .avatar-circle{box-shadow:0 0 0 3px #2d4f3c}
.content-area{padding-top:35px;max-width:1250px}
.section-eyebrow{letter-spacing:2.6px;font-size:10px;color:#789879}
.section-header{margin-top:43px;margin-bottom:21px}
.section-header h2{font-family:Manrope,sans-serif;font-size:clamp(24px,2.4vw,30px);line-height:1.26;letter-spacing:-1.15px}
.section-header p{color:var(--muted)}
.section-action{font-size:12px;color:var(--green);display:flex;align-items:center}
.section-action svg{width:16px;height:16px}
.premium-hero{
  isolation:isolate;position:relative;min-height:449px;display:flex;align-items:center;overflow:hidden;
  border-radius:25px;border:1px solid #ab976d78;
  box-shadow:0 32px 68px #0f38242e,0 5px 15px #103a1c14;
  background:linear-gradient(96deg,#082a22ed 0%,#093e2fbb 51%,#143f30a0 100%),url('/quran-app/hero.webp') center 48% / cover no-repeat;
}
.premium-hero::before{content:"";position:absolute;inset:0;top:0;right:0;bottom:0;left:0;width:auto;height:auto;border:0;border-radius:0;z-index:0;pointer-events:none;background:radial-gradient(circle at 89% 20%,#f2db8b29,transparent 34%),linear-gradient(90deg,#092c24 0%,#0b3a2caa 55%,#0b382b18);box-shadow:inset 0 0 100px #031e1633}
.premium-hero::after{content:"";position:absolute;inset:14px;width:auto;height:auto;top:14px;right:14px;bottom:14px;left:14px;background:none;z-index:2;pointer-events:none;border:1px solid rgba(230,201,133,.22);border-radius:15px;box-shadow:0 0 0 1px #f4dca30a}
.hero-shader-canvas{
  position:absolute;inset:0;width:100%;height:100%;z-index:0;opacity:0;pointer-events:none;
  mix-blend-mode:screen;mask-image:linear-gradient(90deg,transparent 10%,#0007 52%,#000 100%);
  -webkit-mask-image:linear-gradient(90deg,transparent 10%,#0007 52%,#000 100%);
  transition:opacity 1.1s ease;
}
.hero-shader-canvas.is-ready{opacity:.35}
.hero-texture{position:absolute;inset:0;z-index:1;pointer-events:none;opacity:.6;background-image:radial-gradient(#fce8b94d .65px,transparent .8px);background-size:24px 24px;mask-image:linear-gradient(90deg,transparent 10%,#000 100%)}
.premium-hero .hero-content{z-index:3;position:relative;max-width:680px;padding:60px 30px 56px 58px}
.premium-hero .hero-pill{background:#f1d99a14;border:1px solid #ebd49d57;font-size:9px;letter-spacing:2.3px;color:#ecd7a4;padding:9px 13px;gap:9px}
.hero-pill-star{font-size:16px;line-height:.7;color:#e4c992}
.hero-eyebrow{font-size:12px;letter-spacing:.8px;color:#cfe2d1;margin-top:32px;font-weight:600}
.premium-hero h1{font-family:Manrope,sans-serif;line-height:1.12;font-weight:800;letter-spacing:-2.7px;font-size:clamp(36px,4.2vw,57px);color:#fff;margin:12px 0 18px;text-wrap:balance}
.premium-hero h1 em{font-family:"Cormorant Garamond",Georgia,serif;font-weight:500;font-style:italic;letter-spacing:-1.35px;color:#f4ddac;font-size:1.09em}
.premium-hero .subtext{color:#d4e7d7;font-size:13px;line-height:1.96;max-width:484px}
.premium-hero .hero-buttons{margin-top:28px;display:flex;flex-wrap:wrap;gap:12px}
.premium-hero .btn{min-height:49px;padding:12px 21px;border-radius:11px;position:relative}
.premium-hero .btn-primary{background:linear-gradient(145deg,#f3e3b6,#d8b678);color:#1e3e2e;box-shadow:0 12px 25px #001e154d}
.premium-hero .btn-primary:hover{background:#f7e7c6}
.premium-hero .btn-ghost{border:1px solid #f8eed179;color:#fff;background:#ffffff13;backdrop-filter:blur(4px)}
.premium-hero .btn-ghost:hover{background:#ffffff22}
.hero-trust-line{display:flex;gap:13px;align-items:center;flex-wrap:wrap;font-size:10px;letter-spacing:.35px;color:#c4dccc;margin-top:34px;font-weight:600}
.hero-trust-dot{height:6px;width:6px;border-radius:50%;display:inline-block;background:#dcd494;box-shadow:0 0 0 4px #edcd7740;margin-right:9px}
.hero-trust-divider{height:14px;width:1px;background:#f1e2ac55}
.hero-seal{position:absolute;right:6.5%;top:20%;z-index:1;width:230px;height:230px;display:grid;place-items:center;border:1px solid #efd89b55;border-radius:50%;box-shadow:0 0 0 19px #e7c98a09,0 0 0 20px #dfcf953b,0 0 0 56px #e9d9a506,0 0 0 57px #e9d9a51d;background:radial-gradient(circle at 50% 50%,#e8c7851a,transparent 75%);pointer-events:none}
.hero-seal-ring{width:175px;height:175px;border:1px dashed #e0c99072;border-radius:50%;display:grid;place-content:center;justify-items:center;color:#e9d8aa}
.hero-seal-glyph{font:82px/.95 "Amiri",serif;text-shadow:0 6px 25px #d3a95e66}
.hero-seal-ring small{font:11px/1.5 "Noto Nastaliq Urdu",serif}
.hero-corner-caption{position:absolute;right:28px;bottom:29px;z-index:3;letter-spacing:2.7px;font-size:9px;font-weight:800;color:#f2dfb680;writing-mode:vertical-rl}
.premium-hero .hero-art{display:none}
.stat-row{margin-top:18px;gap:15px}
.stat-card{border:1px solid var(--line);border-radius:15px;background:var(--surface);min-height:100px;padding:23px;box-shadow:var(--shadow);transition:transform .18s,box-shadow .18s,border-color .18s}
.stat-card:hover{transform:translateY(-2px);border-color:#bed4c0;box-shadow:0 20px 44px #082e1814}
.stat-icon{width:45px;height:45px;color:#2c7655;background:#eaf3e9;border-radius:12px}
.dark .stat-icon{background:#304936;color:#b1ddbb}
.stat-text strong{font-size:25px;letter-spacing:-1.1px}
.stat-text span{font-size:11px}
.reading-strip{padding:27px 28px;background:linear-gradient(110deg,#eaf3e7,#f5f5eb);border:1px solid #dae6d6;border-radius:16px}
.dark .reading-strip{background:linear-gradient(130deg,#264331,#25382b);border-color:#3b5944}
.reading-strip h3{font-size:17px;letter-spacing:-.3px}
.reading-strip .btn-green{background:#14553c;color:#fff;box-shadow:0 7px 16px #0b4a3426}
.cards-grid{gap:16px}
.feature-card{min-height:216px;border:1px solid var(--line);border-radius:17px;background:var(--surface);padding:27px;box-shadow:var(--shadow);transition:transform .2s,box-shadow .2s,border-color .2s}
.feature-card:hover{transform:translateY(-3px);border-color:#abcaac;box-shadow:0 22px 40px rgba(22,55,31,.1)}
.feature-card.gold:hover{border-color:#dbca9e}
.feature-card.blue:hover{border-color:#bbd9d7}
.feature-card h3{font-size:16px;letter-spacing:-.25px}
.feature-card p{font-size:12px;line-height:1.7}
.feature-icon{width:49px;height:49px;border-radius:13px}
.feature-icon svg{width:21px;height:21px}
.feature-card .feature-arrow{margin-top:auto;color:var(--green)}
.two-column{gap:18px}
.verse-spotlight,.mini-seerah{border-radius:18px;min-height:280px;overflow:hidden}
.verse-spotlight{padding:31px;background:radial-gradient(circle at 95% 0%,#e9f0df,#fffdfa 70%)}
.dark .verse-spotlight{background:radial-gradient(circle at 95% 0%,#334b38,#20362b 70%)}
.verse-spotlight .arabic-mini{font-size:37px;line-height:2.1;margin:21px 0}
.verse-spotlight p{font-family:"Cormorant Garamond",Georgia,serif;font-size:26px;font-weight:600;color:var(--ink)}
.mini-seerah{padding:31px;background:linear-gradient(135deg,#f6f1e1,#ebedde);border-color:#e7e0d0}
.dark .mini-seerah{background:linear-gradient(120deg,#383c2d,#2b352c);border-color:#4b4f38}
.mini-seerah h3{font-size:26px}
.feature-shortcuts{gap:15px}
.feature-shortcuts button{background:var(--surface);border-color:var(--line);min-height:170px;border-radius:16px;box-shadow:var(--shadow)}
.feature-shortcuts button:hover{border-color:#a5c4a7}
.feature-shortcuts strong{font-size:13px}
.shortcut-symbol{background:#e9f3e9;color:#287353;border-radius:13px}
.pt-home-card{border-radius:17px;box-shadow:var(--shadow)}
.pt-home-card .btn-green{background:#175b43}
.page-heading h1{letter-spacing:-1.6px}
.surah-card{border:1px solid var(--line);box-shadow:0 6px 16px rgba(15,52,27,.02)}
.surah-card:hover{box-shadow:0 16px 32px #113f2c12}
.chapter-banner{border:1px solid #c9af7480;background:radial-gradient(ellipse at 50% -15%,#346c51,#0c382a 70%);box-shadow:0 16px 40px #0e392a21}
.verse-list{box-shadow:var(--shadow)}
.verse{scroll-margin-top:112px}
.verse:hover{background:color-mix(in srgb,var(--surface) 94%,#bdd6be)}
.verse-arabic{font-weight:400;line-height:2.45}
.verse-translation{line-height:2.55}
.quran-study-switch{box-shadow:var(--shadow)}
.flashcard{border-color:#dfc381;box-shadow:0 23px 50px #07361d24}
.pt-hero{box-shadow:0 24px 50px #0c37252e}
.pt-panel,.hm-card,.settings-panel{box-shadow:var(--shadow)}
.bottom-nav{box-shadow:0 -8px 32px rgba(22,50,32,.13)}
.site-footer{font-size:11px}
.site-footer a:hover{text-decoration:underline}
@media(max-width:1200px){
.sidebar{width:235px}
.premium-hero .hero-content{padding:48px 30px 49px 38px;max-width:630px}
.premium-hero h1{font-size:47px}
.hero-seal{right:5%;width:200px;height:200px;top:21%}
.hero-seal-ring{width:160px;height:160px}
.hero-seal-glyph{font-size:72px}
}
@media(max-width:960px){
.sidebar{width:212px}
.identity-text strong{font-size:14px}
.premium-hero{min-height:415px}
.premium-hero h1{font-size:42px}
.premium-hero .subtext{max-width:440px}
.hero-seal{width:160px;height:160px;right:4.7%;top:25%;opacity:.65}
.hero-seal-ring{width:130px;height:130px}
.hero-seal-glyph{font-size:56px}
.hero-seal-ring small{font-size:9px}
}
@media(max-width:800px){
.sidebar{width:260px}
.premium-hero .hero-content{max-width:590px;padding:44px 34px 47px}
.premium-hero{min-height:408px}
.premium-hero h1{font-size:clamp(36px,5.5vw,49px)}
.hero-seal{right:2%;opacity:.25}
.topbar{height:66px}
}
@media(max-width:650px){
:root{--shadow:0 10px 28px #102e1710}
.content-area{padding:22px 16px 112px}
.topbar{height:61px}
.topbar-search{display:flex;width:34px;min-width:34px;height:34px;padding:0;justify-content:center;border-radius:9px}
.topbar-search span:not([data-icon]),.topbar-search kbd{display:none}
.topbar-path{letter-spacing:.9px}
.topbar-path strong{font-size:10px}
.premium-hero{border-radius:20px;min-height:405px;align-items:center;box-shadow:0 23px 40px #0d3e2b25;background-position:63% center}
.premium-hero::before{background:linear-gradient(90deg,#092c26ed,#0d382fdb)}
.premium-hero::after{inset:9px;border-radius:13px}
.premium-hero .hero-content{padding:32px 25px 34px;max-width:100%}
.premium-hero .hero-pill{letter-spacing:1.3px;font-size:8px;padding:8px 11px}
.hero-eyebrow{margin-top:24px;font-size:11px}
.premium-hero h1{font-size:clamp(33px,8.4vw,45px);letter-spacing:-1.6px;line-height:1.14;margin:12px 0 17px}
.premium-hero h1 em{letter-spacing:-.8px}
.premium-hero .subtext{font-size:11.7px;line-height:1.85;max-width:360px}
.premium-hero .hero-buttons{gap:8px;margin-top:23px}
.premium-hero .btn{padding:11px 13px;min-height:44px;font-size:10px}
.premium-hero .btn svg{width:15px;height:15px}
.hero-trust-line{margin-top:27px;font-size:9px;gap:8px;line-height:1.6}
.hero-trust-divider{height:10px}
.hero-seal{right:-29px;top:20px;opacity:.15;transform:rotate(-9deg)}
.hero-corner-caption{display:none}
.hero-shader-canvas{display:none}
.hero-texture{opacity:.25}
.stat-row{gap:8px;margin-top:13px}
.stat-card{min-height:99px;padding:13px 8px;box-shadow:none}
.stat-icon{width:35px;height:35px;margin-bottom:7px}
.stat-text strong{font-size:19px}
.stat-text span{font-size:9px}
.section-header{margin-top:33px;margin-bottom:17px}
.section-header h2{font-size:23px}
.section-header p{font-size:11px}
.section-header-reading{align-items:end}
.section-header-reading .section-action{font-size:10px}
.reading-strip{padding:17px 16px}
.reading-strip h3{font-size:14px}
.reading-strip .btn-green{margin-top:4px}
.cards-grid{gap:10px}
.feature-card{min-height:184px;padding:19px 15px}
.feature-card h3{font-size:14px}
.feature-card p{font-size:11px}
.feature-icon{width:39px;height:39px}
.verse-spotlight,.mini-seerah{min-height:0}
.verse-spotlight{padding:24px}
.verse-spotlight .arabic-mini{font-size:30px}
.verse-spotlight p{font-size:22px}
.mini-seerah{padding:26px}
.feature-shortcuts{gap:10px}
.feature-shortcuts button{min-height:151px;box-shadow:none}
.bottom-nav{height:calc(71px + env(safe-area-inset-bottom));padding-bottom:calc(7px + env(safe-area-inset-bottom))}
.mobile-nav-link{font-size:10px}
}
@media(max-width:380px){
.premium-hero .hero-content{padding:28px 19px 30px}
.premium-hero h1{font-size:32px}
.premium-hero .btn{font-size:9.5px;padding:10px 11px}
.hero-trust-line{font-size:8.5px}
.section-header-reading .section-action{max-width:100px;justify-content:flex-end}
}
@media(prefers-reduced-motion:reduce){
.hero-shader-canvas{display:none}
.stat-card,.feature-card,.surah-card,.nav-link{transition:none}
}
