:root {
    --primary: #ff3e9d;
    --secondary: #6b3dff;
    --accent: #00ffb3;
    --accent2: #ffdd00;
    --background: #0c0c14;
    --text: #ffffff;
    --muted-text: #a0a0b8;
    --card-bg: rgba(30, 30, 50, 0.5);
    --overlay-bg: rgba(12, 12, 20, 0.9);
    --neon-glow: 0 0 5px #00ffb3, 0 0 10px #00ffb3, 0 0 15px #00ffb3;
    --neon-glow-pink: 0 0 5px #ff3e9d, 0 0 10px #ff3e9d, 0 0 15px #ff3e9d;
}

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

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

@keyframes glitch {
    0% {
        transform: translate(0);
        text-shadow: none;
    }
    20% {
        transform: translate(-2px, 2px);
        text-shadow: 2px 0 #ff3e9d, -2px 0 #00ffb3;
    }
    40% {
        transform: translate(-2px, -2px);
        text-shadow: 2px 0 #00ffb3, -2px 0 #ff3e9d;
    }
    60% {
        transform: translate(2px, 2px);
        text-shadow: -2px 0 #ff3e9d, 2px 0 #00ffb3;
    }
    80% {
        transform: translate(2px, -2px);
        text-shadow: -2px 0 #00ffb3, 2px 0 #ff3e9d;
    }
    100% {
        transform: translate(0);
        text-shadow: none;
    }
}

@keyframes rainbow {
    0% { color: #ff3e9d; }
    25% { color: #ffdd00; }
    50% { color: #00ffb3; }
    75% { color: #6b3dff; }
    100% { color: #ff3e9d; }
}

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

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

@keyframes typewriter {
    0%, 100% { content: '_'; }
    25% { content: '|'; }
    50% { content: '\\'; }
    75% { content: '/'; }
}

@keyframes rotateHue {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

@keyframes loadingDots {
    0%, 100% { content: '.'; }
    33% { content: '..'; }
    66% { content: '...'; }
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(107, 61, 255, 0.15), transparent 70%),
        radial-gradient(circle at 80% 20%, rgba(255, 62, 157, 0.1), transparent 40%);
    position: relative;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIj48ZmlsdGVyIGlkPSJhIiB4PSIwIiB5PSIwIj48ZmVUdXJidWxlbmNlIGJhc2VGcmVxdWVuY3k9Ii4wOSIgbnVtT2N0YXZlcz0iMyIgc3RpdGNoVGlsZXM9InN0aXRjaCIgdHlwZT0iZnJhY3RhbE5vaXNlIi8+PGZlQ29sb3JNYXRyaXggdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjEgMCAwIDAgMCAwIDEgMCAwIDAgMCAwIDEgMCAwIDAgMCAwIDIuMSAwIi8+PC9maWx0ZXI+PHJlY3QgZmlsbD0iIzIyMiIgZmlsdGVyPSJ1cmwoI2EpIiBvcGFjaXR5PSIuMDUiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiLz48L3N2Zz4=');
    opacity: 0.4;
    pointer-events: none;
    z-index: -1;
}

.crypto-particles {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(255, 221, 0, 0.05) 5px, transparent 5px),
        radial-gradient(circle at 20% 30%, rgba(0, 255, 179, 0.05) 3px, transparent 3px),
        radial-gradient(circle at 30% 70%, rgba(255, 62, 157, 0.05) 4px, transparent 4px),
        radial-gradient(circle at 70% 40%, rgba(107, 61, 255, 0.05) 6px, transparent 6px),
        radial-gradient(circle at 80% 80%, rgba(255, 221, 0, 0.05) 4px, transparent 4px);
    z-index: -1;
    opacity: 0.7;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent);
    text-shadow: var(--neon-glow);
}

.highlight {
    color: var(--accent);
    position: relative;
}

.highlight:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.rainbow-text {
    animation: rainbow 3s infinite;
    font-style: italic;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.glitch-text {
    position: relative;
    display: inline-block;
    animation: glitch 3s infinite;
    font-family: 'Rubik Glitch', cursive;
}

.rekt-text {
    font-style: italic;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
}

.rekt-animation {
    display: inline-block;
    transform: rotate(-5deg);
    color: var(--primary);
    font-weight: bold;
    text-shadow: var(--neon-glow-pink);
    animation: pulse 2s infinite;
}

.no-cap {
    display: inline-block;
    font-style: italic;
    color: var(--accent);
    margin: 0 5px;
    transform: rotate(-2deg);
}

.fr-tag {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    padding: 0 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    vertical-align: middle;
    margin-left: 5px;
    transform: rotate(2deg);
}

.blink-text {
    animation: blink 1s infinite;
}

.typewriter::after {
    content: '_';
    animation: typewriter 1s infinite step-end;
}

.neon-border {
    border: 1px solid var(--accent) !important;
    box-shadow: var(--neon-glow);
}

.pulse-icon {
    animation: pulse 2s infinite;
}

button {
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    border: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
}

/* Header styles */
header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(12, 12, 20, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.glitch-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(107, 61, 255, 0.2), transparent);
    background-size: 200% 100%;
    animation: glitch-bg 5s infinite linear;
    pointer-events: none;
    z-index: -1;
}

@keyframes glitch-bg {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    position: relative;
    display: flex;
    align-items: center;
}

.header-cabbage-logo {
    height: 36px;
    width: auto;
    margin-right: 12px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 255, 179, 0.5);
}

.text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.header-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease-in-out;
}

.header-link:hover {
    transform: scale(1.02);
}

.header-link:hover .header-cabbage-logo {
    box-shadow: 0 0 15px rgba(0, 255, 179, 0.8);
}

.header-link:hover .glitch-text {
    text-shadow: 2px 0 var(--primary), -2px 0 var(--secondary);
}

.logo span {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.collab-tag {
    font-size: 14px;
    color: var(--muted-text);
    position: relative;
    margin-top: 5px;
    left: 0;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav a.active:after, nav a:hover:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    box-shadow: var(--neon-glow);
}

.skull {
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

/* Hero section styles */
.hero {
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-emoji {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.emoji-float {
    position: absolute;
    font-size: 3rem;
    opacity: 0.2;
    animation: float 5s ease-in-out infinite;
}

.emoji-float:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.emoji-float:nth-child(2) {
    top: 30%;
    left: 20%;
    animation-delay: 1s;
}

.emoji-float:nth-child(3) {
    top: 20%;
    right: 15%;
    animation-delay: 2s;
}

.emoji-float:nth-child(4) {
    bottom: 30%;
    left: 15%;
    animation-delay: 3s;
}

.emoji-float:nth-child(5) {
    bottom: 20%;
    right: 10%;
    animation-delay: 4s;
}

.laser-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
}

.laser-lines:before, .laser-lines:after {
    content: '';
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    height: 1px;
    width: 100%;
    left: 0;
    animation: laser-move 10s linear infinite;
    opacity: 0.3;
}

.laser-lines:before {
    top: 30%;
    animation-delay: 0s;
}

.laser-lines:after {
    top: 70%;
    animation-delay: 5s;
}

@keyframes laser-move {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 0 15px rgba(255, 62, 157, 0.3));
}

.mega-text {
    transform: perspective(500px) rotateX(5deg);
    text-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-size: 1.5rem;
    color: var(--muted-text);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.small-caps {
    font-variant: small-caps;
    font-weight: bold;
    color: var(--accent);
}

.wagmi {
    display: inline-block;
    background: var(--accent);
    color: var(--background);
    padding: 0 5px;
    border-radius: 4px;
    font-size: 0.7em;
    font-weight: bold;
    vertical-align: middle;
    margin-left: 3px;
    transform: rotate(2deg);
}

.small-text {
    font-size: 0.7em;
    opacity: 0.7;
    vertical-align: super;
}

/* Input section styles */
.input-section {
    max-width: 800px;
    margin: 0 auto 40px;
}

.input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

#memecoin-address {
    padding: 15px 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    font-size: 16px;
    width: 100%;
    transition: all 0.3s ease;
    font-family: 'VT323', monospace;
    letter-spacing: 1px;
}

#memecoin-address:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 255, 179, 0.3);
    background: rgba(0, 255, 179, 0.05);
}

.dropdown {
    position: relative;
    width: 100%;
}

.dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--muted-text);
    font-size: 16px;
    text-align: left;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-toggle:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.dropdown-toggle:hover:before {
    left: 100%;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-top: 5px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 179, 0.3);
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 15px 20px;
    cursor: pointer;
    transition: background 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
    text-shadow: var(--neon-glow);
}

.resurrect-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 40px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    font-size: 18px;
    font-weight: 700;
    border-radius: 10px;
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
}

.btn-aura {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    pointer-events: none;
    animation: rotate 10s linear infinite;
    z-index: 0;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.resurrect-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
    z-index: 1;
}

.resurrect-btn span, .resurrect-btn i {
    position: relative;
    z-index: 2;
}

.resurrect-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 30px rgba(255, 62, 157, 0.5);
}

.resurrect-btn:hover:before {
    left: 100%;
}

.resurrect-btn i {
    font-size: 20px;
    animation: float 2s ease-in-out infinite;
}

/* Recent searches */
.recent-searches {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    position: relative;
}

.recent-searches h3 {
    font-size: 18px;
    color: var(--muted-text);
    margin-bottom: 15px;
    display: inline-block;
    position: relative;
}

.recent-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.recent-item {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 14px;
    color: var(--muted-text);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.recent-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: var(--neon-glow);
}

/* Resurrection modal */
.resurrection-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.resurrection-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh; /* Slightly smaller to ensure fit */
    overflow-y: auto; /* Enable scrolling if content is too tall */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    border: 1px solid rgba(107, 61, 255, 0.3);
    /* Improve scrolling behavior on touch devices */
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
}

.cyber-frame {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid var(--accent);
    border-radius: 20px;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.cyber-frame:before, .cyber-frame:after {
    content: '';
    position: absolute;
    background: var(--accent);
}

.cyber-frame:before {
    top: -2px;
    left: 20px;
    width: 40px;
    height: 2px;
    box-shadow: var(--neon-glow);
}

.cyber-frame:after {
    bottom: -2px;
    right: 20px;
    width: 40px;
    height: 2px;
    box-shadow: var(--neon-glow);
}

.loading-stage, .result-stage {
    padding: 25px;
    display: none;
    position: relative;
    box-sizing: border-box;
    width: 100%;
    flex: 1;
    overflow: auto;
}

.loading-stage.active, .result-stage.active {
    display: flex;
    flex-direction: column;
}

/* Grave animation */
.grave-animation {
    position: relative;
    width: 160px;
    height: 220px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.grave {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 100px;
    background: #666;
    border-radius: 10px 10px 0 0;
    z-index: 2;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.grave:before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: #666;
    border-radius: 50%;
}

.grave:after {
    content: 'RIP';
    position: absolute;
    top: 30px;
    width: 100%;
    text-align: center;
    color: #333;
    font-weight: bold;
}

.ground {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 30px;
    background: #553311;
    z-index: 1;
    box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.5);
}

.jesus-figure {
    display: none;
}

.coin-rising {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 194, 0.8);
    border-radius: 50%;
    opacity: 0;
    transition: transform 2s ease, opacity 1s ease;
    z-index: 4;
    box-shadow: 0 0 30px rgba(255, 255, 0, 0.5);
}

.laser-beam {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 0;
    background: var(--accent);
    z-index: 2;
    opacity: 0;
    box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
}

.loading-animation .coin-rising {
    opacity: 1;
    transform: translateX(-50%) translateY(-250px);
}

.loading-animation .laser-beam {
    opacity: 0.8;
    height: 400px;
    animation: beam-pulse 1s infinite;
}

@keyframes beam-pulse {
    0%, 100% { opacity: 0.5; width: 2px; }
    50% { opacity: 0.8; width: 4px; }
}

/* Loading messages */
.loading-messages {
    text-align: center;
    margin-bottom: 20px;
    min-height: auto;
    font-family: 'VT323', monospace;
    font-size: 20px;
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 10px;
    border-left: 3px solid var(--primary);
    width: 100%;
    box-sizing: border-box;
}

.loading-message {
    font-weight: 500;
    display: none;
    /* Ensure text wraps properly on all screen sizes */
    white-space: normal;
    word-wrap: break-word;
    width: 100%;
    line-height: 1.4;
    text-align: center;
    padding: 5px 0;
}

.loading-message.active {
    display: block;
    animation: pulse 2s infinite;
}

.loading-dots::after {
    content: '.';
    animation: loadingDots 1s infinite;
}

.pepe, .rug-emoji, .hopium, .chain-emoji {
    display: inline-block;
    animation: float 2s ease-in-out infinite;
    margin-left: 5px;
}

/* Memecoin info */
.memecoin-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
}

.memecoin-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    text-shadow: var(--neon-glow);
    /* Handle text overflow for long token names */
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 5px;
    margin-bottom: 5px;
}

.memecoin-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 179, 0.3);
}

/* Chart container */
.chart-container {
    width: 100%;
    height: 220px;
    margin-bottom: 20px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    padding: 10px;
}

.glow-bg {
    background: rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 0 30px rgba(107, 61, 255, 0.2);
    border: 1px solid rgba(107, 61, 255, 0.1);
}

/* Result stage */
.april-fools {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.april-fools h2 {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
    animation: bounce 1s infinite alternate;
    text-shadow: var(--neon-glow);
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

.confetti-container {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 200px;
    overflow: hidden;
    pointer-events: none;
}

.cta-section {
    text-align: center;
    margin-bottom: 25px;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 10px;
    border-left: 3px solid var(--primary);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
}

.cta-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 62, 157, 0.1), transparent);
    z-index: 0;
}

.cta-section p {
    font-size: 16px;
    margin-bottom: 15px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    word-wrap: break-word;
}

.cabbage-highlight {
    color: var(--primary);
    font-weight: bold;
    position: relative;
}

.cabbage-highlight:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.cabbage-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    white-space: nowrap;
}

.cabbage-link:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 20px rgba(107, 61, 255, 0.4);
    color: white;
}

.cabbage-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
}

.close-btn {
    display: block;
    margin: 0 auto;
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--muted-text);
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--accent);
    transform: translateY(-2px);
}

.close-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 179, 0.2), transparent);
    transition: left 0.7s ease;
}

.close-btn:hover:before {
    left: 100%;
}

/* Footer styles */
footer {
    padding: 40px 0;
    background: rgba(0, 0, 0, 0.3);
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.cyber-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(0deg, transparent 24%, rgba(107, 61, 255, 0.05) 25%, rgba(107, 61, 255, 0.05) 26%, transparent 27%, transparent 74%, rgba(107, 61, 255, 0.05) 75%, rgba(107, 61, 255, 0.05) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(107, 61, 255, 0.05) 25%, rgba(107, 61, 255, 0.05) 26%, transparent 27%, transparent 74%, rgba(107, 61, 255, 0.05) 75%, rgba(107, 61, 255, 0.05) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
    z-index: 0;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.disclaimer {
    color: var(--muted-text);
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-links a:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-links a:hover {
    background: transparent;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(107, 61, 255, 0.3);
}

.social-links a:hover:before {
    opacity: 0.3;
}

.social-links i {
    font-size: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    footer .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    /* Improved modal responsiveness */
    .animation-chart-container {
        flex-direction: column;
        align-items: center;
    }
    
    .chart-container {
        height: 250px;
        width: 100%;
    }
    
    .grave-animation {
        width: 150px;
        height: 200px;
        margin-bottom: 20px;
    }
    
    .jesus-container {
        height: 120px;
    }
    
    .jesus-image {
        height: 120px;
    }
    
    .loading-stage, .result-stage {
        padding: 25px;
    }
    
    .loading-messages {
        font-size: 18px;
        padding: 12px;
        margin-bottom: 20px;
    }
    
    .memecoin-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 12px;
    }
    
    .memecoin-name {
        font-size: 20px;
        /* Handle text overflow */
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .april-fools h2 {
        font-size: 36px;
    }
    
    .cta-section p {
        font-size: 16px;
    }
    
    /* About page improvements */
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .team-links {
        flex-wrap: wrap;
    }
    
    /* Recently resurrected section */
    #recent-resurrections {
        max-height: 140px;
    }
    
    .recent-item {
        padding: 8px 10px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo {
        margin-bottom: 10px;
    }
    
    nav ul {
        gap: 15px;
    }
    
    .loading-stage, .result-stage {
        padding: 10px 8px;
    }
    
    /* Further improvements for very small screens */
    .modal-content {
        width: 95%;
        border-radius: 15px;
        max-height: 85vh; /* Reduced to fit better */
        overflow-y: auto;
    }
    
    .resurrection-container {
        gap: 8px;
        margin-bottom: 10px;
    }
    
    .jesus-container {
        height: 70px;
        margin-bottom: 5px;
    }
    
    .jesus-image {
        height: 70px;
    }
    
    .grave-animation {
        width: 80px;
        height: 120px;
        margin: 0 auto 8px; /* Center on mobile */
    }
    
    .animation-chart-container {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .loading-messages {
        font-size: 14px;
        padding: 6px;
        min-height: auto;
        margin-bottom: 10px;
    }
    
    .loading-message {
        /* Make sure text wraps instead of overflowing */
        white-space: normal;
        word-wrap: break-word;
        padding: 2px 0;
        line-height: 1.2;
    }
    
    .chart-container {
        height: 120px;
        margin-bottom: 10px;
        width: 100%;
    }
    
    .social-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .cta-section {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .cabbage-link {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .close-btn {
        padding: 10px 20px;
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .april-fools h2 {
        font-size: 28px;
        margin-bottom: 12px;
    }
    
    /* Input section improvements */
    .input-wrapper {
        gap: 10px;
    }
    
    .dropdown-toggle, #memecoin-address {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .resurrect-btn {
        padding: 14px 20px;
        font-size: 16px;
    }
    
    /* Memecoin info in loader */
    .memecoin-info {
        flex-direction: column;
        gap: 4px;
        padding: 8px;
        margin-bottom: 10px;
    }
    
    .memecoin-logo {
        width: 36px;
        height: 36px;
    }
    
    .memecoin-name {
        font-size: 16px;
    }
    
    /* Recently resurrected section */
    .global-resurrections h3 {
        font-size: 16px;
    }
    
    #recent-resurrections {
        max-height: 120px;
    }
    
    .recent-coin {
        font-size: 14px;
    }
    
    .recent-time {
        font-size: 12px;
    }
    
    /* About page improvements */
    .about-card {
        padding: 15px;
    }
    
    .about-card h2 {
        font-size: 20px;
    }
    
    .team-link {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    /* Community section */
    .community-section {
        padding: 15px 10px;
    }
    
    .community-text {
        font-size: 15px;
        margin-bottom: 12px;
    }
}

/* Add even smaller screen support */
@media (max-width: 400px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .loading-stage, .result-stage {
        padding: 8px 4px;
    }
    
    .loading-messages {
        font-size: 13px;
        padding: 4px 2px;
        margin-bottom: 8px;
    }
    
    .loading-message {
        line-height: 1.1;
        padding: 1px 0;
    }
    
    .jesus-container {
        height: 50px;
        margin-bottom: 4px;
    }
    
    .jesus-image {
        height: 50px;
    }
    
    .animation-chart-container {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    
    .grave-animation {
        width: 60px;
        height: 90px;
        margin: 0 auto 5px;
    }
    
    .chart-container {
        height: 100px;
        margin-bottom: 8px;
        padding: 4px;
    }
    
    .memecoin-info {
        padding: 6px 4px;
        margin-bottom: 8px;
        gap: 4px;
    }
    
    .memecoin-logo {
        width: 32px;
        height: 32px;
    }
    
    .memecoin-name {
        font-size: 14px;
    }
    
    .april-fools h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .cta-section {
        padding: 8px 5px;
        margin-bottom: 10px;
    }
    
    .cta-section p {
        font-size: 12px;
        margin-bottom: 10px;
        max-width: 100%;
    }
    
    .social-icons {
        gap: 8px;
    }
    
    .social-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    /* Input section improvements */
    .resurrect-btn {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .dropdown-toggle span, #memecoin-address {
        font-size: 13px;
    }
    
    /* Recently resurrected section */
    .global-resurrections {
        padding: 10px 6px;
    }
    
    .global-resurrections h3 {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    #recent-resurrections {
        max-height: 110px;
    }
    
    .recent-item {
        padding: 5px 6px;
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .recent-coin {
        font-size: 12px;
    }
    
    .recent-time {
        font-size: 10px;
    }
    
    /* Community section */
    .community-section {
        padding: 10px 6px;
        margin-bottom: 8px;
    }
    
    .community-text {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .cabbage-link, .close-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .cabbage-emoji {
        font-size: 16px;
    }
    
    /* Ensure entire loader fits on small screens */
    .modal-content {
        max-height: 98vh;
    }
}

/* Fix grave proportions for smaller screens */
@media (max-width: 576px) {
    .grave {
        width: 40px; 
        height: 60px;
        bottom: 15px;
    }
    
    .ground {
        height: 15px;
    }
}

/* Extra small devices */
@media (max-width: 320px) {
    .loading-stage, .result-stage {
        padding: 4px 2px;
    }
    
    .resurrection-container {
        gap: 4px;
        margin-bottom: 6px;
    }
    
    .loading-messages {
        font-size: 11px;
        padding: 3px 2px;
        margin-bottom: 5px;
    }
    
    .loading-message {
        line-height: 1;
        padding: 1px 0;
    }
    
    .jesus-container {
        height: 40px;
        margin-bottom: 3px;
    }
    
    .jesus-image {
        height: 40px;
    }
    
    .animation-chart-container {
        gap: 3px;
    }
    
    .grave-animation {
        width: 50px;
        height: 70px;
        margin: 0 auto 3px;
    }
    
    .grave {
        bottom: 15px;
        width: 30px;
        height: 40px;
    }
    
    .grave:before {
        top: -10px;
        width: 20px;
        height: 20px;
    }
    
    .grave:after {
        top: 15px;
        font-size: 10px;
    }
    
    .ground {
        height: 10px;
    }
    
    .chart-container {
        height: 80px;
        margin-bottom: 5px;
        padding: 3px;
    }
    
    .memecoin-info {
        padding: 4px 2px;
        margin-bottom: 5px;
        gap: 2px;
    }
    
    .memecoin-name {
        font-size: 12px;
    }
    
    .memecoin-logo {
        width: 28px;
        height: 28px;
    }
    
    .modal-content {
        border-radius: 10px;
        width: 99%;
        max-height: 99vh;
    }
    
    .cyber-frame:before, .cyber-frame:after {
        width: 15px;
    }
    
    .april-fools h2 {
        font-size: 18px;
        margin-bottom: 6px;
    }
    
    .cta-section {
        padding: 6px 3px;
        margin-bottom: 6px;
    }
    
    .cta-section p {
        font-size: 11px;
        margin-bottom: 6px;
    }
    
    .cabbage-link, .close-btn {
        padding: 5px 8px;
        font-size: 10px;
    }
    
    .resurrect-btn {
        padding: 8px 10px;
        font-size: 11px;
    }
    
    .dropdown-toggle, #memecoin-address {
        padding: 6px 8px;
        font-size: 10px;
    }
    
    /* Recently resurrected section */
    .global-resurrections {
        padding: 6px 3px;
        margin-top: 8px;
    }
    
    .global-resurrections h3 {
        font-size: 12px;
        margin-bottom: 3px;
    }
    
    #recent-resurrections {
        max-height: 80px;
    }
    
    .recent-item {
        padding: 3px;
        font-size: 10px;
        margin-bottom: 3px;
    }
    
    .recent-coin {
        font-size: 10px;
    }
    
    .recent-time {
        font-size: 8px;
    }
    
    /* Community section */
    .community-section {
        padding: 6px 3px;
        margin-bottom: 5px;
    }
    
    .community-text {
        font-size: 11px;
        margin-bottom: 5px;
    }
    
    .social-icon {
        width: 25px;
        height: 25px;
        font-size: 11px;
    }
}

/* Resurrection animation */
.resurrection-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
    min-height: 0; /* Allow container to shrink */
}

.jesus-container {
    position: relative;
    display: flex;
    justify-content: center;
    height: 120px;
    overflow: hidden;
    min-height: 0; /* Allow container to shrink */
}

.jesus-image {
    height: 120px;
    max-width: 300px;
    width: auto;
    object-fit: contain;
    opacity: 0.8;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.7));
    position: relative;
    z-index: 2;
}

.divine-light {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    z-index: 1;
    opacity: 0;
}

.animation-chart-container {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    min-height: 0; /* Allow container to shrink */
}

.grave-animation {
    position: relative;
    width: 160px;
    height: 220px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.grave {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 100px;
    background: #666;
    border-radius: 10px 10px 0 0;
    z-index: 2;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.grave:before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: #666;
    border-radius: 50%;
}

.grave:after {
    content: 'RIP';
    position: absolute;
    top: 30px;
    width: 100%;
    text-align: center;
    color: #333;
    font-weight: bold;
}

.ground {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 30px;
    background: #553311;
    z-index: 1;
    box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.5);
}

.coin-rising {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 194, 0.8);
    border-radius: 50%;
    opacity: 0;
    transition: transform 2s ease, opacity 1s ease;
    z-index: 4;
    box-shadow: 0 0 30px rgba(255, 255, 0, 0.5);
}

.laser-beam {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 0;
    background: var(--accent);
    z-index: 2;
    opacity: 0;
    box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
}

.chart-container {
    flex-grow: 1;
    height: 300px;
    margin-bottom: 0;
    border-radius: 10px;
    overflow: hidden;
    padding: 10px;
}

@keyframes pulse-light {
    0%, 100% { opacity: 0.2; transform: translate(-50%, -50%) scale(0.8); }
    50% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes beam-pulse {
    0%, 100% { opacity: 0.5; width: 2px; }
    50% { opacity: 0.8; width: 4px; }
}

.loading-animation .divine-light {
    opacity: 0.8;
    animation: pulse-light 2s infinite;
}

.loading-animation .coin-rising {
    opacity: 1;
    transform: translateX(-50%) translateY(-250px);
}

.loading-animation .laser-beam {
    opacity: 0.8;
    height: 400px;
    animation: beam-pulse 1s infinite;
}

/* Adjust the glitch-text effect to be more readable when used in the April Fools header */
.april-fools .glitch-text {
    animation: subtle-glitch 3s infinite;
    font-family: 'Space Grotesk', sans-serif;  /* Use standard font for better readability */
    font-weight: bold;
}

@keyframes subtle-glitch {
    0% {
        transform: translate(0);
        text-shadow: none;
    }
    20% {
        transform: translate(-1px, 1px);
        text-shadow: 1px 0 #ff3e9d, -1px 0 #00ffb3;
    }
    40% {
        transform: translate(-1px, -1px);
        text-shadow: 1px 0 #00ffb3, -1px 0 #ff3e9d;
    }
    60% {
        transform: translate(1px, 1px); 
        text-shadow: -1px 0 #ff3e9d, 1px 0 #00ffb3;
    }
    80% {
        transform: translate(1px, -1px);
        text-shadow: -1px 0 #00ffb3, 1px 0 #ff3e9d;
    }
    100% {
        transform: translate(0);
        text-shadow: none;
    }
}

.cabbage-emoji {
    font-size: 20px;
    margin-left: 3px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

/* Global Resurrections Section */
.global-resurrections {
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid var(--border);
}

.global-resurrections h3 {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 18px;
    color: var(--text);
}

.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #00ff88;
    border-radius: 50%;
    margin-left: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 255, 136, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0);
    }
}

#recent-resurrections {
    max-height: 150px;
    overflow-y: auto;
    padding-right: 5px;
}

#recent-resurrections::-webkit-scrollbar {
    width: 4px;
}

#recent-resurrections::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

#recent-resurrections::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

.recent-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 5px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.recent-item:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.recent-coin {
    font-weight: bold;
    color: var(--accent);
}

.recent-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9em;
}

.empty-message {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    text-align: center;
    padding: 15px 0;
}

/* About Page Styles */
.about-section {
    padding: 40px 0;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.about-card {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    padding: 25px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.about-card h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.emoji-float {
    animation: float 3s ease-in-out infinite;
}

.team-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.team-link {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 15px;
    border-radius: 30px;
    text-decoration: none;
    color: white;
    transition: all 0.2s ease;
}

.team-link:hover {
    transform: translateY(-3px);
}

.team-link.cabbage {
    border: 1px solid #00ff88;
}

.team-link.stader {
    border: 1px solid #3498db;
}

.team-link.cabbage:hover {
    background: rgba(0, 255, 136, 0.15);
}

.team-link.stader:hover {
    background: rgba(52, 152, 219, 0.15);
}

/* Graveyard Page Styles */
.graveyard-section {
    padding: 40px 0;
}

.graveyard-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 30px;
}

.filter-btn {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent);
    color: black;
    border-color: var(--accent);
}

.graveyard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.tombstone {
    position: relative;
    height: 300px;
    perspective: 1000px;
}

.tombstone-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
    background: linear-gradient(to bottom, #555, #333);
    border-radius: 10px 10px 0 0;
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.tombstone:hover .tombstone-inner {
    transform: rotateY(10deg);
}

.tombstone .rip {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.tombstone h3 {
    font-size: 22px;
    margin-bottom: 5px;
}

.coin-symbol {
    font-size: 16px;
    color: var(--accent);
    margin-bottom: 15px;
}

.death-year {
    font-size: 18px;
    margin-bottom: 5px;
}

.death-type {
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.coin-description {
    font-size: 14px;
    margin-bottom: 20px;
    height: 60px;
    overflow: hidden;
}

.resurrect-btn {
    background: var(--accent);
    color: black;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.resurrect-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px var(--accent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0 40px;
}

.stat-card {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border);
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 10px;
}

.feed-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border);
}

.feed-entry {
    padding: 12px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 5px;
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.feed-coin {
    font-weight: bold;
    color: var(--accent);
    grid-column: 1;
    grid-row: 1;
}

.feed-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9em;
    grid-column: 2;
    grid-row: 1;
}

.feed-user {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    grid-column: 1 / -1;
    grid-row: 2;
}

/* Navigation styles for all pages */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.2s ease;
}

nav ul li a:hover, nav ul li a.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
}

.page-title {
    font-size: 48px;
    margin-bottom: 10px;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    font-size: 18px;
}

/* Community Section Styles */
.community-section {
    margin-top: 25px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid var(--border);
    text-align: center;
}

.community-text {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text);
}

.degen-text {
    color: var(--accent);
    font-weight: bold;
    animation: pulse-text 2s infinite;
}

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

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.social-icon:before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: rgba(0, 0, 0, 0.2);
    z-index: -1;
    filter: blur(10px);
    pointer-events: none;
}

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.social-icon.discord {
    background: #5865F2;
    border-color: #7289da;
}

.social-icon.telegram {
    background: #0088cc;
    border-color: #0099ff;
}

.social-icon.twitter {
    background: #1DA1F2;
    border-color: #4db5f5;
}

.social-icon.discord:hover {
    background: #4752c4;
    border-color: #5d73e5;
}

.social-icon.telegram:hover {
    background: #0077b3;
    border-color: #00a8ff;
}

.social-icon.twitter:hover {
    background: #0d8ecf;
    border-color: #1a91d9;
}

/* Additional emoji styles for new loading messages */
.ghost-emoji, .phone-emoji, .liquidation-emoji, .fud-emoji, .cry-emoji {
    display: inline-block;
    animation: bounce 1s infinite alternate;
}

.ghost-emoji {
    animation: float 3s ease-in-out infinite;
}

.phone-emoji {
    animation: shake 0.8s infinite;
}

.liquidation-emoji {
    animation: pulse 1.5s infinite;
}

.fud-emoji {
    animation: spin 2s infinite linear;
}

.cry-emoji {
    animation: bounce 0.8s infinite alternate;
}

@keyframes shake {
    0% { transform: rotate(-10deg); }
    25% { transform: rotate(10deg); }
    50% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
    100% { transform: rotate(-10deg); }
}

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