/* Fast Indexer Pro - Scoped Styles with Pro Tier & Credits */
.fip-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #f1f5f9;
    background: #090e17;
    padding: 24px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    margin: 20px auto;
    max-width: 1240px;
    box-sizing: border-box;
}

.fip-container * {
    box-sizing: border-box;
}

.fip-container .font-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
}

/* Guest Banner */
.fip-guest-card {
    text-align: center;
    padding: 60px 24px;
    background: rgba(15, 23, 42, 0.7);
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}
.fip-guest-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
}
.fip-guest-title {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px 0;
}
.fip-guest-desc {
    color: #94a3b8;
    font-size: 15px;
    max-width: 600px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}
.fip-guest-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Top Header */
.fip-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
    gap: 16px;
}
.fip-user-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}
.fip-avatar-icon {
    font-size: 32px;
    color: #60a5fa;
}
.fip-username {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    display: block;
}
.fip-role-tag {
    font-size: 11px;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
}
.fip-user-wallets {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.fip-quota-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #0f172a;
    border: 1px solid #334155;
    padding: 8px 14px;
    border-radius: 12px;
}
.fip-quota-label {
    font-size: 12px;
    color: #94a3b8;
}
.fip-quota-value {
    font-size: 13px;
    font-weight: 800;
    color: #34d399;
}
.fip-credits-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 8px 14px;
    border-radius: 12px;
}
.fip-credits-label {
    font-size: 12px;
    color: #fde68a;
    font-weight: 600;
}
.fip-credits-value {
    font-size: 14px;
    font-weight: 800;
    color: #fbbf24;
}

/* Mode Switcher */
.fip-mode-switcher-container {
    margin-bottom: 20px;
}
.fip-mode-switcher {
    display: inline-flex;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 14px;
    padding: 4px;
    gap: 4px;
    width: 100%;
}
.fip-mode-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}
.fip-mode-tab:hover {
    color: #ffffff;
}
.fip-mode-tab.active {
    background: #1e293b;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.fip-mode-tab.active[data-mode="pro"] {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.3));
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

/* Guarantee Box */
.fip-guarantee-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 95, 70, 0.15));
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 24px;
}
.fip-guarantee-icon {
    font-size: 28px;
    color: #34d399;
    margin-top: 2px;
}
.fip-guarantee-title {
    font-size: 14px;
    font-weight: 800;
    color: #a7f3d0;
    margin: 0 0 4px 0;
}
.fip-guarantee-desc {
    font-size: 13px;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.5;
}

/* Metrics Grid */
.fip-grid-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.fip-metric-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.fip-metric-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.fip-icon-blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.fip-icon-purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.fip-icon-green { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.fip-icon-amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.fip-metric-title { font-size: 11px; color: #94a3b8; }
.fip-metric-value { font-size: 14px; font-weight: 700; color: #ffffff; }

/* Main Split */
.fip-main-split {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
}
@media (max-width: 900px) {
    .fip-main-split {
        grid-template-columns: 1fr;
    }
}
.fip-col-left, .fip-col-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Cards */
.fip-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 22px;
}
.fip-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.fip-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.fip-card-sub {
    font-size: 12px;
    color: #94a3b8;
    margin: 0 0 16px 0;
}
.text-blue { color: #60a5fa; }
.text-green { color: #34d399; }
.text-amber { color: #fbbf24; }
.fip-tag {
    font-size: 11px;
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.25);
    padding: 3px 8px;
    border-radius: 6px;
}
.fip-tag.tag-pro {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.35);
}

/* Forms */
.fip-form-group {
    margin-bottom: 16px;
}
.fip-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #cbd5e1;
    margin-bottom: 6px;
}
.fip-textarea-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.fip-counter {
    font-size: 11px;
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    padding: 2px 8px;
    border-radius: 4px;
}
.fip-input, .fip-textarea {
    width: 100%;
    background: #090e17 !important;
    border: 1px solid #334155 !important;
    border-radius: 10px;
    padding: 10px 14px;
    color: #f1f5f9 !important;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}
.fip-input:focus, .fip-textarea:focus {
    border-color: #3b82f6 !important;
}
.fip-textarea {
    resize: vertical;
    line-height: 1.5;
}

/* Buttons */
.fip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all 0.2s;
}
.fip-btn-primary {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}
.fip-btn-secondary {
    background: #1e293b;
    color: #f1f5f9 !important;
    border: 1px solid #475569;
}
.fip-btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #2563eb, #6366f1);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
}
.fip-btn-submit:hover {
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.6);
}
.fip-btn-success {
    width: 100%;
    background: linear-gradient(135deg, #059669, #0d9488);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(5, 150, 105, 0.35);
}
.fip-btn-success.pro-turbo-btn {
    background: linear-gradient(135deg, #d97706, #b45309);
    box-shadow: 0 4px 20px rgba(217, 119, 6, 0.45);
}
.fip-btn-success:hover {
    box-shadow: 0 6px 25px rgba(5, 150, 105, 0.6);
}
.fip-btn-free {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #ffffff !important;
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}
.fip-btn-free:hover {
    background: linear-gradient(135deg, #047857, #059669);
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.5);
    transform: translateY(-1px);
}
.fip-btn-pro {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0f172a !important;
    border: 1px solid rgba(245, 158, 11, 0.5);
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4);
}
.fip-btn-pro:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 6px 22px rgba(245, 158, 11, 0.6);
    transform: translateY(-1px);
}
.fip-btn-request-credits {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #fbbf24 !important;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.fip-btn-request-credits:hover {
    background: rgba(245, 158, 11, 0.3);
    border-color: #fbbf24;
    transform: translateY(-1px);
}
.fip-btn-request-credits:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.fip-btn-amber {
    background: #d97706;
    color: #0f172a;
    font-weight: 800;
    white-space: nowrap;
}
.fip-btn-amber:hover {
    background: #f59e0b;
}
.fip-link-btn {
    background: none;
    border: none;
    color: #60a5fa;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
}
.fip-link-btn:hover {
    text-decoration: underline;
}

/* Alerts */
.fip-alert {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 12px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.fip-alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* Badges */
.fip-badge {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
}
.fip-badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.fip-badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.fip-badge-pro {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.25));
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
    font-weight: 700;
}
.fip-audit-badges {
    display: flex;
    gap: 8px;
}
.fip-audit-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 12px;
}

/* Tables */
.fip-table-scroll {
    overflow-x: auto;
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: #090e17;
}
.fip-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    text-align: left;
}
.fip-table th {
    background: #0f172a;
    padding: 10px 12px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 2;
    border-bottom: 1px solid #1e293b;
}
.fip-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
}

/* Single URL Checker Row */
.fip-checker-row {
    display: flex;
    gap: 10px;
}
.fip-check-result {
    margin-top: 12px;
    padding: 12px;
    border-radius: 10px;
    font-size: 12px;
}

/* Console & Progress */
.fip-console-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 480px;
}
.fip-status-badge {
    font-size: 11px;
    background: #1e293b;
    color: #94a3b8;
    padding: 3px 10px;
    border-radius: 999px;
}
.fip-progress-wrapper {
    margin-bottom: 14px;
}
.fip-progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 6px;
}
.fip-progress-track {
    width: 100%;
    height: 8px;
    background: #1e293b;
    border-radius: 999px;
    overflow: hidden;
}
.fip-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #6366f1);
    transition: width 0.3s ease;
}
.fip-console {
    flex: 1;
    background: #05080f;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 14px;
    font-size: 11px;
    line-height: 1.6;
    color: #cbd5e1;
    overflow-y: auto;
    max-height: 380px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.fip-log-idle {
    color: #64748b;
}
.fip-log-item {
    word-break: break-all;
}
.fip-log-info { color: #93c5fd; }
.fip-log-success { color: #6ee7b7; }
.fip-log-warning { color: #fde047; }
.fip-log-danger { color: #fca5a5; }

/* Modals */
.fip-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
}
.fip-modal-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 32px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    color: #f8fafc;
}
.fip-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.fip-modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}
.fip-modal-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    padding-bottom: 12px;
}
.fip-modal-tab {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 13.5px;
    font-weight: 700;
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.fip-modal-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}
.fip-modal-tab.active {
    color: #ffffff !important;
    background: #3b82f6 !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}
.fip-auth-alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}
.fip-auth-alert.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}
.fip-auth-alert.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}
.fip-btn-buy-credits {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0f172a !important;
    font-weight: 800;
    font-size: 11px;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.fip-btn-buy-credits:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}
.fip-plan-card {
    transition: transform 0.2s, border-color 0.2s;
}
.fip-plan-card:hover {
    transform: translateY(-2px);
    border-color: #64748b;
}
.fip-plan-card.fip-plan-featured:hover {
    border-color: #fbbf24;
}
