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

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #121212;
    --bg-elevated: #1a1a1a;
    --bg-highlight: #252525;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #6a6a6a;
    --accent-primary: #1ed760;
    --accent-gradient: linear-gradient(135deg, #1ed760 0%, #1db954 100%);
    --accent-pink: #e91e63;
    --accent-purple: #9c27b0;
    --accent-blue: #2196f3;
    --accent-orange: #ff5722;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    --shadow-glow: 0 4px 15px rgba(30, 215, 96, 0.4);
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.app {
    display: grid;
    grid-template-columns: 280px 1fr;
    height: calc(100vh - 90px);
    background: var(--bg-primary);
}

/* Sidebar */
.sidebar {
    background: var(--bg-secondary);
    padding: 24px 12px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    border-right: 1px solid var(--glass-border);
    overflow: hidden;
    width: 280px;
    min-width: 280px;
    max-width: 280px;
}

.logo {
    display: flex;
    align-items: center;
    padding: 0 12px;
    height: 36px;
    flex-shrink: 0;
    gap: 10px;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.x-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--glass-bg);
    color: var(--text-primary);
    transition: all var(--transition-fast);
    margin-left: 6px;
    flex-shrink: 0;
}

.x-logo-link:hover {
    color: #ffffff;
    background: var(--bg-highlight);
    transform: scale(1.1);
}

.x-logo-icon {
    width: 14px;
    height: 14px;
}

.ca-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.ca-label {
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.ca-value {
    color: var(--text-primary);
    font-weight: 500;
}

.ca-divider {
    color: var(--text-muted);
}

.ca-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    transition: color var(--transition-fast);
}

.ca-link:hover {
    color: var(--accent-primary);
}

.x-btn-topbar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.x-btn-topbar:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.x-btn-topbar svg {
    width: 18px;
    height: 18px;
}

.logo img {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    min-width: 36px;
    min-height: 36px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all var(--transition-fast);
}

.nav-item:hover {
    color: var(--text-primary);
    background: var(--glass-bg);
}

.nav-item.active {
    color: var(--text-primary);
    background: var(--glass-bg);
}

.nav-item svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.playlist-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
}

.section-header h3 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.add-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.add-btn:hover {
    color: var(--text-primary);
    background: var(--glass-bg);
    transform: scale(1.1);
}

.add-btn svg {
    width: 20px;
    height: 20px;
}

.playlist-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    padding-right: 4px;
}

.playlist-list::-webkit-scrollbar {
    width: 8px;
}

.playlist-list::-webkit-scrollbar-track {
    background: transparent;
}

.playlist-list::-webkit-scrollbar-thumb {
    background: var(--bg-highlight);
    border-radius: 4px;
}

.playlist-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.playlist-item:hover {
    background: var(--glass-bg);
    color: var(--text-primary);
}

.playlist-item.active-playlist {
    background: var(--glass-bg);
    color: var(--text-primary);
}

.playlist-cover {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.playlist-cover svg {
    width: 20px;
    height: 20px;
}

.gradient-1 {
    background: linear-gradient(135deg, #5b4de3 0%, #9333ea 100%);
    color: white;
}

.gradient-2 {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.gradient-3 {
    background: linear-gradient(135deg, #134e5e 0%, #71b280 100%);
}

.gradient-4 {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
}

/* Main Content */
.main-content {
    overflow-y: auto;
    background: linear-gradient(180deg, #2a1f4e 0%, var(--bg-primary) 40%);
    position: relative;
}

.main-content::-webkit-scrollbar {
    width: 12px;
}

.main-content::-webkit-scrollbar-track {
    background: transparent;
}

.main-content::-webkit-scrollbar-thumb {
    background: var(--bg-highlight);
    border-radius: 6px;
    border: 3px solid transparent;
    background-clip: padding-box;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
    border: 3px solid transparent;
    background-clip: padding-box;
}

/* Top Bar */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: linear-gradient(180deg, rgba(42, 31, 78, 0.95) 0%, rgba(42, 31, 78, 0.8) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-arrows {
    display: flex;
    gap: 8px;
}

.arrow-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.4);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.arrow-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.05);
}

.arrow-btn svg {
    width: 20px;
    height: 20px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.upgrade-btn {
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid var(--text-primary);
    background: transparent;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.upgrade-btn:hover {
    transform: scale(1.04);
    background: var(--text-primary);
    color: var(--bg-primary);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.user-avatar:hover {
    border-color: var(--accent-primary);
    transform: scale(1.1);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero Section */
.hero-section {
    padding: 80px 32px 32px;
    display: flex;
    align-items: flex-end;
    gap: 24px;
    position: relative;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(180deg, transparent 0%, var(--bg-primary) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: block;
}

.hero-title {
    font-size: 72px;
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 1;
    margin-bottom: 16px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.hero-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.meta-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.meta-name {
    font-weight: 700;
    color: var(--text-primary);
}

.meta-dot {
    color: var(--text-muted);
}

.meta-count {
    color: var(--text-secondary);
}

/* Controls Section */
.controls-section {
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.play-btn-large {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: var(--accent-gradient);
    color: var(--bg-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(30, 215, 96, 0.4);
    transition: all var(--transition-bounce);
}

.play-btn-large:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(30, 215, 96, 0.5);
}

.play-btn-large svg {
    width: 24px;
    height: 24px;
    margin-left: 3px;
}

.shuffle-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.shuffle-btn:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

.shuffle-btn.active {
    color: var(--accent-primary);
}

.shuffle-btn svg {
    width: 22px;
    height: 22px;
}

.icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.icon-btn:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

.icon-btn svg {
    width: 20px;
    height: 20px;
}

/* Tracks Section */
.tracks-section {
    padding: 0 32px 100px;
}

.tracks-header {
    display: grid;
    grid-template-columns: 40px 1fr 1fr 150px 60px;
    gap: 16px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.tracks-header svg {
    width: 16px;
    height: 16px;
}

.tracks-list {
    display: flex;
    flex-direction: column;
}

.track-row {
    display: grid;
    grid-template-columns: 40px 1fr 1fr 150px 60px;
    gap: 16px;
    padding: 8px 16px;
    border-radius: 8px;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.track-row:hover {
    background: var(--glass-bg);
}

.track-row:hover .track-num {
    display: none;
}

.track-row:hover .track-play {
    display: flex;
}

.track-row.playing {
    background: var(--glass-bg);
}

.track-row.playing .track-num {
    display: none;
}

.track-row.playing .track-playing-indicator {
    display: flex;
}

.track-number-cell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.track-num {
    font-variant-numeric: tabular-nums;
}

.track-play {
    display: none;
    width: 16px;
    height: 16px;
    color: var(--text-primary);
}

.track-playing-indicator {
    display: none;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.track-playing-indicator span {
    width: 3px;
    background: var(--accent-primary);
    border-radius: 2px;
    animation: soundwave 0.5s ease-in-out infinite alternate;
}

.track-playing-indicator span:nth-child(1) {
    height: 6px;
    animation-delay: 0s;
}

.track-playing-indicator span:nth-child(2) {
    height: 10px;
    animation-delay: 0.1s;
}

.track-playing-indicator span:nth-child(3) {
    height: 4px;
    animation-delay: 0.2s;
}

.track-playing-indicator span:nth-child(4) {
    height: 8px;
    animation-delay: 0.3s;
}

@keyframes soundwave {
    0% { transform: scaleY(0.5); }
    100% { transform: scaleY(1); }
}

.track-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.track-cover {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.track-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.track-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.track-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-row.playing .track-name {
    color: var(--accent-primary);
}

.track-artist {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.track-album-name {
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-album-name:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.track-date-added {
    font-size: 14px;
    color: var(--text-secondary);
}

.track-duration {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Now Playing Bar */
.now-playing-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 90px;
    background: linear-gradient(180deg, #181818 0%, #0d0d0d 100%);
    border-top: 1px solid var(--glass-border);
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    padding: 0 16px;
    z-index: 1000;
}

.now-playing-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.now-playing-cover {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.now-playing-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.now-playing-cover:hover img {
    transform: scale(1.05);
}

.now-playing-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.now-playing-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.now-playing-title:hover {
    text-decoration: underline;
}

.now-playing-artist {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.now-playing-artist:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.like-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.like-btn:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

.like-btn.liked {
    color: var(--accent-primary);
}

.like-btn svg {
    width: 18px;
    height: 18px;
}

/* Playback Controls */
.now-playing-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
}

.playback-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.control-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.control-btn:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

.control-btn.active {
    color: var(--accent-primary);
}

.control-btn svg {
    width: 16px;
    height: 16px;
}

.play-pause-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--text-primary);
    color: var(--bg-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-bounce);
}

.play-pause-btn:hover {
    transform: scale(1.08);
    background: #fff;
}

.play-pause-btn svg {
    width: 18px;
    height: 18px;
}

.play-pause-btn .play-icon {
    margin-left: 2px;
}

/* Progress Bar */
.progress-container {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.time-current,
.time-total {
    font-size: 11px;
    color: var(--text-secondary);
    min-width: 40px;
    font-variant-numeric: tabular-nums;
}

.time-current {
    text-align: right;
}

.progress-bar {
    flex: 1;
    height: 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.progress-track {
    position: relative;
    width: 100%;
    height: 4px;
    background: var(--bg-highlight);
    border-radius: 2px;
    overflow: visible;
}

.progress-fill {
    height: 100%;
    background: var(--text-primary);
    border-radius: 2px;
    width: 0%;
    transition: background var(--transition-fast);
}

.progress-bar:hover .progress-fill {
    background: var(--accent-primary);
}

.progress-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 12px;
    height: 12px;
    background: var(--text-primary);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: transform var(--transition-fast);
}

.progress-bar:hover .progress-handle {
    transform: translate(-50%, -50%) scale(1);
}

/* Volume */
.now-playing-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider {
    width: 100px;
    height: 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.volume-track {
    position: relative;
    width: 100%;
    height: 4px;
    background: var(--bg-highlight);
    border-radius: 2px;
    overflow: visible;
}

.volume-fill {
    height: 100%;
    background: var(--text-primary);
    border-radius: 2px;
    width: 70%;
    transition: background var(--transition-fast);
}

.volume-slider:hover .volume-fill {
    background: var(--accent-primary);
}

.volume-handle {
    position: absolute;
    top: 50%;
    left: 70%;
    transform: translate(-50%, -50%) scale(0);
    width: 12px;
    height: 12px;
    background: var(--text-primary);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: transform var(--transition-fast);
}

.volume-slider:hover .volume-handle {
    transform: translate(-50%, -50%) scale(1);
}

/* Responsive */
@media (max-width: 1200px) {
    .tracks-header,
    .track-row {
        grid-template-columns: 40px 1fr 150px 60px;
    }
    
    .track-album {
        display: none;
    }
    
    .track-album-name {
        display: none;
    }
}

@media (max-width: 900px) {
    .app {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none;
    }
    
    .hero-title {
        font-size: 48px;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 36px;
    }
    
    .now-playing-bar {
        grid-template-columns: 1fr 1fr;
    }
    
    .now-playing-right {
        display: none;
    }
    
    .tracks-header,
    .track-row {
        grid-template-columns: 40px 1fr 60px;
    }
    
    .track-date-added,
    .track-date {
        display: none;
    }
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.track-row {
    animation: slideUp 0.3s ease-out both;
}

.track-row:nth-child(1) { animation-delay: 0.02s; }
.track-row:nth-child(2) { animation-delay: 0.04s; }
.track-row:nth-child(3) { animation-delay: 0.06s; }
.track-row:nth-child(4) { animation-delay: 0.08s; }
.track-row:nth-child(5) { animation-delay: 0.1s; }
.track-row:nth-child(6) { animation-delay: 0.12s; }
.track-row:nth-child(7) { animation-delay: 0.14s; }
.track-row:nth-child(8) { animation-delay: 0.16s; }
.track-row:nth-child(9) { animation-delay: 0.18s; }
.track-row:nth-child(10) { animation-delay: 0.2s; }

/* Wallet Modal */
.wallet-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
}

.wallet-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.wallet-modal {
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    width: 420px;
    max-width: 90vw;
    padding: 32px;
    position: relative;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    transform: translateY(20px) scale(0.95);
    transition: transform var(--transition-smooth);
}

.wallet-modal-overlay.active .wallet-modal {
    transform: translateY(0) scale(1);
}

.wallet-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--glass-bg);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.wallet-modal-close:hover {
    background: var(--bg-highlight);
    color: var(--text-primary);
    transform: scale(1.1);
}

.wallet-modal-close svg {
    width: 18px;
    height: 18px;
}

.wallet-modal-header {
    text-align: center;
    margin-bottom: 28px;
}

.wallet-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9945FF, #14F195);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.wallet-modal-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.wallet-modal-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.wallet-modal-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

.wallet-modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wallet-step.hidden {
    display: none;
}

.connect-wallet-btn {
    width: 100%;
    padding: 16px 24px;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    background: linear-gradient(135deg, rgba(153, 69, 255, 0.15), rgba(20, 241, 149, 0.15));
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all var(--transition-fast);
}

.connect-wallet-btn:hover {
    background: linear-gradient(135deg, rgba(153, 69, 255, 0.3), rgba(20, 241, 149, 0.3));
    border-color: rgba(153, 69, 255, 0.5);
    transform: scale(1.02);
}

.phantom-icon {
    width: 24px;
    height: 24px;
}

.wallet-hint {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
}

.wallet-connected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.wallet-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #14F195;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #14F195;
    box-shadow: 0 0 8px rgba(20, 241, 149, 0.5);
}

.wallet-address {
    font-size: 13px;
    color: var(--text-secondary);
    font-family: monospace;
}

.donate-info {
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

.donate-amount,
.donate-to {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
}

.donate-amount {
    border-bottom: 1px solid var(--glass-border);
}

.amount-label,
.to-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.amount-value {
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, #9945FF, #14F195);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.to-value {
    font-size: 13px;
    color: var(--text-primary);
    font-family: monospace;
}

.donate-btn {
    width: 100%;
    padding: 16px 24px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, #9945FF, #14F195);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-top: 4px;
}

.donate-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(153, 69, 255, 0.4);
}

.donate-btn:active {
    transform: scale(0.98);
}

.donate-success {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    width: 56px;
    height: 56px;
    color: #14F195;
    margin-bottom: 16px;
}

.donate-success h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.donate-success p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.tx-link {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: #14F195;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.tx-link:hover {
    background: var(--bg-highlight);
    transform: scale(1.02);
}
