* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #000000 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    color: #fff;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    padding: 40px 0;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.logo svg {
    color: #fe2c55;
}

.logo h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #fe2c55 0%, #25f4ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    color: #888;
    font-size: 1.1rem;
}

/* Download Box */
.download-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    flex: 1;
    padding: 18px 24px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #fe2c55;
    box-shadow: 0 0 20px rgba(254, 44, 85, 0.3);
}

.input-group input::placeholder {
    color: #666;
}

.input-group button {
    padding: 18px 35px;
    background: linear-gradient(135deg, #fe2c55 0%, #ff0050 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(254, 44, 85, 0.4);
}

.input-group button:active {
    transform: translateY(0);
}

.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Result */
.result {
    margin-top: 25px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.video-preview {
    display: flex;
    gap: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.video-preview img {
    width: 120px;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
}

.video-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.video-info p {
    color: #888;
    margin-bottom: 10px;
}

.video-stats {
    display: flex;
    gap: 15px;
    color: #888;
    font-size: 0.9rem;
}

.download-buttons {
    display: flex;
    gap: 10px;
}

.download-action {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-action.primary {
    background: linear-gradient(135deg, #fe2c55 0%, #ff0050 100%);
    color: #fff;
}

.download-action.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.download-action:hover {
    transform: translateY(-2px);
}

.download-action.primary:hover {
    box-shadow: 0 10px 30px rgba(254, 44, 85, 0.4);
}

/* Error */
.error {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 59, 48, 0.2);
    border: 1px solid rgba(255, 59, 48, 0.3);
    border-radius: 10px;
    color: #ff6b6b;
    text-align: center;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.feature {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    border-color: rgba(254, 44, 85, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.feature p {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* How To */
.how-to {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
}

.how-to h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.steps {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.step {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #fe2c55 0%, #ff0050 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 15px;
}

.step p {
    color: #ccc;
    font-size: 0.95rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    color: #666;
    font-size: 0.85rem;
}

footer a {
    color: #888;
    text-decoration: none;
}

footer a:hover {
    color: #fe2c55;
}

footer p {
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 600px) {
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-group button {
        justify-content: center;
    }
    
    .video-preview {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .video-preview img {
        width: 100%;
        max-width: 200px;
        height: auto;
    }
    
    .download-buttons {
        flex-direction: column;
    }
    
    .steps {
        flex-direction: column;
    }
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 1000;
}

.loading-overlay .spinner-large {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #fe2c55;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-overlay p {
    margin-top: 20px;
    color: #fff;
    font-size: 1.1rem;
}

.progress-bar {
    width: 200px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 15px;
    overflow: hidden;
}

.progress-bar .progress {
    height: 100%;
    background: linear-gradient(135deg, #fe2c55 0%, #25f4ee 100%);
    border-radius: 3px;
    animation: progress 2s ease-in-out;
}

@keyframes progress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Content Locker Overlay */
.content-locker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

.content-locker-overlay.active {
    opacity: 1;
    visibility: visible;
}

.content-locker {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.content-locker-overlay.active .content-locker {
    transform: scale(1);
}

.locker-header {
    text-align: center;
    padding: 30px 20px 20px;
    background: rgba(254, 44, 85, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.locker-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.locker-header h2 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.locker-header p {
    color: #888;
    font-size: 0.95rem;
}

.offers-list {
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.offer-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 10px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.offer-item:hover {
    background: rgba(254, 44, 85, 0.2);
    border-color: rgba(254, 44, 85, 0.3);
    transform: translateX(5px);
}

.offer-item:last-child {
    margin-bottom: 0;
}

.offer-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #fe2c55 0%, #ff0050 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.offer-info {
    flex: 1;
}

.offer-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #fff;
}

.offer-info p {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.4;
}

.offer-arrow {
    font-size: 1.5rem;
    color: #fe2c55;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.offer-item:hover .offer-arrow {
    opacity: 1;
    transform: translateX(0);
}

.locker-footer {
    padding: 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.locker-footer p {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.close-locker {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #888;
    padding: 10px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.close-locker:hover {
    border-color: #fe2c55;
    color: #fe2c55;
}

/* Scrollbar for offers list */
.offers-list::-webkit-scrollbar {
    width: 6px;
}

.offers-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.offers-list::-webkit-scrollbar-thumb {
    background: rgba(254, 44, 85, 0.5);
    border-radius: 3px;
}

.offers-list::-webkit-scrollbar-thumb:hover {
    background: rgba(254, 44, 85, 0.8);
}

/* OGAds Page Overlay */
.ogads-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ogads-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ogads-container {
    width: 100%;
    height: 100%;
}

.ogads-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Adsterra Ad Container */
.ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    margin: 20px 0;
}
