#energy-modal .guest-card-modal-content {
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    margin: auto;
    border-radius: 12px;
    border: 2px solid rgba(139, 0, 0, 0.3);
    padding: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    overflow: hidden;
}

#energy-modal .modal-close-btn {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    width: 40px;
    height: 40px;
    background: #8b0000;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 10010;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.2s;
}

#energy-modal .modal-close-btn:hover {
    background: #a00000;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.6);
}

#energy-modal .guest-card-modal-content h2 {
    text-align: center;
    padding: 1.2rem 1rem;
    margin: 0;
    color: #8b0000;
    font-size: 1.3rem;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(139, 0, 0, 0.3);
}

.energy-modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.2rem;
}

.energy-modal-body::-webkit-scrollbar {
    width: 6px;
}

.energy-modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.energy-modal-body::-webkit-scrollbar-thumb {
    background: #8b0000;
    border-radius: 3px;
}

.energy-info {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.energy-current {
    color: #d4d4d4;
    font-size: 1rem;
}

.energy-current strong {
    color: #8b0000;
    font-size: 1.3rem;
}

.energy-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.energy-field-combined {
    background: transparent;
    padding: 0;
    border: none;
}

.energy-field-combined label {
    display: block;
    color: #fff;
    font-weight: bold;
    text-align: center;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

.energy-controls {
    display: flex;
    justify-content: center;
    align-items: stretch;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(139, 0, 0, 0.4);
}

.energy-btn-minus,
.energy-btn-plus {
    width: 60px;
    height: auto;
    min-height: 70px;
    background: #8b0000;
    border: none;
    color: #fff;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.2s;
    font-family: 'Courier New', monospace;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.energy-btn-minus {
    border-right: 1px solid rgba(0, 0, 0, 0.3);
}

.energy-btn-plus {
    border-left: 1px solid rgba(0, 0, 0, 0.3);
}

.energy-btn-minus:hover,
.energy-btn-plus:hover {
    background: #a00000;
}

.energy-btn-minus:active,
.energy-btn-plus:active {
    background: #700000;
}

.energy-btn-minus:disabled,
.energy-btn-plus:disabled {
    background: #3a3a3a;
    color: #666;
    cursor: not-allowed;
}

.energy-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 0.8rem 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    min-width: 120px;
}

.energy-display input {
    width: 100%;
    max-width: 100px;
    padding: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    font-family: 'Courier New', monospace;
    text-align: center;
    font-weight: bold;
    line-height: 1;
}

.energy-display input:focus {
    outline: none;
}

.energy-price-inline {
    margin-top: 0.3rem;
}

.energy-price-inline span {
    color: #4ade80;
    font-size: 1.2rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.energy-rate {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.8rem;
}

.energy-payment {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.energy-payment label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: bold;
    font-size: 0.9rem;
}

.stripe-info {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    font-style: italic;
}

#card-element {
    padding: 0.8rem;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 6px;
    min-height: 40px;
}

.energy-purchase-btn {
    padding: 0.9rem;
    background: #8b0000;
    border: none;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05rem;
}

.energy-purchase-btn:hover {
    background: #a00000;
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.6);
}

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

.energy-purchase-btn:disabled {
    background: #555;
    cursor: not-allowed;
    opacity: 0.6;
}

.energy-error {
    display: none;
    padding: 0.8rem;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 6px;
    color: #ff4444;
    text-align: center;
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    #energy-modal {
        padding: 0;
    }
    
    #energy-modal .guest-card-modal-content {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        margin: 0;
        border-radius: 0;
        border: none;
    }
    
    #energy-modal .modal-close-btn {
        position: fixed;
        top: 1rem;
        right: 1rem;
        width: 48px;
        height: 48px;
        font-size: 1.8rem;
        border: none;
    }
    
    #energy-modal .guest-card-modal-content h2 {
        padding: 1.5rem 1rem 1rem;
        font-size: 1.4rem;
    }
    
    .energy-modal-body {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .energy-btn-minus,
    .energy-btn-plus {
        width: 70px;
        min-height: 80px;
        font-size: 2.5rem;
    }
    
    .energy-display {
        min-width: 140px;
        padding: 1rem 0.5rem;
    }
    
    .energy-display input {
        font-size: 2.5rem;
        max-width: 120px;
    }
    
    .energy-price-inline span {
        font-size: 1.4rem;
    }
    
    .energy-purchase-btn {
        padding: 1.2rem;
        font-size: 1.1rem;
    }
}
