/* Modern White UI Styles */
:root {
    --primary: #6c5ce7;
    --primary-light: #8577ef;
    --secondary: #00cec9;
    --dark: #2d3436;
    --light: #ffffff;
    --lighter: #f8f9fa;
    --text: #2d3436;
    --text-light: #636e72;
    --danger: #ff4757;
    --success: #2ed573;
    --warning: #ffa502;
    --border: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--lighter);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header */
header {
    background-color: var(--light);
    box-shadow: 0 2px 10px var(--shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-container{
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Logo */
.logo {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
}

.logo span {
    color: var(--secondary);
}

/* Navigation */
nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link i {
    font-size: 1.1rem;
}

.btn-register {
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    color: white !important;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.2);
}

.btn-register:hover {
    background: linear-gradient(45deg, var(--primary-light), var(--primary));
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.3);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 90vh;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 650px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text);
}

.hero-title span {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    background-color: var(--light);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px var(--shadow);
    border: 1px solid var(--border);
}

.stat-item i {
    color: var(--primary);
    font-size: 1.8rem;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    color: white;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.3);
    border: none;
    cursor: pointer;
}

.hero-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(108, 92, 231, 0.4);
}

.hero-scroll {
    margin-top: 50px;
    display: inline-block;
    animation: bounce 2s infinite;
    color: var(--primary);
    font-size: 1.5rem;
}

.hero-illustration img {
    max-width: 600px;
    width: 100%;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.1));
}

/* Ads Section */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    color: var(--text);
}

.section-title i {
    color: var(--primary);
    font-size: 2rem;
}

.ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.ad-card {
    background-color: var(--light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--shadow);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid var(--border);
}

.ad-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.ad-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    color: white;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
    z-index: 2;
}

.ad-image-container {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ad-card:hover .ad-image {
    transform: scale(1.1);
}

.ad-content {
    padding: 25px;
}

.ad-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text);
    font-weight: 600;
}

.ad-description {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.ad-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.ad-reward, .ad-duration {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1.1rem;
}

.ad-reward {
    color: var(--success);
}

.ad-duration {
    color: var(--text-light);
}

.watch-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.2);
}

.watch-btn:hover {
    background: linear-gradient(45deg, var(--primary-light), var(--primary));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.3);
}

.watch-btn:disabled {
    background: #b2b2b2;
    cursor: not-allowed;
    box-shadow: none;
}

/* Dashboard Styles */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.stat-card {
    background-color: var(--light);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.stat-card p {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
}

/* Form Styles */
.form-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--light);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 25px var(--shadow);
    border: 1px solid var(--border);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: var(--text);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-light);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background-color: var(--lighter);
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.form-submit {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.2);
}

.form-submit:hover {
    background: linear-gradient(45deg, var(--primary-light), var(--primary));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.3);
}

.error-message {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid var(--danger);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    color: var(--text);
}

.error-message p {
    margin-bottom: 5px;
}

.error-message p:last-child {
    margin-bottom: 0;
}

/* Admin Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background-color: var(--light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    border: 1px solid var(--border);
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background-color: var(--lighter);
    color: var(--text);
    font-weight: 600;
}

tr:hover {
    background-color: rgba(108, 92, 231, 0.05);
}

.btn {
    padding: 8px 15px;
    border-radius: 8px;
    border: none;
    background: var(--primary);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--primary-light);
}

/* Timer Overlay */
.timer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.timer-display {
    font-size: 8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 30px;
}

.timer-message {
    font-size: 2rem;
    color: var(--text);
    text-align: center;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(108, 92, 231, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(108, 92, 231, 0);
    }
}

/* Footer */
.footer {
    background-color: var(--light);
    color: var(--text);
    padding: 70px 0 30px;
    margin-top: 100px;
    position: relative;
    border-top: 1px solid var(--border);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-brand .logo {
    font-size: 2.5rem;
}

.footer-brand p {
    color: var(--text-light);
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px var(--shadow);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
}

.footer-links h3, .footer-legal h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    color: var(--text);
}

.footer-links h3::after, .footer-legal h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.footer-links ul, .footer-legal ul {
    list-style: none;
}

.footer-links li, .footer-legal li {
    margin-bottom: 15px;
}

.footer-links a, .footer-legal a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a i, .footer-legal a i {
    font-size: 0.8rem;
    color: var(--primary);
}

.footer-links a:hover, .footer-legal a:hover {
    color: var(--primary);
    padding-left: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-illustration img {
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 60px 0;
    }
    
    .hero-content {
        margin-bottom: 50px;
        max-width: 100%;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links h3::after, .footer-legal h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links ul, .footer-legal ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-btn {
        width: 100%;
        justify-content: center;
    }
    
    .ads-grid {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 30px 20px;
    }
}

/* Dashboard Specific Styles */
.dashboard-section {
    margin-bottom: 50px;
}

.welcome-message {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.username-highlight {
    color: var(--primary);
    font-weight: 600;
}

.stat-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 10px;
}

.activity-section {
    margin-top: 50px;
}

.section-subtitle {
    font-size: 1.8rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text);
}

.section-subtitle i {
    color: var(--primary);
}

.activity-container {
    background-color: var(--light);
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border);
}

.earned-amount {
    color: var(--success);
    font-weight: 600;
}

.no-activity {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.no-activity i {
    display: block;
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stat-value {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1.5rem;
    }
}

/* Payout Section Styles */
.payout-section {
    margin-top: 50px;
    background-color: var(--light);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px var(--shadow);
    border: 1px solid var(--border);
}

.payout-history {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

.payout-history th, .payout-history td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.payout-history th {
    background-color: var(--lighter);
    font-weight: 600;
}

.status-pending {
    color: var(--warning);
    font-weight: 600;
}

.status-approved {
    color: var(--success);
    font-weight: 600;
}

.status-rejected {
    color: var(--danger);
    font-weight: 600;
}

.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.alert-info {
    background-color: rgba(0, 206, 201, 0.1);
    border-left: 4px solid var(--secondary);
    color: var(--text);
}

.alert i {
    margin-right: 10px;
}
/* Payment Method Styles */
.payment-method-select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background-color: var(--lighter);
    font-size: 1rem;
}

.payment-details {
    margin-top: 15px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-warning {
    background-color: rgba(255, 165, 2, 0.1);
    border-left: 4px solid var(--warning);
    color: var(--text);
}
/* Ad Network Cards */
.ad-network-container {
    min-height: 250px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

/* Network Management */
.inline-form {
    display: inline;
}

/* Delete button */
.btn-danger {
    background: var(--danger);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

/* Mobile Menu Styles */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--light);
    box-shadow: 0 5px 10px var(--shadow);
    z-index: 999;
    padding: 15px 0;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu .nav-link {
    display: block;
    padding: 12px 20px;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
}

.mobile-menu .nav-link:hover {
    background-color: var(--lighter);
}

/* Show mobile menu button on small screens */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    nav .nav-link:not(.btn-register) {
        display: none;
    }
    
    .btn-register {
        display: block;
        margin-left: auto;
    }
    
    .container {
        padding: 15px;
    }
    
    .btn-register{
        display: none;
    }
}

.header-left {
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .glass-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .logo {
    margin-right: auto;
  }

  .mobile-menu-btn {
    margin-left: auto;
  }
}
