/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--color-accent-primary);
    color: var(--color-text-on-accent);
    box-shadow: var(--shadow-glow-gold);
}

.btn-primary:hover {
    background: var(--color-accent-secondary);
    transform: translateY(-1px);
    box-shadow: 0 0 50px rgba(250, 204, 21, 0.4);
}

/* --- Cards --- */
.card {
    background: var(--color-bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--color-accent-primary);
    background: var(--color-bg-card-hover);
    transform: translateY(-2px);
}

/* --- SUPER ROBUST PREMIUM ENHANCEMENTS --- */

/* Sovereign Glass Panel */
.glass-panel-premium {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6), rgba(1, 10, 31, 0.5));
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-premium);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    position: relative;
    overflow: hidden;
}

.glass-panel-premium::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

/* Hyper Button (Viral Catalyst) */
.btn-hyper {
    background: linear-gradient(135deg, var(--color-accent-primary) 0%, var(--color-accent-secondary) 100%);
    position: relative;
    overflow: hidden;
    color: var(--color-text-on-accent);
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-glow-gold);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hyper:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 60px rgba(250, 204, 21, 0.5);
}

.btn-hyper::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* Hologram Text */
.hologram-text {
    background: linear-gradient(to bottom, #ffffff 0%, #e2e8f0 50%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    animation: hologram-flicker 4s infinite;
}

@keyframes hologram-flicker {

    0%,
    100% {
        opacity: 1;
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    }

    50% {
        opacity: 0.9;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    }

    52% {
        opacity: 0.8;
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
    }

    54% {
        opacity: 1;
    }
}

/* Particle Container */
.particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation: particle-float 1s ease-out forwards;
}

@keyframes particle-float {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

/* --- EVEY AI ASSISTANT (PROFESSIONAL REDESIGN) --- */
.evey-floating-container {
    position: fixed !important;
    top: unset !important;
    bottom: 40px !important;
    right: 40px !important;
    left: unset !important;
    z-index: 999999 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 15px !important;
    font-family: 'Inter', sans-serif !important;
    pointer-events: none !important;
    /* Allow clicks through empty areas */
}

.evey-orb-wrapper {
    width: 65px !important;
    height: 65px !important;
    position: relative !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.evey-orb-wrapper:hover {
    transform: scale(1.1) rotate(5deg);
}

.evey-orb {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #A855F7, #6D28D9);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.evey-orb::after {
    content: "V";
    color: #fff;
    font-weight: 900;
    font-size: 1.5rem;
    opacity: 0.8;
}

.evey-pulse {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 2px solid rgba(168, 85, 247, 0.2);
    animation: pulse-ring 2.5s infinite;
    z-index: 1;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.evey-chat-panel {
    width: 420px;
    height: 620px;
    background: #111827;
    /* Deep Navy/Black */
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: bottom right;
    overflow: hidden;
}

.evey-chat-panel.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.evey-header {
    background: linear-gradient(90deg, #8B5CF6, #D946EF);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.evey-header-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.evey-avatar-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.evey-header-text h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.evey-header-text p {
    margin: 0;
    font-size: 0.75rem;
    opacity: 0.8;
}

.evey-chat-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.05), transparent);
}

.evey-msg {
    max-width: 85%;
    padding: 16px 20px;
    border-radius: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    animation: msg-slide-in 0.4s ease-out forwards;
}

@keyframes msg-slide-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.evey-msg.assistant {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.03);
    color: #F1F5F9;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom-left-radius: 4px;
}

.evey-msg.user {
    align-self: flex-end;
    background: #6D28D9;
    color: #fff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(109, 40, 217, 0.3);
}

.msg-reasoning-container {
    margin-top: 12px;
    transition: all 0.3s ease;
}

.brief-toggle-btn {
    background: none;
    border: none;
    color: #A855F7;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.brief-toggle-btn:hover {
    opacity: 1;
}

.reasoning-text {
    font-size: 0.8rem;
    color: #94A3B8;
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 12px;
    border-left: 2px solid #8B5CF6;
    line-height: 1.4;
    display: none;
    /* Controlled by component state toggle */
}

.reasoning-text.visible {
    display: block;
}

.suggested-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.action-pill {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #E2E8F0;
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.action-pill:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: #8B5CF6;
    transform: translateY(-2px);
}

.evey-footer {
    padding: 24px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 12px;
}

.evey-input-wrapper {
    flex: 1;
    position: relative;
    background: #1F2937;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    padding: 4px 12px;
}

.evey-input-wrapper input {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    padding: 12px;
    font-size: 0.9rem;
    outline: none;
}

.evey-send-btn {
    background: #4B5563;
    border: none;
    border-radius: 12px;
    width: 44px;
    height: 44px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.evey-send-btn:hover {
    background: #8B5CF6;
    transform: scale(1.05);
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: #94A3B8;
    border-radius: 50%;
    animation: typing-bounce 1s infinite alternate;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-bounce {
    from {
        transform: translateY(0);
        opacity: 0.3;
    }

    to {
        transform: translateY(-5px);
        opacity: 1;
    }
}