/* Gluoon Career — базові стилі (палітра з макетів Penpot «Gluoon career»). */
:root {
    --crr-bg-canvas: #07100f;
    --crr-bg-page: #0b1514;
    --crr-surface-card: #101b1a;
    --crr-surface-raised: #152322;
    --crr-surface-inset: #1a2b29;
    --crr-border-subtle: #1e312f;
    --crr-border-strong: #2a403d;
    --crr-text-primary: #f0f7f5;
    --crr-text-secondary: #8fa6a2;
    --crr-text-muted: #5c7370;
    --crr-accent-primary: #0acbbf;
    --crr-accent-bright: #0fe7d3;
    --crr-accent-green: #229153;
    --crr-positive: #3bd98a;
    --crr-negative: #f26d6d;
    --crr-warn: #e5a94e;
}

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

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0e2b26 0%, #07100f 50%, #0b2e24 100%);
    min-height: 100vh;
    color: var(--crr-text-primary);
}

.crr-canvas { padding: 40px 60px; min-height: 100vh; }
.crr-page {
    max-width: 1440px; margin: 0 auto;
    background: var(--crr-bg-page);
    border: 1px solid var(--crr-border-subtle);
    border-radius: 24px;
    min-height: calc(100vh - 80px);
}

/* Топнав */
.crr-topnav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 26px 28px; gap: 12px;
    flex-wrap: nowrap;
}
.crr-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.crr-brand__logo { width: 44px; height: 28px; }
.crr-brand__text { font-size: 19px; font-weight: 800; letter-spacing: .04em; color: var(--crr-text-primary); }
.crr-menu { display: flex; gap: 4px; align-items: center; min-width: 0; flex-wrap: nowrap; overflow: hidden; }
/* тісні екрани: ховаємо другорядні підписи, щоб меню не наповзало на юзер-зону */
@media (max-width: 1600px) {
    .crr-profile__meta { display: none; }
    .crr-profile { padding: 6px; }
    .crr-mod-label { display: none; }
    .crr-gluoon-trigger__text { display: none; }
}
.crr-menu__item {
    padding: 9px 14px; border-radius: 20px; text-decoration: none;
    font-size: 13px; font-weight: 500; color: var(--crr-text-secondary);
    white-space: nowrap; flex: none;
}
.crr-menu__item:hover { color: var(--crr-text-primary); }
.crr-menu__item--active {
    background: var(--crr-surface-raised);
    border: 1px solid var(--crr-border-subtle);
    color: var(--crr-text-primary); font-weight: 600;
}
.crr-userzone { display: flex; align-items: center; gap: 10px; flex: none; }

.crr-gluoon-trigger {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; border: 0; cursor: pointer; color: #fff;
    flex: none; white-space: nowrap;
}
.crr-gluoon-trigger__text { font-size: 17px; font-weight: 600; letter-spacing: .02em; }
.crr-gluoon-trigger__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.crr-gluoon-trigger__grid i {
    width: 11px; height: 11px; border-radius: 2px;
    background: #8997dc; opacity: .35;
}

.crr-profile {
    display: flex; align-items: center; gap: 10px; text-decoration: none;
    background: var(--crr-surface-raised); border-radius: 24px; padding: 6px 14px 6px 6px;
}
.crr-profile__avatar {
    width: 32px; height: 32px; border-radius: 16px; background: var(--crr-accent-green);
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 13px;
}
.crr-profile__meta { display: flex; flex-direction: column; }
.crr-profile__name { font-size: 13px; font-weight: 600; color: var(--crr-text-primary); white-space: nowrap; }
.crr-profile__role { font-size: 11px; color: var(--crr-text-muted); white-space: nowrap; }
.crr-profile { flex: none; }
.crr-brand { flex: none; }

/* App selector (стиль gvp-app-selector, компактна адаптація) */
.crr-app-selector-panel {
    position: absolute; right: 130px; top: 120px; z-index: 1300; width: 300px;
    padding: 18px 21px; border: 1px solid #8900f2; border-radius: 15px;
    backdrop-filter: blur(20px);
    background-image:
        linear-gradient(.254deg, rgba(156, 4, 194, .2) 4.89%, rgba(102, 102, 102, 0) 78.1%),
        linear-gradient(219deg, rgba(194, 26, 255, .2) 14.75%, rgba(102, 102, 102, 0) 59.81%),
        linear-gradient(90deg, rgba(44, 20, 55, .4), rgba(44, 20, 55, .4));
    box-shadow: 0 12px 32px rgba(15, 7, 22, .4);
}
.crr-app-selector-panel__title { font-size: 13px; font-weight: 700; color: var(--crr-text-secondary); margin-bottom: 12px; }
.crr-app-selector-panel__apps { display: grid; grid-template-columns: repeat(3, 80px); gap: 12px 10px; }
.crr-app { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; }
.crr-app__tile {
    width: 80px; height: 80px; border-radius: 19px; display: inline-flex;
    align-items: center; justify-content: center;
    background: rgba(13, 35, 48, .15); border: 1.5px solid rgba(186, 186, 186, .35);
}
.crr-app--current .crr-app__tile { border-color: var(--crr-accent-bright); }
.crr-app__tile img { max-width: 46px; max-height: 46px; }
.crr-app__label { font-size: 12px; color: #fff; }

/* Контент і картки */
.crr-content { padding: 20px 40px 48px; position: relative; }
.crr-card {
    background: var(--crr-surface-card);
    border: 1px solid var(--crr-border-subtle);
    border-radius: 24px; padding: 28px 32px;
}
.crr-card__title { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.crr-grid { display: grid; gap: 24px; }

.crr-positive { color: var(--crr-positive); }
.crr-negative { color: var(--crr-negative); }
.crr-warn { color: var(--crr-warn); }
.crr-muted { color: var(--crr-text-muted); }

.crr-btn {
    display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
    border: 0; border-radius: 12px; padding: 11px 20px;
    background: var(--crr-accent-primary); color: #06302b;
    font-size: 14px; font-weight: 700;
}
.crr-btn--ghost {
    background: transparent; color: var(--crr-text-secondary);
    border: 1px solid var(--crr-border-strong);
}

/* Спойлер сум (політика кабінету) */
.crr-spoiler {
    display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
    background: var(--crr-surface-inset); border-radius: 999px; padding: 6px 14px;
    border: 0;
}
.crr-spoiler i { width: 5px; height: 5px; border-radius: 50%; background: var(--crr-text-muted); opacity: .7; }
.crr-spoiler--revealed { background: transparent; padding: 0; }

/* 2FA-гейт */
.crr-2fa-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(5, 11, 10, .82); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
}
.crr-2fa-card {
    width: 440px; background: var(--crr-surface-card);
    border: 1px solid var(--crr-border-strong); border-radius: 28px;
    padding: 40px 44px; text-align: center;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
}
.crr-2fa-card h2 { font-size: 20px; margin: 14px 0 6px; }
.crr-2fa-card p { font-size: 13px; color: var(--crr-text-secondary); margin-bottom: 18px; }
.crr-2fa-code {
    width: 100%; padding: 14px; margin-bottom: 14px;
    background: var(--crr-bg-page); color: var(--crr-text-primary);
    border: 1.5px solid var(--crr-border-strong); border-radius: 12px;
    font-size: 24px; font-weight: 800; text-align: center; letter-spacing: .5em;
}
.crr-2fa-code:focus { outline: none; border-color: var(--crr-accent-primary); }
.crr-2fa-trust { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--crr-text-secondary); margin: 4px 0 16px; }
.crr-2fa-error { color: var(--crr-negative); font-size: 12px; min-height: 16px; margin-bottom: 8px; }
.crr-2fa-note { font-size: 11px; color: var(--crr-text-muted); margin-top: 14px; }

/* Дашборд за макетом */
.crr-stat { display: flex; flex-direction: column; gap: 14px; }
.crr-stat__head { display: flex; align-items: center; gap: 12px; }
.crr-stat__icon {
    width: 44px; height: 44px; border-radius: 22px;
    background: var(--crr-surface-inset); border: 1px solid var(--crr-border-subtle);
    display: inline-flex; align-items: center; justify-content: center; font-size: 16px;
}
.crr-stat__title { font-size: 16px; font-weight: 600; flex: 1; }
.crr-stat__row { display: flex; align-items: center; justify-content: space-between; }
.crr-stat__value { font-size: 34px; font-weight: 800; }
.crr-chip { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.crr-chip--pos { color: var(--crr-positive); }
.crr-chip--neg { color: var(--crr-negative); }
.crr-bar { display: flex; align-items: center; gap: 6px; height: 30px; }
.crr-bar__fill { height: 30px; border-radius: 15px; background: linear-gradient(90deg, var(--crr-accent-green), var(--crr-accent-bright)); }
.crr-bar__fill--neg { background: linear-gradient(90deg, #7a2e35, var(--crr-negative)); }
.crr-bar__ticks { display: flex; gap: 4px; align-items: center; }
.crr-bar__ticks i { width: 3px; height: 18px; border-radius: 1.5px; background: var(--crr-border-strong); }

.crr-progress-card {
    border-radius: 28px; padding: 26px 28px; color: #fff;
    background: linear-gradient(135deg, rgba(10, 203, 191, .85), #0d3a34 55%, rgba(34, 145, 83, .9));
    text-align: center;
}
.crr-progress-card__rank { font-size: 40px; font-weight: 800; margin: 18px 0 4px; }
.crr-progress-card__sub { font-size: 14px; color: #d6f5ee; margin-bottom: 16px; }
.crr-progress-card__track { height: 9px; border-radius: 5px; background: rgba(11, 42, 38, .7); overflow: hidden; margin: 0 20px 8px; }
.crr-progress-card__fill { height: 9px; border-radius: 5px; background: #fff; }

.crr-tx { display: flex; align-items: center; gap: 12px; padding: 13px 16px;
    border: 1px solid var(--crr-border-subtle); border-radius: 16px;
    background: var(--crr-surface-card); margin-bottom: 10px; }
.crr-tx__avatar { width: 40px; height: 40px; border-radius: 20px; flex: none;
    background: var(--crr-surface-inset); color: var(--crr-accent-bright);
    display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.crr-tx__meta { flex: 1; min-width: 0; }
.crr-tx__name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crr-tx__sub { font-size: 12px; color: var(--crr-text-secondary); }
.crr-tx__amount { font-size: 15px; font-weight: 700; }

.crr-chart-tooltip {
    position: absolute; background: #152322f5; border: 1px solid var(--crr-border-strong);
    border-radius: 16px; padding: 14px 18px; box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
    pointer-events: none; min-width: 150px;
}
