/* ============================================================
   Palette and typography — green scheme, inspired by the colors of
   the mascot bird (see app/static/img/bird-logo.svg): the wing's
   darker green as the primary color (buttons/links), the body's
   mint green as the secondary tone in gradients/headings.
   ============================================================ */
:root {
    --bg: #f5faf8;
    --ink: #1c1f2e;
    --muted: #4c5f57;
    --accent: #12a488;
    --accent-dark: #0c7d68;
    --accent-light: #dff6ee;
    --accent2: #5fbf93;
    --accent2-light: #e9fbf2;
    --border: #dcece5;
    --card-bg: #ffffff;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
}

h1, h2, h3 {
    letter-spacing: -0.01em;
}

/* "Kicker" — small small-caps label above a heading, to give an
   editorial/restrained touch instead of everything shouting the same. */
.kicker {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent2);
    margin-bottom: 6px;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 24px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(28, 31, 46, 0.03);
}

.admin-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 24px;
    background: var(--accent-dark);
}

.admin-subnav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 6px;
}

.admin-subnav a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.admin-subnav a.active {
    background: #fff;
    color: var(--accent-dark);
}

.brand {
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.site-header nav a {
    color: var(--ink);
    text-decoration: none;
    padding: 4px 2px;
}

.site-header nav a:hover { color: var(--accent); }

/* "|" separator between the top menu links — requested so things don't
   run together when there are lots of items (Start, Jobs, Mein Profil,
   Nachrichten, Admin, Abmelden...). */
.nav-sep {
    color: var(--border);
    font-size: 0.9rem;
}

/* ☰ button that opens the sidebar on mobile — only shows up below the
   breakpoint (see the @media near the end of this file); on desktop the
   sidebar is always visible, so the button never enters the layout. */
.sidebar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card-bg);
    cursor: pointer;
}

.sidebar-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: var(--ink);
    border-radius: 2px;
}

.whoami {
    color: var(--muted);
    font-size: 0.9rem;
}

.lang-switch-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 8px;
    padding-left: 12px;
    border-left: 1px solid var(--border);
    font-size: 0.85rem;
}

.lang-switch-dropdown summary {
    cursor: pointer;
    color: var(--muted);
    list-style: none;
    padding: 4px 8px;
    border-radius: 6px;
    user-select: none;
}
.lang-switch-dropdown summary::-webkit-details-marker { display: none; }
.lang-switch-dropdown summary::after { content: " ▾"; font-size: 0.7em; }
.lang-switch-dropdown summary:hover { background: var(--accent2-light); color: var(--ink); }

.lang-switch-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(28, 31, 46, 0.14);
    display: flex;
    flex-direction: column;
    min-width: 120px;
    z-index: 40;
    overflow: hidden;
}

.lang-switch-menu a {
    padding: 8px 12px;
    color: var(--ink);
    white-space: nowrap;
}

.lang-switch-menu a:hover { background: var(--accent2-light); }

.lang-switch-menu a.active {
    color: var(--accent);
    font-weight: bold;
    background: var(--accent-light);
}

/* ------------------------------------------------------------
   Layout with sidebar (logged in): .layout-shell is the
   [sidebar | content] row. On desktop the sidebar stays fixed (sticky)
   on the left; on mobile it becomes a panel that slides over the top
   (see .side-nav-open and the @media further down) — the HTML
   structure is the same in both cases, only the CSS changes.
   ------------------------------------------------------------ */
/* Requested: the sidebar always hugs the true left edge of the
   screen, instead of floating wherever a centered content column
   happens to land on a wide viewport. The old layout capped
   .layout-shell itself at max-width:1180px and centered THAT
   (sidebar included), so on any screen wider than 1180px the sidebar
   sat in the middle of a strip of empty space instead of at the
   window's edge. Fix: .layout-shell spans the FULL window width with
   no cap of its own, so its first flex item (.side-nav, sticky) is
   flush against x=0 at every width; only .container (the content)
   keeps a max-width and centers itself within whatever space is left
   to the sidebar's right. */
.layout-shell {
    display: flex;
    align-items: flex-start;
}

.side-nav {
    position: sticky;
    top: 0;
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 16px 0;
    background: var(--accent-light);
    border-right: 1px solid var(--border);
}

.side-nav-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Our own icon set (app/static/img/icons.svg) instead of emoji —
   currentColor means every icon just inherits whatever text color
   it's placed in (sidebar row, banner, toolbar button...), so it
   never needs its own color rule at each call site. */
.icon {
    width: 1.05em;
    height: 1.05em;
    vertical-align: -0.18em;
    flex-shrink: 0;
}
.side-nav-icon { width: 1.15em; height: 1.15em; }

/* Alternating shades of green, one light and one stronger, as requested
   — reuses the variables already defined in :root instead of new
   standalone colors. */
.side-nav-tone-1 { background: var(--accent2-light); }
.side-nav-tone-2 { background: var(--accent-light); }

.side-nav-row:hover { background: var(--accent2); color: #fff; }

.side-nav-row.active {
    background: var(--accent);
    color: #fff;
}

/* Red Zone — set far enough apart from the rest of the menu (one
   row's worth of empty space) that it can't be clicked by accident
   while aiming for Posts/Analytics right above it, and colored red
   itself (not just its text) so it visually reads as "sensitive"
   before you even read the label. */
.side-nav-row-danger {
    margin-top: 48px;
    background: #d9534f;
    color: #fff;
}
.side-nav-row-danger:hover { background: #c0392b; color: #fff; }
.side-nav-row-danger.active { background: #a93226; color: #fff; }

.sidebar-backdrop { display: none; }

.container {
    max-width: 900px;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 auto;
    padding: 24px;
}

.subtitle { color: var(--muted); margin-top: -8px; }

.site-footer {
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    padding: 24px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
    padding: 16px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.filters input, .filters select {
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
}

.filters button {
    padding: 8px 16px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.filters button:hover { background: var(--accent-dark); }

.clear-link {
    align-self: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.listing-grid {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.listing-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    transition: box-shadow 0.15s, transform 0.15s;
}

.listing-card:hover {
    box-shadow: 0 8px 20px rgba(91, 95, 239, 0.10);
    transform: translateY(-2px);
}

/* --- Buscar pessoas (people search) cards --------------------------------
   Deliberately different from .listing-card: centered, an
   avatar-first layout (gradient initial when there's no photo), only
   the first name (never the full name — same privacy stance as the
   nav header), voice type as a subtitle, and up to 3 small badge
   "dots" instead of full pills, to keep the card compact. */
.person-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 16px;
    text-align: center;
    transition: box-shadow 0.15s, transform 0.15s;
}
.person-card:hover { box-shadow: 0 8px 20px rgba(91, 95, 239, 0.10); transform: translateY(-2px); }
.person-card a { text-decoration: none; color: inherit; display: block; }

.person-card-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 10px;
    object-fit: cover;
    display: block;
}
.person-card-avatar.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.person-card-name { font-weight: 700; font-size: 1rem; margin: 0 0 2px; }
.person-card-subtitle { color: var(--muted); font-size: 0.82rem; margin: 0 0 10px; }

.person-card-badges {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
    min-height: 26px;
}

.badge-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--badge-color, var(--accent2));
    box-shadow: 0 2px 6px rgba(28, 31, 46, 0.15);
}
.badge-dot .icon { color: #fff; width: 14px; height: 14px; }

.person-card-cta {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
}

.locked-card { position: relative; }

.locked-hint {
    margin: 8px 0 0;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
}

.listing-card a { text-decoration: none; color: inherit; display: block; }

.listing-card h3 { margin: 8px 0 4px; }

.meta, .author { color: var(--muted); font-size: 0.85rem; }

.excerpt { font-size: 0.95rem; }

.badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent-light);
    color: var(--accent-dark);
}

.empty-state { color: var(--muted); font-style: italic; }

.stacked-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 560px;
}

.stacked-form.narrow { max-width: 400px; }

.stacked-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
    color: var(--muted);
}

.stacked-form input, .stacked-form select, .stacked-form textarea {
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink);
}

.stacked-form fieldset {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
}

.stacked-form button {
    padding: 12px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
}

.stacked-form button.danger, button.danger {
    background: #a33;
}

.contact-box {
    margin-top: 20px;
    padding: 16px;
    background: var(--accent-light);
    border-radius: 8px;
}

.back-link {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--muted);
    text-decoration: none;
}

.error {
    background: #fdeaea;
    color: #a33;
    padding: 10px 14px;
    border-radius: 6px;
}

.success {
    background: #e8f3e6;
    color: #2f6b2a;
    padding: 10px 14px;
    border-radius: 6px;
}

/* Standalone "tip" callout — e.g. the explainer at the top of
   Admin > Posts. Deliberately more visible than .field-help below:
   a filled, bordered card instead of small muted text, so it reads
   as a note worth pausing on rather than fine print. */
.admin-tip-banner {
    margin: 4px 0 20px;
    padding: 12px 16px;
    background: var(--accent2-light);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--ink);
    line-height: 1.5;
}

.field-help {
    margin-top: -8px;
    font-size: 0.82rem;
    color: var(--muted);
}

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

.hashtag {
    display: inline-block;
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent-light);
    color: var(--accent);
}

.listing-owner-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.button-link {
    display: inline-block;
    padding: 10px 18px;
    background: var(--card-bg);
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
}

.button-link:hover {
    background: var(--accent-light);
}

.button-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-color: transparent;
    color: white;
}

.button-primary:hover {
    background: var(--accent-dark);
    opacity: 0.95;
}

/* Home: hero (not-logged-in visitor) and matches section (logged in) */
.hero {
    background: linear-gradient(135deg, var(--accent-light), var(--accent2-light));
    border-radius: 16px;
    padding: 36px 28px;
    margin-bottom: 28px;
}

.hero h1 { margin-top: 0; }

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.matches-section {
    margin: 20px 0 28px;
}

.highlights-section {
    margin: 20px 0 28px;
}

.locked-box {
    margin-top: 20px;
    padding: 20px;
    background: var(--accent-light);
    border: 1px dashed var(--accent);
    border-radius: 12px;
}

.locked-box h3 { margin-top: 0; }

/* Event status dots */
.event-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 6px;
    vertical-align: middle;
}

.event-dot-upcoming { background: #2f9e44; }
.event-dot-soon { background: #e0a800; }
.event-dot-past { background: #c0392b; }

/* Generic status dot (on/off), e.g. Red Zone's Capitalism Mode toggle */
.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}
.status-dot-on { background: #2f9e44; }
.status-dot-off { background: #c0392b; }

/* Email verification banner */
.verify-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    background: #fff6e0;
    color: #7a5b00;
    padding: 10px 24px;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0dca0;
}

.link-button {
    background: none;
    border: none;
    padding: 0;
    color: var(--accent);
    text-decoration: underline;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}
.link-button:hover { color: var(--accent-dark); }

/* Needs to beat rules like ".stacked-form button"/".filters button"
   (more specific: form class + element type) — otherwise a
   <button class="link-button"> inside ANY form gets the big filled
   button look instead of the discreet link. "form button.link-button"
   (2 classes/types) beats both on purpose, so this rule doesn't need
   to be rewritten every time it shows up in a new form. */
form button.link-button {
    padding: 0;
    background: none;
    color: var(--accent);
    font-size: 0.85rem;
}
form button.link-button:hover { color: var(--accent-dark); }

/* Unread message count badge in nav */
.badge-count {
    display: inline-block;
    min-width: 16px;
    padding: 1px 5px;
    margin-left: 4px;
    border-radius: 999px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    text-align: center;
    line-height: 1.3;
}

/* Audio links list */
.audio-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.audio-links li {
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.audio-links li:last-child { border-bottom: none; }

.audio-links a { color: var(--accent); }

/* Messages */
.message-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.message-tabs a {
    padding: 8px 14px;
    text-decoration: none;
    color: var(--muted);
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
}

.message-tabs a.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: bold;
}

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

.message-row {
    display: block;
    padding: 12px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
}

.message-row:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.06); }

.message-row.unread {
    border-left: 3px solid var(--accent);
    font-weight: bold;
}

.message-row .meta { font-weight: normal; }

.message-row .snippet {
    font-weight: normal;
    color: var(--muted);
    font-size: 0.9rem;
    margin: 4px 0 0;
}

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

.message-list-item-trash {
    position: relative;
}

.message-list-item-trash .message-row {
    padding-right: 130px;
}

.message-restore-form {
    position: absolute;
    top: 12px;
    right: 16px;
}

.message-body-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    white-space: pre-wrap;
    margin: 16px 0;
}

/* --- social links on profile ------------------------------------------- */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.social-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
}

.social-badge:hover { background: var(--accent); color: #fff; }

/* --- star rating ---------------------------------------------- */
.rating-form { margin-top: 8px; }

.rating-summary {
    font-size: 1.2rem;
    font-weight: 600;
}

.ratings-list {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.rating-item {
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.rating-comment {
    color: var(--muted);
    margin: 4px 0 0;
    font-style: italic;
}

/* --- account: gefahrenzone / danger zone ------------------------------------ */
.danger-zone {
    margin-top: 24px;
    padding: 16px;
    border: 1px solid #d9534f;
    border-radius: 8px;
    background: rgba(217, 83, 79, 0.06);
}

.danger-zone h3 { margin-top: 0; color: #d9534f; }

.danger-zone summary {
    cursor: pointer;
    color: #d9534f;
    font-weight: 600;
}

/* --- "message already sent" ------------------------------------------------ */
.already-messaged-note {
    color: var(--muted);
    font-size: 0.9rem;
}

/* --- pagination -------------------------------------------------------- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

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

.pagination-status {
    color: var(--muted);
    font-size: 0.9rem;
}

/* --- filters: "show past" toggle ----------------------------------- */
.show-past-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--muted);
}

.results-count {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 8px 0;
}

/* --- date range filter (Zeitraum) ------------------------------------- */
.filter-date-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--muted);
}

.filter-date-label input[type="date"] {
    padding: 6px 8px;
}

/* --- profile photo (avatar) --------------------------------------------- */
.avatar-preview {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin-bottom: 8px;
    background: var(--card-bg);
    border: 1px solid var(--border);
}

.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--card-bg);
}

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

.nav-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 4px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
}

/* --- profile completeness indicator --------------------------------------- */
.completeness-box {
    margin: 12px 0 20px;
}

.completeness-bar-track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    overflow: hidden;
}

.completeness-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.completeness-label {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 6px 0 0;
}

/* --- favorites -------------------------------------------------------- */
.favorite-star {
    float: right;
}

.listing-favorite-action {
    margin: 12px 0;
}

.favorited {
    color: #e0a800;
}

.my-favorites .listing-card form {
    margin-top: 8px;
}

/* --- footer: impressum / code of conduct links -------------------- */
.footer-links {
    margin-top: 4px;
    font-size: 0.8rem;
}

.footer-links a {
    color: var(--muted);
    text-decoration: underline;
}

.footer-links span {
    margin: 0 6px;
    color: var(--border);
}

/* --- block/report buttons --------------------------------------- */
.button-secondary {
    border-color: var(--muted);
    color: var(--muted);
}

.button-danger {
    border-color: #a33;
    color: #a33;
}

.button-danger:hover {
    background: #fdeaea;
}

.block-user-details, .listing-report-action {
    margin-top: 10px;
}

.block-user-summary {
    cursor: pointer;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.block-user-details form, .listing-report-action form {
    margin-top: 10px;
}

.inline-form {
    display: inline-block;
    margin-top: 10px;
}

/* --- invite a friend / referral ---------------------------------------- */
.referral-box {
    margin: 16px 0;
    padding: 16px;
    background: var(--accent2-light);
    border-radius: 8px;
}

.referral-box h3 { margin-top: 0; }

.referral-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.referral-link-row input {
    flex: 1;
    min-width: 200px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    background: var(--card-bg);
    color: var(--ink);
}

.referral-count {
    margin: 8px 0 0;
    font-size: 0.9rem;
    color: var(--muted);
}

/* --- blocked users (on the profile page) --------------------------- */
.blocked-users-list {
    list-style: none;
    padding: 0;
    margin: 8px 0;
}

.blocked-users-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

/* --- impressum / code of conduct -------------------------------------- */
.legal-block {
    margin: 16px 0;
    padding: 16px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.legal-block h3 { margin-top: 0; }

.conduct-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 20px;
}

.conduct-list li { line-height: 1.5; }

/* --- badges (light gamification) ------------------------------------------ */
.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    background: var(--badge-tint, var(--accent2-light));
    color: var(--badge-color, var(--accent2));
    cursor: default;
}

.badge-pill .icon {
    background: var(--badge-color, var(--accent2));
    color: #fff;
    border-radius: 50%;
    padding: 3px;
    box-sizing: content-box;
}

.badges-box {
    margin: 20px 0;
}

.badge-grid {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

/* Every badge (unlocked or not) is only ever gray + a faint tint of
   its own color while locked — nothing shows what color it'll be
   until it's earned, it's just a hint. Once unlocked, the icon's
   circle fills solidly with that color and the icon itself turns
   white, the same "medal" look used on the search cards.
   --badge-color / --badge-tint come from the .badge-key-* /
   .badge-tier-* rules below (one badge can match both — a tiered one
   like "referral" falls back to its own key color before any medal
   is reached, then the tier rule, being more specific/later, takes
   over once a medal exists). */
.badge-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 14px 10px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.badge-tile-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--badge-tint, var(--border));
}
.badge-tile-icon .icon { color: #b6c0ba; }

.badge-tile:not(.badge-locked) .badge-tile-icon {
    background: var(--badge-color, var(--muted));
    box-shadow: 0 3px 8px rgba(28, 31, 46, 0.18);
}
.badge-tile:not(.badge-locked) .badge-tile-icon .icon { color: #fff; }

.badge-tile.badge-locked { opacity: 0.85; }
.badge-tile.badge-locked .badge-tile-label,
.badge-tile.badge-locked .badge-tile-desc { color: var(--muted); }

.badge-tile-label { font-weight: 600; font-size: 0.85rem; }
.badge-tile-desc { font-size: 0.75rem; color: var(--muted); }

/* Each achievement gets its own color instead of everything reading
   as "VokalBoard green" — keeps the badges shelf feeling varied. */
.badge-key-listing        { --badge-color: #2f7fb0; --badge-tint: #e3f0f8; }
.badge-key-contact        { --badge-color: #c25a83; --badge-tint: #fbe8ef; }
.badge-key-fast_response  { --badge-color: #c2891f; --badge-tint: #fbf1de; }
.badge-key-profile_complete { --badge-color: #7c5cbf; --badge-tint: #efe9fb; }
/* "referral" has no medal yet (fewer than 10 invites) but is already
   unlocked (1+ invites) — gets its own color until a medal kicks in. */
.badge-key-referral       { --badge-color: #3f9d6e; --badge-tint: #e3f5ea; }

/* Medal colors — shared by the referral, views and anniversary
   badges once they cross a threshold (see app/badges.py). Listed
   after .badge-key-* so a medal always wins over a plain key color. */
.badge-tier-bronze   { --badge-color: #a9683f; --badge-tint: #f3e6dc; }
.badge-tier-silver   { --badge-color: #7c8791; --badge-tint: #eceff1; }
.badge-tier-gold     { --badge-color: #c9932f; --badge-tint: #faf0da; }
.badge-tier-platinum { --badge-color: #2f9fc0; --badge-tint: #e2f4f9; }

/* --- dismissible notice (e.g. spam box) on the home page -----------------------
   Deliberately NOT teal/indigo (the rest of the site's palette) — this is a
   "tip" banner and needs to read as attention-grabbing at a glance, so it
   gets its own warm accent instead of blending in. */
.dismissible-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fdf1dc;
    border: 1px solid #f0b84c;
    border-left: 4px solid #e8930a;
    color: #6b4a06;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.dismissible-notice .icon { color: #e8930a; }

.dismissible-notice button {
    background: none;
    border: none;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    color: #6b4a06;
    padding: 6px 8px;
    border-radius: 6px;
}

.dismissible-notice button:hover { color: #3f2c03; background: rgba(0, 0, 0, 0.06); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- admin (read-only panel) ---------------------------------------- */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin: 16px 0 24px;
}

.admin-stat {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}

.admin-stat strong {
    display: block;
    font-size: 1.6rem;
    color: var(--accent);
}

.admin-stat span {
    font-size: 0.8rem;
    color: var(--muted);
}

.admin-list {
    list-style: none;
    padding: 0;
}

.admin-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

/* --- admin: user management (/admin/users) ---------------------------- */
.admin-users-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    margin: 12px 0 20px;
}

.admin-users-filter label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--muted);
}

.admin-users-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

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

.admin-users-table th {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* --- admin: Data Analytics (/admin/analytics) -------------------------- */
.analytics-section {
    margin: 28px 0;
}

.analytics-section h2 {
    margin-bottom: 4px;
}

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

.analytics-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
}

.analytics-card h3 {
    margin: 0 0 10px;
    font-size: 0.95rem;
}

.analytics-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
    font-size: 0.82rem;
}

.analytics-bar-label {
    flex: 0 0 90px;
    color: var(--muted);
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.analytics-bar-track {
    flex: 1 1 auto;
    background: var(--accent-light);
    border-radius: 4px;
    height: 14px;
    overflow: hidden;
}

.analytics-bar-fill {
    display: block; /* without this, "width"/"height" have no effect on
                        a <span> (inline by default) — that's why the
                        bar always appeared "full" (the track's
                        background color), without scaling with the value. */
    background: var(--accent);
    height: 100%;
    border-radius: 4px;
}

.analytics-bar-value {
    flex: 0 0 auto;
    min-width: 2.4em;
    font-variant-numeric: tabular-nums;
}

.analytics-big-number {
    font-size: 1.6rem;
    color: var(--accent);
    font-weight: 700;
}

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

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
    margin-top: 12px;
}

.badge-danger {
    display: inline-block;
    background: rgba(217, 83, 79, 0.12);
    color: #d9534f;
    border-radius: 999px;
    padding: 1px 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* --- anti-bot honeypot (see app/captcha.py) ------------------------------ */
.honeypot-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --- flying bird (VokalBoard's brand mark, see base.html) -------------
   The actual wing-flapping lives inside bird-flying.svg itself
   (it's already drawn facing right = flight direction); here we handle
   the path across the screen (.vb-flying-wrap) and the little speech
   bubble that shows up now and then (.vb-bubble), stuck to it during flight. */
.vb-flying-wrap {
    position: fixed;
    left: -8vw;
    pointer-events: none;
    z-index: 500;
    animation-name: vb-fly-across;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
}

.vb-flying-bird {
    display: block;
    width: 56px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(28, 31, 46, 0.18));
}

.vb-bubble {
    position: absolute;
    top: -10px;
    left: 58px;
    background: var(--card-bg);
    color: var(--ink);
    padding: 4px 11px;
    border-radius: 14px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(28, 31, 46, 0.18);
}

.vb-bubble::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    background: var(--card-bg);
    bottom: -3px;
    left: 12px;
    transform: rotate(45deg);
    box-shadow: -1px 1px 1px rgba(28, 31, 46, 0.06);
}

@keyframes vb-fly-across {
    0%   { transform: translate(0, 0); }
    22%  { transform: translate(30vw, -26px); }
    46%  { transform: translate(60vw, 4px); }
    70%  { transform: translate(90vw, -18px); }
    100% { transform: translate(122vw, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .vb-flying-wrap { display: none; }
}

/* ------------------------------------------------------------
   Narrow screens (mobile) — single breakpoint at 860px, covers
   everything that genuinely depends on width: the sidebar becomes a
   sliding panel (☰ in the header opens/closes it), the rest (listing
   grids, stats, forms) already adjusts on its own because it uses
   grid-template-columns: repeat(auto-fit/auto-fill, minmax(...)) —
   see .listing-grid/.admin-stats/.analytics-grid above.
   ------------------------------------------------------------ */
@media (max-width: 860px) {
    .site-header { padding: 12px 16px; gap: 10px; }
    .sidebar-toggle { display: flex; }

    .side-nav {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 40;
        width: min(78vw, 280px);
        height: 100vh;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
        box-shadow: 2px 0 12px rgba(28, 31, 46, 0.15);
    }

    .side-nav.side-nav-open {
        transform: translateX(0);
    }

    .sidebar-backdrop-visible {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 30;
        background: rgba(20, 24, 30, 0.35);
    }

    .container { padding: 16px; }

    /* The logged-in user's name/avatar is the last thing that needs to
       fit — on very narrow screens it wraps to its own line instead of
       squeezing the navigation links. */
    .whoami { flex-basis: 100%; order: 99; }
}

/* --- decorative background (leaves or clouds, see base.html) ------------------ */
.site-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-repeat: repeat;
    opacity: 0.7;
    pointer-events: none;
}

.site-bg.bg-leaves {
    background-image: url('/static/img/bg-leaves.svg');
    background-size: 420px 420px;
}

.site-bg.bg-clouds {
    background-image: url('/static/img/bg-clouds.svg');
    background-size: 600px 360px;
}

/* --- brand-bird icons in header/footer ---------------------- */
.brand-icon {
    vertical-align: -6px;
    margin-right: 2px;
}

.footer-bird-icon {
    vertical-align: -2px;
}

.hero-bird-icon {
    width: 40px;
    height: auto;
    vertical-align: -8px;
    margin-right: 4px;
}

/* --- posts feed (home) + admin/posts ----------------------------------- */
.posts-feed {
    margin-bottom: 28px;
}

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

.post-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 10px;
    padding: 0;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.post-card:hover {
    box-shadow: 0 4px 14px rgba(28, 31, 46, 0.08);
    transform: translateY(-1px);
}

.post-card-link {
    display: block;
    padding: 14px 16px;
    color: inherit;
    text-decoration: none;
}

.post-card h3 {
    margin: 0 0 6px;
}

.post-body {
    white-space: pre-wrap;
    margin: 0 0 6px;
    color: var(--ink);
}

.post-meta {
    color: var(--muted);
    font-size: 0.85rem;
    margin: 0;
}

.post-read-more {
    display: inline-block;
    margin-top: 8px;
    color: var(--accent-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

/* --- full post (/posts/{id}) + preview in admin/posts ------------------ */
.post-full { max-width: 720px; }

.post-body-full,
.post-full .post-body-full {
    line-height: 1.65;
    margin-top: 8px;
}

.post-body-full h2 { font-size: 1.4rem; margin: 20px 0 8px; }
.post-body-full h3 { font-size: 1.15rem; margin: 16px 0 6px; }
.post-body-full p { margin: 0 0 12px; }
.post-body-full ul, .post-body-full ol { margin: 0 0 12px; padding-left: 24px; }
.post-body-full img { max-width: 100%; border-radius: 8px; margin: 10px 0; display: block; }
.post-body-full blockquote {
    margin: 12px 0;
    padding: 4px 16px;
    border-left: 3px solid var(--accent2);
    color: var(--muted);
    font-style: italic;
}
.post-body-full a { color: var(--accent-dark); }
.post-body-full code {
    background: var(--accent-light);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* --- post editor (WordPress-style) — see app/static/js/post-editor.js */

/* The editing frame matches the width of a real published post
   (.post-full, 720px) instead of the generic 400px form width — it
   still shrinks on narrower screens (the form has no min-width), so
   the editor is already as "schlank" on mobile as the post itself
   will be. */
.post-form { max-width: 720px; }

.post-editor {
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: var(--card-bg);
    /* A soft ambient shadow instead of a hard outline reads lighter —
       the box still has a clear edge, just not a stark one. */
    box-shadow: 0 1px 3px rgba(28, 31, 46, 0.04), 0 8px 24px rgba(28, 31, 46, 0.03);
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.post-editor:focus-within {
    border-color: var(--accent2);
    box-shadow: 0 1px 3px rgba(28, 31, 46, 0.04), 0 8px 24px rgba(18, 164, 136, 0.10);
}

.post-editor > .field-label {
    display: block;
    padding: 12px 16px 0;
    font-weight: 600;
    font-size: 0.9rem;
}

.post-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    background: var(--accent2-light);
}

.post-editor-toolbar button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid transparent;
    background: transparent;
    padding: 6px 10px;
    border-radius: 7px;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--ink);
    transition: background 0.1s ease;
}

.post-editor-toolbar button:hover {
    background: #fff;
    border-color: var(--border);
}

.post-editor-toolbar button.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.post-editor-sep {
    width: 1px;
    align-self: stretch;
    background: var(--border);
    margin: 0 4px;
}

/* Color swatch + font family, on their own row so the main command
   row doesn't get crowded — "opções de cores e fontes" as requested. */
.post-editor-toolbar-row2 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-bottom: 1px solid var(--border);
    background: #fff;
    font-size: 0.83rem;
    color: var(--muted);
}

.post-editor-color-field,
.post-editor-font-field {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-editor-toolbar-row2 input[type="color"] {
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: none;
    cursor: pointer;
}

.post-editor-toolbar-row2 select {
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.83rem;
    color: var(--ink);
    background: #fff;
}

.post-editor-status {
    color: var(--muted);
    font-size: 0.8rem;
    margin-left: auto;
}

.post-editor-area {
    min-height: 260px;
    padding: 18px 20px;
    outline: none;
    line-height: 1.65;
    font-size: 1.02rem;
    transition: background 0.12s ease;
}

.post-editor-area:empty::before {
    content: "Write the post here…";
    color: var(--muted);
}

/* Drag-and-drop upload: dropping a file anywhere onto the editor
   uploads and inserts it, same as the toolbar's Image button — the
   highlighted dashed frame previews where it will land. */
.post-editor-area.is-drag-over {
    background: var(--accent2-light);
    outline: 2px dashed var(--accent2);
    outline-offset: -8px;
}

.post-editor-area img {
    max-width: 100%;
    border-radius: 8px;
    cursor: grab;
    transition: box-shadow 0.12s ease;
}

.post-editor-area img:hover { box-shadow: 0 0 0 2px var(--accent2-light); }

/* An image picked up to be moved (see post-editor.js) — moving it
   around the post is done by dragging it to a new spot in the text,
   not by pixel-positioning, which would fight the flow of the
   surrounding paragraphs. */
.post-editor-area img.is-dragging { opacity: 0.4; }

.post-editor-area img.align-left { float: left; margin: 4px 16px 8px 0; max-width: 45%; }
.post-editor-area img.align-right { float: right; margin: 4px 0 8px 16px; max-width: 45%; }
.post-editor-area img.align-center { display: block; margin: 10px auto; }

/* Small floating toolbar that appears above a selected image, to
   align/resize it — click elsewhere to dismiss (see post-editor.js). */
.post-editor-image-toolbar {
    position: fixed;
    display: flex;
    gap: 2px;
    padding: 4px;
    background: var(--ink);
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(28, 31, 46, 0.25);
    z-index: 5;
}

.post-editor-image-toolbar button {
    border: none;
    background: transparent;
    color: #fff;
    padding: 5px 8px;
    border-radius: 5px;
    font-size: 0.78rem;
    cursor: pointer;
}

.post-editor-image-toolbar button:hover,
.post-editor-image-toolbar button.is-active {
    background: var(--accent2);
}

.post-editor-area blockquote {
    margin: 10px 0;
    padding: 3px 16px;
    border-left: 3px solid var(--accent2);
    color: var(--muted);
}

/* Red Zone / financial panel (see app/routers/financial_routes.py) */

.admin-subnav-red {
    color: #d9534f !important;
    font-weight: 600;
}

.capitalismo-banner {
    background: linear-gradient(90deg, #d9534f, #b33a36);
    color: #fff;
    padding: 10px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.capitalismo-banner .button-link {
    background: #fff;
    color: #b33a36;
}

.red-zone-box {
    border: 2px solid rgba(217, 83, 79, 0.35);
    border-radius: 12px;
    padding: 18px;
    margin: 16px 0;
    background: rgba(217, 83, 79, 0.04);
}

.red-zone-box h2 {
    margin-top: 0;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 24px;
    font-size: 0.9rem;
}

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

.admin-table th {
    color: var(--muted);
    font-weight: 600;
}

.chart-container {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    margin: 12px 0 24px;
    overflow-x: auto;
}

.chart-container canvas {
    color: var(--ink);
    max-width: 100%;
}

.chart-type-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.chart-type-toggle button {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.85rem;
    cursor: pointer;
}

.chart-type-toggle button.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* --- Notas (credit bank) ------------------------------------------------ */
.notas-balance-box {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 16px 0 20px;
    padding: 20px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border-radius: 12px;
    color: #fff;
}

.notas-balance-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notas-balance-icon .icon { color: #fff; }

.notas-balance-value { font-size: 2rem; font-weight: 700; line-height: 1.1; }
.notas-balance-label { font-size: 0.85rem; opacity: 0.92; }
.notas-balance-next { font-size: 0.8rem; opacity: 0.85; margin-top: 4px; }

.catalog-grid {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin: 12px 0 24px;
}

.catalog-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.catalog-item-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent2-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-item-title { font-weight: 600; }
.catalog-item-desc { font-size: 0.85rem; color: var(--muted); flex: 1; }
.catalog-item-cost {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
}

.catalog-item-empty {
    grid-column: 1 / -1;
    color: var(--muted);
    font-style: italic;
    font-size: 0.9rem;
}

.ledger-list {
    list-style: none;
    padding: 0;
    margin: 8px 0;
}

.ledger-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.ledger-delta-positive { color: var(--accent); font-weight: 600; }
.ledger-delta-negative { color: #b45309; font-weight: 600; }
.ledger-date { color: var(--muted); font-size: 0.8rem; }

/* --- Hall da Fama -------------------------------------------------------- */
.hall-fame-grid {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    margin: 12px 0;
}

.hall-fame-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 14px 10px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.hall-fame-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.hall-fame-name { font-weight: 600; font-size: 0.9rem; }
.hall-fame-meta { font-size: 0.78rem; color: var(--muted); }

/* --- Profile highlight (redeemed via Notas) ------------------------------ */
.profile-highlight-banner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0 12px;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}

/* --- Profile page redesign (translucent panel + floating cards) --------- */
.profile-hero {
    margin: 20px 0 28px;
    padding: 28px;
    border-radius: 22px;
    /* Frosted-glass panel behind the floating cards — this is the
       "mais translúcido" part of the redesign: a tinted, blurred
       backdrop instead of a flat background. */
    background: linear-gradient(160deg, rgba(223, 246, 238, 0.75), rgba(233, 251, 242, 0.55));
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 18px 44px rgba(12, 125, 104, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.profile-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.btn-preview {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--accent-dark);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 0.86rem;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(12, 125, 104, 0.28);
}
.btn-preview:hover { background: #096a58; }

.btn-share {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    color: var(--accent-dark);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 0.86rem;
    cursor: pointer;
}

.share-icons {
    display: none;
    gap: 8px;
}
.share-icons.open { display: flex; }
.share-icons a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.share-icons a:hover { background: var(--accent2-light); }
.share-icons button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent-dark);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.profile-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 22px;
}
@media (max-width: 720px) {
    .profile-grid { grid-template-columns: 1fr; }
}

.profile-hero .card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    /* Deeper, more colorful shadow than a flat site card — this is
       what makes each card feel like it's floating above the frosted
       panel behind it. */
    box-shadow: 0 14px 30px rgba(12, 125, 104, 0.14), 0 2px 6px rgba(28, 31, 46, 0.06);
}

.profile-hero .card h3 {
    margin: 0 0 12px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    font-weight: 700;
}

.id-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.id-card .avatar-preview {
    width: 108px;
    height: 108px;
    border: 3px solid var(--accent-light);
    box-shadow: 0 8px 18px rgba(12, 125, 104, 0.22);
}

.id-card .full-name { font-size: 1.2rem; font-weight: 700; margin-top: 6px; }
.id-card .role-line { color: var(--muted); font-size: 0.85rem; margin-bottom: 6px; }

.id-card .contact-list {
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.id-card .contact-list .row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--ink);
}
.id-card .contact-list .row .icon { color: var(--accent); }

.profile-link-box {
    margin-top: 16px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: 10px;
    padding: 8px 10px;
}
.profile-link-box code {
    flex: 1;
    font-size: 0.78rem;
    color: var(--accent-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.profile-link-box button {
    border: none;
    background: var(--accent);
    color: #fff;
    border-radius: 6px;
    padding: 5px 9px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
}

.profile-edit-hint {
    font-size: 0.72rem;
    color: var(--muted);
    margin-top: 6px;
}
.profile-edit-hint a { color: var(--accent-dark); font-weight: 600; }

.profile-right-col { display: flex; flex-direction: column; gap: 20px; }

.profile-hero .bio-card p {
    font-size: 0.94rem;
    line-height: 1.65;
    color: var(--ink);
    margin: 0;
}

.profile-hero .links-card .link-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-top: 1px solid var(--border);
    font-size: 0.88rem;
}
.profile-hero .links-card .link-row:first-of-type { border-top: none; }
.profile-hero .links-card .link-row .icon { color: var(--accent-dark); flex-shrink: 0; }
.profile-hero .links-card .link-row a { color: var(--ink); text-decoration: none; }
.profile-hero .links-card .link-row a:hover { color: var(--accent-dark); }
