/* ===== COSMIC THEME VARIABLES ===== */
:root {
    --cosmic-dark: #0a0a1a;
    --cosmic-purple: #1a1a3e;
    --cosmic-blue: #0d1b2a;
    --star-gold: #ffd700;
    --nebula-pink: #ff6b9d;
    --nebula-purple: #9d4edd;
    --celestial-blue: #4cc9f0;
    --cosmic-white: #f0f0ff;
    --success-green: #4ade80;
    --warning-orange: #fb923c;
    --error-red: #f87171;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Philosopher', sans-serif;
    background: linear-gradient(135deg, var(--cosmic-dark) 0%, var(--cosmic-purple) 50%, var(--cosmic-blue) 100%);
    min-height: 100vh;
    color: var(--cosmic-white);
    overflow-x: hidden;
    position: relative;
}

/* ===== ANIMATED STARS BACKGROUND ===== */
.stars, .twinkling, .constellation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.stars {
    background: 
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 230px 80px, #fff, transparent),
        radial-gradient(2px 2px at 300px 150px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 350px 200px, #fff, transparent),
        radial-gradient(2px 2px at 420px 100px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 480px 250px, #fff, transparent),
        radial-gradient(2px 2px at 550px 50px, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 600px 180px, #fff, transparent),
        radial-gradient(2px 2px at 680px 280px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 750px 120px, #fff, transparent),
        radial-gradient(2px 2px at 820px 220px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 900px 60px, #fff, transparent);
    background-size: 1000px 400px;
    animation: starsMove 100s linear infinite;
    z-index: 0;
}

@keyframes starsMove {
    from { background-position: 0 0; }
    to { background-position: 1000px 400px; }
}

.twinkling {
    background: 
        radial-gradient(3px 3px at 100px 150px, var(--star-gold), transparent),
        radial-gradient(2px 2px at 250px 300px, var(--celestial-blue), transparent),
        radial-gradient(3px 3px at 400px 100px, var(--nebula-pink), transparent),
        radial-gradient(2px 2px at 550px 350px, var(--star-gold), transparent),
        radial-gradient(3px 3px at 700px 200px, var(--nebula-purple), transparent),
        radial-gradient(2px 2px at 850px 400px, var(--celestial-blue), transparent);
    background-size: 1000px 500px;
    animation: twinkle 4s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes twinkle {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

.constellation {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600'%3E%3Cg fill='none' stroke='%234cc9f033' stroke-width='0.5'%3E%3Cpath d='M100,100 L150,80 L200,120 L180,180 L120,160 Z'/%3E%3Cpath d='M400,50 L450,100 L420,150 L380,120'/%3E%3Cpath d='M600,200 L650,180 L700,220 L680,280 L620,260'/%3E%3Cpath d='M200,400 L260,380 L300,420 L280,480 L220,460'/%3E%3Cpath d='M500,350 L560,330 L600,380 L570,440 L510,420'/%3E%3C/g%3E%3Cg fill='%23fff'%3E%3Ccircle cx='100' cy='100' r='2'/%3E%3Ccircle cx='150' cy='80' r='2'/%3E%3Ccircle cx='200' cy='120' r='2'/%3E%3Ccircle cx='180' cy='180' r='2'/%3E%3Ccircle cx='120' cy='160' r='2'/%3E%3Ccircle cx='400' cy='50' r='2'/%3E%3Ccircle cx='450' cy='100' r='2'/%3E%3Ccircle cx='420' cy='150' r='2'/%3E%3Ccircle cx='380' cy='120' r='2'/%3E%3Ccircle cx='600' cy='200' r='2'/%3E%3Ccircle cx='650' cy='180' r='2'/%3E%3Ccircle cx='700' cy='220' r='2'/%3E%3Ccircle cx='680' cy='280' r='2'/%3E%3Ccircle cx='620' cy='260' r='2'/%3E%3C/g%3E%3C/svg%3E");
    background-size: cover;
    opacity: 0.4;
    z-index: 2;
}

/* ===== ANIMATED PLANETS ===== */
.planets {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}

.planet {
    position: absolute;
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.planet.sun {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 30% 30%, #fff5c3, #ffd700, #ff8c00);
    box-shadow: 0 0 60px rgba(255, 215, 0, 0.6), 0 0 100px rgba(255, 140, 0, 0.4);
    top: 10%;
    right: 10%;
    animation: float 25s ease-in-out infinite, pulse 3s ease-in-out infinite;
}

.planet.moon {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle at 30% 30%, #f5f5f5, #c0c0c0, #a0a0a0);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    top: 25%;
    left: 8%;
    animation: float 18s ease-in-out infinite reverse;
}

.planet.mars {
    width: 30px;
    height: 30px;
    background: radial-gradient(circle at 30% 30%, #ffcccb, #ff6347, #8b0000);
    box-shadow: 0 0 20px rgba(255, 99, 71, 0.5);
    top: 60%;
    right: 15%;
    animation: float 22s ease-in-out infinite;
}

.planet.mercury {
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 30% 30%, #e0e0e0, #a0a0a0, #606060);
    box-shadow: 0 0 15px rgba(160, 160, 160, 0.4);
    top: 75%;
    left: 20%;
    animation: float 15s ease-in-out infinite;
}

.planet.jupiter {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle at 30% 30%, #f4d03f, #e67e22, #d35400);
    box-shadow: 0 0 40px rgba(230, 126, 34, 0.4);
    top: 40%;
    right: 5%;
    animation: float 30s ease-in-out infinite reverse;
}

.planet.venus {
    width: 25px;
    height: 25px;
    background: radial-gradient(circle at 30% 30%, #fffacd, #ffefd5, #ffdab9);
    box-shadow: 0 0 25px rgba(255, 250, 205, 0.5);
    top: 15%;
    left: 25%;
    animation: float 20s ease-in-out infinite;
}

.planet.saturn {
    width: 45px;
    height: 45px;
    background: radial-gradient(circle at 30% 30%, #f5deb3, #daa520, #b8860b);
    box-shadow: 0 0 35px rgba(218, 165, 32, 0.4);
    top: 80%;
    right: 25%;
    animation: float 28s ease-in-out infinite reverse;
}

.planet.saturn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-20deg);
    width: 70px;
    height: 10px;
    border: 2px solid rgba(218, 165, 32, 0.5);
    border-radius: 50%;
    background: transparent;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(0) translateX(20px); }
    75% { transform: translateY(20px) translateX(10px); }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 60px rgba(255, 215, 0, 0.6), 0 0 100px rgba(255, 140, 0, 0.4); }
    50% { box-shadow: 0 0 80px rgba(255, 215, 0, 0.8), 0 0 120px rgba(255, 140, 0, 0.6); }
}

/* ===== MAIN CONTAINER ===== */
.container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* ===== HEADER ===== */
header {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 30px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.logo-icon {
    font-size: 3rem;
    color: var(--star-gold);
    text-shadow: 0 0 20px var(--star-gold);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 20px var(--star-gold), 0 0 40px var(--star-gold); }
    to { text-shadow: 0 0 30px var(--star-gold), 0 0 60px var(--star-gold), 0 0 80px var(--nebula-pink); }
}

h1 {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--star-gold), var(--nebula-pink), var(--celestial-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    letter-spacing: 3px;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--celestial-blue);
    margin-top: 10px;
    letter-spacing: 2px;
}

.tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
    font-style: italic;
}

/* ===== INFO ACCORDION ===== */
.info-accordion {
    max-width: 800px;
    margin: 0 auto 30px;
}

.accordion-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 25px;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--celestial-blue);
    background: linear-gradient(135deg, rgba(76, 201, 240, 0.1), rgba(157, 78, 221, 0.1));
    border: 1px solid rgba(76, 201, 240, 0.4);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accordion-toggle:hover {
    background: linear-gradient(135deg, rgba(76, 201, 240, 0.2), rgba(157, 78, 221, 0.2));
    border-color: var(--celestial-blue);
}

.toggle-icon {
    font-size: 1.3rem;
}

.toggle-arrow {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.accordion-toggle.active .toggle-arrow {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.accordion-content.expanded {
    max-height: 2000px;
    transition: max-height 0.7s ease-in;
}

.info-card {
    background: linear-gradient(135deg, rgba(26, 26, 62, 0.95), rgba(13, 27, 42, 0.95));
    border: 1px solid rgba(76, 201, 240, 0.3);
    border-top: none;
    border-radius: 0 0 15px 15px;
    padding: 25px;
    margin-top: -10px;
}

.info-card h3 {
    color: var(--star-gold);
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    margin-bottom: 15px;
    text-align: center;
}

.info-card h4 {
    color: var(--celestial-blue);
    font-size: 1.1rem;
    margin: 20px 0 10px;
}

.info-card p {
    line-height: 1.7;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.info-card ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.info-card li {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 5px;
}

.score-guide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.score-item {
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

.score-item.excellent {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.4);
}

.score-item.good {
    background: rgba(76, 201, 240, 0.2);
    color: #4cc9f0;
    border: 1px solid rgba(76, 201, 240, 0.4);
}

.score-item.moderate {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.4);
}

.score-item.caution {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.4);
}

.info-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-style: italic;
    color: var(--star-gold) !important;
}

/* Koota Explanations in Info Section */
.koota-explain {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.koota-explain-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
}

.koota-explain-item:hover {
    border-color: rgba(255, 215, 0, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.koota-explain-item strong {
    color: var(--star-gold);
    font-size: 1rem;
    display: block;
    margin-bottom: 8px;
}

.koota-explain-item p {
    margin: 0 !important;
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

/* ===== INPUT SECTION ===== */
.input-section {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.person-card {
    background: linear-gradient(135deg, rgba(26, 26, 62, 0.9), rgba(13, 27, 42, 0.9));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    padding: 30px;
    width: 320px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.person-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.person-card.bride {
    border-color: rgba(255, 107, 157, 0.5);
}

.person-card.bride:hover {
    border-color: rgba(255, 107, 157, 0.8);
}

.person-card.groom {
    border-color: rgba(76, 201, 240, 0.5);
}

.person-card.groom:hover {
    border-color: rgba(76, 201, 240, 0.8);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.zodiac-symbol {
    font-size: 2.5rem;
}

.bride .zodiac-symbol {
    color: var(--nebula-pink);
    text-shadow: 0 0 15px var(--nebula-pink);
}

.groom .zodiac-symbol {
    color: var(--celestial-blue);
    text-shadow: 0 0 15px var(--celestial-blue);
}

.card-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.label-icon {
    color: var(--star-gold);
}

.cosmic-select {
    width: 100%;
    padding: 12px 15px;
    font-family: 'Philosopher', sans-serif;
    font-size: 1rem;
    background: linear-gradient(135deg, rgba(10, 10, 26, 0.9), rgba(26, 26, 62, 0.9));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    color: var(--cosmic-white);
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffd700'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
}

.cosmic-select:hover {
    border-color: var(--star-gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.cosmic-select:focus {
    outline: none;
    border-color: var(--star-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.cosmic-select option {
    background: var(--cosmic-dark);
    color: var(--cosmic-white);
    padding: 10px;
}

.selected-info {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Mangal Dosha Checkbox */
.mangal-dosha-check {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 99, 71, 0.1);
    border: 1px solid rgba(255, 99, 71, 0.3);
    border-radius: 8px;
}

.mangal-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
}

.mangal-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 99, 71, 0.5);
    border-radius: 5px;
    background: rgba(10, 10, 26, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.mangal-checkbox:checked {
    background: #ff6347;
    border-color: #ff6347;
}

.mangal-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.mangal-checkbox:hover {
    border-color: #ff6347;
    box-shadow: 0 0 10px rgba(255, 99, 71, 0.4);
}

.mangal-text {
    color: #ff6347;
    font-weight: 500;
}

/* ===== DIVIDER ===== */
.divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.union-icon {
    font-size: 3rem;
    color: var(--star-gold);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.4);
    animation: unionGlow 2s ease-in-out infinite alternate;
}

@keyframes unionGlow {
    0% { 
        transform: scale(1); 
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.4);
    }
    100% { 
        transform: scale(1.1); 
        text-shadow: 0 0 30px rgba(255, 215, 0, 1), 0 0 60px rgba(255, 107, 157, 0.6);
    }
}

.connecting-line {
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, var(--nebula-pink), var(--star-gold), var(--celestial-blue));
    margin-top: 10px;
}

/* ===== CALCULATE BUTTON ===== */
.calculate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 0 auto 40px;
    padding: 18px 50px;
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--cosmic-dark);
    background: linear-gradient(135deg, var(--star-gold), #ffed4a, var(--star-gold));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 30px rgba(255, 215, 0, 0.4);
}

.calculate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.6);
}

.calculate-btn:active {
    transform: translateY(0);
}

/* Mangal Dosha Button */
.mangal-btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 99, 71, 0.3), rgba(255, 69, 0, 0.4));
    border: 1px solid rgba(255, 99, 71, 0.6);
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(255, 99, 71, 0.2);
}

.mangal-btn:hover {
    background: linear-gradient(135deg, rgba(255, 99, 71, 0.5), rgba(255, 69, 0, 0.6));
    border-color: #ff6347;
    box-shadow: 0 5px 25px rgba(255, 99, 71, 0.4);
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 1.5rem;
    animation: sparkle 1s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

/* ===== RESULTS SECTION ===== */
.results-section {
    background: linear-gradient(135deg, rgba(26, 26, 62, 0.95), rgba(13, 27, 42, 0.95));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 25px;
    padding: 40px;
    margin-bottom: 40px;
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden {
    display: none !important;
}

.results-header {
    text-align: center;
    margin-bottom: 40px;
}

.results-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--star-gold);
}

/* ===== SCORE CIRCLE ===== */
.score-circle {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 25px;
}

.score-circle svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.score-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 8;
}

.score-progress {
    fill: none;
    stroke: url(#scoreGradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1.5s ease-out;
}

.score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-text span:first-child {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--star-gold);
}

.score-max {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
}

.verdict {
    font-size: 1.5rem;
    font-weight: 600;
    padding: 15px 30px;
    border-radius: 30px;
    display: inline-block;
    margin-top: 10px;
}

.verdict.excellent {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.2), rgba(34, 197, 94, 0.2));
    color: var(--success-green);
    border: 1px solid var(--success-green);
}

.verdict.very-good {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.15), rgba(34, 197, 94, 0.15));
    color: #86efac;
    border: 1px solid #86efac;
}

.verdict.good {
    background: linear-gradient(135deg, rgba(76, 201, 240, 0.2), rgba(56, 189, 248, 0.2));
    color: var(--celestial-blue);
    border: 1px solid var(--celestial-blue);
}

.verdict.moderate {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.2), rgba(249, 115, 22, 0.2));
    color: var(--warning-orange);
    border: 1px solid var(--warning-orange);
}

.verdict.bad {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.2), rgba(239, 68, 68, 0.2));
    color: var(--error-red);
    border: 1px solid var(--error-red);
}

/* ===== KOOTA GRID ===== */
.koota-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.koota-item {
    background: linear-gradient(135deg, rgba(10, 10, 26, 0.8), rgba(26, 26, 62, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.koota-item:hover {
    border-color: var(--star-gold);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Koota Tooltips */
.koota-item.has-tooltip {
    position: relative;
    cursor: help;
}

.koota-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    padding: 12px 15px;
    background: linear-gradient(135deg, rgba(10, 10, 26, 0.98), rgba(26, 26, 62, 0.98));
    border: 1px solid var(--star-gold);
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--cosmic-white);
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.koota-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: var(--star-gold);
}

.koota-item.has-tooltip:hover .koota-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 15px);
}

.koota-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-family: 'Segoe UI Symbol', 'Apple Symbols', sans-serif;
}

.icon-sun { color: #FFD700; text-shadow: 0 0 15px rgba(255, 215, 0, 0.6); }
.icon-gana { color: #9D4EDD; text-shadow: 0 0 15px rgba(157, 78, 221, 0.6); }
.icon-yoni { color: #FF6B9D; text-shadow: 0 0 15px rgba(255, 107, 157, 0.6); }
.icon-rasi { color: #C0C0C0; text-shadow: 0 0 15px rgba(192, 192, 192, 0.6); }
.icon-lord { color: #FF8C00; text-shadow: 0 0 15px rgba(255, 140, 0, 0.6); }
.icon-rajju { color: #4CC9F0; text-shadow: 0 0 15px rgba(76, 201, 240, 0.6); }
.icon-vedha { color: #F87171; text-shadow: 0 0 15px rgba(248, 113, 113, 0.6); }
.icon-vasya { color: #4ADE80; text-shadow: 0 0 15px rgba(74, 222, 128, 0.6); }
.icon-mahendra { color: #FBBF24; text-shadow: 0 0 15px rgba(251, 191, 36, 0.6); }
.icon-stree { color: #EC4899; text-shadow: 0 0 15px rgba(236, 72, 153, 0.6); }

.koota-name {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--star-gold);
    margin-bottom: 5px;
}

.koota-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
}

.koota-score {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.koota-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.koota-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--nebula-pink), var(--star-gold), var(--celestial-blue));
    border-radius: 3px;
    width: 0;
    transition: width 1s ease-out;
}

/* ===== INTERPRETATION ===== */
.interpretation {
    background: rgba(10, 10, 26, 0.6);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.interpretation h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--star-gold);
    margin-bottom: 20px;
    text-align: center;
}

#interpretation-text {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

#interpretation-text p {
    margin-bottom: 15px;
}

#interpretation-text .highlight {
    color: var(--star-gold);
    font-weight: 600;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.zodiac-band {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 1.8rem;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.zodiac-band span {
    color: var(--star-gold);
    opacity: 0.7;
    transition: all 0.3s ease;
    cursor: default;
}

.zodiac-band span:hover {
    opacity: 1;
    transform: scale(1.2);
    text-shadow: 0 0 15px var(--star-gold);
}

footer p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
}

.disclaimer {
    font-size: 0.85rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.4);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .logo-icon {
        font-size: 2rem;
    }

    .input-section {
        flex-direction: column;
        align-items: center;
    }

    .person-card {
        width: 100%;
        max-width: 350px;
    }

    .divider {
        transform: rotate(90deg);
        padding: 30px 0;
    }

    .connecting-line {
        width: 80px;
        height: 2px;
    }

    .calculate-btn {
        padding: 15px 35px;
        font-size: 1.1rem;
    }

    .results-section {
        padding: 25px;
    }

    .koota-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .planet.sun { width: 40px; height: 40px; }
    .planet.moon { width: 30px; height: 30px; }
    .planet.jupiter { width: 35px; height: 35px; }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    header {
        padding: 20px 10px;
    }

    h1 {
        font-size: 1.6rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .person-card {
        padding: 20px;
    }

    .score-circle {
        width: 140px;
        height: 140px;
    }

    .score-text span:first-child {
        font-size: 2.2rem;
    }

    .koota-item {
        padding: 15px;
    }

    .koota-icon {
        font-size: 1.5rem;
    }

    .koota-name {
        font-size: 1rem;
    }
}

/* ===== LOADING ANIMATION ===== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    border-top-color: var(--star-gold);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== TOOLTIP ===== */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: var(--cosmic-dark);
    border: 1px solid var(--star-gold);
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 10px);
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--star-gold), #ffed4a);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--cosmic-dark);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.6);
}

/* ===== ACTION BUTTONS ===== */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
}

.action-btn .action-icon {
    font-size: 1.3rem;
}

.print-btn {
    color: var(--celestial-blue);
    border-color: var(--celestial-blue);
}

.print-btn:hover {
    background: var(--celestial-blue);
    color: var(--cosmic-dark);
    box-shadow: 0 5px 25px rgba(76, 201, 240, 0.4);
}

.reset-btn {
    color: var(--nebula-pink);
    border-color: var(--nebula-pink);
}

.reset-btn:hover {
    background: var(--nebula-pink);
    color: var(--cosmic-dark);
    box-shadow: 0 5px 25px rgba(255, 107, 157, 0.4);
}

/* ===== PRINT STYLES ===== */
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body {
        background: white !important;
        color: #1a1a1a !important;
        font-size: 12pt;
    }

    .stars, .twinkling, .constellation, .planets,
    .input-section, .calculate-btn, .divider,
    .action-buttons, footer, .zodiac-band {
        display: none !important;
    }

    .container {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    header {
        padding: 20px 0;
        margin-bottom: 20px;
        border-bottom: 2px solid #333;
    }

    header .logo-icon {
        color: #333 !important;
        text-shadow: none !important;
    }

    h1 {
        background: none !important;
        -webkit-text-fill-color: #1a1a1a !important;
        color: #1a1a1a !important;
        font-size: 24pt;
    }

    .subtitle, .tagline {
        color: #666 !important;
    }

    .results-section {
        display: block !important;
        background: white !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        animation: none !important;
    }

    .results-header h2 {
        color: #1a1a1a !important;
        font-size: 18pt;
    }

    .score-circle {
        width: 120px;
        height: 120px;
    }

    .score-text span:first-child {
        color: #1a1a1a !important;
        font-size: 2rem;
    }

    .verdict {
        background: #f0f0f0 !important;
        color: #1a1a1a !important;
        border-color: #333 !important;
        padding: 10px 20px;
    }

    .koota-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        page-break-inside: avoid;
    }

    .koota-item {
        background: #f9f9f9 !important;
        border: 1px solid #ddd !important;
        padding: 15px;
        page-break-inside: avoid;
    }

    .koota-icon {
        color: #333 !important;
        text-shadow: none !important;
    }

    .koota-name {
        color: #1a1a1a !important;
    }

    .koota-desc {
        color: #666 !important;
    }

    .koota-bar {
        background: #e0e0e0 !important;
    }

    .koota-fill {
        background: #333 !important;
    }

    .interpretation {
        background: #f9f9f9 !important;
        border: 1px solid #ddd !important;
        margin-top: 20px;
        page-break-inside: avoid;
    }

    .interpretation h3 {
        color: #1a1a1a !important;
    }

    #interpretation-text {
        color: #333 !important;
    }

    /* Print header info */
    .print-header-info {
        display: block !important;
        text-align: center;
        margin-bottom: 20px;
        padding: 15px;
        background: #f0f0f0;
        border-radius: 8px;
    }
}
