/* ============================================================
   AQUARUBIN — account.css
   Premium Dark Glassmorphism — My Account Pages
   Billing · Shipping · Account Details · Orders
   ============================================================ */

/* ============================================================
   1. KILL WC'S FLOAT-BASED ACCOUNT LAYOUT
   ============================================================ */

.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ============================================================
   2. PAGE WRAPPER
   ============================================================ */

.wc-main--account {
    padding-block: var(--space-8) var(--space-20) !important;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.wc-main--account > .container {
    max-width: 1300px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-inline: auto !important;
}

/* ============================================================
   3. MAIN LAYOUT: Sidebar (nav) left · content right
      Modern app layout — vertical nav sidebar, content beside it.
      Stacks to a single column on tablet/mobile (section 17).
   ============================================================ */

/* Scoped to body.aq-account-view (logged-in only) so the logged-OUT login card
   (also a .woocommerce-account page) keeps its own full-width centred layout. */
body.aq-account-view .woocommerce {
    display: grid !important;
    grid-template-columns: minmax(0, 288px) minmax(0, 1fr) !important;
    gap: clamp(var(--space-5), 2.4vw, var(--space-8)) !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin-inline: auto !important;
    box-sizing: border-box !important;
}

/* WooCommerce adds clearfix ::before/::after (content:"") to .woocommerce.
   Inside a CSS grid those pseudo-elements become phantom grid items and shove
   the nav + content into the wrong cells — kill them on the account grid. */
body.aq-account-view .woocommerce::before,
body.aq-account-view .woocommerce::after {
    content: none !important;
    display: none !important;
}

body.aq-account-view .woocommerce-MyAccount-content {
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Sticky sidebar on desktop so the nav stays in view while content scrolls. */
@media (min-width: 901px) {
    body.aq-account-view .woocommerce-MyAccount-navigation {
        position: sticky !important;
        top: calc(4.25rem + var(--space-5)) !important;
    }
}

/* ============================================================
   4. NAVIGATION — glass sidebar: profile header · icon menu ·
      logout split off at the bottom with its own accent.
   ============================================================ */

.woocommerce-account .woocommerce-MyAccount-navigation.aq-acc-nav {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--space-4) !important;
    background:
        linear-gradient(155deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.03) 55%, rgba(255,255,255,0.02) 100%),
        rgba(16, 14, 38, 0.44) !important;
    backdrop-filter: blur(30px) saturate(150%) brightness(0.95) !important;
    -webkit-backdrop-filter: blur(30px) saturate(150%) brightness(0.95) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    border-radius: var(--radius-2xl) !important;
    box-shadow:
        0 24px 64px rgba(5,3,16,0.42),
        inset 0 1px 0 rgba(255,255,255,0.10) !important;
    padding: var(--space-4) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* ── Profile header ── */
.aq-acc-nav__profile {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-2) var(--space-4);
    border-bottom: 1px solid rgba(255,255,255,0.10);
}

.aq-acc-nav__avatar {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a7aff 0%, #7a3cff 55%, #ff00ff 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 6px 18px rgba(90,0,200,0.40), inset 0 1px 0 rgba(255,255,255,0.30);
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

.aq-acc-nav__id { display: flex; flex-direction: column; min-width: 0; gap: 1px; }

.aq-acc-nav__hello {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--clr-text-faint);
}
.aq-acc-nav__name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.aq-acc-nav__email {
    font-size: 0.72rem;
    color: var(--clr-text-faint);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Menu list ── */
.aq-acc-nav__list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: var(--space-1) !important;
}
.aq-acc-nav__list li { margin: 0 !important; padding: 0 !important; }

.woocommerce-account .woocommerce-MyAccount-navigation.aq-acc-nav .aq-acc-nav__list a {
    display: flex !important;
    align-items: center !important;
    gap: 0.75em !important;
    width: 100% !important;
    min-height: 46px !important;
    padding: 0.6em 0.85em !important;
    border-radius: var(--radius-lg) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    color: var(--clr-text-muted) !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    text-decoration: none !important;
    transition: background 0.2s, color 0.2s, border-color 0.2s !important;
}

.aq-acc-nav__icon {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    opacity: 0.9;
}

.aq-acc-nav__label { flex: 1 1 auto; min-width: 0; }

.aq-acc-nav__chevron {
    flex: 0 0 auto;
    width: 0.42em;
    height: 0.42em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
}

.woocommerce-account .woocommerce-MyAccount-navigation.aq-acc-nav .aq-acc-nav__list a:hover {
    background: rgba(255,255,255,0.06) !important;
    color: #eaf2ff !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation.aq-acc-nav .aq-acc-nav__list a:hover .aq-acc-nav__chevron {
    opacity: 0.6;
    transform: rotate(-45deg) translateX(1px);
}

/* Active item — bright glass pill with a blue edge marker */
.woocommerce-account .woocommerce-MyAccount-navigation.aq-acc-nav .aq-acc-nav__list li.is-active > a {
    background: linear-gradient(135deg, rgba(26,122,255,0.28), rgba(122,60,255,0.20)) !important;
    border-color: rgba(90,150,255,0.40) !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.14) !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation.aq-acc-nav .aq-acc-nav__list li.is-active > a .aq-acc-nav__icon { opacity: 1; }
.woocommerce-account .woocommerce-MyAccount-navigation.aq-acc-nav .aq-acc-nav__list li.is-active > a .aq-acc-nav__chevron { opacity: 0.85; }

/* ── Logout — split off, own warm-red accent so it clearly stands apart ── */
.aq-acc-nav__footer {
    margin-top: auto;
    padding-top: var(--space-3);
    border-top: 1px solid rgba(255,255,255,0.10);
}

.woocommerce-account .woocommerce-MyAccount-navigation.aq-acc-nav .aq-acc-nav__logout {
    display: flex !important;
    align-items: center !important;
    gap: 0.75em !important;
    width: 100% !important;
    min-height: 48px !important;
    padding: 0.6em 0.9em !important;
    border-radius: var(--radius-lg) !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    color: #ffb4be !important;
    background: rgba(255, 70, 90, 0.10) !important;
    border: 1px solid rgba(255, 90, 110, 0.32) !important;
    text-decoration: none !important;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation.aq-acc-nav .aq-acc-nav__logout:hover {
    background: rgba(255, 70, 90, 0.20) !important;
    border-color: rgba(255, 90, 110, 0.55) !important;
    color: #ffd5db !important;
}
.aq-acc-nav__logout .aq-acc-nav__icon { opacity: 1; }

/* ============================================================
   5. GLASS CARD — applied to the <form> element directly
      so the <h2> heading is always inside the card
      Responsive padding
   ============================================================ */

.woocommerce-account .woocommerce-MyAccount-content form {
    background:
        linear-gradient(155deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.03) 55%, rgba(255,255,255,0.02) 100%),
        rgba(16, 14, 38, 0.46) !important;
    backdrop-filter: blur(30px) saturate(150%) brightness(0.95) !important;
    -webkit-backdrop-filter: blur(30px) saturate(150%) brightness(0.95) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    border-radius: var(--radius-2xl) !important;
    padding: clamp(var(--space-6), 3vw, var(--space-8)) !important;
    box-shadow:
        0 24px 64px rgba(5,3,16,0.42),
        inset 0 1px 0 rgba(255,255,255,0.10) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* ============================================================
   6. HEADINGS inside forms
   ============================================================ */

.woocommerce-account .woocommerce-MyAccount-content form h2,
.woocommerce-account .woocommerce-MyAccount-content form h3 {
    display: block !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    background: linear-gradient(90deg, #40aaff 0%, #cc55ff 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    margin-top: 0 !important;
    margin-bottom: var(--space-6) !important;
    padding-bottom: var(--space-4) !important;
    border-bottom: 1px solid rgba(0,128,255,0.14) !important;
    width: 100% !important;
    grid-column: 1 / -1 !important;
    float: none !important;
}

/* Password-change fieldset */
.woocommerce-account .woocommerce-MyAccount-content fieldset {
    border: 1px solid rgba(0,128,255,0.12) !important;
    border-radius: var(--radius-lg) !important;
    padding: var(--space-5) var(--space-6) !important;
    margin: var(--space-2) 0 !important;
    background: rgba(18, 16, 38, 0.28) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    grid-column: 1 / -1 !important;
}

.woocommerce-account .woocommerce-MyAccount-content fieldset legend {
    display: block !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    background: linear-gradient(90deg, #40aaff 0%, #cc55ff 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    padding: 0 var(--space-2) !important;
    margin-bottom: var(--space-4) !important;
}

/* ============================================================
   7. ACCOUNT EDIT FORM — grid layout RESPONSIVE
      form.woocommerce-EditAccountForm has no field-wrapper div,
      the <p> form rows are direct children of <form>.
      WC also injects <div class="clear"> between rows — hide them.
      1 column on mobile, 2 columns on desktop
   ============================================================ */

form.woocommerce-EditAccountForm {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: var(--space-3) var(--space-5) !important;
    align-items: start !important;
}

/* Desktop: 2 columns */
@media (min-width: 768px) {
    form.woocommerce-EditAccountForm {
        grid-template-columns: 1fr 1fr !important;
        gap: var(--space-4) var(--space-5) !important;
    }
}

/* Hide WC's float-clearing divs — they become unwanted grid cells */
form.woocommerce-EditAccountForm .clear {
    display: none !important;
}

/* Full-width items */
form.woocommerce-EditAccountForm .form-row-wide,
form.woocommerce-EditAccountForm > fieldset,
form.woocommerce-EditAccountForm > p:not([class]),
form.woocommerce-EditAccountForm > h2,
form.woocommerce-EditAccountForm > h3 {
    grid-column: 1 / -1 !important;
}

/* Kill WC floats on individual form rows */
form.woocommerce-EditAccountForm .form-row {
    float: none !important;
    clear: none !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* ============================================================
   8. ADDRESS FORMS (billing / shipping) — RESPONSIVE
      Structure: <form><h2/><div.woocommerce-address-fields>
                   <div.woocommerce-address-fields__field-wrapper>
                     <p.form-row .../>
                   </div>
                   <p><button/></p>
                 </div></form>
      Grid goes on __field-wrapper, NOT on the form itself.
      1 column on mobile, 2 columns on tablet+
   ============================================================ */

.woocommerce-address-fields {
    width: 100% !important;
    box-sizing: border-box !important;
}

.woocommerce-address-fields__field-wrapper {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: var(--space-3) var(--space-5) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: var(--space-5) !important;
}

/* Tablet+: 2 columns */
@media (min-width: 768px) {
    .woocommerce-address-fields__field-wrapper {
        grid-template-columns: 1fr 1fr !important;
        gap: var(--space-4) var(--space-5) !important;
    }
}

/* Kill WC floats inside address field grid */
.woocommerce-address-fields__field-wrapper .form-row {
    float: none !important;
    clear: none !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.woocommerce-address-fields__field-wrapper .form-row-wide {
    grid-column: 1 / -1 !important;
}

/* Submit button row inside address form */
.woocommerce-address-fields > p {
    margin: var(--space-4) 0 0 !important;
    padding: 0 !important;
}

/* ============================================================
   9. LABELS
   ============================================================ */

.woocommerce-account .woocommerce-MyAccount-content .form-row label,
.woocommerce-account .woocommerce-MyAccount-content label {
    display: block !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.07em !important;
    text-transform: uppercase !important;
    color: rgba(195, 218, 255, 0.78) !important;
    -webkit-text-fill-color: rgba(195, 218, 255, 0.78) !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    margin-bottom: var(--space-2) !important;
    line-height: 1.4 !important;
}

.woocommerce-account .woocommerce-MyAccount-content .form-row label .optional,
.woocommerce-account .woocommerce-MyAccount-content .form-row label abbr[title],
.woocommerce-account .woocommerce-MyAccount-content .form-row label .required {
    color: var(--clr-ruby) !important;
    -webkit-text-fill-color: var(--clr-ruby) !important;
    text-decoration: none !important;
    margin-left: 2px;
    font-size: 0.85em;
}

/* ============================================================
   10. INPUTS · SELECTS · TEXTAREA — RESPONSIVE HEIGHT
   ============================================================ */

.woocommerce-account .woocommerce-MyAccount-content .form-row input[type="text"],
.woocommerce-account .woocommerce-MyAccount-content .form-row input[type="email"],
.woocommerce-account .woocommerce-MyAccount-content .form-row input[type="tel"],
.woocommerce-account .woocommerce-MyAccount-content .form-row input[type="password"],
.woocommerce-account .woocommerce-MyAccount-content .form-row input[type="number"],
.woocommerce-account .woocommerce-MyAccount-content .form-row textarea,
.woocommerce-account .woocommerce-MyAccount-content .form-row select,
.woocommerce-account .woocommerce-MyAccount-content fieldset input[type="password"],
.woocommerce-account .woocommerce-MyAccount-content input.input-text,
.woocommerce-account .woocommerce-MyAccount-content select {
    width: 100% !important;
    min-height: 44px !important;
    background: rgba(18, 16, 38, 0.72) !important;
    border: 1px solid rgba(0,128,255,0.24) !important;
    color: #e6eeff !important;
    border-radius: var(--radius-md) !important;
    padding: 0.6em var(--space-4) !important;
    font-size: 0.95rem !important;
    line-height: 1.35 !important;
    font-family: var(--font-sans) !important;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s !important;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.35) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    outline: none !important;
    box-sizing: border-box !important;
}

/* Desktop: taller inputs */
@media (min-width: 768px) {
    .woocommerce-account .woocommerce-MyAccount-content .form-row input[type="text"],
    .woocommerce-account .woocommerce-MyAccount-content .form-row input[type="email"],
    .woocommerce-account .woocommerce-MyAccount-content .form-row input[type="tel"],
    .woocommerce-account .woocommerce-MyAccount-content .form-row input[type="password"],
    .woocommerce-account .woocommerce-MyAccount-content .form-row input[type="number"],
    .woocommerce-account .woocommerce-MyAccount-content .form-row textarea,
    .woocommerce-account .woocommerce-MyAccount-content .form-row select,
    .woocommerce-account .woocommerce-MyAccount-content fieldset input[type="password"],
    .woocommerce-account .woocommerce-MyAccount-content input.input-text,
    .woocommerce-account .woocommerce-MyAccount-content select {
        min-height: 48px !important;
    }
}

.woocommerce-account .woocommerce-MyAccount-content .form-row select,
.woocommerce-account .woocommerce-MyAccount-content select {
    height: 48px !important;
    min-height: 48px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2340aaff' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.9em center !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-right: 2.5em !important;
    cursor: pointer !important;
}

.woocommerce-account .woocommerce-MyAccount-content input.input-text::placeholder,
.woocommerce-account .woocommerce-MyAccount-content .form-row input::placeholder {
    color: rgba(180, 205, 255, 0.28) !important;
}

/* Small hint text below display name field */
.woocommerce-account .woocommerce-MyAccount-content .form-row span em,
.woocommerce-account .woocommerce-MyAccount-content .form-row em {
    display: block !important;
    font-size: 0.75rem !important;
    font-style: italic !important;
    color: rgba(180, 205, 255, 0.45) !important;
    margin-top: var(--space-1) !important;
    line-height: 1.5 !important;
}

/* Focus */
.woocommerce-account .woocommerce-MyAccount-content .form-row input:focus,
.woocommerce-account .woocommerce-MyAccount-content .form-row select:focus,
.woocommerce-account .woocommerce-MyAccount-content .form-row textarea:focus,
.woocommerce-account .woocommerce-MyAccount-content fieldset input:focus,
.woocommerce-account .woocommerce-MyAccount-content input.input-text:focus,
.woocommerce-account .woocommerce-MyAccount-content select:focus {
    border-color: rgba(0,128,255,0.72) !important;
    background: rgba(14, 12, 34, 0.88) !important;
    box-shadow:
        0 0 0 3px rgba(0,128,255,0.18),
        inset 0 2px 6px rgba(0,0,0,0.35) !important;
}

/* Validation: valid */
.woocommerce-account .woocommerce-MyAccount-content .form-row.woocommerce-validated .input-text,
.woocommerce-account .woocommerce-MyAccount-content .form-row.woocommerce-validated select {
    border-color: rgba(0, 200, 100, 0.50) !important;
    box-shadow: 0 0 0 3px rgba(0, 200, 100, 0.12), inset 0 2px 6px rgba(0,0,0,0.35) !important;
}

/* Validation: invalid */
.woocommerce-account .woocommerce-MyAccount-content .form-row.woocommerce-invalid .input-text,
.woocommerce-account .woocommerce-MyAccount-content .form-row.woocommerce-invalid select {
    border-color: rgba(255, 60, 80, 0.65) !important;
    box-shadow: 0 0 0 3px rgba(255, 60, 80, 0.14), inset 0 2px 6px rgba(0,0,0,0.35) !important;
}

/* ============================================================
   11. SELECT2
   ============================================================ */

.woocommerce-account .select2-container {
    width: 100% !important;
}

.woocommerce-account .select2-container--default .select2-selection--single {
    display: flex !important;
    align-items: center !important;
    background: rgba(18, 16, 38, 0.72) !important;
    border: 1px solid rgba(0,128,255,0.24) !important;
    border-radius: var(--radius-md) !important;
    height: 48px !important;
    min-height: 48px !important;
    box-sizing: border-box !important;
}

.woocommerce-account .select2-container--default .select2-selection--single .select2-selection__rendered {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 46px !important;
    color: #e6eeff !important;
    line-height: 1.35 !important;
    padding-left: var(--space-4) !important;
    padding-right: 2.75em !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    font-size: 0.95rem !important;
    font-family: var(--font-sans) !important;
    box-sizing: border-box !important;
}

.woocommerce-account .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: rgba(180, 205, 255, 0.38) !important;
}

.woocommerce-account .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 20px !important;
    top: 50% !important;
    right: 8px !important;
    transform: translateY(-50%) !important;
}

.woocommerce-account .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-top-color: rgba(64, 170, 255, 0.80) !important;
}

.woocommerce-account .select2-container--default.select2-container--open .select2-selection--single {
    border-color: rgba(0,128,255,0.72) !important;
    box-shadow: 0 0 0 3px rgba(0,128,255,0.18) !important;
    background: rgba(14, 12, 34, 0.88) !important;
}

/* ============================================================
   12. SUBMIT / SAVE BUTTON
   ============================================================ */

.woocommerce-account .woocommerce-MyAccount-content .button[type="submit"],
.woocommerce-account .woocommerce-MyAccount-content button[type="submit"],
.woocommerce-account .woocommerce-MyAccount-content input[type="submit"],
.woocommerce-account .woocommerce-MyAccount-content button.woocommerce-Button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #0055ff 0%, #7700ee 50%, #ff00ff 100%) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border: none !important;
    border-radius: var(--radius-pill) !important;
    padding: 0.75em 2.5em !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    font-family: var(--font-sans) !important;
    letter-spacing: 0.04em !important;
    cursor: pointer !important;
    box-shadow:
        0 4px 26px rgba(100, 0, 255, 0.42),
        0 0 0 1px rgba(0,128,255,0.22) !important;
    transition:
        box-shadow 0.30s var(--ease-spring),
        transform 0.30s var(--ease-spring) !important;
    margin-top: var(--space-2) !important;
    text-decoration: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content .button[type="submit"]:hover,
.woocommerce-account .woocommerce-MyAccount-content button[type="submit"]:hover,
.woocommerce-account .woocommerce-MyAccount-content input[type="submit"]:hover,
.woocommerce-account .woocommerce-MyAccount-content button.woocommerce-Button:hover {
    box-shadow:
        0 8px 40px rgba(100, 0, 255, 0.58),
        0 0 0 1px rgba(0,128,255,0.30) !important;
    transform: translateY(-2px) !important;
}

/* ============================================================
   13. DASHBOARD TEXT & LINKS
   ============================================================ */

.woocommerce-account .woocommerce-MyAccount-content > p {
    color: rgba(195, 218, 255, 0.72);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: var(--space-4);
}

.woocommerce-account .woocommerce-MyAccount-content > p a,
.woocommerce-account .woocommerce-MyAccount-content p a {
    color: #40aaff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.woocommerce-account .woocommerce-MyAccount-content p a:hover {
    color: #7fc4ff;
}

/* ============================================================
   14. ORDERS TABLE
   ============================================================ */

.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table,
.woocommerce-account .woocommerce-MyAccount-content table.shop_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(9, 7, 24, 0.30);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.woocommerce-account .woocommerce-MyAccount-content table th {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(180, 205, 255, 0.45);
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid rgba(0,128,255,0.14);
    background: rgba(0,0,0,0.18);
    text-align: left;
}

.woocommerce-account .woocommerce-MyAccount-content table td {
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.875rem;
    color: rgba(195, 218, 255, 0.80);
    vertical-align: middle;
}

.woocommerce-account .woocommerce-MyAccount-content table tr:last-child td {
    border-bottom: none;
}

.woocommerce-account .woocommerce-MyAccount-content table .button,
.woocommerce-account .woocommerce-MyAccount-content table a.button {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.38em 1em !important;
    background: rgba(0,128,255,0.14) !important;
    border: 1px solid rgba(0,128,255,0.30) !important;
    border-radius: var(--radius-pill) !important;
    color: #9fd0ff !important;
    -webkit-text-fill-color: #9fd0ff !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-decoration: none !important;
    transition: background 0.22s !important;
    cursor: pointer !important;
    box-shadow: none !important;
    margin: 0 !important;
    transform: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content table .button:hover,
.woocommerce-account .woocommerce-MyAccount-content table a.button:hover {
    background: rgba(0,128,255,0.24) !important;
    border-color: rgba(0,128,255,0.52) !important;
    transform: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content .order-status,
.woocommerce-account .woocommerce-MyAccount-content mark.order-status {
    display: inline-flex;
    align-items: center;
    padding: 0.28em 0.9em;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(0,128,255,0.12) !important;
    border: 1px solid rgba(0,128,255,0.28);
    color: #9fd0ff !important;
    -webkit-text-fill-color: #9fd0ff !important;
}

/* ============================================================
   15. ADDRESS OVERVIEW (my-address.php) — RESPONSIVE
      1 column on mobile, 2 columns on desktop
   ============================================================ */

.wc-addresses-description {
    color: rgba(195, 218, 255, 0.60) !important;
    font-size: 0.875rem !important;
    margin-bottom: var(--space-6) !important;
    max-width: 1040px !important;
    margin-inline: auto !important;
}

/* Grid-Container: gleiche Kartenbreiten, kontrollierter Umbruch */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: clamp(var(--space-4), 2.4vw, var(--space-6)) !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    grid-auto-rows: 1fr !important;
    width: 100% !important;
    max-width: 1040px !important;
    margin-inline: auto !important;
    box-sizing: border-box !important;
}

/* WooCommerce clearfix pseudo-elements would become grid items and offset the cards. */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses::before,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses::after {
    content: none !important;
    display: none !important;
}

/* WooCommerce float/width-Overrides auf Spalten-Divs */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .col-1,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .col-2,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .u-column1,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .u-column2 {
    float: none !important;
    clear: none !important;
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Jede Adress-Box: gleiche flexible Breite, nie gequetscht */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address {
    background:
        linear-gradient(155deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.03) 55%, rgba(255,255,255,0.02) 100%),
        rgba(16, 14, 38, 0.46);
    backdrop-filter: blur(30px) saturate(150%) brightness(0.95);
    -webkit-backdrop-filter: blur(30px) saturate(150%) brightness(0.95);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--radius-2xl);
    padding: clamp(var(--space-6), 2.2vw, var(--space-8)) !important;
    box-shadow: 0 24px 64px rgba(5,3,16,0.42), inset 0 1px 0 rgba(255,255,255,0.10);
    float: none !important;
    clear: none !important;
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: clamp(240px, 22vw, 290px) !important;
    height: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-rows: auto 1fr !important;
    align-content: start !important;
    transition: border-color 0.25s, box-shadow 0.25s !important;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address:hover {
    border-color: rgba(0,128,255,0.30) !important;
    box-shadow: 0 12px 50px rgba(0,0,0,0.50), 0 0 0 1px rgba(0,128,255,0.10) !important;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    align-content: center !important;
    gap: var(--space-2) !important;
    min-height: 76px !important;
    margin-bottom: var(--space-5) !important;
    padding: var(--space-2) 0 var(--space-5) !important;
    border-bottom: 1px solid rgba(0,128,255,0.14) !important;
    overflow: visible !important;
    min-width: 0 !important;
    text-align: center !important;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title h2 {
    display: block !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.12em !important;
    line-height: 1.55 !important;
    text-transform: uppercase !important;
    background: linear-gradient(90deg, #40aaff 0%, #cc55ff 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    margin: 0 !important;
    padding: 0.22em 0.05em !important;
    border: none !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
    overflow-wrap: anywhere !important;
    text-align: center !important;
}

/* Edit-Link (nur wenn Adresse vorhanden) */
.woocommerce-account .woocommerce-MyAccount-content .wc-address-edit-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35em !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: #40aaff !important;
    text-decoration: none !important;
    white-space: normal !important;
    padding: 0.34em 0.85em !important;
    border: 1px solid rgba(64,170,255,0.28) !important;
    border-radius: var(--radius-pill) !important;
    background: rgba(64,170,255,0.08) !important;
    transition: background 0.22s, border-color 0.22s !important;
    line-height: 1.35 !important;
    justify-self: center !important;
    text-align: center !important;
}

.woocommerce-account .woocommerce-MyAccount-content .wc-address-edit-link:hover {
    background: rgba(64,170,255,0.18) !important;
    border-color: rgba(64,170,255,0.50) !important;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-body {
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    flex: 1;
}

.woocommerce-account .woocommerce-MyAccount-content address {
    font-style: normal;
    font-size: 0.9rem;
    color: rgba(195, 218, 255, 0.80);
    line-height: 1.85;
    overflow-wrap: anywhere;
    text-align: center;
    max-width: 26ch;
}

/* ============================================================
   15b. EMPTY STATE — wenn keine Adresse gesetzt
   ============================================================ */

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address--empty {
    border-style: dashed !important;
    border-color: rgba(0,128,255,0.22) !important;
    border-top-style: solid !important;
    background: rgba(22, 20, 48, 0.60) !important;
}

.wc-address-empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: var(--space-4);
    padding: var(--space-4) 0;
}

.wc-address-empty-icon {
    width: 52px;
    height: 52px;
    color: rgba(64, 170, 255, 0.35);
    flex-shrink: 0;
}

.wc-address-empty-text {
    font-size: 0.875rem !important;
    color: rgba(195, 218, 255, 0.45) !important;
    margin: 0 !important;
    line-height: 1.6 !important;
    max-width: 220px;
}

/* CTA-Button im Empty State */
.wc-address-add-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.4em !important;
    position: relative !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #0055ff 0%, #7700ee 50%, #ff00ff 100%) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border: none !important;
    border-radius: var(--radius-pill) !important;
    padding: 0.7em 2em !important;
    font-size: 0.875rem !important;
    font-weight: 800 !important;
    font-family: var(--font-sans) !important;
    letter-spacing: 0.04em !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-shadow:
        0 4px 22px rgba(100, 0, 255, 0.38),
        0 0 0 1px rgba(0,128,255,0.18) !important;
    transition:
        box-shadow 0.28s var(--ease-spring, ease),
        transform 0.28s var(--ease-spring, ease) !important;
    margin-top: var(--space-2) !important;
}

.wc-address-add-btn::before {
    content: '+';
    font-size: 1.1em;
    font-weight: 400;
    line-height: 1;
    margin-right: 0.1em;
}

.wc-address-add-btn:hover {
    box-shadow:
        0 8px 36px rgba(100, 0, 255, 0.55),
        0 0 0 1px rgba(0,128,255,0.28) !important;
    transform: translateY(-2px) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    text-decoration: none !important;
}

/* ============================================================
   17. RESPONSIVE — Tablet/Mobile (≤ 900px)
   Sidebar collapses above the content as a full-width card;
   the menu becomes a horizontal wrap so it stays compact.
   ============================================================ */

@media (max-width: 900px) {
    body.aq-account-view .woocommerce {
        grid-template-columns: 1fr !important;
        gap: var(--space-4) !important;
    }

    .aq-acc-nav__list {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: var(--space-2) !important;
    }
    .aq-acc-nav__list li { flex: 1 1 auto; }
    .woocommerce-account .woocommerce-MyAccount-navigation.aq-acc-nav .aq-acc-nav__list a {
        justify-content: center !important;
        min-height: 44px !important;
    }
    .aq-acc-nav__chevron { display: none !important; }

    .woocommerce-account .woocommerce-MyAccount-content .wc-address-edit-link {
        white-space: normal !important;
    }
}

/* Address cards: laptop/tablet stay symmetric, phones stack */
@media (max-width: 640px) {
    .woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses {
        grid-template-columns: 1fr !important;
        max-width: 620px !important;
    }

    .woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address {
        min-height: auto !important;
    }
}

/* ============================================================
   18. RESPONSIVE — Small mobile (≤ 540px)
   All forms single column
   ============================================================ */

@media (max-width: 540px) {
    .wc-main--account {
        padding-inline: var(--space-4) !important;
    }

    .woocommerce-address-fields__field-wrapper {
        grid-template-columns: 1fr !important;
    }

    form.woocommerce-EditAccountForm {
        grid-template-columns: 1fr !important;
    }

    .woocommerce-account .woocommerce-MyAccount-content form {
        padding: var(--space-5) var(--space-4) !important;
    }

    .woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses {
        grid-template-columns: 1fr !important;
        align-items: stretch !important;
        max-width: 100% !important;
    }

    .woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address {
        width: 100% !important;
        max-width: 100% !important;
        padding: var(--space-6) var(--space-5) !important;
        min-height: auto !important;
    }

    .woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title {
        justify-items: center !important;
        gap: var(--space-2) !important;
    }

    .wc-address-add-btn {
        width: 100% !important;
    }

    .woocommerce-account .woocommerce-MyAccount-content .button[type="submit"],
    .woocommerce-account .woocommerce-MyAccount-content button[type="submit"],
    .woocommerce-account .woocommerce-MyAccount-content button.woocommerce-Button {
        width: 100% !important;
    }
}

/* ============================================================
   18. LARGE ADDRESS FORM MODAL (Edit/Add Billing/Shipping)
      Wird angezeigt wenn man Edit/Add Address Button klickt
      Großes Modal-artiges Formular wie im Checkout
   ============================================================ */

/* Wrapper für großes Address-Formular */
.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-address-form {
    max-width: 900px !important;
    margin-inline: auto !important;
    padding: var(--space-8) !important;
}

.woocommerce-account .woocommerce-MyAccount-content .aq-address-form__topbar {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    margin: 0 0 var(--space-5) !important;
    padding: 0 0 var(--space-4) !important;
    border-bottom: 1px solid rgba(0,128,255,0.12) !important;
}

.woocommerce-account .woocommerce-MyAccount-content .aq-address-form__back {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.45em !important;
    min-height: 38px !important;
    padding: 0.48em 1em !important;
    border-radius: var(--radius-pill) !important;
    border: 1px solid rgba(64,170,255,0.28) !important;
    background: rgba(64,170,255,0.08) !important;
    color: #9fd0ff !important;
    -webkit-text-fill-color: #9fd0ff !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.03em !important;
    text-decoration: none !important;
    transition: background 0.22s, border-color 0.22s, transform 0.22s !important;
}

.woocommerce-account .woocommerce-MyAccount-content .aq-address-form__back::before {
    content: "";
    width: 0.55em;
    height: 0.55em;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.woocommerce-account .woocommerce-MyAccount-content .aq-address-form__back:hover {
    background: rgba(64,170,255,0.16) !important;
    border-color: rgba(64,170,255,0.48) !important;
    transform: translateX(-2px) !important;
}

/* Besondere Behandlung für Address-Felder Wrapper */
.woocommerce-account form.woocommerce-address-form .woocommerce-address-fields__field-wrapper {
    grid-template-columns: 1fr !important;
    gap: var(--space-5) !important;
}

/* Desktop: 2 Spalten für Address-Felder */
@media (min-width: 768px) {
    .woocommerce-account form.woocommerce-address-form .woocommerce-address-fields__field-wrapper {
        grid-template-columns: 1fr 1fr !important;
        gap: var(--space-5) !important;
    }
}

/* Größere Überschrift für Address-Formular */
.woocommerce-account form.woocommerce-address-form h2 {
    font-size: 1.1rem !important;
    margin-bottom: var(--space-7, 1.75rem) !important;
    padding-bottom: var(--space-4) !important;
}

/* Button-Container im Address-Modal */
.woocommerce-account form.woocommerce-address-form .woocommerce-address-fields > p {
    margin: var(--space-6) 0 0 !important;
    padding: var(--space-5) 0 0 !important;
    border-top: 1px solid rgba(0,128,255,0.14) !important;
    display: flex !important;
    gap: var(--space-4) !important;
    justify-content: flex-end !important;
}

.woocommerce-account form.woocommerce-address-form .woocommerce-address-fields > p button {
    width: auto !important;
}

/* ============================================================
   19. REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    .woocommerce-account .woocommerce-MyAccount-content .button[type="submit"],
    .woocommerce-account .woocommerce-MyAccount-content button[type="submit"],
    .woocommerce-account .woocommerce-MyAccount-content button.woocommerce-Button,
    .woocommerce-account .woocommerce-MyAccount-content .form-row input,
    .woocommerce-account .woocommerce-MyAccount-content .form-row select {
        transition: none !important;
    }
}

/* ============================================================
   20. LOGGED-IN ACCOUNT VIEW — coral-glass dashboard
   Same photographic backdrop + frosted glass as the login card,
   here behind a sidebar dashboard. Background is a fixed <div>
   injected via wp_body_open (inc/woocommerce.php).
   ============================================================ */

.aq-account-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.aq-account-bg img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center;
    display: block;
}
/* Darkening vignette — coral stays visible, but small dashboard text keeps
   plenty of contrast against the busy image. */
.aq-account-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(130% 100% at 50% 0%, rgba(10,8,22,0.34) 0%, rgba(10,8,22,0.58) 55%, rgba(8,6,18,0.74) 100%),
        linear-gradient(180deg, rgba(8,6,18,0.42) 0%, rgba(8,6,18,0.70) 100%);
}

/* Strip the default page chrome so the dashboard owns the space, and lift the
   content above the fixed backdrop. Header + footer stay as-is. */
body.aq-account-view .page-header { display: none !important; }
body.aq-account-view .page-main {
    position: relative;
    z-index: 1;
    padding-block: var(--space-8) var(--space-20);
}
body.aq-account-view .page-content,
body.aq-account-view .page-body,
body.aq-account-view .page-body > .woocommerce {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

/* Notices (e.g. "details saved") float above the grid, centred over content. */
body.aq-account-view .woocommerce-notices-wrapper {
    grid-column: 1 / -1;
    margin: 0 0 var(--space-2);
}

/* The theme's global `.entry-content a { color: ruby; underline }` bleeds into
   the dashboard (the account renders inside .entry-content). Neutralise it for
   account links; each component below owns its colour. */
body.aq-account-view .woocommerce-MyAccount-content a { text-decoration: none; }
body.aq-account-view .aq-dash__card-title { color: #fff; }
body.aq-account-view .aq-dash__card-desc { color: var(--clr-text-muted); }
body.aq-account-view .aq-dash__stat-num { color: #fff; }
body.aq-account-view .aq-dash__stat-label { color: var(--clr-text-faint); }
body.aq-account-view .aq-dash__section-link { color: var(--clr-blue-light); }
body.aq-account-view .aq-dash__order-btn,
body.aq-account-view .aq-dash__empty-btn,
body.aq-account-view .aq-acc-empty__btn {
    color: #fff;
    -webkit-text-fill-color: #fff;
}

/* ---- Dashboard shell ---- */
.aq-dash { display: flex; flex-direction: column; gap: var(--space-6); }

.aq-dash__hero { display: flex; flex-direction: column; gap: var(--space-2); }
.aq-dash__eyebrow {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--clr-blue-light);
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.aq-dash__title {
    margin: 0;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}
.aq-dash__title span {
    background: linear-gradient(90deg, #40aaff 0%, #cc55ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.aq-dash__lead {
    margin: 0;
    max-width: 56ch;
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--clr-text);
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* ---- Stat chips ---- */
.aq-dash__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
}
.aq-dash__stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-xl);
    text-decoration: none;
    background:
        linear-gradient(155deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.03) 60%, rgba(255,255,255,0.02) 100%),
        rgba(16, 14, 38, 0.42);
    backdrop-filter: blur(26px) saturate(150%) brightness(0.95);
    -webkit-backdrop-filter: blur(26px) saturate(150%) brightness(0.95);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 16px 44px rgba(5,3,16,0.36), inset 0 1px 0 rgba(255,255,255,0.10);
    transition: transform 0.2s var(--ease-spring), border-color 0.2s, box-shadow 0.2s;
}
.aq-dash__stat:hover {
    transform: translateY(-2px);
    border-color: rgba(90,150,255,0.35);
    box-shadow: 0 20px 52px rgba(5,3,16,0.46), inset 0 1px 0 rgba(255,255,255,0.12);
}
.aq-dash__stat-num {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    letter-spacing: -0.01em;
}
.aq-dash__stat-label {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--clr-text-faint);
}

/* ---- Shared section heads ---- */
.aq-dash__section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}
.aq-dash__section-title {
    margin: 0 0 var(--space-3);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #eaf2ff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.aq-dash__section-head .aq-dash__section-title { margin: 0; }
.aq-dash__section-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--clr-blue-light);
    text-decoration: none;
}
.aq-dash__section-link:hover { text-decoration: underline; }

/* ---- Latest order panel + generic panel glass ---- */
.aq-dash__latest .aq-dash__order,
.aq-dash__empty,
.aq-acc-panel {
    background:
        linear-gradient(155deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.03) 55%, rgba(255,255,255,0.02) 100%),
        rgba(16, 14, 38, 0.46);
    backdrop-filter: blur(30px) saturate(150%) brightness(0.95);
    -webkit-backdrop-filter: blur(30px) saturate(150%) brightness(0.95);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--radius-2xl);
    box-shadow: 0 24px 64px rgba(5,3,16,0.42), inset 0 1px 0 rgba(255,255,255,0.10);
}

.aq-dash__order {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: var(--space-4) var(--space-6);
    padding: clamp(var(--space-5), 2.4vw, var(--space-6));
}
.aq-dash__order-main { display: flex; align-items: center; gap: var(--space-3); }
.aq-dash__order-number { font-size: 1.05rem; font-weight: 800; color: #fff; }
.aq-dash__order-meta {
    grid-row: 2;
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-5) var(--space-8);
    margin: 0;
    padding-top: var(--space-4);
    border-top: 1px solid rgba(255,255,255,0.10);
}
.aq-dash__order-meta div { display: flex; flex-direction: column; gap: 2px; }
.aq-dash__order-meta dt {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--clr-text-faint);
}
.aq-dash__order-meta dd { margin: 0; font-size: 0.95rem; font-weight: 700; color: #eaf2ff; }
.aq-dash__order-btn {
    grid-row: 1;
    grid-column: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 var(--space-5);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #1a7aff 0%, #38a6ff 100%);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0,128,255,0.42), inset 0 1px 0 rgba(255,255,255,0.28);
    transition: filter 0.2s, transform 0.15s;
}
.aq-dash__order-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* ---- Empty states (dashboard + orders/downloads panels) ---- */
.aq-dash__empty,
.aq-acc-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-3);
    padding: clamp(var(--space-8), 5vw, var(--space-16)) var(--space-6);
}
.aq-dash__empty-icon,
.aq-acc-empty__icon {
    width: 54px;
    height: 54px;
    color: var(--clr-blue-light);
    opacity: 0.7;
    margin-bottom: var(--space-1);
}
.aq-dash__empty-title,
.aq-acc-empty__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}
.aq-dash__empty-text,
.aq-acc-empty__text {
    margin: 0;
    max-width: 44ch;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--clr-text-muted);
}
.aq-dash__empty-btn,
.aq-acc-empty__btn {
    margin-top: var(--space-3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 var(--space-6);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #1a7aff 0%, #38a6ff 100%);
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 26px rgba(0,128,255,0.42), inset 0 1px 0 rgba(255,255,255,0.28);
    transition: filter 0.2s, transform 0.15s;
}
.aq-dash__empty-btn:hover,
.aq-acc-empty__btn:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* ---- Quick-access cards ---- */
.aq-dash__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
}
.aq-dash__card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: var(--space-4);
    row-gap: 2px;
    padding: var(--space-5);
    border-radius: var(--radius-xl);
    text-decoration: none;
    background:
        linear-gradient(155deg, rgba(255,255,255,0.09) 0%, rgba(255,255,255,0.03) 60%, rgba(255,255,255,0.02) 100%),
        rgba(16, 14, 38, 0.42);
    backdrop-filter: blur(26px) saturate(150%) brightness(0.95);
    -webkit-backdrop-filter: blur(26px) saturate(150%) brightness(0.95);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 16px 44px rgba(5,3,16,0.34), inset 0 1px 0 rgba(255,255,255,0.10);
    transition: transform 0.2s var(--ease-spring), border-color 0.2s, box-shadow 0.2s;
}
.aq-dash__card:hover {
    transform: translateY(-3px);
    border-color: rgba(90,150,255,0.38);
    box-shadow: 0 22px 56px rgba(5,3,16,0.48), inset 0 1px 0 rgba(255,255,255,0.12);
}
.aq-dash__card-icon {
    grid-row: 1 / 3;
    align-self: center;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(26,122,255,0.24), rgba(122,60,255,0.18));
    border: 1px solid rgba(90,150,255,0.28);
    color: #bcd8ff;
}
.aq-dash__card-icon svg { width: 22px; height: 22px; }
.aq-dash__card-title { font-size: 1rem; font-weight: 800; color: #fff; }
.aq-dash__card-desc { font-size: 0.83rem; line-height: 1.5; color: var(--clr-text-muted); }
.aq-dash__card-arrow {
    position: absolute;
    top: var(--space-5);
    right: var(--space-5);
    width: 0.5em;
    height: 0.5em;
    border-right: 2px solid var(--clr-text-faint);
    border-bottom: 2px solid var(--clr-text-faint);
    transform: rotate(-45deg);
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
}
.aq-dash__card:hover .aq-dash__card-arrow {
    opacity: 1;
    transform: rotate(-45deg) translate(2px, 0);
    border-color: var(--clr-blue-light);
}

/* ---- Generic account panel head (orders/downloads with data) ---- */
.aq-acc-panel { padding: clamp(var(--space-5), 2.4vw, var(--space-6)); }
.aq-acc-panel__head { margin-bottom: var(--space-4); }
.aq-acc-panel__title {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #40aaff 0%, #cc55ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* Table inside a panel drops its own frame (panel provides it). */
.aq-acc-panel table.woocommerce-orders-table,
.aq-acc-panel table.shop_table {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
}

/* ---- Order status pills — colour-coded by state ---- */
.aq-order-status {
    display: inline-flex;
    align-items: center;
    padding: 0.28em 0.85em;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(140,160,200,0.16);
    border: 1px solid rgba(140,160,200,0.34);
    color: #d5e2ff;
    white-space: nowrap;
}
.aq-order-status--completed { background: rgba(0,200,110,0.16); border-color: rgba(0,200,110,0.42); color: #7ff0b6; }
.aq-order-status--processing { background: rgba(0,128,255,0.18); border-color: rgba(0,128,255,0.44); color: #8fc6ff; }
.aq-order-status--on-hold { background: rgba(255,180,0,0.16); border-color: rgba(255,180,0,0.42); color: #ffd98a; }
.aq-order-status--pending { background: rgba(150,120,255,0.18); border-color: rgba(150,120,255,0.42); color: #cbb8ff; }
.aq-order-status--cancelled,
.aq-order-status--failed,
.aq-order-status--refunded { background: rgba(255,70,90,0.16); border-color: rgba(255,90,110,0.42); color: #ffb4be; }

/* ---- Account-view responsive ---- */
@media (max-width: 640px) {
    .aq-dash__cards { grid-template-columns: 1fr; }
    .aq-dash__order { grid-template-columns: 1fr; }
    .aq-dash__order-btn { grid-row: auto; grid-column: 1; width: 100%; }
    .aq-dash__empty-btn,
    .aq-acc-empty__btn { width: 100%; }
}
@media (max-width: 420px) {
    .aq-dash__stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .aq-dash__stat, .aq-dash__card, .aq-dash__order-btn,
    .aq-dash__empty-btn, .aq-acc-empty__btn { transition: none !important; }
}

/* ============================================================
   AUTH VIEW — login / lost-password glass card over coral background
   (body.aq-auth-view; background var + preload from inc/woocommerce.php)
   ============================================================ */
/* The my-account page renders through page.php:
   main.site-main.page-main > .container > article.page-content
   > .page-header + .page-body(.entry-content) > .woocommerce > .aq-auth
   On the logged-out auth view we strip that page chrome so .aq-auth can own
   the full viewport, exactly like the homepage hero owns its section. */
body.aq-auth-view .page-header { display: none; }

/* Header + footer stay. We only strip the page-body chrome so the coral image
   sits flush against them — no dark strips above or below it. */
body.aq-auth-view .page-main { padding: 0; }

body.aq-auth-view .page-main > .container {
    max-width: 100%;
    padding: 0;
}

body.aq-auth-view .page-content,
body.aq-auth-view .page-body,
body.aq-auth-view .page-body > .woocommerce {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

/* Full-screen stage holding the glass card(s). Height = viewport minus the
   4.25rem sticky header, so header + stage = exactly one screen and the footer
   sits flush right below it. */
.aq-auth {
    position: relative;
    min-height: calc(100vh - 4.25rem);
    min-height: calc(100dvh - 4.25rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-10) var(--space-4);
}

/* Coral background pinned to the whole viewport (position:fixed) so it sits
   BEHIND the translucent header and up to the opaque footer — the image blends
   seamlessly under the header instead of leaving a dark strip, and the footer
   simply covers its bottom edge. No dark banners above or below. */
.aq-auth__bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.aq-auth__bg img {
    /* !important beats the global `img{height:auto}` reset (main.css) that would
       otherwise letterbox this 16:9 image and leave strips above/below it. */
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center;
    display: block;
}
.aq-auth__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    /* Light vignette only — the coral stays clearly visible through the glass;
       the card provides its own local contrast for the text. */
    background:
        radial-gradient(125% 100% at 50% 35%, rgba(10,8,22,0.12) 0%, rgba(10,8,22,0.34) 68%, rgba(10,8,22,0.55) 100%),
        linear-gradient(180deg, rgba(8,6,18,0.22) 0%, rgba(8,6,18,0.40) 100%);
}

/* Card column sits above the background. */
.aq-auth__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-5);
}

/* Notices (wrong password etc.) sit above the card, centred */
body.aq-auth-view .woocommerce-notices-wrapper {
    position: relative;
    z-index: 1;
    max-width: 440px;
    margin: 0 auto var(--space-4);
}
/* An empty notices wrapper must not add a stray gap above the full-bleed image. */
body.aq-auth-view .woocommerce-notices-wrapper:empty { display: none; margin: 0; }

/* ---- Glass card ---- */
.aq-auth__card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    padding: clamp(1.75rem, 4vw, 2.5rem);
    border-radius: var(--radius-2xl);
    /* True frosted-glass panel: mostly see-through so the coral reads through the
       blur, a single soft edge — no hard card rectangle, no coloured ring. */
    background:
        linear-gradient(155deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.03) 55%, rgba(255,255,255,0.02) 100%),
        rgba(16, 14, 38, 0.30);
    backdrop-filter: blur(30px) saturate(150%) brightness(0.95);
    -webkit-backdrop-filter: blur(30px) saturate(150%) brightness(0.95);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow:
        0 24px 64px rgba(5,3,16,0.48),
        inset 0 1px 0 rgba(255,255,255,0.10);
    overflow: hidden;
}

/* Subtle shadow behind all card text → high contrast on the busy background. */
.aq-auth__card :is(.aq-auth__title, .aq-auth__desc, label, .aq-auth__forgot, .aq-auth__remember, .aq-auth__note, .aq-auth__back) {
    text-shadow: 0 1px 3px rgba(0,0,0,0.45);
}

/* Soft diagonal light sweep across the glass (a highlight, not a border). */
.aq-auth__card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(125deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 24%, transparent 48%);
    pointer-events: none;
    z-index: 0;
}

.aq-auth__card > * { position: relative; z-index: 1; }

.aq-auth__header { display: flex; flex-direction: column; gap: var(--space-2); }

.aq-auth__title {
    font-size: clamp(1.75rem, 4vw, 2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0;
}

.aq-auth__desc {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--clr-text);
    opacity: 0.85;
    margin: 0;
}

/* Kill WooCommerce's default framed-form box (border/padding/radius/bg) — that
   grey-white rectangle was drawing a line around the fields and splitting the
   header off from the submit button. Our form is a plain flex column. */
body.aq-auth-view .aq-auth__form,
.aq-auth__form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.aq-auth__field { display: flex; flex-direction: column; gap: var(--space-2); }

.aq-auth__field label,
.aq-auth__label-row label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--clr-text);
    letter-spacing: 0.01em;
}

.aq-auth__label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-3);
}

.aq-auth__forgot {
    font-size: 0.78rem;
    color: var(--clr-blue-light);
    text-decoration: none;
    text-underline-offset: 3px;
}
.aq-auth__forgot:hover { text-decoration: underline; }

/* Inputs — override WooCommerce defaults inside the card */
body.aq-auth-view .aq-auth__input,
.aq-auth__input {
    width: 100%;
    height: 50px;
    padding: 0 var(--space-4);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid var(--clr-border) !important;
    color: var(--clr-text) !important;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: none !important;
}
.aq-auth__input::placeholder { color: var(--clr-text-faint); }
.aq-auth__input:focus {
    outline: none;
    border-color: var(--clr-border-blue) !important;
    background: rgba(255,255,255,0.09) !important;
    box-shadow: 0 0 0 3px var(--clr-blue-glow) !important;
}

/* Remember me */
.aq-auth__remember {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    cursor: pointer;
    margin: 0;
}
.aq-auth__remember input { width: 16px; height: 16px; accent-color: var(--clr-blue); }

/* Submit — bright, high-contrast primary button (pops off the frosted card).
   Prefixed + !important so it beats WooCommerce's `.woocommerce button.button`
   default (0,2,1) instead of falling back to its light-grey style. */
body.aq-auth-view .aq-auth__submit,
.aq-auth__submit {
    width: 100%;
    height: 52px;
    margin-top: var(--space-1);
    padding: 0 var(--space-4);
    border: none !important;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #1a7aff 0%, #38a6ff 100%) !important;
    color: #fff !important;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 800;
    line-height: 52px;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow:
        0 8px 26px rgba(0,128,255,0.45),
        inset 0 1px 0 rgba(255,255,255,0.28) !important;
    text-shadow: 0 1px 2px rgba(0,40,120,0.45);
}
body.aq-auth-view .aq-auth__submit:hover,
.aq-auth__submit:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 12px 34px rgba(0,128,255,0.55), inset 0 1px 0 rgba(255,255,255,0.32) !important;
}
.aq-auth__submit:active { transform: translateY(0); }

/* Register / secondary button = ghost */
body.aq-auth-view .aq-auth__submit--ghost,
.aq-auth__submit--ghost {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid var(--clr-border) !important;
    color: var(--clr-text) !important;
    box-shadow: none !important;
    text-shadow: none;
}
body.aq-auth-view .aq-auth__submit--ghost:hover,
.aq-auth__submit--ghost:hover {
    background: var(--clr-blue-glow) !important;
    border-color: var(--clr-border-blue) !important;
    color: var(--clr-blue-light) !important;
    box-shadow: none !important;
}

.aq-auth__note { font-size: 0.85rem; color: var(--clr-text-muted); margin: 0; }

.aq-auth__back { margin: 0; text-align: center; }
.aq-auth__back a { font-size: 0.85rem; color: var(--clr-text-muted); text-decoration: none; }
.aq-auth__back a:hover { color: var(--clr-blue-light); }

/* "Noch kein Konto? Registrieren" / "Bereits registriert? Anmelden" switch link */
.aq-auth__switch { margin: 0; text-align: center; font-size: 0.85rem; color: var(--clr-text-muted); }
.aq-auth__switch a { color: var(--clr-blue-light); text-decoration: none; font-weight: 600; }
.aq-auth__switch a:hover { text-decoration: underline; }

/* Choice screen: "Anmelden" / "Registrieren" buttons stacked */
.aq-auth__choice-actions { display: flex; flex-direction: column; gap: var(--space-3); }
a.aq-auth__submit { display: flex; align-items: center; justify-content: center; text-decoration: none; }

@media (max-width: 720px) {
    .aq-auth { padding-block: var(--space-8); }
}

@media (prefers-reduced-motion: reduce) {
    .aq-auth__submit, .aq-auth__input { transition: none; }
}

/* ---- Brand logo at the top of the card ---- */
.aq-auth__brand {
    display: flex;
    justify-content: center;
    margin: 0 0 calc(-1 * var(--space-2)) 0;
}
.aq-auth__brand .custom-logo-link img,
.aq-auth__brand .custom-logo { height: 84px; width: auto; filter: brightness(1.12); }
.aq-auth__brand .site-logo-text { font-size: 2.55rem; }

/* ---- Card entrance ---- */
.aq-auth__card {
    animation: aq-auth-in 0.5s var(--ease-out-expo) both;
}
@keyframes aq-auth-in {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Password show/hide toggle ---- */
.aq-auth__pw { position: relative; }
.aq-auth__input--pw { padding-right: 3rem; }
/* Hide the browser's OWN password-reveal icons so they don't stack a second
   eye on top of our custom toggle: Edge/IE's ::-ms-reveal + clear "x", and
   Safari's inline credential/strong-password autofill icon. (Chrome's/Edge's
   Password-Manager key icon and 3rd-party password-manager extensions such as
   Apple Passwords/1Password render above the page itself and can't be hidden
   via page CSS — that's a deliberate browser security restriction.) */
.aq-auth__input--pw::-ms-reveal,
.aq-auth__input--pw::-ms-clear { display: none; }
.aq-auth__input--pw::-webkit-credentials-auto-fill-button,
.aq-auth__input--pw::-webkit-strong-password-auto-fill-button {
    visibility: hidden;
    display: none !important;
    pointer-events: none;
    position: absolute;
    right: 0;
}
.aq-auth__pw-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--clr-text-faint);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}
.aq-auth__pw-toggle:hover { color: var(--clr-blue-light); background: rgba(255,255,255,0.06); }
/* Both icons sit stacked exactly on top of one another and are swapped with
   opacity (not display) — only one can ever be visible, and they can never
   render side by side as two separate eyes. */
.aq-auth__pw-toggle .aq-auth__pw-eye,
.aq-auth__pw-toggle .aq-auth__pw-eye-off {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
    pointer-events: none;
}
.aq-auth__pw-toggle .aq-auth__pw-eye-off { opacity: 0; }
.aq-auth__pw-toggle.is-shown .aq-auth__pw-eye { opacity: 0; }
.aq-auth__pw-toggle.is-shown .aq-auth__pw-eye-off { opacity: 1; }
.aq-auth__pw-toggle.is-shown { color: var(--clr-blue-light); }

@media (prefers-reduced-motion: reduce) {
    .aq-auth__card { animation: none; }
}
