@import url("design-tokens.css");

.account-body{background:radial-gradient(circle at 92% 10%,rgba(196,176,150,.18),transparent 28%),var(--ws-bg)}
.account-workspace{padding:34px 0 56px}
.account-wrap{width:min(1360px,calc(100% - 40px));margin:0 auto}
.account-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:28px}
.account-head h1{margin:0 0 8px;font-size:54px;line-height:1;letter-spacing:-.06em;color:var(--ws-text)}
.account-head p{margin:0;color:var(--ws-muted);font-size:15px}
.account-identity{display:flex;align-items:center;gap:12px;min-width:280px;padding:14px 16px;border:1px solid var(--ws-line);border-radius:18px;background:rgba(255,255,255,.78);backdrop-filter:blur(12px);box-shadow:0 12px 30px rgba(44,34,24,.06)}
.identity-dot{width:10px;height:10px;border-radius:50%;background:var(--ws-green);box-shadow:0 0 0 6px color-mix(in srgb,var(--ws-green) 14%,transparent)}
.account-identity div{min-width:0;flex:1}
.account-identity strong,.account-identity span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-identity strong{font-size:14px;color:var(--ws-text)}
.account-identity span{font-size:12px;color:var(--ws-muted);margin-top:3px}
.identity-caret{font-size:14px;color:var(--ws-muted)}

.account-notice{display:flex;align-items:center;gap:14px;margin-bottom:18px;padding:16px 18px;border:1px solid var(--ws-line);border-radius:18px;background:var(--ws-surface);box-shadow:0 10px 26px rgba(44,34,24,.05)}
.account-notice[hidden]{display:none!important}
.account-notice>span{font-size:20px;flex:0 0 auto}
.account-notice div{display:grid;gap:4px;flex:1}
.account-notice div strong{font-size:14px;color:var(--ws-text)}
.account-notice div span{font-size:12px;color:var(--ws-muted)}
.verify-notice-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.access-notice{background:#faf7f2}
.checkout-success-notice{background:#eef8f1}
.account-notice button,.account-secondary{height:40px;padding:0 14px;border-radius:12px;border:1px solid var(--ws-line);background:var(--ws-surface-soft);color:var(--ws-text);font-size:13px;font-weight:800;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}

.account-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(420px,.95fr);gap:18px;align-items:start}
.account-column{display:grid;gap:18px}
.account-card{background:rgba(255,255,255,.86);backdrop-filter:blur(10px);border:1px solid rgba(210,197,181,.85);border-radius:24px;padding:24px 24px 22px;box-shadow:0 16px 38px rgba(48,36,24,.06)}
.account-card-head{display:flex;align-items:flex-start;gap:14px;margin-bottom:20px}
.account-card-head.no-margin{margin-bottom:0}
.account-card-icon{width:48px;height:48px;border-radius:15px;border:1px solid rgba(210,197,181,.9);background:#f6f2ec;display:grid;place-items:center;font-size:20px;flex:0 0 auto}
.account-card h2{margin:2px 0 0;font-size:20px;letter-spacing:-.035em;color:var(--ws-text)}
.card-subtitle{margin:6px 0 0;font-size:13px;line-height:1.45;color:var(--ws-muted)}

.account-form{display:grid;grid-template-columns:1fr 1fr;gap:18px 18px}
.account-form label{display:grid;gap:8px}
.account-form label.full{grid-column:1/-1}
.account-form span{font-size:13px;font-weight:700;color:var(--ws-text)}
.field-shell{height:50px;display:flex;align-items:center;gap:10px;padding:0 14px;border-radius:16px;border:1px solid var(--ws-line);background:#fbf9f5;box-shadow:inset 0 1px 0 rgba(255,255,255,.7)}
.field-shell input,.field-shell select{width:100%;border:0;background:transparent;outline:0;color:var(--ws-text);font-size:14px;font-family:inherit}
.field-shell input[readonly]{color:#5e554b}
.field-shell-select select{appearance:none;padding-right:18px}
.field-icon{width:20px;flex:0 0 20px;text-align:center;color:#655d54;opacity:.85}
.account-card-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:20px;margin-top:20px;border-top:1px solid var(--ws-line)}
.card-hint{font-size:12px;color:var(--ws-muted)}

.account-primary,.account-secondary,.account-danger{min-height:46px;border-radius:14px;padding:0 18px;font-size:14px;font-weight:800;border:1px solid transparent;cursor:pointer;transition:transform .12s ease,box-shadow .12s ease,background .12s ease}
.account-primary{background:#161a22;color:#fff;box-shadow:0 12px 22px rgba(22,26,34,.22)}
.account-primary:hover{transform:translateY(-1px)}
.account-secondary{background:#fff7;color:var(--ws-text);border-color:var(--ws-line)}
.account-danger{background:#fff3f1;color:#cb443b;border-color:#f0c1bb}
.block-action{width:100%;justify-content:center}

.plan-card{gap:0}
.plan-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px;border-radius:20px;border:1px solid rgba(215,200,182,.9);background:linear-gradient(140deg,#f8f4ee 0%,#f7f2ec 64%,#f2ebdf 100%);position:relative;overflow:hidden}
.plan-hero::after{content:"";position:absolute;right:-34px;bottom:-40px;width:210px;height:140px;background:radial-gradient(circle at 40% 40%,rgba(214,197,175,.42),transparent 62%);pointer-events:none}
.plan-hero-kicker{display:block;font-size:12px;color:var(--ws-muted);font-weight:700;margin-bottom:8px}
.plan-hero-copy{position:relative;z-index:1;max-width:70%}
.plan-hero-copy strong{display:block;font-size:24px;line-height:1.1;letter-spacing:-.04em;color:var(--ws-text)}
.plan-hero-copy p{margin:8px 0 0;font-size:14px;color:#5f564c;line-height:1.45}
.plan-hero-aside{position:relative;z-index:1;display:grid;justify-items:end;gap:14px}
.state-badge{display:inline-flex;align-items:center;gap:8px;height:32px;padding:0 12px;border-radius:999px;background:#edf8f1;color:#16784b;font-size:13px;font-weight:800}
.state-badge::before{content:"";width:9px;height:9px;border-radius:50%;background:#2aac68;box-shadow:0 0 0 5px rgba(42,172,104,.14)}
.state-badge.warning{background:#fff7e8;color:#9a6708}.state-badge.warning::before{background:#d99000;box-shadow:0 0 0 5px rgba(217,144,0,.14)}
.state-badge.neutral{background:#f1eee8;color:#5e564b}.state-badge.neutral::before{background:#938a80;box-shadow:0 0 0 5px rgba(147,138,128,.14)}
.plan-tier-icon{width:70px;height:70px;border-radius:18px;display:grid;place-items:center;font-size:34px;font-weight:900;background:linear-gradient(180deg,rgba(255,255,255,.45),rgba(240,229,212,.55))}
.plan-tier-plus{color:#b58a41}
.plan-tier-basic{color:#7c6d5a;background:linear-gradient(180deg,rgba(255,255,255,.5),rgba(232,225,214,.72))}
.plan-tier-none{color:#8a8176;background:linear-gradient(180deg,rgba(255,255,255,.34),rgba(238,233,226,.68))}
.subscription-details{display:grid;grid-template-columns:42px 1fr;gap:12px;align-items:flex-start;padding:16px 0 2px;margin-top:16px}
.details-icon{width:42px;height:42px;border-radius:14px;background:#f6f2ec;border:1px solid var(--ws-line);display:grid;place-items:center;font-size:18px}
.details-copy{display:grid;gap:5px}
.details-copy strong{font-size:15px;color:var(--ws-text)}
.details-copy span{font-size:13px;line-height:1.55;color:#4f473e}
.plan-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}
.plan-choices button{min-height:52px;border-radius:16px;border:1px solid rgba(208,194,176,.95);background:#fff;color:var(--ws-text);font-weight:800;font-size:14px;cursor:pointer;padding:0 16px}
.plan-choices button:hover:not(:disabled){border-color:#b69a77}
.plan-choices button.is-current,.plan-choices button:disabled{background:#f6efe4;border-color:#ccb28b;color:#4b4035;cursor:default}
#billing{margin-top:14px}
.admin-plan-note{display:grid;gap:6px;margin-top:16px;padding:14px 16px;border-radius:18px;background:#eef8f1;color:#16784b;border:1px solid #d4ebd9}
.admin-plan-note strong{font-size:14px}.admin-plan-note span{font-size:12px;line-height:1.5}

.integration-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}
.ebay-wordmark{font-size:28px;font-weight:900;line-height:1;letter-spacing:-.04em;display:flex;gap:1px;padding-top:6px}
.ebay-e{color:#e53238}.ebay-b{color:#0064d2}.ebay-a{color:#f5af02}.ebay-y{color:#86b817}
.integration-status{display:flex;align-items:flex-start;gap:12px;padding:18px;border-radius:18px;border:1px solid var(--ws-line);background:#fbf9f5}
.connection-dot{width:10px;height:10px;border-radius:50%;background:#a59a8e;box-shadow:0 0 0 6px rgba(165,154,142,.12);margin-top:6px;flex:0 0 auto}
.connection-dot.connected{background:#27a865;box-shadow:0 0 0 6px rgba(39,168,101,.12)}
.integration-status strong{display:block;font-size:15px;color:var(--ws-text);margin-bottom:4px}.integration-status span{font-size:13px;line-height:1.55;color:#5b5248}
.integration-actions{display:flex;gap:12px;margin-top:16px}
.integration-actions>*{flex:1}

.session-card{display:grid;grid-template-columns:54px 1fr auto auto;align-items:center;gap:16px;padding:18px;border:1px solid var(--ws-line);border-radius:18px;background:#fbf9f5}
.session-icon{width:54px;height:54px;border-radius:16px;border:1px solid var(--ws-line);display:grid;place-items:center;background:#f6f2ec;font-size:22px}
.session-copy{display:grid;gap:4px;min-width:0}
.session-copy strong{font-size:16px;color:var(--ws-text)}
.session-copy span,.session-copy small{font-size:13px;color:#5e554b;line-height:1.45;white-space:normal}
.session-badge{display:inline-flex;align-items:center;justify-content:center;height:36px;padding:0 14px;border-radius:999px;background:#edf8f1;color:#1a7f52;font-size:13px;font-weight:800}

.account-status{margin-top:16px;min-height:22px;font-size:13px;color:#b94036;font-weight:700}.account-status.success{color:#16784b}

html[data-theme="dark"] .account-body{background:radial-gradient(circle at 92% 10%,rgba(148,122,87,.12),transparent 30%),var(--ws-bg)}
html[data-theme="dark"] .account-identity,html[data-theme="dark"] .account-card,html[data-theme="dark"] .account-notice{background:rgba(30,29,27,.9)}
html[data-theme="dark"] .field-shell,html[data-theme="dark"] .integration-status,html[data-theme="dark"] .session-card{background:#24211d}
html[data-theme="dark"] .plan-hero{background:linear-gradient(140deg,#2d2823 0%,#29251f 70%,#332b20 100%)}
html[data-theme="dark"] .plan-hero::after{background:radial-gradient(circle at 40% 40%,rgba(110,91,62,.35),transparent 62%)}
html[data-theme="dark"] .plan-tier-icon{background:linear-gradient(180deg,rgba(255,255,255,.02),rgba(126,92,48,.14))}
html[data-theme="dark"] .plan-tier-basic{background:linear-gradient(180deg,rgba(255,255,255,.02),rgba(125,115,96,.18))}
html[data-theme="dark"] .plan-tier-none{background:linear-gradient(180deg,rgba(255,255,255,.02),rgba(100,92,80,.16))}
html[data-theme="dark"] .account-primary{box-shadow:none}
html[data-theme="dark"] .state-badge{background:#163022;color:#9fdfbc}
html[data-theme="dark"] .state-badge.warning{background:#332714;color:#f0cb76}
html[data-theme="dark"] .state-badge.neutral{background:#302a23;color:#d8c8b8}

@media(max-width:1180px){.account-grid{grid-template-columns:1fr}.account-wrap{width:min(980px,calc(100% - 28px))}.plan-hero-copy{max-width:none}.session-card{grid-template-columns:54px 1fr auto;grid-template-areas:"icon copy badge" "icon copy action"}.session-icon{grid-area:icon}.session-copy{grid-area:copy}.session-badge{grid-area:badge;justify-self:end}.account-danger{grid-area:action;justify-self:end}}
@media(max-width:760px){.account-head{flex-direction:column}.account-identity{width:100%}.account-form{grid-template-columns:1fr}.plan-choices,.integration-actions{grid-template-columns:1fr;display:grid}.session-card{grid-template-columns:1fr;justify-items:start}.session-badge,.account-danger{justify-self:start}.plan-hero{flex-direction:column}.plan-hero-aside{justify-items:start}.plan-tier-icon{width:60px;height:60px}.account-head h1{font-size:42px}}

.plan-choices[hidden]{display:none!important}


/* eBay read-only diagnostics */
.ebay-diagnostics{margin-top:16px;padding:18px;border:1px solid var(--ws-line);border-radius:18px;background:#fbf9f5}
.ebay-diagnostics[hidden]{display:none!important}
.ebay-diagnostics-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.ebay-diagnostics-head>div{display:grid;gap:3px}.ebay-diagnostics-head strong{font-size:15px;color:var(--ws-text)}.ebay-diagnostics-head span{font-size:11px;color:var(--ws-muted)}
.ebay-ready-badge{display:inline-flex;align-items:center;min-height:30px;padding:0 11px;border-radius:999px;background:#edf8f1;color:#16784b;font-size:12px;font-weight:900}.ebay-ready-badge.not-ready{background:#fff4e4;color:#9a6708}
.ebay-check-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ebay-check-item{min-width:0;padding:12px 13px;border:1px solid var(--ws-line);border-radius:14px;background:var(--ws-surface)}
.ebay-check-item>span,.ebay-check-item>strong,.ebay-check-item>small{display:block}.ebay-check-item>span{font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:var(--ws-muted);font-weight:900}.ebay-check-item>strong{margin-top:5px;font-size:15px;color:var(--ws-text)}.ebay-check-item>small{margin-top:4px;font-size:11px;line-height:1.4;color:var(--ws-muted);overflow-wrap:anywhere}
.ebay-missing{margin-top:12px;padding:11px 13px;border-radius:13px;background:#fff4e4;color:#7e5a18;font-size:12px;line-height:1.5}.ebay-missing[hidden]{display:none!important}
#inspectEbay[disabled]{opacity:.65;cursor:wait}
html[data-theme="dark"] .ebay-diagnostics{background:#24211d}html[data-theme="dark"] .ebay-check-item{background:#211f1c}html[data-theme="dark"] .ebay-ready-badge{background:#163022;color:#9fdfbc}html[data-theme="dark"] .ebay-ready-badge.not-ready{background:#332714;color:#f0cb76}html[data-theme="dark"] .ebay-missing{background:#332714;color:#f0cb76}
@media(max-width:760px){.ebay-check-grid{grid-template-columns:1fr}}

.ebay-setup-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:-2px 0 12px;padding:12px 13px;border:1px solid #ead7ae;border-radius:14px;background:#fff7e8}.ebay-setup-actions[hidden]{display:none!important}.ebay-setup-actions>div{display:grid;gap:3px;min-width:0}.ebay-setup-actions strong{font-size:12px;color:#6f5019}.ebay-setup-actions span{font-size:11px;line-height:1.4;color:#8a6b32}.ebay-setup-actions button{flex:0 0 auto;min-height:34px;padding:0 12px}
html[data-theme="dark"] .ebay-setup-actions{background:#332714;border-color:#5a4725}html[data-theme="dark"] .ebay-setup-actions strong,html[data-theme="dark"] .ebay-setup-actions span{color:#f0cb76}
@media(max-width:760px){.ebay-setup-actions{align-items:stretch;flex-direction:column}.ebay-setup-actions button{width:100%}}
