/* Modern CSS with responsive design */
:root {
    --primary-color: #7289da;
    --secondary-color: #4ecdc4;
    --danger-color: #ff6b6b;
    --success-color: #4CAF50;
    --warning-color: #feca57;
    --dark-bg: #2c2f33;
    --darker-bg: #23272a;
    --light-bg: rgba(255, 255, 255, 0.1);
    --text-light: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-alt: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    --border-radius: 15px;
    --border-radius-sm: 8px;
    --transition: all 0.3s ease;
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--darker-bg);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Effects */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    background: var(--text-light);
    border-radius: 50%;
    animation: twinkle 3s infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1); }
}

.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 10;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.navbar-logo:hover {
    transform: translateY(-2px);
}

.logo-emoji {
    font-size: 2rem;
    background: var(--gradient-alt);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

.navbar-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.navbar-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    position: relative;
}

.navbar-link:hover,
.navbar-link.active {
    color: var(--text-light);
    background: var(--light-bg);
}

.navbar-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background: var(--secondary-color);
    border-radius: 50%;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 50px;
    animation: slideDown 1s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.logo {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 20px;
    background: var(--gradient-alt);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.logo-emojis {
    display: flex;
    gap: 10px;
}

.logo-left-emoji,
.logo-right-emoji {
    font-size: 3rem;
    animation: pulse 2s infinite;
}

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

.subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

/* Ad Sections */
.ad-banner,
.ad-inline,
.ad-bottom {
    margin: 30px auto;
    text-align: center;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    padding: 10px;
}

.ad-banner {
    max-width: 300px;
}

.ad-inline {
    max-width: 728px;
}

.ad-bottom {
    max-width: 320px;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.feature {
    text-align: center;
    padding: 30px;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.feature:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: var(--gradient-alt);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

.feature p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Card & Form */
.card {
    background: var(--light-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-title {
    font-size: 2rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-light);
}

.card-title i {
    font-size: 2.5rem;
    background: var(--gradient-alt);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-light);
    font-size: 1.1rem;
}

.input-with-action {
    position: relative;
    display: flex;
    align-items: center;
}

.input-field {
    width: 100%;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.input-field:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.2);
}

.input-field::placeholder {
    color: var(--text-muted);
}

.input-action-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 10px;
    transition: var(--transition);
}

.input-action-btn:hover {
    color: var(--text-light);
}

.input-hint {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Accordion */
.accordion {
    margin: 25px 0;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.accordion-header {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition);
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.1);
}

.accordion-header i:first-child {
    margin-right: 10px;
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}

.accordion.active .accordion-content {
    max-height: 500px;
    padding: 20px;
}

/* Checkbox */
.checkbox-group {
    margin: 15px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.checkbox-label:hover {
    color: var(--text-light);
}

.checkbox-label input {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: var(--transition);
}

.checkbox-label input:checked + .checkbox-custom {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.checkbox-label input:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 15px;
    margin: 30px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 32px;
    border-radius: var(--border-radius-sm);
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: var(--font-primary);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #5865f2);
    color: white;
    flex: 1;
}

.btn-secondary {
    background: var(--light-bg);
    color: var(--text-light);
    border: 1px solid var(--border-color);
    flex: 1;
}

.btn-success {
    background: linear-gradient(45deg, var(--success-color), #43a047);
    color: white;
    flex: 2;
}

.btn-danger {
    background: linear-gradient(45deg, var(--danger-color), #ff3838);
    color: white;
    width: 100%;
    margin-top: 15px;
}

/* Progress Bar */
.progress-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius-sm);
    padding: 25px;
    margin: 30px 0;
    border: 1px solid var(--border-color);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    color: var(--text-light);
    font-weight: 600;
}

.progress-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 5px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.progress-stat {
    flex: 1;
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
}

.stat-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.2rem;
}

/* Log Container */
.log-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    margin-top: 30px;
    overflow: hidden;
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
}

.log-header h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
}

.log-actions {
    display: flex;
    gap: 10px;
}

.log-action-btn {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.log-action-btn:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.log-entries {
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
}

.log-entry {
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--text-muted);
    animation: fadeIn 0.5s ease-out;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.log-entry.success {
    border-left-color: var(--success-color);
    background: rgba(76, 175, 80, 0.1);
}

.log-entry.error {
    border-left-color: var(--danger-color);
    background: rgba(255, 107, 107, 0.1);
}

.log-entry.warning {
    border-left-color: var(--warning-color);
    background: rgba(254, 202, 87, 0.1);
}

.log-entry.info {
    border-left-color: var(--primary-color);
    background: rgba(114, 137, 218, 0.1);
}

/* Footer */
.footer {
    text-align: center;
    padding: 50px 0 30px;
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-link {
    width: 60px;
    height: 60px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    font-size: 1.5rem;
}

.social-link:hover {
    background: var(--gradient);
    transform: translateY(-5px);
    border-color: transparent;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-light);
}

.footer-text {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.support-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 25px;
    transition: var(--transition);
}

.support-link:hover {
    color: var(--text-light);
    transform: translateY(-2px);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.project-by {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--darker-bg);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    position: relative;
    border: 1px solid var(--border-color);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--text-light);
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    background: var(--gradient-alt);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-icon.success {
    background: linear-gradient(45deg, var(--success-color), #43a047);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

.modal p {
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.7;
}

.modal-list {
    list-style: none;
    margin: 25px 0;
    text-align: left;
}

.modal-list li {
    padding: 10px 0;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-list li i {
    color: var(--success-color);
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 15px;
    }
    
    .logo {
        font-size: 3rem;
    }
    
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar-toggle {
        display: block;
    }
    
    .navbar-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--darker-bg);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 100;
        border-bottom: 1px solid var(--border-color);
    }
    
    .navbar-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .logo {
        font-size: 2.5rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 25px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .progress-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .ad-inline {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
    
    .modal-content {
        padding: 25px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.p-20 { padding: 20px; }
.w-100 { width: 100%; }
.d-none { display: none; }
.d-flex { display: flex; }
.d-block { display: block; }
.flex-column { flex-direction: column; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Selection */
::selection {
    background: var(--secondary-color);
    color: white;
}

/* Focus Styles */
:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .ad-banner,
    .ad-inline,
    .ad-bottom,
    .social-links,
    .navbar-toggle,
    .btn {
        display: none !important;
    }
}