/* ══════════════════════════════════════════════════════════════
   AI Fake Profile Detector — Premium Glassmorphism Design
   ══════════════════════════════════════════════════════════════ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
    --bg-primary: #0a0a1a;
    --bg-card: rgba(15, 15, 35, 0.7);
    --bg-card-hover: rgba(20, 20, 45, 0.8);
    --border-card: rgba(99, 102, 241, 0.15);
    --border-hover: rgba(99, 102, 241, 0.3);
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-primary: #6366f1;
    --accent-secondary: #a855f7;
    --accent-gradient: linear-gradient(135deg, #6366f1, #a855f7);
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.1);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── Background Animation ─────────────────────────────────── */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent 70%);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.25), transparent 70%);
    bottom: -50px;
    left: -50px;
    animation-delay: -7s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2), transparent 70%);
    top: 50%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -30px) scale(1.1); }
    50% { transform: translate(-30px, 50px) scale(0.9); }
    75% { transform: translate(30px, 20px) scale(1.05); }
}

/* ── Container ─────────────────────────────────────────────── */
.container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 20px;
}

/* ── Header ────────────────────────────────────────────────── */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    animation: slideDown 0.6s ease-out;
}

.header-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--accent-gradient);
    opacity: 0.6;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.logo h1 {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.header-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--success);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 20px;
    transition: var(--transition);
    animation: fadeUp 0.5s ease-out;
}

.card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.card-header {
    margin-bottom: 24px;
}

.card-header h2, .card-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.card-header h2 svg, .card-header h3 svg {
    color: var(--accent-primary);
    flex-shrink: 0;
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ── Mode Tabs ─────────────────────────────────────────────── */
.mode-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    animation: fadeUp 0.4s ease-out;
}

.mode-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.mode-tab:hover {
    color: var(--text-secondary);
    background: rgba(99, 102, 241, 0.05);
}

.mode-tab.active {
    color: white;
    background: var(--accent-gradient);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.mode-tab svg {
    flex-shrink: 0;
}

/* ── URL Input ─────────────────────────────────────────────── */
.url-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px;
    background: rgba(15, 15, 35, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    transition: var(--transition);
}

.url-input-wrapper:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.url-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    border-radius: 8px;
    flex-shrink: 0;
    color: white;
}

.url-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    padding: 10px 8px;
}

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

/* ── Scraped Profile Card ──────────────────────────────────── */
.scraped-card {
    animation: fadeUp 0.5s ease-out;
}

.scraped-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.scraped-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(15, 15, 35, 0.5);
    border-radius: var(--radius-xs);
    border: 1px solid rgba(99, 102, 241, 0.06);
}

.scraped-item.scraped-bio {
    grid-column: 1 / -1;
}

.scraped-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.scraped-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.scraped-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.scraped-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scraped-value.bio-text {
    white-space: normal;
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ── Form ──────────────────────────────────────────────────── */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

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

.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group label svg {
    color: var(--accent-primary);
    opacity: 0.7;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 15, 35, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Number input spinner styles */
.form-group input[type="number"] {
    -moz-appearance: textfield;
}

.form-group input[type="number"]::-webkit-inner-spin-button,
.form-group input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

/* ── Toggle Switches ──────────────────────────────────────── */
.toggle-group {
    grid-column: 1 / -1;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    padding: 16px 20px;
    background: rgba(99, 102, 241, 0.04);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(99, 102, 241, 0.08);
}

.toggle-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(100, 116, 139, 0.3);
    border-radius: 24px;
    transition: var(--transition);
}

.slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: var(--transition);
}

.switch input:checked + .slider {
    background: var(--accent-primary);
}

.switch input:checked + .slider::before {
    transform: translateX(20px);
}

/* ── Analyze Button ───────────────────────────────────────── */
.btn-analyze {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 32px;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-analyze::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: 0.5s;
}

.btn-analyze:hover::before {
    left: 100%;
}

.btn-analyze:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.3);
}

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

.btn-analyze.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-analyze.loading span {
    opacity: 0;
}

.btn-analyze.loading svg {
    opacity: 0;
}

.btn-loader {
    display: none;
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-analyze.loading .btn-loader {
    display: block;
}

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

/* ── Results ──────────────────────────────────────────────── */
.results-section {
    animation: fadeUp 0.6s ease-out;
}

/* Verdict Card */
.verdict-card {
    text-align: center;
    padding: 36px 28px;
}

.verdict-badge {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 16px 32px;
    border-radius: 60px;
    margin-bottom: 24px;
    transition: var(--transition);
}

.verdict-badge.fake {
    background: var(--danger-bg);
    border: 2px solid rgba(239, 68, 68, 0.3);
}

.verdict-badge.real {
    background: var(--success-bg);
    border: 2px solid rgba(16, 185, 129, 0.3);
}

.verdict-icon {
    font-size: 2rem;
}

.verdict-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.verdict-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.verdict-value {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.verdict-badge.fake .verdict-value {
    color: var(--danger);
}

.verdict-badge.real .verdict-value {
    color: var(--success);
}

/* Confidence Bar */
.confidence-bar-container {
    max-width: 400px;
    margin: 0 auto;
}

.confidence-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.confidence-labels span:last-child {
    font-weight: 700;
    color: var(--text-primary);
}

.confidence-bar {
    height: 8px;
    background: rgba(100, 116, 139, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

.confidence-fill.fake {
    background: linear-gradient(90deg, #ef4444, #f97316);
}

.confidence-fill.real {
    background: linear-gradient(90deg, #10b981, #6366f1);
}

/* Analysis Grid */
.analysis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.analysis-card {
    padding: 24px;
}

.analysis-card .card-header {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.analysis-card .card-header h3 {
    font-size: 0.95rem;
    margin: 0;
}

.analysis-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.analysis-badge.fake {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.analysis-badge.real {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.analysis-badge.ai {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.analysis-badge.human {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Mini Progress Bar */
.mini-bar-container {
    margin-bottom: 16px;
}

.mini-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.mini-labels span:last-child {
    font-weight: 600;
    color: var(--text-secondary);
}

.mini-bar {
    height: 6px;
    background: rgba(100, 116, 139, 0.15);
    border-radius: 3px;
    overflow: hidden;
}

.mini-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--danger));
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

.mini-fill.ai-fill {
    background: linear-gradient(90deg, var(--accent-primary), var(--warning));
}

/* Reasons List */
.reasons-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reason-item {
    padding: 8px 12px;
    background: rgba(99, 102, 241, 0.04);
    border-radius: var(--radius-xs);
    font-size: 0.82rem;
    color: var(--text-secondary);
    border-left: 3px solid rgba(99, 102, 241, 0.3);
    animation: fadeIn 0.3s ease-out;
}

.reason-item.warning {
    border-left-color: var(--danger);
    background: var(--danger-bg);
}

.reason-item.success {
    border-left-color: var(--success);
    background: var(--success-bg);
}

.reason-item.ai-warning {
    border-left-color: var(--warning);
    background: var(--warning-bg);
}

/* Scores Grid */
.scores-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(99, 102, 241, 0.08);
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: rgba(15, 15, 35, 0.5);
    border-radius: var(--radius-xs);
    font-size: 0.72rem;
}

.score-item .score-name {
    color: var(--text-muted);
}

.score-item .score-val {
    font-weight: 600;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

/* Detailed Reasons */
.reasons-card .reasons-list.detailed .reason-item {
    font-size: 0.85rem;
    padding: 10px 14px;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
    text-align: center;
    padding: 24px 20px;
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ══════════════════════════════════════════════════════════════
   POST ANALYSIS TAB — NEW STYLES
   ══════════════════════════════════════════════════════════════ */

/* ── Profile Strip ────────────────────────────────────────── */
.posts-profile-strip {
    background: rgba(99, 102, 241, 0.04);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.posts-strip-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

/* ── Post Builder ─────────────────────────────────────────── */
.posts-builder {
    margin-bottom: 20px;
}

.posts-builder-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.posts-count-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.posts-count-label strong {
    color: var(--accent-primary);
}

.btn-add-post {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-xs);
    color: var(--accent-primary);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-add-post:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateY(-1px);
}

/* ── Post Rows ────────────────────────────────────────────── */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post-row {
    background: rgba(15, 15, 35, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.3s ease;
}

.post-row.visible {
    opacity: 1;
    transform: translateY(0);
}

.post-row.removing {
    opacity: 0;
    transform: translateY(-8px);
}

.post-row:hover {
    border-color: rgba(99, 102, 241, 0.25);
}

.post-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.post-row-num {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.btn-remove-post {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 50%;
    color: var(--danger);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.btn-remove-post:hover {
    background: rgba(239, 68, 68, 0.25);
    transform: scale(1.1);
}

.post-row-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

/* Select field inside post rows */
.post-select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 15, 35, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
}

.post-select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.optional-tag {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

/* ══════════════════════════════════════════════════════════════
   BEHAVIOR ANALYSIS CARD — NEW STYLES
   ══════════════════════════════════════════════════════════════ */

.behavior-card {
    grid-column: 1 / -1;
    margin-top: 0;
    border: 1px solid rgba(99, 102, 241, 0.2);
    background: rgba(10, 10, 30, 0.7);
}

/* ── Signal Meter Grid ────────────────────────────────────── */
.behavior-signals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.signal-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid;
    animation: fadeUp 0.4s ease-out both;
    transition: var(--transition);
}

.signal-card:hover {
    transform: translateY(-2px);
}

.signal-card.signal-ok {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.15);
}

.signal-card.signal-danger {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.2);
    animation: fadeUp 0.4s ease-out both, pulse-danger 2s ease-in-out infinite;
}

@keyframes pulse-danger {
    0%, 100% { border-color: rgba(239, 68, 68, 0.2); }
    50% { border-color: rgba(239, 68, 68, 0.4); }
}

.signal-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.signal-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.signal-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.signal-value {
    font-size: 1rem;
    font-weight: 700;
}

.signal-value.ok-val {
    color: var(--success);
}

.signal-value.danger-val {
    color: var(--danger);
}

/* ── Signal Bar ───────────────────────────────────────────── */
.signal-bar-wrap {
    height: 4px;
    background: rgba(100, 116, 139, 0.15);
    border-radius: 2px;
    overflow: hidden;
}

.signal-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.signal-bar-fill.ok-fill {
    background: linear-gradient(90deg, #10b981, #6366f1);
}

.signal-bar-fill.danger-fill {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}

/* ── Behavior Extras Row ──────────────────────────────────── */
.behavior-extras {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 14px;
    background: rgba(99, 102, 241, 0.04);
    border: 1px solid rgba(99, 102, 241, 0.08);
    border-radius: var(--radius-sm);
}

.behavior-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(15, 15, 35, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.behavior-tag strong {
    color: var(--text-primary);
}

.behavior-tag.tag-danger {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.behavior-tag.tag-danger strong {
    color: var(--danger);
}

.behavior-tag.tag-muted {
    opacity: 0.6;
}

/* ── Extended Reason-Item Types ───────────────────────────── */
.reason-item.bot-warning {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.25);
    color: #a5b4fc;
}

.reason-item.info {
    background: rgba(100, 116, 139, 0.08);
    border-color: rgba(100, 116, 139, 0.15);
    color: var(--text-muted);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .container {
        padding: 16px 12px;
    }

    .header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 16px 20px;
    }

    .logo {
        flex-direction: column;
        gap: 8px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .analysis-grid {
        grid-template-columns: 1fr;
    }

    .toggle-group {
        flex-direction: column;
        gap: 12px;
    }

    .scores-grid {
        grid-template-columns: 1fr;
    }

    .verdict-badge {
        padding: 12px 20px;
    }

    .mode-tabs {
        flex-direction: column;
    }

    .scraped-grid {
        grid-template-columns: 1fr 1fr;
    }

    .behavior-signals-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .posts-strip-row {
        grid-template-columns: 1fr;
    }

    .post-row-grid {
        grid-template-columns: 1fr;
    }
}
