* { margin:0; padding:0; box-sizing:border-box; font-family: Arial, sans-serif; }
body { background-color: #0a0a0f; color:#fff; line-height:1.6; }

.container { max-width:1200px; margin:0 auto; padding:0 20px; }

nav { display:flex; justify-content:space-between; align-items:center; padding:20px 0; position: sticky; top: 0; background: #0a0a0f; z-index: 100; border-bottom: 1px solid #1a1a2e; }
nav .logo { font-size: 1.5rem; font-weight: bold; cursor: pointer; display: flex; align-items: center; gap: 12px; }
nav .nav-links { display: flex; }

.logo-icon { width: 45px; height: 45px; position: relative; }
.logo-icon svg { width: 100%; height: 100%; filter: drop-shadow(0 4px 12px rgba(0,212,255,0.4)); transition: transform 0.3s; }
.logo:hover .logo-icon svg { transform: translateY(-2px); }

.hamburger { display: none; flex-direction: column; cursor: pointer; padding: 5px; }
.hamburger span { width: 25px; height: 3px; background: #00d4ff; margin: 3px 0; border-radius: 2px; transition: 0.3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }
nav a { color:#fff; text-decoration:none; margin-left:20px; font-weight:bold; transition: opacity 0.3s; cursor: pointer; }
nav a:hover { opacity:0.7; }
nav a.active { color: #00d4ff; }

.page { display: none; min-height: 100vh; }
.page.active { display: block; }

.hero { text-align:center; padding:80px 20px; position:relative; overflow:hidden; }
.hero h1 { font-size:4rem; margin-bottom:20px; }
.hero h1 span { background: linear-gradient(90deg,#00d4ff,#9d00ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size:1.2rem; max-width:700px; margin:0 auto 30px; color: #aaa; }
.hero .btn { display:inline-flex; align-items:center; gap:10px; background:#00d4ff; color:#000; padding:15px 25px; border-radius:8px; font-weight:bold; text-decoration:none; transition:0.3s; margin: 0 10px; cursor: pointer; border: none; }
.hero .btn:hover { opacity:0.8; }
.hero .btn-outline { background:transparent; border:2px solid #00d4ff; color:#00d4ff; }
.hero .btn-outline:hover { background:#00d4ff; color:#000; }

.hero.tech-hero { background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(157,0,255,0.1)); }
.hero.finance-hero { background: linear-gradient(135deg, rgba(0,255,136,0.1), rgba(0,212,255,0.1)); }
.hero.gambling-hero { background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(255,0,68,0.1)); }
.hero.fashion-hero { background: linear-gradient(135deg, rgba(255,51,153,0.1), rgba(153,51,255,0.1)); }
.hero.lifestyle-hero { background: linear-gradient(135deg, rgba(255,136,0,0.1), rgba(255,51,102,0.1)); }

section { padding:80px 20px; position: relative; z-index: 1; }
h2 { font-size:3rem; margin-bottom:20px; text-align:center; }
h2.section-title { font-size:2.5rem; margin-bottom:30px; }
p { max-width:700px; margin:0 auto 20px; text-align:center; }

.grid { display:grid; gap:20px; }
.grid-3 { grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit,minmax(350px,1fr)); }

.card { background:#16162a; border-radius:12px; padding:30px; transition:0.3s; min-height:180px; }
.card:hover { transform: translateY(-5px); }
.card .icon { width:60px; height:60px; border-radius:15px; display:flex; align-items:center; justify-content:center; margin:0 auto 15px; font-size:1.5rem; }
.card h3 { text-align: center; margin-bottom: 15px; }
.card p { text-align: center; color: #aaa; }

.post-card { background:#16162a; border-radius:12px; padding:30px; transition:0.3s; }
.post-card:hover { transform: translateY(-5px); }
.post-card h3 { margin-bottom: 15px; font-size: 1.5rem; text-align: left; }
.post-card .meta { color: #888; font-size: 0.9rem; margin-bottom: 15px; }
.post-card p { color: #ccc; line-height: 1.8; text-align: left; }
.post-card .read-more { display: inline-block; margin-top: 15px; text-decoration: none; font-weight: bold; }
.post-card .read-more:hover { text-decoration: underline; }

.post-card.tech { border-left: 4px solid #00d4ff; }
.post-card.tech:hover { box-shadow: 0 10px 30px rgba(0,212,255,0.2); }
.post-card.tech h3 { color: #00d4ff; }
.post-card.tech .read-more { color: #00d4ff; }

.post-card.finance { border-left: 4px solid #00ff88; }
.post-card.finance:hover { box-shadow: 0 10px 30px rgba(0,255,136,0.2); }
.post-card.finance h3 { color: #00ff88; }
.post-card.finance .read-more { color: #00ff88; }

.post-card.gambling { border-left: 4px solid #ffd700; }
.post-card.gambling:hover { box-shadow: 0 10px 30px rgba(255,215,0,0.2); }
.post-card.gambling h3 { color: #ffd700; }
.post-card.gambling .read-more { color: #ffd700; }

.post-card.fashion { border-left: 4px solid #ff3399; }
.post-card.fashion:hover { box-shadow: 0 10px 30px rgba(255,51,153,0.2); }
.post-card.fashion h3 { color: #ff3399; }
.post-card.fashion .read-more { color: #ff3399; }

.post-card.lifestyle { border-left: 4px solid #ff8800; }
.post-card.lifestyle:hover { box-shadow: 0 10px 30px rgba(255,136,0,0.2); }
.post-card.lifestyle h3 { color: #ff8800; }
.post-card.lifestyle .read-more { color: #ff8800; }

.image-preview { width: 100%; height: 200px; margin-bottom: 15px; border-radius: 8px; overflow: hidden; background: #0f0f14; }
.image-preview img { width: 100%; height: 100%; object-fit: cover; }
.image-preview .image-placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #666; }
.image-preview .image-placeholder span { font-size: 3rem; margin-bottom: 10px; }

.text-gradient-tech { background: linear-gradient(90deg,#888,#00d4ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-gradient-finance { background: linear-gradient(90deg,#888,#00ff88); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-gradient-gambling { background: linear-gradient(90deg,#888,#ffd700); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-gradient-fashion { background: linear-gradient(90deg,#888,#ff3399); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-gradient-lifestyle { background: linear-gradient(90deg,#888,#ff8800); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.cta { background: linear-gradient(90deg,#00d4ff, #9d00ff, #00ff88, #ffd700); padding:50px 20px; text-align:center; border-radius:12px; color:#000; margin: 0 20px; }
.cta h2 { color: #000; }
.cta p { color: #000; }
.cta a { background:#000; color:#fff; padding:15px 25px; border-radius:8px; font-weight:bold; text-decoration:none; display: inline-block; margin-top: 20px; cursor: pointer; }
.cta a:hover { opacity:0.8; }

footer { text-align:center; padding:40px 20px; background:#0f0f14; font-size:0.9rem; color:#aaa; position: relative; z-index: 2; clear: both; }

.back-button { background: #00d4ff; color: #000; border: none; padding: 10px 20px; border-radius: 8px; cursor: pointer; margin-bottom: 20px; display: inline-flex; align-items: center; gap: 8px; font-weight: bold; transition: 0.3s; }
.back-button:hover { background: #00b8e6; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,212,255,0.3); }

.loading-spinner { display: inline-block; width: 50px; height: 50px; border: 4px solid #333; border-top: 4px solid #00d4ff; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.8rem; line-height: 1.2; }
    h2 { font-size: 2.2rem; line-height: 1.3; }
    h2.section-title { font-size: 2rem; line-height: 1.3; }
    .grid-2, .grid-3 { 
        grid-template-columns: 1fr !important; 
        gap: 15px; 
    }
    .grid-2 .card, .grid-3 .card {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    nav { padding: 15px 0; position: fixed; top: 0; left: 0; right: 0; background: #0a0a0f; border-bottom: 1px solid #1a1a2e; z-index: 1000; }
    .hamburger { display: flex; }
    .nav-links { position: fixed; top: 70px; left: -100%; width: 100%; height: calc(100vh - 70px); background: #0a0a0f; flex-direction: column; align-items: center; padding: 20px 0; transition: left 0.3s ease; border-top: 1px solid #1a1a2e; }
    .nav-links.active { left: 0; }
    nav a { margin: 0; padding: 18px 0; width: 90%; text-align: center; border-bottom: 1px solid #1a1a2e; font-size: 1.1rem; }
    nav a:last-child { border-bottom: none; }
    
    .hero .btn { width: 90%; max-width: 280px; margin: 8px auto; display: block; text-align: center; padding: 16px 20px; font-size: 1rem; }
    .hero { padding: 100px 20px 60px; }
    section { padding: 60px 15px; }
    
    .card, .post-card { padding: 20px 15px; margin: 0; }
    .logo-icon { width: 35px; height: 35px; }
    nav .logo { font-size: 1.2rem; }
    .cta { margin: 0 10px; padding: 30px 15px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h2.section-title { font-size: 1.6rem; }
    .container { padding: 0 15px; }
    .grid { gap: 12px; }
    .grid-2, .grid-3 { 
        grid-template-columns: 1fr !important;
        gap: 12px; 
    }
    .card {
        width: 100% !important;
        padding: 15px !important;
    }
}

/* Wall Section Styles */
.wall-container { display: flex; min-height: calc(100vh - 200px); gap: 0; }

.template-sidebar { width: 280px; background: #16162a; border-right: 2px solid #1a1a2e; padding: 25px; position: sticky; top: 80px; height: fit-content; max-height: calc(100vh - 100px); overflow-y: auto; }
.template-sidebar h3 { margin-bottom: 20px; color: #00d4ff; font-size: 1.3rem; }
.template-sidebar .template-category { margin-bottom: 25px; }
.template-sidebar .template-category h4 { color: #aaa; font-size: 0.9rem; text-transform: uppercase; margin-bottom: 12px; letter-spacing: 1px; }
.template-sidebar .template-item { background: #0f0f14; padding: 12px 15px; margin-bottom: 8px; border-radius: 8px; cursor: pointer; transition: 0.3s; border-left: 3px solid transparent; }
.template-sidebar .template-item:hover { background: #1a1a2e; border-left-color: #00d4ff; transform: translateX(5px); }
.template-sidebar .template-item.active { background: #1a1a2e; border-left-color: #00d4ff; }
.template-sidebar .template-item .template-name { font-weight: bold; font-size: 0.95rem; margin-bottom: 3px; }
.template-sidebar .template-item .template-desc { font-size: 0.8rem; color: #888; }

.wall-content { flex: 1; padding: 40px; background: #0a0a0f; }
.wall-content .empty-state { text-align: center; padding: 100px 20px; color: #666; }
.wall-content .empty-state .icon { font-size: 5rem; margin-bottom: 20px; opacity: 0.3; }
.wall-content .empty-state h3 { font-size: 1.8rem; margin-bottom: 15px; color: #888; }
.wall-content .empty-state p { color: #666; max-width: 500px; margin: 0 auto; }

.template-preview { background: #16162a; border-radius: 12px; padding: 30px; }
.template-preview h3 { color: #00d4ff; margin-bottom: 20px; font-size: 1.8rem; }
.template-preview .form-group { margin-bottom: 20px; }
.template-preview .form-group label { display: block; margin-bottom: 8px; color: #ccc; font-weight: bold; }
.template-preview .form-group input, .template-preview .form-group textarea, .template-preview .form-group select { width: 100%; padding: 12px; background: #0f0f14; border: 1px solid #333; border-radius: 6px; color: #fff; font-family: inherit; }
.template-preview .form-group textarea { min-height: 100px; resize: vertical; }
.template-preview .form-group input:focus, .template-preview .form-group textarea:focus, .template-preview .form-group select:focus { outline: none; border-color: #00d4ff; }
.template-preview .survey-options { display: flex; flex-direction: column; gap: 10px; }
.template-preview .survey-option { display: flex; align-items: center; gap: 10px; }
.template-preview .survey-option input { width: auto; flex: 1; }
.template-preview .survey-option button { background: #ff0044; color: #fff; border: none; padding: 8px 12px; border-radius: 4px; cursor: pointer; }
.template-preview .add-option-btn { background: #00d4ff; color: #000; border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; font-weight: bold; margin-top: 10px; }
.template-preview .add-option-btn:hover { background: #00b8e6; }
.template-preview .submit-btn { background: linear-gradient(90deg, #00d4ff, #9d00ff); color: #fff; border: none; padding: 15px 30px; border-radius: 8px; cursor: pointer; font-weight: bold; font-size: 1.1rem; margin-top: 20px; }
.template-preview .submit-btn:hover { opacity: 0.9; transform: translateY(-2px); }

@media (max-width: 768px) {
    .wall-container { flex-direction: column; }
    .template-sidebar { width: 100%; position: relative; top: 0; max-height: none; border-right: none; border-bottom: 2px solid #1a1a2e; }
    .wall-content { padding: 20px; }
}

/* Auth Modal Styles */
.auth-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 1000; align-items: center; justify-content: center; }
.auth-modal.active { display: flex; }
.auth-modal-content { background: #16162a; padding: 40px; border-radius: 16px; max-width: 450px; width: 90%; position: relative; border: 1px solid #00d4ff; }
.auth-modal-close { position: absolute; top: 15px; right: 15px; font-size: 2rem; cursor: pointer; color: #888; transition: 0.3s; }
.auth-modal-close:hover { color: #00d4ff; }
.auth-tabs { display: flex; margin-bottom: 30px; gap: 10px; }
.auth-tab { flex: 1; padding: 12px; background: #0f0f14; border: none; color: #888; cursor: pointer; border-radius: 8px; font-weight: bold; transition: 0.3s; }
.auth-tab.active { background: linear-gradient(135deg, #00d4ff, #9d00ff); color: white; }
.auth-form-group { margin-bottom: 20px; }
.auth-form-group label { display: block; margin-bottom: 8px; color: #aaa; font-size: 0.9rem; }
.auth-form-group input { width: 100%; padding: 12px; background: #0f0f14; border: 1px solid #2a2a3e; border-radius: 8px; color: white; font-size: 1rem; }
.auth-form-group input:focus { outline: none; border-color: #00d4ff; }
.auth-submit-btn { width: 100%; padding: 14px; background: linear-gradient(135deg, #00d4ff, #9d00ff); border: none; color: white; font-weight: bold; font-size: 1rem; border-radius: 8px; cursor: pointer; transition: 0.3s; }
.auth-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,212,255,0.3); }
.auth-error { background: rgba(255,0,0,0.1); border: 1px solid #ff0000; color: #ff6b6b; padding: 12px; border-radius: 8px; margin-bottom: 15px; font-size: 0.9rem; }
.auth-success { background: rgba(0,255,0,0.1); border: 1px solid #00ff00; color: #6bff6b; padding: 12px; border-radius: 8px; margin-bottom: 15px; font-size: 0.9rem; }
.user-menu { position: relative; display: inline-block; margin-left: 20px; }
.user-button { background: rgba(0,212,255,0.1); border: 1px solid #00d4ff; color: white; padding: 8px 16px; border-radius: 8px; cursor: pointer; font-weight: bold; display: flex; align-items: center; gap: 8px; }
.user-dropdown { display: none; position: absolute; right: 0; top: 100%; margin-top: 10px; background: #16162a; border: 1px solid #00d4ff; border-radius: 8px; padding: 10px; min-width: 200px; }
.user-dropdown.active { display: block; }
.user-dropdown-item { padding: 10px; cursor: pointer; border-radius: 6px; transition: 0.3s; }
.user-dropdown-item:hover { background: rgba(0,212,255,0.1); }

/* Fix for layout issues */
body {
    overflow-x: hidden;
}

/* Ensure proper page transitions */
.page {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Fix for mobile menu positioning */
@media (max-width: 768px) {
    body.nav-open {
        overflow: hidden;
    }
    
    .nav-links.active {
        z-index: 999;
    }
}

/* Fix for grid layout */
.grid {
    display: grid;
    gap: 20px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Ensure cards have consistent height */
.card, .post-card {
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

/* Fix for hero section spacing */
.hero {
    position: relative;
    z-index: 1;
}

/* Add balance display to user button without changing dropdown */
.user-button::after {
  content: " | Balance: $0.00";
  color: #00ff88;
  font-size: 0.8em;
  margin-left: 5px;
}

/* Add to your existing style.css */
.cpalead-container {
    margin: 20px 0;
}

.offer-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.offer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.offer-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.1em;
}

.payout {
    background: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: bold;
}

.offer-desc {
    margin: 10px 0;
    color: #666;
    line-height: 1.4;
}

.offer-details {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    font-size: 0.9em;
    color: #888;
}

.offer-button {
    display: block;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 10px 15px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 10px;
}

.offer-button:hover {
    background: linear-gradient(45deg, #764ba2, #667eea);
    color: white;
    text-decoration: none;
}

/* Fix Payout Modal Scrolling */
.auth-modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

/* Better scrollbar styling */
.auth-modal-content::-webkit-scrollbar {
    width: 8px;
}

.auth-modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.auth-modal-content::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.5);
    border-radius: 4px;
}

.auth-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.7);
}

/* Fix User Dropdown Height and Scrolling */
.user-dropdown {
    max-height: 400px;
    overflow-y: auto;
}

/* Better spacing for dropdown items */
.user-dropdown-item {
    padding: 12px 16px;
    min-height: auto;
}

/* Scrollbar styling for dropdown */
.user-dropdown::-webkit-scrollbar {
    width: 6px;
}

.user-dropdown::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.user-dropdown::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.5);
    border-radius: 3px;
}

.user-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.7);
}

/* Better Mobile Dropdown Fix */
.user-dropdown {
    max-height: 70vh;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .user-menu {
        position: static !important;
    }
    
    .user-dropdown {
        position: fixed !important;
        top: 60px;
        right: 10px;
        left: 10px;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    }
}