/* GetEasySoft — WooCommerce My Account (dashboard, orders, licenses, downloads, addresses, account, login).
   Loaded only on the account page (is_account_page()); builds on the tokens in main.css. */

/* ---------- Shell ---------- */
.account-page { padding-block: clamp(24px, 4vw, 56px) var(--section); }
.account-container { max-width: var(--container); }
.acc { display: grid; grid-template-columns: 256px minmax(0, 1fr); gap: clamp(24px, 3vw, 44px); align-items: start; }
.acc-main { min-width: 0; }
.acc-icon { width: 20px; height: 20px; flex: none; display: block; }
.btn .acc-icon, .link-arrow .acc-icon { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover .acc-icon { transform: translateX(3px); }

/* ---------- Sidebar ---------- */
.acc-side { position: sticky; top: 96px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.admin-bar .acc-side { top: 128px; }
.acc-user { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: var(--radius-lg); background: var(--ink); color: var(--paper); }
.acc-user::after { content: ""; position: absolute; z-index: -1; width: 180px; height: 180px; right: -70px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 85, 45, .5), transparent 68%); }
.acc-avatar { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent); color: var(--ink); font: 800 17px/1 var(--font-display); letter-spacing: -.02em; }
.acc-user-text { min-width: 0; }
.acc-user-name { margin: 0; font: 600 15.5px/1.3 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-user-email { margin: 0; font-size: 13px; color: #b9b5ac; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.acc-nav { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 8px; }
.acc-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.acc-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; line-height: 1.3; transition: background .15s, color .15s; }
.acc-nav a .acc-icon { color: var(--muted); transition: color .15s; }
.acc-nav a:hover { background: var(--paper); color: var(--ink); }
.acc-nav a:hover .acc-icon { color: var(--ink); }
.acc-nav .is-active a { background: var(--ink); color: var(--paper); }
.acc-nav .is-active a .acc-icon { color: var(--accent); }
.acc-nav .woocommerce-MyAccount-navigation-link--customer-logout { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.acc-nav .woocommerce-MyAccount-navigation-link--customer-logout a,
.acc-nav .woocommerce-MyAccount-navigation-link--customer-logout a .acc-icon { color: var(--accent-ink); }
.acc-nav .woocommerce-MyAccount-navigation-link--customer-logout a:hover { background: #fde8e3; }

/* ---------- Page header (endpoints) ---------- */
.acc-head { margin-bottom: clamp(20px, 3vw, 28px); }
.acc-head .eyebrow { margin-bottom: 10px; }
.acc-title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 0 0 8px; }
.acc-lead { color: var(--muted); margin: 0; max-width: 44em; }
.acc-main > p { color: var(--muted); }

/* ---------- Dashboard hero ---------- */
.acc-hero { position: relative; overflow: hidden; isolation: isolate; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 28px; flex-wrap: wrap; padding: clamp(24px, 3.5vw, 40px); border-radius: var(--radius-lg); background: var(--green); color: var(--paper); margin-bottom: 16px; }
.acc-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(245, 243, 238, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(245, 243, 238, .08) 1px, transparent 1px); background-size: 30px 30px; -webkit-mask-image: radial-gradient(ellipse at 90% 10%, #000 0, transparent 65%); mask-image: radial-gradient(ellipse at 90% 10%, #000 0, transparent 65%); }
.acc-hero::after { content: ""; position: absolute; z-index: -1; width: 380px; height: 380px; right: -110px; top: -170px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 85, 45, .55), transparent 66%); }
.acc-hero-text { max-width: 38em; }
.acc-hero-eyebrow { color: rgba(245, 243, 238, .72); margin-bottom: 12px; }
.acc-hero-title { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 10px; color: var(--paper); }
.acc-hero-lead { margin: 0; color: rgba(245, 243, 238, .84); font-size: 1.05rem; }
.acc-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Stats ---------- */
.acc-stats { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.acc-stat { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color .2s, transform .2s, box-shadow .2s; }
.acc-stat:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.acc-stat-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--paper-2); color: var(--ink); margin-bottom: 12px; }
.acc-stat--green .acc-stat-icon { background: #e3f0ec; color: var(--green); }
.acc-stat--accent .acc-stat-icon { background: #fde8e3; color: var(--accent-ink); }
.acc-stat-label { font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.acc-stat-value { font: 800 2.1rem/1.1 var(--font-display); letter-spacing: -.03em; }
.acc-stat--accent .acc-stat-value { color: var(--accent-ink); }
.acc-stat--green .acc-stat-value { color: var(--green); }
.acc-stat-link { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--ink); }
.acc-stat-link .acc-icon { width: 15px; height: 15px; transition: transform .2s; }
.acc-stat-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.acc-stat:hover .acc-stat-link .acc-icon { transform: translateX(3px); }

/* Security promo (esa-account-security) inside the dashboard flow. */
.acc-main .esa-sec-promo { margin: 0 0 16px; }

/* ---------- Sections ---------- */
.acc-section { margin-top: clamp(26px, 3.5vw, 36px); }
.acc-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.acc-section-title { font-size: 1.35rem; margin: 0 0 14px; letter-spacing: -.02em; }
.acc-section-head .acc-section-title { margin: 0; }
.acc-section-head .link-arrow { font-size: 14.5px; }
.acc-muted-box { margin: 0; padding: 18px 20px; border-radius: var(--radius-lg); background: var(--paper-2); color: var(--muted); font-size: 15px; }

/* Quick actions. */
.acc-actions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.acc-actions li { display: flex; }
.acc-action { position: relative; flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 48px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.acc-action:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.acc-action-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--accent); margin-bottom: 10px; }
.acc-actions li:first-child .acc-action-icon { background: var(--accent); color: var(--ink); }
.acc-action-title { font: 600 1.02rem/1.3 var(--font-display); letter-spacing: -.01em; }
.acc-action-text { font-size: 14px; line-height: 1.5; color: var(--muted); }
.acc-action-arrow { position: absolute; left: 18px; bottom: 16px; color: var(--ink); }
.acc-action-arrow .acc-icon { transition: transform .2s; }
.acc-action:hover .acc-action-arrow .acc-icon { transform: translateX(4px); }

/* Recent orders (dashboard). */
.acc-orders { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.acc-order + .acc-order { border-top: 1px solid var(--line); }
.acc-order-link { display: grid; grid-template-columns: minmax(0, 1fr) auto auto minmax(80px, auto) 20px; gap: 18px; align-items: center; padding: 16px 20px; color: var(--ink); text-decoration: none; transition: background .15s; }
.acc-order-link:hover { background: var(--paper); color: var(--ink); }
.acc-order-main { display: grid; min-width: 0; }
.acc-order-num { font-weight: 600; }
.acc-order-items { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-order-date { font-size: 14px; color: var(--muted); white-space: nowrap; }
.acc-order-total { font: 800 1.02rem/1 var(--font-display); text-align: right; white-space: nowrap; }
.acc-order-go { color: var(--muted); }
.acc-order-link:hover .acc-order-go { color: var(--ink); }

/* ---------- Badges ---------- */
.acc-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); font: 600 12.5px/1.2 var(--font-body); white-space: nowrap; vertical-align: middle; }
.acc-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.acc-badge--completed, .acc-badge--active { background: #e3f0ec; color: var(--green); }
.acc-badge--processing { background: #e4ecfb; color: #1d4f91; }
.acc-badge--on-hold, .acc-badge--pending, .acc-badge--expiring { background: #fff1d6; color: #8a5a00; }
.acc-badge--cancelled, .acc-badge--expired, .acc-badge--checkout-draft { background: var(--paper-2); color: var(--muted); }
.acc-badge--refunded { background: #efe8fa; color: #5b3a8f; }
.acc-badge--failed, .acc-badge--suspended { background: #fde8e3; color: var(--accent-ink); }
.acc-badge--lifetime { background: var(--ink); color: var(--paper); }
.acc-badge--lifetime::before { background: var(--accent); }
.acc-badge--issued { background: var(--paper-2); color: var(--ink); }

/* ---------- Empty states ---------- */
.acc-empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: clamp(32px, 5vw, 56px) clamp(18px, 4vw, 40px); border: 1.5px dashed var(--line); border-radius: var(--radius-lg); background: rgba(255, 253, 249, .65); }
.acc-empty-icon { width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center; background: var(--ink); color: var(--accent); margin-bottom: 8px; }
.acc-empty-icon svg { width: 26px; height: 26px; }
.acc-empty-title { font-size: clamp(1.3rem, 2.4vw, 1.55rem); margin: 0; }
.acc-empty p { margin: 0; color: var(--muted); max-width: 34em; }
.acc-empty .acc-empty-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.acc-empty--welcome { margin-top: clamp(26px, 3.5vw, 36px); }

/* ---------- Notices ---------- */
.account-page .woocommerce-message, .account-page .woocommerce-info, .account-page .woocommerce-error { border-radius: var(--radius); font-size: 15px; box-shadow: 0 1px 2px rgba(17, 19, 21, .04); }
.account-page .woocommerce-info { border-left-color: var(--ink); }
.account-page .woocommerce-error { background: #fff7f4; }
.account-page .woocommerce-error li { margin: 0; }
.account-page .woocommerce-error, .account-page ul.woocommerce-error { display: grid; gap: 4px; }
.account-page .woocommerce-message .button, .account-page .woocommerce-info .button { padding: 9px 18px; font-size: 14px; }

/* ---------- Tables (orders, downloads, order details) ---------- */
.acc-main table.shop_table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; font-size: 15px; margin: 0 0 24px; }
.acc-main .shop_table th, .acc-main .shop_table td { padding: 14px 18px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.acc-main .shop_table thead th { background: var(--paper); font: 500 11.5px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.acc-main .shop_table tbody tr:last-child > * { border-bottom: 0; }
.acc-main .shop_table tfoot tr:last-child > * { border-bottom: 0; }
.acc-main .shop_table tbody tr { transition: background .15s; }
.acc-main .shop_table_responsive tbody tr:hover { background: #fffaf2; }
.acc-main .shop_table a { font-weight: 600; text-decoration: none; }
.acc-main .shop_table a:hover { text-decoration: underline; }
.acc-main .woocommerce-orders-table__cell-order-number a { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; }
.acc-main .woocommerce-orders-table__cell-order-date { color: var(--muted); white-space: nowrap; }
.acc-main .woocommerce-orders-table__cell-order-total .amount { font-weight: 700; }
.acc-main .woocommerce-orders-table__cell-order-actions, .acc-main .download-file { text-align: right; }
.acc-main .shop_table .button, .acc-main .shop_table a.button { padding: 8px 16px; font-size: 14px; margin: 3px 0 3px 6px; text-decoration: none; }
.acc-main .shop_table .button:hover { text-decoration: none; }
.acc-main .woocommerce-orders-table__cell-order-actions .button.view { background: transparent; color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--ink); }
.acc-main .woocommerce-orders-table__cell-order-actions .button.view:hover { background: var(--ink); color: var(--paper) !important; }

/* Order details (view order). */
.acc-main .woocommerce-order-details, .acc-main .woocommerce-customer-details, .acc-main .esa-licenses, .acc-main .woocommerce-order-downloads { margin-top: 28px; }
.acc-main .woocommerce-order-details__title, .acc-main .woocommerce-column__title, .acc-main .woocommerce-order-downloads__title, .acc-main .esa-licenses h2, .acc-main > h2 { font-size: 1.3rem; margin: 0 0 14px; }
.acc-main .woocommerce-table--order-details thead th:last-child, .acc-main .woocommerce-table--order-details td:last-child { text-align: right; }
.acc-main .woocommerce-table--order-details .product-name a { font-weight: 600; }
.acc-main .woocommerce-table--order-details .product-quantity { color: var(--muted); font-weight: 500; }
.acc-main .woocommerce-table--order-details .wc-item-meta { list-style: none; margin: 6px 0 0; padding: 0; font-size: 13.5px; color: var(--muted); }
.acc-main .woocommerce-table--order-details .wc-item-meta li, .acc-main .woocommerce-table--order-details .wc-item-meta p { display: inline; margin: 0; }
.acc-main .woocommerce-table--order-details tfoot th { font-weight: 500; color: var(--muted); background: var(--paper); }
.acc-main .woocommerce-table--order-details tfoot td { background: var(--paper); font-weight: 600; }
.acc-main .woocommerce-table--order-details tfoot tr:last-of-type th, .acc-main .woocommerce-table--order-details tfoot tr:last-of-type td { color: var(--ink); font-size: 1.05rem; }
.acc-main .order-again .button { margin-top: 4px; }
.acc-main .woocommerce-customer-details address, .acc-main .woocommerce-Address address { font-style: normal; line-height: 1.7; color: var(--ink-2); }
.acc-main .woocommerce-customer-details address { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 22px; max-width: 560px; }
.acc-main .woocommerce-customer-details .col2-set { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.acc-main .woocommerce-customer-details--phone, .acc-main .woocommerce-customer-details--email { margin: 8px 0 0; font-size: 14.5px; color: var(--muted); }
.acc-main .woocommerce-OrderUpdates { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.acc-main .woocommerce-OrderUpdate { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--green-2); border-radius: var(--radius); padding: 12px 16px; }
.acc-main .woocommerce-OrderUpdate-meta { font: 500 12px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 4px; }
.acc-main .woocommerce-OrderUpdate-description p { margin: 0; }
.acc-main .esa-licenses ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.acc-main .esa-licenses li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; border-radius: var(--radius); background: var(--ink); color: #c9c5bc; }
.acc-main .esa-licenses code { font: 500 15px/1.4 var(--font-mono); color: var(--paper); letter-spacing: .05em; overflow-wrap: anywhere; user-select: all; }

.acc-order-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 14px; overflow: hidden; }
.acc-order-summary-item { display: grid; gap: 6px; align-content: start; padding: 16px 20px; min-width: 0; }
.acc-order-summary-item + .acc-order-summary-item { border-left: 1px solid var(--line); }
.acc-order-summary-label { font: 500 11.5px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.acc-order-summary-value { font: 600 1.05rem/1.3 var(--font-display); }
.acc-order-sentence { color: var(--muted); font-size: 15px; margin: 0 0 8px; }
.acc-order-sentence mark { background: none; color: var(--ink); font-weight: 600; }

/* Pagination. */
.acc-main .woocommerce-pagination { display: flex; justify-content: space-between; gap: 10px; margin-top: -8px; }
.acc-main .woocommerce-pagination .button { background: transparent; color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--ink); padding: 10px 20px; }
.acc-main .woocommerce-pagination .button:hover { background: var(--ink); color: var(--paper) !important; }
.acc-main .woocommerce-pagination .woocommerce-button--next { margin-left: auto; }

/* ---------- Addresses ---------- */
.acc-main .woocommerce-Addresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.acc-main .woocommerce-Address { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px; }
.acc-main > .woocommerce-Address { max-width: 560px; }
.acc-main .woocommerce-Address-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.acc-main .woocommerce-Address-title h2 { font-size: 1.15rem; margin: 0; }
.acc-main .woocommerce-Address-title .edit { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--ink); font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--ink); transition: background .2s, color .2s; }
.acc-main .woocommerce-Address-title .edit:hover { background: var(--ink); color: var(--paper); }

/* ---------- Forms (edit address, edit account) ---------- */
.acc-main > form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); max-width: 760px; }
.acc-main > form > h2 { font-size: 1.3rem; margin: 0 0 20px; }
.acc-main .woocommerce-address-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.acc-main .woocommerce-address-fields__field-wrapper > .form-row { grid-column: 1 / -1; }
.acc-main .woocommerce-address-fields__field-wrapper > .form-row-first { grid-column: 1; }
.acc-main .woocommerce-address-fields__field-wrapper > .form-row-last { grid-column: 2; }
.acc-main .woocommerce-EditAccountForm { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.acc-main .woocommerce-EditAccountForm > * { grid-column: 1 / -1; }
.acc-main .woocommerce-EditAccountForm > .form-row-first { grid-column: 1; }
.acc-main .woocommerce-EditAccountForm > .form-row-last { grid-column: 2; }
.account-page .clear { display: none; }
.account-page .form-row { display: grid; gap: 6px; margin: 0 0 16px; min-width: 0; }
.account-page .form-row label { font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.account-page .form-row label.woocommerce-form__label-for-checkbox, .account-page .form-row label.checkbox { font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.account-page .required { color: var(--accent-ink); text-decoration: none; border: 0; font-weight: 600; }
.account-page .optional { color: var(--muted); font-weight: 400; font-size: 13px; }
.account-page .woocommerce-input-wrapper { display: block; }
.account-page input[type=checkbox], .account-page input[type=radio] { accent-color: var(--accent); width: 17px; height: 17px; }
.account-page .form-row .description, .account-page #account_display_name_description { font-size: 13.5px; color: var(--muted); }
.account-page #account_display_name_description em { font-style: normal; }
.acc-main fieldset { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 2px; margin: 8px 0 20px; background: var(--paper); min-width: 0; }
.acc-main fieldset legend { font: 600 1.02rem/1.2 var(--font-display); padding: 0 8px; margin-left: -8px; }
.acc-main fieldset input { background: #fff; }
.acc-main > form p:last-of-type .button, .acc-main .woocommerce-address-fields > p .button { min-width: 180px; }
.acc-main .form-row.woocommerce-invalid input, .acc-main .form-row.woocommerce-invalid select { border-color: var(--accent); }
.acc-main .form-row.woocommerce-validated input { border-color: #9cc5b8; }

/* select2 / selectWoo (country and state fields). */
.account-page .select2-container { width: 100% !important; }
.account-page .select2-container .select2-selection--single { height: 47px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); }
.account-page .select2-container--focus .select2-selection--single, .account-page .select2-container--open .select2-selection--single { border-color: var(--ink); background: #fff; }
.account-page .select2-container .select2-selection--single .select2-selection__rendered { line-height: 44px; padding-left: 13px; padding-right: 36px; color: var(--ink); }
.account-page .select2-container .select2-selection--single .select2-selection__arrow { height: 44px; right: 8px; }
.select2-dropdown { border: 1.5px solid var(--ink) !important; border-radius: 10px !important; overflow: hidden; background: #fff; }
.select2-search--dropdown .select2-search__field { border-radius: 8px !important; }
.select2-results__option--highlighted[aria-selected], .select2-results__option--highlighted[data-selected] { background: var(--ink) !important; color: var(--paper) !important; }

/* ---------- License cards (esa-licensing) ---------- */
.esa-lics-count { font: 500 12px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; }
.esa-lics { display: grid; gap: 16px; }
.esa-lics--compact { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.esa-lic { --lic: var(--green-2); display: grid; gap: 16px; align-content: start; min-width: 0; padding: 20px 22px 20px 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: inset 4px 0 0 var(--lic), 0 1px 2px rgba(17, 19, 21, .04); }
.esa-lic--lifetime { --lic: var(--ink); }
.esa-lic--expiring { --lic: #d99a1e; }
.esa-lic--expired { --lic: #b9b3a6; }
.esa-lic--suspended { --lic: var(--accent); }
.esa-lic--issued { --lic: var(--line); }
.esa-lic-i { width: 20px; height: 20px; flex: none; display: block; }
.esa-lic-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.esa-lic-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--ink); color: var(--accent); }
.esa-lic-icon .esa-lic-i { width: 22px; height: 22px; }
.esa-lic-title { min-width: 0; }
.esa-lic-product { margin: 0 0 3px; font: 500 11.5px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.esa-lic-plan { margin: 0; font: 600 1.15rem/1.3 var(--font-display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.esa-lic-key { display: flex; align-items: center; gap: 10px; background: var(--ink); border-radius: 14px; padding: 6px 6px 6px 18px; min-width: 0; }
.esa-lic-code { flex: 1 1 auto; min-width: 0; padding: 8px 0; color: var(--paper); font: 500 clamp(14px, 1.5vw, 17px)/1.4 var(--font-mono); letter-spacing: .06em; overflow-wrap: anywhere; user-select: all; }
.esa-lic-copy { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 104px; padding: 0 16px; border: 0; border-radius: 10px; background: rgba(245, 243, 238, .12); color: var(--paper); font: 600 14px/1 var(--font-body); cursor: pointer; transition: background .2s, color .2s; }
.esa-lic-copy .esa-lic-i { width: 17px; height: 17px; }
.esa-lic-copy:hover { background: var(--accent); color: var(--ink); }
.esa-lic-copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.esa-lic-copy.is-copied { background: var(--green-2); color: #fff; }
.esa-lic--expired .esa-lic-key, .esa-lic--suspended .esa-lic-key { background: var(--ink-2); }
.esa-lic--expired .esa-lic-code, .esa-lic--suspended .esa-lic-code { color: #a9a59c; text-decoration: line-through; text-decoration-thickness: 1px; }
.esa-lic-note { margin: -6px 0 0; padding: 10px 12px; border-radius: 10px; background: #fff1d6; color: #7a4f00; font-size: 13.5px; }
.esa-lic-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 0; }
.esa-lic-meta-item { min-width: 0; padding: 12px 14px; border-radius: 12px; background: var(--paper); }
.esa-lic-meta dt { display: flex; align-items: center; gap: 6px; margin: 0 0 5px; font: 500 11px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.esa-lic-meta dt .esa-lic-i { width: 14px; height: 14px; }
.esa-lic-meta dd { margin: 0; font-weight: 600; font-size: 15px; line-height: 1.35; }
.esa-lic-meta dd a { color: var(--ink); }
.esa-lic-sub { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.esa-lic-bar { display: block; height: 5px; margin-top: 9px; border-radius: 99px; background: var(--line); overflow: hidden; }
.esa-lic-bar span { display: block; height: 100%; border-radius: inherit; background: var(--green-2); }
.esa-lic-sites-label { margin: 0 0 8px; font: 500 11px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.esa-lic-sites ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.esa-lic-sites li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: #e3f0ec; color: var(--green); font: 500 13px/1.2 var(--font-mono); max-width: 100%; overflow-wrap: anywhere; }
.esa-lic-sites li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2fa36b; box-shadow: 0 0 0 3px rgba(47, 163, 107, .18); flex: none; }
.esa-lic-help { display: flex; align-items: center; gap: 8px; margin: 0; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--muted); }
.esa-lic-help .esa-lic-i { width: 17px; height: 17px; color: var(--ink); }
.esa-lic-guide { margin-top: 24px; padding: 22px 24px; border-radius: var(--radius-lg); background: var(--paper-2); }
.esa-lic-guide h2 { font-size: 1.15rem; margin: 0 0 14px; }
.esa-lic-guide ol { list-style: none; counter-reset: esa-step; margin: 0; padding: 0; display: grid; gap: 12px; }
.esa-lic-guide li { counter-increment: esa-step; position: relative; padding-left: 38px; font-size: 15px; color: var(--ink-2); min-height: 26px; }
.esa-lic-guide li::before { content: counter(esa-step); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 600 13px/26px var(--font-body); text-align: center; }
.esa-lic-offline { margin-bottom: 16px; }

/* ---------- Logged out: login / register / lost password ---------- */
.acc-auth { max-width: 1060px; margin-inline: auto; }
.acc-auth-head { text-align: center; margin-bottom: clamp(24px, 4vw, 40px); }
.acc-auth-head .eyebrow { margin-bottom: 14px; }
.acc-auth-title { font-size: clamp(2.1rem, 4.6vw, 3.3rem); margin: 0 0 12px; }
.acc-auth-lead { color: var(--muted); max-width: 34em; margin: 0 auto; font-size: 1.08rem; }
.acc-auth > .woocommerce-notices-wrapper, .acc-auth > .woocommerce-message, .acc-auth > .woocommerce-error, .acc-auth > .woocommerce-info { max-width: 760px; margin-inline: auto; }
.acc-auth-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 20px; align-items: stretch; }
.acc-auth-grid.has-register { grid-template-columns: 1fr 1fr; }
.acc-auth-card { position: relative; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3.5vw, 40px); box-shadow: var(--shadow); }
.acc-auth-card h2 { font-size: clamp(1.45rem, 2.4vw, 1.75rem); margin: 0 0 20px; }
.acc-auth-icon { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: var(--ink); color: var(--accent); margin-bottom: 18px; }
.acc-auth-icon .acc-icon { width: 24px; height: 24px; }
.acc-auth-card form { margin: 0; }
.acc-auth-row { display: flex !important; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; font-size: 14.5px; }
.acc-auth .woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: 8px; font-weight: 500 !important; cursor: pointer; }
.acc-auth .lost_password a { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.acc-auth .lost_password a:hover { text-decoration: underline; }
.acc-auth .acc-auth-submit { margin: 4px 0 0; }
.acc-auth .acc-auth-submit .button { width: 100%; padding: 15px 24px; font-size: 16px; }
.acc-auth-intro { color: var(--muted); margin: 0 0 20px; }
.acc-auth-note { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--paper); color: var(--muted); font-size: 14px; }
.acc-auth-card--info { overflow: hidden; isolation: isolate; background: var(--green); border-color: var(--green); color: var(--paper); box-shadow: none; display: flex; flex-direction: column; }
.acc-auth-card--info::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(245, 243, 238, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(245, 243, 238, .07) 1px, transparent 1px); background-size: 30px 30px; -webkit-mask-image: radial-gradient(ellipse at 100% 0, #000 0, transparent 70%); mask-image: radial-gradient(ellipse at 100% 0, #000 0, transparent 70%); }
.acc-auth-card--info::after { content: ""; position: absolute; z-index: -1; width: 340px; height: 340px; right: -130px; top: -150px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 85, 45, .5), transparent 66%); }
.acc-auth-card--info h2 { color: var(--paper); }
.acc-auth-card--info p { color: rgba(245, 243, 238, .84); margin: 0; }
.acc-auth-card--info .acc-auth-icon { background: rgba(245, 243, 238, .12); }
.acc-auth-perks { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 12px; }
.acc-auth-perks li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.acc-auth-perks .acc-icon { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: rgba(245, 243, 238, .1); color: var(--accent); }
.acc-auth-card--info .acc-auth-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.acc-auth--single { max-width: 560px; }
.acc-auth--single .acc-auth-title { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.acc-auth--single .acc-auth-card p:last-child { margin-bottom: 0; }
.acc-auth-card--done .acc-auth-icon { background: var(--green-2); color: var(--paper); }
.acc-auth-card--done > p { color: var(--ink-2); }
.acc-auth-back { text-align: center; margin: 22px 0 0; }
.acc-auth-back .link-arrow { font-size: 15px; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
	.acc-stats, .acc-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
	.acc { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.acc-side { position: static; gap: 10px; }
	.acc-user { padding: 12px 14px; }
	.acc-avatar { width: 40px; height: 40px; border-radius: 12px; font-size: 15px; }
	.acc-nav { background: none; border: 0; padding: 0; margin-inline: calc(-1 * var(--gutter)); }
	.acc-nav ul { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 2px var(--gutter) 6px; -webkit-overflow-scrolling: touch; }
	.acc-nav ul::-webkit-scrollbar { display: none; }
	.acc-nav li { flex: none; scroll-snap-align: start; }
	.acc-nav a { white-space: nowrap; padding: 9px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14.5px; gap: 8px; min-height: 42px; }
	.acc-nav a .acc-icon { width: 18px; height: 18px; }
	.acc-nav .is-active a { border-color: var(--ink); }
	.acc-nav .woocommerce-MyAccount-navigation-link--customer-logout { margin: 0; padding: 0; border: 0; }
	.acc-nav .woocommerce-MyAccount-navigation-link--customer-logout a { border-color: #f3c9bb; }
	.acc-order-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.acc-order-summary-item:nth-child(3) { border-left: 0; }
	.acc-order-summary-item:nth-child(n+3) { border-top: 1px solid var(--line); }
	.acc-auth-grid, .acc-auth-grid.has-register { grid-template-columns: minmax(0, 1fr); max-width: 580px; margin-inline: auto; }
}
@media (max-width: 720px) {
	/* Tables become cards. */
	.acc-main table.shop_table_responsive { border: 0; background: none; border-radius: 0; overflow: visible; }
	.acc-main table.shop_table_responsive thead { display: none; }
	.acc-main table.shop_table_responsive tbody, .acc-main table.shop_table_responsive tr, .acc-main table.shop_table_responsive th, .acc-main table.shop_table_responsive td { display: block; }
	.acc-main table.shop_table_responsive tbody tr { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 4px 16px; margin-bottom: 12px; }
	.acc-main table.shop_table_responsive tbody tr:hover { background: var(--card); }
	.acc-main table.shop_table_responsive tbody tr > * { display: block; text-align: right; padding: 11px 0; border-bottom: 1px dashed var(--line); line-height: 1.5; overflow-wrap: anywhere; }
	.acc-main table.shop_table_responsive tbody tr > *::after { content: ""; display: table; clear: both; }
	.acc-main table.shop_table_responsive tbody tr > *:last-child { border-bottom: 0; }
	.acc-main table.shop_table_responsive tbody tr > [data-title]::before { content: attr(data-title); float: left; margin-right: 16px; font: 500 11px/24px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); text-align: left; }
	.acc-main table.shop_table_responsive .woocommerce-orders-table__cell-order-actions, .acc-main table.shop_table_responsive .download-file { display: flex; flex-wrap: wrap; gap: 8px; }
	.acc-main table.shop_table_responsive .woocommerce-orders-table__cell-order-actions::before, .acc-main table.shop_table_responsive .download-file::before { content: none !important; }
	.acc-main table.shop_table_responsive .button { flex: 1 1 auto; margin: 0; }
	.acc-main .woocommerce-table--order-details th, .acc-main .woocommerce-table--order-details td { padding: 12px 14px; }
	.acc-main .woocommerce-address-fields__field-wrapper, .acc-main .woocommerce-EditAccountForm { grid-template-columns: minmax(0, 1fr); }
	.acc-main .woocommerce-address-fields__field-wrapper > .form-row-first, .acc-main .woocommerce-address-fields__field-wrapper > .form-row-last,
	.acc-main .woocommerce-EditAccountForm > .form-row-first, .acc-main .woocommerce-EditAccountForm > .form-row-last { grid-column: 1; }
	.acc-main > form p:last-of-type .button, .acc-main .woocommerce-address-fields > p .button { width: 100%; }
	.acc-order-link { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 14px 16px; }
	.acc-order-main { grid-column: 1; }
	.acc-order-total { grid-column: 2; grid-row: 1; }
	.acc-order-date { grid-column: 1; grid-row: 2; font-size: 13px; }
	.acc-order .acc-badge { grid-column: 2; grid-row: 2; justify-self: end; }
	.acc-order-go { display: none; }
}
@media (max-width: 600px) {
	.acc-hero { padding: 22px 20px; }
	.acc-hero-actions { width: 100%; }
	.acc-hero-actions .btn { flex: 1 1 auto; }
	.acc-stats { gap: 10px; }
	.acc-stat { padding: 14px; }
	.acc-stat-icon { width: 34px; height: 34px; border-radius: 10px; margin-bottom: 8px; }
	.acc-stat-icon .acc-icon { width: 18px; height: 18px; }
	.acc-stat-value { font-size: 1.7rem; }
	.acc-stat-link { font-size: 12.5px; }
	.acc-actions { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.acc-action { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 14px; row-gap: 2px; align-items: center; padding: 14px 16px; }
	.acc-action-icon { grid-row: 1 / span 2; margin: 0; }
	.acc-action-title { grid-column: 2; }
	.acc-action-text { grid-column: 2; font-size: 13.5px; }
	.acc-action-arrow { position: static; grid-column: 3; grid-row: 1 / span 2; }
	.esa-lic { padding: 16px 16px 16px 20px; gap: 14px; }
	.esa-lic-head { grid-template-columns: auto minmax(0, 1fr); gap: 12px; }
	.esa-lic-head .acc-badge { grid-column: 2; justify-self: start; margin-top: -6px; }
	.esa-lic-icon { width: 40px; height: 40px; }
	.esa-lic-key { flex-wrap: wrap; padding: 12px; gap: 8px; }
	.esa-lic-code { padding: 2px 4px; flex-basis: 100%; }
	.esa-lic-copy { width: 100%; }
	.esa-lic-meta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.esa-lic-meta-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.esa-lic-help { align-items: flex-start; }
	.acc-auth-card--info .acc-auth-actions .btn { flex: 1 1 auto; }
	.acc-main .woocommerce-Address-title .edit { padding: 6px 12px; }
}
@media (max-width: 400px) {
	.acc-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.acc-stat-label { font-size: 12.5px; }
	.esa-lic-meta { grid-template-columns: minmax(0, 1fr); }
	.acc-order-summary { grid-template-columns: minmax(0, 1fr); }
	.acc-order-summary-item + .acc-order-summary-item { border-left: 0; border-top: 1px solid var(--line); }
}
.account-page .woocommerce-message:focus, .account-page .woocommerce-info:focus, .account-page .woocommerce-error:focus, .account-page .woocommerce-notices-wrapper:focus { outline: none; }

/* Extindere suport (card licență) */
.esa-lic-renew { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0 0; }
.esa-lic-renew .esa-lic-renew-btn { background: var(--accent, #e8552d); color: #fff; border: 0; border-radius: 999px; padding: .6em 1.15em; font-weight: 600; text-decoration: none; }
.esa-lic-renew .esa-lic-renew-btn:hover { background: var(--accent-ink, #b33c18); color: #fff; }
.esa-lic-renew .esa-lic-sub { font-size: .86em; color: var(--muted, #595e66); }

/* Licence renewal + automatic renewal (esa-licensing ESA_Renewals) */
.esa-lic-autorenew { display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line, #dcd6ca); }
.esa-lic-auto { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; font-size: .92rem; }
.esa-lic-auto-state { display: inline-flex; align-items: center; gap: 8px; }
.esa-lic-auto-state::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #b8b2a6; flex: none; }
.esa-lic-auto-state.is-on::before { background: #1d7a47; box-shadow: 0 0 0 3px rgba(29, 122, 71, .15); }
.esa-lic-auto-btn { font-weight: 700; color: #b33c18; text-decoration: none; }
.esa-lic-auto-btn:hover { text-decoration: underline; }
