/* OSINT Navigator - Gold/Blue Theme */

:root {
    --gold: #ECBB2D;
    --gold-soft: rgba(236, 187, 45, 0.12);
    --gold-border: rgba(236, 187, 45, 0.35);
    --blue: #2451C9;
    --blue-deep: #1a3d9e;
    --bg: #FDFCF9;
    --bg-card: #FFFFFF;
    --text: #374151;
    --text-light: #6B7280;
    --text-muted: #9CA3AF;
    --border: rgba(55, 65, 81, 0.08);
    --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
    --shadow-hover: 0 2px 8px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.05);
    --error: #dc2626;
    --error-bg: #fef2f2;
}

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

/* Ensure hidden attribute works properly */
[hidden] {
    display: none !important;
}

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

/* Subtle paper texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.015;
    pointer-events: none;
    z-index: 1000;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 56px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.logo-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

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

.header-slogan {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    letter-spacing: 0.01em;
    line-height: 1.4;
}

.logo-mark {
    width: 36px;
    height: 36px;
    background: var(--blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.logo-mark::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 2px solid rgba(255,255,255,0.9);
    border-radius: 4px;
}

.logo-mark::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.logo-text {
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.02em;
    color: var(--blue);
}

.logo-text span {
    color: var(--text-light);
    font-weight: 400;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

/* Mobile overflow menu button — hidden on desktop */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.mobile-menu-btn:hover {
    background: rgba(55, 65, 81, 0.06);
    color: var(--text);
}

/* Mobile dropdown menu */
.mobile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), 0 1px 4px rgba(0, 0, 0, 0.06);
    min-width: 160px;
    z-index: 600;
    padding: 4px;
    animation: fadeIn 0.15s ease;
}

.mobile-menu-item {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    color: var(--text);
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease;
    min-height: 44px;
}

.mobile-menu-item:hover {
    background: rgba(55, 65, 81, 0.06);
}

.tier-badge {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gold);
    background: var(--gold-soft);
    padding: 3px 8px;
    border-radius: 100px;
    border: 1px solid var(--gold-border);
    line-height: 1;
}

.tier-badge.pro {
    color: var(--blue);
    background: rgba(36, 81, 201, 0.1);
    border-color: rgba(36, 81, 201, 0.3);
}

.auth-btn {
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    color: var(--blue);
    background: transparent;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.15s ease;
}

.auth-btn:hover {
    background: rgba(36, 81, 201, 0.05);
    border-color: rgba(36, 81, 201, 0.3);
}

.auth-btn.signed-in {
    color: var(--text-light);
}

/* Search Section */
.search-section {
    margin-bottom: 32px;
    position: relative;
}

.search-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.source-pill-wrapper {
    position: absolute;
    right: 56px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 200;
}

.search-label::before {
    content: '';
    width: 3px;
    height: 12px;
    background: var(--gold);
    border-radius: 2px;
}

.search-container {
    position: relative;
    display: flex;
}

.search-input {
    width: 100%;
    padding: 20px 130px 20px 24px;
    font-size: 17px;
    font-family: inherit;
    font-weight: 400;
    color: var(--text);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    outline: none;
    transition: all 0.2s ease;
}

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

.search-input:focus {
    border-color: var(--gold-border);
    box-shadow: var(--shadow-hover), 0 0 0 3px var(--gold-soft);
}

.search-submit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--blue);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.search-submit:hover:not(:disabled) {
    background: var(--blue-deep);
    transform: translateY(-50%) scale(1.02);
}

.search-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Button icon visibility - default shows arrow, hides spinner */
.search-submit .btn-icon {
    position: absolute;
    width: 18px;
    height: 18px;
    stroke: white;
    stroke-width: 2.5;
    fill: none;
    transition: opacity 0.15s ease;
}

.search-submit .icon-arrow {
    opacity: 1;
}

.search-submit .icon-spinner {
    opacity: 0;
    animation: spin 1s linear infinite;
}

/* Loading state - switch icons */
.search-submit.loading .icon-arrow {
    opacity: 0;
}

.search-submit.loading .icon-spinner {
    opacity: 1;
}

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

/* Source Pill */
.source-pill {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 500;
    font-family: inherit;
    color: var(--text-muted);
    background: rgba(55, 65, 81, 0.06);
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.source-pill:hover,
.source-pill.active {
    background: rgba(55, 65, 81, 0.1);
    color: var(--text-light);
}

/* Source Dropdown (below pill) */
.source-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 6px;
    z-index: 500;
}

/* Examples Section */
.examples-section {
    margin-bottom: 48px;
}

.examples-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.example-btn {
    padding: 16px 20px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
}

.example-btn:hover {
    border-color: var(--gold-border);
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px);
}

/* Results Section */
.results-section {
    animation: fadeIn 0.4s ease;
    margin-bottom: 48px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.results-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
}

.streaming-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.streaming-dot {
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Cache Info */
.cache-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 13px;
}

.cache-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 100px;
    font-weight: 500;
    font-size: 12px;
}

.cache-badge svg {
    flex-shrink: 0;
}

.cache-hit {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}


.vote-count {
    color: var(--text-muted);
    font-size: 12px;
}

/* Feedback Section */
.feedback-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.feedback-prompt {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.feedback-buttons {
    display: flex;
    gap: 10px;
}

.feedback-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-family: inherit;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
}

.feedback-btn svg {
    flex-shrink: 0;
}

.feedback-yes:hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #16a34a;
}

.feedback-yes:hover svg {
    fill: #16a34a;
}

.feedback-no:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #dc2626;
}

.feedback-no:hover svg {
    fill: #dc2626;
}

.feedback-submit {
    color: var(--text);
}

.feedback-submit:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.4);
    color: var(--blue);
}

.feedback-submit:hover svg {
    fill: var(--blue);
}

.feedback-incentive {
    width: 100%;
    font-size: 11px;
    color: var(--text-muted);
    text-align: right;
    margin: -12px 0 0 0;
}

.feedback-thanks {
    font-size: 14px;
    color: #16a34a;
    font-weight: 500;
    text-align: center;
    width: 100%;
}

.feedback-thanks-inline {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

/* Refine Query Section */
.refine-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.refine-original {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    font-style: italic;
}

.refine-prompt {
    font-weight: 500;
    color: var(--text);
    margin: 0;
    font-size: 14px;
}

.refine-input {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
    background: var(--bg);
    color: var(--text);
    transition: all 0.2s ease;
}

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

.refine-input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(36, 81, 201, 0.1);
}

.refine-examples {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.refine-buttons {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.refine-submit {
    padding: 10px 20px;
    background: var(--blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease;
}

.refine-submit:hover:not(:disabled) {
    background: var(--blue-deep);
}

.refine-skip {
    padding: 10px 20px;
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
}

.refine-skip:hover:not(:disabled) {
    background: rgba(55, 65, 81, 0.05);
    color: var(--text);
}

.refine-submit:disabled,
.refine-skip:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 640px) {
    .refine-buttons {
        flex-direction: column;
    }

    .refine-submit,
    .refine-skip {
        width: 100%;
        text-align: center;
    }
}

/* Response Text */
.response-text {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.response-text p {
    font-size: 15px;
    color: var(--text);
    line-height: 1.75;
}

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

.response-text a {
    color: var(--blue);
    text-decoration: none;
    background-image: linear-gradient(var(--gold), var(--gold));
    background-size: 0% 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.3s ease, color 0.15s ease;
    padding-bottom: 1px;
}

.response-text a:hover {
    color: var(--blue-deep);
    background-size: 100% 2px;
}

/* Tool Cards */
.tools-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    animation: slideIn 0.4s ease backwards;
}

.tool-card:nth-child(1) { animation-delay: 0.1s; }
.tool-card:nth-child(2) { animation-delay: 0.2s; }
.tool-card:nth-child(3) { animation-delay: 0.3s; }
.tool-card:nth-child(4) { animation-delay: 0.4s; }
.tool-card:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.tool-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20px;
    bottom: 20px;
    width: 3px;
    background: var(--gold);
    border-radius: 0 2px 2px 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

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

.tool-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
}

.tool-header-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    position: relative;
}

.tool-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--blue);
    letter-spacing: -0.01em;
}

.tool-name a {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(var(--gold), var(--gold));
    background-size: 0% 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.3s ease, color 0.15s ease;
    padding-bottom: 2px;
}

.tool-name a:hover {
    color: var(--blue-deep);
    background-size: 100% 2px;
}

.tool-category {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    background: rgba(55, 65, 81, 0.06);
    padding: 4px 10px;
    border-radius: 100px;
    flex-shrink: 0;
    margin-left: 12px;
}

.tool-description {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.65;
    margin-bottom: 16px;
}

.tool-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.source-badge {
    font-size: 11px;
    color: var(--text-muted);
    background: var(--gold-soft);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

a.source-badge:hover {
    background: rgba(236, 187, 45, 0.22);
    color: var(--text-light);
    text-decoration: none;
}

/* NEW badge for recently added tools */
.new-badge {
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
    animation: pulse-subtle 2s ease-in-out infinite;
}

@keyframes pulse-subtle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* Source pills shown on hover/expand */
.source-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.source-pills .source-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
}

.source-more {
    font-size: 10px;
    color: var(--text-muted);
    padding: 2px 6px;
}

/* Tool source container */
.tool-source {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tool-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.15s ease;
    flex-shrink: 0;
}

.tool-link:hover {
    gap: 10px;
}

.tool-link svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* Error Section */
.error-section {
    animation: fadeIn 0.4s ease;
    margin-bottom: 48px;
}

.error-card {
    background: var(--error-bg);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
}

.error-icon {
    width: 48px;
    height: 48px;
    background: var(--error);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 16px;
}

.error-card p {
    color: var(--error);
    margin-bottom: 20px;
}

.retry-btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    color: white;
    background: var(--blue);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.retry-btn:hover {
    background: var(--blue-deep);
}

/* Footer */
.footer {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
}

.footer a {
    color: var(--blue);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer-attribution {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    padding: 16px 0 4px;
    line-height: 1.6;
}

/* Newsletter Box */
.newsletter-box {
    max-width: 480px;
    margin: 0 auto;
    padding: 4px 0 8px;
    text-align: center;
}

.newsletter-header {
    margin-bottom: 16px;
}

.newsletter-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.newsletter-subtitle {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

/* Toggle pills */
.newsletter-options {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.newsletter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    color: var(--text-light);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.newsletter-toggle:hover {
    border-color: var(--gold-border);
}

.newsletter-toggle.selected {
    color: var(--text);
    background: var(--gold-soft);
    border-color: var(--gold-border);
}

.newsletter-toggle-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid var(--border);
    color: transparent;
    transition: all 0.2s ease;
}

.newsletter-toggle.selected .newsletter-toggle-check {
    background: var(--gold);
    border-color: var(--gold);
    color: white;
    transform: scale(1);
    animation: checkPop 0.2s ease;
}

@keyframes checkPop {
    0% { transform: scale(0.8); }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Newsletter form */
.newsletter-form {
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-input-row {
    display: flex;
    gap: 8px;
}

.newsletter-input {
    flex: 1;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
    outline: none;
    transition: all 0.2s ease;
}

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

.newsletter-input:focus {
    border-color: var(--gold-border);
    box-shadow: var(--shadow), 0 0 0 3px var(--gold-soft);
}

.newsletter-submit {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: white;
    background: var(--blue);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.newsletter-submit:hover:not(:disabled) {
    background: var(--blue-deep);
}

.newsletter-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Newsletter error */
.newsletter-error {
    margin-top: 10px;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--error);
    background: var(--error-bg);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 8px;
    text-align: left;
}

/* Newsletter success */
.newsletter-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 500;
    color: #16a34a;
}

.query-count {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.query-count-bar {
    width: 60px;
    height: 4px;
    background: rgba(55, 65, 81, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.query-count-fill {
    width: 100%;
    height: 100%;
    background: var(--gold);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Responsive */
@media (max-width: 640px) {
    .container {
        padding: 24px 16px 16px;
    }

    header {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0;
        align-items: center;
        margin-bottom: 32px;
        position: relative;
    }

    /* Hide desktop About + Auth buttons on mobile */
    .about-btn,
    .auth-btn {
        display: none !important;
    }

    /* Show mobile kebab menu button */
    .mobile-menu-btn {
        display: flex;
    }

    .source-pill-wrapper {
        position: absolute;
        top: -36px;
        right: 0;
        transform: none;
    }

    .search-label {
        margin-bottom: 16px;
    }

    .search-input {
        padding: 16px 56px 16px 16px;
        font-size: 15px;
    }

    .search-input::placeholder {
        font-size: 14px;
    }

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

    .tool-card {
        padding: 16px;
    }

    .tool-header {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
        align-items: center;
    }

    .tool-name {
        font-size: 15px;
        flex: 1;
        min-width: 0;
    }

    .tool-header-right {
        gap: 4px;
    }

    .tool-category {
        margin-left: 0;
        font-size: 9px;
        padding: 3px 8px;
    }

    .tool-description {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .feedback-section {
        flex-direction: column;
        align-items: stretch;
    }

    .feedback-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* About — full-screen page on mobile */
    #about-modal .modal-backdrop {
        display: none;
    }

    .about-modal-content.modal-content {
        max-width: none;
        width: 100%;
        height: 100%;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        animation: none;
    }

    .about-modal-content .about-modal-body {
        max-height: none;
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tool-footer {
        flex-direction: row;
        align-items: center;
    }

    .newsletter-input-row {
        flex-direction: column;
    }

    .newsletter-submit {
        width: 100%;
    }
}

/* Login Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 420px;
    width: calc(100% - 32px);
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 0;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
}

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

.modal-body {
    padding: 24px;
}

.modal-description {
    font-size: 14px;
    color: var(--text-light);
    margin: 0 0 24px 0;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    outline: none;
    transition: all 0.2s ease;
}

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

.form-input:focus {
    border-color: var(--gold-border);
    box-shadow: var(--shadow-hover), 0 0 0 3px var(--gold-soft);
}

.btn-primary {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    color: white;
    background: var(--blue);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-primary:hover:not(:disabled) {
    background: var(--blue-deep);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-success {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    color: #16a34a;
    margin-bottom: 16px;
}

.login-success h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 8px 0;
}

.login-success p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

.login-error {
    margin-top: 16px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--error);
    background: var(--error-bg);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 8px;
}

/* MCP Container (wraps trigger + dropdown) */
.mcp-container {
    position: relative;
    margin-left: auto;
}

/* MCP Widget (absolute dropdown below trigger) */
.mcp-widget {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    z-index: 100;
    width: max-content;
}

/* MCP Trigger (in search-meta row) */
.mcp-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    color: var(--blue);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    box-shadow: var(--shadow);
}

.mcp-trigger:hover {
    border-color: rgba(36, 81, 201, 0.3);
    box-shadow: var(--shadow-hover);
}

.mcp-trigger-icon {
    color: var(--gold);
    flex-shrink: 0;
}

.mcp-trigger-label {
    letter-spacing: -0.01em;
}

/* MCP Panel (dropdown below trigger) */
.mcp-panel {
    width: 100%;
    min-width: 420px;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    animation: mcpSlideDown 0.2s ease;
    overflow: hidden;
}

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

.mcp-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.mcp-panel-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}

.mcp-panel-title svg {
    color: var(--gold);
}

.mcp-panel-close {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
}

.mcp-panel-close:hover {
    background: rgba(55, 65, 81, 0.06);
    color: var(--text);
}

.mcp-panel-body {
    padding: 16px;
}

.mcp-panel-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0 0 10px 0;
}

/* Command block with copy */
.mcp-cmd {
    position: relative;
    background: #1a2332;
    border-radius: 8px;
    padding: 12px;
    padding-right: 12px;
    margin-bottom: 8px;
}

.mcp-cmd code {
    display: block;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 11px;
    color: #c9d1d9;
    line-height: 1.55;
    word-break: break-all;
    white-space: pre-wrap;
}

.mcp-cmd-copy {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 500;
    font-family: inherit;
    color: #8b949e;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.mcp-cmd-copy:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #c9d1d9;
}

.mcp-cmd-copy.copied {
    color: #3fb950;
    border-color: rgba(63, 185, 80, 0.3);
}

/* Client selector dropdown */
.mcp-tab-bar {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding: 0 12px;
}

.mcp-tab {
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.mcp-tab:hover {
    color: var(--text-primary);
}

.mcp-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.mcp-tab-divider {
    width: 1px;
    height: 16px;
    background: var(--border);
    margin: 0 4px;
    flex-shrink: 0;
}

.mcp-tab-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    padding: 0 4px 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.mcp-api-key-action {
    margin-top: 8px;
}

.mcp-copy-key-btn {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
}

.mcp-copy-key-btn:hover {
    background: var(--bg-tertiary);
}

.mcp-api-key-action a {
    font-size: 12px;
    color: var(--accent);
    text-decoration: none;
}

.mcp-api-key-action a:hover {
    text-decoration: underline;
}

.mcp-panel-error {
    margin-top: 10px;
    padding: 8px 12px;
    font-size: 12px;
    color: var(--error);
    background: var(--error-bg);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 6px;
}

/* Hide MCP on mobile */
@media (max-width: 768px) {
    .mcp-container {
        display: none !important;
    }
}

/* About button — text-only style */
.about-btn {
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    color: var(--text-muted);
    background: transparent;
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.about-btn:hover {
    background: rgba(55, 65, 81, 0.04);
    color: var(--text);
}

/* About modal */
.about-modal-content {
    max-width: 640px;
}

.about-modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.about-section {
    margin-bottom: 20px;
}

.about-section:last-child {
    margin-bottom: 0;
}

.about-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.about-section p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.65;
    margin: 0 0 10px 0;
}

.about-section p:last-of-type {
    margin-bottom: 0;
}

.about-link {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    color: var(--blue);
    text-decoration: none;
    margin-top: 6px;
}

.about-link:hover {
    text-decoration: underline;
}

.about-data-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--blue);
    text-decoration: none;
    margin-top: 8px;
}

.about-data-link:hover {
    text-decoration: underline;
}

.about-data-link svg {
    flex-shrink: 0;
    opacity: 0.8;
}

/* Auth required overlay */
.auth-required-overlay {
    position: absolute;
    inset: 0;
    background: rgba(253, 252, 249, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border-radius: 12px;
    z-index: 10;
}

.auth-required-overlay p {
    font-size: 15px;
    color: var(--text-light);
    margin: 0;
}

/* Search Meta (below search bar: sources left, query count right) */
.search-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    gap: 16px;
}

@media (max-width: 640px) {
    .search-meta {
        justify-content: start;
    }
}

/* Onboarding Tooltip */
.onboarding-tip {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: 10px;
    padding: 16px 40px 16px 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    animation: fadeIn 0.4s ease;
}

.onboarding-tip p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.65;
    margin: 0;
}

.onboarding-tip strong {
    color: var(--text);
}

.onboarding-tip-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
}

.onboarding-tip-close:hover {
    background: rgba(55, 65, 81, 0.06);
    color: var(--text);
}

.source-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 8px 4px;
}

.source-list a {
    display: block;
    font-size: 13px;
    color: var(--text);
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.15s ease;
    text-decoration: none;
}

.source-list a:hover {
    background: var(--gold-soft);
    color: var(--blue);
    text-decoration: none;
}

/* API Modal overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-card {
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-card .modal-header {
    padding: 20px 24px 0;
    border-bottom: none;
    margin-bottom: 0;
}

.modal-card .modal-body {
    padding: 16px 24px 24px;
}

.modal-card .modal-body h3 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-light);
    margin-bottom: 12px;
    margin-top: 20px;
}

.modal-card .modal-body h3:first-child {
    margin-top: 8px;
}

/* Auth submit button */
.auth-submit-btn {
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    color: white;
    background: var(--blue);
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.auth-submit-btn:hover {
    background: var(--blue-deep);
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* API Modal */
.api-keys-list {
    margin-bottom: 16px;
}

.api-key-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.api-key-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.api-key-prefix {
    font-size: 13px;
    color: var(--text);
}

.api-key-label {
    font-size: 12px;
    color: var(--text-light);
}

.api-key-meta {
    font-size: 11px;
    color: var(--text-muted);
}

.api-key-revoke {
    font-size: 12px;
    color: var(--error, #ef4444);
    background: none;
    border: 1px solid var(--error, #ef4444);
    border-radius: 4px;
    padding: 3px 8px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
}

.api-key-revoke:hover {
    background: var(--error, #ef4444);
    color: white;
}

.api-key-created {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
}

.api-key-warning {
    font-size: 12px;
    color: #f59e0b;
    margin-bottom: 8px;
    font-weight: 500;
}

.api-key-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.api-key-display code {
    font-size: 12px;
    background: var(--border);
    padding: 6px 10px;
    border-radius: 4px;
    flex: 1;
    word-break: break-all;
}

.api-key-generate {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.api-key-label-input {
    flex: 1;
    padding: 6px 10px;
    font-size: 13px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
}

.api-key-label-input::placeholder {
    color: var(--text-muted);
}

.api-key-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.api-doc-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.api-doc-link {
    font-size: 13px;
    color: var(--blue);
    text-decoration: none;
    padding: 6px 0;
}

.api-doc-link:hover {
    text-decoration: underline;
}

/* Alternatives panel */
.alternatives-section {
    margin-top: 1rem;
}

.alternatives-toggle {
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.85rem;
    width: 100%;
    text-align: left;
    transition: all 0.2s ease;
}

.alternatives-toggle:hover {
    border-color: #d1d5db;
    color: var(--text);
}

.alternatives-list {
    margin-top: 0.75rem;
}

.alternative-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: white;
}

.alternative-card .source-label {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-right: 0.5rem;
}

.source-label.llm { background: rgba(36, 81, 201, 0.08); color: var(--blue); }
.source-label.community { background: rgba(34, 197, 94, 0.08); color: #15803d; }

.alternative-card .answer-preview {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-light);
    max-height: 4.5em;
    overflow: hidden;
}

.alternative-card .vote-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.alternative-card .vote-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.alternative-card .vote-btn {
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.alternative-card .vote-btn:hover {
    border-color: #d1d5db;
    color: var(--text);
}

.alternative-card .vote-btn.voted {
    pointer-events: none;
    opacity: 0.5;
}

/* Submission flow */
.submit-answer-section {
    width: 100%;
    margin-top: 1rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

.submit-answer-section textarea {
    width: 100%;
    min-height: 120px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    margin: 0.5rem 0;
    box-sizing: border-box;
}

.submit-answer-section textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(36, 81, 201, 0.1);
}

.review-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.review-column {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem;
}

.review-column h4 {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0 0 0.5rem 0;
}

.review-column p {
    font-size: 0.9rem;
    color: var(--text);
    margin: 0;
}

.review-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

/* Tool report button */
.report-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.report-btn:hover {
    color: rgb(245, 158, 11);
}

.report-btn.reported {
    color: rgb(239, 68, 68);
    pointer-events: none;
}

/* Report popover */
.report-popover {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    z-index: 20;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 16px;
    width: 280px;
}

.report-popover-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.report-popover-close {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.report-popover-close:hover {
    color: var(--text);
}

.report-reason {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
    margin-bottom: 12px;
    color: var(--text);
    background: #fff;
    outline: none;
    box-sizing: border-box;
}

.report-reason:focus {
    border-color: var(--gold-border);
}

.report-submit {
    width: 100%;
    padding: 8px 16px;
    background: var(--blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.report-submit:hover {
    background: var(--blue-deep);
}

.report-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Feedback FAB */
.feedback-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px 9px 12px;
    background: var(--gold);
    color: #1a1a0f;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    border: none;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12), 0 1px 3px rgba(0,0,0,0.08);
    z-index: 99;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
}
.feedback-button:hover {
    background: #d4a620;
    box-shadow: 0 4px 16px rgba(0,0,0,0.16), 0 2px 6px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

/* Feedback type pills */
.type-pills {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.type-pill {
    flex: 1;
    padding: 8px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    cursor: pointer;
    transition: all 0.15s ease;
    color: var(--text-light);
}
.type-pill:hover { background: #f9fafb; color: var(--text); }
.type-pill.active-bug { background: #fef2f2; border-color: rgba(220,38,38,0.3); color: #dc2626; }
.type-pill.active-feature { background: var(--gold-soft); border-color: var(--gold-border); color: #a07c00; }
.type-pill.active-other { background: #eff6ff; border-color: rgba(36,81,201,0.2); color: var(--blue); }

/* Screenshot upload area */
.screenshot-upload-area {
    position: relative;
    display: block;
    border: 1px dashed var(--border);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease;
}
.screenshot-upload-area:hover {
    border-color: var(--gold-border);
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

.feedback-linear-link {
    color: var(--blue);
    text-decoration: none;
    font-size: 14px;
}
.feedback-linear-link:hover { text-decoration: underline; }
