/**
 * AH My Account Page
 * Matches aromaholik brand: League Spartan, warm gold + green, editorial feel
 */

.ahma {
    --ahma-dark: #202328;
    --ahma-gold: #E1B998;
    --ahma-gold-dim: rgba(225, 185, 152, 0.15);
    --ahma-green: #9DDF01;
    --ahma-green-dim: rgba(157, 223, 1, 0.08);
    --ahma-text: #4a4d52;
    --ahma-text-dim: #848891;
    --ahma-text-heading: #202328;
    --ahma-border: rgba(32, 35, 40, 0.08);
    --ahma-card: #ffffff;
    --ahma-bg: #fafafa;
    --ahma-radius: 16px;
    --ahma-radius-sm: 12px;
    --ahma-shadow: 0 2px 12px rgba(32, 35, 40, 0.04);
    --ahma-font: 'League Spartan', -apple-system, BlinkMacSystemFont, sans-serif;

    max-width: 920px;
    margin: 0 auto;
    color: var(--ahma-text);
    line-height: 1.6;
}

.ahma *,
.ahma *::before,
.ahma *::after {
    box-sizing: border-box;
}

.ahma a,
.ahma a:hover,
.ahma a:focus,
.ahma a:active,
.ahma a:visited {
    text-decoration: none !important;
    color: inherit !important;
    box-shadow: none !important;
    outline: none !important;
}

/* ── Header ── */
.ahma-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 32px;
    background: var(--ahma-dark);
    border-radius: var(--ahma-radius) var(--ahma-radius) 0 0;
    color: #fff;
}

.ahma-header__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--ahma-gold);
    flex-shrink: 0;
}

.ahma-header__info {
    flex: 1;
    min-width: 0;
}

.ahma-header__greeting {
    font-family: var(--ahma-font);
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 2px;
    color: #fff;
    letter-spacing: -0.02em;
}

.ahma-header__meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ahma-header__points {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ahma-green);
}

.ahma-header__points svg {
    color: var(--ahma-gold);
    width: 14px;
    height: 14px;
}

.ahma-header__tier {
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--tier-color, var(--ahma-gold));
    color: var(--ahma-dark);
}

.ahma-header__logout,
.ahma-header__logout:visited {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.4) !important;
    transition: all 0.2s;
    text-decoration: none;
    flex-shrink: 0;
}

.ahma-header__logout:hover,
.ahma-header__logout:focus {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
}

/* ── Nav ── */
.ahma-nav {
    display: flex;
    gap: 2px;
    background: var(--ahma-card);
    border: 1px solid var(--ahma-border);
    border-top: none;
    border-radius: 0 0 var(--ahma-radius) var(--ahma-radius);
    padding: 4px;
    margin-bottom: 28px;
}

.ahma-nav__item,
.ahma-nav__item:visited {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 10px;
    border-radius: var(--ahma-radius-sm);
    text-decoration: none;
    color: var(--ahma-text-dim) !important;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
    text-align: center;
}

.ahma-nav__item:hover,
.ahma-nav__item:focus {
    color: var(--ahma-text-heading) !important;
    background: var(--ahma-bg);
}

.ahma-nav__item--active,
.ahma-nav__item--active:visited {
    background: var(--ahma-dark);
    color: #fff !important;
}

.ahma-nav__item--active:hover,
.ahma-nav__item--active:focus {
    background: var(--ahma-dark);
    color: #fff !important;
}

.ahma-nav__item--active .ahma-nav__icon svg {
    color: var(--ahma-gold);
}

.ahma-nav__item .ahma-nav__label {
    color: inherit !important;
}

.ahma-nav__item--active .ahma-nav__label {
    color: #fff !important;
}

.ahma-nav__icon {
    display: flex;
    align-items: center;
}

.ahma-nav__icon svg {
    width: 18px;
    height: 18px;
}

.ahma-nav__select {
    display: none;
}

/* ── Content area ── */
.ahma-content {
    min-height: 200px;
}

/* ── Buttons ── */
.ahma-btn,
.ahma-btn:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border: 1px solid var(--ahma-border);
    border-radius: 50px;
    background: var(--ahma-card);
    color: var(--ahma-text-heading) !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s;
    line-height: 1.4;
}

.ahma-btn:hover,
.ahma-btn:focus {
    border-color: var(--ahma-gold);
    color: var(--ahma-text-heading) !important;
    box-shadow: 0 2px 8px rgba(225, 185, 152, 0.15);
    transform: translateY(-1px);
}

.ahma-btn--primary,
.ahma-btn--primary:visited {
    background: linear-gradient(135deg, #9DDF01, #7ab801);
    border-color: transparent;
    color: #fff !important;
    font-weight: 700;
}

.ahma-btn--primary:hover,
.ahma-btn--primary:focus {
    box-shadow: 0 4px 16px rgba(83, 140, 18, 0.25);
    transform: translateY(-1px);
    color: #fff !important;
}

.ahma-btn--sm {
    padding: 7px 16px;
    font-size: 12px;
}

.ahma-btn--outline {
    background: transparent;
}

.ahma-btn--outline:hover,
.ahma-btn--outline:focus {
    background: var(--ahma-green-dim);
    border-color: var(--ahma-green);
}

/* ── Empty state ── */
.ahma-empty {
    text-align: center;
    padding: 56px 24px;
    color: var(--ahma-text-dim);
}

.ahma-empty svg {
    margin-bottom: 16px;
    opacity: 0.4;
}

.ahma-empty p {
    margin: 0 0 20px;
    font-size: 15px;
}

.ahma-muted {
    color: var(--ahma-text-dim);
    font-size: 14px;
}

/* ── Orders ── */
.ahma-orders {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ahma-order-card {
    background: var(--ahma-card);
    border: 1px solid var(--ahma-border);
    border-radius: var(--ahma-radius-sm);
    padding: 20px 24px;
    transition: box-shadow 0.25s;
}

.ahma-order-card:hover {
    box-shadow: 0 4px 20px rgba(32, 35, 40, 0.06);
}

.ahma-order-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    gap: 8px;
}

.ahma-order-card__number {
    font-family: var(--ahma-font);
    font-weight: 700;
    font-size: 15px;
    color: var(--ahma-text-heading);
    margin-right: 8px;
}

.ahma-order-card__date {
    font-size: 12px;
    color: var(--ahma-text-dim);
}

.ahma-order-card__status {
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ahma-status--processing {
    background: rgba(225, 185, 152, 0.15);
    color: #b8884e;
}

.ahma-status--completed {
    background: rgba(157, 223, 1, 0.12);
    color: #538C12;
}

.ahma-status--on-hold {
    background: rgba(32, 35, 40, 0.06);
    color: var(--ahma-text-dim);
}

.ahma-status--cancelled,
.ahma-status--refunded,
.ahma-status--failed {
    background: rgba(220, 50, 50, 0.08);
    color: #c0392b;
}

.ahma-status--pending {
    background: rgba(52, 152, 219, 0.1);
    color: #2980b9;
}

.ahma-order-card__items {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--ahma-border);
}

.ahma-order-card__item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ahma-order-card__item img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

.ahma-order-card__item-name {
    font-size: 13px;
    color: var(--ahma-text);
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ahma-order-card__item-name small {
    color: var(--ahma-text-dim);
}

.ahma-order-card__more {
    font-size: 12px;
    color: var(--ahma-text-dim);
}

.ahma-order-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ahma-order-card__total {
    font-family: var(--ahma-font);
    font-weight: 700;
    font-size: 16px;
    color: var(--ahma-text-heading);
}

/* ── Pagination ── */
.ahma-pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 20px;
}

.ahma-pagination .page-numbers,
.ahma-pagination .page-numbers:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: 50px;
    text-decoration: none;
    color: var(--ahma-text) !important;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.ahma-pagination .page-numbers:hover,
.ahma-pagination .page-numbers:focus {
    background: var(--ahma-bg);
    color: var(--ahma-text-heading) !important;
}

.ahma-pagination .page-numbers.current,
.ahma-pagination .page-numbers.current:visited {
    background: var(--ahma-dark);
    color: #fff !important;
}

/* ── Addresses ── */
.ahma-addresses {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.ahma-address-card {
    background: var(--ahma-card);
    border: 1px solid var(--ahma-border);
    border-radius: var(--ahma-radius-sm);
    padding: 24px;
}

.ahma-address-card__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.ahma-address-card__header h3 {
    font-family: var(--ahma-font);
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--ahma-text-heading);
}

.ahma-address-card__icon {
    color: var(--ahma-gold);
    display: flex;
}

.ahma-address-card__icon svg {
    width: 18px;
    height: 18px;
}

.ahma-address-card__body {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--ahma-text);
    min-height: 50px;
}

.ahma-address-card__body address {
    font-style: normal;
}

/* ── Edit address / Account / View order ── */
.ahma-edit-address,
.ahma-account-details,
.ahma-view-order {
    background: var(--ahma-card);
    border: 1px solid var(--ahma-border);
    border-radius: var(--ahma-radius-sm);
    padding: 28px;
}

.ahma-back-link,
.ahma-back-link:visited {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--ahma-text-dim) !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    transition: color 0.2s;
}

.ahma-back-link:hover,
.ahma-back-link:focus {
    color: var(--ahma-gold) !important;
}

/* WC forms styling */
.ahma-edit-address .form-row,
.ahma-account-details .form-row {
    margin-bottom: 14px;
}

.ahma-edit-address .form-row label,
.ahma-account-details .form-row label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ahma-text-dim);
    margin-bottom: 6px;
    display: block;
}

.ahma-edit-address .form-row input,
.ahma-edit-address .form-row select,
.ahma-account-details .form-row input,
.ahma-account-details .form-row select {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--ahma-border);
    border-radius: 8px;
    font-size: 14px;
    background: var(--ahma-bg);
    transition: border-color 0.2s;
    color: var(--ahma-text-heading);
}

.ahma-edit-address .form-row input:focus,
.ahma-edit-address .form-row select:focus,
.ahma-account-details .form-row input:focus,
.ahma-account-details .form-row select:focus {
    border-color: var(--ahma-gold);
    outline: none;
    box-shadow: 0 0 0 3px var(--ahma-gold-dim);
    background: #fff;
}

.ahma-edit-address button[type="submit"],
.ahma-account-details button[type="submit"],
.ahma-account-details .woocommerce-Button {
    background: linear-gradient(135deg, #9DDF01, #7ab801);
    border: none;
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
}

.ahma-edit-address button[type="submit"]:hover,
.ahma-account-details button[type="submit"]:hover,
.ahma-account-details .woocommerce-Button:hover {
    box-shadow: 0 4px 16px rgba(83, 140, 18, 0.25);
    transform: translateY(-1px);
}

/* ── Login & Register Forms ── */
.ahma-auth {
    --ahma-dark: #202328;
    --ahma-gold: #E1B998;
    --ahma-green: #9DDF01;
    --ahma-text: #4a4d52;
    --ahma-text-dim: #848891;
    --ahma-text-heading: #202328;
    --ahma-border: rgba(32, 35, 40, 0.08);
    --ahma-card: #ffffff;
    --ahma-bg: #EFEFEF;
    --ahma-radius: 16px;
    --ahma-shadow: 0 2px 12px rgba(32, 35, 40, 0.04);
    --ahma-font: 'League Spartan', -apple-system, BlinkMacSystemFont, sans-serif;

    max-width: 100%;
    margin: 0;
    padding: 60px 20px;
    background: var(--ahma-bg);
    font-family: var(--ahma-font);
    color: var(--ahma-text);
    line-height: 1.6;
}

.ahma-auth__panel {
    max-width: 960px;
    margin: 0 auto;
}

/* Panel switching */
.ahma-auth__panel { display: none; }
.ahma-auth__panel--active { display: block; }

/* Card */
.ahma-auth__card {
    background: var(--ahma-card);
    border: 1px solid var(--ahma-border);
    border-radius: var(--ahma-radius);
    padding: 48px 40px;
    box-shadow: var(--ahma-shadow);
}

.ahma-auth__panel--login .ahma-auth__card {
    max-width: 460px;
    margin: 0 auto;
}

/* Header */
.ahma-auth__header {
    margin-bottom: 32px;
}

.ahma-auth__title {
    font-family: var(--ahma-font);
    font-size: 26px;
    font-weight: 700;
    color: var(--ahma-text-heading);
    margin: 0 0 8px;
}

.ahma-auth__subtitle {
    font-size: 14px;
    color: var(--ahma-text-dim);
    margin: 0;
}

/* Form fields */
.ahma-auth__form {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ahma-auth__field {
    margin-bottom: 20px;
}

.ahma-auth__field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ahma-text-dim);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ahma-auth__field input[type="text"],
.ahma-auth__field input[type="email"],
.ahma-auth__field input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: var(--ahma-text-heading);
    font-size: 15px;
    font-family: var(--ahma-font);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.ahma-auth__field input:focus {
    outline: none;
    border-color: var(--ahma-text-heading) !important;
    box-shadow: 0 0 0 3px rgba(32, 35, 40, 0.06);
}

/* Optional label + hint */
.ahma-auth__optional {
    font-weight: 400;
    color: var(--ahma-text-dim);
    font-size: 12px;
    text-transform: none;
    letter-spacing: 0;
}

.ahma-auth__field-hint {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--ahma-green);
    font-weight: 500;
}

.ahma-auth__field input[type="date"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: var(--ahma-text-heading);
    font-size: 15px;
    font-family: var(--ahma-font);
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ahma-auth__field input[type="date"]:focus {
    outline: none;
    border-color: var(--ahma-text-heading);
    box-shadow: 0 0 0 3px rgba(32, 35, 40, 0.06);
}

/* Password toggle */
.ahma-auth__pw-wrap {
    position: relative;
}

.ahma-auth__pw-wrap input {
    padding-right: 48px !important;
}

.ahma-auth__pw-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--ahma-text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.ahma-auth__pw-toggle:hover {
    color: var(--ahma-text-heading);
}

/* Remember + Forgot row */
.ahma-auth__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 8px;
}

.ahma-auth__remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ahma-text);
    cursor: pointer;
}

.ahma-auth__remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--ahma-green);
}

.ahma-auth__forgot {
    font-size: 13px;
    font-weight: 600;
    color: var(--ahma-text-dim) !important;
    text-decoration: none !important;
    transition: color 0.2s;
}

.ahma-auth__forgot:hover {
    color: var(--ahma-text-heading) !important;
}

/* Submit buttons */
.ahma-auth__submit {
    display: block;
    width: 100%;
    padding: 15px 32px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #9DDF01, #7ab801);
    color: #fff;
    font-family: var(--ahma-font);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: box-shadow 0.25s, transform 0.25s;
}

.ahma-auth__submit:hover {
    box-shadow: 0 4px 16px rgba(83, 140, 18, 0.25);
    transform: translateY(-1px);
}

.ahma-auth__submit--dark {
    background: var(--ahma-dark);
    border-radius: 8px;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.ahma-auth__submit--dark:hover {
    background: #111;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Switch link */
.ahma-auth__switch {
    margin-top: 28px;
    text-align: center;
    font-size: 14px;
    color: var(--ahma-text-dim);
}

.ahma-auth__switch a {
    color: var(--ahma-text-heading) !important;
    font-weight: 700;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.ahma-auth__switch a:hover {
    color: var(--ahma-green) !important;
}

/* Note (generated password info) */
.ahma-auth__note {
    font-size: 13px;
    color: var(--ahma-text-dim);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ── Register grid (form + benefits side-by-side) ── */
.ahma-auth__register-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

/* Benefits side */
.ahma-auth__benefits {
    padding: 16px 0;
}

.ahma-auth__benefits-title {
    font-family: var(--ahma-font);
    font-size: 20px;
    font-weight: 700;
    color: var(--ahma-text-heading);
    margin: 0 0 28px;
    line-height: 1.4;
}

.ahma-auth__benefits-list {
    list-style: none;
    padding: 0;
    margin: 0 0 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ahma-auth__benefits-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ahma-text-dim);
}

.ahma-auth__benefits-list li svg {
    flex-shrink: 0;
    color: var(--ahma-text-dim);
}

.ahma-auth__benefits-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--ahma-radius);
    object-fit: contain;
}

/* WC hooks inject .form-row and .woocommerce-* elements — style them to match */
.ahma-auth .form-row,
.ahma-auth .woocommerce-form-row {
    margin-bottom: 16px;
}

.ahma-auth .form-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ahma-text-dim);
    margin-bottom: 8px;
}

.ahma-auth .form-row input[type="text"],
.ahma-auth .form-row input[type="email"],
.ahma-auth .form-row input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: var(--ahma-text-heading);
    font-size: 15px;
    font-family: var(--ahma-font);
    box-sizing: border-box;
}

.ahma-auth .form-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--ahma-green);
    margin-right: 8px;
}

.ahma-auth .form-row.validate-required {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.ahma-auth .form-row label.checkbox,
.ahma-auth .form-row .woocommerce-form__label-for-checkbox {
    font-size: 13px !important;
    font-weight: 400 !important;
    color: var(--ahma-text-dim) !important;
    display: inline !important;
    line-height: 1.5;
    text-transform: none;
    letter-spacing: 0;
}

.ahma-auth .woocommerce-privacy-policy-text {
    font-size: 12px;
    color: var(--ahma-text-dim);
    margin: 16px 0;
    line-height: 1.6;
}

.ahma-auth .woocommerce-privacy-policy-text a {
    color: var(--ahma-text-heading) !important;
    text-decoration: underline !important;
}

/* WC notices inside auth */
.ahma-auth .woocommerce-error,
.ahma-auth .woocommerce-message,
.ahma-auth .woocommerce-info {
    max-width: 460px;
    margin: 0 auto 24px;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-family: var(--ahma-font);
    line-height: 1.5;
    list-style: none;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ahma-auth .woocommerce-error {
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.ahma-auth .woocommerce-error li {
    list-style: none;
    margin: 0;
    padding: 4px 0;
}

.ahma-auth .woocommerce-error li + li {
    border-top: 1px solid rgba(239, 68, 68, 0.15);
    margin-top: 8px;
    padding-top: 8px;
}

.ahma-auth .woocommerce-error a {
    color: #991b1b !important;
    font-weight: 600;
    text-decoration: underline !important;
}

.ahma-auth .woocommerce-error::before,
.ahma-auth .woocommerce-message::before,
.ahma-auth .woocommerce-info::before {
    display: none;
}

.ahma-auth .woocommerce-message {
    background: #f0fdf4;
    color: #166534;
    border-left: 4px solid #22c55e;
}

.ahma-auth .woocommerce-message a {
    color: #166534 !important;
    font-weight: 600;
}

.ahma-auth .woocommerce-info {
    background: #eff6ff;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

.ahma-auth .woocommerce-info a {
    color: #1e40af !important;
    font-weight: 600;
}

/* ── Lost password / Reset password ── */
.ahma-auth__card .woocommerce-ResetPassword,
.ahma-auth__card .woocommerce-form-row {
    margin-bottom: 20px;
}

.ahma-auth__card .woocommerce-ResetPassword label,
.ahma-auth__card .lost_reset_password label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ahma-text-dim);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ahma-auth__card .woocommerce-ResetPassword input[type="text"],
.ahma-auth__card .woocommerce-ResetPassword input[type="email"],
.ahma-auth__card .woocommerce-ResetPassword input[type="password"],
.ahma-auth__card .lost_reset_password input[type="text"],
.ahma-auth__card .lost_reset_password input[type="email"],
.ahma-auth__card .lost_reset_password input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: var(--ahma-text-heading);
    font-size: 15px;
    font-family: var(--ahma-font);
    box-sizing: border-box;
}

.ahma-auth__card .woocommerce-ResetPassword input:focus,
.ahma-auth__card .lost_reset_password input:focus {
    outline: none;
    border-color: var(--ahma-text-heading);
    box-shadow: 0 0 0 3px rgba(32, 35, 40, 0.06);
}

.ahma-auth__card .woocommerce-Button,
.ahma-auth__card button[type="submit"] {
    display: block;
    width: 100%;
    padding: 15px 32px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #9DDF01, #7ab801);
    color: #fff;
    font-family: var(--ahma-font);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: box-shadow 0.25s, transform 0.25s;
    margin-top: 10px;
}

.ahma-auth__card .woocommerce-Button:hover,
.ahma-auth__card button[type="submit"]:hover {
    box-shadow: 0 4px 16px rgba(83, 140, 18, 0.25);
    transform: translateY(-1px);
}

.ahma-auth__card .lost_reset_password p {
    font-size: 14px;
    color: var(--ahma-text);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .ahma-auth {
        padding: 40px 16px;
    }

    .ahma-auth__register-grid {
        grid-template-columns: 1fr;
    }

    .ahma-auth__card {
        padding: 32px 24px;
    }

    .ahma-auth__benefits {
        order: 2;
    }
}

/* ── Loyalty Hero ── */
.ahma-loyalty-hero {
    position: relative;
    padding: 40px;
    background: var(--ahma-dark);
    border-radius: var(--ahma-radius);
    margin-bottom: 24px;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.ahma-loyalty-hero__decor {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--ahma-gold-dim) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ahma-loyalty-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.ahma-loyalty-hero__balance {
    display: flex;
    flex-direction: column;
}

.ahma-loyalty-hero__label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    font-family: var(--ahma-font);
    margin-bottom: 4px;
}

.ahma-loyalty-hero__number {
    font-family: var(--ahma-font);
    font-size: clamp(40px, 6vw, 60px);
    font-weight: 800;
    color: var(--ahma-green);
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 6px;
    letter-spacing: -0.02em;
}

.ahma-loyalty-hero__number small {
    font-size: 18px;
    opacity: 0.6;
    font-weight: 600;
}

.ahma-loyalty-hero__value {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    width: fit-content;
}

.ahma-loyalty-hero__value strong {
    color: #fff;
}

.ahma-loyalty-hero__tier {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    min-width: 260px;
}

.ahma-loyalty-tier-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 50px;
    background: var(--tier-color, var(--ahma-gold));
    color: var(--ahma-dark);
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ahma-loyalty-progress-box {
    width: 100%;
}

.ahma-loyalty-progress {
    width: 100%;
    margin-bottom: 8px;
}

.ahma-loyalty-progress__bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.ahma-loyalty-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--tier-color, var(--ahma-gold)), var(--ahma-green));
    border-radius: 4px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.ahma-loyalty-progress__text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    display: block;
    text-align: right;
}

.ahma-loyalty-progress__text strong {
    color: #fff;
    font-weight: 600;
}

.ahma-loyalty-hero__max {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ahma-gold);
    background: rgba(225, 185, 152, 0.1);
    padding: 8px 16px;
    border-radius: 50px;
}

/* ── Sections ── */
.ahma-section {
    background: var(--ahma-card);
    border: 1px solid var(--ahma-border);
    border-radius: var(--ahma-radius-sm);
    padding: 32px;
    margin-bottom: 16px;
    box-shadow: var(--ahma-shadow);
}

.ahma-section__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--ahma-font);
    font-size: 18px;
    font-weight: 700;
    color: var(--ahma-text-heading);
    margin: 0 0 24px;
    letter-spacing: -0.01em;
}

.ahma-section__title svg {
    color: var(--ahma-gold);
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* ── Streak ── */
.ahma-streak {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    background: var(--ahma-bg);
    padding: 24px;
    border-radius: var(--ahma-radius-sm);
}

.ahma-streak {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    padding: 24px 20px;
    border-radius: var(--ahma-radius-sm);
    border: 1px solid var(--ahma-border);
    text-align: center;
}

.ahma-streak__status-box {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ahma-streak__count {
    font-size: 64px;
    font-weight: 800;
    color: var(--ahma-green);
    line-height: 1;
}

.ahma-streak__label {
    font-size: 14px;
    font-weight: 700;
    color: var(--ahma-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 8px 0 16px;
}

.ahma-streak__next-pill {
    display: inline-block;
    background: var(--ahma-bg);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    color: var(--ahma-text-heading);
    border: 1px solid var(--ahma-border);
}

.ahma-streak__timeline-container {
    width: 100%;
    max-width: 600px;
    position: relative;
    padding: 10px 0;
    margin-bottom: 10px;
}

.ahma-streak__line-bg {
    position: absolute;
    top: 18px;
    left: 40px;
    right: 40px;
    height: 4px;
    background: var(--ahma-border);
    border-radius: 2px;
}

.ahma-streak__milestones {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.ahma-streak__node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.ahma-streak__dot {
    width: 20px;
    height: 20px;
    background: #fff;
    border: 4px solid var(--ahma-border);
    border-radius: 50%;
    transition: all 0.3s;
}

.ahma-streak__node--reached .ahma-streak__dot {
    background: var(--ahma-green);
    border-color: var(--ahma-green);
    box-shadow: 0 0 0 6px #fff, 0 0 15px var(--ahma-green-dim);
}

.ahma-streak__node-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ahma-streak__node-time {
    font-size: 12px;
    font-weight: 700;
    color: var(--ahma-text-heading);
}

.ahma-streak__node-pts {
    font-size: 11px;
    font-weight: 800;
    color: var(--ahma-green);
}

.ahma-streak__node:not(.ahma-streak__node--reached) {
    opacity: 1;
}

.ahma-streak__footer {
    font-size: 13px;
    color: var(--ahma-text-dim);
    margin-top: 12px;
    padding: 12px 20px;
    background: var(--ahma-bg);
    border-radius: 12px;
    max-width: 500px;
}

/* ── Referral – two-column layout ── */
.ahma-referral {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 10px;
}

.ahma-referral__title {
    font-family: var(--ahma-font);
    font-size: 32px;
    font-weight: 800;
    color: var(--ahma-text-heading);
    margin: 0 0 20px;
    line-height: 1.15;
}

.ahma-referral__desc {
    font-size: 15px;
    color: var(--ahma-text-dim);
    line-height: 1.7;
    margin: 0 0 36px;
}

/* Steps */
.ahma-referral__steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ahma-referral__step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--ahma-border);
}

.ahma-referral__step:first-child {
    padding-top: 0;
}

.ahma-referral__step:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ahma-referral__step-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(157, 223, 1, 0.4);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    color: var(--ahma-green);
    margin-top: 2px;
    background: rgba(157, 223, 1, 0.08);
}

.ahma-referral__step-content h4 {
    font-family: var(--ahma-font);
    font-size: 16px;
    font-weight: 700;
    color: var(--ahma-text-heading);
    margin: 0 0 6px;
}

.ahma-referral__step-content p {
    font-size: 14px;
    color: var(--ahma-text-dim);
    line-height: 1.6;
    margin: 0;
}

/* Right column – link box */
.ahma-referral__right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ahma-referral__link-box {
    background: var(--ahma-bg);
    border: 1px solid var(--ahma-border);
    border-radius: var(--ahma-radius-sm);
    padding: 32px;
}

.ahma-referral__link-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--ahma-text-dim);
    margin-bottom: 16px;
}

.ahma-referral__copy-row {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
}

.ahma-referral__copy-row input {
    flex: 1;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--ahma-border);
    border-radius: var(--ahma-radius-sm);
    background: #fff;
    font-size: 14px;
    color: var(--ahma-text-heading);
    outline: none;
    transition: border-color 0.2s;
}

.ahma-referral__copy-row input:focus {
    border-color: var(--ahma-green);
}

.ahma-referral__copy-btn {
    height: 48px;
    padding: 0 24px;
    background: var(--ahma-green);
    color: #fff;
    border: none;
    border-radius: var(--ahma-radius-sm);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.ahma-referral__copy-btn:hover {
    background: #89c201;
    transform: translateY(-1px);
}

.ahma-referral__stats-divider {
    height: 1px;
    background: var(--ahma-border);
    margin-bottom: 28px;
}

.ahma-referral__stats-row {
    display: flex;
    justify-content: center;
    gap: 64px;
}

.ahma-referral__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ahma-referral__stat-val {
    font-family: var(--ahma-font);
    font-size: 48px;
    font-weight: 800;
    color: var(--ahma-green);
    line-height: 1.1;
}

.ahma-referral__stat-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--ahma-text-dim);
    margin-top: 8px;
}

.ahma-referral__footnote {
    font-size: 12px;
    font-style: italic;
    color: var(--ahma-text-dim);
    margin: 16px 0 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .ahma-referral {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .ahma-referral__title {
        font-size: 28px;
    }

    .ahma-referral__stats-row {
        gap: 40px;
    }

    .ahma-referral__stat-val {
        font-size: 36px;
    }

    .ahma-referral__copy-row {
        flex-direction: column;
    }

    .ahma-referral__copy-btn {
        width: 100%;
    }
}

/* ── Social ── */
.ahma-social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 991px) {
    .ahma-social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .ahma-social-grid {
        grid-template-columns: 1fr;
    }
}

.ahma-social-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 24px 20px;
    background: #fff;
    border: 1px solid var(--ahma-border);
    border-radius: var(--ahma-radius-sm);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.ahma-social-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ahma-shadow);
    border-color: var(--ahma-green-dim);
}

.ahma-social-card--done {
    background: #f8fff0;
    border-color: rgba(157, 223, 1, 0.15);
}

.ahma-social-card--done:hover {
    border-color: var(--ahma-green);
}

.ahma-social-card__icon {
    width: 32px;
    height: 32px;
    color: var(--ahma-text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.ahma-social-card:hover .ahma-social-card__icon {
    color: var(--ahma-green);
}

.ahma-social-card--done .ahma-social-card__icon {
    color: var(--ahma-green);
}

.ahma-social-card__icon svg {
    width: 100%;
    height: 100%;
}

.ahma-social-card__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ahma-social-card__name {
    font-size: 16px;
    font-weight: 800;
    color: var(--ahma-text-heading);
    font-family: var(--ahma-font);
}

.ahma-social-card__points {
    display: flex;
    align-items: baseline;
    gap: 4px;
    color: var(--ahma-green);
}

.ahma-social-card__points strong {
    font-size: 14px;
    font-weight: 800;
}

.ahma-social-card__points span {
    font-size: 9px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.ahma-social-card__action {
    display: flex;
    align-items: center;
}

.ahma-social-card__check {
    color: var(--ahma-green);
    display: flex;
    background: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(157, 223, 1, 0.15);
}

/* ── Achievements ── */
.ahma-achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.ahma-achievement {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #fff;
    border: 1px solid var(--ahma-border);
    border-radius: 12px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    text-align: left;
}

.ahma-achievement:hover {
    border-color: var(--ahma-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ahma-achievement--earned {
    background: linear-gradient(135deg, #fff 0%, var(--ahma-gold-dim) 100%);
    border-color: var(--ahma-gold);
}

.ahma-achievement--locked {
    filter: grayscale(1);
    opacity: 0.7;
}

.ahma-achievement__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ahma-bg-alt);
    color: var(--ahma-gold);
    border-radius: 10px;
    padding: 10px;
}

.ahma-achievement__icon svg {
    width: 100%;
    height: 100%;
}

.ahma-achievement__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ahma-achievement--earned .ahma-achievement__icon {
    background: var(--ahma-gold);
    color: #fff;
}

.ahma-achievement__content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ahma-achievement__name {
    font-size: 13px;
    font-weight: 700;
    color: var(--ahma-text-heading);
}

.ahma-achievement__desc {
    font-size: 11px;
    color: var(--ahma-text-dim);
    line-height: 1.3;
}

.ahma-achievement__progress-wrap {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ahma-achievement__progress {
    flex-grow: 1;
    height: 4px;
    background: var(--ahma-border);
    border-radius: 2px;
    overflow: hidden;
}

.ahma-achievement__progress-bar {
    height: 100%;
    background: var(--ahma-gold);
    border-radius: 2px;
}

.ahma-achievement__progress-text {
    font-size: 10px;
    font-weight: 700;
    color: var(--ahma-text-dim);
    white-space: nowrap;
}

.ahma-achievement__earned-badge {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: var(--ahma-gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ahma-achievement__earned-badge svg {
    width: 12px;
    height: 12px;
}

.ahma-achievement__pts {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 11px;
    font-weight: 700;
    color: var(--ahma-green);
}

@media (max-width: 480px) {
    .ahma-achievements-grid {
        grid-template-columns: 1fr;
    }
}

/* ── History ── */
.ahma-history {
    margin-top: 10px;
}

.ahma-history__table {
    width: 100%;
    border-collapse: collapse;
}

.ahma-history__table thead th {
    text-align: left;
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ahma-text-dim);
    border-bottom: 2px solid var(--ahma-border);
}

.ahma-history__table tbody td {
    padding: 16px;
    border-bottom: 1px solid var(--ahma-border);
    vertical-align: middle;
}

.ahma-history__date {
    display: flex;
    flex-direction: column;
}

.ahma-history__date-main {
    font-size: 13px;
    font-weight: 600;
    color: var(--ahma-text-heading);
}

.ahma-history__date-time {
    font-size: 11px;
    color: var(--ahma-text-dim);
}

.ahma-history__info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ahma-history__icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ahma-bg-alt);
    color: var(--ahma-text-dim);
    border-radius: 8px;
    padding: 7px;
    flex-shrink: 0;
}

.ahma-history__icon svg {
    width: 100%;
    height: 100%;
}

.ahma-history__note {
    display: flex;
    flex-direction: column;
}

.ahma-history__note-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--ahma-text-heading);
}

.ahma-history__pts-cell {
    text-align: right;
}

.ahma-history__pts {
    font-size: 15px;
    font-weight: 700;
}

.ahma-history__pts--plus {
    color: var(--ahma-green);
}

.ahma-history__pts--minus {
    color: #ff4d4d;
}

.ahma-history__load-more {
    margin: 20px auto 0;
    display: block;
    width: fit-content;
}

@media (max-width: 600px) {
    .ahma-history__table thead {
        display: none;
    }

    .ahma-history__table tbody td {
        display: block;
        padding: 10px 16px;
        border: none;
    }

    .ahma-history__table tr {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid var(--ahma-border);
        position: relative;
    }

    .ahma-history__pts-cell {
        position: absolute;
        top: 20px;
        right: 0;
    }
}


.ahma-history__table tbody tr {
    transition: background 0.15s;
}

.ahma-history__table tbody tr:hover td {
    background: var(--ahma-bg);
}

.ahma-positive {
    color: var(--ahma-green);
    font-weight: 700;
    font-family: var(--ahma-font);
}

.ahma-negative {
    color: #c0392b;
    font-weight: 700;
    font-family: var(--ahma-font);
}

.ahma-history__load-more {
    display: block;
    width: 100%;
    margin-top: 16px;
    text-align: center;
}

/* ── View Order ── */
.ahma-vo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--ahma-border);
}

.ahma-vo-header__left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ahma-vo-header__title {
    font-family: var(--ahma-font);
    font-size: 20px;
    font-weight: 700;
    color: var(--ahma-text-heading);
    margin: 0;
    letter-spacing: -0.02em;
}

.ahma-vo-header__date {
    font-size: 13px;
    color: var(--ahma-text-dim);
}

.ahma-vo-section {
    background: var(--ahma-card);
    border: 1px solid var(--ahma-border);
    border-radius: var(--ahma-radius-sm);
    padding: 24px 28px;
    margin-bottom: 14px;
}

.ahma-vo-section__title {
    font-family: var(--ahma-font);
    font-size: 15px;
    font-weight: 700;
    color: var(--ahma-text-heading);
    margin: 0 0 18px;
    letter-spacing: -0.01em;
}

.ahma-vo-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ahma-vo-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--ahma-border);
}

.ahma-vo-item:last-child {
    border-bottom: none;
}

.ahma-vo-item__img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--ahma-bg);
}

.ahma-vo-item__img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ahma-text-dim);
}

.ahma-vo-item__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ahma-vo-item__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ahma-text-heading);
}

.ahma-vo-item__meta {
    font-size: 12px;
    color: var(--ahma-text-dim);
}

.ahma-vo-item__qty {
    font-size: 12px;
    color: var(--ahma-text-dim);
    font-weight: 600;
}

.ahma-vo-item__price {
    font-family: var(--ahma-font);
    font-size: 15px;
    font-weight: 700;
    color: var(--ahma-text-heading);
    flex-shrink: 0;
    white-space: nowrap;
}

.ahma-vo-totals {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--ahma-border);
}

.ahma-vo-totals__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.ahma-vo-totals__row--total {
    padding-top: 12px;
    margin-top: 6px;
    border-top: 2px solid var(--ahma-dark);
}

.ahma-vo-totals__label {
    font-size: 13px;
    color: var(--ahma-text-dim);
    font-weight: 600;
}

.ahma-vo-totals__value {
    font-size: 14px;
    color: var(--ahma-text-heading);
    font-weight: 600;
}

.ahma-vo-totals__row--total .ahma-vo-totals__label {
    font-size: 14px;
    color: var(--ahma-text-heading);
    font-weight: 700;
    font-family: var(--ahma-font);
}

.ahma-vo-totals__row--total .ahma-vo-totals__value {
    font-family: var(--ahma-font);
    font-size: 20px;
    font-weight: 800;
    color: var(--ahma-green);
}

.ahma-vo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 14px;
}

.ahma-vo-detail {
    background: var(--ahma-card);
    border: 1px solid var(--ahma-border);
    border-radius: var(--ahma-radius-sm);
    padding: 20px 24px;
}

.ahma-vo-detail__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ahma-font);
    font-size: 13px;
    font-weight: 700;
    color: var(--ahma-text-heading);
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}

.ahma-vo-detail__title svg {
    color: var(--ahma-gold);
    flex-shrink: 0;
}

.ahma-vo-detail p,
.ahma-vo-detail address {
    font-size: 14px;
    color: var(--ahma-text);
    margin: 0 0 4px;
    font-style: normal;
    line-height: 1.6;
}

.ahma-vo-detail__sub {
    font-size: 12px !important;
    color: var(--ahma-text-dim) !important;
}

.ahma-vo-notes {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ahma-vo-note {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--ahma-border);
    align-items: flex-start;
}

.ahma-vo-note:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ahma-vo-note__date {
    font-size: 12px;
    color: var(--ahma-text-dim);
    font-weight: 600;
    white-space: nowrap;
    min-width: 110px;
    padding-top: 2px;
}

.ahma-vo-note__text {
    font-size: 14px;
    color: var(--ahma-text);
    line-height: 1.6;
}

.ahma-vo-note__text p {
    margin: 0;
}

/* ── Account Details Override ── */
.ahma-account-details p:has(#account_display_name) {
    display: none !important;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .ahma {
        margin: 0 10px;
    }
}

@media (max-width: 768px) {
    .ahma-header {
        padding: 24px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
        position: relative;
    }

    .ahma-header__avatar {
        width: 48px;
        height: 48px;
    }

    .ahma-header__info {
        width: 100%;
    }

    .ahma-header__meta {
        justify-content: center;
    }

    .ahma-header__logout {
        position: absolute;
        top: 15px;
        right: 15px;
    }

    .ahma-nav__item {
        flex: 1;
        justify-content: center;
        padding: 12px 10px;
        font-size: 13px;
    }

    .ahma-nav__select {
        display: none;
    }

    .ahma-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }


    .ahma-social-grid {
        grid-template-columns: 1fr;
    }

    .ahma-achievements-grid {
        grid-template-columns: 1fr;
    }

    .ahma-section {
        padding: 24px 20px;
    }

    .ahma-loyalty-hero__content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .ahma-loyalty-hero__balance {
        align-items: center;
    }
}

@media (max-width: 650px) {
    .ahma-nav {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        margin-bottom: 20px;
    }

    .ahma-nav__item {
        display: none !important;
    }

    .ahma-nav__select {
        display: block !important;
        width: 100%;
        height: 52px;
        padding: 0 20px;
        border-radius: 12px;
        border: 2px solid var(--ahma-border);
        background: var(--ahma-card);
        color: var(--ahma-text-heading);
        font-family: var(--ahma-font);
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
        -webkit-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23202328' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 20px center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }
}

@media (max-width: 480px) {
    .ahma-header {
        padding: 20px 15px;
    }

    .ahma-header__greeting {
        font-size: 17px;
    }

    .ahma-nav__label {
        display: none;
        /* Icon only on very small devices */
    }

    .ahma-nav__item {
        padding: 10px;
    }

    .ahma-stats-grid {
        grid-template-columns: 1fr;
    }


    .ahma-vo-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .ahma-vo-grid {
        grid-template-columns: 1fr;
    }

    .ahma-order-card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .ahma-order-card__meta {
        width: 100%;
    }

    .ahma-order-card__actions {
        width: 100%;
        flex-direction: column;
    }

    .ahma-order-card__btn {
        width: 100%;
    }
}