.sj-container { background: #f8fafc; padding: 20px; border-radius: 12px; font-family: 'Inter', sans-serif; }

/* Inputs */
.sj-input-card { background: #fff; padding: 20px; border-radius: 12px; border: 1px solid #e2e8f0; margin-bottom: 20px; }
.sj-input-row { display: flex; gap: 15px; flex-wrap: wrap; }
.sj-group { flex: 1; min-width: 150px; }
.sj-label { font-size: 0.75rem; font-weight: 700; color: #64748b; text-transform: uppercase; display: block; margin-bottom: 5px; }
.sj-input { width: 100%; padding: 10px; border: 1px solid #cbd5e1; border-radius: 8px; font-weight: 500; }
.sj-btn { background: #4f46e5; color: white; border: none; padding: 10px 24px; border-radius: 8px; font-weight: 600; cursor: pointer; height: 40px; margin-top: 22px; }
.sj-btn:hover { opacity: 0.9; }
.sj-btn:disabled { background: #cbd5e1; }

/* Phase 1: Report */
.sj-report-card { background: #fff; border-radius: 12px; border: 1px solid #e2e8f0; overflow: hidden; margin-bottom: 30px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.sj-report-header { background: #eef2ff; padding: 15px 20px; border-bottom: 1px solid #e0e7ff; display: flex; justify-content: space-between; align-items: center; }
.sj-title { color: #312e81; font-weight: 700; font-size: 1.1rem; }
.sj-badge { background: #fff; color: #4f46e5; padding: 4px 10px; border-radius: 4px; font-size: 0.8rem; font-weight: 700; border: 1px solid #c7d2fe; }

.sj-report-body { padding: 25px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
@media (max-width: 768px) { .sj-report-body { grid-template-columns: 1fr; } }

.sj-stat-box { background: #f8fafc; padding: 15px; border-radius: 8px; border: 1px solid #e2e8f0; margin-bottom: 15px; }
.sj-stat-label { font-size: 0.75rem; color: #64748b; font-weight: 700; text-transform: uppercase; display: block; margin-bottom: 5px; }
.sj-stat-val { font-size: 1.8rem; font-weight: 800; color: #1e293b; display: block; line-height: 1; }
.sj-stat-sub { font-size: 0.8rem; color: #16a34a; font-weight: 600; margin-top: 5px; display: block; }

.sj-info-section { margin-bottom: 15px; }
.sj-tag { display: inline-block; background: #f1f5f9; color: #475569; padding: 4px 10px; border-radius: 6px; font-size: 0.85rem; margin: 0 5px 5px 0; border: 1px solid #e2e8f0; }

.sj-edu-tag { 
    display: inline-block; /* Changed from block to sit side-by-side if space permits */
    background: #fff; 
    border: 1px solid #e2e8f0; 
    padding: 8px 12px; /* Better padding */
    border-radius: 8px; 
    font-size: 0.85rem; 
    font-weight: 500;
    margin: 0 6px 6px 0; /* Spacing between tags */
    color: #334155; 
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.sj-cta-area { background: #f8fafc; padding: 20px; text-align: center; border-top: 1px solid #e2e8f0; }
.sj-cta-btn { background: #1e293b; color: #fff; padding: 10px 30px; border-radius: 25px; border: none; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.sj-phase2-placeholder {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #f8fafc 100%);
    background-size: 200% 200%;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    color: #64748b;
    position: relative;
    overflow: hidden;
    animation: sj-scan-bg 3s ease infinite;
}

.sj-scan-icon {
    font-size: 3rem;
    color: #4f46e5;
    margin-bottom: 20px;
    display: inline-block;
    animation: sj-pulse-icon 1.5s infinite ease-in-out;
}

/* Background Sweep */
@keyframes sj-scan-bg {
    0% { background-position: 0% 50%; border-color: #cbd5e1; }
    50% { background-position: 100% 50%; border-color: #818cf8; }
    100% { background-position: 0% 50%; border-color: #cbd5e1; }
}

/* Icon Pulse */
@keyframes sj-pulse-icon {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; text-shadow: 0 0 15px rgba(79, 70, 229, 0.3); }
    100% { transform: scale(1); opacity: 0.8; }
}
/* Phase 2: Hubs */
.sj-hubs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 20px; }
.sj-hub-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; transition: transform 0.2s; }
.sj-hub-card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.sj-hub-header { margin-bottom: 15px; }
.sj-city-badge { background: #f3e8ff; color: #7e22ce; padding: 4px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.sj-hub-header h5 { margin: 8px 0 0 0; font-size: 1.1rem; color: #1e293b; font-weight: 700; }
.sj-hub-stats { display: flex; justify-content: space-between; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #f1f5f9; }
.sj-hub-stats small { display: block; font-size: 0.7rem; color: #94a3b8; text-transform: uppercase; font-weight: 700; }
.sj-reason { font-style: italic; font-size: 0.85rem; color: #64748b; margin-bottom: 15px; line-height: 1.5; }
.sj-costs { background: #f8fafc; padding: 12px; border-radius: 8px; font-size: 0.85rem; color: #475569; display: flex; flex-direction: column; gap: 5px; }
.sj-costs i { width: 20px; color: #94a3b8; }

/* Loaders */
.sj-loader { text-align: center; padding: 40px; display: none; }
.spinner{width:24px;height:24px;border:3px solid #e2e8f0;border-top:3px solid #4f46e5;border-radius:50%;animation:1s linear infinite spin;display:inline-block;vertical-align:middle;margin-right:10px}.fa-spin{animation:2s linear infinite fa-spin}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}

/* Rate Limit Modal */
.ai-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); z-index: 9999; display: none;
    align-items: center; justify-content: center; backdrop-filter: blur(4px);
}
.ai-modal-card {
    background: #fff; width: 90%; max-width: 450px; border-radius: 16px;
    padding: 30px; text-align: center; position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
.ai-modal-icon {
    width: 60px; height: 60px; background: #fee2e2; color: #ef4444;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin: 0 auto 20px;
}
.ai-modal-title { font-size: 1.25rem; font-weight: 800; color: #1e293b; margin-bottom: 10px; }
.ai-modal-body { color: #64748b; font-size: 0.95rem; line-height: 1.5; margin-bottom: 25px; }

.btn-modal-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: white !important; width: 100%; padding: 12px; border-radius: 8px;
    font-weight: 700; display: block; text-decoration: none;
}
.btn-modal-primary:hover { opacity: 0.9; color: #fafafa!important; }

.ai-modal-close {
    position: absolute; top: 15px; right: 15px; background: transparent;
    border: none; color: #94a3b8; font-size: 20px; cursor: pointer;
}
.ai-modal-close:hover { color: #ef4444; }