* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

:root {
    --bg-gradient: linear-gradient(135deg, #fdfcfb 0%, #e2d1c3 100%);
    --pastel-lavender: #E6E6FA;
    --pastel-mint: #F5FFFA;
    --pastel-peach: #FFDAB9;
    --pastel-pink: #FFF0F5;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --text-main: #333;
    --text-muted: #666;
    --accent: #b19cd9;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(-45deg, #fef1fb, #e0f2fe, #f0fdf4, #fff7ed);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--text-main);
    padding: 20px;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.container {
    max-width: 1000px;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 32px;
    border: 1px solid var(--glass-border);
    padding: 60px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 40px auto;
}

.top-nav {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 30px;
}

.return-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.return-btn:hover {
    transform: translateX(-5px);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 6px 20px rgba(177, 156, 217, 0.1);
}

.return-btn svg {
    transition: transform 0.3s ease;
}

.return-btn:hover svg {
    transform: translateX(-3px);
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(to right, #b19cd9, #ffb7b2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.input-section {
    margin-bottom: 40px;
}

.input-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input[type="date"] {
    width: 100%;
    padding: 15px 20px;
    border-radius: 16px;
    border: 2px solid #f0f0f0;
    background: white;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
    color: var(--text-main);
}

input[type="date"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(177, 156, 217, 0.2);
}

.result-section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.result-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.zodiac-card {
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.zodiac-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pastel-pink);
    border-radius: 50%;
    font-size: 2.5rem;
}

.zodiac-icon.pop {
    animation: popRotate 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popRotate {
    0% {
        transform: scale(0.5) rotate(-45deg);
        opacity: 0;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.zodiac-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--accent);
}

.zodiac-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.horoscope-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-main);
}

.traits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}

@media (min-width: 768px) {
    .traits-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.trait-item {
    padding: 15px;
    background: #fdfdfd;
    border-radius: 16px;
    border: 1px solid #f5f5f5;
}

.trait-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 5px;
}

.trait-value {
    font-weight: 600;
    color: var(--text-main);
}

/* SEO Article Styling */
.seo-article {
    margin-top: 20px;
    text-align: left;
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.seo-article h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.seo-article h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
    color: var(--text-main);
}

.seo-article p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.seo-article strong {
    color: var(--text-main);
    font-weight: 600;
}

.cta-box {
    background: linear-gradient(135deg, var(--pastel-lavender), var(--pastel-pink));
    padding: 20px;
    border-radius: 16px;
    margin: 20px 0;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.cta-box p {
    margin-bottom: 0;
    color: var(--text-main);
}

.traits-container {
    display: grid;
    gap: 20px;
}

@media (min-width: 768px) {
    .traits-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.traits-container h4 {
    margin-top: 25px;
    color: var(--accent);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Table Styling */
.table-container {
    overflow-x: auto;
    margin: 25px 0;
    border-radius: 12px;
    border: 1px solid #eee;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th,
td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f5f5f5;
}

th {
    background: var(--pastel-lavender);
    color: var(--text-main);
    font-weight: 600;
}

tr:last-child td {
    border-bottom: none;
}

/* FAQ Styling */
.faq-section dl {
    margin-top: 20px;
}

.faq-section dt {
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.faq-section dd {
    margin-bottom: 25px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-left: 0;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .container {
        padding: 25px;
        margin: 10px;
    }

    header h1 {
        font-size: 2rem;
    }

    .seo-article h2 {
        font-size: 1.5rem;
    }
}