* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: url('site-packground.jpeg') center/cover no-repeat fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

/* Fallback background if image fails to load */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    position: relative;
}

.main-box {
    background: rgba(20, 20, 30, 0.95);
    border: 2px solid #ff4757;
    border-radius: 35px;
    padding: 30px;
    box-shadow: 
        0 0 30px rgba(255, 71, 87, 0.5),
        inset 0 0 20px rgba(255, 71, 87, 0.1);
    position: relative;
    overflow: visible;
    margin-top: 80px;
}

.main-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff4757, #ff6b35, #ff4757, #ff6b35);
    border-radius: 35px;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite alternate;
}

@keyframes borderGlow {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

.step {
    display: none;
    text-align: center;
}

.step.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo-section {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.ff-logo {
    display: inline-block;
    position: relative;
    z-index: 10;
}

.ff-logo img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 71, 87, 0.8));
    background: rgba(20, 20, 30, 0.95);
    border-radius: 50%;
    padding: 10px;
    border: 3px solid #ff4757;
    box-shadow: 
        0 0 25px rgba(255, 71, 87, 0.6),
        0 0 50px rgba(255, 71, 87, 0.3),
        inset 0 0 20px rgba(255, 71, 87, 0.1);
    transition: all 0.3s ease;
    animation: logoGlow 4s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% {
        box-shadow: 
            0 0 25px rgba(255, 71, 87, 0.6),
            0 0 50px rgba(255, 71, 87, 0.3),
            inset 0 0 20px rgba(255, 71, 87, 0.1);
    }
    100% {
        box-shadow: 
            0 0 35px rgba(255, 71, 87, 0.8),
            0 0 70px rgba(255, 71, 87, 0.4),
            inset 0 0 25px rgba(255, 71, 87, 0.2);
    }
}

.logo-fallback {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #ff4757, #ff6b35);
    border-radius: 50%;
    box-shadow: 
        0 0 25px rgba(255, 71, 87, 0.7),
        0 0 50px rgba(255, 71, 87, 0.3),
        inset 0 0 20px rgba(255, 71, 87, 0.1);
    border: 3px solid #ff4757;
    animation: logoGlow 4s ease-in-out infinite alternate;
}

.logo-text {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 12px;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.site-name {
    font-family: 'Orbitron', monospace;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-top: 15px;
    text-shadow: 0 0 10px rgba(255, 71, 87, 0.8);
}

.input-section {
    margin-bottom: 25px;
}

.input-section label {
    display: block;
    color: #fff;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 500;
}

.input-section input {
    width: 100%;
    padding: 15px;
    border: 2px solid #333;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.input-section input:focus {
    outline: none;
    border-color: #ff4757;
    box-shadow: 
        0 0 20px rgba(255, 71, 87, 0.5),
        inset 0 0 10px rgba(255, 71, 87, 0.1);
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
}

.input-section input:valid {
    border-color: #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.input-section input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.error-message {
    color: #ff4757;
    font-size: 14px;
    margin-top: 8px;
    min-height: 20px;
}

.device-selection h3,
.diamond-selection h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 500;
}

.device-options,
.diamond-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.device-option,
.diamond-option {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #333;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.device-option:hover,
.diamond-option:hover {
    border-color: #ff4757;
    background: rgba(255, 71, 87, 0.2);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 5px 20px rgba(255, 71, 87, 0.3);
}

.device-option.selected,
.diamond-option.selected {
    border-color: #ff4757;
    background: rgba(255, 71, 87, 0.3);
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.6);
    transform: translateY(-2px) scale(1.05);
    animation: selectedPulse 2s ease-in-out infinite alternate;
}

@keyframes selectedPulse {
    0% {
        box-shadow: 0 0 20px rgba(255, 71, 87, 0.6);
    }
    100% {
        box-shadow: 0 0 25px rgba(255, 71, 87, 0.8);
    }
}

.device-icon,
.diamond-icon {
    font-size: 30px;
    filter: drop-shadow(0 0 5px rgba(255, 71, 87, 0.7));
}

.device-option span,
.diamond-option span {
    color: #fff;
    font-weight: 500;
    font-size: 16px;
}

.processing-section {
    text-align: center;
    padding: 20px 0;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 71, 87, 0.3);
    border-top: 4px solid #ff4757;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.processing-section h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff4757, #ff6b35);
    width: 0%;
    animation: fillProgress 4s ease-in-out forwards;
}

@keyframes fillProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

.verification-section {
    text-align: center;
}

.alert-box {
    background: rgba(255, 71, 87, 0.2);
    border: 2px solid #ff4757;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    animation: alertPulse 3s ease-in-out infinite alternate;
}

.alert-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff4757, #ff6b35, #ff4757, #ff6b35);
    border-radius: 15px;
    z-index: -1;
    animation: borderRotate 4s linear infinite;
}

@keyframes alertPulse {
    0% {
        box-shadow: 0 0 20px rgba(255, 71, 87, 0.4);
    }
    100% {
        box-shadow: 0 0 30px rgba(255, 71, 87, 0.6);
    }
}

@keyframes borderRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.alert-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.alert-box h3 {
    color: #ff4757;
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.alert-box p {
    color: #fff;
    font-size: 14px;
}

.next-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #ff4757, #ff6b35);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.next-btn::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;
}

.next-btn:hover:not(:disabled)::before {
    left: 100%;
}

.next-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.5);
    background: linear-gradient(45deg, #ff5722, #ff7043);
}

.next-btn:active:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.next-btn:disabled {
    background: linear-gradient(45deg, #666, #555);
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding: 12px 18px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    font-size: 12px;
    color: #fff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 71, 87, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.online-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.online-dot {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.current-date {
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .main-box {
        padding: 40px 20px 20px 20px;
        border-radius: 25px;
        margin-top: 50px;
    }
    
    .main-box::before {
        border-radius: 25px;
    }
    
    .ff-logo {
        top: -60px;
    }
    
    .ff-logo img,
    .logo-fallback {
        width: 100px;
        height: 100px;
    }
    
    .site-name {
        font-size: 16px;
        margin-top: 30px;
    }
    
    .device-options,
    .diamond-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .device-option,
    .diamond-option {
        padding: 15px;
    }
    
    .alert-box {
        padding: 20px;
    }
    
    .status-bar {
        padding: 10px 15px;
        font-size: 11px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .device-option:active,
    .diamond-option:active {
        transform: translateY(-2px) scale(1.02);
        background: rgba(255, 71, 87, 0.3);
    }
    
    .next-btn:active:not(:disabled) {
        transform: translateY(-2px) scale(0.98);
    }
    
    .input-section input:focus {
        transform: scale(1.01);
    }
}

/* reCAPTCHA Styling */
[data-captcha-enable="true"] {
    margin: 20px auto;
    display: flex;
    justify-content: center;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff4757, #ff6b35);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ff6b35, #ff4757);
}