/* Bitcoin Price Live Styles */
:root {
    --color-orange-400: #fb923c;
    --bg-dark: #0a0a0b;
    --bg-card: #1a1a1b;
    --text-primary: #ffffff;
    --text-secondary: #a1a1a1;
    --border-color: #2a2a2b;
    --success-green: #10b981;
    --error-red: #ef4444;
}

[data-theme="light"] {
    --bg-dark: #ffffff;
    --bg-card: #f8fafc;
    --text-primary: #0a0a0b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
}

/* Dark theme background with grid */
html[data-theme="dark"],
html:not([data-theme]) {
    background: 
        linear-gradient(90deg, transparent 9px, rgba(255,255,255,0.03) 10px, rgba(255,255,255,0.03) 10px, transparent 11px),
        linear-gradient(transparent 9px, rgba(255,255,255,0.03) 10px, rgba(255,255,255,0.03) 10px, transparent 11px),
        linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-card) 100%);
    background-size: 10px 10px, 10px 10px, 100% 100%;
    background-attachment: fixed;
}

[data-theme="dark"] body,
body:not([data-theme]) {
    background: 
        linear-gradient(90deg, transparent 9px, rgba(255,255,255,0.03) 10px, rgba(255,255,255,0.03) 10px, transparent 11px),
        linear-gradient(transparent 9px, rgba(255,255,255,0.03) 10px, rgba(255,255,255,0.03) 10px, transparent 11px),
        linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-card) 100%);
    background-size: 10px 10px, 10px 10px, 100% 100%;
}

/* Light theme background with grid */
html[data-theme="light"] {
    background: 
        linear-gradient(90deg, transparent 9px, rgba(0,0,0,0.03) 10px, rgba(0,0,0,0.03) 10px, transparent 11px),
        linear-gradient(transparent 9px, rgba(0,0,0,0.03) 10px, rgba(0,0,0,0.03) 10px, transparent 11px),
        linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-card) 100%);
    background-size: 10px 10px, 10px 10px, 100% 100%;
    background-attachment: fixed;
}

[data-theme="light"] body {
    background: 
        linear-gradient(90deg, transparent 9px, rgba(0,0,0,0.03) 10px, rgba(0,0,0,0.03) 10px, transparent 11px),
        linear-gradient(transparent 9px, rgba(0,0,0,0.03) 10px, rgba(0,0,0,0.03) 10px, transparent 11px),
        linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-card) 100%);
    background-size: 10px 10px, 10px 10px, 100% 100%;
}

/* No grid backgrounds */
[data-theme="dark"] body.no-grid:not(.has-background-image),
body:not([data-theme]).no-grid:not(.has-background-image) {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-card) 100%) !important;
}

[data-theme="light"] body.no-grid:not(.has-background-image) {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-card) 100%) !important;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: background 0.3s ease, color 0.3s ease;
    color: var(--text-primary);
    height: 100vh;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.container {
    max-width: 800px;
    height: 100vh;
    overflow-y: auto;
    margin: 0 auto;
    padding: 6rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.top-header {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.help-button {
    background: rgba(42, 42, 43, 0.8);
    border: none;
    border-radius: 18px;
    width: 26px;
    height: 26px;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

[data-theme="light"] .help-button {
    background: rgba(226, 232, 240, 0.8);
    color: var(--text-primary);
}

.help-button:hover {
    transform: scale(1.02);
    background: var(--color-orange-400);
    color: white;
    opacity: 1;
}

.help-button:active {
    transform: scale(0.98);
}

.donate-button {
    background: rgba(42, 42, 43, 0.8);
    border: none;
    border-radius: 18px;
    width: 26px;
    height: 26px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    padding: 0;
}

[data-theme="light"] .donate-button {
    background: rgba(226, 232, 240, 0.8);
    color: var(--text-primary);
}

.donate-button:hover {
    transform: scale(1.02);
    background: var(--color-orange-400);
    opacity: 1;
}

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

.donate-icon {
    font-size: 14px;
    line-height: 1;
}

.image-toggle {
    background: rgba(42, 42, 43, 0.8);
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

[data-theme="light"] .image-toggle {
    background: rgba(226, 232, 240, 0.8);
    color: var(--text-primary);
}

.image-toggle:hover {
    transform: scale(1.02);
    background: var(--color-orange-400);
    color: white;
    opacity: 1;
}

.image-toggle:active {
    transform: scale(0.98);
}

.image-icon {
    transition: all 0.3s ease;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.bottom-controls {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.controls-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(26, 26, 27, 0.6);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(42, 42, 43, 0.5);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.controls-wrapper:hover {
    opacity: 1;
}

[data-theme="light"] .controls-wrapper {
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.theme-toggle {
    background: rgba(42, 42, 43, 0.8);
    border: none;
    border-radius: 18px;
    width: 48px;
    height: 26px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
    padding: 2px;
    overflow: hidden;
    opacity: 0.9;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .theme-toggle {
    background: var(--color-orange-400);
    opacity: 1;
}

[data-theme="light"] .theme-toggle::before {
    transform: translateX(22px);
    background: white;
}

.theme-toggle:hover {
    transform: scale(1.02);
}

.theme-toggle:active {
    transform: scale(0.98);
}

.theme-icon {
    position: absolute;
    font-size: 11px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    pointer-events: none;
}

.theme-toggle .theme-icon:first-child {
    left: 5px;
    opacity: 1;
}

.theme-toggle .theme-icon:last-child {
    right: 5px;
    opacity: 0.4;
}

[data-theme="light"] .theme-toggle .theme-icon:first-child {
    opacity: 0.4;
}

[data-theme="light"] .theme-toggle .theme-icon:last-child {
    opacity: 1;
}

.spotify-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 18px;
    background: rgba(42, 42, 43, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    opacity: 0.9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .spotify-link {
    background: rgba(226, 232, 240, 0.8);
}

.spotify-link:hover {
    transform: scale(1.02);
    background: #1db954;
    opacity: 1;
}

.spotify-link:active {
    transform: scale(0.98);
}

.spotify-icon {
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.spotify-link:hover .spotify-icon {
    color: white;
}

.twitter-share {
    background: rgba(42, 42, 43, 0.8);
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
    padding: 0;
}

[data-theme="light"] .twitter-share {
    background: rgba(226, 232, 240, 0.8);
    color: var(--text-primary);
}

.twitter-share:hover {
    transform: scale(1.02);
    background: var(--color-orange-400);
    color: white;
    opacity: 1;
}

.twitter-share:active {
    transform: scale(0.98);
}

.twitter-icon {
    transition: all 0.3s ease;
}

header h1 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-orange-400) 0%, #ff6b35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    from { filter: drop-shadow(0 0 10px rgba(251, 146, 60, 0.3)); }
    to { filter: drop-shadow(0 0 20px rgba(251, 146, 60, 0.6)); }
}

.tagline {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 300;
}

.price-container {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    margin-bottom: 2rem;
    box-shadow: none;
    transition: all 0.3s ease;
}

.currency-selector {
    position: relative;
}

.currency-selector select {
    background: rgba(42, 42, 43, 0.8);
    color: var(--text-primary);
    border: none;
    border-radius: 18px;
    padding: 0.4rem 2rem 0.4rem 0.8rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 100px;
    font-weight: 500;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    height: 26px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

[data-theme="light"] .currency-selector select {
    background: rgba(226, 232, 240, 0.8);
}

.currency-selector::after {
    content: '▲';
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6rem;
    color: var(--text-secondary);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
}

.currency-selector select:hover {
    transform: scale(1.02);
}

.currency-selector select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.2);
}

.currency-selector select option {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 0.5rem;
}

.currency-selector select optgroup {
    background: var(--bg-dark);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.75rem;
}

.price-display {
    margin: 2rem 0;
}

.price-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 1rem;
    gap: 0.25rem;
}

.currency-symbol {
    font-size: 2.5rem;
    color: var(--color-orange-400);
    font-weight: 700;
}

.price {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Add subtle text shadow when there's a background image for readability */
body.has-background-image .price-wrapper {
    padding: 1rem 2rem;
}

body.has-background-image .currency-symbol {
    color: var(--color-orange-400);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

body.has-background-image .price {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.price.flash-up {
    animation: flashUp 0.6s ease-out;
}

.price.flash-down {
    animation: flashDown 0.6s ease-out;
}

/* Show colors only when price colors are enabled */
:not(.price-colors-disabled) .price.flash-up {
    color: var(--success-green) !important;
}

:not(.price-colors-disabled) .price.flash-down {
    color: var(--error-red) !important;
}

/* Persistent price colors based on direction */
:not(.price-colors-disabled) .price.price-up {
    color: var(--success-green) !important;
}

:not(.price-colors-disabled) .price.price-down {
    color: var(--error-red) !important;
}

/* Disable color changes when price colors are off */
.price-colors-disabled .price.flash-up {
    animation: flashUpNoColor 0.6s ease-out;
}

.price-colors-disabled .price.flash-down {
    animation: flashDownNoColor 0.6s ease-out;
}

.price-colors-disabled .price.rapid-up,
.price-colors-disabled .price.rapid-down,
.price-colors-disabled .price.price-up,
.price-colors-disabled .price.price-down {
    color: var(--text-primary) !important;
}

@keyframes flashUpNoColor {
    0% { 
        color: var(--text-primary); 
        text-shadow: none;
    }
    50% { 
        color: var(--text-primary); 
        transform: scale(1.05); 
        text-shadow: none;
    }
    100% { 
        color: var(--text-primary); 
        transform: scale(1);
        text-shadow: none;
    }
}

@keyframes flashDownNoColor {
    0% { 
        color: var(--text-primary); 
        text-shadow: none;
    }
    50% { 
        color: var(--text-primary); 
        transform: scale(1.05); 
        text-shadow: none;
    }
    100% { 
        color: var(--text-primary); 
        transform: scale(1);
        text-shadow: none;
    }
}

@keyframes flashUp {
    0% { 
        color: var(--text-primary); 
        text-shadow: none;
    }
    50% { 
        color: var(--success-green); 
        transform: scale(1.05); 
        text-shadow: 0 0 15px var(--success-green);
    }
    100% { 
        color: var(--success-green); 
        transform: scale(1);
        text-shadow: none;
    }
}

@keyframes flashDown {
    0% { 
        color: var(--text-primary); 
        text-shadow: none;
    }
    50% { 
        color: var(--error-red); 
        transform: scale(1.05); 
        text-shadow: 0 0 15px var(--error-red);
    }
    100% { 
        color: var(--error-red); 
        transform: scale(1);
        text-shadow: none;
    }
}

@keyframes rapidUp {
    0% { color: var(--text-primary); }
    100% { color: var(--success-green); text-shadow: 0 0 10px var(--success-green); }
}

@keyframes rapidDown {
    0% { color: var(--text-primary); }
    100% { color: var(--error-red); text-shadow: 0 0 10px var(--error-red); }
}

.price.rapid-up {
    animation: rapidUp 0.2s ease-out;
    color: var(--success-green) !important;
}

.price.rapid-down {
    animation: rapidDown 0.2s ease-out;
    color: var(--error-red) !important;
}

.price-change {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.price-change.positive {
    color: var(--success-green);
}

.price-change.negative {
    color: var(--error-red);
}

.live-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--color-orange-400);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
    transition: all 0.3s ease;
}

.live-indicator.connecting {
    color: var(--color-orange-400);
}

.live-indicator.loading {
    color: var(--color-orange-400);
}

.live-indicator.live {
    color: var(--success-green);
}

.live-indicator.error {
    color: var(--error-red);
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--color-orange-400);
    border-radius: 50%;
    animation: pulse-live 1.5s ease-in-out infinite;
    transition: all 0.3s ease;
}

.live-indicator.connecting .pulse {
    background: var(--color-orange-400);
    animation: pulse-connecting 1s ease-in-out infinite;
}

.live-indicator.loading .pulse {
    background: var(--color-orange-400);
    animation: pulse-loading 0.8s ease-in-out infinite;
}

.live-indicator.live .pulse {
    background: var(--success-green);
    animation: pulse-live 1.5s ease-in-out infinite;
}

.live-indicator.error .pulse {
    background: var(--error-red);
    animation: pulse-error 0.5s ease-in-out infinite;
}

.bg-loader {
    position: fixed;
    top: 1rem;
    left: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.bg-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 12px;
    height: 12px;
    border: 1.5px solid transparent;
    border-top: 1.5px solid var(--color-orange-400);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

@keyframes pulse-live {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.3;
        transform: scale(1.2);
    }
}

@keyframes pulse-connecting {
    0%, 100% { 
        opacity: 0.5;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes pulse-loading {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% { 
        opacity: 1;
        transform: scale(1.3);
    }
}

@keyframes pulse-error {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.2;
        transform: scale(1.4);
    }
}


.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.stat-item {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0.75rem;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.stat-item:hover {
    opacity: 1;
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.7rem;
    margin-bottom: 0.3rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

.stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

/* View Counter */
.view-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    pointer-events: none;
    user-select: none;
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.25rem 0.5rem;
    margin-top: 0.5rem;
}

.view-counter:hover {
    opacity: 0.8;
}

[data-theme="dark"] .view-counter {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

/* View counter with background image */
body.has-background-image .view-counter {
    background: var(--color-orange-400);
    border-color: var(--color-orange-400);
    color: white;
}

body.has-background-image .view-count,
body.has-background-image .view-label {
    color: white;
}

.view-count {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
    transition: transform 0.3s ease;
}

.view-count.updating {
    transform: scale(1.1);
}

.view-label {
    opacity: 0.6;
    font-size: 0.7rem;
}


@keyframes pulse {
    0%, 100% {
        opacity: 0;
        transform: translateY(-50%) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.2);
    }
}

/* View count number animation */
@keyframes countUp {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.view-count.count-up {
    animation: countUp 0.5s ease-out;
}

/* Main content positioning for all screen sizes */
main {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 2rem);
}

.container {
    min-height: 100vh;
    position: relative;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    .price {
        font-size: 3.5rem;
    }
    
    .currency-symbol {
        font-size: 2rem;
    }
    
    .price-container {
        padding: 2rem 1.5rem;
    }
    
    .top-header {
        top: 1rem;
    }
    
    .bottom-controls {
        bottom: 1rem;
    }
    
    .controls-wrapper {
        padding: 0.4rem;
        gap: 0.4rem;
    }
    
    .currency-selector select {
        min-width: 110px;
    }
    
    .spotify-icon {
        width: 18px;
        height: 18px;
    }
    
    .bitcoin-chart-loader {
        height: 60px;
        max-width: 1080px;
        gap: 2px;
    }
    
    .chart-bar {
        width: 4px;
    }
    
    .help-modal-content {
        padding: 1.5rem;
        max-width: 350px;
    }
    
    .help-header h2 {
        font-size: 1.1rem;
    }
    
    .donate-button,
    .help-button {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    
    .image-toggle {
        width: 24px;
        height: 24px;
    }
    
    .twitter-share {
        width: 24px;
        height: 24px;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
}

/* Number transition effect */
.digit-flip {
    display: inline-block;
    animation: flipNumber 0.3s ease-in-out;
}

@keyframes flipNumber {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(90deg); }
    100% { transform: rotateY(0deg); }
}

/* Loading animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

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

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

.loading-skeleton {
    background: linear-gradient(90deg, 
        var(--border-color) 25%, 
        var(--color-orange-400) 50%, 
        var(--border-color) 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.bitcoin-chart-loader {
    width: 100%;
    max-width: 1440px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    position: relative;
}

.chart-bar {
    width: 6px;
    background: var(--color-orange-400);
    border-radius: 1px 1px 0 0;
    opacity: 0.3;
    transition: all 0.3s ease;
}

/* Left side bars - original pattern */
.chart-bar:nth-child(1) { height: 30%; animation: bitcoin-bar-1 2.5s ease-in-out infinite; }
.chart-bar:nth-child(2) { height: 45%; animation: bitcoin-bar-2 2.5s ease-in-out infinite 0.1s; }
.chart-bar:nth-child(3) { height: 65%; animation: bitcoin-bar-3 2.5s ease-in-out infinite 0.2s; }
.chart-bar:nth-child(4) { height: 80%; animation: bitcoin-bar-4 2.5s ease-in-out infinite 0.3s; }
.chart-bar:nth-child(5) { height: 95%; animation: bitcoin-bar-5 2.5s ease-in-out infinite 0.4s; }
.chart-bar:nth-child(6) { height: 75%; animation: bitcoin-bar-6 2.5s ease-in-out infinite 0.5s; }
.chart-bar:nth-child(7) { height: 60%; animation: bitcoin-bar-7 2.5s ease-in-out infinite 0.6s; }
.chart-bar:nth-child(8) { height: 85%; animation: bitcoin-bar-8 2.5s ease-in-out infinite 0.7s; }
.chart-bar:nth-child(9) { height: 70%; animation: bitcoin-bar-9 2.5s ease-in-out infinite 0.8s; }
.chart-bar:nth-child(10) { height: 90%; animation: bitcoin-bar-10 2.5s ease-in-out infinite 0.9s; }
.chart-bar:nth-child(11) { height: 55%; animation: bitcoin-bar-11 2.5s ease-in-out infinite 1.0s; }
.chart-bar:nth-child(12) { height: 40%; animation: bitcoin-bar-12 2.5s ease-in-out infinite 1.1s; }
.chart-bar:nth-child(13) { height: 75%; animation: bitcoin-bar-13 2.5s ease-in-out infinite 1.2s; }
.chart-bar:nth-child(14) { height: 85%; animation: bitcoin-bar-14 2.5s ease-in-out infinite 1.3s; }
.chart-bar:nth-child(15) { height: 50%; animation: bitcoin-bar-15 2.5s ease-in-out infinite 1.4s; }

/* Right side bars - mirrored with different heights */
.chart-bar:nth-child(16) { height: 55%; animation: bitcoin-bar-16 2.5s ease-in-out infinite 1.5s; }
.chart-bar:nth-child(17) { height: 70%; animation: bitcoin-bar-17 2.5s ease-in-out infinite 1.6s; }
.chart-bar:nth-child(18) { height: 35%; animation: bitcoin-bar-18 2.5s ease-in-out infinite 1.7s; }
.chart-bar:nth-child(19) { height: 60%; animation: bitcoin-bar-19 2.5s ease-in-out infinite 1.8s; }
.chart-bar:nth-child(20) { height: 45%; animation: bitcoin-bar-20 2.5s ease-in-out infinite 1.9s; }
.chart-bar:nth-child(21) { height: 80%; animation: bitcoin-bar-21 2.5s ease-in-out infinite 2.0s; }
.chart-bar:nth-child(22) { height: 65%; animation: bitcoin-bar-22 2.5s ease-in-out infinite 2.1s; }
.chart-bar:nth-child(23) { height: 40%; animation: bitcoin-bar-23 2.5s ease-in-out infinite 2.2s; }
.chart-bar:nth-child(24) { height: 75%; animation: bitcoin-bar-24 2.5s ease-in-out infinite 2.3s; }
.chart-bar:nth-child(25) { height: 50%; animation: bitcoin-bar-25 2.5s ease-in-out infinite 2.4s; }
.chart-bar:nth-child(26) { height: 85%; animation: bitcoin-bar-26 2.5s ease-in-out infinite 2.5s; }
.chart-bar:nth-child(27) { height: 90%; animation: bitcoin-bar-27 2.5s ease-in-out infinite 2.6s; }
.chart-bar:nth-child(28) { height: 45%; animation: bitcoin-bar-28 2.5s ease-in-out infinite 2.7s; }
.chart-bar:nth-child(29) { height: 65%; animation: bitcoin-bar-29 2.5s ease-in-out infinite 2.8s; }
.chart-bar:nth-child(30) { height: 35%; animation: bitcoin-bar-30 2.5s ease-in-out infinite 2.9s; }

@keyframes bitcoin-bar-1 { 0%, 100% { opacity: 0.3; height: 30%; } 50% { opacity: 1; height: 60%; } }
@keyframes bitcoin-bar-2 { 0%, 100% { opacity: 0.3; height: 45%; } 50% { opacity: 1; height: 75%; } }
@keyframes bitcoin-bar-3 { 0%, 100% { opacity: 0.3; height: 65%; } 50% { opacity: 1; height: 85%; } }
@keyframes bitcoin-bar-4 { 0%, 100% { opacity: 0.3; height: 80%; } 50% { opacity: 1; height: 95%; } }
@keyframes bitcoin-bar-5 { 0%, 100% { opacity: 0.3; height: 95%; } 50% { opacity: 1; height: 100%; } }
@keyframes bitcoin-bar-6 { 0%, 100% { opacity: 0.3; height: 75%; } 50% { opacity: 1; height: 90%; } }
@keyframes bitcoin-bar-7 { 0%, 100% { opacity: 0.3; height: 60%; } 50% { opacity: 1; height: 80%; } }
@keyframes bitcoin-bar-8 { 0%, 100% { opacity: 0.3; height: 85%; } 50% { opacity: 1; height: 95%; } }
@keyframes bitcoin-bar-9 { 0%, 100% { opacity: 0.3; height: 70%; } 50% { opacity: 1; height: 85%; } }
@keyframes bitcoin-bar-10 { 0%, 100% { opacity: 0.3; height: 90%; } 50% { opacity: 1; height: 100%; } }
@keyframes bitcoin-bar-11 { 0%, 100% { opacity: 0.3; height: 55%; } 50% { opacity: 1; height: 70%; } }
@keyframes bitcoin-bar-12 { 0%, 100% { opacity: 0.3; height: 40%; } 50% { opacity: 1; height: 65%; } }
@keyframes bitcoin-bar-13 { 0%, 100% { opacity: 0.3; height: 75%; } 50% { opacity: 1; height: 90%; } }
@keyframes bitcoin-bar-14 { 0%, 100% { opacity: 0.3; height: 85%; } 50% { opacity: 1; height: 95%; } }
@keyframes bitcoin-bar-15 { 0%, 100% { opacity: 0.3; height: 50%; } 50% { opacity: 1; height: 70%; } }

/* Mirror side keyframes with different patterns */
@keyframes bitcoin-bar-16 { 0%, 100% { opacity: 0.3; height: 55%; } 50% { opacity: 1; height: 75%; } }
@keyframes bitcoin-bar-17 { 0%, 100% { opacity: 0.3; height: 70%; } 50% { opacity: 1; height: 85%; } }
@keyframes bitcoin-bar-18 { 0%, 100% { opacity: 0.3; height: 35%; } 50% { opacity: 1; height: 60%; } }
@keyframes bitcoin-bar-19 { 0%, 100% { opacity: 0.3; height: 60%; } 50% { opacity: 1; height: 80%; } }
@keyframes bitcoin-bar-20 { 0%, 100% { opacity: 0.3; height: 45%; } 50% { opacity: 1; height: 70%; } }
@keyframes bitcoin-bar-21 { 0%, 100% { opacity: 0.3; height: 80%; } 50% { opacity: 1; height: 95%; } }
@keyframes bitcoin-bar-22 { 0%, 100% { opacity: 0.3; height: 65%; } 50% { opacity: 1; height: 85%; } }
@keyframes bitcoin-bar-23 { 0%, 100% { opacity: 0.3; height: 40%; } 50% { opacity: 1; height: 65%; } }
@keyframes bitcoin-bar-24 { 0%, 100% { opacity: 0.3; height: 75%; } 50% { opacity: 1; height: 90%; } }
@keyframes bitcoin-bar-25 { 0%, 100% { opacity: 0.3; height: 50%; } 50% { opacity: 1; height: 75%; } }
@keyframes bitcoin-bar-26 { 0%, 100% { opacity: 0.3; height: 85%; } 50% { opacity: 1; height: 100%; } }
@keyframes bitcoin-bar-27 { 0%, 100% { opacity: 0.3; height: 90%; } 50% { opacity: 1; height: 100%; } }
@keyframes bitcoin-bar-28 { 0%, 100% { opacity: 0.3; height: 45%; } 50% { opacity: 1; height: 70%; } }
@keyframes bitcoin-bar-29 { 0%, 100% { opacity: 0.3; height: 65%; } 50% { opacity: 1; height: 80%; } }
@keyframes bitcoin-bar-30 { 0%, 100% { opacity: 0.3; height: 35%; } 50% { opacity: 1; height: 55%; } }

.loading-dots {
    display: inline-block;
}

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

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

.price.loading {
    animation: pulse 2s infinite ease-in-out;
}

/* Help Modal Styles */
.help-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.help-modal.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.help-modal-content {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(42, 42, 43, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.help-modal:not(.hidden) .help-modal-content {
    transform: scale(1);
}

[data-theme="light"] .help-modal-content {
    background: var(--bg-dark);
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.help-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(42, 42, 43, 0.3);
}

[data-theme="light"] .help-header {
    border-bottom: 1px solid rgba(226, 232, 240, 0.3);
}

.help-header h2 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.close-help {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-help:hover {
    color: var(--color-orange-400);
    background: rgba(251, 146, 60, 0.1);
}

.help-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.help-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.help-section h3 {
    color: var(--color-orange-400);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    border-bottom: 1px solid rgba(251, 146, 60, 0.2);
    padding-bottom: 0.5rem;
}

.help-section p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.bitcoin-address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(42, 42, 43, 0.5);
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(251, 146, 60, 0.3);
}

[data-theme="light"] .bitcoin-address {
    background: rgba(226, 232, 240, 0.5);
}

.bitcoin-address code {
    background: none;
    color: var(--color-orange-400);
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
    flex: 1;
    word-break: break-all;
}

.copy-btn {
    background: var(--color-orange-400);
    border: none;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.copy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(251, 146, 60, 0.3);
}

.copy-btn:active {
    transform: scale(0.95);
}

/* Donation Modal Styles */
.donation-section {
    margin: 1.5rem 0;
}

.donation-section h3 {
    color: var(--color-orange-400);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.mission-list {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.mission-list li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.donation-note {
    font-style: italic;
    opacity: 0.8;
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

.spotify-address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(42, 42, 43, 0.5);
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(29, 185, 84, 0.3);
}

[data-theme="light"] .spotify-address {
    background: rgba(226, 232, 240, 0.5);
}

.spotify-address a {
    background: none;
    color: #1db954;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
    flex: 1;
    word-break: break-all;
    text-decoration: none;
}

.spotify-btn {
    background: #1db954;
    border: none;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    color: white;
}

.spotify-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(29, 185, 84, 0.3);
}

.spotify-btn:active {
    transform: scale(0.95);
}

.spotify-collab {
    display: flex;
    justify-content: center;
}

.spotify-collab-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #1db954;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3);
}

.spotify-collab-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 185, 84, 0.4);
    background: #1ed760;
}

.spotify-collab-link:active {
    transform: translateY(0);
}

.spotify-icon-large {
    width: 20px;
    height: 20px;
    color: white;
}

.shortcut-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    background: rgba(42, 42, 43, 0.3);
    transition: background 0.3s ease;
}

[data-theme="light"] .shortcut-item {
    background: rgba(226, 232, 240, 0.3);
}

.shortcut-item:hover {
    background: rgba(251, 146, 60, 0.1);
}

.shortcut-item kbd {
    background: var(--color-orange-400);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 32px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.shortcut-item span {
    color: var(--text-primary);
    font-size: 0.9rem;
    flex: 1;
}

/* Hint Message Styles */
.hint-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    opacity: 0;
    transition: all 0.5s ease-in-out;
    pointer-events: none;
    margin-top: 80px; /* Position below the price display */
}

.hint-message:not(.hidden) {
    opacity: 1;
}

.hint-content {
    background: var(--color-orange-400);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.3);
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.hint-message.fade-out {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(-10px);
    margin-top: 80px;
}

@media (max-width: 768px) {
    .hint-content {
        font-size: 0.85rem;
        padding: 10px 16px;
    }
}

/* Copy Feedback Styles */
.copy-feedback {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-orange-400);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.4);
    backdrop-filter: blur(10px);
    z-index: 10001;
    opacity: 1;
    transition: all 0.3s ease-in-out;
    pointer-events: none;
    white-space: nowrap;
}

.copy-feedback.hidden {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
}

@media (max-width: 768px) {
    .copy-feedback {
        font-size: 0.85rem;
        padding: 10px 16px;
    }
}