:root {
    --primary-gradient: linear-gradient(135deg, #4058c5 0%, #652e9d 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-gradient: linear-gradient(135deg, #1d7e3e 0%, #38f9d7 100%);
    --danger-gradient: linear-gradient(135deg, #f13030 0%, #fee140 100%);
    --blue-gradient: linear-gradient(135deg, rgb(37, 99, 235) 0%, rgb(29, 78, 216) 100%);
    --card-shadow: 0 10px 30px rgba(0,0,0,0.1);
    --hover-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

body {
    background: linear-gradient(135deg, #7587de 0%, #965ed0 100%);
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.navbar {
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

/* Override any existing navbar centering */
.navbar .container,
.navbar .container-fluid {
    justify-content: flex-start !important;
}

.navbar-brand {
    margin: 0 !important;
    margin-right: auto !important;
}

.navbar-brand img,
.header-logo {
    height: 60px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.navbar .navbar-nav.ms-auto {
    margin-left: auto !important;
    position: relative !important;
    right: auto !important;
    left: auto !important;
    transform: none !important;
}

.card-enhanced {
    background: white;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.card-enhanced:hover {
    box-shadow: var(--hover-shadow);
    transform: translateY(-5px);
}

.card-header-enhanced {
    background: var(--primary-gradient);
    color: white;
    padding: 25px 30px;
    border: none;
    position: relative;
    overflow: hidden;
}

.card-header-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.card-header-enhanced h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-header-enhanced .icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.card-body-enhanced {
    padding: 40px;
}

.nav-tabs-enhanced {
    border: none;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 8px;
    margin-bottom: 30px;
}

.nav-tabs-enhanced .nav-link {
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
}

.nav-tabs-enhanced .nav-link.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.form-label-enhanced {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-label-enhanced i {
    color: #667eea;
}

.form-control-enhanced {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control-enhanced:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    background: white;
}

.form-select-enhanced {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.form-select-enhanced:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    background: white;
}

.btn-enhanced {
    border-radius: 12px;
    padding: 14px 30px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    transition: all 0.3s ease;
    text-transform: none;
    position: relative;
    overflow: hidden;
}

.btn-primary-enhanced {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-success-enhanced {
    background: var(--blue-gradient) !important;
    color: white !important;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3) !important;
    border: none !important;
}

.btn-success-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4) !important;
    background: var(--blue-gradient) !important;
}

.btn-danger-enhanced {
    background: var(--danger-gradient);
    color: white;
    box-shadow: 0 5px 15px rgba(250, 112, 154, 0.3);
}

.payment-method-card {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
    margin-bottom: 15px;
}

.payment-method-card:hover {
    border-color: #667eea;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.15);
    transform: translateY(-3px);
}

.payment-method-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f8f9fa;
}

.hosted-fields-container {
    margin-bottom: 30px;
}

.alert-enhanced-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: none;
    border-radius: 15px;
    padding: 25px;
    color: #155724;
    margin-bottom: 30px;
}

.alert-enhanced-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: none;
    border-radius: 15px;
    padding: 25px;
    color: #856404;
    margin-bottom: 30px;
}

.alert-enhanced-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: none;
    border-radius: 15px;
    padding: 25px;
    color: #721c24;
    margin-bottom: 30px;
}

.result-details {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #dee2e6;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #dee2e6;
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-value {
    font-family: 'Monaco', 'Menlo', monospace;
    background: rgba(102, 126, 234, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
    color: #495057;
    word-break: break-all;
}

.hosted-field-enhanced {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1rem;
    background: #f8f9fa;
    transition: all 0.3s ease;
    width: 100%;
    height: 50px;
}

.hosted-field-focus-enhanced {
    border-color: #667eea !important;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25) !important;
    background: white !important;
}

.hosted-field-valid-enhanced {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

.hosted-field-invalid-enhanced {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.status-approved {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.status-declined {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.input-group-enhanced {
    position: relative;
}

.input-group-enhanced .form-control-enhanced {
    padding-left: 45px;
}

.input-group-enhanced .input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 5;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    display: none;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.loading-overlay .text-center {
    max-width: 400px;
    width: 100%;
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border: 1px solid #e9ecef;
}

.loading-overlay h5 {
    margin: 0 0 15px 0;
    color: #495057;
    font-weight: 600;
    font-size: 1.3rem;
}

.loading-overlay p {
    margin: 0;
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.5;
}

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

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

@keyframes sparkle {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

.btn-sm.btn-enhanced {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 10px;
}

.navbar .status-badge {
    font-size: 0.8rem;
    padding: 6px 12px;
}

.card-body-enhanced {
    padding: 25px;
}

.card-header-enhanced {
    padding: 12px 25px;
}

.card-header-enhanced h1 {
    font-size: 1.5rem;
}

input[type="checkbox"]:checked + div {
    display: block !important;
}

input[type="checkbox"]:not(:checked) + div {
    display: none !important;
}