:root {
  --member-accent: #6274ff;
  --member-accent-dark: #4357e8;
  --member-ink: #07122b;
  --member-muted: #62708c;
  --member-line: #dce3f3;
  --member-soft: #f3f5ff;
  --member-success: #087a55;
}

html [hidden] { display: none !important; }

.membership-nav { display: inline-flex; align-items: center; gap: 8px; }
.membership-link { display: inline-flex; align-items: center; min-height: 38px; padding: 0 13px; border-radius: 12px; color: #50607d; text-decoration: none; font-size: 14px; font-weight: 750; }
.membership-link:hover { background: #f2f5ff; color: var(--member-ink); }
.membership-link.pro { background: linear-gradient(135deg, #6578ff, #845ff7); color: #fff; box-shadow: 0 8px 24px rgba(83, 100, 230, .2); }
.membership-link.pro:hover { color: #fff; transform: translateY(-1px); }
.membership-credits { min-height: 42px; display: inline-flex; align-items: center; gap: 6px; padding: 0 11px; border: 1px solid #dbe2f2; border-radius: 13px; background: #f8faff; color: #42516f; text-decoration: none; white-space: nowrap; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.membership-credits:hover { border-color: #bcc8e7; background: #f1f4ff; transform: translateY(-1px); }
.membership-credit-icon { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #fff0bd; color: #8f6600; font-size: 14px; font-weight: 900; }
.membership-credits strong { color: #233052; font-size: 14px; }
.membership-credits [data-credit-label] { color: #6c7892; font-size: 11px; font-weight: 750; }
.membership-credits.pro { border-color: #cfd7ff; background: #eef1ff; }
.membership-credits.pro .membership-credit-icon { background: linear-gradient(135deg, #6578ff, #845ff7); color: #fff; }
.membership-register { min-height: 40px; display: inline-flex; align-items: center; padding: 0 15px; border-radius: 12px; background: linear-gradient(135deg, #6274ff, #815df5); color: #fff; text-decoration: none; font-size: 13px; font-weight: 850; box-shadow: 0 8px 22px rgba(83,99,226,.2); }
.membership-register:hover { color: #fff; transform: translateY(-1px); }
.membership-signin { border: 1px solid #cfd8ee; color: #344564; }
.language-switcher { position: relative; display: inline-flex; }
.language-trigger { min-height: 40px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 0; border-radius: 11px; background: transparent; color: #4f5d78; font-size: 12px; font-weight: 850; }
.language-trigger:hover, .language-trigger[aria-expanded="true"] { background: #f1f4fb; color: #172441; }
.language-trigger svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.language-chevron { font-size: 13px; transform: translateY(-2px); }
.language-menu { position: absolute; z-index: 100; top: calc(100% + 10px); right: 0; width: min(540px, calc(100vw - 24px)); max-height: min(620px, calc(100vh - 90px)); overflow-y: auto; padding: 12px; border: 1px solid #dce3f1; border-radius: 17px; background: #fff; box-shadow: 0 22px 60px rgba(17,30,68,.18); }
.language-menu-title { display: block; padding: 8px 9px 10px; color: #7b879d; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.language-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; }
.language-menu a { min-width: 0; display: grid; grid-template-columns: 34px 1fr; align-items: center; column-gap: 9px; padding: 9px; border-radius: 11px; background: transparent; color: #26334e; text-align: left; text-decoration: none; }
.language-menu a:hover, .language-menu a.active { background: #f2f5ff; }
.language-menu a > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: #edf1ff; color: #5268ec; font-size: 9px; font-weight: 900; }
.language-menu a strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }

.tool-card { position: relative; }
.plan-badge { position: absolute; top: 15px; right: 15px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; background: #eef1ff; color: #5267ee; font-size: 10px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.plan-badge.free { background: #eaf9f2; color: #087a55; }
.tool-card .tool-badge + .tool-token { margin-top: 0; }

.tool-access-bar { max-width: 1240px; margin: 0 auto 18px; padding: 12px 16px; border: 1px solid var(--member-line); border-radius: 15px; background: rgba(255,255,255,.86); display: flex; align-items: center; justify-content: space-between; gap: 14px; box-shadow: 0 8px 30px rgba(43, 57, 104, .06); }
.tool-access-copy { display: flex; align-items: center; gap: 11px; min-width: 0; }
.tool-access-icon { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; background: #eef1ff; color: #5368ed; font-weight: 900; }
.tool-access-copy strong { display: block; color: var(--member-ink); font-size: 14px; }
.tool-access-copy span { display: block; color: var(--member-muted); font-size: 12px; margin-top: 2px; }
.tool-access-action { white-space: nowrap; color: #5267ee; font-size: 13px; font-weight: 800; text-decoration: none; }
.tool-feedback { width: max-content; max-width: 100%; margin: 24px auto 4px; display: block; color: #6d7890; font-size: 12px; font-weight: 750; text-align: center; text-decoration: none; }
.tool-feedback:hover { color: #5267ee; text-decoration: underline; }

.member-modal[hidden], .member-toast[hidden], .consent-banner[hidden], .consent-panel[hidden] { display: none; }
.member-modal { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 20px; background: rgba(5, 12, 31, .58); backdrop-filter: blur(6px); }
.member-dialog { width: min(100%, 470px); position: relative; padding: 30px; border: 1px solid rgba(255,255,255,.7); border-radius: 24px; background: #fff; box-shadow: 0 32px 90px rgba(7,18,43,.3); }
.member-dialog-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 17px; background: linear-gradient(135deg, #687aff, #8b63f8); color: #fff; font-size: 24px; font-weight: 900; }
.member-dialog h2 { margin: 18px 0 8px; color: var(--member-ink); font-size: clamp(24px, 5vw, 31px); line-height: 1.1; }
.member-dialog p { color: var(--member-muted); line-height: 1.65; }
.member-dialog ul { margin: 18px 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.member-dialog li { display: flex; gap: 9px; color: #34415c; font-size: 14px; }
.member-dialog li::before { content: '✓'; color: var(--member-success); font-weight: 900; }
.member-dialog-actions { display: grid; gap: 9px; margin-top: 22px; }
.member-primary, .member-secondary { min-height: 48px; border: 0; border-radius: 13px; display: inline-flex; justify-content: center; align-items: center; padding: 0 18px; font: inherit; font-weight: 850; text-decoration: none; cursor: pointer; }
.member-primary { color: #fff; background: linear-gradient(135deg, #6274ff, #825df5); box-shadow: 0 10px 25px rgba(80,98,226,.22); }
.member-secondary { color: #53617b; background: #f2f4fa; }
.member-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 11px; background: #f2f4fa; color: #56627a; font-size: 21px; cursor: pointer; }
.member-note { display: block; margin-top: 12px; text-align: center; color: #8290a8; font-size: 11px; }

.member-toast { position: fixed; z-index: 9999; right: 18px; bottom: 18px; max-width: min(390px, calc(100vw - 36px)); padding: 12px 16px; border-radius: 14px; color: #fff; background: #16213d; box-shadow: 0 15px 40px rgba(5,12,31,.25); font-size: 13px; font-weight: 750; }

.consent-banner { position: fixed; z-index: 9900; left: 18px; right: 18px; bottom: 18px; width: min(650px, calc(100vw - 36px)); margin: 0 auto; padding: 18px; border: 1px solid var(--member-line); border-radius: 19px; background: #fff; box-shadow: 0 24px 70px rgba(7,18,43,.22); }
.consent-banner strong { display: block; color: var(--member-ink); margin-bottom: 5px; }
.consent-banner p { margin: 0; color: var(--member-muted); font-size: 13px; line-height: 1.55; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.consent-actions button { min-height: 38px; padding: 0 13px; border: 0; border-radius: 10px; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.consent-accept { background: var(--member-accent); color: #fff; }
.consent-reject, .consent-config { background: #eef1f7; color: #4c5871; }
.consent-panel { position: fixed; inset: 0; z-index: 10001; display: grid; place-items: center; padding: 20px; background: rgba(5,12,31,.58); }
.consent-card { width: min(100%, 500px); padding: 26px; border-radius: 22px; background: #fff; }
.consent-card h2 { margin: 0 0 8px; color: var(--member-ink); }
.consent-option { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 0; border-top: 1px solid var(--member-line); }
.consent-option span { color: var(--member-muted); font-size: 12px; line-height: 1.45; }
.consent-option input { width: 20px; height: 20px; accent-color: var(--member-accent); }

.pricing-shell, .account-shell, .support-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 70px 0 90px; }
.page-hero { max-width: 760px; margin: 0 auto 35px; text-align: center; }
.page-kicker { color: #5e72f2; font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.page-hero h1 { margin: 12px 0; color: var(--member-ink); font-size: clamp(34px, 6vw, 58px); letter-spacing: -.04em; line-height: 1.03; }
.page-hero p { color: var(--member-muted); font-size: 17px; line-height: 1.65; }
.page-hero p a { color: #5267ee; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; max-width: 880px; margin: auto; }
.price-card { position: relative; padding: 30px; border: 1px solid var(--member-line); border-radius: 24px; background: #fff; box-shadow: 0 18px 55px rgba(27,42,90,.08); }
.price-card.featured { border: 2px solid #6d7dff; box-shadow: 0 22px 70px rgba(83,99,226,.17); }
.price-popular { position: absolute; top: -13px; right: 20px; padding: 6px 11px; border-radius: 999px; background: #6274ff; color: #fff; font-size: 11px; font-weight: 900; }
.price-card h2 { margin: 0; color: var(--member-ink); }
.price { margin: 18px 0 6px; color: var(--member-ink); font-size: 48px; font-weight: 900; letter-spacing: -.05em; }
.price small { font-size: 14px; font-weight: 700; color: var(--member-muted); letter-spacing: 0; }
.price-card > p { color: var(--member-muted); min-height: 48px; line-height: 1.55; }
.price-list { display: grid; gap: 11px; padding: 0; margin: 23px 0; list-style: none; }
.price-list li { color: #34415c; font-size: 14px; }
.price-list li::before { content: '✓'; margin-right: 9px; color: var(--member-success); font-weight: 900; }
.price-button { width: 100%; min-height: 49px; border: 0; border-radius: 13px; display: inline-flex; justify-content: center; align-items: center; background: #eef1f8; color: #3e4a63; font: inherit; font-weight: 850; text-decoration: none; cursor: pointer; }
.price-button.primary { color: #fff; background: linear-gradient(135deg, #6274ff, #815df5); }
.paypal-button-container { min-height: 48px; margin-top: 8px; }
.payment-reassurance { min-height: 0 !important; margin: 13px 0 5px; text-align: center; font-size: 11px; line-height: 1.5 !important; }
.pricing-proof { max-width: 880px; margin: 22px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pricing-proof span { min-height: 82px; display: flex; flex-direction: column; justify-content: center; padding: 14px 16px; border: 1px solid var(--member-line); border-radius: 16px; background: rgba(255,255,255,.76); color: var(--member-muted); font-size: 12px; line-height: 1.45; text-align: center; }
.pricing-proof strong { display: block; margin-bottom: 4px; color: var(--member-ink); font-size: 14px; }
.pricing-faq { max-width: 880px; margin: 50px auto 0; }
.pricing-faq h2 { color: var(--member-ink); }
.faq-item { border-top: 1px solid var(--member-line); padding: 18px 0; }
.faq-item h3 { margin: 0 0 7px; color: var(--member-ink); font-size: 16px; }
.faq-item p { margin: 0; color: var(--member-muted); line-height: 1.6; }

.form-card, .account-card, .support-card { max-width: 720px; margin: 0 auto; padding: 28px; border: 1px solid var(--member-line); border-radius: 23px; background: #fff; box-shadow: 0 18px 55px rgba(27,42,90,.08); }
.login-card { max-width: 470px; padding: 38px; text-align: center; }
.login-card h2 { margin: 16px 0 8px; color: var(--member-ink); }
.login-card p { margin: 0 0 22px; color: var(--member-muted); line-height: 1.6; }
.login-card small { display: block; margin-top: 16px; color: #7b879e; line-height: 1.5; }
.login-mark { width: 58px; height: 58px; margin: 0 auto; display: grid; place-items: center; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #6274ff, #815df5); font-weight: 900; box-shadow: 0 12px 30px rgba(83,99,226,.24); }
.google-login-button { min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid #cfd8eb; border-radius: 13px; background: #fff; color: #26324b; font-weight: 800; text-decoration: none; box-shadow: 0 5px 18px rgba(30,47,88,.07); }
.google-login-button:hover { border-color: #aebce0; background: #fafbff; }
.google-login-button svg { width: 22px; height: 22px; }
.account-identity { display: flex; align-items: center; gap: 14px; }
.account-identity img, .account-avatar-fallback { width: 54px; height: 54px; flex: 0 0 54px; border-radius: 50%; object-fit: cover; }
.account-avatar-fallback { display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #6274ff, #825df5); font-weight: 900; box-shadow: 0 8px 22px rgba(80,98,226,.2); }
.account-identity h2, .account-identity p { margin: 0; }
.account-identity p { margin-top: 4px; color: var(--member-muted); }
.form-grid { display: grid; gap: 16px; }
.form-field { display: grid; gap: 7px; }
.form-field label { color: var(--member-ink); font-size: 13px; font-weight: 800; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 48px; box-sizing: border-box; border: 1px solid #cfd8eb; border-radius: 12px; padding: 11px 13px; background: #fff; color: var(--member-ink); font: inherit; }
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: 3px solid rgba(98,116,255,.18); border-color: #6274ff; }
.form-status { width: min(720px, 100%); min-height: 22px; margin: 0 auto 8px; color: var(--member-muted); font-size: 13px; }
.form-status.success { color: var(--member-success); }
.form-status.error { color: #b42337; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.account-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 22px 0; }
.account-stat { padding: 15px; border-radius: 14px; background: #f5f7fc; }
.account-stat strong { display: block; color: var(--member-ink); font-size: 20px; }
.account-stat span { color: var(--member-muted); font-size: 11px; }
.support-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; margin-bottom: 30px; }
.support-card { margin: 0; padding: 22px; text-decoration: none; }
.support-card h2 { margin: 10px 0 7px; color: var(--member-ink); font-size: 18px; }
.support-card p { margin: 0; color: var(--member-muted); font-size: 13px; line-height: 1.55; }
.article-ad { min-height: 120px; margin: 32px 0; padding: 13px; border: 1px solid var(--member-line); border-radius: 16px; background: #fafbfe; display: grid; align-items: center; }
.article-ad > span { display: block; margin-bottom: 8px; color: #8a95a9; font-size: 10px; letter-spacing: .08em; text-align: center; text-transform: uppercase; }

@media (max-width: 800px) {
  .membership-link.pricing-nav { display: none; }
  .tool-access-bar { margin-left: 14px; margin-right: 14px; }
  .pricing-grid, .support-grid { grid-template-columns: 1fr; }
  .price-card > p { min-height: 0; }
  .account-summary { grid-template-columns: 1fr; }
  .pricing-proof { grid-template-columns: 1fr; }
  .pricing-proof span { min-height: 68px; }
}

@media (max-width: 1040px) {
  .membership-nav-home .pricing-nav { display: none; }
  .membership-credits [data-credit-label] { display: none; }
}

@media (max-width: 900px) {
  .language-trigger .language-chevron { display: none; }
}

@media (max-width: 560px) {
  .membership-link { min-height: 34px; padding: 0 9px; font-size: 12px; }
  .tool-access-bar { align-items: flex-start; }
  .tool-access-action { display: none; }
  .member-dialog { padding: 25px 20px; }
  .consent-banner { left: 10px; right: 10px; bottom: 10px; width: auto; }
  .membership-nav-home { gap: 5px; }
  .membership-nav-home .membership-credits { min-height: 36px; padding: 0 7px; }
  .membership-nav-home .membership-signin { display: none; }
  .membership-nav-home .membership-register { min-height: 36px; padding: 0 10px; font-size: 11px; }
  .language-trigger { min-height: 36px; padding: 0 7px; }
  .language-menu { position: fixed; top: 68px; right: 10px; width: min(250px, calc(100vw - 20px)); }
  .language-options { grid-template-columns: 1fr; }
  .filter-row { justify-content: flex-start; }
}

@media (max-width: 430px) {
  .topbar { padding-inline: 10px; gap: 6px; }
  .topbar .brand-name { display: none; }
  .topbar .topbar-right { overflow: visible; gap: 2px; }
  .topbar .topbar-right > .top-link.active { display: none; }
  .topbar .top-link { padding-inline: 7px; font-size: 12px; }
  .topbar .membership-nav:not(.membership-nav-home) .membership-link { display: none; }
  .membership-nav-home .membership-register { display: none; }
  .membership-nav-home { gap: 2px; }
  .membership-nav-home .membership-credits { min-width: 38px; justify-content: center; }
}
