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

:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --secondary: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #f9fafb;
    --card-bg: #ffffff;
    --border: #e5e7eb;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.top-nav {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-bottom: 2px solid var(--primary-dark);
    padding: 1rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-auth {
    background: white;
    color: var(--primary);
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 2px solid white;
    font-size: 0.95rem;
}

.btn-auth:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#userMenu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.status-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.status-item {
    display: flex;
    flex-direction: column;
}

.status-item .label {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.status-item .value {
    font-size: 1.25rem;
    font-weight: 600;
}

.upload-area {
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.upload-text {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.upload-hint {
    font-size: 0.9rem;
    color: var(--text-light);
}

.file-info {
    background: var(--bg);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-remove {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0.25rem 0.5rem;
}

.btn-remove:hover {
    color: var(--danger);
}

.btn-primary,
.btn-secondary {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-primary:disabled {
    background: var(--border);
    cursor: not-allowed;
}

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

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.progress-bar {
    margin-top: 1rem;
    background: var(--bg);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    animation: progress 2s ease-in-out infinite;
}

.progress-text {
    position: relative;
    z-index: 1;
    font-weight: 600;
}

@keyframes progress {
    0% { width: 0%; }
    50% { width: 100%; }
    100% { width: 0%; }
}

.error-msg,
.success-msg {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
}

.error-msg {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.success-msg {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.pricing-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.pricing-option {
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
}

.pricing-option.featured {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-option h3 {
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1rem 0;
}

.description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.faq-card h2 {
    margin-bottom: 1rem;
}

details {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

summary {
    cursor: pointer;
    font-weight: 600;
    padding: 0.5rem 0;
    user-select: none;
}

summary:hover {
    color: var(--primary);
}

details p {
    margin-top: 0.5rem;
    color: var(--text-light);
    padding-left: 1rem;
}

footer {
    text-align: center;
    color: var(--text-light);
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

/* Advertisement Sections */
.ad-banner {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.ad-label {
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.ad-content {
    background: var(--bg);
    border-radius: 4px;
    overflow: hidden;
}

.ad-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: 90px;
    color: var(--text-light);
    border: 2px dashed var(--border);
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
}

.ad-placeholder p {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
}

.ad-placeholder small {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.content-with-ads {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.main-content {
    flex: 1;
}

.ad-sidebar {
    width: 300px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    position: sticky;
    top: 1rem;
    height: fit-content;
}

.ad-sidebar-content {
    min-height: 250px;
}


@media (max-width: 768px) {
    .content-with-ads {
        flex-direction: column;
    }
    
    .ad-sidebar {
        width: 100%;
        position: static;
    }
    
    .ad-placeholder {
        min-height: 60px;
        padding: 1rem;
    }
    
    .ad-sidebar-content {
        min-height: 200px;
    }
}

@media (max-width: 640px) {
    .logo h2 {
        font-size: 1.2rem;
    }
    
    .btn-auth {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .user-name {
        display: none;
    }
    
    .btn-logout {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .status-panel {
        grid-template-columns: 1fr;
    }
    
    .upload-area {
        padding: 2rem 1rem;
    }
}

/* Footer Styles */
footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-light);
}

.footer-links {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
    margin: 0 0.5rem;
}

.footer-links a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Policy Pages Styles */
.policy-card {
    max-width: 900px;
    margin: 0 auto;
}

.policy-card h1 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

.policy-card h2 {
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
}

.policy-card h3 {
    color: var(--text);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.policy-card section {
    margin-bottom: 2rem;
}

.policy-card p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text);
}

.policy-card ul, .policy-card ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.policy-card li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.policy-card a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.policy-card a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.last-updated {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

/* Contact Page Styles */
.contact-info {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    margin: 1rem 0;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info a {
    font-weight: 600;
}

/* About Page Pricing Info */
.pricing-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.pricing-tier {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.pricing-tier:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pricing-tier h3 {
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.pricing-tier ul {
    list-style: none;
    margin-left: 0;
}

.pricing-tier li {
    padding-left: 1.5rem;
    position: relative;
}

.pricing-tier li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}
