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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #333;
}

.container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.main-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Channel Preview Styles */
.channel-preview-image {
    position: relative;
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.channel-screenshot {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.preview-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 20px;
    text-align: center;
}

/* Channel Features Styles */
.channel-features {
    background: transparent;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border: none;
    box-shadow: none;
}

.features-title {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 20px 0;
    text-align: center;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-emoji {
    font-size: 20px;
    flex-shrink: 0;
}

.feature-text {
    font-size: 15px;
    font-weight: 500;
    color: #4a5568;
    line-height: 1.4;
}

.lock-icon {
    font-size: 48px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.title {
    font-size: 22px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 30px;
    line-height: 1.4;
}

.hindi-text {
    font-size: 18px;
    margin-bottom: 15px;
    color: #1a202c;
    font-weight: 500;
    line-height: 1.5;
}

.english-text {
    font-size: 16px;
    color: #4a5568;
    font-weight: 400;
    line-height: 1.4;
    font-style: italic;
}

.hindi-text strong, .english-text strong {
    color: #667eea;
    font-weight: 700;
    font-size: 1.2em;
}

.highlight-code {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 1.3em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 8px rgba(102, 126, 234, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 16px rgba(102, 126, 234, 0.6);
        transform: scale(1.05);
    }
}

.simple-instruction {
    margin-top: 20px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    padding: 20px;
    border: 2px dashed #667eea;
}

.step-by-step {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.code-display {
    background: #667eea;
    color: white;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.input-container {
    margin-bottom: 20px;
}

.code-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 15px;
    background: #fff;
}

.code-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.code-input:disabled {
    background-color: #f7fafc;
    color: #a0aec0;
    cursor: not-allowed;
}

.submit-btn {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
}

.error-message {
    color: #e53e3e;
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.error-message.show {
    opacity: 1;
    animation: shake 0.5s ease-in-out;
}

.success-message {
    color: #38a169;
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.success-message.show {
    opacity: 1;
}

.block-message {
    color: #d69e2e;
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(237, 137, 54, 0.1);
    padding: 10px;
    border-radius: 6px;
    border: 1px solid rgba(237, 137, 54, 0.2);
}

.block-message.show {
    opacity: 1;
}

.loading-spinner {
    display: none;
    margin-top: 20px;
}

.loading-spinner.show {
    display: block;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: #667eea;
    font-weight: 500;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .main-content {
        padding: 30px 20px;
    }
    
    .channel-preview-image {
        margin-bottom: 20px;
    }
    
    .channel-features {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .features-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .feature-item {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .feature-emoji {
        font-size: 18px;
    }
    
    .feature-text {
        font-size: 14px;
    }
    
    .title {
        font-size: 20px;
    }
    
    .hindi-text {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .english-text {
        font-size: 14px;
    }
    
    .simple-instruction {
        padding: 15px;
        margin-top: 15px;
    }
    
    .step {
        font-size: 14px;
        padding: 10px 12px;
        gap: 6px;
    }
    
    .code-display {
        padding: 2px 6px;
        font-size: 14px;
    }
    
    .lock-icon {
        font-size: 40px;
    }
    
    .code-input, .submit-btn {
        font-size: 14px;
        padding: 12px 16px;
    }
}

@media (max-width: 320px) {
    .main-content {
        padding: 25px 15px;
    }
    
    .title {
        font-size: 18px;
    }
}

/* Additional security: hide text selection on sensitive elements */
.code-input, .submit-btn {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.code-input {
    user-select: text;
}
