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

:root {
    /* Log3 spatial design — dark mode, neutral palette */
    --bg-body: #0a0a0a;
    --bg-card: linear-gradient(145deg, #222222, #111111);
    --bg-item: linear-gradient(180deg, rgba(42,42,46,0.8), rgba(30,30,34,0.7));
    --text-primary: #f5f5f3;
    --text-secondary: #a1a1a6;
    --text-tertiary: #6e6e73;

    --accent: #ff8a3d;
    --accent-gradient: linear-gradient(180deg, #fff 0%, #d8d8d4 100%);
    --accent-soft: rgba(255,255,255,0.05);

    --success-gradient: linear-gradient(180deg, #5fd68a 0%, #24b049 100%);
    --warning-gradient: linear-gradient(180deg, #ffb340 0%, #e68a00 100%);
    --danger-gradient: linear-gradient(180deg, #ff6961 0%, #d7261e 100%);

    --color-success: #5fd68a;
    --color-warning: #e68a00;
    --color-danger: #d7261e;

    --border-outer: rgba(255,255,255,0.1);
    --border-inner: rgba(255,255,255,0.13);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 30px;

    --shadow-spatial-card:
        0 24px 60px rgba(0,0,0,0.55),
        0 4px 12px rgba(0,0,0,0.3),
        inset 0 1px 1px rgba(255,255,255,0.1),
        inset 0 -2px 4px rgba(0,0,0,0.5);
    --shadow-spatial-item:
        0 4px 14px rgba(0,0,0,0.25),
        inset 0 1px 1px rgba(255,255,255,0.06);
    --shadow-spatial-btn:
        0 8px 18px rgba(0,0,0,0.35),
        inset 0 1px 1px #fff;
    --shadow-spatial-btn-secondary:
        0 4px 10px rgba(0,0,0,0.2),
        inset 0 1px 1px rgba(255,255,255,0.08),
        inset 0 -1px 1px rgba(0,0,0,0.3);
    --shadow-inset-pod:
        inset 0 2px 4px rgba(0,0,0,0.3),
        0 1px 1px rgba(255,255,255,0.02);

    --mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(#000, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

#app {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.9em;
}

/* ========== DASHBOARD LAYOUT ========== */

/* Sidebar */
.dash-sidebar {
    width: 260px;
    background: linear-gradient(180deg, rgba(20,20,20,0.95), rgba(14,14,14,0.95));
    border-right: 1px solid var(--border-outer);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: 100vh;
    z-index: 30;
    transition: width 0.3s ease, transform 0.3s ease;
}

.dash-sidebar.collapsed {
    width: 70px;
}

.dash-sidebar.collapsed .sidebar-item-label,
.dash-sidebar.collapsed .dash-sidebar__user-info,
.dash-sidebar.collapsed .dash-sidebar__section {
    display: none;
}

.dash-sidebar.collapsed .dash-sidebar__item {
    justify-content: center;
    padding: 10px;
}

.dash-sidebar.collapsed .dash-sidebar__user {
    justify-content: center;
}

.dash-sidebar.collapsed .dash-sidebar__logo {
    justify-content: center;
}

.dash-sidebar__logo {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-outer);
}
.dash-sidebar__logo img{border-radius:4px;flex-shrink:0}


.sidebar-toggle-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle-btn:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

.sidebar-close-btn {
    display: none;
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 16px;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: all 0.15s;
}

.sidebar-close-btn:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

/* Sidebar Navigation */
.dash-sidebar__nav {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.dash-sidebar__nav-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

/* Custom scrollbar for sidebar */
.dash-sidebar__nav-scroll::-webkit-scrollbar {
    width: 14px;
}

.dash-sidebar__nav-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.dash-sidebar__nav-scroll::-webkit-scrollbar-thumb {
    background: var(--border-outer);
    border: 3px solid transparent;
    border-radius: 99px;
    background-clip: content-box;
}

.dash-sidebar__nav-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
    background-clip: content-box;
}

.dash-sidebar__nav-scroll::-webkit-scrollbar-button {
    display: block;
    height: 14px;
    background: var(--border-outer);
    border: none;
}

.dash-sidebar__nav-scroll::-webkit-scrollbar-button:vertical:decrement {
    border-radius: 2px 2px 0 0;
}

.dash-sidebar__nav-scroll::-webkit-scrollbar-button:vertical:increment {
    border-radius: 0 0 2px 2px;
}

/* Scroll arrow buttons */
.sidebar-scroll-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 28px;
    border: none;
    cursor: pointer;
    background: transparent;
    color: var(--text-tertiary);
    font-size: 12px;
    transition: all 0.15s;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
}

.sidebar-scroll-arrow:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

.sidebar-scroll-arrow.hidden {
    display: none;
}

.dash-sidebar__section {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 16px 12px 8px;
}

.dash-sidebar__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s;
    cursor: pointer;
}

.dash-sidebar__item:hover {
    background: var(--accent-soft);
    color: var(--text-primary);
    text-decoration: none;
}

.dash-sidebar__item.active {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.dash-sidebar__item i {
    font-size: 17px;
    width: 20px;
    text-align: center;
}

.dash-sidebar__footer {
    padding: 16px;
    border-top: 1px solid var(--border-outer);
    flex-shrink: 0;
}

.dash-sidebar__user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.15s;
}

.dash-sidebar__user:hover {
    background: var(--accent-soft);
}

.dash-sidebar__user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,138,61,0.12);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}

.dash-sidebar__user-info {
    flex: 1;
    min-width: 0;
}

.dash-sidebar__user-name {
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-sidebar__user-email {
    font-size: 11px;
    color: var(--text-tertiary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Main Content Area */
.dash-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    height: 100vh;
}

/* Topbar */
.dash-topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 32px;
    border-bottom: 1px solid var(--border-outer);
    background: var(--bg-card);
    flex-shrink: 0;
}

.dash-topbar__hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: background 0.15s;
}

.dash-topbar__hamburger:hover {
    background: var(--accent-soft);
}

.dash-topbar__title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.dash-topbar__subtitle {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 2px;
}

.dash-topbar__spacer {
    flex: 1;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    margin-bottom: 2px;
    flex-wrap: wrap;
}

.breadcrumb__item {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.breadcrumb__item:hover {
    color: var(--accent);
}

.breadcrumb__item.active {
    color: var(--text-primary);
    font-weight: 600;
    pointer-events: none;
}

.breadcrumb__sep {
    color: var(--text-tertiary);
    font-size: 11px;
    display: inline-flex;
}

/* Content Area */
.dash-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 28px 32px;
    scroll-behavior: smooth;
}

/* Custom scrollbar for content */
.dash-content::-webkit-scrollbar {
    width: 8px;
}

.dash-content::-webkit-scrollbar-track {
    background: transparent;
}

.dash-content::-webkit-scrollbar-thumb {
    background: var(--border-outer);
    border-radius: 99px;
    transition: background 0.2s;
}

.dash-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* ========== BUTTONS ========== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

.btn--primary {
    background: var(--accent-gradient);
    color: #0a0a0a;
    box-shadow: var(--shadow-spatial-btn);
}

.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.4), inset 0 1px 1px #fff;
}

.btn--secondary {
    background: var(--bg-item);
    color: var(--text-primary);
    border: 1px solid var(--border-outer);
    box-shadow: var(--shadow-spatial-btn-secondary);
}

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

.btn--danger {
    background: var(--danger-gradient);
    color: #fff;
    box-shadow: 0 6px 16px rgba(215,38,30,0.3);
}

.btn--sm {
    padding: 8px 14px;
    font-size: 13px;
}

.btn--ghost {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    box-shadow: none;
}

.btn--ghost:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

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

/* ========== TABLES ========== */

.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-outer);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-spatial-card);
    overflow: hidden;
    margin-bottom: 20px;
}

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-wrap::-webkit-scrollbar {
    height: 8px;
}

.table-wrap::-webkit-scrollbar-track {
    background: transparent;
}

.table-wrap::-webkit-scrollbar-thumb {
    background: var(--border-outer);
    border-radius: 99px;
}

.table-wrap::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 800px;
}

.table thead {
    background: var(--bg-item);
}

.table th {
    background: var(--bg-item);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-outer);
    white-space: nowrap;
}

.table td {
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-outer);
    transition: background 0.15s;
}

.table tbody tr {
    cursor: pointer;
}

.table tbody tr:hover td {
    background: var(--accent-soft);
}

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

@media (max-width: 768px) {
    .table {
        font-size: 13px;
    }
    
    .table th,
    .table td {
        padding: 10px 12px;
    }
}

/* ========== MODALS ========== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-outer);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-spatial-card);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: modalSlide 0.3s ease;
}

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

.modal__header {
    padding: 24px;
    border-bottom: 1px solid var(--border-outer);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal__title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.2px;
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-outer);
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.modal-close:hover {
    background: rgba(255,255,255,0.06);
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.modal__body a.btn,
.modal__body button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.modal__body a.btn--primary,
.modal__body .btn--primary {
    background: linear-gradient(180deg, #ffffff 0%, #d9d9d5 100%);
    color: #0a0a0a;
    box-shadow: 0 7px 16px rgba(0,0,0,.32), inset 0 1.5px 1px rgba(255,255,255,.95), inset 0 -1.5px 2px rgba(0,0,0,.2);
}
.modal__body a.btn--primary:hover,
.modal__body .btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,.45), inset 0 1.5px 1px rgba(255,255,255,.95), inset 0 -1.5px 2px rgba(0,0,0,.2);
}
.modal__body a.btn--secondary,
.modal__body .btn--secondary {
    background: rgba(255,255,255,0.06);
    color: var(--text-primary);
    border: 1px solid var(--border-outer);
}
.modal__body a.btn--secondary:hover,
.modal__body .btn--secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--text-secondary);
}
.modal__body a.btn--ghost,
.modal__body .btn--ghost {
    background: transparent;
    color: var(--text-secondary);
}
.modal__body a.btn--ghost:hover,
.modal__body .btn--ghost:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.04);
}
.modal__body a i,
.modal__body button i {
    font-size: 16px;
}

.modal__body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal__footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-outer);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-shrink: 0;
}

/* ========== FORMS ========== */

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-input {
    padding: 12px 14px;
    background: var(--bg-item);
    border: 1px solid var(--border-outer);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all 0.15s;
    box-shadow: var(--shadow-inset-pod);
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.12), var(--shadow-inset-pod);
}

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

.form-hint {
    font-size: 11px;
    color: var(--text-tertiary);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-outer);
    background: rgba(255,255,255,0.02);
    transition: background 0.15s, border-color 0.15s;
}

.form-checkbox:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.15);
}

.form-checkbox input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid #555;
    border-radius: 5px;
    background: rgba(255,255,255,0.04);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    flex-shrink: 0;
}

.form-checkbox input[type="checkbox"]::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 9px;
    border: solid transparent;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.15s ease, border-color 0.15s;
}

.form-checkbox input[type="checkbox"]:checked {
    background: rgba(95,214,138,0.15);
    border-color: var(--color-success);
}

.form-checkbox input[type="checkbox"]:checked::after {
    border-color: var(--color-success);
    transform: rotate(45deg) scale(1);
}

.form-checkbox:hover input[type="checkbox"] {
    border-color: #888;
}

.form-checkbox label {
    font-size: 14px;
    color: #ccc;
    cursor: pointer;
    font-weight: 500;
}

.form-checkbox:has(input:checked) label {
    color: var(--text-primary);
}

/* ========== BADGES ========== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge--success {
    background: rgba(36,176,73,0.1);
    color: var(--color-success);
}

.badge--warning {
    background: rgba(230,138,0,0.1);
    color: var(--color-warning);
}

.badge--danger {
    background: rgba(215,38,30,0.1);
    color: var(--color-danger);
}

.badge--accent {
    background: var(--accent-soft);
    color: var(--accent);
}

/* ========== MOBILE RESPONSIVE ========== */

@media (max-width: 768px) {
    .dash-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        transform: translateX(-100%);
        z-index: 100;
    }

    .dash-sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-toggle-btn {
        display: none;
    }

    .sidebar-close-btn {
        display: block;
    }

    .dash-topbar__hamburger {
        display: block;
    }

    .dash-topbar {
        padding: 16px 20px;
    }

    .dash-content {
        padding: 20px 16px;
    }

    .stats-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hide-mobile {
        display: none !important;
    }
}

@media (max-width: 960px) {
    .stats-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile overlay */
#sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 29;
}

#sidebar-overlay.show {
    display: block;
}

/* ========== COPY BUTTON ========== */

.copy-btn {
    background: var(--accent-soft);
    color: var(--accent);
    border: none;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

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

/* ========== ALERTS ========== */

.alert {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert--success {
    background: rgba(36,176,73,0.1);
    border: 1px solid rgba(36,176,73,0.2);
    color: var(--color-success);
}

.alert--danger {
    background: rgba(215,38,30,0.1);
    border: 1px solid rgba(215,38,30,0.2);
    color: var(--color-danger);
}

.alert--warning {
    background: rgba(230,138,0,0.1);
    border: 1px solid rgba(230,138,0,0.2);
    color: var(--color-warning);
}

/* ========== EMPTY STATE ========== */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border: 1px dashed var(--border-outer);
    border-radius: var(--radius-lg);
}

.empty-state__icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--accent);
    margin: 0 auto 16px;
}

.empty-state__title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.empty-state__desc {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

/* ========== FORM FIELDS ========== */

/* ========== API KEY ROW ========== */

.api-key-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-item);
    border: 1px solid var(--border-outer);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.api-key-row__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-tertiary);
    min-width: 100px;
}

.api-key-row__value {
    flex: 1;
    font-family: 'SF Mono', monospace;
    font-size: 13px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.api-key-row__actions {
    display: flex;
    gap: 8px;
}

.secret-revealed {
    animation: revealPulse 0.4s ease;
}

@keyframes revealPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* ========== OVERVIEW PAGE ========== */

.ov-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.ov-welcome__kicker {
    font: 600 10px/1 var(--mono);
    letter-spacing: 0.14em;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.ov-welcome__kicker::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.ov-welcome__title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.045em;
}

.ov-welcome__sub {
    font-size: 14px;
    color: #999;
    margin-top: 4px;
    line-height: 1.5;
}

.ov-welcome__wallet {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-outer);
    border-radius: 999px;
    font: 500 12px var(--mono);
    color: #aaa;
}

.ov-welcome__wallet i {
    color: var(--accent);
    font-size: 14px;
}

/* Stats cards */
.ov-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.ov-stat {
    background: var(--bg-card);
    border: 1px solid var(--border-outer);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-spatial-card);
    transition: transform 0.2s, box-shadow 0.2s;
}

.ov-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 28px 70px rgba(0,0,0,0.6), inset 0 1px 1px rgba(255,255,255,0.1);
}

.ov-stat__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.ov-stat__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.ov-stat--projects .ov-stat__icon {
    background: rgba(255,255,255,0.06);
    color: #ccc;
}

.ov-stat--users .ov-stat__icon {
    background: rgba(95,214,138,0.1);
    color: var(--color-success);
}

.ov-stat--webhooks .ov-stat__icon {
    background: rgba(255,138,61,0.1);
    color: var(--accent);
}

.ov-stat__link {
    font: 600 11px var(--mono);
    color: #666;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s;
}

.ov-stat__link:hover {
    color: var(--accent);
    text-decoration: none;
}

.ov-stat__value {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1;
}

.ov-stat__label {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 4px;
    margin-bottom: 12px;
}

.ov-stat__bar {
    height: 3px;
    background: rgba(255,255,255,0.06);
    border-radius: 99px;
    overflow: hidden;
}

.ov-stat__bar-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.6s ease;
}

.ov-stat--projects .ov-stat__bar-fill { background: linear-gradient(90deg, #666, #999); }
.ov-stat--users .ov-stat__bar-fill { background: var(--success-gradient); }
.ov-stat--webhooks .ov-stat__bar-fill { background: linear-gradient(90deg, #ff8a3d, #ffb340); }

/* Grid: actions + activity */
.ov-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ov-section {
    background: var(--bg-card);
    border: 1px solid var(--border-outer);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-spatial-card);
    overflow: hidden;
}

.ov-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-outer);
}

.ov-section__title {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
}

.ov-section__title i {
    color: var(--accent);
    font-size: 14px;
}

.ov-section__more {
    font: 600 11px var(--mono);
    color: #666;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s;
}

.ov-section__more:hover {
    color: var(--accent);
    text-decoration: none;
}

/* Quick actions */
.ov-actions {
    padding: 8px;
}

.ov-action-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.15s;
}

.ov-action-card:hover {
    background: rgba(255,255,255,0.04);
    text-decoration: none;
}

.ov-action-card__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-outer);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #aaa;
    flex-shrink: 0;
}

.ov-action-card:hover .ov-action-card__icon {
    color: var(--accent);
    border-color: rgba(255,138,61,0.2);
}

.ov-action-card__text {
    flex: 1;
    min-width: 0;
}

.ov-action-card__title {
    font-size: 13px;
    font-weight: 600;
}

.ov-action-card__desc {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 1px;
}

.ov-action-card__chev {
    font-size: 12px;
    color: #555;
    transition: transform 0.15s, color 0.15s;
}

.ov-action-card:hover .ov-action-card__chev {
    transform: translateX(3px);
    color: var(--accent);
}

/* Activity feed */
.ov-activity {
    padding: 4px 0;
}

.ov-activity__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-outer);
    transition: background 0.15s;
}

.ov-activity__item:last-child {
    border-bottom: none;
}

.ov-activity__item:hover {
    background: rgba(255,255,255,0.02);
}

.ov-activity__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ov-activity__dot--ok {
    background: var(--color-success);
    box-shadow: 0 0 8px rgba(95,214,138,0.35);
}

.ov-activity__dot--err {
    background: var(--color-danger);
    box-shadow: 0 0 8px rgba(215,38,30,0.35);
}

.ov-activity__body {
    flex: 1;
    min-width: 0;
}

.ov-activity__event {
    font-size: 13px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ov-activity__meta {
    font: 500 11px var(--mono);
    color: #666;
    margin-top: 2px;
}

.ov-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 40px 20px;
    color: #555;
    font-size: 13px;
}

.ov-empty i {
    font-size: 28px;
    opacity: 0.3;
}

/* Responsive */
@media (max-width: 1024px) {
    .ov-stats { grid-template-columns: repeat(2, 1fr); }
    .ov-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .ov-stats { grid-template-columns: 1fr; }
    .ov-welcome { flex-direction: column; align-items: flex-start; }
    .ov-welcome__wallet { align-self: flex-start; }
    .ov-stat__value { font-size: 24px; }
}

/* ========== FOLDER ICON (Bukasir-style) ========== */

.fv-folder {
    position: relative;
    width: 52px;
    height: 42px;
    flex-shrink: 0;
}

.fv-folder__back {
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: linear-gradient(160deg, #3a3a3c, #17171a);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.14), 0 4px 10px rgba(0,0,0,0.25);
}

.fv-folder__sheet {
    position: absolute;
    top: -6px;
    left: 10px;
    width: 26px;
    height: 30px;
    background: linear-gradient(180deg, #fdfdfd, #e9e9ec);
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.18);
}

.fv-folder__sheet:nth-child(2) { left: 14px; top: -3px; transform: rotate(-3deg); }
.fv-folder__sheet:nth-child(3) { left: 18px; top: 0; transform: rotate(-6deg); }

.fv-folder__front {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(70,70,74,0.55), rgba(20,20,22,0.85));
    backdrop-filter: blur(2px);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.15);
}

.fv-folder--orange .fv-folder__back {
    background: linear-gradient(160deg, #ffb66b, #b8481a);
}
.fv-folder--orange .fv-folder__front {
    background: linear-gradient(180deg, rgba(255,200,150,0.35), rgba(120,40,10,0.75));
}

/* ========== PROJECTS PAGE ========== */

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-outer);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    box-shadow: var(--shadow-spatial-item);
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.15s, box-shadow 0.15s;
    min-width: 0;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-spatial-card);
}

.stat-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.stat-card__icon.blue  { background: rgba(255,138,61,0.1); color: var(--accent); }
.stat-card__icon.green { background: rgba(95,214,138,0.1); color: var(--color-success); }
.stat-card__icon.gold  { background: rgba(230,138,0,0.1); color: var(--color-warning); }

.stat-card__label {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 3px;
    white-space: nowrap;
}

.stat-card__value {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

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

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-outer);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-spatial-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s, box-shadow 0.18s;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 28px 70px rgba(0,0,0,0.6), inset 0 1px 1px rgba(255,255,255,0.1);
}

.project-card__stripe {
    height: 3px;
    background: linear-gradient(90deg, #666, #999);
}

.project-card__body {
    padding: 20px;
    flex: 1;
}

.project-card__name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.2px;
    margin-bottom: 3px;
}

.project-card__desc {
    font-size: 12px;
    color: var(--text-tertiary);
    font-family: var(--mono);
}

.project-card__divider {
    height: 1px;
    background: var(--border-outer);
    margin: 14px 0;
}

.project-card__apikey {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-outer);
    border-radius: var(--radius-md);
    padding: 8px 12px;
}

.project-card__apikey code {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-secondary);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-card__foot {
    padding: 14px 20px;
    border-top: 1px solid var(--border-outer);
    background: rgba(0,0,0,0.15);
    display: flex;
    gap: 8px;
    align-items: center;
}

@media (max-width: 640px) {
    .stats-row { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
}
