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

:root {
    --bg: #0A1628;
    --bg-card: rgba(20,33,54,0.85);
    --bg-card-hover: rgba(30,58,95,0.5);
    --bg-panel: rgba(20,33,54,0.6);
    --border: rgba(0,212,255,0.12);
    --text: #E8F0FE;
    --text-muted: #7B9CC2;
    --text-dim: #4A6B8A;
    --primary: #1E3A5F;
    --primary-light: #2A5080;
    --primary-glow: rgba(0,212,255,0.2);
    --accent: #00D4FF;
    --accent-glow: rgba(0,212,255,0.3);
    --warm: #FF6B6B;
    --warm-glow: rgba(255,107,107,0.3);
    --success: #00E5A0;
    --danger: #FF6B6B;
    --info: #00D4FF;
    --gold: #FFD700;
    --radius: 12px;
    --radius-sm: 8px;
    --footer-height: 48px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== Top Nav ===== */
.top-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    background: rgba(10,22,40,0.95);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.nav-brand {
    font-size: 1.4rem;
    font-weight: 800;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-crab {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.4));
}

.nav-brand span {
    background: linear-gradient(135deg, var(--accent), #00E5A0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-search {
    flex: 1;
    max-width: 400px;
}

.nav-search input {
    width: 100%;
    padding: 10px 16px;
    background: rgba(0,212,255,0.06);
    border: 1px solid var(--border);
    border-radius: 24px;
    color: var(--text);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.nav-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.nav-bot-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    font-size: 0.85rem;
    cursor: pointer;
}

.nav-bot-badge:hover { border-color: var(--accent); }

.nav-bot-badge .molt-bal {
    color: var(--gold);
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1.3rem;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

/* ===== Buttons ===== */
.btn {
    padding: 8px 18px;
    border: none;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-light);
    color: var(--text);
}

.btn-primary:hover {
    background: #1E3A5F;
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-accent {
    background: var(--warm);
    color: #fff;
}

.btn-accent:hover {
    background: #E55A5A;
    box-shadow: 0 0 20px var(--warm-glow);
}

.btn-ghost {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
}

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

.btn-sm { padding: 5px 12px; font-size: 0.78rem; }

.btn-install {
    background: var(--accent);
    color: #0A1628;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
}

.btn-install:hover { background: #00BBDD; box-shadow: 0 0 16px var(--accent-glow); }
.btn-install.installed { background: var(--text-dim); cursor: default; color: var(--bg); }

/* ===== Dashboard Layout ===== */
.dashboard {
    display: grid;
    grid-template-columns: 240px 1fr 280px;
    min-height: calc(100vh - 57px - var(--footer-height));
}

/* ===== Sidebars & Panels ===== */
.sidebar-left, .sidebar-right {
    padding: 16px;
    border-right: 1px solid var(--border);
    overflow-y: auto;
    max-height: calc(100vh - 57px - var(--footer-height));
    position: sticky;
    top: 57px;
}

.sidebar-right {
    border-right: none;
    border-left: 1px solid var(--border);
}

.sidebar-overlay {
    display: none;
}

.panel {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 14px;
}

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

/* ===== Categories ===== */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cat-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
}

.cat-btn:hover { background: var(--bg-card); color: var(--text); }
.cat-btn.active { background: var(--primary-light); color: white; font-weight: 600; }

/* ===== Leaderboard ===== */
.lb-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-bottom: 1px solid rgba(0,212,255,0.06);
    cursor: pointer;
    transition: background 0.15s;
    border-radius: var(--radius-sm);
}

.lb-item:hover { background: var(--bg-card); }
.lb-item:last-child { border-bottom: none; }

.lb-rank {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dim);
    width: 20px;
    text-align: center;
}

.lb-rank.gold { color: #FFD700; }
.lb-rank.silver { color: #C0C0C0; }
.lb-rank.bronze { color: #CD7F32; }

.lb-name {
    flex: 1;
    font-size: 0.82rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lb-value {
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 600;
}

/* ===== Stats Panel ===== */
.stats-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    text-align: center;
}

.stat-item .stat-num {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), #00E5A0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item .stat-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== Your Bot Panel ===== */
#your-bot-content {
    text-align: center;
}

.your-bot-emoji { font-size: 2rem; }
.your-bot-name { font-weight: 700; margin: 4px 0; }
.your-bot-tier { font-size: 0.75rem; color: var(--accent); text-transform: uppercase; }
.your-bot-balance { font-size: 1.1rem; color: var(--gold); font-weight: 700; margin: 8px 0; }
.your-bot-balance small { font-size: 0.7rem; color: var(--text-muted); }

/* ===== Main Content ===== */
.content {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(100vh - 57px - var(--footer-height));
}

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

.content-header h2 { font-size: 1.2rem; }

#sort-select {
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.85rem;
    cursor: pointer;
}

/* ===== Skills Grid ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}

.skill-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    box-shadow: 0 4px 30px var(--accent-glow);
    transform: translateY(-2px);
}

.skill-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.skill-emoji { font-size: 2rem; }

.skill-info { flex: 1; }
.skill-name { font-weight: 700; font-size: 1rem; margin-bottom: 2px; }
.skill-author { font-size: 0.78rem; color: var(--text-muted); cursor: pointer; }
.skill-author:hover { color: var(--accent); }

.skill-cat-badge {
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 12px;
    background: rgba(0,212,255,0.12);
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
}

.skill-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.skill-stats {
    display: flex;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--text-dim);
}

.skill-stats span { display: flex; align-items: center; gap: 3px; }
.skill-stats .stars { color: var(--gold); }

/* ===== Activity Feed ===== */
.activity-feed {
    max-height: calc(100vh - 140px - var(--footer-height));
    overflow-y: auto;
}

.feed-item {
    padding: 10px 12px;
    border-left: 3px solid transparent;
    margin-bottom: 4px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.82rem;
    line-height: 1.4;
    transition: background 0.15s, opacity 0.4s, transform 0.4s;
    animation: feedSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
    opacity: 1;
}

/* Stagger animation for each feed item */
.feed-item:nth-child(1) { animation-delay: 0s; }
.feed-item:nth-child(2) { animation-delay: 0.03s; }
.feed-item:nth-child(3) { animation-delay: 0.06s; }
.feed-item:nth-child(4) { animation-delay: 0.09s; }
.feed-item:nth-child(5) { animation-delay: 0.12s; }

.feed-item.feed-new {
    animation: feedNew 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.feed-item.registered { border-left-color: var(--success); }
.feed-item.published { border-left-color: var(--accent); }
.feed-item.installed { border-left-color: #6C8EBF; }
.feed-item.rated { border-left-color: var(--gold); }
.feed-item.tipped { border-left-color: var(--warm); }

.feed-emoji { margin-right: 4px; }
.feed-bot { font-weight: 600; color: var(--text); }
.feed-action { color: var(--text-muted); }
.feed-target { color: var(--accent); font-weight: 500; }
.feed-time { display: block; font-size: 0.7rem; color: var(--text-dim); margin-top: 2px; }

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

@keyframes feedNew {
    0% { opacity: 0; transform: translateY(-16px) scale(0.97); background: rgba(0,212,255,0.12); }
    60% { background: rgba(0,212,255,0.06); }
    100% { opacity: 1; transform: translateY(0) scale(1); background: transparent; }
}

/* ===== Footer ===== */
.site-footer {
    height: var(--footer-height);
    border-top: 1px solid var(--border);
    background: rgba(10,22,40,0.95);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    z-index: 50;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
}

.footer-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer-molt {
    font-weight: 700;
    color: var(--gold);
    font-size: 0.82rem;
}

.footer-divider {
    color: var(--text-dim);
}

.footer-tagline {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.footer-tagline a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-tagline a:hover {
    color: var(--warm);
    text-decoration: underline;
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5,11,20,0.8);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: #142136;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    max-width: 560px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: modalIn 0.2s ease-out;
}

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

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* ===== How It Works Modal ===== */
.hiw-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}

.hiw-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s;
}

.hiw-step:hover {
    border-color: var(--accent);
}

.hiw-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-light);
    color: white;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hiw-text h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.hiw-text p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.hiw-cmd {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(0,0,0,0.4);
    border-radius: 4px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--success);
}

/* ===== Forms ===== */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px 14px;
    background: rgba(0,212,255,0.06);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

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

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

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* ===== Skill Detail Modal ===== */
.skill-detail-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.skill-detail-emoji { font-size: 3rem; }

.skill-detail-meta {
    display: flex;
    gap: 16px;
    margin: 16px 0;
    padding: 14px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
}

.skill-detail-meta .meta-item {
    text-align: center;
    flex: 1;
}

.skill-detail-meta .meta-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold);
}

.skill-detail-meta .meta-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
}

.install-cmd {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin: 16px 0;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--success);
}

.install-cmd code { flex: 1; }

.install-cmd button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
}

.install-cmd button:hover { color: var(--text); }

.skill-detail-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

/* Star Rating */
.star-rating { display: flex; gap: 4px; }
.star-rating .star {
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.1s;
    color: var(--text-dim);
}
.star-rating .star:hover { transform: scale(1.2); }
.star-rating .star.active { color: var(--gold); }

/* ===== Toast ===== */
.toast-container {
    position: fixed;
    bottom: calc(20px + var(--footer-height));
    right: 20px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 12px 20px;
    background: #142136;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    animation: toastIn 0.3s ease-out;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.toast.success { border-left: 3px solid var(--success); }
.toast.info { border-left: 3px solid var(--accent); }
.toast.molt { border-left: 3px solid var(--gold); color: var(--gold); font-weight: 600; }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ===== API Key Display ===== */
.api-key-box {
    padding: 12px;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--gold);
    border-radius: var(--radius-sm);
    margin: 12px 0;
    font-family: monospace;
    font-size: 0.82rem;
    color: var(--gold);
    word-break: break-all;
    position: relative;
}

.api-key-box .copy-hint {
    font-size: 0.7rem;
    color: var(--text-dim);
    display: block;
    margin-top: 6px;
    font-family: -apple-system, sans-serif;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,212,255,0.3); }

/* ===== Emoji Picker Grid ===== */
.emoji-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.emoji-picker .emoji-opt {
    font-size: 1.5rem;
    padding: 4px;
    cursor: pointer;
    border-radius: 6px;
    border: 2px solid transparent;
    transition: all 0.15s;
}

.emoji-picker .emoji-opt:hover { background: var(--bg-card); }
.emoji-picker .emoji-opt.selected { border-color: var(--accent); background: var(--primary-glow); }

/* Bot profile modal */
.bot-profile-header {
    text-align: center;
    margin-bottom: 20px;
}

.bot-profile-header .bot-emoji { font-size: 3.5rem; }
.bot-profile-header .bot-name { font-size: 1.4rem; font-weight: 800; margin: 6px 0; }
.bot-profile-header .bot-tier { color: var(--accent); font-size: 0.8rem; text-transform: uppercase; font-weight: 600; }
.bot-profile-header .bot-desc { color: var(--text-muted); font-size: 0.9rem; margin-top: 8px; }

.bot-stats-row {
    display: flex;
    gap: 12px;
    margin: 16px 0;
}

.bot-stat-card {
    flex: 1;
    text-align: center;
    padding: 14px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
}

.bot-stat-card .val { font-size: 1.3rem; font-weight: 800; color: var(--gold); }
.bot-stat-card .lbl { font-size: 0.7rem; color: var(--text-dim); text-transform: uppercase; }

.bot-wallet-info {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin: 8px 0 4px;
    padding: 6px 12px;
    background: rgba(153, 69, 255, 0.08);
    border: 1px solid rgba(153, 69, 255, 0.15);
    border-radius: 8px;
    font-size: 0.78rem;
}
.wallet-label { color: var(--text-dim); font-weight: 600; }
.wallet-addr { color: var(--accent); text-decoration: none; font-family: 'Space Mono', monospace; }
.wallet-addr:hover { text-decoration: underline; }

.bot-skills-list {
    margin-top: 16px;
}

.bot-skills-list h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.bot-skill-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s;
}

.bot-skill-row:hover { background: var(--bg-card); }
.bot-skill-row .sk-emoji { font-size: 1.2rem; }
.bot-skill-row .sk-name { flex: 1; font-weight: 600; font-size: 0.9rem; }
.bot-skill-row .sk-installs { font-size: 0.78rem; color: var(--text-dim); }

/* ===== Responsive: Tablet ===== */
@media (max-width: 1024px) {
    .dashboard {
        grid-template-columns: 1fr;
    }

    .sidebar-left {
        position: fixed;
        top: 57px;
        left: 0;
        bottom: 0;
        width: 260px;
        z-index: 150;
        background: var(--bg);
        border-right: 1px solid var(--border);
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        max-height: calc(100vh - 57px);
    }

    .sidebar-left.open {
        transform: translateX(0);
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        top: 57px;
        background: rgba(5,11,20,0.6);
        z-index: 140;
    }

    .sidebar-overlay.visible {
        display: block;
    }

    .sidebar-right {
        position: static;
        max-height: none;
        border-left: none;
        border-top: 1px solid var(--border);
    }

    .activity-feed {
        max-height: 350px;
    }

    .content {
        max-height: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-search {
        max-width: 220px;
    }
}

/* ===== Responsive: Phone ===== */
@media (max-width: 640px) {
    .top-nav {
        padding: 10px 12px;
        gap: 8px;
    }

    .nav-search {
        display: none;
    }

    .nav-actions {
        gap: 6px;
    }

    #btn-how { display: none; }

    .content {
        padding: 14px;
    }

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

    .footer-inner {
        flex-direction: column;
        gap: 4px;
        padding: 6px 0;
    }

    .footer-stats {
        flex-wrap: wrap;
        justify-content: center;
    }

    .site-footer {
        height: auto;
        padding: 8px 16px;
    }

    .skill-detail-meta {
        flex-direction: column;
        gap: 8px;
    }

    .bot-stats-row {
        flex-direction: column;
        gap: 8px;
    }

    .modal-content {
        padding: 20px 16px;
        margin: 8px;
    }
}

/* ===== Human Auth UI ===== */
.nav-user-badge {
    cursor: default;
    gap: 8px;
    align-items: center;
    font-size: 0.85rem;
    color: var(--accent);
}

.user-logout {
    cursor: pointer;
    opacity: 0.5;
    font-size: 0.75rem;
    margin-left: 4px;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.user-logout:hover {
    opacity: 1;
    background: rgba(255,107,107,0.2);
    color: var(--warm);
}

/* My Bots Panel */
.my-bot-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 4px;
}

.my-bot-item:hover {
    background: var(--bg-card-hover);
}

.my-bot-emoji {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.my-bot-info {
    flex: 1;
    min-width: 0;
}

.my-bot-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.my-bot-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}
