/* Neogrow Site Analyzer v2 */

.nga-wrapper {
	--nga-bg: #0a0e1a;
	--nga-surface: #111827;
	--nga-surface2: #1a2235;
	--nga-border: #1f2d45;
	--nga-accent: #4f8ef7;
	--nga-accent2: #7c3aed;
	--nga-green: #10b981;
	--nga-red: #ef4444;
	--nga-yellow: #f59e0b;
	--nga-text: #e2e8f0;
	--nga-muted: #94a3b8;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
	color: var(--nga-text);
	max-width: 1100px;
	margin: 0 auto;
	padding: 40px 20px;
	background: var(--nga-bg);
	border-radius: 20px;
	direction: ltr;
}

.nga-hero { text-align: center; padding: 20px 0 40px; }
.nga-hero-title { font-size: clamp(26px, 4vw, 42px); font-weight: 800; line-height: 1.2; margin: 0 0 12px; color: var(--nga-text); }
.nga-hero-title span { background: linear-gradient(135deg, var(--nga-accent), var(--nga-accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nga-hero-sub { font-size: 15px; color: var(--nga-muted); margin: 0 0 32px; line-height: 1.6; }

.nga-search-box { display: flex; align-items: center; gap: 10px; max-width: 600px; margin: 0 auto; background: var(--nga-surface); border: 1.5px solid var(--nga-border); border-radius: 16px; padding: 6px 20px 6px 6px; transition: border-color .2s, box-shadow .2s; }
.nga-search-box:focus-within { border-color: var(--nga-accent); box-shadow: 0 0 0 4px rgba(79, 142, 247, 0.1); }
.nga-search-icon { width: 20px; height: 20px; color: var(--nga-muted); flex-shrink: 0; }
.nga-input { flex: 1; background: none !important; border: none !important; outline: none !important; font-family: inherit; font-size: 15px; color: var(--nga-text) !important; padding: 10px 8px !important; box-shadow: none !important; }
.nga-input::placeholder { color: var(--nga-muted); }
.nga-btn-analyze { background: linear-gradient(135deg, var(--nga-accent), var(--nga-accent2)); border: none; border-radius: 12px; padding: 12px 28px; color: #fff; font-family: inherit; font-weight: 700; font-size: 14px; cursor: pointer; transition: opacity .2s, transform .1s; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.nga-btn-analyze:hover:not(:disabled) { opacity: .9; transform: translateY(-1px); }
.nga-btn-analyze:disabled { opacity: .5; cursor: not-allowed; }
.nga-btn-loader svg { width: 16px; height: 16px; animation: nga-spin .7s linear infinite; }
@keyframes nga-spin { to { transform: rotate(360deg); } }

.nga-examples { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; align-items: center; font-size: 13px; color: var(--nga-muted); }
.nga-chip { background: var(--nga-surface); border: 1px solid var(--nga-border); border-radius: 8px; padding: 5px 12px; font-size: 12px; color: var(--nga-muted); cursor: pointer; font-family: inherit; transition: all .15s; }
.nga-chip:hover { border-color: var(--nga-accent); color: var(--nga-accent); }

.nga-loading { text-align: center; padding: 60px 20px; }
.nga-loader-ring { width: 52px; height: 52px; border: 3px solid var(--nga-border); border-top-color: var(--nga-accent); border-radius: 50%; animation: nga-spin .8s linear infinite; margin: 0 auto 20px; }
.nga-loading-text { font-size: 14px; color: var(--nga-muted); margin: 0 0 20px; }
.nga-loading-steps { display: flex; flex-direction: column; gap: 8px; max-width: 320px; margin: 0 auto; }
.nga-step { font-size: 13px; color: var(--nga-muted); opacity: 0.35; padding: 6px 12px; background: var(--nga-surface); border-radius: 8px; transition: all .3s; }
.nga-step.nga-active { opacity: 1; color: var(--nga-green); background: var(--nga-surface2); }

.nga-error { background: rgba(239, 68, 68, .08); border: 1px solid rgba(239, 68, 68, .25); border-radius: 12px; padding: 16px 20px; margin: 20px 0; display: flex; align-items: center; gap: 10px; color: #fca5a5; font-size: 14px; }

.nga-domain-header { display: flex; align-items: center; gap: 16px; padding: 20px; background: var(--nga-surface); border: 1px solid var(--nga-border); border-radius: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.nga-favicon { width: 52px; height: 52px; border-radius: 12px; background: var(--nga-surface2); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.nga-favicon img { width: 32px; height: 32px; }
.nga-domain-info { flex: 1; min-width: 0; }
.nga-domain-info h2 { font-size: 20px; font-weight: 800; color: var(--nga-text); margin: 0 0 4px; }
.nga-domain-info .nga-d-title { font-size: 14px; color: var(--nga-muted); margin: 0 0 2px; }
.nga-domain-info .nga-d-desc { font-size: 12px; color: var(--nga-muted); margin: 0; line-height: 1.5; }

.nga-score-circle { width: 84px; height: 84px; position: relative; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nga-score-circle svg { position: absolute; top: 0; left: 0; transform: rotate(-90deg); }
.nga-score-num { font-size: 24px; font-weight: 800; position: relative; z-index: 1; }

.nga-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 24px; }
.nga-kpi { background: var(--nga-surface); border: 1px solid var(--nga-border); border-radius: 12px; padding: 16px; text-align: center; }
.nga-kpi-icon { font-size: 22px; margin-bottom: 6px; }
.nga-kpi-label { font-size: 11px; color: var(--nga-muted); margin-bottom: 4px; }
.nga-kpi-val { font-size: 22px; font-weight: 700; color: var(--nga-text); line-height: 1.1; }
.nga-kpi-sub { font-size: 11px; color: var(--nga-muted); margin-top: 4px; }
.nga-badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 6px; font-weight: 700; margin-top: 4px; }
.nga-badge.green { background: rgba(16,185,129,.15); color: var(--nga-green); }
.nga-badge.red { background: rgba(239,68,68,.15); color: var(--nga-red); }
.nga-badge.yellow { background: rgba(245,158,11,.15); color: var(--nga-yellow); }

.nga-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.nga-three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
@media (max-width: 700px) { .nga-two-col, .nga-three-col { grid-template-columns: 1fr; } }

.nga-panel { background: var(--nga-surface); border: 1px solid var(--nga-border); border-radius: 14px; padding: 20px; }
.nga-panel-title { font-size: 13px; font-weight: 700; color: var(--nga-text); margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.nga-panel-title .nga-p-icon { font-size: 16px; }

.nga-score-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.nga-score-row:last-child { margin-bottom: 0; }
.nga-score-bar-label { font-size: 12px; color: var(--nga-text); min-width: 100px; }
.nga-score-bar-track { flex: 1; height: 6px; background: var(--nga-surface2); border-radius: 99px; overflow: hidden; }
.nga-score-bar-fill { height: 100%; border-radius: 99px; width: 0; transition: width 1.2s cubic-bezier(.16, 1, .3, 1); }
.nga-score-bar-val { font-size: 12px; font-weight: 700; min-width: 40px; text-align: right; }

.nga-vitals { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--nga-border); display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; font-size: 11px; color: var(--nga-muted); }
.nga-vital-item strong { color: var(--nga-text); font-weight: 700; }

.nga-tech-cat { margin-bottom: 12px; }
.nga-tech-cat:last-child { margin-bottom: 0; }
.nga-tech-cat-title { font-size: 11px; color: var(--nga-muted); margin-bottom: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.nga-tech-list { display: flex; flex-wrap: wrap; gap: 6px; }
.nga-tech-badge { background: var(--nga-surface2); border: 1px solid var(--nga-border); border-radius: 6px; padding: 4px 10px; font-size: 11px; color: var(--nga-text); }
.nga-tech-badge.highlight { border-color: var(--nga-accent); color: var(--nga-accent); background: rgba(79, 142, 247, .08); }

.nga-info-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.nga-info-table td { padding: 8px 0; border-bottom: 1px solid var(--nga-border); vertical-align: top; }
.nga-info-table td:first-child { color: var(--nga-muted); width: 80px; font-weight: 600; }
.nga-info-table td:last-child { color: var(--nga-text); font-family: 'SFMono-Regular', Consolas, monospace; font-size: 11px; word-break: break-all; }
.nga-info-table tr:last-child td { border-bottom: none; }

.nga-insight-card { background: var(--nga-surface2); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; font-size: 12px; line-height: 1.6; color: var(--nga-text); }
.nga-insight-card:last-child { margin-bottom: 0; }
.nga-insight-card.green { border-left: 3px solid var(--nga-green); }
.nga-insight-card.red { border-left: 3px solid var(--nga-red); }
.nga-insight-card.yellow { border-left: 3px solid var(--nga-yellow); }
.nga-insight-card.blue { border-left: 3px solid var(--nga-accent); }

.nga-traffic-bar { display: flex; gap: 3px; height: 32px; border-radius: 8px; overflow: hidden; }
.nga-traffic-seg { display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; transition: flex .8s ease; }

.nga-cta { background: linear-gradient(135deg, var(--nga-accent), var(--nga-accent2)); border-radius: 16px; padding: 32px; text-align: center; margin-top: 32px; color: #fff; }
.nga-cta h3 { font-size: 24px; font-weight: 800; margin: 0 0 8px; color: #fff; }
.nga-cta p { font-size: 15px; margin: 0 0 20px; opacity: 0.95; color: #fff; }
.nga-cta-btn { background: #fff; color: var(--nga-accent2); border: none; border-radius: 10px; padding: 14px 32px; font-family: inherit; font-weight: 800; font-size: 15px; cursor: pointer; text-decoration: none; display: inline-block; transition: transform .15s; }
.nga-cta-btn:hover { transform: translateY(-2px); color: var(--nga-accent2); }

.nga-sec-label { font-size: 11px; font-weight: 700; color: var(--nga-muted); letter-spacing: 2px; text-transform: uppercase; margin: 32px 0 14px; }

@media (max-width: 600px) {
	.nga-wrapper { padding: 24px 16px; }
	.nga-search-box { flex-wrap: wrap; padding: 8px; }
	.nga-search-box .nga-input { min-width: 0; width: 100%; }
	.nga-btn-analyze { width: 100%; justify-content: center; }
	.nga-domain-header { flex-direction: column; align-items: flex-start; }
	.nga-score-circle { margin: 0 auto; }
}
