    /* Magic Header Icon */
.magic-header-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.magic-icon-container {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8edff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.15);
}

.magic-icon-container::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #667eea, #764ba2, #667eea);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.7;
    filter: blur(8px);
    animation: pulse 4s ease-in-out infinite;
}

.magic-icon {
    font-size: 32px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: float 3s ease-in-out infinite, sparkle 2s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

/* Simplified Form */
.magic-form-container {
    margin-top: 20px;
}

.magic-email-input .input-group {
    position: relative;
}

.magic-email-input .input-group-text {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 10px 0 0 10px;
}

.magic-email-input .form-control {
    border-left: none;
    padding-left: 15px;
    border-radius: 0 10px 10px 0;
    height: 56px;
    font-size: 16px;
    border-color: #dee2e6;
}

.magic-email-input .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

/* Submit Button */
.btn-magic-send {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 16px 24px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: 20px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    height: 56px;
}

.btn-magic-send:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

.btn-magic-send:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Spinner inside button - FIXED POSITION */
.btn-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    flex-shrink: 0;
}

.btn-magic-send.loading .btn-spinner {
    display: block;
}

.btn-magic-send.loading .btn-text {
    opacity: 0.9;
}

/* Button text */
.btn-text {
    color: white;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

/* Simple Feature Icons */
.magic-features-simple {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
}

.magic-feature-simple {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.magic-feature-simple i {
    font-size: 20px;
    color: #667eea;
    margin-bottom: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 50%;
}

.magic-feature-text {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    max-width: 80px;
    line-height: 1.3;
}

/* Message Container */
#message {
    display: none;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 10px;
    animation: fadeIn 0.3s ease;
}

.message-success {
    background: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.message-error {
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

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

@keyframes pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.05); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .magic-icon-container {
        width: 60px;
        height: 60px;
    }

    .magic-icon {
        font-size: 28px;
    }

    .magic-features-simple {
        gap: 20px;
        flex-wrap: wrap;
    }

    .magic-feature-simple {
        flex: 0 0 calc(50% - 20px);
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .magic-features-simple {
        gap: 15px;
    }

    .magic-feature-simple {
        flex: 0 0 calc(50% - 15px);
    }

    .btn-magic-send {
        padding: 14px 20px;
        font-size: 16px;
    }
}



/* Add to your existing CSS in the template ======================= */

/* Cooldown state styles */
.btn-magic-send.cooldown {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
    color: #856404 !important;
}

.btn-magic-send.cooldown-severe {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    color: white !important;
}

/* Cooldown timer animation */
@keyframes pulse-warning {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.btn-magic-send.cooldown {
    animation: pulse-warning 2s infinite;
}

/* Rate limit indicator */
.rate-limit-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    font-size: 12px;
}

.attempts-counter {
    display: flex;
    align-items: center;
    gap: 5px;
}

.attempt-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e9ecef;
    transition: all 0.3s ease;
}

.attempt-dot.active {
    background: #28a745;
}

.attempt-dot.cooldown {
    background: #ffc107;
}

.attempt-dot.blocked {
    background: #dc3545;
}