/* ISLAMIC AGE CALCULATOR | Premium Homepage Stage 2
   Scoped exclusively to body.premium-home. Other legacy pages retain their existing design. */
body.premium-home {
  --premium-ink: #102b2a;
  --premium-emerald: #075c51;
  --premium-deep: #073e39;
  --premium-soft: #eaf7f2;
  --premium-gold: #c79543;
  --premium-line: #e2eae7;
  --premium-shadow: 0 24px 70px rgba(13, 64, 57, .085);
  background: radial-gradient(ellipse 55% 25% at 86% 9%,rgba(228,205,153,.17),transparent),
              radial-gradient(ellipse 50% 40% at 0% 20%,rgba(120,204,177,.1),transparent), #f7faf8;
  color: var(--premium-ink);
  background-attachment: scroll;
}
body.premium-home .navbar {
  height: 80px; background:rgba(255,255,255,.93); border-bottom:1px solid #dceae3;
  box-shadow: 0 5px 25px rgba(27,74,62,.045); padding:0 max(24px,calc((100vw - 1330px)/2));
}
body.premium-home .logo { font-size:1.14rem; letter-spacing:-.035em; gap:10px; color:#075c51; }
body.premium-home .logo .fa-moon { width:37px; height:37px; border-radius:11px; display:grid; place-items:center; background:#075c51; color:#f9dca3; font-size:1.05rem; }
body.premium-home .nav-links { gap:3px; }
body.premium-home .nav-item { font-size:.82rem; font-weight:600; padding:9px 12px; }
body.premium-home .nav-item.active { background:#e7f3ee; color:#075c51; }
body.premium-home .today-hijri-badge { border:1px solid #dcece5; background:#f7faf8; padding:8px 16px; font-size:.78rem; box-shadow:none; }
body.premium-home #themeToggle { border-color:#dcece5; color:#075c51; margin-left:8px; }
body.premium-home .premium-site-container { max-width:1300px; margin:0 auto; padding:35px 24px 0; gap:0; }
body.premium-home .premium-home-content { width:100%; max-width:1250px; background:#fff; border:1px solid #e3ece8; padding:34px; margin:0 auto 22px; border-radius:26px; box-shadow:var(--premium-shadow); overflow:visible; }
body.premium-home .premium-hero { display:grid; grid-template-columns:minmax(0,.96fr) minmax(0,1.04fr); gap:38px; align-items:stretch; }
body.premium-home .premium-intro { display:flex; flex-direction:column; justify-content:center; align-items:flex-start; padding:16px 10px 20px 16px; min-width:0; }
body.premium-home .hero-eyebrow { font-size:.68rem; font-weight:800; letter-spacing:.17em; display:inline-flex; align-items:center; gap:9px; color:#427e70; background:#ecf7f2; padding:9px 13px; border-radius:100px; margin-bottom:22px; }
body.premium-home .eyebrow-dot { background:var(--premium-gold); width:7px; height:7px; border-radius:100%; box-shadow:0 0 0 4px rgba(199,149,67,.16); }
body.premium-home .header-section { border:0; text-align:left; padding:0; margin:0; }
body.premium-home .header-section h1 { color:var(--premium-ink); font-weight:800; letter-spacing:-.065em; font-size:clamp(2rem,3.5vw,3.45rem); line-height:1.14; max-width:570px; margin-bottom:13px; }
body.premium-home .header-section h1 i { color:var(--premium-gold); font-size:.73em; margin-right:3px; }
body.premium-home .header-section .subtitle { font-size:.94rem; font-weight:600; color:#39796a; }
body.premium-home .hero-summary { color:#657b75; margin:18px 0 24px; font-size:.98rem; line-height:1.9; max-width:470px; }
body.premium-home .hero-trust { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:32px; }
body.premium-home .hero-trust span { color:#406e62; font-size:.73rem; font-weight:600; display:inline-flex; align-items:center; gap:7px; }
body.premium-home .hero-trust i { color:#0b9976; font-size:.81rem; }
body.premium-home .hero-sub-link { color:#587b70; text-decoration:none; font-size:.82rem; padding-bottom:5px; border-bottom:1px solid #dce9e4; }
body.premium-home .hero-sub-link strong { color:#076e5d; margin-left:4px; }
body.premium-home .hero-sub-link:hover strong { text-decoration:underline; }
body.premium-home .premium-calc-panel { background:linear-gradient(145deg,#0b6559 0%, #06443e 100%); color:#fff; border-radius:22px; padding:35px 31px 27px; position:relative; overflow:hidden; box-shadow: 0 18px 35px rgba(0,78,65,.2); }
body.premium-home .premium-calc-panel::before { content:''; position:absolute; width:320px; height:320px; right:-140px; top:-170px; background:radial-gradient(circle,rgba(206,167,97,.22),transparent 71%); pointer-events:none; }
body.premium-home .premium-calc-panel::after { content:''; position:absolute; width:240px; height:240px; bottom:-170px; left:-80px; border:1px solid rgba(255,255,255,.08); border-radius:50%; box-shadow:0 0 0 55px rgba(255,255,255,.022); pointer-events:none; }
body.premium-home .calc-panel-top { display:flex; align-items:center; gap:14px; position:relative; z-index:1; padding-bottom:22px; border-bottom:1px solid rgba(255,255,255,.17); margin-bottom:26px; }
body.premium-home .panel-icon { width:50px; height:50px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.25); border-radius:15px; color:#ffe0a1; background:rgba(255,255,255,.08); font-size:1.15rem; }
body.premium-home .panel-kicker { color:#bbd9cf; font-size:.65rem; letter-spacing:.18em; font-weight:800; margin-bottom:5px; }
body.premium-home .calc-panel-top h2 { color:#fff; font-size:1.31rem; line-height:1.3; font-weight:700; letter-spacing:-.025em; }
body.premium-home .input-area { display:flex; flex-direction:column; align-items:stretch; margin:0; gap:20px; position:relative; z-index:1; }
body.premium-home .date-selectors { max-width:none; width:100%; display:grid; grid-template-columns:.9fr 1.3fr 1fr; align-items:start; gap:10px; }
body.premium-home .date-field { display:flex; flex-direction:column; gap:9px; min-width:0; }
body.premium-home .date-field > span { color:#d4e7df; font-size:.75rem; font-weight:600; }
body.premium-home .custom-select { display:block; width:100%; min-width:0; min-height:58px; border:1px solid rgba(255,255,255,.75); box-shadow:0 2px 9px rgba(2,31,30,.11); background:#fff; color:#163f39; border-radius:11px; text-align:left; font-size:.86rem; padding:12px 10px; font-weight:600; }
body.premium-home .custom-select:focus-visible { outline:3px solid #e3bd78; outline-offset:2px; border-color:#bd904d; }
body.premium-home .input-area .action-btn { width:100%; max-width:none; min-height:58px; background:linear-gradient(125deg,#f7d68c,#e6ae57); color:#203e34; border:0; border-radius:11px; box-shadow:0 10px 20px rgba(1,26,26,.14); font-weight:800; letter-spacing:.015em; }
body.premium-home .input-area .action-btn:hover { background:linear-gradient(125deg,#ffe0a2,#efba68); box-shadow:0 13px 22px rgba(1,26,26,.22); transform:translateY(-2px); }
body.premium-home .calc-privacy-note { position:relative; z-index:1; border-top:1px solid rgba(255,255,255,.13); padding-top:17px; margin-top:23px; font-size:.7rem; color:#d1e8df; line-height:1.8; }
body.premium-home .calc-privacy-note i { color:#f1cb88; margin-right:6px; }
body.premium-home .premium-welcome { background:#f2faf6; border:1px solid #e0f1e9; border-radius:12px; padding:12px 16px; margin:23px 0 0; color:#436c60; font-size:.82rem; text-align:left; justify-content:flex-start; }
body.premium-home .result-topline { margin:0 0 16px; padding-bottom:16px; border-bottom:1px solid #edf1ef; }
body.premium-home .result-topline span { color:#a0773c; letter-spacing:.14em; font-size:.7rem; font-weight:700; }
body.premium-home .result-topline h2 { color:#163a32; letter-spacing:-.03em; font-size:1.55rem; }
body.premium-home #resultSection { padding-top:25px; }
body.premium-home .ages-wrapper { gap:15px; }
body.premium-home .main-age-display { background:#f5faf7; border:1px solid #e2ece7; border-radius:16px; box-shadow:none; padding:26px 22px; }
body.premium-home .main-age-display h3 { color:#648079; font-size:.88rem; }
body.premium-home .main-age-display h2 { color:#0b6759; font-size:clamp(1.25rem,2vw,1.65rem); }
body.premium-home .islamic-age-box { background:linear-gradient(130deg,#096b59,#084d46); border:1px solid #076853; }
body.premium-home .life-stats-container,body.premium-home .islamic-card { border-radius:16px; }
body.premium-home .info-card { border-radius:15px; box-shadow:none; }
body.premium-home .grid-container { grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; }
body.premium-home .converter-box { margin-top:34px; border-radius:19px; background:#f7fbf8; border:1px solid #dcece4; padding:29px; }
body.premium-home .converter-box > h2 { font-size:1.5rem; margin-bottom:25px; color:#0b6559; }
body.premium-home .converter-col { min-width:0; background:white; border:1px solid #e2eee7; border-radius:15px; padding:22px; }
body.premium-home .converter-col h3 { font-size:1rem; color:#294e44; }
body.premium-home .converter-col .action-btn { min-width:0; background:#0a6f5e; border-radius:10px; box-shadow:none; }
body.premium-home .converter-input { min-width:0; }
body.premium-home .premium-auto-year { color:#879c92; text-align:center; font-size:.72rem; margin-top:25px; }
body.premium-home .premium-tools { width:100%; max-width:1250px; margin:25px auto 40px; }
body.premium-home .tool-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin:0 3px 21px; }
body.premium-home .section-kicker { color:#ab8546; font-size:.7rem; letter-spacing:.16em; font-weight:800; margin-bottom:7px; }
body.premium-home .tool-heading h2 { color:#163a32; font-size:clamp(1.35rem,2.3vw,1.85rem); letter-spacing:-.04em; line-height:1.3; }
body.premium-home .tool-heading > p { color:#6e8079; font-size:.83rem; max-width:320px; }
body.premium-home .tools-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
body.premium-home .tool-link { display:flex; flex-direction:column; align-items:flex-start; position:relative; min-height:173px; background:#fff; border:1px solid #e1ece7; border-radius:18px; padding:23px 20px 20px; text-decoration:none; box-shadow:0 8px 22px rgba(19,67,53,.035); transition:transform .22s,border-color .22s,box-shadow .22s; }
body.premium-home .tool-link:hover { transform:translateY(-4px); border-color:#a6d5c0; box-shadow:0 14px 29px rgba(19,67,53,.09); }
body.premium-home .tool-icon { width:41px; height:41px; border-radius:12px; color:#08705d; background:#e9f7ef; display:grid; place-items:center; margin-bottom:13px; }
body.premium-home .tool-link strong { color:#20463c; font-size:.94rem; margin-bottom:5px; }
body.premium-home .tool-link > span:not(.tool-icon) { color:#778c82; font-size:.72rem; line-height:1.5; }
body.premium-home .tool-link .tool-arrow { color:#9cb4a7; position:absolute; top:26px; right:20px; font-size:.72rem; }
body.premium-home .article-section { width:100%; max-width:1250px; padding:31px 35px; background:#fff; border:1px solid #e4ede8; box-shadow:0 8px 30px rgba(11,55,45,.035); border-radius:20px; margin:0 auto 25px; text-align:left; }
body.premium-home .article-section h2 { display:block; border:0; padding:0; color:#0b6559; font-size:1.5rem; margin-bottom:17px; }
body.premium-home .article-section p { line-height:1.9; color:#61766d; font-size:.92rem; margin-bottom:14px; }
body.premium-home .article-section a { color:#086957; font-weight:600; text-underline-offset:4px; }
body.premium-home .main-footer { width:100%; background:#0e3733; border:0; margin-top:35px; color:#e2f1e9; }
body.premium-home .footer-col h3 { color:#f0cc87; }
body.premium-home .footer-desc,body.premium-home .footer-links a,body.premium-home .footer-bottom { color:#c8dcd4; }
body.premium-home .footer-bottom { background:rgba(0,0,0,.12); border-color:rgba(255,255,255,.1); }
body.premium-home .footer-links a:hover { color:#ffe2aa; }
body.premium-home .action-btn:focus-visible,body.premium-home a:focus-visible,body.premium-home button:focus-visible { outline:3px solid #f0c371; outline-offset:3px; }

/* Night palette applies after existing JS adds .dark-mode to body */
body.premium-home.dark-mode { --premium-ink:#e8f5ef; --premium-line:#284d46; background:radial-gradient(ellipse at 80% 5%,#1a4b43,#102521 62%); color:#e8f5ef; }
body.premium-home.dark-mode .navbar { background:rgba(12,33,31,.95); border-color:#254a40; }
body.premium-home.dark-mode .premium-home-content,body.premium-home.dark-mode .tool-link,body.premium-home.dark-mode .article-section { background:#18332e; border-color:#2b5147; }
body.premium-home.dark-mode .logo { color:#d9eee5; }
body.premium-home.dark-mode .header-section h1,body.premium-home.dark-mode .tool-heading h2,body.premium-home.dark-mode .tool-link strong,body.premium-home.dark-mode .result-topline h2 { color:#e7f7ef; }
body.premium-home.dark-mode .hero-eyebrow,body.premium-home.dark-mode .premium-welcome,body.premium-home.dark-mode .main-age-display,body.premium-home.dark-mode .converter-box { background:#233f37; border-color:#315c4b; color:#c7e1d5; }
body.premium-home.dark-mode .hero-summary,body.premium-home.dark-mode .article-section p,body.premium-home.dark-mode .tool-heading>p { color:#b1c8bb; }
body.premium-home.dark-mode .hero-trust span,body.premium-home.dark-mode .hero-sub-link { color:#b6d4c6; }
body.premium-home.dark-mode .main-age-display h3 { color:#b3cebf; }
body.premium-home.dark-mode .main-age-display h2 { color:#80dbc0; }
body.premium-home.dark-mode .islamic-age-box { background:linear-gradient(130deg,#086b5e,#0a453f); }
body.premium-home.dark-mode .converter-col { background:#18332e; border-color:#335a4e; }
body.premium-home.dark-mode .converter-col h3 { color:#d6ede3; }
body.premium-home.dark-mode .tool-link>span:not(.tool-icon) { color:#b4ccbf; }

@media(max-width:1180px) {
  body.premium-home .navbar { padding:0 20px; }
  body.premium-home .date-time-container { left:50%; }
  body.premium-home .premium-hero { gap:22px; }
  body.premium-home .premium-home-content { padding:25px; }
  body.premium-home .grid-container { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:900px) {
  body.premium-home .premium-site-container { padding:18px 14px 0; }
  body.premium-home .premium-hero { grid-template-columns:1fr; gap:15px; }
  body.premium-home .premium-intro { padding:14px 7px 10px; }
  body.premium-home .header-section h1 { max-width:none; }
  body.premium-home .hero-summary { max-width:750px; }
  body.premium-home .hero-trust { margin-bottom:17px; }
  body.premium-home .premium-calc-panel { padding:25px; }
  body.premium-home .tools-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body.premium-home .tool-heading { align-items:start; flex-direction:column; gap:7px; }
  body.premium-home .article-section { padding:25px; }
}
@media(max-width:600px) {
  body.premium-home .navbar { height:70px; padding:0 12px; }
  body.premium-home .today-hijri-badge { padding:8px 10px; font-size:.72rem; }
  body.premium-home .premium-home-content { border-radius:19px; padding:17px 14px; }
  body.premium-home .hero-eyebrow { font-size:.57rem; letter-spacing:.12em; margin-bottom:14px; }
  body.premium-home .header-section h1 { font-size:clamp(1.85rem,8vw,2.55rem); }
  body.premium-home .hero-summary { margin:12px 0 18px; font-size:.86rem; line-height:1.7; }
  body.premium-home .hero-trust { gap:10px 14px; }
  body.premium-home .hero-trust span { font-size:.69rem; }
  body.premium-home .hero-sub-link { font-size:.75rem; }
  body.premium-home .premium-calc-panel { padding:24px 17px; border-radius:17px; }
  body.premium-home .date-selectors { grid-template-columns:1fr 1.3fr; gap:10px; }
  body.premium-home .date-field:last-child { grid-column:1/-1; }
  body.premium-home .date-field .custom-select { min-height:54px; }
  body.premium-home .grid-container { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  body.premium-home .converter-box { padding:16px 12px; }
  body.premium-home .converter-col { padding:16px 12px; }
  body.premium-home .tools-grid { gap:9px; }
  body.premium-home .tool-link { padding:17px 12px; min-height:166px; }
  body.premium-home .tool-link strong { font-size:.81rem; }
  body.premium-home .tool-link .tool-arrow { right:12px; top:20px; }
  body.premium-home .article-section { padding:23px 18px; }
  body.premium-home .article-section h2 { font-size:1.25rem; }
}
@media(max-width:400px) {
  body.premium-home .logo-section .logo { display:flex; }
  body.premium-home .date-time-container { display:none; }
  body.premium-home .today-hijri-badge { display:none; }
}
@media(prefers-reduced-motion:reduce) {
  body.premium-home *,body.premium-home *::before,body.premium-home *::after { transition-duration:.01ms !important; animation-duration:.01ms !important; scroll-behavior:auto !important; }
}
/* Native mobile navigation button: accessible without the legacy inline click handler. */
body.premium-home .hamburger { background:transparent; border:0; padding:7px; border-radius:9px; }
body.premium-home .hamburger:focus-visible { outline:3px solid #efc681; outline-offset:2px; }
