/* ===== ReconPulse — Dark Theme ===== */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

::-webkit-scrollbar-corner {
    background: var(--bg-primary);
}

* {
    scrollbar-width: thin;
    scrollbar-color: #334155 var(--bg-primary);
}

:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: #1a2234;
    --bg-card-hover: #1f2b42;
    --border: #2a3550;
    --border-accent: #3b82f6;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.3);
    --green: #22c55e;
    --red: #ef4444;
    --orange: #f59e0b;
    --purple: #a855f7;
    --cyan: #06b6d4;
    --pink: #ec4899;
    --warning: #f59e0b;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 8px;
    --radius-lg: 12px;
}

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

/* ===== GLOBAL CUSTOM CHECKBOXES ===== */

/* Hide native checkboxes */
input[type="checkbox"].rp-check {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Custom checkbox wrapper */
.rp-check-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color 0.2s;
    position: relative;
    padding: 0.15rem 0;
}

.rp-check-label:hover {
    color: var(--text-primary);
}

/* The box */
.rp-check-label .rp-box {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 1.5px solid var(--border);
    border-radius: 5px;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Checkmark (SVG) */
.rp-check-label .rp-box::after {
    content: '';
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) scale(0);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    top: 3px;
}

/* Hover state */
.rp-check-label:hover .rp-box {
    border-color: var(--accent);
}

/* Checked state */
input[type="checkbox"].rp-check:checked + .rp-box {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

input[type="checkbox"].rp-check:checked + .rp-box::after {
    transform: rotate(-45deg) scale(1);
}

/* Focus state */
input[type="checkbox"].rp-check:focus-visible + .rp-box {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Disabled state */
input[type="checkbox"].rp-check:disabled + .rp-box {
    opacity: 0.4;
    cursor: not-allowed;
}

input[type="checkbox"].rp-check:disabled ~ .rp-text {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Size variants */
.rp-check-label.rp-sm .rp-box {
    width: 16px;
    height: 16px;
    min-width: 16px;
    border-radius: 4px;
}

.rp-check-label.rp-sm .rp-box::after {
    width: 8px;
    height: 5px;
    top: 2px;
    left: 3px;
}

.rp-check-label.rp-sm {
    font-size: 0.78rem;
    gap: 0.4rem;
}

/* Danger variant */
.rp-check-label.rp-danger .rp-box {
    border-color: rgba(239, 68, 68, 0.3);
}

.rp-check-label.rp-danger:hover .rp-box {
    border-color: var(--red);
}

.rp-check-label.rp-danger input:checked + .rp-box {
    background: var(--red);
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* Tag style (for filters, webhook events) */
.rp-check-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 99px;
    cursor: pointer;
    user-select: none;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-secondary);
    transition: all 0.2s;
}

.rp-check-tag:hover {
    border-color: var(--accent);
    color: var(--text-secondary);
}

.rp-check-tag input[type="checkbox"].rp-check {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.rp-check-tag .rp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    transition: all 0.2s;
}

.rp-check-tag input:checked ~ .rp-dot {
    background: var(--accent);
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.4);
}

.rp-check-tag input:checked ~ .rp-text {
    color: var(--accent);
}

.rp-check-tag:has(input:checked) {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.08);
    color: var(--accent);
}

/* Spinner for buttons */
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }

/* ===== UNIFIED DESIGN SYSTEM — Inputs & Buttons ===== */

/* --- Unified Input Base --- */
input[type="text"], input[type="email"], input[type="password"],
input[type="url"], input[type="number"], textarea, select {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    color: var(--text-primary) !important;
    font-family: var(--font-sans) !important;
    font-size: 0.88rem !important;
    padding: 0.6rem 0.85rem !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    line-height: 1.5 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus,
input[type="url"]:focus, input[type="number"]:focus, textarea:focus, select:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

input::placeholder, textarea::placeholder {
    color: var(--text-muted) !important;
}

input:disabled, textarea:disabled, select:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    padding-right: 2rem !important;
}

/* --- Unified Button Base --- */
button, .btn, .scan-btn, .ctrl-btn, .quick-btn, .cta-btn,
.btn-primary, .btn-secondary, .btn-danger, .chat-send,
.webhook-item button, .hook-btns button, .req-del-btn,
.graph-controls button, .sqlmap-actions button {
    font-family: var(--font-sans) !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    border: none !important;
    border-radius: var(--radius) !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.4rem !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
    vertical-align: middle !important;
}

button:disabled, .btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* --- Primary Button (blue gradient) --- */
.btn-primary, .scan-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #fff !important;
    padding: 0.65rem 1.5rem !important;
    font-size: 0.85rem !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25) !important;
}

.btn-primary:hover:not(:disabled), .scan-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4) !important;
    transform: translateY(-1px) !important;
}

.btn-primary:active:not(:disabled), .scan-btn:active:not(:disabled) {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25) !important;
}

/* --- Secondary Button (outline) --- */
.btn-secondary {
    background: transparent !important;
    border: 1px solid var(--border) !important;
    color: var(--text-secondary) !important;
    padding: 0.6rem 1.3rem !important;
    font-size: 0.85rem !important;
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(59, 130, 246, 0.06) !important;
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}

/* --- Danger Button (red gradient) --- */
.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #fff !important;
    padding: 0.65rem 1.5rem !important;
    font-size: 0.85rem !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25) !important;
}

.btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4) !important;
    transform: translateY(-1px) !important;
}

.btn-danger:active:not(:disabled) {
    transform: translateY(0) !important;
}

/* --- Small Button --- */
.btn-sm {
    padding: 0.35rem 0.75rem !important;
    font-size: 0.78rem !important;
    width: auto !important;
}

/* --- Ghost Button (no bg, text only) --- */
.btn-ghost, .ctrl-btn {
    background: transparent !important;
    border: 1px solid var(--border) !important;
    color: var(--text-secondary) !important;
    padding: 0.4rem 0.9rem !important;
    font-size: 0.78rem !important;
}

.btn-ghost:hover:not(:disabled), .ctrl-btn:hover:not(:disabled) {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
    background: rgba(59, 130, 246, 0.06) !important;
}

/* --- Quick Target Button (pill) --- */
.quick-btn {
    padding: 0.3rem 0.7rem !important;
    font-size: 0.78rem !important;
    font-family: var(--font-mono) !important;
    background: rgba(59, 130, 246, 0.05) !important;
    border: 1px solid rgba(59, 130, 246, 0.12) !important;
    border-radius: 20px !important;
    color: var(--text-muted) !important;
}

.quick-btn:hover:not(:disabled) {
    background: rgba(59, 130, 246, 0.1) !important;
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}

/* --- CTA Button (hero) --- */
.cta-btn {
    padding: 0.75rem 2rem !important;
    font-size: 0.95rem !important;
    border-radius: var(--radius) !important;
}

.cta-btn.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #fff !important;
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.3) !important;
}

.cta-btn.primary:hover:not(:disabled) {
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.5) !important;
    transform: translateY(-2px) !important;
}

.cta-btn.secondary {
    background: transparent !important;
    border: 1px solid var(--border) !important;
    color: var(--text-secondary) !important;
}

.cta-btn.secondary:hover:not(:disabled) {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}

.cta-btn.large {
    padding: 0.85rem 2.5rem !important;
    font-size: 1.05rem !important;
}

/* --- Chat Send Button (circle) --- */
.chat-send {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 50% !important;
    background: var(--accent) !important;
    color: #fff !important;
    padding: 0 !important;
    font-size: 0.9rem !important;
}

.chat-send:hover:not(:disabled) {
    background: #2563eb !important;
    transform: scale(1.05) !important;
}

/* --- Chat Input --- */
.chat-input {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border) !important;
    border-radius: 20px !important;
    color: var(--text-primary) !important;
    font-size: 0.85rem !important;
    padding: 0.55rem 0.85rem !important;
    font-family: var(--font-sans) !important;
    flex: 1;
}

.chat-input:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

/* --- Chat Action Button --- */
.chat-action-btn {
    background: var(--accent) !important;
    color: #fff !important;
    padding: 0.4rem 1rem !important;
    font-size: 0.78rem !important;
    border-radius: var(--radius) !important;
}

.chat-action-btn:hover:not(:disabled) {
    background: #2563eb !important;
    transform: translateY(-1px) !important;
}

/* --- Icon-only Buttons (settings) --- */
.s-btn-icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: var(--radius) !important;
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-muted) !important;
    font-size: 0.85rem !important;
}

.s-btn-icon:hover {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}

/* --- Webhook Buttons --- */
.wh-btn {
    padding: 0.35rem 0.7rem !important;
    font-size: 0.75rem !important;
    border-radius: var(--radius) !important;
    background: transparent !important;
    border: 1px solid var(--border) !important;
    color: var(--text-secondary) !important;
}

.wh-btn:hover:not(:disabled) {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

.wh-btn.wh-del:hover:not(:disabled) {
    color: var(--red) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

/* --- Copy Button --- */
.copy-btn {
    padding: 0.35rem 0.7rem !important;
    font-size: 0.75rem !important;
    border-radius: var(--radius) !important;
    background: rgba(59, 130, 246, 0.08) !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    color: var(--accent) !important;
}

.copy-btn:hover:not(:disabled) {
    background: var(--accent) !important;
    color: #fff !important;
}

/* --- Delete Button (hooks) --- */
.del, .req-del-btn {
    padding: 0.3rem 0.6rem !important;
    font-size: 0.75rem !important;
    border-radius: var(--radius) !important;
    background: rgba(239, 68, 68, 0.06) !important;
    border: 1px solid rgba(239, 68, 68, 0.15) !important;
    color: var(--red) !important;
}

.del:hover:not(:disabled), .req-del-btn:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
}

/* --- Modal Close --- */
.modal-close {
    background: none !important;
    border: none !important;
    color: var(--text-muted) !important;
    font-size: 1.5rem !important;
    padding: 0.25rem !important;
}

.modal-close:hover {
    color: var(--text-primary) !important;
}

/* --- Settings Page Buttons --- */
.s-btn {
    padding: 0.55rem 1.2rem !important;
    font-size: 0.82rem !important;
    border-radius: var(--radius) !important;
    font-weight: 600 !important;
}

.s-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25) !important;
}

.s-btn-primary:hover:not(:disabled) {
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4) !important;
    transform: translateY(-1px) !important;
}

.s-btn-secondary {
    background: var(--bg-secondary) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border) !important;
}

.s-btn-secondary:hover:not(:disabled) {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}

.s-btn-danger {
    background: rgba(239, 68, 68, 0.08) !important;
    color: var(--red) !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
}

.s-btn-danger:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
}

.s-btn-sm {
    padding: 0.35rem 0.75rem !important;
    font-size: 0.78rem !important;
}

/* --- SQLMap-specific inputs (consistent with unified) --- */
.sqlmap-input, .sqlmap-select, .sqlmap-textarea {
    padding: 0.6rem 0.85rem !important;
    font-size: 0.85rem !important;
    font-family: var(--font-mono) !important;
}

.sqlmap-input:focus, .sqlmap-select:focus, .sqlmap-textarea:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    padding-left: 60px;
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 60px;
    z-index: 100;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.sidebar:hover {
    width: 220px;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--border);
    min-height: 56px;
}

.sidebar-logo svg {
    flex-shrink: 0;
}

.sidebar-logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    color: var(--text-primary);
}

.sidebar:hover .sidebar-logo-text {
    opacity: 1;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
    gap: 2px;
}

.sidebar-bottom {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border);
    gap: 2px;
}

.sidebar-auth {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border);
    gap: 2px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    border-left: 3px solid transparent;
}

.sidebar-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-item span {
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 0.85rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar:hover .sidebar-item span {
    opacity: 1;
}

.sidebar-item:hover {
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.08);
}

.sidebar-item.active {
    color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
    border-left-color: var(--accent);
}

.sidebar-item.active svg {
    filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.4));
}

.accent { color: var(--accent); }

/* ===== TOP BAR (copy/theme) ===== */
.topbar {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 99;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
}

.nav-copy-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-sans);
    white-space: nowrap;
}

.nav-copy-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(59, 130, 246, 0.08);
}

.nav-copy-btn svg {
    flex-shrink: 0;
}

.theme-btn {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    padding: 0.3rem 0.6rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
}

.theme-btn:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
}

.theme-btn svg {
    width: 18px;
    height: 18px;
    color: var(--text-primary);
}

.tab-content {
    display: block;
}

/* Site selector for multi-site projects */
.site-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-selector label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
}

.site-selector .sqlmap-select {
    min-width: 220px;
    padding: 0.35rem 0.6rem;
    font-size: 0.85rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    cursor: pointer;
}

/* ===== HERO ===== */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 100px 2rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.4;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.search-bar {
    display: flex;
    gap: 0;
    max-width: 560px;
    margin: 0 auto 1.5rem;
}

.search-bar input {
    flex: 1;
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    font-family: var(--font-mono);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
}

.search-bar input:focus {
    border-color: var(--accent);
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.scan-btn {
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    color: white;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    white-space: nowrap;
    line-height: 1;
    vertical-align: middle;
}

.scan-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.5);
    transform: translateY(-1px);
}

.scan-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.scan-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
}

.btn-icon:empty {
    display: none;
}

.btn-icon svg {
    width: 1em;
    height: 1em;
}

/* Panel icons */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    vertical-align: middle;
    color: var(--accent);
}

.icon svg {
    width: 100%;
    height: 100%;
}

.panel-header h3 .icon {
    margin-right: 0.4rem;
}

.quick-targets {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.quick-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.quick-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-btn:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

/* ===== SCANNING OVERLAY ===== */
.scanning-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(8px);
}

.scan-animation {
    text-align: center;
}

.radar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    position: relative;
    margin: 0 auto 2rem;
}

.radar-ring {
    position: absolute;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
}

.r1 { inset: 0; }
.r2 { inset: 25px; }
.r3 { inset: 50px; }

.radar-sweep {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0%, var(--accent) 10%, transparent 20%);
    animation: sweep 2s linear infinite;
}

@keyframes sweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.scan-status p {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: var(--font-mono);
}

.scan-progress {
    width: 300px;
    height: 4px;
    background: var(--bg-secondary);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.scan-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--cyan));
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* ===== RESULTS ===== */
.results {
    padding: 120px 2rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.full-width {
    grid-column: 1 / -1;
}

/* Security Score Banner */
.sec-score-wrap {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0.5rem 0;
}

.sec-grade {
    font-size: 3.5rem;
    font-weight: 900;
    font-family: var(--font-mono);
    line-height: 1;
    min-width: 80px;
    text-align: center;
}

.sec-grade.grade-5 { color: var(--green); text-shadow: 0 0 20px rgba(34,197,94,0.4); }
.sec-grade.grade-4 { color: #84cc16; }
.sec-grade.grade-3 { color: var(--orange); }
.sec-grade.grade-2 { color: #f97316; }
.sec-grade.grade-1 { color: var(--red); text-shadow: 0 0 20px rgba(239,68,68,0.4); }

.sec-score-bar {
    flex: 1;
}

.sec-score-num {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
    margin-bottom: 0.3rem;
}

.sec-score-track {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.sec-score-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease;
}

.sec-header-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(42, 53, 80, 0.5);
    font-size: 0.85rem;
}

.sec-header-row:last-child { border-bottom: none; }

.sec-status-icon { font-size: 0.9rem; width: 20px; text-align: center; }
.sec-hdr-name { font-family: var(--font-mono); color: var(--text-primary); min-width: 200px; }
.sec-hdr-val { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.78rem; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sec-hdr-desc { color: var(--text-muted); font-size: 0.78rem; min-width: 180px; text-align: right; }

/* WAF */
.waf-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
}

.waf-badge.none {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

.waf-name { font-weight: 600; color: var(--green); }
.waf-badge.none .waf-name { color: var(--orange); }
.waf-confidence { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); }
.waf-evidence { font-size: 0.78rem; color: var(--text-muted); font-family: var(--font-mono); }

/* CVE */
.cve-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(42, 53, 80, 0.5);
}

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

.cve-id {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}

.cve-id:hover { text-decoration: underline; }

.cve-cvss {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-mono);
    margin-left: 0.5rem;
}

.cve-cvss.critical { background: rgba(239,68,68,0.2); color: var(--red); }
.cve-cvss.high { background: rgba(249,115,22,0.2); color: #f97316; }
.cve-cvss.medium { background: rgba(245,158,11,0.2); color: var(--orange); }
.cve-cvss.low { background: rgba(34,197,94,0.2); color: var(--green); }

.cve-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* JS Analysis */
.js-risk {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.js-risk.risk-critical { background: rgba(239,68,68,0.15); color: var(--red); border: 1px solid rgba(239,68,68,0.3); }
.js-risk.risk-high { background: rgba(249,115,22,0.15); color: #f97316; border: 1px solid rgba(249,115,22,0.3); }
.js-risk.risk-medium { background: rgba(245,158,11,0.15); color: var(--orange); border: 1px solid rgba(245,158,11,0.3); }
.js-risk.risk-low { background: rgba(34,197,94,0.15); color: var(--green); border: 1px solid rgba(34,197,94,0.3); }

.secret-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
    font-size: 0.82rem;
    font-family: var(--font-mono);
}

.secret-severity {
    font-size: 0.7rem;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-weight: 600;
    min-width: 55px;
    text-align: center;
}

.secret-severity.critical { background: rgba(239,68,68,0.2); color: var(--red); }
.secret-severity.high { background: rgba(249,115,22,0.2); color: #f97316; }
.secret-severity.medium { background: rgba(245,158,11,0.2); color: var(--orange); }

/* Screenshot */
.screenshot-container {
    text-align: center;
    max-height: 350px;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.screenshot-container img {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* ===== NODE DETAIL PANEL ===== */
.node-detail-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    z-index: 500;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -4px 0 30px rgba(0,0,0,0.4);
}

.node-detail-panel.open {
    right: 0;
}

.ndp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
    z-index: 1;
}

.ndp-title {
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}

.ndp-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 0.3rem;
    line-height: 1;
    transition: color 0.2s;
}

.ndp-close:hover { color: var(--text-primary); }

.ndp-body {
    padding: 0.5rem 1.2rem 2rem;
}

.ndp-section {
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(42, 53, 80, 0.5);
}

.ndp-section:last-child { border-bottom: none; }

.ndp-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.ndp-field {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.25rem 0;
    gap: 0.5rem;
}

.ndp-key {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-family: var(--font-mono);
    flex-shrink: 0;
}

.ndp-val {
    color: var(--text-primary);
    font-size: 0.82rem;
    font-family: var(--font-mono);
    text-align: right;
    word-break: break-all;
}

.ndp-highlight { color: var(--accent); font-weight: 600; }
.ndp-grade { font-size: 1.5rem; font-weight: 900; }
.ndp-url { font-size: 0.75rem; color: var(--text-muted); }
.ndp-warn { background: rgba(245,158,11,0.08); border-radius: var(--radius); padding: 0.5rem 0.8rem; margin: 0.3rem 0; }
.ndp-warn p { color: var(--orange); font-size: 0.85rem; }
.ndp-link { display: block; color: var(--accent); font-size: 0.82rem; margin-top: 0.3rem; text-decoration: none; }
.ndp-link:hover { text-decoration: underline; }
.ndp-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.3rem; }

@media (max-width: 768px) {
    .node-detail-panel { width: 100%; right: -100%; }
}

/* ===== GRAPH ===== */
.graph-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2rem;
}

.graph-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.graph-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
}

.graph-controls {
    display: flex;
    gap: 0.5rem;
}

.ctrl-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.ctrl-btn:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.15);
}

#graphSvg {
    width: 100%;
    height: 700px;
    display: block;
}

.graph-legend {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot.domain { background: var(--accent); }
.dot.ip { background: var(--green); }
.dot.port { background: var(--orange); }
.dot.technology { background: var(--purple); }
.dot.tls { background: var(--cyan); }
.dot.subdomain { background: var(--text-muted); }
.dot.redirect { background: var(--pink); }
.dot.reverse_ip { background: #f97316; }
.dot.dir_listing { background: #ef4444; }
.dot.port_vuln { background: #dc2626; }
.dot.cve { background: #b91c1c; }
.dot.tls_deep { background: #06b6d4; }
.dot.email_sec { background: #8b5cf6; }
.dot.dnssec { background: #10b981; }
.dot.http_proto { background: #3b82f6; }
.dot.cloud { background: #f97316; }
.dot.bgp { background: #6366f1; }
.dot.mixed_content { background: #f59e0b; }
.dot.open_redirect { background: #ef4444; }
.dot.error_disc { background: #ef4444; }

/* ===== PANELS ===== */
.panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.2s;
}

.panel:hover {
    border-color: var(--bg-card-hover);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.2rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.panel-header:hover {
    background: var(--bg-card-hover);
}

.panel-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
}

.toggle-icon {
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.panel.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.panel-body {
    padding: 0 1.2rem 1rem;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    line-height: 1.7;
    overflow-x: auto;
}

.panel.collapsed .panel-body {
    display: none;
}

/* Data tables */
.data-row {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(42, 53, 80, 0.5);
}

.data-row:last-child { border-bottom: none; }

.data-key {
    color: var(--text-muted);
    min-width: 120px;
}

.data-val {
    color: var(--text-primary);
    text-align: right;
    word-break: break-all;
}

.data-val.highlight { color: var(--green); }
.data-val.warn { color: var(--orange); }
.data-val.danger { color: var(--red); }

.tag {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    margin: 0.15rem;
    font-size: 0.75rem;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 4px;
    color: var(--accent);
}

.tag.green {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    color: var(--green);
}

.tag.orange {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--orange);
}

.tag.red {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--red);
}

.sub-list {
    max-height: 300px;
    overflow-y: auto;
}



/* ===== NEW SCAN BUTTON ===== */
.new-scan {
    text-align: center;
    margin: 2rem 0;
}

.btn-secondary {
    padding: 0.7rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    background: transparent;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.1);
}

/* ===== FOOTER ===== */
.footer {
    margin-top: auto;
    text-align: center;
    padding: 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    background: var(--bg-primary);
}

.footer-sep {
    margin: 0 0.5rem;
    opacity: 0.3;
}

/* ===== THEME TOGGLE ===== */
.theme-btn:hover {
    border-color: var(--accent);
}

/* ===== LIGHT THEME ===== */
.light-theme {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #f1f5f9;
    --bg-card-hover: #e2e8f0;
    --border: #cbd5e1;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
}

.light-theme .sidebar {
    background: #f8fafc;
    border-right-color: #e2e8f0;
}

.light-theme .node-detail-panel {
    background: #ffffff;
    border-left-color: #e2e8f0;
}

.light-theme .ndp-header {
    background: #ffffff;
}

/* ===== HISTORY ===== */
.history-section {
    margin-top: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.history-section h3 {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#historyContainer {
    max-height: 200px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.8rem;
    margin-bottom: 0.3rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.history-item:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
}

.history-host {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-primary);
}

.history-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== AI REPORT ===== */
.ai-report-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.ai-report-content {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.ai-report-content h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1.2rem 0 0.5rem;
    color: var(--accent);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.3rem;
}

.ai-report-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 1rem 0 0.4rem;
    color: var(--text-primary);
}

.ai-report-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0.8rem 0 0.3rem;
    color: var(--text-primary);
}

.ai-report-content ul {
    margin: 0.3rem 0;
    padding-left: 1.5rem;
}

.ai-report-content li {
    margin-bottom: 0.3rem;
    color: var(--text-secondary);
}

.ai-report-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.ai-report-content code {
    background: var(--bg-secondary);
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 0.85em;
}

.ai-report-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1rem 0;
}

.ai-report-content p {
    margin: 0.3rem 0;
    color: var(--text-secondary);
}

/* AI Report markdown wrapper */
.markdown {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.markdown h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 1rem 0 0.4rem;
    color: var(--accent);
}

.markdown h3 {
    font-size: 1.02rem;
    font-weight: 600;
    margin: 0.8rem 0 0.3rem;
    color: var(--text-primary);
}

.markdown h4 {
    font-size: 0.92rem;
    font-weight: 600;
    margin: 0.6rem 0 0.25rem;
    color: var(--text-primary);
}

.markdown strong {
    color: var(--text-primary);
    font-weight: 600;
}

.markdown code {
    background: var(--bg-secondary);
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 0.85em;
}

.markdown ul {
    margin: 0.3rem 0;
    padding-left: 1.5rem;
}

.markdown li {
    margin-bottom: 0.3rem;
}

.markdown hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1rem 0;
}

.scan-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.8rem; }
    .panels { grid-template-columns: 1fr; }
    #graphSvg { height: 450px; }
    .search-bar { flex-direction: column; }
    .search-bar input { border-right: 1px solid var(--border); border-radius: var(--radius); }
    .scan-btn { border-radius: var(--radius); justify-content: center; }
    .graph-legend { gap: 0.5rem; }
}

/* ===== TARGET SUGGESTIONS ===== */
.target-suggestions {
    max-width: 560px;
    margin: 0 auto 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.target-suggestion-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.85rem;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(42, 53, 80, 0.5);
    font-size: 0.85rem;
}

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

.target-suggestion-item:hover {
    background: var(--bg-card-hover);
}

.target-suggestion-item .ts-host {
    font-family: var(--font-mono);
    color: var(--text-primary);
    flex: 1;
}

.target-suggestion-item .ts-badge {
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-weight: 600;
}

.ts-badge.dns { background: rgba(59, 130, 246, 0.15); color: var(--accent); }
.ts-badge.https { background: rgba(34, 197, 94, 0.15); color: var(--green); }
.ts-badge.http { background: rgba(245, 158, 11, 0.15); color: var(--orange); }

.target-suggestions-header {
    padding: 0.5rem 0.85rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}

/* ===== PROFILE SELECTOR ===== */
.profile-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.profile-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.profile-options {
    display: flex;
    gap: 0.5rem;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-sans);
}

.profile-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(59, 130, 246, 0.06);
}

.profile-btn.active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
}

.profile-icon {
    font-size: 0.9rem;
}

.profile-name {
    font-size: 0.78rem;
}

/* ===== GRAPH NODE STYLES (SVG) ===== */
.node-circle {
    cursor: pointer;
    transition: r 0.2s;
}

.node-circle:hover {
    filter: brightness(1.3);
}

.node-label {
    font-family: var(--font-sans);
    font-size: 11px;
    fill: var(--text-secondary);
    pointer-events: none;
    text-anchor: middle;
}

.link-line {
    stroke: rgba(59, 130, 246, 0.2);
    stroke-width: 1.5;
}

.link-line:hover {
    stroke: rgba(59, 130, 246, 0.5);
}

/* Tooltip — glassmorphism */
.graph-tooltip {
    position: absolute;
    padding: 0.8rem 1rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 10px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--text-primary);
    pointer-events: none;
    z-index: 500;
    max-width: 300px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: none;
    transition: opacity 0.15s;
}
.tt-title { font-weight: 700; font-size: 0.9rem; margin-bottom: 4px; color: #f1f5f9; }
.tt-type { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: #94a3b8; margin-bottom: 4px; }
.tt-info { font-size: 0.75rem; color: #cbd5e1; line-height: 1.4; }
.tt-hint { font-size: 0.65rem; color: #64748b; margin-top: 6px; border-top: 1px solid rgba(148,163,184,0.1); padding-top: 4px; }

/* Node pulse animation */
@keyframes nodePulse {
    0%, 100% { stroke-opacity: 0.25; transform: scale(1); }
    50% { stroke-opacity: 0.5; transform: scale(1.08); }
}
.node-ring.pulse {
    animation: nodePulse 2.5s ease-in-out infinite;
    transform-origin: center;
}

/* Graph node hover */
.graph-node .node-circle {
    transition: r 0.2s, stroke-width 0.2s;
}
.graph-node:hover .node-circle {
    stroke-width: 3;
}
.graph-node:hover .node-ring {
    stroke-opacity: 0.5;
}

/* AI Description Box */
.ai-desc-box {
    margin-top: 0.8rem;
    padding: 0.8rem;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
}
.ai-desc-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 0.4rem;
}
.ai-desc-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.55;
}
.ai-desc-text h2, .ai-desc-text h3, .ai-desc-text h4 {
    font-size: 0.85rem;
    margin: 0.3rem 0;
}
.ai-desc-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.8rem;
    padding: 0.6rem;
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-card-hover) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    height: 1rem;
    margin: 0.3rem 0;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== AUTH MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 600;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal h2 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.modal input {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font-mono);
    outline: none;
    transition: border-color 0.2s;
}

.modal input:focus {
    border-color: var(--accent);
}

.modal input::placeholder {
    color: var(--text-muted);
}

.btn-primary {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.5);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-primary);
}

.auth-switch {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--accent);
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.auth-error {
    color: var(--red);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    min-height: 1.2em;
}

.auth-success {
    color: var(--green);
    font-size: 0.9rem;
    text-align: center;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius);
}

/* ===== PROFILE MODAL ===== */

.profile-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.35rem 0.5rem;
    cursor: pointer;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
}

.profile-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.profile-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.profile-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.profile-section h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.profile-email {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--accent);
    padding: 0.6rem 1rem;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius);
}

.webhook-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.webhook-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.webhook-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.8rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.82rem;
}

.webhook-item .wh-url {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.webhook-item .wh-events {
    display: flex;
    gap: 0.3rem;
}

.wh-tag {
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent);
}

.wh-tag.wh-scan { background: rgba(34,197,94,0.12); color: #22c55e; }
.wh-tag.wh-sqlmap { background: rgba(239,68,68,0.12); color: #ef4444; }
.wh-tag.wh-wpscan { background: rgba(168,85,247,0.12); color: #a855f7; }
.wh-tag.wh-nmap { background: rgba(245,158,11,0.12); color: #f59e0b; }

.webhook-item .wh-status {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.webhook-item .wh-actions {
    display: flex;
    gap: 0.3rem;
}

.wh-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.72rem;
    transition: all 0.15s;
}

.wh-btn:hover { background: var(--bg-secondary); color: var(--text-primary); }
.wh-btn.wh-del:hover { color: var(--red); border-color: rgba(239,68,68,0.3); }

.webhook-add {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.webhook-input {
    width: 100%;
}

.webhook-events {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.webhook-events label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.webhook-events input[type="checkbox"] {
    width: auto;
    accent-color: var(--accent);
}

.btn-sm {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.8rem !important;
    width: auto !important;
}

.danger-zone {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius);
    padding: 1.2rem !important;
}

.danger-zone h3 {
    color: var(--red) !important;
}

.danger-zone p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.btn-danger {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.5);
    transform: translateY(-1px);
}

.btn-danger:active {
    transform: translateY(0);
}

.btn-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== RESET PASSWORD PAGE ===== */

.reset-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.reset-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.reset-card h2 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.reset-card input {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font-mono);
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.reset-card input:focus {
    border-color: var(--accent);
}

.reset-card input::placeholder {
    color: var(--text-muted);
}

/* ===== SQLMAP PAGE ===== */

.sqlmap-page {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.sqlmap-container {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 1.5rem;
    min-height: calc(100vh - 140px);
}

.sqlmap-config {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 72px;
}

.sqlmap-config h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.sqlmap-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.sqlmap-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sqlmap-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}

.sqlmap-field label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.sqlmap-input, .sqlmap-select, .sqlmap-textarea {
    padding: 0.55rem 0.7rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-family: var(--font-mono);
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
    line-height: 1.4;
}

.sqlmap-input:focus, .sqlmap-select:focus, .sqlmap-textarea:focus {
    border-color: var(--accent);
}

.sqlmap-input::placeholder, .sqlmap-textarea::placeholder {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.sqlmap-select {
    cursor: pointer;
    font-size: 0.82rem;
}

.sqlmap-textarea {
    resize: vertical;
    min-height: 44px;
}

.sqlmap-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}

.sqlmap-row:has(.sqlmap-field:nth-child(3)) {
    grid-template-columns: 1fr 1fr 1fr;
}

.sqlmap-options-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    cursor: pointer;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: color 0.2s;
    user-select: none;
}

.sqlmap-options-toggle:hover {
    color: var(--text-primary);
}

.toggle-arrow {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.sqlmap-options {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding-top: 0.7rem;
}

.sqlmap-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.2rem;
}

.sqlmap-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1.4;
}

.sqlmap-check input[type="checkbox"] {
    display: none;
}

.check-box {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 1.5px solid var(--border);
    border-radius: 4px;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    cursor: pointer;
}

.check-box:hover {
    border-color: var(--accent);
}

.check-mark {
    display: none;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 2px;
}

.sqlmap-check input:checked ~ .check-box .check-mark,
.check-box.active .check-mark {
    display: block;
}

.sqlmap-check input:checked ~ .check-box,
.check-box.active {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
}

.sqlmap-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.sqlmap-actions .scan-btn {
    flex: 1;
}

/* Output Panel */
.sqlmap-output-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sqlmap-output-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid var(--border);
}

.sqlmap-output-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
}

.sqlmap-output-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sqlmap-status {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.sqlmap-status.idle { background: rgba(100,116,139,0.15); color: var(--text-muted); }
.sqlmap-status.starting { background: rgba(59,130,246,0.15); color: var(--accent); }
.sqlmap-status.running { background: rgba(245,158,11,0.15); color: var(--orange); }
.sqlmap-status.completed { background: rgba(34,197,94,0.15); color: var(--green); }
.sqlmap-status.error { background: rgba(239,68,68,0.15); color: var(--red); }
.sqlmap-status.stopped { background: rgba(239,68,68,0.15); color: var(--red); }

.sqlmap-lines {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.sqlmap-output {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.6;
    background: var(--bg-primary);
    min-height: 400px;
    max-height: calc(100vh - 260px);
}

.sqlmap-welcome {
    color: var(--text-muted);
    text-align: center;
    padding: 3rem 1rem;
}

.sqlmap-line {
    white-space: pre-wrap;
    word-break: break-all;
    padding: 0.1rem 0;
    color: var(--text-secondary);
}

.sqlmap-info { color: var(--accent); }
.sqlmap-warn { color: var(--orange); }
.sqlmap-error { color: var(--red); }
.sqlmap-vuln { color: var(--green); font-weight: 700; background: rgba(34,197,94,0.08); padding: 0.2rem 0.4rem; border-radius: 3px; margin: 0.2rem 0; }
.sqlmap-payload { color: var(--purple); }

.sqlmap-output-footer {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-top: 1px solid var(--border);
}

/* ===== NMAP ===== */

.nmap-scan-btn {
    width: 100%;
    padding: 0.55rem 1rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-sans);
}

.nmap-scan-btn:hover {
    background: #2563eb;
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.3);
}

.nmap-result {
    margin-top: 0.8rem;
    max-height: 300px;
    overflow-y: auto;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.6rem;
}

.nmap-output-text {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-all;
    margin: 0;
}

.nmap-loading {
    font-size: 0.82rem;
    color: var(--accent);
    font-family: var(--font-mono);
    padding: 0.5rem;
}

.nmap-error {
    font-size: 0.82rem;
    color: var(--red);
    padding: 0.5rem;
}

/* ===== AI CHAT ===== */

.chat-toggle {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    transition: all 0.2s;
    border: none;
}

.chat-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(59, 130, 246, 0.5);
}

.chat-toggle.active {
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.chat-toggle.active svg {
    stroke: var(--text-primary);
}

.chat-panel {
    position: fixed;
    bottom: 5rem;
    right: 1.5rem;
    z-index: 998;
    width: 380px;
    height: 500px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border);
}

.chat-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
}

.chat-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0 0.3rem;
    line-height: 1;
}

.chat-close:hover {
    color: var(--text-primary);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.chat-msg {
    display: flex;
}

.chat-msg.user {
    justify-content: flex-end;
}

.chat-bubble {
    max-width: 85%;
    padding: 0.6rem 0.9rem;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.chat-msg.ai .chat-bubble {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.chat-msg.user .chat-bubble {
    background: var(--accent);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-bubble.typing {
    color: var(--text-muted);
    animation: pulse 1.5s infinite;
}

.chat-time {
    font-size: 0.65rem;
    color: var(--text-muted);
    opacity: 0.6;
    margin-top: 0.3rem;
    text-align: right;
}

.chat-bubble.error {
    color: var(--red);
}

/* Markdown in chat */
.chat-bubble .md-h1 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--accent);
    margin: 0.4rem 0 0.2rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid var(--border);
}

.chat-bubble .md-h2 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0.4rem 0 0.2rem;
}

.chat-bubble .md-h3 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0.3rem 0 0.15rem;
}

.chat-bubble .md-li {
    padding: 0.1rem 0;
    padding-left: 0.3rem;
    color: var(--text-secondary);
    font-size: 0.84rem;
    line-height: 1.5;
}

.chat-bubble .md-code {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.5rem 0.7rem;
    margin: 0.3rem 0;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-primary);
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.chat-bubble .md-inline {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 0.82em;
    color: var(--accent);
}

.chat-bubble strong {
    color: var(--text-primary);
    font-weight: 700;
}

.chat-bubble em {
    color: var(--text-secondary);
    font-style: italic;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.chat-input-wrap {
    display: flex;
    gap: 0.5rem;
    padding: 0.8rem;
    border-top: 1px solid var(--border);
}

.chat-input {
    flex: 1;
    padding: 0.55rem 0.8rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    font-family: var(--font-sans);
}

.chat-input:focus {
    border-color: var(--accent);
}

.chat-input::placeholder {
    color: var(--text-muted);
}

.chat-send {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
}

.chat-send:hover {
    background: #2563eb;
}

.chat-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.6rem 0.9rem;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 10px;
    max-width: 90%;
}

.chat-action-text {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
}

.chat-action-btn {
    padding: 0.35rem 0.9rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}

.chat-action-btn:hover {
    background: #2563eb;
}

.chat-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .chat-panel {
        width: calc(100vw - 2rem);
        right: 1rem;
        bottom: 4.5rem;
        height: 60vh;
    }
}

@media (max-width: 900px) {
    .sqlmap-container {
        grid-template-columns: 1fr;
    }
    .sqlmap-config {
        position: static;
    }
    .sqlmap-row {
        grid-template-columns: 1fr;
    }
    .sqlmap-row:has(.sqlmap-field:nth-child(3)) {
        grid-template-columns: 1fr;
    }
}

/* Light theme sqlmap */
.light-theme .sqlmap-output {
    background: #f8fafc;
}

.light-theme .sqlmap-config {
    background: #ffffff;
    border-color: #e2e8f0;
}

.light-theme .sqlmap-output-panel {
    background: #ffffff;
    border-color: #e2e8f0;
}

.forgot-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: left;
}

.auth-links {
    text-align: center;
    margin-top: 0.8rem;
    font-size: 0.85rem;
}

.auth-links a {
    color: var(--accent);
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: var(--radius);
    color: #fff;
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-sans);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.auth-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

#authNav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-badge {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--font-mono);
}

/* Confirm Toast */
.confirm-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.8rem 1.5rem;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: var(--radius);
    color: var(--green);
    font-size: 0.9rem;
    z-index: 700;
    backdrop-filter: blur(8px);
    animation: fadeInUp 0.3s ease;
}

.confirm-toast.error {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: var(--red);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===== LANDING PAGE ===== */

#landingView, #dashboardView {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.landing-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 4rem;
    overflow: hidden;
}

.hero-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.landing-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 800px 600px at 50% 40%, rgba(59, 130, 246, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 400px 400px at 20% 80%, rgba(168, 85, 247, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 400px 400px at 80% 20%, rgba(6, 182, 212, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.landing-hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.landing-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.landing-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-subtitle {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.landing-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.25s;
    border: none;
    font-family: var(--font-sans);
}

.cta-btn.primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.cta-btn.primary:hover {
    background: #2563eb;
    box-shadow: 0 4px 30px rgba(59, 130, 246, 0.45);
    transform: translateY(-1px);
}

.cta-btn.secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.cta-btn.secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.cta-btn.large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.landing-quick {
    margin-top: 2rem;
}

.landing-quick-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

/* Features Section */
.features-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    position: relative;
}

.feature-icon::after {
    font-size: 1.5rem;
}

.feature-icon.globe { background: rgba(59, 130, 246, 0.15); }
.feature-icon.globe::after { content: "🌐"; }

.feature-icon.plug { background: rgba(245, 158, 11, 0.15); }
.feature-icon.plug::after { content: "🔌"; }

.feature-icon.gear { background: rgba(168, 85, 247, 0.15); }
.feature-icon.gear::after { content: "⚙️"; }

.feature-icon.search { background: rgba(34, 197, 94, 0.15); }
.feature-icon.search::after { content: "🔍"; }

.feature-icon.bug { background: rgba(239, 68, 68, 0.15); }
.feature-icon.bug::after { content: "🐛"; }

.feature-icon.network { background: rgba(6, 182, 212, 0.15); }
.feature-icon.network::after { content: "🗺️"; }

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* How It Works */
.how-section {
    padding: 5rem 2rem;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.how-section h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.how-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.how-step {
    flex: 1;
    max-width: 240px;
    padding: 2rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.how-step h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.how-step p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.how-step-arrow {
    width: 40px;
    height: 2px;
    background: var(--border);
    position: relative;
    flex-shrink: 0;
}

.how-step-arrow::after {
    content: "→";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-muted);
    font-size: 1.2rem;
    background: var(--bg-primary);
    padding: 0 4px;
}

/* CTA Section */
.landing-cta-section {
    padding: 5rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

.landing-cta-section h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.landing-cta-section p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* Responsive Landing */
@media (max-width: 768px) {
    .landing-hero h1 { font-size: 2.2rem; }
    .landing-subtitle { font-size: 1rem; }
    .features-grid { grid-template-columns: 1fr; }
    .how-steps { flex-direction: column; }
    .how-step-arrow { width: 2px; height: 30px; }
    .how-step-arrow::after { content: "↓"; }
    .cta-btn { width: 100%; text-align: center; }
}

/* Light theme landing */
.light-theme .landing-badge {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
}

.light-theme .feature-card {
    background: #ffffff;
    border-color: #e2e8f0;
}

.light-theme .feature-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.08);
}

.light-theme .how-step {
    background: #ffffff;
    border-color: #e2e8f0;
}

.light-theme .landing-hero-bg {
    background:
        radial-gradient(ellipse 800px 600px at 50% 40%, rgba(59, 130, 246, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 400px 400px at 20% 80%, rgba(168, 85, 247, 0.03) 0%, transparent 70%),
        radial-gradient(ellipse 400px 400px at 80% 20%, rgba(6, 182, 212, 0.03) 0%, transparent 70%);
}

/* ============================================================
   MILLION-DOLLAR VISUAL UPGRADES
   ============================================================ */

/* === Animated Gradient Text === */
.gradient-text {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 25%, #a855f7 50%, #3b82f6 75%, #06b6d4 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

/* === Stats Section === */
.stats-section {
    padding: 4rem 2rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, transparent 0%, rgba(59, 130, 246, 0.02) 50%, transparent 100%);
}

.stats-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-mono);
    background: linear-gradient(135deg, var(--accent) 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-sublabel {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* === Tech Stack Section === */
.tech-section {
    padding: 4rem 2rem;
    text-align: center;
}

.tech-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.tech-section .section-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}

.tech-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1.2rem 0.8rem;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-item:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.1);
}

.tech-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.tech-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* === Testimonials Section === */
.testimonials-section {
    padding: 5rem 2rem;
    border-top: 1px solid var(--border);
}

.testimonials-section h2 {
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.testimonials-section .section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 0.95rem;
}

.testimonials-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s;
}

.testimonial-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.testimonial-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}

.testimonial-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.testimonial-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* === Enhanced Feature Cards === */
.feature-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(59, 130, 246, 0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    position: relative;
}

.feature-icon.globe { background: rgba(59, 130, 246, 0.1); color: var(--accent); }
.feature-icon.plug { background: rgba(34, 197, 94, 0.1); color: var(--green); }
.feature-icon.gear { background: rgba(168, 85, 247, 0.1); color: var(--purple); }
.feature-icon.search { background: rgba(6, 182, 212, 0.1); color: var(--cyan); }
.feature-icon.bug { background: rgba(239, 68, 68, 0.1); color: var(--red); }
.feature-icon.network { background: rgba(236, 72, 153, 0.1); color: var(--pink); }

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* === Glass Morphism Effect === */
.glass {
    background: rgba(26, 34, 52, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* === Scroll Reveal Animation === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* No-JS / print fallback: show all reveals */
@media print {
    .reveal { opacity: 1 !important; transform: none !important; }
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* === Enhanced Hero === */
.landing-hero {
    position: relative;
    overflow: hidden;
}

.landing-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(transparent, var(--bg-primary));
    pointer-events: none;
}

/* === Trust Badge === */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--green);
    margin-bottom: 1.5rem;
}

.trust-badge svg {
    width: 14px;
    height: 14px;
}

/* === Enhanced CTA === */
.landing-cta-section {
    position: relative;
    overflow: hidden;
}

.landing-cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* === Enhanced Footer === */
.footer {
    margin-top: auto;
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    background: var(--bg-primary);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    text-align: left;
}

.footer-brand h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.footer-brand p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-col h4 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.footer-col a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.2rem 0;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-social a:hover {
    color: var(--accent);
}

/* === Pulse Animation for Live Elements === */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* === Floating Orbs (decorative) === */
.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    opacity: 0.15;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    top: 10%;
    left: -5%;
    animation: float1 8s ease-in-out infinite;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: var(--purple);
    top: 60%;
    right: -3%;
    animation: float2 10s ease-in-out infinite;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: var(--cyan);
    bottom: 10%;
    left: 20%;
    animation: float3 12s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -20px); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, 30px); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -30px); }
}

/* === Responsive Stats === */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* === Prefers Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
    .gradient-text { animation: none; }
    .reveal { transition: none; opacity: 1; transform: none; }
    .floating-orb { animation: none; }
    .feature-card:hover { transform: none; }
    .tech-item:hover { transform: none; }
}
