/*
  Theme Name: Cosmic Numerology Pro
  Author: Your Name
  Version: 1.0
  Description: Premium Cosmic Numerology Theme with Slider
*/

/* ================================================
   CSS CUSTOM PROPERTIES (Variables)
================================================ */

:root {
    --purple-primary: #7b2ff7;
    --purple-light: #9a5cff;
    --purple-mid: #9d4edd;
    --purple-pastel: #c77dff;
    --purple-soft: #cc66ff;
    --purple-hover: #cc99ff;
    --pink-accent: #f107a3;
    --pink-alt: #a970ff;
    --bg-dark: #0a0015;
    --bg-deep: #050008;
    --bg-cosmic: radial-gradient(circle at top, #2a003f, #0a0015 70%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #bbb;
    --text-dim: #ccc;
    --text-faint: #aaa;
    --gradient-cta: linear-gradient(45deg, #7b2ff7, #f107a3);
    --gradient-purple: linear-gradient(90deg, #9d4edd, #c77dff);
    --transition: 0.3s ease;
}

/* ================================================
   BASE / RESET
================================================ */

body {
    margin: 0;
    /* DO NOT set background directly on body — gradients on body repaint the
       entire viewport whenever any child element triggers a style recalculation
       (focus, hover, transition). On Elementor Hello this causes full-page flicker
       on every textbox click because Elementor's containers all inherit from body. */
    background: transparent;
    color: var(--text-main);
    font-family: 'Poppins', sans-serif;
}

/* Background lives on a pseudo-element promoted to its own GPU compositing layer.
   Repaints inside forms, inputs, or any other element can NEVER touch this layer. */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at top, #2a003f, #0a0015 70%);
    /* This is the key: will-change promotes this to a separate GPU layer.
       The browser never needs to repaint it when other elements change. */
    will-change: transform;
    pointer-events: none;
}

/* ================================================
   COSMIC ANIMATED BACKGROUND
================================================ */

/* #cosmic-bg is now redundant — background is handled by body::before above.
   Keeping selector but making it transparent so it doesn't double-paint. */
#cosmic-bg {
    display: none;
}

/* ================================================
   HEADER (Generic)
================================================ */

header {
    display: flex;
    justify-content: space-between;
    padding: 1px 60px;
    position: sticky;
    top: 0;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.4);
}

/* ================================================
   COSMIC HEADER (Main Site Header)
================================================ */

.cosmic-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1px 60px;
    background: rgba(10, 10, 25, 0.9);
    position: sticky;
    top: 0;
    z-index: 9999;
}

.logo img {
    max-height: 75px;
}

/* ================================================
   NAVIGATION — DESKTOP MENU
================================================ */

.main-nav .menu {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-nav .menu li {
    position: relative;
}

.main-nav .menu li a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.main-nav .menu li a:hover {
    color: var(--purple-hover);
}

/* CTA Button — last nav item */
.main-nav .menu li:last-child > a,
.main-nav ul li:last-child > a,
.main-nav ul li.cta-orange > a {
    background: var(--gradient-cta);
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 600;
    color: var(--text-main) !important;
    transition: var(--transition);
    box-shadow: 0 0 15px rgba(241, 7, 163, 0.6);
}

.main-nav .menu li:last-child > a:hover,
.main-nav ul li:last-child > a:hover,
.main-nav ul li.cta-orange > a:hover {
    transform: scale(1.06);
    box-shadow: 0 0 25px rgba(241, 7, 163, 0.9);
}

/* Legacy CTA class */
.main-nav ul li.cta-button a {
    background: linear-gradient(45deg, #ff00cc, #6600ff);
    padding: 8px 20px;
    border-radius: 30px;
    color: var(--text-main) !important;
    font-weight: 600;
}

/* ================================================
   NAVIGATION — DROPDOWN
================================================ */

.main-nav .menu li ul {
    position: absolute;
    top: 33px;
    left: 0;
    background: #111133;
    list-style: none;
    padding: 10px 0;
    min-width: 200px;
    border-radius: 10px;
    display: none;
}

.main-nav .menu li:hover > ul {
    display: block;
}

.main-nav .menu li ul li {
    padding: 8px 15px;
}

/* ================================================
   NAVIGATION — HAMBURGER
================================================ */

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 4px 0;
    transition: var(--transition);
}

/* ================================================
   NAVIGATION — MOBILE
================================================ */

@media (max-width: 992px) {

    .cosmic-header {
        flex-direction: row;
        justify-content: space-between;
        padding: 1px 25px;
    }

    .hamburger {
        display: flex;
        order: 1;
    }

    .logo {
        order: 2;
        margin-left: auto;
    }

    .main-nav .menu {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        width: 260px;
        background: #0a0a25;
        flex-direction: column;
        padding-top: 80px;
        gap: 25px;
        transition: 0.4s ease;
        z-index: 999;
    }

    .main-nav .menu.active {
        left: 0;
    }

    .main-nav .menu li ul {
        position: static;
        display: block;
        background: none;
        padding-left: 15px;
    }

    /* Slide-from-right variant (ul without .menu class) */
    .main-nav ul:not(.menu) {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 260px;
        flex-direction: column;
        padding-top: 80px;
        background: #0a0a25;
        gap: 25px;
        transition: 0.4s ease;
    }

    .main-nav ul.active {
        right: 0;
    }
}

/* ================================================
   GLOBAL BUTTONS & CTA
================================================ */

.btn {
    padding: 14px 28px;
    border-radius: 30px;
    background: linear-gradient(90deg, var(--purple-soft), #9933ff);
    color: white;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 0 20px rgba(204, 102, 255, 0.6);
    transition: var(--transition);
}

.btn:hover {
    transform: scale(1.05);
}

button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 28px;
    border-radius: 40px;
    background: var(--gradient-purple);
    color: var(--text-main);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

button:hover {
    background: linear-gradient(90deg, #7b2cbf, var(--purple-mid));
}

/* ================================================
   HERO SLIDER
================================================ */

.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: var(--bg-cosmic);
}

.hero-slider .slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-slider .slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 0, 25, 0.6);
    z-index: 1;
}

.hero-slider .slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 20px;
    color: var(--text-main);
}

.slide-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Slider CTA Button */
.slider-btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    background: var(--gradient-cta);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 0 20px rgba(241, 7, 163, 0.6);
    transition: var(--transition);
}

.slider-btn:hover {
    transform: scale(1.05);
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: var(--text-main);
    cursor: pointer;
    z-index: 5;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    transition: var(--transition);
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
}

.slider-arrow.left { left: 30px; }
.slider-arrow.right { right: 30px; }

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 35px;
    width: 100%;
    text-align: center;
    z-index: 5;
}

.slider-dots span {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dots span.active {
    background: var(--pink-accent);
    transform: scale(1.2);
}

@media (max-width: 992px) {
    .slide-content h1 { font-size: 32px; }
    .slide-content p { font-size: 16px; }
    .slider-arrow { font-size: 30px; padding: 8px 12px; }
}

@media (max-width: 768px) {
    .slider-arrow { display: none !important; }
    .slide h1 { font-size: 28px; }
}

/* ================================================
   GENERAL SECTION / GRID / CARD (Generic)
================================================ */

.section {
    padding: 10px 60px;
    text-align: center;
}

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

.card {
    background: rgba(15, 8, 35, 0.92);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: 0.4s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(204, 102, 255, 0.5);
}

/* Shared Section Title Styles */
.section-title,
.career-title,
.ai-report-title {
    font-size: 36px;
    margin-bottom: 15px;
    background: var(--gradient-cta);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.career-title { font-size: 38px; }
.ai-report-title { font-size: 40px; }

.section-subtitle,
.career-subtitle,
.ai-report-subtitle {
    color: var(--text-muted);
    margin-bottom: 60px;
}

.career-subtitle,
.ai-report-subtitle {
    max-width: 750px;
    margin: 0 auto 60px;
    line-height: 1.7;
}

.ai-report-subtitle { margin-bottom: 70px; }

/* ================================================
   SERVICES SECTION
================================================ */

.services-section {
    padding: 100px 60px;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

.service-card {
    background: rgba(15, 8, 35, 0.92);
    padding: 35px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(123, 47, 247, 0.6);
}

.service-card h3 { margin-bottom: 15px; color: var(--text-main); }
.service-card p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }

.service-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 22px;
    border-radius: 25px;
    background: var(--gradient-cta);
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.service-btn:hover { transform: scale(1.05); }

@media (max-width: 768px) {
    .services-section { padding: 70px 20px; }
}

/* ================================================
   CAREER SECTION
================================================ */

.career-section {
    padding: 120px 60px;
    text-align: center;
}

.career-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 70px;
}

.career-card {
    background: var(--glass-bg);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    transition: 0.4s ease;
}

.career-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(123, 47, 247, 0.6);
}

.career-card h3 { margin-bottom: 15px; color: var(--text-main); }
.career-card p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }

.career-cta { margin-top: 40px; }
.career-cta h3 { font-size: 26px; margin-bottom: 10px; }
.career-cta p { margin-bottom: 20px; color: var(--text-muted); }

.career-btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 30px;
    background: var(--gradient-cta);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 0 25px rgba(241, 7, 163, 0.6);
    transition: var(--transition);
}

.career-btn:hover { transform: scale(1.05); }

@media (max-width: 768px) {
    .career-section { padding: 80px 20px; }
    .career-title { font-size: 28px; }
}

/* ================================================
   AI REPORT SECTION
================================================ */

.ai-report-section {
    padding: 120px 60px;
    background: linear-gradient(180deg, #0a0015, #1a0035);
    text-align: center;
}

.ai-report-box {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    align-items: center;
    background: rgba(15, 8, 35, 0.95);
    padding: 60px;
    border-radius: 25px;
    border: 1px solid var(--glass-border);
    max-width: 1100px;
    margin: 0 auto;
}

.ai-report-left { flex: 1; text-align: left; }
.ai-report-right { flex: 1; text-align: center; }

.ai-features { list-style: none; padding: 0; }
.ai-features li { margin-bottom: 12px; font-size: 15px; color: #ddd; }

.price-box { margin-bottom: 25px; }

/* .price is shared with pricing section — see Pricing section below */

.price-label { display: block; font-size: 14px; color: var(--text-muted); }

.ai-report-btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 35px;
    background: var(--gradient-cta);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 0 30px rgba(241, 7, 163, 0.6);
    transition: var(--transition);
}

.ai-report-btn:hover { transform: scale(1.05); }

.guarantee { margin-top: 15px; font-size: 13px; color: var(--text-faint); }

@media (max-width: 992px) {
    .ai-report-box { flex-direction: column; padding: 40px; }
    .ai-report-left { text-align: center; margin-bottom: 40px; }
}

/* ================================================
   PRICING SECTION
================================================ */

.cosmic-pricing {
    text-align: center;
    padding: 80px 20px;
}

.pricing-title { font-size: 34px; margin-bottom: 10px; }
.pricing-subtitle { opacity: 0.8; margin-bottom: 50px; }

.pricing-wrapper {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.pricing-card {
    position: relative;
    width: 320px;
    padding: 40px 30px;
    border-radius: 20px;
    background: rgba(20, 10, 45, 0.95);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    transition: 0.3s;
}

.pricing-card:hover { transform: translateY(-10px); }

.price {
    font-size: 40px;
    font-weight: 700;
    color: var(--purple-pastel);
}

.credits { margin-bottom: 20px; }

.pricing-card ul { list-style: none; padding: 0; text-align: center; }
.pricing-card ul li { margin: 10px 0; }

.pricing-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 28px;
    border-radius: 40px;
    background: var(--gradient-purple);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
}

.pricing-btn:hover { background: linear-gradient(90deg, #7b2cbf, var(--purple-mid)); }

/* Badges */
.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff9f1c;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 12px;
}

.badge.purple { background: var(--purple-mid); }

.popular { transform: scale(1.05); }
.best { border: 1px solid rgba(157, 78, 221, 0.5); }

@media (max-width: 768px) {
    .pricing-wrapper { flex-direction: column; align-items: center; }
    .pricing-card { width: 90%; }
}

/* ================================================
   FOOTER (Generic)
================================================ */

footer {
    background: var(--bg-deep);
    padding: 60px;
    text-align: center;
}

/* ================================================
   COSMIC FOOTER
================================================ */

.cosmic-footer {
    background: var(--bg-deep);
    padding: 70px 60px 30px;
    color: #ddd;
    margin-top: 100px;
    box-shadow: 0 -10px 40px rgba(204, 102, 255, 0.1);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col { flex: 1; min-width: 220px; }
.footer-col h3, .footer-col h4 { color: var(--purple-hover); margin-bottom: 20px; }

.footer-menu,
.footer-menu ul {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    list-style: none !important;
    margin-bottom: 10px;
}

.footer-menu li a {
    text-decoration: none;
    color: #bbb;
    font-size: 14px;
    transition: var(--transition);
    display: inline-block;
}

.footer-menu li a:hover {
    color: var(--purple-hover);
    transform: translateX(4px);
}

.cosmic-footer .copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #777;
}

/* ================================================
   COSMIC DARK FORM / GENERATOR THEME
================================================ */

.cosmic-container {
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
}

.cosmic-form-wrapper {
    background: linear-gradient(145deg, #0f0c29, #1a1a40);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 40px rgba(123, 47, 247, 0.3);
    border: 1px solid rgba(123, 47, 247, 0.4);
    /* Isolate into its own compositing layer — prevents focus repaints
       inside from bleeding into backdrop-filter ancestors and flickering */
    transform: translateZ(0);
    isolation: isolate;
    contain: layout style;
}

.cosmic-form-wrapper h2,
.cosmic-container h1 {
    color: var(--pink-alt);
    margin-bottom: 20px;
}

.cosmic-form-wrapper input,
.cosmic-form-wrapper select {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Solid dark bg — rgba transparent + transition = full repaint on every keypress */
    background: #1a1040;
    color: var(--text-main);
    font-size: 14px;
    /* ONLY transition border-color — never transition 'all', which repaints
       width/height/background on every keypress and causes flicker */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    will-change: border-color;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.cosmic-form-wrapper input:focus,
.cosmic-form-wrapper select:focus {
    border-color: var(--pink-alt);
    outline: none;
    /* inset shadow stays inside the element — outer glow box-shadow
       forces ancestor recompositing which is what causes page-level flicker */
    box-shadow: inset 0 0 0 1px rgba(169, 112, 255, 0.5);
    background: #1e1550;
}

#cosmicGenerate {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(90deg, var(--purple-primary), var(--purple-light));
    color: var(--text-main);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

#cosmicGenerate:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(123, 47, 247, 0.4);
}

#result {
    margin-top: 20px;
    padding: 20px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(169, 112, 255, 0.4);
    max-height: 400px;
    overflow-y: auto;
    line-height: 1.6;
}

/* ================================================
   COSMIC DASHBOARD (Custom)
================================================ */

.cosmic-dashboard {
    background: linear-gradient(145deg, #0f0c29, #1a1a40);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(123, 47, 247, 0.3);
    border: 1px solid rgba(123, 47, 247, 0.4);
    margin-right:50px;
}

.cosmic-dashboard table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.cosmic-dashboard th {
    background: rgba(123, 47, 247, 0.3);
    padding: 12px;
    text-align: left;
    color: var(--text-main);
}

.cosmic-dashboard td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ddd;
}

.cosmic-dashboard tr:hover { background: rgba(169, 112, 255, 0.1); }

.cosmic-dashboard a {
    padding: 6px 12px;
    border-radius: 6px;
    background: var(--purple-primary);
    color: var(--text-main);
    text-decoration: none;
    font-size: 13px;
}

.cosmic-dashboard a:hover { background: var(--purple-light); }

/* ================================================
   DASHBOARD HEADER & STATS
================================================ */

.cosmic-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.cosmic-dashboard-header h2 { font-size: 28px; margin: 0; }

.cosmic-plan-badge {
    padding: 6px 18px;
    border-radius: 30px;
    background: var(--gradient-purple);
    font-size: 14px;
    font-weight: 600;
}

.cosmic-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.cosmic-stat-card {
    background: rgba(20, 10, 45, 0.95);
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
}

.cosmic-stat-card h4 { font-size: 14px; color: var(--purple-pastel); margin-bottom: 10px; }
.cosmic-stat-card span { font-size: 26px; font-weight: bold; }

/* ================================================
   DASHBOARD REPORT TABLE
================================================ */

.cosmic-report-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(15, 8, 35, 0.95);
    border-radius: 16px;
    overflow: hidden;
}

.cosmic-report-table th,
.cosmic-report-table td { padding: 16px; text-align: left; }

.cosmic-report-table th { background: rgba(255, 255, 255, 0.1); font-size: 14px; color: var(--purple-pastel); }
.cosmic-report-table tr { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.cosmic-report-table tr:hover { background: rgba(255, 255, 255, 0.05); }

/* ================================================
   DASHBOARD ACTION BUTTONS
================================================ */

.cosmic-dashboard-btn {
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin-right: 8px;
    transition: var(--transition);
}

.cosmic-dashboard-btn.view { background: #3a0ca3; color: var(--text-main); }
.cosmic-dashboard-btn.pdf { background: var(--purple-mid); color: var(--text-main); }
.cosmic-dashboard-btn.regen { background: #333; color: var(--text-main); }
.cosmic-dashboard-btn:hover { transform: translateY(-2px); }

/* ================================================
   DASHBOARD EMPTY STATE
================================================ */

.cosmic-empty-state {
    text-align: center;
    padding: 60px;
    background: rgba(15, 8, 35, 0.95);
    border-radius: 16px;
}

.cosmic-empty-state h3 { margin-bottom: 15px; }

.cosmic-empty-state a {
    display: inline-block;
    padding: 12px 24px;
    background: var(--gradient-purple);
    border-radius: 30px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
}

/* ================================================
   REPORT CARD LIST
================================================ */

.cosmic-report-list { display: flex; flex-direction: column; gap: 20px; }

.cosmic-report-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(20, 10, 45, 0.95);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.cosmic-report-card:hover { transform: translateY(-4px); }

.report-info h3 { margin: 0 0 5px; font-size: 18px; }
.report-info p { margin: 0 0 5px; font-size: 14px; color: var(--text-dim); }
.report-info small { font-size: 13px; color: var(--text-faint); }

.report-actions { display: flex; gap: 10px; }

/* ================================================
   WOOCOMMERCE — MY ACCOUNT
================================================ */

.woocommerce-account .woocommerce {
    display: block;
    gap: 30px;
}

/* Sidebar */
.woocommerce-account-navigation {
    width: 260px;
    background: rgba(20, 10, 40, 0.85);
    /* Replaced backdrop-filter: blur — blur forces GPU recompositing on every
       nearby repaint (e.g. input focus), causing the flicker. Solid bg achieves
       the same visual without the compositing cost */
    border-radius: 20px;
    padding: 15px;
    transform: translateZ(0);
}

.woocommerce-account-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-account-navigation ul li { margin-bottom: 10px; }

.woocommerce-account-navigation ul li a {
    display: block;
    padding: 12px 15px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
}

.woocommerce-account-navigation ul li a:hover {
    background: rgba(157, 78, 221, 0.25);
}

.woocommerce-account-navigation .is-active a {
    background: var(--gradient-purple);
    color: var(--text-main);
}

.woocommerce-account-navigation .woocommerce-MyAccount-navigation-link--customer-logout a {
    background: rgba(255, 0, 0, 0.15);
}

/* Compact button menu overrides */
li.woocommerce-MyAccount-navigation-link { display: block; margin-bottom: 8px; }

li.woocommerce-MyAccount-navigation-link a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    transition: all 0.25s ease;
}

li.woocommerce-MyAccount-navigation-link:hover {
    background: rgba(157, 78, 221, 0.25);
    transform: translateY(-1px);
}

/* Content Area */
.woocommerce-account-content {
    flex: 1;
    background: rgba(15, 10, 35, 0.9);
    /* backdrop-filter removed — causes recompositing flicker on input focus */
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
    transform: translateZ(0);
    isolation: isolate;
}

.woocommerce-account-content h2,
.woocommerce-account-content h3 { margin-bottom: 20px; }

.woocommerce-MyAccount-content p { padding: 15px; border-radius: 12px; }

/* ================================================
   WOOCOMMERCE — TABLES
================================================ */

.woocommerce table.shop_table {
    border: none;
    background: var(--glass-bg);
    border-radius: 15px;
    overflow: hidden;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td { border: none; padding: 14px; }

/* ================================================
   WOOCOMMERCE — BUTTONS
================================================ */

.woocommerce a.button,
.woocommerce button.button {
    background: var(--gradient-purple);
    border-radius: 30px;
    border: none;
    color: var(--text-main);
    padding: 10px 20px;
}

.woocommerce a.button:hover {
    background: linear-gradient(90deg, #7b2cbf, var(--purple-mid));
}

/* ================================================
   WOOCOMMERCE — FORMS
================================================ */

.woocommerce form input,
.woocommerce form select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 10px;
    color: var(--text-main);
}

/* ================================================
   WOOCOMMERCE — SHOP / CREDIT GRID
================================================ */

/* Hide unwanted elements */
.woocommerce-product-gallery,
.woocommerce ul.products li.product img,
.woocommerce-cart table.cart img,
.woocommerce-checkout-review-order-table img,
.wc-block-components-order-summary-item__image,
.woocommerce-result-count,
.woocommerce-ordering,
.woocommerce-breadcrumb,
.woocommerce-tabs,
.related.products,
.product_meta,
.sku_wrapper,
.posted_in,
.tagged_as,
.quantity,
.woocommerce-form-coupon-toggle,
.woocommerce-additional-fields,
.woocommerce-shipping-fields,
.woocommerce-cart .cross-sells,
.woocommerce span.onsale,
.woocommerce-cart .cart-empty + .return-to-shop {
    display: none !important;
}

.woocommerce-page .sidebar,
.woocommerce .sidebar { display: none !important; }

header.woocommerce-products-header {
    background: var(--bg-cosmic);
    position: relative;
    text-align: center;
}

/* Product Grid */
.woocommerce ul.products {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 50px 0;
}

.woocommerce ul.products li.product {
    position: relative;
    background: rgba(20, 10, 45, 0.95);
    border-radius: 20px;
    padding: 40px 30px;
    width: 320px;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 40px rgba(157, 78, 221, 0.4);
}

.woocommerce ul.products li.product h2 { font-size: 20px; color: var(--text-main); margin-bottom: 10px; }

.woocommerce ul.products li.product .price {
    font-size: 26px;
    font-weight: 700;
    color: var(--purple-pastel);
    margin: 20px 0;
}

.wc-block-components-button__text,
.woocommerce ul.products li.product .button {
    background: var(--gradient-purple);
    border-radius: 40px;
    padding: 12px 28px;
    border: none;
    font-weight: 600;
    color: var(--text-main);
    transition: var(--transition);
}

.wc-block-components-checkout-place-order-button {
    background: var(--gradient-purple);
    border-radius: 40px;
    padding: 0 !important;
    border: none;
    font-weight: 600;
    color: var(--text-main);
    transition: var(--transition);
}

.wc-block-components-button__text:hover,
.woocommerce ul.products li.product .button:hover {
    background: linear-gradient(90deg, #7b2cbf, var(--purple-mid));
}

/* ================================================
   WOOCOMMERCE — SINGLE PRODUCT
================================================ */

.woocommerce div.product div.images { display: none !important; }

.woocommerce div.product {
    max-width: 700px;
    margin: 60px auto;
    padding: 50px;
    text-align: center;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.woocommerce div.product div.summary { width: 100%; float: none; }
.woocommerce div.product .product_title { font-size: 32px; font-weight: 600; margin-bottom: 15px; }
.woocommerce div.product p.price { font-size: 40px; font-weight: 700; color: var(--purple-pastel); margin: 20px 0; }
.woocommerce div.product .woocommerce-product-details__short-description { opacity: 0.85; margin-bottom: 25px; }
.woocommerce div.product form.cart .quantity { display: none !important; }
.woocommerce div.product form.cart { justify-content: center; }

.woocommerce div.product form.cart .single_add_to_cart_button {
    width: 100%;
    max-width: 350px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 40px;
    border: none;
    background: var(--gradient-purple);
    transition: var(--transition);
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover {
    background: linear-gradient(90deg, #7b2cbf, var(--purple-mid));
    transform: translateY(-2px);
}

.woocommerce-message { border-radius: 15px; }

/* ================================================
   WOOCOMMERCE — CART PAGE
================================================ */

.woocommerce-cart table.cart {
    background: rgba(15, 8, 35, 0.95);
    border-radius: 20px;
    overflow: hidden;
}

.woocommerce-cart table.cart th.product-thumbnail,
.woocommerce-cart table.cart td.product-thumbnail { display: none !important; }

.woocommerce-cart table.cart td { vertical-align: middle; padding: 15px; }

td.wc-block-cart-item__image { display: none; }
td.wc-block-cart-item__product { width: 100%; }

/* ================================================
   WOOCOMMERCE — CHECKOUT PAGE
================================================ */

.woocommerce-checkout {
    max-width: 100%;
    background: rgba(15, 8, 35, 0.95);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.woocommerce-checkout h3 { font-size: 20px; margin-bottom: 20px; }

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    padding: 12px;
    border-radius: 12px;
    color: var(--text-main);
}

.woocommerce form .form-row input:focus { border-color: var(--purple-pastel); outline: none; }

.woocommerce-checkout-review-order {
    background: rgba(20, 10, 45, 0.95);
    padding: 30px;
    border-radius: 20px;
    margin-top: 40px;
}

.woocommerce-checkout-review-order-table { border: none; }

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td { border: none; padding: 12px 0; }

.woocommerce-checkout-review-order-table th.product-thumbnail,
.woocommerce-checkout-review-order-table td.product-thumbnail { display: none !important; }

.woocommerce-checkout-review-order-table .order-total { font-size: 18px; font-weight: 700; color: var(--purple-pastel); }

.woocommerce-checkout #payment {
    background: rgba(15, 8, 35, 0.95);
    border-radius: 20px;
    padding: 25px;
    margin-top: 30px;
}

.woocommerce-checkout #place_order {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 40px;
    background: var(--gradient-purple);
    border: none;
    transition: var(--transition);
}

.woocommerce-checkout #place_order:hover {
    background: linear-gradient(90deg, #7b2cbf, var(--purple-mid));
    transform: translateY(-2px);
}

/* Block components */
.wc-block-components-order-summary-item__individual-price,
.wc-block-components-product-price__value { font-size: 16px; }

a.wc-block-components-product-name { font-size: 20px !important; color: var(--text-main); }

/* ================================================
   COSMIC CREDIT BADGES
================================================ */

.cosmic-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 18px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 30px;
    color: var(--text-main);
    letter-spacing: 1px;
    z-index: 10;
}

.cosmic-badge.popular {
    background: linear-gradient(90deg, #ff9f1c, #ffbf69);
    box-shadow: 0 0 15px rgba(255, 159, 28, 0.5);
}

.cosmic-badge.best {
    background: var(--gradient-purple);
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.6);
}

/* ================================================
   MOBILE — GLOBAL
================================================ */

@media (max-width: 768px) {

    header { flex-direction: column; }
    .section { padding: 30px 20px; }

    .cosmic-form-wrapper,
    .cosmic-dashboard { padding: 20px; }

    .cosmic-dashboard table,
    .cosmic-dashboard thead,
    .cosmic-dashboard tbody,
    .cosmic-dashboard th,
    .cosmic-dashboard td,
    .cosmic-dashboard tr { display: block; }

    .cosmic-dashboard tr { margin-bottom: 15px; }
    .cosmic-dashboard td { padding: 10px; border: none; }

    .cosmic-dashboard-header { flex-direction: column; align-items: flex-start; gap: 15px; }

    .cosmic-report-table th,
    .cosmic-report-table td { padding: 12px; font-size: 14px; }

    .cosmic-report-card { flex-direction: column; align-items: flex-start; gap: 15px; }

    .woocommerce-account .woocommerce { flex-direction: column; }
    .woocommerce-account-navigation { width: 100%; }
    .woocommerce-account-content { padding: 20px; }

    .woocommerce ul.products { flex-direction: column; align-items: center; padding: 30px 0; }
    .woocommerce ul.products li.product { width: 90%; padding: 30px 20px; }

    .woocommerce div.product,
    .woocommerce-checkout,
    .woocommerce-cart { margin: 30px 15px; padding: 30px 20px; }

    .woocommerce div.product .product_title { font-size: 24px; }
    .woocommerce div.product p.price { font-size: 30px; }
    .woocommerce div.product form.cart .single_add_to_cart_button { width: 100%; }

    .woocommerce-checkout-review-order { padding: 20px; }
    .woocommerce-checkout #place_order { font-size: 15px; }
}
/* ===============================
   WALLET BALANCE CARD
=============================== */

.cosmic-wallet-box{

    text-align:center;
    padding:25px;
    border-radius:18px;

    background:rgba(255,255,255,0.07);
    backdrop-filter:blur(18px);

    box-shadow:0 0 35px rgba(0,0,0,0.4);
    max-width:300px;
    margin:auto;
}

.wallet-label{
    display:block;
    font-size:14px;
    opacity:.8;
}

.wallet-balance{
    font-size:42px;
    font-weight:700;
    color:#c77dff;
    margin-top:10px;
}

/*
  Cosmic Numerology Pro — Login & Register Styles
  Covers: Custom Login, Custom Register, WooCommerce My Account, WordPress Admin
  Matches: cosmic-theme.css design system
*/

/* ================================================
   SHARED PAGE WRAPPER
================================================ */

.cosmic-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: radial-gradient(circle at top, #2a003f, #0a0015 70%);
}

/* ================================================
   AUTH CARD (shared by login + register)
================================================ */

.cosmic-auth-card {
    width: 100%;
    max-width: 480px;
    background: rgba(15, 10, 40, 0.95);
    /* backdrop-filter removed — it forces recompositing on every input focus event
       which is the exact cause of the 2-3 click flicker */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 50px 45px;
    box-shadow: 0 0 60px rgba(123, 47, 247, 0.25);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    isolation: isolate;
}

/* Subtle glow top accent */
.cosmic-auth-card::before {
    content: "";
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(123, 47, 247, 0.35), transparent 70%);
    pointer-events: none;
}

/* Logo */
.cosmic-auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.cosmic-auth-logo img {
    max-height: 55px;
    width: auto;
}

/* Title */
.cosmic-auth-title {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 8px;
    background: linear-gradient(45deg, #7b2ff7, #f107a3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Subtitle */
.cosmic-auth-subtitle {
    text-align: center;
    font-size: 14px;
    color: #aaa;
    margin-bottom: 35px;
}

/* ================================================
   FORM FIELDS
================================================ */

.cosmic-auth-card .form-group,
.cosmic-auth-card p {
    margin-bottom: 20px;
}

.cosmic-auth-card label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #ccc;
    margin-bottom: 7px;
    letter-spacing: 0.3px;
}

.cosmic-auth-card input[type="text"],
.cosmic-auth-card input[type="email"],
.cosmic-auth-card input[type="password"],
.cosmic-auth-card input[type="tel"],
.cosmic-auth-card select,
.cosmic-auth-card textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #1a1040;
    color: #ffffff;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    /* Only transition border-color — 'all' or '0.3s ease' on rgba bg causes repaint */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.cosmic-auth-card input:focus,
.cosmic-auth-card select:focus,
.cosmic-auth-card textarea:focus {
    border-color: #a970ff;
    background: #1e1550;
    /* inset shadow: stays contained, won't trigger ancestor recompositing */
    box-shadow: inset 0 0 0 1px rgba(169, 112, 255, 0.4);
}

/* Placeholder */
.cosmic-auth-card input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* ================================================
   SUBMIT BUTTON
================================================ */

.cosmic-auth-card input[type="submit"],
.cosmic-auth-card button[type="submit"],
.cosmic-auth-btn {
    width: 100%;
    padding: 14px;
    border-radius: 40px;
    border: none;
    background: linear-gradient(90deg, #9d4edd, #c77dff);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: 0.3s ease;
    margin-top: 10px;
    letter-spacing: 0.3px;
}

.cosmic-auth-card input[type="submit"]:hover,
.cosmic-auth-card button[type="submit"]:hover,
.cosmic-auth-btn:hover {
    background: linear-gradient(90deg, #7b2cbf, #9d4edd);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(157, 78, 221, 0.45);
}

/* ================================================
   LINKS (forgot password / switch form)
================================================ */

.cosmic-auth-card a {
    color: #c77dff;
    text-decoration: none;
    transition: 0.3s ease;
}

.cosmic-auth-card a:hover {
    color: #f107a3;
    text-decoration: underline;
}

.cosmic-auth-footer-link {
    text-align: center;
    margin-top: 25px;
    font-size: 13px;
    color: #888;
}

.cosmic-auth-footer-link a {
    color: #c77dff;
    font-weight: 600;
}

/* Forgot password */
.cosmic-auth-forgot {
    text-align: right;
    font-size: 12px;
    margin-top: -12px;
    margin-bottom: 20px;
}

/* ================================================
   REMEMBER ME / CHECKBOX
================================================ */

.cosmic-auth-card .cosmic-remember {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #aaa;
    margin-bottom: 20px;
}

.cosmic-auth-card .cosmic-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #9d4edd;
    cursor: pointer;
}

/* ================================================
   DIVIDER
================================================ */

.cosmic-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 25px 0;
    color: #555;
    font-size: 12px;
}

.cosmic-auth-divider::before,
.cosmic-auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

/* ================================================
   ERROR / SUCCESS MESSAGES
================================================ */

.cosmic-auth-message {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 20px;
    text-align: center;
}

.cosmic-auth-message.error {
    background: rgba(255, 60, 60, 0.12);
    border: 1px solid rgba(255, 60, 60, 0.3);
    color: #ff9090;
}

.cosmic-auth-message.success {
    background: rgba(60, 255, 150, 0.08);
    border: 1px solid rgba(60, 255, 150, 0.25);
    color: #7fffc4;
}

/* ================================================
   WOOCOMMERCE — MY ACCOUNT LOGIN/REGISTER
   (woocommerce-account page before logged in)
================================================ */

.woocommerce-account:not(.logged-in) .woocommerce {
    max-width: 980px;
    margin: 60px auto;
    padding: 0 20px;
}

/* Two-column layout: login | register */
.woocommerce-account:not(.logged-in) .woocommerce .col2-set {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.woocommerce-account:not(.logged-in) .woocommerce .col2-set .col-1,
.woocommerce-account:not(.logged-in) .woocommerce .col2-set .col-2 {
    flex: 1;
    background: rgba(15, 8, 35, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 0 40px rgba(123, 47, 247, 0.15);
}

/* Section headings */
.woocommerce-account:not(.logged-in) h2 {
    font-size: 22px;
    margin-bottom: 25px;
    background: linear-gradient(45deg, #7b2ff7, #f107a3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Input fields */
.woocommerce-account:not(.logged-in) .woocommerce form .form-row input.input-text,
.woocommerce-account:not(.logged-in) .woocommerce form .form-row textarea {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 12px 15px;
    color: #fff;
    font-size: 14px;
    transition: 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.woocommerce-account:not(.logged-in) .woocommerce form .form-row input:focus {
    border-color: #a970ff;
    box-shadow: 0 0 10px rgba(169, 112, 255, 0.3);
    outline: none;
}

/* Labels */
.woocommerce-account:not(.logged-in) .woocommerce form label {
    font-size: 13px;
    color: #ccc;
    margin-bottom: 6px;
    display: block;
}

/* Buttons */
.woocommerce-account:not(.logged-in) .woocommerce form .button,
.woocommerce-account:not(.logged-in) .woocommerce input[type="submit"] {
    background: linear-gradient(90deg, #9d4edd, #c77dff);
    border-radius: 40px;
    border: none;
    color: #fff;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
    width: 100%;
}

.woocommerce-account:not(.logged-in) .woocommerce form .button:hover,
.woocommerce-account:not(.logged-in) .woocommerce input[type="submit"]:hover {
    background: linear-gradient(90deg, #7b2cbf, #9d4edd);
    transform: translateY(-2px);
}

/* Lost password link */
.woocommerce-account:not(.logged-in) .woocommerce form .lost_password {
    margin-top: 12px;
    font-size: 12px;
    text-align: right;
}

.woocommerce-account:not(.logged-in) .woocommerce form .lost_password a {
    color: #c77dff;
}

/* Remember me */
.woocommerce-account:not(.logged-in) .woocommerce form .woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #aaa;
}

/* Error notices */
.woocommerce-account:not(.logged-in) .woocommerce-error,
.woocommerce-account:not(.logged-in) .woocommerce-message,
.woocommerce-account:not(.logged-in) .woocommerce-info {
    background: rgba(255, 60, 60, 0.1);
    border: 1px solid rgba(255, 60, 60, 0.25);
    border-radius: 10px;
    padding: 12px 16px;
    list-style: none;
    font-size: 13px;
    color: #ff9090;
    margin-bottom: 20px;
}

.woocommerce-account:not(.logged-in) .woocommerce-message,
.woocommerce-account:not(.logged-in) .woocommerce-info {
    background: rgba(169, 112, 255, 0.08);
    border-color: rgba(169, 112, 255, 0.25);
    color: #c77dff;
}

/* ================================================
   WOOCOMMERCE — LOST PASSWORD PAGE
================================================ */

.woocommerce-account .woocommerce form.woocommerce-ResetPassword {
    max-width: 480px;
    margin: 60px auto;
    background: rgba(15, 8, 35, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 45px;
    box-shadow: 0 0 50px rgba(123, 47, 247, 0.2);
}

/* ================================================
   WORDPRESS ADMIN LOGIN
   (/wp-login.php)
================================================ */

/* Page background */
body.login {
    background: radial-gradient(circle at top, #2a003f, #0a0015 70%) !important;
    font-family: 'Poppins', sans-serif !important;
}

/* Logo area — swap out WP logo feel */
body.login #login h1 a {
    background-image: none !important;
    background-color: transparent !important;
    width: auto !important;
    height: auto !important;
    text-indent: 0 !important;
    overflow: visible !important;
    font-size: 22px;
    color: #c77dff !important;
    text-decoration: none;
    font-weight: 700;
    display: block;
    text-align: center;
    margin-bottom: 10px;
}

/* Login card */
body.login #loginform,
body.login #lostpasswordform,
body.login #registerform {
    background: rgba(15, 8, 35, 0.97) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    padding: 40px !important;
    box-shadow: 0 0 50px rgba(123, 47, 247, 0.25) !important;
}

/* Labels */
body.login #loginform label,
body.login #lostpasswordform label {
    color: #ccc !important;
    font-size: 13px !important;
}

/* Inputs */
body.login #loginform input[type="text"],
body.login #loginform input[type="password"],
body.login #lostpasswordform input[type="text"] {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-size: 14px !important;
    padding: 12px 15px !important;
    box-shadow: none !important;
    transition: 0.3s ease;
}

body.login #loginform input[type="text"]:focus,
body.login #loginform input[type="password"]:focus,
body.login #lostpasswordform input[type="text"]:focus {
    border-color: #a970ff !important;
    box-shadow: 0 0 10px rgba(169, 112, 255, 0.3) !important;
    outline: none;
}

/* Submit button */
body.login #loginform input[type="submit"],
body.login #lostpasswordform input[type="submit"] {
    background: linear-gradient(90deg, #9d4edd, #c77dff) !important;
    border: none !important;
    border-radius: 40px !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 13px !important;
    width: 100% !important;
    cursor: pointer;
    transition: 0.3s ease !important;
    box-shadow: none !important;
    text-shadow: none !important;
    height: auto !important;
}

body.login #loginform input[type="submit"]:hover,
body.login #lostpasswordform input[type="submit"]:hover {
    background: linear-gradient(90deg, #7b2cbf, #9d4edd) !important;
    transform: translateY(-2px);
}

/* Remember me */
body.login .forgetmenot label {
    color: #aaa !important;
    font-size: 13px !important;
}

body.login input[type="checkbox"] {
    accent-color: #9d4edd;
}

/* Nav links (back to site, lost password) */
body.login #nav a,
body.login #backtoblog a {
    color: #c77dff !important;
    font-size: 13px;
    transition: 0.3s ease;
}

body.login #nav a:hover,
body.login #backtoblog a:hover {
    color: #f107a3 !important;
}

body.login #nav,
body.login #backtoblog {
    text-align: center;
    padding: 10px 0;
}

/* Error messages */
body.login #login_error {
    background: rgba(255, 60, 60, 0.1) !important;
    border: 1px solid rgba(255, 60, 60, 0.3) !important;
    border-left: 4px solid #f107a3 !important;
    border-radius: 10px !important;
    color: #ff9090 !important;
    font-size: 13px !important;
    padding: 12px 16px !important;
    box-shadow: none !important;
}

/* Success / info */
body.login .message {
    background: rgba(169, 112, 255, 0.08) !important;
    border: 1px solid rgba(169, 112, 255, 0.25) !important;
    border-left: 4px solid #c77dff !important;
    border-radius: 10px !important;
    color: #c77dff !important;
    font-size: 13px !important;
    padding: 12px 16px !important;
    box-shadow: none !important;
}

/* ================================================
   RESPONSIVE
================================================ */

@media (max-width: 768px) {

    .cosmic-auth-card {
        padding: 35px 25px;
    }

    .woocommerce-account:not(.logged-in) .woocommerce .col2-set {
        flex-direction: column;
    }

    .woocommerce-account:not(.logged-in) .woocommerce .col2-set .col-1,
    .woocommerce-account:not(.logged-in) .woocommerce .col2-set .col-2 {
        padding: 30px 25px;
    }

    .woocommerce-account .woocommerce form.woocommerce-ResetPassword {
        margin: 30px 15px;
        padding: 30px 25px;
    }

    body.login #loginform,
    body.login #lostpasswordform {
        padding: 30px 25px !important;
    }
}
/* ════════════════════════════════════════════════════
   COSMIC REPORT — Full Visual System
   Covers: sections, number rows, year cards, dos/donts,
   remedies, lucky grid, affirmations, subheadings
════════════════════════════════════════════════════ */

.cosmic-report-text {
    font-family: 'Poppins', sans-serif;
    color: #d0c8e8;
    font-size: 15px;
    line-height: 1.85;
}

.cosmic-report-text p {
    margin: 0 0 16px;
    color: #ccc;
}

/* ── Section wrapper ── */
.cr-section {
    margin-bottom: 0;
    padding: 0;
}

.cr-section + .cr-section {
    margin-top: 10px;
}

/* ── Section heading ── */
.cr-section-heading {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin: 38px 0 6px;
    padding: 14px 20px;
    background: linear-gradient(90deg, rgba(123,47,247,0.25), rgba(123,47,247,0.05));
    border-left: 4px solid #a970ff;
    border-radius: 0 10px 10px 0;
    letter-spacing: 0.3px;
    position: relative;
}

.cr-section-heading::before {
    content: '🔮';
    margin-right: 10px;
    font-size: 15px;
}

.cr-section-body {
    padding: 18px 4px 8px;
}

/* ── Sub heading ── */
.cr-subheading {
    font-size: 14px;
    font-weight: 700;
    color: #c77dff;
    margin: 24px 0 10px;
    padding-left: 12px;
    border-left: 3px solid rgba(199,125,255,0.4);
    letter-spacing: 0.2px;
}

/* ── Number rows (blueprint) ── */
.cr-number-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    margin-bottom: 8px;
    background: rgba(123,47,247,0.07);
    border: 1px solid rgba(123,47,247,0.18);
    border-radius: 10px;
    flex-wrap: wrap;
}

.cr-number-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #a970ff;
    min-width: 140px;
    flex-shrink: 0;
}

.cr-number-badge {
    background: linear-gradient(135deg, #7b2ff7, #c77dff);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    min-width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(123,47,247,0.4);
}

.cr-number-meaning {
    font-size: 13px;
    color: #bbb;
    flex: 1;
    line-height: 1.5;
}

/* ── Affirmation ── */
.cr-affirmation {
    margin: 24px 0;
    padding: 18px 24px;
    background: linear-gradient(135deg, rgba(123,47,247,0.12), rgba(241,7,163,0.06));
    border: 1px solid rgba(199,125,255,0.3);
    border-radius: 14px;
    color: #e0b8ff;
    font-size: 15px;
    font-style: italic;
    line-height: 1.7;
    text-align: center;
    position: relative;
}

.cr-affirmation::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: radial-gradient(ellipse at 50% 0%, rgba(123,47,247,0.15), transparent 70%);
    pointer-events: none;
}

/* ── Do's and Don'ts ── */
.cr-dosdonts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 22px 0;
}

@media (max-width: 600px) {
    .cr-dosdonts { grid-template-columns: 1fr; }
}

.cr-dos, .cr-donts {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid;
}

.cr-dos  { border-color: rgba(80,200,120,0.25); background: rgba(80,200,120,0.05); }
.cr-donts { border-color: rgba(255,80,80,0.25);  background: rgba(255,80,80,0.05);  }

.cr-dd-header {
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.cr-do-header   { background: rgba(80,200,120,0.15); color: #7fffc4; }
.cr-dont-header { background: rgba(255,80,80,0.15);  color: #ff9090; }

.cr-dd-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 16px;
    font-size: 13px;
    border-top: 1px solid rgba(255,255,255,0.04);
    color: #ccc;
    line-height: 1.5;
}

.cr-dd-icon {
    flex-shrink: 0;
    font-weight: 700;
    margin-top: 1px;
}

.cr-do-item   .cr-dd-icon { color: #7fffc4; }
.cr-dont-item .cr-dd-icon { color: #ff9090; }

/* ── 5-Year forecast cards ── */
.cr-year-card {
    background: #130830;
    border: 1px solid rgba(123,47,247,0.25);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 14px;
    transition: border-color 0.2s ease;
}

.cr-year-card:hover {
    border-color: rgba(123,47,247,0.5);
}

.cr-year-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: linear-gradient(90deg, rgba(123,47,247,0.2), rgba(123,47,247,0.05));
    border-bottom: 1px solid rgba(123,47,247,0.2);
    flex-wrap: wrap;
}

.cr-year-num {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    min-width: 56px;
}

.cr-year-py {
    font-size: 12px;
    color: #a970ff;
    background: rgba(123,47,247,0.15);
    border: 1px solid rgba(123,47,247,0.3);
    border-radius: 20px;
    padding: 3px 12px;
}

.cr-year-py strong {
    color: #fff;
    font-size: 14px;
}

.cr-year-title {
    font-size: 14px;
    color: #ddd;
    font-style: italic;
    flex: 1;
}

.cr-year-body {
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cr-year-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-size: 13.5px;
    color: #ccc;
    line-height: 1.55;
}

.cr-yr-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    min-width: 110px;
    flex-shrink: 0;
}

/* ── Remedies ── */
.cr-remedies {
    background: rgba(13,8,38,0.8);
    border: 1px solid rgba(123,47,247,0.25);
    border-radius: 16px;
    overflow: hidden;
    margin: 20px 0;
}

.cr-remedies-title {
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #c77dff;
    background: rgba(123,47,247,0.12);
    border-bottom: 1px solid rgba(123,47,247,0.2);
}

.cr-remedy-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 13px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

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

.cr-remedy-icon {
    font-size: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(123,47,247,0.12);
    border-radius: 8px;
    flex-shrink: 0;
}

.cr-remedy-body { flex: 1; }

.cr-remedy-type {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #a970ff;
    margin-bottom: 2px;
}

.cr-remedy-name {
    font-size: 14px;
    font-weight: 600;
    color: #eee;
    margin-bottom: 3px;
}

.cr-remedy-desc {
    font-size: 13px;
    color: #999;
    line-height: 1.55;
}

/* ── Lucky grid ── */
.cr-lucky-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 20px 0;
}

@media (max-width: 640px) {
    .cr-lucky-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 400px) {
    .cr-lucky-grid { grid-template-columns: 1fr; }
}

.cr-lucky-item {
    background: rgba(123,47,247,0.07);
    border: 1px solid rgba(123,47,247,0.18);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.cr-lucky-item:hover {
    border-color: rgba(123,47,247,0.4);
    background: rgba(123,47,247,0.12);
}

.cr-lucky-wide {
    grid-column: 1 / -1;
}

.cr-lucky-icon {
    font-size: 20px;
    margin-bottom: 2px;
}

.cr-lucky-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: #a970ff;
}

.cr-lucky-value {
    font-size: 13px;
    color: #ddd;
    line-height: 1.5;
}

/* ── Section heading — first child no top margin ── */
.cr-section:first-child .cr-section-heading {
    margin-top: 8px;
}

/* ── Section login ── */
.cosmic-auth-wrapper{
    max-width:420px;
    margin:60px auto;
    background:rgba(255,255,255,0.06);
    backdrop-filter:blur(15px);
    padding:40px;
    border-radius:20px;
    box-shadow:0 0 40px rgba(0,0,0,0.4);
}

.cosmic-tabs{
    display:flex;
    margin-bottom:25px;
}

.cosmic-tab{
    flex:1;
    padding:12px;
    background:transparent;
    border:none;
    color:#fff;
    cursor:pointer;
    font-weight:600;
    border-bottom:2px solid transparent;
}

.cosmic-tab.active{
    border-bottom:2px solid #c77dff;
    color:#c77dff;
}

.cosmic-tab-content{
    display:none;
}

.cosmic-tab-content.active{
    display:block;
}

.cosmic-auth-wrapper input{
    width:100%;
    padding:12px;
    margin-bottom:15px;
    border-radius:10px;
    border:1px solid rgba(255,255,255,0.2);
    background:rgba(255,255,255,0.08);
    color:#fff;
}

.cosmic-btn{
    width:100%;
    padding:12px;
    background:linear-gradient(90deg,#9d4edd,#c77dff);
    border:none;
    border-radius:30px;
    font-weight:600;
    color:#fff;
    cursor:pointer;
}

.cosmic-btn:hover{
    background:linear-gradient(90deg,#7b2cbf,#9d4edd);
}

.cosmic-msg{
    margin-top:10px;
    font-size:14px;
    color:#ff6b6b;
}
