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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1f2937 0%, #000000 50%, #374151 100%);
    min-height: 100vh;
    color: white;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    max-width: 28rem;
    margin: 0 auto;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 2rem;
}

.main-title {
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.title-white {
    color: white;
}

.title-gold {
    color: #ff7b00;
}

.divider {
    width: 3rem;
    height: 0.25rem;
    background: linear-gradient(to right, #ffaf63,#f7851b);
    margin: 0 auto 2rem;
    border-radius: 9999px;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff7b00;
    margin-bottom: 1rem;
}

.description {
    color: #d1d5db;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.sub-description {
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Form Styles */
.form-container {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(75, 85, 99, 0.5);
    width: 100%;
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.phone-input {
    width: 100%;
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid #4b5563;
    border-radius: 0.8rem;
    padding: 1rem;
    color: white;
    text-align: center;
    font-size: 1.125rem;
    transition: all 0.2s;
}

.phone-input::placeholder {
    color: #6b7280;
}

.phone-input:focus {
    outline: none;
    border-color: #ff7b00;
    box-shadow: 0 0 0 2px rgba(255, 216, 102, 0.2);
}

.phone-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.validate-btn {
    width: 100%;
    background: linear-gradient(to right, #ffcc33, #ff7b00);
    color: black;
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-radius: 0.8rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    transform: scale(1);
    position: relative;
    overflow: hidden;
}

.validate-btn:hover:not(:disabled) {
    background: linear-gradient(to right, #e6b82e, #ffcc33);
    transform: scale(1.05);
}

.validate-btn:disabled {
    background: linear-gradient(to right, #4b5563, #6b7280);
    cursor: not-allowed;
    transform: scale(1);
}

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

.spinner-icon {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid black;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

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

.hidden {
    display: none !important;
}

/* Footer */
.footer {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Modal Styles */
.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.modal-content {
    position: relative;
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 28rem;
    width: 100%;
    border: 1px solid rgba(75, 85, 99, 0.3);
    animation: modalEnter 0.2s ease-out;
}

@keyframes modalEnter {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-modal {
    background: linear-gradient(135deg, rgba(22, 101, 52, 0.9), rgba(21, 128, 61, 0.9));
}

.error-modal {
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.9), rgba(153, 27, 27, 0.9));
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: white;
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.success-icon, .error-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    font-weight: bold;
}

.success-icon {
    background: linear-gradient(to right, #ff7b00, #ffcc33);
    color: #166534;
}

.error-icon {
    background: #ef4444;
    color: white;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1rem;
}

.modal-header p {
    color: rgba(255, 255, 255, 0.9);
}

.warning-box {
    background: rgba(153, 27, 27, 0.5);
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.warning-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.warning-dot {
    width: 1rem;
    height: 1rem;
    background: #eab308;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.warning-indicator span {
    color: #fde047;
    font-weight: 600;
}

.warning-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.primary-btn {
    width: 100%;
    background: linear-gradient(to right, #ffcc33, #ff7b00);
    color: black;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.8rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.primary-btn:hover {
    background: linear-gradient(to right, #e6b82e, #ffcc33);
    transform: scale(1.05);
}

.danger-btn {
    width: 100%;
    background: linear-gradient(to right, #dc2626, #ef4444);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.8rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.danger-btn:hover {
    background: linear-gradient(to right, #b91c1c, #dc2626);
    transform: scale(1.05);
}

.secondary-btn {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.error-modal .secondary-btn {
    border-color: rgba(239, 68, 68, 0.5);
}

.secondary-btn:hover {
    background: rgba(34, 197, 94, 0.3);
}

.error-modal .secondary-btn:hover {
    background: rgba(239, 68, 68, 0.3);
}

/* Toast Styles */
.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: #1f2937;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #374151;
    z-index: 100;
    animation: toastEnter 0.3s ease-out;
}

@keyframes toastEnter {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.error {
    background: #dc2626;
    border-color: #ef4444;
}

.toast.success {
    background: #16a34a;
    border-color: #22c55e;
}

/* Responsive */
@media (max-width: 640px) {
    .container {
        padding: 0.5rem;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.25rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
}