/* ===== CSS Variables & Reset ===== */
:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #12122a;
    --bg-tertiary: #1a1a3e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0c0;
    --accent-gold: #ffd700;
    --accent-purple: #a855f7;
    --accent-pink: #ff6b9d;
    --accent-green: #00d9a5;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    --gradient-cosmic: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-glow: 0 0 60px rgba(167, 85, 247, 0.3);
    --font-display: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Utility Classes ===== */
.gradient-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: all 0.4s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gradient-1);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(102, 126, 234, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(167, 85, 247, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(240, 147, 251, 0.1) 0%, transparent 70%),
        var(--bg-primary);
    z-index: -2;
}

.stars {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(2px 2px at 20px 30px, white, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, white, transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(255, 215, 0, 0.8), transparent),
        radial-gradient(1px 1px at 230px 80px, white, transparent),
        radial-gradient(2px 2px at 300px 150px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 350px 60px, white, transparent),
        radial-gradient(2px 2px at 420px 180px, rgba(167, 85, 247, 0.8), transparent),
        radial-gradient(1px 1px at 500px 100px, white, transparent),
        radial-gradient(2px 2px at 580px 40px, rgba(255, 255, 255, 0.7), transparent);
    background-size: 600px 200px;
    animation: twinkle 8s linear infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 48px;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-gold);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-weight: 400;
    color: var(--text-secondary);
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.2s both;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: var(--gradient-gold);
    color: var(--bg-primary);
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.3);
    animation: fadeInUp 1s ease 0.4s both;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 50px rgba(255, 215, 0, 0.4);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    animation: bounce 2s ease infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(45deg);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===== Introduction Section ===== */
.intro-section {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.intro-card {
    padding: 40px;
    text-align: center;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.intro-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.intro-card p {
    color: var(--text-secondary);
}

/* ===== Spheres Section ===== */
.spheres-section {
    padding: 120px 0;
    background: var(--bg-primary);
}

.spheres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.sphere-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.sphere-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.sphere-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
}

.sphere-card:hover::before {
    transform: scaleX(1);
}

.sphere-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
}

.sphere-icon svg {
    width: 100%;
    height: 100%;
}

.sphere-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.sphere-card>p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.sphere-details {
    text-align: left;
    padding-left: 20px;
}

.sphere-details li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.sphere-details li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-size: 0.7rem;
}

/* ===== Karma Section ===== */
.karma-section {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.karma-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}

.karma-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.infinity-symbol {
    font-size: 10rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 3s ease infinite;
}

.karma-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(167, 85, 247, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: glow 4s ease infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes glow {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.karma-info {
    display: grid;
    gap: 20px;
}

.karma-card {
    padding: 30px;
}

.karma-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.karma-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ===== Arcana Section ===== */
.arcana-section {
    padding: 120px 0;
    background: var(--bg-primary);
}

.arcana-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
}

.arcana-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.arcana-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-gold);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.2);
}

.arcana-number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.arcana-name {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ===== Forecast Section ===== */
.forecast-section {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.forecast-card {
    padding: 40px;
    text-align: center;
}

.forecast-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.forecast-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.forecast-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.forecast-feature {
    display: inline-block;
    padding: 10px 20px;
    background: var(--gradient-1);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ===== Compatibility Section ===== */
.compatibility-section {
    padding: 120px 0;
    background: var(--bg-primary);
}

.compatibility-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.compatibility-visual {
    position: relative;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.compat-circle {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    opacity: 0.6;
}

.circle-1 {
    background: var(--gradient-1);
    left: 20%;
    animation: floatLeft 4s ease infinite;
}

.circle-2 {
    background: var(--gradient-2);
    right: 20%;
    animation: floatRight 4s ease infinite;
}

.compat-intersection {
    position: relative;
    z-index: 1;
    font-size: 3rem;
    color: var(--accent-gold);
    animation: pulse 2s ease infinite;
}

@keyframes floatLeft {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(20px);
    }
}

@keyframes floatRight {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-20px);
    }
}

.compatibility-info {
    padding: 40px;
}

.compatibility-info h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.compatibility-info>p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.compatibility-info ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.compatibility-info li {
    padding-left: 24px;
    position: relative;
    color: var(--text-secondary);
}

.compatibility-info li::before {
    content: '♦';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
}

.compatibility-info li strong {
    color: var(--text-primary);
}

/* ===== Footer ===== */
.footer {
    padding: 80px 0 40px;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    text-align: center;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 16px;
}

.footer-text {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.footer-links a {
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== Expanded Content Styles ===== */

/* Info Block */
.info-block {
    padding: 40px;
    margin-top: 40px;
}

.info-block h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.info-content {
    color: var(--text-secondary);
}

.info-content p {
    margin-bottom: 16px;
}

/* Detailed Lists */
.detailed-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.detailed-list li {
    padding-left: 24px;
    position: relative;
    color: var(--text-secondary);
}

.detailed-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
}

.detailed-list li strong {
    color: var(--text-primary);
}

/* Sphere Detailed */
.sphere-detailed {
    padding: 40px;
    margin-bottom: 30px;
}

.sphere-detailed h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.sphere-detailed>p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.sphere-detailed h4 {
    font-size: 1.1rem;
    margin: 24px 0 12px;
    color: var(--accent-gold);
}

.sphere-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

/* Karma Grid */
.karma-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.karma-grid .karma-card {
    padding: 30px;
}

.karma-grid .karma-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.karma-grid .karma-card p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* Arcana Detailed Grid */
.arcana-detailed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.arcana-detail-card {
    padding: 24px;
}

.arcana-detail-card .arcana-num {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.arcana-detail-card h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.arcana-detail-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

/* Forecast Detailed */
.forecast-detailed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.forecast-detailed-grid .forecast-card {
    text-align: left;
}

.forecast-detailed-grid .forecast-card h3 {
    display: flex;
    align-items: center;
    gap: 16px;
}

.forecast-detailed-grid .forecast-icon {
    margin-bottom: 0;
}

/* ===== New Pages Styles ===== */

/* Page Hero */
.page-hero {
    padding: 120px 0 60px;
    background: var(--bg-secondary);
    text-align: center;
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 16px;
}

.page-hero .hero-subtitle {
    animation: none;
    margin-bottom: 0;
}

.content-section {
    padding: 60px 0 120px;
    background: var(--bg-primary);
}

/* Color Swatches */
.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.color-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 24px;
}

.color-card h4 {
    margin: 8px 0 16px;
}

.color-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.color-label {
    font-size: 0.9rem;
    width: 120px;
}

.color-swatches {
    display: flex;
    gap: 8px;
}

.swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: help;
}

/* Style Cards */
.style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.style-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 24px;
}

.style-card h4 {
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.style-card>p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* Crystal Grid */
.crystal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.crystal-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 24px;
}

/* Hair Grid */
.hair-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.hair-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 24px;
}

.hair-card h4 {
    color: var(--accent-gold);
    margin-bottom: 16px;
}

/* Child Arcana Grid */
.child-arcana-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.child-arcana-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 24px;
}

.child-arcana-card h4 {
    margin: 8px 0 16px;
}

.child-arcana-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

/* Development Stages */
.development-stages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.stage-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 24px;
}

.stage-age {
    display: inline-block;
    background: var(--gradient-gold);
    color: var(--bg-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.stage-card h4 {
    margin: 12px 0;
}

.stage-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Communication Tips */
.communication-tips {
    margin-top: 30px;
}

.tip-row {
    display: flex;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid var(--glass-border);
}

.tip-arcana {
    min-width: 140px;
    color: var(--accent-gold);
    font-weight: 600;
}

.tip-content p {
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Activity Grid */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.activity-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 24px;
}

.activity-card h4 {
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.activity-card>p {
    margin-bottom: 12px;
}

/* Arcana Full Card */
.arcana-full-card {
    padding: 40px;
    margin-bottom: 40px;
}

.arcana-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--glass-border);
}

.arcana-big-num {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.arcana-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 8px;
}

.arcana-subtitle {
    color: var(--text-secondary);
}

.arcana-body {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.arcana-section h4 {
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.arcana-section p {
    color: var(--text-secondary);
}

.arcana-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.arcana-grid-2 h4 {
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.more-arcana-notice {
    padding: 40px;
    text-align: center;
}

.more-arcana-notice h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.more-arcana-notice p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Calculator Styles */
.calculator-wrapper {
    padding: 40px;
    margin-bottom: 40px;
}

.calculator-wrapper h2 {
    font-family: var(--font-display);
    margin-bottom: 30px;
}

.calc-form {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row label {
    font-weight: 500;
}

.form-row input {
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 1rem;
}

.calc-button {
    padding: 12px 30px;
    background: var(--gradient-gold);
    color: var(--bg-primary);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calc-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.calc-results {
    margin-top: 40px;
}

.calc-results h3 {
    font-family: var(--font-display);
    margin-bottom: 24px;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.result-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.result-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.result-value {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.result-note {
    margin-top: 24px;
    color: var(--text-secondary);
    text-align: center;
}

/* Calculation Examples */
.calculation-example {
    margin-top: 24px;
}

.calculation-example h4 {
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.calc-step {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.calc-step h5 {
    margin-bottom: 12px;
}

.calc-formula {
    font-family: monospace;
    font-size: 1.1rem;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.calc-note {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Matrix Positions */
.matrix-positions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.position-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

.position-num {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: var(--gradient-gold);
    color: var(--bg-primary);
    border-radius: 50%;
    font-weight: 700;
    margin-bottom: 12px;
}

.position-card h4 {
    margin-bottom: 8px;
}

.position-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Personal Years Grid */
.personal-years-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 30px;
}

.year-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.year-num {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    border-radius: 50%;
    font-weight: 700;
    margin-bottom: 12px;
}

.year-card h5 {
    margin-bottom: 8px;
}

.year-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Solar Days Grid */
.solar-days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.solar-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 16px;
}

.day-num {
    color: var(--accent-gold);
    font-weight: 600;
}

.month {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.solar-instructions {
    margin-top: 24px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
}

.solar-instructions h4 {
    color: var(--accent-gold);
    margin-bottom: 12px;
}

/* ===== Hero Calculator ===== */
.hero-calc {
    min-height: 60vh;
}

.hero-calculator {
    margin-top: 40px;
}

.hero-calculator form {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-calculator input[type="date"] {
    padding: 16px 28px;
    border-radius: 50px;
    border: 2px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 1.2rem;
    min-width: 220px;
    backdrop-filter: blur(10px);
}

.calc-btn-hero {
    padding: 16px 40px;
    background: var(--gradient-gold);
    color: var(--bg-primary);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calc-btn-hero:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(255, 215, 0, 0.5);
}

/* Full Results Section */
.full-results-section {
    padding: 60px 0 100px;
    background: var(--bg-primary);
    min-height: 100px;
}

.results-header {
    text-align: center;
    margin-bottom: 50px;
}

.results-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 12px;
}

.results-date {
    color: var(--accent-gold);
    font-size: 1.2rem;
}

.results-mega-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.result-block {
    padding: 28px;
}

.result-block h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.block-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.block-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.block-row span {
    color: var(--text-secondary);
    min-width: 130px;
}

.block-row b {
    background: var(--gradient-gold);
    color: var(--bg-primary);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
}

.block-row em {
    color: var(--text-primary);
    font-style: normal;
    font-weight: 500;
}

.block-row.warning {
    background: rgba(255, 100, 100, 0.1);
    padding: 12px;
    border-radius: 12px;
    border-left: 3px solid #ff6b6b;
}

.block-row.info {
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 14px;
    border-radius: 10px;
}

.block-row.info span {
    min-width: auto;
    font-size: 0.9rem;
}

.forecast-block {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(147, 112, 219, 0.1));
}

.results-actions {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.action-btn {
    display: inline-block;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--gradient-gold);
    color: var(--bg-primary);
    border-color: transparent;
    transform: translateY(-3px);
}

/* Wide blocks */
.wide-block {
    grid-column: span 2;
}

@media (max-width: 700px) {
    .wide-block {
        grid-column: span 1;
    }
}

/* Monthly forecast grid */
.monthly-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

@media (max-width: 700px) {
    .monthly-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.month-cell {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.month-cell .m-name {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.month-cell b {
    color: var(--accent-gold);
    font-size: 1.3rem;
}

.month-cell .m-theme {
    color: var(--text-primary);
    font-size: 0.75rem;
}

/* Partner compatibility inline */
.compat-calc-inline p {
    margin-bottom: 16px;
}

.partner-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.partner-form input[type="date"] {
    padding: 12px 20px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 1rem;
}

.calc-btn-small {
    padding: 12px 24px;
    background: var(--gradient-gold);
    color: var(--bg-primary);
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calc-btn-small:hover {
    transform: scale(1.05);
}

.compat-result-box {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 20px;
}

.compat-pair {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.compat-pair b {
    background: var(--gradient-gold);
    color: var(--bg-primary);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.compat-level {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.compat-result-box p {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.compat-result-box strong {
    color: var(--text-primary);
}

/* Detailed description rows */
.desc-row {
    background: rgba(255, 255, 255, 0.02);
    padding: 12px 16px;
    border-radius: 12px;
    border-left: 3px solid var(--accent-purple);
}

.desc-row p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.desc-row.warning {
    border-left-color: #ff6b6b;
    background: rgba(255, 100, 100, 0.05);
}

/* Affirmation block */
.affirmation-block {
    background: linear-gradient(135deg, rgba(147, 112, 219, 0.15), rgba(255, 215, 0, 0.1));
    text-align: center;
}

.affirmation-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text-primary);
    margin: 20px 0;
    line-height: 1.5;
}

.affirmation-tip {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Shadow block */
.shadow-block {
    border: 1px solid rgba(255, 100, 100, 0.3);
}

/* Planet display */
.planet-display {
    display: flex;
    align-items: center;
    gap: 24px;
}

.planet-symbol {
    font-size: 3rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.planet-info {
    flex: 1;
}

/* Pythagoras grid */
.pyth-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.pyth-cell {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pyth-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    min-height: 36px;
}

.pyth-name {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.pyth-level {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Life periods */
.periods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 600px) {
    .periods-grid {
        grid-template-columns: 1fr;
    }
}

.period-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.period-card.active {
    border-color: var(--accent-gold);
    background: rgba(255, 215, 0, 0.1);
}

.period-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.period-years {
    font-size: 0.85rem;
    color: var(--accent-purple);
}

.period-card b {
    font-size: 2rem;
    color: var(--accent-gold);
}

.period-arcana {
    color: var(--text-primary);
}

.period-current {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Life graph */
.life-graph {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 150px;
    padding: 20px 0;
    gap: 8px;
}

.graph-bar {
    flex: 1;
    height: var(--height, 50%);
    background: var(--gradient-gold);
    border-radius: 8px 8px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.graph-bar:hover {
    transform: scaleY(1.05);
}

.bar-value {
    font-weight: 700;
    color: var(--bg-primary);
    font-size: 1.1rem;
}

.bar-age {
    position: absolute;
    bottom: -25px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.graph-legend {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 30px;
}

/* Child calculator */
.child-calc-section {
    margin-top: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
}

.child-calc-section h3 {
    margin-bottom: 20px;
    color: var(--accent-gold);
}

/* Save/Download button */
.save-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--gradient-2);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-btn:hover {
    transform: scale(1.05);
}

/* Module Navigation */
.module-nav {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 20px;
}

.nav-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
    text-align: center;
}

.nav-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.nav-category {
    text-align: center;
}

.cat-title {
    display: block;
    font-size: 0.85rem;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.nav-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.mod-btn {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mod-btn:hover {
    background: var(--gradient-gold);
    color: var(--bg-primary);
    border-color: transparent;
}

/* Block highlight animation */
.result-block.highlight {
    animation: pulseHighlight 2s ease;
}

@keyframes pulseHighlight {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }

    50% {
        box-shadow: 0 0 30px 10px rgba(255, 215, 0, 0.3);
    }
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    gap: 8px;
}

.lang-btn {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--gradient-gold);
    color: var(--bg-primary);
    border-color: transparent;
    font-weight: 600;
}

/* ===== Main Page Calculator ===== */
.calculator-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.main-calculator {
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.main-calc-form .form-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.main-calc-form label {
    font-size: 1.2rem;
    font-weight: 500;
}

.main-calc-form input[type="date"] {
    padding: 14px 24px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 1.1rem;
    min-width: 200px;
}

.calc-btn {
    padding: 14px 32px;
    background: var(--gradient-gold);
    color: var(--bg-primary);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calc-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.4);
}

.main-results {
    margin-top: 40px;
}

.main-results h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 30px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.result-module {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 24px;
}

.result-module h4 {
    color: var(--accent-gold);
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.result-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.result-row .result-label {
    color: var(--text-secondary);
    min-width: 140px;
}

.result-row .result-value {
    background: var(--gradient-gold);
    color: var(--bg-primary);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
}

.result-row .result-name {
    color: var(--text-primary);
    font-weight: 500;
}

.result-row.full {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.results-links {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.results-links p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.result-link {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    color: var(--accent-gold);
    text-decoration: none;
    margin: 6px;
    transition: all 0.3s ease;
}

.result-link:hover {
    background: var(--gradient-gold);
    color: var(--bg-primary);
    border-color: transparent;
}

/* ===== Psychosomatics Page ===== */
.psycho-intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.psycho-intro-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 24px;
}

.psycho-intro-card h4 {
    color: var(--accent-gold);
    margin-bottom: 16px;
}

.organ-arcana-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.organ-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 24px;
}

.organ-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.organ-icon {
    font-size: 2rem;
}

.organ-arcana {
    color: var(--accent-gold);
    font-size: 0.85rem;
}

.organ-card>p {
    margin-bottom: 12px;
}

.emotion-organ-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.emotion-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 24px;
}

.emotion-card h4 {
    margin-bottom: 12px;
}

.emotion-card p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.affirmation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.affirmation-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 20px;
}

.affirmation-card .arcana-num {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-gold);
    color: var(--bg-primary);
    border-radius: 50%;
    font-weight: 700;
}

.affirmation {
    font-style: italic;
    color: var(--text-secondary);
}

.healing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.healing-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 24px;
}

.healing-card h4 {
    color: var(--accent-gold);
    margin-bottom: 16px;
}

/* ===== Compatibility Page ===== */
.compat-intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.compat-intro-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 24px;
}

.compat-intro-card h4 {
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.relation-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.relation-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 24px;
}

.relation-card h4 {
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.relation-card>p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.compat-note {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.compat-table-wrapper {
    overflow-x: auto;
}

.compat-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.compat-table th,
.compat-table td {
    padding: 12px;
    border: 1px solid var(--glass-border);
}

.compat-table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-gold);
}

.compat-table td {
    font-size: 1.2rem;
}

.combination-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.combination-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 24px;
}

.combination-card h4 {
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.combination-card>p {
    margin-bottom: 8px;
}

.karmic-connections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.karmic-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 24px;
}

.karmic-card h4 {
    color: var(--accent-gold);
    margin-bottom: 16px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.tip-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 24px;
}

.tip-card h4 {
    color: var(--accent-gold);
    margin-bottom: 16px;
}

.compat-calc-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 24px;
    justify-content: center;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 16px 24px;
}

.step-num {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-gold);
    color: var(--bg-primary);
    border-radius: 50%;
    font-weight: 700;
}

/* ===== Responsive Design ===== */
@media (max-width: 968px) {
    .navbar {
        padding: 20px 24px;
    }

    .nav-links {
        display: none;
    }

    .karma-content,
    .compatibility-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .karma-visual {
        min-height: 200px;
    }

    .infinity-symbol {
        font-size: 6rem;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .intro-section,
    .spheres-section,
    .karma-section,
    .arcana-section,
    .forecast-section,
    .compatibility-section {
        padding: 80px 0;
    }

    .arcana-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }

    .arcana-card {
        padding: 16px 10px;
    }

    .arcana-number {
        font-size: 1.4rem;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 20px;
    }
}

/* ===== Interactive Yearly Forecast Chart ===== */
.chart-container {
    background: rgba(10, 5, 25, 0.6);
    border-radius: 16px;
    padding: 24px;
    margin-top: 16px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--color);
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid var(--color);
}

.chart-date-display {
    text-align: right;
}

.current-date {
    display: block;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 6px;
}

.current-values {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.current-values span {
    margin: 0 4px;
}

.chart-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

#year-chart {
    display: block;
    width: 100%;
    height: auto;
    cursor: crosshair;
}

.chart-cursor {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 215, 0, 0.6);
    pointer-events: none;
    display: none;
}

.chart-tooltip {
    position: absolute;
    background: rgba(20, 10, 40, 0.95);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    padding: 12px;
    font-size: 0.85rem;
    pointer-events: none;
    display: none;
    z-index: 10;
}

.chart-controls {
    margin-top: 16px;
    position: relative;
}

.day-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg,
            rgba(255, 107, 157, 0.3),
            rgba(244, 114, 182, 0.3),
            rgba(74, 222, 128, 0.3),
            rgba(251, 191, 36, 0.3),
            rgba(167, 139, 250, 0.3));
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.day-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    transition: transform 0.2s ease;
}

.day-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.day-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
}

.day-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    border-radius: 50%;
    cursor: grab;
    border: none;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.month-markers {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    position: relative;
    height: 20px;
}

.month-markers span {
    position: absolute;
    font-size: 0.7rem;
    color: var(--text-secondary);
    transform: translateX(-50%);
}

.chart-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(167, 85, 247, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.stat-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-gold);
}

/* Responsive chart styles */
@media (max-width: 768px) {
    .chart-header {
        flex-direction: column;
        align-items: stretch;
    }

    .chart-legend {
        justify-content: center;
    }

    .chart-date-display {
        text-align: center;
    }

    .chart-stats {
        grid-template-columns: 1fr;
    }

    .month-markers span {
        font-size: 0.6rem;
    }
}