:root {
    --primary: #c0c0c0;
    --primary-dark: #808080;
    --secondary: #1a1a1a;
    --accent: #2d2d2d;
    --bg: #0a0a0a;
    --text: #e0e0e0;
    --text-muted: #808080;
    --card-bg: rgba(45, 45, 45, 0.8);
    --silver: linear-gradient(135deg, #c0c0c0, #a0a0a0);
}

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

body {
    font-family: 'Georgia', serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(2px 2px at 20px 30px, #fff, transparent),
                radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
                radial-gradient(1px 1px at 90px 40px, #fff, transparent),
                radial-gradient(2px 2px at 160px 120px, rgba(255,255,255,0.6), transparent),
                radial-gradient(1px 1px at 230px 80px, #fff, transparent),
                radial-gradient(2px 2px at 300px 200px, rgba(192,192,192,0.4), transparent),
                radial-gradient(1px 1px at 350px 150px, #fff, transparent),
                radial-gradient(2px 2px at 420px 50px, rgba(255,255,255,0.7), transparent);
    background-size: 500px 300px;
    animation: twinkle 8s ease-in-out infinite;
    z-index: 0;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

header {
    padding: 20px 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    background: var(--silver);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    margin-left: 30px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.hero {
    padding: 80px 0;
    text-align: center;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    background: var(--silver);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.question-section {
    max-width: 600px;
    margin: 0 auto 40px;
}

.question-section label {
    display: block;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.question-section textarea {
    width: 100%;
    padding: 15px;
    background: var(--card-bg);
    border: 1px solid rgba(192, 192, 192, 0.2);
    border-radius: 12px;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    resize: none;
    transition: border-color 0.3s;
}

.question-section textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.char-count {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.spread-selector {
    margin-bottom: 40px;
}

.spread-selector h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.spread-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.spread-option {
    background: var(--card-bg);
    border: 2px solid rgba(192, 192, 192, 0.2);
    border-radius: 16px;
    padding: 25px;
    width: 180px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.spread-option:hover {
    border-color: rgba(192, 192, 192, 0.4);
}

.spread-option.active {
    border-color: var(--primary);
    background: rgba(192, 192, 192, 0.1);
}

.spread-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--silver);
    color: #1a1a1a;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.spread-badge.premium {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.spread-option h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    margin-top: 5px;
}

.spread-option p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.spread-option .price {
    font-weight: 600;
    color: var(--primary);
}

.btn-primary {
    background: var(--silver);
    color: #1a1a1a;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-family: inherit;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(192, 192, 192, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    margin-left: 15px;
}

.btn-secondary:hover {
    background: rgba(192, 192, 192, 0.1);
}

.btn-premium {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-family: inherit;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.runes-display {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary);
}

.runes-result {
    max-width: 800px;
    margin: 0 auto;
}

.runes-cast {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.rune-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    width: 200px;
    text-align: center;
    border: 1px solid rgba(192, 192, 192, 0.2);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInRune 0.5s forwards;
}

.rune-card:nth-child(1) { animation-delay: 0.1s; }
.rune-card:nth-child(2) { animation-delay: 0.3s; }
.rune-card:nth-child(3) { animation-delay: 0.5s; }
.rune-card:nth-child(4) { animation-delay: 0.7s; }
.rune-card:nth-child(5) { animation-delay: 0.9s; }

@keyframes fadeInRune {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rune-symbol {
    font-size: 4rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.rune-name {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.rune-phonetic {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.rune-meaning {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.rune-position {
    font-size: 0.75rem;
    color: var(--primary);
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reading-section {
    padding: 60px 0;
}

.reading-content {
    max-width: 800px;
    margin: 0 auto;
}

.reading-content h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary);
    text-align: center;
}

.rune-meanings {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
}

.rune-reading {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(192, 192, 192, 0.2);
}

.rune-reading:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.rune-reading-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.rune-reading-header .rune-symbol {
    font-size: 2.5rem;
    margin-bottom: 0;
}

.meaning-block h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.meaning-block p {
    line-height: 1.8;
    color: var(--text);
}

.premium-upsell {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.premium-upsell h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.premium-upsell p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.premium-features {
    list-style: none;
    margin-bottom: 30px;
}

.premium-features li {
    padding: 8px 0;
    color: var(--text);
}

.btn-share {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: transparent;
    border: 2px solid var(--text-muted);
    color: var(--text);
    padding: 12px 30px;
    border-radius: 30px;
    cursor: pointer;
    margin: 0 auto 20px;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-share:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.premium-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.premium-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border-radius: 24px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    border: 1px solid rgba(192, 192, 192, 0.3);
    animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
}

.modal-close:hover { color: var(--primary); }

.modal-content h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.modal-content > p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.modal-features {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
}

.modal-features li {
    padding: 10px 0;
    color: var(--text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-features li:last-child { border-bottom: none; }

.modal-btn {
    width: 100%;
    margin-bottom: 15px;
}

.modal-skip {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
}

.modal-skip:hover { color: var(--text); }

.section-light {
    padding: 80px 0;
    background: rgba(26, 26, 26, 0.5);
}

.section-light h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--primary);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.step {
    padding: 30px;
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.step p {
    color: var(--text-muted);
    line-height: 1.6;
}

.runes-info {
    padding: 80px 0;
}

.runes-info h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.runes-intro {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.runes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.rune-grid-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid transparent;
}

.rune-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(192, 192, 192, 0.1);
    border-color: rgba(192, 192, 192, 0.3);
}

.rune-grid-card .symbol {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.rune-grid-card .name {
    font-size: 0.95rem;
}

.pricing-section {
    padding: 80px 0;
    background: rgba(26, 26, 26, 0.5);
}

.pricing-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--primary);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 700px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(192, 192, 192, 0.1);
    position: relative;
}

.pricing-card.featured {
    border-color: var(--primary);
}

.pricing-card .badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--silver);
    color: #1a1a1a;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 30px;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 30px;
}

.pricing-card li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.pricing-card li:last-child {
    border-bottom: none;
}

footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .spread-options {
        flex-direction: column;
        align-items: center;
    }
    
    .spread-option {
        width: 100%;
        max-width: 250px;
    }
    
    .nav-links {
        display: none;
    }
    
    .rune-card {
        width: 100%;
        max-width: 280px;
    }
    
    .btn-cast, .btn-reset {
        width: 100%;
    }
}
