/**
 * ============================================================================
 * UPPDRAG - Audikadagen 2026
 * Apple-inspired minimal dark UI
 * ============================================================================
 */

/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */

:root {
    --bg: #0A0E1A;
    --surface: #131728;
    --surface-2: #1A1F34;
    --surface-3: #222840;
    --accent: #2DD4BF;
    --accent-dim: rgba(45, 212, 191, 0.10);
    --accent-glow: rgba(45, 212, 191, 0.20);
    --text-1: #F0F4F8;
    --text-2: #A0AEC0;
    --text-3: #6B7A8D;
    --border: rgba(255, 255, 255, 0.06);
    --border-focus: rgba(45, 212, 191, 0.35);
    --success: #34D399;
    --error: #F87171;
    --warning: #FBBF24;
    --gold: #FFD700;
    --silver: #C0C0C0;
    --bronze: #CD7F32;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --header-h: 54px;
    --tab-h: 60px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-top: env(safe-area-inset-top, 0px);

    --ease: cubic-bezier(0.2, 0, 0, 1);
    --spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

html {
    font-family: var(--font);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    color: var(--text-1);
    background: var(--bg);
    height: 100%;
    overflow: hidden;
}

body {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg);
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }
html { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.08) transparent; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }
img, video { max-width: 100%; display: block; }
ul { list-style: none; }

/* ==========================================================================
   AMBIENT BACKGROUND — MISSION IMPOSSIBLE THEME
   ========================================================================== */

.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    will-change: transform;
}

.ambient-orb.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    top: -100px;
    right: -80px;
    animation: ambientDrift1 25s ease-in-out infinite;
}

.ambient-orb.orb-2 {
    width: 350px;
    height: 350px;
    background: #5E5CE6;
    bottom: 15%;
    left: -100px;
    animation: ambientDrift2 30s ease-in-out infinite;
}

.ambient-orb.orb-3 {
    width: 300px;
    height: 300px;
    background: #FF375F;
    bottom: -80px;
    right: 10%;
    animation: ambientDrift3 20s ease-in-out infinite;
}

/* Horizontal scan line that sweeps down */
.mi-scanline {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent calc(var(--scan-y, 0%) - 1px),
        rgba(45, 212, 191, 0.04) var(--scan-y, 0%),
        transparent calc(var(--scan-y, 0%) + 1px),
        transparent 100%
    );
    animation: miScanDown 8s linear infinite;
}

@keyframes miScanDown {
    0% { --scan-y: 0%; }
    100% { --scan-y: 100%; }
}

/* Subtle dot grid overlay */
.mi-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(45, 212, 191, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

/* Radar sweep in corner */
.mi-radar {
    position: absolute;
    bottom: -120px;
    left: -120px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1px solid rgba(45, 212, 191, 0.06);
    overflow: hidden;
    opacity: 0.5;
}

.mi-radar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, rgba(45, 212, 191, 0.3), transparent);
    transform-origin: left center;
    animation: miRadarSweep 6s linear infinite;
}

.mi-radar::after {
    content: '';
    position: absolute;
    inset: 20%;
    border-radius: 50%;
    border: 1px solid rgba(45, 212, 191, 0.04);
}

@keyframes miRadarSweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Edge vignette */
.mi-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.4) 100%);
}

@keyframes ambientDrift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, 60px) scale(1.1); }
    66% { transform: translate(30px, -30px) scale(0.95); }
}

@keyframes ambientDrift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -40px) scale(1.15); }
}

@keyframes ambientDrift3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    40% { transform: translate(-30px, -50px) scale(1.08); }
    80% { transform: translate(20px, 20px) scale(0.92); }
}

/* ==========================================================================
   ACTIVITY PULSE
   ========================================================================== */

.activity-pulse {
    position: fixed;
    top: calc(var(--header-h) + var(--safe-top) + 8px);
    right: 12px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.2);
    backdrop-filter: blur(12px);
    animation: activitySlideIn 0.4s var(--spring);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
}

.activity-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: activityBlink 1.5s ease-in-out infinite;
}

@keyframes activitySlideIn {
    from { opacity: 0; transform: translateX(20px) scale(0.9); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes activityBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ==========================================================================
   ENHANCED VIEW TRANSITIONS
   ========================================================================== */

.view {
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.view:not(.active) {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transform: translateY(8px);
}

.view.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   ENHANCED CARD INTERACTIONS
   ========================================================================== */

.uppdrag-card {
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.uppdrag-card:active {
    transform: scale(0.97);
}

.feed-card {
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.feed-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(45, 212, 191, 0.1), 0 0 20px rgba(45, 212, 191, 0.04);
}

.feed-card:active {
    transform: scale(0.98);
}

/* ==========================================================================
   ENHANCED PODIUM EFFECTS
   ========================================================================== */

.podium-slot.first .podium-avatar {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4), 0 0 40px rgba(255, 215, 0, 0.15);
    animation: podiumGlow 3s ease-in-out infinite;
}

@keyframes podiumGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.4), 0 0 40px rgba(255, 215, 0, 0.15); }
    50% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.6), 0 0 60px rgba(255, 215, 0, 0.25); }
}

/* ==========================================================================
   SCORE RANK CHANGE ANIMATIONS
   ========================================================================== */

.score-item.rank-up {
    animation: rankUp 0.6s var(--spring);
    background: rgba(52, 211, 153, 0.08);
    border-left: 2px solid var(--success);
}

.score-item.rank-down {
    animation: rankDown 0.4s var(--ease);
    opacity: 0.7;
}

.score-item.rank-new {
    animation: rankNew 0.5s var(--spring);
    background: rgba(45, 212, 191, 0.08);
}

@keyframes rankUp {
    0% { transform: translateY(8px); opacity: 0; }
    50% { transform: translateY(-3px); }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes rankDown {
    from { transform: translateY(-4px); opacity: 0.4; }
    to { transform: translateY(0); opacity: 0.7; }
}

@keyframes rankNew {
    from { transform: translateX(-20px) scale(0.95); opacity: 0; }
    to { transform: translateX(0) scale(1); opacity: 1; }
}

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

.type-btn {
    transition: transform 0.2s var(--spring), background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.type-btn:active {
    transform: scale(0.93);
}

.type-btn.selected {
    box-shadow: 0 0 16px rgba(45, 212, 191, 0.2);
}

/* ==========================================================================
   GLASS CARD EFFECT
   ========================================================================== */

.announcement-bar,
.countdown-bar {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* ==========================================================================
   ENHANCED SUCCESS OVERLAY
   ========================================================================== */

.success-overlay.visible .success-check {
    filter: drop-shadow(0 0 20px rgba(52, 211, 153, 0.5));
}

.success-overlay.visible .success-content p {
    background: linear-gradient(135deg, var(--accent), var(--success));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.3rem;
    font-weight: 700;
}

/* ==========================================================================
   REACTION BURST EFFECT
   ========================================================================== */

.feed-card-react.react-pop::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.3) 0%, transparent 70%);
    animation: reactBurst 0.5s ease-out forwards;
    pointer-events: none;
}

@keyframes reactBurst {
    from { transform: scale(0.5); opacity: 1; }
    to { transform: scale(2.5); opacity: 0; }
}

/* ==========================================================================
   SKELETON SHIMMER ENHANCEMENT
   ========================================================================== */

.skeleton-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 25%, rgba(45, 212, 191, 0.03) 50%, transparent 75%);
    background-size: 200% 100%;
    animation: shimmerEnhanced 1.8s ease-in-out infinite;
}

@keyframes shimmerEnhanced {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

/* ==========================================================================
   FLOATING NUMBERS (for animated counters)
   ========================================================================== */

.count-animated {
    display: inline-block;
    transition: transform 0.3s var(--spring);
}

.count-animated.bump {
    transform: scale(1.3);
    color: var(--accent);
}

/* ==========================================================================
   APP HEADER
   ========================================================================== */

.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: calc(var(--header-h) + var(--safe-top));
    padding-top: var(--safe-top);
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(40px) saturate(1.8);
    -webkit-backdrop-filter: blur(40px) saturate(1.8);
    border-bottom: 1px solid rgba(45, 212, 191, 0.1);
}

.app-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.3), rgba(94, 92, 230, 0.3), transparent);
}

.app-header-inner {
    height: var(--header-h);
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.logo-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.15), rgba(94, 92, 230, 0.1));
    border-radius: 8px;
    border: 1px solid rgba(45, 212, 191, 0.2);
    animation: logoPulse 3s ease-in-out infinite;
    position: relative;
}

@keyframes logoPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
    50% { box-shadow: 0 0 12px 2px rgba(45, 212, 191, 0.15); }
}

.logo-icon svg { width: 18px; height: 18px; filter: drop-shadow(0 0 4px rgba(45, 212, 191, 0.5)); }

.logo-text {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text-1), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app-event {
    font-size: 0.58rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.5;
    margin-top: -1px;
}

.my-group-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(45, 212, 191, 0.1);
    border: 1px solid rgba(45, 212, 191, 0.2);
    animation: badgeFadeIn 0.5s ease;
}

@keyframes badgeFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.my-group-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    animation: badgeDotPulse 2s ease-in-out infinite;
    box-shadow: 0 0 4px rgba(45, 212, 191, 0.5);
}

@keyframes badgeDotPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.4); }
    50% { box-shadow: 0 0 0 4px rgba(45, 212, 191, 0); }
}

.my-group-badge-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
}

/* ==========================================================================
   MY TABLE CARD
   ========================================================================== */

#myTableSection {
    padding-bottom: 0;
}

/* Group selector (no-group state) */
.group-select-card {
    background: linear-gradient(145deg, rgba(45, 212, 191, 0.08), rgba(94, 92, 230, 0.05), rgba(255, 55, 95, 0.03));
    border: 1px solid rgba(45, 212, 191, 0.15);
    border-radius: var(--radius-lg);
    padding: 20px;
    animation: slideDown 0.3s var(--ease);
}
.group-select-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--accent);
}
.group-select-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-1);
}
.group-select-sub {
    font-size: 0.78rem;
    color: var(--text-3);
    margin-top: 2px;
}
.group-select-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.group-select-chips .group-chip {
    flex-shrink: 0;
}

.my-table-card {
    background: linear-gradient(145deg, rgba(45, 212, 191, 0.06), rgba(94, 92, 230, 0.04), rgba(255, 55, 95, 0.03));
    border: 1px solid rgba(45, 212, 191, 0.12);
    border-radius: var(--radius-lg);
    padding: 20px;
    animation: cardSlideIn 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.my-table-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), #5E5CE6, #FF375F);
    opacity: 0.6;
}

.my-table-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.my-table-icon {
    width: 36px;
    height: 36px;
    color: var(--accent);
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(45, 212, 191, 0.3));
}

.my-table-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-1);
    letter-spacing: -0.02em;
}

.my-table-count {
    font-size: 0.72rem;
    color: var(--text-3);
    margin-top: 2px;
}

.my-table-members {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px 8px;
    justify-items: center;
}

.my-table-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: none;
    border: none;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-2);
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
}

.my-table-member-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s var(--spring);
}

.my-table-member:active .my-table-member-avatar {
    transform: scale(0.9);
}

/* ==========================================================================
   GROUP INFO PANEL (full-screen overlay)
   ========================================================================== */

.group-panel {
    position: fixed;
    inset: 0;
    z-index: 200;
}

.group-panel-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 26, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.group-panel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 75vh;
    overflow-y: auto;
    background: var(--surface);
    border-top: 1px solid rgba(45, 212, 191, 0.15);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 24px 20px calc(24px + var(--safe-bottom));
    animation: panelSlideUp 0.35s var(--spring);
}

@keyframes panelSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.group-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.group-panel-title {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-1);
}

.group-panel-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.group-panel-close svg {
    width: 18px;
    height: 18px;
    color: var(--text-3);
}

.group-panel-members {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.group-panel-member {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.group-panel-member-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.group-panel-member-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-1);
}

/* ==========================================================================
   VIEWS
   ========================================================================== */

.view {
    display: none;
    flex: 1;
    overflow: hidden;
    padding-top: calc(var(--header-h) + var(--safe-top));
    padding-bottom: calc(var(--tab-h) + var(--safe-bottom));
}

.view.active {
    display: flex;
    flex-direction: column;
    animation: viewEnter 0.4s cubic-bezier(0.2, 0, 0, 1);
}

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

.view-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.section {
    padding: 20px 16px;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text-1) 75%, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

/* MI classified accent line */
.section-head::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    border-radius: 1px;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.2), rgba(94, 92, 230, 0.15));
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(45, 212, 191, 0.2);
    box-shadow: 0 0 8px rgba(45, 212, 191, 0.15);
}

/* ==========================================================================
   UPPDRAG CARDS
   ========================================================================== */

.uppdrag-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.uppdrag-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 16px 18px;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    display: flex;
    align-items: center;
    gap: 14px;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    animation: cardSlideIn 0.35s var(--ease) both;
}

.uppdrag-card:nth-child(1) { animation-delay: 0s; }
.uppdrag-card:nth-child(2) { animation-delay: 0.04s; }
.uppdrag-card:nth-child(3) { animation-delay: 0.08s; }
.uppdrag-card:nth-child(4) { animation-delay: 0.12s; }
.uppdrag-card:nth-child(5) { animation-delay: 0.16s; }
.uppdrag-card:nth-child(6) { animation-delay: 0.2s; }
.uppdrag-card:nth-child(7) { animation-delay: 0.24s; }
.uppdrag-card:nth-child(8) { animation-delay: 0.28s; }
.uppdrag-card:nth-child(n+9) { animation-delay: 0.3s; }

@keyframes cardSlideIn {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}

.uppdrag-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(45, 212, 191, 0.15);
    box-shadow: 0 0 20px rgba(45, 212, 191, 0.04), inset 0 0 0 1px rgba(45, 212, 191, 0.05);
}

.uppdrag-card:active {
    transform: scale(0.98);
    transition-duration: 0.1s;
    background: rgba(255, 255, 255, 0.06);
}

.uppdrag-card.selected {
    border-color: rgba(45, 212, 191, 0.25);
    background: rgba(45, 212, 191, 0.05);
}

.uppdrag-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(45, 212, 191, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
    transition: all 0.2s var(--ease);
}

.uppdrag-card.selected .uppdrag-card-icon {
    color: var(--accent);
    background: rgba(45, 212, 191, 0.15);
}

.uppdrag-card-icon svg { width: 20px; height: 20px; }

.uppdrag-card-body { flex: 1; min-width: 0; }

.uppdrag-card-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.uppdrag-card-desc {
    font-size: 0.8rem;
    color: var(--text-2);
    line-height: 1.4;
    white-space: pre-line;
    word-break: break-word;
    overflow-wrap: break-word;
}

.uppdrag-card-arrow {
    width: 20px;
    height: 20px;
    color: var(--text-3);
    flex-shrink: 0;
    transition: transform 0.2s var(--ease);
}

.uppdrag-card.selected .uppdrag-card-arrow {
    color: var(--accent);
    opacity: 0.7;
    transform: rotate(90deg);
}

/* ==========================================================================
   SUBMIT SECTION
   ========================================================================== */

.submit-section {
    animation: slideDown 0.3s var(--ease);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-3);
    transition: all 0.15s;
}

.close-btn:hover { background: var(--surface-2); color: var(--text-1); }
.close-btn svg { width: 18px; height: 18px; }

.selected-uppdrag-banner {
    padding: 8px 0;
    margin-bottom: 20px;
    font-size: 0.82rem;
    color: var(--text-2);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.selected-uppdrag-banner::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

/* ==========================================================================
   FORM STEPS
   ========================================================================== */

.form-step {
    margin-bottom: 24px;
}

.step-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-3);
    margin-bottom: 10px;
}

/* ==========================================================================
   GROUP CHIPS
   ========================================================================== */

.group-chips {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.group-chips::-webkit-scrollbar { display: none; }

.group-chip {
    padding: 10px 16px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-2);
    cursor: pointer;
    transition: all 0.25s var(--ease);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.group-chip:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-1);
}

.group-chip:active { transform: scale(0.96); transition-duration: 0.1s; }

.group-chip.selected {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
    font-weight: 600;
}

.group-chip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-3);
    margin-left: 5px;
}

.group-chip.selected .group-chip-count {
    background: rgba(10, 14, 26, 0.2);
    color: var(--bg);
}

@keyframes chipPop {
    0% { transform: scale(0.92); }
    60% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

/* ==========================================================================
   MEMBERS
   ========================================================================== */

.expand-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 0;
    font-size: 0.82rem;
    color: var(--text-3);
    transition: color 0.15s;
}

.expand-toggle:hover { color: var(--text-2); }

.expand-toggle svg:first-child { width: 16px; height: 16px; opacity: 0.6; }

.expand-toggle span { flex: 1; text-align: left; }

.expand-toggle .chevron {
    width: 14px;
    height: 14px;
    opacity: 0.4;
    transition: transform 0.2s var(--ease);
}

.expand-toggle.open .chevron { transform: rotate(180deg); }

.members-panel {
    padding: 8px 0;
    animation: slideDown 0.2s var(--ease);
}

.members-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.member-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: var(--radius-full);
    background: var(--surface-2);
    font-size: 0.8rem;
    color: var(--text-2);
}

.member-chip-remove {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: var(--text-3);
    cursor: pointer;
    transition: all 0.15s;
}

.member-chip-remove:hover { color: var(--error); }

/* Member Suggestions (predefined names from group) */
.member-suggestions {
    margin-bottom: 12px;
}

.suggestion-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-3);
    margin-bottom: 8px;
}

.suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.suggestion-chip {
    padding: 8px 16px;
    min-height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-2);
    cursor: pointer;
    transition: all 0.25s var(--ease);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.suggestion-chip:hover {
    color: var(--text-1);
    background: rgba(255, 255, 255, 0.06);
}

.suggestion-chip:active { transform: scale(0.96); transition-duration: 0.1s; }

.suggestion-chip.selected {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
    font-weight: 600;
}

.member-input-row {
    display: flex;
    gap: 6px;
}

.member-input-row .input { flex: 1; }

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
    transition: all 0.15s;
}

.icon-btn:hover { background: var(--surface-3); }
.icon-btn svg { width: 18px; height: 18px; }

/* ==========================================================================
   INPUTS
   ========================================================================== */

.input {
    width: 100%;
    padding: 12px 14px;
    min-height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-1);
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.input::placeholder { color: var(--text-3); opacity: 0.8; }

.input:focus {
    border-color: rgba(45, 212, 191, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

.char-count {
    text-align: right;
    font-size: 0.72rem;
    color: var(--text-3);
    margin-top: 4px;
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   CONTENT TYPE GRID
   ========================================================================== */

.type-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 14px 8px 12px;
    min-height: 64px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-3);
    font-size: 0.72rem;
    font-weight: 500;
    transition: all 0.25s var(--ease);
    -webkit-tap-highlight-color: transparent;
}

.type-btn svg { width: 22px; height: 22px; }

.type-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-1);
}

.type-btn:active { transform: scale(0.96); transition-duration: 0.1s; }

.type-btn.selected {
    background: rgba(45, 212, 191, 0.08);
    border-color: rgba(45, 212, 191, 0.25);
    color: var(--accent);
}

/* ==========================================================================
   CAPTURE / CAMERA BUTTONS
   ========================================================================== */

.capture-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}

.capture-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-1);
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s var(--ease);
    -webkit-tap-highlight-color: transparent;
}

.capture-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.capture-btn:active {
    transform: scale(0.97);
    transition-duration: 0.1s;
}

.capture-btn svg { width: 20px; height: 20px; }

.divider-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
    color: var(--text-3);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.divider-or::before,
.divider-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ==========================================================================
   UPLOAD ZONES
   ========================================================================== */

.upload-zone {
    border: 1.5px dashed rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 28px 16px;
    min-height: 100px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    -webkit-tap-highlight-color: transparent;
    background: transparent;
}

.upload-zone:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.02);
}

.upload-zone.drag-over {
    border-color: var(--accent);
    background: rgba(45, 212, 191, 0.05);
}

.upload-zone svg {
    width: 32px;
    height: 32px;
    color: var(--text-3);
    margin: 0 auto 10px;
    opacity: 0.5;
    transition: all 0.3s var(--ease);
}

.upload-zone:hover svg {
    color: var(--text-2);
    opacity: 0.7;
}

.upload-zone p {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-2);
    margin-bottom: 4px;
}

.upload-zone span {
    font-size: 0.72rem;
    color: var(--text-3);
    opacity: 0.8;
}

/* ==========================================================================
   FILE PREVIEW
   ========================================================================== */

.file-preview {
    margin-top: 12px;
}

.file-preview:empty { margin: 0; }

.preview-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.preview-thumb {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--surface-2);
}

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

.preview-name {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-size {
    font-size: 0.75rem;
    color: var(--text-3);
    margin-top: 2px;
}

.preview-remove {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-3);
    flex-shrink: 0;
    transition: all 0.15s;
}

.preview-remove:hover { background: rgba(239, 68, 68, 0.1); color: var(--error); }
.preview-remove svg { width: 16px; height: 16px; }

/* ==========================================================================
   PROGRESS BAR
   ========================================================================== */

.progress-bar {
    margin-bottom: 16px;
}

.progress-text {
    display: block;
    text-align: right;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-2);
    font-variant-numeric: tabular-nums;
    margin-bottom: 6px;
}

.progress-track {
    height: 4px;
    background: var(--surface-2);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 100%;
    background: var(--accent);
    border-radius: var(--radius-full);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
    will-change: transform;
}

/* ==========================================================================
   FORM MESSAGES
   ========================================================================== */

.form-msg {
    display: none;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.form-msg.visible { display: block; animation: slideDown 0.2s var(--ease); }

.form-msg.error {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.form-msg.success {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* ==========================================================================
   PRIMARY BUTTON
   ========================================================================== */

.btn-primary {
    width: 100%;
    padding: 15px 20px;
    border-radius: 13px;
    background: var(--accent);
    color: var(--bg);
    font-size: 0.88rem;
    font-weight: 650;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s var(--ease);
    -webkit-tap-highlight-color: transparent;
    margin-top: 12px;
    letter-spacing: -0.01em;
}

.btn-primary:hover:not(:disabled) {
    filter: brightness(1.08);
}

.btn-primary:active:not(:disabled) {
    transform: scale(0.975);
    transition-duration: 0.1s;
}

.btn-primary svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-primary:disabled {
    opacity: 0.35;
    filter: grayscale(0.5);
    cursor: not-allowed;
    background: var(--surface-2);
    color: var(--text-3);
}

/* ==========================================================================
   SCOREBOARD
   ========================================================================== */

.podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    padding: 20px 0 0;
    margin-bottom: 24px;
}

.podium-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 30%;
    max-width: 110px;
    animation: podiumRise 0.5s var(--spring) both;
}

.podium-slot.second { animation-delay: 0.1s; }
.podium-slot.first { animation-delay: 0.2s; }
.podium-slot.third { animation-delay: 0.05s; }

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

.podium-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 2px;
}

.first .podium-avatar {
    width: 56px;
    height: 56px;
    background: linear-gradient(145deg, #FFD700, #F0A500);
    color: #1a1a1a;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.25);
}

.second .podium-avatar {
    background: linear-gradient(135deg, #C0C0C0, #a0a0a0);
    color: #1a1a1a;
    box-shadow: 0 4px 16px rgba(192, 192, 192, 0.2);
}

.third .podium-avatar {
    background: linear-gradient(135deg, #CD7F32, #a0622a);
    color: #1a1a1a;
    box-shadow: 0 4px 16px rgba(205, 127, 50, 0.2);
}

.podium-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-1);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.podium-pts {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
}

.podium-bar {
    width: 100%;
    border-radius: 8px 8px 0 0;
    transition: height 0.5s var(--spring);
}

.first .podium-bar {
    height: 80px;
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.05));
}

.second .podium-bar {
    height: 56px;
    background: linear-gradient(180deg, rgba(192, 192, 192, 0.15), rgba(192, 192, 192, 0.03));
}

.third .podium-bar {
    height: 40px;
    background: linear-gradient(180deg, rgba(205, 127, 50, 0.15), rgba(205, 127, 50, 0.03));
}

.score-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.score-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    transition: background 0.2s var(--ease);
    animation: scoreSlideIn 0.35s var(--ease) both;
}

.score-item:nth-child(1) { animation-delay: 0s; }
.score-item:nth-child(2) { animation-delay: 0.03s; }
.score-item:nth-child(3) { animation-delay: 0.06s; }
.score-item:nth-child(4) { animation-delay: 0.09s; }
.score-item:nth-child(5) { animation-delay: 0.12s; }
.score-item:nth-child(6) { animation-delay: 0.15s; }
.score-item:nth-child(n+7) { animation-delay: 0.18s; }

@keyframes scoreSlideIn {
    from { opacity: 0; transform: translateX(-6px); }
    to { opacity: 1; transform: translateX(0); }
}

.score-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.score-item:first-child { border-radius: var(--radius-sm) var(--radius-sm) 2px 2px; }
.score-item:last-child { border-radius: 2px 2px var(--radius-sm) var(--radius-sm); }
.score-item:only-child { border-radius: var(--radius-sm); }

.score-rank {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    background: var(--surface-2);
    color: var(--text-3);
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.score-item:nth-child(1) .score-rank { background: rgba(255,215,0,0.15); color: var(--gold); }
.score-item:nth-child(2) .score-rank { background: rgba(192,192,192,0.12); color: var(--silver); }
.score-item:nth-child(3) .score-rank { background: rgba(205,127,50,0.12); color: var(--bronze); }

.score-name {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.score-points {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   FEED
   ========================================================================== */

.feed-filters {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.feed-filters::-webkit-scrollbar { display: none; }

.filter-chip {
    padding: 7px 14px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-2);
    white-space: nowrap;
    transition: all 0.25s var(--ease);
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.filter-chip:hover { background: rgba(255, 255, 255, 0.06); color: var(--text-1); }

.filter-chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
    font-weight: 600;
}

.filter-chip-group {
    border-color: rgba(45, 212, 191, 0.2) !important;
}

.filter-chip-group.active {
    background: rgba(45, 212, 191, 0.12) !important;
    border-color: rgba(45, 212, 191, 0.3) !important;
    color: #2DD4BF !important;
}

.filter-chip-uppdrag {
    border-color: rgba(139, 92, 246, 0.15) !important;
}

.filter-chip-uppdrag.active {
    background: rgba(139, 92, 246, 0.15) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
    color: #A78BFA !important;
}

.filter-sep {
    display: flex;
    align-items: center;
    color: rgba(255,255,255,0.1);
    font-size: 0.8rem;
    flex-shrink: 0;
    padding: 0 2px;
}

.feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 8px;
}

.feed-card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
    animation: feedIn 0.4s var(--ease) both;
}

.feed-card:nth-child(1) { animation-delay: 0s; }
.feed-card:nth-child(2) { animation-delay: 0.03s; }
.feed-card:nth-child(3) { animation-delay: 0.06s; }
.feed-card:nth-child(4) { animation-delay: 0.09s; }
.feed-card:nth-child(5) { animation-delay: 0.12s; }
.feed-card:nth-child(6) { animation-delay: 0.15s; }
.feed-card:nth-child(n+7) { animation-delay: 0.18s; }

@keyframes feedIn {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.feed-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.feed-card-media {
    width: 100%;
    aspect-ratio: auto;
    min-height: 120px;
    max-height: 400px;
    object-fit: cover;
    background: var(--surface-2);
    cursor: pointer;
    border-radius: 0;
    transition: opacity 0.3s;
}

.feed-card-media:hover {
    opacity: 0.9;
}

.feed-card-video {
    width: 100%;
    max-height: 400px;
    display: block;
    object-fit: contain;
    background: var(--bg);
    border-radius: 0;
}

.feed-card-text {
    padding: 16px 14px;
    font-size: 0.88rem;
    color: var(--text-2);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: 0.01em;
    min-height: 80px;
}

.feed-card-quote {
    display: block;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--accent);
    opacity: 0.35;
    margin-bottom: 6px;
    font-family: Georgia, serif;
}

.feed-card-file {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feed-card-file svg {
    width: 28px;
    height: 28px;
    color: var(--accent);
    flex-shrink: 0;
}

.feed-card-file span {
    font-size: 0.82rem;
    font-weight: 500;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-card-footer {
    padding: 9px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.feed-card-group {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-card-uppdrag {
    font-size: 0.55rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(45, 212, 191, 0.08);
    color: var(--accent);
    white-space: nowrap;
}

.feed-card-time {
    font-size: 0.65rem;
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
    margin-left: auto;
}

.feed-card-hashtag {
    padding: 4px 12px 8px;
    font-size: 0.58rem;
    font-weight: 500;
    color: var(--text-3);
    text-align: right;
    letter-spacing: 0.03em;
    opacity: 0.7;
}

/* ==========================================================================
   EMPTY STATES
   ========================================================================== */

.empty-state {
    text-align: center;
    padding: 56px 24px;
    color: var(--text-3);
    animation: emptyFade 0.6s var(--ease);
}

@keyframes emptyFade {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.empty-state svg {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    opacity: 0.6;
    color: var(--accent);
    filter: drop-shadow(0 0 12px rgba(45, 212, 191, 0.3));
    animation: emptyFloat 4s ease-in-out infinite;
}

@keyframes emptyFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

.empty-state p {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.empty-state span {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-3);
}

/* ==========================================================================
   TAB BAR
   ========================================================================== */

.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: calc(var(--tab-h) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: rgba(10, 14, 26, 0.92);
    backdrop-filter: blur(30px) saturate(1.5);
    -webkit-backdrop-filter: blur(30px) saturate(1.5);
    border-top: 1px solid rgba(45, 212, 191, 0.08);
    display: flex;
    justify-content: space-around;
    align-items: stretch;
}

.tab-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.25), rgba(94, 92, 230, 0.2), transparent);
}

.tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    gap: 4px;
    color: var(--text-2);
    transition: color 0.15s;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.tab svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s var(--spring), filter 0.2s var(--ease);
}

.tab span {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.tab.active {
    color: var(--accent);
}

.tab.active svg {
    transform: scale(1.15);
    filter: drop-shadow(0 0 6px rgba(45, 212, 191, 0.4));
}

.tab::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 36px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, var(--accent), #5E5CE6);
    transition: transform 0.25s var(--spring);
    box-shadow: 0 0 10px rgba(45, 212, 191, 0.4);
}

.tab.active::before {
    transform: translateX(-50%) scaleX(1);
}

/* ==========================================================================
   KÖRSCHEMA
   ========================================================================== */

.schema-date {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-3);
}

.schema-now {
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(45, 212, 191, 0.04);
    border: 1px solid rgba(45, 212, 191, 0.1);
    margin-bottom: 24px;
}

.schema-now-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.schema-now-label::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulseSchema 2s ease-in-out infinite;
}

@keyframes pulseSchema {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.schema-now-event {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-1);
}

.schema-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.schema-section-header {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-3);
    padding: 16px 0 8px;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.schema-section-header:first-child {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}

.schema-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    position: relative;
}

.schema-item.is-now {
    background: rgba(45, 212, 191, 0.04);
    margin: 4px -16px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
}

.schema-item.is-past {
    opacity: 0.35;
}

.schema-item.is-break {
    opacity: 0.5;
}

.schema-item.is-break .schema-title {
    font-weight: 500;
    color: var(--text-2);
}

.schema-time {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-2);
    min-width: 44px;
    font-variant-numeric: tabular-nums;
    padding-top: 1px;
}

.schema-item.is-now .schema-time {
    color: var(--accent);
    font-weight: 700;
}

.schema-content {
    flex: 1;
}

.schema-title {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 1px;
}

.schema-desc {
    font-size: 0.72rem;
    color: var(--text-3);
}

/* ==========================================================================
   MY GROUP VIEW (Min grupp)
   ========================================================================== */

.mg-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem;
    margin-bottom: 0.8rem;
}

.mg-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.9rem;
}

.mg-avatar {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #5E5CE6);
    flex-shrink: 0;
}

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

.mg-title {
    font-size: 1.1rem;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mg-subtitle {
    font-size: 0.76rem;
    color: var(--text-3);
    margin-top: 0.1rem;
}

.mg-switch-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text-3);
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s;
}

.mg-switch-btn:hover { color: var(--accent); border-color: var(--accent-dim); background: var(--accent-dim); }
.mg-switch-btn svg { width: 16px; height: 16px; }

.mg-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.mg-stat {
    text-align: center;
    padding: 0.55rem 0.3rem;
    background: rgba(255,255,255,0.02);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.03);
}

.mg-stat-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.mg-stat-label {
    font-size: 0.58rem;
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.2rem;
}

/* Progress bar */
.mg-progress-wrap { margin-top: 0.1rem; }
.mg-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    color: var(--text-3);
    margin-bottom: 0.3rem;
    font-weight: 600;
}
.mg-progress-bar {
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    overflow: hidden;
}
.mg-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #5E5CE6);
    border-radius: 3px;
    transition: width 0.5s var(--ease);
}

/* Section titles */
.mg-section { margin-bottom: 0.8rem; }
.mg-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-3);
    margin-bottom: 0.5rem;
    padding-left: 0.1rem;
}

/* Member cards with activity */
.mg-members-list { display: flex; flex-direction: column; gap: 0.4rem; }

.mg-member-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.8rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.15s;
}

.mg-member-row:hover { border-color: rgba(255,255,255,0.1); }

.mg-member-avatar {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.mg-member-info { flex: 1; min-width: 0; }
.mg-member-name { font-size: 0.84rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mg-member-activity { font-size: 0.68rem; color: var(--text-3); margin-top: 0.1rem; }

.mg-member-badges { display: flex; gap: 0.25rem; flex-shrink: 0; }
.mg-member-badge {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    font-variant-numeric: tabular-nums;
}
.mg-badge-active { background: var(--accent-dim); color: var(--accent); }
.mg-badge-zero { background: rgba(255,255,255,0.04); color: var(--text-3); }

/* Activity feed */
.mg-activity-feed { display: flex; flex-direction: column; gap: 0.4rem; }

.mg-feed-item {
    display: flex;
    gap: 0.6rem;
    padding: 0.65rem 0.8rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.mg-feed-type {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mg-feed-type svg { width: 16px; height: 16px; }
.mg-feed-type.t-text { background: var(--accent-dim); color: var(--accent); }
.mg-feed-type.t-image { background: rgba(59,130,246,0.12); color: #3b82f6; }
.mg-feed-type.t-video { background: rgba(139,92,246,0.12); color: #8b5cf6; }
.mg-feed-type.t-file { background: rgba(245,158,11,0.12); color: #f59e0b; }

.mg-feed-content { flex: 1; min-width: 0; }
.mg-feed-title { font-size: 0.82rem; font-weight: 600; }
.mg-feed-meta { font-size: 0.68rem; color: var(--text-3); margin-top: 0.1rem; }
.mg-feed-preview { font-size: 0.76rem; color: var(--text-2); margin-top: 0.25rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mg-feed-thumb { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }

.mg-feed-empty {
    text-align: center;
    padding: 1.5rem 1rem;
    color: var(--text-3);
    font-size: 0.82rem;
}

/* Switch group modal */
.mg-switch-list { display: flex; flex-direction: column; gap: 0.3rem; max-height: 300px; overflow-y: auto; }
.mg-switch-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.7rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-1);
    width: 100%;
    text-align: left;
}
.mg-switch-item:hover { border-color: var(--accent-dim); background: var(--accent-dim); }
.mg-switch-item.current { border-color: rgba(45,212,191,0.3); background: rgba(45,212,191,0.06); }
.mg-switch-avatar {
    width: 28px; height: 28px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 800; color: #fff; flex-shrink: 0;
}
.mg-switch-meta { font-size: 0.68rem; color: var(--text-3); font-weight: 400; margin-left: auto; }

/* ==========================================================================
   INFO VIEW
   ========================================================================== */

.info-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
}

.info-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    color: var(--accent);
    flex-shrink: 0;
}

.info-card-icon svg {
    width: 20px;
    height: 20px;
}

.info-card-content h3 {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.info-card-content p {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-1);
    margin-top: 0.1rem;
}

/* Quick links section */
.quick-links-section {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}
.quick-link-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: transform 0.15s, background 0.15s;
    border: 1px solid rgba(255,255,255,0.08);
}
.quick-link-btn:active { transform: scale(0.97); }
.quick-link-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.quick-link-teal { background: rgba(45,212,191,0.08); border-color: rgba(45,212,191,0.15); }
.quick-link-teal svg { color: #2dd4bf; }
.quick-link-blue { background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.15); }
.quick-link-blue svg { color: #3b82f6; }
.quick-link-purple { background: rgba(139,92,246,0.08); border-color: rgba(139,92,246,0.15); }
.quick-link-purple svg { color: #8b5cf6; }
.quick-link-green { background: rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.15); }
.quick-link-green svg { color: #22c55e; }
.quick-link-orange { background: rgba(249,115,22,0.08); border-color: rgba(249,115,22,0.15); }
.quick-link-orange svg { color: #f97316; }
.quick-link-red { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.15); }
.quick-link-red svg { color: #ef4444; }
.quick-link-yellow { background: rgba(234,179,8,0.08); border-color: rgba(234,179,8,0.15); }
.quick-link-yellow svg { color: #eab308; }
.quick-link-pink { background: rgba(236,72,153,0.08); border-color: rgba(236,72,153,0.15); }
.quick-link-pink svg { color: #ec4899; }

.info-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-1);
}

.info-faq {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.info-faq-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.9rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.info-faq-num {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    background: var(--accent-dim);
    color: var(--accent);
    flex-shrink: 0;
}

.info-faq-item strong {
    font-size: 0.88rem;
    color: var(--text-1);
    display: block;
}

.info-faq-item p {
    font-size: 0.78rem;
    color: var(--text-3);
    margin-top: 0.2rem;
    line-height: 1.5;
}

/* ==========================================================================
   SCORE CELEBRATION OVERLAY
   ========================================================================== */

.score-celebrate {
    position: fixed;
    top: calc(var(--header-h) + var(--safe-top) + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    z-index: 500;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s var(--spring);
    pointer-events: none;
}

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

.score-celebrate-inner {
    background: rgba(10, 14, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(45, 212, 191, 0.25);
    border-radius: 16px;
    padding: 14px 24px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 20px rgba(45, 212, 191, 0.1);
}

.score-celebrate-delta {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 20px rgba(45, 212, 191, 0.4);
    animation: scorePop 0.5s var(--spring);
}

@keyframes scorePop {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.score-celebrate-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-1);
    margin-top: 2px;
}

.score-celebrate-total {
    font-size: 0.7rem;
    color: var(--text-3);
    margin-top: 4px;
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   PERSISTENT RANK BADGE
   ========================================================================== */

.rank-badge {
    position: fixed;
    bottom: calc(var(--tab-h) + var(--safe-bottom) + 10px);
    right: 12px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: rgba(10, 14, 26, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(45, 212, 191, 0.2);
    border-radius: 99px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    animation: rankBadgeIn 0.5s var(--spring);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.rank-badge:active { transform: scale(0.95); }

@keyframes rankBadgeIn {
    from { opacity: 0; transform: translateY(10px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.rank-badge-pos {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--accent);
}

.rank-badge-pts {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   APP FOOTER
   ========================================================================== */

.app-footer {
    margin-top: 2rem;
    padding: 1.2rem 0 2rem;
    text-align: center;
}

.app-footer-line {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), rgba(94, 92, 230, 0.5));
    margin: 0 auto 1rem;
    border-radius: 1px;
}

.app-footer p {
    font-size: 0.72rem;
    color: var(--text-3);
    margin-bottom: 0.3rem;
}

.app-footer-credit {
    font-size: 0.65rem !important;
    color: rgba(255,255,255,0.2) !important;
}

.app-footer-credit a {
    color: rgba(255,255,255,0.3);
    text-decoration: none;
    transition: color 0.15s;
}

.app-footer-credit a:hover {
    color: var(--accent);
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s var(--ease);
}

.lightbox.open { display: flex; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: max(16px, var(--safe-top));
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.lightbox img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    object-fit: contain;
    transition: transform 0.2s ease;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.lightbox-swipe-hint {
    position: absolute;
    bottom: max(24px, var(--safe-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
    pointer-events: none;
    animation: lbHintFade 2s ease-in-out forwards;
}

@keyframes lbHintFade {
    0% { opacity: 0; transform: translateX(-50%) translateY(8px); }
    20% { opacity: 1; transform: translateX(-50%) translateY(0); }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* Feed content type chips */
.feed-type-chips {
    display: flex;
    gap: 0.4rem;
    padding: 0 0 0.6rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.feed-type-chips::-webkit-scrollbar { display: none; }

.feed-type-chip {
    padding: 0.3rem 0.7rem;
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: var(--text-3);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.feed-type-chip:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-2);
}

.feed-type-chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}

/* New feed item slide-in animation */
.feed-card.feed-new {
    animation: feedSlideIn 0.4s ease both;
}

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

/* ==========================================================================
   TOAST
   ========================================================================== */

/* ==========================================================================
   OFFLINE BANNER
   ========================================================================== */

.offline-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background: var(--error);
    color: #fff;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: offlineSlideIn 0.3s var(--ease);
}

@keyframes offlineSlideIn {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.toast {
    position: fixed;
    bottom: calc(var(--tab-h) + var(--safe-bottom) + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    background: rgba(30, 35, 55, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-1);
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 500;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s var(--ease);
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

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

/* ==========================================================================
   SUCCESS OVERLAY
   ========================================================================== */

/* ==========================================================================
   SPLASH SCREEN
   ========================================================================== */

.splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.splash-content { text-align: center; }

.splash-logo {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.15), rgba(94, 92, 230, 0.1));
    border-radius: 16px;
    border: 1px solid rgba(45, 212, 191, 0.2);
    animation: splashLogoPulse 1.5s ease-in-out infinite;
}

.splash-logo svg { width: 28px; height: 28px; }

@keyframes splashLogoPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); transform: scale(1); }
    50% { box-shadow: 0 0 24px 4px rgba(45, 212, 191, 0.2); transform: scale(1.05); }
}

.splash-title {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    color: var(--text-1);
}

.splash-sub {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.2em;
    margin-top: 2px;
    opacity: 0.6;
}

.splash-loader {
    width: 120px;
    height: 2px;
    background: rgba(255,255,255,0.06);
    border-radius: 1px;
    margin: 20px auto 0;
    overflow: hidden;
}

.splash-loader-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), #5E5CE6);
    border-radius: 1px;
    animation: splashLoad 1.2s ease-in-out forwards;
}

@keyframes splashLoad {
    0% { width: 0%; }
    60% { width: 80%; }
    100% { width: 100%; }
}

/* ==========================================================================
   SUCCESS OVERLAY — MI THEMED
   ========================================================================== */

.success-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(6, 8, 15, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    align-items: center;
    justify-content: center;
    animation: successFadeIn 0.25s var(--ease);
}

@keyframes successFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.success-overlay.visible { display: flex; }

/* Expanding rings */
.success-rings {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.success-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(45, 212, 191, 0.15);
    animation: successRingExpand 1.5s ease-out forwards;
}

.success-ring.r1 { width: 100px; height: 100px; animation-delay: 0.1s; }
.success-ring.r2 { width: 200px; height: 200px; animation-delay: 0.25s; }
.success-ring.r3 { width: 340px; height: 340px; animation-delay: 0.4s; }

@keyframes successRingExpand {
    0% { transform: scale(0); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

.success-content {
    text-align: center;
    position: relative;
    z-index: 1;
    animation: successPop 0.5s var(--spring);
}

@keyframes successPop {
    from { opacity: 0; transform: scale(0.8) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.success-icon-wrap {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(45, 212, 191, 0.1);
    border: 2px solid rgba(45, 212, 191, 0.3);
    border-radius: 50%;
    animation: successIconGlow 1.5s ease-in-out infinite;
}

@keyframes successIconGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
    50% { box-shadow: 0 0 20px 6px rgba(45, 212, 191, 0.2); }
}

.success-check {
    width: 36px;
    height: 36px;
    color: var(--accent);
    animation: checkDraw 0.5s 0.15s var(--ease) both;
}

@keyframes checkDraw {
    0% { transform: scale(0) rotate(-10deg); opacity: 0; }
    60% { transform: scale(1.1) rotate(2deg); }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

.success-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 6px;
    animation: fadeIn 0.3s 0.2s var(--ease) both;
}

.success-content p {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-1);
    letter-spacing: -0.02em;
    animation: fadeIn 0.3s 0.25s var(--ease) both;
}

.success-sub {
    font-size: 0.82rem;
    color: var(--text-3);
    margin-top: 6px;
    animation: fadeIn 0.3s 0.35s var(--ease) both;
}

/* ==========================================================================
   COUNTDOWN RING
   ========================================================================== */

.countdown-ring-wrap {
    position: relative;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.countdown-ring { width: 100%; height: 100%; }
.countdown-ring-fill { transition: stroke-dashoffset 1s linear; }
.countdown-ring-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; }

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

.countdown-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255,255,255,0.04);
}

.countdown-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #5E5CE6);
    transition: width 1s linear;
    border-radius: 1px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.app-footer {
    padding: 28px 16px 20px;
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-3);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    margin-top: 20px;
    opacity: 0.8;
}

.app-footer a {
    color: var(--text-3);
    transition: color 0.2s;
    text-decoration: none;
}

.app-footer a:hover { color: var(--text-2); text-decoration: none; }

.footer-credit {
    margin-top: 5px;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.18);
    letter-spacing: 0.5px;
    opacity: 0.3;
}

/* ==========================================================================
   LOADING SKELETONS
   ========================================================================== */

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-card,
.skeleton-score {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.skeleton-score {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
}

.skeleton-icon,
.skeleton-rank {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite ease-in-out;
    flex-shrink: 0;
}

.skeleton-rank {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.skeleton-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-line {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite ease-in-out;
}

.skeleton-line.w20 { width: 20%; }
.skeleton-line.w30 { width: 30%; }
.skeleton-line.w40 { width: 40%; }
.skeleton-line.w50 { width: 50%; }
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w70 { width: 70%; }
.skeleton-line.w80 { width: 80%; }

/* ==========================================================================
   VIEW TRANSITIONS
   ========================================================================== */

.view {
    will-change: opacity;
}

.view.active {
    animation: viewFadeIn 0.25s var(--ease);
}

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

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

@media (max-width: 360px) {
    .tab span {
        font-size: 0.58rem;
        letter-spacing: 0;
    }
    .tab svg {
        width: 21px;
        height: 21px;
    }
    .tab {
        gap: 2px;
    }
}

@media (min-width: 480px) {
    .feed-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (min-width: 768px) {
    .section { padding: 24px 20px; }

    .feed-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
    }

    .podium-slot { max-width: 130px; }

    .view-scroll {
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 1024px) {
    .feed-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 14px;
    }

    .view-scroll {
        max-width: 900px;
    }

    .uppdrag-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ==========================================================================
   SCROLLBAR
   ========================================================================== */

.view-scroll::-webkit-scrollbar { width: 4px; }
.view-scroll::-webkit-scrollbar-track { background: transparent; }
.view-scroll::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 4px; }

/* ==========================================================================
   REACTIONS
   ========================================================================== */

.feed-card-react {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    font-size: 0.8rem;
    margin-top: 8px;
}

.feed-card-react:hover {
    background: rgba(255, 255, 255, 0.06);
}

.feed-card-react.reacted {
    background: rgba(255, 70, 70, 0.08);
    border-color: rgba(255, 70, 70, 0.15);
}

.feed-card-react.react-pop .react-icon {
    animation: reactPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes reactPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
}

.react-icon {
    font-size: 0.9rem;
    line-height: 1;
}

.react-count {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-variant-numeric: tabular-nums;
}

.feed-card-react.reacted .react-count {
    color: rgba(255, 100, 100, 0.7);
}

/* ==========================================================================
   ANNOUNCEMENT BANNER
   ========================================================================== */

.announcement-bar {
    position: sticky;
    top: 56px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.announcement-bar.type-info {
    background: rgba(45, 212, 191, 0.12);
    color: #2DD4BF;
}

.announcement-bar.type-warning {
    background: rgba(255, 214, 10, 0.12);
    color: #FFD60A;
}

.announcement-bar.type-success {
    background: rgba(50, 215, 75, 0.12);
    color: #32D74B;
}

.announcement-bar.announce-in {
    animation: announceIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes announceIn {
    from { opacity: 0; transform: translateY(-100%); }
    to { opacity: 1; transform: translateY(0); }
}

.announcement-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.announcement-text {
    flex: 1;
    line-height: 1.4;
}

/* ==========================================================================
   UPPDRAG SUBMISSION COUNT
   ========================================================================== */

.uppdrag-card-submissions {
    font-size: 0.7rem;
    color: rgba(45, 212, 191, 0.6);
    margin-top: 4px;
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   PULL TO REFRESH
   ========================================================================== */

.pull-indicator {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(45, 212, 191, 0.15);
    border: 1px solid rgba(45, 212, 191, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s;
    backdrop-filter: blur(10px);
}

.pull-indicator svg {
    width: 18px;
    height: 18px;
    color: #2DD4BF;
}

/* ==========================================================================
   COUNTDOWN TIMER
   ========================================================================== */

.countdown-bar {
    position: sticky;
    top: 56px;
    z-index: 89;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.08), rgba(45, 212, 191, 0.14));
    border-bottom: 1px solid rgba(45, 212, 191, 0.2);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    animation: announceIn 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.countdown-bar.urgent {
    background: linear-gradient(135deg, rgba(255, 159, 10, 0.08), rgba(255, 159, 10, 0.15));
    border-color: rgba(255, 159, 10, 0.25);
    box-shadow: 0 4px 20px rgba(255, 159, 10, 0.08);
}

.countdown-bar.critical {
    background: linear-gradient(135deg, rgba(255, 69, 58, 0.1), rgba(255, 69, 58, 0.18));
    border-color: rgba(255, 69, 58, 0.3);
    animation: countdownPulse 0.5s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(255, 69, 58, 0.12);
}

@keyframes countdownPulse {
    0%, 100% { opacity: 1; box-shadow: 0 4px 20px rgba(255, 69, 58, 0.12); }
    50% { opacity: 0.85; box-shadow: 0 4px 30px rgba(255, 69, 58, 0.25); }
}

.countdown-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.countdown-time {
    font-size: 1.6rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    color: #2DD4BF;
    letter-spacing: 0.04em;
    text-shadow: 0 0 12px rgba(45, 212, 191, 0.3);
    font-family: 'SF Mono', 'Menlo', 'Consolas', monospace, var(--font);
}

.countdown-ms {
    font-size: 0.85em;
    opacity: 0.6;
    font-weight: 700;
}

.countdown-bar.urgent .countdown-time {
    color: #FF9F0A;
    text-shadow: 0 0 12px rgba(255, 159, 10, 0.3);
}

.countdown-bar.critical .countdown-time {
    color: #FF453A;
    text-shadow: 0 0 16px rgba(255, 69, 58, 0.4);
}

.countdown-bar.critical .countdown-ms {
    opacity: 0.8;
}

/* ==========================================================================
   SCOREBOARD RANK ANIMATIONS
   ========================================================================== */

.score-item.rank-up {
    animation: rankUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.score-item.rank-down {
    animation: rankDown 0.4s ease;
}

.score-item.rank-new {
    animation: rankNew 0.5s ease;
}

@keyframes rankUp {
    0% { transform: translateX(-8px); opacity: 0.5; background: rgba(50, 215, 75, 0.08); }
    50% { background: rgba(50, 215, 75, 0.12); }
    100% { transform: translateX(0); opacity: 1; background: transparent; }
}

@keyframes rankDown {
    0% { transform: translateX(8px); opacity: 0.5; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes rankNew {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   VIEW TRANSITION POLISH
   ========================================================================== */

.view {
    transition: opacity 0.15s ease;
}

.view:not(.active) {
    pointer-events: none;
}

/* Staggered card entrance animation */
.uppdrag-card {
    animation: cardStagger 0.3s ease both;
}

.uppdrag-card:nth-child(1) { animation-delay: 0s; }
.uppdrag-card:nth-child(2) { animation-delay: 0.05s; }
.uppdrag-card:nth-child(3) { animation-delay: 0.1s; }
.uppdrag-card:nth-child(4) { animation-delay: 0.15s; }
.uppdrag-card:nth-child(5) { animation-delay: 0.2s; }

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

/* Feed card entrance */
.feed-card {
    animation: feedCardIn 0.25s ease both;
}

@keyframes feedCardIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

/* Score item stagger */
.score-item {
    animation: scoreStagger 0.2s ease both;
}

.score-item:nth-child(1) { animation-delay: 0s; }
.score-item:nth-child(2) { animation-delay: 0.03s; }
.score-item:nth-child(3) { animation-delay: 0.06s; }
.score-item:nth-child(4) { animation-delay: 0.09s; }
.score-item:nth-child(5) { animation-delay: 0.12s; }
.score-item:nth-child(6) { animation-delay: 0.15s; }
.score-item:nth-child(7) { animation-delay: 0.18s; }
.score-item:nth-child(8) { animation-delay: 0.21s; }

@keyframes scoreStagger {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Podium pulse when visible */
.podium-slot.first .podium-bar {
    animation: podiumGlow 3s ease-in-out infinite;
}

@keyframes podiumGlow {
    0%, 100% { box-shadow: 0 0 0 rgba(255, 215, 0, 0); }
    50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.15); }
}

/* Smooth active tab indicator */
.tab.active svg {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: scale(1.1);
}

.tab:active svg {
    transform: scale(0.9);
}

/* Success overlay enhancement */
.success-overlay.visible .success-check {
    animation: successBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successBounce {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* Schema now box pulse */
.schema-now {
    position: relative;
}

.schema-now::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: #2DD4BF;
    border-radius: 2px;
    animation: schemaPulse 2s ease-in-out infinite;
}

@keyframes schemaPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ==========================================================================
   MY GROUP INDICATOR
   ========================================================================== */

.my-group-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin-bottom: 12px;
    background: rgba(45, 212, 191, 0.08);
    border: 1px solid rgba(45, 212, 191, 0.15);
    border-radius: var(--radius-sm);
    animation: cardStagger 0.3s ease;
}

.my-group-rank {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.my-group-name {
    flex: 1;
    font-weight: 600;
    font-size: 0.9rem;
}

.my-group-pts {
    font-weight: 700;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.score-item.my-group {
    background: rgba(45, 212, 191, 0.06);
    border-left: 3px solid var(--accent);
    padding-left: 13px;
    border-radius: var(--radius-sm);
}

/* ==========================================================================
   SHARE BUTTON
   ========================================================================== */

.feed-card-share {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    font-size: 0.75rem;
    color: var(--text-3);
    margin-top: 8px;
    margin-left: 6px;
}

.feed-card-share:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-2);
}

.feed-card-share svg {
    width: 14px;
    height: 14px;
}
