/* =========================================================
   Astro Shop theme
   Loaded after styles.css (Bootstrap). Dark "observatory" look:
   glass panels over soft colour glows, photos never cropped.
   ========================================================= */

:root {
    --as-bg: #07080e;
    --as-text: #eef0f8;
    --as-muted: #b3b9cf;
    --as-faint: #8a91ab;
    --as-accent: #d0d6f9;
    --as-accent-ink: #07080e;
    --as-sale: #f0c27b;
    --as-danger: #ff9b9b;

    --as-glass: rgba(255, 255, 255, 0.045);
    --as-glass-hover: rgba(255, 255, 255, 0.07);
    --as-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0));
    --as-border: rgba(255, 255, 255, 0.14);
    --as-border-soft: rgba(255, 255, 255, 0.08);
    --as-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 20px 44px rgba(0, 0, 0, 0.45);
    --as-blur: blur(20px) saturate(150%);

    --as-radius-lg: 22px;
    --as-radius: 16px;
    --as-radius-sm: 10px;

    --as-font-display: 'Outfit', system-ui, sans-serif;
    --as-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --as-font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

/* ---------- Base ---------- */

html {
    color-scheme: dark;
}

body {
    font-family: var(--as-font-body);
    background-color: var(--as-bg);
    color: var(--as-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Soft colour glows behind everything, so the glass has something to show */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(900px 620px at 10% 6%, rgba(76, 92, 214, 0.24), transparent 70%),
        radial-gradient(820px 720px at 90% 36%, rgba(140, 84, 210, 0.17), transparent 70%),
        radial-gradient(900px 700px at 28% 92%, rgba(40, 120, 190, 0.15), transparent 70%);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--as-font-display);
    color: #ffffff;
    letter-spacing: -0.01em;
}

a {
    color: var(--as-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #ffffff;
}

:focus-visible {
    outline: 2px solid var(--as-accent);
    outline-offset: 3px;
}

::selection {
    background: rgba(208, 214, 249, 0.3);
}

.as-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.as-section {
    padding-top: 48px;
    padding-bottom: 120px;
}

.as-section-tight {
    padding-top: 28px;
}

.as-eyebrow {
    margin: 0;
    font-family: var(--as-font-mono);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--as-accent);
}

.as-note {
    margin: 0;
    font-family: var(--as-font-mono);
    font-size: 12px;
    color: var(--as-faint);
}

/* ---------- Glass panel ---------- */

.as-panel {
    background-color: var(--as-glass);
    background-image: var(--as-sheen);
    border: 1px solid var(--as-border);
    border-radius: var(--as-radius-lg);
    -webkit-backdrop-filter: var(--as-blur);
    backdrop-filter: var(--as-blur);
    box-shadow: var(--as-shadow);
}

/* ---------- Buttons ---------- */

.as-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font: 500 15px/1.3 var(--as-font-body);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.as-btn-lg {
    min-height: 56px;
    font-size: 16px;
}

.as-btn-block {
    width: 100%;
}

.as-btn-primary {
    background: var(--as-accent);
    color: var(--as-accent-ink);
    font-weight: 600;
}

.as-btn-primary:hover {
    background: #ffffff;
    color: var(--as-accent-ink);
    transform: translateY(-1px);
}

.as-btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.22);
    color: var(--as-text);
}

.as-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.as-btn.is-added,
.as-btn:disabled {
    background: rgba(208, 214, 249, 0.1);
    border-color: rgba(208, 214, 249, 0.4);
    color: var(--as-accent);
    cursor: default;
    transform: none;
}

.as-btn svg {
    flex-shrink: 0;
}

.as-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: var(--as-text);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.as-icon-btn:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.as-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border: 0;
    background: none;
    color: var(--as-faint);
    font: 500 14px var(--as-font-body);
    cursor: pointer;
    transition: color 0.2s ease;
}

.as-link-btn:hover {
    color: var(--as-danger);
}

/* ---------- Header / navigation ---------- */

.as-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(9, 10, 18, 0.6);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid var(--as-border-soft);
}

.as-nav .navbar {
    padding: 0;
}

.as-nav-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 12px;
    min-height: 72px;
}

.as-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-right: 32px;
    color: #ffffff;
    text-decoration: none;
}

.as-brand:hover {
    color: #ffffff;
}

.as-brand span {
    font-family: var(--as-font-display);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.as-nav .navbar-collapse {
    order: 2;
}

.as-nav-links {
    display: flex;
    gap: 8px 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.as-nav-links a,
.as-nav-account a {
    display: inline-block;
    padding: 10px 0;
    color: #c4c9de;
    font-size: 14px;
}

.as-nav-links a:hover,
.as-nav-account a:hover,
.as-nav-links a[aria-current="page"] {
    color: #ffffff;
}

.as-nav-account {
    display: flex;
    gap: 8px 24px;
    margin-left: auto;
    margin-right: 12px;
}

.as-cart-link {
    order: 3;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 8px 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: var(--as-text);
    font-size: 14px;
    text-decoration: none;
}

.as-cart-link:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.as-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--as-accent);
    color: var(--as-accent-ink);
    font-weight: 600;
    font-size: 13px;
}

.as-menu-btn {
    order: 4;
}

.as-menu-btn:focus {
    box-shadow: none;
}

@media (min-width: 992px) {
    .as-menu-btn {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .as-nav-inner {
        min-height: 64px;
    }

    .as-brand {
        margin-right: auto;
    }

    .as-brand span {
        font-size: 12px;
        letter-spacing: 0.22em;
    }

    .as-nav .navbar-collapse {
        order: 5;
        flex-basis: 100%;
    }

    .as-nav-links,
    .as-nav-account {
        flex-direction: column;
        gap: 0;
        margin: 0;
    }

    .as-nav-links {
        padding-top: 8px;
    }

    .as-nav-account {
        padding-bottom: 12px;
        border-top: 1px solid var(--as-border-soft);
        margin-top: 8px;
    }

    .as-nav-links a,
    .as-nav-account a {
        display: block;
        padding: 12px 0;
        font-size: 16px;
    }

    .as-cart-label {
        display: none;
    }

    .as-cart-link {
        padding: 0 6px 0 12px;
        gap: 8px;
    }
}

/* ---------- Messages ---------- */

.as-messages {
    padding-top: 24px;
}

.as-messages .alert {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 14px 52px 14px 18px;
    border-radius: 14px;
    border: 1px solid rgba(208, 214, 249, 0.25);
    background: rgba(20, 24, 38, 0.8);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    color: var(--as-text);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.as-messages .alert-error,
.as-messages .alert-danger {
    border-color: rgba(255, 155, 155, 0.35);
}

.as-messages .alert-error i,
.as-messages .alert-danger i {
    color: var(--as-danger);
}

.as-messages .alert i {
    color: var(--as-accent);
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* ---------- Footer ---------- */

.as-footer {
    border-top: 1px solid var(--as-border-soft);
    background: rgba(5, 6, 10, 0.6);
}

.as-footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    padding-bottom: 32px;
    font-size: 13px;
}

.as-footer p {
    margin: 0;
    color: var(--as-faint);
}

.as-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.as-footer a {
    color: #c4c9de;
}

.as-footer a:hover {
    color: #ffffff;
}

/* ---------- Category filter ---------- */

.as-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}

.as-chip {
    height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: #c4c9de;
    font: 500 14px var(--as-font-body);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.as-chip:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.as-chip.is-active {
    border-color: var(--as-accent);
    background: var(--as-accent);
    color: var(--as-accent-ink);
}

/* ---------- Photo frame (any aspect ratio, never cropped) ---------- */

.as-media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 12px;
    background: #020306;
}

/* A blurred copy of the photo fills the frame around the real one */
.as-media-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.35);
    filter: blur(24px) saturate(1.3);
    opacity: 0.5;
    pointer-events: none;
}

.as-media-img {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.as-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    font-family: var(--as-font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.as-tag-sale {
    background: var(--as-sale);
    color: #1a1206;
}

/* ---------- Product grid & cards ---------- */

.as-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 28px 24px;
}

.as-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 10px 10px 16px;
    border-radius: 20px;
    background-color: var(--as-glass);
    background-image: var(--as-sheen);
    border: 1px solid var(--as-border);
    -webkit-backdrop-filter: var(--as-blur);
    backdrop-filter: var(--as-blur);
    box-shadow: var(--as-shadow);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.as-card[hidden] {
    display: none;
}

.as-card:hover {
    color: inherit;
    border-color: rgba(208, 214, 249, 0.42);
    background-color: var(--as-glass-hover);
    transform: translateY(-4px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 26px 50px rgba(0, 0, 0, 0.55);
}

.as-card:hover .as-media-img {
    transform: scale(1.04);
}

.as-card:focus-visible {
    outline-offset: 4px;
}

.as-card-body {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 0 6px;
}

.as-card-title {
    margin: 0;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.3;
}

.as-price {
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 500;
    color: #d7dbee;
    white-space: nowrap;
}

.as-price s {
    margin-right: 6px;
    font-weight: 400;
    font-size: 0.875em;
    color: var(--as-faint);
}

.as-price-sale {
    color: var(--as-sale);
    font-weight: 600;
}

.as-empty {
    grid-column: 1 / -1;
    padding: 64px 0;
    text-align: center;
    color: var(--as-muted);
}

@media (max-width: 575.98px) {
    .as-container {
        padding: 0 16px;
    }

    .as-section {
        padding-top: 24px;
        padding-bottom: 72px;
    }

    .as-chips {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        margin: 0 -16px 24px;
        padding: 0 16px;
        scrollbar-width: none;
    }

    .as-chip {
        flex-shrink: 0;
    }

    .as-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .as-card {
        gap: 10px;
        padding: 7px 7px 12px;
        border-radius: 16px;
    }

    .as-media {
        border-radius: 10px;
    }

    .as-card-body {
        flex-direction: column;
        gap: 2px;
        padding: 0 5px;
    }

    .as-card-title {
        font-size: 15px;
    }

    .as-price {
        font-size: 14px;
    }
}

/* ---------- Page heading ---------- */

.as-page-head {
    margin-bottom: 40px;
}

.as-page-head h1 {
    margin: 0 0 8px;
    font-weight: 300;
    font-size: clamp(34px, 4vw, 48px);
}

.as-page-head p {
    margin: 0;
    color: var(--as-muted);
}

.as-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    font-size: 14px;
    color: var(--as-faint);
}

.as-breadcrumb a {
    color: #c4c9de;
}

.as-breadcrumb [aria-current="page"] {
    color: #c4c9de;
}

/* ---------- Product page ---------- */

.as-product {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

.as-product-media {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.as-media-lg {
    max-height: 84vh;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.as-media-lg .as-media-backdrop {
    filter: blur(28px) saturate(1.3);
}

.as-zoom-btn {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: rgba(238, 240, 248, 0.92);
    color: var(--as-accent-ink);
    font: 600 14px var(--as-font-body);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.as-zoom-btn:hover {
    background: #ffffff;
}

.as-product-info {
    position: sticky;
    top: 104px;
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 32px;
}

.as-product-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.as-product-title {
    margin: 0;
    font-weight: 300;
    font-size: clamp(34px, 3.6vw, 48px);
    line-height: 1.05;
}

.as-product-price {
    margin: 0;
    font-size: 28px;
    font-weight: 500;
    color: #ffffff;
}

.as-product-price s {
    margin-right: 10px;
    font-size: 20px;
    font-weight: 400;
    color: var(--as-faint);
}

.as-product-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--as-muted);
}

.as-product-desc p:last-child {
    margin-bottom: 0;
}

.as-specs {
    display: flex;
    flex-direction: column;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.as-specs > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.as-specs dt {
    font-weight: 400;
    color: #9aa1b8;
}

.as-specs dd {
    margin: 0;
    text-align: right;
    color: #ffffff;
}

.as-specs dd a {
    font-size: 13px;
}

.as-mono {
    font-family: var(--as-font-mono);
}

.as-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.as-disclaimer {
    display: flex;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.as-disclaimer svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.as-disclaimer p,
.as-form .as-disclaimer p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.6;
    color: #9aa1b8;
}

@media (max-width: 991.98px) {
    .as-product {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .as-product-info {
        position: static;
        padding: 24px;
    }
}

/* ---------- Lightbox ---------- */

.as-lightbox {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 24px;
    border: 0;
    background: rgba(2, 3, 6, 0.97);
    color: var(--as-text);
}

.as-lightbox[open] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    animation: as-fade 0.25s ease-out;
}

.as-lightbox::backdrop {
    background: rgba(2, 3, 6, 0.9);
}

.as-lightbox img {
    display: block;
    max-width: 92vw;
    max-height: 86vh;
    object-fit: contain;
}

.as-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: transparent;
}

/* ---------- Toast ---------- */

.as-toast {
    position: fixed;
    top: 88px;
    right: 24px;
    z-index: 1040;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: calc(100vw - 32px);
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(20, 24, 38, 0.85);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(208, 214, 249, 0.25);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    font-size: 14px;
    animation: as-slide-in 0.3s ease-out;
}

.as-toast[hidden] {
    display: none;
}

.as-toast a {
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .as-toast {
        top: auto;
        bottom: 16px;
        left: 16px;
        right: 16px;
    }
}

@keyframes as-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes as-slide-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
}

/* ---------- Cart ---------- */

.as-cart {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: start;
}

.as-cart-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.as-cart-item {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 12px 20px 12px 12px;
}

.as-media-thumb {
    border-radius: 12px;
}

.as-cart-item-title {
    margin: 0 0 4px;
    font-weight: 400;
    font-size: 19px;
}

.as-cart-item-title a {
    color: #ffffff;
}

.as-cart-item-title a:hover {
    color: var(--as-accent);
}

.as-cart-item .as-link-btn {
    margin-top: 10px;
}

.as-cart-item .as-price {
    font-size: 18px;
}

.as-summary {
    position: sticky;
    top: 104px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px;
}

.as-summary h2 {
    margin: 0;
    font-weight: 400;
    font-size: 22px;
}

.as-summary-row {
    display: flex;
    justify-content: space-between;
    color: var(--as-muted);
}

.as-summary-total {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 22px;
    font-weight: 600;
}

.as-summary-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.as-summary-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 15px;
}

.as-summary-list li span:last-child {
    color: #ffffff;
    white-space: nowrap;
}

.as-center-link {
    text-align: center;
    font-size: 14px;
}

.as-center-link a {
    color: var(--as-faint);
}

.as-center-link a:hover {
    color: #ffffff;
}

@media (max-width: 991.98px) {
    .as-cart {
        grid-template-columns: minmax(0, 1fr);
    }

    .as-summary {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .as-cart-item {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 14px;
        padding: 10px 14px 10px 10px;
    }

    .as-cart-item > .as-price {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        align-self: start;
    }

    .as-cart-item-body {
        grid-column: 2;
        grid-row: 1;
        padding-right: 64px;
    }

    .as-cart-item-title {
        font-size: 16px;
    }
}

/* ---------- Empty and status pages ---------- */

.as-status {
    max-width: 560px;
    margin: 0 auto;
    padding: 48px 40px;
    text-align: center;
}

.as-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 24px;
    border-radius: 999px;
    border: 1px solid rgba(208, 214, 249, 0.3);
    background: rgba(208, 214, 249, 0.08);
    color: var(--as-accent);
    font-size: 30px;
}

.as-status h1,
.as-status h2 {
    margin: 0 0 12px;
    font-weight: 300;
    font-size: 32px;
}

.as-status p {
    margin: 0 auto 28px;
    max-width: 420px;
    color: var(--as-muted);
    line-height: 1.65;
}

.as-status-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}

.as-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border-radius: 50%;
    border: 3px solid rgba(208, 214, 249, 0.2);
    border-top-color: var(--as-accent);
    animation: as-spin 0.9s linear infinite;
}

@keyframes as-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ---------- Forms ---------- */

.as-auth {
    max-width: 460px;
    margin: 0 auto;
    padding: 40px;
}

.as-auth-wide {
    max-width: 640px;
}

.as-auth-head {
    margin-bottom: 28px;
    text-align: center;
}

.as-auth-head h1 {
    margin: 0 0 8px;
    font-weight: 300;
    font-size: 32px;
}

.as-auth-head p {
    margin: 0;
    color: var(--as-muted);
}

.as-auth-foot {
    margin: 24px 0 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 14px;
    color: var(--as-muted);
}

.as-form-section {
    margin: 8px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 400;
    font-size: 18px;
}

.as-form p,
.as-field {
    margin-bottom: 18px;
}

.as-form label,
.as-field > label {
    display: block;
    margin-bottom: 8px;
    color: #c4c9de;
    font-size: 14px;
    font-weight: 500;
}

.as-form .form-control,
.as-form input[type="text"],
.as-form input[type="email"],
.as-form input[type="password"],
.as-form input[type="tel"],
.as-form select {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font: 400 15px var(--as-font-body);
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.as-form .form-control::placeholder,
.as-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.as-form .form-control:focus,
.as-form input:focus,
.as-form select:focus {
    outline: none;
    border-color: var(--as-accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(208, 214, 249, 0.12);
    color: #ffffff;
}

.as-form .helptext,
.as-form .help-text,
.as-form .form-text {
    display: block;
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--as-faint) !important;
}

.as-form ul.form-text,
.as-form .helptext ul {
    padding-left: 18px;
    margin-bottom: 0;
}

.as-form ul.errorlist,
.as-field-error {
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
    color: var(--as-danger);
    font-size: 13px;
}

.as-form-error {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 155, 155, 0.35);
    background: rgba(255, 90, 90, 0.08);
    color: #ffd0d0;
    font-size: 14px;
}

.as-form-error ul {
    margin: 0;
    padding-left: 18px;
}

.as-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}

.as-form-grid-3 {
    grid-template-columns: 5fr 4fr 3fr;
}

.as-span-all {
    grid-column: 1 / -1;
}

.as-optional {
    color: var(--as-faint);
    font-weight: 400;
}

@media (max-width: 575.98px) {
    .as-auth,
    .as-status {
        padding: 28px 20px;
    }

    .as-form-grid,
    .as-form-grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- Checkout ---------- */

.as-checkout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 32px;
    align-items: start;
}

.as-checkout-form {
    padding: 32px;
}

.as-checkout-form h2 {
    margin: 0 0 20px;
    font-weight: 400;
    font-size: 22px;
}

.as-divider {
    height: 1px;
    margin: 28px 0;
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    opacity: 1;
}

.as-pay-option {
    margin-bottom: 12px;
}

.as-pay-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.as-pay-label {
    display: flex !important;
    align-items: center;
    gap: 16px;
    margin: 0 !important;
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.as-pay-label:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.06);
}

.as-pay-input:focus-visible + .as-pay-label {
    outline: 2px solid var(--as-accent);
    outline-offset: 3px;
}

.as-pay-input:checked + .as-pay-label {
    border-color: var(--as-accent);
    background: rgba(208, 214, 249, 0.1);
    box-shadow: 0 0 0 4px rgba(208, 214, 249, 0.08);
}

.as-pay-icon {
    font-size: 22px;
    color: var(--as-accent);
}

.as-pay-text {
    display: flex;
    flex-direction: column;
}

.as-pay-text strong {
    color: #ffffff;
    font-weight: 600;
}

.as-pay-text span {
    color: var(--as-faint);
    font-size: 13px;
    font-weight: 400;
}

.as-pay-check {
    margin-left: auto;
    color: var(--as-accent);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.as-pay-input:checked + .as-pay-label .as-pay-check {
    opacity: 1;
}

@media (max-width: 991.98px) {
    .as-checkout {
        grid-template-columns: minmax(0, 1fr);
    }

    .as-checkout .as-summary {
        order: -1;
    }
}

@media (max-width: 575.98px) {
    .as-checkout-form,
    .as-summary {
        padding: 22px 18px;
    }
}

/* ---------- Verification code ---------- */

.as-code-input input {
    max-width: 280px !important;
    margin: 0 auto;
    text-align: center !important;
    letter-spacing: 0.4em !important;
    font-family: var(--as-font-mono) !important;
    font-size: 24px !important;
}

/* ---------- Licensing ---------- */

.as-licensing {
    max-width: 880px;
    margin: 0 auto;
}

.as-rates {
    margin: 0 0 32px;
    padding: 8px 28px;
}

.as-rates > div {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr) auto;
    gap: 8px 24px;
    align-items: baseline;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.as-rates > div:last-child {
    border-bottom: 0;
}

.as-rates dt {
    color: #ffffff;
    font-weight: 500;
}

.as-rates dd {
    margin: 0;
    color: var(--as-muted);
}

.as-rates .as-rate {
    font-family: var(--as-font-mono);
    color: #ffffff;
    white-space: nowrap;
}

.as-inquire {
    padding: 40px;
    text-align: center;
}

.as-inquire h2 {
    margin: 0 0 12px;
    font-weight: 300;
    font-size: 28px;
}

.as-inquire p {
    color: var(--as-muted);
}

.as-inquire-email {
    display: inline-block;
    margin: 8px 0 12px;
    font-family: var(--as-font-display);
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 300;
    word-break: break-word;
}

@media (max-width: 767.98px) {
    .as-rates > div {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .as-rates dd:not(.as-rate) {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .as-inquire {
        padding: 28px 20px;
    }
}

.as-nowrap {
    white-space: nowrap;
}
