/*
 * DIVYAVANI — Premium Vedic & Celestial Aesthetic
 * Redesigned for the "Celestial AI Guide" theme
 */

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

:root {
    --bg-dark: #05060f;
    --bg-darker: #020308;
    --sidebar-bg: #070914;
    --card-bg: rgba(14, 14, 14, 0.4);
    --gold-primary: #ceb24b;
    --gold-gradient: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    --gold-soft-gradient: linear-gradient(135deg, rgba(206, 178, 75, 0.2), rgba(206, 178, 75, 0.05));
    --gold-solid: #aa8844;
    --user-msg-bg: #aa771c;
    --text-main: #f0f0f5;
    --text-dim: rgba(255, 255, 255, 0.6);
    --border-gold: rgba(206, 178, 75, 0.15);
    --border-light: rgba(255, 255, 255, 0.08);
    --nebula-purple: rgba(138, 43, 226, 0.15);
    --nebula-blue: rgba(0, 191, 255, 0.1);
    --nebula-gold: rgba(255, 215, 0, 0.08);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
}

#app-shell {
    display: flex;
    height: 100vh;
    width: 100vw;
}

#main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    background: var(--bg-dark);
}

/* ─── Background & Grid ─── */
#grid-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.4;
    pointer-events: none;
}

#stars-overlay {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image:
        radial-gradient(1px 1px at 15% 20%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 35% 60%, rgba(255, 255, 255, 1), transparent),
        radial-gradient(1px 1px at 55% 10%, #fff, transparent),
        radial-gradient(2px 2px at 85% 40%, rgba(206, 178, 75, 0.8), transparent),
        radial-gradient(1px 1px at 10% 80%, #fff, transparent),
        radial-gradient(1.2px 1.2px at 70% 90%, #fff, transparent);
    background-size: 800px 800px;
    opacity: 0.4;
    animation: slowDrift 180s linear infinite, starFlicker 6s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes starFlicker {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

@keyframes slowDrift {
    from {
        background-position: 0 0;
    }

    to {
        background-position: -800px -800px;
    }
}

/* ─── Sidebar ─── */
.sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-light);
    display: none;
    /* Hidden by default */
    flex-direction: column;
    padding: 24px 0;
    z-index: 100;
}

.sidebar.active {
    display: flex;
}

/* ─── Nebula Orbs ─── */
.nebula-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
    animation: orbSlowFloat 20s infinite alternate ease-in-out;
}

.nebula-purple {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--nebula-purple), transparent 70%);
    top: -100px;
    left: -100px;
}

.nebula-cyan {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--nebula-blue), transparent 70%);
    bottom: -100px;
    right: -50px;
    animation-delay: -5s;
}

.nebula-gold {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--nebula-gold), transparent 70%);
    top: 50%;
    right: -100px;
    animation-delay: -10s;
}

.nebula-blue-deep {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0, 0, 139, 0.1), transparent 70%);
    bottom: 20%;
    left: 20%;
    animation-delay: -15s;
}

@keyframes orbSlowFloat {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(50px, 50px) scale(1.1);
    }
}

.logo-spark {
    color: var(--gold-primary);
    font-size: 28px;
}

.sidebar-title {
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 0.1em;
    font-family: 'Playfair Display', serif;
}

.new-reading-btn {
    margin: 0 24px 30px;
    height: 48px;
    border: 1px solid var(--gold-primary);
    background: transparent;
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.new-reading-btn:hover {
    background: rgba(206, 178, 75, 0.1);
}

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

.nav-section-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--gold-primary);
    opacity: 0.6;
    padding: 0 12px 16px;
    letter-spacing: 0.05em;
}

.recent-item {
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.recent-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.recent-item.active {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ri-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.ri-subtitle {
    font-size: 11px;
    color: var(--gold-primary);
    opacity: 0.6;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-light);
}

.user-pill-footer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--gold-primary);
}

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

.user-name-footer {
    font-size: 13px;
    font-weight: 500;
    flex: 1;
}

.settings-icon-sidebar {
    font-size: 20px;
    opacity: 0.5;
    cursor: pointer;
}

/* ─── Header ─── */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 40px;
    background: rgba(5, 6, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    height: 73px;
    z-index: 90;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-title {
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 0.05em;
    font-family: 'Playfair Display', serif;
}

.guide-profile {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar-ring-mini {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--gold-primary);
}

.avatar-ring-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.online-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #4caf50;
    border: 2px solid var(--bg-dark);
    border-radius: 50%;
}

.guide-info h3 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.05em;
    font-family: 'Playfair Display', serif;
}

.guide-info p {
    font-size: 11px;
    color: var(--gold-primary);
    opacity: 0.7;
}

.header-right {
    display: flex;
    align-items: center;
}

.header-icons {
    display: flex;
    align-items: center;
}

.top-tool-icons {
    display: flex;
    gap: 20px;
    margin-right: 20px;
    opacity: 0.6;
}

.top-tool-icons span {
    font-size: 20px;
    cursor: pointer;
}

.header-action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: #fff;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
}

/* ─── Views Management ─── */
.view {
    display: none;
    height: calc(100vh - 73px);
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.view.active {
    display: block;
}

/* ─── VIEW 1: ENTRY ─── */
.entry-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-section {
    text-align: center;
    margin-bottom: 40px;
}

.avatar-ring-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 24px;
}

.main-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--gold-primary);
    box-shadow: 0 0 30px rgba(206, 178, 75, 0.3);
}

.main-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: avatarFloat 6s ease-in-out infinite;
}

@keyframes avatarFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-10px) scale(1.05);
    }
}

.avatar-badge {
    position: absolute;
    bottom: 0;
    right: 8px;
    width: 36px;
    height: 36px;
    background: var(--bg-dark);
    border: 2px solid var(--gold-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: 'Playfair Display', serif;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--gold-primary);
    margin-bottom: 20px;
}

.guidance-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(206, 178, 75, 0.1);
    border: 1px solid var(--border-gold);
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    color: var(--gold-primary);
}

.form-card-new {
    width: 100%;
    background: rgba(14, 14, 20, 0.4);
    border: 1px solid var(--border-gold);
    border-radius: 32px;
    padding: 48px;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.field-group-new {
    margin-bottom: 24px;
}

.field-group-new label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gold-primary);
    margin-bottom: 10px;
    opacity: 0.8;
}

.form-input-new {
    width: 100%;
    height: 54px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    padding: 0 20px;
    font-size: 15px;
    outline: none;
    transition: 0.3s;
}

.form-input-new:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(206, 178, 75, 0.2);
}

.field-row-new {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.submit-btn-gold {
    width: 100%;
    height: 60px;
    margin-top: 10px;
    background: var(--gold-gradient);
    border: none;
    border-radius: 12px;
    color: #1a1a1a;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-disclaimer {
    margin-top: 20px;
    font-size: 11px;
    opacity: 0.4;
    text-align: center;
}

.entry-footer {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.footer-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 700;
    opacity: 0.5;
    color: var(--gold-primary);
}

/* ─── VIEW 2: CHOOSE PATH ─── */
.choose-center {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px;
    text-align: center;
}

.choose-greeting {
    margin-bottom: 60px;
}

.mini-pandit {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--gold-primary);
    margin-bottom: 20px;
}

.choose-greeting h2 {
    font-size: 32px;
    font-family: 'Playfair Display', serif;
    margin-bottom: 12px;
}

.choose-greeting p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-dim);
}

.choose-cards-new {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.path-card {
    background: rgba(14, 14, 18, 0.3);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border-gold);
    border-radius: 32px;
    padding: 56px 40px;
    text-align: left;
    position: relative;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.path-card:hover {
    transform: translateY(-12px);
    border-color: var(--gold-primary);
    background: rgba(206, 178, 75, 0.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(206, 178, 75, 0.1);
}

.path-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(206, 178, 75, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.path-card:hover::before {
    opacity: 1;
}

.path-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 2;
}

.path-card:hover .path-card-icon {
    transform: scale(1.15) rotate(8deg);
    filter: drop-shadow(0 0 15px rgba(206, 178, 75, 0.4));
}

.chat-bg {
    background: linear-gradient(135deg, #444, #222);
    color: var(--gold-primary);
}

.report-bg {
    background: linear-gradient(135deg, #333, #111);
    color: var(--gold-primary);
}

.path-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-family: 'Playfair Display', serif;
}

.path-card p {
    font-size: 14px;
    opacity: 0.6;
    line-height: 1.6;
    margin-bottom: 20px;
}

.path-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    color: var(--gold-primary);
    border: 1px solid rgba(206, 178, 75, 0.3);
    padding: 4px 10px;
    border-radius: 4px;
}

/* ─── VIEW 3: CHAT ─── */
.chat-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg-darker);
    position: relative;
}

#chat-container {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.welcome-seeker-card {
    align-self: center;
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    margin-bottom: 20px;
}

.ws-icon {
    color: var(--gold-primary);
    font-size: 40px;
    margin-bottom: 20px;
}

.welcome-seeker-card h2 {
    font-size: 18px;
    letter-spacing: 0.1em;
    color: var(--gold-primary);
    margin-bottom: 16px;
}

.welcome-seeker-card p {
    font-size: 15px;
    font-style: italic;
    opacity: 0.7;
    line-height: 1.6;
    font-family: 'Playfair Display', serif;
}

.msg-wrapper {
    max-width: 80%;
    display: flex;
    gap: 16px;
    position: relative;
}

.msg-wrapper.ai {
    align-self: flex-start;
}

.msg-wrapper.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.ai-avatar-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(206, 178, 75, 0.1);
    color: var(--gold-primary);
    font-size: 16px;
    flex-shrink: 0;
}

.user-avatar-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}

.msg-bubble {
    padding: 18px 24px;
    border-radius: 12px;
    line-height: 1.7;
    font-size: 15px;
    position: relative;
}

.ai .msg-bubble {
    background: transparent;
    border: 1px solid var(--border-gold);
    color: var(--text-main);
    border-top-left-radius: 0;
}

.user .msg-bubble {
    background: var(--user-msg-bg);
    color: #000;
    font-weight: 500;
    border: none;
    border-top-right-radius: 0;
}

.msg-meta {
    margin-top: 10px;
    font-size: 10px;
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.chat-actions-row {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.action-btn-pill {
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-gold-fill {
    background: var(--gold-primary);
    color: #000;
    border: none;
}

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

.chat-footer-new {
    padding: 20px 40px 30px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-dark);
}

.chat-input-pill-container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    display: flex;
    align-items: center;
    padding: 6px 12px;
    height: 60px;
}

.chat-input-pill-container input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    padding: 0 16px;
    font-size: 15px;
}

.chat-tool-btn {
    background: transparent;
    border: none;
    color: var(--gold-primary);
    cursor: pointer;
    padding: 10px;
}

.chat-right-btns {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-icon-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-send-pill-btn {
    background: var(--gold-primary);
    border: none;
    color: #000;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ─── VIEW 4: REPORT ─── */
.report-wrapper {
    padding: 40px;
    max-width: 1100px;
    margin: 0 auto;
    color: var(--text-main);
}

.report-top-banner {
    background: var(--card-bg);
    border: 1px solid var(--border-gold);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 30px;
    display: flex;
    gap: 40px;
    align-items: center;
}

.gold-ring-big {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lp-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--gold-primary);
    font-family: 'Playfair Display', serif;
}

.lp-info h2 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 8px;
}

.lp-meta-row {
    display: flex;
    gap: 20px;
    font-size: 13px;
    opacity: 0.7;
}

.mini-numbers-row {
    display: flex;
    gap: 20px;
    flex: 1;
    justify-content: center;
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    padding: 0 40px;
}

.num-box {
    text-align: center;
}

.num-box small {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.5;
    margin-bottom: 4px;
}

.num-box span {
    font-size: 24px;
    font-weight: 700;
    color: var(--gold-primary);
}

.report-main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.report-card-new {
    background: var(--card-bg);
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    padding: 32px;
    backdrop-filter: blur(20px);
}

.report-card-new.full-width {
    grid-column: 1 / -1;
}

.report-card-new h3 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.report-card-new p {
    line-height: 1.8;
    font-size: 14px;
    opacity: 0.8;
}

.kw-chip,
.famous-chip {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(206, 178, 75, 0.1);
    border: 1px solid var(--border-gold);
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gold-primary);
    margin: 4px;
}

.compat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--gold-primary);
    background: rgba(206, 178, 75, 0.1);
    color: var(--gold-primary);
    font-weight: 800;
    margin: 4px;
}

.keywords-flex,
.compat-flex,
.famous-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.lucky-list div {
    margin-bottom: 12px;
    font-size: 14px;
    opacity: 0.8;
}

.lucky-list strong {
    color: var(--gold-primary);
    margin-right: 10px;
}

/* ─── Shared Utilities ─── */
.fade-up {
    animation: fadeUp 0.8s ease-out forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.g-text-gold {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(206, 178, 75, 0.3));
    font-weight: 800;
}

.gold-line-divider {
    width: 100px;
    height: 1px;
    background: var(--gold-gradient);
    margin: 30px auto;
}

/* ─── Selection Special Effects ─── */
.selection-special-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.cosmic-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
    animation: orbFloat 25s infinite alternate ease-in-out;
}

.orb-primary {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--gold-primary), transparent);
    top: -150px;
    right: -100px;
}

.orb-secondary {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #4a3aff, transparent);
    bottom: -100px;
    left: -100px;
    animation-delay: -7s;
}

@keyframes orbFloat {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    100% {
        transform: translate(60px, 120px) rotate(15deg) scale(1.15);
    }
}

.entrance-delay-1 {
    animation-delay: 0.2s;
}

.entrance-delay-2 {
    animation-delay: 0.4s;
}

.path-card h3 {
    font-size: 22px;
    margin-bottom: 14px;
    font-family: 'Playfair Display', serif;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.path-badge {
    transition: 0.3s;
    animation: badgePulse 4s infinite ease-in-out;
}

@keyframes badgePulse {

    0%,
    100% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
        border-color: var(--gold-primary);
    }
}

/* ─── Time Picker ─── */
.time-picker-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-select-new {
    height: 54px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    padding: 0 14px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: 0.3s;
    cursor: pointer;
    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='8' fill='%23ceb24b'%3E%3Cpath d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    flex: 1;
}

.form-select-new:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(206, 178, 75, 0.2);
}

.form-select-new option {
    background: #111;
    color: #fff;
}

.ampm-select {
    min-width: 80px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--gold-primary);
}

.time-separator {
    font-size: 24px;
    font-weight: 700;
    color: var(--gold-primary);
    opacity: 0.6;
    line-height: 54px;
}

/* ─── Time Analysis Report Card ─── */
.time-analysis-card {
    background: rgba(14, 14, 20, 0.5) !important;
    border: 1px solid rgba(206, 178, 75, 0.25) !important;
}

.time-analysis-card h3 {
    color: var(--gold-primary);
}

.time-analysis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.time-detail {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px 20px;
    transition: 0.3s;
}

.time-detail:hover {
    border-color: rgba(206, 178, 75, 0.3);
    background: rgba(206, 178, 75, 0.05);
}

.time-detail.full-width {
    grid-column: 1 / -1;
}

.time-detail-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold-primary);
    opacity: 0.7;
    margin-bottom: 6px;
}

.time-detail-value {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-main);
}

/* ─── Chat Legal ─── */
.chat-legal {
    text-align: center;
    font-size: 11px;
    opacity: 0.4;
    margin-top: 10px;
}

/* ─── Mute Button ─── */
#btn-mute .material-symbols-outlined {
    font-size: 20px;
}

#btn-mute.muted {
    color: var(--gold-primary);
    border-color: var(--gold-primary);
}

/* ─── Typing Indicator ─── */
.typing-indicator {
    display: flex;
    gap: 6px;
    padding: 16px 24px;
}

.typing-indicator .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold-primary);
    opacity: 0.4;
    animation: dotPulse 1.4s infinite ease-in-out;
}

.typing-indicator .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {

    0%,
    80%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    40% {
        opacity: 1;
        transform: scale(1.3);
    }
}

/* ─── Mic Listening State ─── */
.chat-tool-btn.listening {
    color: #ff4444;
    animation: micPulse 1s infinite;
}

@keyframes micPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE: Tablets & Small Desktops (≤1024px)
   ═══════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }

    .report-top-banner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .mini-numbers-row {
        border-left: none;
        border-right: none;
        padding: 0;
    }

    .choose-cards-new {
        gap: 24px;
    }

    .path-card {
        padding: 32px 28px;
    }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE: Mobile (≤768px)
   ═══════════════════════════════════════════════ */

@media (max-width: 768px) {

    /* Hide sidebar completely on mobile */
    .sidebar {
        display: none !important;
    }

    #main-content.with-sidebar {
        margin-left: 0;
    }

    /* Header adjustments */
    header {
        padding: 12px 16px;
        height: 60px;
    }

    .header-title {
        font-size: 16px;
    }

    .guide-info h3 {
        font-size: 13px;
    }

    .guide-info p {
        font-size: 10px;
    }

    .avatar-ring-mini {
        width: 34px;
        height: 34px;
    }

    .guide-profile {
        gap: 10px;
    }

    .top-tool-icons {
        display: none;
    }

    .header-action-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .btn-back-label {
        display: none;
    }

    .header-icons {
        gap: 6px;
    }

    /* Views height */
    .view {
        height: calc(100vh - 60px);
    }

    /* ─── Entry Form ─── */
    .entry-container {
        padding: 30px 16px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .avatar-ring-container {
        width: 100px;
        height: 100px;
        margin-bottom: 16px;
    }

    .avatar-badge {
        width: 28px;
        height: 28px;
    }

    .guidance-badge {
        font-size: 10px;
        padding: 4px 10px;
    }

    .form-card-new {
        padding: 24px 18px;
        border-radius: 18px;
    }

    .field-row-new {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-input-new {
        height: 48px;
        font-size: 14px;
        padding: 0 14px;
    }

    .form-select-new {
        height: 48px;
        font-size: 14px;
    }

    .submit-btn-gold {
        height: 52px;
        font-size: 13px;
    }

    .entry-footer {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
        margin-top: 24px;
    }

    .footer-stat {
        font-size: 9px;
    }

    /* ─── Choose Path ─── */
    .choose-center {
        padding: 40px 16px;
    }

    .choose-greeting {
        margin-bottom: 32px;
    }

    .choose-greeting h2 {
        font-size: 24px;
    }

    .choose-greeting p {
        font-size: 14px;
    }

    .choose-cards-new {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .path-card {
        padding: 28px 24px;
        border-radius: 20px;
    }

    .path-card-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 20px;
    }

    .path-card h3 {
        font-size: 18px;
    }

    .path-card p {
        font-size: 13px;
    }

    /* ─── Chat ─── */
    #chat-container {
        padding: 16px;
        gap: 20px;
    }

    .welcome-seeker-card {
        padding: 24px 20px;
        border-radius: 18px;
    }

    .welcome-seeker-card h2 {
        font-size: 16px;
    }

    .welcome-seeker-card p {
        font-size: 13px;
    }

    .msg-wrapper {
        max-width: 92%;
        gap: 10px;
    }

    .msg-bubble {
        padding: 14px 16px;
        font-size: 14px;
        line-height: 1.6;
    }

    .ai-avatar-icon,
    .user-avatar-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .chat-actions-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .action-btn-pill {
        font-size: 10px;
        padding: 6px 12px;
    }

    .chat-footer-new {
        padding: 12px 16px 20px;
    }

    .chat-input-pill-container {
        height: 52px;
        padding: 4px 8px;
    }

    .chat-input-pill-container input {
        font-size: 14px;
        padding: 0 10px;
    }

    .chat-send-pill-btn {
        width: 38px;
        height: 38px;
    }

    .chat-icon-btn {
        width: 34px;
        height: 34px;
    }

    .chat-legal {
        font-size: 10px;
    }

    /* ─── Report ─── */
    .report-wrapper {
        padding: 20px 16px;
    }

    .report-top-banner {
        flex-direction: column;
        padding: 24px 20px;
        gap: 20px;
        text-align: center;
        border-radius: 18px;
    }

    .gold-ring-big {
        width: 72px;
        height: 72px;
    }

    .lp-number {
        font-size: 36px;
    }

    .mini-numbers-row {
        border: none;
        padding: 0;
        justify-content: center;
        gap: 16px;
    }

    .report-main-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .report-card-new {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .report-card-new h3 {
        font-size: 14px;
    }

    .time-analysis-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE: Small Phones (≤480px)
   ═══════════════════════════════════════════════ */

@media (max-width: 480px) {
    header {
        padding: 10px 12px;
        height: 54px;
    }

    .view {
        height: calc(100vh - 54px);
    }

    .hero-title {
        font-size: 20px;
    }

    .form-card-new {
        padding: 20px 14px;
    }

    .time-picker-group {
        flex-wrap: wrap;
        gap: 6px;
    }

    .form-select-new {
        min-width: 60px;
    }

    .choose-greeting h2 {
        font-size: 20px;
    }

    .path-card {
        padding: 22px 18px;
    }

    .msg-wrapper {
        max-width: 96%;
    }

    .msg-bubble {
        padding: 12px 14px;
        font-size: 13px;
    }

    .chat-footer-new {
        padding: 8px 10px 16px;
    }

    .chat-input-pill-container {
        height: 48px;
    }

    .chat-input-pill-container input {
        font-size: 13px;
    }
}