/* ============================================================
   gamifikace.css — Fajn Účet
   Styly specifické pro stránku "Gamifikace / TrustScore".
   Obecné styly (layout, sidebar, header…) jsou v obecne.css.
   ============================================================ */

.gamifikace-page {
    padding-bottom: 3rem;
}

/* =============================================================
   BANNER (fialovo-oranžový gradient — trophy téma)
   ============================================================= */
.gamifikace-banner-card {
    margin-bottom: 1.5rem;
    padding: 0;
    background: linear-gradient(135deg, hsl(35 100% 94%) 0%, hsl(25 100% 88%) 40%, hsl(280 60% 88%) 100%);
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.gamifikace-banner-content {
    display: flex;
    align-items: stretch;
    min-height: 0;
}

.gamifikace-banner-illustration {
    flex-shrink: 0;
    width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0 0 0.5rem;
}

.gamifikace-banner-illustration img {
    width: 120px;
    height: auto;
    object-fit: contain;
    display: block;
}

.gamifikace-banner-text {
    flex: 1;
    padding: 1.5rem 1.75rem 1.5rem 0.5rem;
}

.gamifikace-banner-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .gamifikace-banner-title { font-size: 1.375rem; }
}

.gamifikace-banner-title-icon {
    width: 1.375rem;
    height: 1.375rem;
    color: hsl(var(--primary));
}

.gamifikace-banner-desc {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    margin-bottom: 1.125rem;
}

.gamifikace-banner-tags {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, auto);
    gap: 1.25rem 1.5rem;
    justify-content: stretch;
}

.gamifikace-banner-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    white-space: nowrap;
}

.gamifikace-tag-circle {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gamifikace-tag-circle .lucide {
    width: 1rem;
    height: 1rem;
    stroke-width: 2.5;
}

.gamifikace-tag-circle--slate  { background: #e2e8f0; color: #475569; }
.gamifikace-tag-circle--blue   { background: #dbeafe; color: #2563eb; }
.gamifikace-tag-circle--indigo { background: #e0e7ff; color: #4f46e5; }
.gamifikace-tag-circle--purple { background: #f3e8ff; color: #a855f7; }
.gamifikace-tag-circle--orange { background: #ffedd5; color: #ea580c; }

@media (max-width: 767px) {
    .gamifikace-banner-tags { grid-template-columns: repeat(3, auto); }
}

@media (max-width: 639px) {
    .gamifikace-banner-content { flex-direction: column; }
    .gamifikace-banner-illustration {
        width: 100%;
        height: 80px;
        padding: 0.75rem 0 0;
        justify-content: center;
    }
    .gamifikace-banner-illustration img { width: 80px; }
    .gamifikace-banner-text {
        padding: 1rem 1.25rem 1.25rem;
        text-align: center;
    }
    .gamifikace-banner-title { justify-content: center; }
    .gamifikace-banner-tags {
        grid-template-columns: repeat(2, auto);
        justify-content: center;
    }
}

/* =============================================================
   TABS
   ============================================================= */
.gamifikace-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.gamifikace-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.125rem;
    border: 1px solid hsl(var(--border));
    border-radius: 9999px;
    background: white;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    font-family: inherit;
}

.gamifikace-tab:hover {
    border-color: hsl(var(--primary) / 0.5);
    color: hsl(var(--primary));
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.gamifikace-tab.active {
    background: hsl(var(--primary));
    border-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    box-shadow: 0 4px 10px hsl(var(--primary) / 0.25);
}

.gamifikace-tab-panel {
    display: none;
}

.gamifikace-tab-panel.active {
    display: block;
    animation: gamifikaceFadeIn 0.25s ease;
}

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

/* =============================================================
   SDÍLENÉ NADPISY SEKCÍ
   ============================================================= */
.gamifikace-section-title {
    font-size: 1.125rem;
    font-weight: bold;
    color: hsl(var(--foreground));
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.gamifikace-section-icon {
    width: 1.125rem;
    height: 1.125rem;
    color: hsl(var(--primary));
    flex-shrink: 0;
}

.gamifikace-section-desc {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.25rem;
}

/* =============================================================
   GRID LAYOUT PŘEHLEDU
   ============================================================= */
.gamifikace-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 1023px) {
    .gamifikace-grid { grid-template-columns: 1fr; }
}

.gamifikace-grid-main,
.gamifikace-grid-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* =============================================================
   XP KARTA
   ============================================================= */
.gamifikace-xp-card {
    padding: 1.75rem;
    background:
        radial-gradient(circle at 100% 0%, hsl(var(--primary) / 0.08) 0%, transparent 50%),
        white;
    position: relative;
    overflow: hidden;
}

.gamifikace-xp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.gamifikace-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 0.625rem;
}

.gamifikace-tier-badge--expert {
    background: hsl(var(--primary) / 0.12);
    color: hsl(var(--primary));
}

.gamifikace-xp-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: hsl(var(--foreground));
    line-height: 1;
    letter-spacing: -0.02em;
}

.gamifikace-xp-value span {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    margin-left: 0.25rem;
}

.gamifikace-xp-fresh {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.5rem;
}

.gamifikace-xp-fresh-value {
    color: hsl(var(--success));
    font-weight: 700;
}

.gamifikace-xp-rank {
    text-align: right;
}

.gamifikace-xp-rank-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.gamifikace-xp-rank-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: hsl(var(--primary));
    line-height: 1;
}

.gamifikace-progress {
    margin-top: 1.5rem;
}

.gamifikace-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.5rem;
}

.gamifikace-progress-bar {
    width: 100%;
    height: 0.75rem;
    background: hsl(var(--muted));
    border-radius: 9999px;
    overflow: hidden;
}

.gamifikace-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, hsl(var(--primary)) 0%, hsl(var(--warning)) 100%);
    border-radius: 9999px;
    transition: width 0.4s ease;
}

/* =============================================================
   BADGE KARTA (sběratelská cesta)
   ============================================================= */
.gamifikace-badges-card {
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .gamifikace-badges-card { padding: 2rem; }
}

.gamifikace-level-group {
    margin-top: 1.5rem;
}

.gamifikace-level-group:first-of-type {
    margin-top: 0.5rem;
}

.gamifikace-level-title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.75rem;
    padding-bottom: 0.375rem;
    border-bottom: 1px solid hsl(var(--border));
}

.gamifikace-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

@media (max-width: 767px) {
    .gamifikace-badges { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 479px) {
    .gamifikace-badges { grid-template-columns: 1fr; }
}

.gamifikace-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    background: white;
    transition: all 0.15s;
}

.gamifikace-badge--earned:hover {
    border-color: hsl(var(--primary) / 0.4);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.gamifikace-badge--locked {
    background: hsl(var(--muted) / 0.5);
    opacity: 0.7;
}

.gamifikace-badge-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: hsl(var(--primary) / 0.12);
    color: hsl(var(--primary));
}

.gamifikace-badge-icon .lucide {
    width: 1.125rem;
    height: 1.125rem;
}

.gamifikace-badge--locked .gamifikace-badge-icon {
    background: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
}

.gamifikace-badge-info {
    min-width: 0;
    flex: 1;
}

.gamifikace-badge-name {
    font-size: 0.8125rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    line-height: 1.2;
}

.gamifikace-badge-desc {
    font-size: 0.6875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.3;
    margin-top: 0.125rem;
}

.gamifikace-badge-points {
    display: inline-block;
    margin-top: 0.375rem;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.125rem 0.375rem;
    border-radius: 0.375rem;
    background: hsl(var(--success) / 0.12);
    color: hsl(var(--success));
    letter-spacing: 0.02em;
}

.gamifikace-badge--locked .gamifikace-badge-points {
    background: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
}

/* =============================================================
   BOČNÍ KARTY (quest, alert, events)
   ============================================================= */
.gamifikace-side-card {
    padding: 1.25rem;
}

.gamifikace-side-title {
    font-size: 1rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1rem;
}

.gamifikace-quest {
    padding: 1rem;
    background: hsl(var(--primary) / 0.06);
    border: 1px solid hsl(var(--primary) / 0.2);
    border-radius: 0.75rem;
}

.gamifikace-quest-reward {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: hsl(var(--primary));
    margin-bottom: 0.375rem;
}

.gamifikace-quest-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.625rem;
}

.gamifikace-quest-bar {
    width: 100%;
    height: 0.375rem;
    background: hsl(var(--primary) / 0.18);
    border-radius: 9999px;
    overflow: hidden;
}

.gamifikace-quest-fill {
    height: 100%;
    background: hsl(var(--primary));
    border-radius: 9999px;
}

.gamifikace-quest-progress {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.5rem;
}

/* --- Alert (pokles XP) --- */
.gamifikace-alert-card {
    padding: 1.25rem;
    background: hsl(0 84% 97%);
    border-color: hsl(0 84% 88%);
}

.gamifikace-alert-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: hsl(0 72% 40%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.875rem;
}

.gamifikace-alert-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    color: hsl(0 72% 30%);
    padding: 0.375rem 0;
    border-bottom: 1px dashed hsl(0 84% 88%);
}

.gamifikace-alert-row:last-child {
    border-bottom: none;
}

.gamifikace-alert-points {
    font-weight: 700;
    color: hsl(0 72% 40%);
}

/* --- Poslední události --- */
.gamifikace-events {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gamifikace-event {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.625rem;
    font-size: 0.8125rem;
    background: hsl(var(--muted) / 0.5);
}

.gamifikace-event span {
    flex: 1;
    color: hsl(var(--foreground));
}

.gamifikace-event strong {
    font-weight: 700;
    font-size: 0.75rem;
}

.gamifikace-event--plus {
    background: hsl(var(--success) / 0.08);
}
.gamifikace-event--plus .lucide,
.gamifikace-event--plus strong {
    color: hsl(var(--success));
}

.gamifikace-event--minus {
    background: hsl(0 84% 60% / 0.08);
}
.gamifikace-event--minus .lucide,
.gamifikace-event--minus strong {
    color: hsl(0 72% 45%);
}

/* =============================================================
   E-MAIL DEMO
   ============================================================= */
.gamifikace-email-card {
    padding: 0;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.gamifikace-email-browser {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: hsl(var(--muted));
    border-bottom: 1px solid hsl(var(--border));
}

.gamifikace-email-dots {
    display: flex;
    gap: 0.375rem;
    flex-shrink: 0;
}

.gamifikace-email-dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 9999px;
}

.gamifikace-email-dot--red    { background: #ef4444; }
.gamifikace-email-dot--yellow { background: #facc15; }
.gamifikace-email-dot--green  { background: #22c55e; }

.gamifikace-email-subject {
    flex: 1;
    padding: 0.375rem 0.875rem;
    background: white;
    border-radius: 0.5rem;
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 0.6875rem;
    color: hsl(var(--muted-foreground));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gamifikace-email-body {
    padding: 2.5rem 2rem;
    text-align: center;
    max-width: 36rem;
    margin: 0 auto;
}

@media (max-width: 639px) {
    .gamifikace-email-body { padding: 2rem 1.25rem; }
}

.gamifikace-email-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.875rem;
    background: hsl(var(--primary));
    color: white;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gamifikace-email-icon .lucide {
    width: 1.5rem;
    height: 1.5rem;
}

.gamifikace-email-title {
    font-size: 1.375rem;
    font-weight: 800;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

.gamifikace-email-desc {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    margin-bottom: 2rem;
}

.gamifikace-email-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
}

@media (max-width: 479px) {
    .gamifikace-email-options { grid-template-columns: 1fr; }
}

.gamifikace-email-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    border-radius: 1rem;
    border: 2px solid transparent;
    background: white;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.gamifikace-email-option .lucide {
    width: 1.75rem;
    height: 1.75rem;
    transition: transform 0.15s;
}

.gamifikace-email-option:hover .lucide {
    transform: scale(1.1);
}

.gamifikace-email-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.gamifikace-email-option--success {
    background: hsl(142 76% 96%);
    border-color: hsl(142 76% 80%);
    color: hsl(142 76% 30%);
}

.gamifikace-email-option--fail {
    background: hsl(0 84% 97%);
    border-color: hsl(0 84% 85%);
    color: hsl(0 72% 40%);
}

.gamifikace-email-option--noshow {
    background: hsl(222 47% 11%);
    border-color: hsl(222 47% 20%);
    color: white;
}

.gamifikace-email-option--end {
    background: hsl(var(--muted));
    border-color: hsl(var(--border));
    color: hsl(var(--muted-foreground));
}

/* Success flow (tagy) */
.gamifikace-email-step-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.gamifikace-email-step-title--success { color: hsl(142 76% 30%); }
.gamifikace-email-step-title--fail    { color: hsl(0 72% 40%); }

.gamifikace-email-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.gamifikace-email-tag {
    padding: 0.5rem 1rem;
    border: 2px solid hsl(142 76% 80%);
    border-radius: 9999px;
    background: white;
    color: hsl(142 76% 30%);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.gamifikace-email-tag:hover,
.gamifikace-email-tag.active {
    background: hsl(142 76% 36%);
    border-color: hsl(142 76% 36%);
    color: white;
}

/* Fail note */
.gamifikace-email-textarea {
    width: 100%;
    min-height: 6rem;
    padding: 0.875rem 1rem;
    border-radius: 0.875rem;
    border: 2px solid hsl(var(--border));
    background: white;
    font-family: inherit;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    resize: vertical;
    margin-bottom: 0.5rem;
    transition: border-color 0.15s;
}

.gamifikace-email-textarea:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

.gamifikace-email-textarea--fail {
    border-color: hsl(0 84% 85%);
}

.gamifikace-email-textarea--fail:focus {
    border-color: hsl(0 72% 51%);
    box-shadow: 0 0 0 3px hsl(0 84% 60% / 0.15);
}

.gamifikace-email-note {
    font-size: 0.75rem;
    color: hsl(0 72% 40%);
    font-style: italic;
    margin-bottom: 1.25rem;
}

/* No-show alert */
.gamifikace-email-alert {
    padding: 1.25rem;
    background: hsl(0 84% 97%);
    border: 2px solid hsl(0 84% 85%);
    border-radius: 1rem;
    text-align: left;
    margin-bottom: 1.25rem;
}

.gamifikace-email-alert-title {
    font-size: 1rem;
    font-weight: 700;
    color: hsl(0 72% 35%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.gamifikace-email-alert-desc {
    font-size: 0.8125rem;
    color: hsl(0 72% 30%);
    line-height: 1.55;
}

/* End flow */
.gamifikace-email-end {
    padding: 1.5rem 0;
}

.gamifikace-email-end-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    background: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
    margin: 0 auto 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gamifikace-email-end-icon .lucide {
    width: 1.75rem;
    height: 1.75rem;
}

.gamifikace-email-end-title {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.25rem;
}

/* Back link */
.gamifikace-email-back {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: hsl(var(--muted-foreground));
    text-decoration: underline;
    cursor: pointer;
    padding: 0.375rem 0.75rem;
}

.gamifikace-email-back:hover {
    color: hsl(var(--primary));
}

/* Info karta pod e-mailem */
.gamifikace-info-card {
    padding: 1.75rem;
}

.gamifikace-info-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
}

.gamifikace-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 639px) {
    .gamifikace-info-grid { grid-template-columns: 1fr; }
}

.gamifikace-info-item h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: hsl(var(--primary));
    margin-bottom: 0.375rem;
}

.gamifikace-info-item p {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

/* =============================================================
   ŽEBŘÍČEK
   ============================================================= */
.gamifikace-leaderboard-card {
    padding: 1.75rem;
    max-width: 40rem;
    margin: 0 auto;
}

.gamifikace-leaderboard {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.gamifikace-leader {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.875rem;
    background: white;
    transition: all 0.15s;
}

.gamifikace-leader:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.gamifikace-leader-rank {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.125rem;
    font-weight: 800;
    font-size: 0.875rem;
    background: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
    border-radius: 0.625rem;
    flex-shrink: 0;
}

.gamifikace-leader-info {
    flex: 1;
    min-width: 0;
}

.gamifikace-leader-nick {
    font-size: 0.9375rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    line-height: 1.2;
}

.gamifikace-leader-tier {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: hsl(var(--muted-foreground));
    margin-top: 0.125rem;
}

.gamifikace-leader-points {
    font-size: 1rem;
    font-weight: 800;
    color: hsl(var(--foreground));
    flex-shrink: 0;
}

.gamifikace-leader--me {
    background: hsl(var(--primary));
    border-color: hsl(var(--primary));
    box-shadow: 0 6px 16px hsl(var(--primary) / 0.25);
    transform: scale(1.015);
}

.gamifikace-leader--me .gamifikace-leader-rank {
    background: white;
    color: hsl(var(--primary));
}

.gamifikace-leader--me .gamifikace-leader-nick,
.gamifikace-leader--me .gamifikace-leader-points {
    color: white;
}

.gamifikace-leader--me .gamifikace-leader-tier {
    color: hsl(var(--primary-foreground) / 0.85);
}

/* Zlatá pro #1 */
.gamifikace-leader:first-child:not(.gamifikace-leader--me) .gamifikace-leader-rank {
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    color: white;
}

/* =============================================================
   PŘIPOMÍNKY (support)
   ============================================================= */
.gamifikace-support-card {
    padding: 2rem;
    max-width: 36rem;
    margin: 0 auto;
    text-align: center;
}

.gamifikace-support-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: hsl(var(--primary) / 0.12);
    color: hsl(var(--primary));
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gamifikace-support-icon .lucide {
    width: 1.75rem;
    height: 1.75rem;
}

.gamifikace-support-title {
    font-size: 1.375rem;
    font-weight: 800;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

.gamifikace-support-desc {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.gamifikace-support-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.gamifikace-support-field {
    display: flex;
    flex-direction: column;
}

.gamifikace-support-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.375rem;
}

.gamifikace-support-select,
.gamifikace-support-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    background: hsl(var(--muted) / 0.5);
    font-family: inherit;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    transition: all 0.15s;
}

.gamifikace-support-textarea {
    min-height: 6.5rem;
    resize: vertical;
}

.gamifikace-support-select:focus,
.gamifikace-support-textarea:focus {
    outline: none;
    border-color: hsl(var(--primary));
    background: white;
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

.gamifikace-support-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.9375rem 1.25rem;
    border: none;
    border-radius: 0.875rem;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: 0 4px 12px hsl(var(--primary) / 0.25);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 0.5rem;
}

.gamifikace-support-btn:hover {
    background: hsl(var(--primary) / 0.9);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px hsl(var(--primary) / 0.35);
}

.gamifikace-support-btn:active {
    transform: translateY(0);
}

/* =============================================================
   MOBIL — taby horizontálně scrollovat
   ============================================================= */
@media (max-width: 639px) {
    .gamifikace-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        scrollbar-width: thin;
    }

    .gamifikace-tab {
        flex-shrink: 0;
    }

    .gamifikace-xp-value { font-size: 2rem; }
    .gamifikace-xp-rank-value { font-size: 1.25rem; }
}
