.acc-auth { display: grid; grid-template-columns: minmax(0, 27rem); justify-content: center; gap: 2rem; padding: 4rem 0 5rem; }
@media (min-width: 900px) { .acc-auth:has(.acc-auth-aside) { grid-template-columns: minmax(0, 27rem) minmax(0, 22rem); justify-content: start; } }

.acc-auth-card { padding: 2rem; border: 1px solid rgba(var(--primary-strong-rgb), .14); border-radius: 20px; background: rgba(var(--bg-rgb), .7); }
.acc-auth-head { margin-bottom: 1.5rem; }
.acc-auth-head h1 { margin: .6rem 0 0; font-size: 1.9rem; letter-spacing: -.03em; }
.acc-auth-head p { margin: .6rem 0 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }

.acc-alt { margin: 1.25rem 0 0; color: var(--muted); font-size: .82rem; text-align: center; }
.acc-alt a, .acc-link { color: var(--primary-strong); text-decoration: underline; text-underline-offset: .18em; }

.acc-form { display: grid; gap: 1rem; margin-top: 1.25rem; }
.acc-form:first-of-type { margin-top: 0; }

.acc-field { display: grid; gap: .35rem; min-width: 0; }
.acc-field > span { color: var(--text); font-size: .78rem; font-weight: 600; }
.acc-field > span small { color: var(--muted); font-weight: 400; }
.acc-field > small { color: var(--muted); font-size: .72rem; line-height: 1.5; }

.acc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1rem; }
.acc-grid .acc-field.is-wide { grid-column: 1 / -1; }

.acc-check { display: flex; align-items: flex-start; gap: .55rem; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.acc-check input { margin-top: .2rem; flex: 0 0 auto; }

.acc-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; font-size: .8rem; }

.acc-submit { width: 100%; justify-content: center; }
.acc-submit.is-busy, .acc-submit:disabled { cursor: progress; opacity: .7; }
.acc-submit.is-danger { border-color: rgba(var(--danger-rgb), .4); color: var(--danger); }

.acc-note { margin: 0 0 1rem; padding: .85rem 1rem; border: 1px solid rgba(var(--primary-strong-rgb), .2); border-radius: .7rem; background: rgba(var(--primary-rgb), .08); color: var(--text); font-size: .82rem; line-height: 1.55; }
.acc-note ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.acc-note.is-error { border-color: rgba(var(--danger-rgb), .35); background: rgba(var(--danger-rgb), .09); color: var(--danger); }
.acc-note.is-warning { border-color: rgba(var(--warning-rgb), .35); background: rgba(var(--warning-rgb), .09); color: var(--warning-soft, var(--warning)); }
.acc-note.is-success { border-color: rgba(var(--primary-rgb), .4); }

.acc-muted { color: var(--muted); font-size: .78rem; line-height: 1.6; }
.acc-empty { padding: 2rem 0; color: var(--muted); font-size: .88rem; text-align: center; }

.acc-shell { display: grid; grid-template-columns: 16rem minmax(0, 1fr); align-items: start; gap: 2.5rem; padding: 3.5rem 0 5rem; }
@media (max-width: 900px) { .acc-shell { grid-template-columns: 1fr; gap: 1.5rem; } }

.acc-side { position: sticky; top: 5.5rem; display: grid; gap: 1rem; }
@media (max-width: 900px) { .acc-side { position: static; } }

.acc-identity { display: flex; align-items: center; gap: .7rem; padding: 1rem; border: 1px solid rgba(var(--primary-strong-rgb), .12); border-radius: 14px; background: rgba(var(--bg-rgb), .6); }
.acc-identity span:last-child { min-width: 0; }
.acc-identity strong, .acc-identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-identity strong { font-size: .85rem; }
.acc-identity small { color: var(--muted); font-size: .7rem; }

.acc-avatar { display: grid; width: 2.4rem; height: 2.4rem; flex: 0 0 auto; overflow: hidden; place-items: center; border-radius: 50%; background: rgba(var(--primary-rgb), .16); color: var(--primary-strong); font-size: .8rem; font-weight: 700; }
.acc-avatar img { width: 100%; height: 100%; object-fit: cover; }

.acc-nav { display: grid; gap: .1rem; }
.acc-nav a { padding: .6rem .75rem; border-radius: .55rem; color: var(--muted); font-size: .82rem; }
.acc-nav a:hover { background: rgba(var(--primary-rgb), .08); color: var(--text); }
.acc-nav a.is-active { background: rgba(var(--primary-rgb), .13); color: var(--primary-strong); font-weight: 600; }

.acc-signout button { width: 100%; }

.acc-main { min-width: 0; }
.acc-head h1 { margin: 0; font-size: 1.9rem; letter-spacing: -.03em; }
.acc-head p { margin: .5rem 0 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }

.acc-panel { margin-top: 1.5rem; padding: 1.4rem; border: 1px solid rgba(var(--primary-strong-rgb), .12); border-radius: 16px; background: rgba(var(--bg-rgb), .6); }
.acc-panel h2 { margin: 0 0 1rem; font-size: 1.05rem; letter-spacing: -.02em; }
.acc-panel h3 { margin: 1.25rem 0 .5rem; font-size: .85rem; }
.acc-panel.is-danger { border-color: rgba(var(--danger-rgb), .22); }

.acc-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.acc-panel-head h2 { margin: 0; }

.acc-list { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.acc-list li,
.acc-download,
.acc-address { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: .8rem 0; border-bottom: 1px solid rgba(var(--primary-strong-rgb), .08); }
.acc-list li:last-child, .acc-download:last-child, .acc-address:last-child { border-bottom: 0; padding-bottom: 0; }
.acc-list strong, .acc-download strong, .acc-address strong { display: block; font-size: .86rem; }
.acc-list small, .acc-download small, .acc-address small { display: block; margin-top: .2rem; color: var(--muted); font-size: .72rem; }

.acc-order-row { display: grid; grid-template-columns: 8rem minmax(0, 1fr) auto auto; align-items: center; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid rgba(var(--primary-strong-rgb), .08); color: var(--text); }
.acc-order-row:last-child { border-bottom: 0; }
.acc-order-row:hover { color: var(--primary-strong); }
.acc-order-number { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .78rem; }
.acc-order-meta { color: var(--muted); font-size: .74rem; }
.acc-order-total { font-weight: 700; font-size: .88rem; }
@media (max-width: 700px) { .acc-order-row { grid-template-columns: 1fr auto; } .acc-order-meta { grid-column: 1 / -1; } }

.acc-mini-btn { flex: 0 0 auto; padding: .45rem .8rem; font-size: .74rem; }

.acc-badge { display: inline-flex; align-items: center; padding: .2rem .5rem; border-radius: 999px; background: rgba(var(--primary-strong-rgb), .12); color: var(--muted); font-size: .64rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-style: normal; }
.acc-badge.is-completed, .acc-badge.is-approved { background: rgba(var(--primary-rgb), .16); color: var(--primary-strong); }
.acc-badge.is-processing, .acc-badge.is-pending { background: rgba(var(--warning-rgb), .14); color: var(--warning); }
.acc-badge.is-cancelled, .acc-badge.is-refunded, .acc-badge.is-rejected { background: rgba(var(--danger-rgb), .12); color: var(--danger); }
.acc-badge.is-default { background: rgba(var(--highlight-rgb), .14); color: var(--highlight); }

.acc-order-status { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }

.acc-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.acc-table td, .acc-table th { padding: .65rem 0; border-bottom: 1px solid rgba(var(--primary-strong-rgb), .08); text-align: left; vertical-align: top; }
.acc-table td small { display: block; margin-top: .15rem; color: var(--muted); font-size: .72rem; }
.acc-table .is-num { text-align: right; white-space: nowrap; }
.acc-table tfoot th { color: var(--muted); font-weight: 400; }
.acc-table tfoot .is-total th, .acc-table tfoot .is-total td { border-bottom: 0; color: var(--text); font-weight: 700; font-size: .95rem; }

.acc-bank { display: grid; gap: 0; margin: .75rem 0; padding: 1rem; border-radius: 10px; background: rgba(var(--bg-2-rgb), .6); }
.acc-bank > div { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; }
.acc-bank dt { color: var(--muted); font-size: .74rem; }
.acc-bank dd { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .78rem; font-weight: 700; }

.acc-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 1.5rem; }
.acc-columns h3 { margin: 0 0 .4rem; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

.acc-review { padding: 1rem 0; border-bottom: 1px solid rgba(var(--primary-strong-rgb), .08); }
.acc-review:last-child { border-bottom: 0; }
.acc-review header { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: .4rem; }
.acc-review h3 { margin: .3rem 0; font-size: .9rem; }
.acc-review p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.6; }
.acc-stars { color: var(--highlight); font-size: .82rem; letter-spacing: .05em; }

.acc-address-actions { display: flex; align-items: center; gap: .6rem; flex: 0 0 auto; }

.acc-address-main { display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; min-width: 0; }
.acc-address-main .acc-badge { margin: 0 0 .25rem; }

/* Studio */

.acc-studio .acc-kicker {
    display: inline-block;
    margin-bottom: 0.55rem;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--primary-strong);
}

.acc-auth.acc-studio {
    grid-template-columns: minmax(0, 29rem);
    align-items: center;
    padding: 3.5rem 0 5rem;
}

@media (min-width: 900px) {
    .acc-auth.acc-studio.has-perks {
        grid-template-columns: minmax(0, 29rem) minmax(0, 25rem);
        justify-content: center;
        gap: 2.5rem;
    }
}

.acc-studio .acc-auth-card {
    padding: 0;
    border: 1px solid var(--edge);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.acc-window-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--edge-soft);
    background: rgba(var(--text-rgb), 0.025);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--muted);
}

.acc-window-bar svg {
    width: 14px;
    height: 14px;
    margin-left: auto;
    color: var(--primary-strong);
}

.acc-dots {
    display: inline-flex;
    gap: 5px;
}

.acc-dots i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(var(--text-rgb), 0.16);
}

.acc-auth-inner {
    padding: 1.8rem 1.9rem 2rem;
}

.acc-studio .acc-auth-head {
    margin-bottom: 1.6rem;
}

.acc-studio .acc-auth-head h1 {
    margin: 0;
    font-size: clamp(1.9rem, 3.5vw, 2.4rem);
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.acc-studio .acc-auth-head p {
    font-size: 0.95rem;
}

.acc-studio .acc-form {
    gap: 1.05rem;
}

.acc-studio .acc-field > span {
    font-size: 0.8rem;
}

.acc-studio .form-field {
    min-height: 46px;
    border-radius: 12px;
}

.acc-studio .acc-check input {
    accent-color: var(--primary);
}

.acc-studio .acc-submit {
    min-height: 48px;
    margin-top: 0.3rem;
}

.acc-studio .acc-alt {
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 1px dashed var(--edge-soft);
    font-size: 0.86rem;
}

.acc-term {
    border: 1px solid rgba(126, 249, 214, 0.14);
    border-radius: 18px;
    background: #061018;
    color: #c9e8f2;
    box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

.acc-term-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #7f9aa8;
}

.acc-term-bar .acc-dots i {
    background: rgba(255, 255, 255, 0.16);
}

.acc-term-body {
    padding: 1.2rem 1.3rem 1.3rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

.acc-term-cmd {
    margin: 0 0 1rem;
    color: #e6f9ff;
}

.acc-term-cmd b {
    color: #7ef9d6;
    font-weight: 500;
}

.acc-term ul {
    display: grid;
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.acc-term li {
    display: flex;
    gap: 0.7rem;
}

.acc-term li i {
    color: #7ef9d6;
    font-style: normal;
}

.acc-term li span {
    color: #8fb0bf;
    font-family: var(--font-body);
    font-size: 0.86rem;
    line-height: 1.5;
}

.acc-term li strong {
    display: block;
    color: #e6f9ff;
    font-weight: 600;
}

.acc-term-done {
    margin: 1.1rem 0 0;
    padding-top: 0.9rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    color: #7ef9d6;
}

/* Account area */

.acc-shell.acc-studio {
    grid-template-columns: 16.5rem minmax(0, 1fr);
    padding-top: 2.6rem;
}

.acc-studio .acc-side {
    top: 6rem;
}

.acc-studio .acc-identity {
    padding: 1rem;
    border: 1px solid var(--edge);
    border-radius: 16px;
    background: var(--surface);
}

.acc-studio .acc-avatar {
    width: 2.6rem;
    height: 2.6rem;
}

.acc-studio .acc-nav {
    gap: 0.15rem;
    padding: 0.6rem;
    border: 1px solid var(--edge);
    border-radius: 16px;
    background: var(--surface);
}

.acc-nav-label {
    padding: 0.35rem 0.6rem 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--muted);
}

.acc-studio .acc-nav a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0.7rem;
    border-radius: 10px;
    font-size: 0.88rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.acc-studio .acc-nav a svg {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
}

.acc-studio .acc-nav a.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    bottom: 0.55rem;
    width: 3px;
    border-radius: 3px;
    background: var(--primary);
}

.acc-studio .acc-signout button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.acc-studio .acc-signout svg {
    width: 15px;
    height: 15px;
}

.acc-studio .acc-head {
    margin-bottom: 0.4rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid var(--edge-soft);
}

.acc-studio .acc-head h1 {
    font-size: clamp(2rem, 4vw, 2.7rem);
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.acc-studio .acc-panel {
    margin-top: 1.2rem;
    padding: 0 1.4rem 1.3rem;
    border: 1px solid var(--edge);
    border-radius: 18px;
    background: var(--surface);
    overflow: hidden;
}

.acc-studio .acc-panel > h2,
.acc-studio .acc-panel > .acc-panel-head {
    margin: 0 -1.4rem 1rem;
    padding: 0.85rem 1.4rem;
    border-bottom: 1px solid var(--edge-soft);
    background: rgba(var(--text-rgb), 0.025);
    font-size: 1.05rem;
}

.acc-studio .acc-panel > .acc-panel-head h2 {
    font-size: 1.05rem;
}

.acc-studio .acc-order-row {
    padding: 0.95rem 0.2rem;
    transition: color 0.2s ease;
}

.acc-studio .acc-order-number {
    font-family: var(--font-mono);
    color: var(--primary-strong);
}

.acc-studio .acc-order-total {
    font-family: var(--font-display);
    font-size: 0.98rem;
}

.acc-studio .acc-empty {
    margin: 0.2rem 0 0;
    padding: 2rem 1rem;
    border: 1px dashed var(--edge);
    border-radius: 14px;
}

.acc-studio .acc-badge {
    font-family: var(--font-mono);
    font-weight: 500;
    letter-spacing: 0.02em;
}

@media (max-width: 900px) {
    .acc-shell.acc-studio {
        grid-template-columns: minmax(0, 1fr);
    }

    .acc-studio .acc-nav {
        display: flex;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .acc-studio .acc-nav::-webkit-scrollbar {
        display: none;
    }

    .acc-nav-label {
        display: none;
    }

    .acc-studio .acc-nav a {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .acc-studio .acc-nav a.is-active::before {
        display: none;
    }
}

@media (max-width: 560px) {
    .acc-auth-inner {
        padding: 1.4rem 1.2rem 1.5rem;
    }
}

.acc-auth.acc-studio {
    align-items: start;
}

.acc-studio .acc-panel,
.sx-commerce .acc-panel {
    overflow: visible;
}

.acc-studio .acc-panel > h2,
.acc-studio .acc-panel > .acc-panel-head,
.sx-commerce .acc-panel > h2 {
    border-radius: 17px 17px 0 0;
}

.acc-field > label {
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 600;
}

.acc-studio .dashboard-custom-select.is-open,
.sx-commerce .dashboard-custom-select.is-open {
    position: relative;
    z-index: 40;
}

.acc-link,
.acc-alt a,
.acc-studio .hp-link,
.sx-commerce .hp-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 36px;
    padding: 0 1rem;
    border: 1px solid var(--edge);
    border-radius: 999px;
    background: rgba(var(--text-rgb), 0.03);
    color: var(--text);
    font: 600 0.82rem var(--font-body);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.acc-link:hover,
.acc-alt a:hover,
.acc-studio .hp-link:hover,
.sx-commerce .hp-link:hover {
    border-color: rgba(var(--primary-rgb), 0.5);
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-strong);
    text-decoration: none;
}

.acc-alt {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.acc-row .acc-link {
    min-height: 32px;
    font-size: 0.78rem;
}
