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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #667eea;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #667eea;
}

/* Header */
.header {
    text-align: center;
    margin: 40px 0;
    padding: 40px 0;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
    color: #333;
}

.header p {
    font-size: 1.2em;
    color: #666;
}

/* Main Card */
.main-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
}

.form-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-error {
    background-color: #fee;
    border-left: 4px solid #e74c3c;
    color: #c0392b;
}

.alert-success {
    background-color: #f0f8f0;
    border-left: 4px solid #27ae60;
    color: #27ae60;
}

/* Result Card */
.result-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-top: 25px;
    border: 1px solid #e9ecef;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    font-weight: 600;
    color: #495057;
}

.result-value {
    color: #28a745;
    font-weight: 500;
}

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

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: #333;
}

/* Info Section */
.info-section {
    background: white;
    padding: 40px;
    border-radius: 10px;
    margin-top: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.info-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.info-section p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #666;
}

.info-section ul {
    color: #666;
}

/* AdSense Ad Styles */
.ad-banner {
    margin: 20px 0;
    text-align: center;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-content {
    margin: 30px 0;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-rectangle {
    margin: 30px 0;
    text-align: center;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-text {
    margin: 20px 0;
    text-align: center;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-footer {
    margin: 30px 0;
    text-align: center;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 0;
    color: #666;
    border-top: 1px solid #e9ecef;
    margin-top: 50px;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: #667eea;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Page Specific Styles */
.page-header {
    background: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #e9ecef;
}

.page-header h1 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.1em;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.content-section {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    margin-bottom: 30px;
}

.content-section h2 {
    color: #333;
    margin: 30px 0 15px 0;
    font-size: 1.5em;
}

.content-section h2:first-child {
    margin-top: 0;
}

.content-section p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #666;
}

.content-section ul, .content-section ol {
    margin: 15px 0;
    padding-left: 30px;
    color: #666;
}

.content-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .main-card, .content-section {
        padding: 25px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .page-header h1 {
        font-size: 2em;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .footer-links a {
        display: block;
        margin: 5px 0;
    }
}

@media (max-width: 480px) {
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .header {
        margin: 20px 0;
        padding: 20px 0;
    }
    
    .header h1 {
        font-size: 1.8em;
    }
    
    .page-header {
        padding: 40px 0;
    }
    
    .page-header h1 {
        font-size: 1.8em;
    }
}