/* Registration Page Gaming UI */
.registration-hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.registration-container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.registration-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: heroContentFadeIn 1.5s ease-out;
}

.registration-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1rem;
}

/* Gaming Steps */
.gaming-steps {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.step-card {
    min-width: 140px;
    transition: all 0.3s ease;
}

.step-card.active {
    transform: translateY(-5px) scale(1.05);
    border-color: rgba(255, 0, 128, 0.5);
    background: linear-gradient(135deg, rgba(255, 0, 128, 0.2), rgba(255, 107, 53, 0.1));
    box-shadow: 0 10px 30px rgba(255, 0, 128, 0.3);
}

/* Gaming Form Container */
.gaming-form-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: formFadeIn 1.8s ease-out;
}

@keyframes formFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-badge {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Form Sections */
.form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.section-header {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header i {
    color: #ff0080;
    font-size: 1.1rem;
}

/* Tournament Cards */
.tournament-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tournament-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tournament-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.2);
}

.tournament-card.selected {
    border-color: #ff6b35;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(255, 107, 53, 0.1));
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.tournament-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.tournament-card h4 {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.tournament-fee {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 900;
    color: #ff6b35;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.tournament-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tournament-details span {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.tournament-status {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #ff6b35, #ff8c42);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Input with Icon */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: rgba(255, 107, 53, 0.7);
    z-index: 2;
    font-size: 1rem;
}

.input-with-icon .form-control {
    padding-left: 45px;
}

.char-counter {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Rajdhani', sans-serif;
}

.input-help {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
    font-family: 'Rajdhani', sans-serif;
    font-style: italic;
}

/* Player Badges */
.player-badge {
    background: linear-gradient(45deg, #00ffff, #0080ff);
    color: #000;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: auto;
}

.player-badge.captain {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
}

.player-badge.assault {
    background: linear-gradient(45deg, #ff4444, #ff6b6b);
}

.player-badge.sniper {
    background: linear-gradient(45deg, #44ff44, #6bff6b);
}

.player-badge.support {
    background: linear-gradient(45deg, #4444ff, #6b6bff);
}

/* Terms Section */
.terms-section {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 107, 53, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.terms-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    padding: 1rem;
}

.terms-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.terms-header h4 {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffd700;
    margin: 0;
    text-transform: uppercase;
}

.terms-header i {
    color: #ffd700;
    font-size: 1.1rem;
}

.terms-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Form Controls */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-control {
    width: 100%;
    padding: 1rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #ffffff;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #ff0080;
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.3);
    background: linear-gradient(135deg, rgba(255, 0, 128, 0.1), rgba(255, 255, 255, 0.05));
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-control.error {
    border-color: #ff4444;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.3);
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.1), rgba(255, 255, 255, 0.05));
}

.form-control.has-value {
    border-color: rgba(0, 255, 0, 0.5);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.error-message {
    color: #ff4444;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    font-family: 'Rajdhani', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    animation: errorSlideIn 0.3s ease-out;
}

.error-message::before {
    content: '⚠️';
    font-size: 0.7rem;
}

@keyframes errorSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Progress */
.form-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.form-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff6b35, #00ffff);
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* Enhanced Player Header */
.player-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    justify-content: space-between;
}

/* Input Focus States */
.input-with-icon.focused .input-icon {
    color: #ff6b35;
    transform: scale(1.1);
}

.input-with-icon.focused .form-control {
    transform: translateY(-1px);
}

/* Player Cards */
.player-card {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(138, 43, 226, 0.05));
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.player-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.player-card:hover::before {
    left: 100%;
}

.player-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.2);
}

.player-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.player-title {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.player-header i {
    color: #00ffff;
    font-size: 1.2rem;
}

.player-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Checkbox Styling */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #ff0080;
}

.checkbox-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.glow-link {
    color: #00ffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.glow-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px #00ffff;
}

/* Payment Summary */
.gaming-payment-summary {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.1), rgba(255, 0, 128, 0.05));
    border: 1px solid rgba(255, 165, 0, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.payment-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.payment-header h3 {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffa500;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.payment-header i {
    color: #ffa500;
    font-size: 1.1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.summary-row.total {
    font-weight: 700;
    font-size: 1.1rem;
    border-top: 2px solid rgba(255, 165, 0, 0.3);
    margin-top: 0.5rem;
    padding-top: 1rem;
}

.summary-row span {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.summary-row .glow {
    color: #ffa500;
    text-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
}

/* Registration Actions */
.registration-actions {
    margin-top: 2rem;
}

.registration-actions .gaming-btn {
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Success Modal Styling */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.success-animation {
    margin-bottom: 1.5rem;
}

.checkmark-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00ffff, #ff0080);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.checkmark {
    width: 30px;
    height: 30px;
    border: 3px solid #ffffff;
    border-top: none;
    border-right: none;
    transform: rotate(-45deg);
    margin-top: -5px;
}

.modal-content h2 {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.success-message {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.success-details {
    margin: 1.5rem 0;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    font-family: 'Rajdhani', sans-serif;
    color: rgba(255, 255, 255, 0.8);
}

.detail-item i {
    color: #00ffff;
    width: 20px;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.success-actions .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
}

/* Payment Cancelled Popup */
.payment-cancelled-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.payment-cancelled-popup.show {
    opacity: 1;
    visibility: visible;
}

.payment-cancelled-popup.hide {
    opacity: 0;
    visibility: hidden;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.popup-content {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    max-width: 450px;
    width: 90%;
    text-align: center;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    0% {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.popup-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b35, #ff0080);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.popup-icon i {
    font-size: 2rem;
    color: #ffffff;
}

.popup-title {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.popup-message {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.popup-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff0080, #00ffff);
    border-radius: 2px;
    transition: width 4s linear;
}

.popup-actions {
    display: flex;
    justify-content: center;
}

.popup-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .registration-container {
        padding: 1rem;
    }
    
    .gaming-form-container {
        padding: 1.5rem;
    }
    
    .tournament-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tournament-card {
        padding: 1.2rem;
    }
    
    .tournament-fee {
        font-size: 1.5rem;
    }
    
    .form-row,
    .player-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gaming-steps {
        gap: 0.5rem;
    }
    
    .step-card {
        min-width: 120px;
        padding: 1rem;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .success-actions .btn {
        width: 100%;
    }
    
    .popup-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .popup-icon {
        width: 60px;
        height: 60px;
    }
    
    .popup-icon i {
        font-size: 1.5rem;
    }
    
    .popup-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .registration-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .form-section {
        padding: 1rem;
    }
    
    .gaming-form-container {
        padding: 1rem;
    }
    
    .step-card {
        min-width: 100px;
        padding: 0.8rem;
    }
    
    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .popup-content {
        padding: 1.2rem;
    }
    
    .popup-title {
        font-size: 1.2rem;
    }
    
    .popup-message {
        font-size: 1rem;
    }
}
