:root {
  --ink: #070b14;
  --ink2: #0d1422;
  --paper: #f3f5f8;
  --text: #eef2fa;
  --muted: #9aa6ba;
  --dark: #131b2b;
  --violet: #7865f5;
  --violet-bright: #7865f5;
  --blue: #4b9df5;
  --green: #60dda9;
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body.astricode-account-page,
body.login {
  margin: 0;
  min-width: 320px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--dark);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin: auto; }
.skip-link { position: fixed; left: 15px; top: -80px; z-index: 100; padding: 12px 16px; background: white; border-radius: 8px; }
.skip-link:focus { top: 15px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.astricode-account-shell { min-height: 100vh; display: flex; flex-direction: column; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  height: 84px;
  z-index: 20;
  border-bottom: 1px solid #ffffff14;
  color: white;
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; }
.brand-logo-link { flex: 0 0 auto; }
.brand-logo { display: block; width: 182px; height: auto; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.main-nav a, .text-link { color: #c3cada; font-size: 14px; transition: color .2s ease; }
.main-nav a:hover, .text-link:hover { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.nav-toggle { display: none; }
.button { min-height: 50px; padding: 0 22px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; font-size: 14px; font-weight: 750; transition: .2s; }
.button:hover { transform: translateY(-2px); }
.button-small { min-height: 42px; padding: 0 18px; }
.button-primary { color: white; background: linear-gradient(135deg, #6756ea, #4b91f3); box-shadow: 0 12px 35px #5363e940; }

.account-hero {
  position: relative;
  overflow: hidden;
  padding: 142px 0 46px;
  color: var(--text);
  background:
    radial-gradient(circle at 76% 14%, #6d55e82b, transparent 32%),
    radial-gradient(circle at 15% 0%, #357fd020, transparent 26%),
    linear-gradient(155deg, #0a101d, var(--ink) 68%);
}
.account-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image: linear-gradient(#ffffff0a 1px, transparent 1px), linear-gradient(90deg, #ffffff0a 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(#000, transparent 92%);
}
.account-hero__glow { position: absolute; border-radius: 50%; filter: blur(28px); pointer-events: none; }
.account-hero__glow--a { width: 320px; height: 320px; right: 2%; top: 22px; background: #6e5dec18; }
.account-hero__glow--b { width: 240px; height: 240px; left: -80px; bottom: -90px; background: #3c96e311; }
.account-hero__inner { position: relative; z-index: 2; display: flex; align-items: end; justify-content: space-between; gap: 36px; }
.eyebrow { margin: 0 0 14px; color: #aeb8ca; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 800; }
.eyebrow-dot { display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px #60dda91a; }
.account-hero__title { margin: 0; color: #eef2fa; font-size: clamp(40px, 4vw, 58px); line-height: 1; letter-spacing: -.055em; font-weight: 800; }
.account-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.account-nav a { padding: 11px 14px; border: 1px solid transparent; border-radius: 10px; color: #9ca7b9; font-size: 13px; font-weight: 700; }
.account-nav a:hover { color: #fff; background: #ffffff0a; }
.account-nav a.is-current { color: #fff; border-color: #ffffff18; background: #ffffff0d; }

.account-main { flex: 1; background: #eef1f5; }
.account-main__inner { padding-top: 72px; padding-bottom: 92px; }

.astricode-account-dashboard,
.astricode-licences { max-width: none !important; margin: 0 !important; padding: 0 !important; }

.account-dashboard__intro { max-width: 760px; }
.account-eyebrow { margin: 0 0 18px; color: #687183; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 800; }
.account-eyebrow__dot { display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--green); }
.astricode-account-dashboard h1,
.astricode-licences__title { margin: 0; color: #131b2b; font-size: clamp(42px, 5vw, 64px) !important; line-height: 1.03 !important; letter-spacing: -.055em !important; }
.account-lead,
.astricode-licences__intro { max-width: 720px; margin: 22px 0 0 !important; color: #626c7d !important; font-size: 17px !important; line-height: 1.72 !important; }

.account-dashboard__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 58px; }
.account-dashboard__card { position: relative; min-height: 300px; display: flex; flex-direction: column; padding: 34px; border: 1px solid #dce2eb; border-radius: 20px; background: #fff; }
.account-dashboard__card--primary { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.account-dashboard__card--primary:hover { transform: translateY(-3px); border-color: #cdd5e1; box-shadow: 0 22px 55px rgba(10,16,30,.09); }
.account-dashboard__index { position: absolute; top: 25px; right: 27px; color: #a0a9b8; font-size: 9px; }
.account-dashboard__kicker { margin-top: 38px; color: #6b74ca; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.account-dashboard__card strong { max-width: 270px; margin-top: 14px; color: #131b2b; font-size: 28px; line-height: 1.08; letter-spacing: -.04em; }
.account-dashboard__description { margin-top: 16px; color: #667080; line-height: 1.68; }
.account-dashboard__arrow { margin-top: auto; padding-top: 28px; color: #5d64c8; font-size: 24px; }
.account-dashboard__status { width: fit-content; margin-top: auto; padding: 8px 10px; border-radius: 999px; color: #7b8494; background: #f1f3f6; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.account-dashboard__card--future { background: #f7f8fa; }
.account-dashboard__card--future strong { color: #465063; }

.astricode-licences__header { max-width: 760px !important; margin-bottom: 38px !important; }
.astricode-licences__eyebrow { margin: 0 0 18px !important; color: #687183 !important; font-size: 11px !important; letter-spacing: .14em !important; }
.astricode-licences__notice { margin: 0 0 24px !important; padding: 17px 18px !important; border: 1px solid #dce2eb !important; border-radius: 13px !important; background: #f7f8fa !important; color: #626d7e !important; }
.astricode-licences__list { gap: 18px !important; }
.astricode-licence-card { border: 1px solid #dce2eb !important; border-radius: 20px !important; box-shadow: none !important; }
.astricode-licence-card__top { padding: 28px 30px 24px !important; border-color: #e1e6ed !important; }
.astricode-licence-card__meta { padding: 24px 30px !important; background: #f7f8fa !important; }
.astricode-licence-card__action-area { padding: 24px 30px 30px !important; }
.astricode-licences__primary-button { min-height: 50px !important; padding: 0 22px !important; border: 0 !important; border-radius: 11px !important; background: linear-gradient(135deg, #6756ea, #4b91f3) !important; box-shadow: 0 12px 35px #5363e930 !important; }
.astricode-licences__secondary-button { min-height: 50px !important; padding: 0 22px !important; border-radius: 11px !important; }

.site-footer { margin-top: auto; color: #a3adbf; background: #070b13; border-top: 1px solid #ffffff12; }
.footer-grid { display: grid; grid-template-columns: 1.8fr repeat(3, .7fr); gap: 48px; padding: 70px 0 54px; }
.footer-brand p { max-width: 280px; margin: 22px 0 0; color: #7f8a9f; font-size: 12px; line-height: 1.65; }
.brand-logo-link--footer { width: fit-content; }
.brand-logo--footer { width: 205px; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 13px; }
.footer-grid strong { margin-bottom: 5px; color: #edf1f8; font-size: 12px; }
.footer-grid a:not(.brand) { color: #7f8a9f; font-size: 12px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { min-height: 72px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #ffffff12; color: #566176; font-size: 10px; }
.footer-bottom div { display: flex; gap: 18px; }

body.astricode-account-page #wpadminbar { display: none !important; }
html:has(body.astricode-account-page) { margin-top: 0 !important; }

body.login { min-height: 100vh; color: #eef2fa; background: radial-gradient(circle at 76% 18%, #6d55e82b, transparent 34%), radial-gradient(circle at 15% 8%, #357fd020, transparent 28%), linear-gradient(155deg, #0a101d, #070b14 68%); }
body.login #login { width: min(420px, calc(100% - 32px)); padding: 72px 0; }
body.login h1 a { width: 230px; height: 64px; margin: 0 auto 26px; background-image: url("astricode-logo.png"); background-size: contain; background-repeat: no-repeat; background-position: center; color: transparent; text-indent: -9999px; overflow: hidden; }
body.login form { border: 1px solid #ffffff18; border-radius: 18px; background: #0f1829; box-shadow: 0 32px 90px #0007; }
body.login label { color: #c6cfdd; font-size: 13px; font-weight: 650; }
body.login input[type="text"], body.login input[type="password"] { border: 1px solid #2b3549; border-radius: 10px; background: #0a111d; color: #eef2fa; box-shadow: none; }
body.login .button-primary { min-height: 42px; border: 0; border-radius: 10px; background: linear-gradient(135deg, #6756ea, #4b91f3); box-shadow: none; font-weight: 750; text-shadow: none; }
body.login #backtoblog, body.login #nav, body.login .privacy-policy-page-link { text-align: center; }
body.login #backtoblog a, body.login #nav a, body.login .privacy-policy-page-link a { color: #9aa6ba; }

@media (max-width: 1080px) {
  .main-nav { gap: 17px; }
  .main-nav a { font-size: 12px; }
  .account-dashboard__grid { grid-template-columns: 1fr 1fr; }
  .account-dashboard__card--primary { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2; }
}

@media (max-width: 860px) {
  .site-header { position: absolute; }
  .header-inner { justify-content: space-between; }
  .brand-logo { width: 165px; }
  .nav-toggle { position: relative; width: 42px; height: 42px; margin-left: auto; display: inline-grid; place-content: center; gap: 5px; border: 1px solid #ffffff20; border-radius: 10px; background: #ffffff08; }
  .nav-toggle > span:not(.sr-only) { display: block; width: 18px; height: 1px; background: #fff; }
  .main-nav { position: absolute; top: 84px; left: 20px; right: 20px; margin: 0; padding: 20px; display: none; flex-direction: column; align-items: stretch; gap: 0; border: 1px solid #ffffff1a; border-radius: 14px; background: rgba(9,14,25,.98); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 6px; font-size: 14px; border-bottom: 1px solid #ffffff10; }
  .header-actions { margin-left: 0; }
  .header-actions .account-header-link { display: none; }
  .account-hero__inner { align-items: flex-start; flex-direction: column; }
  .account-nav { margin-top: 4px; }
}

@media (max-width: 700px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .header-actions .button { display: none; }
  .account-hero { padding: 126px 0 38px; }
  .account-hero__title { font-size: 42px; }
  .account-main__inner { padding-top: 52px; padding-bottom: 68px; }
  .account-dashboard__grid { grid-template-columns: 1fr; margin-top: 42px; }
  .account-dashboard__card--primary { grid-column: auto; }
  .account-dashboard__card { min-height: 260px; padding: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; gap: 12px; padding: 20px 0; }
}

@media (max-width: 480px) {
  .brand-logo { width: 150px; }
  .account-nav { width: 100%; }
  .account-nav a { flex: 1; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}
