/* =============================================
   Living Tarot - Mystical Dark Theme
   by Aung Zin Myat
   ============================================= */

/* --- CSS Variables --- */
:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #12122a;
    --bg-card: #1a1a3e;
    --bg-card-hover: #222255;
    --bg-input: #15153a;

    --text-primary: #e8e6f0;
    --text-secondary: #a8a4c0;
    --text-muted: #6b6890;
    --text-gold: #ffd700;
    --text-gold-light: #ffe44d;

    --accent-purple: #8b5cf6;
    --accent-purple-light: #a78bfa;
    --accent-blue: #3b82f6;
    --accent-pink: #ec4899;
    --accent-cyan: #06b6d4;
    --accent-green: #10b981;

    --gold: #ffd700;
    --gold-dark: #b8960c;
    --gold-glow: rgba(255, 215, 0, 0.3);

    --border-color: rgba(139, 92, 246, 0.2);
    --border-gold: rgba(255, 215, 0, 0.3);

    --shadow-purple: 0 0 20px rgba(139, 92, 246, 0.15);
    --shadow-gold: 0 0 20px rgba(255, 215, 0, 0.1);

    --radius: 12px;
    --radius-lg: 20px;
    --radius-sm: 8px;

    --font-display: 'Cinzel', serif;
    --font-body: 'Noto Sans Myanmar', -apple-system, BlinkMacSystemFont, sans-serif;

    --container-width: 1200px;
    --nav-height: 70px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

a {
    color: var(--accent-purple-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-gold);
}

img { max-width: 100%; height: auto; }

/* --- Stars Background --- */
.stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.star {
    position: absolute;
    border-radius: 50%;
    background: white;
    animation: twinkle var(--duration) ease-in-out infinite;
    opacity: 0;
}

@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: var(--opacity); transform: scale(1); }
}

/* --- Container --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 26, 0.97);
    box-shadow: var(--shadow-purple);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-gold) !important;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 1px;
}

.nav-brand i {
    font-size: 1.3rem;
    animation: moonGlow 3s ease-in-out infinite;
}

@keyframes moonGlow {
    0%, 100% { text-shadow: 0 0 10px var(--gold-glow); }
    50% { text-shadow: 0 0 25px var(--gold), 0 0 50px var(--gold-glow); }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: var(--text-secondary) !important;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--text-gold) !important;
    background: rgba(255, 215, 0, 0.08);
}

.nav-link i {
    font-size: 0.85rem;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    padding-left: 12px;
    border-left: 1px solid var(--border-color);
}

.nav-username {
    color: var(--accent-purple-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-logout {
    color: var(--accent-pink) !important;
}

.btn-glow {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    color: white !important;
    font-weight: 500;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.btn-glow:hover {
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.5);
    color: white !important;
    transform: translateY(-1px);
}

.lang-switcher {
    display: flex;
    gap: 4px;
    margin-left: 12px;
    padding: 3px;
    background: var(--bg-card);
    border-radius: 20px;
}

.lang-btn {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted) !important;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: var(--accent-purple);
    color: white !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Main Content --- */
.main-content {
    margin-top: var(--nav-height);
    min-height: calc(100vh - var(--nav-height) - 200px);
    position: relative;
    z-index: 1;
}

/* --- Hero Section --- */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-icon {
    font-size: 4rem;
    color: var(--text-gold);
    margin-bottom: 24px;
    animation: moonGlow 3s ease-in-out infinite;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-gold);
    margin-bottom: 16px;
    letter-spacing: 2px;
    text-shadow: 0 0 30px var(--gold-glow);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.4);
    color: white;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--bg-primary);
    font-weight: 600;
    box-shadow: 0 4px 15px var(--gold-glow);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4);
    color: var(--bg-primary);
}

.btn-outline {
    background: transparent;
    color: var(--accent-purple-light);
    border: 1.5px solid var(--accent-purple);
}

.btn-outline:hover {
    background: var(--accent-purple);
    color: white;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

/* --- Cards --- */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-purple), var(--gold), var(--accent-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: var(--shadow-purple);
    transform: translateY(-4px);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.card-icon.purple { background: rgba(139, 92, 246, 0.15); color: var(--accent-purple-light); }
.card-icon.gold { background: rgba(255, 215, 0, 0.12); color: var(--text-gold); }
.card-icon.pink { background: rgba(236, 72, 153, 0.15); color: var(--accent-pink); }
.card-icon.cyan { background: rgba(6, 182, 212, 0.15); color: var(--accent-cyan); }

.card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* --- Feature Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    padding: 40px 0 80px;
}

/* --- Section Titles --- */
.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--text-gold);
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.05rem;
}

/* --- Form Styles --- */
.form-container {
    max-width: 480px;
    margin: 60px auto;
    padding: 0 20px;
}

.form-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 40px;
}

.form-card h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--text-gold);
    text-align: center;
    margin-bottom: 8px;
}

.form-card .form-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 0.95rem;
}

/* Myanmar Astrology / History list */
.history-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.history-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}
.history-item:last-child {
    border-bottom: none;
}
.history-item:hover {
    background: rgba(139, 92, 246, 0.06);
}
.history-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    white-space: nowrap;
    min-width: 140px;
}
.history-detail {
    color: var(--text-secondary);
}
.history-detail strong {
    color: var(--text-gold);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    outline: none;
}

.form-control:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b6890' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.form-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-footer a {
    color: var(--accent-purple-light);
    font-weight: 500;
}

/* --- Dashboard --- */
.dashboard {
    padding: 40px 0 80px;
}

.dashboard-welcome {
    margin-bottom: 40px;
}

.dashboard-welcome h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--text-gold);
    margin-bottom: 8px;
}

.dashboard-welcome p {
    color: var(--text-secondary);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.stat-info h3 {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    font-family: var(--font-body);
}

.stat-info .stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* --- Feature Pages --- */
.page-header {
    text-align: center;
    padding: 60px 0 40px;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--text-gold);
    margin-bottom: 12px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.page-content {
    padding: 0 0 80px;
}

/* --- Tarot Specific --- */
.tarot-spread {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 40px 0;
}

.tarot-card-wrapper {
    text-align: center;
    cursor: pointer;
    perspective: 1000px;
}

.tarot-card {
    width: 180px;
    height: 300px;
    border-radius: 12px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.tarot-card.flipped {
    transform: rotateY(180deg);
}

.tarot-card-front, .tarot-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.tarot-card-back {
    background: linear-gradient(135deg, #1a0a3e, #2d1b6e);
    border: 2px solid var(--gold);
    overflow: hidden;
}

.tarot-card-back::before {
    content: '✦';
    font-size: 3rem;
    color: var(--gold);
    animation: moonGlow 2s ease-in-out infinite;
}

.tarot-card-back::after {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid var(--border-gold);
    border-radius: 8px;
}

.tarot-card-front {
    background: linear-gradient(180deg, #1a1a3e, #0a0a2a);
    border: 2px solid var(--accent-purple);
    transform: rotateY(180deg);
    padding: 0;
    overflow: hidden;
}

.tarot-card-front img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.tarot-card-front > div {
    min-height: 100%;
    box-sizing: border-box;
    position: relative;
    padding: 15px;
}

.tarot-card-name {
    margin-top: 12px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--text-gold);
}

.tarot-position {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 10px;
}

.tarot-card.reversed .tarot-card-front {
    transform: rotateY(180deg) rotateZ(180deg);
}

/* Reading result box: smaller flip cards */
.reading-cards-row .tarot-card-wrapper {
    perspective: 800px;
}
.reading-cards-row .tarot-card-wrapper .tarot-card {
    width: 100px;
    height: 150px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.reading-cards-row .tarot-card-wrapper .tarot-card-back::before {
    font-size: 1.8rem;
}
.reading-cards-row .tarot-card-wrapper .tarot-card-front .tarot-card-name {
    font-size: 0.65rem;
    margin-top: 4px;
}

.spread-selector {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.spread-btn {
    padding: 10px 22px;
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.spread-btn:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple-light);
    background: rgba(139, 92, 246, 0.1);
}

.spread-btn.active {
    border: 2px solid var(--gold);
    color: var(--text-gold);
    background: rgba(212, 175, 55, 0.2);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
}

/* --- Reading Results --- */
.reading-result {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 40px;
    margin: 30px auto;
    max-width: 800px;
}

.reading-result h3 {
    font-family: var(--font-display);
    color: var(--text-gold);
    margin-bottom: 16px;
}

.reading-result .meaning {
    color: var(--text-secondary);
    line-height: 1.8;
}

.reading-result .keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.keyword-tag {
    padding: 4px 14px;
    background: rgba(139, 92, 246, 0.12);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--accent-purple-light);
}

/* --- Numerology Results --- */
.numerology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.num-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.num-card:hover {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-gold);
}

.num-value {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-gold);
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 0 20px var(--gold-glow);
}

.num-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.num-description {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Myanmar Astrology --- */
.astrology-result {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-gold);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.astrology-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.astrology-header .day-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.astrology-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.detail-item {
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    text-align: center;
}

.detail-item .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.detail-item .value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-gold);
}

.prediction-box {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 24px;
    border-left: 3px solid var(--gold);
}

.prediction-box h4 {
    color: var(--text-gold);
    font-family: var(--font-display);
    margin-bottom: 12px;
}

.prediction-box p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* --- Zodiac --- */
.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.zodiac-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zodiac-card:hover, .zodiac-card.active {
    border-color: var(--accent-purple);
    box-shadow: var(--shadow-purple);
    transform: translateY(-3px);
}

.zodiac-symbol {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.zodiac-name {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--text-gold);
    margin-bottom: 4px;
}

.zodiac-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Zodiac type frame (yearly / monthly / weekly) */
.zodiac-type-frame {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.zodiac-type-card {
    display: block;
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.zodiac-type-card:hover {
    border-color: var(--accent-purple);
    box-shadow: var(--shadow-purple);
    transform: translateY(-3px);
}

.zodiac-type-card .zodiac-type-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.zodiac-type-card h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: var(--text-gold);
}

.zodiac-type-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Zodiac single-page sections (Weekly / Monthly / Yearly) */
.zodiac-type-section {
    margin-bottom: 40px;
}
.zodiac-section-title {
    font-size: 1.25rem;
    color: var(--text-gold);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.zodiac-section-icon {
    font-size: 1.5rem;
}
.zodiac-section-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 8px;
}
.zodiac-section-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}
/* ========== ရာသီခွင်စာမျက်နှာ — လှအောင် ========== */
.zodiac-sign-block {
    text-align: center;
    margin-bottom: 36px;
    padding: 28px 20px 24px;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.06) 0%, transparent 100%);
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.15);
}
.zodiac-sign-label {
    font-size: 1.08rem;
    color: var(--text-primary);
    margin: 0 0 20px 0;
    font-weight: 600;
    letter-spacing: 0.03em;
}
.zodiac-sign-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}
.zodiac-sign-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 72px;
    padding: 14px 12px 12px;
    font-size: 0.8rem;
    font-family: var(--font-display);
    color: var(--text-secondary);
    background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(0,0,0,0.04));
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.28s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.zodiac-sign-chip:hover {
    border-color: rgba(212, 175, 55, 0.65);
    color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.22);
}
.zodiac-sign-chip.active {
    border-color: var(--text-gold);
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.24), rgba(212, 175, 55, 0.1));
    color: var(--text-gold);
    box-shadow: 0 4px 22px rgba(212, 175, 55, 0.38), inset 0 1px 0 rgba(255,255,255,0.1);
}
.zodiac-sign-chip.active:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(212, 175, 55, 0.45);
}
.zodiac-chip-symbol {
    font-size: 1.75rem;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}
.zodiac-sign-chip.active .zodiac-chip-symbol {
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.55));
}
.zodiac-chip-name {
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    font-weight: 500;
}
.zodiac-then-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.92rem;
    margin: 0 0 24px 0;
    letter-spacing: 0.02em;
}
/* ရာသီခွင်တွက်ချက်မှု — လှအောင် */
.zodiac-calculator-block {
    max-width: 500px;
    margin: 0 auto 32px;
    padding: 24px 24px 22px;
    background: linear-gradient(145deg, rgba(26, 26, 50, 0.6), rgba(15, 15, 35, 0.8));
    border-radius: 14px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255,255,255,0.04);
}
.zodiac-calculator-title {
    font-size: 1.02rem;
    color: var(--text-gold);
    margin: 0 0 8px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
.zodiac-calculator-title i {
    opacity: 0.95;
}
.zodiac-calculator-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 18px 0;
    line-height: 1.45;
}
.zodiac-calculator-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.zodiac-calculator-row.zodiac-calc-dmy {
    gap: 10px;
}
.zodiac-calculator-row label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.zodiac-calc-select {
    min-width: 76px;
    height: 46px;
    padding: 0 36px 0 14px;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 500;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    background-image: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(0,0,0,0.06) 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat;
    background-position: 0 0, right 12px center;
    background-size: 100% 100%, 14px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.2), 0 1px 0 rgba(255,255,255,0.04);
    appearance: none;
}
.zodiac-calc-select:hover {
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.12), 0 2px 8px rgba(212, 175, 55, 0.15);
}
.zodiac-calc-select:focus {
    outline: none;
    border-color: var(--text-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25), inset 0 1px 2px rgba(0,0,0,0.1);
}
.zodiac-calc-select#zodiac-calc-year {
    min-width: 92px;
}
.zodiac-calculator-row .btn#zodiac-calc-btn {
    height: 46px;
    padding: 0 20px;
    border-radius: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.zodiac-calc-answer {
    margin-top: 18px;
    padding: 14px 18px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    border-left: 4px solid var(--text-gold);
}
.zodiac-calc-answer-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.zodiac-calc-answer-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-gold);
}
.zodiac-calc-input {
    flex: 1;
    min-width: 140px;
    padding: 10px 12px;
    font-size: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
}
@media (max-width: 480px) {
    .zodiac-calculator-row {
        flex-direction: column;
        align-items: stretch;
    }
    .zodiac-calculator-row.zodiac-calc-dmy {
        flex-direction: row;
        justify-content: flex-start;
    }
    .zodiac-calc-select {
        min-width: 0;
        flex: 1;
    }
    .zodiac-calc-input {
        min-width: 0;
    }
}
/* ဟောစာ ၃ မျိုး ကတ် — လှအောင် */
.zodiac-type-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    max-width: 740px;
    margin: 0 auto 36px;
}
.zodiac-type-card-inner {
    padding: 28px 22px 24px;
    background: linear-gradient(160deg, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0.08) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 14px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}
.zodiac-type-card-inner:hover {
    border-color: rgba(212, 175, 55, 0.55);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(212, 175, 55, 0.18);
}
.zodiac-type-card-inner .zodiac-type-card-icon {
    font-size: 2.25rem;
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.25);
}
.zodiac-type-card-inner h3 {
    font-size: 1.05rem;
    color: var(--text-gold);
    margin: 0 0 8px 0;
}
.zodiac-type-card-inner p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.35;
    margin: 0 0 16px 0;
}
.zodiac-type-card-inner .btn-block {
    width: 100%;
}
.zodiac-type-card-inner .zodiac-type-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.zodiac-result-area {
    padding: 24px 24px 28px;
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.06), rgba(0,0,0,0.06));
    border-radius: 14px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-left: 4px solid var(--text-gold);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}
.zodiac-result-content {
    margin-top: 0;
}
.zodiac-inline-result {
    margin: 0;
}
.zodiac-weekly-content {
    line-height: 1.6;
}
.zodiac-weekly-heading {
    font-weight: 600;
    color: var(--text-gold);
    margin-top: 1rem;
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
}
.zodiac-weekly-heading:first-child {
    margin-top: 0;
}
/* Picker row (legacy / other pages) */
.zodiac-picker-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.zodiac-picker-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}
.zodiac-select {
    min-width: 180px;
    padding: 10px 14px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
}
.zodiac-select:focus {
    outline: none;
    border-color: var(--text-gold);
}
.zodiac-btn-fetch {
    white-space: nowrap;
}
.zodiac-grid-compact .zodiac-card {
    padding: 14px;
}
.zodiac-card-btn {
    width: 100%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    cursor: pointer;
    font-family: inherit;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}
.zodiac-card-btn:hover {
    border-color: var(--accent-purple);
    box-shadow: var(--shadow-purple);
    transform: translateY(-3px);
}
.zodiac-result-box {
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--text-gold);
}

@media (max-width: 768px) {
    .zodiac-type-cards {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px) {
    .zodiac-picker-row {
        flex-direction: column;
        align-items: stretch;
    }
    .zodiac-select {
        min-width: 0;
        width: 100%;
    }
    .zodiac-sign-chip {
        min-width: 64px;
        padding: 10px 8px 8px;
        font-size: 0.75rem;
    }
    .zodiac-chip-symbol {
        font-size: 1.5rem;
    }
    .zodiac-chip-name {
        max-width: 56px;
    }
}

/* --- Question Input --- */
.question-box {
    max-width: 600px;
    margin: 0 auto 30px;
    position: relative;
}

.question-box textarea {
    width: 100%;
    padding: 16px;
    background: var(--bg-input);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-body);
    resize: vertical;
    min-height: 80px;
    outline: none;
    transition: border-color 0.3s ease;
}

.question-box textarea:focus {
    border-color: var(--accent-purple);
}

/* --- Loading Spinner --- */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 26, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 3px solid var(--border-color);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: var(--text-gold);
    font-size: 1rem;
}

/* --- Alerts --- */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* --- Divider --- */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 40px 0;
}

/* --- Animations --- */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Mobile Bottom Bar (တားရော့ ကိန်းပညာ မြန်မာဗေဒင် ရာသီခွင် ရှာရလွယ်ရန်) --- */
.mobile-bottom-bar {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 999;
        height: calc(56px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        background: rgba(10, 10, 26, 0.97);
        backdrop-filter: blur(12px);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    }

    .mobile-bottom-bar .mobile-bottom-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 8px 4px;
        color: var(--text-secondary) !important;
        font-size: 0.7rem;
        text-decoration: none;
        transition: color 0.2s ease, background 0.2s ease;
        min-width: 0;
    }

    .mobile-bottom-bar .mobile-bottom-item i {
        font-size: 1.1rem;
        color: var(--text-muted);
        transition: color 0.2s ease;
    }

    .mobile-bottom-bar .mobile-bottom-item:hover,
    .mobile-bottom-bar .mobile-bottom-item:focus {
        color: var(--text-gold) !important;
        background: rgba(255, 215, 0, 0.06);
    }

    .mobile-bottom-bar .mobile-bottom-item:hover i,
    .mobile-bottom-bar .mobile-bottom-item:focus i {
        color: var(--text-gold);
    }

    .mobile-bottom-bar .mobile-bottom-item span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        text-align: center;
    }

    /* မျက်နှာပြင်အောက်မှာ bar ရှိလို့ main ကို အောက်ခြေ နေရာပေးရန် */
    .main-content {
        padding-bottom: calc(56px + env(safe-area-inset-bottom) + 24px);
    }
}

/* --- Footer --- */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 50px 0 30px;
    position: relative;
    z-index: 1;
}

.footer-content {
    text-align: center;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text-gold);
    margin-bottom: 10px;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 8px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 24px 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--text-gold);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 20px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100vw;
        height: calc(100vh - var(--nav-height));
        min-height: calc(100vh - var(--nav-height));
        box-sizing: border-box;
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px;
        padding-right: max(24px, env(safe-area-inset-right));
        padding-bottom: max(24px, env(safe-area-inset-bottom));
        gap: 8px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 1001;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        padding: 12px 16px;
        font-size: 1rem;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        box-sizing: border-box;
    }

    .nav-user {
        flex-direction: column;
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding-top: 12px;
        width: 100%;
    }

    .lang-switcher {
        margin-left: 0;
        margin-top: 12px;
        align-self: center;
    }

    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }

    .features-grid {
        grid-template-columns: 1fr;
        padding: 20px 0 40px;
    }

    .form-card { padding: 24px; }
    .form-row { grid-template-columns: 1fr; }

    .tarot-card {
        width: 140px;
        height: 240px;
    }

    .tarot-spread { gap: 16px; }

    .section-title { font-size: 1.5rem; }
    .page-header h1 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.6rem; }
    .hero { padding: 60px 0 40px; }
    .card { padding: 20px; }
    .numerology-grid { grid-template-columns: 1fr 1fr; }
    .zodiac-grid { grid-template-columns: repeat(3, 1fr); }
}
