/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6B46C1;
    --secondary-color: #9F7AEA;
    --accent-color: #E9D5FF;
    --dark-bg: #0F0F23;
    --card-bg: #1A1A2E;
    --text-light: #E2E8F0;
    --text-muted: #94A3B8;
    --border-color: #2D3748;
    --love-color: #EC4899;
    --career-color: #3B82F6;
    --money-color: #10B981;
    --health-color: #F59E0B;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated Starry Background */
.stars, .twinkling {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
}

.stars {
    background: #000 url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEklEQVQIW2NkYGD4z8DAwAAACQQBAQAAABk=') repeat top center;
}

.twinkling {
    background: transparent url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEklEQVQIW2NkYGD4z8DAwAAACQQBAQAAABk=') repeat top center;
    animation: move-twink-back 200s linear infinite;
}

@keyframes move-twink-back {
    from { background-position: 0 0; }
    to { background-position: -10000px 5000px; }
}

/* Dashboard Container */
.dashboard-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.dashboard-header {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(107, 70, 193, 0.1) 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.zodiac-icon {
    font-size: 60px;
    color: var(--primary-color);
    animation: float 3s ease-in-out infinite;
}

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

.logo-text h1 {
    font-size: 36px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.logo-text p {
    color: var(--text-muted);
    font-size: 16px;
}

.date-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(107, 70, 193, 0.2);
    padding: 12px 24px;
    border-radius: 12px;
    border: 1px solid var(--primary-color);
}

.date-info .icon {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

.date-info span {
    font-size: 16px;
    font-weight: 500;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.2) 0%, rgba(159, 122, 234, 0.1) 100%);
    border-radius: 20px;
    padding: 60px 40px;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    font-weight: 400;
}

.cosmic-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    position: relative;
    animation: pulse 4s ease-in-out infinite;
}

.planet {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 40px rgba(107, 70, 193, 0.6);
    animation: rotate 20s linear infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(107, 70, 193, 0.3);
    border-color: var(--primary-color);
}

.stat-card[data-category="love"]:hover {
    border-color: var(--love-color);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.3);
}

.stat-card[data-category="career"]:hover {
    border-color: var(--career-color);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.stat-card[data-category="money"]:hover {
    border-color: var(--money-color);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.stat-card[data-category="health"]:hover {
    border-color: var(--health-color);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(107, 70, 193, 0.2);
}

.stat-card[data-category="love"] .stat-icon {
    background: rgba(236, 72, 153, 0.2);
}

.stat-card[data-category="career"] .stat-icon {
    background: rgba(59, 130, 246, 0.2);
}

.stat-card[data-category="money"] .stat-icon {
    background: rgba(16, 185, 129, 0.2);
}

.stat-card[data-category="health"] .stat-icon {
    background: rgba(245, 158, 11, 0.2);
}

.stat-icon .icon {
    width: 30px;
    height: 30px;
    color: var(--primary-color);
}

.stat-card[data-category="love"] .stat-icon .icon {
    color: var(--love-color);
}

.stat-card[data-category="career"] .stat-icon .icon {
    color: var(--career-color);
}

.stat-card[data-category="money"] .stat-icon .icon {
    color: var(--money-color);
}

.stat-card[data-category="health"] .stat-icon .icon {
    color: var(--health-color);
}

.stat-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-light);
}

.rating {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.star {
    color: #FCD34D;
    font-size: 18px;
}

.star.half {
    background: linear-gradient(90deg, #FCD34D 50%, var(--text-muted) 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.star.empty {
    color: var(--text-muted);
}

.stat-content p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.detail-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(107, 70, 193, 0.2);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.card-header .icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.card-header h3 {
    font-size: 20px;
    color: var(--text-light);
}

.card-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 15px;
}

.highlight-box {
    background: rgba(107, 70, 193, 0.1);
    border-left: 3px solid var(--primary-color);
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.small-icon {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}

.highlight-box span {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
}

/* Lucky Section */
.lucky-section {
    margin-bottom: 40px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    margin-bottom: 25px;
    color: var(--text-light);
}

.section-title .icon {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
}

.lucky-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.lucky-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.lucky-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(107, 70, 193, 0.3);
    border-color: var(--primary-color);
}

.lucky-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 12px;
    background: rgba(107, 70, 193, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lucky-icon .icon {
    width: 30px;
    height: 30px;
    color: var(--primary-color);
}

.lucky-card h4 {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.lucky-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 10px;
}

.color-swatch {
    width: 60px;
    height: 30px;
    margin: 10px auto 0;
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

.energy-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    margin-top: 10px;
    overflow: hidden;
}

.energy-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 4px;
    animation: fillBar 2s ease-out;
}

@keyframes fillBar {
    from { width: 0; }
}

/* Footer */
.dashboard-footer {
    text-align: center;
    padding: 30px;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

.dashboard-footer p {
    margin-bottom: 10px;
}

.footer-note {
    font-size: 14px;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 15px;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        flex-direction: column;
    }

    .hero-section {
        flex-direction: column;
        padding: 40px 25px;
    }

    .hero-title {
        font-size: 32px;
    }

    .cosmic-circle {
        width: 150px;
        height: 150px;
    }

    .stats-grid,
    .details-grid,
    .lucky-grid {
        grid-template-columns: 1fr;
    }
}

/* Icon Styles */
.icon {
    stroke-width: 2;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}