/* cirQnA — cirqna.co.uk design system */

:root {
    --bg: #0A0B10;
    --bg-elevated: #12141c;
    --bg-card: #181b26;
    --text: #FFFFFF;
    --muted: #888C99;
    --q: #FF007F;
    --a: #00E5FF;
    --success: #00E676;
    --error: #FF5252;
    --radius: 16px;
    --nav-h: 64px;
    --top-h: 56px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    font-family: 'Inter', 'Segoe UI', Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    min-height: 100%;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--a); text-decoration: none; }
img { max-width: 100%; display: block; }

.top-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--top-h);
    padding: 0 16px;
    background: rgba(10, 11, 16, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.brand-logo { height: 36px; width: auto; }

.top-bar-meta {
    display: flex;
    gap: 8px;
    align-items: center;
}

.credit-pill, .level-pill {
    font-size: 13px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
}

.credit-pill { color: var(--a); }
.credit-icon { font-size: 10px; margin-right: 4px; }
.level-pill { color: var(--muted); }

.streak-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 0, 127, 0.12);
    border: 1px solid rgba(255, 0, 127, 0.35);
    color: var(--q);
    text-decoration: none;
}

.streak-pill--risk {
    animation: streak-pulse 1.4s ease-in-out infinite;
    border-color: var(--q);
}

.streak-pill__flame { font-size: 14px; line-height: 1; }

@keyframes streak-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 0, 127, 0.35); }
    50% { box-shadow: 0 0 0 6px rgba(255, 0, 127, 0); }
}

.page {
    min-height: calc(100dvh - var(--top-h));
    padding: 16px;
}

.page.has-nav {
    padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + 32px);
}

.page--auth {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100dvh - var(--top-h));
}

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: calc(var(--nav-h) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: rgba(10, 11, 16, 0.96);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bottom-nav__item.is-active { color: var(--text); }
.bottom-nav__item.is-active .bottom-nav__icon { color: var(--q); }

.bottom-nav__icon {
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

.site-footer {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    font-size: 11px;
    color: var(--muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 999px;
    border: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.12s ease, opacity 0.12s ease;
}

.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn--block { width: 100%; }
.btn--primary { background: linear-gradient(135deg, var(--q), #c4006a); color: #fff; }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,0.12); }

/* Auth */
.auth-hero {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.auth-hero__logo {
    margin: 0 auto 24px;
    border-radius: var(--radius);
}

.auth-hero__tagline {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 24px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-switch {
    margin: 16px 0 0;
    font-size: 14px;
    color: var(--muted);
}

.auth-switch a {
    color: var(--a);
    font-weight: 600;
    text-decoration: none;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

.field input {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: var(--bg-card);
    color: var(--text);
    font-size: 16px;
    font-family: inherit;
}

.auth-note { font-size: 12px; color: var(--muted); margin-top: 20px; }

.flash {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 16px;
}

.flash--error { background: rgba(255,82,82,0.15); color: var(--error); }

.section-head h1 {
    font-size: 28px;
    font-weight: 900;
    margin: 0 0 8px;
}

.section-head p {
    color: var(--muted);
    margin: 0 0 24px;
    line-height: 1.5;
}

.empty-state {
    text-align: center;
    padding: 48px 16px;
    color: var(--muted);
}

.empty-state .btn { margin-top: 16px; }

/* Daily — TikTok scroll snap */
.daily-reset-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px 0;
    font-size: 0.75rem;
    color: var(--muted);
    text-align: center;
}

.daily-reset-bar strong {
    color: var(--text);
    font-weight: 600;
}

.daily-reset-bar__timer {
    color: var(--a);
}

.daily-reset-countdown {
    font-size: 0.875rem;
    color: var(--a);
    margin: 0 0 8px;
}

.daily-shell {
    margin: -16px;
    height: calc(100dvh - var(--top-h) - var(--nav-h) - var(--safe-bottom));
}

.daily-track {
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.daily-slide {
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    position: relative;
}

.daily-slide--sponsored::before {
    content: 'Sponsored · +1 credit';
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--a);
    background: rgba(0,229,255,0.12);
    padding: 6px 12px;
    border-radius: 999px;
}

.daily-q {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: clamp(22px, 5vw, 32px);
    font-weight: 800;
    line-height: 1.25;
    padding: 0 8px;
}

.daily-q .q-mark { color: var(--q); }

.daily-theme {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 16px;
}

.friend-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-bottom: 24px;
}

.friend-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    border: none;
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text);
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, transform 0.12s;
}

.friend-btn:active { transform: scale(0.95); background: rgba(255,0,127,0.15); }

.friend-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--q), var(--a));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 22px;
}

.friend-btn.is-bot .friend-avatar { opacity: 0.7; }

.friend-btn.is-fav {
    border-color: rgba(255, 0, 127, 0.45);
}

.friend-btn.is-fav .friend-name::after {
    content: ' ★';
    color: var(--q);
    font-size: 10px;
}

.friend-name {
    font-size: 12px;
    font-weight: 600;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.daily-empty {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    text-align: center;
    gap: 12px;
}

.daily-progress {
    position: fixed;
    top: calc(var(--top-h) + 8px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 50;
}

.daily-progress--split {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(10, 11, 16, 0.92);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    max-width: min(100vw - 24px, 320px);
}

.daily-progress__row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.daily-progress__label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    min-width: 72px;
}

.daily-progress__dots {
    display: flex;
    gap: 6px;
    flex: 1;
}

.daily-progress__row--community .daily-dot.is-done { background: var(--a); }
.daily-progress__row--community .daily-dot.is-current { background: var(--q); }

.daily-slide--community .daily-theme {
    color: var(--a);
}

.daily-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: background 0.2s, transform 0.2s;
}

.daily-dot.is-done { background: var(--q); }
.daily-dot.is-current { background: var(--a); transform: scale(1.3); }

.daily-slide.is-submitting { opacity: 0.5; pointer-events: none; }

/* Feed — Curiosity Queue */
.feed-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feed-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.4s ease;
}

.feed-card.is-revealed {
    border-color: rgba(0,229,255,0.3);
}

.feed-card.is-flipping {
    animation: flipReveal 0.5s ease;
}

@keyframes flipReveal {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(90deg); }
    100% { transform: rotateY(0deg); }
}

.feed-theme {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--a);
    margin-bottom: 8px;
}

.feed-q {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 16px;
}

.feed-sender {
    font-size: 15px;
    color: var(--muted);
    filter: blur(6px);
    user-select: none;
    transition: filter 0.4s ease;
}

.feed-card.is-revealed .feed-sender {
    filter: none;
    color: var(--q);
    font-weight: 700;
}

.feed-reveal-btn {
    width: 100%;
    margin-top: 12px;
}

/* Vote — Tinder cards */
.vote-stage {
    position: relative;
    height: calc(100dvh - var(--top-h) - var(--nav-h) - 160px);
    max-height: 520px;
}

.vote-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.vote-card {
    position: absolute;
    inset: 0;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 28px 24px;
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    touch-action: none;
    user-select: none;
    cursor: grab;
    will-change: transform;
    transition: box-shadow 0.2s;
}

.vote-card.is-dragging { cursor: grabbing; }

.vote-card__theme {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 16px;
}

.vote-card__text {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
}

.vote-card__stamp {
    position: absolute;
    top: 24px;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0;
    border: 4px solid;
    padding: 4px 12px;
    border-radius: 8px;
    transition: opacity 0.1s;
}

.vote-card__stamp--approve { right: 24px; color: var(--success); border-color: var(--success); }
.vote-card__stamp--reject { left: 24px; color: var(--error); border-color: var(--error); }

.vote-hints {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    font-size: 13px;
    font-weight: 600;
}

.vote-hint--reject { color: var(--error); }
.vote-hint--approve { color: var(--success); }
.vote-counter { color: var(--muted); }

.vote-submit-bar {
    margin-bottom: 20px;
}

.vote-submit__hint {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 16px;
    line-height: 1.45;
}

.vote-submit-form .field { margin-bottom: 12px; }

.vote-submit__status {
    font-size: 12px;
    color: var(--muted);
    margin: 10px 0 0;
    text-align: center;
}

.vote-my-submissions-wrap {
    margin-bottom: 20px;
    padding: 12px 16px;
}

.vote-my-submissions-wrap summary {
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    color: var(--muted);
}

.modal {
    border: none;
    padding: 0;
    max-width: min(100vw - 24px, 400px);
    width: 100%;
    background: transparent;
    color: var(--text);
}

.modal::backdrop {
    background: rgba(0, 0, 0, 0.72);
}

.modal__panel {
    margin: 0;
    padding: 24px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal__title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 8px;
}

.modal__actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 8px;
}

.modal__actions .btn--primary {
    flex: 1;
}

.vote-my-submissions {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    font-size: 13px;
}

.vote-my-submissions li {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.vote-my-submissions__theme { font-weight: 700; color: var(--a); }
.vote-my-submissions__text { flex: 1 1 100%; color: var(--muted); }

.vote-card__progress {
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    margin-top: 20px;
    overflow: hidden;
}

.vote-card__progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--q), var(--a));
    border-radius: 2px;
}

.vote-card__meta {
    font-size: 12px;
    color: var(--muted);
    margin-top: 8px;
}

.vote-card__flag {
    align-self: flex-start;
    margin-top: 12px;
}

.badge--pending { color: var(--a); }
.badge--active { color: var(--success); }
.badge--rejected, .badge--hidden { color: var(--error); }
.badge--warn { color: #ffb020; }

.daily-slide__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.daily-slide__head .daily-theme { margin-bottom: 0; }

.daily-flag {
    flex-shrink: 0;
    font-size: 12px;
    padding: 4px 10px;
    opacity: 0.7;
}

.credits-section-title {
    font-size: 15px;
    font-weight: 800;
    margin: 28px 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.earnings-item--reward .earnings-item__amount--pack {
    color: var(--a);
    font-weight: 800;
}

.earnings-item__time {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

.submission-history {
    list-style: none;
    margin: 0;
    padding: 0;
}

.submission-history__item {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 14px;
}

.admin-flag-list { font-size: 12px; margin: 8px 0 0; }

/* Profile */
.profile-card {
    text-align: center;
    padding: 24px 0;
}

.avatar-ring {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--q), var(--a));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 900;
    overflow: hidden;
    position: relative;
}

.avatar-ring__inner,
.circle-friend__avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: inherit;
    font-weight: inherit;
}

.avatar--has-image {
    background: transparent;
}

.avatar--has-image img,
.friend-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.friend-avatar.avatar--has-image {
    background: var(--bg-card);
    overflow: hidden;
}

.avatar-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.avatar-ring--editable {
    cursor: pointer;
    margin-bottom: 16px;
}

.avatar-ring--editable.is-uploading {
    opacity: 0.55;
    pointer-events: none;
}

.avatar-upload__badge {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    pointer-events: none;
}

.avatar-upload__icon {
    display: block;
}

.avatar-remove {
    margin-top: 4px;
}

.profile-card h1 { margin: 0; font-size: 28px; }
.profile-meta { color: var(--muted); margin: 8px 0 0; }

.streak-board {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.streak-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 14px;
    border: 1px solid rgba(255, 0, 127, 0.15);
}

.streak-card--risk {
    border-color: var(--q);
    animation: streak-pulse 1.4s ease-in-out infinite;
}

.streak-card__head {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
}

.streak-card__flame { font-size: 18px; line-height: 1; }

.streak-card__count {
    font-size: 26px;
    font-weight: 900;
    color: var(--q);
    line-height: 1;
}

.streak-card__best {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
}

.streak-card__label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.streak-card__hint {
    margin: 6px 0 0;
    font-size: 11px;
    line-height: 1.35;
    color: var(--muted);
}

.streak-card__risk {
    margin: 8px 0 0;
    font-size: 11px;
    font-weight: 700;
    color: var(--q);
}

.streak-alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    margin-bottom: 16px;
    border-radius: var(--radius);
    background: rgba(255, 0, 127, 0.1);
    border: 1px solid rgba(255, 0, 127, 0.35);
    animation: streak-pulse 1.4s ease-in-out infinite;
}

.streak-alert__flame { font-size: 22px; line-height: 1; }

.streak-alert strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.streak-alert p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
}

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

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.06);
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 900;
    color: var(--a);
}

.stat-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.share-box {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.06);
}

.share-box label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 8px;
}

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

.share-input {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: var(--bg);
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
}

.share-hint { font-size: 12px; color: var(--muted); margin: 8px 0 0; }

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    background: var(--bg-card);
}

.tab.is-active { background: var(--q); color: #fff; }

.history-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid rgba(255,255,255,0.06);
}

.history-theme {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--a);
}

.history-q { font-weight: 700; margin: 8px 0; }
.history-who { color: var(--muted); font-size: 14px; margin: 0; }
.history-item time { font-size: 12px; color: var(--muted); }

.credits-summary {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    text-align: center;
}

.credits-total__label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 4px;
}

.credits-total__value {
    font-size: 40px;
    font-weight: 900;
    color: var(--a);
    line-height: 1.1;
}

.credits-balance-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 12px;
    font-size: 14px;
    color: var(--muted);
}

.credits-balance-row strong { color: var(--text); }

.credits-spent { font-size: 12px; }

.earnings-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.earnings-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.06);
}

.earnings-item__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.earnings-item__label {
    font-weight: 700;
    font-size: 15px;
}

.earnings-item__amount {
    font-size: 20px;
    font-weight: 900;
    color: var(--a);
}

.earnings-item__meta {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--muted);
}

.credits-footnote {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
}

.profile-actions { display: flex; flex-direction: column; gap: 8px; }

/* Circle */
.circle-intro {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
    margin: 0 0 20px;
}

.circle-intro a { color: var(--a); font-weight: 700; }

.circle-section-title {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.circle-friend-list,
.circle-group-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.circle-friend,
.circle-group {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.circle-friend {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
}

.circle-friend__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--q), var(--a));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    flex-shrink: 0;
}

.circle-friend__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.circle-friend__user {
    font-size: 12px;
    color: var(--muted);
}

.circle-nickname,
.circle-group__name {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
}

.circle-fav-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.circle-fav-btn.is-on {
    background: rgba(255, 0, 127, 0.2);
    color: var(--q);
}

.circle-groups-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.circle-groups-head .circle-section-title { margin: 0; }

.circle-groups-empty {
    font-size: 14px;
    color: var(--muted);
    margin: 0 0 16px;
}

.circle-group { padding: 14px; }

.circle-group__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.circle-group__name { flex: 1; }

.circle-group-delete {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 80, 80, 0.15);
    color: var(--error);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.circle-group__members {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.circle-member-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.circle-member-chip input { accent-color: var(--q); }

.theme-pool {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.theme-pool__label {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.theme-pool-form {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.theme-pool-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--bg);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.theme-pool-chip input { accent-color: var(--a); }

.theme-pool__hint {
    margin: 0;
    font-size: 11px;
    color: var(--muted);
    line-height: 1.4;
}

.theme-pool__hint a { color: var(--a); }

/* Themes */
.theme-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.theme-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px 16px;
    border: 1px solid rgba(255,255,255,0.06);
}

.theme-card--premium {
    border-color: rgba(255,0,127,0.25);
}

.theme-card h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.theme-price {
    color: var(--muted);
    font-size: 14px;
    margin: 0 0 12px;
}

.theme-card .btn { margin-top: 4px; }

/* Changelog */
.version-block {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.06);
}

.version-block h2 {
    margin: 0 0 4px;
    font-size: 20px;
}

.codename {
    font-size: 14px;
    font-weight: 600;
    color: var(--q);
    margin-left: 8px;
}

.version-block time {
    font-size: 12px;
    color: var(--muted);
}

.changelog-list {
    margin: 16px 0 0;
    padding-left: 20px;
    line-height: 1.6;
    color: var(--muted);
}

.changelog-list--admin { list-style: none; padding-left: 0; }
.changelog-list--admin li { margin-bottom: 12px; }

.badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255,255,255,0.08);
    color: var(--a);
    margin-right: 8px;
}

.badge--draft { color: var(--error); }

.toast {
    position: fixed;
    bottom: calc(var(--nav-h) + var(--safe-bottom) + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-elevated);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
    z-index: 200;
    pointer-events: none;
}

.toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Admin */
.admin-body { background: var(--bg); }

.admin-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 11, 16, 0.95);
    backdrop-filter: blur(12px);
}

.admin-top__brand {
    font-weight: 900;
    font-size: 16px;
    color: var(--text);
}

.admin-top__q { color: var(--q); }

.admin-top__user {
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 49px;
    z-index: 99;
    background: var(--bg);
}

.admin-nav__link {
    font-size: 12px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--muted);
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
}

.admin-nav__link.is-active {
    color: var(--text);
    border-color: rgba(255,0,127,0.35);
    background: rgba(255,0,127,0.1);
}

.admin-nav__link--exit { margin-left: auto; }

.admin-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 16px;
    padding-bottom: 48px;
}

.admin-stat-grid { margin-bottom: 20px; }

.admin-panel {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.06);
}

.admin-panel h2 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
}

.admin-panel--muted { border-style: dashed; }

.admin-kv-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.admin-kv-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 14px;
}

.admin-kv-list li:last-child { border-bottom: none; }

.admin-kv-list strong { font-weight: 700; }
.admin-warn { color: var(--q); }

.admin-hint {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

.admin-hint code {
    font-size: 12px;
    background: rgba(255,255,255,0.06);
    padding: 2px 6px;
    border-radius: 4px;
}

.admin-search {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.admin-search input {
    flex: 1;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: var(--bg-card);
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
}

.admin-table-wrap {
    overflow-x: auto;
    margin-bottom: 16px;
}

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

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    vertical-align: top;
}

.admin-table th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    font-weight: 700;
}

.admin-muted { color: var(--muted); font-size: 13px; }
.admin-time { font-size: 12px; color: var(--muted); }

.admin-inline-form {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.admin-input-num {
    width: 72px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
}

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

.badge--admin { color: var(--q); }
.badge--sponsored { color: var(--a); }
.badge--premium { color: var(--q); }

.admin-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.admin-tabs { margin-bottom: 16px; }

.admin-form .field select,
.admin-form .field textarea {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    width: 100%;
}

.field--row {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.admin-question-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-question-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid rgba(255,255,255,0.06);
}

.admin-question-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 8px;
}

.admin-question-card__text {
    margin: 0 0 12px;
    line-height: 1.5;
    font-size: 15px;
}

.admin-question-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-body .toast {
    bottom: 24px;
}

@media (min-width: 768px) {
    .page { max-width: 480px; margin: 0 auto; }
    .daily-shell { margin: -16px auto; max-width: 480px; }
    .bottom-nav { max-width: 480px; left: 50%; transform: translateX(-50%); border-radius: 20px 20px 0 0; }
}
