:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a25;
    --text-primary: #f5f5f7;
    --text-secondary: #a0a0b0;
    --accent-primary: #8b5cf6;
    --accent-secondary: #06b6d4;
    --accent-gold: #fbbf24;
    --accent-rose: #f43f5e;
    --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
    --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.3);
    --border-subtle: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero {
    text-align: center;
    padding: 4rem 2rem;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 200;
    letter-spacing: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--accent-secondary);
    font-size: 0.9rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.birth-form {
    background: var(--bg-card);
    border-radius: 1.5rem;
    padding: 3rem;
    border: 1px solid var(--border-subtle);
}

.form-section {
    text-align: center;
    margin-bottom: 2rem;
}

.form-section h2 {
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.form-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input {
    width: 100%;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 0.75rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.form-group input::placeholder {
    color: var(--text-secondary);
}

.hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.submit-btn {
    width: 100%;
    padding: 1.25rem 2rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 0.75rem;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.submit-btn:hover .btn-arrow {
    transform: translateX(4px);
}

.footer {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.philosophy {
    font-style: italic;
    margin-top: 0.5rem;
    color: var(--accent-primary);
}

.reading-header {
    text-align: center;
    padding: 2rem;
}

.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.back-link {
    color: var(--accent-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--accent-primary);
}

.print-btn {
    padding: 0.5rem 1rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 0.5rem;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.print-btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.reading-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.essence {
    color: var(--accent-secondary);
    font-size: 1.1rem;
}

.reading-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.nav-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.nav-btn:hover,
.nav-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.reading-section {
    display: none;
}

.reading-section.active {
    display: block;
}

.card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-subtle);
}

.card h3 {
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.themes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.theme-tag {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: 2rem;
    font-size: 0.9rem;
    color: var(--accent-secondary);
    border: 1px solid var(--border-subtle);
}

.strategy-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.tension-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.tension-item:last-child {
    border-bottom: none;
}

.tension-item h4 {
    color: var(--accent-rose);
    margin-bottom: 0.5rem;
}

.resolution {
    margin-top: 0.75rem;
    color: var(--accent-secondary);
}

.cta-card {
    background: var(--gradient-primary);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.cta-card h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.cta-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.cta-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: white;
    color: var(--accent-primary);
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: transform 0.3s;
}

.cta-btn:hover {
    transform: translateY(-2px);
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.number-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border-subtle);
}

.number-card.primary {
    background: var(--gradient-primary);
    border: none;
}

.number-card .number {
    font-size: 2.5rem;
    font-weight: 200;
    display: block;
    margin-bottom: 0.5rem;
}

.number-card h4 {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.number-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.number-card.primary p {
    color: rgba(255, 255, 255, 0.8);
}

.missing-numbers {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.missing-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 50%;
    border: 2px dashed var(--accent-rose);
    color: var(--accent-rose);
    font-weight: 500;
}

.astro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.astro-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-subtle);
}

.astro-card .sign-symbol {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.astro-card.sun .sign-symbol {
    color: var(--accent-gold);
}

.astro-card.moon .sign-symbol {
    color: #c4b5fd;
}

.astro-card.rising .sign-symbol {
    color: var(--accent-secondary);
}

.astro-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.astro-card h4 {
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 0.75rem;
}

.hd-primary {
    margin-bottom: 2rem;
}

.hd-type-card {
    background: var(--gradient-primary);
    border-radius: 1rem;
    padding: 2.5rem;
    text-align: center;
    position: relative;
}

.hd-type-card .percentage {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.85rem;
}

.hd-type-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.hd-type-card p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

.hd-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.hd-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border-subtle);
}

.hd-card h4 {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.hd-value {
    font-size: 1.2rem;
    font-weight: 500;
}

.hd-value.positive {
    color: var(--accent-secondary);
}

.hd-value.negative {
    color: var(--accent-rose);
}

.gk-spheres {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.gk-sphere-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border-subtle);
}

.sphere-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.key-number {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 600;
}

.sphere-header h4 {
    font-weight: 500;
}

.gk-spectrum {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.gk-level {
    flex: 1;
    padding: 0.75rem;
    border-radius: 0.5rem;
    text-align: center;
}

.gk-level .label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    margin-bottom: 0.25rem;
    opacity: 0.7;
}

.gk-level .value {
    font-weight: 500;
    font-size: 0.9rem;
}

.gk-level.shadow {
    background: rgba(244, 63, 94, 0.2);
    color: var(--accent-rose);
}

.gk-level.gift {
    background: rgba(139, 92, 246, 0.2);
    color: var(--accent-primary);
}

.gk-level.siddhi {
    background: rgba(251, 191, 36, 0.2);
    color: var(--accent-gold);
}

.gk-theme {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pathway-step {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.pathway-step:last-child {
    border-bottom: none;
}

.pathway-step h4 {
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.strategy-header {
    text-align: center;
    padding: 2rem;
}

.strategy-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.archetype-preview {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.archetype-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid var(--border-subtle);
}

.archetype-card.primary {
    background: var(--gradient-primary);
    border: none;
}

.archetype-card.large {
    background: var(--gradient-primary);
    text-align: center;
    padding: 3rem;
}

.archetype-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.archetype-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.archetype-card.secondary h3 {
    color: var(--accent-primary);
}

.question-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-subtle);
}

.question-number {
    font-size: 0.85rem;
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    margin-bottom: 0.5rem;
}

.question-text {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
    border: 2px solid transparent;
}

.option-label:hover {
    background: var(--bg-primary);
}

.option-label input {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-primary);
}

.option-label input:checked + .option-text {
    color: var(--accent-primary);
}

.option-label:has(input:checked) {
    border-color: var(--accent-primary);
    background: rgba(139, 92, 246, 0.1);
}

.strategy-section {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-subtle);
}

.strategy-section h3 {
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.income-list,
.action-list,
.tips-list {
    padding-left: 1.5rem;
}

.income-list li,
.action-list li,
.tips-list li {
    margin-bottom: 0.75rem;
}

.strategy-section.tips {
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--accent-secondary);
}

.strategy-section.tips h3 {
    color: var(--accent-secondary);
}

.strategy-section.secondary {
    background: var(--bg-secondary);
}

.narrative-section {
    margin-bottom: 2rem;
}

.narrative-card {
    position: relative;
}

.narrative-card.opening {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);
    border-color: rgba(139, 92, 246, 0.3);
}

.narrative-card.opening .narrative-text {
    font-size: 1.15rem;
    line-height: 1.9;
    font-style: italic;
}

.narrative-card.closing {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-color: rgba(251, 191, 36, 0.3);
}

.narrative-card.closing .narrative-text {
    font-size: 1.1rem;
    font-style: italic;
}

.narrative-card.strategy-highlight {
    border-left: 4px solid var(--accent-primary);
}

.narrative-card.shadow-card {
    border-left: 4px solid var(--accent-rose);
}

.narrative-card.gifts-card {
    border-left: 4px solid var(--accent-gold);
}

.narrative-text {
    line-height: 1.8;
    color: var(--text-primary);
}

.section-intro {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.tension-intro {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.primary-number-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-subtle);
    border-left: 4px solid var(--accent-primary);
}

.primary-number-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.big-number {
    font-size: 4rem;
    font-weight: 200;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.number-title h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.number-subtitle {
    color: var(--text-secondary);
}

.number-essence {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
}

.number-journey {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.gifts-list,
.challenges-list {
    margin-bottom: 1.5rem;
}

.gifts-list h4,
.challenges-list h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--accent-primary);
}

.challenges-list h4 {
    color: var(--accent-rose);
}

.gifts-list ul,
.challenges-list ul {
    padding-left: 1.5rem;
}

.gifts-list li,
.challenges-list li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.monetization-hint {
    background: rgba(139, 92, 246, 0.1);
    padding: 1rem;
    border-radius: 0.5rem;
}

.monetization-hint h4 {
    font-size: 0.9rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.karmic-intro {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-style: italic;
}

.karmic-lessons-detail {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.karmic-lessons-detail p {
    margin-bottom: 0.5rem;
}

.cycle-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.astro-detailed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.astro-card-detailed {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border-subtle);
}

.astro-card-detailed.sun {
    border-top: 3px solid var(--accent-gold);
}

.astro-card-detailed.moon {
    border-top: 3px solid #c4b5fd;
}

.astro-card-detailed.rising {
    border-top: 3px solid var(--accent-secondary);
}

.astro-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.astro-header .sign-symbol {
    font-size: 2rem;
}

.astro-card-detailed.sun .sign-symbol {
    color: var(--accent-gold);
}

.astro-card-detailed.moon .sign-symbol {
    color: #c4b5fd;
}

.astro-card-detailed.rising .sign-symbol {
    color: var(--accent-secondary);
}

.sign-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0;
    color: var(--text-primary);
}

.placement-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

.sign-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.sign-meta span {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: var(--bg-secondary);
    border-radius: 0.25rem;
    color: var(--text-secondary);
}

.sign-meaning {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.sign-expression {
    line-height: 1.7;
    margin-bottom: 1rem;
}

.sign-gifts {
    font-size: 0.95rem;
    color: var(--accent-secondary);
}

.hd-strategy-authority {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.strategy-card,
.authority-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border-subtle);
}

.strategy-card {
    border-left: 4px solid var(--accent-primary);
}

.authority-card {
    border-left: 4px solid var(--accent-secondary);
}

.hd-value-large {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.strategy-explanation,
.authority-explanation {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.hd-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.profile-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.profile-lines {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 0.5rem;
}

.profile-lines p {
    margin-bottom: 0.5rem;
}

.profile-lines p:last-child {
    margin-bottom: 0;
}

.cross-value {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
}

.cross-description {
    color: var(--text-secondary);
}

.gk-arrow {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.gk-pathway-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid var(--border-subtle);
}

.gk-pathway-card h3 {
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.pathway-intro {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.pathway-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pathway-step {
    display: flex;
    gap: 1rem;
    padding: 0;
    border: none;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h4 {
    color: var(--accent-primary);
    margin-bottom: 0.25rem;
}

.step-content p {
    color: var(--text-secondary);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid var(--bg-card);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

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

.loading-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    text-align: center;
}

.loading-subtext {
    color: var(--accent-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

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

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
        letter-spacing: 0.5rem;
    }

    .birth-form {
        padding: 2rem 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .astro-grid,
    .astro-detailed-grid,
    .hd-grid,
    .hd-strategy-authority {
        grid-template-columns: 1fr;
    }

    .archetype-preview {
        grid-template-columns: 1fr;
    }

    .gk-spectrum {
        flex-direction: column;
    }

    .gk-arrow {
        transform: rotate(90deg);
        justify-content: center;
    }

    .reading-nav {
        gap: 0.25rem;
    }

    .nav-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

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

    .big-number {
        font-size: 3rem;
    }
}

@media print {
    body {
        background: white;
        color: #1a1a25;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .container {
        max-width: 100%;
        padding: 0.5in;
    }

    .reading-nav,
    .print-btn,
    .back-link,
    .header-actions,
    .cta-card,
    .loading-overlay,
    .footer {
        display: none !important;
    }

    .reading-section {
        display: block !important;
        page-break-inside: avoid;
        margin-bottom: 1.5rem;
    }

    .reading-section h2 {
        page-break-after: avoid;
        color: #8b5cf6;
        border-bottom: 2px solid #8b5cf6;
        padding-bottom: 0.5rem;
    }

    .card,
    .narrative-card,
    .number-card,
    .astro-card-detailed,
    .gk-sphere-card {
        background: #f8f8fc;
        border: 1px solid #e0e0e8;
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }

    .card h3,
    .narrative-card h3 {
        color: #8b5cf6;
    }

    .reading-header {
        text-align: center;
        margin-bottom: 1.5rem;
        border-bottom: 3px solid #8b5cf6;
        padding-bottom: 1rem;
    }

    .reading-header h1 {
        color: #8b5cf6;
        font-size: 2rem;
    }

    .essence {
        color: #06b6d4;
    }

    .narrative-card.opening,
    .narrative-card.closing {
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    }

    .theme-tag {
        background: #e8e0f8;
        color: #6b40c4;
        border: 1px solid #d4c8f0;
    }

    .numbers-grid,
    .astro-detailed-grid,
    .gk-spheres {
        display: grid;
        gap: 1rem;
    }

    .numbers-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .astro-detailed-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gk-spheres {
        grid-template-columns: repeat(2, 1fr);
    }

    .hd-primary,
    .hd-type-card {
        background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
        color: white;
    }

    .hd-type-card h3 {
        color: white;
    }

    .gk-level.shadow {
        background: rgba(244, 63, 94, 0.15);
    }

    .gk-level.gift {
        background: rgba(139, 92, 246, 0.15);
    }

    .gk-level.siddhi {
        background: rgba(251, 191, 36, 0.15);
    }

    .big-number {
        color: #8b5cf6;
        -webkit-text-fill-color: #8b5cf6;
    }

    @page {
        size: letter;
        margin: 0.5in;
    }

    .email-capture-section {
        display: none !important;
    }
}

.email-capture-section {
    padding: 2rem;
    text-align: center;
}

.email-capture-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem 3rem;
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid var(--border-subtle);
}

.email-capture-card h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--accent-primary);
}

.email-capture-card > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.email-form {
    display: flex;
    gap: 0.5rem;
}

.email-form input {
    flex: 1;
    padding: 0.875rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.email-form input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.email-submit-btn {
    padding: 0.875rem 1.5rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 0.5rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    white-space: nowrap;
}

.email-submit-btn:hover {
    transform: translateY(-1px);
}

.email-success {
    color: var(--accent-secondary);
    font-weight: 500;
    margin-top: 1rem;
}

.email-privacy {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 1rem;
}

.install-pwa-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 2rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    z-index: 1000;
    transition: transform 0.2s, box-shadow 0.2s;
}

.install-pwa-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.5);
}

@media (max-width: 768px) {
    .install-pwa-btn {
        bottom: 1rem;
        right: 1rem;
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}
