/* ========================================
   Beedy.ca Dev Showroom — Dark theme
   Matches beedy.ca style
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
    --bg: #0A0A0F;
    --bg-card: #12121A;
    --bg-card-hover: #1A1A25;
    --border: #2A2A3A;
    --accent: #EF4444;
    --accent-light: #F87171;
    --accent-dark: #B91C1C;
    --text: #E5E5E5;
    --text-muted: #888;
    --text-dim: #555;
    --green: #10B981;
    --blue: #3B82F6;
    --gold: #F59E0B;
    --purple: #8B5CF6;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0,0,0,0.4);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

/* ========== Layout ========== */
.showcase-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.showcase-header {
    text-align: center;
    margin-bottom: 40px;
}

.showcase-logo {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

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

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

/* ========== Login ========== */
.login-box {
    max-width: 400px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 32px;
    box-shadow: var(--shadow);
}

.login-box h2 {
    font-size: 1.4rem;
    margin-bottom: 24px;
    text-align: center;
}

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

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

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus {
    border-color: var(--accent);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--accent);
    color: white;
    width: 100%;
}

.btn-primary:hover { background: var(--accent-light); }

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

.btn-secondary:hover { background: var(--bg-card-hover); }

.btn-small {
    padding: 6px 14px;
    font-size: 0.8rem;
}

.btn-danger {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent-dark);
}

.btn-danger:hover { background: var(--accent-dark); color: white; }

.btn-green {
    background: var(--green);
    color: white;
}

.login-error {
    color: var(--accent);
    text-align: center;
    font-size: 0.85rem;
    margin-top: 12px;
    display: none;
}

.forgot-link {
    text-align: center;
    margin-top: 12px;
    font-size: 0.8rem;
}

.forgot-link a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
}

.forgot-link a:hover {
    color: var(--accent);
}

.login-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: var(--bg);
    border-radius: 8px;
    padding: 4px;
}

.login-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: transparent;
    border: none;
    transition: all 0.2s;
}

.login-tab.active {
    background: var(--bg-card-hover);
    color: white;
}

/* ========== Dashboard ========== */
.dash-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 12px;
}

.dash-welcome {
    font-size: 1.3rem;
    font-weight: 700;
}

.dash-welcome span { color: var(--accent); }

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.3s;
    cursor: pointer;
}

.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

/* Locked project cards — visible but not accessible */
.project-locked {
    opacity: 0.45;
    cursor: default !important;
    position: relative;
    border-style: dashed;
}

.project-locked:hover {
    border-color: var(--border);
    transform: none;
    box-shadow: none;
    opacity: 0.55;
}

.locked-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 1.2rem;
    opacity: 0.7;
}

.project-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.project-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.project-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-beta { background: rgba(245,158,11,0.15); color: var(--gold); }
.status-dev { background: rgba(139,92,246,0.15); color: var(--purple); }
.status-live { background: rgba(16,185,129,0.15); color: var(--green); }

/* ========== Admin ========== */
.admin-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}

.admin-section h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.admin-table th, .admin-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}

.admin-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table tr:hover td {
    background: var(--bg-card-hover);
}

.badge-active {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}

.badge-inactive {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-dim);
}

.badge-online {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22C55E;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
    animation: pulse-online 2s ease-in-out infinite;
}

@keyframes pulse-online {
    0%, 100% { box-shadow: 0 0 8px rgba(34, 197, 94, 0.6); }
    50% { box-shadow: 0 0 14px rgba(34, 197, 94, 0.3); }
}

.online-badge {
    display: inline-block;
    font-size: 0.55rem;
    font-weight: 800;
    color: #22C55E;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 8px;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.admin-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

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

.admin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

/* Version mismatch highlight */
.version-warn { color: var(--gold); }
.version-ok { color: var(--green); }

textarea.form-input {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}

.empty-state {
    text-align: center;
    padding: 32px;
    color: var(--text-dim);
}

/* ========== Footer ========== */
.showcase-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* ========== Mission Control Layout ========== */
.mc-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.mc-sidebar {
    width: 72px;
    background: #08080D;
    border-right: 1px solid #1A1A25;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
    flex-shrink: 0;
}

.mc-logo {
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

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

.mc-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.mc-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 8px;
    border: none;
    background: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    width: 60px;
    color: #555;
}

.mc-nav-btn:hover {
    background: #16161F;
    color: #AAA;
}

.mc-nav-btn.active {
    background: linear-gradient(135deg, rgba(239,68,68,0.15), rgba(239,68,68,0.05));
    color: white;
    border: 1px solid rgba(239,68,68,0.2);
}

.mc-nav-icon { font-size: 1.2rem; }

.mc-nav-label {
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.mc-sidebar-bottom {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #1A1A25;
}

.mc-nav-sm {
    padding: 8px !important;
    width: 44px !important;
}

.mc-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg);
}

.mc-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    border-bottom: 1px solid #1A1A25;
    background: #0A0A0F;
    flex-shrink: 0;
}

.mc-page-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
}

.mc-topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mc-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px rgba(16,185,129,0.5);
    animation: mc-pulse 2s ease-in-out infinite;
}

@keyframes mc-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.mc-status-text {
    font-size: 0.75rem;
    color: #555;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mc-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px;
}

.mc-panel {
    display: none;
}

.mc-panel.active {
    display: block;
}

/* Override old container styles inside mission control */
.mc-layout .showcase-container {
    max-width: none;
    padding: 0;
    margin: 0;
}

.mc-layout .admin-section {
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 24px;
}

/* ========== Settings Section ========== */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.settings-card {
    background: linear-gradient(145deg, #16161F, #12121A);
    border: 1px solid #2A2A3A;
    border-radius: 14px;
    padding: 20px;
    transition: all 0.25s ease;
}

.settings-card:hover {
    border-color: #3A3A4A;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.settings-card-wide {
    grid-column: 1 / -1;
}

.settings-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.settings-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.settings-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #E5E5E5;
}

.settings-card-desc {
    font-size: 0.72rem;
    color: #666;
    margin-top: 1px;
}

.settings-key-group {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.settings-key-row {
    background: rgba(0,0,0,0.25);
    border: 1px solid #1E1E2E;
    border-radius: 10px;
    padding: 14px;
}

.settings-key-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #AAA;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-key-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 800;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.settings-key-input-wrap {
    display: flex;
    gap: 6px;
}

.settings-key-input {
    flex: 1;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.78rem !important;
    padding: 10px 12px !important;
    background: #0A0A0F !important;
    border-color: #2A2A3A !important;
    letter-spacing: 0.3px;
}

.settings-eye-btn {
    background: #1A1A25;
    border: 1px solid #2A2A3A;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    color: var(--text);
}

.settings-eye-btn:hover {
    background: #252530;
    border-color: #3A3A4A;
}

.settings-key-hint {
    font-size: 0.68rem;
    color: #555;
    margin-top: 6px;
}

.settings-card-footer {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-status {
    font-size: 0.75rem;
    color: #666;
}

.settings-services {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-service-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    font-size: 0.82rem;
    color: #BBB;
}

.settings-service-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #555;
}

.settings-service-dot.active {
    background: var(--green);
    box-shadow: 0 0 6px rgba(16,185,129,0.4);
}

.settings-service-port {
    font-family: monospace;
    font-size: 0.72rem;
    color: #555;
    min-width: 40px;
}

.settings-service-actions {
    display: flex;
    gap: 4px;
    margin-left: 8px;
}

.settings-svc-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #2A2A3A;
    border-radius: 6px;
    background: #1A1A25;
    cursor: pointer;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.settings-svc-btn:hover {
    border-color: #3A3A4A;
    background: #252530;
}

.svc-start:hover { border-color: #10B981; background: rgba(16,185,129,0.1); }
.svc-stop:hover { border-color: #EF4444; background: rgba(239,68,68,0.1); }
.svc-restart:hover { border-color: #3B82F6; background: rgba(59,130,246,0.1); }

.settings-service-loading {
    text-align: center;
    padding: 16px;
    font-size: 0.8rem;
    color: #555;
}

/* ========== Clients Topbar ========== */
.clients-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.clients-topbar h3 { margin-bottom: 0; }

.clients-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.clients-online-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--green);
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.2);
    padding: 4px 12px;
    border-radius: 20px;
}

.clients-filter-bar {
    display: flex;
    gap: 2px;
    background: #0A0A0F;
    border: 1px solid #1E1E2E;
    border-radius: 8px;
    padding: 2px;
}

.clients-filter-btn {
    padding: 4px 12px;
    border: none;
    background: none;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.15s;
}

.clients-filter-btn:hover { color: #AAA; }
.clients-filter-btn.active { background: var(--accent); color: white; }

.clients-search {
    background: #0A0A0F;
    border: 1px solid #1E1E2E;
    border-radius: 8px;
    padding: 5px 12px;
    color: var(--text);
    font-size: 0.78rem;
    font-family: 'Inter', sans-serif;
    width: 140px;
    outline: none;
}

.clients-search:focus { border-color: #3A3A4A; }
.clients-search::placeholder { color: #444; }

/* ========== API Usage Dashboard ========== */
.usage-period-select {
    background: #1A1A25;
    border: 1px solid #2A2A3A;
    border-radius: 6px;
    color: #AAA;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
}

.usage-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 16px 0;
}

.usage-stat-card {
    background: rgba(0,0,0,0.3);
    border: 1px solid #1E1E2E;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}

.usage-stat-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--green);
    font-family: 'JetBrains Mono', monospace;
}

.usage-stat-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.usage-section {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #1E1E2E;
}

.usage-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.usage-bars { display: flex; flex-direction: column; gap: 8px; }

.usage-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.usage-bar-label { width: 120px; flex-shrink: 0; }

.usage-bar-app {
    font-size: 0.78rem;
    font-weight: 600;
    color: #DDD;
}

.usage-bar-provider {
    font-size: 0.6rem;
    color: #555;
    margin-left: 4px;
}

.usage-bar-track {
    flex: 1;
    height: 8px;
    background: #1A1A25;
    border-radius: 4px;
    overflow: hidden;
}

.usage-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--green), #34D399);
    border-radius: 4px;
    min-width: 3px;
    transition: width 0.3s ease;
}

.usage-bar-blue {
    background: linear-gradient(90deg, var(--blue), #60A5FA);
}

.usage-bar-value {
    width: 80px;
    text-align: right;
    flex-shrink: 0;
}

.usage-bar-value > div:first-child {
    font-size: 0.78rem;
    font-weight: 700;
    color: #DDD;
    font-family: 'JetBrains Mono', monospace;
}

.usage-bar-calls {
    font-size: 0.6rem;
    color: #555;
}

.usage-empty {
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
    color: #444;
}

/* Usage log */
.usage-recent {
    max-height: 300px;
    overflow-y: auto;
}

.usage-log-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    transition: background 0.15s;
}

.usage-log-row:hover { background: rgba(255,255,255,0.03); }
.usage-log-row.usage-log-error { opacity: 0.5; }

.usage-log-time {
    font-family: 'JetBrains Mono', monospace;
    color: #555;
    width: 60px;
    flex-shrink: 0;
}

.usage-log-app {
    font-weight: 600;
    color: #AAA;
    width: 80px;
    flex-shrink: 0;
}

.usage-log-model {
    color: var(--blue);
    font-weight: 600;
    width: 80px;
    flex-shrink: 0;
}

.usage-log-endpoint {
    color: #666;
    flex: 1;
}

.usage-log-tokens {
    font-family: 'JetBrains Mono', monospace;
    color: #777;
    width: 70px;
    text-align: right;
    flex-shrink: 0;
}

.usage-log-cost {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: var(--green);
    width: 60px;
    text-align: right;
    flex-shrink: 0;
}

/* ========== Analytics Access Control ========== */
.aa-empty {
    text-align: center;
    padding: 28px 16px;
    background: rgba(0,0,0,0.2);
    border: 1px dashed #2A2A3A;
    border-radius: 10px;
}

.aa-empty-icon { font-size: 2rem; margin-bottom: 8px; opacity: 0.4; }
.aa-empty-title { font-size: 0.9rem; font-weight: 700; color: #777; margin-bottom: 4px; }
.aa-empty-desc { font-size: 0.72rem; color: #555; max-width: 300px; margin: 0 auto; }

.aa-app-card {
    background: rgba(0,0,0,0.25);
    border: 1px solid #1E1E2E;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.aa-app-card:hover { border-color: #2A2A3A; }
.aa-app-card.aa-disabled { opacity: 0.5; }

.aa-app-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.aa-app-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.aa-app-status.aa-on { background: var(--green); box-shadow: 0 0 8px rgba(16,185,129,0.4); }
.aa-app-status.aa-off { background: #444; }

.aa-app-info { flex: 1; }
.aa-app-name { font-size: 0.88rem; font-weight: 700; color: #DDD; }
.aa-app-meta { font-size: 0.65rem; color: #555; margin-top: 1px; }

.aa-app-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Toggle switch */
.aa-toggle {
    width: 36px;
    height: 20px;
    border-radius: 10px;
    background: #333;
    border: none;
    cursor: pointer;
    position: relative;
    transition: background 0.25s;
    padding: 0;
}

.aa-toggle.aa-toggle-on { background: var(--green); }

.aa-toggle-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    transition: transform 0.25s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.aa-toggle.aa-toggle-on .aa-toggle-knob { transform: translateX(16px); }

/* Token display */
.aa-token-row {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #0A0A0F;
    border: 1px solid #1A1A25;
    border-radius: 6px;
    padding: 6px 8px;
    margin-bottom: 6px;
}

.aa-token-code {
    flex: 1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    color: #888;
    word-break: break-all;
    line-height: 1.4;
}

.aa-copy-btn {
    background: #1A1A25;
    border: 1px solid #2A2A3A;
    border-radius: 4px;
    color: #999;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 3px 8px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aa-copy-btn:hover { background: #252530; color: white; border-color: var(--green); }

/* Endpoint hint */
.aa-endpoint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.6rem;
    color: #444;
}

.aa-method {
    background: rgba(16,185,129,0.15);
    color: var(--green);
    font-size: 0.55rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 3px;
    font-family: 'JetBrains Mono', monospace;
}

.aa-endpoint code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.58rem;
    color: #555;
}

/* Add section */
.aa-add-section {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #1E1E2E;
}

.aa-add-header {
    font-size: 0.78rem;
    font-weight: 700;
    color: #888;
    margin-bottom: 8px;
}

.aa-add-row {
    display: flex;
    gap: 8px;
}

.aa-add-input {
    flex: 1;
    font-size: 0.82rem !important;
    padding: 9px 12px !important;
}

.aa-add-btn {
    font-size: 0.78rem !important;
    padding: 9px 16px !important;
    white-space: nowrap;
}

.aa-add-hint {
    font-size: 0.65rem;
    color: #444;
    margin-top: 6px;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .mc-layout { flex-direction: column; }
    .mc-sidebar {
        width: 100%;
        flex-direction: row;
        padding: 8px;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #1A1A25;
    }
    .mc-nav { flex-direction: row; gap: 2px; }
    .mc-nav-label { display: none; }
    .mc-nav-btn { width: 44px; padding: 8px; }
    .mc-logo { margin-bottom: 0; margin-right: 12px; }
    .mc-sidebar-bottom { flex-direction: row; margin-top: 0; margin-left: auto; padding-top: 0; border-top: none; }
    .mc-content { padding: 16px; }
    .mc-topbar { padding: 12px 16px; }
    .admin-form { grid-template-columns: 1fr; }
    .admin-table { font-size: 0.75rem; }
    .admin-table th, .admin-table td { padding: 8px; }
    .project-grid { grid-template-columns: 1fr; }
    .login-box { padding: 28px 20px; }
    .settings-grid { grid-template-columns: 1fr; }
}
