/* ========================================
   Cards & Stars - Mystical Theme
   ======================================== */

:root {
    --bg-dark: #0a0a1a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #222240;
    --accent-gold: #d4af37;
    --accent-gold-light: #f0d060;
    --accent-purple: #7b2d8e;
    --accent-purple-light: #9b4dae;
    --text-light: #e8e6e3;
    --text-muted: #9a98a0;
    --border-subtle: #2a2a4e;
    --gradient-gold: linear-gradient(135deg, #d4af37, #f0d060);
    --gradient-purple: linear-gradient(135deg, #7b2d8e, #4a1259);
    --gradient-night: linear-gradient(180deg, #0a0a1a 0%, #16213e 50%, #0a0a1a 100%);
    --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.3);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-gold-light);
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   Star Field Background
   ======================================== */
.starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-dark);
}

.starfield::before,
.starfield::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.8) 0%, transparent 100%),
        radial-gradient(1px 1px at 30% 65%, rgba(255,255,255,0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 50% 10%, rgba(255,255,255,0.7) 0%, transparent 100%),
        radial-gradient(1px 1px at 70% 40%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 90% 80%, rgba(255,255,255,0.6) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 15% 85%, rgba(212,175,55,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 25% 45%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 45% 75%, rgba(212,175,55,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 60% 25%, rgba(255,255,255,0.7) 0%, transparent 100%),
        radial-gradient(1px 1px at 80% 55%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 5% 50%, rgba(255,255,255,0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 35% 30%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 55% 90%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 75% 15%, rgba(212,175,55,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 95% 35%, rgba(255,255,255,0.6) 0%, transparent 100%);
    animation: twinkle 8s ease-in-out infinite alternate;
}

.starfield::after {
    background-image:
        radial-gradient(1px 1px at 12% 38%, rgba(255,255,255,0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 22% 72%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 42% 18%, rgba(212,175,55,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 62% 55%, rgba(255,255,255,0.7) 0%, transparent 100%),
        radial-gradient(1px 1px at 82% 88%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 8% 95%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 38% 5%, rgba(255,255,255,0.6) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 58% 42%, rgba(212,175,55,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 78% 68%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 98% 12%, rgba(255,255,255,0.6) 0%, transparent 100%);
    animation: twinkle 12s ease-in-out infinite alternate-reverse;
}

@keyframes twinkle {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 26, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 2rem;
}

.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-decoration: none;
}

.navbar-logo img {
    width: 36px;
    height: 36px;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.navbar-links a {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 0.25rem 0;
}

.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width var(--transition);
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
    width: 100%;
}

.navbar-links a:hover {
    color: var(--accent-gold);
}

.navbar-auth {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.badge-sub {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 20px;
    background: var(--gradient-gold);
    color: var(--bg-dark);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-light);
    transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .navbar-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 26, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition);
        border-bottom: 1px solid var(--border-subtle);
    }

    .navbar-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .navbar-auth {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn-gold {
    background: var(--gradient-gold);
    color: var(--bg-dark);
    box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    color: var(--bg-dark);
}

.btn-outline {
    background: transparent;
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.btn-purple {
    background: var(--gradient-purple);
    color: var(--text-light);
}

.btn-purple:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(123, 45, 142, 0.4);
    color: var(--text-light);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* ========================================
   Container & Layout
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    color: var(--accent-gold);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 3rem;
}

.divider {
    width: 60px;
    height: 2px;
    background: var(--gradient-gold);
    margin: 1rem auto;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    text-align: center;
    padding: 8rem 1.5rem 5rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(123,45,142,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light), var(--text-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .tagline {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-style: italic;
    font-family: 'Cinzel', serif;
}

.hero .moon-display {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.hero .moon-display img {
    width: 28px;
    height: 28px;
}

.hero .moon-display strong {
    color: var(--text-light);
}

@media (max-width: 768px) {
    .hero {
        padding: 5rem 1.5rem 3rem;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
}

/* ========================================
   Feature Cards
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

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

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-gold);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: var(--accent-gold);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ========================================
   Pricing Cards
   ======================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    transition: all var(--transition);
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-purple-light);
}

.pricing-card.featured {
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-gold);
}

.pricing-card .badge-save {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--gradient-gold);
    color: var(--bg-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.pricing-card h3 {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.pricing-card .price {
    font-size: 3rem;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--accent-gold);
    margin: 1rem 0 0.5rem;
}

.pricing-card .price span {
    font-size: 1rem;
    color: var(--text-muted);
}

.pricing-card .price-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.pricing-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.pricing-card ul li {
    padding: 0.5rem 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.pricing-card ul li::before {
    content: '\2727';
    color: var(--accent-gold);
    margin-right: 0.5rem;
}

/* ========================================
   Testimonials
   ======================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

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

.testimonial-card::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--accent-gold);
    opacity: 0.3;
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: 'Cinzel', serif;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-top: 1.5rem;
}

.testimonial-card .author {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ========================================
   Tarot Card Flip Animation
   ======================================== */
.card-flip-container {
    perspective: 1000px;
    width: 280px;
    height: 440px;
    margin: 0 auto;
    cursor: pointer;
}

.card-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.card-flip-container.flipped .card-flip-inner {
    transform: rotateY(180deg);
}

.card-flip-front,
.card-flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.card-flip-front {
    background: var(--gradient-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-gold);
}

.card-flip-front .card-back-design {
    width: 80%;
    height: 85%;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-flip-front .card-back-design img {
    width: 60px;
    opacity: 0.6;
}

.card-flip-back {
    transform: rotateY(180deg);
    border: 2px solid var(--accent-gold);
}

.card-flip-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-reversed .card-flip-back img {
    transform: rotate(180deg);
}

/* ========================================
   Reading Layout
   ======================================== */
.reading-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}

.reading-main {
    min-width: 0;
}

.reading-sidebar {
    position: sticky;
    top: 90px;
}

.reading-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-light);
}

.reading-text::first-letter {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 700;
    float: left;
    color: var(--accent-gold);
    line-height: 0.8;
    margin-right: 0.5rem;
    margin-top: 0.1rem;
}

.reading-card-info {
    text-align: center;
    margin-bottom: 2rem;
}

.reading-card-info h1 {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.reading-card-info .orientation {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.orientation.upright {
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.orientation.reversed {
    background: rgba(123, 45, 142, 0.15);
    color: var(--accent-purple-light);
    border: 1px solid rgba(123, 45, 142, 0.3);
}

/* Sidebar Panels */
.sidebar-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-panel h3 {
    font-size: 1rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-panel .moon-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-panel .moon-info img {
    width: 48px;
    height: 48px;
}

.sidebar-panel .moon-info .phase-name {
    font-weight: 600;
    color: var(--text-light);
}

.sidebar-panel .moon-info .illumination {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.planet-list {
    list-style: none;
}

.planet-list li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(42, 42, 78, 0.5);
}

.planet-list li:last-child {
    border-bottom: none;
}

.planet-list li strong {
    color: var(--text-light);
}

.retrograde-badge {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    background: rgba(200, 50, 50, 0.2);
    color: #e57373;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

@media (max-width: 900px) {
    .reading-layout {
        grid-template-columns: 1fr;
    }

    .reading-sidebar {
        position: static;
    }
}

/* ========================================
   History Grid
   ======================================== */
.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.history-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.history-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-gold);
    color: inherit;
}

.history-card .card-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-subtle);
}

.history-card .card-info {
    padding: 1.25rem;
}

.history-card .card-info h4 {
    font-size: 1rem;
    color: var(--accent-gold);
    margin-bottom: 0.25rem;
}

.history-card .card-info .date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.history-card .card-info .orientation-badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    margin-top: 0.5rem;
    text-transform: uppercase;
    font-weight: 600;
}

/* ========================================
   Pagination
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    list-style: none;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--border-subtle);
    transition: all var(--transition);
}

.pagination a {
    background: var(--bg-card);
    color: var(--text-light);
}

.pagination a:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.pagination .current {
    background: var(--gradient-gold);
    color: var(--bg-dark);
    border-color: var(--accent-gold);
}

/* ========================================
   Profile Page
   ======================================== */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

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

.profile-section h3 {
    font-size: 1.1rem;
    color: var(--accent-gold);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

.profile-section .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(42, 42, 78, 0.3);
}

.profile-section .info-row:last-child {
    border-bottom: none;
}

.profile-section .info-row .label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.profile-section .info-row .value {
    font-weight: 600;
    color: var(--text-light);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(42, 42, 78, 0.3);
    border-radius: var(--radius);
}

.stat-item .stat-number {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.stat-item .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Forms
   ======================================== */
.form-container {
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 3rem;
}

.form-container h1 {
    text-align: center;
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin-bottom: 2rem;
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    color: var(--text-light);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

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

.form-group .helptext {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.form-errors {
    list-style: none;
    margin-bottom: 1rem;
}

.form-errors li {
    background: rgba(200, 50, 50, 0.15);
    border: 1px solid rgba(200, 50, 50, 0.3);
    color: #e57373;
    padding: 0.6rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border-subtle);
    border-radius: 26px;
    transition: var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: var(--text-light);
    border-radius: 50%;
    transition: var(--transition);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent-gold);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

/* ========================================
   Toast Notifications
   ======================================== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
    max-width: 350px;
}

.toast-success {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #81c784;
}

.toast-error {
    background: rgba(200, 50, 50, 0.15);
    border: 1px solid rgba(200, 50, 50, 0.3);
    color: #e57373;
}

.toast-info {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--accent-gold);
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateX(50px); }
}

/* ========================================
   Share Buttons
   ======================================== */
.share-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-subtle);
    margin-top: 2rem;
}

.share-section .label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========================================
   Subscription Success / Cancel
   ======================================== */
.celebration {
    text-align: center;
    padding: 5rem 1.5rem;
}

.celebration h1 {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.celebration p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Sparkle animation */
.sparkle-container {
    position: relative;
    display: inline-block;
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
    50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

.sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-gold);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: sparkle 2s ease-in-out infinite;
}

.sparkle:nth-child(1) { top: -20px; left: -20px; animation-delay: 0s; }
.sparkle:nth-child(2) { top: -15px; right: -25px; animation-delay: 0.4s; }
.sparkle:nth-child(3) { bottom: -20px; left: -15px; animation-delay: 0.8s; }
.sparkle:nth-child(4) { bottom: -18px; right: -20px; animation-delay: 1.2s; }
.sparkle:nth-child(5) { top: 50%; left: -30px; animation-delay: 0.6s; }
.sparkle:nth-child(6) { top: 50%; right: -30px; animation-delay: 1s; }

/* ========================================
   Free Trial CTA
   ======================================== */
.cta-section {
    text-align: center;
    padding: 4rem 1.5rem;
    background: linear-gradient(180deg, transparent, rgba(123, 45, 142, 0.08), transparent);
}

.cta-section h2 {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 3rem 0 2rem;
    margin-top: 3rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-links-col h4 {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links-col a {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 0.25rem 0;
}

.footer-links-col a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

@media (max-width: 600px) {
    .footer-inner {
        flex-direction: column;
    }
    .footer-links {
        gap: 2rem;
    }
}

/* ========================================
   Django Messages
   ======================================== */
.messages {
    list-style: none;
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 1.5rem;
}

.messages li {
    padding: 0.8rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.messages .success {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #81c784;
}

.messages .error {
    background: rgba(200, 50, 50, 0.15);
    border: 1px solid rgba(200, 50, 50, 0.3);
    color: #e57373;
}

.messages .warning {
    background: rgba(255, 183, 77, 0.15);
    border: 1px solid rgba(255, 183, 77, 0.3);
    color: #ffb74d;
}

.messages .info {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--accent-gold);
}

/* ========================================
   Filter Bar
   ======================================== */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-bar select {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    color: var(--text-light);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
}

.filter-bar select:focus {
    outline: none;
    border-color: var(--accent-gold);
}

/* ========================================
   Guarantee Badge
   ======================================== */
.guarantee {
    text-align: center;
    margin-top: 2.5rem;
    padding: 1.5rem;
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius-lg);
}

.guarantee .icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.guarantee p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.guarantee strong {
    color: var(--accent-gold);
}

/* ========================================
   Tomorrow Footer
   ======================================== */
.tomorrow-footer {
    text-align: center;
    padding: 3rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--border-subtle);
}

.tomorrow-footer p {
    color: var(--text-muted);
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
}

.tomorrow-footer .stars {
    color: var(--accent-gold);
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
    margin-bottom: 0.5rem;
}

/* ========================================
   Page Header
   ======================================== */
.page-header {
    text-align: center;
    padding: 3rem 0;
}

.page-header h1 {
    font-size: 2.2rem;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ========================================
   Empty State
   ======================================== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* ========================================
   Allauth Form Styling
   ======================================== */
.allauth-form input[type="text"],
.allauth-form input[type="email"],
.allauth-form input[type="password"] {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    color: var(--text-light);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    margin-bottom: 0.5rem;
}

.allauth-form input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.allauth-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.4rem;
    margin-top: 1rem;
}

.allauth-form .helptext,
.allauth-form ul {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    list-style: none;
}

.allauth-form .errorlist {
    list-style: none;
    padding: 0;
}

.allauth-form .errorlist li {
    color: #e57373;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.allauth-form button[type="submit"],
.allauth-form input[type="submit"] {
    width: 100%;
    margin-top: 1.5rem;
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .navbar,
    .footer,
    .share-section,
    .tomorrow-footer,
    .hamburger,
    .reading-sidebar {
        display: none !important;
    }

    body {
        background: white;
        color: #333;
    }

    .reading-layout {
        grid-template-columns: 1fr;
    }

    .reading-text {
        color: #333;
    }

    .reading-text::first-letter {
        color: #7b2d8e;
    }

    .reading-card-info h1 {
        color: #333;
    }

    .card-flip-container {
        page-break-inside: avoid;
    }
}
