/* THE EASIER — account portal (account.html). Loads after site.css.
   Class names match the markup built by js/account.js. */

.portal-main { position: relative; isolation: isolate; padding: 56px 0 96px; }
.portal-bg { position: absolute; inset: 0 0 auto; height: 620px; z-index: -1; pointer-events: none;
  background: radial-gradient(55% 70% at 50% 0%, rgba(3, 97, 236, .28), rgba(1, 42, 95, .14) 50%, transparent 78%); animation: glow-breathe 9s ease-in-out infinite; }

/* Page title */
.portal-topline { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; animation: rise .7s var(--ease) both; }
.portal-topline h1 { margin: 14px 0 8px; font-size: clamp(36px, 5vw, 56px); letter-spacing: -.03em; }
.portal-topline p { color: var(--muted); }
.portal-beta { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 9px 14px; border: 1px solid rgba(37, 233, 230, .3); border-radius: 999px; background: rgba(37, 233, 230, .06); color: var(--cyan); font-size: 13px; font-weight: 500; }

/* Shell: sidebar + content */
.portal-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: rgba(8, 11, 17, .85); box-shadow: 0 40px 90px rgba(0, 0, 0, .45); animation: rise .8s var(--ease) both .1s; }
.portal-sidebar { display: flex; flex-direction: column; gap: 20px; padding: 24px 16px; border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(0, 16, 36, .9), rgba(0, 8, 20, .9)); }
.portal-product-brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 20px; border-bottom: 1px solid var(--line); }
.portal-product-brand img { width: 42px; height: 42px; border-radius: 11px; }
.portal-product-brand strong { display: block; font-family: var(--heading); font-weight: 600; }
.portal-product-brand small { color: var(--muted-2); font-size: 12px; }
.portal-nav-label, .portal-sidebar-end > span { padding: 0 10px; color: var(--muted-2); font-size: 11px; font-weight: 600; letter-spacing: .16em; }
.portal-tablist { display: grid; gap: 4px; }
.portal-side-link {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 12px; border: 1px solid transparent; border-radius: 12px;
  background: none; color: var(--muted); font-size: 14px; font-weight: 500; text-align: left; cursor: pointer;
  transition: color .2s, background-color .2s, border-color .2s, transform .3s var(--spring);
}
.portal-side-link .ic { font-size: 17px; }
.portal-side-link:hover { color: #fff; background: rgba(255, 255, 255, .04); transform: translateX(3px); }
.portal-side-link.is-current { color: #fff; border-color: rgba(19, 143, 234, .35); background: linear-gradient(90deg, rgba(3, 97, 236, .24), rgba(3, 97, 236, .04)); }
.portal-side-link.is-current .ic { color: var(--cyan); }
.portal-side-link.is-current::after { content: ""; position: absolute; right: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.portal-sidebar-end { display: grid; gap: 4px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.portal-sidebar-end a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 10px; color: var(--muted); font-size: 14px; text-decoration: none; transition: color .2s, background-color .2s; }
.portal-sidebar-end a:hover { color: var(--cyan); background: rgba(255, 255, 255, .03); }

.portal-content { min-width: 0; padding: 32px; overflow-wrap: anywhere; }
.portal-titlebar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.portal-titlebar h2 { margin: 12px 0 8px; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.025em; }
.portal-titlebar p { color: var(--muted); font-size: 15px; }
.portal-store-btn { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 999px; color: #DBE6F5; font-size: 13px; font-weight: 500; text-decoration: none; transition: border-color .2s, color .2s, transform .3s var(--spring); }
.portal-store-btn:hover { border-color: var(--cyan); color: #fff; transform: translateY(-2px); }

/* Messages */
.portal-flash { margin-bottom: 18px; padding: 14px 16px; border: 1px solid rgba(37, 233, 230, .35); border-radius: 12px; background: rgba(37, 233, 230, .07); color: #DFFBFB; font-size: 14px; animation: rise .4s var(--ease) both; }
.portal-flash.error { border-color: rgba(255, 123, 127, .45); background: rgba(255, 123, 127, .08); color: #FFD9DA; }
.portal-small-note, .portal-fine-print, .portal-fine { display: flex; gap: 8px; align-items: flex-start; color: var(--muted-2); font-size: 13px; line-height: 1.6; }
.portal-small-note .ic, .portal-fine-print .ic { margin-top: 3px; color: var(--cyan); }
.portal-fine:empty { display: none; }

/* Checkout card */
.checkout-test-card { margin-bottom: 20px; padding: 22px; border: 1px solid rgba(19, 143, 234, .45); border-radius: 16px; background: linear-gradient(140deg, rgba(3, 97, 236, .16), rgba(11, 15, 22, .9)); animation: rise .5s var(--ease) both; }
.checkout-test-title { display: flex; align-items: center; gap: 10px; font-family: var(--heading); font-size: 16px; }
.checkout-test-title .ic { color: var(--cyan); }
.checkout-test-card p { margin-top: 8px; color: var(--muted); font-size: 14px; }
.checkout-test-button { margin-top: 16px; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--grad-btn); color: #fff; font: 600 14px var(--heading); cursor: pointer; box-shadow: 0 0 20px rgba(3, 97, 236, .4); transition: transform .3s var(--spring), box-shadow .3s; }
.checkout-test-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 0 30px rgba(3, 97, 236, .6); }
.checkout-test-button:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.checkout-test-feedback:empty { display: none; }

/* Signed out */
.portal-login-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.portal-login-card { position: relative; overflow: hidden; padding: 44px 32px; border: 1px solid var(--line); border-radius: 20px; text-align: center; background: radial-gradient(60% 60% at 50% 0%, rgba(3, 97, 236, .2), transparent 70%), #0B0F16; }
.portal-login-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 18px; background: var(--grad-btn); color: #fff; font-size: 28px; box-shadow: 0 0 30px rgba(3, 97, 236, .5); animation: float 5s ease-in-out infinite; }
.portal-login-card h3 { font-size: 24px; }
.portal-login-card > p { max-width: 380px; margin: 10px auto 24px; color: var(--muted); font-size: 15px; }
.google-login-slot { display: flex; justify-content: center; align-items: center; min-height: 48px; max-width: 100%; overflow: hidden; }
.google-disabled { display: inline-flex; align-items: center; gap: 10px; padding: 13px 26px; border: 0; border-radius: 999px; background: #EEF3FA; color: #2B3A52; font-weight: 600; opacity: .6; cursor: not-allowed; }
.portal-login-card .portal-small-note, .portal-login-card .portal-fine-print { justify-content: center; max-width: 440px; margin: 16px auto 0; text-align: left; }
.portal-info-row { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0, 16, 36, .6); color: var(--muted); font-size: 14px; }
.portal-info-row .ic { margin-top: 3px; color: var(--cyan); font-size: 17px; }
.portal-info-row strong { color: var(--text); }

/* Signed in */
.portal-profile { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #0B0F16; }
.portal-avatar { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--grad-btn); font: 700 20px var(--heading); }
.portal-profile > div:nth-child(2) { display: grid; gap: 2px; flex: 1; min-width: 0; }
.profile-sup { color: var(--muted-2); font-size: 11px; font-weight: 600; letter-spacing: .16em; }
.portal-profile strong { font-family: var(--heading); font-weight: 600; }
.portal-profile small { color: var(--muted); overflow-wrap: anywhere; }
.portal-logout { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: #DBE6F5; font-size: 13px; cursor: pointer; transition: border-color .2s, color .2s; }
.portal-logout:hover { border-color: var(--danger); color: #fff; }
.portal-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
/* Stat cards: icon, value, detail line */
.stat { position: relative; display: flex; gap: 14px; align-items: flex-start; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(160deg, #0C1018, #080B11); color: inherit; text-decoration: none; transition: border-color .3s, transform .4s var(--spring), box-shadow .3s; }
.stat:hover { border-color: rgba(19, 143, 234, .45); transform: translateY(-3px); }
.stat > div { display: grid; gap: 4px; min-width: 0; }
.stat-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(19, 143, 234, .4); background: rgba(3, 97, 236, .14); color: var(--cyan); font-size: 18px; }
.portal-stats small { color: var(--muted-2); font-size: 11px; font-weight: 600; letter-spacing: .16em; }
.portal-stats strong { display: flex; align-items: center; gap: 8px; font: 600 19px var(--heading); }
.stat-sub { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.stat[data-plan="pro"] .stat-ic, .stat[data-plan="lite"] .stat-ic { border: 0; background: var(--grad-btn); color: #fff; box-shadow: 0 0 18px rgba(3, 97, 236, .45); }
.stat-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--muted-2); }
.stat[data-state="ok"] .stat-dot { background: #3DDC97; box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); animation: dot-ping 2.2s ease-out infinite; }
.stat[data-state="ok"] .stat-ic { color: #3DDC97; border-color: rgba(61, 220, 151, .4); background: rgba(61, 220, 151, .1); }
.stat[data-state="warn"] .stat-dot { background: var(--warn); }
@keyframes dot-ping { 70% { box-shadow: 0 0 0 8px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }
.stat-link:hover { box-shadow: 0 16px 34px rgba(0, 0, 0, .35); }
.stat-go { position: absolute; top: 18px; right: 16px; color: var(--muted-2); transition: transform .3s var(--spring), color .2s; }
.stat-link:hover .stat-go { color: var(--cyan); transform: translateX(3px); }
/* Device slots in the stat card */
.slot-meter { display: flex; gap: 5px; margin-top: 4px; }
.slot-meter i { width: 26px; height: 8px; border-radius: 4px; border: 1px solid #2B3A52; background: transparent; }
.slot-meter i.is-used { border-color: transparent; background: linear-gradient(90deg, var(--blue), var(--cyan)); box-shadow: 0 0 8px rgba(37, 233, 230, .45); }
.slot-meter:empty { display: none; }

.portal-panel { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #0B0F16; animation: rise .45s var(--ease) both; }
.portal-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.portal-panel-head h3 { font-size: 19px; }
.pill, .meta-chip { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .1em; white-space: nowrap; }
.pill { border: 1px solid rgba(37, 233, 230, .4); background: rgba(37, 233, 230, .08); color: var(--cyan); }
.meta-chip { border: 1px solid var(--line-2); color: var(--muted); letter-spacing: .04em; font-weight: 500; }
.panel-lead { margin-bottom: 18px; color: var(--muted); font-size: 15px; }

.portal-state-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0, 16, 36, .45); }
.state-icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 13px; border: 1px solid rgba(19, 143, 234, .4); background: rgba(3, 97, 236, .14); color: var(--cyan); font-size: 20px; }
.portal-state-card > div:last-child { flex: 1; min-width: 0; }
.portal-state-card h4 { font-size: 17px; }
.portal-state-card p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.inline-blue { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--cyan); font-size: 14px; font-weight: 500; text-decoration: none; transition: gap .3s var(--ease); }
.inline-blue:hover { gap: 10px; }

/* Downloads */
.download-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.download-tile { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(160deg, #0F141D, #0A0D13); transition: transform .4s var(--spring), border-color .3s, box-shadow .3s; }
.download-tile:hover { transform: translateY(-5px); border-color: rgba(19, 143, 234, .45); box-shadow: 0 20px 40px rgba(0, 0, 0, .4); }
.download-tile-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 6px; border-radius: 12px; background: var(--grad-btn); color: #fff; font-size: 20px; box-shadow: 0 0 18px rgba(3, 97, 236, .4); }
.download-tile h4 { font-size: 16px; }
.download-tile p { flex: 1; color: var(--muted); font-size: 13px; }
.download-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 999px; color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; transition: border-color .2s, background-color .2s; }
.download-action:hover { border-color: var(--cyan); background: rgba(37, 233, 230, .07); }

/* License center (built by account.js) */
.te-license-center { display: grid; gap: 16px; }
.te-license-center-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.te-eyebrow { color: var(--cyan); font-size: 11px; font-weight: 600; letter-spacing: .16em; }
.te-license-plan h4 { margin: 6px 0 4px; font-size: 22px; }
.te-license-plan p { color: var(--muted); font-size: 14px; }
.te-license-active { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(37, 233, 230, .4); background: rgba(37, 233, 230, .08); color: var(--cyan); font-size: 12px; font-weight: 600; }
.te-key-panel { padding: 18px; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(0, 16, 36, .6); }
.te-key-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.te-key-tag { color: var(--muted-2); font-size: 12px; }
.te-key-masked { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 10px; background: #02060D; color: #B6C4D6; font: 600 15px/1.5 ui-monospace, 'Cascadia Mono', Consolas, monospace; letter-spacing: .14em; word-break: break-all; }
.te-key-masked.te-key-visible { color: var(--cyan); border-color: rgba(37, 233, 230, .45); }
.te-key-help, .te-key-footnote { margin-top: 12px; color: var(--muted); font-size: 13px; }
.te-key-controls, .te-billing-actions, .license-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.te-action, .license-claim-button, .license-dialog-actions button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 18px;
  border: 0; border-radius: 999px; background: var(--grad-btn); color: #fff; font: 600 13px var(--heading); cursor: pointer;
  box-shadow: 0 0 16px rgba(3, 97, 236, .35); transition: transform .3s var(--spring), box-shadow .3s, border-color .2s;
}
.te-action:hover:not(:disabled), .license-claim-button:hover:not(:disabled), .license-dialog-actions button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 0 26px rgba(3, 97, 236, .55); }
.te-action-secondary, .license-dialog-actions button:first-child { border: 1px solid var(--line-2); background: transparent; color: #DBE6F5; box-shadow: none; }
.te-action-secondary:hover:not(:disabled), .license-dialog-actions button:first-child:hover:not(:disabled) { border-color: var(--cyan); box-shadow: none; }
.te-action-danger { color: #FFC9CB; }
.te-action-danger:hover:not(:disabled) { border-color: var(--danger) !important; }
.te-action:disabled, .license-claim-button:disabled, .license-dialog-actions button:disabled { opacity: .55; cursor: not-allowed; }
.license-claim-button { margin-top: 14px; }
.te-license-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.te-license-facts > div { display: grid; gap: 4px; min-width: 0; }
.te-license-facts span { color: var(--muted-2); font-size: 12px; }
.te-license-facts strong { font-size: 14px; overflow-wrap: anywhere; }
/* Devices panel */
.dev-summary { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: radial-gradient(70% 120% at 0% 50%, rgba(3, 97, 236, .16), transparent 70%), rgba(0, 16, 36, .45); }
.dev-ring { position: relative; display: grid; place-items: center; flex: none; width: 74px; height: 74px; border-radius: 50%; background: conic-gradient(var(--cyan) calc(var(--p, 0) * 360deg), #1C2330 0); }
.dev-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #0B0F16; }
.dev-ring b { position: relative; font: 700 18px var(--heading); }
.dev-summary-text { flex: 1 1 220px; min-width: 0; }
.dev-summary-text h4 { font-size: 18px; }
.dev-summary-text p { margin-top: 4px; color: var(--muted); font-size: 14px; }
.dev-reset { flex: none; }
.dev-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.dev-slot { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px; border-radius: 14px; animation: rise .45s var(--ease) both; }
.dev-slot.is-used { border: 1px solid rgba(61, 220, 151, .35); background: linear-gradient(160deg, rgba(61, 220, 151, .07), #0B0F16 70%); }
.dev-slot.is-free { border: 1.5px dashed #2B3A52; background: rgba(255, 255, 255, .01); }
.dev-slot-ic { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; font-size: 20px; }
.is-used .dev-slot-ic { background: rgba(61, 220, 151, .12); color: #3DDC97; }
.is-free .dev-slot-ic { border: 1px dashed #3B4B63; color: var(--muted-2); }
.dev-slot-info { display: grid; gap: 1px; flex: 1; min-width: 0; }
.dev-slot-info strong { overflow-wrap: anywhere; font-family: var(--heading); font-weight: 600; }
.dev-slot-info small { color: var(--muted-2); font-size: 12px; }
.dev-pill { flex: none; padding: 4px 10px; border-radius: 999px; background: rgba(61, 220, 151, .12); color: #3DDC97; font-size: 11px; font-weight: 600; }
.dev-steps { margin-top: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #0B0F16; }
.dev-steps h5 { margin: 0 0 12px; font: 600 15px var(--heading); }
.dev-steps ol { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.dev-steps li { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 28px; padding-left: 40px; color: var(--muted); font-size: 14px; }
.dev-steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--grad-btn); color: #fff; font: 600 13px var(--heading); }
.dev-steps li b { color: var(--text); font-weight: 600; }
.dev-steps li span { flex-basis: 100%; }
.dev-steps .inline-blue { margin-top: 0; }
.dev-copy { min-height: 32px; padding: 0 14px; font-size: 12px; }
.dev-note { margin-top: 12px; color: var(--muted-2); font-size: 13px; }

/* Overview shortcuts */
.portal-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.portal-shortcut { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #0B0F16; color: inherit; text-decoration: none; transition: border-color .25s, transform .35s var(--spring), background-color .25s; }
.portal-shortcut:hover { border-color: rgba(19, 143, 234, .5); background: rgba(3, 97, 236, .08); transform: translateY(-2px); }
.portal-shortcut-ic { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 11px; background: rgba(3, 97, 236, .14); color: var(--cyan); font-size: 17px; }
.portal-shortcut-text { display: grid; flex: 1; min-width: 0; }
.portal-shortcut-text strong { font-family: var(--heading); font-weight: 600; font-size: 14px; }
.portal-shortcut-text small { overflow: hidden; color: var(--muted-2); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.portal-shortcut > .ic { color: var(--muted-2); transition: transform .3s var(--spring), color .2s; }
.portal-shortcut:hover > .ic { color: var(--cyan); transform: translateX(3px); }

/* Billing period */
.bill-period { max-width: 460px; margin-top: 14px; }
.bill-period-row { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; }
.bill-period-row span:first-child { color: var(--text); font-weight: 500; }
.bill-bar { height: 8px; margin-top: 8px; overflow: hidden; border-radius: 4px; background: #1C2330; }
.bill-bar i { display: block; width: calc(var(--p, 0) * 100%); min-width: 6px; height: 100%; border-radius: 4px; background: var(--grad); }

/* Dialogs */
.license-private-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 4, 10, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade-in .25s ease both; }
.license-private-dialog { width: min(480px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 28px; border: 1px solid var(--line-2); border-radius: 20px; background: #0B0F16; box-shadow: 0 40px 100px rgba(0, 0, 0, .7), 0 0 50px rgba(3, 97, 236, .2); animation: pop-in .4s var(--spring) both; }
.license-private-dialog h3 { font-size: 21px; }
.license-private-dialog > p { margin-top: 10px; color: var(--muted); font-size: 14px; }
.license-once-field { width: 100%; min-height: 70px; margin-top: 14px; padding: 12px; border: 1px solid rgba(37, 233, 230, .45); border-radius: 10px; background: #02060D; color: var(--cyan); font: 600 14px/1.5 ui-monospace, Consolas, monospace; resize: none; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.92) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.portal-footnote { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; color: var(--muted-2); font-size: 13px; }
.portal-footnote .ic { margin-top: 3px; color: var(--cyan); }

/* Responsive */
@media (max-width: 960px) {
  .portal-shell { grid-template-columns: minmax(0, 1fr); }
  .portal-sidebar { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 16px; }
  .portal-tablist { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .portal-side-link { flex: none; width: auto; border-color: var(--line); border-radius: 999px; padding: 9px 14px; white-space: nowrap; }
  .portal-side-link:hover { transform: none; }
  .portal-side-link.is-current::after { display: none; }
  .portal-sidebar-end { display: none; }
  .download-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .portal-main { padding-top: 36px; }
  .portal-topline { flex-direction: column; align-items: flex-start; }
  .portal-content { padding: 20px 16px; }
  .portal-titlebar { flex-direction: column; align-items: flex-start; }
  .portal-stats { grid-template-columns: 1fr; }
  .portal-profile { flex-wrap: wrap; }
  .portal-logout { margin-left: auto; }
  .portal-panel { padding: 18px 16px; }
  .portal-panel-head { flex-wrap: wrap; }
  .portal-state-card { flex-direction: column; }
  .download-grid, .te-license-facts, .portal-shortcuts { grid-template-columns: 1fr; }
  .dev-reset { width: 100%; }
  .portal-login-card { padding: 32px 18px; }
}

/* Easy SFX Deck: its own licence, download and device cards in the account */
.sfx-account { margin-top: 18px; display: grid; gap: 16px; }
.sfx-card { padding: 20px; border: 1px solid rgba(37, 233, 230, .25); border-radius: 16px; background: radial-gradient(420px 180px at 0% 0%, rgba(3, 97, 236, .18), transparent 70%), linear-gradient(160deg, #0B1424, #070C15); }
.sfx-eyebrow { color: var(--cyan); }
.te-license-pending { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 196, 107, .45); background: rgba(255, 196, 107, .08); color: var(--warn); font-size: 12px; font-weight: 600; }
.te-license-off { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 123, 127, .45); background: rgba(255, 123, 127, .08); color: var(--danger); font-size: 12px; font-weight: 600; }
.sfx-dev { display: grid; gap: 14px; padding: 20px; border: 1px solid rgba(37, 233, 230, .25); border-radius: 16px; background: linear-gradient(160deg, #0B1424, #070C15); }
.sfx-dev-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.sfx-dev-head h4 { margin-top: 4px; font-size: 18px; }
.sfx-download { border-color: rgba(37, 233, 230, .3); }
button.download-action { background: transparent; cursor: pointer; font-family: inherit; } /* buttons look like the download links */
