﻿:root {
    --bg-body: #f8f9fa;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f9fa;
    --bg-input: #f1f3f5;
    --border-color: #e2e5e9;
    --border-hover: #ced4da;
    --text-primary: #1a1d21;
    --text-secondary: #5c6370;
    --text-muted: #8b919a;
    --accent: #f97316;
    --accent-hover: #ea580c;
    --accent-light: rgba(249, 115, 22, 0.1);
    --accent-lighter: rgba(249, 115, 22, 0.05);
    --success: #16a34a;
    --success-light: rgba(22, 163, 74, 0.1);
    --warning: #ca8a04;
    --warning-light: rgba(202, 138, 4, 0.1);
    --danger: #dc2626;
    --danger-light: rgba(220, 38, 38, 0.1);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-glow: 0 4px 20px rgba(249, 115, 22, 0.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* === HEADER === */
.header {
    background: #1a1d21;
    border-bottom: none;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000!important;
    box-shadow: var(--shadow-md);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: var(--accent);
    letter-spacing: 2px;
    text-decoration: none;
}

    .logo span {
        color: #ffffff;
    }

    .logo img {
        height: 40px;
        width: auto;
    }

.timer-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-light);
    border: 2px solid var(--accent);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-xl);
    font-weight: 600;
    color: var(--accent);
}

    .timer-badge.warning {
        background: var(--danger-light);
        border-color: var(--danger);
        color: var(--danger);
        animation: pulse 1s infinite;
    }
.timer-container {
    z-index: 50; /* Timer sotto il bottone */
}

/* Se il timer è sticky/fixed */
.timer-wrapper {
    top: 80px; /* Sposta più in basso per non coprire l'header */
}
@@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* === MAIN === */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* === MOVIE HEADER (full width) === */
.movie-header {
    display: flex;
    gap: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.movie-poster {
    width: 200px;
    height: 290px;
    border-radius: var(--radius-md);
    object-fit: cover;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
    background: var(--bg-input);
}

.movie-details {
    flex: 1;
}

.movie-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.movie-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 1px;
    margin: 0;
}

.movie-venue {
    color: var(--accent);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.movie-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge {
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-3d {
    background: #3b82f6;
    color: white;
}

.badge-vo {
    background: #8b5cf6;
    color: white;
}

.badge-atmos {
    background: #ec4899;
    color: white;
}

.badge-vm {
    background: #ef4444;
    color: white;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

    .movie-meta span {
        display: flex;
        align-items: center;
        gap: 0.35rem;
    }

.movie-credits {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

    .movie-credits strong {
        color: var(--text-primary);
    }

.movie-plot {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@@media (max-width: 768px) {
    .movie-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .movie-badges, .movie-meta {
        justify-content: center;
    }
}

/* === CHECKOUT LAYOUT === */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
}

@@media (max-width: 1024px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }
}

/* === PROGRESS STEPS === */
.progress-container {
    margin-bottom: 1.5rem;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 0 30px;
}

    .progress-steps::before {
        content: '';
        position: absolute;
        top: 18px;
        left: 70px;
        right: 70px;
        height: 3px;
        background: var(--border-color);
    }

.progress-line {
    position: absolute;
    top: 18px;
    left: 70px;
    height: 3px;
    transition: width 0.5s ease;
    background: linear-gradient(90deg, #28a745 0%, #ff6b35 100%);
    width: 0%;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    z-index: 2;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.step.active .step-circle {
    border-color: var(--accent);
    background: #ff6b35 !important;
    color: white !important;
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.step.completed .step-circle {
    border-color: var(--success);
    background: #28a745 !important;
    color: white;
}

.step-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step.active .step-label,
.step.completed .step-label {
    color: var(--text-primary);
}

/* === ACCORDION SECTIONS === */
.accordion-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

    .accordion-section.active {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px var(--accent-light), var(--shadow-md);
    }

    .accordion-section.completed {
        border-color: var(--success);
    }

.accordion-header {
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .accordion-header:hover {
        background: var(--bg-card-hover);
    }

.accordion-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.accordion-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.accordion-section.active .accordion-number {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.accordion-section.completed .accordion-number {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.accordion-title {
    font-weight: 600;
    font-size: 1rem;
}

.accordion-summary {
    color: var(--text-muted);
    font-size: 0.85rem;
}

    .accordion-summary.has-value {
        color: var(--success);
        font-weight: 500;
    }

.accordion-toggle {
    color: var(--text-muted);
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.accordion-section.active .accordion-toggle {
    transform: rotate(180deg);
    color: var(--accent);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-section.active .accordion-content {
    max-height: 2000px;
}

.accordion-body {
    padding: 0 1.25rem 1.25rem;
}

/* === CINEMA SELECTOR === */
.cinema-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.cinema-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-input);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

    .cinema-item:hover {
        border-color: var(--accent);
        background: var(--accent-lighter);
    }

    .cinema-item.selected {
        border-color: var(--accent);
        background: var(--accent-light);
    }

    .cinema-item .cinema-icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--accent-light);
        color: var(--accent);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
    }

    .cinema-item.selected .cinema-icon {
        background: var(--accent);
        color: white;
    }

    .cinema-item .cinema-info h4 {
        font-weight: 600;
        font-size: 0.95rem;
        margin-bottom: 0.1rem;
    }

    .cinema-item .cinema-info p {
        font-size: 0.8rem;
        color: var(--text-secondary);
    }

/* === DATE SELECTOR === */
.section-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.date-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.6rem 1rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 70px;
}

    .date-btn:hover {
        border-color: var(--accent);
        background: var(--accent-lighter);
    }

    .date-btn.selected {
        border-color: var(--accent);
        background: var(--accent);
        color: white;
    }

    .date-btn .day-name {
        font-size: 0.7rem;
        text-transform: uppercase;
        color: var(--text-secondary);
        font-weight: 600;
    }

    .date-btn.selected .day-name {
        color: rgba(255,255,255,0.85);
    }

    .date-btn .day-num {
        font-size: 1.35rem;
        font-weight: 700;
        line-height: 1.2;
    }

    .date-btn .month {
        font-size: 0.65rem;
        text-transform: uppercase;
        color: var(--text-muted);
    }

    .date-btn.selected .month {
        color: rgba(255,255,255,0.75);
    }

/* === CALENDAR VIEW (per programmazioni lunghe) === */
.calendar-container {
    display: block !important;
    overflow-x: visible !important;
    margin-bottom: 1.25rem;
}

.calendar-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
    max-width: 320px;
    margin-bottom: 0.75rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.calendar-month-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.calendar-nav-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.calendar-nav-btn:hover:not(:disabled) {
    background: var(--accent-lighter);
    border-color: var(--accent);
    color: var(--accent);
}

.calendar-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.calendar-weekdays {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 2px;
    margin-bottom: 0.5rem;
}

.calendar-weekdays span {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.25rem 0;
}

.calendar-days {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 3px;
}

.calendar-day {
    width: 100%;
    height: 36px;
    min-width: 36px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 500;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: default;
    color: var(--text-muted);
    transition: all 0.15s ease;
    padding: 0;
    margin: 0;
}

.calendar-day.empty {
    background: transparent;
}

.calendar-day.past {
    color: var(--text-muted);
    opacity: 0.4;
}

.calendar-day.has-event {
    background: var(--accent-lighter);
    color: var(--accent);
    font-weight: 700;
    cursor: pointer;
    border: 2px solid transparent;
}

.calendar-day.has-event:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.05);
}

.calendar-day.selected {
    background: var(--accent) !important;
    color: white !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.calendar-day.disabled {
    cursor: not-allowed;
}

.calendar-legend {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-dot.available {
    background: var(--accent-lighter);
    border: 2px solid var(--accent);
}

.legend-dot.selected {
    background: var(--accent);
}

/* Responsive - calendario più stretto su mobile */
@media (max-width: 576px) {
    .calendar-wrapper {
        max-width: 100%;
    }

    .calendar-day {
        font-size: 0.75rem;
    }
}

/* === TIME SELECTOR === */
.time-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.time-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

    .time-btn:hover:not(.disabled) {
        border-color: var(--accent);
        background: var(--accent-lighter);
    }

    .time-btn.selected {
        border-color: var(--accent);
        background: var(--accent);
        color: white;
    }

    .time-btn.disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

    .time-btn .time {
        font-size: 1.15rem;
        font-weight: 700;
    }

    .time-btn .sala {
        font-size: 0.7rem;
        color: var(--text-secondary);
    }

    .time-btn.selected .sala {
        color: rgba(255,255,255,0.85);
    }

    .time-btn .availability {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        font-size: 0.65rem;
        margin-top: 0.25rem;
    }

.availability-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

    .availability-dot.high {
        background: var(--success);
    }

    .availability-dot.medium {
        background: var(--warning);
    }

    .availability-dot.low {
        background: var(--danger);
    }

    .availability-dot.sold {
        background: #9ca3af;
    }

.time-badge {
    display: inline-block;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-size: 0.55rem;
    font-weight: 700;
    margin-left: 0.25rem;
    vertical-align: middle;
}

    .time-badge.badge-3d {
        background: #3b82f6;
        color: white;
    }

    .time-badge.badge-vo {
        background: #8b5cf6;
        color: white;
    }

    .time-badge.badge-atmos {
        background: #ec4899;
        color: white;
    }

/* === SEAT MAP === */
.seat-section {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 1rem;
}

@@media (max-width: 900px) {
    .seat-section {
        grid-template-columns: 1fr;
    }
}

.seat-map-container {
    max-height: none !important; /* Rimuovi limite altezza */
    overflow-x: auto; /* Solo scroll orizzontale se serve */
    overflow-y: visible; /* Niente scroll verticale */
    padding: 10px;
}

#seatsGrid {
    max-height: none !important; /* Rimuovi limite */
    overflow: visible !important; /* Niente overflow */
}

.screen {
    text-align: center;
    margin-bottom: 1.5rem;
}

.screen-shape {
    width: 70%;
    height: 6px;
    margin: 0 auto 0.4rem;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    border-radius: 50%;
}

.screen-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.seats-grid, .seats-grid-dynamic {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--seat-gap, 3px);
}

.seat-row {
    display: flex;
    align-items: center;
    gap: var(--seat-gap, 3px);
}

.row-label {
    width: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
}

.seat {
    width: var(--seat-size, 28px);
    height: var(--seat-size, 28px);
    border-radius: 4px 4px 6px 6px;
    background: var(--success);
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: calc(var(--seat-size, 28px) * 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .seat:hover:not(.taken):not(.reserved):not(.selected) {
        background: var(--accent);
    }

    .seat.selected {
        background: var(--accent);
        box-shadow: 0 0 8px rgba(249, 115, 22, 0.5);
    }

    .seat.taken {
        background: var(--border-color);
        cursor: not-allowed;
    }

    .seat.reserved {
        background: var(--warning);
        cursor: not-allowed;
    }

    .seat.vip {
        background: linear-gradient(135deg, #fbbf24, #f59e0b);
    }

        .seat.vip.selected {
            background: var(--accent);
        }

.seat-legend {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.legend-seat {
    width: 16px;
    height: 16px;
    border-radius: 3px 3px 5px 5px;
}

    .legend-seat.available {
        background: var(--success);
    }

    .legend-seat.selected {
        background: var(--accent);
    }

    .legend-seat.taken {
        background: var(--border-color);
    }

    .legend-seat.reserved {
        background: var(--warning);
    }

    .legend-seat.vip {
        background: linear-gradient(135deg, #fbbf24, #f59e0b);
    }

/* === TICKET SELECTOR === */
.ticket-selector {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.ticket-selector-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ticket-type {
    display: flex;
    flex-direction: column;
    padding: 0.6rem 0.75rem;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    margin-bottom: 0.4rem;
}

.ticket-desc {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    line-height: 1.2;
}

.ticket-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticket-price {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--accent);
}

.ticket-controls {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.ticket-abbonamento {
    border-left: 3px solid var(--accent);
}

.btn-abbonamento {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-abbonamento:hover {
    background: var(--accent-dark, #e86a0a);
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

    .qty-btn:hover:not(:disabled) {
        border-color: var(--accent);
        background: var(--accent);
        color: white;
    }

.qty-value {
    font-size: 1rem;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.btn-next {
    width: 100%;
    padding: 0.85rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

    .btn-next:hover:not(:disabled) {
        background: var(--accent-hover);
        box-shadow: var(--shadow-glow);
    }

    .btn-next:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* === AUTH SECTION === */
.auth-container {
    max-width: 400px;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .social-btn:hover {
        border-color: var(--accent);
        background: var(--accent-lighter);
    }

    .social-btn.google {
        color: #4285f4;
    }

    .social-btn.facebook {
        color: #1877f2;
    }

.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

    .divider::before, .divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--border-color);
    }

.form-group {
    margin-bottom: 1rem;
}

    .form-group label {
        display: block;
        font-size: 0.85rem;
        font-weight: 500;
        margin-bottom: 0.4rem;
        color: var(--text-secondary);
    }

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

    .form-control:focus {
        outline: none;
        border-color: var(--accent);
    }

/* === SIDEBAR SUMMARY === */
.summary-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow-sm);
}

.summary-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.summary-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

    .summary-label i {
        color: var(--accent);
        width: 16px;
    }

.summary-value {
    font-weight: 500;
}

.summary-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.85rem 0;
}

.summary-tickets {
    margin-bottom: 0.5rem;
}

.summary-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    padding: 0.85rem;
    background: var(--accent-light);
    border-radius: var(--radius-md);
    margin: 0.85rem 0;
}

    .summary-total .amount {
        color: var(--accent);
        font-size: 1.35rem;
    }

.promo-input {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}

    .promo-input input {
        flex: 1;
        padding: 0.6rem 0.85rem;
        background: var(--bg-input);
        border: 2px solid var(--border-color);
        border-radius: var(--radius-md);
        font-size: 0.85rem;
    }

        .promo-input input:focus {
            outline: none;
            border-color: var(--accent);
        }

    .promo-input button {
        padding: 0.6rem 0.85rem;
        background: var(--bg-card);
        border: 2px solid var(--border-color);
        border-radius: var(--radius-md);
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
    }

        .promo-input button:hover {
            border-color: var(--accent);
            background: var(--accent-lighter);
        }

.btn-pay {
    width: 100%;
    padding: 1rem;
    background: var(--success);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

    .btn-pay:hover:not(:disabled) {
        background: #15803d;
        box-shadow: 0 4px 20px rgba(22, 163, 74, 0.3);
    }

    .btn-pay:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.payment-logos {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.85rem;
}

    .payment-logos img {
        height: 24px;
        opacity: 0.6;
    }

/* === AUTH FORMS === */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@@media (max-width: 500px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.auth-error {
    background: var(--danger-light);
    color: var(--danger);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.auth-switch {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

    .auth-switch a {
        color: var(--accent);
        font-weight: 600;
        text-decoration: none;
    }

        .auth-switch a:hover {
            text-decoration: underline;
        }

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

    .checkbox-label input[type="checkbox"] {
        margin-top: 2px;
        accent-color: var(--accent);
    }

    .checkbox-label a {
        color: var(--accent);
    }

/* Auth Success */
.auth-success-box {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--bg-input);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    border: 2px solid var(--success);
}

.auth-user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--success-light);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.auth-user-info {
    flex: 1;
}

    .auth-user-info h4 {
        margin: 0 0 0.25rem 0;
        font-size: 1.1rem;
    }

.auth-user-email {
    margin: 0 0 0.5rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.auth-verification-status {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.verification-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

    .verification-badge.verified {
        background: var(--success-light);
        color: var(--success);
    }

    .verification-badge.not-verified {
        background: var(--danger-light);
        color: var(--danger);
    }

.verification-warning {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--warning-light);
    color: var(--warning);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
}

/* OTP */
.otp-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

    .otp-header i {
        font-size: 3rem;
        color: var(--accent);
    }

    .otp-header h4 {
        margin: 0.5rem 0;
    }

    .otp-header p {
        color: var(--text-secondary);
        font-size: 0.9rem;
    }

.otp-input {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
    font-weight: 700;
}

.btn-resend {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
}

    .btn-resend:not(:disabled):hover {
        border-color: var(--accent);
        color: var(--accent);
    }

.spin {
    animation: spin 1s linear infinite;
}

@@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* === UTILS === */
.hidden {
    display: none !important;
}

/* === VERIFICATION PANEL === */
.verification-panel {
    background: #fff8f0;
    border: 1px solid #fed7aa;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin: 1rem 0;
}

.verification-header {
    text-align: center;
    margin-bottom: 1rem;
}

    .verification-header i {
        font-size: 2rem;
        color: var(--warning);
    }

    .verification-header h4 {
        margin: 0.5rem 0 0.25rem;
        color: var(--text-primary);
    }

    .verification-header p {
        margin: 0;
        font-size: 0.85rem;
        color: var(--text-secondary);
    }

.verification-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: white;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-color);
}

.verification-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

    .status-icon.not-verified {
        background: var(--danger-light);
        color: var(--danger);
    }

    .status-icon.verified {
        background: var(--success-light);
        color: var(--success);
    }

.verification-info strong {
    display: block;
    font-size: 0.85rem;
}

.verification-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-verify {
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
}

    .btn-verify:hover {
        background: var(--accent-hover);
    }

    .btn-verify:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.sent-message {
    font-size: 0.85rem;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.otp-section {
    margin-top: 1rem;
    padding: 1rem;
    background: white;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.otp-input-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.otp-input {
    flex: 1;
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
    font-weight: 700;
}

.otp-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    font-size: 0.85rem;
}

.countdown {
    color: var(--text-muted);
}

.btn-link {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

    .btn-link:hover {
        text-decoration: underline;
    }

.all-verified {
    background: var(--success-light);
    color: var(--success);
    padding: 1rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    margin: 1rem 0;
}

    .all-verified i {
        font-size: 1.25rem;
    }

/* === PHONE INPUT === */
.phone-input-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

    .phone-input-header i {
        font-size: 2.5rem;
        color: var(--accent);
        margin-bottom: 0.5rem;
    }

    .phone-input-header h4 {
        font-size: 1.25rem;
        font-weight: 600;
        margin-bottom: 0.25rem;
    }

    .phone-input-header p {
        color: var(--text-secondary);
        font-size: 0.9rem;
    }

.phone-input-wrapper {
    display: flex;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.2s ease;
    background: var(--bg-input);
    margin-bottom: 1rem;
}

    .phone-input-wrapper:focus-within {
        border-color: var(--accent);
    }

.country-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s ease;
    min-width: 100px;
}

    .country-selector:hover {
        background: var(--bg-card-hover);
    }

    .country-selector img {
        width: 24px;
        height: 18px;
        object-fit: cover;
        border-radius: 2px;
        box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    }

    .country-selector span {
        font-weight: 600;
        color: var(--text-primary);
    }

    .country-selector i {
        color: var(--text-muted);
        font-size: 0.75rem;
    }

.phone-input {
    flex: 1;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
    background: transparent;
    outline: none;
}

    .phone-input::placeholder {
        color: var(--text-muted);
        font-weight: 400;
    }

.country-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 0.25rem;
}

.country-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .country-item:hover {
        background: var(--accent-lighter);
    }

    .country-item img {
        width: 24px;
        height: 18px;
        object-fit: cover;
        border-radius: 2px;
    }

    .country-item span {
        flex: 1;
    }

    .country-item .prefix {
        color: var(--text-muted);
        font-size: 0.85rem;
    }

.phone-disclaimer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

    .phone-disclaimer i {
        color: var(--success);
    }

/* Position relative per dropdown */
.phone-input-wrapper {
    position: relative;
}

#phoneInputContainer {
    position: relative;
}

/* Mappa posti - dimensioni adattive */
.seat-map-container {
    max-height: 500px;
    overflow: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fafafa;
}

/* Mappa posti - dimensioni più piccole */
.seats-grid-dynamic {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 10px;
    min-width: fit-content;
}

    .seats-grid-dynamic .seat-row {
        display: flex;
        align-items: center;
        gap: 1px;
    }

    .seats-grid-dynamic .seat {
        width: 16px;
        height: 16px;
        font-size: 0.45rem;
        padding: 0;
        margin: 0;
        border-radius: 2px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        border: none;
        flex-shrink: 0;
    }

        .seats-grid-dynamic .seat.buco {
            visibility: hidden;
        }

        .seats-grid-dynamic .seat.available {
            background: #4ade80;
            color: #166534;
        }

            .seats-grid-dynamic .seat.available:hover {
                background: #22c55e;
                transform: scale(1.15);
                z-index: 1;
            }

        .seats-grid-dynamic .seat.selected {
            background: #f97316;
            color: white;
        }

        .seats-grid-dynamic .seat.taken {
            background: #9ca3af;
            color: white;
            cursor: not-allowed;
        }

        .seats-grid-dynamic .seat.taken .seat-number {
            color: white;
        }

    .seats-grid-dynamic .seat-number {
        font-size: 0.4rem;
        font-weight: 600;
        line-height: 1;
    }

    .seats-grid-dynamic .row-label {
        width: 22px;
        min-width: 22px;
        font-size: 0.55rem;
        font-weight: 600;
        text-align: center;
        color: #6b7280;
        flex-shrink: 0;
    }

/* Schermo */
.screen {
    text-align: center;
    margin-bottom: 15px;
}

.screen-shape {
    width: 60%;
    height: 6px;
    background: linear-gradient(to bottom, #f97316, #ea580c);
    margin: 0 auto;
    border-radius: 3px;
}

.screen-label {
    font-size: 0.7rem;
    color: #6b7280;
    margin-top: 4px;
}

/* Legenda compatta */
.seat-legend.dynamic-legend {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    padding: 8px;
    font-size: 0.7rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.legend-seat {
    width: 14px;
    height: 14px;
    border-radius: 2px;
}

    .legend-seat.available {
        background: #4ade80;
    }

    .legend-seat.selected {
        background: #f97316;
    }

    .legend-seat.taken {
        background: #d1d5db;
    }


/* Layout step 2 - più spazio alla mappa */
.step-2-layout {
    display: grid;
    grid-template-columns: 1fr 200px 280px; /* Mappa | Biglietti | Riepilogo */
    gap: 1rem;
}

/* O se usi flex */
.tickets-panel {
    width: 200px;
    min-width: 200px;
}

.order-summary {
    width: 280px;
    min-width: 280px;
}

/* Messaggio sulla mappa */
.mappa-messaggio {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    margin: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
}

    .mappa-messaggio.warning {
        background: #fef3c7;
        color: #92400e;
        border: 1px solid #f59e0b;
    }

    .mappa-messaggio.error {
        background: #fee2e2;
        color: #991b1b;
        border: 1px solid #ef4444;
    }

    .mappa-messaggio.info {
        background: #dbeafe;
        color: #1e40af;
        border: 1px solid #3b82f6;
    }

    .mappa-messaggio button {
        background: none;
        border: none;
        font-size: 1.2rem;
        cursor: pointer;
        padding: 0 5px;
        opacity: 0.7;
    }

        .mappa-messaggio button:hover {
            opacity: 1;
        }


/* Fix OTP input */
#otpInputSection .otp-input-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

#otpInputSection .otp-input {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
    font-weight: 700;
}

#otpInputSection .btn-next {
    min-width: 120px;
    margin-top: 0;
}

/* === TICKET COUNTER (Stile Pugilato) === */
.ticket-counter-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background: linear-gradient(135deg, #1a1d21 0%, #2d3139 100%);
    border-radius: 16px;
    padding: 2rem;
}

.ticket-counter-card {
    text-align: center;
    color: #fff;
}

.ticket-counter-label {
    font-size: 1.25rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.ticket-counter-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 10rem;
    line-height: 1;
    color: #f97316;
    text-shadow: 0 0 40px rgba(249, 115, 22, 0.5);
    animation: pulse-glow 2s ease-in-out infinite;
}

.ticket-counter-sublabel {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 0.5rem;
}

@keyframes pulse-glow {
    0%, 100% {
        text-shadow: 0 0 40px rgba(249, 115, 22, 0.5);
    }

    50% {
        text-shadow: 0 0 60px rgba(249, 115, 22, 0.8), 0 0 80px rgba(249, 115, 22, 0.4);
    }
}

/* Quando il counter cambia valore */
.ticket-counter-number.bump {
    animation: bump 0.3s ease;
}

@keyframes bump {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .ticket-counter-number {
        font-size: 6rem;
    }

    .ticket-counter-container {
        min-height: 200px;
    }
}

/* Coupon/Promo styles */
.promo-applied {
    background: #f0fdf4;
    border-radius: 8px;
    padding: 8px 12px !important;
    margin: 4px 0;
}

.promo-badge {
    background: #16a34a;
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    font-weight: 600;
}

.prezzo-barrato {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 0.85em;
    margin-right: 6px;
}

.sconto-row {
    background: #fef3c7;
    border-radius: 8px;
    padding: 8px 12px !important;
    margin-top: 8px;
}

.sconto-value {
    color: #16a34a;
    font-weight: 600;
}

.btn-success {
    background: #16a34a !important;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.summary-empty {
    color: #9ca3af;
    font-style: italic;
    text-align: center;
    padding: 1rem 0;
}

/* === SEZIONE CONSEGNA BIGLIETTI === */
.ritiro-section {
    margin: 20px 0;
    padding: 0;
}

.ritiro-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 12px;
    display: block;
}

.ritiro-options {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.ritiro-option-compact {
    flex: 1;
    position: relative;
    display: block;
    min-height: 44px; /* ← ALTEZZA MINIMA FISSA! */
}

    /* Radio button nascosto ma funzionale */
    .ritiro-option-compact input[type="radio"] {
        position: absolute;
        opacity: 0;
        width: 100%;
        height: 100%;
        cursor: pointer;
        z-index: 2;
        margin: 0;
    }

    /* Stile del box - ALTEZZA UNIFORME */
    .ritiro-option-compact span,
    .ritiro-option-compact .option-disabled {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 8px;
        min-height: 44px; /* ← STESSA ALTEZZA! */
        height: 100%;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        background: white;
        font-size: 13px;
        transition: all 0.2s;
        cursor: pointer;
        gap: 6px;
        position: relative;
    }

    /* Box normale */
    .ritiro-option-compact span {
        color: #666;
    }

    /* Stato selezionato */
    .ritiro-option-compact input[type="radio"]:checked + span {
        border-color: #007bff;
        background: #f0f8ff;
        color: #007bff;
        font-weight: 500;
    }

    /* Hover (solo se non disabilitato) */
    .ritiro-option-compact:not(.disabled):hover span {
        border-color: #007bff;
        background: #fafafa;
    }

    /* Opzione disabilitata - LAYOUT ORIZZONTALE */
    .ritiro-option-compact.disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    .ritiro-option-compact .option-disabled {
        cursor: not-allowed;
        background: #f5f5f5;
        border: 2px solid #ddd;
        color: #999;
        flex-direction: row; /* ← ORIZZONTALE invece che verticale! */
    }

        .ritiro-option-compact .option-disabled small {
            font-size: 10px;
            margin-left: 4px; /* ← A fianco invece che sotto */
            color: #bbb;
        }

    /* Icone */
    .ritiro-option-compact i {
        font-size: 16px;
    }

/* LISTA ABBONAMENTI - Layout orizzontale */
.abbonamenti-list {
    margin-top: 20px;
}

.abbonamento-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.2s;
}

    .abbonamento-row:hover {
        border-color: #f97316;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

.abbo-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 30px;
}

.abbo-nome {
    font-weight: 600;
    font-size: 15px;
    color: #1f2937;
    min-width: 200px;
}

.abbo-dettagli {
    display: flex;
    align-items: center;
    gap: 15px;
}

.abbo-prezzo {
    font-size: 18px;
    font-weight: 700;
    color: #059669;
}

.abbo-prevendita {
    font-size: 13px;
    color: #6b7280;
}

.abbo-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f9fafb;
    padding: 5px 10px;
    border-radius: 6px;
}

    .abbo-controls .qty-btn {
        width: 32px;
        height: 32px;
        border: 1px solid #d1d5db;
        background: white;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s;
    }

        .abbo-controls .qty-btn:hover:not(:disabled) {
            background: #f97316;
            border-color: #f97316;
            color: white;
        }

        .abbo-controls .qty-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

    .abbo-controls .qty-value {
        min-width: 30px;
        text-align: center;
        font-weight: 700;
        font-size: 16px;
        color: #1f2937;
    }

/* Responsive */
@media (max-width: 768px) {
    .abbo-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .abbo-nome {
        min-width: auto;
    }
}

/* === TARIFFE ABBONAMENTO === */
.tariffe-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    background: #f9fafb;
}

.tariffe-abbonamento-section {
    background: linear-gradient(135deg, #fff4e6 0%, #ffe0b2 100%);
    border: 2px solid #f97316;
}

.tariffe-section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #374151;
}

.tariffe-abbonamento-section .tariffe-section-title {
    color: #f97316;
}

.tariffa-item {
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: white;
    margin-bottom: 0.5rem;
}

    .tariffa-item.tariffa-abbonamento {
        border-color: #f97316;
        background: #fffbf5;
        position: relative;
    }

        .tariffa-item.tariffa-abbonamento::before {
            content: "ABB";
            position: absolute;
            top: -8px;
            right: 10px;
            background: #f97316;
            color: white;
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 4px;
            font-weight: 600;
        }

.badge-rateo {
    background: #f97316;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Tariffe Abbonamento */
.ticket-abbonamento {
    background: linear-gradient(135deg, #fff8f0 0%, #fff4e6 100%);
    border: 1px solid #f97316;
    position: relative;
    overflow: hidden;
}

    .ticket-abbonamento::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: #f97316;
    }

.badge-abb {
    display: inline-block;
    background: #f97316;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 8px;
    text-transform: uppercase;
}

.ticket-price-abb {
    color: #f97316;
    font-weight: 600;
}

.btn-usa-abb {
    background: #f97316;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

    .btn-usa-abb:hover {
        background: #ea580c;
        transform: translateY(-1px);
    }

/* Separatore sezione abbonamenti */
.sezione-abbonamenti {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed #f9731650;
}

    .sezione-abbonamenti h6 {
        color: #f97316;
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        gap: 8px;
    }


/* Modal Abbonamento - SOLO stili form, Bootstrap gestisce il posizionamento */
#modalAbbonamento .form-control:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 0.2rem rgba(249, 115, 22, 0.25);
}

#modalAbbonamento .form-label {
    color: #333;
    font-size: 14px;
    margin-bottom: 6px;
}

#modalAbbonamento .form-control {
    font-size: 16px;
    padding: 10px 12px;
}

#modalAbbonamento small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    opacity: 0.7;
}

/* === TOAST NOTIFICATIONS === */
.toast {
    position: fixed !important;
    top: 100px !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(-20px) !important;
    padding: 16px 28px !important;
    border-radius: 12px !important;
    color: white !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    z-index: 999999 !important;
    opacity: 0;
    transition: all 0.3s ease !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3) !important;
    max-width: 90% !important;
    text-align: center !important;
}

.toast.show {
    opacity: 1 !important;
    transform: translateX(-50%) translateY(0) !important;
}

.toast-success {
    background: #10b981 !important;
}

.toast-error {
    background: #ef4444 !important;
}

.toast-warning {
    background: #f59e0b !important;
}

.toast-info {
    background: #3b82f6 !important;
}

/* Bottone conferma abbonamenti */
#btnConfermaAbbonamento {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border: none;
    color: white;
    font-weight: 600;
    padding: 1rem;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s;
}

    #btnConfermaAbbonamento:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    }

    #btnConfermaAbbonamento:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Animazione pulsante per urgenza quando mancano meno di 5 minuti */
@keyframes pulse-urgent {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.timer-box.urgent .timer-display {
    animation: pulse-urgent 1s infinite;
}

/* Cambia colore quando il tempo sta per scadere */
.timer-box.warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
}
@keyframes pulse-urgent {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.02);
        opacity: 0.9;
    }
}

.timer-box .pulse-urgent {
    animation: pulse-urgent 1s infinite;
}
/* Timer più compatto su mobile */
@media (max-width: 768px) {
    .timer-box .d-flex {
        flex-direction: column;
        text-align: center;
    }

    .timer-display {
        text-align: center !important;
        margin-top: 10px;
    }

        .timer-display .fs-2 {
            font-size: 1.5rem !important;
        }
}