/* ───────── Guida interattiva ─────────
   Player (overlay a schermo intero) + stage simulato (1120x660 logici, scalato via JS) + hub + benvenuto.
   Usa le variabili --mud-palette-* cosi' segue tema chiaro/scuro dell'app. */

.gd-overlay {
    position: fixed; inset: 0; z-index: 1900;
    display: flex; flex-direction: column;
    background: radial-gradient(1200px 700px at 50% 0%, #3a2a40 0%, #17121b 70%);
    color: #fff; outline: none;
    animation: gd-fade .25s ease;
}
@keyframes gd-fade { from { opacity: 0; } to { opacity: 1; } }

.gd-topbar { display: flex; align-items: center; gap: 12px; padding: 12px 20px; }
.gd-top-icon { color: #BE93C5; }
.gd-top-title { font-weight: 800; font-size: 1.05rem; }
.gd-top-step { margin-left: auto; opacity: .7; font-size: .85rem; }
.gd-close { background: rgba(255,255,255,.1); border: 0; color: #fff; border-radius: 50%; width: 36px; height: 36px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.gd-close:hover { background: rgba(255,255,255,.2); }

.gd-arena { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; position: relative; }
.gd-stage-wrap { position: relative; overflow: hidden; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08); background: var(--mud-palette-background, #fff); }
.gd-stage { position: absolute; left: 0; top: 0; width: 1120px; height: 660px; transform-origin: top left; overflow: hidden; color: var(--mud-palette-text-primary, #222); font-size: 14px; }

/* overlay della simulazione */
.gd-dim { display: none; position: absolute; inset: 0; pointer-events: none; }
.gd-dim-full { display: block; background: rgba(15, 10, 20, .5); animation: gd-fade .3s ease; }
.gd-spot {
    position: absolute; pointer-events: none; border-radius: 12px; z-index: 20;
    box-shadow: 0 0 0 9999px rgba(15,10,20,.55), 0 0 0 3px #BE93C5, 0 0 24px 4px rgba(190,147,197,.7);
    transition: left .55s cubic-bezier(.3,.9,.3,1), top .55s cubic-bezier(.3,.9,.3,1), width .55s cubic-bezier(.3,.9,.3,1), height .55s cubic-bezier(.3,.9,.3,1);
}
.gd-cursor { position: absolute; left: 0; top: 0; z-index: 40; pointer-events: none; opacity: 0; transition: transform var(--gd-dur, .75s) cubic-bezier(.45,.05,.2,1), opacity .3s; filter: drop-shadow(0 3px 5px rgba(0,0,0,.4)); }
.gd-cursor.on { opacity: 1; }
.gd-ripple { position: absolute; z-index: 39; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 3px solid #BE93C5; pointer-events: none; animation: gd-ripple .6s ease-out forwards; }
@keyframes gd-ripple { to { transform: scale(4.5); opacity: 0; } }

.gd-callout { position: absolute; z-index: 50; width: 340px; padding: 14px 16px; border-radius: 14px; background: #fff; color: #231c28; box-shadow: 0 14px 40px rgba(0,0,0,.35); animation: gd-pop .35s cubic-bezier(.3,1.4,.5,1); transition: left .5s ease, top .5s ease; }
@keyframes gd-pop { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
.gd-callout-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.gd-callout-num { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #925298; color: #fff; font-weight: 800; font-size: .8rem; display: flex; align-items: center; justify-content: center; }
.gd-callout-title { font-weight: 800; font-size: 1.02rem; }
.gd-callout-text { font-size: .93rem; line-height: 1.45; opacity: .85; }
.gd-badge-demo { position: absolute; right: 10px; bottom: 8px; z-index: 5; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(146,82,152,.15); color: #925298; pointer-events: none; }

.gd-finale { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(10,6,14,.55); backdrop-filter: blur(4px); animation: gd-fade .3s; }
.gd-finale-card { background: #fff; color: #231c28; border-radius: 20px; padding: 32px 40px; text-align: center; max-width: 440px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.gd-finale-check { width: 76px; height: 76px; border-radius: 50%; background: linear-gradient(135deg,#BE93C5,#925298); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; animation: gd-pop .5s cubic-bezier(.3,1.6,.5,1); }
.gd-finale-title { font-size: 1.5rem; font-weight: 800; }
.gd-finale-text { margin: 8px 0 18px; opacity: .75; }
.gd-finale-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* barra dei controlli */
.gd-controls { display: flex; align-items: center; gap: 10px; padding: 12px 20px 16px; flex-wrap: wrap; }
.gd-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s, transform .15s; }
.gd-btn:hover:not(:disabled) { background: rgba(255,255,255,.22); transform: scale(1.06); }
.gd-btn:disabled { opacity: .35; cursor: default; }
.gd-btn-main { width: 48px; height: 48px; background: #925298; }
.gd-btn-main:hover:not(:disabled) { background: #a460ab; }
.gd-progress { flex: 1; min-width: 160px; display: flex; gap: 3px; align-items: center; }
.gd-seg { flex: 1; height: 8px; border: 0; padding: 0; border-radius: 4px; background: rgba(255,255,255,.18); cursor: pointer; transition: background .3s, height .2s; }
.gd-seg:hover { height: 12px; }
.gd-seg.done { background: #BE93C5; }
.gd-seg.now { background: #fff; }
.gd-group { display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.08); }
.gd-chip { border: 0; background: transparent; color: rgba(255,255,255,.75); padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: .8rem; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.gd-chip.on { background: #925298; color: #fff; }

/* ───── mock dell'applicazione ───── (riproduce lo stile reale: MudBlazor + pagine Index/NuovaSpedizione) */
.gd-app { position: absolute; inset: 0; z-index: 0; display: flex; flex-direction: column; background: var(--mud-palette-background, #fff); }
.gd-appbar { height: 44px; flex: none; background: #925298; color: #fff; display: flex; align-items: center; gap: 12px; padding: 0 14px; }
.gd-appbar-title { font-weight: 600; font-size: 1.05rem; }
.gd-spacer { flex: 1; }
.gd-body { flex: 1; display: flex; min-height: 0; }
.gd-drawer { width: 230px; flex: none; padding: 8px 8px; overflow: hidden; background: var(--mud-palette-drawer-background, #fff); color: var(--mud-palette-drawer-text, #333); border-right: 1px solid var(--mud-palette-divider, #e6e0e8); }
.gd-user { padding: 0 10px 8px; display: flex; flex-direction: column; border-bottom: 1px solid var(--mud-palette-divider, #e6e0e8); margin-bottom: 6px; }
.gd-logo-img { height: 46px; width: auto; align-self: flex-start; margin-bottom: 4px; }
.gd-user small { opacity: .6; font-size: .75rem; }
.gd-nav { display: flex; align-items: center; gap: 10px; padding: 5px 12px; border-radius: 8px; margin-bottom: 1px; font-weight: 500; font-size: .88rem; }
.gd-nav-active { background: rgba(146,82,152,.12); color: #925298; font-weight: 700; }
.gd-nav-sep { height: 1px; background: var(--mud-palette-divider, #e6e0e8); margin: 6px 10px; }

.gd-main { flex: 1; min-width: 0; padding: 24px 32px; position: relative; animation: gd-fade .35s ease; }
.gd-scroll { overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; }
.gd-h1 { font-size: 2.2rem; font-weight: 800; line-height: 1.2; margin-bottom: 2px; }
.gd-subtitle { opacity: .8; margin-bottom: 14px; font-size: 1rem; }
.gd-h4 { font-size: 1.5rem; font-weight: 800; color: #925298; letter-spacing: .3px; margin-bottom: 4px; }
.gd-h5 { font-size: 1.15rem; font-weight: 600; }
.gd-h6 { font-size: 1.05rem; font-weight: 600; }
.gd-primary { color: #925298; }

/* home Point/Agenzia */
.gd-banner { display: flex; border-radius: 16px; border: 1px solid var(--mud-palette-divider, #e6e0e8); background: var(--mud-palette-background-grey, #f5f1f6); padding: 28px 8px; margin-top: 20px; }
.gd-banner-col { flex: 1; padding: 0 28px; }
.gd-banner-mid { border-left: 1px solid var(--mud-palette-divider, #ddd); border-right: 1px solid var(--mud-palette-divider, #ddd); }
.gd-banner .gd-h6 { font-weight: 700; margin-bottom: 14px; }
.gd-quick { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-weight: 500; }
.gd-quick-gap { margin-top: 16px; }
.gd-stat { margin-bottom: 12px; }
.gd-stat b { display: block; font-size: 2.2rem; color: #925298; font-weight: 700; line-height: 1.1; }
.gd-stat span { color: #925298; font-weight: 600; font-size: .9rem; }

/* elenco spedizioni */
.gd-toolbar { display: flex; align-items: center; gap: 8px; margin: 10px 0 12px; padding: 4px; border-radius: 10px; }
.gd-btn-out { padding: 6px 14px; border-radius: 8px; border: 1px solid rgba(146,82,152,.6); color: #925298; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; }
.gd-btn-icon { padding: 6px 8px; }
.gd-search { padding: 7px 14px; border-bottom: 1px solid var(--mud-palette-lines-inputs, #aaa); opacity: .7; display: inline-flex; align-items: center; gap: 8px; min-width: 250px; font-size: .9rem; }
.gd-table { border: 1px solid var(--mud-palette-divider, #e6e0e8); border-radius: 8px; overflow: hidden; }
.gd-tr { display: grid; grid-template-columns: 90px 50px 1.3fr 1.3fr 1fr 80px 1.2fr 46px; padding: 10px 12px; border-top: 1px solid var(--mud-palette-divider, #eee); align-items: center; font-size: .85rem; gap: 6px; }
.gd-th { font-weight: 800; border-top: 0; background: transparent; }
.gd-tr-new { background: rgba(146,82,152,.08); }
.gd-courier { height: 20px; max-width: 70px; object-fit: contain; background: #fff; border-radius: 4px; padding: 2px 4px; }
.gd-chip-st { padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; justify-self: start; border: 1px solid transparent; white-space: nowrap; }
.gd-chip-st.waiting { background: #F1F5F9; color: #475569; border-color: #E2E8F0; }
.gd-chip-st.transit { background: #F5F3FF; color: #925298; border-color: #DDD6FE; }
.gd-chip-st.delivered { background: #F0FDF4; color: #166534; border-color: #BBF7D0; }
.gd-dots { display: flex; justify-content: center; opacity: .8; }
.gd-note { font-size: .78rem; margin-top: 12px; }
.gd-menu { position: absolute; right: 36px; top: 262px; z-index: 30; width: 270px; padding: 6px 0; border-radius: 6px; background: var(--mud-palette-surface, #fff); box-shadow: 0 5px 20px rgba(0,0,0,.28); animation: gd-pop .25s ease; }
.gd-menu-item { padding: 9px 16px; font-size: .9rem; }

/* nuova spedizione */
.gd-card-big { border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.12); background: var(--mud-palette-surface, #fff); margin-top: 10px; }
.gd-tabs { display: flex; border-bottom: 1px solid var(--mud-palette-divider, #e6e0e8); }
.gd-tab { padding: 14px 22px; font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .4px; border-bottom: 3px solid transparent; }
.gd-tab.on { color: #925298; border-bottom-color: #925298; }
.gd-tab.dis { opacity: .4; }
.gd-tab-body { padding: 8px 24px 20px; }
.gd-block { margin-top: 26px; }
.gd-block > small { display: block; margin-bottom: 8px; }
.gd-switch-row { display: flex; align-items: center; gap: 6px; margin: 6px 0 10px; }
.gd-switch { width: 34px; height: 16px; border-radius: 999px; background: #bdb4c0; display: inline-block; position: relative; flex: none; }
.gd-switch::after { content: ""; position: absolute; left: -2px; top: -3px; width: 22px; height: 22px; border-radius: 50%; background: #fafafa; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.gd-days { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; margin-top: 8px; }
.gd-day { display: flex; flex-direction: column; align-items: center; padding: 8px 0; border-radius: 6px; background: var(--mud-palette-surface, #fff); box-shadow: 0 2px 5px rgba(0,0,0,.18); border: 1px solid var(--mud-palette-divider, #eee); }
.gd-day small { opacity: .7; }
.gd-day b { font-size: 1.5rem; line-height: 1.2; }
.gd-day.sel { border: 3px solid #925298; color: #925298; }
.gd-day.festivo { background: var(--mud-palette-divider, #e6e0e8); opacity: .7; }
.gd-field { position: relative; margin-top: 14px; padding: 15px 14px 8px; border: 1px solid var(--mud-palette-lines-inputs, #b9b0bd); border-radius: 4px; min-height: 22px; background: var(--mud-palette-surface, #fff); }
.gd-field label { position: absolute; top: -9px; left: 8px; padding: 0 5px; font-size: .75rem; background: var(--mud-palette-surface, #fff); opacity: .8; }
.gd-field span { display: block; min-height: 20px; font-weight: 500; }
.gd-select { display: flex; align-items: center; }
.gd-select span { flex: 1; }
.gd-underline { border: 0; border-bottom: 1px solid var(--mud-palette-lines-inputs, #aaa); border-radius: 0; background: transparent; padding-left: 0; }
.gd-underline label { left: 0; background: transparent; top: -2px; }
.gd-alert { margin: 10px 0; padding: 10px 14px; border-radius: 4px; background: rgba(0,0,0,.05); font-size: .88rem; }
.gd-addrow { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 4px; font-size: .9rem; }
.gd-btn-text { color: #925298; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; }
.gd-row5 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 1fr; gap: 12px; }
.gd-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.gd-extra-row { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.gd-extra-row > div { flex: 1; }
.gd-check { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-weight: 500; }
.gd-box { width: 18px; height: 18px; border: 2px solid #8a8190; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 900; }
.gd-box.on { background: #925298; border-color: #925298; }
.gd-bottom { display: flex; align-items: center; margin-top: 26px; }
.gd-btn-fill { padding: 8px 18px; border-radius: 4px; background: #925298; color: #fff; font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .4px; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 2px 4px rgba(0,0,0,.25); }
.gd-disabled { background: rgba(0,0,0,.14); color: rgba(0,0,0,.35); box-shadow: none; }
.gd-loading { padding: 40px 0; }
.gd-loading small { display: block; color: #925298; margin-bottom: 8px; }
.gd-progress-ind { height: 4px; background: rgba(146,82,152,.2); border-radius: 2px; overflow: hidden; }
.gd-progress-ind i { display: block; height: 100%; width: 40%; background: #925298; animation: gd-ind 1.1s ease-in-out infinite; }
@keyframes gd-ind { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }

/* scelta corriere */
.gd-tip { display: flex; gap: 20px; align-items: center; padding: 18px 26px; border-radius: 16px; border-left: 6px solid #925298; background: var(--mud-palette-background-grey, #f5f1f6); margin: 18px 0 8px; }
.gd-props { padding: 4px; margin-top: 12px; }
.gd-prop { display: flex; align-items: center; padding: 10px 22px; margin-bottom: 10px; min-height: 78px; border: 1px solid var(--mud-palette-divider, #e0d8e3); border-radius: 16px; background: var(--mud-palette-surface, #fff); }
.gd-prop.sel { border: 2px solid #925298; background: rgba(146,82,152,.10); }
.gd-prop-logo { width: 15%; display: flex; justify-content: center; }
.gd-prop-logo span { background: #fff; border-radius: 10px; padding: 6px 12px; display: inline-flex; border: 1px solid #f0f0f0; }
.gd-prop-logo img { height: 34px; max-width: 110px; object-fit: contain; }
.gd-prop-info { width: 45%; padding: 0 20px; border-left: 1px solid var(--mud-palette-divider, #e6e0e8); display: flex; flex-direction: column; }
.gd-prop-info b { font-size: 1.1rem; font-weight: 800; }
.gd-prop-info small { opacity: .5; font-weight: 600; }
.gd-prop-price { width: 25%; padding: 0 20px; text-align: right; border-left: 1px solid var(--mud-palette-divider, #e6e0e8); }
.gd-prop-price > small { font-weight: 800; color: #925298; letter-spacing: 1px; font-size: .7rem; }
.gd-prop-price b { font-size: 1.5rem; font-weight: 800; }
.gd-prop-price i { font-style: normal; font-size: .68rem; font-weight: 800; color: #925298; margin-left: 4px; }
.gd-prop-sugg { display: block; opacity: .5; font-weight: 700; margin-top: 2px; }
.gd-prop-action { width: 15%; display: flex; justify-content: flex-end; }
.gd-btn-prop { padding: 8px 20px; border: 1px solid #925298; border-radius: 10px; color: #925298; font-weight: 800; }
.gd-btn-prop.fill { background: #925298; color: #fff; }

/* mittente / destinatario / finalizza */
.gd-ac-wrap { position: relative; margin-top: 18px; }
.gd-ac-list { position: absolute; left: 0; right: 0; top: calc(100% + 2px); z-index: 10; background: var(--mud-palette-surface, #fff); box-shadow: 0 4px 16px rgba(0,0,0,.25); border-radius: 4px; padding: 4px 0; animation: gd-pop .2s ease; }
.gd-ac-item { padding: 10px 16px; }
.gd-italic { margin-top: 16px; font-size: .9rem; }
.gd-recap { margin-top: 14px; }
.gd-recap .gd-h6 { font-weight: 400; margin-bottom: 4px; }
.gd-notes span { min-height: 54px; }
.gd-modal-back { position: absolute; inset: 0; z-index: 25; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; }
.gd-modal { background: var(--mud-palette-surface, #fff); border-radius: 4px; padding: 20px 24px 14px; width: 400px; box-shadow: 0 11px 40px rgba(0,0,0,.4); }
.gd-modal-title { font-size: 1.2rem; font-weight: 600; }
.gd-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.gd-snackbar { position: absolute; left: 20px; bottom: 20px; z-index: 22; display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 4px; background: #2e7d32; color: #fff; font-size: .88rem; box-shadow: 0 4px 14px rgba(0,0,0,.3); animation: gd-pop .35s ease; }

/* ───── hub ───── */
.gd-hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.gd-hub-card { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--mud-palette-surface); border: 1px solid var(--mud-palette-divider); transition: transform .2s, box-shadow .2s; }
.gd-hub-card:not(.soon):hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(146,82,152,.25); }
.gd-hub-card.soon { opacity: .6; }
.gd-hub-cover { height: 130px; background: linear-gradient(135deg, #BE93C5, #925298); display: flex; align-items: center; justify-content: center; position: relative; }
.gd-hub-done { position: absolute; top: 10px; right: 10px; background: #fff; color: #2e8b3d; font-weight: 800; font-size: .75rem; padding: 3px 10px 3px 6px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; }
.gd-hub-body { padding: 16px 18px 6px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.gd-hub-meta { display: flex; align-items: center; gap: 8px; }
.gd-hub-time { opacity: .65; font-size: .8rem; display: inline-flex; align-items: center; gap: 3px; }
.gd-hub-actions { padding: 10px 18px 18px; }

/* ───── benvenuto primo accesso ───── */
.gd-welcome-back { position: fixed; inset: 0; z-index: 1800; background: rgba(15,10,20,.6); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; animation: gd-fade .3s; }
.gd-welcome { width: min(560px, 92vw); border-radius: 24px; overflow: hidden; background: var(--mud-palette-surface); box-shadow: 0 30px 90px rgba(0,0,0,.5); animation: gd-pop .45s cubic-bezier(.3,1.4,.5,1); }
.gd-welcome-art { height: 150px; background: linear-gradient(135deg, #BE93C5, #925298); display: flex; align-items: center; justify-content: center; }
.gd-welcome-body { padding: 24px 28px 22px; }
.gd-welcome-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

/* pulsante voce narrante attivo */
.gd-btn-on { background: #925298; }
.gd-btn-on:hover:not(:disabled) { background: #a460ab; }

/* sottovoci del menu */
.gd-sub { margin-left: 18px; font-size: .84rem; }

/* ricarica plafond */
.gd-tr-acq { grid-template-columns: 1fr 1fr 1.4fr 1.4fr 1.6fr; }
.gd-pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 14px; }
.gd-pay-card { display: flex; gap: 18px; align-items: flex-start; padding: 20px 22px; border-radius: 16px; border: 1px solid var(--mud-palette-divider, #e6e0e8); background: var(--mud-palette-surface, #fff); }
.gd-pay-stripe { background: linear-gradient(135deg, #635BFF 0%, #925298 100%); border: 0; color: #fff; }
.gd-pay-sub { font-size: .88rem; margin: 2px 0 10px; }
.gd-iban { background: var(--mud-palette-background-grey, #f5f1f6); border-radius: 12px; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.gd-iban small { text-transform: uppercase; font-weight: 700; opacity: .5; font-size: .68rem; }
.gd-iban b { color: #925298; letter-spacing: 1px; font-size: .95rem; }
.gd-iban span { font-weight: 600; font-size: .85rem; }
.gd-iban-causale { text-transform: none !important; opacity: 1 !important; font-size: .78rem !important; margin-top: 4px; }
.gd-stripe-word { font-weight: 900; font-size: 1.7rem; letter-spacing: -1px; margin-top: 6px; }
.gd-pay-note { font-size: .75rem; opacity: .75; margin-top: 8px; }
.gd-tier-title { margin: 22px 0 12px; font-weight: 800; }
.gd-tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gd-tier { position: relative; text-align: center; padding: 18px 10px 14px; border-radius: 20px; border: 2px solid var(--mud-palette-divider, #e6e0e8); background: var(--mud-palette-surface, #fff); transition: all .25s; }
.gd-tier.sel { border-color: #925298; background: rgba(146,82,152,.08); }
.gd-tier-check { position: absolute; top: 8px; right: 10px; color: #925298; display: flex; }
.gd-tier-label { color: #925298; font-weight: 700; letter-spacing: 1px; font-size: .85rem; }
.gd-tier-price { font-size: 2.6rem; font-weight: 800; line-height: 1; margin: 14px 0; }
.gd-tier-price span { font-size: 1.3rem; vertical-align: super; margin-left: 3px; }
.gd-tier hr { border: 0; border-top: 1px solid var(--mud-palette-divider, #e6e0e8); margin: 8px 0; }
.gd-tier-comm { font-size: .72rem; font-weight: 600; opacity: .65; }
.gd-tier-comm.gd-primary { opacity: 1; color: #925298; }
.gd-pay-bar { display: flex; align-items: center; gap: 22px; margin-top: 22px; padding: 14px 20px; border-radius: 16px; background: var(--mud-palette-background-grey, #f5f1f6); }
.gd-grey { color: inherit; opacity: .7; }
.gd-btn-big { padding: 12px 34px; border-radius: 10px; font-weight: 800; }
.gd-modal-wide { width: 470px; }

/* pagina esterna (Stripe) e conferma */
.gd-ext { position: absolute; inset: 0; z-index: 30; background: #fff; color: #1a1f36; display: flex; flex-direction: column; animation: gd-fade .3s; }
.gd-ext-bar { flex: none; background: #f0f2f5; padding: 8px 16px; display: flex; align-items: center; gap: 8px; font-size: .82rem; border-bottom: 1px solid #dfe3e8; }
.gd-ext-tag { margin-left: auto; color: #2e7d32; font-weight: 700; }
.gd-ext-body { flex: 1; display: flex; }
.gd-ext-left { flex: 1; background: #f6f8fa; padding: 90px 70px; display: flex; flex-direction: column; gap: 6px; }
.gd-ext-left b { font-size: 2.6rem; }
.gd-ext-left span, .gd-ext-left small { opacity: .65; }
.gd-ext-form { flex: 1; padding: 70px 80px; }
.gd-ext-field { margin-bottom: 18px; }
.gd-ext-field label { display: block; font-size: .78rem; font-weight: 600; margin-bottom: 4px; }
.gd-ext-field span { display: block; border: 1px solid #d0d5dd; border-radius: 6px; padding: 10px 12px; min-height: 20px; color: #697386; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.gd-ext-pay { margin-top: 24px; background: #635BFF; color: #fff; text-align: center; padding: 13px; border-radius: 6px; font-weight: 700; }
.gd-ok-page { position: absolute; inset: 0; z-index: 30; background: var(--mud-palette-background, #fff); display: flex; align-items: center; justify-content: center; animation: gd-fade .3s; }
.gd-ok-box { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px 60px; }
.gd-ok-title { font-size: 3.6rem; font-weight: 800; color: #925298; }
.gd-link { font-weight: 700; text-decoration: underline; margin-top: 8px; display: inline-block; }

/* import massivo */
.gd-tr-im { grid-template-columns: 1.3fr .7fr .8fr .6fr .6fr 1.6fr 1fr; }
.gd-tr-prev { grid-template-columns: 50px 1.3fr 1.3fr 80px 1fr 80px 100px; }
.gd-chip-st.gd-st-warn { background: #FFF7ED; color: #B45309; border-color: #FED7AA; }
.gd-chip-st.gd-st-err { background: #FEF2F2; color: #B91C1C; border-color: #FECACA; }
.gd-row-err { background: rgba(185,28,28,.08); }
.gd-im-eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #925298; margin-bottom: 2px; }
.gd-im-steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 14px 0 6px; }
.gd-im-step { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .82rem; opacity: .55; font-weight: 600; }
.gd-im-step.now, .gd-im-step.done { opacity: 1; }
.gd-im-dot { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--mud-palette-divider, #ddd); display: flex; align-items: center; justify-content: center; font-weight: 700; background: var(--mud-palette-surface, #fff); }
.gd-im-step.now .gd-im-dot { border-color: #925298; color: #925298; }
.gd-im-step.done .gd-im-dot { background: #925298; border-color: #925298; color: #fff; }
.gd-im-stage { padding: 20px 26px 22px; }
.gd-im-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #925298; }
.gd-im-desc { font-size: .88rem; opacity: .75; margin: 4px 0 14px; }
.gd-im-drop { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px 20px; border: 2px dashed #BE93C5; border-radius: 16px; background: rgba(146,82,152,.05); text-align: center; }
.gd-im-drop span { opacity: .7; font-size: .85rem; }
.gd-im-tags { display: flex; gap: 8px; }
.gd-im-tags i { font-style: normal; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(146,82,152,.12); color: #925298; }
.gd-im-file { display: flex; align-items: center; gap: 8px; font-size: .88rem; margin: 6px 0 4px; }
.gd-im-group { margin-top: 12px; }
.gd-im-group .gd-h6 { font-weight: 700; margin-bottom: 4px; }
.gd-im-group .gd-h6 small { font-weight: 500; opacity: .6; margin-left: 6px; }
.gd-im-maprow { display: grid; grid-template-columns: 110px 1fr; gap: 2px 10px; align-items: center; margin-top: 8px; font-size: .85rem; }
.gd-im-sel { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--mud-palette-lines-inputs, #b9b0bd); border-radius: 4px; padding: 6px 10px; }
.gd-im-auto { grid-column: 2; font-size: .68rem; font-weight: 700; color: #2e7d32; }
.gd-im-hint { font-size: .75rem; opacity: .65; margin-top: 6px; }
.gd-im-chip { padding: 5px 12px; border-radius: 999px; background: rgba(146,82,152,.1); font-size: .8rem; font-weight: 600; margin-right: 12px; }
.gd-im-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 6px 0 14px; }
.gd-im-kpi { padding: 12px 16px; border-radius: 12px; background: var(--mud-palette-background-grey, #f5f1f6); }
.gd-im-kpi b { display: block; font-size: 1.8rem; line-height: 1.1; }
.gd-im-kpi span { font-size: .78rem; opacity: .7; font-weight: 600; }
.gd-im-kpi.ok b { color: #2e7d32; }
.gd-im-kpi.warn b { color: #C6791A; }
.gd-im-grid { margin-top: 4px; }
.gd-im-cell { display: inline-block; border-bottom: 1px solid var(--mud-palette-lines-inputs, #aaa); min-width: 52px; }
.gd-im-couriers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.gd-im-courier { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 2px solid var(--mud-palette-divider, #e6e0e8); border-radius: 12px; }
.gd-im-courier.sel { border-color: #925298; background: rgba(146,82,152,.08); }
.gd-im-badge { width: 30px; height: 30px; border-radius: 8px; color: #fff; font-weight: 800; font-size: .72rem; display: inline-flex; align-items: center; justify-content: center; }
.gd-im-summary { display: flex; flex-direction: column; gap: 10px; }
.gd-im-sumbox { padding: 12px 16px; border-radius: 12px; background: var(--mud-palette-background-grey, #f5f1f6); }
.gd-im-sumrow { display: flex; justify-content: space-between; font-size: .85rem; padding: 3px 0; }
.gd-im-hero { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; background: linear-gradient(135deg, rgba(190,147,197,.25), rgba(146,82,152,.18)); margin-bottom: 14px; }
.gd-im-hero span { font-size: .85rem; opacity: .8; }
.gd-im-head { display: flex; justify-content: space-between; align-items: center; }
