/**
 * Authentication Styles for Elura Studio
 * Matches the website theme with modern, clean design
 */

/* Toastify Styles */
#toastify-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.Toastify__toast {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 60px;
    max-width: 400px;
}

.Toastify__toast--error {
    background: #fff;
    border-left: 4px solid #ef4444;
}

.Toastify__toast--success {
    background: #fff;
    border-left: 4px solid #10b981;
}

.Toastify__toast-body {
    display: flex;
    align-items: center;
    padding: 16px;
}

.Toastify__toast-icon {
    margin-right: 12px;
    flex-shrink: 0;
}

.Toastify__toast-icon svg {
    width: 20px;
    height: 20px;
}

.Toastify__close-button {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.Toastify__close-button:hover {
    opacity: 1;
}

.Toastify__progress-bar {
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
}

.Toastify__progress-bar--error {
    background: #ef4444;
}

.Toastify__progress-bar--success {
    background: #10b981;
}

.Toastify__toast {
    animation: slideIn 0.3s ease-out;
    opacity: 1;
    transition: opacity 0.3s ease;
}

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

/* Password Instructions */
.vt-password-instructions {
    margin-top: 8px;
    margin-bottom: 12px;
}

.vt-password-instruction-text {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

/* Hide old error message containers - use Toastify instead */
.vt-messages-container {
    display: none !important;
}

.vt-message {
    display: none !important;
}

#vt-auth-messages {
    display: none !important;
}

/* Virtual Try-On Upload Grid Layout */
.vt-upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

@media (max-width: 1024px) {
    .vt-upload-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Upload Column Styling */
.vt-upload-column {
    display: flex;
    flex-direction: column;
}

.vt-upload-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Upload Header */
.vt-upload-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.vt-upload-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
}

/* Instructions Area */
.vt-instructions-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vt-instructions-area textarea {
    flex: 1;
    min-height: 200px;
}

/* Thumbnail Strip */
.vt-thumbnail-strip {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.vt-thumbnail-strip-header {
    margin-bottom: 12px;
}

.vt-thumbnail-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    margin: 0;
    display: flex;
    align-items: center;
}

.vt-thumbnail-title::before {
    content: "📋";
    margin-right: 8px;
}

/* Thumbnail Grid */
.vt-thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

@media (max-width: 640px) {
    .vt-thumbnail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Individual Thumbnail */
.vt-thumbnail {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    position: relative;
}

.vt-thumbnail:hover {
    border-color: #3b82f6;
    transform: scale(1.05);
}

.vt-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vt-thumbnail::after {
    content: "📷";
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 4px;
    padding: 2px 4px;
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.vt-thumbnail:hover::after {
    opacity: 1;
}

/* Loading state for thumbnails */
.vt-thumbnail-loading {
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 12px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .vt-upload-card {
        padding: 16px;
    }
    
    .vt-upload-title {
        font-size: 1.125rem;
    }
    
    .vt-thumbnail-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
}

#vt-success-message {
    display: none !important;
}

#vt-error-message {
    display: none !important;
}

/* Authentication Container */
.vt-auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Authentication Card */
.vt-auth-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 600px;
    position: relative;
    overflow: hidden;
}

.vt-auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #3B82F6, #06B6D4);
}

/* Header */
.vt-auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.vt-auth-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.vt-auth-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Messages */
.vt-messages-container {
    margin-bottom: 24px;
}

.vt-message {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
}

.vt-message-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.vt-message-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.vt-message i {
    margin-right: 8px;
    font-size: 16px;
}

/* Form Styles */
.vt-auth-form {
    margin-bottom: 24px;
}

.vt-form-group {
    margin-bottom: 20px;
}

.vt-form-group-half {
    width: calc(50% - 8px);
    display: inline-block;
}

.vt-form-group-half:first-child {
    margin-right: 16px;
}

.vt-form-row {
    display: flex;
    gap: 16px;
}

.vt-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.vt-input-container {
    position: relative;
}

.vt-form-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: #fafafa;
}

.vt-form-input:focus {
    outline: none;
    border-color: #3B82F6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.vt-form-input:invalid {
    border-color: #dc2626;
}

.vt-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 16px;
    pointer-events: none;
}

.vt-password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.vt-password-toggle:hover {
    color: #6b7280;
}

/* Password Strength */
.vt-password-strength {
    margin-top: 8px;
}

.vt-strength-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.vt-strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.vt-strength-text {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

/* Password Strength Colors - for progress bar only */
#vt-strength-fill.vt-strength-weak {
    background-color: #ef4444;
}

#vt-strength-fill.vt-strength-medium {
    background-color: #f59e0b;
}

#vt-strength-fill.vt-strength-strong {
    background-color: #10b981;
}

/* Text colors only - no background */
#vt-strength-text.vt-strength-weak {
    color: #ef4444;
}

#vt-strength-text.vt-strength-medium {
    color: #f59e0b;
}

#vt-strength-text.vt-strength-strong {
    color: #10b981;
}

/* Field Errors */
.vt-field-error {
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.vt-field-error:not(:empty) {
    display: block;
}

/* Form Options */
.vt-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

/* Checkbox Styles */
.vt-checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
}

.vt-checkbox-container input[type="checkbox"] {
    display: none;
}

.vt-checkbox-mark {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.2s ease;
}

.vt-checkbox-container input[type="checkbox"]:checked + .vt-checkbox-mark {
    background: #3B82F6;
    border-color: #3B82F6;
}

.vt-checkbox-container input[type="checkbox"]:checked + .vt-checkbox-mark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.vt-checkbox-label {
    line-height: 1.4;
}

/* Links */
.vt-link {
    color: #3B82F6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.vt-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.vt-link-primary {
    color: #3B82F6;
    font-weight: 600;
}

/* Buttons */
.vt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-height: 48px;
}

.vt-btn i {
    margin-right: 8px;
}

/* Email Verification States */
.vt-verification-success,
.vt-verification-already-verified,
.vt-verification-error {
    text-align: center;
    padding: 2rem;
}

.vt-verification-icon {
    margin-bottom: 1.5rem;
}

.vt-verification-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.vt-verification-message {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.vt-verification-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.vt-verification-success {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px solid #bbf7d0;
    border-radius: 12px;
}

.vt-verification-already-verified {
    background: linear-gradient(135deg, #fefce8, #fef3c7);
    border: 1px solid #fde68a;
    border-radius: 12px;
}

.vt-verification-error {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 1px solid #fecaca;
    border-radius: 12px;
}

/* Modal Styles */
.vt-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vt-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.vt-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.vt-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: #1f2937;
}

.vt-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.vt-modal-close:hover {
    background-color: #f3f4f6;
}

.vt-modal-body {
    padding: 1.5rem;
}

.vt-modal-text {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.vt-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.vt-btn-primary {
    background: linear-gradient(135deg, #3B82F6, #06B6D4);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.vt-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb, #0891b2);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.vt-btn-secondary {
    background: #f8fafc;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.vt-btn-secondary:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.vt-btn-google {
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vt-btn-google:hover:not(:disabled) {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.vt-btn-full {
    width: 100%;
}

.vt-btn-loading {
    display: none;
    align-items: center;
    justify-content: center;
}

.vt-btn:disabled .vt-btn-text {
    display: none;
}

.vt-btn:disabled .vt-btn-loading {
    display: flex;
}

/* Google Icon */
.vt-google-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

/* Divider */
.vt-divider {
    position: relative;
    text-align: center;
    margin: 24px 0;
}

.vt-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.vt-divider-text {
    background: white;
    padding: 0 16px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

/* Footer */
.vt-auth-footer {
    text-align: center;
    margin-top: 24px;
}

.vt-auth-footer-text {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

/* Modal Styles */
.vt-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.vt-modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
}

.vt-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 0 24px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 24px;
}

.vt-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.vt-modal-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.vt-modal-close:hover {
    background: #f3f4f6;
    color: #6b7280;
}

.vt-modal-body {
    padding: 0 24px 24px 24px;
}

.vt-modal-text {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Verification Pages */
.vt-verification-success,
.vt-verification-error,
.vt-verification-request {
    text-align: center;
    padding: 40px 20px;
}

.vt-verification-icon {
    margin-bottom: 24px;
}

.vt-verification-icon i {
    font-size: 64px;
    color: #10b981;
}

.vt-verification-error .vt-verification-icon i {
    color: #ef4444;
}

.vt-verification-request .vt-verification-icon i {
    color: #3B82F6;
}

.vt-verification-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 16px 0;
}

.vt-verification-message {
    color: #6b7280;
    font-size: 16px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.vt-verification-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vt-verification-info {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    margin: 24px 0;
    text-align: left;
}

.vt-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    color: #6b7280;
}

.vt-info-item:last-child {
    margin-bottom: 0;
}

.vt-info-item i {
    margin-right: 8px;
    color: #3B82F6;
}

/* Responsive Design */
@media (max-width: 480px) {
    .vt-auth-container {
        padding: 10px;
    }
    
    .vt-auth-card {
        padding: 24px;
    }
    
    .vt-auth-title {
        font-size: 24px;
    }
    
    .vt-form-group-half {
        width: 100%;
        margin-right: 0;
        margin-bottom: 16px;
    }
    
    .vt-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .vt-verification-actions {
        flex-direction: column;
    }
    
    .vt-btn {
        width: 100%;
    }
}

/* Loading States */
.vt-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vt-auth-card {
    animation: fadeIn 0.5s ease-out;
}

/* Focus States for Accessibility */
.vt-btn:focus,
.vt-form-input:focus,
.vt-checkbox-container:focus-within {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .vt-form-input {
        border-width: 2px;
    }
    
    .vt-btn {
        border: 2px solid transparent;
    }
    
    .vt-btn-secondary {
        border-color: #374151;
    }
}

/* Account Settings Modal Styles */
.vt-account-modal-content {
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.vt-account-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0;
    background: #f8fafc;
    border-radius: 8px 8px 0 0;
}

.vt-account-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.vt-account-tab:hover {
    background: #f1f5f9;
    color: #374151;
}

.vt-account-tab.vt-account-tab-active {
    background: white;
    color: #3B82F6;
    border-bottom-color: #3B82F6;
}

.vt-account-tab i {
    margin-right: 8px;
    font-size: 16px;
}

.vt-account-content {
    padding: 0;
}

.vt-tab-content {
    display: none;
    padding: 24px;
}

.vt-tab-content.vt-tab-content-active {
    display: block;
}

.vt-account-section {
    margin-bottom: 32px;
}

.vt-account-section:last-child {
    margin-bottom: 0;
}

.vt-section-title {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.vt-section-title i {
    margin-right: 8px;
    color: #3B82F6;
}

/* Profile Section */
.vt-profile-section {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
}

.vt-profile-avatar-container {
    position: relative;
    margin-right: 20px;
}

.vt-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    font-weight: 700;
}

.vt-avatar-upload {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #3B82F6;
    border: 2px solid white;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vt-avatar-upload:hover {
    background: #2563eb;
    transform: scale(1.1);
}

.vt-profile-info h3 {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.vt-profile-info p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

/* Form Styles */
.vt-account-form {
    margin-top: 20px;
}

.vt-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.vt-form-group {
    margin-bottom: 16px;
}

.vt-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.vt-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: #fafafa;
}

.vt-form-input:focus {
    outline: none;
    border-color: #3B82F6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.vt-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
}

/* Security Section */
.vt-security-section {
    margin-bottom: 32px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
}

.vt-auth-method {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.vt-auth-info {
    display: flex;
    align-items: center;
}

.vt-auth-info i {
    font-size: 24px;
    color: #4285f4;
    margin-right: 12px;
}

.vt-auth-method-name {
    margin: 0 0 4px 0;
    font-weight: 600;
    color: #1f2937;
}

.vt-auth-email {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.vt-device-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.vt-device-description {
    margin: 0;
    color: #6b7280;
}

/* Danger Zone */
.vt-danger-zone {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.vt-danger-title {
    color: #dc2626;
}

.vt-danger-title i {
    color: #dc2626;
}

.vt-danger-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #fecaca;
}

.vt-danger-description {
    margin: 0;
    color: #6b7280;
    line-height: 1.5;
}

.vt-btn-danger {
    align-self: flex-end;
    margin-top: 8px;
}

.vt-btn-danger {
    background: #dc2626;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vt-btn-danger:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

/* Credit Information Styles */
.vt-credit-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
    margin-bottom: 0;
}

.vt-credit-balance-section {
    margin-bottom: 0;
}

.vt-buy-credits-section {
    margin-bottom: 0;
}

.vt-credit-balance-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    margin-bottom: 0;
}

.vt-credit-main {
    text-align: center;
}

.vt-credit-amount {
    font-size: 48px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
}

.vt-credit-number {
    color: #3B82F6;
}

.vt-credit-total {
    color: #6b7280;
    font-size: 24px;
    font-weight: 400;
}

.vt-credit-progress {
    margin-bottom: 16px;
}

.vt-progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.vt-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.vt-progress-text {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
}

.vt-credit-link {
    color: #3B82F6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.vt-credit-link:hover {
    text-decoration: underline;
}

.vt-credit-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.vt-credit-card {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.vt-credit-card-amount {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.vt-credit-card-label {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 4px;
}

.vt-credit-card-expiry {
    font-size: 12px;
    color: #9ca3af;
}

/* Credit Packages */
.vt-credit-packages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.vt-credit-package {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.vt-credit-package:hover {
    border-color: #3B82F6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.vt-package-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    font-size: 20px;
}

.vt-package-credits {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.vt-package-price {
    font-size: 20px;
    font-weight: 700;
    color: #3B82F6;
    margin-bottom: 16px;
}

.vt-package-buy {
    width: 100%;
    padding: 12px;
    font-weight: 600;
}


/* Responsive Design */
@media (max-width: 768px) {
    .vt-account-modal-content {
        width: 98%;
        max-height: 95vh;
    }
    
    .vt-account-tabs {
        flex-direction: column;
    }
    
    .vt-account-tab {
        border-bottom: 1px solid #e5e7eb;
        border-radius: 0;
    }
    
    .vt-profile-section {
        flex-direction: column;
        text-align: center;
    }
    
    .vt-profile-avatar-container {
        margin-right: 0;
        margin-bottom: 16px;
    }
    
    .vt-form-row {
        grid-template-columns: 1fr;
    }
    
    .vt-credit-cards {
        grid-template-columns: 1fr;
    }
    
    .vt-credit-packages {
        grid-template-columns: 1fr;
    }
    
    .vt-credit-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .vt-auth-method,
    .vt-device-info,
    .vt-danger-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* Payment Result Page Styles */
/* Payment Success State */
.vt-payment-success {
    text-align: center;
    padding: 40px 20px;
}

.vt-payment-success .vt-payment-icon {
    margin-bottom: 20px;
}

.vt-payment-success .vt-payment-icon i {
    font-size: 64px;
    color: #10b981;
}

.vt-payment-success .vt-payment-title {
    color: #10b981;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.vt-payment-details {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.vt-payment-detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 16px;
}

.vt-payment-detail-item i {
    margin-right: 12px;
    color: #3b82f6;
    width: 20px;
}

/* Payment Failed State */
.vt-payment-failed {
    text-align: center;
    padding: 40px 20px;
}

.vt-payment-failed .vt-payment-icon i {
    font-size: 64px;
    color: #ef4444;
}

.vt-payment-failed .vt-payment-title {
    color: #ef4444;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* Payment Pending State */
.vt-payment-pending {
    text-align: center;
    padding: 40px 20px;
}

.vt-payment-pending .vt-payment-icon i {
    font-size: 64px;
    color: #f59e0b;
}

.vt-payment-pending .vt-payment-title {
    color: #f59e0b;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.vt-payment-result-message {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.vt-payment-result-actions {
    margin-top: 30px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Email Link Styling */
.vt-email-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.vt-email-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

