* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

img {
    -webkit-user-drag: none;
    user-drag: none;
}

/* Allow text selection inside chat inputs */
input, textarea {
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
}

/* Subtle central ambient glow */
.center-glow {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 45%,
            rgba(255, 255, 255, 0.035) 0%,
            rgba(255, 255, 255, 0.01) 40%,
            transparent 70%);
    pointer-events: none;
    z-index: 1;
    animation: centerBreathe 10s ease-in-out infinite;
}

/* 3D Earth canvas */
#earth-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Particles canvas */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

/* Content */
.content {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 280px;
    height: auto;
    cursor: pointer;
    user-select: none;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.25));
    animation: softPulse 4s ease-in-out infinite;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), filter 0.3s ease;
}

.logo:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.5));
}

.logo:active {
    transform: scale(0.97);
}

.logo.playing {
    animation: musicPulse 3.5s ease-in-out infinite;
}

h1 {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 8px;
    text-transform: uppercase;
    opacity: 0.9;
    margin-top: 4px;
}

.tagline {
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 0.2;
    margin-top: -2px;
}

/* Soft logo pulse */
@keyframes softPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.25));
    }

    50% {
        filter: drop-shadow(0 0 32px rgba(255, 255, 255, 0.4));
    }
}

/* Active subtle white music pulse */
@keyframes musicPulse {
    0%, 100% {
        filter: drop-shadow(0 0 22px rgba(255, 255, 255, 0.3));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 34px rgba(255, 255, 255, 0.55));
        transform: scale(1.012);
    }
}

/* Breathing glow animations */
@keyframes earthGlowBreathe {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

@keyframes centerBreathe {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .logo {
        width: 240px;
    }

    h1 {
        font-size: 1.4rem;
        letter-spacing: 5px;
    }
}

/* --- LIVE CHAT DRAWER & SIDE ARROW BUTTON --- */
.chat-toggle-btn {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(14, 22, 38, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-right: none;
    border-radius: 12px 0 0 12px;
    padding: 12px 10px 12px 8px;
    color: #ffffff;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.3s ease, background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.chat-toggle-btn:hover {
    opacity: 1;
    background: rgba(22, 34, 60, 0.95);
    box-shadow: -4px 0 24px rgba(0, 180, 255, 0.4);
    transform: translateY(-50%) translateX(-3px);
}

.chat-arrow-icon {
    transition: transform 0.3s ease;
}

.chat-toggle-btn:hover .chat-arrow-icon {
    transform: translateX(-3px);
}

.chat-toggle-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #ffffff;
    opacity: 1;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* Chat Drawer Panel */
.chat-panel {
    position: fixed;
    top: 0;
    right: -380px;
    width: 350px;
    height: 100vh;
    z-index: 120;
    background: rgba(8, 12, 22, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-panel.open {
    right: 0;
}

/* Header */
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-indicator-dot {
    width: 8px;
    height: 8px;
    background-color: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.chat-header h2 {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: #ffffff;
    margin: 0;
}

.chat-close-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.chat-close-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* Username Bar */
.chat-user-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-user-bar label {
    font-size: 0.78rem;
    opacity: 0.6;
    white-space: nowrap;
}

.chat-user-bar input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 5px 8px;
    color: #ffffff;
    font-size: 0.82rem;
    outline: none;
    transition: border-color 0.2s;
}

.chat-user-bar input:focus {
    border-color: rgba(0, 180, 255, 0.6);
}

.save-user-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.75rem;
    padding: 5px 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.save-user-btn:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* Messages List */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.chat-msg {
    display: flex;
    flex-direction: column;
    max-width: 85%;
    font-size: 0.85rem;
    line-height: 1.35;
}

.chat-msg.self {
    align-self: flex-end;
}

.chat-msg.other {
    align-self: flex-start;
}

.chat-msg-author {
    font-size: 0.7rem;
    opacity: 0.45;
    margin-bottom: 3px;
    padding: 0 4px;
}

.chat-msg.self .chat-msg-author {
    text-align: right;
}

.chat-msg-bubble {
    padding: 8px 12px;
    border-radius: 12px;
    word-break: break-word;
}

.chat-msg.self .chat-msg-bubble {
    background: linear-gradient(135deg, rgba(0, 120, 235, 0.4), rgba(0, 80, 180, 0.5));
    border: 1px solid rgba(0, 160, 255, 0.3);
    color: #ffffff;
    border-bottom-right-radius: 2px;
}

.chat-msg.other .chat-msg-bubble {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e5e5e5;
    border-bottom-left-radius: 2px;
}

.chat-msg-time {
    font-size: 0.65rem;
    opacity: 0.4;
    margin-top: 3px;
    padding: 0 4px;
}

.chat-msg.self .chat-msg-time {
    text-align: right;
}

/* Form */
.chat-form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
}

.chat-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 9px 14px;
    color: #ffffff;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
}

.chat-form input:focus {
    border-color: rgba(255, 255, 255, 0.35);
}

.chat-send-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.chat-send-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* --- LEFT-SIDE MANIFESTO DRAWER & TOGGLE BUTTON --- */
.manifesto-toggle-btn {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(14, 22, 38, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-left: none;
    border-radius: 0 12px 12px 0;
    padding: 12px 8px 12px 10px;
    color: #ffffff;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.3s ease, background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.manifesto-toggle-btn:hover {
    opacity: 1;
    background: rgba(22, 34, 60, 0.95);
    box-shadow: 4px 0 24px rgba(255, 255, 255, 0.35);
    transform: translateY(-50%) translateX(3px);
}

.manifesto-arrow-icon {
    transition: transform 0.3s ease;
}

.manifesto-toggle-btn:hover .manifesto-arrow-icon {
    transform: translateX(3px);
}

.manifesto-toggle-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #ffffff;
    opacity: 1;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* Manifesto Drawer Panel (Left Side) */
.manifesto-panel {
    position: fixed;
    top: 0;
    left: -480px;
    width: 440px;
    max-width: 90vw;
    height: 100vh;
    z-index: 120;
    background: rgba(8, 12, 22, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.manifesto-panel.open {
    left: 0;
}

/* Header */
.manifesto-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.manifesto-header h2 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: #ffffff;
    margin: 0;
}

.manifesto-close-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.manifesto-close-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* Scrollable Content */
.manifesto-content {
    flex: 1;
    overflow-y: auto;
    padding: 22px 24px 30px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
}

.manifesto-content::-webkit-scrollbar {
    width: 5px;
}

.manifesto-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 4px;
}

/* Follow on X Button */
.manifesto-x-container {
    display: flex;
    justify-content: center;
    margin-bottom: 4px;
}

.manifesto-x-container.bottom {
    margin-top: 10px;
    margin-bottom: 0;
}

.x-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 20px;
    padding: 8px 18px;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.25s, border-color 0.25s, transform 0.2s;
}

.x-follow-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-1px);
}

/* Letter Typography */
.manifesto-letter {
    font-size: 0.9rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.domain-highlight {
    background: rgba(0, 180, 255, 0.18);
    color: #40c4ff;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid rgba(0, 180, 255, 0.3);
}

.manifesto-list {
    margin-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
}

.manifesto-list li {
    line-height: 1.45;
}

.signature {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 600px) {
    .manifesto-panel {
        width: 100%;
        max-width: 100%;
        left: -100%;
    }
}

/* --- BOTTOM TOKEN INFO DRAWER & TOGGLE BUTTON --- */
.token-toggle-btn {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(14, 22, 38, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    padding: 8px 16px;
    color: #ffffff;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.3s ease, background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.token-toggle-btn:hover {
    opacity: 1;
    background: rgba(22, 34, 60, 0.95);
    box-shadow: 0 -4px 24px rgba(255, 255, 255, 0.35);
    transform: translateX(-50%) translateY(-3px);
}

.token-arrow-icon {
    transition: transform 0.3s ease;
}

.token-toggle-btn:hover .token-arrow-icon {
    transform: translateY(-2px);
}

.token-toggle-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #ffffff;
    opacity: 1;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* Token Info Drawer Panel (Bottom) */
.token-panel {
    position: fixed;
    bottom: -360px;
    left: 50%;
    transform: translateX(-50%);
    width: 460px;
    max-width: 94vw;
    z-index: 120;
    background: rgba(8, 12, 22, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: none;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.token-panel.open {
    bottom: 0;
}

.token-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.token-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sol-dot {
    width: 8px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: solPulse 2s infinite;
}

@keyframes solPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.token-header h2 {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #ffffff;
    margin: 0;
}

.token-close-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.token-close-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.token-body {
    padding: 18px 20px 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* CA Input Box */
.ca-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ca-label {
    font-size: 0.75rem;
    opacity: 0.65;
    letter-spacing: 0.5px;
}

.ca-input-group {
    display: flex;
    gap: 8px;
}

.ca-input-group input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 8px 12px;
    color: #ffffff;
    font-family: monospace;
    font-size: 0.85rem;
    outline: none;
    user-select: text;
    -webkit-user-select: text;
}

.copy-ca-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.78rem;
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.copy-ca-btn:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* Platform Link Cards */
.token-links-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.token-platform-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 8px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    transition: background 0.25s, border-color 0.25s, transform 0.2s;
}

.token-platform-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.platform-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
}

.platform-img-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* --- FULL-SCREEN MANIFESTO PAGE STYLES --- */
body.manifesto-page {
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh;
}

#moon-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.manifesto-page-container {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    padding: 60px 24px 100px 24px;
    box-sizing: border-box;
}

.manifesto-card {
    max-width: 820px;
    width: 100%;
    background: rgba(8, 12, 22, 0.82);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 40px 48px 48px 48px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.manifesto-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 0px;
}

.manifesto-card-logo {
    width: 200px;
    height: auto;
}

.manifesto-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 6px;
    text-align: center;
    color: #ffffff;
    margin-top: -4px;
    margin-bottom: 0;
}

.manifesto-subtitle {
    font-size: 0.88rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    margin-top: -6px;
    margin-bottom: 8px;
}

.manifesto-letter.full-page {
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 0.98rem;
    line-height: 1.68;
}

.manifesto-toggle-btn.home-link {
    text-decoration: none;
}

@media (max-width: 600px) {
    .manifesto-page-container {
        padding: 40px 8px 80px 8px;
    }

    .manifesto-card {
        width: 100%;
        max-width: 100%;
        padding: 24px 16px;
        gap: 12px;
        border-radius: 16px;
    }

    .manifesto-card-logo {
        width: 155px;
    }

    .manifesto-page-title {
        font-size: 1.2rem;
        letter-spacing: 4px;
    }
}