/* ===== Кнопка покупки ===== */
.etp-ticket-container {
	margin: 20px 0;
}

.etp-buy-button {
	background: linear-gradient(135deg, #ed3333 0%, #a24b4b 100%);
	color: white !important;
	border: none !important;
	padding: 16px 40px !important;
	border-radius: 50px !important;
	font-size: 18px !important;
	font-weight: 600 !important;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 20px rgba(234, 102, 102, 0.35);
	display: inline-flex;
	align-items: center;
	gap: 12px;
	position: relative;
	overflow: hidden;
}

.etp-buy-button::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
	transition: left 0.5s;
}

.etp-buy-button:hover::before {
	left: 100%;
}

.etp-buy-button:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 30px rgba(234, 102, 102, 0.5);
}

.etp-buy-button:active {
	transform: translateY(0);
}

.etp-button-icon {
	font-size: 22px;
}

.etp-button-price {
	background: rgba(255,255,255,0.2);
	padding: 4px 14px;
	border-radius: 20px;
	font-size: 14px;
}

/* ===== Модалка ===== */
.etp-modal {
	position: fixed;
	z-index: 99999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.7);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	display: none;
	justify-content: center;
	align-items: center;
	animation: etpFadeIn 0.3s ease;
}

@keyframes etpFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.etp-modal-content {
	background: #ffffff;
	padding: 45px;
	border-radius: 24px;
	max-width: 520px;
	width: 92%;
	max-height: 80vh;
	overflow-y: auto;
	position: relative;
	animation: etpSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
	margin: 20px auto;
}

@keyframes etpSlideUp {
	from { transform: translateY(60px) scale(0.95); opacity: 0; }
	to { transform: translateY(0) scale(1); opacity: 1; }
}

.etp-close {
	position: absolute;
	right: 18px;
	top: 12px;
	font-size: 32px;
	cursor: pointer;
	color: #999;
	transition: all 0.3s;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: none;
	border: none;
}

.etp-close:hover {
	color: #333;
	background: #f5f5f5;
	transform: rotate(90deg);
}

.etp-modal-header {
	text-align: center;
	margin-bottom: 30px;
}

.etp-modal-icon {
	font-size: 30px;
	display: block;
	margin-bottom: 10px;
}

.etp-modal-header h2 {
	margin: 0;
	color: #1a1a2e;
	font-size: 26px;
	font-weight: 700;
}

.etp-modal-subtitle {
	color: #888;
	margin: 8px 0 0;
	font-size: 15px;
}

/* ===== Форма ===== */
.etp-form-group {
	margin-bottom: 18px;
}

.etp-form-group label {
	display: block;
	margin-bottom: 6px;
	font-weight: 500;
	color: #333;
	font-size: 14px;
}

.etp-form-group input {
	width: 100%;
	padding: 13px 16px !important;
	border: 2px solid #e8ecf1 !important;
	border-radius: 12px !important;
	font-size: 15px !important;
	transition: all 0.3s !important;
	background: #fafbfc !important;
	box-sizing: border-box;
}

.etp-form-group input:focus {
	border-color: #667eea;
	background: white;
	outline: none;
	box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.etp-form-group input.error {
	border-color: #f44336;
	box-shadow: 0 0 0 4px rgba(244, 67, 54, 0.1);
}

.etp-next-btn {
	background: linear-gradient(135deg, #ed3333 0%, #a24b4b 100%);
	color: white !important;
	border: none !important;
	padding: 15px 30px !important;
	border-radius: 50px !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	cursor: pointer;
	width: 100%;
	transition: all 0.3s;
	margin-top: 10px;
}

.etp-next-btn:hover {
	transform: scale(1.02);
	box-shadow: 0 4px 20px rgba(234, 102, 102, 0.4);
}

/* ===== Оплата ===== */
.etp-divider {
	display: flex;
	align-items: center;
	margin: 20px 0;
	color: #999;
	font-size: 13px;
}

.etp-divider::before,
.etp-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: #e0e0e0;
}

.etp-divider span {
	padding: 0 15px;
}

.etp-payment-card {
	background: #f8f9ff;
	padding: 24px;
	border-radius: 16px;
	border: 2px solid #e8ecf1;
	margin-bottom: 5px;
}

.etp-payment-method {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-bottom: 16px;
	border-bottom: 1px solid #e8ecf1;
}

.etp-payment-icon {
	font-size: 28px;
}

.etp-payment-info {
	flex: 1;
}

.etp-payment-info strong {
	display: block;
	font-size: 15px;
	color: #333;
}

.etp-payment-info span {
	font-size: 13px;
	color: #888;
}

.etp-payment-check {
	color: #4CAF50;
	font-size: 20px;
}

.etp-payment-total {
	display: flex;
	justify-content: space-between;
	padding: 16px 0;
	font-weight: 600;
	font-size: 18px;
}

.etp-total-price {
	color: #667eea;
}

.etp-pay-button {
	background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%);
	color: white !important;
	border: none !important;
	padding: 16px !important;
	border-radius: 50px !important;
	font-size: 17px !important;
	font-weight: 600 !important;
	cursor: pointer;
	width: 100%;
	transition: all 0.3s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.etp-pay-button:hover {
	transform: scale(1.02);
	box-shadow: 0 4px 20px rgba(46, 125, 50, 0.4);
}

.etp-pay-button:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

.etp-payment-notice {
	text-align: center;
	margin-top: 12px;
	font-size: 12px;
	color: #aaa;
}

/* ===== Результат ===== */
.etp-success {
	text-align: center;
	padding: 20px 0 10px;
}

.etp-checkmark {
	font-size: 60px;
	color: #4CAF50;
	background: #e8f5e9;
	width: 90px;
	height: 90px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
	animation: etpPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes etpPop {
	0% { transform: scale(0); }
	100% { transform: scale(1); }
}

.etp-success h3 {
	margin: 0 0 10px;
	color: #1a1a2e;
	font-size: 22px;
}

.etp-success p {
	color: #666;
	margin-bottom: 20px;
}

.etp-qr-result {
	background: #f8f9ff;
	padding: 20px;
	border-radius: 16px;
	display: inline-block;
	border: 2px dashed #667eea;
	margin: 10px auto;
}

.etp-qr-result img {
	max-width: 200px;
	display: block;
}

.etp-close-result {
	margin-top: 20px auto 0 auto;
	background: #e0e0e0 !important;
	border: none !important;
	padding: 10px 30px !important;
	border-radius: 50px !important;
	cursor: pointer;
	font-size: 15px !important;
	transition: all 0.3s;
}

.etp-close-result:hover {
	background: #d0d0d0;
}

/* ===== Личный кабинет ===== */
.page-id-990466 #sub-header,
.page-id-990467 #sub-header {
	display: none;
}

.etp-cabinet {
	max-width: 1200px;
	margin: 30px auto;
	padding: 0 20px;
}

.etp-cabinet-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 30px;
}

.etp-cabinet-header h2 {
	margin: 0;
	font-size: 28px;
	color: #1a1a2e;
}

.etp-cabinet-user {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #f5f5f5;
	padding: 8px 16px 8px 12px;
	border-radius: 50px;
	font-size: 15px;
}

.etp-user-avatar {
	font-size: 22px;
}

.etp-logout {
	color: #f44336;
	text-decoration: none;
	font-weight: 500;
	padding: 4px 12px;
	border-radius: 20px;
	transition: all 0.3s;
}

.etp-logout:hover {
	background: #ffebee;
}

/* ===== Статистика ===== */
.etp-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 15px;
	margin-bottom: 30px;
}

.etp-stat-item {
	background: white;
	padding: 18px;
	border-radius: 16px;
	text-align: center;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
	border: 1px solid #f0f0f0;
}

.etp-stat-number {
	display: block;
	font-size: 28px;
	font-weight: 700;
	color: #667eea;
}

.etp-stat-label {
	font-size: 13px;
	color: #888;
}

/* ===== Карточки билетов ===== */
.etp-tickets-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 25px;
}

.etp-ticket-card {
	background: white;
	border-radius: 18px;
	box-shadow: 0 4px 25px rgba(0,0,0,0.07);
	overflow: hidden;
	transition: all 0.3s;
	border: 1px solid #f0f0f0;
}

.etp-ticket-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 40px rgba(0,0,0,0.1);
}

.etp-ticket-card[data-status="used"] {
	opacity: 0.7;
}

.etp-ticket-header {
	padding: 18px 22px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
}

.etp-event-name {
	font-weight: 600;
	font-size: 17px;
	flex: 1;
}

.etp-status-badge {
	padding: 4px 14px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	background: rgba(255,255,255,0.2);
	white-space: nowrap;
}

.etp-status-badge.active {
	background: rgba(76, 175, 80, 0.3);
}

.etp-status-badge.used {
	background: rgba(158, 158, 158, 0.3);
}

.etp-ticket-body {
	padding: 20px 22px;
	display: flex;
	gap: 18px;
	align-items: center;
}

.etp-qr {
	flex-shrink: 0;
}

.etp-qr img {
	width: 110px;
	height: 110px;
	border-radius: 12px;
	object-fit: cover;
	border: 2px solid #f0f0f0;
}

.etp-ticket-details {
	flex: 1;
	font-size: 14px;
	color: #555;
	line-height: 1.6;
}

.etp-ticket-details p {
	margin: 3px 0;
	display: flex;
	gap: 6px;
}

.etp-detail-label {
	color: #999;
	min-width: 60px;
}

.etp-ticket-actions {
	padding: 12px 22px 18px;
	border-top: 1px solid #f0f0f0;
	text-align: center;
}

.etp-download-qr {
	background: none;
	border: none;
	color: #667eea;
	font-size: 14px;
	cursor: pointer;
	padding: 6px 16px;
	border-radius: 20px;
	transition: all 0.3s;
}

.etp-download-qr:hover {
	background: #f0f3ff;
}

/* ===== Пустое состояние ===== */
.etp-empty {
	text-align: center;
	padding: 60px 20px;
	background: white;
	border-radius: 18px;
}

.etp-empty-icon {
	font-size: 64px;
	margin-bottom: 15px;
}

.etp-empty h3 {
	margin: 0 0 10px;
	color: #1a1a2e;
}

.etp-empty p {
	color: #888;
	margin-bottom: 25px;
}

.etp-buy-link {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white !important;
	padding: 12px 30px !important;
	border-radius: 50px;
	text-decoration: none !important;
	font-weight: 600;
	display: inline-block;
	transition: all 0.3s;
}

.etp-buy-link:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
	color: white;
}

/* ===== Вход в кабинет ===== */
.etp-cabinet-login {
	max-width: 420px;
	margin: 40px auto;
}

.etp-login-box {
	background: white;
	padding: 40px;
	border-radius: 20px;
	box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}

.etp-login-box h2 {
	text-align: center;
	margin: 0 0 8px;
	color: #1a1a2e;
}

.etp-login-box > p {
	text-align: center;
	color: #888;
	margin-bottom: 25px;
}

#etp-login-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

#etp-login-form label {
	font-weight: 500;
	font-size: 14px;
	color: #333;
}

#etp-login-form input[type="text"],
#etp-login-form input[type="password"] {
	padding: 12px 16px;
	border: 2px solid #e8ecf1;
	border-radius: 12px;
	width: 100%;
	box-sizing: border-box;
}

#etp-login-form input[type="submit"] {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border: none;
	padding: 14px;
	border-radius: 50px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	margin-top: 10px;
}

.etp-register-link {
	text-align: center;
	margin-top: 16px;
}

.etp-register-link a {
	color: #667eea;
	text-decoration: none;
}

/* ===== Адаптив ===== */
@media (max-width: 600px) {
	.etp-modal-content {
		padding: 20px 10px;
		border-radius: 16px;
	}
	
	.etp-tickets-grid {
		grid-template-columns: 1fr;
	}
	
	.etp-ticket-body {
		flex-direction: column;
		text-align: center;
	}
	
	.etp-stats {
		grid-template-columns: repeat(3, 1fr);
	}
	
	.etp-cabinet-header {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}
	
	.etp-cabinet-user {
		justify-content: center;
	}
	
	.etp-info-icon {
		display: none;
	}
}

/* ===== Вкладки кабинета ===== */
.etp-dashboard-tabs {
    display: flex;
    gap: 8px;
    margin: 20px 0 30px;
    border-bottom: 2px solid rgba(0,0,0,0.06);
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.etp-tab {
    padding: 10px 22px;
    border: none;
    background: transparent;
    color: #888;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.etp-tab:hover {
    color: #333;
    background: rgba(0,0,0,0.04);
}

.etp-tab.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.etp-tab-badge {
    background: #e0e0e0;
    color: #666;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 4px;
}

.etp-tab-badge.active {
    background: #4CAF50;
    color: white;
}

.etp-tab-content {
    display: none;
    animation: etpFadeIn 0.3s ease;
}

.etp-tab-content.active {
    display: block;
}

@keyframes etpFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Премиум бейдж ===== */
.etp-premium-badge {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== Подписка в кабинете ===== */
.etp-subscription-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}

.etp-subscription-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.etp-sub-icon {
    font-size: 28px;
}

.etp-subscription-header h3 {
    margin: 0;
    font-size: 18px;
    color: #1a1a2e;
}

.etp-sub-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.etp-sub-status.active {
    background: #e8f5e9;
}

.etp-sub-status.inactive {
    background: #ffebee;
}

.etp-status-icon {
    font-size: 20px;
}

.etp-status-text {
    font-weight: 600;
    font-size: 15px;
}

.etp-sub-status.active .etp-status-text {
    color: #2e7d32;
}

.etp-sub-status.inactive .etp-status-text {
    color: #c62828;
}

.etp-sub-details {
    background: #f8f9ff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.etp-sub-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e8ecf1;
}

.etp-sub-row:last-child {
    border-bottom: none;
}

.etp-sub-label {
    color: #888;
}

.etp-sub-value {
    font-weight: 500;
    color: #333;
}

.etp-sub-days {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    padding: 15px 20px;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 10px;
}

.etp-days-number {
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
    line-height: 1;
}

.etp-days-label {
    color: #666;
    font-size: 14px;
}

.etp-sub-inactive {
    text-align: center;
    padding: 20px;
    color: #888;
}

.etp-sub-inactive p {
    margin: 5px 0;
}

.etp-sub-hint {
    font-size: 14px;
    color: #aaa;
}

.etp-sub-actions {
    margin-top: 20px;
}

.etp-sub-btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.etp-sub-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

/* ===== Профиль ===== */
.etp-profile-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}

.etp-profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.etp-profile-avatar {
    font-size: 48px;
}

.etp-profile-info h3 {
    margin: 0;
    font-size: 20px;
    color: #1a1a2e;
}

.etp-profile-info p {
    margin: 4px 0 0;
    color: #888;
}

.etp-profile-details {
    margin-bottom: 20px;
}

.etp-profile-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f8f8f8;
}

.etp-profile-row:last-child {
    border-bottom: none;
}

.etp-profile-label {
    color: #999;
}

.etp-profile-value {
    font-weight: 500;
    color: #333;
}

.etp-profile-actions {
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

.etp-profile-logout {
    background: #f44336;
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
}

.etp-profile-logout:hover {
    background: #d32f2f;
    color: white;
}

/* ===== Темная тема ===== */
body.dark .etp-tab {
    color: #888;
}

body.dark .etp-tab:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

body.dark .etp-tab.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.15);
}

body.dark .etp-subscription-card,
body.dark .etp-profile-card {
    background: #1e1e2e;
    border-color: #2a2a3a;
}

body.dark .etp-sub-details {
    background: #16162a;
}

body.dark .etp-sub-row {
    border-color: #2a2a3a;
}

body.dark .etp-sub-value {
    color: #ddd;
}

body.dark .etp-profile-row {
    border-color: #2a2a3a;
}

body.dark .etp-profile-value {
    color: #ddd;
}

body.dark .etp-profile-actions {
    border-color: #2a2a3a;
}

@media (max-width: 600px) {
    .etp-dashboard-tabs {
        gap: 4px;
    }
    
    .etp-tab {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .etp-subscription-card,
    .etp-profile-card {
        padding: 20px;
    }
}