@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&family=Anton&family=Bebas+Neue&display=swap');

:root {
    /* Basquiat x Warhol palette */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: rgba(20, 20, 23, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    /* Pop art accent colors */
    --accent-purple: #a855f7;
    --accent-blue: #06b6d4;
    --accent-green: #10b981;
    --accent-pink: #ec4899;
    --accent-orange: #f59e0b;
    --accent-yellow: #facc15;
    --accent-cyan: #22d3ee;
    --accent-red: #ef4444;
    
    /* Warhol screen-print vibes */
    --warhol-pink: #ff69b4;
    --warhol-yellow: #ffd700;
    --warhol-cyan: #00ffff;
    --basquiat-crown: #ffd700;
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --glow-purple: rgba(168, 85, 247, 0.4);
    --glow-blue: rgba(6, 182, 212, 0.3);
    --glow-pink: rgba(236, 72, 153, 0.3);

    /* Rarity tier colors */
    --rarity-legendary: #FFD700;
    --rarity-legendary-rgb: 255, 215, 0;
    --rarity-epic: #9C27B0;
    --rarity-epic-rgb: 156, 39, 176;
    --rarity-rare: #2196F3;
    --rarity-rare-rgb: 33, 150, 243;
    --rarity-uncommon: #4CAF50;
    --rarity-uncommon-rgb: 76, 175, 80;
    --rarity-common: #757575;
    --rarity-common-rgb: 117, 117, 117;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation;
}

.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: -1;
    background-image: 
        radial-gradient(circle at 25% 25%, var(--accent-purple) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, var(--accent-blue) 1px, transparent 1px);
    background-size: 100px 100px, 60px 60px;
    animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(0.5deg); }
    66% { transform: translate(-20px, 20px) rotate(-0.5deg); }
}

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

/* Header with MDRNDME Integration */
header {
    padding: 24px 0;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.9);
}

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

/* Logo styling moved to line ~2300 with tagline */

.wallet-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mdrndme-ticker {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-glass);
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
}

.ticker-price {
    font-weight: 600;
    color: var(--accent-green);
}

.connect-wallet, .mint-button, .trade-mdrndme {
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
}

/* Enhanced connect wallet button */
.connect-wallet.connected {
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 8px 12px;
    gap: 8px;
    justify-content: space-between;
    min-width: 140px;
}

.wallet-address {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 500;
    margin-right: 8px;
}

.disconnect-btn {
    padding: 4px 10px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #ef4444;
}

.disconnect-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
    transform: scale(1.05);
}

.connect-wallet:hover, .mint-button:hover, .trade-mdrndme:hover {
    border-color: rgba(168, 85, 247, 0.7);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
    text-shadow: 0 0 12px rgba(168, 85, 247, 0.8);
}

.connect-wallet:focus, .mint-button:focus, .trade-mdrndme:focus {
    outline: none;
}

.connect-wallet:active, .mint-button:active, .trade-mdrndme:active {
    transform: scale(0.98);
}

.trade-mdrndme {
    border-color: rgba(16, 185, 129, 0.4);
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.trade-mdrndme:hover {
    border-color: rgba(16, 185, 129, 0.7);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
    text-shadow: 0 0 12px rgba(16, 185, 129, 0.8);
}

/* Enhanced Status Messages */
.status-message {
    display: none;
    padding: 20px;
    margin: 20px 0;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
}

.status-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0.6;
}

.status-success {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
    color: white;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.2);
}

.status-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.1);
}

.status-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.1);
}

.status-loading {
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.1);
}

.status-details {
    margin-top: 8px;
    font-size: 14px;
    opacity: 0.9;
    font-weight: 400;
    line-height: 1.4;
}

.status-actions {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.status-action {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: currentColor;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.status-action:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.tx-link {
    color: currentColor;
    text-decoration: underline;
    font-weight: 500;
    opacity: 0.9;
}

.tx-link:hover {
    opacity: 1;
    text-decoration-color: currentColor;
}

/* Controls */
.controls {
    margin: 32px 0;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.controls::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-purple), var(--accent-blue), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

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

.controls-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.search-container {
    position: relative;
}

.category-filters {
    display: flex;
    gap: 8px;
}

.category-btn {
    padding: 8px 16px;
    background: #000;
    border: 2px solid #00FFFF;
    border-radius: 4px;
    color: #00FFFF;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 2px 2px 0 rgba(0, 255, 255, 0.3);
}

.category-btn:hover {
    border-color: #FF00FF;
    color: #FF00FF;
    background: rgba(255, 0, 255, 0.1);
    box-shadow: 3px 3px 0 rgba(255, 0, 255, 0.4);
    transform: translateY(-1px);
}

.category-btn.active {
    background: #FFFF00;
    border-color: #FFFF00;
    color: #000;
    box-shadow: 3px 3px 0 rgba(255, 255, 0, 0.5);
    font-weight: 900;
}

.search-container {
    position: relative;
    margin-bottom: 12px;
}

.search-input {
    width: 100%;
    max-width: 200px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
}

.search-input:focus-visible {
    outline: none;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 18px;
}

.collection-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 20px;
    background: var(--bg-glass);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-blue);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-section {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.chip {
    padding: 8px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    user-select: none;
}

.chip:hover {
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.chip:focus {
    outline: 2px solid var(--accent-purple);
    outline-offset: 2px;
}

.chip:active {
    transform: translateY(0);
}

.chip.active {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px var(--glow-purple);
}

/* Books Grid */
.books-section {
    margin-bottom: 48px;
}

.results-info {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 24px;
    text-align: center;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
    position: relative;
    padding: 24px;
    align-items: start;
}

.book-card {
    background: rgba(20, 20, 23, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: visible;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.book-card:hover {
    background: rgba(20, 20, 23, 0.6);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow:
        0 0 0 1px rgba(168, 85, 247, 0.2),
        0 12px 32px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(168, 85, 247, 0.15);
}

.book-card:hover .book-cover {
    box-shadow:
        0 0 30px rgba(236, 72, 153, 0.6),
        0 0 60px rgba(168, 85, 247, 0.4),
        0 8px 24px rgba(0, 0, 0, 0.6);
}

.book-card:hover .book-actions {
    opacity: 1;
    pointer-events: auto;
    animation: neonPulse 2s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% { 
        border-color: rgba(236, 72, 153, 0.2);
    }
    50% { 
        border-color: rgba(236, 72, 153, 0.4);
    }
}

.book-cover {
    width: 100%;
    background: transparent;
    overflow: hidden;
    position: relative;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: all 0.15s ease-out;
    aspect-ratio: 2/3;
}

.book-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.15s ease-out;
    filter: brightness(0.95) contrast(1.05);
}

.book-card:hover .book-cover img {
    transform: scale(1.02);
    filter: brightness(1) contrast(1.1);
}

.book-cover.placeholder {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    padding: 20px;
    line-height: 1.3;
}

.nft-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.book-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 2px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.book-author {
    color: var(--text-secondary);
    font-size: 9px;
    font-weight: 400;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.book-price {
    display: none;
}

.book-actions {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 12px 16px 12px;
    margin-top: auto;
    background: transparent;
}

/* Rarity Selection Styles */
.rarity-selection {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.rarity-header {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 2px;
    text-align: center;
}

.rarity-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    border: 1.5px solid;
    border-radius: 4px;
    background: rgba(255,255,255,0.02);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 10px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.rarity-btn:hover:not(:disabled) {
    background: rgba(255,255,255,0.08);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.rarity-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* Rarity-specific colors */
.rarity-btn.common {
    border-color: var(--rarity-common);
    color: var(--rarity-common);
}
.rarity-btn.common:hover:not(:disabled) {
    box-shadow: 0 2px 8px rgba(var(--rarity-common-rgb), 0.3);
}

.rarity-btn.uncommon {
    border-color: var(--rarity-uncommon);
    color: var(--rarity-uncommon);
}
.rarity-btn.uncommon:hover:not(:disabled) {
    box-shadow: 0 2px 8px rgba(var(--rarity-uncommon-rgb), 0.3);
}

.rarity-btn.rare {
    border-color: var(--rarity-rare);
    color: var(--rarity-rare);
}
.rarity-btn.rare:hover:not(:disabled) {
    box-shadow: 0 2px 8px rgba(var(--rarity-rare-rgb), 0.3);
}

.rarity-btn.epic {
    border-color: var(--rarity-epic);
    color: var(--rarity-epic);
}
.rarity-btn.epic:hover:not(:disabled) {
    box-shadow: 0 2px 8px rgba(var(--rarity-epic-rgb), 0.3);
}

.rarity-btn.legendary {
    border-color: var(--rarity-legendary);
    color: var(--rarity-legendary);
}
.rarity-btn.legendary:hover:not(:disabled) {
    box-shadow: 0 2px 8px rgba(var(--rarity-legendary-rgb), 0.3);
}

.tier-name {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.tier-price {
    font-size: 9px;
    opacity: 0.8;
    font-weight: 500;
}

.action-btn {
    width: 100%;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
    display: block;
}

.primary-btn {
    background: #000;
    color: #FFFF00;
    border: 3px solid;
    border-color: #FF00FF #FFFF00 #00FFFF #FF00FF;
    box-shadow: 4px 4px 0 rgba(255, 0, 255, 0.5);
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 16px;
    padding: 16px 24px;
    position: relative;
    transform: rotate(-0.5deg);
    transition: all 0.2s ease;
}

.primary-btn:hover:not(.disabled) {
    background: rgba(255, 255, 0, 0.1);
    border-color: #FFFF00 #FF00FF #FFFF00 #00FFFF;
    box-shadow: 6px 6px 0 rgba(255, 255, 0, 0.6);
    transform: rotate(0deg) translateY(-2px) scale(1.02);
    color: #FF00FF;
}

.primary-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: rotate(0deg);
}

/* Alternate button styles for visual variety */
.book-card:nth-child(odd) .primary-btn {
    border-color: #FFFF00 #00FFFF #FF00FF #FFFF00;
    box-shadow: 4px 4px 0 rgba(255, 255, 0, 0.5);
    transform: rotate(0.5deg);
}

.book-card:nth-child(3n) .primary-btn {
    border-color: #00FFFF #FF00FF #FFFF00 #00FFFF;
    box-shadow: 4px 4px 0 rgba(0, 255, 255, 0.5);
    transform: rotate(-0.3deg);
}

.book-card:nth-child(odd) .primary-btn:hover {
    box-shadow: 6px 6px 0 rgba(255, 0, 255, 0.6);
    color: #00FFFF;
}

.book-card:nth-child(3n) .primary-btn:hover {
    box-shadow: 6px 6px 0 rgba(0, 255, 255, 0.6);
    color: #FFFF00;
}

.secondary-btn {
    background: #000;
    color: #00FFFF;
    border: 2px solid #00FFFF;
    box-shadow: 3px 3px 0 rgba(0, 255, 255, 0.4);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.secondary-btn:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: #00FFFF;
    color: #00FFFF;
    box-shadow: 4px 4px 0 rgba(0, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* Enticing pulse animation on primary buttons */
@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 4px 4px 0 rgba(255, 0, 255, 0.5);
    }
    50% {
        box-shadow: 4px 4px 0 rgba(255, 0, 255, 0.8),
                    0 0 20px rgba(255, 0, 255, 0.4),
                    0 0 40px rgba(255, 255, 0, 0.2);
    }
}

.primary-btn:not(.disabled) {
    animation: buttonPulse 2s ease-in-out infinite;
}

.primary-btn:hover:not(.disabled) {
    animation: none;
}

.book-card:nth-child(odd) .primary-btn:not(.disabled) {
    animation: buttonPulseYellow 2s ease-in-out infinite;
}

.book-card:nth-child(3n) .primary-btn:not(.disabled) {
    animation: buttonPulseCyan 2s ease-in-out infinite;
}

@keyframes buttonPulseYellow {
    0%, 100% {
        box-shadow: 4px 4px 0 rgba(255, 255, 0, 0.5);
    }
    50% {
        box-shadow: 4px 4px 0 rgba(255, 255, 0, 0.8),
                    0 0 20px rgba(255, 255, 0, 0.4),
                    0 0 40px rgba(255, 0, 255, 0.2);
    }
}

@keyframes buttonPulseCyan {
    0%, 100% {
        box-shadow: 4px 4px 0 rgba(0, 255, 255, 0.5);
    }
    50% {
        box-shadow: 4px 4px 0 rgba(0, 255, 255, 0.8),
                    0 0 20px rgba(0, 255, 255, 0.4),
                    0 0 40px rgba(255, 255, 0, 0.2);
    }
}

.book-desc {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px 8px 16px;
    gap: 12px;
}

.book-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.price-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-value {
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-eth {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-usd {
    font-size: 12px;
    color: var(--text-muted);
}

.book-rarity {
    padding: 4px 10px;
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.book-genre {
    padding: 4px 10px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.book-secondary-actions {
    display: flex;
    gap: 8px;
    padding: 0 16px 12px 16px;
    align-items: center;
}

.mint-button {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.read-sample-btn {
    flex: 1;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.read-sample-btn:hover {
    background: var(--accent-purple);
    color: white;
    border-color: var(--accent-purple);
    transform: translateY(-1px);
}

.opensea-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.opensea-link:hover {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
    transform: translateY(-1px);
}

.opensea-icon {
    font-size: 14px;
}

.opensea-link.collection-link {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
}

.opensea-link.collection-link:hover {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);
}

.mint-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.mint-button.pending {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    animation: pulse 2s ease-in-out infinite;
}

.mint-button.owned {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
    cursor: default;
}

.mint-button.sold-out {
    background: rgba(71, 85, 105, 0.5);
    color: var(--text-muted);
    cursor: not-allowed;
}

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

.mint-button::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.5s ease;
}

.mint-button:hover:not(:disabled)::before {
    left: 100%;
}

/* Enhanced Spinner Animation */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
    display: inline-block;
}

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

/* Utility section for both ecosystems */
.ecosystem-section {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 32px;
    margin: 40px 0;
    border: 1px solid var(--border-subtle);
}

.ecosystem-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
}

.ecosystem-description {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 24px;
}

.ecosystem-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Loading States */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 48px;
    color: var(--text-secondary);
}


/* Mobile Optimizations */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .books-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 18px;
    }
    
    .ecosystem-section {
        padding: 28px;
        margin: 32px 0;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    /* Header improvements */
    header {
        padding: 20px 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .logo {
        font-size: 24px;
    }

    .wallet-section {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .mdrndme-ticker {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }
    
    /* Controls section improvements */
    .controls {
        padding: 20px;
        margin: 24px 0;
        border-radius: 16px;
    }
    
    .collection-stats {
        justify-content: center;
        gap: 12px;
        margin-bottom: 24px;
    }
    
    .stat-item {
        padding: 16px 18px;
        min-width: 80px;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .search-input {
        padding: 14px 20px 14px 48px;
        font-size: 16px;
        border-radius: 14px;
    }
    
    .search-icon {
        left: 16px;
        font-size: 16px;
    }
    
    .filter-section {
        justify-content: center;
        gap: 8px;
    }
    
    .chip {
        padding: 10px 14px;
        font-size: 13px;
        border-radius: 10px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Books grid improvements */
    .books-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 16px;
    }
    
    .book-cover {
        height: 280px;
    }
    
    .book-title {
        font-size: 17px;
        line-height: 1.4;
    }
    
    .book-author {
        font-size: 13px;
    }
    
    .price-eth {
        font-size: 18px;
    }
    
    /* Ecosystem section */
    .ecosystem-section {
        padding: 24px;
        margin: 32px 0;
        border-radius: 16px;
    }
    
    .ecosystem-title {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .ecosystem-description {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    .ecosystem-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .ecosystem-actions .connect-wallet,
    .ecosystem-actions .trade-mdrndme {
        width: 100%;
        max-width: 300px;
        padding: 14px 24px;
        font-size: 15px;
        min-height: 48px;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    /* Header for small screens */
    header {
        padding: 16px 0;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .wallet-section {
        gap: 8px;
    }
    
    .connect-wallet, .trade-mdrndme {
        padding: 12px 16px;
        font-size: 13px;
        min-height: 44px;
        border-radius: 10px;
    }
    
    .mdrndme-ticker {
        padding: 8px 12px;
        font-size: 13px;
        border-radius: 10px;
    }
    
    /* Controls section for mobile */
    .controls {
        padding: 16px;
        margin: 20px 0;
        border-radius: 14px;
    }
    
    .collection-stats {
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .stat-item {
        padding: 12px 14px;
        min-width: 70px;
    }
    
    .stat-number {
        font-size: 18px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .search-input {
        padding: 14px 16px 14px 44px;
        font-size: 16px;
        border-radius: 12px;
    }
    
    .search-icon {
        left: 14px;
        font-size: 16px;
    }
    
    .filter-section {
        gap: 6px;
        margin-bottom: 20px;
    }
    
    .chip {
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 8px;
        min-height: 40px;
    }
    
    /* Single column layout for books */
    .books-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .book-card {
        padding: 16px;
        border-radius: 14px;
    }
    
    .book-cover {
        height: 260px;
        border-radius: 10px;
        margin-bottom: 12px;
    }
    
    .book-title {
        font-size: 16px;
        margin-bottom: 4px;
    }
    
    .book-author {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .book-stats {
        margin-bottom: 12px;
    }
    
    .price-eth {
        font-size: 17px;
    }
    
    .price-usd {
        font-size: 11px;
    }
    
    .book-genre {
        padding: 3px 8px;
        font-size: 11px;
        border-radius: 6px;
    }
    
    .mint-button {
        padding: 14px;
        font-size: 14px;
        border-radius: 8px;
        min-height: 48px;
    }
    
    /* Ecosystem section for mobile */
    .ecosystem-section {
        padding: 20px;
        margin: 24px 0;
        border-radius: 14px;
    }
    
    .ecosystem-title {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .ecosystem-description {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 16px;
    }
    
    .ecosystem-actions .connect-wallet,
    .ecosystem-actions .trade-mdrndme {
        padding: 14px 20px;
        font-size: 14px;
        min-height: 48px;
        border-radius: 10px;
    }
    
    /* Results info */
    .results-info {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    /* Status messages */
    .status-message {
        padding: 14px;
        margin: 16px 0;
        border-radius: 10px;
        font-size: 14px;
    }
}

/* Very small screens (iPhone SE, etc.) */
@media (max-width: 375px) {
    .container {
        padding: 0 10px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .collection-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        justify-items: center;
    }
    
    .stat-item {
        width: 100%;
        max-width: 140px;
    }
    
    .controls {
        padding: 14px;
    }
    
    .ecosystem-section {
        padding: 16px;
    }
    
    .ecosystem-title {
        font-size: 18px;
    }
    
    .book-cover {
        height: 240px;
    }
}

/* Touch and mobile interaction improvements */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .connect-wallet:hover, .mint-button:hover, .trade-mdrndme:hover {
        transform: none;
        box-shadow: none;
    }
    
    .chip:hover {
        border-color: var(--border-subtle);
        transform: none;
    }
    
    .book-card:hover {
        transform: none;
        border-color: var(--border-subtle);
        box-shadow: none;
    }
    
    .book-card:hover::before {
        opacity: 0;
    }
    
    .search-input:focus {
        transform: none;
    }
    
    /* Add touch feedback */
    .connect-wallet:active, .mint-button:active, .trade-mdrndme:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .chip:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
}

/* Ensure minimum touch targets on all devices */
@media screen {
    .connect-wallet, .mint-button, .trade-mdrndme {
        min-height: 44px;
        min-width: 44px;
    }
    
    .chip {
        min-height: 36px;
        min-width: 36px;
    }
    
    .mdrndme-ticker {
        min-height: 44px;
    }
}

/* Book Card Indicators */
.book-scarcity {
    padding: 8px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.scarcity-indicator-mini {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #ff6b6b;
    font-weight: 600;
}

.scarcity-indicator-mini .scarcity-icon {
    font-size: 0.8rem;
    animation: urgentPulse 2s infinite;
}

.scarcity-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
}

.urgency-tag {
    background: linear-gradient(90deg, rgba(255, 107, 107, 0.2), rgba(255, 195, 0, 0.2));
    border: 1px solid rgba(255, 107, 107, 0.4);
    color: #ffc300;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: urgencyGlow 3s infinite;
}

@keyframes urgencyGlow {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(255, 195, 0, 0.3);
        border-color: rgba(255, 107, 107, 0.4);
    }
    50% { 
        box-shadow: 0 0 10px rgba(255, 195, 0, 0.6);
        border-color: rgba(255, 195, 0, 0.6);
    }
}

/* Mobile Book Cards */
@media (max-width: 768px) {
    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .book-card {
        max-width: 100%;
        margin: 0;
    }
    
    /* Mobile adjustments for buttons and spacing */
    .book-actions {
        padding: 8px;
        margin-top: 4px;
        gap: 6px;
    }

    .action-btn {
        padding: 8px 12px;
        font-size: 11px;
    }

    .book-info {
        padding: 6px;
    }

    .book-title {
        font-size: 10px;
    }

    .book-author {
        font-size: 8px;
    }
    
    .book-scarcity {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    
    .scarcity-indicator-mini {
        gap: 3px;
    }
    
    .scarcity-indicator-mini .scarcity-icon {
        font-size: 0.7rem;
    }
    
    .scarcity-count {
        font-size: 0.7rem;
    }
    
    .urgency-tag {
        font-size: 0.6rem;
        padding: 2px 6px;
    }
}

/* Extra Small Mobile (iPhone SE, etc.) */
@media (max-width: 480px) {
    .collection-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .collection-stats .stat-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
    }
    
    .collection-stats .stat-number {
        font-size: 1.4rem;
        margin-bottom: 0;
    }
    
    .collection-stats .stat-label {
        font-size: 0.9rem;
        margin-bottom: 0;
    }
    
    .collection-stats .scarcity-indicator {
        font-size: 0.65rem;
        margin-top: 0;
        margin-left: 8px;
    }
    
    .scarcity-banner {
        padding: 12px;
        margin: 16px 0;
    }
    
    .scarcity-banner .scarcity-text {
        font-size: 0.85rem;
    }
    
    .loot-box-header h2 {
        font-size: 1.6rem;
    }
    
    .loot-box-card {
        padding: 20px 16px;
        max-width: 350px;
    }
    
    .tier-name {
        font-size: 1.1rem;
    }
    
    .loot-box-price {
        font-size: 1.4rem;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .book-card {
        max-width: 100%;
    }
}

/* Ultra Small (iPhone 5/SE) */
@media (max-width: 375px) {
    .loot-box-section {
        padding: 30px 12px;
    }
    
    .loot-box-card {
        padding: 16px 12px;
    }
    
    .guarantee-tag {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
    
    .loot-box-button {
        font-size: 0.9rem;
        padding: 12px 24px;
    }
    
    .scarcity-banner .scarcity-text {
        font-size: 0.8rem;
    }
    
    .book-scarcity .urgency-tag {
        font-size: 0.55rem;
        padding: 1px 4px;
    }
}

/* Enhanced Mobile Touch Interactions */
@media (max-width: 768px) {
    /* Ensure proper touch targets (minimum 44px) */
    .loot-box-button,
    .mint-button,
    .connect-wallet,
    .trade-mdrndme {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(139, 92, 246, 0.3);
    }
    
    .chip {
        min-height: 40px;
        min-width: 40px;
        padding: 8px 16px;
        touch-action: manipulation;
    }
    
    /* Improved mobile hover states (use :active instead) */
    .loot-box-button:active {
        transform: translateY(1px) scale(0.98);
        transition: all 0.1s ease;
    }
    
    .mint-button:active,
    .connect-wallet:active {
        transform: translateY(1px) scale(0.98);
        transition: all 0.1s ease;
    }
    
    .chip:active {
        transform: scale(0.95);
        transition: all 0.1s ease;
    }
    
    .book-card:active {
        transform: translateY(2px);
        transition: all 0.1s ease;
    }
    
    /* Disable hover effects on mobile */
    .loot-box-card:hover,
    .book-card:hover {
        transform: none;
        box-shadow: initial;
    }
    
    .loot-box-card:hover::before,
    .book-card:hover::before {
        opacity: 0;
    }
    
    /* Mobile-specific spacing */
    .ecosystem-section {
        padding: 40px 20px;
    }
    
    .filter-section {
        gap: 8px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .search-container {
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .search-input {
        width: 100%;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Mobile Performance Optimizations */
@media (max-width: 768px) {
    /* Reduce animations on mobile for better performance */
    .urgent-pulse,
    .scarcity-banner .scarcity-icon,
    .scarcity-indicator-mini .scarcity-icon {
        animation-duration: 3s; /* Slower animations */
    }
    
    /* Simplify complex gradients on smaller screens */
    .scarcity-banner {
        background: rgba(255, 107, 107, 0.1);
    }
    
    .loot-box-button {
        background: var(--accent-purple);
    }
    
    .loot-box-button:active {
        background: #9d5eff;
    }
    
    /* Optimize shadows for mobile */
    .loot-box-card,
    .book-card {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    /* Simplified backdrop filter for better performance */
    .loot-box-card,
    .book-card {
        backdrop-filter: blur(5px);
    }
}

/* Landscape Mobile Optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .loot-box-section {
        padding: 30px 15px;
    }
    
    .loot-box-header h2 {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    
    .loot-box-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 16px;
    }
    
    .loot-box-card {
        padding: 20px 16px;
    }
    
    .collection-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .collection-stats .stat-item {
        padding: 8px 10px;
        flex-direction: column;
    }
    
    .scarcity-banner {
        flex-direction: row;
        padding: 10px 16px;
    }
}

/* ========================================
   RARITY SYSTEM STYLES
   ======================================== */

/* Rarity Badge Styles */
.rarity-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid;
    font-size: 10px;
    font-weight: 600;
    backdrop-filter: blur(8px);
    z-index: 10;
    transition: all 0.3s ease;
}

.rarity-badge:hover {
    transform: scale(1.05);
}

.rarity-badge.legendary {
    background: rgba(var(--rarity-legendary-rgb), 0.2);
    border-color: var(--rarity-legendary);
    color: var(--rarity-legendary);
    box-shadow: 0 0 8px rgba(var(--rarity-legendary-rgb), 0.3);
}

.rarity-badge.epic {
    background: rgba(var(--rarity-epic-rgb), 0.2);
    border-color: var(--rarity-epic);
    color: var(--rarity-epic);
    box-shadow: 0 0 8px rgba(var(--rarity-epic-rgb), 0.3);
}

.rarity-badge.rare {
    background: rgba(var(--rarity-rare-rgb), 0.2);
    border-color: var(--rarity-rare);
    color: var(--rarity-rare);
    box-shadow: 0 0 8px rgba(var(--rarity-rare-rgb), 0.3);
}

.rarity-badge.uncommon {
    background: rgba(var(--rarity-uncommon-rgb), 0.2);
    border-color: var(--rarity-uncommon);
    color: var(--rarity-uncommon);
    box-shadow: 0 0 6px rgba(var(--rarity-uncommon-rgb), 0.3);
}

.rarity-badge.common {
    background: rgba(var(--rarity-common-rgb), 0.1);
    border-color: var(--rarity-common);
    color: var(--rarity-common);
}

.rarity-emoji {
    font-size: 12px;
}

.rarity-tier-text {
    font-size: 9px;
    letter-spacing: 0.5px;
}

/* Special Features Tags */
.special-features {
    position: absolute;
    top: 40px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 9;
}

.special-tag {
    background: rgba(255, 215, 0, 0.9);
    color: #1a1a1a;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 8px;
    font-weight: 700;
    text-align: center;
    animation: specialGlow 2s ease-in-out infinite alternate;
}

@keyframes specialGlow {
    from { box-shadow: 0 0 4px rgba(255, 215, 0, 0.5); }
    to { box-shadow: 0 0 8px rgba(255, 215, 0, 0.8); }
}

/* Rarity Statistics Section */
.rarity-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 12px;
}

.rarity-score, .rarity-rank {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.rarity-label {
    color: #888;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rarity-value {
    font-weight: 700;
    font-size: 13px;
}

/* Book Card Rarity Tier Styles */
.book-card.legendary-tier {
    border: 1px solid rgba(var(--rarity-legendary-rgb), 0.3);
    background: linear-gradient(135deg, rgba(var(--rarity-legendary-rgb), 0.05), transparent);
}

.book-card.epic-tier {
    border: 1px solid rgba(var(--rarity-epic-rgb), 0.3);
    background: linear-gradient(135deg, rgba(var(--rarity-epic-rgb), 0.05), transparent);
}

.book-card.rare-tier {
    border: 1px solid rgba(var(--rarity-rare-rgb), 0.3);
    background: linear-gradient(135deg, rgba(var(--rarity-rare-rgb), 0.05), transparent);
}

.book-card.uncommon-tier {
    border: 1px solid rgba(var(--rarity-uncommon-rgb), 0.2);
    background: linear-gradient(135deg, rgba(var(--rarity-uncommon-rgb), 0.03), transparent);
}

.book-card.common-tier {
    border: 1px solid rgba(var(--rarity-common-rgb), 0.1);
}

/* Rarity Filter Buttons (for future implementation) */
.rarity-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.rarity-filter {
    padding: 6px 12px;
    border: 1px solid;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rarity-filter:hover {
    transform: translateY(-1px);
}

.rarity-filter.active {
    background: rgba(255, 255, 255, 0.1);
}

.rarity-filter.legendary {
    border-color: var(--rarity-legendary);
    color: var(--rarity-legendary);
}

.rarity-filter.epic {
    border-color: var(--rarity-epic);
    color: var(--rarity-epic);
}

.rarity-filter.rare {
    border-color: var(--rarity-rare);
    color: var(--rarity-rare);
}

.rarity-filter.uncommon {
    border-color: var(--rarity-uncommon);
    color: var(--rarity-uncommon);
}

.rarity-filter.common {
    border-color: var(--rarity-common);
    color: var(--rarity-common);
}

/* Mobile Rarity Adjustments */
@media (max-width: 768px) {
    .rarity-badge {
        top: 6px;
        right: 6px;
        padding: 3px 6px;
        font-size: 9px;
    }
    
    .rarity-emoji {
        font-size: 10px;
    }
    
    .rarity-tier-text {
        font-size: 8px;
    }
    
    .special-features {
        top: 35px;
        right: 6px;
    }
    
    .special-tag {
        font-size: 7px;
        padding: 1px 4px;
    }
    
    .rarity-stats {
        padding: 6px 8px;
        font-size: 11px;
        margin-bottom: 10px;
    }
    
    .rarity-label {
        font-size: 9px;
    }
    
    .rarity-value {
        font-size: 12px;
    }
    
    .rarity-filters {
        gap: 6px;
        margin-bottom: 15px;
    }
    
    .rarity-filter {
        padding: 5px 10px;
        font-size: 10px;
    }
}

/* Sorting Controls */
.sort-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.sort-dropdown {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.sort-dropdown:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.7);
}

.sort-dropdown:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
}

.sort-dropdown option {
    background: #1a1a1a;
    color: white;
    padding: 8px;
}

@media (max-width: 768px) {
    .sort-controls {
        margin-bottom: 15px;
    }
    
    .sort-dropdown {
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* High DPI display improvements */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .search-icon {
        font-size: 16px;
    }
    
    .nft-badge {
        font-size: 9px;
        padding: 3px 6px;
    }
    
    .rarity-badge {
        font-size: 10px;
        padding: 4px 8px;
    }
}

/* Inline Audio Player - appears in card */
.inline-audio-player {
    margin-top: 15px;
    padding: 15px;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 8px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }
}

.inline-audio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.now-playing {
    color: var(--accent-purple);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.close-inline-audio {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.close-inline-audio:hover {
    color: var(--accent-purple);
}

.inline-audio-element {
    width: 100%;
    border-radius: 6px;
    outline: none;
}

.inline-playlist {
    margin-top: 12px;
    max-height: 150px;
    overflow-y: auto;
    border-top: 1px solid rgba(168, 85, 247, 0.2);
    padding-top: 8px;
}

.inline-playlist-item {
    padding: 8px 12px;
    margin: 4px 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 13px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.inline-playlist-item:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.3);
    color: var(--text-primary);
}

.inline-playlist-item.active {
    background: rgba(168, 85, 247, 0.2);
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    font-weight: 600;
}

/* Old audio player modal - kept for backwards compatibility but hidden */
.audio-player-modal {
    display: none;
}

.close-audio {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 1;
}

.close-audio:hover {
    background: rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}

audio {
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.6);
}

/* Audio Playlist */
.playlist-info {
    color: var(--text-secondary);
    font-size: 12px;
    margin: 0;
    padding: 6px 12px;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(168, 85, 247, 0.2);
    display: inline-block;
    font-weight: 500;
}

.playlist {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 10px;
}

.playlist-item {
    padding: 12px 15px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    font-size: 14px;
}

.playlist-item:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
    color: var(--text-primary);
}

.playlist-item.active {
    background: rgba(168, 85, 247, 0.2);
    border-color: var(--accent-purple);
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.playlist-item.active::before {
    content: '▶ ';
    color: var(--accent-purple);
}

/* Manifesto Section */
.manifesto-section {
    margin: 80px 0 40px;
    padding: 60px 40px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(20px);
}

.manifesto-content h2 {
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #ec4899;
    text-shadow: 0 0 20px rgba(236, 72, 153, 0.6);
    margin-bottom: 40px;
    text-align: center;
}

.manifesto-text {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.manifesto-text p {
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
    line-height: 1.6;
}

.manifesto-text p.signature {
    margin-top: 32px;
    font-size: 24px;
    font-weight: 700;
    color: #ec4899;
    text-shadow: 0 0 15px rgba(236, 72, 153, 0.5);
    letter-spacing: 4px;
}

.manifesto-btn {
    margin-left: auto;
    border-color: #FF00FF;
    color: #FF00FF;
}

.manifesto-btn:hover,
.manifesto-btn.active {
    background: #FF00FF;
    border-color: #FF00FF;
    color: #000;
    box-shadow: 3px 3px 0 rgba(255, 0, 255, 0.5);
}
/* ========================================
   BASQUIAT X WARHOL POP ART DNA
   ======================================== */

/* Logo with crown (Basquiat signature) */
.logo-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.logo {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    text-transform: uppercase;
}

/* "IT'S ONLY UP FROM HERE" tagline - PEEP SHOW NEON SIGN */
.logo-tagline {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #FFD700;
    /* Stacked neon layers - stairway to pulp heaven */
    text-shadow:
        /* First layer - yellow glow */
        0 0 10px #FFD700,
        0 0 20px #FFD700,
        /* Second layer - pink offset */
        1px 1px 0px #FF1493,
        2px 2px 0px #FF1493,
        2px 2px 15px #FF1493,
        /* Third layer - cyan offset */
        3px 3px 0px #00FFFF,
        4px 4px 0px #00FFFF,
        4px 4px 20px #00FFFF,
        /* Fourth layer - magenta */
        5px 5px 0px #FF00FF,
        6px 6px 0px #FF00FF,
        6px 6px 25px #FF00FF,
        /* Deep glow */
        0 0 30px rgba(255, 215, 0, 0.8),
        0 0 40px rgba(255, 20, 147, 0.6),
        0 0 50px rgba(0, 255, 255, 0.4);
    animation: neonFlicker 4s ease-in-out infinite, neonPulse 2s ease-in-out infinite alternate;
    filter: brightness(1.2) contrast(1.1);
    margin-left: 44px;
}

/* Peep show neon flicker - random like old broken signs */
@keyframes neonFlicker {
    0%, 19.9%, 22%, 62.9%, 64%, 64.9%, 70%, 100% {
        opacity: 1;
        text-shadow:
            0 0 10px #FFD700,
            0 0 20px #FFD700,
            1px 1px 0px #FF1493,
            2px 2px 0px #FF1493,
            2px 2px 15px #FF1493,
            3px 3px 0px #00FFFF,
            4px 4px 0px #00FFFF,
            4px 4px 20px #00FFFF,
            5px 5px 0px #FF00FF,
            6px 6px 0px #FF00FF,
            6px 6px 25px #FF00FF,
            0 0 30px rgba(255, 215, 0, 0.8),
            0 0 40px rgba(255, 20, 147, 0.6),
            0 0 50px rgba(0, 255, 255, 0.4);
    }
    20%, 21.9%, 63%, 63.9%, 65%, 69.9% {
        opacity: 0.6;
        text-shadow:
            0 0 5px #FFD700,
            1px 1px 0px #FF1493,
            3px 3px 0px #00FFFF;
    }
}

/* Pulsing glow - breathing neon */
@keyframes neonPulse {
    0% { filter: brightness(1.1) contrast(1.1); }
    100% { filter: brightness(1.3) contrast(1.2); }
}

/* Warhol-style price tags on cards */
.book-card {
    position: relative;
    overflow: visible;
}

.book-card::before {
    content: '0.5 ETH';
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--warhol-yellow);
    color: #000;
    font-family: 'Anton', sans-serif;
    font-size: 16px;
    font-weight: 900;
    padding: 8px 14px;
    border: 2px solid #000;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.3);
    z-index: 10;
    transform: rotate(-3deg);
    letter-spacing: 0.5px;
}

/* Halftone dot pattern overlay (pop art texture) */
.bg-pattern {
    background-image: 
        radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px),
        radial-gradient(circle, rgba(255,105,180,0.05) 1px, transparent 1px);
    background-size: 20px 20px, 40px 40px;
    background-position: 0 0, 10px 10px;
}

/* Basquiat-style scribble accent on hover */
.book-card:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, transparent 40%, var(--accent-cyan) 42%, transparent 44%),
        linear-gradient(45deg, transparent 60%, var(--warhol-pink) 62%, transparent 64%);
    opacity: 0.15;
    pointer-events: none;
    animation: scribbleFlash 0.3s ease-out;
}

@keyframes scribbleFlash {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 0.15; transform: scale(1); }
}

/* Warhol screen-print button style */
.cta-button,
.buy-button {
    font-family: 'Anton', sans-serif;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: var(--warhol-pink);
    color: #000;
    border: 3px solid #000;
    box-shadow: 
        5px 5px 0px var(--warhol-cyan),
        10px 10px 0px var(--warhol-yellow);
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cta-button:hover,
.buy-button:hover {
    transform: translate(3px, 3px);
    box-shadow: 
        2px 2px 0px var(--warhol-cyan),
        4px 4px 0px var(--warhol-yellow);
}

/* Basquiat crossed-out text effect (optional - use sparingly) */
.book-card .book-price {
    position: relative;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
}

/* Pop art halftone hover effect on images */
.book-card img:hover {
    filter: 
        contrast(1.2) 
        saturate(1.3)
        brightness(1.1);
    animation: warholShift 0.6s ease-in-out;
}

@keyframes warholShift {
    0% { filter: contrast(1.2) saturate(1.3) hue-rotate(0deg); }
    50% { filter: contrast(1.4) saturate(1.5) hue-rotate(15deg); }
    100% { filter: contrast(1.2) saturate(1.3) hue-rotate(0deg); }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .logo {
        font-size: 32px;
    }
    
    .logo-crown {
        font-size: 24px;
    }
    
    .logo-tagline {
        font-size: 8px;
        margin-left: 28px;
    }
    
    .book-card::before {
        font-size: 14px;
        padding: 4px 8px;
    }
}

/* ========================================
   VAULT MODAL - $100K+ PIECES
   ======================================== */

.vault-button {
    position: relative;
    background: linear-gradient(135deg, var(--basquiat-crown), var(--warhol-yellow));
    color: #000;
    font-family: 'Anton', sans-serif;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 2px;
    padding: 12px 24px;
    border: 3px solid #000;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.5),
        4px 4px 0px #000;
    animation: vaultGlow 2s ease-in-out infinite;
}

.vault-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.8),
        6px 6px 0px #000;
}

.vault-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-red);
    color: white;
    font-size: 12px;
    font-weight: 900;
    padding: 4px 8px;
    border-radius: 50%;
    border: 2px solid #000;
}

@keyframes vaultGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 4px 4px 0px #000; }
    50% { box-shadow: 0 0 40px rgba(255, 215, 0, 0.8), 4px 4px 0px #000; }
}

/* Trade Tokens Button - Raw Basquiat style */
.trade-tokens-btn {
    position: relative;
    background: #000;
    color: #00FFFF;
    font-family: 'Anton', sans-serif;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 1.5px;
    padding: 12px 20px;
    border: 3px solid #00FFFF;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    transform: skew(-2deg);
    box-shadow: 4px 4px 0px rgba(0, 255, 255, 0.3);
    text-transform: uppercase;
}

.trade-tokens-btn:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: #FF00FF;
    color: #FF00FF;
    transform: skew(-2deg) translateY(-2px);
    box-shadow: 6px 6px 0px rgba(255, 0, 255, 0.4);
}

.trade-tokens-btn:active {
    transform: skew(-2deg) translateY(0);
    box-shadow: 2px 2px 0px rgba(0, 255, 255, 0.3);
}

/* Vault Modal */
.vault-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    overflow-y: auto;
    animation: fadeIn 0.3s ease-out;
}

.vault-modal-content {
    max-width: 1400px;
    margin: 40px auto;
    padding: 40px;
    padding-bottom: 200px; /* Extra space at bottom for last row visibility */
    position: relative;
}

.vault-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-red);
    color: white;
    font-size: 32px;
    font-weight: 700;
    width: 50px;
    height: 50px;
    border: 3px solid #000;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 3px 3px 0px #000;
    z-index: 10;
}

.vault-close:hover {
    transform: rotate(90deg);
    background: white;
    color: var(--accent-red);
}

.vault-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(255,105,180,0.1));
    border: 3px solid var(--basquiat-crown);
    border-radius: 16px;
}

.vault-header h2 {
    font-family: 'Anton', sans-serif;
    font-size: 64px;
    letter-spacing: 4px;
    background: linear-gradient(135deg, var(--basquiat-crown), var(--warhol-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.3);
}

.vault-subtitle {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    letter-spacing: 3px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.vault-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 32px;
    font-weight: 700;
    color: var(--basquiat-crown);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.vault-message {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 40px;
    background: rgba(20, 20, 23, 0.8);
    border: 2px solid var(--border-subtle);
    border-radius: 12px;
}

.vault-message p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.vault-message strong {
    color: var(--basquiat-crown);
    font-weight: 700;
}

.vault-price-tag {
    font-family: 'Anton', sans-serif;
    font-size: 28px;
    letter-spacing: 2px;
    margin: 32px 0;
}

.vault-price-tag span {
    color: var(--basquiat-crown);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.vault-contact {
    font-size: 16px;
    color: var(--text-secondary);
}

.vault-contact a {
    color: var(--warhol-cyan);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
}

.vault-contact a:hover {
    color: var(--basquiat-crown);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Vault Grid */
.vault-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 40px;
    margin-bottom: 100px; /* Extra space at bottom to prevent cutoff */
    padding-bottom: 60px; /* Additional padding */
}

.vault-card {
    position: relative;
    background: rgba(20, 20, 23, 0.9);
    border: 3px solid var(--basquiat-crown);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.vault-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
    border-color: var(--warhol-yellow);
}

.vault-card::before {
    content: '🔒 VAULT';
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--basquiat-crown);
    color: #000;
    font-family: 'Anton', sans-serif;
    font-size: 14px;
    font-weight: 900;
    padding: 6px 12px;
    border: 2px solid #000;
    border-radius: 6px;
    z-index: 10;
    box-shadow: 2px 2px 0px #000;
}

.vault-card img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    filter: brightness(0.7);
    transition: filter 0.3s ease;
}

.vault-card:hover img {
    filter: brightness(1);
}

.vault-card-info {
    padding: 20px;
}

.vault-card-title {
    font-family: 'Anton', sans-serif;
    font-size: 20px;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.vault-card-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    font-weight: 700;
    color: var(--basquiat-crown);
    margin-bottom: 12px;
}

.vault-card-status {
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
}

/* Mobile */
@media (max-width: 768px) {
    .vault-button {
        font-size: 14px;
        padding: 10px 16px;
    }
    
    .vault-header h2 {
        font-size: 40px;
    }
    
    .vault-value {
        font-size: 24px;
    }
    
    .vault-message {
        padding: 24px;
    }
    
    .vault-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================================================
   OPENSEA COLLECTION LINKS
   ============================================================================ */

.opensea-links {
    padding: 40px 0;
    max-width: 1400px;
    margin: 0 auto;
}

.opensea-heading {
    font-family: 'Anton', sans-serif;
    font-size: 28px;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-primary);
    text-transform: uppercase;
}

.opensea-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    padding: 0 20px;
}

.opensea-card {
    background: #000;
    border: 4px solid;
    border-color: #FF00FF #FFFF00 #00FFFF #FF00FF;
    border-radius: 8px;
    padding: 28px 24px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: visible;
    box-shadow: 6px 6px 0 rgba(255, 0, 255, 0.4);
    transform: rotate(-0.5deg);
}

.opensea-card:nth-child(2) {
    transform: rotate(0.5deg);
    border-color: #FFFF00 #00FFFF #FF00FF #FFFF00;
    box-shadow: 6px 6px 0 rgba(255, 255, 0, 0.4);
}

.opensea-card:nth-child(3) {
    transform: rotate(-0.3deg);
    border-color: #00FFFF #FF00FF #FFFF00 #00FFFF;
    box-shadow: 6px 6px 0 rgba(0, 255, 255, 0.4);
}

.opensea-card:hover {
    transform: rotate(0deg) translateY(-4px);
    box-shadow: 8px 8px 0 rgba(255, 0, 255, 0.5);
}

.opensea-card-title {
    font-family: 'Anton', sans-serif;
    font-size: 22px;
    letter-spacing: 2px;
    color: #FFFF00;
    text-transform: uppercase;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.opensea-card-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: #00FFFF;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.opensea-card-action {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 900;
    color: #FF00FF;
    margin-top: 8px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.opensea-card:hover .opensea-card-action {
    color: #FFFF00;
    transform: translateX(4px);
}

/* PCC Button Styling - Basquiat pop art */
.pcc-btn {
    border-color: #FFFF00;
    color: #FFFF00;
}

.pcc-btn:hover,
.pcc-btn.active {
    background: #FFFF00;
    border-color: #FFFF00;
    color: #000;
    box-shadow: 3px 3px 0 rgba(255, 255, 0, 0.5);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .opensea-heading {
        font-size: 22px;
    }
    
    .opensea-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .opensea-card {
        padding: 24px 20px;
    }
    

/* ============================================================================
   NFT CARD STYLING (PCC and ONLY UP)
   ============================================================================ */

/* NFT Collectible cards (PCC, Only Up, MDRNDME) - Raw Basquiat pop art style */
.nft-card {
    border: 4px solid;
    border-color: #FF00FF #00FFFF #FFFF00 #FF00FF;
    background: transparent;
    position: relative;
    box-shadow:
        8px 8px 0 rgba(0, 0, 0, 0.3),
        -2px -2px 0 rgba(255, 255, 0, 0.4);
    transform: rotate(-0.5deg);
    padding-bottom: 12px;
}

.nft-card:nth-child(even) {
    transform: rotate(0.5deg);
    border-color: #FFFF00 #FF00FF #00FFFF #FFFF00;
}

.nft-card::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
    z-index: 1;
}

.nft-card::after {
    content: '©';
    position: absolute;
    bottom: 4px;
    right: 4px;
    font-size: 10px;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.nft-card .book-cover {
    border-bottom: 3px solid rgba(0, 0, 0, 0.6);
}

/* Comic book halftone effect */
.nft-card .book-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0,0,0,0.15) 1px, transparent 1px);
    background-size: 4px 4px;
    pointer-events: none;
    mix-blend-mode: multiply;
    opacity: 0.3;
    z-index: 1;
}

/* Basquiat crown on legendary items */
.nft-card[data-rarity="legendary"]::before,
.nft-card[data-rarity="epic"]::before {
    content: '👑';
    position: absolute;
    top: -12px;
    right: -12px;
    font-size: 24px;
    transform: rotate(15deg);
    z-index: 10;
    filter: drop-shadow(2px 2px 0 rgba(255, 215, 0, 0.5));
}

.book-info {
    padding: 6px 8px 2px 8px;
    position: relative;
    z-index: 3;
}

/* NFT card buttons inherit base styles */

.nft-rarity {
    display: inline-block;
    padding: 6px 14px;
    background: #000;
    color: #FFFF00;
    border: 2px solid #FFFF00;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transform: skew(-5deg);
    box-shadow: 3px 3px 0 rgba(255, 255, 0, 0.3);
    position: relative;
}

.nft-rarity::before {
    content: '★';
    margin-right: 4px;
}

/* Hand-drawn scribble effect on rare items */
.nft-card[data-rarity="rare"] .nft-rarity,
.nft-card[data-rarity="legendary"] .nft-rarity,
.nft-card[data-rarity="epic"] .nft-rarity {
    background: linear-gradient(135deg, #FF00FF 0%, #00FFFF 100%);
    color: #000;
    border-color: #000;
    animation: scribble 0.3s ease-in-out;
}

@keyframes scribble {
    0%, 100% { transform: skew(-5deg) rotate(0deg); }
    25% { transform: skew(-3deg) rotate(-1deg); }
    75% { transform: skew(-7deg) rotate(1deg); }
}

.nft-edition {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.nft-card .book-cover img {
    filter: contrast(1.1) saturate(1.2);
}

/* ============================================================================
   RETRO ARCADE SCRAMBLE ANIMATION
   ============================================================================ */

/* Scramble Button Styling - Basquiat pop art */
.scramble-btn {
    border-color: #FF00FF;
    color: #FF00FF;
}

.scramble-btn:hover,
.scramble-btn.active {
    background: #FF00FF;
    border-color: #FF00FF;
    color: #000;
    box-shadow: 3px 3px 0 rgba(255, 0, 255, 0.5);
}

@keyframes arcadePulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 20, 147, 0.4), 0 0 40px rgba(138, 43, 226, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 20, 147, 0.6), 0 0 60px rgba(138, 43, 226, 0.4);
    }
}

/* Scrambling Animation - Slot Machine / Peep Show Effect */
.books-grid.scrambling {
    animation: gridShake 0.08s infinite;
}

.books-grid.scrambling .book-card {
    animation:
        slotSpin 0.08s ease-in-out infinite,
        peepFlicker 0.15s infinite;
    transform-origin: center;
    filter: blur(2px) brightness(1.2);
}

/* Scramble Complete - Snap into place */
.books-grid.scramble-complete .book-card {
    animation: snapInPlace 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: brightness(1.3);
}

/* Keyframe Animations */
@keyframes gridShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px) translateY(1px); }
    50% { transform: translateX(2px) translateY(-1px); }
    75% { transform: translateX(-1px) translateY(2px); }
}

@keyframes slotSpin {
    0% {
        transform: translateY(0) rotateX(0deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-4px) rotateX(5deg);
        opacity: 0.7;
    }
    100% {
        transform: translateY(0) rotateX(0deg);
        opacity: 1;
    }
}

@keyframes peepFlicker {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 20, 147, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
    }
}

@keyframes snapInPlace {
    0% {
        transform: scale(0.8) rotateZ(-5deg);
        opacity: 0.6;
        filter: brightness(2) blur(4px);
    }
    60% {
        transform: scale(1.05) rotateZ(2deg);
        filter: brightness(1.5) blur(1px);
    }
    100% {
        transform: scale(1) rotateZ(0deg);
        opacity: 1;
        filter: brightness(1) blur(0);
    }
}

/* Add retro CRT scanline effect during scramble */
.books-grid.scrambling::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15) 0px,
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    animation: scanline 0.5s linear infinite;
    z-index: 10;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* Mobile responsive scramble effects */
@media (max-width: 768px) {
    .scramble-btn {
        font-size: 13px;
        padding: 10px 16px;
    }

    .books-grid.scrambling .book-card {
        filter: blur(1px) brightness(1.1);
    }
}

/* ==========================================
   IT'S ONLY UP Hero Section
   NYC Graffiti x Comic Store x OpenSea Polish
   ========================================== */

.onlyup-hero {
    position: relative;
    margin: 40px 0 60px;
    padding: 60px 40px;
    background: linear-gradient(135deg,
        rgba(255, 20, 147, 0.08) 0%,
        rgba(255, 215, 0, 0.05) 50%,
        rgba(0, 255, 255, 0.08) 100%);
    border-radius: 20px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    overflow: hidden;
    box-shadow:
        0 10px 40px rgba(255, 215, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Graffiti-style background pattern */
.hero-background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.06;
    z-index: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 35px, var(--warhol-cyan) 35px, var(--warhol-cyan) 37px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, var(--warhol-pink) 35px, var(--warhol-pink) 37px);
    background-size: 200px 200px, 200px 200px;
    animation: graffiti-drift 20s linear infinite;
}

@keyframes graffiti-drift {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(50px, 50px) rotate(2deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

/* Pop art badge */
.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--warhol-pink), var(--accent-purple));
    color: #000;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 2px;
    border-radius: 6px;
    box-shadow:
        4px 4px 0 #000,
        0 0 20px rgba(255, 20, 147, 0.4);
    margin-bottom: 20px;
    transform: rotate(-2deg);
    animation: badge-float 3s ease-in-out infinite;
}

@keyframes badge-float {
    0%, 100% { transform: rotate(-2deg) translateY(0); }
    50% { transform: rotate(-2deg) translateY(-4px); }
}

/* NYC street art style title */
.hero-title {
    font-family: 'Anton', 'Bebas Neue', sans-serif;
    font-size: clamp(48px, 8vw, 80px);
    line-height: 0.9;
    margin: 0 0 8px 0;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow:
        4px 4px 0 var(--warhol-cyan),
        8px 8px 0 var(--warhol-pink),
        12px 12px 0 #000,
        0 0 40px rgba(255, 215, 0, 0.5);
    animation: title-glitch 4s ease-in-out infinite;
}

@keyframes title-glitch {
    0%, 90%, 100% {
        text-shadow:
            4px 4px 0 var(--warhol-cyan),
            8px 8px 0 var(--warhol-pink),
            12px 12px 0 #000,
            0 0 40px rgba(255, 215, 0, 0.5);
    }
    92% {
        text-shadow:
            -4px 4px 0 var(--warhol-pink),
            8px -8px 0 var(--warhol-cyan),
            12px 12px 0 #000;
    }
    94% {
        text-shadow:
            4px -4px 0 var(--warhol-yellow),
            -8px 8px 0 var(--warhol-cyan),
            12px 12px 0 #000;
    }
}

.hero-subtitle {
    display: block;
    font-size: clamp(32px, 5vw, 56px);
    color: var(--warhol-yellow);
    letter-spacing: 4px;
}

.hero-description {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 20px 0 30px;
    font-weight: 400;
}

.hero-highlight {
    color: var(--warhol-yellow);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

/* OpenSea-inspired stats grid */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0 40px;
}

.hero-stat {
    background: rgba(20, 20, 23, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.hero-stat:hover {
    background: rgba(20, 20, 23, 0.8);
    border-color: var(--warhol-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
}

.stat-number {
    font-family: 'Anton', sans-serif;
    font-size: 36px;
    line-height: 1;
    color: var(--warhol-yellow);
    text-shadow:
        2px 2px 0 var(--warhol-pink),
        0 0 20px rgba(255, 215, 0, 0.5);
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
    font-weight: 600;
}

/* Call-to-action buttons */
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 14px 32px;
    border-radius: 10px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    letter-spacing: 1px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid;
}

.hero-btn.primary {
    background: linear-gradient(135deg, var(--warhol-pink), var(--warhol-yellow));
    color: #000;
    border-color: #000;
    box-shadow:
        4px 4px 0 #000,
        0 0 30px rgba(255, 20, 147, 0.4);
}

.hero-btn.primary:hover {
    background: linear-gradient(135deg, var(--warhol-yellow), var(--warhol-cyan));
    box-shadow:
        6px 6px 0 #000,
        0 0 40px rgba(255, 215, 0, 0.6);
    transform: translate(-2px, -2px);
}

.hero-btn.secondary {
    background: rgba(20, 20, 23, 0.8);
    backdrop-filter: blur(10px);
    color: #fff;
    border-color: var(--warhol-cyan);
    box-shadow:
        0 0 20px rgba(0, 255, 255, 0.3);
}

.hero-btn.secondary:hover {
    background: rgba(0, 255, 255, 0.15);
    border-color: var(--warhol-yellow);
    box-shadow:
        0 0 30px rgba(255, 215, 0, 0.5);
    transform: translateY(-2px);
}

/* Featured showcase cards */
.hero-showcase {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    z-index: 1;
}

.showcase-card {
    position: relative;
    width: 200px;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 0 2px #000;
    transition: all 0.3s ease;
    animation: float-card 6s ease-in-out infinite;
}

.showcase-card.featured {
    width: 240px;
    height: 360px;
    border-color: var(--warhol-yellow);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.6),
        0 0 0 3px #000,
        0 0 40px rgba(255, 215, 0, 0.6);
    animation-delay: 0s;
}

.showcase-card.accent {
    border-color: var(--warhol-cyan);
    animation-delay: 2s;
}

@keyframes float-card {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

.showcase-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(255, 215, 0, 0.8);
}

.showcase-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Comic book badge style */
.showcase-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1px;
    border-radius: 6px;
    border: 2px solid #000;
    box-shadow: 3px 3px 0 #000;
    backdrop-filter: blur(10px);
    transform: rotate(8deg);
}

.showcase-badge.legendary {
    background: linear-gradient(135deg, var(--warhol-yellow), var(--warhol-pink));
    color: #000;
}

.showcase-badge.elite {
    background: linear-gradient(135deg, var(--warhol-cyan), var(--accent-purple));
    color: #fff;
}

/* Responsive design */
@media (max-width: 1200px) {
    .hero-showcase {
        position: static;
        transform: none;
        grid-template-columns: repeat(3, 1fr);
        margin-top: 40px;
        max-width: 600px;
    }

    .showcase-card.featured,
    .showcase-card.accent {
        width: 100%;
        height: 240px;
    }
}

@media (max-width: 768px) {
    .onlyup-hero {
        padding: 40px 20px;
        margin: 20px 0 40px;
    }

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

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

    .hero-description {
        font-size: 16px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-btn {
        width: 100%;
    }

    .hero-showcase {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .showcase-card.featured,
    .showcase-card.accent {
        height: 300px;
    }
}

/* Direct Buy Section - PCC Widget */
.direct-buy-section {
    margin: 20px 0;
    padding: 20px;
    background: rgba(168, 85, 247, 0.1);
    border: 2px solid rgba(168, 85, 247, 0.4);
    border-radius: 12px;
}

.direct-buy-section h4 {
    margin: 0 0 15px 0;
    color: #a855f7;
    font-size: 16px;
    font-weight: 700;
}

.price-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.price-box {
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price-box.creator-price {
    border: 2px solid #10b981;
}

.price-box.market-price {
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.price-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-value {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.price-usd {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.buy-direct-calculator {
    margin-bottom: 15px;
}

.buy-direct-calculator label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.buy-direct-calculator input {
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
}

.buy-total {
    margin-top: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-pol {
    font-size: 16px;
    font-weight: 700;
    color: #10b981;
}

.total-usd {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.buy-direct-btn {
    width: 100%;
    margin-top: 12px;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
}

.direct-buy-note {
    margin-top: 10px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    font-style: italic;
}

/* ==========================================
   POP ART STYLE ADS
   ========================================== */

.pop-art-ad {
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 3px solid;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pop-art-ad .ad-content {
    text-align: center;
    padding: 30px 20px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.pop-art-ad .ad-icon {
    font-size: 64px;
    line-height: 1;
    animation: pulse 2s ease-in-out infinite;
}

.pop-art-ad .ad-title {
    font-family: 'Anton', 'Bebas Neue', sans-serif;
    font-size: 24px;
    letter-spacing: 2px;
    line-height: 1.1;
    margin: 0;
    text-transform: uppercase;
    font-weight: 900;
}

.pop-art-ad .ad-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    opacity: 0.9;
    margin: 0;
}

.pop-art-ad .ad-cta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 8px 20px;
    border-radius: 4px;
    margin-top: 8px;
    transition: all 0.2s ease;
}

/* PCC Ad - Pizza Quest Theme */
.pcc-ad {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-color: #ffd700;
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.3);
}

.pcc-ad .ad-title {
    color: #ffd700;
    text-shadow: 3px 3px 0 #ff4500, 
                 -1px -1px 0 #000,  
                  1px -1px 0 #000,
                 -1px  1px 0 #000,
                  1px  1px 0 #000;
}

.pcc-ad .ad-tagline {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.pcc-ad .ad-cta {
    background: #ffd700;
    color: #ff4500;
    border: 2px solid #ff4500;
}

.pcc-ad:hover {
    transform: scale(1.02) rotate(-1deg);
    box-shadow: 0 0 50px rgba(255, 107, 53, 0.5),
                0 0 80px rgba(255, 215, 0, 0.3);
}

.pcc-ad:hover .ad-cta {
    background: #ff4500;
    color: #ffd700;
    transform: scale(1.1);
}

/* Ghost Ad - Haunted Machine Theme */
.ghost-ad {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #3b82f6 100%);
    border-color: #22d3ee;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

.ghost-ad .ad-title {
    color: #22d3ee;
    text-shadow: 3px 3px 0 #ec4899,
                 -1px -1px 0 #000,  
                  1px -1px 0 #000,
                 -1px  1px 0 #000,
                  1px  1px 0 #000;
}

.ghost-ad .ad-tagline {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.ghost-ad .ad-cta {
    background: #22d3ee;
    color: #6366f1;
    border: 2px solid #ec4899;
}

.ghost-ad:hover {
    transform: scale(1.02) rotate(1deg);
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.5),
                0 0 80px rgba(34, 211, 238, 0.3);
}

.ghost-ad:hover .ad-cta {
    background: #ec4899;
    color: #fff;
    transform: scale(1.1);
}

/* Pulse animation for icons */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pop-art-ad .ad-icon {
        font-size: 48px;
    }
    
    .pop-art-ad .ad-title {
        font-size: 20px;
    }
    
    .pop-art-ad .ad-tagline {
        font-size: 12px;
    }
}
