* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #e8e8e8;
    min-height: 100vh;
    overflow-x: hidden;
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

header {
    text-align: center;
    padding: 60px 20px 40px;
    position: relative;
    z-index: 10;
}

h1 {
    font-size: 3em;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2em;
    color: #b8a8d4;
    font-style: italic;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.birth-data {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.birth-data h2 {
    text-align: center;
    color: #ffd700;
    margin-bottom: 30px;
    font-size: 2em;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ffd700;
    font-size: 1.1em;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #e8e8e8;
    font-size: 1em;
}

.form-group input:focus {
    outline: none;
    border-color: #ffd700;
}

.btn {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a1a2e;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 30px auto 0;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.zodiac-selector {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.zodiac-selector h2 {
    text-align: center;
    color: #ffd700;
    margin-bottom: 30px;
    font-size: 2em;
}

.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.zodiac-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zodiac-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffd700;
    transform: translateY(-5px);
}

.zodiac-card.active {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
}

.zodiac-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.zodiac-name {
    font-size: 1.1em;
    color: #e8e8e8;
}

.zodiac-dates {
    font-size: 0.9em;
    color: #b8a8d4;
    margin-top: 5px;
}

.planetary-positions {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: none;
}

.planetary-positions.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.planetary-positions h3 {
    text-align: center;
    color: #ffd700;
    margin-bottom: 30px;
    font-size: 2em;
}

.planet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.planet-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.planet-name {
    font-size: 1.3em;
    color: #ffd700;
    margin-bottom: 10px;
}

.planet-sign {
    font-size: 1.1em;
    color: #e8e8e8;
    margin-bottom: 5px;
}

.planet-degree {
    font-size: 0.9em;
    color: #b8a8d4;
}

.horoscope-display {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: none;
    animation: fadeIn 0.5s ease;
}

.horoscope-display.show {
    display: block;
}

.horoscope-header {
    text-align: center;
    margin-bottom: 30px;
}

.horoscope-header h3 {
    font-size: 2.5em;
    color: #ffd700;
    margin-bottom: 10px;
}

.horoscope-content {
    line-height: 1.8;
    font-size: 1.1em;
}

.horoscope-section {
    margin-bottom: 25px;
}

.horoscope-section h4 {
    color: #ffd700;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.moon-phase {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
}

.moon-icon {
    font-size: 4em;
    margin-bottom: 10px;
}

.loading {
    text-align: center;
    color: #ffd700;
    padding: 20px;
}

.error {
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid #ff4444;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    color: #ffcccc;
}

footer {
    text-align: center;
    padding: 40px 20px;
    color: #b8a8d4;
    font-size: 0.9em;
}

.autocomplete-suggestions {
    border: 1px solid #ccc;
    max-height: 150px;
    overflow-y: auto;
    position: absolute;
    background: #fff;
    z-index: 1000;
    width: 100%;
}

.autocomplete-suggestion {
    padding: 5px 10px;
    cursor: pointer;
}

.autocomplete-suggestion:hover {
    background-color: #eee;
}
