/*
Theme Name: Weekly Solana
Author: Site Owner
Description: A lightweight blue-and-white rewards theme designed for Weekly Solana, PTC Rewards Core, and TimeWall pages.
Version: 1.4.0
Requires at least: 6.5
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: islamic-wall-lite
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, blog
*/

:root {
  --iw-blue: #3157f6;
  --iw-blue-dark: #2443cf;
  --iw-sky: #2f9cf4;
  --iw-cyan: #22c8df;
  --iw-gradient: linear-gradient(135deg, #3458f5 0%, #318cf5 55%, #20c6df 100%);
  --iw-gradient-soft: linear-gradient(180deg, #fbfcff 0%, #f2f7ff 100%);
  --iw-ink: #0d1938;
  --iw-text: #465270;
  --iw-muted: #6d7893;
  --iw-border: #e4e9f3;
  --iw-soft: #f3f7ff;
  --iw-white: #fff;
  --iw-success: #0e9f6e;
  --iw-warning: #f59e0b;
  --iw-radius: 18px;
  --iw-shadow: 0 22px 55px rgba(35, 67, 145, .11);
  --iw-shadow-small: 0 9px 26px rgba(35, 67, 145, .08);
  --iw-container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; color: var(--iw-text); background: var(--iw-white); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.admin-bar .site-header { top: 32px; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4 { margin-top: 0; color: var(--iw-ink); font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.17; letter-spacing: -.025em; }
p { margin-top: 0; }
.container { width: min(var(--iw-container), calc(100% - 40px)); margin-inline: auto; }
.container.narrow { width: min(960px, calc(100% - 40px)); }
.page-content-width { width: min(980px, calc(100% - 40px)); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { z-index: 100000; top: 10px; left: 10px; width: auto; height: auto; padding: 12px 18px; clip: auto; color: var(--iw-ink); background: #fff; border-radius: 7px; box-shadow: var(--iw-shadow); }

/* Header */
.site-header { position: sticky; z-index: 1000; top: 0; background: rgba(255, 255, 255, .91); border-bottom: 1px solid rgba(228, 233, 243, .85); backdrop-filter: saturate(150%) blur(14px); }
.nav-shell { display: flex; min-height: 74px; align-items: center; justify-content: space-between; gap: 26px; }
.brand-wrap { display: flex; flex: 0 0 auto; align-items: center; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 10px; color: var(--iw-ink); font-weight: 800; }
.brand-mark { display: inline-grid; width: 38px; height: 38px; place-items: center; color: #fff; background: var(--iw-gradient); border-radius: 11px; box-shadow: 0 9px 20px rgba(49, 87, 246, .24); font-size: 18px; letter-spacing: -.08em; }
.brand-name { max-width: 170px; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.brand-custom-logo, .custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { width: auto; max-height: 46px; }
.primary-nav { margin-left: auto; }
.nav-links, .primary-nav ul { display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); padding: 0; margin: 0; list-style: none; }
.nav-links a, .primary-nav a { position: relative; display: block; padding: 27px 0 24px; color: var(--iw-ink); font-size: 12px; font-weight: 750; letter-spacing: .045em; text-transform: uppercase; }
.nav-links a::after, .primary-nav a::after { position: absolute; right: 0; bottom: 18px; left: 0; height: 2px; content: ""; background: var(--iw-blue); border-radius: 3px; transform: scaleX(0); transition: transform .2s ease; }
.nav-links a:hover, .nav-links a:focus-visible, .primary-nav a:hover, .primary-nav a:focus-visible { color: var(--iw-blue); }
.nav-links a:hover::after, .nav-links a:focus-visible::after, .primary-nav a:hover::after, .primary-nav a:focus-visible::after, .current-menu-item > a::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.mobile-auth-links { display: none; }
.nav-toggle { display: none; width: 42px; height: 42px; padding: 9px; border: 0; background: transparent; border-radius: 9px; cursor: pointer; }
.nav-toggle > span:not(.screen-reader-text) { display: block; width: 23px; height: 2px; margin: 5px auto; background: var(--iw-ink); border-radius: 3px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] > span:nth-of-type(2) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] > span:nth-of-type(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] > span:nth-of-type(4) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.button, .wp-element-button, button[type="submit"], input[type="submit"] { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; padding: 11px 24px; color: #fff; background: var(--iw-gradient); border: 0; border-radius: 999px; box-shadow: 0 11px 25px rgba(49, 87, 246, .26); font-weight: 750; line-height: 1.2; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.button:hover, .button:focus-visible, .wp-element-button:hover, button[type="submit"]:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 15px 30px rgba(49, 87, 246, .32); }
.button-small { min-height: 40px; padding: 9px 18px; font-size: 13px; }
.button-secondary { color: var(--iw-ink); background: #fff; border: 1px solid var(--iw-border); box-shadow: var(--iw-shadow-small); }
.button-secondary:hover, .button-secondary:focus-visible { color: var(--iw-blue); background: #fff; }
.button-white { color: var(--iw-blue); background: #fff; box-shadow: 0 13px 28px rgba(12, 35, 87, .18); }
.button-white:hover, .button-white:focus-visible { color: var(--iw-blue-dark); background: #fff; }

/* Hero */
.hero-section { position: relative; overflow: hidden; padding: 78px 0 0; text-align: center; background: radial-gradient(65% 48% at 50% 0%, rgba(72, 128, 255, .18), transparent 72%), var(--iw-gradient-soft); }
.hero-orb { position: absolute; width: 360px; height: 360px; background: #6db8ff; border-radius: 50%; filter: blur(90px); opacity: .1; pointer-events: none; }
.hero-orb-one { top: 80px; left: -220px; }
.hero-orb-two { top: 200px; right: -240px; background: var(--iw-cyan); }
.hero-copy { position: relative; z-index: 1; }
.eyebrow-pill, .eyebrow { display: inline-flex; align-items: center; color: var(--iw-blue); font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.eyebrow-pill { padding: 7px 16px; margin-bottom: 20px; background: rgba(49, 87, 246, .09); border: 1px solid rgba(49, 87, 246, .1); border-radius: 999px; }
.eyebrow-pill.light { color: #fff; background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .2); }
.hero-copy h1 { max-width: 800px; margin: 0 auto; font-size: clamp(38px, 5.3vw, 66px); font-weight: 850; letter-spacing: -.055em; }
.hero-copy > p:not(.hero-fine-print) { max-width: 660px; margin: 20px auto 28px; color: var(--iw-muted); font-size: clamp(16px, 1.8vw, 18px); }
.hero-actions { display: flex; justify-content: center; gap: 12px; }
.hero-fine-print { margin: 15px 0 48px; color: var(--iw-muted); font-size: 12px; }

/* Dashboard illustration */
.dashboard-preview { position: relative; z-index: 2; overflow: hidden; text-align: left; background: #fff; border: 1px solid var(--iw-border); border-bottom: 0; border-radius: 18px 18px 0 0; box-shadow: 0 26px 65px rgba(35, 67, 145, .16); }
.preview-topbar { display: flex; height: 44px; align-items: center; gap: 7px; padding: 0 17px; background: #f5f7fb; border-bottom: 1px solid var(--iw-border); }
.preview-topbar span { width: 10px; height: 10px; background: #ff5f57; border-radius: 50%; }
.preview-topbar span:nth-child(2) { background: #febc2e; }
.preview-topbar span:nth-child(3) { background: #28c840; }
.preview-topbar b { margin-left: 8px; color: var(--iw-muted); font-size: 11px; font-weight: 600; }
.preview-layout { display: grid; grid-template-columns: 190px 1fr; min-height: 420px; }
.preview-sidebar { padding: 24px 16px; background: #fafbfe; border-right: 1px solid var(--iw-border); }
.preview-sidebar strong { display: flex; align-items: center; gap: 8px; color: var(--iw-ink); font-size: 13px; }
.preview-sidebar strong i { display: grid; width: 30px; height: 30px; place-items: center; color: #fff; background: var(--iw-gradient); border-radius: 8px; font-style: normal; }
.preview-sidebar ul { padding: 21px 0 0; margin: 0; list-style: none; }
.preview-sidebar li { padding: 10px 12px; margin-bottom: 5px; color: var(--iw-muted); border-radius: 8px; font-size: 12px; }
.preview-sidebar li.active { color: #fff; background: var(--iw-gradient); box-shadow: 0 8px 18px rgba(49, 87, 246, .2); }
.preview-main { padding: 27px; }
.preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.preview-heading small { color: var(--iw-muted); font-size: 11px; }
.preview-heading h2 { margin: 2px 0 0; font-size: 22px; }
.status-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; color: #087c59; background: #eafaf4; border-radius: 999px; font-size: 10px; font-weight: 700; }
.status-chip i { width: 7px; height: 7px; background: var(--iw-success); border-radius: 50%; }
.balance-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.balance-preview > div { display: grid; grid-template-columns: auto 1fr; padding: 16px; background: #fff; border: 1px solid var(--iw-border); border-radius: 13px; box-shadow: var(--iw-shadow-small); }
.balance-icon { grid-row: 1 / 4; display: grid; width: 40px; height: 40px; place-items: center; margin-right: 12px; color: #fff; background: var(--iw-blue); border-radius: 11px; font-style: normal; }
.balance-icon.amber { background: var(--iw-warning); }
.balance-icon.cyan { background: var(--iw-cyan); }
.balance-preview small { color: var(--iw-muted); font-size: 10px; }
.balance-preview strong { color: var(--iw-ink); font-size: 20px; line-height: 1.15; }
.balance-preview em { color: var(--iw-muted); font-size: 9px; font-style: normal; }
.activity-preview { display: grid; grid-template-columns: 1.65fr 1fr; gap: 14px; margin-top: 16px; }
.chart-preview, .recent-preview { overflow: hidden; padding: 17px; background: #fff; border: 1px solid var(--iw-border); border-radius: 13px; box-shadow: var(--iw-shadow-small); }
.preview-card-title { display: flex; align-items: center; justify-content: space-between; color: var(--iw-ink); font-size: 12px; }
.preview-card-title small { color: var(--iw-muted); font-size: 9px; }
.chart-preview svg { width: 100%; height: 145px; margin-top: 14px; }
.recent-preview p { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 12px 0; margin: 0; border-bottom: 1px solid var(--iw-border); font-size: 10px; }
.recent-preview p:last-child { border: 0; }
.recent-preview p > span:nth-child(2) { color: var(--iw-ink); font-weight: 650; }
.recent-preview p small { display: block; color: var(--iw-muted); font-size: 8px; font-weight: 400; }
.recent-preview p b { color: var(--iw-ink); font-size: 10px; }
.mini-icon { display: grid; width: 28px; height: 28px; place-items: center; color: var(--iw-blue); background: #edf2ff; border-radius: 8px; font-weight: 800; }
.mini-icon.paid { color: var(--iw-success); background: #eafaf4; }

/* Shared sections */
.section { padding: 92px 0; }
.section-soft { background: var(--iw-soft); }
.section-heading { margin-bottom: 46px; }
.section-heading h2, .trust-copy h2, .faq-intro h2 { max-width: 680px; margin: 8px 0 0; font-size: clamp(29px, 4vw, 42px); }
.section-heading > p { max-width: 570px; margin: 14px 0 0; color: var(--iw-muted); }
.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 38px; }
.split-heading > p { max-width: 385px; font-size: 14px; }
.centered { text-align: center; }
.centered h2, .centered p { margin-right: auto; margin-left: auto; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { display: flex; min-height: 300px; flex-direction: column; align-items: flex-start; padding: 31px; background: #fff; border: 1px solid var(--iw-border); border-radius: var(--iw-radius); box-shadow: var(--iw-shadow-small); transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--iw-shadow); }
.feature-icon { display: grid; width: 52px; height: 52px; place-items: center; margin-bottom: 22px; color: var(--iw-blue); background: var(--iw-soft); border-radius: 14px; font-size: 24px; font-weight: 750; }
.feature-card h3 { margin-bottom: 11px; font-size: 21px; }
.feature-card p { color: var(--iw-muted); font-size: 14px; }
.feature-card a { margin-top: auto; color: var(--iw-blue); font-size: 13px; font-weight: 750; }
.feature-card-primary { color: #fff; background: var(--iw-gradient); border: 0; }
.feature-card-primary h3, .feature-card-primary a { color: #fff; }
.feature-card-primary p { color: rgba(255, 255, 255, .86); }
.feature-card-primary .feature-icon { color: #fff; background: rgba(255, 255, 255, .17); }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step-card { position: relative; padding: 18px; }
.step-card > span { position: absolute; z-index: 2; top: 4px; right: 10px; display: grid; width: 47px; height: 47px; place-items: center; color: #fff; background: var(--iw-gradient); border: 5px solid #fff; border-radius: 50%; box-shadow: var(--iw-shadow-small); font-size: 12px; font-weight: 800; }
.step-visual { height: 230px; padding: 30px; margin-bottom: 24px; background: var(--iw-gradient-soft); border: 1px solid var(--iw-border); border-radius: 22px; box-shadow: var(--iw-shadow-small); }
.step-card h3 { margin-bottom: 9px; font-size: 20px; }
.step-card > p { color: var(--iw-muted); font-size: 14px; }
.account-visual { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.account-visual i { display: grid; width: 68px; height: 68px; place-items: center; color: #fff; background: var(--iw-gradient); border-radius: 21px; box-shadow: 0 15px 30px rgba(49, 87, 246, .25); font-size: 28px; font-style: normal; font-weight: 850; }
.account-visual b { width: 72%; height: 9px; margin-top: 13px; background: #e0e7f5; border-radius: 9px; }
.account-visual b:nth-of-type(2) { width: 58%; }
.account-visual b:nth-of-type(3) { width: 42%; background: #bcd0ff; }
.offer-visual, .payout-visual { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--iw-gradient); }
.offer-visual i, .payout-visual i { display: grid; width: 58px; height: 58px; place-items: center; margin-bottom: 14px; color: #fff; background: rgba(255, 255, 255, .16); border-radius: 18px; font-size: 26px; font-style: normal; }
.offer-visual strong, .payout-visual strong { color: #fff; font-size: 17px; }
.offer-visual small, .payout-visual small { margin-top: 5px; color: rgba(255, 255, 255, .75); }
.payout-visual { background: linear-gradient(135deg, #2651e7, #1cc5ae); }

/* Trust and FAQ */
.trust-section { color: #fff; background: #0e1b3b; }
.trust-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px, 9vw, 120px); align-items: center; }
.trust-copy h2 { color: #fff; }
.trust-copy > p { max-width: 500px; color: #aeb9d2; }
.trust-list { display: grid; gap: 14px; }
.trust-list article { display: flex; align-items: flex-start; gap: 18px; padding: 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .09); border-radius: 15px; }
.trust-list article > span { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; color: #fff; background: var(--iw-gradient); border-radius: 11px; font-weight: 800; }
.trust-list h3 { margin: 1px 0 4px; color: #fff; font-size: 16px; }
.trust-list p { margin: 0; color: #aeb9d2; font-size: 13px; }
.faq-grid { display: grid; grid-template-columns: .85fr 1.25fr; gap: clamp(45px, 8vw, 100px); }
.faq-intro > p { max-width: 370px; color: var(--iw-muted); }
.faq-list { display: grid; gap: 13px; }
.faq-item { overflow: hidden; background: #fff; border: 1px solid var(--iw-border); border-radius: 14px; transition: background .2s ease, border-color .2s ease; }
.faq-item h3 { margin: 0; }
.faq-question { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 21px; color: var(--iw-ink); background: transparent; border: 0; text-align: left; font-size: 15px; font-weight: 750; cursor: pointer; }
.faq-question i { position: relative; width: 18px; height: 18px; flex: 0 0 auto; }
.faq-question i::before, .faq-question i::after { position: absolute; top: 8px; left: 2px; width: 14px; height: 2px; content: ""; background: currentColor; border-radius: 2px; }
.faq-question i::after { transform: rotate(90deg); transition: transform .2s ease; }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.faq-answer p { overflow: hidden; padding: 0 21px; margin: 0; color: rgba(255, 255, 255, .86); font-size: 14px; }
.faq-item.is-open { background: var(--iw-gradient); border-color: transparent; box-shadow: 0 13px 30px rgba(49, 87, 246, .2); }
.faq-item.is-open .faq-question { color: #fff; }
.faq-item.is-open .faq-question i::after { transform: rotate(0); }
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-item.is-open .faq-answer p { padding-bottom: 19px; }

/* CTA and footer */
.cta-section { padding-top: 30px; }
.cta-card { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; padding: clamp(34px, 6vw, 64px); color: #fff; background: var(--iw-gradient); border-radius: 28px; box-shadow: 0 28px 65px rgba(49, 87, 246, .3); }
.cta-card h2 { margin: 0; color: #fff; font-size: clamp(28px, 4vw, 40px); }
.cta-card p { color: rgba(255, 255, 255, .86); }
.site-footer { padding: 68px 0 25px; margin-top: 90px; background: #fff; border-top: 1px solid var(--iw-border); }
.home .site-footer { margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .75fr .75fr 1.25fr; gap: 38px; }
.footer-brand p { max-width: 310px; margin-top: 17px; color: var(--iw-muted); font-size: 14px; }
.footer-column h2 { margin-bottom: 17px; font-size: 15px; }
.footer-column a { display: block; margin-bottom: 9px; color: var(--iw-muted); font-size: 13px; }
.footer-column a:hover { color: var(--iw-blue); }
.footer-trust p { color: var(--iw-muted); font-size: 13px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 22px; margin-top: 44px; color: var(--iw-muted); border-top: 1px solid var(--iw-border); font-size: 12px; }
.legal-links { display: flex; gap: 18px; }
.legal-links a:hover { color: var(--iw-blue); }

/* Content pages */
.site-main { min-height: 55vh; }
.page-hero { padding: 62px 0 90px; text-align: center; background: radial-gradient(55% 80% at 50% 0%, rgba(76, 136, 255, .18), transparent 70%), var(--iw-gradient-soft); }
.page-hero.compact { padding-bottom: 78px; }
.page-hero h1 { margin: 8px 0 0; font-size: clamp(34px, 4vw, 46px); }
.public-page-hero { padding-top: 54px; }
.public-page-hero h1 { margin: 0; font-size: clamp(32px, 3.5vw, 43px); letter-spacing: -.035em; }
.page-hero p { max-width: 650px; margin: 16px auto 0; color: var(--iw-muted); }
.content-card { padding: clamp(25px, 5vw, 50px); margin-top: -48px; background: #fff; border: 1px solid var(--iw-border); border-radius: var(--iw-radius); box-shadow: var(--iw-shadow); }
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content a:not(.button):not(.wp-element-button) { color: var(--iw-blue); text-decoration: underline; text-underline-offset: 3px; }
.entry-content h2 { margin-top: 1.8em; font-size: 30px; }
.entry-content h3 { margin-top: 1.6em; font-size: 22px; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 12px; border: 1px solid var(--iw-border); text-align: left; }
.entry-content input:not([type="checkbox"]):not([type="radio"]), .entry-content select, .entry-content textarea { width: 100%; max-width: 560px; padding: 11px 13px; border: 1px solid #b8c0d1; border-radius: 8px; }
.featured-image { width: 100%; margin-bottom: 30px; border-radius: 14px; }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: -48px; }
.post-card { padding: 24px; background: #fff; border: 1px solid var(--iw-border); border-radius: var(--iw-radius); box-shadow: var(--iw-shadow-small); }
.post-card img { width: calc(100% + 48px); max-width: none; margin: -24px -24px 22px; border-radius: 18px 18px 0 0; }
.post-card > span { color: var(--iw-blue); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.post-card h2 { margin: 8px 0; font-size: 21px; }
.post-card p { color: var(--iw-muted); font-size: 14px; }
.text-link { color: var(--iw-blue); font-size: 13px; font-weight: 750; }
.pagination { margin-top: 35px; }
.error-page { display: grid; place-items: center; padding: 100px 0 20px; text-align: center; }
.error-page .content-card { margin-top: 0; }

/* Rewards templates */
.rewards-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 25px; margin-top: 35px; }
.account-sidebar, .payout-guidance { align-self: start; padding: 20px; background: #fff; border: 1px solid var(--iw-border); border-radius: 15px; box-shadow: var(--iw-shadow-small); }
.account-sidebar { display: grid; gap: 5px; }
.account-sidebar strong { padding: 9px 10px 14px; color: var(--iw-ink); }
.account-sidebar a { padding: 10px 12px; color: var(--iw-muted); border-radius: 9px; font-size: 13px; font-weight: 650; }
.account-sidebar a:hover, .account-sidebar a.active { color: #fff; background: var(--iw-gradient); }
.rewards-content { display: grid; min-width: 0; gap: 25px; }
.rewards-content.full-width { margin-top: 35px; }
.reward-panel { padding: clamp(22px, 4vw, 34px); background: #fff; border: 1px solid var(--iw-border); border-radius: var(--iw-radius); box-shadow: var(--iw-shadow-small); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.panel-heading h2 { margin: 6px 0 0; font-size: 27px; }
.page-intro-content { margin: 0; box-shadow: var(--iw-shadow-small); }
.safety-strip { display: flex; align-items: flex-start; gap: 13px; padding: 16px 18px; color: #6a4a00; background: #fff9e8; border: 1px solid #f6df9b; border-radius: 13px; }
.safety-strip > span { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; color: #fff; background: var(--iw-warning); border-radius: 50%; font-weight: 800; }
.safety-strip p { margin: 1px 0 0; font-size: 13px; }
.offerwall-panel { padding: 15px; }
.payout-layout { grid-template-columns: 320px minmax(0, 1fr); }
.payout-guidance { padding: 28px; }
.payout-guidance h2 { font-size: 23px; }
.payout-guidance ul { padding: 0; margin: 20px 0 0; list-style: none; }
.payout-guidance li { position: relative; padding-left: 25px; margin-bottom: 13px; color: var(--iw-muted); font-size: 13px; }
.payout-guidance li::before { position: absolute; top: 2px; left: 0; color: var(--iw-success); content: "✓"; font-weight: 800; }
.site-notice { padding: 15px 18px; color: #8a5200; background: #fff8e5; border-left: 4px solid var(--iw-warning); border-radius: 8px; }

/* Authentication and member account */
.auth-section { min-height: calc(100vh - 150px); padding: 72px 0; background: var(--iw-gradient-soft); }
.auth-shell { display: grid; max-width: 980px; align-items: stretch; gap: 28px; grid-template-columns: .9fr 1.1fr; }
.auth-intro, .auth-card { padding: clamp(28px, 5vw, 46px); border-radius: var(--iw-radius); }
.auth-intro { color: rgba(255,255,255,.86); background: var(--iw-gradient); box-shadow: var(--iw-shadow); }
.auth-intro h1, .auth-intro h2 { color: #fff; }
.auth-intro h1 { font-size: clamp(34px, 5vw, 50px); }
.auth-intro ul { padding-left: 20px; margin-bottom: 0; }
.auth-card { background: #fff; border: 1px solid var(--iw-border); box-shadow: var(--iw-shadow); }
.auth-card h2 { margin-bottom: 8px; font-size: 28px; }
.auth-card > p { color: var(--iw-muted); }
.auth-card label { display: block; margin-bottom: 6px; color: var(--iw-ink); font-size: 13px; font-weight: 750; }
.auth-card input[type="text"], .auth-card input[type="email"], .auth-card input[type="password"] { width: 100%; min-height: 48px; padding: 10px 13px; color: var(--iw-ink); background: #fff; border: 1px solid #b8c0d1; border-radius: 9px; }
.auth-card input:focus { border-color: var(--iw-blue); outline: 3px solid rgba(49,87,246,.12); }
.auth-card .login-username, .auth-card .login-password, .auth-card .login-remember, .auth-field { margin-bottom: 18px; }
.auth-card .login-submit { margin: 22px 0 14px; }
.auth-card .login-submit input, .auth-submit { width: 100%; }
.auth-form { display: grid; gap: 0; }
.auth-form .auth-submit { margin-top: 21px; }
.auth-field small { display: block; margin-top: 6px; color: var(--iw-muted); font-size: 12px; }
.auth-honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.auth-card-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.auth-card-heading h2 { margin-bottom: 5px; }
.auth-card-heading p { margin: 0; color: var(--iw-muted); font-size: 14px; }
.auth-card-icon { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; color: #fff; background: var(--iw-gradient); border-radius: 12px; font-weight: 800; }
.auth-notice { padding: 13px 15px; margin: 0 0 20px; border: 1px solid; border-radius: 10px; font-size: 13px; }
.auth-notice-error { color: #9b241a; background: #fff4f2; border-color: #f3c7c2; }
.auth-notice-success { color: #087552; background: #ecfbf5; border-color: #b9ead8; }
.auth-check { display: flex; align-items: flex-start; gap: 9px; color: var(--iw-text); font-size: 13px; }
.auth-check input { margin-top: 5px; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 16px; border-top: 1px solid var(--iw-border); font-size: 13px; font-weight: 700; }
.auth-links a { color: var(--iw-blue); }
.auth-security-note { padding: 13px 15px; margin: 18px 0; color: var(--iw-text); background: var(--iw-soft); border-radius: 9px; font-size: 12px; }
.member-summary { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); margin: 24px 0; }
.member-summary > div { padding: 18px; background: var(--iw-soft); border-radius: 12px; }
.member-summary small { display: block; color: var(--iw-muted); }
.member-summary strong { color: var(--iw-ink); }

/* Member application */
.member-app { min-width: 320px; background: #f4f7fb; }
.member-app.admin-bar { min-height: calc(100vh - 32px); }
.member-app-shell { display: grid; min-height: 100vh; grid-template-columns: 248px minmax(0, 1fr); }
.member-sidebar { position: sticky; z-index: 100; top: 0; display: flex; height: 100vh; flex-direction: column; padding: 24px 18px 18px; color: #5d6880; background: #fff; border-right: 1px solid var(--iw-border); }
.admin-bar .member-sidebar { top: 32px; height: calc(100vh - 32px); }
.member-brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 26px; color: var(--iw-ink); }
.member-brand > span:last-child { min-width: 0; }
.member-brand strong, .member-brand small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-brand strong { font-size: 15px; }
.member-brand small { margin-top: 1px; color: var(--iw-muted); font-size: 10px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.member-nav { display: grid; gap: 6px; }
.member-nav-label { padding: 0 12px 8px; color: #9aa3b5; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.member-nav a, .member-logout { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 11px 13px; border-radius: 11px; font-size: 13px; font-weight: 720; transition: color .18s ease, background .18s ease, transform .18s ease; }
.member-nav svg, .member-logout svg { width: 20px; height: 20px; flex: 0 0 auto; }
.member-nav a:hover, .member-nav a:focus-visible { color: var(--iw-blue); background: #f1f5ff; }
.member-nav a.is-active { color: #fff; background: var(--iw-gradient); box-shadow: 0 10px 22px rgba(49, 87, 246, .23); }
.member-sidebar-footer { display: grid; gap: 10px; padding-top: 18px; margin-top: auto; border-top: 1px solid var(--iw-border); }
.member-mini-profile, .member-top-profile { display: flex; min-width: 0; align-items: center; gap: 10px; }
.member-mini-profile > span, .member-top-profile > span { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; color: #fff; background: var(--iw-gradient); border-radius: 11px; font-size: 13px; font-weight: 850; }
.member-mini-profile div, .member-top-profile div { min-width: 0; }
.member-mini-profile strong, .member-mini-profile small, .member-top-profile strong, .member-top-profile small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-mini-profile strong, .member-top-profile strong { color: var(--iw-ink); font-size: 12px; }
.member-mini-profile small, .member-top-profile small { color: var(--iw-muted); font-size: 10px; }
.member-logout { color: #8c4b54; }
.member-logout:hover { color: #b42332; background: #fff1f3; }
.member-workspace { display: flex; min-width: 0; min-height: 100vh; flex-direction: column; }
.member-topbar { position: sticky; z-index: 90; top: 0; display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 24px; padding: 13px clamp(22px, 3vw, 42px); background: rgba(255,255,255,.94); border-bottom: 1px solid var(--iw-border); backdrop-filter: blur(12px); }
.admin-bar .member-topbar { top: 32px; }
.member-topbar > div:first-of-type { margin-right: auto; }
.member-topbar h1 { margin: 1px 0 0; font-size: 21px; letter-spacing: -.02em; }
.member-topbar > div > small { display: block; color: var(--iw-muted); font-size: 10px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.member-menu-toggle { display: none; width: 42px; height: 42px; padding: 10px; background: #fff; border: 1px solid var(--iw-border); border-radius: 10px; box-shadow: none; }
.member-menu-toggle i { display: block; width: 20px; height: 2px; margin: 4px 0; background: var(--iw-ink); border-radius: 2px; }
.member-main { display: grid; width: 100%; max-width: 1540px; align-content: start; gap: 24px; padding: clamp(24px, 3vw, 42px); margin: 0 auto; }
.member-welcome, .member-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: clamp(25px, 4vw, 38px); background: #fff; border: 1px solid var(--iw-border); border-radius: 18px; box-shadow: var(--iw-shadow-small); }
.member-welcome { overflow: hidden; color: rgba(255,255,255,.84); background: var(--iw-gradient); border: 0; }
.member-welcome .eyebrow, .member-welcome h2 { color: #fff; }
.member-welcome h2, .member-page-heading h2 { margin: 6px 0 7px; font-size: clamp(25px, 3vw, 34px); }
.member-welcome p, .member-page-heading p { max-width: 720px; margin: 0; }
.member-welcome .button { color: var(--iw-blue); background: #fff; box-shadow: 0 12px 28px rgba(16,39,105,.2); }
.member-page-heading p { color: var(--iw-muted); }
.member-card, .member-stat-panel { min-width: 0; padding: clamp(22px, 3vw, 30px); background: #fff; border: 1px solid var(--iw-border); border-radius: 16px; box-shadow: var(--iw-shadow-small); }
.member-stat-panel .ptcr-balance-grid, .member-card .ptcr-balance-grid { margin: 0; }
.member-dashboard-grid { display: grid; min-width: 0; gap: 24px; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .7fr); }
.member-card h2 { margin: 6px 0 18px; font-size: 23px; }
.member-account-card dl { margin: 0; }
.member-account-card dl > div { padding: 13px 0; border-bottom: 1px solid var(--iw-border); }
.member-account-card dt { color: var(--iw-muted); font-size: 11px; font-weight: 750; text-transform: uppercase; }
.member-account-card dd { overflow-wrap: anywhere; margin: 3px 0 0; color: var(--iw-ink); font-size: 13px; font-weight: 700; }
.member-payout-grid { display: grid; min-width: 0; gap: 24px; grid-template-columns: 310px minmax(0, 1fr); }
.member-footer { display: flex; justify-content: space-between; gap: 20px; padding: 6px 42px 28px; margin-top: auto; color: var(--iw-muted); font-size: 11px; }
.member-app .reward-panel .ptcr-balance-grid, .member-app .ptcr-balance-grid { gap: 14px; }
.member-app .ptcr-balance-grid > div { padding: 21px; background: #fbfcff; border-color: var(--iw-border); border-radius: 13px; box-shadow: none; }
.member-app .ptcr-balance-grid span { color: var(--iw-muted); }
.member-app .ptcr-balance-grid strong { color: var(--iw-ink); font-size: 21px; }
.member-app .ptcr-table th, .member-app .ptcr-table td { padding: 13px 10px; border-color: var(--iw-border); }
.member-app .ptcr-panel { padding: 0; border: 0; }
.member-app .ptcr-form { max-width: 680px; }
.member-app .ptcr-offerwall { min-height: 760px; border: 0; }
.ptcr-profile-grid { display: grid; align-items: start; gap: 24px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.ptcr-profile-section { min-width: 0; padding: clamp(22px, 3vw, 30px); background: #fff; border: 1px solid var(--iw-border); border-radius: 16px; box-shadow: var(--iw-shadow-small); }
.ptcr-profile-section h3 { margin-bottom: 7px; font-size: 22px; }
.ptcr-profile-section > p { color: var(--iw-muted); font-size: 13px; }
.ptcr-profile-section .ptcr-form { max-width: 100%; }
.ptcr-profile-section input:disabled { color: #788196; background: #f4f6fa; }
.ptcr-profile-link { display: inline-flex; color: var(--iw-blue); font-size: 13px; font-weight: 750; }

/* PTC Rewards Core visual integration */
.reward-panel .ptcr-balance-grid { gap: 14px; margin: 0; }
.reward-panel .ptcr-balance-grid > div { padding: 20px; border-color: var(--iw-border); border-radius: 13px; box-shadow: none; }
.reward-panel .ptcr-balance-grid span { color: var(--iw-muted); }
.reward-panel .ptcr-balance-grid strong { color: var(--iw-ink); font-size: 22px; }
.reward-panel .ptcr-panel { padding: 0; border: 0; box-shadow: none; }
.reward-panel .ptcr-form { max-width: 100%; }
.reward-panel .ptcr-form input, .reward-panel .ptcr-form select { border-color: #b8c0d1; border-radius: 8px; }
.reward-panel .ptcr-button { min-height: 46px; padding: 11px 22px; background: var(--iw-gradient); border-radius: 999px; box-shadow: 0 11px 25px rgba(49, 87, 246, .24); }
.reward-panel .ptcr-table th, .reward-panel .ptcr-table td { padding: 13px 10px; border-color: var(--iw-border); }
.reward-panel .ptcr-table th { color: var(--iw-ink); font-size: 12px; }
.reward-panel .ptcr-table td { color: var(--iw-muted); font-size: 13px; }
.reward-panel .ptcr-offerwall { min-height: 700px; border: 0; border-radius: 13px; }

/* WordPress utilities */
.alignwide { width: min(1040px, calc(100vw - 40px)); max-width: none; margin-right: 50%; margin-left: 50%; transform: translateX(-50%); }
.alignfull { width: 100vw; max-width: none; margin-right: 50%; margin-left: 50%; transform: translateX(-50%); }
.wp-caption, .gallery-caption { color: var(--iw-muted); font-size: 12px; }
.sticky { border-top: 3px solid var(--iw-blue); }
.bypostauthor { outline: 0; }

@media (max-width: 1050px) {
  .brand-name { display: none; }
  .nav-links, .primary-nav ul { gap: 16px; }
  .nav-links a, .primary-nav a { font-size: 11px; }
  .member-app-shell { grid-template-columns: 218px minmax(0, 1fr); }
  .member-dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  body.admin-bar .site-header { top: 46px; }
  .nav-toggle { display: block; }
  .nav-actions .button { display: none; }
  .primary-nav { position: fixed; top: 74px; right: 0; width: min(330px, 88vw); height: calc(100vh - 74px); padding: 20px; margin: 0; visibility: hidden; background: #fff; border-left: 1px solid var(--iw-border); box-shadow: -20px 25px 45px rgba(35, 67, 145, .14); opacity: 0; transform: translateX(100%); transition: transform .25s ease, opacity .25s ease, visibility .25s; }
  body.admin-bar .primary-nav { top: 120px; height: calc(100vh - 120px); }
  .primary-nav.is-open { visibility: visible; opacity: 1; transform: translateX(0); }
  .nav-links, .primary-nav ul { display: grid; align-items: stretch; gap: 0; }
  .nav-links a, .primary-nav a { padding: 14px 12px; border-bottom: 1px solid var(--iw-border); font-size: 13px; }
  .nav-links a::after, .primary-nav a::after { display: none; }
  .mobile-auth-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 18px; }
  .mobile-auth-links a { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 10px 14px; color: var(--iw-blue); background: #fff; border: 1px solid var(--iw-border); border-radius: 999px; font-size: 13px; font-weight: 750; }
  .mobile-auth-links a.mobile-register-link, .mobile-auth-links a:last-child { color: #fff; background: var(--iw-gradient); border-color: transparent; }
  .preview-layout { grid-template-columns: 1fr; }
  .preview-sidebar { display: none; }
  .feature-grid, .steps-grid, .posts-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 260px; }
  .trust-grid, .faq-grid, .cta-card, .footer-grid { grid-template-columns: 1fr; }
  .split-heading { align-items: flex-start; flex-direction: column; }
  .trust-grid, .faq-grid { gap: 46px; }
  .rewards-layout, .payout-layout { grid-template-columns: 1fr; }
  .auth-shell { grid-template-columns: 1fr; }
  .account-sidebar { grid-template-columns: repeat(4, 1fr); }
  .account-sidebar strong { display: none; }
  .member-app-shell { display: block; }
  .member-sidebar { position: fixed; top: 0; left: 0; width: 270px; height: 100vh; visibility: hidden; box-shadow: 20px 0 45px rgba(35,67,145,.18); opacity: 0; transform: translateX(-100%); transition: transform .22s ease, opacity .22s ease, visibility .22s; }
  .admin-bar .member-sidebar { top: 46px; height: calc(100vh - 46px); }
  .member-sidebar.is-open { visibility: visible; opacity: 1; transform: translateX(0); }
  .member-menu-toggle { display: inline-block; }
  .member-top-profile { display: none; }
  .member-payout-grid { grid-template-columns: 1fr; }
  .ptcr-profile-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .container, .container.narrow, .page-content-width { width: min(100% - 28px, var(--iw-container)); }
  .section { padding: 70px 0; }
  .hero-section { padding-top: 58px; }
  .hero-copy h1 { font-size: 39px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .dashboard-preview { width: calc(100% - 16px); }
  .preview-main { padding: 18px; }
  .balance-preview { grid-template-columns: 1fr; }
  .activity-preview { grid-template-columns: 1fr; }
  .chart-preview { display: none; }
  .preview-heading { align-items: flex-start; flex-direction: column; }
  .section-heading h2, .trust-copy h2, .faq-intro h2 { font-size: 32px; }
  .step-card { padding: 4px; }
  .cta-card { gap: 25px; padding: 30px 24px; border-radius: 21px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .page-hero { padding: 65px 0 90px; }
  .page-hero h1 { font-size: 39px; }
  .content-card { padding: 25px 20px; }
  .account-sidebar { grid-template-columns: 1fr 1fr; }
  .panel-heading { align-items: flex-start; flex-direction: column; }
  .reward-panel { padding: 20px 15px; }
  .auth-section { padding: 45px 0; }
  .auth-intro, .auth-card { padding: 26px 20px; }
  .member-summary { grid-template-columns: 1fr; }
  .public-page-hero { padding: 42px 0 76px; }
  .public-page-hero h1 { font-size: 32px; }
  .member-topbar { min-height: 68px; padding: 10px 15px; }
  .member-topbar h1 { font-size: 18px; }
  .member-main { gap: 17px; padding: 17px 14px 25px; }
  .member-welcome, .member-page-heading { align-items: flex-start; flex-direction: column; padding: 24px 20px; }
  .member-welcome .button, .member-page-heading .button { width: 100%; }
  .member-card, .member-stat-panel { padding: 21px 16px; }
  .member-footer { align-items: flex-start; flex-direction: column; padding: 5px 16px 25px; }
}

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