/* Supratickets V2 - Public Styles */

:root {
    --stv2-primary: #6366f1;
    --stv2-primary-dark: #4f46e5;
    --stv2-secondary: #8b5cf6;
    --stv2-success: #10b981;
    --stv2-warning: #f59e0b;
    --stv2-danger: #ef4444;
    --stv2-dark: #1f2937;
    --stv2-gray: #6b7280;
    --stv2-light: #f3f4f6;
    --stv2-white: #ffffff;
}

/* Grid */
.stv2-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

/* Card */
.stv2-event-card {
    background: var(--stv2-white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.stv2-event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.stv2-event-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.stv2-event-image.stv2-no-image {
    background: linear-gradient(135deg, var(--stv2-primary) 0%, var(--stv2-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stv2-date-box {
    background: var(--stv2-white);
    padding: 12px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.stv2-date-box .day {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--stv2-primary);
    line-height: 1;
}

.stv2-date-box .month {
    display: block;
    font-size: 0.9rem;
    color: var(--stv2-gray);
    text-transform: uppercase;
}

.stv2-event-content {
    padding: 20px;
}

.stv2-event-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: var(--stv2-dark);
}

.stv2-meta {
    margin: 0 0 8px 0;
    color: var(--stv2-gray);
    font-size: 0.9rem;
}

.stv2-meta span {
    margin-right: 12px;
}

.stv2-venue {
    margin: 0 0 10px 0;
    color: var(--stv2-gray);
    font-size: 0.9rem;
}

/* Icon Styles */
.stv2-meta i,
.stv2-venue i,
.stv2-price i,
.stv2-detail-meta i {
    color: var(--stv2-primary);
    margin-right: 6px;
    width: 18px;
    text-align: center;
}

.stv2-btn i {
    margin-right: 8px;
}

.stv2-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--stv2-primary);
    margin: 0 0 15px 0;
}

.stv2-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--stv2-primary) 0%, var(--stv2-secondary) 100%);
    color: var(--stv2-white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    text-align: center;
}

.stv2-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.stv2-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.stv2-btn-primary {
    background: linear-gradient(135deg, var(--stv2-success) 0%, #059669 100%);
}

.stv2-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.stv2-no-events {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--stv2-gray);
    font-size: 1.1rem;
}

/* Modal */
.stv2-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.stv2-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.stv2-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.stv2-modal-content {
    position: relative;
    background: var(--stv2-white);
    border-radius: 20px;
    max-width: 700px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: stv2-modal-in 0.3s ease;
}

@keyframes stv2-modal-in {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.stv2-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: var(--stv2-dark);
    color: var(--stv2-white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.stv2-modal-close:hover {
    background: var(--stv2-danger);
}

.stv2-loading {
    padding: 60px;
    text-align: center;
    color: var(--stv2-gray);
}

/* Event Detail */
.stv2-event-detail {
    padding: 0;
}

.stv2-detail-image {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.stv2-detail-info {
    padding: 25px;
    border-bottom: 1px solid var(--stv2-light);
}

.stv2-detail-info h2 {
    margin: 0 0 15px 0;
    font-size: 1.6rem;
    color: var(--stv2-dark);
}

.stv2-detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.stv2-detail-meta p {
    margin: 0;
    color: #4b5563;
    font-size: 0.95rem;
}

.stv2-detail-desc {
    color: var(--stv2-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Tickets Section */
.stv2-tickets-section {
    padding: 25px;
    background: var(--stv2-light);
}

.stv2-tickets-section h3 {
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    color: var(--stv2-dark);
}

.stv2-ticket-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    background: var(--stv2-white);
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.stv2-ticket-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.stv2-ticket-name {
    font-weight: 600;
    color: var(--stv2-dark);
    font-size: 1.05rem;
}

.stv2-ticket-price {
    color: var(--stv2-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.stv2-ticket-avail {
    color: var(--stv2-warning);
    font-size: 0.85rem;
    font-weight: 500;
}

.stv2-qty-control {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--stv2-light);
    padding: 6px;
    border-radius: 10px;
}

.stv2-qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--stv2-primary);
    color: var(--stv2-white);
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stv2-qty-btn:hover {
    background: var(--stv2-primary-dark);
    transform: scale(1.05);
}

.stv2-qty-btn.minus {
    background: var(--stv2-gray);
}

.stv2-qty-btn.minus:hover {
    background: var(--stv2-dark);
}

.stv2-qty-input {
    width: 50px;
    text-align: center;
    border: none;
    background: var(--stv2-white);
    border-radius: 8px;
    padding: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--stv2-dark);
}

.stv2-sold-out {
    background: #fef2f2;
    color: var(--stv2-danger);
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Checkout Bar */
.stv2-checkout-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 20px;
    background: var(--stv2-white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.stv2-total {
    font-size: 1.1rem;
    color: var(--stv2-gray);
}

.stv2-total strong {
    font-size: 1.6rem;
    color: var(--stv2-dark);
    margin-left: 8px;
}

#stv2-checkout-btn {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 600px) {
    .stv2-ticket-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .stv2-checkout-bar {
        flex-direction: column;
        gap: 15px;
    }

    #stv2-checkout-btn {
        width: 100%;
    }

    .stv2-qty-control {
        align-self: flex-end;
    }
}

/* ==================== Customer Portal ==================== */

.stv2-portal {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.stv2-portal-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--stv2-light);
}

.stv2-portal-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    color: var(--stv2-dark);
}

.stv2-portal-header h2 i {
    color: var(--stv2-primary);
    margin-right: 10px;
}

.stv2-portal-welcome {
    color: var(--stv2-gray);
    margin: 0;
}

/* Login prompt */
.stv2-portal-login {
    text-align: center;
    padding: 60px 20px;
    background: var(--stv2-white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.stv2-portal-icon {
    font-size: 4rem;
    color: var(--stv2-primary);
    margin-bottom: 20px;
}

.stv2-portal-login h2 {
    margin: 0 0 10px 0;
    color: var(--stv2-dark);
}

.stv2-portal-login p {
    color: var(--stv2-gray);
    margin-bottom: 20px;
}

.stv2-portal-login .stv2-btn {
    display: inline-block;
    width: auto;
    padding: 14px 30px;
}

/* Empty state */
.stv2-portal-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--stv2-light);
    border-radius: 16px;
}

.stv2-portal-empty i {
    font-size: 4rem;
    color: var(--stv2-gray);
    margin-bottom: 20px;
}

.stv2-portal-empty h3 {
    margin: 0 0 10px 0;
    color: var(--stv2-dark);
}

.stv2-portal-empty p {
    color: var(--stv2-gray);
    margin-bottom: 20px;
}

.stv2-portal-empty .stv2-btn {
    display: inline-block;
    width: auto;
}

/* Portal sections */
.stv2-portal-section {
    margin-bottom: 40px;
}

.stv2-portal-section h3 {
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    color: var(--stv2-dark);
}

.stv2-portal-section h3 i {
    color: var(--stv2-primary);
    margin-right: 8px;
}

.stv2-portal-past {
    opacity: 0.7;
}

/* Ticket cards */
.stv2-tickets-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stv2-ticket-card {
    display: flex;
    background: var(--stv2-white);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stv2-ticket-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.stv2-ticket-card.checked-in {
    border-left: 4px solid var(--stv2-success);
}

.stv2-ticket-left {
    flex-shrink: 0;
}

.stv2-ticket-image {
    width: 100px;
    height: 100%;
    min-height: 150px;
    background-size: cover;
    background-position: center;
}

.stv2-ticket-no-image {
    background: linear-gradient(135deg, var(--stv2-primary) 0%, var(--stv2-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stv2-ticket-no-image i {
    font-size: 2rem;
    color: var(--stv2-white);
}

.stv2-ticket-center {
    flex: 1;
    padding: 20px;
}

.stv2-ticket-center h4 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: var(--stv2-dark);
}

.stv2-ticket-center p {
    margin: 0 0 6px 0;
    font-size: 0.9rem;
    color: var(--stv2-gray);
}

.stv2-ticket-center i {
    color: var(--stv2-primary);
    margin-right: 6px;
    width: 16px;
}

.stv2-ticket-type {
    color: var(--stv2-primary) !important;
    font-weight: 600;
}

.stv2-ticket-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 8px;
}

.stv2-ticket-status.checked {
    background: #d1fae5;
    color: #065f46;
}

.stv2-ticket-right {
    flex-shrink: 0;
    padding: 15px;
    background: var(--stv2-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-left: 2px dashed #e5e7eb;
}

.stv2-ticket-qr {
    width: 100px;
    height: 100px;
}

.stv2-ticket-qr img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.stv2-ticket-code {
    margin: 8px 0 0 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--stv2-primary);
    letter-spacing: 1px;
    font-family: monospace;
}

/* Responsive portal */
@media (max-width: 600px) {
    .stv2-ticket-card {
        flex-direction: column;
    }

    .stv2-ticket-left {
        width: 100%;
    }

    .stv2-ticket-image {
        width: 100%;
        height: 120px;
        min-height: auto;
    }

    .stv2-ticket-right {
        flex-direction: row;
        gap: 15px;
        border-left: none;
        border-top: 2px dashed #e5e7eb;
    }

    .stv2-ticket-qr {
        width: 80px;
        height: 80px;
    }
}

/* ==================== Auth Forms (Login/Register) ==================== */

.stv2-auth-box {
    max-width: 480px;
    margin: 40px auto;
    background: var(--stv2-white);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.stv2-auth-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(135deg, var(--stv2-primary) 0%, var(--stv2-secondary) 100%);
}

.stv2-auth-header {
    text-align: center;
    padding: 40px 40px 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.stv2-auth-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--stv2-primary) 0%, var(--stv2-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.stv2-auth-icon i {
    font-size: 2.5rem;
    color: var(--stv2-white);
}

.stv2-auth-header h2 {
    margin: 0 0 8px 0;
    font-size: 1.8rem;
    color: var(--stv2-dark);
    font-weight: 700;
}

.stv2-auth-header p {
    margin: 0;
    color: var(--stv2-gray);
    font-size: 1rem;
}

.stv2-auth-form {
    padding: 30px 40px;
}

.stv2-form-group {
    margin-bottom: 20px;
}

.stv2-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--stv2-dark);
    font-size: 0.9rem;
}

.stv2-form-group label i {
    color: var(--stv2-primary);
    margin-right: 6px;
    width: 16px;
}

.stv2-form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.stv2-form-group input:focus {
    outline: none;
    border-color: var(--stv2-primary);
    background: var(--stv2-white);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.stv2-form-group input::placeholder {
    color: #9ca3af;
}

.stv2-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stv2-form-error {
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    color: var(--stv2-danger);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.stv2-form-error i {
    margin-right: 6px;
}

.stv2-btn-full {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.1rem;
}

.stv2-btn-outline {
    background: transparent;
    border: 2px solid var(--stv2-primary);
    color: var(--stv2-primary);
}

.stv2-btn-outline:hover {
    background: var(--stv2-primary);
    color: var(--stv2-white);
}

.stv2-auth-footer {
    padding: 20px 40px 30px;
    text-align: center;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
}

.stv2-auth-footer p {
    margin: 0;
    color: var(--stv2-gray);
}

.stv2-auth-footer a {
    color: var(--stv2-primary);
    font-weight: 600;
    text-decoration: none;
}

.stv2-auth-footer a:hover {
    text-decoration: underline;
}

.stv2-auth-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.stv2-auth-actions .stv2-btn {
    width: auto;
    padding: 12px 24px;
}

.stv2-logged-in {
    text-align: center;
    padding: 50px 40px;
}

.stv2-logged-in h2 {
    margin: 20px 0 10px;
    color: var(--stv2-dark);
}

.stv2-logged-in p {
    color: var(--stv2-gray);
    margin-bottom: 10px;
}

/* ==================== Enhanced Portal ==================== */

.stv2-portal {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px;
}

.stv2-portal-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 40px;
    background: linear-gradient(135deg, var(--stv2-primary) 0%, var(--stv2-secondary) 100%);
    border-radius: 24px;
    color: var(--stv2-white);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
}

/* Portal Tabs */
.stv2-portal-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: var(--stv2-white);
    padding: 8px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.stv2-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border: none;
    background: transparent;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--stv2-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.stv2-tab:hover {
    background: var(--stv2-light);
    color: var(--stv2-dark);
}

.stv2-tab.active {
    background: linear-gradient(135deg, var(--stv2-primary) 0%, var(--stv2-secondary) 100%);
    color: var(--stv2-white);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.stv2-tab.active i {
    color: var(--stv2-white);
}

.stv2-tab i {
    font-size: 1.1rem;
    color: var(--stv2-gray);
}

.stv2-tab-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.stv2-tab:not(.active) .stv2-tab-count {
    background: var(--stv2-light);
    color: var(--stv2-gray);
}

.stv2-tab-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stv2-portal-header h2 {
    margin: 0 0 10px 0;
    font-size: 2rem;
    color: var(--stv2-white);
    font-weight: 700;
}

.stv2-portal-header h2 i {
    margin-right: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.stv2-portal-welcome {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-size: 1.1rem;
}

.stv2-portal-welcome strong {
    color: var(--stv2-white);
}

/* Empty state improved */
.stv2-portal-empty {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 24px;
    border: 2px dashed #e2e8f0;
}

.stv2-portal-empty i {
    font-size: 5rem;
    color: #cbd5e1;
    margin-bottom: 25px;
    display: block;
}

.stv2-portal-empty h3 {
    margin: 0 0 12px 0;
    font-size: 1.5rem;
    color: var(--stv2-dark);
}

.stv2-portal-empty p {
    color: var(--stv2-gray);
    margin-bottom: 25px;
    font-size: 1.05rem;
}

/* Section headers */
.stv2-portal-section h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 25px 0;
    font-size: 1.3rem;
    color: var(--stv2-dark);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--stv2-light);
}

.stv2-portal-section h3 i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--stv2-primary) 0%, var(--stv2-secondary) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--stv2-white);
    font-size: 1rem;
}

/* Ticket cards enhanced */
.stv2-ticket-card {
    display: flex;
    background: var(--stv2-white);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stv2-ticket-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.stv2-ticket-card.checked-in {
    border-left: 5px solid var(--stv2-success);
}

.stv2-ticket-image {
    width: 120px;
    background-size: cover;
    background-position: center;
}

.stv2-ticket-no-image {
    background: linear-gradient(135deg, var(--stv2-primary) 0%, var(--stv2-secondary) 100%);
}

.stv2-ticket-no-image i {
    font-size: 2.5rem;
}

.stv2-ticket-center {
    flex: 1;
    padding: 25px;
}

.stv2-ticket-center h4 {
    margin: 0 0 12px 0;
    font-size: 1.3rem;
    color: var(--stv2-dark);
    font-weight: 700;
}

.stv2-ticket-type {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.stv2-ticket-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 10px;
}

.stv2-ticket-status.checked {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.stv2-ticket-right {
    padding: 20px 25px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-left: 2px dashed #e2e8f0;
    min-width: 150px;
}

.stv2-ticket-qr {
    width: 110px;
    height: 110px;
    padding: 8px;
    background: var(--stv2-white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.stv2-ticket-code {
    margin: 8px 0;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--stv2-primary);
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
    background: rgba(99, 102, 241, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
}

/* Download Button */
.stv2-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--stv2-success) 0%, #059669 100%);
    color: var(--stv2-white);
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
    width: 100%;
}

.stv2-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.stv2-download-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.stv2-download-btn i {
    font-size: 0.9rem;
}

/* Past events styling */
.stv2-portal-past .stv2-ticket-card {
    opacity: 0.7;
    filter: grayscale(30%);
}

.stv2-portal-past .stv2-ticket-card:hover {
    opacity: 0.9;
    filter: grayscale(0%);
}

@media (max-width: 768px) {
    .stv2-form-row {
        grid-template-columns: 1fr;
    }

    .stv2-auth-form {
        padding: 25px;
    }

    .stv2-auth-header {
        padding: 30px 25px 20px;
    }

    .stv2-auth-footer {
        padding: 20px 25px 25px;
    }

    .stv2-portal-header {
        padding: 30px 20px;
    }

    .stv2-portal-header h2 {
        font-size: 1.5rem;
    }

    .stv2-auth-actions {
        flex-direction: column;
    }
}