/* =============================================
   $PURPLE - BonziBuddy Memecoin on Solana
   Windows XP Parody Site
   ============================================= */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --xp-blue: #0055E5;
    --xp-blue-dark: #003DB8;
    --xp-blue-light: #1A7AFF;
    --xp-green: #21A121;
    --xp-taskbar: #245EDC;
    --xp-start: #2F8E2F;
    --xp-window-bg: #ECE9D8;
    --xp-title-blue: #0054E3;
    --xp-title-blue2: #3A81F3;
    --xp-border: #0054E3;
    --xp-gray: #D4D0C8;
    --bonzi-purple: #9B4DBA;
    --bonzi-dark: #7B2D8E;
    --bonzi-light: #C48DD4;
    --font-xp: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-comic: 'Comic Neue', 'Comic Sans MS', cursive;
    --font-pixel: 'Press Start 2P', monospace;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: var(--font-xp);
}

/* --- Desktop --- */
.desktop {
    width: 100%;
    height: calc(100vh - 36px);
    background: linear-gradient(135deg, #245EDC 0%, #3A81F3 30%, #245EDC 60%, #1A5BC4 100%);
    position: relative;
    overflow: hidden;
    user-select: none;
}

/* Bliss-like grass texture hint */
.desktop::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35%;
    background: linear-gradient(180deg, transparent, rgba(33, 161, 33, 0.15));
    pointer-events: none;
}

/* --- Desktop Bonzi Decorations --- */
.desktop-bonzi-deco {
    position: absolute;
    z-index: 0;
    opacity: 0.12;
    pointer-events: none;
    filter: grayscale(0.3);
}

.deco-1 {
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    animation: decoFloat1 8s ease-in-out infinite;
}

.deco-2 {
    top: 15%;
    right: 8%;
    animation: decoFloat2 10s ease-in-out infinite;
}

.deco-bonzi-img {
    width: 120px;
    height: auto;
    border-radius: 8px;
}

@keyframes decoFloat1 {
    0%, 100% { transform: translateX(-50%) translateY(0) rotate(0deg); }
    50% { transform: translateX(-50%) translateY(-15px) rotate(3deg); }
}

@keyframes decoFloat2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(-3deg); }
}

/* --- Desktop Icons --- */
.desktop-icons {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
    position: relative;
    z-index: 1;
    max-height: calc(100vh - 80px);
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.1s;
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.15);
}

.desktop-icon:active {
    background: rgba(255, 255, 255, 0.25);
}

.icon-img {
    font-size: 2rem;
    margin-bottom: 4px;
    filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.5));
}

.desktop-icon span {
    font-size: 0.7rem;
    color: white;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    line-height: 1.3;
    word-wrap: break-word;
}

/* --- BonziBuddy Character --- */
.bonzi-container {
    position: fixed;
    bottom: 50px;
    right: 40px;
    z-index: 500;
    cursor: grab;
    transition: bottom 0.3s ease;
}

.bonzi-container:active {
    cursor: grabbing;
}

.bonzi-character {
    position: relative;
    animation: bonziBounce 3s ease-in-out infinite;
}

.bonzi-img {
    width: 120px;
    height: auto;
    filter: drop-shadow(3px 3px 6px rgba(0,0,0,0.4));
    transition: transform 0.2s;
}

.bonzi-img:hover {
    transform: scale(1.08);
}

.bonzi-img.clicked {
    animation: bonziWiggle 0.4s ease;
}

@keyframes bonziBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes bonziWiggle {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-10deg) scale(1.1); }
    75% { transform: rotate(10deg) scale(1.1); }
}

/* Speech Bubble */
.bonzi-speech {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 10px;
    background: #FFFFCC;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 12px 16px;
    min-width: 220px;
    max-width: 280px;
    box-shadow: 3px 3px 8px rgba(0,0,0,0.3);
    font-family: var(--font-comic);
    font-size: 0.85rem;
    line-height: 1.5;
    color: #333;
    opacity: 1;
    transition: opacity 0.3s;
}

.bonzi-speech.hidden {
    opacity: 0;
    pointer-events: none;
}

.speech-arrow {
    position: absolute;
    bottom: -10px;
    right: 30px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #FFFFCC;
}

.speech-arrow::before {
    content: '';
    position: absolute;
    bottom: 2px;
    left: -12px;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid #333;
    z-index: -1;
}

/* --- Windows XP Windows --- */
.xp-window {
    position: absolute;
    background: var(--xp-window-bg);
    border: 1px solid var(--xp-border);
    border-radius: 8px 8px 0 0;
    box-shadow: 3px 3px 12px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,0,0,0.2);
    min-width: 400px;
    max-width: 780px;
    max-height: 85vh;
    z-index: 100;
    overflow: hidden;
    resize: both;
}

.window-titlebar {
    background: linear-gradient(180deg, #0997FF 0%, #0054E3 8%, #0054E3 88%, #003DB8 100%);
    padding: 4px 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: move;
    border-radius: 8px 8px 0 0;
    min-height: 28px;
}

.virus-titlebar {
    background: linear-gradient(180deg, #FF5555 0%, #CC0000 8%, #CC0000 88%, #990000 100%);
}

.window-title {
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.window-icon {
    margin-right: 4px;
}

.window-controls {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}

.win-btn {
    width: 22px;
    height: 22px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.win-minimize {
    background: linear-gradient(180deg, #3C8CF4 0%, #2264D1 100%);
}

.win-maximize {
    background: linear-gradient(180deg, #3C8CF4 0%, #2264D1 100%);
}

.win-close {
    background: linear-gradient(180deg, #E08356 0%, #C5442A 100%);
}

.win-btn:hover {
    filter: brightness(1.2);
}

.win-btn:active {
    filter: brightness(0.9);
}

/* Window toolbar (IE style) */
.window-toolbar {
    background: var(--xp-gray);
    padding: 2px 8px;
    border-bottom: 1px solid #aaa;
    font-size: 0.72rem;
    display: flex;
    gap: 16px;
    color: #333;
}

.window-toolbar span:hover {
    text-decoration: underline;
    cursor: pointer;
}

.window-address {
    background: var(--xp-gray);
    padding: 3px 8px;
    border-bottom: 1px solid #aaa;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
}

.address-label {
    color: #555;
    font-size: 0.65rem;
}

.address-bar {
    flex: 1;
    background: white;
    border: 1px solid #7F9DB9;
    padding: 2px 6px;
    font-size: 0.7rem;
    color: #333;
    font-family: var(--font-xp);
}

.go-btn {
    background: var(--xp-gray);
    border: 1px solid #aaa;
    padding: 2px 10px;
    font-size: 0.65rem;
    cursor: pointer;
}

.window-content {
    padding: 16px;
    overflow-y: auto;
    max-height: calc(75vh - 90px);
    font-size: 0.85rem;
    line-height: 1.6;
    color: #333;
    background: white;
}

/* --- About Page --- */
.about-page h1 {
    font-family: var(--font-comic);
    color: var(--bonzi-purple);
    font-size: 1.8rem;
    margin: 0;
}

.about-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px dashed var(--bonzi-light);
}

.about-bonzi-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid var(--bonzi-light);
    box-shadow: 2px 2px 6px rgba(0,0,0,0.2);
}

/* About page images */
.about-promo-img {
    text-align: center;
    margin: 16px 0;
}

.promo-img {
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
    border: 3px solid var(--bonzi-light);
    border-radius: 8px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
}

.about-screenshot {
    text-align: center;
    margin: 16px 0;
    background: #f0e8f5;
    padding: 12px;
    border-radius: 8px;
    border: 2px dashed var(--bonzi-light);
}

.screenshot-img {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
    border-radius: 4px;
}

.screenshot-caption {
    font-size: 0.7rem;
    color: #888;
    font-style: italic;
    margin-top: 6px;
}

.tagline {
    font-family: var(--font-comic);
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
}

.version {
    font-size: 0.7rem;
    color: #999;
    margin-top: 4px;
}

.about-content h2 {
    font-family: var(--font-comic);
    color: var(--bonzi-dark);
    margin: 16px 0 8px;
    font-size: 1.1rem;
}

.about-content p {
    margin-bottom: 10px;
}

.warning-box {
    background: #FFF3CD;
    border: 2px solid #FFC107;
    border-radius: 6px;
    padding: 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 16px 0;
}

.warning-icon {
    font-size: 1.5rem;
}

.warning-box .small {
    font-size: 0.75rem;
    color: #666;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.stat-item {
    text-align: center;
    background: linear-gradient(135deg, var(--bonzi-light), var(--bonzi-purple));
    padding: 12px 8px;
    border-radius: 8px;
    color: white;
}

.stat-number {
    font-family: var(--font-comic);
    font-size: 1.4rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.65rem;
    opacity: 0.9;
    margin-top: 4px;
}

/* --- Meme Gallery --- */
.meme-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.meme-card {
    background: #111;
    border: 3px solid #444;
    border-radius: 6px;
    overflow: hidden;
    text-align: center;
    position: relative;
    transition: transform 0.2s;
}

.meme-card:hover {
    transform: scale(1.03);
}

.meme-img-placeholder {
    font-size: 4rem;
    padding: 0;
    background: linear-gradient(135deg, var(--bonzi-dark), #2a1a3a);
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.meme-real-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.meme-card:hover .meme-real-img {
    transform: scale(1.08);
}

.meme-text-top, .meme-text-bottom {
    font-family: 'Impact', 'Arial Black', sans-serif;
    color: white;
    text-shadow: 2px 2px 0 black, -2px -2px 0 black, 2px -2px 0 black, -2px 2px 0 black;
    padding: 8px;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.3;
}

.meme-text-top {
    background: rgba(0,0,0,0.5);
}

.meme-text-bottom {
    background: rgba(0,0,0,0.7);
}

/* --- Notepad --- */
.notepad-content {
    background: white;
    font-family: 'Courier New', monospace;
    padding: 0;
}

.notepad-text {
    padding: 8px;
    white-space: pre-wrap;
    font-size: 0.78rem;
    line-height: 1.5;
    color: #222;
}

.notepad-text pre {
    font-family: 'Courier New', monospace;
    font-size: 0.78rem;
    white-space: pre-wrap;
}

/* --- Chat Window --- */
.chat-window {
    display: flex;
    flex-direction: column;
    padding: 0;
    height: 350px;
    background: white;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    background: #F5F5F5;
    border-bottom: 1px solid #ddd;
}

.chat-msg {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    line-height: 1.5;
    max-width: 85%;
    font-family: var(--font-comic);
}

.bonzi-msg {
    background: #E8D5F5;
    border: 1px solid var(--bonzi-light);
    margin-right: auto;
}

.user-msg {
    background: #DCF8C6;
    border: 1px solid #B2D89C;
    margin-left: auto;
    text-align: right;
}

.chat-name {
    font-weight: 700;
    font-size: 0.7rem;
    display: block;
    margin-bottom: 2px;
}

.bonzi-msg .chat-name {
    color: var(--bonzi-dark);
}

.user-msg .chat-name {
    color: #2a6a2a;
}

.chat-input-area {
    display: flex;
    padding: 8px;
    gap: 6px;
    background: var(--xp-gray);
}

.chat-input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #7F9DB9;
    border-radius: 3px;
    font-size: 0.82rem;
    font-family: var(--font-comic);
    outline: none;
}

.chat-input:focus {
    border-color: var(--bonzi-purple);
    box-shadow: 0 0 3px rgba(155, 77, 186, 0.3);
}

.chat-send {
    background: linear-gradient(180deg, var(--bonzi-light), var(--bonzi-purple));
    color: white;
    border: 1px solid var(--bonzi-dark);
    padding: 6px 16px;
    border-radius: 3px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.8rem;
}

.chat-send:hover {
    filter: brightness(1.1);
}

/* --- Soundboard --- */
.soundboard {
    text-align: center;
}

.soundboard-info {
    margin-bottom: 16px;
    font-size: 0.8rem;
    color: #666;
}

.sound-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.sound-btn {
    background: linear-gradient(180deg, #F0E0F8, #D4B0E8);
    border: 2px solid var(--bonzi-purple);
    border-radius: 8px;
    padding: 14px 8px;
    font-family: var(--font-comic);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--bonzi-dark);
    cursor: pointer;
    transition: all 0.15s;
}

.sound-btn:hover {
    background: linear-gradient(180deg, var(--bonzi-light), var(--bonzi-purple));
    color: white;
    transform: scale(1.05);
}

.sound-btn:active {
    transform: scale(0.95);
}

/* --- Virus Prank --- */
.virus-content {
    background: var(--xp-window-bg);
}

.virus-alert {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.virus-icon {
    font-size: 3rem;
    color: #CC0000;
}

.virus-text h2 {
    color: #CC0000;
    font-size: 1rem;
    margin-bottom: 6px;
}

.virus-text p {
    font-size: 0.82rem;
    margin-bottom: 8px;
}

.virus-text .small {
    font-size: 0.7rem;
    color: #888;
    font-style: italic;
}

.virus-progress {
    width: 100%;
    height: 18px;
    background: white;
    border: 1px solid #7F9DB9;
    border-radius: 2px;
    overflow: hidden;
    margin: 10px 0;
}

.virus-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #21A121, #4CAF50);
    transition: width 0.5s;
    background-size: 20px 20px;
    background-image: linear-gradient(
        45deg,
        rgba(255,255,255,0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255,255,255,0.15) 50%,
        rgba(255,255,255,0.15) 75%,
        transparent 75%
    );
    animation: barberpole 1s linear infinite;
}

@keyframes barberpole {
    from { background-position: 0 0; }
    to { background-position: 20px 0; }
}

.virus-status {
    font-size: 0.72rem;
    color: #555;
    font-style: italic;
}

.virus-buttons {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.virus-btn {
    background: var(--xp-gray);
    border: 1px solid #888;
    border-radius: 3px;
    padding: 6px 20px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: background 0.1s;
}

.virus-btn:hover {
    background: #e0e0e0;
}

.virus-btn:active {
    background: #ccc;
}

/* --- Taskbar --- */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 36px;
    background: linear-gradient(180deg, #245EDC 0%, #1941A5 3%, #2B5DD7 5%, #245EDC 100%);
    display: flex;
    align-items: center;
    padding: 0 4px;
    z-index: 999;
    border-top: 1px solid #5C8AE6;
}

.start-btn {
    background: linear-gradient(180deg, #B06EC5 0%, #9B4DBA 10%, #7B2D8E 90%, #5a1a6e 100%);
    border: none;
    border-radius: 0 8px 8px 0;
    padding: 2px 12px;
    height: 30px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: white;
    font-weight: 700;
    font-size: 0.82rem;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.4);
    font-family: var(--font-xp);
    transition: filter 0.1s;
}

.start-btn:hover {
    filter: brightness(1.1);
}

.start-btn:active {
    filter: brightness(0.9);
}

.start-logo {
    font-size: 1rem;
}

.taskbar-items {
    flex: 1;
    display: flex;
    gap: 2px;
    padding: 0 8px;
    overflow: hidden;
}

.taskbar-item {
    background: linear-gradient(180deg, #3D6FE1 0%, #2850B8 100%);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 2px;
    padding: 2px 12px;
    color: white;
    font-size: 0.68rem;
    cursor: pointer;
    white-space: nowrap;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    height: 26px;
}

.taskbar-item:hover {
    background: linear-gradient(180deg, #4A7FE8 0%, #3560C5 100%);
}

.taskbar-item.active {
    background: linear-gradient(180deg, #2850B8 0%, #1A3D9E 100%);
    border-bottom: 2px solid #90B0FF;
}

.system-tray {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(180deg, #0E6AEC 0%, #1553CA 100%);
    padding: 0 10px;
    height: 30px;
    border-left: 1px solid rgba(255,255,255,0.15);
}

.tray-icon {
    font-size: 0.75rem;
    cursor: default;
}

.tray-ticker {
    color: #90FF90;
    font-size: 0.65rem;
    font-weight: 700;
    cursor: default;
    animation: tickerPulse 2s ease-in-out infinite;
}

@keyframes tickerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.tray-clock {
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 60px;
    text-align: center;
}

/* --- Start Menu --- */
.start-menu {
    position: fixed;
    bottom: 36px;
    left: 0;
    width: 300px;
    background: white;
    border: 2px solid #245EDC;
    border-radius: 8px 8px 0 0;
    box-shadow: 4px 4px 12px rgba(0,0,0,0.4);
    z-index: 1000;
    overflow: hidden;
}

.start-header {
    background: linear-gradient(180deg, #2470DE, #1A55C4);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.start-avatar {
    width: 40px;
    height: 40px;
    border: 2px solid white;
    border-radius: 6px;
    background: var(--bonzi-light);
}

.start-username {
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}

.start-items {
    padding: 6px 0;
}

.start-item {
    padding: 8px 16px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.1s;
    color: #333;
}

.start-item:hover {
    background: var(--xp-blue);
    color: white;
}

.start-divider {
    height: 1px;
    background: #ddd;
    margin: 4px 12px;
}

.start-footer {
    background: linear-gradient(180deg, #3D80F0, #2460D0);
    padding: 8px 12px;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
}

.start-footer:hover {
    color: white;
}

/* --- Live Ticker --- */
.live-ticker {
    background: #0a0a14;
    border: 2px solid var(--bonzi-purple);
    border-radius: 8px;
    padding: 14px;
    margin: 12px 0 16px;
    color: white;
    font-family: 'Courier New', monospace;
}

.ticker-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.ticker-label {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--bonzi-light);
}

.ticker-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.ticker-change {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.ticker-change.positive {
    color: #00e676;
    background: rgba(0, 230, 118, 0.12);
}

.ticker-change.negative {
    color: #ff5252;
    background: rgba(255, 82, 82, 0.12);
}

.mini-chart {
    margin: 6px 0;
    border-radius: 4px;
    overflow: hidden;
    background: #0b0e11;
    border: 1px solid #1a1d23;
}

.mini-chart canvas {
    width: 100%;
    height: 220px;
    display: block;
}

.ticker-stats-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    color: #888;
    margin-top: 6px;
    flex-wrap: wrap;
    gap: 4px;
}

.ticker-stats-row strong {
    color: #ccc;
}

/* --- Contract Address Box --- */
.contract-address-box {
    background: linear-gradient(135deg, #f0e8f5, #e8d5f5);
    border: 2px solid var(--bonzi-purple);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 16px;
}

.contract-label {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--bonzi-dark);
    display: block;
    margin-bottom: 6px;
}

.contract-row {
    display: flex;
    gap: 4px;
}

.contract-input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #7F9DB9;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.72rem;
    background: white;
    color: #333;
    outline: none;
}

.contract-copy-btn {
    background: linear-gradient(180deg, var(--bonzi-light), var(--bonzi-purple));
    color: white;
    border: 1px solid var(--bonzi-dark);
    padding: 6px 14px;
    border-radius: 3px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.75rem;
    white-space: nowrap;
    transition: filter 0.1s;
}

.contract-copy-btn:hover {
    filter: brightness(1.15);
}

.contract-copy-btn:active {
    filter: brightness(0.9);
}

.contract-feedback {
    font-size: 0.7rem;
    color: var(--xp-green);
    font-weight: 700;
    margin-top: 4px;
    display: block;
    min-height: 1em;
}

/* --- Buy Links --- */
.buy-links {
    display: flex;
    gap: 10px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.buy-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.15s;
    font-family: var(--font-comic);
    text-align: center;
}

.buy-pumpfun {
    background: linear-gradient(135deg, #00c853, #00e676);
    border: 2px solid #00a844;
    color: #000;
    font-weight: 700;
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* --- Tokenomics Page --- */
.tokenomics-page {
    text-align: center;
}

.tokenomics-title {
    font-family: var(--font-comic);
    color: var(--bonzi-dark);
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.tokenomics-subtitle {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.tokenomics-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.pie-chart-container {
    position: relative;
    width: 180px;
    height: 180px;
}

.pie-chart {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: conic-gradient(
        #9B4DBA 0deg 306deg,
        #E74C3C 306deg 324deg,
        #F39C12 324deg 342deg,
        #2ECC71 342deg 360deg
    );
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.pie-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
}

.pie-center-icon {
    font-size: 1.2rem;
}

.pie-center-text {
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--bonzi-dark);
}

.token-legend {
    text-align: left;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.82rem;
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    flex-shrink: 0;
}

.legend-label {
    flex: 1;
    color: #333;
}

.legend-pct {
    font-weight: 700;
    color: var(--bonzi-dark);
}

.token-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.token-info-card {
    background: var(--xp-window-bg);
    border: 1px solid #bbb;
    border-radius: 6px;
    padding: 12px 8px;
    text-align: center;
}

.info-icon {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.info-label {
    font-size: 0.65rem;
    color: #888;
    margin-bottom: 2px;
}

.info-value {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--bonzi-dark);
}

.info-value.burn {
    color: #E74C3C;
}

/* --- Roadmap Page --- */
.roadmap-page {
    padding: 4px;
}

.roadmap-title {
    font-family: var(--font-comic);
    color: var(--bonzi-dark);
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.roadmap-subtitle {
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 12px;
    font-style: italic;
}

.roadmap-phase {
    margin-bottom: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.phase-header {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.phase-header h3 {
    font-size: 0.85rem;
    color: white;
}

.phase-icon {
    font-size: 1.1rem;
}

.phase-complete {
    background: linear-gradient(135deg, #2ECC71, #27ae60);
}

.phase-active {
    background: linear-gradient(135deg, var(--bonzi-purple), var(--bonzi-dark));
}

.phase-locked {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

.phase-items {
    padding: 10px 14px;
    background: white;
}

.phase-item {
    padding: 4px 0;
    font-size: 0.8rem;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

.phase-item:last-child {
    border-bottom: none;
}

.phase-item.done {
    color: #27ae60;
}

/* --- Community Page --- */
.community-page {
    text-align: center;
}

.community-title {
    font-family: var(--font-comic);
    color: var(--bonzi-dark);
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.community-subtitle {
    color: #666;
    font-size: 0.82rem;
    margin-bottom: 20px;
}

.community-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.community-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--xp-window-bg);
    border: 2px solid #ccc;
    border-radius: 8px;
    padding: 16px 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.15s;
}

.community-card:hover {
    border-color: var(--bonzi-purple);
    background: #f0e8f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.community-icon {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.community-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--bonzi-dark);
    margin-bottom: 4px;
}

.community-desc {
    font-size: 0.68rem;
    color: #888;
    line-height: 1.3;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .xp-window {
        min-width: 300px;
        max-width: 95vw;
        max-height: 70vh;
        left: 2% !important;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .meme-gallery {
        grid-template-columns: 1fr;
    }

    .sound-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bonzi-container {
        right: 10px;
    }

    .bonzi-img {
        width: 80px;
    }

    .bonzi-speech {
        min-width: 180px;
        max-width: 200px;
        font-size: 0.75rem;
    }

    .desktop-bonzi-deco {
        display: none;
    }

    .promo-img, .screenshot-img {
        max-height: 180px;
    }

    .token-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .community-links {
        grid-template-columns: 1fr;
    }

    .buy-links {
        flex-direction: column;
    }

    .contract-row {
        flex-direction: column;
    }

    .tray-ticker {
        display: none;
    }
}

@media (max-width: 480px) {
    .sound-grid {
        grid-template-columns: 1fr;
    }

    .desktop-icons {
        gap: 8px;
        padding: 10px;
    }

    .desktop-icon {
        width: 65px;
    }

    .token-info-grid {
        grid-template-columns: 1fr;
    }

    .pie-chart, .pie-chart-container {
        width: 140px;
        height: 140px;
    }
}
