/* SWD client area (1.4.0): sign in, dashboard, services, licences, invoices. Loaded on the My Account page only. */
body.swd-site .swd-acc { --a: var(--acc); font-family: var(--f); color: #fff; }
body.swd-site .swd-acc a { color: var(--acc); }

/* buttons */
body.swd-site .swd-acc .acc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--acc); color: var(--ink); font: 500 16px/1 var(--f); letter-spacing: -.01em; text-decoration: none; text-transform: none; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s; }
body.swd-site .swd-acc .acc-btn:hover { background: #fff; color: var(--ink); }
body.swd-site .swd-acc .acc-btn--line { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.28); }
body.swd-site .swd-acc .acc-btn--line:hover { background: #fff; color: var(--ink); }
body.swd-site .swd-acc .acc-btn--block { width: 100%; min-height: 52px; font-size: 17px; margin-top: 6px; }

/* ---------- sign in ---------- */
body.swd-site .swd-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 64px; align-items: center; max-width: 1100px; margin: 0 auto; padding: 20px 0 40px; }
body.swd-site .swd-auth .auth-h { margin: 0 0 24px; font-size: clamp(34px, 4vw, 54px); font-weight: 500; letter-spacing: -.04em; line-height: 1.06; color: #fff; }
body.swd-site .swd-auth .auth-list { display: grid; gap: 14px; margin: 0 0 28px; padding: 0; list-style: none; }
body.swd-site .swd-auth .auth-list li { position: relative; padding-left: 30px; color: #DCE2EF; font-size: 17px; }
body.swd-site .swd-auth .auth-list li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--acc); border-bottom: 2px solid var(--acc); transform: rotate(-45deg); }
body.swd-site .swd-auth .auth-help { color: var(--muted); font-size: 15px; }
body.swd-site .swd-auth .auth-card { padding: clamp(26px, 4vw, 40px); border-radius: 26px; background: var(--card); box-shadow: inset 0 0 0 1px var(--edge), 0 40px 80px -40px rgba(0,0,0,.7); }
body.swd-site .swd-auth .auth-card form { margin: 0; padding: 0; border: 0; }
body.swd-site .swd-auth .auth-title-center { margin: 0 0 6px; font-size: 28px; font-weight: 500; letter-spacing: -.03em; color: #fff; text-align: left; }
body.swd-site .swd-auth .auth-sub { margin: 0 0 22px; color: var(--muted); font-size: 15.5px; text-align: left; }
body.swd-site .swd-auth .field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
body.swd-site .swd-auth .field { display: grid; gap: 6px; margin: 0; padding: 0; min-width: 0; }
body.swd-site .swd-auth .field.full { grid-column: 1 / -1; }
body.swd-site .swd-auth .field label { margin: 0; font-size: 14px; color: var(--muted); }
body.swd-site .swd-auth input[type="text"], body.swd-site .swd-auth input[type="email"], body.swd-site .swd-auth input[type="password"] { width: 100%; height: 50px; padding: 0 14px; border: 0 !important; border-radius: 12px; background: rgba(255,255,255,.06) !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); color: #fff !important; font: 400 16px var(--f); }
body.swd-site .swd-auth input:focus { outline: 2px solid var(--acc); outline-offset: 1px; }
body.swd-site .swd-auth .auth-code-input { letter-spacing: .4em; text-align: center; font-size: 22px !important; }
body.swd-site .swd-auth .auth-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin: 14px 0 6px; font-size: 14.5px; }
body.swd-site .swd-auth .auth-row-center { justify-content: center; margin-top: 18px; }
body.swd-site .swd-auth .auth-check { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); }
body.swd-site .swd-auth .auth-check input { width: 16px; height: 16px; accent-color: var(--acc); }
body.swd-site .swd-auth .auth-link { color: var(--acc); text-decoration: none; }
body.swd-site .swd-auth .auth-link:hover { text-decoration: underline; }
body.swd-site .swd-auth .auth-foot { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--edge); text-align: center; font-size: 15px; color: var(--muted); }
body.swd-site .swd-auth .auth-error { margin: 0 0 10px; color: #FFB37A; font-size: 14.5px; }
body.swd-site .swd-auth .auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted-d); font-size: 13px; }
body.swd-site .swd-auth .auth-divider::before, body.swd-site .swd-auth .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--edge); }
body.swd-site .swd-auth .summary-note { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); }
body.swd-site .swd-auth [hidden] { display: none !important; }

/* ---------- signed-in shell ---------- */
body.swd-site .acc-shell { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; align-items: start; padding: 10px 0 40px; }
body.swd-site .acc-nav { position: sticky; top: 100px; float: none; width: auto; margin: 0; padding: 18px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--edge); }
body.swd-site .acc-who { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: center; padding: 4px 4px 16px; margin-bottom: 10px; border-bottom: 1px solid var(--edge); }
body.swd-site .acc-av { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #5CC8FF, #B58CFF); color: var(--ink); font-weight: 600; }
body.swd-site .acc-who b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.swd-site .acc-who span { display: block; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.swd-site .acc-nav ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
body.swd-site .acc-nav li { margin: 0; padding: 0; border: 0; }
body.swd-site .acc-nav li a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-size: 15.5px; text-decoration: none; }
body.swd-site .acc-nav li a:hover { color: #fff; background: rgba(255,255,255,.05); }
body.swd-site .acc-nav li.is-active a { color: #fff; background: rgba(92,200,255,.12); box-shadow: inset 3px 0 0 var(--acc); }
body.swd-site .acc-nav li.woocommerce-MyAccount-navigation-link--customer-logout { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--edge); }
body.swd-site .acc-main { float: none; width: auto; min-width: 0; padding: clamp(22px, 3vw, 36px); border-radius: 24px; background: var(--card); box-shadow: inset 0 0 0 1px var(--edge); color: #DCE2EF; }
body.swd-site .acc-head { margin-bottom: 24px; }
body.swd-site .acc-head h2 { margin: 0 0 4px; font-size: clamp(26px, 2.6vw, 34px); font-weight: 500; letter-spacing: -.03em; color: #fff; }
body.swd-site .acc-head p { margin: 0; color: var(--muted); }
body.swd-site .acc-muted { color: var(--muted); font-size: 15px; }
body.swd-site .acc-note { margin-top: 20px; color: var(--muted); font-size: 14.5px; }

/* badges */
body.swd-site .acc-badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; }
body.swd-site .acc-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
body.swd-site .acc-badge--ok { background: rgba(59,227,143,.12); color: #5BE3A2; }
body.swd-site .acc-badge--wait { background: rgba(255,200,90,.12); color: #FFCB6B; }
body.swd-site .acc-badge--bad { background: rgba(255,120,100,.13); color: #FF9A85; }
body.swd-site .acc-badge--off { background: rgba(255,255,255,.07); color: var(--muted); }

/* dashboard */
body.swd-site .acc-alert { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; padding: 14px 18px; border-radius: 14px; background: rgba(255,200,90,.1); box-shadow: inset 0 0 0 1px rgba(255,200,90,.3); }
body.swd-site .acc-alert p { margin: 0; color: #FFE2A8; }
body.swd-site .acc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 22px; }
body.swd-site .acc-stats div { padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--edge); }
body.swd-site .acc-stats dt { font-size: 13.5px; color: var(--muted); }
body.swd-site .acc-stats dd { margin: 2px 0 0; font-size: 30px; font-weight: 500; letter-spacing: -.04em; color: #fff; }
body.swd-site .acc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
body.swd-site .acc-card { padding: 20px; border-radius: 18px; background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--edge); }
body.swd-site .acc-card--wide { grid-column: 1 / -1; }
body.swd-site .acc-card__h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
body.swd-site .acc-card__h h3 { margin: 0; font-size: 18px; font-weight: 500; color: #fff; }
body.swd-site .acc-card__h a { font-size: 14px; text-decoration: none; }
body.swd-site .acc-mini { display: grid; margin: 0; padding: 0; list-style: none; }
body.swd-site .acc-mini li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--edge); }
body.swd-site .acc-mini li > span:first-child { min-width: 0; }
body.swd-site .acc-mini b { display: block; font-weight: 500; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.swd-site .acc-mini small { display: block; font-size: 13px; color: var(--muted); }
body.swd-site .acc-mini__r { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }

/* lists (services, licences) */
body.swd-site .acc-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
body.swd-site .acc-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 20px; border-radius: 18px; background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--edge); }
body.swd-site .acc-item__type { display: block; margin-bottom: 2px; font-size: 13px; color: var(--muted); }
body.swd-site .acc-item b { display: block; font-size: 19px; font-weight: 500; letter-spacing: -.02em; color: #fff; }
body.swd-site .acc-item__meta { display: block; margin-top: 2px; font-size: 14.5px; color: var(--muted); }
body.swd-site .acc-item__side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
body.swd-site .acc-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 20px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--edge); }
body.swd-site .acc-dl dt { font-size: 12.5px; color: var(--muted); }
body.swd-site .acc-dl dd { margin: 0; font-size: 15px; color: #fff; overflow-wrap: anywhere; }
body.swd-site .acc-key { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
body.swd-site .acc-key code { padding: 5px 10px; border-radius: 8px; background: rgba(0,0,0,.25); color: #DCE2EF; font: 500 13px ui-monospace, Menlo, monospace; overflow-wrap: anywhere; }
body.swd-site .acc-copy { padding: 5px 10px; border: 0; border-radius: 8px; background: rgba(255,255,255,.07); color: #fff; font: 500 13px var(--f); text-transform: none; cursor: pointer; }
body.swd-site .acc-copy:hover { background: rgba(255,255,255,.14); }
body.swd-site .acc-empty { padding: 30px; border-radius: 18px; background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--edge); text-align: center; }
body.swd-site .acc-empty p { margin: 0 auto 16px; max-width: 46ch; color: var(--muted); }

/* invoices + WooCommerce tables inside the client area */
body.swd-site .acc-table { overflow-x: auto; }
body.swd-site .acc-main table { width: 100%; margin: 0; border: 0; border-collapse: collapse; font-size: 15px; }
body.swd-site .acc-main table th { padding: 10px 12px; border: 0; border-bottom: 1px solid var(--edge); background: none; color: var(--muted); font-weight: 400; font-size: 13.5px; text-align: left; }
body.swd-site .acc-main table td { padding: 12px; border: 0; border-bottom: 1px solid var(--edge); background: none !important; color: #DCE2EF; vertical-align: middle; }
body.swd-site .acc-main table td a { text-decoration: none; }
body.swd-site .acc-main .acc-for { max-width: 280px; color: var(--muted); }
body.swd-site .acc-main .woocommerce-button, body.swd-site .acc-main .button { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; font-size: 14px; text-decoration: none; }
body.swd-site .acc-main .woocommerce-Message, body.swd-site .acc-main .woocommerce-info { margin: 0 0 16px; padding: 14px 18px; border: 0; border-radius: 14px; background: rgba(255,255,255,.04); color: #DCE2EF; }

/* phones */
@media (max-width: 900px) {
	body.swd-site .swd-auth { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	body.swd-site .swd-auth .auth-side { order: 2; }
	body.swd-site .acc-shell { grid-template-columns: minmax(0, 1fr); }
	body.swd-site .acc-nav { position: relative; top: 0; }
	body.swd-site .acc-nav ul { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
	body.swd-site .acc-nav li a { white-space: nowrap; background: rgba(255,255,255,.04); }
	body.swd-site .acc-nav li.woocommerce-MyAccount-navigation-link--customer-logout { margin: 0; padding: 0; border: 0; }
	body.swd-site .acc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body.swd-site .acc-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
	body.swd-site .acc-item { grid-template-columns: minmax(0, 1fr); }
	body.swd-site .acc-item__side { flex-direction: row; align-items: center; justify-content: space-between; }
	body.swd-site .swd-auth .field-grid { grid-template-columns: minmax(0, 1fr); }
	body.swd-site .acc-mini__r .acc-badge { display: none; }
}
body.swd-site .acc-intro { margin: 0 0 22px; color: var(--muted); font-size: 16px; }
body.swd-site .acc-who .acc-av { color: #141A2C; font-size: 17px; line-height: 1; }
body.swd-site .swd-auth .auth-link { display: inline-block; padding: 8px 0; }
body.swd-site .acc-stats:has(> div:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
