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

body {
    font-family: 'Roboto Flex', -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: #000000;
    color: #FFFFFF;
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    padding: 0;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Градиент поверх блюра, как в макете: #141417 от 0% (прозрачный) до 100% (непрозрачный) */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(20, 20, 23, 0) 0%, rgba(20, 20, 23, 1) 100%);
    z-index: -1;
    pointer-events: none;
}

/* Невидимая hit-area "Назад" */
.back-hit-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 190px;
    height: 112px;
    z-index: 3000;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    -webkit-tap-highlight-color: transparent;
    color: rgba(255, 255, 255, 0.92); /* цвет стрелки */
}

.back-hit-area .back-icon {
    margin-left: 16px;
    opacity: 0.92; /* стрелка видимая */
    pointer-events: none; /* кликаем по кнопке (hit-area) */
}

.back-hit-area:focus {
    outline: none;
}

/* Кнопка "Закрыть" (справа сверху) */
.close-hit-area {
    position: fixed;
    top: 0;
    right: 0;
    width: 190px;
    height: 112px;
    z-index: 3000;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    /*display: flex;*/
    display: none;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    -webkit-tap-highlight-color: transparent;
    color: rgba(255, 255, 255, 0.92);
}

.close-hit-area:focus {
    outline: none;
}

.close-hit-area .close-text {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.2px;
    opacity: 0.92;
    pointer-events: none;
}

.close-hit-area .close-icon {
    margin-right: 16px;
    opacity: 0.92;
    pointer-events: none;
}

/* Контейнер виджета */
.widget-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background: linear-gradient(to bottom, rgba(45, 45, 52, 0.85) 0%, rgba(28, 28, 32, 0.95) 100%);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    border-radius: 10px;
}

/* Этапы */
.stage {
    width: 100%;
    max-width: 480px;
}

/* Логотип */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px 20px 0px 20px;
    background: transparent;
    width: 100%;
    max-width: 480px;
}

.logo-image {
    height: 26px;
    width: auto;
    opacity: 0.95;
    cursor: pointer;
}

.logo-icon {
    width: 32px;
    height: 32px;
    opacity: 0.95;
}

.logo-text {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.95);
}

.stage {
    display: none;
    margin-bottom: 40px;
}

.stage.active {
    display: block;
}

/* Постер события */
.event-poster {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    border-radius: 10px 10px 0 0;
}

.poster-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    display: block;
}

/* Информация о событии */
.event-info {
    padding: 20px 24px;
    background: transparent;
    margin: 0;
}

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

.info-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    letter-spacing: -0.1px;
}

.age-restriction {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
    letter-spacing: -0.1px;
}

.event-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.2;
    letter-spacing: -0.3px;
    cursor: pointer;
}

.event-details {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
    font-weight: 400;
    letter-spacing: -0.1px;
    display: flex;
    align-items: center;
    gap: 0;
}

.event-location {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.separator {
    margin: 0 4px;
    color: rgba(255, 255, 255, 0.4);
}

/* Список билетов */
.tickets-list {
    padding: 12px 24px;
}

.ticket-item {
    background: transparent;
    border-radius: 0;
    padding: 16px 0;
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.ticket-item:first-child {
    padding-top: 0px;
}

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

.ticket-info {
    flex: 1;
}

.ticket-price {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.ticket-price.original {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: line-through;
    font-size: 18px;
    font-weight: 400;
}

.price-original {
    text-decoration: line-through; 
    color: rgba(255,255,255,0.4); 
    margin-right: 20px;
}

.ticket-price.discount {
    color: #fff;
    margin-right: 20px;
}

.ticket-name {
    font-size: 15px;
    margin-bottom: 4px;
    font-weight: 500;
    letter-spacing: -0.2px;
    color: rgba(255, 255, 255, 0.9);
}

.ticket-description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 3px;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: -0.1px;
}

.ticket-warning {
    font-size: 12px;
    color: #FF9F0A;
    margin-top: 4px;
    font-weight: 400;
    letter-spacing: -0.1px;
}

.ticket-quantity {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    margin-top: 9px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.quantity-btn:hover:not(:disabled) {
    color: rgba(255, 255, 255, 0.9);
}

.quantity-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.quantity-input {
    width: 48px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    margin: 0 4px;
    -moz-appearance: textfield;
    font-family: Inter;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Промокод */
.promo-section {
    padding: 32px 16px 20px;
    background: transparent;
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}

.promo-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255, 255, 255, 0.4);
    text-decoration-style: dotted;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    transition: color 0.2s;
}

.promo-link:hover {
    color: rgba(255, 255, 255, 0.7);
}

.promo-applied {
    background: rgba(61, 195, 109, 0.08);
    border: 1px solid rgba(24, 237, 101, 0.25);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.promo-applied span {
    color: #0EF662;
    font-size: 13px;
    font-weight: 300;
}

.promo-remove {
    background: none;
    border: none;
    color: rgba(0, 255, 88, 0.68);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-discount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 10px 0;
    color: #ACAACA;
    font-size: 13px;
    font-weight: 400;
    background: transparent;
    border: none;
    border-radius: 0;
    margin: 0;
}

.promo-discount-amount {
    color: #ACAACA;
    white-space: nowrap;
}

/* Итого */
.order-summary {
    padding: 16px 24px;
    background: rgba(28, 28, 32, 0.95);
    backdrop-filter: blur(20px);
    position: sticky;
    bottom: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.total-info {
    flex: 1;
}

.total-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.total-price-row > span:first-child {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.2px;
}

.total-check {
    display: inline-block;
    width: 24px;
    height: 24px;
    opacity: 0.5;
    color: rgba(255, 255, 255, 0.65);
}

.total-check.active {
    opacity: 0.7;
    color: rgba(255, 255, 255, 0.85);
}

.total-ticket-icon {
    display: block;
    width: 24px;
    height: 24px;
}

.total-tickets {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 2px;
    font-weight: 400;
}

.btn-continue {
    font-family: Inter;
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    white-space: nowrap;
    letter-spacing: -0.2px;
}

/* 
    media query для iOS Safari
    Этот хак срабатывает только в WebKit (iOS Safari + iOS WebView + Telegram WebApp).
*/
@supports (-webkit-touch-callout: none) {
  .btn-continue {
    font-weight: 600;
  }
}

.btn-continue:hover:not(:disabled) {
    background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
}

.btn-continue:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Форма покупателя */
.form-header {
    padding: 20px 24px;
    background: transparent;
    margin: 0;
    margin-bottom: 0;
}

.order-details {
    padding: 12px 24px 20px;
    background: transparent;
    margin: 0;
    margin-bottom: 0;
}

.order-total {
    margin-top: 10px;
    padding-top: 16px;
    border-top: 1px solid #ffffff45;
}

.buyer-form {
    padding: 20px 24px;
}

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

.form-group input {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(157, 157, 157, 0.15) 100%);
    border: none;
    border-radius: 10px;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s;
    text-align: center;
    letter-spacing: .2px;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.form-group input:focus {
    outline: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.20) 0%, rgba(157, 157, 157, 0.20) 100%);
    border-color: rgba(255, 255, 255, 0.18);
}

.consents {
    margin: 24px 0;
}

/* Tooltip-ошибка для согласий */
.consents-tooltip {
    margin-top: 12px;
    padding: 12px 14px;
    background: rgba(239, 68, 68, 0.08);
    border: 1.5px solid #EF4444;
    border-radius: 12px;
    display: none;
    align-items: center;
    gap: 10px;
    color: #EF4444;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.4;
}

.consents-tooltip.active {
    display: flex;
}

.inline-error-icon {
    font-size: 12px;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: #EF4444;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-label.is-error .toggle-switch {
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.9);
}

/* Toggle switch стиль */
.toggle-label {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    cursor: pointer;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.45;
}

.toggle-label input[type="checkbox"] {
    display: none;
}

.toggle-switch {
    width: 50px;
    height: 30px;
    background: rgba(120, 120, 130, 0.5);
    border-radius: 15px;
    position: relative;
    flex-shrink: 0;
    margin-top: 0;
    transition: background 0.25s ease;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 26px;
    height: 26px;
    background: #FFFFFF;
    border-radius: 50%;
    transition: transform 0.25s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-label input[type="checkbox"]:checked + .toggle-switch {
    background: #34C759;
}

.toggle-label input[type="checkbox"]:checked + .toggle-switch::after {
    transform: translateX(20px);
}

.toggle-text {
    flex: 1;
    padding-top: 5px;
}

.consent-link {
    color: #FFFFFF;
    font-weight: 600;
    text-decoration: none;
}

.consent-link:hover {
    text-decoration: underline;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #2196F3;
}

.selected-tickets {
    padding: 0;
    background: transparent;
    margin-bottom: 0;
}

.selected-ticket-item {
    display: flex;
    justify-content: space-between;
    /* Выравниваем пунктир и цену по нижней границе текста */
    align-items: flex-end;
    padding: 0 0 12px 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    gap: 8px;
}

.selected-ticket-item .ticket-name-col {
    flex-shrink: 0;
}

.selected-ticket-item .ticket-dots {
    flex: 1;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.5);
    margin: 0 8px;
    height: 1px;
    align-self: flex-end;
    margin-bottom: 5px;
}

.selected-ticket-item .ticket-price-col {
    flex-shrink: 0;
    text-align: right;
    white-space: nowrap;
}

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

.payment-summary {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin: 16px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 15px;
    color: #ACAACA;
    line-height: 1.4;
}

.summary-row:last-child {
    margin-bottom: 0;
    font-size: 13px;
}

.summary-row:first-child {
    font-weight: 500;
    color: #fff;
}

.summary-row:first-child span:last-child {
    color: #fff;
    font-weight: 600;
}

.payment-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.btn-payment {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s;
    font-family: Inter;
}

.btn-sbp {
    background: #0047FF;
    color: #FFFFFF;
    font-weight: 600;
}

.btn-sbp:hover {
    background: #1D4ED8;
}

.btn-card {
    background: #0047FF;
    color: white;
    border: none;
}

.btn-card:hover {
    background: #1D4ED8;
}

.payment-info {
    text-align: center;
    margin-top: 32px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}

.payment-info p {
    margin-bottom: 4px;
}

.payment-info p:first-child {
    margin-bottom: 0;
}

.t-bank-logo {
    margin: 10px 0 20px 0;
    font-weight: 700;
    font-size: 15px;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.t-bank-logo::before {
    content: 'Т';
    width: 24px;
    height: 24px;
    background: #FACC15;
    color: #000;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #2A2A2E;
    border-radius: 14px;
    padding: 0;
    max-width: 400px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75);
}

.modal-close {
    display: none;
}

.modal-title {
    font-size: 15px;
    margin: 0;
    padding: 14px 24px 16px;
    font-weight: 600;
    text-align: center;
    letter-spacing: -0.2px;
    color: #FFFFFF;
    background-color: #141417;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-body {
    margin: 0;
    padding: 18px 24px 20px;
}

.promo-input,
.code-input {
    width: 100%;
    padding: 14px 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(157, 157, 157, 0.15) 100%);
    border: none;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 15px;
    text-align: center;
    letter-spacing: 2px;
    font-weight: 500;
    transition: all 0.2s;
}

.promo-input:focus,
.code-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.20) 0%, rgba(157, 157, 157, 0.20) 100%);
}

.promo-input::placeholder,
.code-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: .4px;
}

.code-input {
    font-size: 15px;
    letter-spacing: 2px;
}

.error-message {
    margin-top: 18px;
    padding: 12px 14px;
    background: transparent;
    border: 1.5px solid #EF4444;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #EF4444;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

#errorModal .error-message {
    margin-top: 0;
}

.error-icon {
    font-size: 12px;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: #EF4444;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-message {
    margin-top: 18px;
    padding: 14px 16px;
    background: transparent;
    border: 1px solid #22C55E;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #22C55E;
    font-size: 14px;
    line-height: 1.5;
}

.success-message .success-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: #22C55E;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-message div {
    flex: 1;
}

.success-message #codeEmail {
    color: #FFFFFF;
    font-weight: 500;
    display: block;
    font-family: Inter;
}

.success-message .resend-link {
    color: #60A5FA;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(96, 165, 250, 0.75);
    display: block;
    margin-top: 8px;
    text-decoration-style: dotted;
}

.resend-link {
    color: #60A5FA;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-style: dotted;
    margin-top: 6px;
    display: block;
}

.resend-link.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.modal-footer {
    display: flex;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
    padding: 0;
}

.modal-footer button {
    flex: 1;
    padding: 16px;
    border: none;
    border-radius: 0;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: -0.2px;
    background: transparent;
}

.modal-footer button:first-child {
    border-bottom-left-radius: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-footer button:last-child {
    border-bottom-right-radius: 16px;
}

#errorModal .modal-footer {
    gap: 0;
}

#errorModal .modal-footer button {
    flex: 1;
}

.btn-primary {
    background: transparent;
    color: #fff;
}

.btn-primary:hover {
    background: #535359;
}

.btn-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: none;
}

.btn-secondary:hover {
    background: #535359;
}

/* Статусы оплаты */
.payment-status {
    padding: 44px 24px 36px;
    text-align: center;
}

/* Анимация штрихкода */
.barcode-animation {
    width: 120px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 auto 18px;
}

.barcode-line {
    width: 4px;
    height: 28px;
    background: #FFFFFF;
    animation: barcodePulse 1.5s ease-in-out infinite;
    opacity: 0.9;
}

.barcode-line:nth-child(1) { animation-delay: 0s; }
.barcode-line:nth-child(2) { animation-delay: 0.1s; }
.barcode-line:nth-child(3) { animation-delay: 0.2s; }
.barcode-line:nth-child(4) { animation-delay: 0.3s; }
.barcode-line:nth-child(5) { animation-delay: 0.4s; }
.barcode-line:nth-child(6) { animation-delay: 0.5s; }
.barcode-line:nth-child(7) { animation-delay: 0.6s; }
.barcode-line:nth-child(8) { animation-delay: 0.7s; }

@keyframes barcodePulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.status-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    margin: 0 auto 32px;
    background: rgba(255, 255, 255, 0.1);
}

.success-icon {
    background: #4CAF50;
    color: #FFFFFF;
    font-size: 64px;
    font-weight: 300;
}

.error-icon {
    background: #FF5252;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 300;
}

.payment-status h2 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 500;
    letter-spacing: -0.2px;
}

.payment-status p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
    line-height: 1.6;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
    font-size: 14px;
}

.payment-status .payment-info p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
    font-size: 12px;
}

.status-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 8px;
}

.status-btn {
    width: 100%;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: -0.2px;
    font-family: Inter;
}

.status-btn--primary {
    background: #0047FF;
    color: #FFFFFF;
    border: none;
    text-decoration: none;
}

.status-btn--primary:hover {
    background: #1D4ED8;
}

.status-btn--secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-weight: 400;
}

.status-btn--secondary:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.04);
}

.status-btn--link {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-style: dotted;
    padding: 10px 12px;
    margin-top: 15px;
}

.status-btn--link:hover {
    color: rgba(255, 255, 255, 0.9);
}

.btn-link {
    background: none;
    border: none;
    color: #FFFFFF;
    text-decoration: underline;
    cursor: pointer;
    padding: 12px;
    font-size: 16px;
}

.ticket-icon {
    margin-right: 8px;
}

/* Конфетти */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 999;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #9C27B0, #00BCD4);
    animation: fall linear;
    animation-duration: 3s;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Адаптивность */
@media (min-width: 481px) and (max-width: 768px) {
    .widget-container {
        max-width: 480px;
        margin: 0 auto;
        border-radius: 10px;
        min-height: auto;
    }

    body {
        padding: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .event-poster {
        border-radius: 10px 10px 0 0;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0;
    }

    .poster-image {
        border-radius: 0px;
    }

    .widget-container {
        max-width: 100%;
        border-radius: 0 0 10px 10px;
        /*min-height: 100vh;*/
    }

    .event-poster {
        height: auto;
        border-radius: 0;
    }

    .event-title {
        font-size: 22px;
    }

    .event-artists {
        font-size: 10px;
    }

    .poster-overlay {
        padding: 30px 14px 14px;
    }

    .event-title {
        font-size: 18px;
    }

    .ticket-item {
        padding: 14px 0;
    }

    .ticket-price {
        font-size: 20px;
    }

    .ticket-name {
        font-size: 14px;
    }

    .promo-section {
        padding: 30px 14px 10px 14px;
    }

    .summary-content {
        gap: 12px;
    }

    .btn-continue {
        padding: 11px 20px;
        font-size: 14px;
    }

    .order-details {
        padding: 12px 16px 16px;
    }

    .modal-content {
        margin: 16px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0;
    }

    .widget-container {
        border-radius: 0 0 10px 10px;
    }

    .poster-image {
        border-radius: 0px;
    }

    .event-poster {
        height: auto;
        border-radius: 0;
    }

    .event-title {
        font-size: 20px;
    }

    .event-artists {
        font-size: 9px;
    }

    .ticket-price {
        font-size: 18px;
    }

    .total-info > span {
        font-size: 20px;
    }

    .logo-container {
        padding: 0px 20px 30px 20px;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
    }

    .logo-text {
        font-size: 14px;
    }

    .toggle-text {
        padding-top: 0px;
        margin-top: -1px;
        line-height: 1.3;
    }

    .success-message #codeEmail {
        display: inline;
    }
}

@media (min-width: 769px) {
    body {
        padding: 40px 20px;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        min-height: 100vh;
    }
    
    .widget-container {
        max-width: 480px;
        min-height: auto;
        margin: 0 auto;
        box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7);
        border-radius: 10px;
    }
    
    .event-poster {
        height: auto;
    }
    
    .logo-container {
        padding: 30px 20px 0px 20px;
    }

    .stage {
        margin-bottom: 0;
    }
}

@media (min-width: 1200px) {
    body {
        padding: 40px 40px;
    }
}