@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* CSS Variables - Dark Theme (Default) */
:root, [data-bs-theme="dark"] {
    /* Brand */
    --maya-primary: #c79a3a;          /* Bronze / Gold */
    --maya-primary-light: #e2c46a;
    --maya-primary-dark: #a8741f;
    --maya-secondary: #753100;        /* Teal accent */
    --maya-accent: #60a5fa;           /* Cool highlight */
    --maya-success: #22c55e;
    --maya-warning: #f59e0b;
    --maya-danger: #ef4444;

    /* Surfaces (Charcoal) */
    --maya-bg-primary: #0b0b0c;       /* App background */
    --maya-bg-secondary: #111112;     /* Header/sidebars */
    --maya-bg-tertiary: #1a1b1d;      /* Elevated sections */
    --maya-bg-card: rgba(17, 17, 18, 0.72);

    /* Typography */
    --maya-text-primary: #f5f5f4;
    --maya-text-secondary: #b0b2b8;
    --maya-text-muted: #7c7f86;
    --maya-heading: #e2c46a;          /* Bronze-golden headings */

    /* Borders / Effects */
    --maya-border: rgba(226, 196, 106, 0.18);
    --maya-border-light: rgba(255, 255, 255, 0.08);
    --maya-glow: rgba(226, 196, 106, 0.32);

    /* Gradients */
    --maya-gradient-1: linear-gradient(135deg, #c79a3a 0%, #e2c46a 60%, #d4a574 140%);
    --maya-gradient-2: linear-gradient(135deg, #0b0b0c 0%, #1a1b1d 100%);
    --maya-gradient-3: linear-gradient(180deg, rgba(226, 196, 106, 0.10) 0%, transparent 100%);

    /* Shadows */
    --maya-shadow: 0 10px 30px rgba(0, 0, 0, 0.40);
    --maya-shadow-glow: 0 0 28px rgba(226, 196, 106, 0.18);

    /* Radii */
    --maya-radius-sm: 12px;
    --maya-radius-md: 16px;
    --maya-radius-lg: 22px;

    /* Layout */
    --header-height: 60px;
    --bottom-nav-height: 70px;
    --sidebar-width: 280px;

    /* Fonts */
    --font-primary: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    --font-display: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Light Theme */
[data-bs-theme="light"] {
    /* Brand (keep consistent) */
    --maya-primary: #b07b1c;
    --maya-primary-light: #d7b15e;
    --maya-primary-dark: #8a5c12;
    --maya-secondary: #14b8a6;
    --maya-accent: #2563eb;
    --maya-heading: #8a5c12;

    /* Surfaces (warm, clean) */
    --maya-bg-primary: #faf9f7;
    --maya-bg-secondary: #ffffff;
    --maya-bg-tertiary: #f3f1ed;
    --maya-bg-card: rgba(255, 255, 255, 0.92);

    /* Typography */
    --maya-text-primary: #141416;
    --maya-text-secondary: #44464d;
    --maya-text-muted: #737680;

    /* Borders / Effects */
    --maya-border: rgba(176, 123, 28, 0.20);
    --maya-border-light: rgba(20, 20, 22, 0.10);
    --maya-glow: rgba(176, 123, 28, 0.22);

    /* Shadows */
    --maya-shadow: 0 10px 24px rgba(16, 24, 40, 0.10);
    --maya-shadow-glow: 0 0 22px rgba(176, 123, 28, 0.14);
}

/* =====================================================
   Guest Mode (Pre-Login) - Hide all app chrome
   ===================================================== */
body.guest-mode .main-header,
body.guest-mode .sidebar,
body.guest-mode .sidebar-overlay,
body.guest-mode .bottom-nav,
body.guest-mode .notifications-panel,
body.guest-mode .notifications-overlay {
    display: none !important;
}

/* In guest mode, main content takes full screen */
body.guest-mode .main-content {
    margin-left: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Ensure funnel takes full viewport in guest mode */
body.guest-mode #maya-onboarding {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}

/* =====================================================
   Base Styles
   ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--maya-bg-primary);
    color: var(--maya-text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: left;
}

/* Lock body scroll when modals/popups are open */
body.modal-open,
body.popup-open,
body.guest-mode {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Global left alignment for all content */
.maya-page,
.maya-page__header,
.maya-page__content,
.maya-card,
.maya-card__body,
.maya-card__header,
.maya-section {
    text-align: left;
}

/* Global left alignment for all page content */
.maya-page,
.maya-page__header,
.maya-page__title,
.maya-page__subtitle,
.maya-card,
.maya-panel,
.maya-form,
.maya-input-group,
h1, h2, h3, h4, h5, h6, p {
    text-align: left;
}

/* Full width buttons globally */
.maya-btn--block,
.maya-card .maya-btn,
.maya-panel .maya-btn,
.maya-form .maya-btn,
.maya-page .maya-btn:not(.maya-btn--sm):not(.maya-btn--icon) {
    width: 100%;
    display: block;
}

/* Stacked button groups */
.maya-btn-group,
.maya-actions,
.maya-form__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.maya-btn-group .maya-btn,
.maya-actions .maya-btn,
.maya-form__actions .maya-btn {
    width: 100%;
}

/* Hide scrollbar but allow scrolling */
::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    display: none;
}

* {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: transparent;
}

/* =====================================================
   Animated Splash Screen - MAYA
   ===================================================== */
.maya-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.maya-splash.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.maya-splash__container {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.maya-splash__defs {
    position: absolute;
    width: 0;
    height: 0;
}

.maya-splash__svg {
    width: 100%;
    height: 100%;
}

/* Icon - fades in */
.maya-splash__icon {
    opacity: 0;
    transition: opacity 1s ease-in;
}

.maya-splash__icon.visible {
    opacity: 1;
}

/* Animated path - infinity to square morphing */
.maya-splash__path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: d 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.maya-splash__path.drawing {
    animation: splash-draw-path 1.5s ease-in-out forwards;
}

@keyframes splash-draw-path {
    0% {
        stroke-dashoffset: 1000;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

/* Legacy preloader support - redirect to splash */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--maya-bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Splash screen container for React splash */
.maya-splash #splash-root {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Pyramid Loader Container (kept for other uses) */
.pyramid-loader {
    position: relative;
    width: 280px;
    height: auto;
    margin-bottom: 20px;
}

@media (min-width: 576px) {
    .pyramid-loader {
        width: 350px;
    }
}

/* Animated Blob/Orb */
.blobs {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.blob {
    position: absolute;
    width: 20px;
    height: 20px;
    left: -10px;
    border-radius: 100%;
    background: var(--maya-primary);
    box-shadow: 0 0 15px var(--maya-primary), 0 0 30px var(--maya-glow);
    animation: center_orb 3s infinite ease-in-out;
}

/* Dark theme blob */
[data-bs-theme="dark"] .blob {
    background: var(--maya-primary);
    box-shadow: 0 0 20px var(--maya-primary), 0 0 40px var(--maya-glow), 0 0 60px rgba(0, 102, 255, 0.3);
}

/* Light theme blob */
[data-bs-theme="light"] .blob {
    background: var(--maya-primary);
    box-shadow: 0 0 15px var(--maya-primary), 0 0 25px rgba(0, 102, 255, 0.4);
}

@keyframes center_orb {
    0% {
        top: 5px;
        opacity: 0.6;
        transform: rotate(0deg) scale(1);
    }
    50% {
        opacity: 1;
        top: 30px;
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        opacity: 0.6;
        top: 5px;
        transform: rotate(360deg) scale(1);
    }
}

/* Pyramid SVG */
.pyramid {
    width: 100%;
    height: auto;
}

.pyramid-path {
    fill: none;
    stroke-linejoin: round;
}

/* Dark theme pyramid paths */
[data-bs-theme="dark"] .pyramid-main {
    stroke: var(--maya-primary);
    stroke-width: 2;
    filter: drop-shadow(0 0 3px var(--maya-primary));
}

[data-bs-theme="dark"] .pyramid-inner {
    stroke: var(--maya-secondary);
    stroke-width: 0.5;
    opacity: 0.7;
}

/* Light theme pyramid paths */
[data-bs-theme="light"] .pyramid-main {
    stroke: #1a1a2e;
    stroke-width: 2;
}

[data-bs-theme="light"] .pyramid-inner {
    stroke: #333;
    stroke-width: 0.5;
    opacity: 0.6;
}

/* Preloader Title */
.preloader-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--maya-text-primary);
    letter-spacing: 0.5em;
    margin-left: 0.5em; /* Compensate for letter-spacing */
    opacity: 0;
    margin-top: 10px;
    margin-bottom: 10px;
    transition: opacity 1s ease-in;
}

.preloader-title.visible {
    opacity: 1;
}

/* Dark theme title */
[data-bs-theme="dark"] .preloader-title {
    text-shadow: 0 0 20px var(--maya-primary), 0 0 40px var(--maya-glow);
}

/* Light theme title */
[data-bs-theme="light"] .preloader-title {
    color: #1a1a2e;
    text-shadow: none;
}

.preloader-text {
    color: var(--maya-text-secondary);
    font-size: 0.9rem;
    animation: fadeInOut 2s ease-in-out infinite;
    margin-top: 5px;
}

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

/* =====================================================
   App Container
   ===================================================== */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =====================================================
   Header
   ===================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--maya-bg-secondary);
    border-bottom: 1px solid var(--maya-border-light);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.menu-toggle {
    font-size: 25px !important;
    color: var(--maya-text-primary);
    padding: 0rem !important;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
}

.logo-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--maya-text-primary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-actions .btn {
    font-size: 1.2rem;
    color: var(--maya-text-primary);
    padding: 0.5rem;
    position: relative;
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 18px;
    height: 18px;
    background: var(--maya-danger);
    color: white;
    font-size: 0.7rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =====================================================
   Sidebar
   ===================================================== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    height: 100dvh;
    background: var(--maya-bg-secondary);
    border-right: 1px solid var(--maya-border-light);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

.sidebar.show {
    transform: translateX(0);
}

@media (min-width: 992px) {
    .sidebar {
        transform: translateX(0);
        top: var(--header-height);
        height: calc(100vh - var(--header-height));
        z-index: 1001;
        padding-top: 0;
    }
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* =====================================================
   Notifications Panel (Right Sidebar)
   ===================================================== */
.notifications-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 90vw;
    height: 100vh;
    height: 100dvh;
    background: var(--maya-bg-secondary);
    border-left: 1px solid var(--maya-border-light);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

.notifications-panel.show {
    transform: translateX(0);
}

.notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    padding-top: calc(1rem + env(safe-area-inset-top));
    border-bottom: 1px solid var(--maya-border-light);
    background: var(--maya-bg-tertiary);
}

.notifications-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--maya-text-primary);
}

.notifications-header .btn-link {
    color: var(--maya-text-secondary);
    padding: 0.25rem;
}

.notifications-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.notification-item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--maya-border-light);
    transition: background 0.2s;
    cursor: pointer;
}

.notification-item:hover {
    background: var(--maya-bg-tertiary);
}

.notification-item.unread {
    background: rgba(var(--bs-primary-rgb), 0.05);
    border-left: 3px solid var(--maya-primary);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--maya-bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--maya-primary);
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-text {
    margin: 0 0 0.25rem;
    font-size: 0.875rem;
    color: var(--maya-text-primary);
    line-height: 1.4;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--maya-text-muted);
}

.notifications-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.notifications-overlay.show {
    opacity: 1;
    visibility: visible;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    padding-top: calc(1.5rem + env(safe-area-inset-top));
    border-bottom: 1px solid var(--maya-border-light);
}

@media (min-width: 992px) {
    .sidebar-header {
        padding-top: 1.5rem;
    }
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar-circle {
    width: 50px;
    height: 50px;
    background: var(--maya-gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-name {
    font-weight: 600;
    color: var(--maya-text-primary);
    font-size: 1rem;
    line-height: 1.2;
}

.user-day-status {
    display: flex;
    align-items: center;
}

.day-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.day-status-pill--good {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.day-status-pill--okay {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.day-status-pill--challenging {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.day-status-pill i {
    font-size: 0.65rem;
}

.user-zodiac {
    font-size: 0.8rem;
    color: var(--maya-text-secondary);
}

.sidebar-close {
    font-size: 1.5rem;
    color: var(--maya-text-primary);
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.5rem;
    color: var(--maya-text-secondary);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.sidebar-nav .nav-link:hover {
    color: var(--maya-text-primary);
    background: var(--maya-bg-tertiary);
}

.sidebar-nav .nav-link.active {
    color: var(--maya-primary);
    background: rgba(99, 102, 241, 0.1);
    border-left-color: var(--maya-primary);
}

.sidebar-nav .nav-link i {
    font-size: 1.2rem;
}

/* =====================================================
   Main Content
   ===================================================== */
.main-content {
    flex: 1;
    margin-top: var(--header-height);
    padding-bottom: var(--bottom-nav-height);
    min-height: calc(100vh - var(--header-height));
    background: var(--maya-bg-primary);
}

@media (min-width: 992px) {
    .main-content {
        margin-left: var(--sidebar-width);
        padding-bottom: 0;
    }
}

/* =====================================================
   Bottom Navigation
   ===================================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: var(--maya-bg-secondary);
    border-top: 1px solid var(--maya-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 0;
    color: var(--maya-text-muted);
    text-decoration: none;
    font-size: 0.7rem;
    transition: color 0.3s;
    background: none;
    border: none;
    cursor: pointer;
    flex: 1;
    min-width: 0;
    text-align: center;
}

.bottom-nav .nav-item i {
    font-size: 1.3rem;
}

.bottom-nav .nav-item.active {
    color: var(--maya-primary);
}

.bottom-nav .maya-btn {
    position: relative;
    margin-top: -25px;
    flex: 1;
}

.maya-blob-mini {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: float 3s ease-in-out infinite, blobMorph 8s ease-in-out infinite;
    background: 
        radial-gradient(ellipse at 35% 35%, rgba(255, 255, 255, 0.95) 0%, transparent 35%),
        radial-gradient(ellipse at 65% 30%, rgba(255, 223, 100, 0.85) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 70%, rgba(199, 154, 58, 0.9) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(168, 116, 31, 0.95) 0%, transparent 45%),
        linear-gradient(135deg, #a8741f 0%, #c79a3a 40%, #e2c46a 70%, #fffbe6 100%);
}

.maya-blob-mini::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.4) 0%, transparent 40%);
    animation: shimmer 3s ease-in-out infinite;
}

.maya-blob-mini .blob-glow {
    display: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes blobMorph {
    0%, 100% { border-radius: 50%; }
    25% { border-radius: 47% 53% 52% 48% / 48% 52% 48% 52%; }
    50% { border-radius: 52% 48% 47% 53% / 53% 47% 52% 48%; }
    75% { border-radius: 48% 52% 53% 47% / 47% 53% 47% 53%; }
}

@keyframes shimmer {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.02); }
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

/* =====================================================
   MAYA Overlay
   ===================================================== */
.maya-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--maya-bg-primary);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s;
    overflow: hidden;
}

.maya-overlay.show {
    opacity: 1;
    visibility: visible;
}

.maya-overlay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: transparent;
    position: relative;
    z-index: 200;
}

.maya-overlay-header .btn {
    color: var(--maya-text-primary);
    font-size: 1.5rem;
}

.maya-overlay-header .close-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.maya-overlay-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--maya-primary);
}

/* Hide back and close buttons during funnel mode */
.maya-overlay.funnel-mode .back-btn,
.maya-overlay.funnel-mode .close-btn {
    display: none !important;
}

.maya-overlay.funnel-mode .maya-overlay-header {
    justify-content: center;
}

/* Funnel Controls - Pause/Resume Button */
.maya-funnel-controls {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
}

.maya-funnel-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.maya-funnel-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--maya-primary);
    transform: scale(1.1);
}

.maya-funnel-btn:active {
    transform: scale(0.95);
}

.maya-funnel-btn.paused {
    background: var(--maya-primary);
    border-color: var(--maya-primary);
}

.maya-funnel-btn.paused:hover {
    background: var(--maya-secondary);
}

.maya-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    color: var(--maya-text-primary);
}

.maya-blob-container {
    position: absolute;
    left: 50% !important;
    top: 50%;
    transform: translate(-50%, -50%) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 280px;
    height: 280px;
    max-width: 70vw;
    max-height: 35vh;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    overflow: hidden;
}

/* Blob centered state - default centered position */
.maya-blob-container.blob-centered {
    top: 45%;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 280px;
    height: 280px;
    max-width: 70vw;
    max-height: 35vh;
}

/* Blob top state - moves to top for forms */
.maya-blob-container.blob-top {
    top: 18%;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 150px;
    height: 150px;
    max-width: 45vw;
    max-height: 20vh;
}

/* Blob small state - during calculations */
.maya-blob-container.blob-small {
    top: 8%;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 80px;
    height: 80px;
    max-width: 25vw;
    max-height: 12vh;
    opacity: 0.7;
}

#maya-blob-canvas,
.maya-blob-container canvas {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.maya-text-display {
    padding: 1.5rem;
    padding-top: 2rem;
    padding-bottom: 100px; /* Space for input area */
    text-align: center;
    min-height: 100px;
    display: none;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 55%;
    background: linear-gradient(to top, var(--maya-bg-primary) 70%, transparent);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.maya-text-display.email-gate-active {
    display: flex;
    background: var(--maya-bg-primary);
    top: auto;
    bottom: 0;
    padding-top: 2rem;
    padding-bottom: 100px;
}

.maya-speaking-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--maya-text-primary);
    max-width: 500px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

/* Generating status animation */
.maya-speaking-text .generating-text {
    display: inline-block;
    color: var(--maya-primary);
    animation: pulse-text 1.5s ease-in-out infinite;
}

.maya-speaking-text .speaking-status {
    display: inline-block;
    color: #10b981;
    animation: pulse-text 1s ease-in-out infinite;
}

@keyframes pulse-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.maya-input-area {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
    background: var(--maya-bg-secondary);
    border-top: 1px solid var(--maya-border-light);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2100;
}

.maya-input-area .mic-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.maya-input-area .mic-btn.listening {
    background: var(--maya-primary);
    color: white;
    animation: pulse-mic 1s infinite;
}

.maya-input-area .mic-btn.auto-listen {
    position: relative;
}

.maya-input-area .mic-btn.auto-listen::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid var(--maya-bg-secondary);
}

.maya-input-area .mic-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Realtime voice mode - live streaming active */
.maya-input-area .mic-btn.realtime-active {
    background: linear-gradient(135deg, #10b981, #6366f1);
    color: white;
    animation: pulse-realtime 2s ease-in-out infinite;
}

.maya-input-area .mic-btn.realtime-active::before {
    content: '';
    position: absolute;
    top: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid var(--maya-bg-secondary);
    animation: pulse-dot 1s ease-in-out infinite;
}

.maya-input-area .mic-btn.muted {
    background: var(--maya-bg-tertiary);
    color: var(--maya-text-secondary);
}

@keyframes pulse-realtime {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* User transcript styling */
.user-transcript {
    color: var(--maya-text-secondary);
    font-style: italic;
}

@keyframes pulse-mic {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.5); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
}

.maya-input-area .form-control {
    background: var(--maya-bg-tertiary);
    border: 1px solid var(--maya-border);
    color: var(--maya-text-primary);
}

.maya-input-area .form-control:focus {
    background: var(--maya-bg-tertiary);
    border-color: var(--maya-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    color: var(--maya-text-primary);
}

/* =====================================================
   Onboarding Modal
   ===================================================== */
.modal.show .modal-dialog.modal-fullscreen-onboarding {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    margin: 0;
    z-index: 9999999 !important;
}

.onboarding-modal {
    background: var(--maya-bg-primary);
    border: none;
    border-radius: 0;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
}

.onboarding-modal .modal-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
}

/* Onboarding Header */
.onboarding-header {
    padding: 1.5rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--maya-border);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--maya-bg-primary);
    z-index: 10;
}

/* Onboarding Main Area */
.onboarding-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 2rem 2rem;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

.onboarding-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.onboarding-logo .logo-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
}

.onboarding-logo .logo-name {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--maya-text-primary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.onboarding-progress {
    max-width: 300px;
    margin: 0 auto;
}

.onboarding-progress .progress {
    height: 4px;
    background: var(--maya-bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
}

.onboarding-progress-bar {
    background: var(--maya-gradient-1);
    transition: width 0.5s ease;
}

.onboarding-progress-text {
    display: block;
    font-size: 0.75rem;
    color: var(--maya-text-muted);
    margin-top: 0.5rem;
}

/* Onboarding Content */
.onboarding-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
}

.onboarding-question {
    text-align: center;
    margin-bottom: 2rem;
    width: 100%;
}

.onboarding-question .lead {
    font-size: 1.25rem;
    color: var(--maya-text-primary);
    line-height: 1.7;
    font-weight: 400;
}

.onboarding-input-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    box-sizing: border-box;
}

.onboarding-input {
    background: var(--maya-bg-tertiary);
    border: 1px solid var(--maya-border);
    color: var(--maya-text-primary);
    padding: 1rem;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    transition: all 0.3s;
}

.onboarding-input:focus {
    background: var(--maya-bg-tertiary);
    border-color: var(--maya-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.2);
    color: var(--maya-text-primary);
    outline: none;
}

.onboarding-input::placeholder {
    color: var(--maya-text-muted);
}

/* Onboarding Options (Gender, etc) */
.onboarding-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.onboarding-option {
    min-width: 120px;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s;
}

.onboarding-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

/* Onboarding Actions */
.onboarding-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: auto;
    padding-top: 1.5rem;
}

.onboarding-actions .btn {
    min-width: 120px;
    padding: 0.75rem 1.5rem;
}

/* Location Suggestions */
.location-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--maya-bg-secondary);
    border: 1px solid var(--maya-border);
    border-radius: 0.5rem;
    margin-top: 0.25rem;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.location-suggestion {
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--maya-text-primary);
    border-bottom: 1px solid var(--maya-border);
}

.location-suggestion:last-child {
    border-bottom: none;
}

.location-suggestion:hover {
    background: var(--maya-bg-tertiary);
}

.location-suggestion i {
    margin-right: 0.5rem;
    color: var(--maya-primary);
}

/* Confirm Button */
.onboarding-confirm {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background: var(--maya-gradient-1);
    border: none;
}

.onboarding-confirm:hover {
    transform: scale(1.05);
}

/* Legacy styles kept for compatibility */
.onboarding-container {
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.onboarding-step {
    padding: 2rem;
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.onboarding-step.active {
    display: flex;
}

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

.onboarding-step h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--maya-text-primary);
}

.onboarding-step p {
    color: var(--maya-text-secondary);
    margin-bottom: 2rem;
}

.onboarding-form {
    width: 100%;
    max-width: 400px;
}

.onboarding-form .form-label {
    color: var(--maya-text-secondary);
    font-size: 0.9rem;
}

.onboarding-form .form-control,
.onboarding-form .form-select {
    background: var(--maya-bg-tertiary);
    border: 1px solid var(--maya-border);
    color: var(--maya-text-primary);
    padding: 0.8rem 1rem;
    border-radius: 0.5rem;
}

.onboarding-form .form-control:focus,
.onboarding-form .form-select:focus {
    background: var(--maya-bg-tertiary);
    border-color: var(--maya-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    color: var(--maya-text-primary);
}

.onboarding-form .form-select option {
    background: var(--maya-bg-secondary);
    color: var(--maya-text-primary);
}

.onboarding-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 400px;
}

/* Existing user login section - small centered button */
.existing-user-login {
    width: 100%;
    text-align: center;
}

.existing-user-login #directLoginBtn {
    width: auto;
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
}

/* Direct login container */
.direct-login-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* Mobile optimizations for onboarding */
@media (max-width: 576px) {
    .onboarding-header {
        padding: 1rem;
    }
    
    .onboarding-main {
        padding: 80px 1rem 1rem;
    }
    
    .onboarding-content {
        padding: 1rem 0.5rem;
    }
    
    .onboarding-question .lead {
        font-size: 1.1rem;
    }
    
    .onboarding-input-container {
        max-width: 100%;
    }
    
    .onboarding-step {
        padding: 1rem;
    }
    
    .onboarding-form {
        max-width: 100%;
    }
    
    .onboarding-actions {
        max-width: 100%;
    }
    
    /* Keep login button small on mobile too */
    .existing-user-login #directLoginBtn {
        width: auto;
    }
    
    .direct-login-container {
        max-width: 100%;
        padding: 0 0.5rem;
    }
}

/* =====================================================
   Modern Button Styles - Clean & Elegant
   ===================================================== */

/* Base button reset for modern look */
.btn {
    border: none;
    border-radius: 8px;
    font-weight: 400;
    font-size: 0.9rem;
    padding: 0.625rem 1.25rem;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--maya-primary);
    color: white;
    box-shadow: none;
}

.btn-primary:hover {
    background: var(--maya-primary-dark);
    transform: translateY(-1px);
    color: white;
}

.btn-outline-primary {
    background: transparent;
    border: 1px solid var(--maya-primary);
    color: var(--maya-primary);
}

.btn-outline-primary:hover {
    background: var(--maya-primary);
    color: white;
}

.btn-outline-secondary {
    background: transparent;
    border: 1px solid var(--maya-text-muted);
    color: var(--maya-text-secondary);
}

.btn-outline-secondary:hover {
    background: var(--maya-bg-tertiary);
    border-color: var(--maya-text-secondary);
    color: var(--maya-text-primary);
}

.btn-outline-light {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--maya-text-primary);
    font-weight: 400;
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    color: white;
}

.btn-link {
    background: transparent;
    color: var(--maya-primary);
    padding: 0.5rem;
    text-decoration: none;
}

.btn-link:hover {
    color: var(--maya-primary-light);
    text-decoration: none;
}

/* Maya branded buttons */
.btn-maya {
    background: var(--maya-primary);
    border: none;
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    font-weight: 400;
    transition: all 0.2s ease;
    box-shadow: none;
}

.btn-maya:hover {
    background: var(--maya-primary-dark);
    transform: translateY(-1px);
    color: white;
}

.btn-maya-outline {
    background: transparent;
    border: 1px solid var(--maya-primary);
    color: var(--maya-primary);
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    font-weight: 400;
    transition: all 0.2s ease;
}

.btn-maya-outline:hover {
    background: var(--maya-primary);
    color: white;
}

/* Small button variant */
.btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
    border-radius: 6px;
}

/* Large button variant */
.btn-lg {
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    border-radius: 10px;
}

/* =====================================================
   Auth Modal
   ===================================================== */
.auth-modal {
    background: var(--maya-bg-primary);
    border: none;
    border-radius: 1rem;
}

.auth-container {
    padding: 2rem;
}

.auth-container h3 {
    font-family: var(--font-display);
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-container .subtitle {
    text-align: center;
    color: var(--maya-text-secondary);
    margin-bottom: 2rem;
}

/* =====================================================
   Cards
   ===================================================== */
.maya-card {
    background: var(--maya-bg-card);
    border: 1px solid var(--maya-border-light);
    border-radius: 1rem;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.maya-card:hover {
    border-color: var(--maya-primary);
    box-shadow: var(--maya-shadow-glow);
}

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

.maya-card-icon {
    width: 50px;
    height: 50px;
    background: var(--maya-gradient-1);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.maya-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--maya-text-primary);
}

.maya-card__title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--maya-text-primary);
    margin: 0 0 1rem;
}

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

/* =====================================================
   Page Specific Styles
   ===================================================== */
.page-container {
    padding: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Page Loading Animation */
.page-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    width: 100%;
}

.loading-spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.spinner-orbit {
    position: relative;
    width: 80px;
    height: 80px;
}

.orbit-ring {
    position: absolute;
    border: 2px solid transparent;
    border-radius: 50%;
    animation: orbit-spin 1.5s linear infinite;
}

.orbit-ring:nth-child(1) {
    width: 100%;
    height: 100%;
    border-top-color: var(--maya-primary);
    animation-duration: 1.5s;
}

.orbit-ring:nth-child(2) {
    width: 75%;
    height: 75%;
    top: 12.5%;
    left: 12.5%;
    border-right-color: var(--maya-accent);
    animation-duration: 1.2s;
    animation-direction: reverse;
}

.orbit-ring:nth-child(3) {
    width: 50%;
    height: 50%;
    top: 25%;
    left: 25%;
    border-bottom-color: #f59e0b;
    animation-duration: 0.9s;
}

.orbit-center {
    position: absolute;
    width: 12px;
    height: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--maya-primary);
    border-radius: 50%;
    animation: pulse-glow 1.5s ease-in-out infinite;
}

@keyframes orbit-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px var(--maya-primary), 0 0 10px var(--maya-primary); }
    50% { box-shadow: 0 0 15px var(--maya-primary), 0 0 25px var(--maya-primary); }
}

.loading-text {
    color: var(--maya-text-secondary);
    font-size: 0.9rem;
    animation: fade-pulse 1.5s ease-in-out infinite;
}

@keyframes fade-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.page-header {
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.page-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--maya-text-primary);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--maya-text-secondary);
    font-size: 0.9rem;
}

/* Home Page */
.home-hero {
    text-align: center;
    padding: 2rem 0;
}

.greeting-text {
    font-size: 1.2rem;
    color: var(--maya-text-secondary);
}

.hero-name {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--maya-text-primary);
    margin-bottom: 1rem;
}

.today-date {
    color: var(--maya-text-muted);
    font-size: 0.9rem;
}

.zodiac-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--maya-bg-tertiary);
    border-radius: 2rem;
    margin-top: 1rem;
}

.zodiac-badge .zodiac-icon {
    font-size: 1.5rem;
}

.zodiac-badge .zodiac-name {
    font-weight: 500;
    color: var(--maya-text-primary);
}

.daily-insight {
    background: var(--maya-gradient-3);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid var(--maya-border);
}

.daily-insight h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--maya-primary);
}

.daily-insight p {
    color: var(--maya-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .quick-actions {
        grid-template-columns: repeat(4, 1fr);
    }
}

.quick-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    background: var(--maya-bg-card);
    border: 1px solid var(--maya-border-light);
    border-radius: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.quick-action-card:hover {
    transform: translateY(-5px);
    border-color: var(--maya-primary);
    box-shadow: var(--maya-shadow-glow);
}

.quick-action-card i {
    font-size: 2rem;
    color: var(--maya-primary);
    margin-bottom: 0.5rem;
}

.quick-action-card span {
    color: var(--maya-text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* =====================================================
   Numerology Animation
   ===================================================== */
.numerology-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--maya-bg-primary);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.calculation-display {
    text-align: center;
}

.letter-calculation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.letter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    min-width: 40px;
    opacity: 0;
    animation: fadeInUp 0.5s forwards;
}

.letter-item .letter {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--maya-text-primary);
}

.letter-item .number {
    font-size: 1rem;
    color: var(--maya-primary);
}

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

.calculation-result {
    margin-top: 1rem;
}

.result-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    color: var(--maya-text-secondary);
    margin-bottom: 0.5rem;
}

.final-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    color: var(--maya-primary);
    text-shadow: var(--maya-shadow-glow);
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.number-name {
    font-size: 1.2rem;
    color: var(--maya-text-secondary);
    margin-top: 0.5rem;
}

/* =====================================================
   Kundli Chart - Enhanced
   ===================================================== */
.maya-kundli-page {
    padding-bottom: 100px;
}

.maya-kundli-page .maya-card {
    margin-bottom: 1rem;
}

.maya-kundli-toggle {
    display: flex;
    background: var(--maya-bg-card);
    border: 1px solid var(--maya-border-light);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 1rem;
}

.maya-kundli-toggle__btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: var(--maya-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.maya-kundli-toggle__btn--active {
    background: var(--maya-gradient-1);
    color: white;
}

.maya-kundli-chart-card {
    background: var(--maya-bg-card);
    border: 1px solid var(--maya-border-light);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.maya-kundli-chart {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* South Indian Grid Chart */
.kundli-grid--south {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 2px;
    aspect-ratio: 1;
    max-width: 100%;
    border: 2px solid var(--maya-primary);
    border-radius: 0px;
    background: var(--maya-primary);
}

.kundli-cell {
    background: var(--maya-bg-tertiary);
    padding: 6px;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.kundli-cell--asc {
    background: rgba(99, 102, 241, 0.15);
}

.kundli-cell__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
    flex-shrink: 0;
}

.kundli-cell__sign {
    font-size: 0.7rem;
    color: var(--maya-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kundli-cell__asc-badge {
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--maya-primary);
    background: rgba(99, 102, 241, 0.2);
    padding: 1px 4px;
    border-radius: 4px;
    flex-shrink: 0;
}

.kundli-cell__planets {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

.kundli-planet {
    font-size: 0.65rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.kundli-center {
    background: var(--maya-bg-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--maya-primary);
}

.kundli-center__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--maya-text-primary);
}

.kundli-center__subtitle {
    font-size: 0.7rem;
    color: var(--maya-text-muted);
}

/* North Indian Diamond Chart */
.kundli-grid--north {
    width: 100%;
    max-width: 100%;
}

.kundli-north-chart {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border: 2px solid var(--maya-primary);
    background: var(--maya-bg-tertiary);
}

.kundli-north-chart::before,
.kundli-north-chart::after {
    content: '';
    position: absolute;
    background: var(--maya-primary);
}

.kundli-north-chart::before {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
}

.kundli-north-chart::after {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

.kundli-house {
    position: absolute;
    padding: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.kundli-house--asc {
    background: rgba(99, 102, 241, 0.15);
}

/* North Indian house positions */
.kundli-house--1 { top: 0; left: 25%; width: 50%; height: 25%; }
.kundli-house--2 { top: 0; left: 75%; width: 25%; height: 25%; border-left: 1px solid var(--maya-primary); }
.kundli-house--3 { top: 25%; left: 75%; width: 25%; height: 25%; border-left: 1px solid var(--maya-primary); }
.kundli-house--4 { top: 50%; left: 75%; width: 25%; height: 25%; border-left: 1px solid var(--maya-primary); }
.kundli-house--5 { top: 75%; left: 75%; width: 25%; height: 25%; border-left: 1px solid var(--maya-primary); }
.kundli-house--6 { top: 75%; left: 25%; width: 50%; height: 25%; }
.kundli-house--7 { top: 75%; left: 0; width: 25%; height: 25%; border-right: 1px solid var(--maya-primary); }
.kundli-house--8 { top: 50%; left: 0; width: 25%; height: 25%; border-right: 1px solid var(--maya-primary); }
.kundli-house--9 { top: 25%; left: 0; width: 25%; height: 25%; border-right: 1px solid var(--maya-primary); }
.kundli-house--10 { top: 0; left: 0; width: 25%; height: 25%; border-right: 1px solid var(--maya-primary); }
.kundli-house--11 { top: 25%; left: 25%; width: 25%; height: 25%; }
.kundli-house--12 { top: 25%; left: 50%; width: 25%; height: 25%; }

.kundli-house__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2px;
}

.kundli-house__sign {
    font-size: 0.65rem;
    color: var(--maya-text-secondary);
}

.kundli-house__asc {
    font-size: 0.5rem;
    font-weight: 700;
    color: var(--maya-primary);
}

.kundli-house__planets {
    display: flex;
    flex-direction: column;
    gap: 1px;
    overflow: hidden;
}

.kundli-north-center {
    position: absolute;
    top: 25%;
    left: 25%;
    width: 50%;
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--maya-bg-card);
    border: 2px solid var(--maya-primary);
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--maya-text-primary);
    z-index: 10;
}

/* Kundli Details Card */
.maya-kundli-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.maya-kundli-detail {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.maya-kundli-detail--full {
    grid-column: 1 / -1;
}

.maya-kundli-detail__label {
    font-size: 0.75rem;
    color: var(--maya-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.maya-kundli-detail__value {
    font-size: 0.95rem;
    color: var(--maya-text-primary);
    font-weight: 500;
}

/* Ascendant Display */
.maya-kundli-ascendant {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.maya-kundli-ascendant__symbol {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--maya-gradient-3);
    border-radius: 12px;
}

.maya-kundli-ascendant__img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.maya-kundli-ascendant__info h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--maya-text-primary);
    margin: 0 0 0.25rem;
}

.maya-kundli-ascendant__info p {
    font-size: 0.85rem;
    color: var(--maya-text-secondary);
    margin: 0;
}

/* Current Dasha */
.maya-kundli-dasha-current {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--maya-gradient-3);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.maya-kundli-dasha-current__planet {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.maya-kundli-dasha-current__symbol {
    font-size: 1.5rem;
}

.maya-kundli-dasha-current__name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--maya-text-primary);
}

.maya-kundli-dasha-current__period {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.maya-kundli-dasha-current__period span:first-child {
    font-size: 0.85rem;
    color: var(--maya-text-secondary);
}

/* Dasha List */
.maya-kundli-dasha-list {
    margin-top: 1rem;
}

.maya-kundli-dasha-list h5 {
    font-size: 0.85rem;
    color: var(--maya-text-muted);
    margin-bottom: 0.75rem;
}

.maya-kundli-dasha-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--maya-border-light);
}

.maya-kundli-dasha-item:last-child {
    border-bottom: none;
}

.maya-kundli-dasha-item--active {
    background: rgba(99, 102, 241, 0.1);
    margin: 0 -1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.maya-kundli-dasha-item__planet {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--maya-text-primary);
}

.maya-kundli-dasha-item__years {
    font-size: 0.8rem;
    color: var(--maya-text-secondary);
}

.maya-kundli-dasha-item__duration {
    font-size: 0.75rem;
    color: var(--maya-text-muted);
    background: var(--maya-bg-tertiary);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Planetary Positions */
.maya-kundli-planets {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.maya-kundli-planet-row {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: var(--maya-bg-tertiary);
    border-radius: 10px;
    gap: 1rem;
}

.maya-kundli-planet-row__planet {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
}

.maya-kundli-planet-row__symbol {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.maya-kundli-planet-row__name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--maya-text-primary);
}

.maya-kundli-planet-row__sign {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--maya-text-secondary);
    flex: 1;
}

.maya-kundli-planet-row__sign-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--maya-primary);
    color: white;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.maya-kundli-planet-row__degree {
    font-size: 0.85rem;
    color: var(--maya-text-muted);
    min-width: 40px;
    text-align: right;
}

/* Yogas */
.maya-kundli-yogas {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.maya-kundli-yoga {
    background: var(--maya-bg-tertiary);
    border-radius: 12px;
    padding: 1rem;
}

.maya-kundli-yoga__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.maya-kundli-yoga__header h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--maya-text-primary);
    margin: 0;
}

.maya-kundli-yoga__hindi {
    font-size: 0.85rem;
    color: var(--maya-accent);
    margin: 0 0 0.5rem;
}

.maya-kundli-yoga__desc {
    font-size: 0.85rem;
    color: var(--maya-text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* House Meanings */
.maya-kundli-houses {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.maya-kundli-house-meaning {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--maya-bg-tertiary);
    border-radius: 10px;
}

.maya-kundli-house-meaning__num {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--maya-gradient-1);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 8px;
    flex-shrink: 0;
}

.maya-kundli-house-meaning__info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.maya-kundli-house-meaning__name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--maya-text-primary);
}

.maya-kundli-house-meaning__desc {
    font-size: 0.8rem;
    color: var(--maya-text-secondary);
}

/* Badge Styles */
.maya-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 6px;
    text-transform: uppercase;
}

.maya-badge--success {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.maya-badge--warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.maya-badge--info {
    background: rgba(99, 102, 241, 0.15);
    color: var(--maya-primary);
}

/* Mobile adjustments for Kundli */
@media (max-width: 400px) {
    .kundli-cell__sign {
        font-size: 0.6rem;
    }
    
    .kundli-planet {
        font-size: 0.55rem;
    }
    
    .kundli-cell {
        padding: 4px;
    }
    
    .kundli-center__title {
        font-size: 1rem;
    }
    
    .kundli-center__subtitle {
        font-size: 0.6rem;
    }
    
    .kundli-house__sign {
        font-size: 0.55rem;
    }
}

/* =====================================================
   Utilities
   ===================================================== */
.text-gradient {
    background: var(--maya-gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow-text {
    text-shadow: 0 0 20px var(--maya-glow);
}

.divider {
    height: 1px;
    background: var(--maya-border-light);
    margin: 1.5rem 0;
}

.stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
        radial-gradient(2px 2px at 50px 160px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 90px 40px, rgba(255,255,255,0.2), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(255,255,255,0.2), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: twinkle 5s ease-in-out infinite;
}

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

/* =====================================================
   Responsive Adjustments
   ===================================================== */
@media (max-width: 576px) {
    .page-container {
        padding: 1rem;
    }
    
    .hero-name {
        font-size: 1.5rem;
    }
    
    .maya-card {
        padding: 1rem;
    }
    
    .quick-actions {
        gap: 0.75rem;
    }
    
    .quick-action-card {
        padding: 1rem 0.5rem;
    }
    
    .quick-action-card i {
        font-size: 1.5rem;
    }
    
    .quick-action-card span {
        font-size: 0.8rem;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    .main-content {
        padding-bottom: 0;
    }
}

/* Desktop Header */
@media (min-width: 992px) {
    .menu-toggle {
        display: none;
    }
    
    .header-content {
        padding-left: calc(var(--sidebar-width) + 1rem);
    }
}

/* =====================================================
   Toast Styles - Top Center Push Notification Style
   ===================================================== */
#toast-container {
    z-index: 9999 !important;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding-top: calc(env(safe-area-inset-top, 0px) + 1rem) !important;
}

.toast {
    background: var(--maya-bg-card);
    border: 1px solid var(--maya-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
    min-width: 280px;
    max-width: 90vw;
    animation: slideInFromTop 0.3s ease-out;
    overflow: hidden;
}

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

.toast.hide {
    animation: slideOutToTop 0.3s ease-in forwards;
}

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

.toast-header {
    background: transparent;
    border-bottom: 1px solid var(--maya-border-light);
    color: var(--maya-text-primary);
    padding: 0.75rem 1rem;
}

.toast-header .btn-close {
    filter: invert(1) brightness(0.7);
}

.toast-body {
    color: var(--maya-text-secondary);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

/* =====================================================
   Loading States & Skeletons
   ===================================================== */
.skeleton {
    background: linear-gradient(90deg, 
        var(--maya-bg-tertiary) 25%, 
        var(--maya-bg-secondary) 50%, 
        var(--maya-bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 0.5rem;
}

.skeleton-card {
    background: linear-gradient(90deg, 
        var(--maya-bg-tertiary) 25%, 
        var(--maya-bg-card) 50%, 
        var(--maya-bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 1rem;
    border: 1px solid var(--maya-border-light);
}

.skeleton-text {
    height: 1rem;
    background: linear-gradient(90deg, 
        var(--maya-bg-tertiary) 25%, 
        var(--maya-bg-card) 50%, 
        var(--maya-bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 0.5rem;
}

.skeleton-circle {
    border-radius: 50%;
    background: linear-gradient(90deg, 
        var(--maya-bg-tertiary) 25%, 
        var(--maya-bg-card) 50%, 
        var(--maya-bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.page-skeleton {
    animation: fadeIn 0.3s ease;
}

/* Insight card skeleton */
.maya-insight-skeleton {
    padding: 0.5rem 0;
}

.maya-insight-skeleton .skeleton-text {
    margin-bottom: 0.75rem;
}

.maya-insight-skeleton .skeleton-text:last-child {
    margin-bottom: 0;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.spinner-maya {
    width: 40px;
    height: 40px;
    border: 3px solid var(--maya-border);
    border-top-color: var(--maya-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
/* =====================================================
   Storytelling Funnel - Calculation Animations
   ===================================================== */
.calculation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease-out;
}

.calculation-overlay.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.calculation-container {
    width: 90%;
    max-width: 600px;
    padding: 2rem;
    text-align: center;
}

.calculation-title {
    margin-bottom: 2rem;
}

.calculation-title .calc-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.calculation-title h2 {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    color: var(--maya-text-primary);
    font-size: 1.5rem;
}

.calculation-display {
    background: var(--maya-bg-card);
    border: 1px solid var(--maya-border);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    min-height: 200px;
}

.calc-waiting {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 150px;
}

.cosmic-dots {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.cosmic-dots span {
    width: 12px;
    height: 12px;
    background: var(--maya-primary);
    border-radius: 50%;
    animation: cosmicPulse 1.4s ease-in-out infinite;
}

.cosmic-dots span:nth-child(2) { animation-delay: 0.2s; }
.cosmic-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes cosmicPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

/* Life Path Calculation */
.calc-section h3 {
    font-size: 1.2rem;
    color: var(--maya-primary-light);
    margin-bottom: 1rem;
}

.calc-explanation {
    font-size: 0.9rem;
    color: var(--maya-text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    padding: 0.75rem 1rem;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 0.5rem;
    border-left: 3px solid var(--maya-primary);
}

.calc-note {
    font-size: 0.85rem;
    color: var(--maya-text-muted);
    margin-bottom: 1rem;
}

.date-breakdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.date-part {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.date-part .label {
    font-size: 0.75rem;
    color: var(--maya-text-muted);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.date-part .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--maya-primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--maya-border);
}

.date-part .value.animate-in {
    animation: slideInUp 0.5s ease-out forwards;
}

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

/* Letter Breakdown Grid */
.letter-breakdown, .vowel-display {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.letter-value-pair {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--maya-border);
    border-radius: 0.5rem;
    padding: 0.5rem;
    min-width: 45px;
}

.letter-value-pair.is-vowel {
    background: rgba(99, 102, 241, 0.3);
    border-color: var(--maya-primary);
}

.letter-value-pair.is-consonant {
    opacity: 0.4;
}

.letter-value-pair .letter {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--maya-text-primary);
}

.letter-value-pair .value {
    font-size: 0.85rem;
    color: var(--maya-primary-light);
}

.letter-value-pair.animate-in {
    animation: popIn 0.3s ease-out forwards;
}

@keyframes popIn {
    from { 
        opacity: 0; 
        transform: scale(0.5); 
    }
    to { 
        opacity: 1; 
        transform: scale(1); 
    }
}

/* Calculation Steps */
.calculation-steps {
    border-top: 1px solid var(--maya-border-light);
    padding-top: 1rem;
    margin-top: 1rem;
}

.calc-step {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
}

.calc-step .step-text {
    color: var(--maya-text-secondary);
}

.calc-step .step-label {
    font-size: 0.75rem;
    color: var(--maya-primary-light);
    background: rgba(99, 102, 241, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.calc-step.final {
    color: var(--maya-success);
    font-weight: 600;
}

.calc-step.final .step-text {
    color: var(--maya-success);
}

.calc-step.animate-in {
    animation: fadeSlideIn 0.4s ease-out forwards;
}

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

/* Number Reveal */
.calculation-result {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.number-reveal {
    background: var(--maya-gradient-1);
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    text-align: center;
    flex: 1 1 150px;
    max-width: 180px;
}

.number-reveal .number-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.number-reveal .number-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.number-reveal .number-value.glow-pulse {
    animation: glowPulse 2s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

@keyframes glowPulse {
    0%, 100% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.5); }
    50% { text-shadow: 0 0 40px rgba(255, 255, 255, 0.8), 0 0 60px var(--maya-primary); }
}

/* =====================================================
   Email Gate Styles
   ===================================================== */
.email-gate-container {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    padding: 1.5rem;
    text-align: center;
}

.gate-header {
    margin-bottom: 1.5rem;
}

.gate-header .gate-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.gate-header h3 {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    color: var(--maya-text-primary);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.gate-header .gate-subtitle {
    color: var(--maya-text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.gate-benefits {
    margin-bottom: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.4rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 0.5rem;
    text-align: left;
}

.benefit-item i {
    color: var(--maya-primary);
    font-size: 1.2rem;
}

.benefit-item span {
    color: var(--maya-text-secondary);
    font-size: 0.9rem;
}

.gate-form {
    margin-bottom: 0.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.gate-form .form-group {
    margin-bottom: 0;
    width: 100%;
}

.gate-form .form-control {
    background: var(--maya-bg-secondary);
    border: 1px solid var(--maya-border);
    color: var(--maya-text-primary);
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.gate-form .form-control:focus {
    border-color: var(--maya-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.gate-form .form-control::placeholder {
    color: var(--maya-text-muted);
}

.gate-form .btn-primary {
    padding: 0.875rem 1.5rem;
    font-weight: 500;
}

.gate-note {
    font-size: 0.75rem;
    color: var(--maya-text-muted);
}

.gate-note i {
    margin-right: 0.25rem;
}

/* =====================================================
   Auth Flow Styles
   ===================================================== */
.auth-flow-container {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    padding: 1.5rem;
    text-align: center;
    box-sizing: border-box;
}

@media screen and (max-width: 400px) {
    .auth-flow-container {
        max-width: 100%;
        padding: 1rem;
    }
}

.auth-header {
    margin-bottom: 1.5rem;
}

.auth-header .auth-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.auth-header h3 {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    color: var(--maya-text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.auth-header .auth-email {
    color: var(--maya-primary-light);
    font-size: 0.85rem;
}

.auth-form .form-group {
    margin-bottom: 0.75rem;
    width: 100%;
}

.auth-form .form-control {
    background: var(--maya-bg-secondary);
    border: 1px solid var(--maya-border);
    color: var(--maya-text-primary);
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.auth-form .form-control:focus {
    border-color: var(--maya-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.auth-form .form-control::placeholder {
    color: var(--maya-text-muted);
}

.auth-form .btn-primary {
    padding: 0.875rem 1.5rem;
    font-weight: 500;
}

.auth-link, .auth-terms {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--maya-text-muted);
}

.auth-switch a {
    color: var(--maya-primary);
    text-decoration: none;
}

/* =====================================================
   Deep Reveal Styles
   ===================================================== */
.deep-reveal-prompt {
    margin-top: 2rem;
    text-align: center;
}

.pulse-btn {
    animation: pulseButton 2s ease-in-out infinite;
    font-size: 1rem;
    padding: 1rem 2rem;
    border-radius: 3rem;
}

@keyframes pulseButton {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.5);
    }
    50% { 
        transform: scale(1.02); 
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
    }
}

/* =====================================================
   Audio Permission Modal
   ===================================================== */
.audio-permission-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.audio-permission-content {
    text-align: center;
    padding: 2rem;
    max-width: 350px;
}

.audio-permission-content .audio-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.audio-permission-content h3 {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    color: var(--maya-text-primary);
    margin-bottom: 1rem;
}

.audio-permission-content p {
    color: var(--maya-text-secondary);
    margin-bottom: 1.5rem;
}

.audio-permission-content .btn-primary {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 3rem;
    margin-bottom: 1rem;
}

.audio-permission-content .btn-link {
    font-size: 0.9rem;
}

/* =====================================================
   Deep Reveal & Pulse Animation
   ===================================================== */
.deep-reveal-prompt {
    padding: 2rem 1rem;
}

.pulse-animation {
    animation: pulseBtn 2s ease-in-out infinite;
}

@keyframes pulseBtn {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.5);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 0 0 15px rgba(99, 102, 241, 0);
    }
}

/* =====================================================
   Responsive Adjustments for Funnel
   ===================================================== */

/* Mobile landscape and short screens */
@media (max-height: 700px) {
    .maya-blob-container {
        width: 180px;
        height: 180px;
        max-width: 50vw;
        max-height: 25vh;
    }
    
    .maya-blob-container.blob-centered {
        top: 40%;
        width: 180px;
        height: 180px;
        max-width: 50vw;
        max-height: 25vh;
    }
    
    .maya-blob-container.blob-top {
        top: 12%;
        width: 120px;
        height: 120px;
        max-width: 35vw;
        max-height: 18vh;
    }
    
    .maya-blob-container.blob-small {
        top: 6%;
        width: 60px;
        height: 60px;
        max-width: 20vw;
        max-height: 10vh;
    }
    
    .email-gate-container,
    .auth-flow-container {
        padding: 1rem;
    }
    
    .gate-header,
    .auth-header {
        margin-bottom: 1rem;
    }
    
    .gate-benefits {
        margin-bottom: 1rem;
    }
    
    .benefit-item {
        padding: 0.4rem 0.5rem;
        margin-bottom: 0.3rem;
    }
    
    .benefit-item span {
        font-size: 0.8rem;
    }
}

/* Small mobile screens */
@media (max-width: 400px) {
    .maya-blob-container {
        width: 200px;
        height: 200px;
        max-width: 60vw;
        max-height: 28vh;
    }
    
    .maya-blob-container.blob-centered {
        top: 40%;
        width: 200px;
        height: 200px;
    }
    
    .maya-blob-container.blob-top {
        top: 15%;
        width: 120px;
        height: 120px;
    }
    
    .maya-blob-container.blob-small {
        top: 8%;
        width: 60px;
        height: 60px;
    }
    
    .email-gate-container,
    .auth-flow-container {
        padding: 1rem 0.5rem;
    }
    
    .gate-header h3,
    .auth-header h3 {
        font-size: 1.1rem;
    }
}

/* =====================================================
   Mobile Calculation Results - Compact View
   ===================================================== */
@media (max-width: 768px) {
    /* Center the calculation overlay on mobile */
    .calculation-overlay {
        align-items: center;
        justify-content: center;
        padding: 1rem;
    }
    
    .calculation-container {
        padding: 1rem;
    }
    
    .calculation-title {
        margin-bottom: 1rem;
    }
    
    .calculation-title .calc-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .calculation-title h2 {
        font-size: 1.2rem;
    }
    
    .calculation-display {
        padding: 1rem;
        min-height: auto;
        margin-bottom: 1rem;
    }
    
    /* Compact number results - single row circles only */
    .calculation-result {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .number-reveal {
        flex: 0 0 auto;
        width: 60px;
        height: 60px;
        min-width: 60px;
        max-width: 60px;
        border-radius: 50%;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
    }
    
    /* Hide labels on mobile */
    .number-reveal .number-label {
        display: none;
    }
    
    .number-reveal .number-value {
        font-size: 1.5rem;
        line-height: 1;
    }
    
    /* Smaller date breakdown */
    .date-breakdown {
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .date-part .value {
        font-size: 1.5rem;
        padding: 0.3rem 0.7rem;
    }
    
    .date-part .label {
        font-size: 0.65rem;
    }
    
    /* Smaller letter breakdown */
    .letter-value-pair {
        padding: 0.3rem;
        min-width: 35px;
    }
    
    .letter-value-pair .letter {
        font-size: 1rem;
    }
    
    .letter-value-pair .value {
        font-size: 0.75rem;
    }
    
    /* Compact calc section */
    .calc-section h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .calc-note {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .calculation-steps {
        padding-top: 0.75rem;
        margin-top: 0.75rem;
    }
    
    .calc-step {
        padding: 0.3rem;
        margin-bottom: 0.3rem;
        font-size: 0.85rem;
    }
}

/* Extra small screens - ensure circles stay in single row */
@media (max-width: 400px) {
    .calculation-result {
        gap: 0.35rem;
        padding: 0.25rem;
    }
    
    .number-reveal {
        width: 50px;
        height: 50px;
        min-width: 50px;
        max-width: 50px;
    }
    
    .number-reveal .number-value {
        font-size: 1.25rem;
    }
}

/* =====================================================
   Page Wrappers & Content Styling
   ===================================================== */
.page-wrapper {
    padding: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    animation: pageEnter 0.4s ease-out;
}

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

/* =====================================================
   Horoscope Page Styles
   ===================================================== */
.horoscope-page {
    padding: 1.5rem;
}

.horoscope-page .page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.horoscope-page .page-header h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--maya-text-primary);
    margin-bottom: 0.5rem;
}

/* Zodiac Header with Animated Symbol */
.zodiac-header {
    position: relative;
    padding: 2rem;
    background: var(--maya-gradient-3);
    border-radius: 1.5rem;
    border: 1px solid var(--maya-border-light);
    overflow: hidden;
}

.zodiac-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(138, 43, 226, 0.1) 60deg,
        transparent 120deg
    );
    animation: zodiac-glow-rotate 10s linear infinite;
    pointer-events: none;
}

@keyframes zodiac-glow-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.zodiac-symbol {
    font-size: 4rem;
    position: relative;
    z-index: 1;
    animation: zodiac-float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px var(--maya-primary));
}

@keyframes zodiac-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.zodiac-header h5 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--maya-text-primary);
    margin: 1rem 0 0.5rem;
    position: relative;
    z-index: 1;
}

.zodiac-header .text-muted {
    position: relative;
    z-index: 1;
}

/* Horoscope Content Card */
.horoscope-content.card {
    background: var(--maya-bg-card);
    border: 1px solid var(--maya-border-light);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
}

.horoscope-content .card-body {
    padding: 1.5rem;
}

.horoscope-text {
    color: var(--maya-text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

/* Aspect Cards with Star Ratings */
.horoscope-aspects {
    margin-top: 1.5rem;
}

.aspect-card {
    background: var(--maya-bg-card);
    border: 1px solid var(--maya-border-light);
    border-radius: 1rem;
    padding: 1.25rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.aspect-card:hover {
    transform: translateY(-3px);
    border-color: var(--maya-primary);
    box-shadow: var(--maya-shadow-glow);
}

.aspect-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.aspect-label {
    font-size: 0.85rem;
    color: var(--maya-text-secondary);
    margin-bottom: 0.5rem;
}

.aspect-rating {
    font-size: 0.9rem;
    color: #f59e0b;
    letter-spacing: 2px;
}

/* Star rating animation */
.aspect-rating {
    display: inline-block;
}

/* =====================================================
   Home Page Styles
   ===================================================== */
.home-page {
    padding: 1rem;
}

.stat-card {
    background: var(--maya-bg-card);
    border: 1px solid var(--maya-border-light);
    border-radius: 1rem;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--maya-primary);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 1.5rem;
    color: var(--maya-primary);
    margin-bottom: 0.5rem;
}

.stat-icon i {
    filter: drop-shadow(0 0 8px var(--maya-primary));
}

.stat-label {
    font-size: 0.75rem;
    color: var(--maya-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--maya-text-primary);
    margin-top: 0.25rem;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem 0.5rem;
    background: var(--maya-bg-card);
    border: 1px solid var(--maya-border-light);
    border-radius: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.action-card:hover {
    transform: translateY(-3px);
    border-color: var(--maya-primary);
    box-shadow: var(--maya-shadow-glow);
    text-decoration: none;
}

.action-card i {
    font-size: 1.5rem;
    color: var(--maya-primary);
    margin-bottom: 0.5rem;
}

.action-card span {
    font-size: 0.8rem;
    color: var(--maya-text-primary);
    font-weight: 500;
}

/* Lucky Elements */
.lucky-elements {
    background: var(--maya-bg-card);
    border: 1px solid var(--maya-border-light);
    border-radius: 1rem;
    padding: 1.25rem;
}

.lucky-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.lucky-color {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--maya-border);
    box-shadow: 0 0 10px currentColor;
}

.lucky-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--maya-primary);
}

.lucky-day {
    font-size: 0.85rem;
    color: var(--maya-text-primary);
    font-weight: 500;
}

.lucky-gem {
    font-size: 1.5rem;
}

.lucky-item small {
    color: var(--maya-text-muted);
    font-size: 0.7rem;
}

/* Section Titles */
.section-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--maya-text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 1rem;
    background: var(--maya-gradient-1);
    border-radius: 2px;
}

/* =====================================================
   Compatibility Page Styles
   ===================================================== */
.compatibility-page {
    padding: 1.5rem;
}

.compatibility-card {
    background: var(--maya-bg-card);
    border: 1px solid var(--maya-border-light);
    border-radius: 1rem;
    padding: 1.5rem;
}

/* =====================================================
   Panchang Page Styles
   ===================================================== */
.panchang-page {
    padding: 1.5rem;
}

.panchang-card {
    background: var(--maya-bg-card);
    border: 1px solid var(--maya-border-light);
    border-radius: 1rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.panchang-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--maya-border-light);
}

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

.panchang-label {
    color: var(--maya-text-secondary);
    font-size: 0.9rem;
}

.panchang-value {
    color: var(--maya-text-primary);
    font-weight: 500;
}

/* =====================================================
   Chat Page Styles
   ===================================================== */
.chat-page {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 180px);
    padding: 0 1rem;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.chat-message {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    animation: messageSlide 0.3s ease-out;
}

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

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-content {
    max-width: 80%;
    background: var(--maya-bg-card);
    border: 1px solid var(--maya-border-light);
    border-radius: 1rem;
    padding: 0.75rem 1rem;
}

.chat-message.user {
    flex-direction: row-reverse;
}

.chat-message.user .message-content {
    background: var(--maya-gradient-1);
    color: white;
    border: none;
}

/* =====================================================
   Profile Page Styles
   ===================================================== */
.profile-page {
    padding: 1.5rem;
}

.profile-header {
    text-align: center;
    padding: 2rem;
    background: var(--maya-gradient-3);
    border-radius: 1.5rem;
    margin-bottom: 1.5rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--maya-gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 0 30px var(--maya-primary);
}

.profile-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--maya-text-primary);
    margin-bottom: 0.25rem;
}

.profile-detail-card {
    background: var(--maya-bg-card);
    border: 1px solid var(--maya-border-light);
    border-radius: 1rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.profile-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--maya-border-light);
}

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

.profile-detail-label {
    color: var(--maya-text-secondary);
    font-size: 0.9rem;
}

.profile-detail-value {
    color: var(--maya-text-primary);
    font-weight: 500;
}

/* =====================================================
   Card Utilities
   ===================================================== */
.maya-card {
    background: var(--maya-bg-card);
    border: 1px solid var(--maya-border-light);
    border-radius: 1rem;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.maya-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--maya-border-light);
}

.maya-card-header i {
    font-size: 1.25rem;
    color: var(--maya-primary);
}

.maya-card-header h5 {
    margin: 0;
    font-family: var(--font-display);
    color: var(--maya-text-primary);
}

/* Gradient Background Cards */
.bg-gradient-primary {
    background: var(--maya-gradient-1) !important;
}

.bg-gradient-secondary {
    background: var(--maya-gradient-2) !important;
}

/* =====================================================
   Mobile Responsiveness for Pages
   ===================================================== */
@media (max-width: 576px) {
    .page-wrapper {
        padding: 1rem;
    }
    
    .horoscope-page {
        padding: 1rem;
    }
    
    .zodiac-symbol {
        font-size: 3rem;
    }
    
    .zodiac-header {
        padding: 1.5rem;
    }
    
    .aspect-card {
        padding: 1rem 0.75rem;
    }
    
    .aspect-icon {
        font-size: 1.5rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.1rem;
    }
    
    .action-card {
        padding: 1rem 0.25rem;
    }
    
    .action-card i {
        font-size: 1.25rem;
    }
    
    .action-card span {
        font-size: 0.7rem;
    }
    
    .chat-page {
        height: calc(100vh - 160px);
    }
}

/* =====================================================
   MAYA DESIGN SYSTEM - V2 PAGE STYLES
   ===================================================== */

/* Base Page Styles */
.maya-page {
    padding: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    animation: mayaPageEnter 0.4s ease-out;
}

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

.maya-page--loading {
    min-height: 400px;
}

.maya-page__header {
    margin-bottom: 1.5rem;
    text-align: left;
}

.maya-page__header--center {
    text-align: center;
}

.maya-page__title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--maya-text-primary);
    margin: 0 0 0.5rem;
    text-align: left;
}

.maya-page__subtitle {
    font-size: 0.9rem;
    color: var(--maya-text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: left;
    justify-content: flex-start;
}

.maya-page__header--center .maya-page__subtitle {
    justify-content: center;
}

/* Section Styles */
.maya-section {
    margin-bottom: 1.5rem;
}

.maya-section__title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--maya-text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.maya-section__title i {
    color: var(--maya-primary);
}

.maya-section__title--success i {
    color: #22c55e;
}

.maya-section__title--danger i {
    color: #ef4444;
}

/* =====================================================
   Home Page - V2
   ===================================================== */
.maya-home__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

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

.maya-home__name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--maya-text-primary);
    margin: 0;
}

.maya-home__date {
    font-size: 0.8rem;
    color: var(--maya-text-muted);
    background: var(--maya-bg-card);
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    border: 1px solid var(--maya-border-light);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Stats Row */
.maya-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.maya-stat-card {
    background: var(--maya-bg-card);
    border: 1px solid var(--maya-border-light);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    overflow: hidden;
    min-width: 0;
}

.maya-stat-card:hover {
    border-color: var(--maya-primary);
    transform: translateY(-2px);
}

.maya-stat-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.maya-stat-card__zodiac-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.maya-stat-card--zodiac .maya-stat-card__icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
}

.maya-stat-card--numerology .maya-stat-card__icon {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(244, 114, 182, 0.2));
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--maya-primary);
}

.maya-stat-card__content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.maya-stat-card__label {
    font-size: 0.7rem;
    color: var(--maya-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.maya-stat-card__value {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--maya-text-primary);
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Insight Card */
.maya-insight-card {
    background: var(--maya-bg-card);
    border: 1px solid var(--maya-border-light);
    border-radius: 20px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.maya-insight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--maya-gradient-1);
}

.maya-insight-card__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--maya-text-primary);
    margin-bottom: 0.75rem;
}

.maya-insight-card__icon {
    color: #f59e0b;
}

.maya-insight-card__text {
    color: var(--maya-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.maya-insight-card__footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--maya-border-light);
}

/* Action Grid */
.maya-action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.maya-action-tile {
    background: var(--maya-bg-card);
    border: 1px solid var(--maya-border-light);
    border-radius: 14px;
    padding: 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.maya-action-tile:hover {
    transform: translateY(-3px);
    border-color: var(--maya-primary);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
    text-decoration: none;
}

.maya-action-tile--highlight {
    background: var(--maya-gradient-3);
    border-color: rgba(99, 102, 241, 0.3);
}

.maya-action-tile__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.maya-action-tile__icon i {
    font-size: 1.25rem;
    color: var(--maya-primary);
}

.maya-action-tile__label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--maya-text-primary);
}

/* CTA Card */
.maya-cta-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.maya-cta-card__bg {
    position: absolute;
    inset: 0;
    background: var(--maya-gradient-1);
}

.maya-cta-card__content {
    position: relative;
    padding: 1.5rem;
    color: white;
}

.maya-cta-card__icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.maya-cta-card__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color : brown !important;
}

.maya-cta-card__text {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

/* Lucky Cards - New Design */
.maya-lucky-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.maya-lucky-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--maya-bg-card);
    border: 1px solid var(--maya-border-light);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.maya-lucky-card:hover {
    border-color: var(--maya-primary);
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
}

.maya-lucky-card:active {
    transform: scale(0.98);
}

.maya-lucky-card__icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--maya-bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.maya-lucky-card__icon-wrap i {
    font-size: 1.5rem;
    color: var(--maya-primary);
}

.maya-lucky-card__color {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.maya-lucky-card__number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--maya-primary);
}

.maya-lucky-card__gem {
    font-size: 1.5rem;
}

.maya-lucky-card__gem-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.maya-lucky-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.maya-lucky-card__value {
    font-weight: 600;
    color: var(--maya-text-primary);
    font-size: 1rem;
}

.maya-lucky-card__label {
    font-size: 0.75rem;
    color: var(--maya-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.maya-lucky-card__arrow {
    color: var(--maya-text-muted);
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.maya-lucky-card:hover .maya-lucky-card__arrow {
    transform: translateX(4px);
    color: var(--maya-primary);
}

/* Lucky Element Popup/Modal */
.maya-lucky-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.maya-lucky-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.maya-lucky-modal.show {
    opacity: 1;
    visibility: visible;
}

.maya-lucky-modal__content {
    background: var(--maya-bg-secondary);
    border: 1px solid var(--maya-border-light);
    border-radius: 24px;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.maya-lucky-modal.show .maya-lucky-modal__content {
    transform: translateY(0);
}

.maya-lucky-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.maya-lucky-modal__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--maya-text-primary);
}

.maya-lucky-modal__close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--maya-bg-tertiary);
    border: none;
    color: var(--maya-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    position: relative;
}

.maya-lucky-modal__close i {
    pointer-events: none;
}

.maya-lucky-modal__close:hover {
    background: var(--maya-primary);
    color: white;
}

.maya-lucky-modal__icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--maya-bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 1.5rem 0;
}

.maya-lucky-modal__icon--color {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.maya-lucky-modal__icon--number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--maya-primary);
}

.maya-lucky-modal__icon--gem {
    font-size: 3rem;
}

.maya-lucky-modal__gem-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.maya-lucky-modal__icon i {
    font-size: 2.5rem;
    color: var(--maya-primary);
}

.maya-lucky-modal__body {
    text-align: left;
}

.maya-lucky-modal__value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--maya-text-primary);
    margin-bottom: 0.5rem;
}

.maya-lucky-modal__description {
    color: var(--maya-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.maya-lucky-modal__tips {
    background: var(--maya-bg-tertiary);
    border-radius: 12px;
    padding: 1rem;
    text-align: left;
}

.maya-lucky-modal__tips-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--maya-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.maya-lucky-modal__tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.maya-lucky-modal__tips-list li {
    color: var(--maya-text-secondary);
    font-size: 0.85rem;
    padding: 0.35rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.maya-lucky-modal__tips-list li::before {
    content: '✦';
    color: var(--maya-primary);
}

/* Legacy Lucky Grid (keep for backward compatibility) */
.maya-lucky-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    background: var(--maya-bg-card);
    border: 1px solid var(--maya-border-light);
    border-radius: 16px;
    padding: 1rem;
}

.maya-lucky-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.maya-lucky-item__icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.maya-lucky-item__value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--maya-primary);
}

.maya-lucky-item__value--text {
    font-size: 0.9rem;
}

.maya-lucky-item__label {
    font-size: 0.65rem;
    color: var(--maya-text-muted);
}

/* =====================================================
   Horoscope Page - V2
   ===================================================== */
.maya-zodiac-card {
    position: relative;
    background: var(--maya-gradient-3);
    border: 1px solid var(--maya-border-light);
    border-radius: 24px;
    padding: 2rem 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.maya-zodiac-card__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    background: var(--maya-primary);
    filter: blur(60px);
    opacity: 0.3;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.maya-zodiac-card__system-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid var(--maya-primary);
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--maya-primary-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.maya-zodiac-card__symbol {
    font-size: 4rem;
    position: relative;
    animation: zodiacFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px var(--maya-primary));
    display: flex;
    align-items: center;
    justify-content: center;
}

.maya-zodiac-card__image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 0 15px rgba(199, 154, 58, 0.5));
}

.maya-zodiac-card__emoji {
    font-size: 4rem;
}

@keyframes zodiacFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.maya-zodiac-card__name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--maya-text-primary);
    margin: 1rem 0 0.25rem;
    position: relative;
}

.maya-zodiac-card__hindi {
    font-size: 0.9rem;
    color: var(--maya-primary);
    display: block;
    margin-bottom: 0.25rem;
}

.maya-zodiac-card__dates {
    font-size: 0.8rem;
    color: var(--maya-text-muted);
}

/* Horoscope Text */
.maya-horoscope-text {
    background: var(--maya-bg-card);
    border: 1px solid var(--maya-border-light);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.maya-horoscope-text__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.maya-horoscope-text__quote {
    font-family: Georgia, serif;
    font-size: 3rem;
    color: var(--maya-primary);
    opacity: 0.3;
    line-height: 1;
}

.maya-speak-btn {
    background: var(--maya-bg-tertiary);
    border: 1px solid var(--maya-border-light);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--maya-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.maya-speak-btn:hover {
    background: var(--maya-primary);
    color: white;
    transform: scale(1.05);
}

.maya-speak-btn.speaking {
    background: var(--maya-primary);
    color: white;
    animation: pulse-speak 1.5s infinite;
}

@keyframes pulse-speak {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--maya-primary-rgb), 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(var(--maya-primary-rgb), 0); }
}

/* Zodiac System Toggle */
.maya-toggle-group {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.maya-toggle-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: var(--maya-bg-card);
    border: 2px solid var(--maya-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.maya-toggle-btn:hover {
    border-color: var(--maya-primary-light);
    background: rgba(99, 102, 241, 0.1);
}

.maya-toggle-btn.active {
    border-color: var(--maya-primary);
    background: rgba(99, 102, 241, 0.15);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.maya-toggle-btn__icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.maya-toggle-btn__label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--maya-text-primary);
}

.maya-toggle-btn__desc {
    font-size: 0.75rem;
    color: var(--maya-text-muted);
    margin-top: 0.25rem;
}

.maya-toggle-btn.active .maya-toggle-btn__label {
    color: var(--maya-primary-light);
}

.maya-section__desc {
    font-size: 0.85rem;
    color: var(--maya-text-muted);
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
}

.maya-horoscope-text p {
    color: var(--maya-text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
    text-align: left;
}

/* Horoscope Subtitle (shown during speech) */
.maya-horoscope-subtitle {
    display: none;
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--maya-text-primary);
    text-align: center;
    padding: 1rem 0;
    min-height: 80px;
    animation: subtitleFade 0.3s ease-in-out;
}

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

/* Do's and Don'ts Section */
.maya-dos-donts-section {
    margin: 1.5rem 0;
}

.maya-dos-donts-section .maya-section__title {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--maya-text-primary);
}

.maya-dos-donts-section .maya-section__title i {
    color: var(--maya-primary);
}

.maya-dos-donts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .maya-dos-donts-grid {
        grid-template-columns: 1fr;
    }
}

.maya-dos-card,
.maya-donts-card {
    background: var(--maya-bg-card);
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid var(--maya-border-light);
    transition: all 0.3s ease;
}

.maya-dos-card:hover,
.maya-donts-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--maya-shadow);
}

.maya-dos-card {
    border-left: 3px solid var(--maya-success);
}

.maya-donts-card {
    border-left: 3px solid var(--maya-danger);
}

.maya-dos-card__header,
.maya-donts-card__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.maya-dos-card__header {
    color: var(--maya-success);
}

.maya-donts-card__header {
    color: var(--maya-danger);
}

.maya-dos-card__header i,
.maya-donts-card__header i {
    font-size: 1.1rem;
}

.maya-dos-card__list,
.maya-donts-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.maya-dos-card__list li,
.maya-donts-card__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    color: var(--maya-text-secondary);
    line-height: 1.4;
    border-bottom: 1px solid var(--maya-border-light);
}

.maya-dos-card__list li:last-child,
.maya-donts-card__list li:last-child {
    border-bottom: none;
}

.maya-dos-card__list li i {
    color: var(--maya-success);
    font-size: 0.8rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.maya-donts-card__list li i {
    color: var(--maya-danger);
    font-size: 0.9rem;
    margin-top: 1px;
    flex-shrink: 0;
}

/* Ratings Grid */
.maya-ratings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.maya-section__hint {
    font-size: 0.7rem;
    color: var(--maya-text-muted);
    font-weight: 400;
    margin-left: 0.5rem;
}

.maya-rating-item {
    background: var(--maya-bg-card);
    border: 1px solid var(--maya-border-light);
    border-radius: 14px;
    padding: 1rem 0.75rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.3s ease;
    position: relative;
}

.maya-rating-item--clickable {
    cursor: pointer;
}

.maya-rating-item--clickable:hover {
    border-color: var(--maya-primary);
    transform: translateY(-2px);
    box-shadow: var(--maya-shadow-glow);
}

.maya-rating-item--clickable:active {
    transform: translateY(0);
}

.maya-rating-item__arrow {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: var(--maya-text-muted);
    opacity: 0;
    transition: all 0.3s ease;
}

.maya-rating-item--clickable:hover .maya-rating-item__arrow {
    opacity: 1;
    right: 6px;
}

.maya-rating-item__emoji {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.25rem;
}

.maya-rating-item__label {
    font-size: 0.75rem;
    color: var(--maya-text-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.maya-rating-item__stars {
    display: flex;
    justify-content: flex-start;
    gap: 2px;
}

.maya-rating-item__stars i {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.2);
}

.maya-rating-item__stars i.active {
    color: #f59e0b;
}

/* Aspect Modal Styles */
.maya-aspect-modal {
    max-width: 420px;
    width: 90%;
}

.maya-aspect-modal__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.maya-aspect-modal__icon--warning {
    background: rgba(239, 68, 68, 0.15);
    color: var(--maya-danger);
}

.maya-aspect-modal__icon--good {
    background: rgba(34, 197, 94, 0.15);
    color: var(--maya-success);
}

.maya-aspect-modal__rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.maya-aspect-modal__rating i {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.2);
}

.maya-aspect-modal__rating i.active {
    color: #f59e0b;
}

.maya-aspect-modal__rating-label {
    font-size: 0.85rem;
    color: var(--maya-text-muted);
    margin-left: 0.25rem;
}

.maya-aspect-modal__body {
    min-height: 150px;
}

.maya-aspect-modal__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 1rem;
}

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

.maya-aspect-modal__status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.maya-aspect-modal__status--warning {
    background: rgba(239, 68, 68, 0.15);
    color: var(--maya-danger);
}

.maya-aspect-modal__status--positive {
    background: rgba(34, 197, 94, 0.15);
    color: var(--maya-success);
}

.maya-aspect-modal__status--neutral {
    background: rgba(245, 158, 11, 0.15);
    color: var(--maya-warning);
}

.maya-aspect-modal__content {
    color: var(--maya-text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.maya-aspect-modal__content p {
    margin-bottom: 1rem;
}

.maya-aspect-modal__advice,
.maya-aspect-modal__timing {
    background: var(--maya-bg-tertiary);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

.maya-aspect-modal__advice strong,
.maya-aspect-modal__timing strong {
    color: var(--maya-text-primary);
}

.maya-aspect-modal__error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 1rem;
    color: var(--maya-text-muted);
}

.maya-aspect-modal__error i {
    font-size: 2rem;
    color: var(--maya-danger);
}

/* CTA Inline */
.maya-cta-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--maya-bg-card);
    border: 1px solid var(--maya-border-light);
    border-radius: 14px;
    margin-top: 1.5rem;
}

.maya-cta-inline span {
    font-size: 0.9rem;
    color: var(--maya-text-secondary);
}

/* =====================================================
   Chat Page - V2
   ===================================================== */
.maya-chat {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 140px);
    max-width: 100%;
}

.maya-chat__container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.maya-chat__messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.maya-chat__welcome {
    text-align: center;
    padding: 2rem 1rem;
}

.maya-chat__welcome-avatar {
    margin-bottom: 1rem;
}

.maya-chat__welcome h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--maya-text-primary);
    margin: 0 0 0.5rem;
}

.maya-chat__welcome p {
    font-size: 0.9rem;
    color: var(--maya-text-secondary);
    max-width: 280px;
    margin: 0 auto 1.5rem;
    line-height: 1.5;
}

.maya-chat__suggestions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

/* Chat Messages */
.maya-chat__message {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    animation: chatMessageIn 0.3s ease-out;
}

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

.maya-chat__message--user {
    flex-direction: row-reverse;
}

.maya-chat__avatar {
    flex-shrink: 0;
}

.maya-chat__bubble {
    max-width: 80%;
    background: var(--maya-bg-card);
    border: 1px solid var(--maya-border-light);
    border-radius: 18px;
    padding: 0.875rem 1rem;
}

.maya-chat__bubble p {
    margin: 0;
    color: var(--maya-text-primary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.maya-chat__message--user .maya-chat__bubble {
    background: var(--maya-gradient-1);
    border: none;
}

.maya-chat__message--user .maya-chat__bubble p {
    color: white;
}

.maya-chat__bubble--error {
    border-color: rgba(239, 68, 68, 0.3);
}

/* Typing Indicator */
.maya-chat__bubble--typing {
    padding: 1rem;
}

.maya-typing-dots {
    display: flex;
    gap: 4px;
}

.maya-typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--maya-text-muted);
    border-radius: 50%;
    animation: typingBounce 1.4s ease-in-out infinite;
}

.maya-typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.maya-typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

/* Chat Input */
.maya-chat__input-area {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--maya-bg-secondary);
    border-top: 1px solid var(--maya-border-light);
}

.maya-chat__input-wrapper {
    flex: 1;
    display: flex;
    background: var(--maya-bg-card);
    border: 1px solid var(--maya-border-light);
    border-radius: 24px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.maya-chat__input-wrapper:focus-within {
    border-color: var(--maya-primary);
}

.maya-chat__input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.875rem 1rem;
    color: var(--maya-text-primary);
    font-size: 0.95rem;
}

.maya-chat__input:focus {
    outline: none;
}

.maya-chat__input::placeholder {
    color: var(--maya-text-muted);
}

.maya-chat__send {
    background: var(--maya-gradient-1);
    border: none;
    padding: 0 1rem;
    color: white;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.maya-chat__send:hover {
    opacity: 0.9;
}

.maya-chat__voice {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--maya-bg-card);
    border: 1px solid var(--maya-border-light);
    color: var(--maya-text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.maya-chat__voice:hover {
    border-color: var(--maya-primary);
    color: var(--maya-primary);
}

.maya-chat__voice--recording {
    background: var(--maya-primary);
    border-color: var(--maya-primary);
    color: white;
    animation: voicePulse 1s ease-in-out infinite;
}

@keyframes voicePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* =====================================================
   Chat History Page
   ===================================================== */
.maya-chat-history__container {
    padding: 0;
}

.maya-chat-history__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.maya-chat-history__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--maya-bg-card);
    border: 1px solid var(--maya-border-light);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.maya-chat-history__item:hover {
    border-color: var(--maya-primary);
    transform: translateX(4px);
}

.maya-chat-history__item-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--maya-gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.maya-chat-history__item-icon i {
    font-size: 1.25rem;
    color: white;
}

.maya-chat-history__item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.maya-chat-history__item-question {
    font-weight: 600;
    color: var(--maya-text-primary);
    font-size: 0.95rem;
    line-height: 1.4;
}

.maya-chat-history__item-answer {
    color: var(--maya-text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.maya-chat-history__item.expanded .maya-chat-history__item-answer {
    -webkit-line-clamp: unset;
    display: block;
}

.maya-chat-history__item-date {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--maya-text-muted);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.maya-chat-history__item-date i {
    font-size: 0.7rem;
}

.maya-chat-history__item-delete {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--maya-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    opacity: 0;
}

.maya-chat-history__item:hover .maya-chat-history__item-delete {
    opacity: 1;
}

.maya-chat-history__item-delete:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.maya-chat-history__actions {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--maya-border-light);
}

/* =====================================================
   Compatibility Page - V2
   ===================================================== */
.maya-compat-form {
    background: var(--maya-bg-card);
    border: 1px solid var(--maya-border-light);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.maya-compat-person-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--maya-border-light);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.maya-compat-person-card--partner {
    border-color: rgba(236, 72, 153, 0.3);
}

.maya-compat-person-card__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.maya-compat-person-card__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.maya-compat-field {
    text-align: left;
}

.maya-compat-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--maya-text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.maya-compat-field .maya-input {
    width: 100%;
}

.maya-compat-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.5rem 0;
    color: var(--maya-accent);
    font-size: 1.25rem;
    animation: heartPulse 1s ease-in-out infinite;
}

.maya-compat-form__row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.maya-compat-form__person {
    flex: 1;
    text-align: left;
}

.maya-compat-form__avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--maya-gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
}

.maya-compat-form__avatar--partner {
    background: linear-gradient(135deg, #ec4899, #f472b6);
}

.maya-compat-form__label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--maya-text-primary);
}

@media (max-width: 480px) {
    .maya-compat-person-card__fields {
        grid-template-columns: 1fr;
    }
}

.maya-compat-form__heart {
    font-size: 1.5rem;
    color: #ec4899;
    animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Compatibility Result */
.maya-compat-result {
    background: var(--maya-bg-card);
    border: 1px solid var(--maya-border-light);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    animation: resultReveal 0.5s ease-out;
}

@keyframes resultReveal {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Zodiac Signs Display */
.maya-compat-result__signs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    max-width: 100%;
}

.maya-compat-result__sign {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
    max-width: 120px;
}

.maya-compat-result__sign-emoji {
    font-size: 2.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.maya-compat-result__sign-image {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 0 10px rgba(199, 154, 58, 0.4));
}

.maya-compat-result__sign-fallback {
    font-size: 2.5rem;
}

.maya-compat-result__sign-name {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--maya-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.maya-compat-result__sign-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--maya-text-secondary);
    font-weight: 500;
}

.maya-compat-result__sign-info i {
    font-size: 0.85rem;
    opacity: 0.8;
}

.maya-compat-result__heart {
    font-size: 1.25rem;
    color: var(--maya-accent);
    animation: heartPulse 1s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.maya-compat-result__score-ring {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.maya-compat-result__score-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.maya-compat-result__score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--score-color);
}

.maya-compat-result__level {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--maya-text-primary);
    margin: 0 0 0.5rem;
}

.maya-compat-result__desc {
    color: var(--maya-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.maya-compat-result__aspects {
    text-align: left;
}

.maya-compat-aspect {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.maya-compat-aspect__name {
    width: 100px;
    min-width: 100px;
    flex-shrink: 0;
    font-size: 0.8rem;
    color: var(--maya-text-secondary);
    text-transform: capitalize;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.maya-compat-aspect__bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.maya-compat-aspect__fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease-out;
}

.maya-compat-aspect__value {
    width: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--maya-text-primary);
    text-align: right;
}

/* =====================================================
   Panchang Page - V2
   ===================================================== */
.maya-panchang__main {
    background: var(--maya-gradient-3);
    border: 1px solid var(--maya-border-light);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.maya-panchang__highlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.maya-panchang__tithi-label {
    font-size: 0.75rem;
    color: var(--maya-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.maya-panchang__tithi-value {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--maya-text-primary);
    display: block;
}

.maya-panchang__paksha {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
}

.maya-panchang__paksha--shukla {
    color: #fbbf24;
}

.maya-panchang__paksha--krishna {
    color: #a78bfa;
}

/* Panchang Grid */
.maya-panchang__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.maya-panchang__item {
    background: var(--maya-bg-card);
    border: 1px solid var(--maya-border-light);
    border-radius: 14px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.maya-panchang__item-icon {
    font-size: 1.25rem;
}

.maya-panchang__item-content {
    display: flex;
    flex-direction: column;
}

.maya-panchang__item-label {
    font-size: 0.7rem;
    color: var(--maya-text-muted);
    text-transform: uppercase;
}

.maya-panchang__item-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--maya-text-primary);
}

/* Time Slots */
.maya-time-slots {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.maya-time-slot {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--maya-bg-card);
    border: 1px solid var(--maya-border-light);
    border-radius: 12px;
}

.maya-time-slot--good {
    border-color: rgba(34, 197, 94, 0.3);
}

.maya-time-slot--good i {
    color: #22c55e;
}

.maya-time-slot--bad {
    flex-direction: column;
    align-items: flex-start;
    border-color: rgba(239, 68, 68, 0.2);
}

.maya-time-slot__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--maya-text-secondary);
    font-size: 0.85rem;
}

.maya-time-slot__header i {
    color: #ef4444;
}

.maya-time-slot__time {
    font-weight: 600;
    color: var(--maya-text-primary);
    padding-left: 1.25rem;
}

/* =====================================================
   Remedies Page - V2
   ===================================================== */
.maya-remedy-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.maya-remedy-card {
    background: var(--maya-bg-card);
    border: 1px solid var(--maya-border-light);
    border-radius: 20px;
    overflow: hidden;
}

.maya-remedy-card__icon {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.maya-remedy-card--gem .maya-remedy-card__icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
    color: #a78bfa;
}

.maya-remedy-card--mantra .maya-remedy-card__icon {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.2));
    color: #22c55e;
}

.maya-remedy-card--daily .maya-remedy-card__icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(251, 191, 36, 0.2));
    color: #f59e0b;
}

.maya-remedy-card__content {
    padding: 1.25rem;
}

.maya-remedy-card__content h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--maya-text-primary);
    margin: 0 0 0.75rem;
}

.maya-remedy-card__content p {
    font-size: 0.9rem;
    color: var(--maya-text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.maya-remedy-card__highlight {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    background: var(--maya-gradient-3);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.maya-remedy-card__gem-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--maya-primary);
}

.maya-remedy-card__gem-planet {
    font-size: 0.8rem;
    color: var(--maya-text-muted);
}

.maya-remedy-card__mantra-box {
    padding: 1rem;
    background: var(--maya-gradient-3);
    border-radius: 12px;
    margin-bottom: 1rem;
    text-align: center;
}

.maya-remedy-card__mantra {
    font-family: Georgia, serif;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--maya-primary);
}

.maya-remedy-card__tips {
    list-style: none;
    padding: 0;
    margin: 0;
}

.maya-remedy-card__tips li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.85rem;
    color: var(--maya-text-secondary);
    border-bottom: 1px solid var(--maya-border-light);
}

.maya-remedy-card__tips li:last-child {
    border-bottom: none;
}

.maya-remedy-card__tips li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22c55e;
}

/* Remedy Checklist */
.maya-remedy-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.maya-remedy-checklist__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--maya-gradient-3);
    border-radius: 10px;
}

.maya-remedy-checklist__item i {
    color: var(--maya-primary);
}

.maya-remedy-checklist__item span {
    font-size: 0.9rem;
    color: var(--maya-text-primary);
}

/* =====================================================
   Muhurat Page - V2
   ===================================================== */
.maya-muhurat__selector {
    margin-bottom: 1.5rem;
}

.maya-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--maya-text-primary);
    margin-bottom: 0.75rem;
}

.maya-activity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.maya-activity-btn {
    background: var(--maya-bg-card);
    border: 1px solid var(--maya-border-light);
    border-radius: 12px;
    padding: 0.875rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.maya-activity-btn--active {
    background: var(--maya-gradient-3);
    border-color: var(--maya-primary);
}

.maya-activity-btn__icon {
    font-size: 1.25rem;
}

.maya-activity-btn__name {
    font-size: 0.7rem;
    color: var(--maya-text-secondary);
}

/* Muhurat Results */
.maya-muhurat__results {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.maya-muhurat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--maya-bg-card);
    border: 1px solid var(--maya-border-light);
    border-radius: 14px;
}

.maya-muhurat-item__date,
.maya-muhurat-item__time {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--maya-text-secondary);
}

.maya-muhurat-item__date i,
.maya-muhurat-item__time i {
    color: var(--maya-primary);
}

.maya-muhurat-item__quality {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.maya-muhurat-item__quality--highly-auspicious {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.maya-muhurat-item__quality--auspicious {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.maya-muhurat-item__quality--good {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

/* =====================================================
   Profile Page - V2
   ===================================================== */
.maya-profile__card {
    background: var(--maya-bg-card);
    border: 1px solid var(--maya-border-light);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.maya-profile__photo-section {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-align: left;
    margin-bottom: 1rem;
}

.maya-profile__avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.maya-profile__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--maya-gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
    position: relative;
    overflow: hidden;
}

.maya-profile__avatar.has-photo {
    background: transparent;
}

.maya-profile__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.maya-profile__photo-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    background: var(--maya-primary);
    border: 2px solid var(--maya-bg-card);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
}

.maya-profile__photo-btn:hover {
    transform: scale(1.1);
    background: var(--maya-secondary);
}

.maya-profile__zodiac-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 28px;
    height: 28px;
    background: var(--maya-bg-card);
    border: 2px solid var(--maya-border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.maya-profile__info {
    flex: 1;
    min-width: 0;
}

.maya-profile__name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--maya-text-primary);
    margin: 0 0 0.25rem;
}

.maya-profile__sign {
    font-size: 0.9rem;
    color: var(--maya-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.maya-profile__sign-image {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 50%;
    vertical-align: middle;
}

.maya-profile__sign-symbol {
    font-size: 1.1rem;
}

.maya-profile__email {
    font-size: 0.8rem;
    color: var(--maya-text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.maya-profile__email i {
    font-size: 0.7rem;
}

/* Form Groups */
.maya-form-group {
    margin-bottom: 1rem;
}

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

.maya-input {
    width: 100%;
    background: var(--maya-bg-card);
    border: 1px solid var(--maya-border-light);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    color: var(--maya-text-primary);
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

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

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

/* Radio Group */
.maya-radio-group {
    display: flex;
    gap: 1rem;
}

.maya-radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.maya-radio input {
    display: none;
}

.maya-radio__mark {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--maya-border);
    position: relative;
    transition: all 0.3s ease;
}

.maya-radio input:checked + .maya-radio__mark {
    border-color: var(--maya-primary);
}

.maya-radio input:checked + .maya-radio__mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--maya-primary);
    border-radius: 50%;
}

.maya-radio__label {
    font-size: 0.9rem;
    color: var(--maya-text-secondary);
}

/* =====================================================
   Settings Page - V2
   ===================================================== */
.maya-settings__groups {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.maya-settings__group {
    background: var(--maya-bg-card);
    border: 1px solid var(--maya-border-light);
    border-radius: 20px;
    overflow: hidden;
}

.maya-settings__group-title {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--maya-text-primary);
    padding: 1rem 1.25rem;
    background: var(--maya-gradient-3);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.maya-settings__group-title i {
    color: var(--maya-primary);
}

.maya-settings__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--maya-border-light);
}

.maya-settings__item:last-child {
    border-bottom: none;
}

.maya-settings__item-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.maya-settings__item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--maya-primary);
}

.maya-settings__item-text {
    display: flex;
    flex-direction: column;
}

.maya-settings__item-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--maya-text-primary);
}

.maya-settings__item-desc {
    font-size: 0.8rem;
    color: var(--maya-text-muted);
}

/* Custom Styled Dropdown */
.maya-select-wrapper {
    position: relative;
    display: inline-block;
}

.maya-select {
    background: var(--maya-bg-secondary);
    border: 1px solid var(--maya-border-light);
    border-radius: 8px;
    padding: 0.5rem 2.25rem 0.5rem 0.875rem;
    color: var(--maya-text-primary);
    font-size: 0.85rem;
    cursor: pointer;
    min-width: 110px;
    text-align: left;
    position: relative;
    transition: all 0.2s ease;
}

.maya-select::after {
    content: '';
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--maya-text-muted);
    transition: transform 0.2s ease;
}

.maya-select:hover {
    border-color: var(--maya-primary);
}

.maya-select.open {
    border-color: var(--maya-primary);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.maya-select.open::after {
    transform: translateY(-50%) rotate(180deg);
}

.maya-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--maya-bg-secondary);
    border: 1px solid var(--maya-primary);
    border-top: none;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.maya-select.open + .maya-select-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.maya-select-option {
    padding: 0.5rem 0.875rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--maya-text-primary);
    transition: background 0.15s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.maya-select-option:hover {
    background: var(--maya-bg-tertiary);
}

.maya-select-option.selected {
    background: rgba(199, 154, 58, 0.15);
    color: var(--maya-primary-light);
}

.maya-select-option.selected::before {
    content: '✓';
    color: var(--maya-primary);
    font-size: 0.75rem;
    font-weight: bold;
}

.maya-select:focus {
    outline: none;
    border-color: var(--maya-primary);
}

/* Native Select Element Styling */
select.maya-select,
select.maya-input {
    background: var(--maya-bg-secondary);
    border: 1px solid var(--maya-border-light);
    border-radius: 8px;
    padding: 0.625rem 2rem 0.625rem 0.875rem;
    color: var(--maya-text-primary);
    font-size: 0.85rem;
    cursor: pointer;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    transition: all 0.2s ease;
}

select.maya-select:hover,
select.maya-input:hover {
    border-color: var(--maya-primary);
}

select.maya-select:focus,
select.maya-input:focus {
    outline: none;
    border-color: var(--maya-primary);
    box-shadow: 0 0 0 3px rgba(199, 154, 58, 0.15);
}

select.maya-select option,
select.maya-input option {
    background: var(--maya-bg-secondary);
    color: var(--maya-text-primary);
    padding: 0.5rem;
}

/* Toggle Switch */
.maya-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

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

.maya-toggle__slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--maya-bg-secondary);
    border: 1px solid var(--maya-border-light);
    border-radius: 28px;
    transition: all 0.3s ease;
}

.maya-toggle__slider::before {
    position: absolute;
    content: '';
    height: 22px;
    width: 22px;
    left: 2px;
    bottom: 2px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.maya-toggle input:checked + .maya-toggle__slider {
    background: var(--maya-primary);
    border-color: var(--maya-primary);
}

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

/* Settings About */
.maya-settings__about {
    padding: 0.5rem 1.25rem;
}

.maya-settings__about-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--maya-border-light);
}

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

.maya-settings__about-item span:first-child {
    color: var(--maya-text-muted);
}

.maya-settings__about-item span:last-child {
    color: var(--maya-text-primary);
}

/* Settings Actions */
.maya-settings__actions {
    margin-top: 1.5rem;
}

/* =====================================================
   Buttons - V2
   ===================================================== */
.maya-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.maya-btn--primary {
    background: var(--maya-gradient-1);
    color: white;
}

.maya-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.maya-btn--outline {
    background: transparent;
    border: 1px solid var(--maya-border-light);
    color: var(--maya-text-primary);
}

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

.maya-btn--ghost {
    background: transparent;
    color: var(--maya-primary);
    padding: 0.5rem;
}

.maya-btn--ghost:hover {
    background: rgba(99, 102, 241, 0.1);
}

.maya-btn--light {
    background: white;
    color: var(--maya-primary);
}

.maya-btn--danger-outline {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.maya-btn--danger-outline:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

.maya-btn--block {
    width: 100%;
}

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

/* =====================================================
   Chips
   ===================================================== */
.maya-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: var(--maya-bg-card);
    border: 1px solid var(--maya-border-light);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--maya-text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.maya-chip:hover {
    border-color: var(--maya-primary);
    color: var(--maya-primary);
}

.maya-chip i {
    font-size: 0.9rem;
}

/* =====================================================
   Avatar
   ===================================================== */
.maya-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--maya-gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    color: white;
}

.maya-avatar--sm {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
}

.maya-avatar--lg {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
}

.maya-avatar--glow {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
}

/* =====================================================
   Info Card
   ===================================================== */
.maya-info-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--maya-bg-card);
    border: 1px solid var(--maya-border-light);
    border-radius: 16px;
    margin-top: 1.5rem;
}

.maya-info-card--tip {
    border-color: rgba(99, 102, 241, 0.2);
}

.maya-info-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--maya-primary);
}

.maya-info-card__content h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--maya-text-primary);
    margin: 0 0 0.5rem;
}

.maya-info-card__content p {
    font-size: 0.85rem;
    color: var(--maya-text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* =====================================================
   Empty State
   ===================================================== */
.maya-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.maya-empty-state__icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--maya-gradient-3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--maya-text-muted);
}

.maya-empty-state h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--maya-text-primary);
    margin: 0 0 0.5rem;
}

.maya-empty-state p {
    font-size: 0.9rem;
    color: var(--maya-text-secondary);
    margin-bottom: 1.5rem;
}

/* =====================================================
   Error State
   ===================================================== */
.maya-page--error {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.maya-error-state {
    text-align: center;
    padding: 2rem;
}

.maya-error-state__icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: #f59e0b;
}

.maya-error-state__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--maya-text-primary);
    margin: 0 0 0.5rem;
}

.maya-error-state__text {
    font-size: 0.9rem;
    color: var(--maya-text-secondary);
    margin-bottom: 1.5rem;
}

.maya-error-state h5 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--maya-text-primary);
    margin: 0 0 0.5rem;
}

.maya-error-state p {
    font-size: 0.9rem;
    color: var(--maya-text-secondary);
    margin-bottom: 1.5rem;
}

.maya-error-state .maya-btn {
    margin-top: 1rem;
}

/* =====================================================
   Mobile Responsiveness - V2
   ===================================================== */
@media (max-width: 576px) {
    .maya-page {
        padding: 1rem;
    }
    
    .maya-stats-row {
        gap: 0.5rem;
    }
    
    .maya-stat-card {
        padding: 0.75rem;
    }
    
    .maya-stat-card__icon {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }
    
    .maya-action-grid {
        gap: 0.5rem;
    }
    
    .maya-action-tile {
        padding: 0.75rem 0.25rem;
    }
    
    .maya-action-tile__icon {
        width: 36px;
        height: 36px;
    }
    
    .maya-action-tile__label {
        font-size: 0.65rem;
    }
    
    .maya-lucky-grid {
        gap: 0.25rem;
        padding: 0.75rem;
    }
    
    .maya-ratings-grid {
        gap: 0.5rem;
    }
    
    .maya-rating-item {
        padding: 0.75rem 0.5rem;
    }
    
    .maya-rating-item__emoji {
        font-size: 1.25rem;
    }
    
    .maya-chat {
        height: calc(100vh - 120px);
    }
    
    .maya-compat-form__row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .maya-compat-form__heart {
        display: none;
    }
    
    .maya-panchang__grid {
        gap: 0.5rem;
    }
    
    .maya-activity-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .maya-form-row {
        grid-template-columns: 1fr;
    }
    
    .maya-settings__item-info {
        gap: 0.5rem;
    }
    
    .maya-settings__item-icon {
        width: 36px;
        height: 36px;
    }
}

/* =========================================
   Generic Maya Modal
   ========================================= */
.maya-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.maya-modal--active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.maya-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.maya-modal__container,
.maya-modal__content {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    background: black !important;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    width: 92vw;
    max-width: 400px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.maya-modal--active .maya-modal__container,
.maya-modal--active .maya-modal__content {
    transform: none !important;
}

.maya-modal__content--lg {
    max-width: 600px;
}

.maya-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--maya-border-light);
    gap: 1rem;
}

.maya-modal__header-text {
    flex: 1;
}

.maya-modal__title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--maya-text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.maya-modal__title i {
    color: var(--maya-primary);
}

.maya-modal__close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--maya-bg-tertiary);
    border: none;
    color: var(--maya-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.maya-modal__close:hover {
    background: var(--maya-primary);
    color: white;
}

.maya-modal__body {
    padding: 0rem;
    overflow-y: auto;
    flex: 1;
}

.maya-modal__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--maya-border-light);
}

/* Vastu Analysis Modal */
.maya-modal--vastu {
    opacity: 1;
    visibility: visible;
}

.maya-modal--vastu .maya-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.maya-modal--vastu .maya-modal__container--lg {
    max-width: 600px;
    max-height: 90vh;
}

.maya-modal--vastu .maya-modal__header h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--maya-text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.maya-modal--vastu .maya-modal__header h3 i {
    color: var(--maya-primary);
}

.maya-modal--vastu .maya-modal__body {
    overflow-y: auto;
}

.maya-modal--vastu .maya-vastu__analysis-meta {
    padding: 1em;
    border-bottom: 1px solid var(--maya-border);
}

/* =========================================
   Chat Detail Modal
   ========================================= */
.maya-chat-detail__date {
    text-align: center;
    color: var(--maya-text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.maya-chat-detail__message {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.maya-chat-detail__message--user {
    flex-direction: row-reverse;
}

.maya-chat-detail__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--maya-bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--maya-text-secondary);
}

.maya-chat-detail__message--maya .maya-chat-detail__avatar {
    background: linear-gradient(135deg, var(--maya-primary), var(--maya-secondary));
    color: white;
    font-family: var(--font-display);
    font-weight: 700;
}

.maya-chat-detail__bubble {
    flex: 1;
    background: var(--maya-bg-tertiary);
    border-radius: 16px;
    padding: 1rem;
    max-width: 85%;
}

.maya-chat-detail__message--user .maya-chat-detail__bubble {
    background: linear-gradient(135deg, var(--maya-primary), var(--maya-secondary));
    color: white;
}

.maya-chat-detail__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.maya-chat-detail__text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--maya-text-primary);
    white-space: pre-wrap;
}

.maya-chat-detail__message--user .maya-chat-detail__text {
    color: white;
}

/* Chat history item clickable state */
.maya-chat-history__item {
    cursor: pointer;
    transition: all 0.2s ease;
}

.maya-chat-history__item:hover {
    background: var(--maya-bg-tertiary);
    transform: translateX(4px);
}
/* =====================================================
   V2 UI Refresh - Charcoal + Bronze (Overrides)
   ===================================================== */

/* Better font defaults */
body {
    font-family: var(--font-primary);
    letter-spacing: 0.01em;
}

/* Headings + key titles in bronze */
h1, h2, h3, h4, h5, h6,
.logo-name,
.page-title,
.hero-name,
.maya-card__title,
.maya-card-title,
.maya-title,
.onboarding-step h2,
.onboarding-logo .logo-name,
.kundli-center__title,
.kundli-north-center {
    font-family: var(--font-display);
    color: var(--maya-heading);
    letter-spacing: 0.04em;
}

[data-bs-theme="light"] h1,
[data-bs-theme="light"] h2,
[data-bs-theme="light"] h3,
[data-bs-theme="light"] h4,
[data-bs-theme="light"] h5,
[data-bs-theme="light"] h6 {
    color: var(--maya-heading);
}

/* Surfaces: more premium elevation */
.main-header,
.sidebar,
.bottom-nav,
.notifications-panel {
    background: color-mix(in srgb, var(--maya-bg-secondary) 92%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.maya-card,
.quick-action-card,
.maya-insight-card,
.maya-action-tile,
.maya-info-card,
.maya-kundli-chart-card {
    border-radius: var(--maya-radius-lg);
    background: var(--maya-bg-card);
    border: 1px solid var(--maya-border-light);
    box-shadow: var(--maya-shadow);
}

.maya-card:hover,
.quick-action-card:hover,
.maya-action-tile:hover {
    border-color: color-mix(in srgb, var(--maya-primary) 40%, var(--maya-border-light));
    box-shadow: 0 18px 46px rgba(0,0,0,0.25), var(--maya-shadow-glow);
}

/* Buttons: more tactile + consistent */
.btn, .btn-maya, .btn-maya-outline,
.onboarding-option,
.maya-kundli-toggle__btn,
.maya-btn {
    border-radius: 14px;
    font-family: var(--font-primary);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.btn-primary,
.btn-maya,
.maya-btn--primary,
.onboarding-confirm {
    background: linear-gradient(135deg, var(--maya-primary) 0%, var(--maya-primary-light) 55%, var(--maya-secondary) 130%);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 22px rgba(0,0,0,0.25);
}

.btn-primary:hover,
.btn-maya:hover,
.maya-btn--primary:hover,
.onboarding-confirm:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
}

.btn-outline-primary,
.btn-maya-outline,
.maya-btn--outline {
    border: 1px solid color-mix(in srgb, var(--maya-primary) 60%, transparent);
    color: var(--maya-text-primary);
    background: color-mix(in srgb, var(--maya-bg-tertiary) 88%, transparent);
}

.btn-outline-primary:hover,
.btn-maya-outline:hover,
.maya-btn--outline:hover {
    color: var(--maya-primary);
    border-color: var(--maya-primary);
    background: color-mix(in srgb, var(--maya-bg-tertiary) 78%, transparent);
}

/* Inputs: softer, higher-contrast */
.form-control,
.form-select,
.onboarding-input {
    border-radius: 14px !important;
    border: 1px solid color-mix(in srgb, var(--maya-border-light) 70%, transparent) !important;
    background: color-mix(in srgb, var(--maya-bg-tertiary) 92%, transparent) !important;
}

.form-control:focus,
.form-select:focus,
.onboarding-input:focus {
    border-color: color-mix(in srgb, var(--maya-primary) 70%, transparent) !important;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--maya-primary) 18%, transparent) !important;
}

/* Chips / Pills */
.maya-chip,
.zodiac-badge,
.day-status-pill {
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--maya-border-light) 70%, transparent);
    background: color-mix(in srgb, var(--maya-bg-tertiary) 86%, transparent);
}

.maya-chip:hover {
    background: color-mix(in srgb, var(--maya-bg-tertiary) 75%, transparent);
}

/* Bottom nav active: subtle glow */
.bottom-nav .nav-item.active {
    color: var(--maya-primary);
    text-shadow: 0 0 18px color-mix(in srgb, var(--maya-primary) 40%, transparent);
}

/* Scrollbars: gold accent, subtler */
::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--maya-primary) 70%, #ffffff00);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--maya-primary-light);
}

/* Reduce overly "neon" in light theme */
[data-bs-theme="light"] .maya-card,
[data-bs-theme="light"] .quick-action-card,
[data-bs-theme="light"] .maya-insight-card,
[data-bs-theme="light"] .maya-action-tile {
    box-shadow: var(--maya-shadow);
}

[data-bs-theme="light"] .btn-primary,
[data-bs-theme="light"] .btn-maya,
[data-bs-theme="light"] .maya-btn--primary,
[data-bs-theme="light"] .onboarding-confirm {
    box-shadow: 0 10px 20px rgba(16, 24, 40, 0.12);
}

/* =====================================================
   v2.1 PATCH: Active button readability + smoother intro animations
   ===================================================== */

/* ---------- Active buttons: improve contrast ---------- */

/* Generic active states */
button.active,
button:active,
.btn.active,
.btn:active,
.maya-btn.active,
.maya-btn:active,
.maya-toggle-btn.active,
.maya-activity-btn--active,
.maya-kundli-toggle__btn--active,
.sidebar-nav .nav-link.active,
.bottom-nav .nav-item.active {
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

/* Toggle cards: ensure label/desc stay readable on BOTH themes */
.maya-toggle-btn.active .maya-toggle-btn__label,
.maya-toggle-btn.active .maya-toggle-btn__desc {
  color: var(--maya-text-primary) !important;
}

/* Activity chips: active needs explicit text color (was inheriting) */
.maya-activity-btn--active {
  color: var(--maya-text-primary) !important;
}

/* Kundli toggle: gradient background needs theme-specific foreground */
.maya-kundli-toggle__btn--active {
  font-weight: 700;
}

/* Light theme: gold gradients need DARK text for contrast */
[data-bs-theme="light"] .maya-kundli-toggle__btn--active {
  color: #0f1115 !important;
  text-shadow: none !important;
}

/* Light theme: "active" label was using --maya-primary-light (too pale) */
[data-bs-theme="light"] .maya-toggle-btn.active .maya-toggle-btn__label {
  color: var(--maya-primary-dark) !important;
}
[data-bs-theme="light"] .maya-toggle-btn.active .maya-toggle-btn__desc {
  color: var(--maya-text-secondary) !important;
}

/* Optional: slightly stronger active background on light for clarity */
[data-bs-theme="light"] .maya-toggle-btn.active {
  background: color-mix(in srgb, var(--maya-primary) 14%, transparent) !important;
  border-color: color-mix(in srgb, var(--maya-primary) 55%, var(--maya-border-light)) !important;
}

/* ---------- Intro / loader animations: slow + smooth ---------- */

/* Pyramid stroke draw: slower */
.ai-loader .pyramid-path {
  animation-duration: 3.5s !important;
  animation-timing-function: cubic-bezier(.4, 0, .2, 1) !important;
}

/* Orb wobble: slower */
.blob {
  animation-duration: 5s !important;
  animation-timing-function: cubic-bezier(.4, 0, .2, 1) !important;
}

/* Preloader helper text: less twitchy */
.preloader-text {
  animation-duration: 3.2s !important;
  animation-timing-function: cubic-bezier(.4, 0, .2, 1) !important;
}

/* Dot pulse in realtime mic: slightly calmer (still "alive") */
.maya-input-area .mic-btn.realtime-active::before {
  animation-duration: 1.6s !important;
}



/* =====================================================
   PATCH v2.2 - Gradient-surface contrast + edge cases
   Fixes:
   1) Text contrast on bright gradient cards (light theme)
   2) Headings inside gradient surfaces stay readable
   ===================================================== */

/* Light theme: gradient surfaces are bright -> use dark text for readability */
[data-bs-theme="light"] .maya-cta-card__content{
  color: #0f1115;
}

[data-bs-theme="light"] .maya-cta-card__title{
  color: #20140a; /* deep bronze-brown for contrast */
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
}

[data-bs-theme="light"] .maya-cta-card__text{
  color: rgba(15,17,21,0.84);
  opacity: 1; /* avoid washed-out text */
}

/* If any headings are placed inside the CTA content, force readable contrast */
[data-bs-theme="light"] .maya-cta-card__content h1,
[data-bs-theme="light"] .maya-cta-card__content h2,
[data-bs-theme="light"] .maya-cta-card__content h3,
[data-bs-theme="light"] .maya-cta-card__content h4,
[data-bs-theme="light"] .maya-cta-card__content h5,
[data-bs-theme="light"] .maya-cta-card__content h6{
  color: #20140a;
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
}

/* Optional: add a very subtle "mist" overlay so text remains readable across the whole gradient */
.maya-cta-card::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.10) 0%,
    rgba(255,255,255,0.06) 40%,
    rgba(0,0,0,0.06) 100%);
  opacity: 0;
}

[data-bs-theme="light"] .maya-cta-card::before{
  opacity: 1;
}

/* Buttons on gradients: ensure label always readable in light theme */
[data-bs-theme="light"] .maya-cta-card .btn,
[data-bs-theme="light"] .maya-cta-card button{
  text-shadow: none;
}

/* =====================================================
   VASTU PAGE STYLES - MAIN PAGE
   Saved analyses with color-coded cards
   ===================================================== */

/* New Calibration Button */
.maya-vastu__new-btn {
    width: 100%;
    margin-bottom: 1.5rem;
}

/* Analyses Section */
.maya-vastu__analyses-section {
    margin-top: 1rem;
}

.maya-vastu__analyses-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Empty State */
.maya-vastu__empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--maya-bg-card);
    border: 1px dashed var(--maya-border);
    border-radius: var(--maya-radius-md);
}

.maya-vastu__empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--maya-bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--maya-text-muted);
}

.maya-vastu__empty-state h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--maya-text-primary);
    margin: 0 0 0.5rem;
}

.maya-vastu__empty-state p {
    font-size: 0.9rem;
    color: var(--maya-text-muted);
    margin: 0;
}

/* Analysis Cards */
.maya-vastu__card {
    background: var(--maya-bg-card);
    border-radius: var(--maya-radius-md);
    border-left: 4px solid var(--maya-border);
    overflow: hidden;
    transition: all 0.2s ease;
}

.maya-vastu__card:hover {
    box-shadow: var(--maya-shadow-md);
}

/* Color coded severity */
.maya-vastu__card--green {
    border-left-color: var(--maya-success);
}

.maya-vastu__card--green .maya-vastu__card-score {
    background: rgba(34, 197, 94, 0.1);
    color: var(--maya-success);
}

.maya-vastu__card--green .maya-vastu__card-severity i {
    color: var(--maya-success);
}

.maya-vastu__card--yellow {
    border-left-color: var(--maya-warning);
}

.maya-vastu__card--yellow .maya-vastu__card-score {
    background: rgba(245, 158, 11, 0.1);
    color: var(--maya-warning);
}

.maya-vastu__card--yellow .maya-vastu__card-severity i {
    color: var(--maya-warning);
}

.maya-vastu__card--red {
    border-left-color: var(--maya-danger);
}

.maya-vastu__card--red .maya-vastu__card-score {
    background: rgba(239, 68, 68, 0.1);
    color: var(--maya-danger);
}

.maya-vastu__card--red .maya-vastu__card-severity i {
    color: var(--maya-danger);
}

.maya-vastu__card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
}

.maya-vastu__card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--maya-radius-sm);
    background: var(--maya-bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--maya-primary);
    flex-shrink: 0;
}

.maya-vastu__card-info {
    flex: 1;
    min-width: 0;
}

.maya-vastu__card-info h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--maya-text-primary);
    margin: 0 0 0.25rem;
}

.maya-vastu__card-date {
    font-size: 0.75rem;
    color: var(--maya-text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.maya-vastu__card-score {
    padding: 0.4rem 0.6rem;
    border-radius: var(--maya-radius-sm);
    font-size: 0.9rem;
    font-weight: 700;
}

.maya-vastu__score-value {
    font-family: 'SF Mono', 'Monaco', monospace;
}

.maya-vastu__card-body {
    display: flex;
    gap: 1rem;
    padding: 0 1rem 0.75rem;
}

.maya-vastu__card-direction,
.maya-vastu__card-severity {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--maya-text-secondary);
}

.maya-vastu__card-direction i,
.maya-vastu__card-severity i {
    font-size: 0.9rem;
}

.maya-vastu__card-direction i {
    color: var(--maya-primary);
}

.maya-vastu__card-actions {
    display: flex;
    border-top: 1px solid var(--maya-border);
}

.maya-vastu__card-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem;
    background: transparent;
    border: none;
    color: var(--maya-text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.maya-vastu__card-btn:hover {
    background: var(--maya-bg-tertiary);
    color: var(--maya-text-primary);
}

.maya-vastu__card-btn--view:hover {
    color: var(--maya-primary);
}

.maya-vastu__card-btn--delete {
    flex: 0;
    padding: 0.75rem 1rem;
    color: var(--maya-text-muted);
    border-left: 1px solid var(--maya-border);
}

.maya-vastu__card-btn--delete:hover {
    color: var(--maya-danger);
    background: rgba(239, 68, 68, 0.05);
}

/* =====================================================
   VASTU CALIBRATION PAGE STYLES - FULLSCREEN
   AI-powered Vastu analysis with compass and camera
   ===================================================== */

/* Hide header and footer for fullscreen */
.maya-header--hidden {
    display: none !important;
}

.maya-bottom-nav--hidden,
.bottom-nav--hidden {
    display: none !important;
}

.maya-main--fullscreen,
.main-content--fullscreen {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

/* Fullscreen container */
.maya-vastu--fullscreen {
    position: fixed;
    inset: 0;
    background: var(--maya-bg-primary);
    z-index: 1000;
    overflow: hidden;
}

/* Back button */
.maya-vastu__back-btn {
    position: absolute;
    top: calc(env(safe-area-inset-top, 12px) + 8px);
    left: 12px;
    z-index: 100;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.maya-vastu__back-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.05);
}

/* Step indicator (minimal dots) */
.maya-vastu__step-indicator {
    position: absolute;
    top: calc(env(safe-area-inset-top, 12px) + 18px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    gap: 8px;
}

.maya-vastu__step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.maya-vastu__step-dot--active {
    background: var(--maya-primary);
    box-shadow: 0 0 10px var(--maya-glow);
}

.maya-vastu__step-dot--completed {
    background: var(--maya-success);
}

/* Panels */
.maya-vastu__panel {
    display: none;
    position: absolute;
    inset: 0;
    animation: mayaFadeInUp 0.4s ease-out;
}

.maya-vastu__panel--active {
    display: flex;
    flex-direction: column;
}

.maya-vastu__panel--centered {
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    padding-top: calc(env(safe-area-inset-top, 12px) + 60px);
}

.maya-vastu__panel--camera {
    padding: 0;
}

.maya-vastu__panel--results {
    padding: 0;
    overflow: hidden;
}

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

/* Panel content wrapper */
.maya-vastu__panel-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    max-width: 320px;
}

.maya-vastu__panel-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--maya-primary) 0%, var(--maya-primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 8px 25px var(--maya-glow);
}

.maya-vastu__panel-content h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--maya-text-primary);
    margin: 0;
}

.maya-vastu__panel-content p {
    font-size: 0.9rem;
    color: var(--maya-text-muted);
    margin: 0;
}

/* Location Display */
.maya-vastu__location-display {
    width: 100%;
    background: var(--maya-bg-card);
    border: 1px solid var(--maya-border);
    border-radius: var(--maya-radius-md);
    padding: 1.5rem;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.maya-vastu__location-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--maya-text-muted);
}

.maya-vastu__location-placeholder i {
    font-size: 1.5rem;
    opacity: 0.5;
}

.maya-vastu__location-success {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--maya-success);
    font-weight: 600;
}

.maya-vastu__location-success i {
    font-size: 1.5rem;
}

/* ============================================
   COMPASS STEP STYLES
   ============================================ */
.maya-vastu__panel-icon--compass {
    animation: pulse-compass 2s ease-in-out infinite;
}

@keyframes pulse-compass {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.maya-vastu__panel-icon--success {
    background: linear-gradient(135deg, var(--maya-success) 0%, #059669 100%) !important;
    animation: none;
}

.maya-vastu__panel-icon--warning {
    background: linear-gradient(135deg, var(--maya-warning) 0%, #d97706 100%) !important;
    animation: none;
}

.maya-vastu__compass-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--maya-bg-card);
    border: 1px solid var(--maya-border);
    border-radius: var(--maya-radius-md);
    padding: 1rem 1.5rem;
    width: 100%;
}

.maya-vastu__compass-status-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.maya-vastu__compass-status-icon--success {
    color: var(--maya-success);
    font-size: 1.5rem;
}

.maya-vastu__compass-status-icon--warning {
    color: var(--maya-warning);
    font-size: 1.5rem;
}

.maya-vastu__compass-manual {
    width: 100%;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--maya-border);
}

.maya-vastu__manual-title {
    font-size: 0.85rem;
    color: var(--maya-text-muted);
    margin-bottom: 1rem;
}

.maya-vastu__direction-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.maya-vastu__dir-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 0.5rem;
    background: var(--maya-bg-card);
    border: 2px solid var(--maya-border);
    border-radius: var(--maya-radius-md);
    color: var(--maya-text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.maya-vastu__dir-btn:hover {
    border-color: var(--maya-primary);
    background: rgba(var(--maya-primary-rgb), 0.1);
}

.maya-vastu__dir-btn.active {
    border-color: var(--maya-primary);
    background: var(--maya-primary);
    color: #fff;
}

.maya-vastu__dir-icon {
    font-size: 1.25rem;
    font-weight: 400;
}

/* ============================================
   FULLSCREEN CAMERA VIEWFINDER
   ============================================ */

.maya-vastu__viewfinder {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
}

.maya-vastu__camera-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    z-index: 1;
    /* Prevent flickering on mobile */
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
}

.maya-vastu__captured-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    z-index: 2;
}

.maya-vastu__canvas {
    display: none;
}

.maya-vastu__camera-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: #000;
    color: var(--maya-text-muted);
    z-index: 50;
}

/* ============================================
   CENTER COMPASS OVERLAY
   ============================================ */

.maya-vastu__compass-center-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 20;
    pointer-events: none;
}

.maya-vastu__compass-center-overlay--manual {
    opacity: 0.4;
}

/* Direction badge at top */
.maya-vastu__direction-top {
    position: absolute;
    top: calc(env(safe-area-inset-top, 12px) + 50px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    z-index: 30;
}

.maya-vastu__direction-deg {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--maya-primary);
    line-height: 1;
}

.maya-vastu__direction-name {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Direction Locked Badge */
.maya-vastu__direction-locked {
    position: absolute;
    top: calc(env(safe-area-inset-top, 12px) + 50px);
    left: 50%;
    transform: translateX(-50%);
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(34, 197, 94, 0.9);
    border-radius: 20px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 30;
    box-shadow: 0 2px 10px rgba(34, 197, 94, 0.3);
}

/* Manual Direction Selection Overlay */
.maya-vastu__manual-overlay {
    position: absolute;
    bottom: 140px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--maya-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 25;
    width: calc(100% - 2rem);
    max-width: 320px;
}

.maya-vastu__manual-overlay p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.maya-vastu__manual-overlay--selected {
    display: none !important;
}

.maya-vastu__direction-grid-overlay {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    width: 100%;
}

.maya-vastu__dir-btn-overlay {
    padding: 0.6rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--maya-radius-sm);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.maya-vastu__dir-btn-overlay:hover {
    border-color: var(--maya-primary);
    background: rgba(212, 175, 55, 0.2);
}

.maya-vastu__dir-btn-overlay.active {
    background: var(--maya-primary);
    border-color: var(--maya-primary);
    color: #000;
}

/* Analysis Results */
.maya-vastu__analysis-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.maya-vastu__meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    background: var(--maya-bg-tertiary);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--maya-text-secondary);
}

.maya-vastu__meta-item i {
    color: var(--maya-primary);
}

.maya-vastu__analysis-loading {
    text-align: center;
    padding: 2rem 1rem;
}

.maya-vastu__analysis-spinner {
    margin-bottom: 1rem;
}

.maya-vastu__analysis-loading p {
    color: var(--maya-text-muted);
    margin-bottom: 1rem;
}

.maya-vastu__analysis-progress {
    width: 100%;
    max-width: 300px;
    height: 4px;
    background: var(--maya-bg-tertiary);
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
}

.maya-vastu__analysis-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--maya-primary) 0%, var(--maya-primary-light) 100%);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
}

.maya-vastu__analysis-result {
    animation: mayaFadeInUp 0.4s ease-out;
}

.maya-vastu__analysis-content {
    background: var(--maya-bg-card);
    border: 0px;
    border-radius: var(--maya-radius-md);
    padding: 1.5rem;
    line-height: 1.7;
    color: var(--maya-text-secondary);
}

.maya-vastu__analysis-content h4 {
    color: var(--maya-primary);
    font-size: 1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.maya-vastu__analysis-content h4:first-child {
    margin-top: 0;
}

.maya-vastu__analysis-content strong {
    color: var(--maya-text-primary);
}

.maya-vastu__analysis-content ul,
.maya-vastu__analysis-content ol {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
}

.maya-vastu__analysis-content li {
    margin-bottom: 0.5rem;
}

.maya-vastu__result-section {
    background: var(--maya-bg-card);
    border: 1px solid var(--maya-border);
    border-radius: var(--maya-radius-md);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.maya-vastu__result-section h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--maya-text-primary);
    margin: 0 0 0.75rem;
}

.maya-vastu__result-section h4 i {
    color: var(--maya-primary);
}

.maya-vastu__result-section p {
    margin: 0;
    color: var(--maya-text-secondary);
    line-height: 1.6;
}

.maya-vastu__result-section--tips h4 i {
    color: var(--maya-warning);
}

.maya-vastu__result-section--note {
    background: rgba(var(--maya-primary), 0.05);
    border-color: var(--maya-primary);
}

.maya-vastu__result-section--note p {
    font-size: 0.9rem;
}

.maya-vastu__result-section--cta {
    background: linear-gradient(135deg, rgba(var(--maya-primary-rgb), 0.1), rgba(var(--maya-secondary-rgb), 0.1));
    text-align: center;
}

.maya-vastu__tips-list {
    margin: 0;
    padding-left: 1.25rem;
}

.maya-vastu__tips-list li {
    color: var(--maya-text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.maya-vastu__remedies-list {
    margin: 0;
    padding-left: 1.25rem;
}

.maya-vastu__remedies-list li {
    color: var(--maya-text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Fallback Notice */
.maya-vastu__fallback-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(var(--maya-info-rgb, 59, 130, 246), 0.1);
    border: 1px solid rgba(var(--maya-info-rgb, 59, 130, 246), 0.3);
    border-radius: var(--maya-radius-md);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--maya-text-secondary);
}

.maya-vastu__fallback-notice i {
    color: #3b82f6;
    flex-shrink: 0;
}

/* Score Card */
.maya-vastu__score-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--maya-bg-card);
    border: 2px solid var(--maya-border);
    border-radius: var(--maya-radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.maya-vastu__score-card--good {
    border-color: var(--maya-success);
    background: rgba(var(--maya-success-rgb, 34, 197, 94), 0.05);
}

.maya-vastu__score-card--neutral {
    border-color: var(--maya-warning);
    background: rgba(var(--maya-warning-rgb, 245, 158, 11), 0.05);
}

.maya-vastu__score-card--improve {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.maya-vastu__score-circle {
    display: flex;
    align-items: baseline;
    gap: 0.1rem;
    background: var(--maya-bg);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    justify-content: center;
    flex-shrink: 0;
}

.maya-vastu__score-card--good .maya-vastu__score-circle {
    background: var(--maya-success);
    color: white;
}

.maya-vastu__score-card--neutral .maya-vastu__score-circle {
    background: var(--maya-warning);
    color: white;
}

.maya-vastu__score-card--improve .maya-vastu__score-circle {
    background: #ef4444;
    color: white;
}

.maya-vastu__score-number {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.maya-vastu__score-total {
    font-size: 0.85rem;
    opacity: 0.8;
}

.maya-vastu__score-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.maya-vastu__score-text strong {
    font-size: 1rem;
    color: var(--maya-text-primary);
}

.maya-vastu__score-text span {
    font-size: 0.85rem;
    color: var(--maya-text-secondary);
}

/* Direction analysis colors */
.maya-vastu__good {
    color: var(--maya-success) !important;
}

.maya-vastu__warning {
    color: var(--maya-warning) !important;
}

.maya-vastu__neutral {
    color: var(--maya-text-secondary) !important;
}

.maya-vastu__ideal-note {
    font-size: 0.85rem;
    color: var(--maya-text-tertiary) !important;
    margin-top: 0.5rem !important;
}

.maya-vastu__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 0 1rem;
}

/* ============================================
   CAPTURE BUTTON (inside viewfinder)
   ============================================ */

.maya-vastu__capture-controls {
    position: absolute;
    bottom: calc(env(safe-area-inset-bottom, 20px) + 30px);
    left: 50%;
    transform: translateX(-50%);
    display: none;
    z-index: 30;
}

.maya-vastu__capture-btn {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.maya-vastu__capture-btn-ring {
    position: absolute;
    inset: 0;
    border: 4px solid #fff;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.maya-vastu__capture-btn-inner {
    position: absolute;
    inset: 6px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.maya-vastu__capture-btn:hover:not(:disabled) .maya-vastu__capture-btn-ring {
    border-color: var(--maya-primary);
}

.maya-vastu__capture-btn:hover:not(:disabled) .maya-vastu__capture-btn-inner {
    background: var(--maya-primary);
}

.maya-vastu__capture-btn:active:not(:disabled) {
    transform: scale(0.9);
}

.maya-vastu__capture-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Post Capture Actions Overlay */
.maya-vastu__post-capture-overlay {
    position: absolute;
    bottom: calc(env(safe-area-inset-bottom, 20px) + 30px);
    left: 50%;
    transform: translateX(-50%);
    display: none;
    gap: 1rem;
    z-index: 30;
}

.maya-vastu__action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.maya-vastu__action-btn i {
    font-size: 1.25rem;
}

.maya-vastu__action-btn--retake {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.maya-vastu__action-btn--retake:hover {
    background: rgba(255, 255, 255, 0.25);
}

.maya-vastu__action-btn--proceed {
    background: var(--maya-primary);
    color: #000;
}

.maya-vastu__action-btn--proceed:hover {
    background: var(--maya-primary-light);
}

/* ============================================
   AREA SELECTION STEP
   ============================================ */

.maya-vastu__captured-preview {
    position: relative;
    width: 100%;
    max-width: 200px;
    aspect-ratio: 3/4;
    border-radius: var(--maya-radius-md);
    overflow: hidden;
    margin-bottom: 1rem;
}

.maya-vastu__captured-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.maya-vastu__preview-badge {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 0.75rem;
    color: #fff;
    white-space: nowrap;
}

.maya-vastu__preview-badge i {
    color: var(--maya-primary);
}

.maya-vastu__area-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    width: 100%;
    max-width: 320px;
}

.maya-vastu__area-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 0.5rem;
    background: var(--maya-bg-card);
    border: 1px solid var(--maya-border);
    border-radius: var(--maya-radius-md);
    color: var(--maya-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.maya-vastu__area-btn i {
    font-size: 1.25rem;
    color: var(--maya-text-muted);
    transition: color 0.2s ease;
}

.maya-vastu__area-btn span {
    font-size: 0.65rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

.maya-vastu__area-btn:hover {
    border-color: var(--maya-primary);
    background: rgba(212, 175, 55, 0.05);
}

.maya-vastu__area-btn:hover i {
    color: var(--maya-primary);
}

.maya-vastu__area-btn.active {
    background: var(--maya-primary);
    border-color: var(--maya-primary);
    color: #000;
}

.maya-vastu__area-btn.active i {
    color: #000;
}

/* Custom Area Input */
.maya-vastu__custom-area {
    width: 100%;
    max-width: 320px;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--maya-border);
    animation: fadeInUp 0.3s ease;
}

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

.maya-vastu__custom-area label {
    display: block;
    font-size: 0.85rem;
    color: var(--maya-text-secondary);
    margin-bottom: 0.75rem;
    text-align: center;
}

.maya-vastu__custom-area .maya-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--maya-bg-card);
    border: 2px solid var(--maya-border);
    border-radius: var(--maya-radius-md);
    color: var(--maya-text-primary);
    font-size: 1rem;
    text-align: center;
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

.maya-vastu__custom-area .maya-input:focus {
    outline: none;
    border-color: var(--maya-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.maya-vastu__custom-area .maya-input::placeholder {
    color: var(--maya-text-muted);
}

.maya-vastu__custom-area .maya-btn {
    width: 100%;
}

/* ============================================
   RESULTS PANEL (Scrollable)
   ============================================ */

.maya-vastu__results-scroll {
    position: absolute;
    inset: 0;
    padding: 0 0 calc(env(safe-area-inset-bottom, 20px) + 20px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display:flex;
    flex-direction:column;
}

.maya-vastu__analysis-header {
    text-align: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--maya-primary) 0%, var(--maya-primary-dark) 100%);
    border-radius: 0 0 20px 20px;
}

.maya-vastu__analysis-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--maya-primary) 0%, var(--maya-primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 8px 25px var(--maya-glow);
}

.maya-vastu__analysis-header h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.maya-vastu__analysis-result{flex:1;overflow-y:auto;padding:0 1rem}
.maya-vastu__analysis-loading{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;padding:2rem;min-height:300px;text-align:center}

/* Spinner utility */
.maya-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--maya-border);
    border-top-color: var(--maya-primary);
    border-radius: 50%;
    animation: mayaSpin 1s linear infinite;
}

.maya-spinner--sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

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

/* ============================================
   3D COMPASS OVERLAY ON CAMERA
   ============================================ */

.maya-vastu__camera-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.maya-vastu__camera-container--with-compass {
    aspect-ratio: 3/4;
    min-height: 350px;
}

.maya-vastu__camera-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: var(--maya-bg-tertiary);
    border-radius: var(--maya-radius-md);
    color: var(--maya-text-muted);
}

/* 3D Compass Overlay */
.maya-vastu__compass-overlay {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
    pointer-events: none;
}

.maya-vastu__compass-overlay--manual {
    opacity: 0.3;
}

/* Simple Large Compass */
.maya-vastu__compass {
    width: 160px;
    height: 160px;
    position: relative;
}

.maya-vastu__compass-ring {
    position: absolute;
    inset: 0;
    border: 3px solid rgba(212, 175, 55, 0.8);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(212, 175, 55, 0.1),
        0 0 30px rgba(212, 175, 55, 0.2);
    transition: transform 0.1s ease-out;
}

.maya-vastu__compass-dir {
    position: absolute;
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.maya-vastu__compass-dir--n {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--maya-primary);
    font-size: 1.1rem;
}

.maya-vastu__compass-dir--e {
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.maya-vastu__compass-dir--s {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.maya-vastu__compass-dir--w {
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.maya-vastu__compass-needle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 100px;
    margin-left: -3px;
    margin-top: -50px;
    pointer-events: none;
    z-index: 5;
}

.maya-vastu__compass-needle::before,
.maya-vastu__compass-needle::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    margin-left: -8px;
}

.maya-vastu__compass-needle::before {
    top: 0;
    border-bottom: 45px solid var(--maya-primary);
    filter: drop-shadow(0 2px 6px rgba(212, 175, 55, 0.6));
}

.maya-vastu__compass-needle::after {
    bottom: 0;
    border-top: 45px solid rgba(255, 255, 255, 0.4);
}

.maya-vastu__compass-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    background: var(--maya-primary);
    border-radius: 50%;
    margin-left: -8px;
    margin-top: -8px;
    box-shadow: 0 0 15px var(--maya-glow);
    z-index: 10;
}

/* Keep old 3D compass styles for backward compatibility but hide */
.maya-vastu__compass-3d {
    width: 120px;
    height: 120px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.maya-vastu__compass-ring-3d {
    position: absolute;
    inset: 0;
    border: 3px solid rgba(212, 175, 55, 0.7);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.4),
        inset 0 0 30px rgba(212, 175, 55, 0.15),
        0 0 40px rgba(212, 175, 55, 0.2);
    transition: transform 0.15s ease-out;
    transform-origin: center center;
}

.maya-vastu__compass-dir-3d {
    position: absolute;
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.maya-vastu__compass-dir-3d--n {
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--maya-primary);
    font-size: 0.75rem;
}

.maya-vastu__compass-dir-3d--e {
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.maya-vastu__compass-dir-3d--s {
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
}

.maya-vastu__compass-dir-3d--w {
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.maya-vastu__compass-dir-3d--ne {
    top: 18px;
    right: 14px;
    font-size: 0.5rem;
    opacity: 0.7;
}

.maya-vastu__compass-dir-3d--se {
    bottom: 18px;
    right: 14px;
    font-size: 0.5rem;
    opacity: 0.7;
}

.maya-vastu__compass-dir-3d--sw {
    bottom: 18px;
    left: 14px;
    font-size: 0.5rem;
    opacity: 0.7;
}

.maya-vastu__compass-dir-3d--nw {
    top: 18px;
    left: 14px;
    font-size: 0.5rem;
    opacity: 0.7;
}

.maya-vastu__compass-needle-3d {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 80px;
    margin-left: -2px;
    margin-top: -40px;
    transform-origin: center center;
    transition: transform 0.15s ease-out;
    pointer-events: none;
}

.maya-vastu__compass-needle-3d::before,
.maya-vastu__compass-needle-3d::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    margin-left: -6px;
}

.maya-vastu__compass-needle-3d::before {
    top: 0;
    border-bottom: 35px solid var(--maya-primary);
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.5));
}

.maya-vastu__compass-needle-3d::after {
    bottom: 0;
    border-top: 35px solid rgba(255, 255, 255, 0.5);
}

.maya-vastu__compass-center-3d {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background: var(--maya-primary);
    border-radius: 50%;
    margin-left: -6px;
    margin-top: -6px;
    box-shadow: 0 0 10px var(--maya-glow);
    z-index: 10;
}

/* Direction Badge */
.maya-vastu__direction-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.4rem 1rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.maya-vastu__direction-deg {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--maya-primary);
    line-height: 1;
}

.maya-vastu__direction-name {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Direction Locked Badge */
.maya-vastu__direction-locked {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(34, 197, 94, 0.9);
    border-radius: 20px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(34, 197, 94, 0.3);
}

.maya-vastu__direction-locked i {
    font-size: 0.9rem;
}

/* Capture Button (Centered) */
.maya-vastu__camera-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.maya-btn--capture {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--maya-primary);
    border: 3px solid #fff;
    box-shadow: 0 4px 20px var(--maya-glow);
    transition: all 0.2s ease;
}

.maya-btn--capture:hover:not(:disabled) {
    transform: scale(1.05);
}

.maya-btn--capture:active:not(:disabled) {
    transform: scale(0.95);
}

.maya-btn--capture:disabled {
    opacity: 0.5;
    background: var(--maya-bg-tertiary);
}

.maya-btn__capture-ring {
    position: absolute;
    inset: -8px;
    border: 2px solid var(--maya-primary);
    border-radius: 50%;
    opacity: 0.5;
}

/* Capture Hint */
.maya-vastu__capture-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--maya-text-muted);
    text-align: center;
}

.maya-vastu__capture-hint i {
    color: var(--maya-primary);
}

/* Post-Capture Actions */
.maya-vastu__post-capture {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.maya-vastu__post-capture .maya-btn {
    flex: 1;
}

/* Analysis Content Formatting */
.maya-vastu__analysis-content {
    text-align: left;
    padding: 0.5rem;
}

.maya-vastu__analysis-content h3,
.maya-vastu__analysis-content h4 {
    font-family: var(--font-display);
    color: var(--maya-text-primary);
    margin: 1.5rem 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.maya-vastu__analysis-content h3:first-child,
.maya-vastu__analysis-content h4:first-child {
    margin-top: 0;
}

.maya-vastu__section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--maya-primary) !important;
    border-bottom: 1px solid var(--maya-border);
    padding-bottom: 0.5rem;
    margin-top: 1.5rem !important;
    margin-bottom: 1rem !important;
}

.maya-vastu__analysis-content p {
    color: var(--maya-text-secondary);
    line-height: 1.7;
    margin: 0 0 1rem;
}

.maya-vastu__analysis-content strong {
    color: var(--maya-text-primary);
}

.maya-vastu__list {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
}

.maya-vastu__list li {
    color: var(--maya-text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.maya-vastu__list li strong {
    color: var(--maya-text-primary);
}

.maya-vastu__list--numbered {
    padding-left: 1.5rem;
}

.maya-vastu__divider {
    border: none;
    height: 1px;
    background: var(--maya-border);
    margin: 1.5rem 0;
}

/* Mobile adjustments */
@media (max-width: 380px) {
    .maya-vastu__compass-3d {
        width: 100px;
        height: 100px;
    }
    
    .maya-vastu__compass-needle-3d {
        height: 65px;
    }
    
    .maya-vastu__compass-needle-3d::before {
        border-bottom-width: 28px;
    }
    
    .maya-vastu__compass-needle-3d::after {
        border-top-width: 28px;
    }
    
    .maya-btn--capture {
        width: 60px;
        height: 60px;
        font-size: 1.25rem;
    }
}

/* ============================================
   VIEWFINDER WITH COMPASS OVERLAY
   ============================================ */

/* Viewfinder Container - Full height camera view */
.maya-vastu__viewfinder-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 500px;
    background: #000;
    position: relative;
}

/* The viewfinder area */
.maya-vastu__viewfinder {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #111;
    min-height: 350px;
}

.maya-vastu__viewfinder video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Loading state */
.maya-vastu__viewfinder-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: var(--maya-text-secondary);
    font-size: 0.9rem;
    z-index: 5;
}

/* Compass Overlay - positioned on viewfinder */
.maya-vastu__compass-overlay {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
}

.maya-vastu__compass--overlay {
    width: 100px;
    height: 100px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Direction Badge */
.maya-vastu__direction-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}

.maya-vastu__direction-badge span:first-child {
    color: var(--maya-primary);
}

/* Manual Direction Overlay */
.maya-vastu__manual-overlay {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 320px;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.maya-vastu__manual-overlay p {
    color: var(--maya-text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    text-align: center;
}

.maya-vastu__direction-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
}

.maya-vastu__dir-btn {
    padding: 0.6rem 0.3rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.maya-vastu__dir-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.maya-vastu__dir-btn.active {
    background: var(--maya-primary);
    border-color: var(--maya-primary);
    color: #fff;
}

/* Captured View - replaces viewfinder after capture */
.maya-vastu__captured-view {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    background: #111;
}

.maya-vastu__captured-view img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.maya-vastu__captured-view .maya-vastu__direction-badge {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
}

/* Viewfinder Controls - at bottom */
.maya-vastu__viewfinder-controls {
    padding: 1rem;
    background: var(--maya-bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Capture hint */
.maya-vastu__capture-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--maya-text-muted);
    text-align: center;
}

.maya-vastu__capture-hint i {
    color: var(--maya-primary);
}

/* Large Capture Button */
.maya-btn--capture {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--maya-primary);
    border: 4px solid #fff;
    box-shadow: 0 4px 20px var(--maya-glow);
    transition: all 0.2s ease;
    color: #fff;
}

.maya-btn--capture:hover:not(:disabled) {
    transform: scale(1.05);
}

.maya-btn--capture:active:not(:disabled) {
    transform: scale(0.95);
}

.maya-btn--capture:disabled {
    opacity: 0.5;
    background: var(--maya-bg-tertiary);
    border-color: var(--maya-text-muted);
}

.maya-btn__capture-ring {
    position: absolute;
    inset: -10px;
    border: 2px solid var(--maya-primary);
    border-radius: 50%;
    opacity: 0.5;
}

/* Post Capture Actions */
.maya-vastu__post-capture {
    display: flex;
    gap: 0.75rem;
    width: 100%;
    max-width: 320px;
}

.maya-vastu__post-capture .maya-btn {
    flex: 1;
}
/* CLEAN CAMERA CSS */
.maya-vastu__panel--camera{position:fixed!important;top:0;left:0;width:100vw;height:100vh;background:#000!important;z-index:9999;padding:0!important;margin:0!important;border-radius:0!important}
.maya-vastu__camera-fullscreen{position:relative;width:100%;height:100%;background:#000;overflow:hidden}
.maya-vastu__camera-fullscreen>video{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;z-index:1}
.maya-vastu__camera-topbar{position:absolute;top:0;left:0;right:0;padding:60px 16px 16px;background:linear-gradient(to bottom,rgba(0,0,0,0.7),transparent);z-index:10;display:flex;align-items:center;gap:12px}
.maya-vastu__back-btn{width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,0.15);border:none;color:#fff;font-size:1.25rem;display:flex;align-items:center;justify-content:center;cursor:pointer}
.maya-vastu__camera-hint{color:rgba(255,255,255,0.9);font-size:0.9rem}
.maya-vastu__compass-center-overlay{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:5;display:flex;flex-direction:column;align-items:center;gap:16px;pointer-events:none}
.maya-vastu__compass--large{width:200px;height:200px;position:relative;border-radius:50%;background:rgba(0,0,0,0.4);border:2px solid rgba(255,255,255,0.3);box-shadow:0 0 30px rgba(0,0,0,0.5)}
.maya-vastu__compass--large .maya-vastu__compass-ring{position:absolute;top:8px;left:8px;right:8px;bottom:8px;border-radius:50%;border:1px solid rgba(255,255,255,0.2);pointer-events:none}
.maya-vastu__compass--large .maya-vastu__compass-dir{position:absolute;font-size:1rem;font-weight:700;color:#fff;text-shadow:0 2px 4px rgba(0,0,0,0.8)}
.maya-vastu__compass--large .maya-vastu__compass-dir--n{top:12px;left:50%;transform:translateX(-50%);color:#f59e0b}
.maya-vastu__compass--large .maya-vastu__compass-dir--s{bottom:12px;left:50%;transform:translateX(-50%)}
.maya-vastu__compass--large .maya-vastu__compass-dir--e{right:12px;top:50%;transform:translateY(-50%)}
.maya-vastu__compass--large .maya-vastu__compass-dir--w{left:12px;top:50%;transform:translateY(-50%)}
.maya-vastu__compass--large .maya-vastu__compass-needle{position:absolute;top:calc(50% - 60px);left:calc(50% - 3px);width:6px;height:120px;border-radius:3px;z-index:1;background:linear-gradient(to bottom,#f59e0b 0%,#f59e0b 50%,rgba(255,255,255,0.6) 50%,rgba(255,255,255,0.6) 100%);box-shadow:0 0 10px rgba(245,158,11,0.5)}
.maya-vastu__compass--large .maya-vastu__compass-center{position:absolute;top:calc(50% - 10px);left:calc(50% - 10px);width:20px;height:20px;background:#fff;border-radius:50%;border:3px solid #f59e0b;z-index:2}
.maya-vastu__direction-display{background:rgba(0,0,0,0.6);backdrop-filter:blur(8px);padding:8px 20px;border-radius:20px;display:flex;align-items:center;gap:8px;border:1px solid rgba(255,255,255,0.2)}
.maya-vastu__direction-deg{font-size:1.25rem;font-weight:700;color:#f59e0b}
.maya-vastu__direction-name{font-size:1rem;color:#fff}
.maya-vastu__camera-bottom{position:absolute;bottom:0;left:0;right:0;padding:20px 20px 40px;background:linear-gradient(to top,rgba(0,0,0,0.8),transparent);z-index:10;display:flex;flex-direction:column;align-items:center;gap:16px}
.maya-vastu__camera-status{color:rgba(255,255,255,0.8);font-size:0.9rem;margin:0}
.maya-vastu__shutter-btn{width:80px;height:80px;border-radius:50%;background:transparent;border:none;padding:0;cursor:pointer;position:relative;display:flex;align-items:center;justify-content:center}
.maya-vastu__shutter-ring{position:absolute;inset:0;border-radius:50%;border:4px solid #fff}
.maya-vastu__shutter-inner{width:64px;height:64px;border-radius:50%;background:#fff;transition:transform 0.1s}
.maya-vastu__shutter-btn:active .maya-vastu__shutter-inner{transform:scale(0.9);background:#ddd}
.maya-vastu__shutter-btn:disabled{opacity:0.5}
.maya-vastu__photo-review{position:absolute;inset:0;background:#000;z-index:20;display:flex;flex-direction:column}
.maya-vastu__photo-review>img{flex:1;width:100%;object-fit:contain}
.maya-vastu__review-badge{position:absolute;top:70px;left:50%;transform:translateX(-50%);background:rgba(0,0,0,0.7);backdrop-filter:blur(8px);padding:8px 16px;border-radius:20px;color:#fff;display:flex;align-items:center;gap:8px;border:1px solid rgba(255,255,255,0.2)}
.maya-vastu__review-badge i{color:#f59e0b}
.maya-vastu__review-actions{position:absolute;bottom:0;left:0;right:0;padding:20px 20px 40px;background:linear-gradient(to top,rgba(0,0,0,0.9),transparent);display:flex;gap:12px}
.maya-vastu__review-actions .maya-btn{flex:1}
.maya-btn--light{color:#fff!important;border-color:rgba(255,255,255,0.5)!important}

/* DIRECTION LOCK SCREEN */
.maya-vastu__panel--direction{position:fixed!important;top:0;left:0;width:100vw;height:100vh;background:linear-gradient(180deg,#0b0b0c 0%,#1a1b1d 100%)!important;z-index:9999;padding:0!important;margin:0!important;border-radius:0!important}
.maya-vastu__direction-screen{display:flex;flex-direction:column;height:100%;padding:env(safe-area-inset-top,20px) 20px env(safe-area-inset-bottom,20px)}
.maya-vastu__back-btn--top{position:absolute;top:calc(env(safe-area-inset-top,20px) + 10px);left:16px;z-index:10}
.maya-vastu__direction-header{text-align:center;padding:60px 20px 20px}
.maya-vastu__direction-header h3{font-size:1.5rem;font-weight:700;color:var(--maya-text-primary);margin:0 0 8px}
.maya-vastu__direction-header p{font-size:0.95rem;color:var(--maya-text-muted);margin:0}
.maya-vastu__compass-container{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px}

/* ============================================
   IMAGE-BASED COMPASS
   ============================================ */
.maya-compass-img {
  width: 80vw;
  height: 80vw;
  max-width: 400px;
  max-height: 400px;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
}

.maya-compass-img__dial {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-image: url('../compass-black-background_1063-119.avif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%;
  transition: transform 0.15s ease-out;
  -webkit-transition: -webkit-transform 0.15s ease-out;
}

.maya-compass-img__needle {
  width: 60%;
  height: 60%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
}

.maya-compass-img__needle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Compact mode - same 80vw */
.maya-vastu__compass-container--compact .maya-compass-img {
  width: 80vw;
  height: 80vw;
  max-width: 400px;
  max-height: 400px;
}

/* Legacy compass styles (keep for compatibility) */
.maya-vastu__compass--xlarge{width:240px;height:240px;position:relative;border-radius:50%;background:rgba(0,0,0,0.5);border:3px solid var(--maya-primary);box-shadow:0 0 40px var(--maya-glow),inset 0 0 30px rgba(0,0,0,0.3)}
.maya-vastu__compass--xlarge .maya-vastu__compass-ring{position:absolute;top:12px;left:12px;right:12px;bottom:12px;border-radius:50%;border:1px solid rgba(255,255,255,0.15)}
.maya-vastu__compass--xlarge .maya-vastu__compass-dir{position:absolute;font-size:1.1rem;font-weight:700;color:#fff;text-shadow:0 2px 4px rgba(0,0,0,0.8)}
.maya-vastu__compass--xlarge .maya-vastu__compass-dir--n{top:16px;left:50%;transform:translateX(-50%);color:#f59e0b;font-size:1.3rem}
.maya-vastu__compass--xlarge .maya-vastu__compass-dir--s{bottom:16px;left:50%;transform:translateX(-50%)}
.maya-vastu__compass--xlarge .maya-vastu__compass-dir--e{right:16px;top:50%;transform:translateY(-50%)}
.maya-vastu__compass--xlarge .maya-vastu__compass-dir--w{left:16px;top:50%;transform:translateY(-50%)}
.maya-vastu__compass--xlarge .maya-vastu__compass-needle{position:absolute;top:calc(50% - 70px);left:calc(50% - 4px);width:8px;height:140px;border-radius:4px;z-index:1;background:linear-gradient(to bottom,#f59e0b 0%,#f59e0b 50%,rgba(255,255,255,0.6) 50%,rgba(255,255,255,0.6) 100%);box-shadow:0 0 15px rgba(245,158,11,0.6)}
.maya-vastu__compass--xlarge .maya-vastu__compass-center{position:absolute;top:calc(50% - 12px);left:calc(50% - 12px);width:24px;height:24px;background:#fff;border-radius:50%;border:4px solid #f59e0b;z-index:2;box-shadow:0 0 10px rgba(245,158,11,0.5)}
.maya-vastu__direction-display--large{background:var(--maya-bg-card);backdrop-filter:blur(12px);padding:12px 28px;border-radius:24px;display:flex;align-items:center;gap:12px;border:1px solid var(--maya-border)}
.maya-vastu__direction-display--large .maya-vastu__direction-deg{font-size:1.5rem;font-weight:700;color:var(--maya-primary)}
.maya-vastu__direction-display--large .maya-vastu__direction-name{font-size:1.1rem;color:var(--maya-text-primary)}
.maya-vastu__direction-footer{padding:20px 0}
.maya-btn--large{padding:16px 24px;font-size:1rem}
.maya-btn--full{width:100%}
.maya-vastu__locked-direction{display:flex;align-items:center;gap:8px;background:rgba(0,0,0,0.6);backdrop-filter:blur(8px);padding:8px 16px;border-radius:20px;border:1px solid rgba(245,158,11,0.3)}
.maya-vastu__locked-direction i{color:#f59e0b;font-size:0.9rem}
.maya-vastu__locked-direction span{color:#fff;font-weight:600}
.maya-vastu__camera-center-hint{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:5;pointer-events:none}
.maya-vastu__camera-center-hint p{background:rgba(0,0,0,0.6);backdrop-filter:blur(8px);padding:12px 20px;border-radius:20px;color:#fff;font-size:0.95rem;margin:0;border:1px solid rgba(255,255,255,0.2)}

/* Direction Step Badges */
.maya-vastu__direction-step-badge{display:flex;align-items:center;gap:8px;background:var(--maya-bg-card);padding:8px 16px;border-radius:20px;margin-bottom:12px;border:1px solid var(--maya-border)}
.maya-vastu__direction-step-badge i{color:var(--maya-primary);font-size:1.1rem}
.maya-vastu__direction-step-badge span{color:var(--maya-text-secondary);font-size:0.85rem}
.maya-vastu__direction-step-badge--2{margin-bottom:16px;margin-top:0}
.maya-vastu__pointing-hint{display:flex;align-items:center;gap:8px;margin-top:16px;padding:10px 16px;background:rgba(245,158,11,0.15);border-radius:12px;border:1px solid rgba(245,158,11,0.3)}
.maya-vastu__pointing-hint i{color:var(--maya-primary);font-size:1.2rem}
.maya-vastu__pointing-hint span{color:var(--maya-text-secondary);font-size:0.85rem}
/* ============================================
   COMPACT UI STYLES
   ============================================ */

/* Compact panel content */
.maya-vastu__panel-content--compact{gap:0.75rem;max-width:280px}
.maya-vastu__panel-content--area{max-width:340px;gap:0.5rem}
.maya-vastu__panel-icon--sm{width:56px;height:56px;font-size:1.5rem}
.maya-vastu__panel-content--compact h3{font-size:1.15rem;margin-top:0.25rem}
.maya-vastu__location-display--compact{min-height:48px;padding:0.75rem;font-size:0.9rem}
.maya-vastu__location-display--compact i{font-size:1.25rem;color:var(--maya-text-muted)}

/* Compact direction screen */
.maya-vastu__direction-screen--compact{padding:env(safe-area-inset-top,12px) 16px env(safe-area-inset-bottom,12px);justify-content:space-between}
.maya-vastu__direction-header--compact{padding:40px 16px 8px;text-align:center}
.maya-vastu__step-hint{font-size:1rem;color:var(--maya-text-primary);margin:0;font-weight:600}
.maya-vastu__compass-container--compact{flex:0 0 auto;gap:16px;padding:8px 0}
.maya-vastu__direction-footer--compact{padding:12px 0 8px}

/* Smaller compass for compact mode */
.maya-vastu__compass-container--compact .maya-vastu__compass--xlarge{width:180px;height:180px}
.maya-vastu__compass-container--compact .maya-vastu__compass--xlarge .maya-vastu__compass-needle{top:calc(50% - 55px);left:calc(50% - 3px);width:6px;height:110px}
.maya-vastu__compass-container--compact .maya-vastu__compass--xlarge .maya-vastu__compass-center{top:calc(50% - 10px);left:calc(50% - 10px);width:20px;height:20px}
.maya-vastu__compass-container--compact .maya-vastu__compass--xlarge .maya-vastu__compass-dir{font-size:0.95rem}
.maya-vastu__compass-container--compact .maya-vastu__compass--xlarge .maya-vastu__compass-dir--n{font-size:1.1rem;top:12px}
.maya-vastu__compass-container--compact .maya-vastu__direction-display--large{padding:8px 20px}
.maya-vastu__compass-container--compact .maya-vastu__direction-display--large .maya-vastu__direction-deg{font-size:1.25rem}
.maya-vastu__compass-container--compact .maya-vastu__direction-display--large .maya-vastu__direction-name{font-size:0.95rem}

/* Compact photo review */
.maya-vastu__photo-review--compact .maya-vastu__review-badge{top:50px;padding:6px 12px;font-size:0.85rem}
.maya-vastu__photo-review--compact .maya-vastu__review-actions{padding:12px 16px 24px;gap:10px}
.maya-vastu__photo-review--compact .maya-btn{padding:10px 16px;font-size:0.9rem}

/* Compact preview thumbnail */
.maya-vastu__captured-preview--sm{width:100%;max-width:200px;height:120px;border-radius:12px;overflow:hidden;position:relative;margin-bottom:0.5rem}
.maya-vastu__captured-preview--sm img{width:100%;height:100%;object-fit:cover}
.maya-vastu__preview-badge--sm{position:absolute;bottom:6px;left:50%;transform:translateX(-50%);padding:4px 10px;font-size:0.75rem;border-radius:12px;background:rgba(0,0,0,0.7);color:#fff}
.maya-vastu__preview-badge--sm i{font-size:0.75rem;color:var(--maya-primary)}

/* Compact area grid */
.maya-vastu__area-grid--compact{grid-template-columns:repeat(4, 1fr);gap:6px;width:100%;margin-top:0.5rem}
.maya-vastu__area-btn--compact{padding:10px 4px;gap:4px}
.maya-vastu__area-btn--compact i{font-size:1.25rem}
.maya-vastu__area-btn--compact span{font-size:0.7rem}

/* Compact custom area */
.maya-vastu__custom-area--compact{display:flex;flex-direction:row;gap:8px;width:100%;margin-top:0.75rem}
.maya-vastu__custom-area--compact .maya-input--compact{flex:1;padding:10px 12px;font-size:0.9rem;border-radius:10px}
.maya-vastu__custom-area--compact .maya-btn{padding:10px 14px}

/* Compact analysis header */
.maya-vastu__analysis-header--compact{display:flex;align-items:center;justify-content:center;gap:10px;padding:20px 16px;padding-top:28px;background:linear-gradient(135deg,var(--maya-primary),var(--maya-secondary));border-radius:0 0 16px 16px;text-align:center}
.maya-vastu__analysis-header--compact i{font-size:1.5rem;color:#fff}
.maya-vastu__analysis-header--compact h3{font-size:1.1rem;color:#fff;margin:0}
.maya-vastu__analysis-meta--compact{padding:12px 16px;display:flex;flex-wrap:wrap;justify-content:center;gap:8px;font-size:0.8rem}
.maya-vastu__actions--compact{display:flex;gap:10px;padding:12px 16px 24px}
.maya-vastu__actions--compact .maya-btn{flex:1;padding:12px 16px}

/* Analysis loading - centered */
.maya-vastu__analysis-loading{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;padding:2rem;min-height:300px;text-align:center}

/* Prevent body scroll during vastu flow */
.main-content--fullscreen{overflow:hidden}
.maya-vastu--fullscreen{height:100dvh;overflow:hidden}
.maya-vastu__panel--centered{overflow:hidden}

/* Analysis meta chips */
.maya-vastu__meta-chip{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;background:var(--maya-bg-card);border:1px solid var(--maya-border);border-radius:20px;font-size:0.75rem;color:var(--maya-text-secondary)}
.maya-vastu__meta-chip i{color:var(--maya-primary);font-size:0.8rem}

/* ============================================
   COMPASS ENABLE STEP UI FIXES
   ============================================ */

/* Center align panel content and all children */
.maya-vastu__panel--centered .maya-vastu__panel-content {
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

.maya-vastu__panel--centered .maya-vastu__panel-content h3,
.maya-vastu__panel--centered .maya-vastu__panel-content p {
    text-align: center;
    width: 100%;
}

/* Compass status box centered */
.maya-vastu__compass-status {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem;
}

.maya-vastu__compass-status-icon {
    margin: 0 auto;
}

/* Enable Compass button styling */
#enableCompassBtn {
    margin-top: 1rem;
    padding: 14px 32px;
    font-size: 1rem;
    min-width: 200px;
}

/* Manual section centered */
.maya-vastu__compass-manual {
    text-align: center;
}

.maya-vastu__manual-title {
    text-align: center;
}

/* Direction grid centered */
.maya-vastu__direction-grid {
    justify-content: center;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

/* Proceed button padding */
#proceedWithManualBtn {
    margin-top: 0.75rem;
    padding: 14px 32px;
}

/* Bottom button area with adequate padding */
.maya-vastu__panel--centered .maya-btn--primary,
.maya-vastu__panel--centered .maya-btn--lg {
    padding: 14px 28px;
    margin-bottom: 1rem;
}

/* Safe area padding for buttons at bottom */
.maya-vastu__panel-content {
    padding-bottom: calc(env(safe-area-inset-bottom, 20px) + 20px);
}

/* Location display centered */
.maya-vastu__location-display {
    justify-content: center;
    text-align: center;
}

.maya-vastu__location-display--compact {
    flex-direction: row;
    justify-content: center;
    gap: 8px;
}

/* Retry button styling */
#retryCompassBtn {
    margin-top: 0.5rem;
    padding: 12px 24px;
}

/* ============================================
   PALM READING PAGE
   ============================================ */
.maya-palm-reading {
    padding: 1rem;
}

.maya-palm__container {
    margin: 0 !important;
    padding: 0 !important;
}

.maya-palm__instructions {
    text-align: left;
    padding: 1.5rem;
}

.maya-palm__icon {
    width: 60px;
    height: 60px;
    margin: 0 0 1rem 0;
    background: linear-gradient(135deg, var(--maya-primary), var(--maya-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #fff;
    box-shadow: 0 8px 25px var(--maya-glow);
}

.maya-palm__instructions h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--maya-text-primary);
    margin-bottom: 0.5rem;
    text-align: left;
}

.maya-palm__instructions p {
    color: var(--maya-text-secondary);
    text-align: left;
}

.maya-palm__tips {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    text-align: left;
}

.maya-palm__tips li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--maya-text-secondary);
    font-size: 0.9rem;
}

.maya-palm__tips li i {
    color: var(--maya-success);
    font-size: 1rem;
}

.maya-palm__preview {
    padding: 1rem;
}

.maya-palm__image-wrap {
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1rem;
    background: var(--maya-bg-tertiary);
}

.maya-palm__image-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

.maya-palm__preview-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.maya-palm__preview-actions .maya-btn {
    width: 100%;
}

/* Palm Reading - Loading State with Scan Animation */
.maya-palm__loading {
    text-align: center;
    padding: 1.5rem;
}

.maya-palm__scan-container {
    position: relative;
    width: 100%;
    max-width: 280px;
    margin: 0 auto 1.5rem;
    border-radius: 16px;
    overflow: hidden;
}

.maya-palm__scan-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.maya-palm__scan-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        rgba(212, 175, 55, 0.1) 0%, 
        transparent 30%, 
        transparent 70%, 
        rgba(212, 175, 55, 0.1) 100%);
    border-radius: 16px;
    pointer-events: none;
}

/* Scanning Line Animation */
.maya-palm__scan-line {
    position: absolute;
    left: 5%;
    width: 90%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--maya-primary) 20%, 
        #fff 50%, 
        var(--maya-primary) 80%, 
        transparent);
    box-shadow: 0 0 20px var(--maya-primary), 0 0 40px rgba(212, 175, 55, 0.5);
    animation: palmScanLine 2s ease-in-out infinite;
    border-radius: 2px;
}

@keyframes palmScanLine {
    0% { top: 10%; opacity: 0.8; }
    50% { top: 85%; opacity: 1; }
    100% { top: 10%; opacity: 0.8; }
}

/* Pulse Ring Animation */
.maya-palm__scan-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 60%;
    transform: translate(-50%, -50%);
    border: 2px solid var(--maya-primary);
    border-radius: 50%;
    animation: palmPulse 1.5s ease-out infinite;
}

@keyframes palmPulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.8; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.3; }
    100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.8; }
}

/* Corner Brackets */
.maya-palm__scan-corners {
    position: absolute;
    inset: 8px;
    pointer-events: none;
}

.maya-palm__scan-corners span {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--maya-primary);
    border-style: solid;
    border-width: 0;
    animation: cornerGlow 1s ease-in-out infinite alternate;
}

.maya-palm__scan-corners span:nth-child(1) {
    top: 0; left: 0;
    border-top-width: 3px; border-left-width: 3px;
    border-top-left-radius: 8px;
}

.maya-palm__scan-corners span:nth-child(2) {
    top: 0; right: 0;
    border-top-width: 3px; border-right-width: 3px;
    border-top-right-radius: 8px;
}

.maya-palm__scan-corners span:nth-child(3) {
    bottom: 0; left: 0;
    border-bottom-width: 3px; border-left-width: 3px;
    border-bottom-left-radius: 8px;
}

.maya-palm__scan-corners span:nth-child(4) {
    bottom: 0; right: 0;
    border-bottom-width: 3px; border-right-width: 3px;
    border-bottom-right-radius: 8px;
}

@keyframes cornerGlow {
    0% { border-color: var(--maya-primary); }
    100% { border-color: #fff; }
}

/* Loading Text */
.maya-palm__loading-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.maya-palm__loading-text .maya-spinner--sm {
    width: 20px;
    height: 20px;
    margin: 0;
}

.maya-palm__loading-text p {
    color: var(--maya-text-primary);
    font-weight: 500;
    margin: 0;
}

.maya-palm__loading-hint {
    color: var(--maya-text-muted);
    font-size: 0.85rem;
    display: block;
}

/* Palm Skeleton Loaders */
.maya-palm__skeleton-preview {
    margin-top: 1.5rem;
    width: 100%;
}

.maya-palm__skeleton-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.maya-palm__skeleton-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.maya-palm__skeleton-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid var(--maya-border);
}

.maya-palm__skeleton-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Skeleton animations */
.maya-skeleton {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
}

.maya-skeleton--tab {
    width: 70px;
    height: 32px;
    border-radius: 8px;
}

.maya-skeleton--circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.maya-skeleton--title {
    width: 60%;
    height: 16px;
}

.maya-skeleton--text {
    width: 100%;
    height: 12px;
}

.maya-skeleton--short {
    width: 70%;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Palm Error State */
.maya-palm__error {
    padding: 3rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--maya-radius-lg);
}

.maya-palm__error-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(199, 154, 58, 0.15), rgba(117, 49, 0, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    border: 2px solid rgba(199, 154, 58, 0.2);
}

.maya-palm__error-icon i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--maya-primary), var(--maya-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: float-gentle 3s ease-in-out infinite;
}

@keyframes float-gentle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.maya-palm__error-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--maya-text);
    margin: 0;
    background: linear-gradient(135deg, var(--maya-primary), var(--maya-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.maya-palm__error-message {
    font-size: 0.95rem;
    color: var(--maya-text-muted);
    margin: 0;
    max-width: 280px;
    line-height: 1.5;
}

.maya-palm__error-buttons {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-top: 1.5rem;
    width: 100%;
    max-width: 340px;
    justify-content: center;
}

.maya-palm__retry-btn {
    flex: 1;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--maya-primary), var(--maya-primary-dark));
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(199, 154, 58, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.maya-palm__retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(199, 154, 58, 0.4);
}

.maya-palm__retry-btn i {
    font-size: 1rem;
}

.maya-palm__new-scan-btn {
    flex: 1;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--maya-text-secondary);
    border: 1px solid var(--maya-border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.maya-palm__new-scan-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--maya-primary);
    color: var(--maya-text);
}

.maya-palm__new-scan-btn i {
    font-size: 1rem;
}

/* Palm Results with Image */
.maya-palm__results {
    padding: 0;
    overflow: hidden;
}

.maya-palm__results-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--maya-primary), var(--maya-secondary));
    color: #fff;
}

.maya-palm__results-header i {
    font-size: 1.5rem;
}

.maya-palm__results-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Palm Image in Results */
.maya-palm__results-image-wrap {
    padding: 1rem 1.5rem;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid var(--maya-border);
}

.maya-palm__results-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    display: block;
    margin: 0 auto;
}

/* ===== Palm Results - Card-Based UI ===== */
.maya-palm__results {
    background: var(--maya-card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* Hero Section with Palm Image - Compact */
.maya-palm__result-hero {
    position: relative;
    height: 120px;
    overflow: hidden;
}

.maya-palm__result-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.maya-palm__result-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,0.85) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 0.75rem;
}

.maya-palm__result-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(34, 197, 94, 0.9);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 10;
}

/* Tab Navigation */
.maya-palm__tabs {
    display: flex;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid var(--maya-border);
}

.maya-palm__tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 0.5rem;
    background: none;
    border: none;
    color: var(--maya-text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.maya-palm__tab i {
    font-size: 1.1rem;
}

.maya-palm__tab.active {
    color: var(--maya-primary);
}

.maya-palm__tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--maya-primary);
    border-radius: 2px 2px 0 0;
}

/* Tab Content Container - Full height, no internal scroll */
.maya-palm__tab-content {
    padding: 1rem;
    padding-bottom: 100px; /* Space for sticky buttons */
}

/* Lines Grid */
.maya-palm__lines-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.maya-palm__line-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    border-left: 4px solid var(--maya-text-muted);
    cursor: pointer;
    transition: all 0.2s;
    overflow: hidden;
}

.maya-palm__line-header {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem;
}

.maya-palm__line-card:active {
    transform: scale(0.98);
}

.maya-palm__line-card--positive {
    border-left-color: #22c55e;
}

.maya-palm__line-card--negative {
    border-left-color: #ef4444;
}

.maya-palm__line-card--neutral {
    border-left-color: #f59e0b;
}

/* Expandable card details */
.maya-palm__line-details {
    display: none;
    padding: 0 1rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 0;
    gap: 0.75rem;
    flex-direction: column;
}

.maya-palm__line-card--expanded .maya-palm__line-details {
    display: flex;
}

.maya-palm__hand-detail {
    padding: 0.75rem;
    border-radius: 8px;
    background: rgba(0,0,0,0.2);
}

.maya-palm__hand-detail--left {
    border-left: 3px solid #3b82f6;
}

.maya-palm__hand-detail--right {
    border-left: 3px solid #22c55e;
}

.maya-palm__hand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    margin-right: 0.5rem;
}

.maya-palm__hand-detail--left .maya-palm__hand-badge {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: #fff;
}

.maya-palm__hand-detail--right .maya-palm__hand-badge {
    background: linear-gradient(135deg, #22c55e, #4ade80);
    color: #fff;
}

.maya-palm__hand-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--maya-text-primary);
}

.maya-palm__hand-detail p {
    margin: 0.5rem 0 0;
    font-size: 0.8rem;
    color: var(--maya-text-secondary);
    line-height: 1.5;
}

/* Expand indicator for expandable cards */
.maya-palm__line-card--expandable .maya-palm__line-status::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.2s;
}

.maya-palm__line-card--expanded .maya-palm__line-status::after {
    transform: rotate(180deg);
}

.maya-palm__line-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    font-size: 1.2rem;
    color: var(--maya-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.maya-palm__line-info {
    flex: 1;
    min-width: 0;
}

.maya-palm__line-info h4 {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--maya-text-primary);
}

.maya-palm__line-info p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--maya-text-secondary);
    line-height: 1.5;
}

.maya-palm__line-status {
    flex-shrink: 0;
    font-size: 1.1rem;
}

.maya-palm__line-card--positive .maya-palm__line-status {
    color: #22c55e;
}

.maya-palm__line-card--negative .maya-palm__line-status {
    color: #ef4444;
}

.maya-palm__line-card--neutral .maya-palm__line-status {
    color: #f59e0b;
}

/* Traits Section */
.maya-palm__trait-section {
    margin-bottom: 1rem;
}

.maya-palm__trait-section:last-child {
    margin-bottom: 0;
}

.maya-palm__trait-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--maya-border);
}

.maya-palm__trait-title--positive {
    color: #22c55e;
}

.maya-palm__trait-title--negative {
    color: #ef4444;
}

.maya-palm__trait-title--neutral {
    color: #3b82f6;
}

.maya-palm__trait-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.maya-palm__chip {
    padding: 0.5rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.4;
}

.maya-palm__chip--positive {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.maya-palm__chip--negative {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.maya-palm__chip--neutral {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Empty State */
.maya-palm__empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--maya-text-muted);
}

.maya-palm__empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.maya-palm__empty-state p {
    margin: 0;
    font-size: 0.95rem;
}

/* Remedies Grid */
.maya-palm__remedies-grid {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.maya-palm__remedy-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.125rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 14px;
}

.maya-palm__remedy-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--maya-primary), var(--maya-secondary));
    color: #000;
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.maya-palm__remedy-info {
    flex: 1;
    min-width: 0;
}

.maya-palm__remedy-info h5 {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--maya-primary);
}

.maya-palm__remedy-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--maya-text-secondary);
    line-height: 1.5;
}

/* Palm Reading Fullscreen Mode */
.maya-palm-reading--fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: black;
    overflow-y: auto;
    padding-top: 80px !important;
    padding-bottom: 0 !important;
    display: flex;
    flex-direction: column;
}

/* Center the container content */
.maya-palm-reading--fullscreen .maya-palm__container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0rem !important;
}

/* Center the instructions card */
.maya-palm-reading--fullscreen .maya-palm__instructions {
    width: 90vw !important;
}

/* Center all palm cards in fullscreen mode */
.maya-palm-reading--fullscreen .maya-card {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.maya-palm-reading--fullscreen .maya-palm__results {
    max-width: 100%;
    margin: 0;
}

/* Palm Reading Back Button */
.maya-palm__back-btn {
    position: fixed;
    top: 1.4em;
    left: 16px;
    z-index: 10000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.maya-palm__back-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Results Actions */
.maya-palm__results-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    border-top: 1px solid var(--maya-border);
    background: var(--maya-card-bg);
}

.maya-palm__results-actions--sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    background: #1a1a2e;
    background: var(--maya-card-bg, #1a1a2e);
    border-top: 1px solid var(--maya-border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.maya-palm__results-actions .maya-btn {
    flex: 1;
}

/* ===== Palm Reading - Enhanced Dual Hand UI ===== */

/* Step Indicator */
.maya-palm__step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.maya-palm__step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255,255,255,0.1);
    color: var(--maya-text-muted);
    border: 2px solid var(--maya-border);
    transition: all 0.3s;
}

.maya-palm__step.active {
    background: linear-gradient(135deg, var(--maya-primary), var(--maya-secondary));
    color: #000;
    border-color: var(--maya-primary);
    box-shadow: 0 0 20px var(--maya-glow);
}

.maya-palm__step.completed {
    background: #22c55e;
    color: #fff;
    border-color: #22c55e;
}

.maya-palm__step-line {
    width: 40px;
    height: 2px;
    background: var(--maya-border);
    transition: background 0.3s;
}

.maya-palm__step-line.completed {
    background: #22c55e;
}

/* Hand Visual with L/R Badge */
.maya-palm__hand-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}

.maya-palm__hand-icon {
    position: relative;
    width: 120px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hand PNG Image Styling */
.maya-palm__hand-img {
    width: 100px;
    height: auto;
    /* Invert black to white and add transparency */
    filter: invert(1) brightness(1.2);
    opacity: 0.85;
    transition: all 0.3s ease;
}

/* Left hand - no mirror needed (assuming PNG is left hand) */
.maya-palm__hand-img--left {
    /* Keep original orientation */
}

/* Right hand - mirror horizontally */
.maya-palm__hand-img--right {
    transform: scaleX(-1);
}

/* Legacy SVG styling (fallback) */
.maya-palm__hand-svg {
    width: 100%;
    height: 100%;
    color: var(--maya-primary);
}

.maya-palm__hand-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--maya-primary), var(--maya-secondary));
    color: #000;
    box-shadow: 0 4px 20px var(--maya-glow);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

.maya-palm__hand-visual--left .maya-palm__hand-badge {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: #fff;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.5);
}

.maya-palm__hand-visual--right .maya-palm__hand-badge {
    background: linear-gradient(135deg, #22c55e, #4ade80);
    color: #fff;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.5);
}

.maya-palm__hand-label {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--maya-text-primary);
    margin-top: 0.5rem;
}

.maya-palm__hand-visual--left .maya-palm__hand-label {
    color: #60a5fa;
}

.maya-palm__hand-visual--right .maya-palm__hand-label {
    color: #4ade80;
}

/* Preview Badge */
.maya-palm__preview-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    margin-right: 0.5rem;
}

.maya-palm__preview-badge--left,
.maya-palm__preview-badge:not(.maya-palm__preview-badge--right) {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: #fff;
}

.maya-palm__preview-badge--right {
    background: linear-gradient(135deg, #22c55e, #4ade80);
    color: #fff;
}

/* Processing indicator text */
.maya-palm__processing-text {
    font-size: 0.85rem;
    color: var(--maya-text-secondary);
    font-weight: 400;
    animation: processingPulse 1.5s ease-in-out infinite;
}

@keyframes processingPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Hand Icons - Left/Right differentiation */
.maya-palm__icon--left i {
    transform: scaleX(-1);
}

/* Preview Label */
.maya-palm__preview-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    margin-bottom: 1rem;
    color: var(--maya-primary);
    font-weight: 500;
}

/* Saved Readings Section */
.maya-palm__saved-section {
    margin-bottom: 1rem;
    padding: 1rem !important;
}

.maya-palm__saved-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: var(--maya-text-primary);
}

.maya-palm__saved-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.maya-palm__saved-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.maya-palm__saved-item:active {
    transform: scale(0.98);
}

.maya-palm__saved-hands {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(212, 175, 55, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.maya-palm__saved-hands img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.maya-palm__saved-hands i {
    font-size: 1.5rem;
    color: var(--maya-primary);
}

.maya-palm__saved-info {
    flex: 1;
    min-width: 0;
}

.maya-palm__saved-name {
    display: block;
    font-weight: 500;
    color: var(--maya-text-primary);
    font-size: 0.9rem;
}

.maya-palm__saved-date {
    display: block;
    font-size: 0.75rem;
    color: var(--maya-text-muted);
}

.maya-palm__saved-delete {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.1);
    border: none;
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.maya-palm__saved-delete:active {
    background: rgba(239, 68, 68, 0.2);
}

/* Combined Hands Preview in Loading */
.maya-palm__combined-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.maya-palm__hand-cutout {
    position: relative;
    width: 130px;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    background: rgb(0,0,0,0);
    border: 0px solid rgba(255, 255, 255, 0.1);
}

.maya-palm__hand-cutout img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

/* Combined Hands Hero in Results */
.maya-palm__result-hero--combined {
    height: auto;
    min-height: 200px;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1rem 1rem 0.5rem;
    position: relative;
}

.maya-palm__combined-hands {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1rem;
    width: 100%;
    margin-bottom: 0.5rem;
}

.maya-palm__combined-hand {
    position: relative;
    height: 120px;
    width: auto;
    flex-shrink: 0;
}

.maya-palm__combined-hand img {
    height: 100%;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    border-radius: 12px;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.5));
}

/* Badge positioned below hands */
.maya-palm__result-hero--combined .maya-palm__result-overlay {
    position: relative;
    inset: auto;
    background: none;
    padding: 0;
    margin-top: 0.5rem;
}

/* Golden Outline Animation */
.maya-palm__golden-outline {
    position: absolute;
    inset: -4px;
    border-radius: 16px;
    pointer-events: none;
    z-index: 0;
}

.maya-palm__golden-outline::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 3px;
    background: linear-gradient(135deg, 
        #d4af37 0%, 
        #f4e4a6 25%, 
        #d4af37 50%, 
        #f4e4a6 75%, 
        #d4af37 100%
    );
    background-size: 400% 400%;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: goldenOutlineShine 3s ease-in-out infinite;
}

.maya-palm__golden-outline::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 20px;
    background: radial-gradient(ellipse at center, 
        rgba(212, 175, 55, 0.3) 0%, 
        transparent 70%
    );
    animation: goldenGlowPulse 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes goldenOutlineShine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes goldenGlowPulse {
    0%, 100% { 
        opacity: 0.5;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.05);
    }
}

.maya-palm__combined-hand img {
    position: relative;
    z-index: 1;
}

/* Hand Labels */
.maya-palm__hand-labels {
    display: flex;
    justify-content: space-around;
    padding: 0.75rem 1rem;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid var(--maya-border);
}

.maya-palm__hand-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--maya-text-muted);
}

.maya-palm__hand-label i {
    color: var(--maya-primary);
}

/* Gold Button */
.maya-btn--gold {
    background: linear-gradient(135deg, var(--maya-primary), var(--maya-secondary));
    color: #000;
    border: none;
    font-weight: 600;
}

.maya-btn--gold:active {
    transform: scale(0.97);
}

/* Save Modal */
.maya-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.maya-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
}

.maya-modal__content {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: var(--maya-card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: modalSlideUp 0.3s ease-out;
}

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

.maya-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--maya-border);
}

.maya-modal__header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--maya-text-primary);
}

.maya-modal__close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--maya-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.maya-modal__body {
    padding: 1.25rem;
}

.maya-modal__footer {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--maya-border);
}

.maya-modal__footer .maya-btn {
    flex: 1;
}

/* =====================================================
   Mobile Input Overflow Fix - All Input Types
   ===================================================== */

/* Base input styles for mobile - prevent overflow */
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
select,
.form-select,
.form-control,
.onboarding-input,
textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-size: 16px !important; /* Prevents iOS zoom on focus */
}

/* Ensure select dropdowns don't overflow */
select,
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23c79a3a' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem !important;
}

/* Date and time input specific styling */
input[type="date"],
input[type="time"],
input[type="datetime-local"] {
    min-height: 48px;
    padding: 0.75rem 1rem !important;
}

/* WebKit date/time picker styling */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    background: transparent;
    cursor: pointer;
    padding: 0;
    margin: 0;
    position: absolute;
    right: 10px;
    width: 20px;
    height: 20px;
    filter: invert(70%) sepia(50%) saturate(500%) hue-rotate(10deg);
}

/* Position the date/time input for the picker icon */
input[type="date"],
input[type="time"],
input[type="datetime-local"] {
    position: relative;
}

/* Mobile specific styles */
@media screen and (max-width: 768px) {
    /* Container constraints */
    .onboarding-input-container,
    .onboarding-form,
    .auth-form,
    .gate-form,
    .maya-form,
    .direct-login-container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 1rem;
        padding-right: 1rem;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    /* All inputs take full width */
    input[type="date"],
    input[type="time"],
    input[type="datetime-local"],
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="password"],
    input[type="search"],
    select,
    .form-select,
    .form-control,
    .onboarding-input,
    textarea {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        font-size: 16px !important;
        padding: 0.875rem 1rem !important;
        border-radius: 12px !important;
    }
    
    /* Ensure onboarding main doesn't overflow */
    .onboarding-main,
    .onboarding-content,
    #onboardingContent,
    #maya-onboarding {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    /* Fix position relative container */
    .position-relative {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Option buttons in onboarding */
    .onboarding-options {
        width: 100% !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .onboarding-option {
        width: 100% !important;
        min-width: 0 !important;
    }
    
    /* Action buttons */
    .onboarding-actions {
        width: 100% !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .onboarding-actions .btn {
        width: 100% !important;
    }
}

/* Extra small screens */
@media screen and (max-width: 400px) {
    input[type="date"],
    input[type="time"],
    input[type="datetime-local"],
    input[type="text"],
    input[type="email"],
    select,
    .form-select,
    .form-control,
    .onboarding-input {
        font-size: 14px !important;
        padding: 0.75rem !important;
    }
    
    .onboarding-main {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    .onboarding-content {
        padding: 0.5rem !important;
    }
}