* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
}

.banner {
    background-image: url('https://festtix.s3.eu-west-2.amazonaws.com/constrained/images/events/88bdc226-e572-4431-92a2-80f0eeb7c143-1772459232356.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    height: 340px;
    position: relative;
    margin-bottom: 0;
    padding: 0 20px;
    min-height: 300px;
}

@media (max-width: 768px) {
    .banner {
        background-position: center center;
        background-attachment: scroll;
        height: 240px;
        padding: 0 16px;
        min-height: 220px;
    }
}

@media (max-width: 480px) {
    .banner {
        background-position: center center;
        height: 200px;
        min-height: 180px;
    }
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
}

.banner-info {
    background: #ffffff;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}

.info-item span:first-child {
    font-size: 1.2rem;
}

.countdown-banner {
    background: white;
    border-bottom: 3px solid #1e3c72;
    color: #1e3c72;
    padding: 18px 24px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.countdown-time {
    font-size: 1.8rem;
    font-weight: 800;
    margin-top: 10px;
    color: #1e3c72;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.tabs-section {
    background: white;
    padding: 20px 24px;
    display: flex;
    gap: 40px;
    border-bottom: 2px solid #f5f5f5;
    position: sticky;
    top: 0;
    z-index: 15;
}

.tab {
    padding: 12px 0;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    color: #999;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.tab.active {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
}

.content-section {
    background: #ffffff;
    padding: 40px 24px;
}

.section-header {
    margin-bottom: 40px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: #999;
    font-size: 1rem;
    font-weight: 500;
}

.inventory-info {
    background: linear-gradient(135deg, #f0f0f0 0%, #ffffff 100%);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 40px;
    border: 2px solid #1e3c72;
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.1);
}

.inventory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.inventory-count {
    font-size: 1.3rem;
    color: #1a1a1a;
    font-weight: 800;
}

.inventory-total {
    font-size: 0.9rem;
    color: #999;
    font-weight: 600;
}

.progress-container {
    width: 100%;
}

.progress-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #d0d0d0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 10px;
    transition: width 0.6s ease;
    box-shadow: 0 0 10px rgba(30, 60, 114, 0.3);
}

.tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin-bottom: 60px;
}

.ticket-card {
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ticket-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: #d0d0d0;
}

.ticket-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f5f5f5;
}

.ticket-content {
    padding: 28px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ticket-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a1a1a;
    letter-spacing: -0.3px;
}

.ticket-status {
    background: #fff4e6;
    color: #c77800;
    padding: 10px 14px;
    border-radius: 6px;
    text-align: center;
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.ticket-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ff6b00;
    margin-bottom: 6px;
}

.ticket-original-price {
    font-size: 0.85rem;
    color: #bbb;
    text-decoration: line-through;
}

.ticket-crypto-discount {
    font-size: 0.85rem;
    color: #22c55e;
    font-weight: 700;
    margin-left: 10px;
}

.ticket-fee {
    font-size: 0.85rem;
    color: #999;
    margin-top: 6px;
}

.ticket-credits {
    background: #fff0f6;
    color: #FF6B00;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 16px;
    display: inline-block;
}

.ticket-description {
    font-size: 0.95rem;
    color: #777;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 20px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 16px;
    background: #f9f9f9;
    padding: 12px;
    border-radius: 8px;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    color: #666;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.qty-btn:hover:not(:disabled) {
    border-color: #1a1a1a;
    background: #f5f5f5;
    color: #1a1a1a;
}

.qty-display {
    font-weight: 700;
    min-width: 40px;
    text-align: center;
    font-size: 1.1rem;
    color: #1a1a1a;
}

.add-to-cart-btn {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    width: 100%;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

.add-to-cart-btn:hover:not(:disabled) {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.expired {
    opacity: 0.5;
}

.cart-section {
    background: #f8f8f8;
    padding: 32px 24px;
    border-radius: 12px;
    margin-top: 40px;
    border: 1px solid #e8e8e8;
}

.cart-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.95rem;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-name {
    font-weight: 700;
    color: #1a1a1a;
}

.cart-item-qty {
    color: #999;
    margin: 0 20px;
}

.cart-item-price {
    font-weight: 700;
    color: #ff6b00;
    min-width: 80px;
    text-align: right;
}

.cart-remove {
    background: none;
    border: none;
    color: #ff6b00;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    margin-left: 20px;
    text-decoration: underline;
}

.cart-summary {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid #ddd;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #666;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-size: 1.3rem;
    color: #ff6b00;
    margin-top: 16px;
}

.sticky-checkout {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 2px solid #f0f0f0;
    padding: 16px 24px;
    z-index: 20;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    display: none;
}

.sticky-checkout.visible {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.sticky-total {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ff6b00;
}

.checkout-btn {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s;
    white-space: nowrap;
    letter-spacing: 0.5px;
    min-width: 200px;
}

.checkout-btn:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.payment-section {
    background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
    padding: 40px 16px 60px;
    border-top: 1px solid #e2e8f0;
    min-height: 100vh;
}

@media (max-width: 480px) {
    .payment-section {
        padding: 30px 12px 50px;
    }
}

.payment-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 0;
    padding: 0;
}

.back-btn {
    background: none;
    border: none;
    color: #0f172a;
    cursor: pointer;
    font-weight: 700;
    margin-bottom: 32px;
    font-size: 1rem;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: color 0.2s;
}

.back-btn:hover {
    color: #1e3c72;
}

.payment-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.payment-subtitle {
    color: #64748b;
    margin-bottom: 36px;
    font-size: 1.05rem;
    font-weight: 500;
}

.payment-method {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 14px;
    padding: 28px 24px;
    margin-bottom: 32px;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.payment-method-title {
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
    font-size: 1.15rem;
    letter-spacing: -0.3px;
}

.payment-method-desc {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 24px;
    font-weight: 500;
}

.payment-amount {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.payment-amount-label {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 10px;
    font-weight: 600;
}

.payment-amount-value {
    font-size: 2rem;
    font-weight: 800;
    color: #ff6b00;
}

.address-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #0f172a;
    border-radius: 14px;
    padding: 28px 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.address-label {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 14px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.address-box {
    font-family: 'Courier New', monospace;
    font-size: 1.05rem;
    word-break: break-all;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 18px;
    line-height: 1.8;
    letter-spacing: 0.3px;
    background: white;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.copy-btn {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.25);
    -webkit-appearance: none;
    appearance: none;
}

.copy-btn:hover {
    background: linear-gradient(135deg, #15284f 0%, #1f3d6a 100%);
    box-shadow: 0 6px 16px rgba(30, 60, 114, 0.35);
    transform: translateY(-2px);
}

.copy-btn:active {
    transform: translateY(0);
}

.copy-btn.copied {
    background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.warning {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(220, 38, 38, 0.05) 100%);
    border-left: 4px solid #ef4444;
    padding: 18px 20px;
    border-radius: 10px;
    color: #991b1b;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.6;
    margin-top: 24px;
    margin-bottom: 24px;
}

.steps {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 28px;
    margin-top: 28px;
    border: 1px solid #e8e8e8;
}

.steps-title {
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.steps ol {
    padding-left: 24px;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.8;
    font-weight: 500;
}

.steps li {
    margin-bottom: 12px;
}

.form-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 32px 24px;
    margin-top: 32px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 24px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    font-size: 1rem;
    letter-spacing: -0.3px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    color: #0f172a;
    background: white;
    font-family: inherit;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus {
    outline: none;
    border-color: #1e3c72;
    background: white;
    box-shadow: 0 0 0 4px rgba(30, 60, 114, 0.1);
}

.form-input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.form-input:hover {
    border-color: #cbd5e1;
}

.submit-payment-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 28px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
    letter-spacing: -0.3px;
}

.submit-payment-btn:hover {
    background: linear-gradient(135deg, #15284f 0%, #1f3d6a 100%);
    box-shadow: 0 6px 20px rgba(30, 60, 114, 0.4);
    transform: translateY(-2px);
}

.submit-payment-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(30, 60, 114, 0.2);
}

.festival-footer {
    background: #0f172a;
    padding: 40px 24px;
    margin-top: 60px;
    border-top: 1px solid #1e293b;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #cbd5e1;
    font-weight: 500;
}

.footer-item span:first-child {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .festival-footer {
        padding: 30px 20px;
        margin-top: 40px;
    }

    .footer-content {
        gap: 12px;
    }

    .footer-item {
        font-size: 0.9rem;
    }
}

.hidden {
    display: none !important;
}

main {
    padding-bottom: 0;
}

@media (max-width: 768px) {
    .sticky-checkout.visible {
        flex-direction: column;
        padding: 12px;
    }

    .checkout-btn {
        width: 100%;
        min-width: auto;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .tickets-grid {
        grid-template-columns: 1fr;
    }
}
