/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.header {
    background: #4a69bd;
    color: white;
    padding: 30px 20px;
    text-align: center;
    position: relative;
}

.logo {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.logo i {
    background: #1e3799;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    display: inline-block;
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.header p {
    font-size: 1rem;
    opacity: 0.9;
}

.main-content {
    padding: 30px;
}

.url-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.input-group {
    display: flex;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.input-group input {
    flex: 1;
    padding: 15px;
    border: none;
    outline: none;
    font-size: 16px;
}

.btn {
    padding: 15px 25px;
    border: none;
    background: #4a69bd;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 16px;
}

.btn:hover {
    background: #1e3799;
}

.btn i {
    margin-right: 8px;
}

.result-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    display: none;
}

.result-container.active {
    display: block;
    animation: fadeIn 0.5s;
}

.result-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.result-box {
    display: flex;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.result-box input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    outline: none;
    font-size: 16px;
    color: #4a69bd;
    font-weight: 500;
}

.copy-btn {
    background: #4a69bd;
    color: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.copy-btn:hover {
    background: #1e3799;
}

.ad-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.ad-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-title i {
    margin-right: 10px;
    color: #e74c3c;
}

.timer-box {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.timer-text {
    font-size: 14px;
    color: #777;
    margin-bottom: 10px;
}

.timer {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4a69bd;
    margin: 10px 0;
}

.next-btn {
    background: #27ae60;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
    display: none;
}

.next-btn:hover {
    background: #219653;
}

.page-indicator {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.page-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
}

.page-dot.active {
    background: #4a69bd;
}

.ad-partner {
    margin-top: 20px;
    font-size: 14px;
    color: #777;
}

.footer {
    text-align: center;
    padding: 20px;
    color: #777;
    font-size: 14px;
    border-top: 1px solid #eee;
}

.footer a {
    color: #4a69bd;
    text-decoration: none;
}

.ad-content {
    margin: 20px 0;
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.ad-content h3 {
    color: #4a69bd;
    margin-bottom: 15px;
}

.ad-content p {
    color: #666;
    margin-bottom: 20px;
    text-align: center;
    max-width: 80%;
}

.watch-ad-btn {
    background: #e74c3c;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.watch-ad-btn:hover {
    background: #c0392b;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #27ae60;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1000;
}

.notification.show {
    display: block;
    animation: fadeIn 0.5s;
}

@media (max-width: 480px) {
    .header {
        padding: 20px 15px;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .btn {
        padding: 12px 15px;
    }
}