/* Account / Auth UI — Samraa Shop */

/* Dashboard is self-contained (no storefront style.min.css) */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&family=Poppins:wght@400;600;700&display=swap");

/* Logo language swap — only needed when storefront CSS is absent */
html.acc-dash-html [dir="rtl"] .lang-en,
html.acc-dash-html[dir="rtl"] .lang-en { display: none !important; }
html.acc-dash-html [dir="ltr"] .lang-ar,
html.acc-dash-html[dir="ltr"] .lang-ar { display: none !important; }

/* Reset only for dashboard document */
html.acc-dash-html *,
html.acc-dash-html *::before,
html.acc-dash-html *::after {
    box-sizing: border-box;
}

html.acc-dash-html {
    height: 100%;
}

html.acc-dash-html body.acc-dash-mode {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #f7f7fb;
    color: #1f2937;
    font-family: "Poppins", "Inter", system-ui, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

html.acc-dash-html body.acc-dash-mode.no-scroll {
    overflow: hidden;
}

.acc-page {
    --acc-radius: 16px;
    --acc-radius-sm: 12px;
    --acc-pad: clamp(1rem, 3vw, 1.75rem);
    --acc-gap: clamp(1rem, 2.5vw, 1.5rem);
    --acc-btn-h: 48px;
    --acc-card-min-h: 280px;
    --acc-shadow: 0 8px 28px rgba(42, 39, 105, 0.08);
    --acc-shadow-hover: 0 14px 36px rgba(42, 39, 105, 0.14);
    --acc-surface: #f7f7fb;
    --acc-border: rgba(61, 57, 146, 0.12);
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

/* Auth / guest pages only (storefront body already offsets fixed header) */
.acc-page:not(.acc-page--dash) {
    padding: 1rem 0 2.5rem;
    background:
        radial-gradient(1200px 400px at 50% -10%, rgba(61, 57, 146, 0.08), transparent 60%),
        var(--bg-main, #fff);
}

.acc-page .acc-container {
    width: min(1100px, calc(100% - 2rem));
    margin-inline: auto;
    max-width: 100%;
}

.acc-page .acc-container-sm {
    width: min(440px, calc(100% - 2rem));
    margin-inline: auto;
}

/* —— Guest welcome —— */
.acc-welcome {
    text-align: center;
    padding-block: clamp(0.5rem, 2vw, 1.5rem);
}

.acc-welcome__logo {
    width: clamp(88px, 22vw, 120px);
    height: auto;
    margin: 0 auto 1.25rem;
    display: block;
}

.acc-welcome__title {
    font-size: clamp(1.5rem, 4.5vw, 2.1rem);
    font-weight: 800;
    color: var(--primary-dark, #2a2769);
    margin: 0 0 0.65rem;
    line-height: 1.25;
}

.acc-welcome__lead {
    color: var(--text-muted, #6b7280);
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    max-width: 36rem;
    margin: 0 auto clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.7;
}

.acc-welcome__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--acc-gap);
    align-items: stretch;
}

@media (min-width: 768px) {
    .acc-welcome__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.acc-choice-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: var(--acc-card-min-h);
    height: 100%;
    padding: var(--acc-pad);
    background: #fff;
    border: 1px solid var(--acc-border);
    border-radius: var(--acc-radius);
    box-shadow: var(--acc-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.acc-choice-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--acc-shadow-hover);
    border-color: rgba(61, 57, 146, 0.28);
}

.acc-choice-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.1rem;
    background: rgba(61, 57, 146, 0.08);
    color: var(--primary-color, #3d3992);
    flex-shrink: 0;
}

.acc-choice-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.6rem;
    color: var(--text-main, #1f2937);
}

.acc-choice-card__desc {
    font-size: 0.92rem;
    color: var(--text-muted, #6b7280);
    line-height: 1.65;
    margin: 0 0 1.25rem;
    flex: 1;
}

.acc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--acc-btn-h);
    min-height: var(--acc-btn-h);
    padding: 0 1.35rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
}

.acc-btn:hover {
    text-decoration: none;
}

.acc-btn--primary {
    background: var(--primary-color, #3d3992);
    color: #fff;
}

.acc-btn--primary:hover {
    background: var(--primary-dark, #2a2769);
    color: #fff;
}

.acc-btn--danger {
    background: #b42318;
    color: #fff;
    border-color: #b42318;
}

.acc-btn--danger:hover {
    background: #912018;
    color: #fff;
    border-color: #912018;
}

.acc-btn--danger:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.acc-danger-zone {
    margin-top: 1.5rem;
    border: 1px solid #f3b4ae;
    background: linear-gradient(180deg, #fff8f7 0%, #fff 55%);
    box-shadow: none;
}

.acc-danger-zone__title {
    color: #912018 !important;
}

.acc-danger-zone__lead {
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #7a271a;
}

.acc-danger-zone__list {
    margin: 0 0 1.15rem;
    padding-inline-start: 1.2rem;
    color: var(--text-muted, #6b7280);
    font-size: 0.86rem;
    line-height: 1.7;
}

.acc-danger-zone__list li + li {
    margin-top: 0.25rem;
}

.acc-danger-zone .acc-btn--danger {
    min-width: 200px;
}

.acc-delete-modal {
    text-align: right;
    direction: rtl;
}

.acc-delete-modal label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0.75rem 0 0.35rem;
    color: #2a2769;
}

.acc-delete-modal input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.92rem;
}

.acc-delete-modal .acc-delete-hint {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    color: #6b7280;
}

.acc-delete-modal .acc-delete-warn {
    margin: 0 0 0.5rem;
    padding: 0.75rem 0.85rem;
    background: #fff5f4;
    border: 1px solid #f3b4ae;
    border-radius: 10px;
    color: #7a271a;
    font-size: 0.88rem;
    line-height: 1.55;
}

.acc-btn--outline {
    background: #fff;
    color: var(--primary-color, #3d3992);
    border-color: rgba(61, 57, 146, 0.35);
}

.acc-btn--outline:hover {
    background: rgba(61, 57, 146, 0.06);
    color: var(--primary-dark, #2a2769);
    border-color: var(--primary-color, #3d3992);
}

.acc-btn--ghost {
    background: transparent;
    color: var(--text-muted, #6b7280);
    border-color: var(--acc-border);
}

.acc-btn--ghost:hover {
    color: var(--primary-color, #3d3992);
    border-color: rgba(61, 57, 146, 0.35);
}

.acc-btn--danger {
    background: #fff;
    color: #b91c1c;
    border-color: rgba(185, 28, 28, 0.35);
}

.acc-btn--danger:hover {
    background: #fef2f2;
    color: #991b1b;
}

/* —— Auth pages (login / register) —— */
.acc-auth {
    padding-block: clamp(1rem, 3vw, 2rem);
}

.acc-auth__card {
    background: #fff;
    border: 1px solid var(--acc-border);
    border-radius: var(--acc-radius);
    box-shadow: var(--acc-shadow);
    padding: clamp(1.5rem, 4vw, 2.25rem);
}

.acc-auth__logo {
    width: 72px;
    height: auto;
    display: block;
    margin: 0 auto 1rem;
}

.acc-auth__title {
    text-align: center;
    font-size: clamp(1.35rem, 3.5vw, 1.75rem);
    font-weight: 800;
    margin: 0 0 0.4rem;
    color: var(--primary-dark, #2a2769);
}

.acc-auth__sub {
    text-align: center;
    color: var(--text-muted, #6b7280);
    font-size: 0.95rem;
    margin: 0 0 1.5rem;
}

.acc-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.acc-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-main, #1f2937);
    margin-bottom: 0.4rem;
}

.acc-field input,
.acc-field textarea,
.acc-field select {
    width: 100%;
    max-width: 100%;
    height: var(--acc-btn-h);
    padding: 0 0.95rem;
    border: 1px solid var(--acc-border);
    border-radius: var(--acc-radius-sm);
    font-size: 0.95rem;
    background: #fff;
    color: var(--text-main, #1f2937);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.acc-field textarea {
    height: auto;
    min-height: 88px;
    padding: 0.85rem 0.95rem;
    resize: vertical;
}

.acc-field input:focus,
.acc-field textarea:focus {
    outline: none;
    border-color: var(--primary-color, #3d3992);
    box-shadow: 0 0 0 3px rgba(61, 57, 146, 0.12);
}

.acc-field input:disabled {
    background: var(--acc-surface);
    color: var(--text-muted, #6b7280);
}

.acc-auth__footer {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.92rem;
    color: var(--text-muted, #6b7280);
}

.acc-auth__footer a {
    color: var(--primary-color, #3d3992);
    font-weight: 600;
}

.acc-auth__footer a:hover {
    text-decoration: underline;
}

.acc-msg {
    margin-top: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    min-height: 1.25em;
}

.acc-msg.is-ok { color: #15803d; }
.acc-msg.is-err { color: #b91c1c; }

/* —— Dashboard shell (header + sidebar locked, main scrolls) —— */
.acc-dash-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: var(--acc-dash-header-h, 64px);
    min-height: var(--acc-dash-header-h, 64px);
    padding: 0 clamp(0.75rem, 2vw, 1.25rem);
    background: #23214f;
    border-bottom: 1px solid rgba(226, 198, 149, 0.4);
    position: relative;
    flex-shrink: 0;
    z-index: 1000;
    width: 100%;
    max-width: 100%;
}

.acc-page.acc-page--dash,
.acc-page--dash {
    --acc-sidebar-w: 268px;
    --acc-sidebar-collapsed: 76px;
    --acc-dash-header-h: 64px;
    margin: 0;
    padding: 0;
    background: var(--acc-surface);
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.acc-dash-header__logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    min-width: 0;
}

.acc-dash-header__logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    /* Same gold treatment as site header logo */
    filter: brightness(0) saturate(100%) invert(83%) sepia(26%) saturate(636%) hue-rotate(344deg) brightness(95%) contrast(89%);
}

.acc-dash-header__actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-inline-start: auto;
    flex-shrink: 0;
    position: relative;
}

.acc-content-title {
    font-size: clamp(1.15rem, 2.5vw, 1.4rem);
    font-weight: 800;
    color: var(--primary-dark, #2a2769);
    margin: 0 0 0.85rem;
    line-height: 1.3;
}

.acc-panel > .acc-card-block > .acc-panel-title {
    font-size: clamp(1.2rem, 2.8vw, 1.5rem);
    font-weight: 800;
    color: var(--primary-dark, #2a2769);
}

.acc-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.acc-icon-btn:hover {
    background: rgba(255, 255, 255, 0.16);
}

.acc-shell {
    position: relative;
    display: flex;
    align-items: stretch;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.acc-sidebar-backdrop {
    display: none;
}

.acc-sidebar {
    width: var(--acc-sidebar-w);
    flex-shrink: 0;
    background: #fff;
    border-inline-end: 1px solid var(--acc-border);
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    align-self: stretch;
    overflow: hidden;
    z-index: 40;
    transition: width 0.25s ease, transform 0.28s ease;
}

.acc-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0.85rem;
    border-bottom: 1px solid var(--acc-border);
    min-height: 64px;
}

.acc-sidebar__brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(61, 57, 146, 0.1);
    color: var(--primary-color, #3d3992);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.15rem;
}

.acc-sidebar__brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.acc-sidebar__brand-text strong {
    font-size: 0.95rem;
    color: var(--primary-dark, #2a2769);
}

.acc-sidebar__brand-text span {
    font-size: 0.75rem;
    color: var(--text-muted, #6b7280);
}

/* Edge toggle — sits on sidebar border, outside the panel */
.acc-sidebar-toggle {
    display: none;
    position: absolute;
    top: 48px;
    inset-inline-start: calc(var(--acc-sidebar-w) - 14px);
    z-index: 60;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--acc-border);
    border-radius: 50%;
    background: #fff;
    color: var(--primary-color, #3d3992);
    box-shadow: 0 2px 10px rgba(42, 39, 105, 0.12);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: inset-inline-start 0.28s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.acc-sidebar-toggle:hover {
    background: var(--primary-color, #3d3992);
    color: #fff;
    box-shadow: 0 4px 14px rgba(61, 57, 146, 0.28);
}

.acc-sidebar-toggle i {
    font-size: 0.7rem;
    transition: transform 0.28s ease;
    /* RTL default: chevron-right points toward content (collapse inward) */
    transform: none;
}

[dir="ltr"] .acc-sidebar-toggle i {
    transform: scaleX(-1);
}

.acc-shell.is-collapsed .acc-sidebar-toggle {
    inset-inline-start: calc(var(--acc-sidebar-collapsed) - 14px);
}

.acc-shell.is-collapsed .acc-sidebar-toggle i {
    transform: scaleX(-1);
}

[dir="ltr"] .acc-shell.is-collapsed .acc-sidebar-toggle i {
    transform: none;
}

.acc-sidebar__nav {
    flex: 1;
    min-height: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.acc-sidebar__nav-scroll {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.85rem 0.75rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.acc-sidebar__nav-scroll > .acc-side-link {
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0;
}

.acc-sidebar__nav-scroll > .acc-side-link:last-of-type {
    border-bottom: 1px solid #e5e7eb;
}

.acc-sidebar__label + .acc-side-link {
    border-top: 1px solid #e5e7eb;
}

.acc-sidebar__footer {
    flex-shrink: 0;
    margin-top: auto;
    padding: 0.65rem 0.75rem 0.85rem;
    border-top: 1px solid #d1d5db;
    background: #fff;
}

.acc-sidebar__label {
    margin: 0.75rem 0.65rem 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-muted, #6b7280);
    text-transform: uppercase;
}

.acc-side-group {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-top: 0;
    padding-top: 0.35rem;
    border-top: 1px solid #d1d5db;
}

.acc-side-group + .acc-side-group {
    margin-top: 0;
    border-top: 1px solid #d1d5db;
}

.acc-side-group__toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 44px;
    padding: 0.65rem 0.85rem;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--text-main, #1f2937);
    font-weight: 700;
    font-size: 0.9rem;
    text-align: start;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.acc-side-group__toggle > i:first-child {
    width: 1.25rem;
    text-align: center;
    color: var(--primary-color, #3d3992);
    flex-shrink: 0;
}

.acc-side-group__toggle span {
    flex: 1;
    min-width: 0;
}

.acc-side-group__chev {
    margin-inline-start: auto;
    font-size: 0.7rem;
    color: var(--text-muted, #6b7280);
    transition: transform 0.2s ease;
}

.acc-side-group.is-open .acc-side-group__chev {
    transform: rotate(180deg);
}

.acc-side-group__toggle:hover,
.acc-side-group.is-open > .acc-side-group__toggle {
    background: rgba(61, 57, 146, 0.06);
    color: var(--primary-dark, #2a2769);
}

.acc-side-group.is-active > .acc-side-group__toggle {
    color: var(--primary-dark, #2a2769);
}

.acc-side-group__panel {
    display: none;
    flex-direction: column;
    gap: 0;
    margin: 0.1rem 0 0.15rem;
    padding: 0 0 0 0.35rem;
    border: none;
    border-radius: 0;
    background: transparent;
}

.acc-side-group.is-open > .acc-side-group__panel,
.acc-side-group__panel:not([hidden]) {
    display: flex;
}

.acc-side-group__panel[hidden] {
    display: none !important;
}

.acc-side-link--sub {
    min-height: 40px;
    padding-block: 0.55rem;
    font-size: 0.86rem;
    font-weight: 600;
    border-radius: 10px;
}

.acc-side-link--sub + .acc-side-link--sub {
    border-top: 1px solid #d1d5db;
    border-radius: 0;
}

.acc-side-link--sub:first-child {
    border-radius: 10px 10px 0 0;
}

.acc-side-link--sub:last-child {
    border-radius: 0 0 10px 10px;
}

.acc-side-link--sub:only-child {
    border-radius: 10px;
    border-top: none;
}

.acc-side-badge {
    margin-inline-start: auto;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: #b42318;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.acc-aff-notif-list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--acc-border, #e5e7eb);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.acc-aff-notif-list--preview {
    max-height: 320px;
    overflow: auto;
}

.acc-aff-notif-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    width: 100%;
    text-align: right;
    padding: 0.85rem 1rem;
    border: 0;
    border-bottom: 1px solid #f1f2f6;
    background: #fff;
    cursor: pointer;
    color: inherit;
    font: inherit;
}

.acc-aff-notif-item:last-child {
    border-bottom: 0;
}

.acc-aff-notif-item.is-unread {
    background: #f8f7ff;
}

.acc-aff-notif-item__tag {
    align-self: flex-start;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--primary-color, #3d3992);
    background: rgba(61, 57, 146, 0.08);
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
}

.acc-aff-notif-item strong {
    font-size: 0.9rem;
    color: var(--primary-dark, #2a2769);
}

.acc-aff-notif-item span:not(.acc-aff-notif-item__tag) {
    font-size: 0.82rem;
    color: var(--text-muted, #6b7280);
    line-height: 1.45;
}

.acc-aff-notif-item time {
    font-size: 0.72rem;
    color: #9ca3af;
}

div.acc-aff-notif-item {
    cursor: default;
}

.acc-side-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 44px;
    padding: 0.65rem 0.85rem;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--text-main, #1f2937);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: start;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.acc-side-link i {
    width: 1.25rem;
    text-align: center;
    color: var(--primary-color, #3d3992);
    flex-shrink: 0;
}

.acc-side-link:hover {
    background: rgba(61, 57, 146, 0.06);
    color: var(--primary-dark, #2a2769);
}

.acc-side-link.is-active {
    background: rgba(61, 57, 146, 0.12);
    color: var(--primary-dark, #2a2769);
    box-shadow: inset 3px 0 0 var(--primary-color, #3d3992);
}

[dir="ltr"] .acc-side-link.is-active {
    box-shadow: inset -3px 0 0 var(--primary-color, #3d3992);
}

.acc-side-link--danger {
    color: #b91c1c;
    margin-top: 0.35rem;
}

.acc-side-link--danger i {
    color: #b91c1c;
}

.acc-side-link--danger:hover {
    background: #fef2f2;
}

.acc-side-link[hidden] {
    display: none !important;
}

.acc-workspace {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--acc-surface);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.acc-topbar__menu {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.acc-topbar__user {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
    max-width: 200px;
}

.acc-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e2c695, #c9a96a);
    color: #23214f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.35);
    overflow: hidden;
}

.acc-topbar__user-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

@media (max-width: 400px) {
    .acc-topbar__user-meta {
        display: none;
    }
}

.acc-topbar__user-meta strong {
    font-size: 0.85rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.acc-topbar__user-meta span {
    font-size: 0.72rem;
    color: var(--text-muted, #6b7280);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.acc-workspace__body {
    padding: 1rem clamp(1rem, 2.5vw, 1.5rem) 1.5rem;
    max-width: 100%;
    min-width: 0;
}

.acc-panel {
    display: none;
}

.acc-panel.is-active {
    display: block;
}

.acc-panel[hidden] {
    display: none !important;
}

.acc-card-block {
    background: #fff;
    border: 1px solid var(--acc-border);
    border-radius: var(--acc-radius);
    box-shadow: var(--acc-shadow);
    padding: clamp(1.15rem, 2.5vw, 1.75rem);
}

.acc-panel-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    color: var(--text-main, #1f2937);
}

.acc-panel-lead {
    color: var(--text-muted, #6b7280);
    font-size: 0.92rem;
    margin: 0 0 1.35rem;
}

.acc-profile-dl {
    display: grid;
    gap: 0.85rem;
    margin: 0 0 1.5rem;
}

.acc-profile-dl > div {
    display: grid;
    gap: 0.2rem;
    padding: 0.85rem 1rem;
    background: var(--acc-surface);
    border-radius: var(--acc-radius-sm);
    border: 1px solid var(--acc-border);
}

.acc-profile-dl dt {
    font-size: 0.75rem;
    color: var(--text-muted, #6b7280);
    font-weight: 600;
}

.acc-profile-dl dd {
    margin: 0;
    font-weight: 600;
    color: var(--text-main, #1f2937);
    word-break: break-word;
}

/* —— Settings: one full-width responsive card —— */
#tab-settings {
    width: 100%;
    max-width: 100%;
}

.acc-settings.acc-card-block,
.acc-card-block.acc-settings {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: clamp(1rem, 2.5vw, 2rem);
}

.acc-settings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2.25rem);
    width: 100%;
}

.acc-settings-avatar-wrap {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
}

.acc-settings-block {
    min-width: 0;
    width: 100%;
}

.acc-settings-block .acc-form {
    width: 100%;
    max-width: 100%;
}

.acc-settings-block .acc-field,
.acc-settings-block .acc-field input,
.acc-settings-block .acc-field select,
.acc-settings-block .acc-btn {
    width: 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .acc-settings-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
    }

    .acc-settings-avatar-wrap,
    .acc-settings-block--full {
        grid-column: 1 / -1;
    }

    .acc-settings-block .acc-btn {
        width: auto;
        min-width: 180px;
    }
}

@media (min-width: 1200px) {
    .acc-settings.acc-card-block {
        padding: 2rem 2.25rem;
    }
}

.acc-settings-block__title {
    margin: 0 0 1rem;
    font-size: clamp(0.98rem, 2vw, 1.08rem);
    font-weight: 700;
    color: var(--primary-dark, #2a2769);
}

.acc-settings-avatar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
    padding: 1rem 1.15rem;
    background: var(--acc-surface, #f7f7fb);
    border: 1px solid var(--acc-border);
    border-radius: var(--acc-radius-sm);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.acc-settings-avatar__img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e2c695, #c9a96a);
    color: #23214f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
    border: 2px solid rgba(35, 33, 79, 0.12);
}

.acc-settings-avatar__meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 0.15rem;
    line-height: 1.35;
}

.acc-settings-avatar__meta strong {
    font-size: 0.98rem;
    color: var(--primary-dark, #2a2769);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.acc-settings-avatar__meta span {
    font-size: 0.84rem;
    color: var(--text-muted, #6b7280);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.acc-settings-avatar__img img,
.acc-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.acc-avatar-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.15rem;
    background: var(--acc-surface, #f7f7fb);
    border: 1px solid var(--acc-border);
    border-radius: var(--acc-radius-sm);
    box-sizing: border-box;
}

.acc-avatar-panel__preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.acc-avatar-preview {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e2c695, #c9a96a);
    color: #23214f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.55rem;
    flex-shrink: 0;
    border: 3px solid rgba(35, 33, 79, 0.1);
    overflow: hidden;
    position: relative;
}

.acc-avatar-preview img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.acc-avatar-preview.is-pending {
    box-shadow: 0 0 0 3px rgba(201, 169, 106, 0.45);
}

.acc-avatar-panel__meta {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.acc-avatar-hint {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--text-muted, #6b7280);
}

.acc-avatar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.acc-btn--ghost {
    background: #fff;
    border: 1px solid var(--acc-border, #e5e7eb);
    color: var(--primary-dark, #2a2769);
    padding: 0.55rem 0.95rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
}

.acc-btn--ghost:hover {
    border-color: #c9a96a;
    background: #fffdf8;
}

.acc-btn--danger-text {
    color: #b42318;
}

.acc-btn--danger-text:hover {
    border-color: #f3b4ae;
    background: #fff5f4;
}

.acc-avatar-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 1.35rem 1rem;
    border: 1.5px dashed rgba(35, 33, 79, 0.22);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.acc-avatar-drop i {
    font-size: 1.35rem;
    color: #c9a96a;
    margin-bottom: 0.2rem;
}

.acc-avatar-drop strong {
    font-size: 0.92rem;
    color: var(--primary-dark, #2a2769);
}

.acc-avatar-drop span {
    font-size: 0.8rem;
    color: var(--text-muted, #6b7280);
}

.acc-avatar-drop:hover,
.acc-avatar-drop:focus-visible,
.acc-avatar-drop.is-dragover {
    border-color: #c9a96a;
    background: #fffdf8;
    box-shadow: 0 0 0 3px rgba(201, 169, 106, 0.18);
}

.acc-avatar-drop.is-disabled {
    opacity: 0.55;
    pointer-events: none;
}

.acc-avatar-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.acc-avatar-progress__bar {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, #c9a96a, #e2c695);
    width: 0%;
    max-width: 100%;
    transition: width 0.15s ease;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
    background-color: #efe6d4;
    background-image: linear-gradient(90deg, #c9a96a, #e2c695);
    background-repeat: no-repeat;
    background-size: 0% 100%;
}

.acc-avatar-progress span {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-dark, #2a2769);
    min-width: 2.5rem;
}

.acc-avatar-panel.is-disabled {
    opacity: 0.65;
}

.acc-avatar-panel.is-disabled .acc-avatar-drop,
.acc-avatar-panel.is-disabled .acc-avatar-actions {
    pointer-events: none;
}

.acc-settings .acc-form .acc-msg {
    margin-top: 0.75rem;
    min-height: 1.25em;
}

.acc-prefs-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem 1rem;
    margin-bottom: 0;
    width: 100%;
}

@media (min-width: 700px) {
    .acc-prefs-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
    }
}

.acc-settings-actions {
    margin-top: clamp(1.25rem, 3vw, 1.75rem);
    padding-top: 1.15rem;
    border-top: 1px solid var(--acc-border);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
}

@media (min-width: 640px) {
    .acc-settings-actions {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 1rem;
    }

    .acc-settings-actions .acc-btn {
        width: auto;
        min-width: 200px;
    }

    .acc-settings-actions .acc-msg {
        margin: 0;
        flex: 1;
    }
}

.acc-settings-actions .acc-btn {
    width: 100%;
}

.acc-tz-readonly {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-height: var(--acc-btn-h, 48px);
    justify-content: center;
    padding: 0.75rem 0.95rem;
    border: 1px solid var(--acc-border);
    border-radius: var(--acc-radius-sm, 12px);
    background: var(--acc-surface, #f7f7fb);
    box-sizing: border-box;
}

.acc-tz-readonly strong {
    font-size: 0.95rem;
    color: var(--text-main, #1f2937);
    font-weight: 700;
    word-break: break-word;
}

.acc-tz-readonly span {
    font-size: 0.78rem;
    color: var(--text-muted, #6b7280);
    line-height: 1.4;
}

.acc-field-error {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #b91c1c;
    font-weight: 600;
}

.acc-field-error[hidden] {
    display: none !important;
}

.acc-field.has-error input,
.acc-field.has-error .acc-ms__trigger {
    border-color: #f87171;
}

.acc-native-select-hidden {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
}

/* Modern Select — matches .acc-field input design tokens */
.acc-ms {
    position: relative;
    width: 100%;
    font-family: inherit;
    user-select: none;
}

.acc-ms__trigger {
    width: 100%;
    height: var(--acc-btn-h, 48px);
    min-height: var(--acc-btn-h, 48px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0 0.95rem;
    border: 1px solid var(--acc-border);
    border-radius: var(--acc-radius-sm, 12px);
    background: var(--bg-surface, #ffffff);
    color: var(--text-main, #1f2937);
    font: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    text-align: start;
}

.acc-ms__trigger:hover {
    border-color: rgba(61, 57, 146, 0.28);
}

.acc-ms__trigger:focus,
.acc-ms.is-open .acc-ms__trigger {
    outline: none;
    border-color: var(--primary-color, #3d3992);
    box-shadow: 0 0 0 3px rgba(61, 57, 146, 0.12);
}

.acc-ms__label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.acc-ms__arrow {
    font-size: 0.75rem;
    color: var(--text-muted, #6b7280);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.acc-ms.is-open .acc-ms__arrow {
    transform: rotate(180deg);
}

.acc-ms__panel {
    position: absolute;
    inset-inline: 0;
    top: calc(100% + 6px);
    z-index: 40;
    background: var(--bg-surface, #ffffff);
    border: 1px solid var(--acc-border);
    border-radius: var(--acc-radius-sm, 12px);
    box-shadow: var(--acc-shadow, 0 8px 28px rgba(42, 39, 105, 0.08));
    overflow: hidden;
    max-height: min(280px, 50vh);
    display: flex;
    flex-direction: column;
}

.acc-ms__panel[hidden] {
    display: none !important;
}

.acc-ms__search {
    padding: 0.65rem 0.7rem 0.35rem;
    border-bottom: 1px solid var(--acc-border);
    flex-shrink: 0;
    background: var(--bg-surface, #ffffff);
}

.acc-ms__search-input {
    width: 100%;
    height: 40px;
    border: 1px solid var(--acc-border);
    border-radius: var(--acc-radius-sm, 12px);
    padding: 0 0.8rem;
    font: inherit;
    font-size: 0.9rem;
    background: var(--bg-surface, #ffffff);
    color: var(--text-main, #1f2937);
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.acc-ms__search-input:focus {
    outline: none;
    border-color: var(--primary-color, #3d3992);
    box-shadow: 0 0 0 3px rgba(61, 57, 146, 0.12);
    background: var(--bg-surface, #ffffff);
}

.acc-ms__list {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.35rem;
    background: var(--bg-surface, #ffffff);
}

.acc-ms__option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 0;
    background: transparent;
    border-radius: 10px;
    padding: 0.7rem 0.75rem;
    font: inherit;
    font-size: 0.92rem;
    color: var(--text-main, #1f2937);
    cursor: pointer;
    text-align: start;
}

.acc-ms__option:hover,
.acc-ms__option:focus {
    outline: none;
    background: rgba(61, 57, 146, 0.06);
    color: var(--primary-color, #3d3992);
}

.acc-ms__option.is-selected {
    background: rgba(61, 57, 146, 0.08);
    color: var(--primary-color, #3d3992);
    font-weight: 600;
}

.acc-ms__option i {
    font-size: 0.72rem;
    opacity: 0;
    color: var(--primary-color, #3d3992);
}

.acc-ms__option.is-selected i {
    opacity: 1;
}

.acc-ms__empty {
    padding: 0.9rem 0.75rem;
    color: var(--text-muted, #6b7280);
    font-size: 0.88rem;
    text-align: center;
}

/* Theme-aware only when an explicit dark theme class exists (not OS prefers-color-scheme) */
html[data-theme="dark"] .acc-ms__trigger,
html[data-theme="dark"] .acc-ms__panel,
html[data-theme="dark"] .acc-ms__search,
html[data-theme="dark"] .acc-ms__list,
html[data-theme="dark"] .acc-ms__search-input,
body.theme-dark .acc-ms__trigger,
body.theme-dark .acc-ms__panel,
body.theme-dark .acc-ms__search,
body.theme-dark .acc-ms__list,
body.theme-dark .acc-ms__search-input {
    background: var(--bg-surface, #1f2937);
    color: var(--text-main, #f3f4f6);
    border-color: var(--acc-border, rgba(255, 255, 255, 0.12));
}

html[data-theme="dark"] .acc-ms__option,
body.theme-dark .acc-ms__option {
    color: var(--text-main, #f3f4f6);
}

html[data-theme="dark"] .acc-ms__option:hover,
html[data-theme="dark"] .acc-ms__option:focus,
html[data-theme="dark"] .acc-ms__option.is-selected,
body.theme-dark .acc-ms__option:hover,
body.theme-dark .acc-ms__option:focus,
body.theme-dark .acc-ms__option.is-selected {
    background: rgba(61, 57, 146, 0.22);
    color: var(--primary-color, #c4c1f0);
}

@media (max-width: 480px) {
    .acc-workspace__body {
        padding-inline: 0.75rem;
    }

    .acc-settings.acc-card-block {
        padding: 1rem 0.85rem;
        border-radius: 14px;
    }
}

/* Overview cards */
.acc-ov-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 560px) {
    .acc-ov-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .acc-ov-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.acc-ov-card {
    background: #fff;
    border: 1px solid var(--acc-border);
    border-radius: var(--acc-radius);
    box-shadow: var(--acc-shadow);
    padding: 1.15rem 1.2rem;
    min-height: 132px;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    cursor: default;
}

.acc-ov-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--acc-shadow-hover);
}

.acc-ov-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.acc-ov-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: #fff;
}

.acc-ov-card__icon--orders { background: #3d3992; }
.acc-ov-card__icon--spent { background: #0f766e; }
.acc-ov-card__icon--wish { background: #c0265e; }
.acc-ov-card__icon--last { background: #0f766e; }
.acc-ov-card__icon--status { background: #b45309; }
.acc-ov-card__icon--aff { background: #4f46e5; }
.acc-ov-card__icon--aff-out { background: #0f766e; }
.acc-ov-card__icon--aff-left { background: #a16207; }
.acc-ov-card__icon--delivered { background: #15803d; }
.acc-ov-card__icon--cancelled { background: #b91c1c; }
.acc-ov-card__icon--waiting { background: #c2410c; }
.acc-ov-card__icon--returned { background: #6d28d9; }

.acc-ov-card__label {
    font-size: 0.82rem;
    color: var(--text-muted, #6b7280);
    font-weight: 600;
}

.acc-ov-card__value {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--primary-dark, #2a2769);
    line-height: 1.2;
    word-break: break-word;
}

.acc-ov-card__hint {
    font-size: 0.78rem;
    color: var(--text-muted, #6b7280);
}

.acc-ov-skel {
    min-height: 132px;
    border-radius: var(--acc-radius);
    background: linear-gradient(90deg, #eee 25%, #f7f7fb 50%, #eee 75%);
    background-size: 200% 100%;
    animation: accShimmer 1.2s infinite;
}

@keyframes accShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.acc-wishlist-mount {
    min-height: 120px;
}

.acc-wishlist-mount .acc-wish-grid,
.acc-wishlist-mount .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    width: 100%;
}

@media (min-width: 992px) {
    .acc-wishlist-mount .acc-wish-grid,
    .acc-wishlist-mount .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 14px;
    }
}

.acc-wishlist-mount .product-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    max-width: 100%;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.acc-wishlist-mount .product-card:hover {
    box-shadow: 0 10px 28px rgba(42, 39, 105, 0.12);
    transform: translateY(-2px);
}

.acc-wishlist-mount .product-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    position: relative;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.acc-wishlist-mount .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.acc-wishlist-mount .product-card-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #fff;
}

.acc-wishlist-mount .product-card-slider img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}

.acc-wishlist-mount .product-card-slider img:first-child {
    opacity: 1;
    position: relative;
}

.acc-wishlist-mount .branch-badge {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: calc(100% - 20px);
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #2a2769;
    font-size: 0.72rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.acc-wishlist-mount .branch-badge .branch-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.acc-wishlist-mount .badge.sale,
.acc-wishlist-mount .badge.special-badge {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    z-index: 3;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    color: #fff;
    background: #b91c1c;
}

.acc-wishlist-mount .badge.special-badge {
    top: 42px;
    background: #3d3992;
}

.acc-wishlist-mount .cart-btn {
    position: absolute;
    bottom: 10px;
    inset-inline-start: 10px;
    z-index: 3;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(61, 57, 146, 0.92);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(42, 39, 105, 0.25);
}

.acc-wishlist-mount .product-info {
    padding: 12px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.acc-wishlist-mount .product-name,
.acc-wishlist-mount .product-info h3 {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
}

.acc-wishlist-mount .product-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}

.acc-wishlist-mount .current-price {
    color: #3d3992;
    font-weight: 800;
    font-size: 0.98rem;
}

.acc-wishlist-mount .old-price {
    color: #9ca3af;
    text-decoration: line-through;
    font-size: 0.82rem;
}

.acc-wishlist-mount .product-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.acc-wishlist-mount .view-btn {
    flex: 1;
    min-height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #2a2769;
    font-weight: 700;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}

.acc-wishlist-mount .view-btn:hover {
    background: #3d3992;
    border-color: #3d3992;
    color: #fff;
}

.acc-wishlist-mount .wishlist-btn {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.acc-wishlist-mount .wishlist-btn.active,
.acc-wishlist-mount .wishlist-btn.active i {
    color: #e53935;
}

.acc-wishlist-mount .empty-wishlist-state {
    grid-column: 1 / -1;
    width: 100%;
    padding: 48px 16px;
    text-align: center;
}

.acc-wishlist-mount .empty-wishlist-state .btn,
.acc-wishlist-mount .empty-wishlist-state a.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 999px;
    background: #3d3992;
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 575.98px) {
    .acc-wishlist-mount .acc-wish-grid,
    .acc-wishlist-mount .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .acc-wishlist-mount .product-info {
        padding: 10px;
    }

    .acc-wishlist-mount .product-name,
    .acc-wishlist-mount .product-info h3 {
        font-size: 0.8rem;
        min-height: 2.2em;
    }

    .acc-wishlist-mount .view-btn span {
        display: none;
    }

    .acc-wishlist-mount .cart-btn {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }
}

/* Zoom lens + lightbox (account wishlist) */
.acc-wishlist-mount .product-image {
    cursor: zoom-in;
}

.acc-wishlist-mount .image-zoom-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #3d3992;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 6;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    font-size: 1.25rem;
}

.acc-wishlist-mount .product-image:hover .image-zoom-btn,
.acc-wishlist-mount .product-image:focus-within .image-zoom-btn {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.acc-wish-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.acc-wish-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.acc-wish-lightbox__wrap {
    position: relative;
    width: min(92vw, 960px);
    height: min(86vh, 860px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.acc-wish-lightbox__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    background: #fff;
}

.acc-wish-lightbox__close {
    position: absolute;
    top: -8px;
    inset-inline-end: -8px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #111827;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.acc-wish-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #2a2769;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.acc-wish-lightbox__nav--prev { inset-inline-start: 0; }
.acc-wish-lightbox__nav--next { inset-inline-end: 0; }

@media (max-width: 768px) {
    .acc-wishlist-mount .image-zoom-btn {
        opacity: 1;
        pointer-events: auto;
        transform: translate(-50%, -50%) scale(1);
        background: rgba(255, 255, 255, 0.88);
        box-shadow: 0 4px 14px rgba(42, 39, 105, 0.18);
    }
}

/* Collapsed sidebar (tablet / desktop toggle) */
.acc-shell.is-collapsed .acc-sidebar {
    width: var(--acc-sidebar-collapsed);
}

.acc-shell.is-collapsed .acc-sidebar__brand {
    justify-content: center;
    padding-inline: 0.5rem;
}

.acc-shell.is-collapsed .acc-sidebar__brand-text,
.acc-shell.is-collapsed .acc-sidebar__label,
.acc-shell.is-collapsed .acc-side-link span,
.acc-shell.is-collapsed .acc-side-group__toggle span,
.acc-shell.is-collapsed .acc-side-group__chev {
    display: none;
}

.acc-shell.is-collapsed .acc-side-link {
    justify-content: center;
    padding-inline: 0.5rem;
    position: relative;
}

.acc-shell.is-collapsed .acc-side-group {
    border-top: none;
    padding-top: 0.25rem;
    margin-top: 0.25rem;
}

.acc-shell.is-collapsed .acc-side-group__toggle {
    display: none;
}

.acc-shell.is-collapsed .acc-side-group__panel,
.acc-shell.is-collapsed .acc-side-group__panel[hidden] {
    display: flex !important;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
}

.acc-shell.is-collapsed .acc-side-link--sub + .acc-side-link--sub {
    border-top: none;
}

/* Desktop tooltips when collapsed */
@media (hover: hover) and (min-width: 768px) {
    .acc-shell.is-collapsed .acc-side-link::after {
        content: attr(data-tooltip);
        position: absolute;
        inset-inline-start: calc(100% + 10px);
        top: 50%;
        transform: translateY(-50%);
        background: #23214f;
        color: #fff;
        font-size: 0.75rem;
        font-weight: 600;
        line-height: 1.2;
        white-space: nowrap;
        padding: 0.4rem 0.65rem;
        border-radius: 8px;
        opacity: 0;
        pointer-events: none;
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.2);
        transition: opacity 0.15s ease;
        z-index: 80;
    }

    .acc-shell.is-collapsed .acc-side-link:hover::after,
    .acc-shell.is-collapsed .acc-side-link:focus-visible::after {
        opacity: 1;
    }
}

@media (min-width: 768px) {
    .acc-sidebar-toggle {
        display: inline-flex;
    }
}

/* Tablet: collapsible sticky sidebar (stays in locked shell) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .acc-page--dash {
        --acc-sidebar-w: 220px;
    }

    .acc-topbar__menu {
        display: none !important;
    }
}

/* Mobile only: drawer overlay */
@media (max-width: 767.98px) {
    .acc-sidebar {
        position: fixed;
        inset-block: var(--acc-dash-header-h) 0;
        inset-inline-start: 0;
        width: min(300px, 86vw);
        height: auto;
        max-height: calc(100dvh - var(--acc-dash-header-h));
        overflow: hidden;
        transform: translate3d(-110%, 0, 0);
        box-shadow: var(--acc-shadow-hover);
        z-index: 999;
        transition: transform 0.28s ease;
    }

    [dir="rtl"] .acc-sidebar {
        transform: translate3d(110%, 0, 0);
    }

    .acc-shell.is-drawer-open .acc-sidebar,
    [dir="rtl"] .acc-shell.is-drawer-open .acc-sidebar {
        transform: translate3d(0, 0, 0);
    }

    .acc-sidebar-backdrop {
        display: block;
        position: fixed;
        inset: var(--acc-dash-header-h) 0 0 0;
        background: rgba(15, 23, 42, 0.4);
        z-index: 998;
        border: 0;
        padding: 0;
        cursor: pointer;
    }

    .acc-sidebar-backdrop[hidden] {
        display: none !important;
    }

    .acc-topbar__menu {
        display: inline-flex;
    }

    .acc-sidebar__collapse {
        display: none !important;
    }

    .acc-sidebar-toggle {
        display: none !important;
    }

    .acc-shell.is-collapsed .acc-sidebar {
        width: min(300px, 86vw);
    }

    .acc-shell.is-collapsed .acc-sidebar__brand-text,
    .acc-shell.is-collapsed .acc-sidebar__label,
    .acc-shell.is-collapsed .acc-side-link span {
        display: initial;
    }

    .acc-shell.is-collapsed .acc-side-link {
        justify-content: flex-start;
        padding: 0.65rem 0.85rem;
    }

    .acc-shell.is-collapsed .acc-side-link::after {
        display: none !important;
    }
}

.acc-form--narrow {
    max-width: 420px;
    width: 100%;
}

.acc-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .acc-stat-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.acc-stat {
    background: var(--acc-surface);
    border: 1px solid var(--acc-border);
    border-radius: var(--acc-radius-sm);
    padding: 0.85rem;
    min-width: 0;
}

.acc-stat__label {
    font-size: 0.75rem;
    color: var(--text-muted, #6b7280);
    margin-bottom: 0.25rem;
}

.acc-stat__value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark, #2a2769);
    word-break: break-word;
}

.acc-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.acc-orders-table {
    min-width: 720px;
}

.acc-orders-table td {
    vertical-align: top;
}

.acc-order-products {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 220px;
}

.acc-order-product {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.acc-order-product__img {
    width: 52px;
    height: 68px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    flex-shrink: 0;
}

.acc-order-product__info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.acc-order-product__info strong {
    font-size: 0.88rem;
    color: #111827;
    line-height: 1.35;
    word-break: break-word;
}

.acc-order-product__info span,
.acc-order-product__attr {
    font-size: 0.78rem;
    color: #4b5563;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.acc-order-product__attr em {
    font-style: normal;
    color: #6b7280;
    font-weight: 600;
}

.acc-order-product__attr b {
    font-weight: 700;
    color: #111827;
}

.acc-order-swatch {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    display: inline-block;
    flex-shrink: 0;
}

.acc-order-product__qty {
    color: #6b7280 !important;
}

@media (max-width: 767.98px) {
    .acc-orders-table,
    .acc-orders-table thead,
    .acc-orders-table tbody,
    .acc-orders-table th,
    .acc-orders-table td,
    .acc-orders-table tr {
        display: block;
        width: 100%;
    }

    .acc-orders-table {
        min-width: 0;
    }

    .acc-orders-table thead {
        display: none;
    }

    .acc-orders-table tr {
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        margin-bottom: 0.75rem;
        overflow: hidden;
        background: #fff;
    }

    .acc-orders-table td {
        display: flex;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.7rem 0.85rem;
        border-bottom: 1px solid #f1f5f9;
    }

    .acc-orders-table td:last-child {
        border-bottom: none;
    }

    .acc-orders-table td::before {
        content: attr(data-label);
        font-size: 0.75rem;
        font-weight: 700;
        color: #6b7280;
        flex-shrink: 0;
    }

    .acc-orders-table td[data-label="المنتجات"] {
        flex-direction: column;
        align-items: stretch;
    }

    .acc-order-products {
        min-width: 0;
    }
}

.acc-orders-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.acc-order-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.acc-order-card__head,
.acc-order-card__foot {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
}

.acc-order-card__head {
    border-bottom: 1px solid #f1f5f9;
    background: #fafbff;
}

.acc-order-card__id {
    font-weight: 800;
    color: #2a2769;
}

.acc-order-card__date {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.2rem;
}

.acc-order-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.acc-order-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(61, 57, 146, 0.1);
    color: #2a2769;
    font-size: 0.75rem;
    font-weight: 700;
}

.acc-order-badge--pay {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.acc-order-card__items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.acc-order-card__item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.acc-order-card__item:last-child {
    border-bottom: none;
}

.acc-order-card__item-main {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.acc-order-card__item-main strong {
    color: #111827;
    font-size: 0.92rem;
    line-height: 1.35;
    word-break: break-word;
}

.acc-order-card__meta {
    color: #6b7280;
    font-size: 0.78rem;
}

.acc-order-card__item-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
    color: #374151;
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}

.acc-order-card__products {
    margin: 0;
    padding: 0.85rem 1rem;
    color: #374151;
    font-weight: 600;
}

.acc-order-card__foot {
    border-top: 1px solid #f1f5f9;
    background: #fcfcfd;
    color: #6b7280;
    font-size: 0.85rem;
}

.acc-order-card__foot strong {
    color: #3d3992;
    font-size: 1rem;
}

.acc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 480px;
}

.acc-table th,
.acc-table td {
    padding: 0.75rem 0.65rem;
    border-bottom: 1px solid var(--acc-border);
    text-align: start;
    vertical-align: middle;
}

.acc-table th {
    font-size: 0.78rem;
    text-transform: none;
    color: var(--text-muted, #6b7280);
    font-weight: 600;
}

.acc-address-card {
    border: 1px solid var(--acc-border);
    border-radius: var(--acc-radius-sm);
    padding: 0.95rem 1rem;
    margin-bottom: 0.75rem;
    background: var(--acc-surface);
}

.acc-address-card strong {
    display: block;
    margin-bottom: 0.25rem;
}

.acc-aff-meta {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.acc-aff-meta code {
    background: var(--acc-surface);
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    word-break: break-all;
}

.acc-aff-links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0.5rem 0 1rem;
    font-size: 0.85rem;
    word-break: break-all;
}

.acc-aff-links a {
    color: var(--primary-color, #3d3992);
}

/* Affiliate dashboard layout */
.acc-aff-dash {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    width: 100%;
}

.acc-aff-section {
    background: var(--acc-surface, #f7f7fb);
    border: 1px solid var(--acc-border);
    border-radius: var(--acc-radius);
    padding: clamp(1rem, 2.5vw, 1.35rem);
}

.acc-aff-section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 1rem;
}

.acc-aff-section__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-dark, #2a2769);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.acc-aff-section__title i {
    color: var(--primary-color, #3d3992);
    font-size: 0.95rem;
}

.acc-aff-section__hint {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted, #6b7280);
}

.acc-aff-profile {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
}

@media (min-width: 640px) {
    .acc-aff-profile {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .acc-aff-profile {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.acc-aff-chip {
    position: relative;
    background: #fff;
    border: 1px solid var(--acc-border);
    border-radius: var(--acc-radius-sm);
    padding: 0.75rem 0.9rem;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.acc-aff-chip > span {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted, #6b7280);
}

.acc-aff-chip > strong {
    font-size: 0.95rem;
    color: var(--text-main, #1f2937);
    word-break: break-word;
}

.acc-aff-chip code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9rem;
}

.acc-aff-chip .acc-aff-copy {
    position: absolute;
    inset-block-start: 0.55rem;
    inset-inline-end: 0.55rem;
}

.acc-aff-status--active { color: #15803d; }
.acc-aff-status--suspended { color: #b91c1c; }
.acc-aff-status--inactive { color: #6b7280; }

.acc-aff-links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .acc-aff-links-grid {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }
}

.acc-aff-link-card {
    background: #fff;
    border: 1px solid var(--acc-border);
    border-radius: var(--acc-radius-sm);
    padding: 0.95rem 1rem;
    min-width: 0;
}

.acc-aff-link-card__label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted, #6b7280);
    margin-bottom: 0.4rem;
}

.acc-aff-link-card__row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.acc-aff-link-card__url {
    flex: 1;
    min-width: 0;
    color: var(--primary-color, #3d3992);
    font-size: 0.88rem;
    font-weight: 600;
    word-break: break-all;
    text-decoration: none;
}

.acc-aff-link-card__url:hover {
    text-decoration: underline;
}

.acc-aff-copy {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border: 1px solid var(--acc-border);
    border-radius: 10px;
    background: #fff;
    color: var(--primary-color, #3d3992);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.acc-aff-copy:hover:not(:disabled) {
    background: rgba(61, 57, 146, 0.06);
    border-color: rgba(61, 57, 146, 0.28);
}

.acc-aff-copy:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.acc-aff-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid var(--acc-border);
    border-radius: var(--acc-radius-sm);
    padding: 0.85rem;
}

.acc-aff-qr img {
    width: 148px;
    height: 148px;
    border-radius: 12px;
    display: block;
}

.acc-aff-qr span {
    font-size: 0.78rem;
    color: var(--text-muted, #6b7280);
    font-weight: 600;
}

.acc-stat--highlight {
    background: rgba(61, 57, 146, 0.06);
    border-color: rgba(61, 57, 146, 0.2);
}

.acc-stat--highlight .acc-stat__value {
    color: var(--primary-color, #3d3992);
}

.acc-aff-withdraw__grid,
.acc-aff-apply__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 700px) {
    .acc-aff-withdraw__grid,
    .acc-aff-apply__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .acc-aff-withdraw__full,
    .acc-aff-apply__full {
        grid-column: 1 / -1;
    }
}

.acc-aff-withdraw .acc-btn,
.acc-aff-apply .acc-btn {
    width: 100%;
    max-width: 280px;
}

.acc-aff-gen__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 700px) {
    .acc-aff-gen__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .acc-aff-gen__full {
        grid-column: 1 / -1;
    }
}

.acc-aff-preview {
    margin: 1rem 0 1.25rem;
    padding: 1rem;
    border: 1px solid rgba(61, 57, 146, 0.12);
    border-radius: 14px;
    background: rgba(61, 57, 146, 0.03);
}

.acc-aff-preview__grid {
    display: grid;
    gap: 1rem;
    align-items: start;
}

@media (min-width: 700px) {
    .acc-aff-preview__grid {
        grid-template-columns: minmax(0, 1fr) auto;
    }
}

.acc-aff-preview__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.9rem;
}

.acc-aff-preview__actions .acc-btn {
    width: auto;
    max-width: none;
    padding: 0 0.9rem;
    height: 2.4rem;
    font-size: 0.85rem;
}

.acc-aff-links-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    margin: 1.1rem 0 0.75rem;
}

.acc-aff-search {
    flex: 1 1 220px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.85rem;
    height: 2.55rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 12px;
    background: #fff;
    color: var(--text-muted, #6b7280);
}

.acc-aff-search input {
    border: 0;
    outline: 0;
    width: 100%;
    background: transparent;
    font: inherit;
    color: inherit;
}

.acc-aff-table-wrap {
    margin-top: 0.25rem;
}

.acc-aff-table-scroll {
    overflow-x: auto;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
}

.acc-aff-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.acc-aff-table th,
.acc-aff-table td {
    padding: 0.75rem 0.85rem;
    text-align: right;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    vertical-align: middle;
}

.acc-aff-table th {
    font-size: 0.75rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-muted, #6b7280);
    font-weight: 700;
    background: rgba(15, 23, 42, 0.02);
}

.acc-aff-table__title {
    font-weight: 700;
    color: #111827;
}

.acc-aff-table__url {
    font-size: 0.75rem;
    color: var(--text-muted, #6b7280);
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.acc-aff-table__muted {
    font-size: 0.78rem;
    color: var(--text-muted, #6b7280);
    white-space: nowrap;
}

.acc-aff-table tfoot td {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 0.75rem;
}

.acc-muted {
    color: var(--text-muted, #6b7280);
    font-weight: 400;
    font-size: 0.85em;
}

.acc-aff-table__acts {
    white-space: nowrap;
}

.acc-aff-table__acts button {
    border: 0;
    background: transparent;
    color: #4b5563;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    cursor: pointer;
}

.acc-aff-table__acts button:hover {
    background: rgba(61, 57, 146, 0.08);
    color: var(--primary-color, #3d3992);
}

.acc-aff-table__acts button.is-danger:hover {
    background: rgba(185, 28, 28, 0.1);
    color: #b91c1c;
}

.acc-aff-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.acc-aff-modal[hidden] {
    display: none !important;
}

.acc-aff-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.acc-aff-modal__panel {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    background: #fff;
    border-radius: 16px;
    padding: 1.25rem 1.25rem 1.35rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
    text-align: center;
}

.acc-aff-modal__panel--wide {
    width: min(640px, 100%);
    text-align: right;
}

.acc-aff-modal__x {
    position: absolute;
    top: 0.55rem;
    left: 0.65rem;
    border: 0;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
}

.acc-aff-modal__title {
    margin: 0 0 0.85rem;
    font-size: 1.05rem;
}

.acc-aff-modal__qr {
    display: block;
    margin: 0 auto 0.75rem;
    border-radius: 12px;
}

.acc-aff-modal__url {
    font-size: 0.78rem;
    color: var(--text-muted, #6b7280);
    word-break: break-all;
    margin: 0 0 0.85rem;
}

.acc-empty {
    color: var(--text-muted, #6b7280);
    font-size: 0.95rem;
    padding: 1rem 0;
}

@media (max-width: 359px) {
    .acc-page .acc-container,
    .acc-page .acc-container-sm {
        width: calc(100% - 1rem);
    }

    .acc-choice-card {
        min-height: 0;
        padding: 1.1rem;
    }

    .acc-btn {
        font-size: 0.88rem;
        padding: 0 1rem;
    }
}

/* —— Order tracking / notifications —— */
.acc-icon-btn {
    position: relative;
}

.acc-notif-badge {
    position: absolute;
    top: -4px;
    inset-inline-end: -2px;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: #b42318;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.acc-notif-panel {
    position: absolute;
    top: calc(100% + 0.55rem);
    inset-inline-end: 0;
    width: min(360px, calc(100vw - 1.5rem));
    max-height: min(70vh, 420px);
    background: #fff;
    border: 1px solid var(--acc-border, #e5e7eb);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(35, 33, 79, 0.14);
    z-index: 80;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Author display:flex overrides UA [hidden]{display:none} — must force hide */
.acc-notif-panel[hidden] {
    display: none !important;
}

.acc-notif-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid var(--acc-border, #e5e7eb);
}

.acc-notif-panel__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.acc-notif-panel__x {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.acc-notif-panel__x:hover {
    background: #f3f4f6;
    color: #111827;
}

.acc-notif-panel__list {
    overflow: auto;
}

.acc-notif-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    width: 100%;
    text-align: right;
    padding: 0.8rem 0.95rem;
    border: 0;
    border-bottom: 1px solid #f1f2f6;
    background: #fff;
    cursor: pointer;
}

.acc-notif-item.is-unread {
    background: #f8f7ff;
}

.acc-notif-item strong {
    font-size: 0.88rem;
    color: var(--primary-dark, #2a2769);
}

.acc-notif-item span {
    font-size: 0.8rem;
    color: var(--text-muted, #6b7280);
    line-height: 1.45;
}

.acc-notif-item time {
    font-size: 0.72rem;
    color: #9ca3af;
}

.acc-btn--sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    min-width: 0;
}

.acc-order-modal {
    position: fixed;
    inset: 0;
    /* Above .acc-dash-header (1000) and notif panel so detail is never under the bell dropdown */
    z-index: 12050;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.acc-order-modal[hidden] {
    display: none !important;
}

.acc-order-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 18, 40, 0.45);
}

.acc-order-modal__panel {
    position: relative;
    width: min(720px, 100%);
    max-height: min(92vh, 900px);
    background: #fff;
    border-radius: 18px 18px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1;
}

@media (min-width: 768px) {
    .acc-order-modal {
        align-items: center;
        padding: 1.5rem;
    }
    .acc-order-modal__panel {
        border-radius: 16px;
    }
}

.acc-order-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--acc-border, #e5e7eb);
}

.acc-order-modal__head h3 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--primary-dark, #2a2769);
}

.acc-order-modal__close {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
    color: #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.05rem;
}

.acc-order-modal__close:hover {
    background: #e5e7eb;
    color: #111827;
}

.acc-order-modal__body {
    padding: 1rem 1.15rem 1.5rem;
    overflow: auto;
}

.acc-order-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.15rem;
}

.acc-order-summary div {
    background: var(--acc-surface, #f7f7fb);
    border: 1px solid var(--acc-border, #e5e7eb);
    border-radius: 12px;
    padding: 0.7rem 0.85rem;
}

.acc-order-summary span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted, #6b7280);
    margin-bottom: 0.2rem;
}

.acc-order-summary strong {
    font-size: 0.92rem;
    color: var(--primary-dark, #2a2769);
}

.acc-order-section-title {
    margin: 1.1rem 0 0.65rem;
    font-size: 0.95rem;
    color: var(--primary-dark, #2a2769);
}

.acc-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    border-inline-start: 2px solid #e8e7f2;
}

.acc-timeline__item {
    position: relative;
    padding: 0 0 1rem 1rem;
    margin-inline-start: 0.55rem;
}

.acc-timeline__dot {
    position: absolute;
    inset-inline-start: -0.7rem;
    top: 0.1rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    background: #e5e7eb;
    color: #6b7280;
}

.acc-timeline__item.is-done .acc-timeline__dot {
    background: #15803d;
    color: #fff;
}

.acc-timeline__item.is-current .acc-timeline__dot {
    background: #c9a96a;
    color: #fff;
}

.acc-timeline__content strong {
    display: block;
    font-size: 0.9rem;
    color: var(--primary-dark, #2a2769);
}

.acc-timeline__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    font-size: 0.75rem;
    color: var(--text-muted, #6b7280);
    margin-top: 0.15rem;
}

.acc-timeline__note {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #4b5563;
    background: #fafafa;
    border-radius: 8px;
    padding: 0.4rem 0.55rem;
}

.acc-timeline__item.is-todo {
    opacity: 0.55;
}

.acc-review-card {
    margin-top: 0.65rem;
    padding: 0.75rem;
    border: 1px solid var(--acc-border, #e5e7eb);
    border-radius: 12px;
    background: #fff;
}

.acc-review-card h5 {
    margin: 0 0 0.45rem;
    font-size: 0.85rem;
}

.acc-stars {
    display: flex;
    gap: 0.2rem;
    margin-bottom: 0.5rem;
}

.acc-star {
    border: 0;
    background: transparent;
    color: #d1d5db;
    font-size: 1.15rem;
    cursor: pointer;
    padding: 0;
}

.acc-star.is-on {
    color: #c9a96a;
}

.acc-review-comment {
    width: 100%;
    border: 1px solid var(--acc-border, #e5e7eb);
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
    margin-bottom: 0.5rem;
    font: inherit;
    resize: vertical;
}

.acc-order-product--detail {
    align-items: flex-start;
    margin-bottom: 0.85rem;
}

.acc-rma-actions {
    margin-top: 0.45rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.acc-rma-check {
    font-size: 0.82rem;
    color: var(--primary-dark, #2a2769);
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    cursor: pointer;
}

.acc-rma-locked {
    font-size: 0.75rem;
    color: #b45309;
}

.acc-rma-panel {
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--acc-border, #e5e7eb);
    border-radius: 14px;
    background: var(--acc-surface, #f7f7fb);
}

.acc-rma-form .acc-field {
    margin-bottom: 0.85rem;
}

.acc-rma-form select,
.acc-rma-form textarea,
.acc-rma-form input[type="file"] {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--acc-border, #e5e7eb);
    border-radius: 10px;
    padding: 0.55rem 0.7rem;
    font: inherit;
    background: #fff;
}

.acc-rma-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.55rem;
}

.acc-rma-preview img,
.acc-rma-preview video {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.acc-rma-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.acc-rma-list__item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-align: right;
    border: 1px solid var(--acc-border, #e5e7eb);
    border-radius: 12px;
    padding: 0.7rem 0.85rem;
    background: #fff;
    cursor: pointer;
}

.acc-rma-list__item strong {
    color: var(--primary-dark, #2a2769);
    font-size: 0.9rem;
}

.acc-rma-list__item span,
.acc-rma-list__item time {
    font-size: 0.78rem;
    color: var(--text-muted, #6b7280);
}



