/* ============================================================
   common.css — Shared stylesheet for AIBuySignals.com
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: #1a1f35;
    --bg-card-hover: #222842;
    --text-primary: #f0f4ff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-green: #10b981;
    --accent-green-glow: rgba(16, 185, 129, 0.15);
    --accent-red: #ef4444;
    --accent-red-glow: rgba(239, 68, 68, 0.15);
    --accent-blue: #3b82f6;
    --accent-blue-glow: rgba(59, 130, 246, 0.15);
    --accent-purple: #8b5cf6;
    --accent-amber: #f59e0b;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    --gradient-3: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
}

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

/* ── Body ──────────────────────────────────────────────────── */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: clip;
    line-height: 1.5;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 85%, rgba(16, 185, 129, 0.04) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

/* ── Header (Two-Row Layout) ───────────────────────────────── */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    background: rgba(10, 14, 26, 0.92);
    border-bottom: 1px solid var(--border);
}

/* Row 1: Top Bar — logo left, status + profile right */
.header-top {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.15rem;
    text-decoration: none;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    flex-shrink: 0;
}

.logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    -webkit-text-fill-color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

/* Row 2: Nav Links */
.header-nav {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    height: 42px;
    gap: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    overflow-x: auto;
    scrollbar-width: none;
}

.header-nav::-webkit-scrollbar {
    display: none;
}

/* ── Site Nav ──────────────────────────────────────────────── */
.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
}

.nav-link.active {
    color: var(--accent-blue);
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.1);
}

/* ── Mobile Hamburger ─────────────────────────────────────── */
.hamburger {
    display: none;
    border: none;
    background: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

/* ── Header Buttons ────────────────────────────────────────── */
.refresh-btn {
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent-blue);
    border: 1px solid rgba(59, 130, 246, 0.2);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.refresh-btn:hover {
    background: rgba(59, 130, 246, 0.22);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.key-btn {
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-amber);
    border: 1px solid rgba(245, 158, 11, 0.2);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.key-btn:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.35);
    transform: translateY(-1px);
}

.mobile-controls {
    display: none;
}

/* ── Main Content ──────────────────────────────────────────── */
.main {
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* ── Page Hero ─────────────────────────────────────────────── */
.page-hero {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

.page-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ── Stats Grid ────────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem 1.375rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-sub {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* ── Color Utilities ───────────────────────────────────────── */
.green {
    color: var(--accent-green);
}

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

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

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

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

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

/* ── Filter Bar ────────────────────────────────────────────── */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    flex-shrink: 0;
}

.filter-btn {
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.filter-btn.active,
.filter-btn:hover {
    background: rgba(59, 130, 246, 0.14);
    color: var(--accent-blue);
    border-color: rgba(59, 130, 246, 0.3);
}

.search-input {
    flex: 1;
    min-width: 180px;
    max-width: 280px;
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: rgba(59, 130, 246, 0.5);
}

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

/* ── Table ─────────────────────────────────────────────────── */
.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

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

.table-title {
    font-size: 1.05rem;
    font-weight: 700;
}

.table-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: rgba(255, 255, 255, 0.02);
}

th {
    padding: 11px 16px;
    text-align: left;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

td {
    padding: 13px 16px;
    font-size: 0.84rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
    vertical-align: middle;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.025);
}

tr:last-child td {
    border-bottom: none;
}

/* ── Stock Name Cell ───────────────────────────────────────── */
.stock-name {
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.stock-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.63rem;
    font-weight: 800;
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent-blue);
    border: 1px solid rgba(59, 130, 246, 0.18);
    flex-shrink: 0;
    letter-spacing: 0;
}

/* ── Badges ────────────────────────────────────────────────── */
.signal-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.signal-buy {
    background: var(--accent-green-glow);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.signal-hold {
    background: rgba(100, 116, 139, 0.08);
    color: var(--text-muted);
    border: 1px solid rgba(100, 116, 139, 0.18);
}

.badge-target {
    background: var(--accent-green-glow);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-stoploss {
    background: var(--accent-red-glow);
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-open {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
    border: 1px solid rgba(59, 130, 246, 0.25);
    animation: pulse 2s infinite;
}

/* ── Price Cells ───────────────────────────────────────────── */
.price {
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

.price-target {
    color: var(--accent-green);
}

.price-sl {
    color: var(--accent-red);
}

/* ── ML Score Bar ──────────────────────────────────────────── */
.ml-bar {
    width: 56px;
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    margin-right: 7px;
}

.ml-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.7s ease;
}

.ml-score {
    font-size: 0.78rem;
    font-weight: 700;
    vertical-align: middle;
}

/* ── Position Size Badge ───────────────────────────────────── */
.pos-size {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.pos-size.high {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
    border-color: rgba(16, 185, 129, 0.2);
}

/* ── Status / Agent Chips ──────────────────────────────────── */
.status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 13px;
    border-radius: 20px;
    font-size: 0.73rem;
    font-weight: 600;
    background: var(--accent-green-glow);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.2);
    white-space: nowrap;
}

.status-badge.paused {
    background: var(--accent-red-glow);
    color: var(--accent-red);
    border-color: rgba(239, 68, 68, 0.2);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s infinite;
}

.agent-panel {
    display: flex;
    align-items: center;
    gap: 6px;
}

.agent-chip {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    white-space: nowrap;
}

.agent-chip.green {
    color: var(--accent-green);
    border-color: rgba(16, 185, 129, 0.2);
    background: var(--accent-green-glow);
}

.agent-chip.red {
    color: var(--accent-red);
    border-color: rgba(239, 68, 68, 0.2);
    background: var(--accent-red-glow);
}

.agent-chip.amber {
    color: var(--accent-amber);
    border-color: rgba(245, 158, 11, 0.2);
    background: rgba(245, 158, 11, 0.08);
}

/* ── Token Modal ───────────────────────────────────────────── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-overlay.open {
    display: flex;
}

.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    border-radius: 18px;
    padding: 2rem 2.25rem;
    width: 520px;
    max-width: 94vw;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.2s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(12px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.modal-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.76rem;
    font-family: 'Courier New', monospace;
    margin-bottom: 1rem;
    resize: vertical;
    min-height: 88px;
    transition: border-color 0.2s;
}

.modal-input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-save {
    padding: 9px 22px;
    border-radius: 8px;
    background: var(--accent-blue);
    color: #fff;
    border: none;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-save:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.modal-save:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.modal-cancel {
    padding: 9px 22px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-cancel:hover {
    background: rgba(255, 255, 255, 0.09);
    color: var(--text-primary);
}

.modal-msg {
    font-size: 0.78rem;
    margin-top: -0.25rem;
    margin-bottom: 0.75rem;
    padding: 9px 13px;
    border-radius: 7px;
    display: none;
}

.modal-msg.ok {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
    display: block;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.modal-msg.err {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
    display: block;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ── Loading / Error States ────────────────────────────────── */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4.5rem 2rem;
    gap: 16px;
}

.spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-top-color: var(--accent-blue);
    animation: spin 0.75s linear infinite;
}

.loading-text {
    font-size: 0.84rem;
    color: var(--text-muted);
}

.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    gap: 12px;
    text-align: center;
}

.error-icon {
    font-size: 2.5rem;
}

.error-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.retry-btn {
    margin-top: 8px;
    padding: 9px 22px;
    border-radius: 8px;
    background: var(--accent-blue);
    color: #fff;
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.retry-btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

/* ── Win Rate Circle ───────────────────────────────────────── */
.win-rate-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 1.75rem;
    flex-wrap: wrap;
}

.win-rate-circle {
    width: 128px;
    height: 128px;
    position: relative;
    flex-shrink: 0;
}

.win-rate-circle svg {
    transform: rotate(-90deg);
}

.win-rate-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.win-rate-pct {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1;
}

.win-rate-label {
    font-size: 0.62rem;
    color: var(--text-muted);
    margin-top: 3px;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.73rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

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

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

/* ── Sort Badge ────────────────────────────────────────────── */
.sort-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

/* ── Animations ────────────────────────────────────────────── */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }
}

@keyframes dots {

    0%,
    100% {
        content: '.';
    }

    33% {
        content: '..';
    }

    66% {
        content: '...';
    }
}

.dots::after {
    content: '.';
    animation: dots 1.2s infinite;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
    .header-top {
        padding: 0 1rem;
        height: 48px;
    }

    .header-nav {
        padding: 0 1rem;
    }

    .main {
        padding: 1.25rem 1rem;
    }

    .site-nav {
        gap: 2px;
    }

    .nav-link {
        padding: 6px 10px;
        font-size: 0.72rem;
    }

    .agent-panel {
        display: none;
    }
}

@media (max-width: 640px) {
    .hamburger {
        display: block;
        order: 10;
    }

    .header-controls {
        justify-content: flex-end;
        flex: 1;
    }

    .header-controls .key-btn,
    .header-controls .refresh-btn,
    .header-controls .auth-badge,
    .header-controls .agent-panel,
    .header-controls .status-badge {
        display: none;
    }

    .header-nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        height: auto;
        padding: 8px 1rem 12px;
        gap: 8px;
        background: var(--bg-card);
        border-top: 1px solid var(--border);
    }

    .header-nav.open {
        display: flex;
    }

    .header-nav .site-nav {
        flex-direction: column;
        gap: 3px;
    }

    .header-nav .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 12px;
        font-size: 0.85rem;
    }

    /* Show mobile-only buttons in nav when open */
    .header-nav .mobile-controls {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        margin-top: 8px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .stat-value {
        font-size: 1.45rem;
    }

    .stock-icon {
        display: none;
    }

    .ml-bar {
        display: none;
    }

    .win-rate-container {
        flex-direction: column;
        gap: 1rem;
    }

    table {
        font-size: 0.75rem;
    }

    th,
    td {
        padding: 9px 10px;
    }

    .status-badge {
        font-size: 0.65rem;
        padding: 3px 8px;
    }

    .agent-chip {
        font-size: 0.65rem;
        padding: 3px 8px;
    }

    .auth-badge {
        padding: 3px 6px;
    }
}

/* ── Auth Badge ─────────────────────────────────────────────── */
.auth-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    white-space: nowrap;
}

.auth-user-label {
    cursor: pointer;
    transition: color 0.2s;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-secondary);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logout-btn {
    padding: 4px 10px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 7px;
    background: rgba(239, 68, 68, 0.08);
    color: #fca5a5;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s;
    font-family: inherit;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.5);
}

@media (max-width: 768px) {
    .auth-user-label {
    cursor: pointer;
    transition: color 0.2s;
        display: none;
    }
}
.auth-user-label:hover {
    color: var(--accent-blue);
}
