/* ============================================
   Ambersoul – Page Design System (mobile-first)
   ============================================ */

/* ---- Page shell ---- */
.as-page {
    position: relative;
    padding: 0.75rem 1rem 1.5rem;
    min-height: calc(100vh - var(--nav-height) - var(--mobile-nav-height) - 3rem);
    overflow-x: clip;
    max-width: 100%;
    width: 100%;
}

.as-page--center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.as-glow {
    position: absolute;
    width: min(280px, 55vw);
    height: min(280px, 55vw);
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.45;
    pointer-events: none;
    animation: asFloat 14s ease-in-out infinite;
    max-width: 100%;
}

.as-glow--burgundy {
    background: radial-gradient(circle, var(--burgundy-glow), transparent 65%);
}

.as-glow--silver {
    background: radial-gradient(circle, var(--silver-glow), transparent 65%);
    animation-delay: 3s;
}

.as-glow--tl { inset-inline-start: -12%; top: 5%; }
.as-glow--br { inset-inline-end: -12%; bottom: 5%; }
.as-glow--tr { inset-inline-end: -10%; top: 10%; }

@keyframes asFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

.as-page__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* ---- Page header ---- */
.as-page-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.as-page-header__top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.as-page-header__body {
    flex: 1;
    min-width: 0;
}

.as-page-header__title {
    font-size: clamp(1.35rem, 5vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
    margin: 0.2rem 0 0.4rem;
    background: linear-gradient(135deg, var(--silver-light), var(--silver), var(--burgundy-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.as-page-header__subtitle {
    color: var(--text-gray);
    font-size: clamp(0.875rem, 2.5vw, 0.95rem);
    margin: 0;
    line-height: 1.6;
}

.as-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(192, 192, 192, 0.15);
    background: rgba(255, 255, 255, 0.04);
    color: var(--silver);
    font-size: 0.85rem;
    white-space: nowrap;
}

.as-badge i {
    color: var(--burgundy-light);
}

/* ---- Layout grids ---- */
.as-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.as-split--sidebar {
    align-items: start;
}

@media (min-width: 992px) {
    .as-split--sidebar {
        grid-template-columns: 1.35fr 0.85fr;
        gap: 1.25rem;
    }
}

/* ---- Cards ---- */
.as-card {
    background: rgba(26, 26, 26, 0.82);
    border: 1px solid rgba(192, 192, 192, 0.1);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.as-card__head {
    margin-bottom: 1.25rem;
}

.as-card__head h2,
.as-card__head h3 {
    font-size: clamp(1rem, 3vw, 1.15rem);
    font-weight: 600;
    margin: 0.25rem 0 0;
}

/* ---- Forms ---- */
.as-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.as-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 576px) {
    .as-form-grid--2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.as-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.as-field--full {
    grid-column: 1 / -1;
}

.as-field label,
.as-field__label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--silver-light);
}

.as-field label i {
    color: var(--burgundy-light);
    font-size: 0.85rem;
}

.as-field small {
    color: var(--text-gray);
    font-size: 0.8rem;
}

.as-input,
.as-textarea,
.as-select {
    width: 100%;
    min-height: var(--touch-min);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(192, 192, 192, 0.18);
    background: rgba(10, 10, 10, 0.6);
    color: var(--text-light);
    font-size: 16px;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.as-textarea {
    min-height: 110px;
    resize: vertical;
}

.as-input:focus,
.as-textarea:focus,
.as-select:focus {
    outline: none;
    border-color: var(--burgundy);
    box-shadow: 0 0 0 3px var(--burgundy-glow);
}

.as-check {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: var(--touch-min);
}

.as-check input {
    width: 20px;
    height: 20px;
    accent-color: var(--burgundy);
}

.as-check label {
    font-size: 0.9rem;
    margin: 0;
}

.as-field--error .as-input,
.as-field--error .as-textarea {
    border-color: #e57373;
}

.as-error {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #ff9d9d;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 107, 129, 0.1);
    border: 1px solid rgba(255, 107, 129, 0.2);
}

.as-form-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

@media (min-width: 480px) {
    .as-form-actions--row {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* ---- Buttons ---- */
.as-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: var(--touch-min);
    padding: 0.75rem 1.35rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    font-family: inherit;
}

.as-btn--primary {
    background: linear-gradient(135deg, var(--burgundy), var(--burgundy-dark));
    color: var(--silver-light);
    box-shadow: 0 8px 24px var(--burgundy-glow);
}

.as-btn--primary:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 12px 32px var(--burgundy-glow);
}

.as-btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(192, 192, 192, 0.2);
    color: var(--silver-light);
}

.as-btn--ghost:hover {
    border-color: var(--burgundy);
    background: rgba(114, 47, 55, 0.12);
    color: var(--silver-light);
}

.as-btn--block {
    width: 100%;
}

.as-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
}

/* ---- Callout / tips ---- */
.as-callout {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(192, 192, 192, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.as-callout > i {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(114, 47, 55, 0.15);
    color: var(--burgundy-light);
}

.as-callout strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.as-callout p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.5;
}

.as-tips-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.as-tips-list li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.as-tips-list li > i {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(192, 192, 192, 0.08);
    color: var(--burgundy-light);
}

.as-tips-list strong {
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.15rem;
}

.as-tips-list p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.5;
}

/* ---- Stats ---- */
.as-stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.as-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-md);
    background: rgba(26, 26, 26, 0.7);
    border: 1px solid rgba(192, 192, 192, 0.1);
    flex: 1;
    min-width: 140px;
}

.as-stat i {
    font-size: 1.25rem;
    color: var(--burgundy-light);
}

.as-stat strong {
    display: block;
    font-size: 1.25rem;
    line-height: 1.2;
}

.as-stat span {
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* ---- Product grid ---- */
.as-products {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 480px) {
    .as-products { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    .as-products { grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
}

.as-product {
    display: flex;
    flex-direction: column;
    background: rgba(26, 26, 26, 0.85);
    border: 1px solid rgba(192, 192, 192, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.as-product:hover {
    transform: translateY(-4px);
    border-color: rgba(114, 47, 55, 0.4);
    box-shadow: 0 12px 32px var(--burgundy-glow);
}

.as-product__media {
    position: relative;
    aspect-ratio: 1;
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.as-product__media a {
    display: block;
    width: 100%;
    height: 100%;
}

.as-product__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.as-product:hover .as-product__media img {
    transform: scale(1.05);
}

.as-product__discount {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--burgundy);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.as-product__featured {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--burgundy), var(--burgundy-dark));
    color: var(--silver-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.as-product__brand-img {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #fff;
    padding: 3px;
    object-fit: contain;
}

.as-product__body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.as-product__name {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.35;
}

.as-product__name a {
    color: var(--silver-light);
    text-decoration: none;
}

.as-product__name a:hover {
    color: var(--burgundy-light);
}

.as-product__tag {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    background: rgba(114, 47, 55, 0.15);
    color: var(--burgundy-light);
    width: fit-content;
}

.as-product__desc {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.as-product__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.5rem;
    margin-top: auto;
    border-top: 1px solid rgba(192, 192, 192, 0.08);
}

.as-product__price-old {
    font-size: 0.75rem;
    color: var(--text-gray);
    text-decoration: line-through;
    display: block;
}

.as-product__price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--silver-light);
}

.as-stock {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.as-stock--ok { background: rgba(76, 175, 80, 0.15); color: #81c784; }
.as-stock--low { background: rgba(255, 193, 7, 0.12); color: #ffd54f; }
.as-stock--out { background: rgba(244, 67, 54, 0.12); color: #e57373; }

.as-product__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.as-qty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(192, 192, 192, 0.15);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(10, 10, 10, 0.5);
}

.as-qty button {
    min-width: var(--touch-min);
    min-height: var(--touch-min);
    border: none;
    background: transparent;
    color: var(--burgundy-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.as-qty button:hover {
    background: rgba(114, 47, 55, 0.15);
}

.as-qty input {
    width: 48px;
    text-align: center;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-weight: 600;
    font-size: 16px;
}

.as-qty.is-updating {
    opacity: 0.65;
    pointer-events: none;
}

/* ---- Empty state ---- */
.as-empty {
    text-align: center;
    padding: 2.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.as-empty__icon {
    font-size: 3rem;
    color: var(--burgundy-light);
    opacity: 0.8;
}

.as-empty h3 {
    font-size: clamp(1.1rem, 4vw, 1.35rem);
    margin: 0;
}

.as-empty p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin: 0;
    max-width: 320px;
}

/* ---- Auth pages ---- */
.as-auth {
    position: relative;
    min-height: calc(100vh - var(--nav-height) - var(--mobile-nav-height) - 2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-x: clip;
    max-width: 100%;
    width: 100%;
}

.as-auth__card {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 2;
}

.as-auth__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(114, 47, 55, 0.15);
    border: 1px solid rgba(114, 47, 55, 0.3);
}

.as-auth__icon i {
    font-size: 1.75rem;
    color: var(--burgundy-light);
}

.as-auth__head {
    text-align: center;
    margin-bottom: 1.5rem;
}

.as-auth__head h1 {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    margin-bottom: 0.35rem;
}

.as-auth__head p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin: 0;
}

.as-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    background: rgba(114, 47, 55, 0.1);
    border: 1px solid rgba(114, 47, 55, 0.25);
    font-size: 0.85rem;
}

.as-banner i {
    color: var(--burgundy-light);
}

.as-verify-box {
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(192, 192, 192, 0.12);
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.as-verify-box p {
    margin: 0;
    font-size: 0.9rem;
}

.as-timer {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(114, 47, 55, 0.3);
    color: var(--burgundy-light);
    font-size: 0.85rem;
    width: fit-content;
}

.as-code-display {
    text-align: center;
    padding: 0.85rem;
    border-radius: var(--radius-md);
    background: rgba(114, 47, 55, 0.12);
    border: 1px solid rgba(114, 47, 55, 0.3);
}

.as-code-display strong {
    font-size: 1.35rem;
    letter-spacing: 0.35rem;
    color: var(--silver-light);
    font-family: monospace;
}

.as-input--otp {
    text-align: center;
    letter-spacing: 0.3rem;
    font-size: 1.2rem;
}

.as-input--ltr {
    direction: ltr;
    text-align: left;
}

/* ---- Entity header (brand/category) ---- */
.as-entity-head {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.as-entity-head__icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(192, 192, 192, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0.5rem;
}

.as-entity-head__icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.as-entity-head__icon i {
    font-size: 1.75rem;
    color: var(--burgundy-light);
}

/* ---- Support ---- */
.as-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.as-contact {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(192, 192, 192, 0.1);
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
    color: inherit;
    min-height: var(--touch-min);
    transition: all var(--transition);
}

.as-contact:hover {
    border-color: var(--burgundy);
    background: rgba(114, 47, 55, 0.08);
    color: inherit;
}

.as-contact__icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(114, 47, 55, 0.15);
    color: var(--burgundy-light);
}

.as-contact__body {
    flex: 1;
    min-width: 0;
}

.as-contact__label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-gray);
}

.as-contact__value {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--silver-light);
}

.as-contact__arrow {
    color: var(--text-gray);
    font-size: 0.85rem;
}

/* ---- Search page ---- */
.as-search-bar {
    position: sticky;
    top: var(--nav-height);
    z-index: 50;
    padding: 0.75rem 0;
    margin: -0.5rem 0 1rem;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(192, 192, 192, 0.08);
}

.as-search-form {
    display: flex;
    gap: 0.5rem;
}

.as-search-form .as-input {
    flex: 1;
    border-radius: var(--radius-pill);
    padding-right: 1rem;
    padding-left: 2.75rem;
}

.as-search-wrap {
    position: relative;
    flex: 1;
}

.as-search-wrap > i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    pointer-events: none;
}

.as-filters {
    margin-bottom: 1rem;
}

/* Search toolbar: sort pills + filter button */
.as-search-toolbar {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    position: sticky;
    top: calc(var(--nav-height) + 4.25rem);
    z-index: 44;
    padding: 0.35rem 0;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.97) 70%, rgba(10, 10, 10, 0));
}

.as-sort-scroll {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.15rem 0;
}

.as-sort-scroll::-webkit-scrollbar {
    display: none;
}

.as-sort-pill {
    flex-shrink: 0;
    min-height: 40px;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(192, 192, 192, 0.14);
    background: rgba(26, 26, 26, 0.85);
    color: var(--text-gray);
    font-size: 0.78rem;
    font-weight: 600;
    font-family: inherit;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.as-sort-pill.is-active {
    border-color: rgba(114, 47, 55, 0.55);
    background: rgba(114, 47, 55, 0.22);
    color: var(--silver-light);
}

.as-filter-open-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 40px;
    padding: 0 0.9rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(192, 192, 192, 0.18);
    background: rgba(26, 26, 26, 0.9);
    color: var(--silver-light);
    font-size: 0.8rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

.as-filter-open-btn__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: var(--radius-pill);
    background: var(--burgundy);
    color: #fff;
    font-size: 0.7rem;
    font-style: normal;
    font-weight: 700;
}

/* Active filter chips */
.as-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}

.as-active-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(192, 192, 192, 0.14);
    background: rgba(114, 47, 55, 0.12);
    color: var(--silver-light);
    font-size: 0.75rem;
    text-decoration: none;
    transition: background var(--transition);
}

.as-active-filter:hover {
    background: rgba(114, 47, 55, 0.22);
    color: var(--silver-light);
}

.as-active-filter i {
    font-size: 0.65rem;
    opacity: 0.75;
}

.as-active-filter--clear {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(192, 192, 192, 0.12);
}

/* Filter bottom sheet (mobile) / inline panel (desktop) */
.as-filter-sheet-anchor {
    display: contents;
}

.as-filter-sheet {
    margin-bottom: 1rem;
}

.as-filter-sheet__backdrop {
    display: none;
}

.as-filter-sheet__panel {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(192, 192, 192, 0.12);
    background: rgba(18, 18, 18, 0.96);
    overflow: hidden;
}

.as-filter-sheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(192, 192, 192, 0.08);
}

.as-filter-sheet__head h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.as-filter-sheet__close {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--silver-light);
    cursor: pointer;
    flex-shrink: 0;
}

.as-filter-sheet__form {
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
}

.as-filter-section h3 {
    margin: 0 0 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.as-select--touch {
    min-height: 48px;
    font-size: 0.95rem;
    padding: 0.65rem 0.85rem;
}

.as-filter-price-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.5rem;
    align-items: end;
}

.as-filter-price-sep {
    color: var(--text-gray);
    padding-bottom: 0.85rem;
    font-size: 0.85rem;
}

.as-filter-toggles {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.as-filter-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 48px;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(192, 192, 192, 0.1);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    user-select: none;
}

.as-filter-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.as-filter-toggle__box {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 6px;
    border: 2px solid rgba(192, 192, 192, 0.35);
    background: transparent;
    position: relative;
    transition: border-color var(--transition), background var(--transition);
}

.as-filter-toggle input:checked + .as-filter-toggle__box {
    border-color: var(--burgundy-light);
    background: var(--burgundy);
}

.as-filter-toggle input:checked + .as-filter-toggle__box::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.as-filter-toggle__text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--silver-light);
}

.as-filter-sheet__foot {
    display: flex;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(192, 192, 192, 0.08);
    background: rgba(10, 10, 10, 0.5);
}

.as-filter-sheet__foot .as-btn {
    flex: 1;
    min-height: 48px;
    justify-content: center;
}

/* Mobile: bottom sheet overlay */
@media (max-width: 767px) {
    .as-filter-sheet--portal,
    body > .as-filter-sheet {
        position: fixed;
        inset: 0;
        z-index: 1300;
        margin: 0;
        pointer-events: none;
    }

    .as-filter-sheet--portal:not(.is-open) .as-filter-sheet__panel,
    body > .as-filter-sheet:not(.is-open) .as-filter-sheet__panel {
        visibility: hidden;
    }

    .as-filter-sheet--portal.is-open,
    body > .as-filter-sheet.is-open {
        pointer-events: auto;
    }

    .as-filter-sheet--portal.is-open .as-filter-sheet__panel,
    body > .as-filter-sheet.is-open .as-filter-sheet__panel {
        visibility: visible;
    }

    .as-filter-sheet--portal .as-filter-sheet__backdrop,
    body > .as-filter-sheet .as-filter-sheet__backdrop {
        display: block;
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        opacity: 0;
        transition: opacity 0.25s ease;
    }

    .as-filter-sheet--portal.is-open .as-filter-sheet__backdrop,
    body > .as-filter-sheet.is-open .as-filter-sheet__backdrop {
        opacity: 1;
    }

    .as-filter-sheet--portal .as-filter-sheet__panel,
    body > .as-filter-sheet .as-filter-sheet__panel {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        flex-direction: column;
        max-height: min(90dvh, calc(100dvh - env(safe-area-inset-top, 0px) - 0.5rem));
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
        border-bottom: none;
        box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
    }

    .as-filter-sheet--portal.is-open .as-filter-sheet__panel,
    body > .as-filter-sheet.is-open .as-filter-sheet__panel {
        transform: translateY(0);
    }

    .as-filter-sheet--portal .as-filter-sheet__head,
    body > .as-filter-sheet .as-filter-sheet__head {
        flex-shrink: 0;
    }

    .as-filter-sheet--portal .as-filter-sheet__close,
    body > .as-filter-sheet .as-filter-sheet__close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .as-filter-sheet--portal .as-filter-sheet__form,
    body > .as-filter-sheet .as-filter-sheet__form {
        flex: 1;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding-bottom: 0.75rem;
    }

    .as-filter-sheet--portal .as-filter-sheet__foot,
    body > .as-filter-sheet .as-filter-sheet__foot {
        flex-shrink: 0;
        padding-bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
        background: rgba(10, 10, 10, 0.98);
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25);
    }

    /* Inline sheet in page flow (before portal) — hide fixed behavior */
    .as-filter-sheet-anchor > .as-filter-sheet:not(.as-filter-sheet--portal) {
        display: none;
    }
}

body.filter-sheet-open .as-support-fab {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 767px) {
    body.filter-sheet-open .mobile-bottom-nav {
        display: none !important;
    }

    body.filter-sheet-open.has-mobile-nav {
        padding-bottom: 0 !important;
    }
}

/* Desktop: always-visible filter card */
@media (min-width: 768px) {
    .as-filter-open-btn {
        display: none;
    }

    .as-filter-sheet {
        display: block !important;
    }

    .as-filter-sheet[aria-hidden="true"] {
        /* keep visible on desktop */
    }

    .as-filter-sheet__form {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem 1.25rem;
    }

    .as-filter-section:last-child {
        grid-column: 1 / -1;
    }

    .as-filter-toggles {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .as-filter-toggle {
        flex: 1;
        min-width: 200px;
    }
}

/* ---- Product list (search mobile) ---- */
.as-list-product {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(192, 192, 192, 0.1);
    background: rgba(26, 26, 26, 0.75);
    margin-bottom: 0.75rem;
}

.as-list-product__row {
    display: flex;
    gap: 0.85rem;
}

.as-list-product__img {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: rgba(0,0,0,0.3);
}

@media (min-width: 480px) {
    .as-list-product__img { width: 96px; height: 96px; }
}

.as-list-product__media {
    position: relative;
    flex-shrink: 0;
}

.as-list-product__media .as-product__discount {
    top: 0.25rem;
    right: 0.25rem;
    font-size: 0.65rem;
    padding: 0.15rem 0.35rem;
}

.as-list-product__media .as-product__featured {
    bottom: 0.25rem;
    left: 0.25rem;
    width: 22px;
    height: 22px;
    font-size: 0.65rem;
}

.as-list-product__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.as-list-product__name {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.35;
}

.as-list-product__name a {
    color: var(--silver-light);
    text-decoration: none;
}

.as-list-product__name a:hover {
    color: var(--burgundy-light);
}

.as-list-product__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.as-list-product__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: var(--text-gray);
}

.as-list-product__brand img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    border-radius: 3px;
}

.as-list-product__price-old {
    display: block;
    font-size: 0.72rem;
    color: var(--text-gray);
    text-decoration: line-through;
}

.as-list-product__price-final {
    font-size: 1rem;
    font-weight: 700;
    color: var(--burgundy-light);
}

.as-list-product__actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(192, 192, 192, 0.06);
}

.as-list-product__actions form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    width: 100%;
}

.as-list-product__actions .as-qty {
    flex-shrink: 0;
}

.as-list-product__actions .as-btn {
    flex: 1;
    margin-top: 0 !important;
}

.as-search-form {
    position: relative;
}

.as-autocomplete {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    z-index: 100;
    max-height: 280px;
    overflow-y: auto;
    border-radius: var(--radius-md);
    border: 1px solid rgba(192, 192, 192, 0.12);
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    display: none;
}

.as-autocomplete.is-open {
    display: block;
}

.as-autocomplete__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(192, 192, 192, 0.06);
    transition: background var(--transition);
}

.as-autocomplete__item:last-child {
    border-bottom: none;
}

.as-autocomplete__item:hover {
    background: rgba(114, 47, 55, 0.12);
}

.as-autocomplete__item img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.as-autocomplete__item strong {
    display: block;
    font-size: 0.9rem;
    color: var(--silver-light);
}

.as-autocomplete__item small {
    color: var(--text-gray);
    font-size: 0.78rem;
}

.as-filters__actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(192, 192, 192, 0.08);
}

.as-filters__toggle i {
    transition: transform var(--transition);
}

.as-filters__toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.as-chip--btn {
    border: 1px solid rgba(192, 192, 192, 0.15);
    background: rgba(255, 255, 255, 0.04);
    color: var(--silver-light);
    cursor: pointer;
    font-family: inherit;
    transition: border-color var(--transition), background var(--transition);
}

.as-chip--btn:hover {
    border-color: var(--burgundy-light);
}

.as-chip--active {
    border-color: var(--burgundy);
    background: rgba(114, 47, 55, 0.2);
    color: var(--silver-light);
}

.as-query-highlight {
    color: var(--burgundy-light);
    font-weight: 600;
}

/* ---- Admin ---- */
.as-admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(192, 192, 192, 0.1);
    margin-bottom: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.as-admin-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.85rem;
    border-radius: var(--radius-sm);
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    min-height: 40px;
}

.as-admin-nav a:hover,
.as-admin-nav a.active {
    background: rgba(114, 47, 55, 0.2);
    color: var(--silver-light);
}

.as-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
    border: 1px solid rgba(192, 192, 192, 0.1);
}

.as-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.as-table th,
.as-table td {
    padding: 0.75rem;
    text-align: right;
    border-bottom: 1px solid rgba(192, 192, 192, 0.08);
}

.as-table th {
    background: rgba(114, 47, 55, 0.1);
    color: var(--silver);
    font-weight: 600;
    white-space: nowrap;
}

.as-table td img.as-table-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(192, 192, 192, 0.12);
}

.as-admin-shell {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.as-admin-nav__toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    min-height: var(--touch-min);
    padding: 0.65rem 0.85rem;
    border: none;
    border-radius: var(--radius-sm);
    background: rgba(114, 47, 55, 0.15);
    color: var(--silver-light);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
}

.as-admin-nav__links {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
    padding-top: 0.35rem;
}

.as-admin-nav--open .as-admin-nav__links {
    display: flex;
}

@media (min-width: 768px) {
    .as-admin-nav {
        flex-wrap: wrap;
        align-items: center;
    }

    .as-admin-nav__toggle {
        display: none;
    }

    .as-admin-nav__links {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        padding-top: 0;
        width: auto;
        flex: 1;
    }
}

.as-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .as-stat-grid { grid-template-columns: repeat(4, 1fr); }
}

.as-stat-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(192, 192, 192, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.as-stat-card__icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(114, 47, 55, 0.15);
    color: var(--burgundy-light);
    font-size: 1.1rem;
}

.as-stat-card strong {
    display: block;
    font-size: 1.35rem;
    line-height: 1.2;
}

.as-stat-card span {
    font-size: 0.78rem;
    color: var(--text-gray);
}

.as-quick-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 576px) {
    .as-quick-grid { grid-template-columns: repeat(2, 1fr); }
}

.as-quick-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(192, 192, 192, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--silver-light);
    text-decoration: none;
    transition: border-color var(--transition), background var(--transition);
}

.as-quick-link:hover {
    border-color: var(--burgundy);
    background: rgba(114, 47, 55, 0.1);
    color: var(--silver-light);
}

.as-quick-link > i:first-child {
    font-size: 1.35rem;
    color: var(--burgundy-light);
    width: 1.5rem;
    text-align: center;
}

.as-quick-link h4 {
    margin: 0 0 0.15rem;
    font-size: 0.95rem;
}

.as-quick-link p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.as-quick-link__arrow {
    margin-right: auto;
    color: var(--text-gray);
    font-size: 0.85rem;
}

.as-admin-search {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.as-admin-search__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .as-admin-search__row {
        grid-template-columns: 2fr 1fr auto auto;
        align-items: stretch;
    }
}

.as-admin-search__summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(192, 192, 192, 0.08);
    font-size: 0.85rem;
    color: var(--text-gray);
}

.as-collapsible__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.as-collapsible__body {
    display: none;
}

.as-collapsible__body.is-open {
    display: block;
}

.as-collapsible__toggle.is-open i {
    transform: rotate(180deg);
}

.as-collapsible__toggle i {
    transition: transform var(--transition);
}

.as-icon-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.as-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(192, 192, 192, 0.15);
    background: rgba(255, 255, 255, 0.04);
    color: var(--silver-light);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
}

.as-icon-btn:hover {
    border-color: var(--burgundy);
    color: var(--burgundy-light);
}

.as-icon-btn--danger:hover {
    border-color: #e57373;
    color: #ff9d9d;
    background: rgba(231, 76, 60, 0.12);
}

.as-btn--sm {
    min-height: 38px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.as-btn--success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.35);
    color: #a6ffce;
}

.as-btn--danger {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.35);
    color: #ff9f9f;
}

.as-pagination {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(192, 192, 192, 0.08);
}

@media (min-width: 576px) {
    .as-pagination {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.as-pagination__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.as-pagination__page-form {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
}

.as-pagination__page-form input {
    width: 56px;
    text-align: center;
}

.as-order-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 992px) {
    .as-order-grid { grid-template-columns: repeat(2, 1fr); }
}

.as-order-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(192, 192, 192, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.as-order-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.as-order-card__meta {
    display: grid;
    gap: 0.65rem;
}

.as-order-card__split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
}

@media (min-width: 480px) {
    .as-order-card__split { grid-template-columns: repeat(2, 1fr); }
}

.as-order-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.as-user-grid,
.as-location-grid,
.as-entry-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 576px) {
    .as-user-grid,
    .as-entry-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .as-location-grid { grid-template-columns: repeat(2, 1fr); }
}

.as-user-card,
.as-entry-card,
.as-location-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(192, 192, 192, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.as-user-card__head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(192, 192, 192, 0.08);
}

.as-user-card__stats {
    display: flex;
    gap: 0.75rem;
    text-align: center;
}

.as-order-history {
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.as-order-history__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.65rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(192, 192, 192, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.as-order-history__row a {
    color: var(--silver-light);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.as-order-history__row a:hover {
    color: var(--burgundy-light);
}

.as-chip--success { background: rgba(40, 167, 69, 0.15); border-color: rgba(40, 167, 69, 0.3); color: #a6ffce; }
.as-chip--warning { background: rgba(255, 193, 7, 0.15); border-color: rgba(255, 193, 7, 0.3); color: #ffda6a; }
.as-chip--info { background: rgba(13, 110, 253, 0.15); border-color: rgba(13, 110, 253, 0.3); color: #9ec5ff; }
.as-chip--danger { background: rgba(220, 53, 69, 0.15); border-color: rgba(220, 53, 69, 0.35); color: #ff9f9f; }
.as-chip--neutral { background: rgba(255, 255, 255, 0.06); border-color: rgba(192, 192, 192, 0.15); color: var(--text-gray); }

.as-upload {
    position: relative;
    border: 1px dashed rgba(192, 192, 192, 0.25);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
}

.as-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.as-upload i {
    display: block;
    font-size: 1.4rem;
    color: var(--burgundy-light);
    margin-bottom: 0.5rem;
}

.as-image-preview {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(192, 192, 192, 0.12);
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
}

.as-image-preview img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.as-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(192, 192, 192, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.as-switch {
    position: relative;
    width: 46px;
    height: 24px;
    flex-shrink: 0;
}

.as-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.as-switch__slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background var(--transition);
}

.as-switch__slider::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    top: 3px;
    right: 3px;
    transition: transform var(--transition);
}

.as-switch input:checked + .as-switch__slider {
    background: var(--burgundy);
}

.as-switch input:checked + .as-switch__slider::before {
    transform: translateX(-22px);
}

.as-rating-bars {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.as-rating-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(192, 192, 192, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

@media (min-width: 576px) {
    .as-rating-row {
        grid-template-columns: 1.2fr 2fr auto;
        align-items: center;
        gap: 0.75rem;
    }
}

.as-rating-bar {
    height: 8px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.as-rating-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--burgundy), var(--burgundy-light));
    border-radius: var(--radius-pill);
}

.as-stars {
    display: flex;
    gap: 0.25rem;
    color: var(--burgundy-light);
    font-size: 1.25rem;
}

.as-stars .is-empty {
    color: rgba(255, 255, 255, 0.2);
}

.as-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.35rem;
    max-height: 280px;
    overflow-y: auto;
    border-radius: var(--radius-md);
    border: 1px solid rgba(192, 192, 192, 0.12);
    background: rgba(10, 10, 10, 0.96);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    z-index: 100;
    display: none;
}

.as-autocomplete__item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(192, 192, 192, 0.06);
    font-size: 0.85rem;
}

.as-autocomplete__item:hover {
    background: rgba(114, 47, 55, 0.12);
}

.as-items-table {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.as-items-table__head,
.as-items-table__row {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 0.5rem;
    font-size: 0.85rem;
}

.as-items-table__head span {
    color: var(--text-gray);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.as-items-table__row {
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(192, 192, 192, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.as-items-table__foot {
    display: flex;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(192, 192, 192, 0.08);
    font-weight: 600;
}

.as-note-box {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(192, 192, 192, 0.1);
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ---- Splash (home) ---- */
.splash-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

body.splash-active {
    overflow: hidden;
}

.splash-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    width: min(92vw, 380px);
    padding: 1rem;
}

.splash-spiral-wrap {
    position: relative;
    width: min(68vw, 240px);
    height: min(68vw, 240px);
    flex-shrink: 0;
    margin-bottom: 0.25rem;
}

.spiral-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    animation: spiralRotate 12s linear infinite;
}

.spiral-path {
    fill: none;
    stroke: url(#spiralGradient);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: drawSpiral 2.2s ease-out forwards;
}

.spiral-path:nth-child(2) { animation-delay: 0.25s; opacity: 0.6; }
.spiral-path:nth-child(3) { animation-delay: 0.5s; opacity: 0.35; }

.splash-logo {
    width: min(38vw, 130px);
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0;
    transform: translateY(12px);
    animation: logoReveal 0.9s cubic-bezier(0.34, 1.2, 0.64, 1) 1.15s forwards;
    filter: none;
}

.splash-welcome {
    margin: 0;
    padding: 0 0.5rem;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.6;
    color: var(--silver-light);
    opacity: 0;
    transform: translateY(10px);
    animation: welcomeFade 0.85s ease 1.75s forwards;
    letter-spacing: 0.02em;
}

@keyframes drawSpiral { to { stroke-dashoffset: 0; } }
@keyframes spiralRotate { to { transform: rotate(360deg); } }
@keyframes logoReveal { to { opacity: 1; transform: translateY(0); } }
@keyframes welcomeFade { to { opacity: 1; transform: translateY(0); } }

.home-hero-card {
    width: 100%;
    max-width: 480px;
    text-align: center;
}

.home-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    width: 100%;
    max-width: 480px;
    margin-top: 1.25rem;
}

.feature-chip {
    padding: 0.65rem 0.4rem;
    border-radius: var(--radius-md);
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(192, 192, 192, 0.08);
    text-align: center;
    font-size: 0.65rem;
    color: var(--text-gray);
}

.feature-chip i {
    display: block;
    font-size: 1.1rem;
    color: var(--burgundy-light);
    margin-bottom: 0.25rem;
}

@media (max-width: 480px) {
    .home-features { grid-template-columns: 1fr; }
    .feature-chip {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        text-align: right;
        padding: 0.65rem 0.85rem;
        font-size: 0.8rem;
    }
    .feature-chip i { margin: 0; }
}

/* ---- Cart & checkout ---- */
.as-cart-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(192, 192, 192, 0.08);
}

.as-cart-item:last-child { border-bottom: none; }

.as-cart-item__row {
    display: flex;
    gap: 0.85rem;
}

.as-cart-item__img {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.as-cart-item__name {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.2rem;
}

.as-cart-item__meta {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin: 0;
}

.as-cart-item__price {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--silver-light);
}

.as-cart-item__price-old {
    font-size: 0.75rem;
    color: var(--text-gray);
    text-decoration: line-through;
    margin-left: 0.35rem;
}

.as-cart-item__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.as-summary-rows {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 1rem 0;
}

.as-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    gap: 0.5rem;
}

.as-summary-row--total {
    padding-top: 0.65rem;
    border-top: 1px solid rgba(192, 192, 192, 0.12);
    font-size: 1rem;
    font-weight: 700;
}

.as-timer-box {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(114, 47, 55, 0.35);
    background: rgba(114, 47, 55, 0.1);
    margin-bottom: 1rem;
}

.as-timer-box__value {
    font-size: 1.35rem;
    font-weight: 700;
    font-family: monospace;
    color: var(--burgundy-light);
}

.as-timer-box.warning-low {
    border-color: rgba(255, 152, 0, 0.45);
    background: rgba(255, 152, 0, 0.1);
}

.as-timer-box.warning-low .as-timer-box__value {
    color: #ff9800;
}

.as-timer-box.expired {
    border-color: rgba(244, 67, 54, 0.5);
    background: rgba(244, 67, 54, 0.12);
}

.as-timer-box.expired .as-timer-box__value {
    color: #ef5350;
}

.as-summary-row--discount strong {
    color: #81c784;
}

.as-summary-row--struck strong {
    text-decoration: line-through;
    color: var(--text-gray);
    font-weight: 500;
}

.as-stat-row .as-callout {
    flex: 1 1 100%;
    min-width: 0;
}

@media (min-width: 576px) {
    .as-stat-row .as-callout {
        flex: 1 1 220px;
    }
}

.delivery-fee {
    font-size: 0.8rem;
    line-height: 1.45;
    text-align: left;
    max-width: 65%;
}

.as-delivery-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.as-delivery-opt {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(192, 192, 192, 0.12);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    min-height: var(--touch-min);
}

.as-delivery-opt:has(input:checked) {
    border-color: var(--burgundy);
    background: rgba(114, 47, 55, 0.12);
}

.as-delivery-opt input {
    margin-top: 0.2rem;
    accent-color: var(--burgundy);
}

.as-delivery-opt strong {
    display: block;
    font-size: 0.9rem;
}

.as-delivery-opt small {
    color: var(--text-gray);
    font-size: 0.78rem;
}

.as-sticky-checkout {
    position: sticky;
    bottom: calc(var(--mobile-nav-height) + 0.5rem);
    z-index: 10;
}

@media (min-width: 992px) {
    .as-sticky-checkout { position: static; }
}

/* ---- Product detail ---- */
.as-product-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .as-product-detail { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

.as-product-detail__img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: var(--radius-lg);
    background: rgba(0, 0, 0, 0.35);
    padding: 1rem;
}

.as-product-detail__price {
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    font-weight: 700;
    color: var(--silver-light);
}

.as-product-detail__price-old {
    font-size: 0.95rem;
    color: var(--text-gray);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.as-product-detail__rating {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.65rem;
    font-size: 0.88rem;
    color: var(--silver);
    text-decoration: none;
}

.as-product-detail__rating:hover {
    color: var(--silver-light);
}

.as-product-detail__reviews-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.65rem;
    font-size: 0.85rem;
    color: var(--silver);
    text-decoration: none;
}

.as-product-detail__reviews-link:hover {
    color: var(--silver-light);
}

.as-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.as-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    background: rgba(114, 47, 55, 0.12);
    border: 1px solid rgba(114, 47, 55, 0.25);
    color: var(--silver);
}

.as-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
}

.as-meta-box {
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(192, 192, 192, 0.08);
}

.as-meta-box span {
    display: block;
    font-size: 0.72rem;
    color: var(--text-gray);
}

.as-meta-box strong {
    font-size: 0.85rem;
}

.hidden { display: none !important; }

/* ---- Profile ---- */
.as-profile-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

@media (min-width: 576px) {
    .as-profile-hero {
        flex-direction: row;
        text-align: right;
        align-items: center;
    }
}

.as-profile-hero__avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(114, 47, 55, 0.15);
    border: 1px solid rgba(114, 47, 55, 0.3);
    flex-shrink: 0;
}

.as-profile-hero__avatar i {
    font-size: 2rem;
    color: var(--burgundy-light);
}

.as-profile-hero__body {
    flex: 1;
    min-width: 0;
}

.as-profile-hero__phone {
    color: var(--burgundy-light);
    font-weight: 600;
    margin: 0.25rem 0 0.75rem;
}

.as-card__head-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.as-order-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 420px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 575px) {
    .as-order-list { max-height: none; }
}

.as-order-link {
    display: flex;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(192, 192, 192, 0.1);
    background: rgba(255, 255, 255, 0.02);
    text-decoration: none;
    color: inherit;
    min-height: var(--touch-min);
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.as-order-link:hover {
    border-color: rgba(114, 47, 55, 0.4);
    transform: translateY(-2px);
    color: inherit;
}

.as-order-link.highlighted {
    border-color: var(--burgundy);
    box-shadow: 0 0 20px var(--burgundy-glow);
}

.as-order-link__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(114, 47, 55, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--burgundy-light);
    flex-shrink: 0;
}

.as-order-link__body {
    flex: 1;
    min-width: 0;
}

.as-order-link__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.as-order-link__top h4 {
    margin: 0;
    font-size: 0.95rem;
}

.as-order-link__date {
    color: var(--text-gray);
    font-size: 0.8rem;
    margin: 0.15rem 0;
}

.as-order-link__meta {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.45;
}

.as-address-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 480px) {
    .as-address-grid { grid-template-columns: repeat(2, 1fr); }
}

.as-address-item {
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(192, 192, 192, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.as-address-item__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.as-address-item__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--burgundy-light);
    font-weight: 600;
    font-size: 0.9rem;
}

.as-chip--success {
    background: rgba(76, 175, 80, 0.12);
    border-color: rgba(76, 175, 80, 0.3);
    color: #81c784;
}

.as-address-item__line {
    margin: 0.25rem 0;
    font-weight: 600;
    font-size: 0.9rem;
}

.as-address-item__meta,
.as-address-item__desc {
    margin: 0.2rem 0;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.as-address-item__actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.as-icon-btn {
    min-width: var(--touch-min);
    min-height: var(--touch-min);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(192, 192, 192, 0.15);
    color: var(--burgundy-light);
    text-decoration: none;
    transition: all var(--transition);
}

.as-icon-btn:hover {
    background: rgba(114, 47, 55, 0.12);
    color: var(--burgundy-light);
}

.as-icon-btn--danger {
    border-color: rgba(244, 67, 54, 0.35);
    color: #e57373;
}

.as-icon-btn--danger:hover {
    background: rgba(244, 67, 54, 0.12);
}

/* ---- Orders list ---- */
.as-orders-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 576px) {
    .as-orders-grid { grid-template-columns: repeat(2, 1fr); }
}

.as-order-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.as-order-card__head h3 {
    margin: 0.2rem 0 0;
    font-size: 1rem;
}

.as-order-card__meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.as-order-card__meta-row span {
    display: block;
    font-size: 0.78rem;
    color: var(--text-gray);
}

.as-order-card__meta-row strong {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.9rem;
}

.as-order-card__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 480px) {
    .as-order-card__actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* ---- Status chips ---- */
.as-status {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid rgba(192, 192, 192, 0.15);
    white-space: nowrap;
}

.status-pending-approval,
.status-pending_approval,
.status-pending,
.status-preparing {
    background: rgba(255, 193, 7, 0.12);
    border-color: rgba(255, 193, 7, 0.35);
    color: #ffd54f;
}

.status-completed {
    background: rgba(76, 175, 80, 0.12);
    border-color: rgba(76, 175, 80, 0.35);
    color: #81c784;
}

.status-cancelled,
.status-rejected {
    background: rgba(244, 67, 54, 0.12);
    border-color: rgba(244, 67, 54, 0.35);
    color: #e57373;
}

.status-default {
    background: rgba(156, 39, 176, 0.12);
    border-color: rgba(156, 39, 176, 0.35);
    color: #ce93d8;
}

.as-badge--success {
    background: rgba(76, 175, 80, 0.12);
    border-color: rgba(76, 175, 80, 0.35);
    color: #81c784;
}

.as-badge--success i {
    color: #81c784;
}

/* ---- Order detail items ---- */
.as-item-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.as-item-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.85rem;
    align-items: center;
    padding: 0.85rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(192, 192, 192, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.as-item-row img {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid rgba(192, 192, 192, 0.1);
}

.as-item-row__info h4 {
    margin: 0;
    font-size: 0.95rem;
}

.as-item-row__info p {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.as-item-row__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.as-item-row__price {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.as-item-row__discount {
    margin-top: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.as-price-old {
    text-decoration: line-through;
    color: var(--text-gray);
    font-size: 0.8rem;
}

.as-discount-badge {
    background: rgba(76, 175, 80, 0.12);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #81c784;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

@media (max-width: 575px) {
    .as-item-row {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .as-item-row__top {
        flex-direction: column;
    }
}

/* ---- Timeline ---- */
.as-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.as-timeline__item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.as-timeline__dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(192, 192, 192, 0.3);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.as-timeline__item.active .as-timeline__dot {
    background: var(--burgundy);
    border-color: var(--burgundy);
    box-shadow: 0 0 10px var(--burgundy-glow);
}

.as-timeline__title {
    margin: 0;
    font-weight: 600;
    font-size: 0.9rem;
}

.as-timeline__time {
    color: var(--text-gray);
    font-size: 0.8rem;
}

/* ---- Ratings ---- */
.as-rating-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 480px) {
    .as-rating-grid { grid-template-columns: repeat(2, 1fr); }
}

.as-rating-field label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.as-star-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.15rem;
}

.as-star-input input {
    display: none;
}

.as-star-input label {
    cursor: pointer;
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.2);
    min-width: var(--touch-min);
    min-height: var(--touch-min);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.as-star-input label:hover,
.as-star-input label:hover ~ label,
.as-star-input input:checked ~ label {
    color: #ffc107;
}

.as-rating-display {
    display: flex;
    gap: 0.2rem;
    margin-top: 0.25rem;
}

.as-rating-display i {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

.as-rating-display i.filled {
    color: #ffc107;
}

.as-rating-display--sm i {
    font-size: 0.72rem;
}

.as-product-reviews {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(192, 192, 192, 0.12);
}

.as-product-reviews__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.as-product-reviews__head h2 {
    margin: 0.25rem 0 0;
    font-size: 1.35rem;
}

.as-product-reviews__summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(192, 192, 192, 0.1);
}

.as-product-reviews__count {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.as-product-reviews__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.as-product-review {
    padding: 1.1rem 1.15rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(192, 192, 192, 0.12);
    background: rgba(255, 255, 255, 0.02);
}

.as-product-review__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.as-product-review__user {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.as-product-review__avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(114, 47, 55, 0.2);
    color: var(--silver);
}

.as-product-review__user strong {
    display: block;
    font-size: 0.95rem;
}

.as-product-review__user time {
    display: block;
    font-size: 0.78rem;
    color: var(--text-gray);
    margin-top: 0.15rem;
}

.as-product-review__overall {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    font-size: 0.82rem;
    color: var(--text-gray);
}

.as-product-review__purchased {
    margin-bottom: 0.85rem;
}

.as-product-review__purchased ul {
    margin: 0.35rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
}

.as-product-review__purchased li {
    font-size: 0.85rem;
    color: var(--silver);
}

.as-product-review__comment {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(192, 192, 192, 0.08);
}

.as-product-review__comment p {
    margin: 0;
    line-height: 1.7;
    color: var(--silver-light);
}

.as-product-reviews__empty {
    padding: 1.5rem;
}

.as-product-reviews__title {
    margin: 0 0 1rem;
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.as-product-reviews__title .as-product-reviews__count {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-gray);
}

.as-product-review--compact {
    padding: 0.75rem 0.9rem;
}

.as-product-review__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.6rem;
    margin-bottom: 0.45rem;
    font-size: 0.82rem;
}

.as-product-review__meta strong {
    font-size: 0.88rem;
    color: var(--silver-light);
}

.as-product-review__order {
    color: var(--text-gray);
    font-size: 0.78rem;
}

.as-product-review__text {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--silver);
}

.as-product__reviews-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--silver);
    text-decoration: none;
}

.as-product__reviews-link:hover {
    color: var(--silver-light);
}

.as-product-reviews__breakdown {
    margin-bottom: 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(192, 192, 192, 0.08);
}

.as-product__reviews {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.as-product-review-preview {
    padding: 0.4rem 0.5rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(192, 192, 192, 0.06);
}

.as-product-review-preview__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.2rem;
}

.as-product-review-preview__head strong {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--silver-light);
}

.as-product-review-preview__score {
    font-size: 0.65rem;
    font-weight: 700;
    color: #ffc107;
    flex-shrink: 0;
}

.as-product-review-preview__items {
    margin: 0 0 0.15rem;
    font-size: 0.62rem;
    line-height: 1.45;
    color: var(--text-gray);
}

.as-product-review-preview__text {
    margin: 0;
    font-size: 0.62rem;
    line-height: 1.5;
    color: rgba(192, 192, 192, 0.85);
}

.as-product__reviews-more {
    font-size: 0.62rem;
    color: var(--burgundy-light, #c45c6a);
    text-decoration: none;
    padding: 0.15rem 0;
}

.as-product__reviews-more:hover {
    text-decoration: underline;
}

@media (min-width: 480px) {
    .as-product-review-preview__head strong {
        font-size: 0.72rem;
    }

    .as-product-review-preview__score {
        font-size: 0.7rem;
    }

    .as-product-review-preview__items,
    .as-product-review-preview__text {
        font-size: 0.68rem;
    }
}

.as-ratings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

@media (max-width: 479px) {
    .as-ratings-grid { grid-template-columns: 1fr; }
}

.as-ratings-grid > div > span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.as-comment-box {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(192, 192, 192, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.as-comment-box span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 0.35rem;
}

.as-comment-box p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ---- Confirmation steps ---- */
.as-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.as-step {
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(192, 192, 192, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.as-step__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(114, 47, 55, 0.12);
    border: 1px solid rgba(114, 47, 55, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--burgundy-light);
    flex-shrink: 0;
}

.as-step h4 {
    margin: 0 0 0.2rem;
    font-size: 0.95rem;
}

.as-step p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.45;
}

/* ---- Confirmation items table ---- */
.as-items-table {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.as-items-table__head {
    display: none;
    color: var(--text-gray);
    font-size: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(192, 192, 192, 0.1);
    margin-bottom: 0.25rem;
}

.as-items-table__row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(192, 192, 192, 0.08);
}

.as-items-table__row:last-child {
    border-bottom: none;
}

.as-items-table__row strong {
    font-size: 0.9rem;
}

.as-items-table__row small {
    color: var(--text-gray);
    font-size: 0.8rem;
}

@media (min-width: 768px) {
    .as-items-table__head,
    .as-items-table__row {
        display: grid;
        grid-template-columns: 2fr repeat(3, minmax(70px, 1fr));
        gap: 0.75rem;
        align-items: center;
    }

    .as-items-table__row {
        flex-direction: unset;
    }
}

/* ---- Info list (sidebar) ---- */
.as-info-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.as-info-list > div > span {
    display: block;
    font-size: 0.78rem;
    color: var(--text-gray);
}

.as-info-list > div > strong {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.9rem;
}

.as-info-list > div > small {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.as-info-list .as-info-notes p {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.45;
}

.as-action-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.as-page-header__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.as-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ---- Order detail page (/order/:id) ---- */
.as-order-detail-page .back-chip {
    margin-bottom: 0.75rem;
}

.as-od-hero {
    padding: 1.1rem 1.15rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(192, 192, 192, 0.12);
    background: rgba(26, 26, 26, 0.88);
    margin-bottom: 1rem;
}

.as-od-hero__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.as-od-hero__title {
    margin: 0.2rem 0 0;
    font-size: clamp(1.15rem, 4vw, 1.45rem);
    font-weight: 700;
}

.as-od-hero__date {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    color: var(--text-gray);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.as-od-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(192, 192, 192, 0.08);
}

.as-od-stat {
    text-align: center;
    padding: 0.5rem 0.35rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
}

.as-od-stat span {
    display: block;
    font-size: 0.72rem;
    color: var(--text-gray);
    margin-bottom: 0.2rem;
}

.as-od-stat strong {
    font-size: 0.88rem;
    line-height: 1.3;
}

.as-od-alert {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-size: 0.88rem;
}

.as-od-alert p {
    margin: 0;
}

.as-od-alert--danger {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #e57373;
}

.as-od-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.25rem;
    margin-bottom: 1rem;
    padding: 0.85rem 0.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(192, 192, 192, 0.1);
    background: rgba(26, 26, 26, 0.75);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.as-od-step {
    flex: 1;
    min-width: 4.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    text-align: center;
    position: relative;
    opacity: 0.45;
}

.as-od-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 14px;
    left: calc(50% + 14px);
    width: calc(100% - 28px);
    height: 2px;
    background: rgba(192, 192, 192, 0.15);
    pointer-events: none;
}

.as-od-step.is-done:not(:last-child)::after {
    background: rgba(114, 47, 55, 0.5);
}

.as-od-step.is-done,
.as-od-step.is-current {
    opacity: 1;
}

.as-od-step__dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(192, 192, 192, 0.25);
    background: rgba(10, 10, 10, 0.6);
    font-size: 0.65rem;
    color: var(--text-gray);
    position: relative;
    z-index: 1;
}

.as-od-step.is-done .as-od-step__dot {
    border-color: var(--burgundy);
    background: rgba(114, 47, 55, 0.25);
    color: var(--burgundy-light);
}

.as-od-step.is-current .as-od-step__dot {
    border-color: var(--burgundy-light);
    background: var(--burgundy);
    color: #fff;
    box-shadow: 0 0 12px var(--burgundy-glow);
}

.as-od-step__label {
    font-size: 0.68rem;
    line-height: 1.35;
    color: var(--text-gray);
    max-width: 4.5rem;
}

.as-od-step.is-current .as-od-step__label,
.as-od-step.is-done .as-od-step__label {
    color: var(--silver-light);
    font-weight: 600;
}

.as-od-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
}

@media (min-width: 992px) {
    .as-od-layout {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr);
    }
}

@media (max-width: 991px) {
    .as-od-layout {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .as-od-main,
    .as-od-side {
        display: contents;
    }

    .as-od-card--items { order: 1; }
    .as-od-card--summary { order: 2; }
    .as-od-card--rating { order: 3; }
    .as-od-card--actions { order: 4; }
}

.as-od-side,
.as-od-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.as-od-card {
    padding: 1rem 1.1rem;
}

.as-od-kv-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.as-od-kv {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.as-od-kv__icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(114, 47, 55, 0.15);
    color: var(--burgundy-light);
    font-size: 0.85rem;
}

.as-od-kv > div {
    flex: 1;
    min-width: 0;
}

.as-od-kv > div > span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-gray);
}

.as-od-kv > div > strong {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.9rem;
    line-height: 1.45;
}

.as-od-kv > div > small,
.as-od-kv > div > p {
    display: block;
    margin: 0.25rem 0 0;
    font-size: 0.8rem;
    color: var(--text-gray);
    line-height: 1.5;
}

.as-od-kv--note > div > p {
    color: var(--silver);
}

.as-od-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.as-od-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.as-od-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(192, 192, 192, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.as-od-item__img {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid rgba(192, 192, 192, 0.1);
}

.as-od-item__body {
    flex: 1;
    min-width: 0;
}

.as-od-item__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.as-od-item__head h4 {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.4;
    font-weight: 600;
}

.as-od-item__qty {
    flex-shrink: 0;
    font-size: 0.82rem;
    color: var(--text-gray);
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.05);
}

.as-od-item__cat {
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
    color: var(--text-gray);
}

.as-od-item__discount {
    margin-top: 0.35rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.as-od-item__price {
    margin: 0.4rem 0 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--burgundy-light);
}

.as-od-item__price small {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-gray);
    margin-right: 0.2rem;
}

.as-od-summary {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(192, 192, 192, 0.08);
}

@media (max-width: 400px) {
    .as-od-hero__stats {
        grid-template-columns: 1fr;
    }

    .as-od-stat {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: right;
        padding: 0.55rem 0.75rem;
    }

    .as-od-stat span {
        margin-bottom: 0;
    }
}

@media (max-width: 767px) {
    .as-order-detail-page .as-page__inner {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .as-order-detail-page .as-od-card {
        padding: 0.7rem 0.8rem;
        border-radius: var(--radius-md);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
    }

    .as-order-detail-page .as-od-card .as-card__head {
        margin-bottom: 0.55rem;
    }

    .as-order-detail-page .as-od-card .as-card__head h3 {
        font-size: 0.92rem;
    }

    .as-order-detail-page .as-od-card .muted-label {
        font-size: 0.68rem;
    }

    .as-order-detail-page .as-od-card__head--compact {
        margin-bottom: 0.45rem;
    }

    .as-order-detail-page .as-od-card__head--compact h3 {
        margin: 0;
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--text-gray);
    }

    .as-order-detail-page .as-od-kv-list {
        gap: 0.45rem;
    }

    .as-order-detail-page .as-od-kv {
        gap: 0.55rem;
        padding: 0.45rem 0.5rem;
        border-radius: var(--radius-sm);
        background: rgba(255, 255, 255, 0.02);
    }

    .as-order-detail-page .as-od-kv__icon {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }

    .as-order-detail-page .as-od-kv > div > span {
        font-size: 0.68rem;
    }

    .as-order-detail-page .as-od-kv > div > strong {
        font-size: 0.82rem;
        margin-top: 0.1rem;
    }

    .as-order-detail-page .as-od-kv > div > small,
    .as-order-detail-page .as-od-kv > div > p {
        font-size: 0.74rem;
        margin-top: 0.15rem;
        line-height: 1.4;
    }

    .as-order-detail-page .as-od-actions {
        flex-direction: row;
        gap: 0.45rem;
    }

    .as-order-detail-page .as-od-actions .as-btn {
        flex: 1;
        flex-direction: row;
        justify-content: center;
        gap: 0.35rem;
        min-height: 38px;
        padding: 0.45rem 0.5rem;
        font-size: 0.78rem;
    }

    .as-order-detail-page .as-od-actions .as-btn span {
        font-size: 0.72rem;
        line-height: 1.2;
    }

    .as-order-detail-page .as-od-actions__head {
        margin-bottom: 0.4rem;
    }

    .as-order-detail-page .as-od-actions__head .muted-label {
        display: none;
    }

    .as-order-detail-page .as-od-actions__head h3 {
        margin: 0;
        font-size: 0.82rem;
        font-weight: 600;
        color: var(--text-gray);
    }

    .as-order-detail-page .as-od-card--summary .as-card__head .muted-label,
    .as-order-detail-page .as-od-card--rating .as-card__head .muted-label {
        display: none;
    }

    .as-order-detail-page .as-od-card--rating .as-form {
        gap: 0.65rem;
    }

    .as-order-detail-page .as-od-card--rating .as-rating-grid {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0.35rem;
    }

    .as-order-detail-page .as-od-card--rating .as-rating-field {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        padding: 0.45rem 0;
        border-bottom: 1px solid rgba(192, 192, 192, 0.08);
    }

    .as-order-detail-page .as-od-card--rating .as-rating-field:last-child {
        border-bottom: none;
    }

    .as-order-detail-page .as-od-card--rating .as-rating-field label {
        flex: 1;
        min-width: 0;
        margin: 0;
        font-size: 0.76rem;
        font-weight: 500;
        line-height: 1.35;
    }

    .as-order-detail-page .as-od-card--rating .as-star-input {
        flex-shrink: 0;
        gap: 0;
    }

    .as-order-detail-page .as-od-card--rating .as-star-input label {
        font-size: 0.95rem;
        min-width: 26px;
        min-height: 26px;
    }

    .as-order-detail-page .as-od-card--rating .as-field {
        gap: 0.3rem;
    }

    .as-order-detail-page .as-od-card--rating .as-field label {
        font-size: 0.78rem;
    }

    .as-order-detail-page .as-od-card--rating .as-textarea {
        min-height: 72px;
        padding: 0.55rem 0.65rem;
        font-size: 0.85rem;
    }

    .as-order-detail-page .as-od-card--rating .as-btn--block {
        min-height: 40px;
        font-size: 0.85rem;
    }

    .as-order-detail-page .as-od-card--rating .as-ratings-grid {
        gap: 0.45rem;
    }

    .as-order-detail-page .as-od-card--rating .as-ratings-grid > div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        padding: 0.35rem 0;
        border-bottom: 1px solid rgba(192, 192, 192, 0.06);
    }

    .as-order-detail-page .as-od-card--rating .as-ratings-grid > div:last-child {
        border-bottom: none;
    }

    .as-order-detail-page .as-od-card--rating .as-ratings-grid > div > span {
        flex: 1;
        min-width: 0;
        font-size: 0.74rem;
        margin: 0;
    }

    .as-order-detail-page .as-od-card--rating .as-rating-display {
        margin: 0;
        flex-shrink: 0;
    }

    .as-order-detail-page .as-od-card--rating .as-rating-display i {
        font-size: 0.78rem;
    }

    .as-order-detail-page .as-od-card--rating .as-comment-box {
        margin-top: 0.65rem;
        padding: 0.65rem 0.75rem;
    }
}

/* ---- Homepage (Vina-style) ---- */
.as-home {
    padding-bottom: 1rem;
}

.as-home-hero {
    position: relative;
    padding: 2.5rem 1.25rem 2rem;
    text-align: center;
    overflow: hidden;
}

.as-home-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(114,47,55,0.35) 0%, transparent 55%),
        linear-gradient(180deg, rgba(26,26,26,0.4) 0%, transparent 100%);
    pointer-events: none;
}

.as-home-hero__content {
    position: relative;
    max-width: 520px;
    margin: 0 auto;
}

.as-home-hero__logo {
    width: 100px;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px rgba(192,192,192,0.2));
}

.as-home-hero h1 {
    font-size: clamp(1.4rem, 5vw, 1.85rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #f5f5f5, #c0c0c0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.as-home-hero p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.as-home-section {
    padding: 1.25rem 0;
    content-visibility: auto;
    contain-intrinsic-size: auto 260px;
}

.as-home-section--defer {
    contain-intrinsic-size: auto 280px;
}

.as-scroll-card__img img.js-lazy-img {
    opacity: 0;
    transition: opacity 0.25s ease;
    background: #111;
}

.as-scroll-card__img img.js-lazy-img.is-loaded,
.as-cat-chip__icon img.js-lazy-img.is-loaded {
    opacity: 1;
}

.as-cat-chip__icon img.js-lazy-img {
    opacity: 0;
    transition: opacity 0.25s ease;
}

.as-home-section--accent {
    background: linear-gradient(180deg, rgba(114,47,55,0.08) 0%, transparent 100%);
}

.as-home-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem 0.75rem;
}

.as-home-section__head h2 {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.as-home-section__head h2 i {
    color: var(--burgundy-light);
}

.as-home-section__head a {
    font-size: 0.8rem;
    color: var(--burgundy-light);
    text-decoration: none;
}

.as-cat-scroll {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    padding: 0 1rem 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.as-cat-scroll::-webkit-scrollbar {
    display: none;
}

.as-cat-chip {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    min-width: 72px;
    text-decoration: none;
    color: var(--text-light);
}

.as-cat-chip__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(26,26,26,0.9);
    border: 1px solid rgba(192,192,192,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all var(--transition);
}

.as-cat-chip__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.as-cat-chip__icon i {
    font-size: 1.25rem;
    color: var(--burgundy-light);
}

.as-cat-chip:hover .as-cat-chip__icon {
    border-color: var(--burgundy);
    transform: scale(1.05);
}

.as-cat-chip__name {
    font-size: 0.7rem;
    text-align: center;
    color: var(--text-gray);
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.as-scroll-row {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0 1rem 0.75rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.as-scroll-row::-webkit-scrollbar {
    display: none;
}

.as-scroll-card {
    flex: 0 0 140px;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    background: rgba(26,26,26,0.85);
    border: 1px solid rgba(192,192,192,0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition);
}

.as-scroll-card:hover {
    transform: translateY(-3px);
    border-color: rgba(114,47,55,0.35);
}

.as-scroll-card__img {
    position: relative;
    aspect-ratio: 1;
    background: #111;
}

.as-scroll-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.as-scroll-card__badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--burgundy);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-pill);
}

.as-scroll-card__body {
    padding: 0.5rem 0.55rem 0.65rem;
}

.as-scroll-card__body h3 {
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.35;
    margin: 0 0 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2em;
}

.as-scroll-card__price {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--burgundy-light);
}

.as-scroll-card__price .old {
    display: block;
    font-size: 0.62rem;
    color: var(--text-gray);
    text-decoration: line-through;
    font-weight: 400;
}

.as-trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    padding: 1.25rem 1rem 2rem;
}

.as-trust-item {
    background: rgba(26,26,26,0.7);
    border: 1px solid rgba(192,192,192,0.08);
    border-radius: var(--radius-md);
    padding: 1rem 0.75rem;
    text-align: center;
}

.as-trust-item i {
    font-size: 1.35rem;
    color: var(--burgundy-light);
    margin-bottom: 0.35rem;
}

.as-trust-item strong {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 0.15rem;
}

.as-trust-item span {
    font-size: 0.7rem;
    color: var(--text-gray);
}

@media (min-width: 768px) {
    .as-scroll-card {
        flex: 0 0 160px;
    }

    .as-trust-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 960px;
        margin: 0 auto;
    }
}

/* ---- Categories page ---- */
.as-cat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.as-cat-tile {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: rgba(26,26,26,0.85);
    border: 1px solid rgba(192,192,192,0.1);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition);
}

.as-cat-tile:hover {
    border-color: rgba(114,47,55,0.4);
    transform: translateX(-3px);
}

.as-cat-tile__media {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: rgba(10,10,10,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.as-cat-tile__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.as-cat-tile__media i {
    font-size: 1.25rem;
    color: var(--burgundy-light);
}

.as-cat-tile__body {
    flex: 1;
    min-width: 0;
}

.as-cat-tile__body h3 {
    font-size: 0.95rem;
    margin: 0 0 0.15rem;
}

.as-cat-tile__body span {
    font-size: 0.78rem;
    color: var(--text-gray);
}

.as-cat-tile__arrow {
    color: var(--text-gray);
    font-size: 0.75rem;
}

@media (min-width: 576px) {
    .as-cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- Single store card ---- */
.as-store-card {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1rem;
    background: rgba(114,47,55,0.1);
    border: 1px solid rgba(114,47,55,0.25);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.as-store-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(114,47,55,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--burgundy-light);
    flex-shrink: 0;
}

.as-store-card strong {
    display: block;
    margin-bottom: 0.25rem;
}

.as-store-card p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.45;
}

.as-callout--delivery-only {
    margin-bottom: 1rem;
}

.as-add-address-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.9rem 1rem;
    margin-top: 0.35rem;
    border-radius: var(--radius-md);
    border: 1px dashed rgba(114, 47, 55, 0.45);
    background: rgba(114, 47, 55, 0.08);
    color: var(--silver-light);
    text-decoration: none;
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.as-add-address-card:hover {
    border-color: var(--burgundy-light);
    background: rgba(114, 47, 55, 0.14);
    color: var(--silver-light);
    transform: translateY(-1px);
}

.as-add-address-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(114, 47, 55, 0.2);
    color: var(--burgundy-light);
    flex-shrink: 0;
}

.as-add-address-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.as-add-address-card__body strong {
    font-size: 0.9rem;
}

.as-add-address-card__body small {
    font-size: 0.78rem;
    color: var(--text-gray);
    line-height: 1.45;
}

.as-add-address-card__arrow {
    color: var(--burgundy-light);
    flex-shrink: 0;
    opacity: 0.85;
}

.as-callout--delivery-only {
    margin-bottom: 1rem;
}

.as-add-address-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-md);
    border: 1px dashed rgba(114, 47, 55, 0.45);
    background: rgba(114, 47, 55, 0.08);
    color: var(--silver-light);
    text-decoration: none;
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
    margin-top: 0.35rem;
}

.as-add-address-card:hover {
    color: var(--silver-light);
    border-color: var(--burgundy-light);
    background: rgba(114, 47, 55, 0.14);
    transform: translateY(-1px);
}

.as-add-address-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(114, 47, 55, 0.2);
    color: var(--burgundy-light);
    flex-shrink: 0;
}

.as-add-address-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.as-add-address-card__body strong {
    font-size: 0.9rem;
}

.as-add-address-card__body small {
    font-size: 0.78rem;
    color: var(--text-gray);
    line-height: 1.45;
}

.as-add-address-card__arrow {
    color: var(--text-gray);
    flex-shrink: 0;
}

/* ---- Admin social list ---- */
.as-social-admin-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.as-social-admin-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(10,10,10,0.4);
    border: 1px solid rgba(192,192,192,0.08);
    border-radius: var(--radius-sm);
    flex-wrap: wrap;
}

.as-social-admin-item__info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.as-social-admin-item__info i {
    font-size: 1.25rem;
    color: var(--burgundy-light);
}

.as-social-admin-item__info strong {
    display: block;
    font-size: 0.9rem;
}

.as-social-admin-item__info small {
    display: block;
    color: var(--text-gray);
    font-size: 0.75rem;
    word-break: break-all;
}

.as-social-admin-item__actions {
    display: flex;
    gap: 0.35rem;
}

.as-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.as-toggle input {
    width: 18px;
    height: 18px;
    accent-color: var(--burgundy);
}

/* ---- Dev contact bar (inside footer) ---- */
.as-dev-bar {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(114, 47, 55, 0.35);
}

.as-dev-bar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.65rem;
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.as-dev-bar__text {
    font-size: 0.72rem;
    color: var(--text-gray);
    line-height: 1.5;
}

.as-dev-bar__phone {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--silver-light);
    text-decoration: none;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-pill);
    background: rgba(114, 47, 55, 0.35);
    border: 1px solid rgba(114, 47, 55, 0.5);
    transition: all var(--transition);
    letter-spacing: 0.5px;
}

.as-dev-bar__phone:hover {
    color: #fff;
    background: var(--burgundy);
    border-color: var(--burgundy-light);
}

@media (max-width: 768px) {
    .as-dev-bar__text {
        font-size: 0.65rem;
    }

    .as-dev-bar__phone {
        font-size: 0.75rem;
    }

    /* Hide decorative glows on mobile – they caused horizontal overflow */
    .as-glow {
        display: none !important;
    }

    .as-page {
        padding-inline: 0.75rem;
        min-height: auto;
    }

    .as-auth {
        min-height: auto;
    }

    .as-home {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
    }

    .as-home-section,
    .as-home-banner,
    .as-trust-grid,
    .as-home-faq {
        max-width: 100%;
    }
}

/* ---- Homepage banner ---- */
.as-home-banner {
    padding: 0 0 0.5rem;
}

.as-home-banner__slide {
    position: relative;
    min-height: 280px;
    background:
        radial-gradient(ellipse at 70% 20%, rgba(114,47,55,0.4) 0%, transparent 50%),
        linear-gradient(135deg, #141414 0%, #0a0a0a 60%, #1a1214 100%);
    overflow: hidden;
}

.as-home-banner__overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c0c0c0' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.as-home-banner__content {
    position: relative;
    text-align: center;
    padding: 2rem 1.25rem 1.75rem;
    max-width: 560px;
    margin: 0 auto;
}

.as-home-banner__logo {
    width: clamp(120px, 32vw, 180px);
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 24px rgba(192,192,192,0.35));
}

.as-home-banner h1 {
    font-size: clamp(1.25rem, 4.5vw, 1.65rem);
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--silver-light);
}

.as-home-banner p {
    font-size: 0.88rem;
    color: var(--text-gray);
    margin-bottom: 0.85rem;
}

.as-home-banner__stats {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 1rem;
    font-size: 0.78rem;
    color: var(--text-gray);
}

.as-home-banner__stats strong {
    color: var(--burgundy-light);
    font-size: 1rem;
    margin-left: 0.25rem;
}

.as-home-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.as-home-banner__actions .as-btn {
    min-width: 140px;
}

.as-home-section--cats {
    padding-top: 0.5rem;
}

.as-scroll-row--wide .as-scroll-card {
    flex: 0 0 150px;
}

.as-scroll-card__badge--pct {
    top: auto;
    bottom: 6px;
    right: 6px;
    background: var(--burgundy);
}

.as-scroll-card__badge--out {
    top: 6px;
    left: 6px;
    right: auto;
    background: rgba(60,60,60,0.9);
    color: var(--text-gray);
}

/* ---- Homepage category grid ---- */
.as-home-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
    padding: 0 1rem 0.5rem;
}

.as-home-cat-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: inherit;
    padding: 0.65rem 0.35rem;
    background: rgba(26,26,26,0.8);
    border: 1px solid rgba(192,192,192,0.08);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.as-home-cat-tile:hover {
    border-color: rgba(114,47,55,0.4);
    transform: translateY(-2px);
}

.as-home-cat-tile__img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(10,10,10,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.as-home-cat-tile__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.as-home-cat-tile__img i {
    color: var(--burgundy-light);
    font-size: 1.1rem;
}

.as-home-cat-tile__name {
    font-size: 0.68rem;
    text-align: center;
    color: var(--text-gray);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 576px) {
    .as-home-cat-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 992px) {
    .as-home-cat-grid {
        grid-template-columns: repeat(6, 1fr);
        max-width: 1100px;
        margin: 0 auto;
    }

    .as-home-banner__slide {
        min-height: 320px;
    }

    .as-home-banner__logo {
        width: 180px;
    }
}

/* ---- FAQ ---- */
.as-home-faq {
    padding: 1rem 1rem 2.5rem;
}

.as-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 720px;
    margin: 0 auto;
}

.as-faq-item {
    background: rgba(26,26,26,0.85);
    border: 1px solid rgba(192,192,192,0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.as-faq-item summary {
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.as-faq-item summary::-webkit-details-marker {
    display: none;
}

.as-faq-item summary::after {
    content: '+';
    color: var(--burgundy-light);
    font-size: 1.1rem;
    font-weight: 400;
    flex-shrink: 0;
}

.as-faq-item[open] summary::after {
    content: '−';
}

.as-faq-item p {
    padding: 0 1rem 0.85rem;
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-gray);
    line-height: 1.6;
    border-top: 1px solid rgba(192,192,192,0.06);
    padding-top: 0.65rem;
}

.as-faq-item p a {
    color: var(--burgundy-light);
    text-decoration: none;
    font-weight: 600;
}

.as-faq-item p a:hover {
    text-decoration: underline;
}

/* Admin dashboard tabs */
.as-admin-tabs-wrap {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: 0 -0.25rem 1rem;
    padding: 0.35rem 0;
    background: linear-gradient(180deg, var(--bg-dark) 72%, transparent);
    overflow-anchor: none;
}

.as-admin-tabs {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.25rem 0.25rem 0.5rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.as-admin-tabs::-webkit-scrollbar {
    height: 4px;
}

.as-admin-tabs::-webkit-scrollbar-thumb {
    background: rgba(192, 192, 192, 0.25);
    border-radius: 4px;
}

.as-admin-tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(192, 192, 192, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-gray);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.as-admin-tab i {
    font-size: 0.85rem;
    opacity: 0.85;
}

.as-admin-tab:hover {
    border-color: rgba(114, 47, 55, 0.45);
    color: var(--silver-light);
}

.as-admin-tab.is-active {
    border-color: var(--burgundy);
    background: rgba(114, 47, 55, 0.18);
    color: var(--silver-light);
}

.as-admin-tab__badge {
    min-width: 1.25rem;
    padding: 0.1rem 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    line-height: 1.3;
    text-align: center;
}

.as-admin-tab.is-active .as-admin-tab__badge {
    background: rgba(114, 47, 55, 0.35);
}

.as-admin-tab-panel {
    display: none;
}

.as-admin-tab-panel.is-active {
    display: block;
    animation: as-tab-fade 0.15s ease;
}

.as-admin-tab-panels {
    overflow-anchor: none;
}

@keyframes as-tab-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.as-admin-tab-panel > .as-card + .as-card,
.as-admin-tab-panel > .as-stat-grid + .as-card,
.as-admin-tab-panel > .as-stat-grid + .as-quick-grid,
.as-admin-tab-panel > .as-quick-grid + .as-card {
    margin-top: 1rem;
}

.as-admin-tab-panel > .as-stat-grid + .as-quick-grid {
    margin-top: 1rem;
}

.as-admin-add-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

@media (min-width: 576px) {
    .as-admin-add-grid { grid-template-columns: repeat(3, 1fr); }
}

.as-admin-add-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(192, 192, 192, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: var(--silver-light);
    text-decoration: none;
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.as-admin-add-card:hover {
    border-color: var(--burgundy);
    background: rgba(114, 47, 55, 0.1);
    color: var(--silver-light);
    transform: translateY(-2px);
}

.as-admin-add-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(114, 47, 55, 0.15);
    color: var(--burgundy-light);
    font-size: 1.2rem;
}

.as-admin-add-card h4 {
    margin: 0;
    font-size: 1rem;
}

.as-admin-add-card p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-gray);
    line-height: 1.5;
}

.as-admin-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.as-admin-panel-head h3 {
    margin: 0;
    font-size: 1.05rem;
}

.as-admin-panel-head p {
    margin: 0.2rem 0 0;
    font-size: 0.82rem;
    color: var(--text-gray);
}

/* Support tickets & chat */
.as-ticket-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.as-ticket-item {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(192, 192, 192, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--silver-light);
    text-decoration: none;
    transition: border-color var(--transition), background var(--transition);
}

.as-ticket-item:hover {
    border-color: var(--burgundy);
    background: rgba(114, 47, 55, 0.08);
    color: var(--silver-light);
}

.as-ticket-item__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.as-ticket-item__code {
    font-size: 0.78rem;
    color: var(--burgundy-light);
}

.as-ticket-item__title {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
}

.as-ticket-item__meta,
.as-ticket-item__date {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.as-ticket-meta {
    margin-bottom: 1rem;
}

.as-ticket-meta__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem 1rem;
}

@media (min-width: 576px) {
    .as-ticket-meta__grid { grid-template-columns: repeat(3, 1fr); }
}

.as-ticket-meta__full {
    grid-column: 1 / -1;
}

.as-ticket-meta__grid p {
    margin: 0 0 0.2rem;
}

.as-chat__messages {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 420px;
    overflow-y: auto;
    padding: 0.5rem 0 1rem;
    margin-bottom: 1rem;
}

.as-chat__bubble {
    max-width: 88%;
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(192, 192, 192, 0.1);
}

.as-chat__bubble--user {
    align-self: flex-end;
    background: rgba(114, 47, 55, 0.15);
    border-color: rgba(114, 47, 55, 0.25);
}

.as-chat__bubble--staff {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
}

.as-chat__bubble-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
    color: var(--text-gray);
}

.as-chat__bubble-head strong {
    color: var(--silver-light);
    font-size: 0.8rem;
}

.as-chat__bubble p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    white-space: pre-wrap;
}

.as-chat__composer {
    border-top: 1px solid rgba(192, 192, 192, 0.08);
    padding-top: 1rem;
}

.as-chat__close-form {
    margin-top: 0.65rem;
}

.as-chat__closed {
    margin: 0;
    padding: 0.75rem;
    text-align: center;
    color: var(--text-gray);
    font-size: 0.88rem;
    border-top: 1px solid rgba(192, 192, 192, 0.08);
}

.as-ticket-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.as-ticket-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(192, 192, 192, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-gray);
    font-size: 0.82rem;
    text-decoration: none;
    transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.as-ticket-filter em {
    font-style: normal;
    min-width: 1.1rem;
    padding: 0.05rem 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    text-align: center;
}

.as-ticket-filter:hover {
    border-color: var(--burgundy);
    color: var(--silver-light);
}

.as-ticket-filter.is-active {
    border-color: var(--burgundy);
    background: rgba(114, 47, 55, 0.18);
    color: var(--silver-light);
}

.as-ticket-filter.is-active em {
    background: rgba(114, 47, 55, 0.35);
}

.as-ticket-item__status-hint {
    margin: 0 0 0.25rem;
    font-size: 0.78rem;
    color: var(--burgundy-light);
}

.as-ticket-table-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.72rem;
    color: var(--text-gray);
    line-height: 1.4;
}

/* ---- Fixed online support FAB ---- */
.as-support-fab {
    position: fixed;
    z-index: 1055;
    inset-inline-start: max(0.85rem, env(safe-area-inset-left, 0));
    bottom: calc(1rem + env(safe-area-inset-bottom, 0));
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--burgundy) 0%, #8b3a44 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 28px rgba(114, 47, 55, 0.45), 0 2px 8px rgba(0, 0, 0, 0.35);
    color: #fff;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: transform var(--transition), box-shadow var(--transition);
    animation: as-support-fab-pulse 2.5s ease-in-out infinite;
}

.as-support-fab:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(114, 47, 55, 0.55), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.as-support-fab__icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    font-size: 1rem;
    flex-shrink: 0;
}

.as-support-fab__label {
    white-space: nowrap;
    line-height: 1.2;
}

@keyframes as-support-fab-pulse {
    0%, 100% { box-shadow: 0 8px 28px rgba(114, 47, 55, 0.45), 0 0 0 0 rgba(114, 47, 55, 0.35); }
    50% { box-shadow: 0 8px 28px rgba(114, 47, 55, 0.5), 0 0 0 8px rgba(114, 47, 55, 0); }
}

@media (max-width: 768px) {
    .as-support-fab {
        bottom: calc(var(--mobile-nav-height) + 0.85rem + env(safe-area-inset-bottom, 0));
    }
}

@media (max-width: 575px) {
    .as-support-fab {
        padding: 0.7rem;
        border-radius: 50%;
        width: 3.25rem;
        height: 3.25rem;
        justify-content: center;
    }

    .as-support-fab__label {
        display: none;
    }

    .as-support-fab__icon {
        width: auto;
        height: auto;
        background: transparent;
        font-size: 1.15rem;
    }
}

