@import url('https://fonts.googleapis.com/css2?family=Nabla&display=swap');

:root {
    --cf-font-body: 'Inter', 'Segoe UI', Roboto, sans-serif;
    --cf-font-title: 'Montserrat', 'Segoe UI', Roboto, sans-serif;
    --navbar-offset: 70px;
    --cf-dark-color: #06050d;
    --cf-light-color: #f0eaff;
    --cf-font-size: 1.1rem;
    --cf-title-color: #ffffff;
    --cf-subtitle-color: #d1d5db;

    /* ── Aonira Design Tokens ────────────────────── */
    --bg: #06050d;
    --bg2: #0c0a1a;
    --purple-deep: #2d1b69;
    --purple-mid: #7c3aed;
    --purple-light: #a78bfa;
    --accent: #00e5ff;
    --text: #f0eaff;
    --text-dim: #9b8ec4;
    --glass: rgba(45, 27, 105, 0.18);
    --glass-border: rgba(167, 139, 250, 0.12);
    --transition-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

html, body {
    font-family: var(--cf-font-body) !important;
    font-size: var(--cf-font-size);
    height: 100%;
    min-height: 100vh;
    background:
        radial-gradient(ellipse 90% 40% at 50% 0%,   rgba(184,15,186,0.13) 0%, transparent 60%),
        radial-gradient(ellipse 70% 30% at 80% 35%,  rgba(255,15,128,0.07) 0%, transparent 55%),
        radial-gradient(ellipse 60% 25% at 20% 65%,  rgba(0,242,255,0.05)  0%, transparent 55%),
        radial-gradient(ellipse 80% 30% at 50% 100%, rgba(184,15,186,0.08) 0%, transparent 60%),
        var(--cf-dark-color);
    background-attachment: fixed;
    color: var(--cf-light-color);
    scroll-behavior: smooth;
}

/* NavLink e <a> generici: rimuovi underline Bootstrap — ri-aggiungere solo per prose link */
a { text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

h1:focus {
    outline: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--cf-font-title) !important;
    font-weight: 800;
}

#app {
    height: 100%;
}

/* #region Blazor default css*/

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

/* #endregion Blazor defoult css*/

/* #region Pricing Page */

.pricing-page .pricing-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s var(--transition-smooth), border-color 0.3s var(--transition-smooth), box-shadow 0.3s var(--transition-smooth);
    position: relative;
}

.pricing-page .pricing-card:hover {
    transform: translateY(-6px);
    border-color: rgba(167, 139, 250, 0.3);
    box-shadow: 0 18px 48px rgba(124, 58, 237, 0.22);
}

.pricing-page .pricing-card--featured {
    border-color: rgba(255, 15, 128, 0.55);
    box-shadow: 0 0 0 1px rgba(255, 15, 128, 0.3), 0 0 40px rgba(255, 15, 128, 0.18);
}

.pricing-page .pricing-card--featured:hover {
    border-color: rgba(255, 15, 128, 0.8);
    box-shadow: 0 0 0 1px rgba(255, 15, 128, 0.5), 0 20px 50px rgba(255, 15, 128, 0.28);
}

.pricing-page .pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--color-pink, #ff0f80), var(--purple-mid, #7c3aed));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(255, 15, 128, 0.4);
}

.pricing-page .pricing-card-body { padding: 2rem 1.5rem 1rem; flex: 1; }
.pricing-page .pricing-card-footer { padding: 1rem 1.5rem 1.5rem; }
.pricing-page .pricing-tier { font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }
.pricing-page .pricing-tokens { margin-bottom: 0.5rem; }
.pricing-page .token-count { font-size: 3rem; font-weight: 800; line-height: 1; color: #fff; }
.pricing-page .token-label { font-size: 1rem; color: #aaa; margin-left: 0.25rem; }
.pricing-page .pricing-price {
    font-family: var(--cf-font-title);
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-pink, #ff0f80), var(--purple-mid, #7c3aed));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
    line-height: 1;
}
.pricing-page .pricing-savings { font-size: 0.8rem; color: #4ade80; margin-bottom: 0.5rem; }
.pricing-page .pricing-desc { font-size: 0.9rem; margin-bottom: 1rem; }
.pricing-page .pricing-features li { font-size: 0.9rem; color: #fff; padding: 0.2rem 0; }

/* #endregion Pricing Page */

/* #region Payment Result Pages */

.payment-result-page .payment-result-card {
    background: var(--glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem 2rem;
    max-width: 540px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.payment-result-page .payment-result-icon {
    font-size: 4.5rem;
    margin-bottom: 1.25rem;
    display: inline-block;
}

.payment-result-page .payment-result-icon.success {
    color: #2ecc71;
    filter: drop-shadow(0 0 24px rgba(46, 204, 113, 0.55));
}

.payment-result-page .payment-result-icon.error {
    color: #ff4d4d;
    filter: drop-shadow(0 0 24px rgba(255, 77, 77, 0.55));
}

.payment-result-page .payment-result-icon.token {
    color: #f2c864;
    filter: drop-shadow(0 0 24px rgba(242, 200, 100, 0.55));
}

/* #endregion Payment Result Pages */

/* ── Custom cursor ──────────────────────────────── */
#cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    background: var(--accent, #00e5ff);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1100;
    transform: translate(-50%, -50%);
    transition: width 0.15s ease, height 0.15s ease;
    opacity: 0;
}

#cursor.cursor--visible { opacity: 1; }
#cursor.cursor--hover { width: 20px; height: 20px; }

#cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(167, 139, 250, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1099;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease;
    opacity: 0;
}

#cursor-ring.cursor-ring--visible { opacity: 1; }

@media (hover: none) {
    #cursor, #cursor-ring { display: none; }
    body { cursor: auto !important; }
}

/* ── Cursor: none globale (solo pointer device) ─── */
/* Applicato a tutti i figli con !important per evitare che cursor:pointer
   su button/a/etc. sovrascriva il body e mostri doppio cursore */
@media (hover: hover) and (pointer: fine) {
    *, *::before, *::after { cursor: none !important; }
}

@media (prefers-reduced-motion: reduce) {
    body { cursor: auto !important; }
    #cursor, #cursor-ring { display: none; }
}

/* ── Noise overlay globale ───────────────────────── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
}

/* ── Scrollbar viola ─────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2, #0c0a1a); }
::-webkit-scrollbar-thumb {
    background: var(--purple-mid, #7c3aed);
    border-radius: 3px;
}

/* ── Page fade-in al caricamento ─────────────────── */
@keyframes pageEnter {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}

main {
    animation: pageEnter 0.45s var(--transition-smooth, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

@media (prefers-reduced-motion: reduce) {
    main { animation: none; }
}

/* ── Offset per navbar fissa (TopNavLayout) ─────── */
.main-nav-offset { padding-top: 80px; margin-top: 0 !important; }


/* ── Link hover glow ─────────────────────────────── */
a:not(.btn):not(.nav-link):not(.lp-btn-primary):not(.lp-btn-outline):not([class*="dyn-island"]):hover {
    text-shadow: 0 0 8px rgba(167, 139, 250, 0.55);
    transition: text-shadow 0.2s ease;
}

/* ── Input focus glow ────────────────────────────── */
.form-control:focus,
.form-select:focus {
    border-color: var(--purple-mid, #7c3aed) !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2), 0 0 12px rgba(124, 58, 237, 0.12) !important;
    transition: box-shadow 0.25s var(--transition-smooth, cubic-bezier(0.22, 1, 0.36, 1));
}

/* ── Card hover lift ─────────────────────────────── */
.card {
    transition: transform 0.3s var(--transition-smooth, cubic-bezier(0.22, 1, 0.36, 1)),
                box-shadow 0.3s var(--transition-smooth, cubic-bezier(0.22, 1, 0.36, 1));
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.18);
}

@media (prefers-reduced-motion: reduce) {
    .card { transition: none; }
    .card:hover { transform: none; box-shadow: none; }
}

/* ── Button shimmer ──────────────────────────────── */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.15) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.btn-primary:hover::before { transform: translateX(100%); }

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
    transition: transform 0.2s var(--transition-smooth, cubic-bezier(0.22, 1, 0.36, 1)),
                box-shadow 0.2s var(--transition-smooth, cubic-bezier(0.22, 1, 0.36, 1));
}

.btn-primary:active { transform: scale(0.98); }

@media (prefers-reduced-motion: reduce) {
    .btn-primary::before { display: none; }
    .btn-primary:hover { transform: none; box-shadow: none; }
    .btn-primary:active { transform: none; }
}

/* =========================================================
   Aonira — Global Glass Theme Utilities
   Classi riutilizzabili per mantenere coerenza visiva con
   la landing page su TUTTE le pagine del sito.
   ========================================================= */

/* ── Stato di stato condivisi per ordini ──────────────────── */
:root {
    --status-pending: #ffc107;
    --status-confirmed: var(--purple-light);
    --status-printing: var(--purple-mid);
    --status-shipped: var(--accent);
    --status-delivered: #2ecc71;
    --status-paid: #2ecc71;
    --status-cancelled: #ff4d4d;
    --color-pink: #ff0f80;
    --color-pink-deep: #b80fba;
}

/* ── Section title (landing style) ───────────────────────── */
.section-title-lp {
    font-family: var(--cf-font-title);
    font-weight: 800;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 16px;
}

.section-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--purple-mid);
    margin-bottom: 12px;
}

.section-sub-lp {
    color: var(--text-dim);
    font-size: 17px;
    line-height: 1.6;
    max-width: 640px;
    margin-bottom: 40px;
}

.text-gradient-pink-purple {
    background: linear-gradient(135deg, var(--color-pink), var(--purple-mid));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-cyan-pink {
    background: linear-gradient(135deg, var(--accent), var(--color-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Glass card ──────────────────────────────────────────── */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: var(--text);
}

.glass-card-hover {
    transition: transform 0.3s var(--transition-smooth),
                box-shadow 0.3s var(--transition-smooth),
                border-color 0.3s var(--transition-smooth);
}

.glass-card-hover:hover {
    transform: translateY(-4px);
    border-color: rgba(167, 139, 250, 0.3);
    box-shadow: 0 16px 40px rgba(124, 58, 237, 0.18),
                0 0 0 1px rgba(167, 139, 250, 0.08);
}

@media (prefers-reduced-motion: reduce) {
    .glass-card-hover { transition: none; }
    .glass-card-hover:hover { transform: none; box-shadow: none; }
}

/* ── Glass input / select / textarea ─────────────────────── */
.glass-input,
.glass-select,
.glass-textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(167, 139, 250, 0.18);
    color: var(--text);
    border-radius: 10px;
    padding: 12px 14px;
    font-family: var(--cf-font-body);
    transition: border-color 0.25s var(--transition-smooth),
                background 0.25s var(--transition-smooth),
                box-shadow 0.25s var(--transition-smooth);
    width: 100%;
}

.glass-input::placeholder,
.glass-textarea::placeholder { color: rgba(240, 234, 255, 0.35); }

.glass-input:focus,
.glass-select:focus,
.glass-textarea:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--purple-mid);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2),
                0 0 14px rgba(124, 58, 237, 0.18);
    outline: none;
}

.glass-select option {
    background-color: var(--bg2);
    color: var(--text);
}

/* ── Button gradient (primary CTA) ───────────────────────── */
.btn-gradient {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--color-pink), var(--purple-mid));
    color: #fff !important;
    font-family: var(--cf-font-title);
    font-weight: 700;
    font-size: 0.98rem;
    padding: 12px 28px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 22px rgba(255, 15, 128, 0.32);
    transition: transform 0.25s var(--transition-smooth),
                box-shadow 0.25s var(--transition-smooth);
}

.btn-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.22) 50%, transparent 60%);
    transform: translateX(-120%);
    transition: transform 0.6s ease;
}

.btn-gradient:hover,
.btn-gradient:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.45);
    color: #fff !important;
}

.btn-gradient:hover::before,
.btn-gradient:focus-visible::before { transform: translateX(120%); }

.btn-gradient:active { transform: translateY(0) scale(0.98); }

.btn-gradient:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ── Button outline glass ────────────────────────────────── */
.btn-outline-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--text) !important;
    font-family: var(--cf-font-title);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 11px 24px;
    border-radius: 50px;
    border: 1.5px solid rgba(167, 139, 250, 0.28);
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.25s var(--transition-smooth),
                background 0.25s var(--transition-smooth),
                box-shadow 0.25s var(--transition-smooth);
}

.btn-outline-glass:hover,
.btn-outline-glass:focus-visible {
    border-color: var(--purple-light);
    background: rgba(167, 139, 250, 0.08);
    box-shadow: 0 0 14px rgba(124, 58, 237, 0.25);
    color: var(--text) !important;
}

@media (prefers-reduced-motion: reduce) {
    .btn-gradient::before { display: none; }
    .btn-gradient:hover { transform: none; box-shadow: none; }
}

/* ── Badge glass ─────────────────────────────────────────── */
.badge-glass {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text);
    letter-spacing: 0.03em;
}

.badge-glass-purple {
    background: rgba(124, 58, 237, 0.12);
    border-color: rgba(124, 58, 237, 0.35);
    color: var(--purple-light);
}

.badge-glass-cyan {
    background: rgba(0, 229, 255, 0.08);
    border-color: rgba(0, 229, 255, 0.3);
    color: var(--accent);
}

.badge-glass-pink {
    background: rgba(255, 15, 128, 0.1);
    border-color: rgba(255, 15, 128, 0.35);
    color: var(--color-pink);
}

/* ── Table glass ─────────────────────────────────────────── */
.table-glass {
    color: var(--text);
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.table-glass thead th {
    background: rgba(167, 139, 250, 0.08);
    color: var(--text-dim);
    font-family: var(--cf-font-body);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(167, 139, 250, 0.18);
    padding: 12px 14px;
    white-space: nowrap;
    text-align: left;
}

.table-glass tbody td {
    vertical-align: middle;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(167, 139, 250, 0.08);
    font-size: 0.92rem;
}

.table-glass tbody tr { transition: background 0.2s var(--transition-smooth); }

.table-glass tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.015); }

.table-glass tbody tr:hover td { background: rgba(124, 58, 237, 0.08); }

/* ── Status pills (unificati su tutto il sito) ──────────── */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.02em;
    backdrop-filter: blur(6px);
}

.status-pending {
    background: rgba(255, 193, 7, 0.14);
    border: 1px solid rgba(255, 193, 7, 0.4);
    color: #ffd54a;
}
.status-confirmed {
    background: rgba(13, 110, 253, 0.14);
    border: 1px solid rgba(13, 110, 253, 0.4);
    color: #6aa6ff;
}
.status-waiting {
    background: rgba(251, 146, 60, 0.14);
    border: 1px solid rgba(251, 146, 60, 0.4);
    color: #fdba74;
}
.status-printing {
    background: rgba(124, 58, 237, 0.18);
    border: 1px solid rgba(124, 58, 237, 0.45);
    color: var(--purple-light);
}
.status-shipped {
    background: rgba(0, 229, 255, 0.14);
    border: 1px solid rgba(0, 229, 255, 0.4);
    color: var(--accent);
}
.status-delivered,
.status-paid {
    background: rgba(46, 204, 113, 0.14);
    border: 1px solid rgba(46, 204, 113, 0.4);
    color: #5fe09b;
}
.status-cancelled,
.status-failed {
    background: rgba(255, 77, 77, 0.14);
    border: 1px solid rgba(255, 77, 77, 0.4);
    color: #ff7373;
}

/* ── Page hero backdrop (gradient mesh, reusable) ────────── */
.page-mesh-bg {
    position: relative;
    min-height: calc(100vh - 80px);
    background:
        radial-gradient(ellipse 70% 55% at 25% 20%, rgba(124, 58, 237, 0.16) 0%, transparent 60%),
        radial-gradient(ellipse 55% 45% at 85% 80%, rgba(0, 229, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 70% 25%, rgba(255, 15, 128, 0.1) 0%, transparent 60%),
        var(--bg);
}

/* ── Generic dark page wrapper ───────────────────────────── */
.page-dark {
    min-height: calc(100vh - 80px);
    background: var(--bg);
}

/* =========================================================
   BOOTSTRAP OVERRIDES (globali) — il tema scuro deve
   vincere sui default di Bootstrap in tutte le pagine.
   ========================================================= */

/* Card: stile glass globale */
.card:not(.pricing-card):not(.payment-result-card):not(.glass-card) {
    background: var(--glass) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border) !important;
    border-radius: 16px !important;
    color: var(--text) !important;
}

.card-header {
    background: rgba(167, 139, 250, 0.06) !important;
    border-bottom: 1px solid var(--glass-border) !important;
    color: var(--text) !important;
}

.card-footer {
    background: transparent !important;
    border-top: 1px solid var(--glass-border) !important;
    color: var(--text-dim) !important;
}

.card-title { color: var(--text); font-family: var(--cf-font-title); font-weight: 700; }

/* Form controls: dark glass */
.form-control,
.form-select {
    background-color: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(167, 139, 250, 0.18) !important;
    color: var(--text) !important;
    border-radius: 10px !important;
}

.form-control::placeholder { color: rgba(240, 234, 255, 0.35) !important; }

.form-control:focus,
.form-select:focus {
    background-color: rgba(255, 255, 255, 0.06) !important;
    border-color: var(--purple-mid) !important;
    color: var(--text) !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.22),
                0 0 14px rgba(124, 58, 237, 0.18) !important;
}

.form-select option { background-color: var(--bg2); color: var(--text); }

.form-label {
    color: var(--text-dim) !important;
    font-family: var(--cf-font-body);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.form-check-input {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(167, 139, 250, 0.3);
}

.form-check-input:checked {
    background-color: var(--purple-mid) !important;
    border-color: var(--purple-mid) !important;
}

.form-check-input:focus {
    border-color: var(--purple-mid) !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.22) !important;
}

.form-check-label { color: var(--text); }

/* Bottone primary → gradient viola→rosa */
.btn-primary {
    --bs-btn-bg: var(--purple-mid);
    --bs-btn-border-color: var(--purple-mid);
    --bs-btn-hover-bg: var(--purple-mid);
    --bs-btn-hover-border-color: var(--purple-mid);
    --bs-btn-active-bg: var(--purple-deep);
    --bs-btn-active-border-color: var(--purple-deep);
    background: linear-gradient(135deg, var(--color-pink), var(--purple-mid)) !important;
    border: none !important;
    border-radius: 50px !important;
    font-weight: 700;
    padding: 10px 24px;
    box-shadow: 0 4px 18px rgba(255, 15, 128, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: linear-gradient(135deg, var(--color-pink), var(--purple-mid)) !important;
    box-shadow: 0 8px 26px rgba(255, 15, 128, 0.48) !important;
    color: #fff !important;
}

/* Bottone outline → glass */
.btn-outline-primary,
.btn-outline-light,
.btn-outline-secondary {
    --bs-btn-color: var(--text);
    --bs-btn-border-color: rgba(167, 139, 250, 0.3);
    --bs-btn-hover-bg: rgba(167, 139, 250, 0.08);
    --bs-btn-hover-border-color: var(--purple-light);
    --bs-btn-hover-color: var(--text);
    --bs-btn-active-bg: rgba(167, 139, 250, 0.12);
    --bs-btn-active-border-color: var(--purple-light);
    --bs-btn-active-color: var(--text);
    border-radius: 50px !important;
    font-weight: 600;
}

.btn-outline-primary:hover,
.btn-outline-light:hover,
.btn-outline-secondary:hover {
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.25);
}

/* Bottoni danger/success/warning: glass tinted */
.btn-danger {
    background: rgba(255, 77, 77, 0.18) !important;
    border: 1px solid rgba(255, 77, 77, 0.45) !important;
    color: #ff7373 !important;
    border-radius: 50px !important;
    font-weight: 600;
}

.btn-danger:hover,
.btn-danger:focus-visible {
    background: rgba(255, 77, 77, 0.28) !important;
    color: #fff !important;
    box-shadow: 0 0 14px rgba(255, 77, 77, 0.35) !important;
}

.btn-success {
    background: linear-gradient(135deg, #2ecc71, #16a34a) !important;
    border: none !important;
    color: #fff !important;
    border-radius: 50px !important;
    font-weight: 600;
}

.btn-success:hover {
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4) !important;
    color: #fff !important;
}

.btn-link {
    color: var(--purple-light) !important;
    text-decoration: none;
}
.btn-link:hover { color: var(--accent) !important; text-shadow: 0 0 8px rgba(167, 139, 250, 0.5); }

/* Bootstrap alerts: glass-tinted */
.alert {
    background: var(--glass) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text) !important;
    border-radius: 12px !important;
    backdrop-filter: blur(10px);
}

.alert-danger {
    background: rgba(255, 77, 77, 0.1) !important;
    border-color: rgba(255, 77, 77, 0.35) !important;
    color: #ff9999 !important;
}

.alert-success {
    background: rgba(46, 204, 113, 0.08) !important;
    border-color: rgba(46, 204, 113, 0.35) !important;
    color: #7fe0a8 !important;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1) !important;
    border-color: rgba(255, 193, 7, 0.4) !important;
    color: #ffd54a !important;
}

.alert-info {
    background: rgba(0, 229, 255, 0.08) !important;
    border-color: rgba(0, 229, 255, 0.3) !important;
    color: var(--accent) !important;
}

/* Modali: dark glass */
.modal-content {
    background: var(--bg2) !important;
    border: 1px solid rgba(167, 139, 250, 0.2) !important;
    border-radius: 18px !important;
    color: var(--text) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(167, 139, 250, 0.08);
}

.modal-header {
    border-bottom: 1px solid rgba(167, 139, 250, 0.15) !important;
    color: var(--text);
}

.modal-footer {
    border-top: 1px solid rgba(167, 139, 250, 0.15) !important;
}

.modal-title { color: var(--text); font-family: var(--cf-font-title); font-weight: 700; }

.btn-close {
    filter: invert(1) grayscale(0.3) brightness(1.5);
    opacity: 0.7;
}
.btn-close:hover { opacity: 1; }

/* Tabelle Bootstrap: ereditano glass */
.table {
    --bs-table-color: var(--text);
    --bs-table-bg: transparent;
    --bs-table-border-color: rgba(167, 139, 250, 0.12);
    --bs-table-striped-color: var(--text);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
    --bs-table-hover-color: var(--text);
    --bs-table-hover-bg: rgba(124, 58, 237, 0.08);
}

.table > thead > tr > th {
    background: rgba(167, 139, 250, 0.08) !important;
    color: var(--text-dim) !important;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom-color: rgba(167, 139, 250, 0.18) !important;
}

/* Accordion Bootstrap: glass */
.accordion {
    --bs-accordion-bg: transparent;
    --bs-accordion-color: var(--text);
    --bs-accordion-border-color: rgba(167, 139, 250, 0.15);
    --bs-accordion-btn-color: var(--text);
    --bs-accordion-btn-bg: transparent;
    --bs-accordion-active-color: var(--accent);
    --bs-accordion-active-bg: transparent;
    --bs-accordion-btn-focus-border-color: var(--purple-mid);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.22);
}

.accordion-item {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(167, 139, 250, 0.12) !important;
    border-radius: 12px !important;
    margin-bottom: 0.6rem;
    overflow: hidden;
}

.accordion-button {
    background: transparent !important;
    color: var(--text) !important;
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    color: var(--accent) !important;
    box-shadow: none !important;
    background: rgba(0, 229, 255, 0.04) !important;
}

.accordion-button::after {
    filter: invert(1) brightness(1.3);
}

.accordion-body {
    color: var(--text-dim);
    line-height: 1.7;
}

/* Bootstrap badge → glass per default */
.badge.bg-primary { background: rgba(124, 58, 237, 0.2) !important; color: var(--purple-light) !important; border: 1px solid rgba(124, 58, 237, 0.4); }
.badge.bg-success { background: rgba(46, 204, 113, 0.16) !important; color: #5fe09b !important; border: 1px solid rgba(46, 204, 113, 0.4); }
.badge.bg-danger { background: rgba(255, 77, 77, 0.16) !important; color: #ff7373 !important; border: 1px solid rgba(255, 77, 77, 0.4); }
.badge.bg-warning { background: rgba(255, 193, 7, 0.16) !important; color: #ffd54a !important; border: 1px solid rgba(255, 193, 7, 0.4); }
.badge.bg-info { background: rgba(0, 229, 255, 0.14) !important; color: var(--accent) !important; border: 1px solid rgba(0, 229, 255, 0.4); }

/* Testo Bootstrap generico su dark */
.text-muted { color: var(--text-dim) !important; }
.text-light, .text-white { color: var(--text) !important; }
.text-secondary { color: var(--text-dim) !important; }

/* List group glass */
.list-group-item {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(167, 139, 250, 0.12) !important;
    color: var(--text) !important;
}

/* Progress bar */
.progress {
    background: rgba(255, 255, 255, 0.06) !important;
    border-radius: 999px;
    overflow: hidden;
}
.progress-bar {
    background: linear-gradient(90deg, var(--color-pink), var(--purple-mid), var(--accent)) !important;
}

/* Spinner Bootstrap: accent color */
.spinner-border, .spinner-grow {
    color: var(--purple-light);
}

/* Link generici (anchor) su pagine */
a.link-neon {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s, text-shadow 0.2s;
}
a.link-neon:hover,
a.link-neon:focus-visible {
    color: #fff;
    text-shadow: 0 0 10px var(--accent);
    outline: none;
}

a.link-purple {
    color: var(--purple-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s, text-shadow 0.2s;
}
a.link-purple:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--purple-light);
}

/* Divider utility */
.glass-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.25), transparent);
    margin: 1.25rem 0;
}

/* Focus globale accessibile */
:focus-visible {
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid var(--purple-light);
    border-radius: 6px;
}

/* Bullet list custom con colore viola */
.list-purple-bullets {
    list-style: none;
    padding-left: 1.5rem;
}
.list-purple-bullets li {
    position: relative;
    padding: 0.3rem 0;
    color: var(--text-dim);
}
.list-purple-bullets li::before {
    content: '';
    position: absolute;
    left: -1.25rem;
    top: 0.85rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--purple-mid);
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.6);
}

/* Utility title scale */
.display-4, .display-5, .display-6 {
    font-family: var(--cf-font-title) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
    color: var(--text);
}

/* Reduced-motion gate per tutte le anim custom */
@media (prefers-reduced-motion: reduce) {
    .btn-gradient::before,
    .btn-outline-glass,
    .glass-card-hover { transition: none !important; animation: none !important; }
}

/* ════════════════════════════════════════════════════════
   AdminLayout — sidebar fissa + content area
   (non può stare nel file scoped: i layout Blazor non
    ricevono scope CSS, va incluso globalmente)
   ════════════════════════════════════════════════════════ */

:root {
    --admin-sidebar-width: 220px;
    --admin-sidebar-bg: #0e0820;
    --admin-sidebar-border: rgba(138, 43, 226, 0.18);
    --admin-topbar-h: 56px;
    --admin-accent: #8a2be2;
    --admin-accent-bright: #ff2db8;
    --admin-text: #e8e0f0;
    --admin-text-muted: #7a6e8a;
    --admin-link-hover-bg: rgba(138, 43, 226, 0.12);
    --admin-link-active-bg: rgba(138, 43, 226, 0.22);
    --admin-link-active-border: #8a2be2;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
    background: #07040f;
}

.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--admin-sidebar-width);
    background: var(--admin-sidebar-bg);
    border-right: 1px solid var(--admin-sidebar-border);
    display: flex;
    flex-direction: column;
    z-index: 200;
    transition: transform 0.25s ease;
}

.admin-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 18px 16px;
    border-bottom: 1px solid var(--admin-sidebar-border);
}

.admin-sidebar__logo {
    text-decoration: none;
}

.admin-sidebar__logo-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--admin-accent), var(--admin-accent-bright));
    color: #fff;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.admin-sidebar__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--admin-text);
    letter-spacing: 0.5px;
}

.admin-sidebar__nav {
    flex: 1;
    padding: 12px 0;
    overflow-y: auto;
}

.admin-sidebar__list {
    list-style: none;
    margin: 0;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-sidebar__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--admin-text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    border: none;
    background: transparent;
    width: 100%;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.admin-sidebar__link i {
    font-size: 1rem;
    flex-shrink: 0;
}

.admin-sidebar__link:hover {
    background: var(--admin-link-hover-bg);
    color: var(--admin-text);
}

.admin-sidebar__link.active {
    background: var(--admin-link-active-bg);
    color: #fff;
    border-left: 3px solid var(--admin-link-active-border);
    padding-left: 9px;
}

.admin-sidebar__link--muted {
    color: var(--admin-text-muted);
    font-size: 0.82rem;
}

.admin-sidebar__footer {
    padding: 12px 10px;
    border-top: 1px solid var(--admin-sidebar-border);
}

.admin-layout__content {
    margin-left: var(--admin-sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    flex: 1;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--admin-topbar-h);
    background: rgba(14, 8, 32, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--admin-sidebar-border);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 12px;
}

.admin-topbar__burger {
    display: none;
    background: none;
    border: none;
    color: var(--admin-text);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    line-height: 1;
}

.admin-topbar__breadcrumb {
    color: var(--admin-text-muted);
    font-size: 0.85rem;
    margin-left: auto;
}

.admin-layout__body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.admin-sidebar-overlay {
    display: none;
}

@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar--open {
        transform: translateX(0);
    }

    .admin-layout__content {
        margin-left: 0;
    }

    .admin-topbar__burger {
        display: block;
    }

    .admin-sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 199;
    }
}

/* ── Filamento incandescente (CreatePage — generazione/polling) ── */

.laser-progress-container {
    width: 100%;
    height: 2px;
    background: transparent;
    position: relative;
    overflow: hidden;
    padding: 20px 0;
    box-sizing: content-box;
    margin: -20px 0;
}

/* Linea base sempre visibile — traccia sottile viola spento */
.laser-progress-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(124, 58, 237, 0.15);
    transform: translateY(-50%);
}

/* Filamento principale */
.laser-bar {
    position: absolute;
    top: 50%;
    left: 0;
    width: 45%;
    height: 1px;
    transform: translateY(-50%) translateX(-110%);
    background: linear-gradient(
        90deg,
        transparent 0%,
        #7C3AED 30%,
        #ffffff 65%,
        #06B6D4 85%,
        transparent 100%
    );
    box-shadow:
        0 0 4px #7C3AED,
        0 0 12px rgba(124, 58, 237, 0.8),
        0 0 24px rgba(6, 182, 212, 0.4);
    animation: filament-sweep 2.5s ease-in-out infinite;
    will-change: transform;
}

/* Punta luminosa */
.laser-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow:
        0 0 8px #06B6D4,
        0 0 20px #7C3AED,
        0 0 32px rgba(124, 58, 237, 0.6);
}

/* Secondo strato: alone morbido che amplifica il glow */
.laser-bar:last-child {
    width: 50%;
    filter: blur(3px);
    opacity: 0.6;
    animation-duration: 2.5s;
}

@keyframes filament-sweep {
    0%   { transform: translateY(-50%) translateX(-110%); }
    100% { transform: translateY(-50%) translateX(210%); }
}

/* Modalità deterministica: la barra si riempie in base al progresso reale Meshy */
.laser-bar.laser-bar--progress {
    animation: none;
    transform: translateY(-50%);
    transition: width 0.5s ease-out;
    width: 0%;
    background: linear-gradient(90deg, transparent, #7C3AED, #ffffff, #06B6D4);
    box-shadow:
        0 0 8px #7C3AED,
        0 0 20px rgba(6, 182, 212, 0.8),
        0 0 40px rgba(124, 58, 237, 0.5);
}

.laser-bar.laser-bar--progress::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    animation: pulse 1s ease-in-out infinite alternate;
}

@keyframes pulse {
    0%   { box-shadow: 0 0  8px #06B6D4, 0 0  8px #7C3AED; }
    100% { box-shadow: 0 0 20px #06B6D4, 0 0 20px #7C3AED; }
}

.progress-percentage {
    font-weight: 800;
    font-size: 1.2rem;
    color: #06B6D4;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.8);
    animation: float 2s ease-in-out infinite alternate;
}

@keyframes float {
    0%   { transform: translateY(-4px); }
    100% { transform: translateY(4px); }
}

@media (prefers-reduced-motion: reduce) {
    .laser-bar,
    .laser-bar:last-child {
        animation: none;
        transform: translateY(-50%) translateX(80%);
        opacity: 1;
    }
    .progress-percentage {
        animation: none;
    }
    .laser-bar.laser-bar--progress::after {
        animation: none;
    }
}
