* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 800px;
    width: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    margin-bottom: 30px;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.calculator {
    padding: 40px;
}

.calendar-tabs {
    display: flex;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
}

.calendar-tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.calendar-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.calendar-content {
    display: none;
}

.calendar-content.active {
    display: block;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #555;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.lunar-inputs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.time-inputs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.btn {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn:active {
    transform: translateY(0);
}

.result {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 5px solid #667eea;
}

.result h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #333;
    text-align: center;
}

.age-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.age-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.age-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 5px;
}

.age-label {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.info-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #555;
    text-align: center;
}

.info-list {
    list-style: none;
}

.info-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-label {
    color: #666;
}

.info-value {
    font-weight: 600;
    color: #667eea;
}

.zodiac-info {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 20px;
}

.zodiac-icon {
    font-size: 4rem;
    margin-bottom: 10px;
}

.zodiac-name {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.footer p {
    color: #666;
    margin-bottom: 15px;
}

.friend-links {
    margin-top: 20px;
}

.friend-links h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #555;
}

.friend-links ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.friend-links a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.friend-links a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.seo-content {
    max-width: 800px;
    width: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.seo-content h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.seo-content p {
    color: #555;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .calculator {
        padding: 25px;
    }
    
    .age-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .age-value {
        font-size: 2rem;
    }
    
    .lunar-inputs {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.6rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .calculator {
        padding: 20px;
    }
    
    .age-grid {
        grid-template-columns: 1fr;
    }
    
    .lunar-inputs {
        grid-template-columns: 1fr;
    }
    
    .time-inputs {
        grid-template-columns: 1fr;
    }
}