/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #8B0000 0%, #4B0000 50%, #2F0000 100%);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(255, 69, 0, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 140, 0, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(10px);
    position: relative;
    box-shadow: 0 0 50px rgba(139, 0, 0, 0.3), 0 0 100px rgba(255, 69, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0;
}

/* Header */
.header {
    background: linear-gradient(135deg, #DC143C 0%, #B22222 50%, #8B0000 100%);
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid #FF4500;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.bitcoin-icon {
    font-size: 32px;
    color: #FFD700;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.5);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

.logo-text {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7), 0 0 15px rgba(255, 255, 255, 0.3);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

/* Main Content */
.main-content {
    padding: 20px 15px;
    text-align: center;
    max-width: 450px;
    margin: 0 auto;
}

/* Success Animation */
.success-animation {
    margin-bottom: 20px;
}

.checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    position: relative;
}

.checkmark-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.3);
    animation: scaleIn 0.5s ease-out;
}

.checkmark-stem {
    position: absolute;
    width: 4px;
    height: 30px;
    background: #8B0000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    transform-origin: bottom;
    animation: drawStem 0.5s ease-out 0.3s both;
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
}

.checkmark-kick {
    position: absolute;
    width: 4px;
    height: 20px;
    background: #8B0000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    transform-origin: bottom;
    animation: drawKick 0.5s ease-out 0.6s both;
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
}

@keyframes scaleIn {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

@keyframes drawStem {
    0% { height: 0; }
    100% { height: 30px; }
}

@keyframes drawKick {
    0% { height: 0; }
    100% { height: 20px; }
}

/* Typography */
.main-title {
    font-size: 28px;
    font-weight: bold;
    color: #8B0000;
    margin-bottom: 10px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 0 10px rgba(139, 0, 0, 0.3));
}

.subtitle {
    font-size: 20px;
    color: #B22222;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease-out 0.4s both;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.description {
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

.description-text {
    font-size: 16px;
    line-height: 1.5;
    color: #4B0000;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Bitcoin Wallet Card */
.wallet-card {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.9) 0%, rgba(75, 0, 0, 0.95) 50%, rgba(47, 0, 0, 0.9) 100%);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out 0.8s both;
    border: 2px solid #FFD700;
    box-shadow: 
        0 0 40px rgba(255, 215, 0, 0.3),
        0 0 80px rgba(255, 69, 0, 0.15),
        inset 0 0 20px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.wallet-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 69, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 140, 0, 0.05) 0%, transparent 70%);
    animation: rotate 25s linear infinite;
}

.wallet-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 215, 0, 0.05) 50%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

/* Wallet Header */
.wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.wallet-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bitcoin-logo {
    font-size: 32px;
    color: #FFD700;
    font-weight: bold;
    text-shadow: 
        0 0 20px rgba(255, 215, 0, 0.8),
        0 0 40px rgba(255, 215, 0, 0.4);
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.6));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

.wallet-brand {
    color: #FFD700;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 
        2px 2px 8px rgba(0, 0, 0, 0.7),
        0 0 15px rgba(255, 215, 0, 0.5);
    letter-spacing: 0.5px;
}

.wallet-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 0, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00FF00;
    box-shadow: 
        0 0 10px rgba(0, 255, 0, 0.8),
        0 0 20px rgba(0, 255, 0, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

.status-text {
    color: #00FF00;
    font-size: 12px;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
}

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

/* Wallet Balance */
.wallet-balance {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.balance-label {
    color: #FFD700;
    font-size: 14px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.balance-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}

.btc-amount {
    font-size: 36px;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 
        0 0 20px rgba(255, 215, 0, 0.8),
        0 0 40px rgba(255, 215, 0, 0.4);
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.6));
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    0% { text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.4); }
    100% { text-shadow: 0 0 30px rgba(255, 215, 0, 1), 0 0 60px rgba(255, 215, 0, 0.6); }
}

.btc-symbol {
    font-size: 20px;
    color: #FFD700;
    font-weight: 600;
    opacity: 0.9;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.balance-eur {
    font-size: 18px;
    color: #fff;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    font-weight: 500;
}

.eur-amount {
    font-weight: bold;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Wallet Actions */
.wallet-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.bottom-row {
    display: flex;
    justify-content: center;
}

.wallet-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    min-height: 80px;
}

.withdraw-btn {
    width: 100%;
    max-width: 200px;
    padding: 18px 15px;
    min-height: 90px;
}

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

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

.wallet-btn:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    border-color: #FFD700;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 10px 30px rgba(255, 215, 0, 0.4),
        0 0 50px rgba(255, 215, 0, 0.2);
}

.wallet-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.btn-icon {
    font-size: 24px;
    margin-bottom: 3px;
    transition: transform 0.3s ease;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.wallet-btn:hover .btn-icon {
    transform: scale(1.2);
}

.receive-btn .btn-icon {
    color: #00FF00;
    text-shadow: 0 0 15px rgba(0, 255, 0, 0.6);
    filter: drop-shadow(0 0 8px rgba(0, 255, 0, 0.4));
}

.send-btn .btn-icon {
    color: #FF4500;
    text-shadow: 0 0 15px rgba(255, 69, 0, 0.6);
    filter: drop-shadow(0 0 8px rgba(255, 69, 0, 0.4));
}

.swap-btn .btn-icon {
    color: #00BFFF;
    text-shadow: 0 0 15px rgba(0, 191, 255, 0.6);
    filter: drop-shadow(0 0 8px rgba(0, 191, 255, 0.4));
}

.receive-btn:hover .btn-icon {
    color: #00FF00;
    text-shadow: 0 0 25px rgba(0, 255, 0, 0.8);
    filter: drop-shadow(0 0 15px rgba(0, 255, 0, 0.6));
}

.send-btn:hover .btn-icon {
    color: #FF4500;
    text-shadow: 0 0 25px rgba(255, 69, 0, 0.8);
    filter: drop-shadow(0 0 15px rgba(255, 69, 0, 0.6));
}

.swap-btn:hover .btn-icon {
    color: #00BFFF;
    text-shadow: 0 0 25px rgba(0, 191, 255, 0.8);
    filter: drop-shadow(0 0 15px rgba(0, 191, 255, 0.6));
}

.withdraw-btn .btn-icon {
    color: #FFD700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
}

.withdraw-btn:hover .btn-icon {
    color: #FFD700;
    text-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.6));
}

.btn-text {
    color: white;
    font-size: 12px;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.3px;
}

.receive-btn {
    border-color: rgba(0, 255, 0, 0.4);
}

.receive-btn:hover {
    border-color: #00FF00;
    box-shadow: 
        0 10px 30px rgba(0, 255, 0, 0.4),
        0 0 50px rgba(0, 255, 0, 0.2);
}

.send-btn {
    border-color: rgba(255, 69, 0, 0.4);
}

.send-btn:hover {
    border-color: #FF4500;
    box-shadow: 
        0 10px 30px rgba(255, 69, 0, 0.4),
        0 0 50px rgba(255, 69, 0, 0.2);
}

.swap-btn {
    border-color: rgba(0, 191, 255, 0.4);
}

.swap-btn:hover {
    border-color: #00BFFF;
    box-shadow: 
        0 10px 30px rgba(0, 191, 255, 0.4),
        0 0 50px rgba(0, 191, 255, 0.2);
}

.withdraw-btn {
    border-color: rgba(255, 215, 0, 0.4);
}

.withdraw-btn:hover {
    border-color: #FFD700;
    box-shadow: 
        0 10px 30px rgba(255, 215, 0, 0.4),
        0 0 50px rgba(255, 215, 0, 0.2);
}

/* Wallet Footer */
.wallet-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.refresh-price-btn {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #FFD700;
    backdrop-filter: blur(10px);
}

.refresh-price-btn:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 215, 0, 0.2));
    border-color: #FFD700;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.last-updated {
    color: #FFD700;
    font-size: 12px;
    text-align: right;
    font-weight: 500;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

#lastUpdate {
    color: #fff;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.price-change {
    font-size: 14px;
    margin-top: 5px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    display: none;
}

/* Features */
.features {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease-out 1s both;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.feature-icon {
    font-size: 24px;
}

.feature-text {
    font-size: 12px;
    color: #8B0000;
    text-align: center;
    font-weight: 500;
}

/* CTA Button */
.claim-button {
    width: 100%;
    background: linear-gradient(135deg, #FF4500, #DC143C, #8B0000);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 18px 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out 1.2s both;
    border: 2px solid #FFD700;
    box-shadow: 0 0 30px rgba(255, 69, 0, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.1);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.claim-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(255, 69, 0, 0.6), 0 0 50px rgba(255, 215, 0, 0.3);
    border-color: #FFA500;
}

.claim-button:active {
    transform: translateY(0);
}

.claim-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    transition: left 0.5s;
}

.claim-button:hover::before {
    left: 100%;
}

.button-arrow {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.claim-button:hover .button-arrow {
    transform: translateX(5px);
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease-out 1.4s both;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.trust-icon {
    font-size: 20px;
}

.trust-text {
    font-size: 11px;
    color: #8B0000;
    font-weight: 500;
}

/* Urgency Message */
.urgency-message {
    background: linear-gradient(135deg, #FFE4B5, #FFA07A);
    border: 2px solid #FF4500;
    border-radius: 15px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease-out 1.6s both;
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.2);
}

.urgency-icon {
    font-size: 20px;
}

.urgency-text {
    font-size: 14px;
    color: #8B0000;
    text-align: left;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #8B0000, #4B0000);
    padding: 20px;
    text-align: center;
    margin-top: auto;
    border-top: 2px solid #FF4500;
}

.footer-text {
    font-size: 12px;
    color: #FFD700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    max-width: 300px;
    margin: 20px;
    animation: scaleIn 0.3s ease-out;
    border: 2px solid #FF4500;
    box-shadow: 0 0 50px rgba(139, 0, 0, 0.3);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(139, 0, 0, 0.2);
    border-top: 4px solid #FF4500;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.3);
}

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

.success-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.continue-button {
    background: linear-gradient(135deg, #FF4500, #DC143C);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: 2px solid #FFD700;
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.3);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.continue-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 69, 0, 0.5), 0 0 30px rgba(255, 215, 0, 0.3);
    border-color: #FFA500;
}

/* Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .main-content {
        padding: 15px 10px;
        max-width: 100%;
    }
    
    .wallet-card {
        padding: 15px;
        margin-bottom: 20px;
        border-radius: 15px;
    }
    
    .wallet-header {
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    .bitcoin-logo {
        font-size: 24px;
    }
    
    .wallet-brand {
        font-size: 16px;
    }
    
    .wallet-status {
        padding: 4px 8px;
    }
    
    .status-text {
        font-size: 10px;
    }
    
    .wallet-balance {
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 12px;
    }
    
    .balance-label {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .btc-amount {
        font-size: 28px;
    }
    
    .btc-symbol {
        font-size: 16px;
    }
    
    .balance-eur {
        font-size: 14px;
    }
    
    .wallet-actions {
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .top-row {
        gap: 8px;
    }
    
    .wallet-btn {
        padding: 12px 8px;
        min-height: 70px;
        border-radius: 12px;
    }
    
    .withdraw-btn {
        padding: 15px 12px;
        min-height: 75px;
        max-width: 180px;
    }
    
    .btn-icon {
        font-size: 20px;
        margin-bottom: 2px;
    }
    
    .btn-text {
        font-size: 10px;
    }
    
    .wallet-footer {
        padding-top: 10px;
    }
    
    .refresh-price-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .last-updated {
        font-size: 10px;
    }
    
    .main-title {
        font-size: 22px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    .description-text {
        font-size: 14px;
    }
    
    .claim-button {
        padding: 15px 25px;
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .features {
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .feature-icon {
        font-size: 20px;
    }
    
    .feature-text {
        font-size: 10px;
    }
    
    .trust-indicators {
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .trust-icon {
        font-size: 16px;
    }
    
    .trust-text {
        font-size: 9px;
    }
    
    .urgency-message {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .urgency-text {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 10px 8px;
    }
    
    .wallet-card {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .wallet-header {
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    
    .bitcoin-logo {
        font-size: 20px;
    }
    
    .wallet-brand {
        font-size: 14px;
    }
    
    .wallet-balance {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .btc-amount {
        font-size: 24px;
    }
    
    .btc-symbol {
        font-size: 14px;
    }
    
    .balance-eur {
        font-size: 12px;
    }
    
    .wallet-actions {
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .top-row {
        gap: 6px;
    }
    
    .wallet-btn {
        padding: 10px 6px;
        min-height: 60px;
    }
    
    .withdraw-btn {
        padding: 12px 10px;
        min-height: 65px;
        max-width: 160px;
    }
    
    .btn-icon {
        font-size: 18px;
    }
    
    .btn-text {
        font-size: 9px;
    }
    
    .main-title {
        font-size: 20px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .claim-button {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Wallet Page Layout */
.wallet-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.wallet-page .header {
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.95) 0%, rgba(75, 0, 0, 0.98) 50%, rgba(47, 0, 0, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #FFD700;
}

.wallet-page .main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px 0;
    overflow-y: auto;
}

.wallet-page .footer {
    flex-shrink: 0;
    margin-top: auto;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.95) 0%, rgba(75, 0, 0, 0.98) 50%, rgba(47, 0, 0, 0.95) 100%);
    border-top: 2px solid #FFD700;
}

/* Ensure proper spacing for webclip */
.wallet-page .wallet-card {
    margin-bottom: 20px;
}

.wallet-page .transaction-history {
    margin-bottom: 20px;
}

/* Header Actions */
.header-actions {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

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

.back-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
    transform: translateY(-50%) scale(1.05);
}

/* Transaction History */
.transaction-history {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.9) 0%, rgba(75, 0, 0, 0.95) 50%, rgba(47, 0, 0, 0.9) 100%);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    border: 2px solid #FFD700;
    box-shadow: 
        0 0 40px rgba(255, 215, 0, 0.3),
        0 0 80px rgba(255, 69, 0, 0.15),
        inset 0 0 20px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.history-title {
    color: #FFD700;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.transaction-item:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.4);
}

.transaction-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    color: white;
}

.transaction-icon.receive {
    background: linear-gradient(135deg, #00FF00, #00CC00);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
}

.transaction-icon.send {
    background: linear-gradient(135deg, #FF4500, #CC3600);
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.4);
}

.transaction-details {
    flex: 1;
}

.transaction-type {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.transaction-time {
    color: #ccc;
    font-size: 12px;
}

.transaction-amount {
    color: #FFD700;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Mobile Responsive for Wallet Page */
@media (max-width: 768px) {
    .wallet-page .header {
        padding: 15px 20px;
    }
    
    .wallet-page .main-content {
        padding: 15px 0;
    }
    
    .wallet-page .footer {
        padding: 15px 20px;
    }
    
    .webclip-content {
        gap: 10px;
    }
    
    .webclip-title {
        font-size: 14px;
    }
    
    .webclip-subtitle {
        font-size: 11px;
    }
    
    .webclip-install-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .floating-install-btn {
        bottom: 100px;
        right: 15px;
        padding: 10px 16px;
    }
    
    .floating-text {
        font-size: 12px;
    }
    
    .pwa-install-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* API Loading Modal */
.api-loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.api-loading-modal.show {
    display: flex;
}

.api-loading-content {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.95) 0%, rgba(75, 0, 0, 0.98) 50%, rgba(47, 0, 0, 0.95) 100%);
    border-radius: 20px;
    border: 2px solid #FFD700;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.api-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 215, 0, 0.3);
    border-top: 4px solid #FFD700;
    border-radius: 50%;
    animation: apiSpin 1s linear infinite;
    margin: 0 auto 20px;
}

.api-loading-content h3 {
    color: #FFD700;
    font-size: 20px;
    margin: 0 0 10px 0;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.api-loading-content p {
    color: #ccc;
    font-size: 14px;
    margin: 0;
}

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

/* API Error Notification */
.api-error-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.9), rgba(200, 0, 0, 0.9));
    border-radius: 10px;
    padding: 15px 20px;
    z-index: 4000;
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.3);
    animation: slideInRight 0.3s ease;
    max-width: 350px;
}

.api-error-content {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.api-error-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.api-error-message {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.api-error-close {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.api-error-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes slideInRight {
    0% { transform: translateX(100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

/* User Address Display */
.user-address-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.user-address-label {
    color: #FFD700;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.user-address-value {
    color: white;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.user-address-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.user-address-btn {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 6px;
    padding: 6px 12px;
    color: #FFD700;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-address-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
}

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

/* QR Code Display */
.qr-code-section {
    text-align: center;
    margin: 15px 0;
}

.qr-code-image {
    max-width: 200px;
    border-radius: 10px;
    border: 2px solid #FFD700;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.qr-code-label {
    color: #FFD700;
    font-size: 12px;
    margin-top: 10px;
    font-weight: bold;
}

/* User Stats */
.user-stats {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.user-stats-title {
    color: #FFD700;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

.user-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.user-stat-item {
    text-align: center;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.user-stat-label {
    color: #ccc;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.user-stat-value {
    color: #FFD700;
    font-size: 14px;
    font-weight: bold;
}

/* Mobile Responsive for API Elements */
@media (max-width: 768px) {
    .api-loading-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .api-error-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .user-address-actions {
        flex-direction: column;
    }
    
    .user-stats-grid {
        grid-template-columns: 1fr;
    }
}
