/* Account and admin pages */
.acct { min-height: 100vh; }
.acct [hidden] { display: none !important; }
.acct-nav { position: sticky; top: 0; z-index: 5; background: rgba(11, 7, 24, .72); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 14px clamp(16px, 4vw, 40px); }
.acct-wordmark { height: 20px; width: auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.acct-nav-right { display: flex; gap: 12px; align-items: center; }
.acct-link { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .92rem; }
.acct-link:hover { color: var(--ink); }
.acct-main { max-width: 860px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 32px) 80px; position: relative; z-index: 1; }
.acct-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; backdrop-filter: blur(14px); }
.acct-signin { max-width: 440px; margin: 40px auto; text-align: center; }
.acct-signin h1 { font-size: 1.6rem; margin: 14px 0 6px; }
.acct-badge-lg { height: 40px; width: auto; display: inline-block; }
.acct-muted { color: var(--ink-2); margin: 0 0 10px; }
.acct-small { font-size: .86rem; color: var(--ink-3); }
.acct-google { display: flex; justify-content: center; margin: 22px 0 8px; min-height: 44px; }
.acct-or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: .85rem; margin: 16px 0; }
.acct-or::before, .acct-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.acct-form { display: grid; gap: 10px; text-align: left; margin-top: 12px; }
.acct-form label { font-size: .88rem; color: var(--ink-2); }
.acct input, .acct textarea, .acct select {
  font: inherit; color: var(--ink); background: rgba(255, 255, 255, .06); border: 1px solid var(--line);
  border-radius: 12px; padding: .7em .9em; outline: none; width: 100%;
}
.acct input:focus, .acct textarea:focus, .acct select:focus { border-color: rgba(197, 140, 255, .6); background: rgba(255, 255, 255, .09); }
.acct-textbtn { background: none; border: 0; color: var(--ink-3); cursor: pointer; font-size: .86rem; padding: 4px; }
.acct-textbtn:hover { color: var(--ink); }
.acct-msg { min-height: 1.4em; margin: 12px 0 0; font-size: .92rem; }
.acct-msg.ok { color: #6ee7a0; }
.acct-msg.err { color: #ff8a80; }
.acct-msg-top:empty { display: none; }
.acct-msg-top { background: rgba(255, 255, 255, .05); border-radius: 12px; padding: 10px 14px; }

.acct-hero { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 10px 0 18px; }
.acct-hero h1 { margin: 2px 0 4px; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.acct-hello { color: var(--ink-3); margin: 0; font-weight: 600; }
.acct-section { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-top: 18px; }
.acct-section h2 { font-size: 1.05rem; margin: 0 0 12px; }
.acct-list { display: grid; gap: 10px; }
.acct-item { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.acct-item-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.acct-item-top img { height: 20px; width: auto; }
.acct-item-title { font-weight: 700; }
.acct-pill { font-size: .75rem; font-weight: 700; padding: .2em .65em; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--ink-2); }
.acct-pill.active { background: rgba(48, 209, 88, .16); color: #6ee7a0; }
.acct-pill.ended { background: rgba(255, 255, 255, .06); color: var(--ink-3); }
.acct-pill.revoked, .acct-pill.rejected { background: rgba(255, 69, 58, .16); color: #ff8a80; }
.acct-pill.requested, .acct-pill.awaiting_payment, .acct-pill.paid { background: rgba(142, 60, 242, .2); color: #d4b5ff; }
.acct-key { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .8rem; color: var(--ink-2); word-break: break-all; margin: 10px 0 6px; background: rgba(0, 0, 0, .25); padding: 8px 10px; border-radius: 10px; }
.acct-meta { color: var(--ink-3); font-size: .86rem; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.acct-meta button { margin-left: auto; }
.acct-store { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.acct-plan { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.acct-plan.best { border-color: rgba(197, 140, 255, .5); background: rgba(142, 60, 242, .12); }
.acct-plan h3 { margin: 0; font-size: 1rem; }
.acct-price { font-size: 1.5rem; font-weight: 800; }
.acct-plan p { margin: 0 0 6px; color: var(--ink-2); font-size: .88rem; flex: 1; }
.acct-plan .why { color: var(--ink-3); font-size: .8rem; }
.acct-inline { display: flex; gap: 10px; flex-wrap: wrap; }
.acct-inline input { flex: 1; min-width: 200px; }
.acct-row-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.acct-red { color: #ff8a80 !important; }
.btn[disabled] { opacity: .45; cursor: default; transform: none !important; box-shadow: none !important; }
.acct-empty { color: var(--ink-3); font-size: .92rem; margin: 0; }

/* admin */
.adm-main { max-width: 1180px; }
.adm-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 16px; }
.adm-tabs button { background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 999px; padding: .45em 1em; cursor: pointer; font-weight: 600; font-size: .9rem; }
.adm-tabs button.on { background: rgba(142, 60, 242, .3); border-color: rgba(197, 140, 255, .5); }
.adm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.adm-stat { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; }
.adm-stat b { display: block; font-size: 1.5rem; }
.adm-stat span { color: var(--ink-3); font-size: .85rem; }
.adm-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.adm-table th { text-align: left; color: var(--ink-3); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--line); }
.adm-table td { padding: 10px 8px; border-bottom: 1px solid rgba(196, 170, 255, .07); vertical-align: top; }
.adm-table tr.click { cursor: pointer; }
.adm-table tr.click:hover td { background: rgba(255, 255, 255, .03); }
.adm-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.adm-actions .btn { font-size: .8rem; padding: .4em .85em; }
.adm-box { background: rgba(0, 0, 0, .2); border-radius: 12px; padding: 12px; margin-top: 10px; display: grid; gap: 8px; }
.adm-dim { color: var(--ink-3); font-size: .82rem; }
.adm-modal { position: fixed; inset: 0; background: rgba(5, 3, 12, .7); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; z-index: 50; overflow-y: auto; }
.adm-modal > div { background: var(--panel-solid); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; width: min(860px, 100%); }

/* the home page's big section and heading styles don't apply here */
.acct section { padding: 0; }
.acct .acct-section { padding: 22px 24px; }
.acct .acct-card { padding: 34px; }
.acct h1 { letter-spacing: -.02em; }
.acct h2 { font-size: 1.05rem; line-height: 1.3; letter-spacing: 0; margin: 0 0 12px; font-weight: 700; }
.acct h3 { letter-spacing: 0; }

/* admin keys tab: search, filters, import, notes */
.adm-keybar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.adm-keybar .acct-inline { flex: 1 1 260px; }
.adm-note input { width: 100%; margin-top: 6px; padding: 5px 8px; font-size: 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(0, 0, 0, .2); color: inherit; font-family: inherit; }
.adm-note input:focus { outline: none; border-color: rgba(167, 115, 255, .6); }
.adm-box code { font-family: "JetBrains Mono", monospace; font-size: 11.5px; background: rgba(255, 255, 255, .06); padding: 1px 5px; border-radius: 5px; }

/* before 1.7: "you're all set" card (".acct section { padding: 0 }" above needs the stronger selector) */
.acct .acct-soon { position: relative; overflow: hidden; margin-top: 18px; padding: 30px 32px 28px; border-radius: var(--radius, 26px);
  background: radial-gradient(70% 90% at 0% 0%, rgba(185, 163, 224, .24), transparent 60%), radial-gradient(60% 80% at 100% 100%, rgba(231, 169, 140, .14), transparent 60%), rgba(255, 255, 255, .03);
  box-shadow: inset 0 0 0 1px rgba(185, 163, 224, .25), inset 0 1px 0 rgba(255, 255, 255, .1); }
.acct .acct-soon-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.acct .acct-soon-chip { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 12px; border-radius: 999px; background: #000; color: #fff; font-size: .8rem; font-weight: 600; line-height: 1;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 10px 24px -12px rgba(0, 0, 0, .8); }
.acct .acct-soon-chip i { width: 7px; height: 7px; border-radius: 50%; background: #B9A3E0; box-shadow: 0 0 10px #B9A3E0; flex: none; }
.acct .acct-soon-count { padding: 7px 12px; border-radius: 999px; background: rgba(185, 163, 224, .12); font-size: .8rem; line-height: 1; color: #d9cdf7; font-weight: 600; font-variant-numeric: tabular-nums; }
.acct .acct-soon h2 { margin: 22px 0 8px; font-size: 1.6rem; line-height: 1.2; letter-spacing: -.03em; }
.acct .acct-soon p { margin: 0; color: var(--ink-2); max-width: 620px; line-height: 1.65; }
.acct .acct-soon-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0 24px; padding: 0; }
.acct .acct-soon-steps li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); font-size: .9rem; line-height: 1.3; }
.acct .acct-soon-steps b { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; background: rgba(185, 163, 224, .18); color: #e6defb; }
.acct .acct-soon-steps li:first-child b { background: linear-gradient(140deg, #B9A3E0, #7F63AD); color: #fff; }
.acct .acct-soon-steps em { font-style: normal; margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: rgba(155, 227, 180, .12); font-size: .7rem; font-weight: 700; color: #9be3b4; }
.acct .acct-soon-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 620px) { .acct .acct-soon-steps { grid-template-columns: 1fr; } .acct .acct-soon { padding: 24px 20px 22px; } }
