/* CSS Variables - Theme Configuration */
:root {
    /* Calm Warmth Dark Theme */
    --bg-color: #0D0D0F;
    --surface-color: #1A1A1E;
    --surface-elevated: #242428;
    --border-color: #2E2E33;
    --border-light: #3E3E43;

    /* Text Colors */
    --text-color: #FAFAFA;
    --text-secondary: #A1A1AA;
    --hint-color: #A1A1AA;
    --text-muted: #71717A;

    /* Primary Accent (Warm Coral) */
    --primary-color: #FF6B6B;
    --primary-soft: rgba(255, 107, 107, 0.12);
    --button-color: #FF6B6B;
    --button-text-color: #ffffff;
    --link-color: #FF6B6B;

    /* Secondary & Semantic */
    --secondary-color: #FFA07A;
    --secondary-bg: #242428;
    --success-color: #4ADE80;
    --warning-color: #FBBF24;
    --danger-color: #EF4444;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #FF6B6B, #FFA07A);
    --gradient-start: #FF6B6B;
    --gradient-end: #FFA07A;
    --gradient-alt-start: #FF6B6B;
    --gradient-alt-end: #FFA07A;
    --gradient-green-start: #4ADE80;
    --gradient-green-end: #22C55E;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 24px;
    --space-2xl: 32px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 4px 24px rgba(255, 107, 107, 0.3);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
    --transition-bounce: 0.25s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
/* Base Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

::selection {
    background: var(--button-color);
    color: white;
}

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

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

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes ripple {
    to { transform: scale(4); opacity: 0; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, var(--surface-color) 25%, var(--surface-elevated) 50%, var(--surface-color) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-text.short { width: 60%; }
.skeleton-text.medium { width: 80%; }
.skeleton-text.long { width: 100%; }

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.skeleton-card {
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 12px;
}

/* Loading */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    flex-direction: column;
    gap: 12px;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: var(--radius-full);
    animation: spin 0.8s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
}

.loading-dots {
    display: flex;
    gap: 6px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: var(--radius-full);
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0s; }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--hint-color);
    animation: fadeIn 0.5s ease;
}

.empty-state p {
    font-size: 15px;
    line-height: 1.5;
}

.empty-state-icon {
    font-size: 56px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.empty-illustration {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    opacity: 0.4;
}

.empty-illustration svg {
    width: 100%;
    height: 100%;
}

/* Icon system */
.icon-xs { width: 12px; height: 12px; }
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 32px; height: 32px; }
.icon-2xl { width: 48px; height: 48px; }

/* Lucide icons - before initialization */
i[data-lucide] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Lucide icons - after initialization (becomes SVG) */
svg.lucide {
    display: inline-block;
    vertical-align: middle;
}

/* Icon sizes for SVGs */
svg.icon-xs { width: 12px; height: 12px; }
svg.icon-sm { width: 16px; height: 16px; }
svg.icon-md { width: 20px; height: 20px; }
svg.icon-lg { width: 24px; height: 24px; }
svg.icon-xl { width: 32px; height: 32px; }
svg.icon-2xl { width: 48px; height: 48px; }

/* Ensure SVGs inherit color */
svg.lucide {
    stroke: currentColor;
    fill: none;
}

/* Section title */
.section-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--border-color);
    position: relative;
    color: var(--text-color);
}

/* Character count */
.char-count {
    text-align: right;
    font-size: 13px;
    color: var(--hint-color);
    margin-bottom: 12px;
}

/* HTMX */
.htmx-request .spinner {
    display: block;
}
/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    background: var(--gradient-primary);
    color: var(--button-text-color);
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 32px rgba(255, 107, 107, 0.4);
}

.btn:hover::before {
    opacity: 1;
}

.btn:active {
    transform: scale(0.97);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-xl);
    background: var(--surface-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    background: var(--surface-elevated);
    border-color: var(--border-light);
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: scale(0.97);
}

.btn-ghost {
    background: transparent;
    color: var(--primary-color);
    padding: var(--space-md) var(--space-xl);
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-ghost:hover {
    background: var(--primary-soft);
}

.btn-sm {
    padding: var(--space-sm) 14px;
    font-size: 13px;
    white-space: nowrap;
    border-radius: var(--radius-sm);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    background: var(--button-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Form Elements */
.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface-color);
    color: var(--text-color);
    font-size: 15px;
    transition: border-color var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--button-color);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* FAB */
.fab {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-size: 28px;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 50;
}

.fab:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 32px rgba(255, 107, 107, 0.5);
}

.fab:active {
    transform: scale(0.95);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--surface-color);
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 20px;
    padding-top: var(--space-md);
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-content.modal-fullscreen {
    max-height: 95vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-content::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    background: var(--border-light);
    border-radius: 2px;
    margin: 0 auto var(--space-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

.modal-close {
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    font-size: 18px;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--border-color);
    border-color: var(--border-light);
    transform: rotate(90deg);
    color: var(--text-color);
}

/* Forms */
textarea, input[type="text"], input[type="number"] {
    width: 100%;
    min-height: 120px;
    padding: 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-family: inherit;
    resize: none;
    margin-bottom: var(--space-md);
    background: var(--bg-color);
    color: var(--text-color);
    transition: all var(--transition-fast);
}

input[type="text"], input[type="number"] {
    min-height: auto;
}

textarea:focus, input[type="text"]:focus, input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

textarea::placeholder, input::placeholder {
    color: var(--text-muted);
}

/* Tags */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--surface-elevated);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.tag i,
.tag svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.tag:hover {
    background: var(--border-color);
    border-color: var(--border-light);
    transform: translateY(-1px);
}

.tag.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

.tag.active i,
.tag.active svg {
    color: white;
    stroke: white;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface-elevated);
    color: var(--text-color);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 200;
    animation: fadeInUp 0.3s ease;
    border: 1px solid var(--border-color);
}

/* Offline indicator */
.offline-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--danger-color);
    color: white;
    padding: var(--space-sm) var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-size: 13px;
    font-weight: 500;
    z-index: 300;
    transform: translateY(-100%);
    transition: transform var(--transition-normal);
}

.offline-indicator.active {
    transform: translateY(0);
}

.offline-indicator i {
    width: 16px;
    height: 16px;
    color: white;
}

/* Question amount buttons */
.question-amount-btn {
    flex: 1;
    min-width: fit-content;
    padding: var(--space-sm) var(--space-md);
    font-size: 13px;
    transition: all var(--transition-fast);
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.question-amount-btn i {
    color: var(--text-muted);
}

.question-amount-btn.active {
    background: var(--gradient-primary);
    color: var(--button-text-color);
    box-shadow: var(--shadow-glow);
    border-color: transparent;
}

.question-amount-btn.active i {
    color: white;
    fill: white;
}
/* Container */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 16px;
    padding-bottom: 80px;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) 0;
    margin-bottom: var(--space-lg);
    position: sticky;
    top: 0;
    background: rgba(13, 13, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 40;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.header-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.header-btn:hover {
    background: var(--surface-elevated);
    border-color: var(--border-light);
    transform: scale(1.05);
}

.header-btn svg, .header-btn i {
    width: 20px;
    height: 20px;
    stroke: var(--text-secondary);
    color: var(--text-secondary);
}

.header-btn:hover svg, .header-btn:hover i {
    stroke: var(--primary-color);
    color: var(--primary-color);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.user-avatar:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-full);
}

/* Feed tabs */
.feed-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    overflow-x: auto;
    padding-bottom: var(--space-sm);
    -webkit-overflow-scrolling: touch;
}

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

.feed-tab {
    padding: var(--space-sm) var(--space-md);
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.feed-tab:hover {
    background: var(--surface-elevated);
    border-color: var(--border-light);
}

.feed-tab.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

/* Pull to refresh */
.pull-indicator {
    text-align: center;
    padding: var(--space-md);
    color: var(--hint-color);
    font-size: 13px;
    display: none;
}

.pull-indicator.visible {
    display: block;
    animation: fadeIn 0.2s ease;
}

/* Notification badge */
.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    background: var(--danger-color);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg-color);
}
/* Post Cards */
.post-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
    animation: fadeInUp 0.4s ease backwards;
}

.post-card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-lg);
}

.post-card:active {
    transform: scale(0.995);
}

/* Staggered animation for posts */
.post-card:nth-child(1) { animation-delay: 0s; }
.post-card:nth-child(2) { animation-delay: 0.05s; }
.post-card:nth-child(3) { animation-delay: 0.1s; }
.post-card:nth-child(4) { animation-delay: 0.15s; }
.post-card:nth-child(5) { animation-delay: 0.2s; }

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

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    overflow: hidden;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-full);
}

.post-author {
    flex: 1;
}

.post-author-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-color);
}

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

.post-content {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: var(--space-md);
    white-space: pre-wrap;
    color: var(--text-color);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: var(--space-md);
}

/* Reactions Row */
.post-reactions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-color);
}

/* Actions Row */
.post-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border: none;
    background: none;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: var(--radius-sm);
}

.action-btn:hover {
    background: var(--surface-elevated);
    color: var(--text-color);
}

.action-btn.active {
    color: var(--primary-color);
}

.action-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.action-btn.action-heat.heated {
    color: #FF6B6B;
    opacity: 0.7;
}

.action-btn.action-heat.heated svg path {
    fill: #FF6B6B;
}

.action-btn i {
    width: 18px;
    height: 18px;
}

.action-btn span:empty {
    display: none;
}

/* Reactions */
.reaction-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: transparent;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.reaction-btn i {
    width: 16px;
    height: 16px;
}

.reaction-btn:hover {
    background: var(--surface-elevated);
    transform: translateY(-1px);
}

.reaction-btn:active {
    transform: scale(0.95);
}

.reaction-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

.reaction-btn.active:hover {
    animation: bounce 0.3s ease;
}

/* Comment button */
.comment-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 6px 12px;
    border: none;
    background: none;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.comment-btn:hover {
    color: var(--primary-color);
}

.comment-btn.active {
    color: var(--primary-color);
}

.comment-btn i {
    width: 16px;
    height: 16px;
}

/* Comments */
.comment {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-color);
}

.comment:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: 6px;
}

.comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    color: white;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-author {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-color);
}

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

.comment-content {
    font-size: 14px;
    line-height: 1.4;
    margin-left: 36px;
    color: var(--text-color);
}

.comment-reply {
    margin-left: 36px;
    padding-left: var(--space-md);
    border-left: 2px solid var(--primary-color);
    margin-top: var(--space-sm);
}

.reply-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    margin-left: 36px;
    margin-top: var(--space-xs);
    transition: color var(--transition-fast);
}

.reply-btn:hover {
    color: var(--primary-color);
}

/* Mention dropdown */
.mention-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    margin-bottom: 4px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    max-height: 200px;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    z-index: 200;
    display: none;
}

.mention-dropdown.visible {
    display: block;
    animation: fadeInUp 0.2s ease;
}

.mention-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.mention-item:hover,
.mention-item.selected {
    background: var(--surface-elevated);
}

.mention-avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: white;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mention-name {
    font-weight: 500;
    font-size: 14px;
}

.mention-username {
    font-size: 12px;
    color: var(--text-muted);
}

/* Highlighted mentions in posts */
.mention-link {
    color: var(--primary-color);
    cursor: pointer;
}

/* Hashtags */
.hashtag-link {
    color: var(--primary-color);
    cursor: pointer;
}

.hashtag-link:hover {
    text-decoration: underline;
}

/* Post Composer */
.post-composer {
    background: var(--surface-color);
    border: none;
    border-radius: 0;
    padding: 0;
}


.post-composer textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface-elevated);
    color: var(--text-color);
    font-size: 16px;
    font-family: inherit;
    resize: none;
    outline: none;
    line-height: 1.5;
    margin-bottom: 12px;
    transition: border-color var(--transition-fast);
}

.post-composer textarea:focus {
    border-color: var(--primary-color);
}

.post-composer textarea::placeholder {
    color: var(--text-muted);
}

.post-composer-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-color);
}

.post-composer-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: white;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.post-composer-textarea {
    width: 100%;
    min-height: 100px;
    padding: var(--space-md);
    border: none;
    background: transparent;
    color: var(--text-color);
    font-size: 15px;
    font-family: inherit;
    resize: none;
    outline: none;
}

.post-composer-textarea::placeholder {
    color: var(--text-muted);
}

.post-composer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    background: var(--surface-elevated);
    border-top: 1px solid var(--border-color);
}

.post-composer-actions {
    display: flex;
    gap: var(--space-sm);
}

.composer-action-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.composer-action-btn:hover {
    background: var(--surface-color);
    color: var(--primary-color);
}

.post-composer-submit {
    padding: var(--space-sm) var(--space-lg);
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.post-composer-submit:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.post-composer-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.post-composer .btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Composer Toolbar */
.composer-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 12px;
}

.composer-toolbar-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.composer-toolbar-btn:hover {
    background: var(--surface-elevated);
    color: var(--primary-color);
}

.composer-toolbar-btn.active {
    background: var(--primary-soft);
    color: var(--primary-color);
}

.composer-toolbar-btn i {
    width: 20px;
    height: 20px;
}

.composer-divider {
    width: 1px;
    height: 24px;
    background: var(--border-color);
    margin: 0 4px;
}

.composer-char-count {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-muted);
}

/* Tags Panel */
.tags-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0;
}

/* Monochrome interest tags */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #1F1F23;
    border: 1px solid #2E2E33;
    color: #71717A;
}

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

.tag:hover {
    border-color: rgba(255,107,107,0.3);
    color: #A1A1AA;
}

.tag.selected {
    background: linear-gradient(135deg, rgba(255,107,107,0.15), rgba(255,160,122,0.1));
    border: 1.5px solid rgba(255,107,107,0.4);
    color: #FF6B6B;
    font-weight: 600;
}

/* Tag Chips (interactive interest selection) */
.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #1F1F23;
    border: 1px solid #2E2E33;
    color: #71717A;
}

.tag-chip svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.tag-chip:hover {
    border-color: rgba(255,107,107,0.3);
    color: #A1A1AA;
}

.tag-chip.selected {
    background: linear-gradient(135deg, rgba(255,107,107,0.15), rgba(255,160,122,0.1));
    border: 1.5px solid rgba(255,107,107,0.4);
    color: #FF6B6B;
    font-weight: 600;
}

.tag-chip i {
    width: 16px;
    height: 16px;
}

/* Recording Indicator */
.recording-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--surface-elevated);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.recording-dot {
    width: 12px;
    height: 12px;
    background: #ef4444;
    border-radius: 50%;
    animation: recording-pulse 1.5s infinite;
}

@keyframes recording-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.9); }
}

.recording-timer {
    font-family: monospace;
    font-size: 14px;
    color: var(--text-color);
}

.recording-stop-btn {
    margin-left: auto;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    border: none;
    background: #ef4444;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Voice Preview */
.voice-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--surface-elevated);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.voice-preview-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.voice-preview-info {
    flex: 1;
}

.voice-preview-duration {
    font-size: 12px;
    color: var(--text-muted);
    font-family: monospace;
}

.voice-preview-actions {
    display: flex;
    gap: 8px;
}

.voice-preview-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--surface-color);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.voice-preview-btn:hover {
    background: var(--border-color);
    color: var(--text-color);
}

.voice-preview-delete:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* Visibility Dropdown */
.visibility-dropdown {
    position: relative;
    margin-bottom: 12px;
}

.visibility-trigger,
.visibility-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-color);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.visibility-trigger:hover,
.visibility-btn:hover {
    border-color: var(--primary-color);
}

.visibility-trigger i:first-child,
.visibility-btn i:first-child {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.visibility-label {
    flex: 1;
}

.visibility-menu,
.visibility-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    display: none;
    overflow: hidden;
}

.visibility-menu.visible,
.visibility-menu.open,
.visibility-options.visible,
.visibility-options.open {
    display: block;
    animation: fadeInUp 0.2s ease;
}

.visibility-option {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    cursor: pointer;
    transition: background var(--transition-fast);
    border-bottom: 1px solid var(--border-color);
}

.visibility-option:last-child {
    border-bottom: none;
}

.visibility-option:hover {
    background: var(--surface-elevated);
}

.visibility-option.active {
    background: var(--primary-soft);
}

.visibility-option i {
    color: var(--text-secondary);
}

.visibility-option.active i {
    color: var(--primary-color);
}

.visibility-option i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.visibility-option-text {
    flex: 1;
}

.visibility-option-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.visibility-option-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Circle Selector for Posts */
.circle-post-selector {
    position: relative;
    margin-top: var(--space-md);
    margin-bottom: var(--space-md);
}

.circle-post-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-color);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.circle-post-trigger:hover {
    border-color: var(--primary-color);
}

.circle-post-trigger i:first-child {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

#circlePostLabel {
    flex: 1;
}

.circle-post-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 110;
    display: none;
    overflow: hidden;
    max-height: 200px;
    overflow-y: auto;
}

.circle-post-menu.open {
    display: block;
    animation: fadeInUp 0.2s ease;
}

.circle-post-option {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    cursor: pointer;
    transition: background var(--transition-fast);
    border-bottom: 1px solid var(--border-color);
}

.circle-post-option:last-child {
    border-bottom: none;
}

.circle-post-option:hover {
    background: var(--surface-elevated);
}

.circle-post-option.selected {
    background: var(--primary-soft);
}

.circle-post-option-icon {
    font-size: 20px;
}

.circle-post-option-name {
    flex: 1;
    font-size: 14px;
    color: var(--text-color);
}

/* Profile Header */
/* Profile styles moved to profile.css */

/* Profile Section Groups */
.profile-section {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    overflow: hidden;
}

.profile-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: var(--space-md) var(--space-lg);
    background: var(--surface-elevated);
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-section-content {
    padding: var(--space-md);
}

.profile-section-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.profile-section-item:hover {
    background: var(--surface-elevated);
}

.profile-section-item-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--surface-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.profile-section-item-content {
    flex: 1;
}

.profile-section-item-title {
    font-weight: 500;
    color: var(--text-color);
}

.profile-section-item-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

/* Badges */
.badge-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.badge-item:hover {
    background: var(--surface-elevated);
    transform: translateY(-2px);
}

.badge-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-xs);
    font-size: 20px;
}

.badge-name {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
}

.badge-item.locked {
    opacity: 0.4;
}

.badge-item.locked .badge-icon {
    background: var(--surface-elevated);
    filter: grayscale(1);
}

.badge-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Profile Action Buttons */
.profile-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--surface-elevated);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.profile-action-btn i,
.profile-action-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.badge-icon-wrapper i,
.badge-icon-wrapper svg {
    width: 24px;
    height: 24px;
    color: white;
}

.profile-action-btn:hover {
    background: var(--border-color);
    border-color: var(--border-light);
    transform: translateY(-1px);
}

.profile-action-btn:active {
    transform: scale(0.97);
}

.profile-action-btn.primary {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

.profile-action-btn.primary i,
.profile-action-btn.primary svg {
    color: white;
    stroke: white;
}

.profile-action-btn.primary:hover {
    box-shadow: 0 6px 24px rgba(255, 107, 107, 0.4);
}

.profile-action-btn.danger {
    color: var(--danger-color);
}

.profile-action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: var(--danger-color);
}

/* Circles Dropdown */
.circles-dropdown {
    position: relative;
    display: inline-block;
}

.circles-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    min-width: 180px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 50;
    padding: 8px 0;
}

.circles-dropdown-content.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

.circles-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background var(--transition-fast);
    font-size: 14px;
    color: var(--text-color);
}

.circles-dropdown-item:hover {
    background: var(--surface-elevated);
}

.circles-dropdown-item i {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

/* User List (Followers/Following) */
.user-list-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.user-list-item:hover {
    background: var(--surface-elevated);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.user-list-item:active {
    transform: scale(0.98);
}

.user-list-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
}

.user-list-avatar-placeholder {
    background: var(--gradient-primary);
    color: white;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.user-list-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-list-username {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Challenge Cards */
.challenge-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    overflow: hidden;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.challenge-card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-lg);
}

.challenge-header {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a1e;
    padding: var(--space-sm) var(--space-lg);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.challenge-header.completed {
    background: linear-gradient(135deg, var(--success-color), #22C55E);
}

.challenge-header.circle-challenge {
    background: var(--gradient-primary);
    color: white;
}

.challenge-body {
    padding: var(--space-lg);
}

.challenge-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: var(--space-sm);
}

.challenge-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.4;
}

.challenge-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.challenge-meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 13px;
    color: var(--text-secondary);
}

.challenge-meta-item i {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
}

.challenge-prize {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,165,0,0.15));
    border: 1px solid rgba(255,215,0,0.3);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.challenge-prize-icon {
    font-size: 20px;
}

.challenge-prize-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.challenge-progress {
    margin-bottom: var(--space-md);
}

.challenge-progress-bar {
    height: 8px;
    background: var(--surface-elevated);
    border-radius: 4px;
    overflow: hidden;
}

.challenge-progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width var(--transition-normal);
}

.challenge-progress-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: var(--space-xs);
    text-align: right;
}

.challenge-stats {
    display: flex;
    justify-content: space-between;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
}

.challenge-stat {
    text-align: center;
}

.challenge-stat-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

.challenge-stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

.challenge-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.challenge-badge.active {
    background: rgba(74,222,128,0.15);
    color: var(--success-color);
}

.challenge-badge.completed {
    background: rgba(255,215,0,0.15);
    color: #FFD700;
}

.challenge-badge.participating {
    background: var(--primary-soft);
    color: var(--primary-color);
}

/* Challenge Type & Mode Badges */
.challenge-type {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.challenge-type.global {
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    color: white;
}

.challenge-type.circle {
    background: var(--primary-soft);
    color: var(--primary-color);
}

.challenge-type.personal {
    background: rgba(74,222,128,0.15);
    color: var(--success-color);
}

.challenge-mode {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    background: var(--surface-elevated);
    color: var(--text-secondary);
}

.challenge-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-secondary);
}

.challenge-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--border-color);
}

.challenge-rewards {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.challenge-interests {
    padding: 0 var(--space-lg);
    padding-bottom: var(--space-md);
}

.challenge-detail-header {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

/* Challenge Create Button */
.challenge-create-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a1e;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.challenge-create-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,215,0,0.3);
}

/* Challenge Form Buttons */
.challenge-type-btn,
.challenge-mode-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: var(--surface-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.challenge-type-btn.active,
.challenge-mode-btn.active {
    background: var(--primary-soft);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.challenge-interest-tag {
    cursor: pointer;
    transition: all var(--transition-fast);
}

.challenge-interest-tag.active {
    background: var(--primary-soft);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Challenge Leaderboard */
.leaderboard-list {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-color);
}

.leaderboard-item:last-child {
    border-bottom: none;
}

.leaderboard-place {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    background: var(--surface-elevated);
    color: var(--text-secondary);
}

.leaderboard-item.place-1 .leaderboard-place {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a1e;
}

.leaderboard-item.place-2 .leaderboard-place {
    background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
    color: #1a1a1e;
}

.leaderboard-item.place-3 .leaderboard-place {
    background: linear-gradient(135deg, #CD7F32, #B87333);
    color: white;
}

.leaderboard-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.leaderboard-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.leaderboard-name {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leaderboard-score {
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Leaderboard header */
.leaderboard-header {
    padding: var(--space-md) 0;
    margin-bottom: var(--space-lg);
}

.leaderboard-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

/* Leaderboard podium */
.leaderboard-podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    padding: var(--space-md);
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.podium-item:hover {
    transform: translateY(-4px);
}

.podium-item.first {
    order: 2;
}

.podium-item.second {
    order: 1;
}

.podium-item.third {
    order: 3;
}

.podium-medal {
    font-size: 28px;
    margin-bottom: var(--space-sm);
}

.podium-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: white;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: var(--space-sm);
    box-shadow: var(--shadow-lg);
}

.podium-item.first .podium-avatar {
    width: 80px;
    height: 80px;
    font-size: 30px;
    border: 3px solid #FFD700;
}

.podium-item.second .podium-avatar {
    border: 3px solid #C0C0C0;
}

.podium-item.third .podium-avatar {
    border: 3px solid #CD7F32;
}

.podium-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.podium-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
    max-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.podium-heat {
    font-size: 13px;
    font-weight: 600;
    color: var(--heat-color);
    margin-bottom: var(--space-sm);
}

.podium-stand {
    width: 70px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    background: var(--surface-elevated);
}

.podium-item.first .podium-stand {
    height: 80px;
    background: linear-gradient(to bottom, #FFD700, #FFA500);
}

.podium-item.second .podium-stand {
    height: 60px;
    background: linear-gradient(to bottom, #C0C0C0, #A8A8A8);
}

.podium-item.third .podium-stand {
    height: 40px;
    background: linear-gradient(to bottom, #CD7F32, #B87333);
}

.leaderboard-heat {
    font-size: 14px;
    font-weight: 600;
    color: var(--heat-color);
}

/* Hangout Cards */
.hangout-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.hangout-card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-lg);
}

.hangout-header {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: var(--space-sm) var(--space-lg);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hangout-body {
    padding: var(--space-lg);
}

.hangout-author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.hangout-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
    overflow: hidden;
}

.hangout-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hangout-author-info {
    flex: 1;
}

.hangout-author-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-color);
}

.hangout-author-username {
    font-size: 13px;
    color: var(--text-muted);
}

.hangout-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: var(--space-md);
}

.hangout-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.hangout-meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 13px;
    color: var(--text-secondary);
}

.hangout-meta-item i {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
}

.hangout-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.4;
}

.hangout-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: var(--space-md);
}

.hangout-participants {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.hangout-join-btn {
    width: 100%;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    transition: all var(--transition-fast);
}

.hangout-join-btn.join {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: var(--shadow-glow);
}

.hangout-join-btn.join:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 107, 107, 0.4);
}

.hangout-join-btn.joined {
    background: var(--surface-elevated);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.hangout-join-btn.joined .leave-text {
    display: none;
}

.hangout-join-btn.joined:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.hangout-join-btn.joined:hover span:first-child {
    display: none;
}

.hangout-join-btn.joined:hover .leave-text {
    display: inline;
}

/* Hangout Create Button */
.hangout-create-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: all var(--transition-fast);
}

.hangout-create-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 107, 107, 0.4);
}

.hangout-limit-warning {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--surface-color);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 13px;
}

/* Form input styles for hangout modal */
.hangout-form-group {
    margin-bottom: var(--space-lg);
}

.hangout-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: var(--space-sm);
}

.hangout-form-group input,
.hangout-form-group textarea,
.hangout-form-group select {
    width: 100%;
    padding: var(--space-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: inherit;
    background: var(--bg-color);
    color: var(--text-color);
    transition: all var(--transition-fast);
    margin-bottom: 0;
    min-height: auto;
}

.hangout-form-group input:focus,
.hangout-form-group textarea:focus,
.hangout-form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.hangout-form-group textarea {
    min-height: 80px;
    resize: vertical;
}
/* Circle Item (in My Circles modal) */
.circle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    gap: var(--space-md);
}

.circle-item-main {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.circle-item-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    flex-shrink: 0;
}

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

.circle-item-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-color);
    margin-bottom: 2px;
}

.circle-item-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.circle-item-actions {
    display: flex;
    gap: var(--space-xs);
    flex-shrink: 0;
}

.circles-limit {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    padding: var(--space-sm) 0;
    margin-bottom: var(--space-sm);
}

/* Circle Cards */
.circle-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.circle-card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-md);
}

.circle-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.circle-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

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

.circle-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: var(--space-xs);
}

.circle-members {
    font-size: 13px;
    color: var(--text-muted);
}

.circle-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.4;
}

.circle-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Circle Selector Button */
.circle-selector-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.circle-selector-btn:hover {
    border-color: var(--border-light);
    color: var(--text-color);
}

.circle-selector-btn.has-selection {
    background: var(--primary-soft);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.circle-selector-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.circle-selector-dropdown.visible {
    display: block;
    animation: fadeInUp 0.2s ease;
}

.circle-selector-option {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    cursor: pointer;
    transition: background var(--transition-fast);
    border-bottom: 1px solid var(--border-color);
}

.circle-selector-option:last-child {
    border-bottom: none;
}

.circle-selector-option:hover {
    background: var(--surface-elevated);
}

.circle-selector-option.selected {
    background: var(--primary-soft);
}

/* Circle Roles */
.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.role-badge.owner {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a1e;
}

.role-badge.admin {
    background: var(--primary-soft);
    color: var(--primary-color);
}

.role-badge.moderator {
    background: rgba(74,222,128,0.15);
    color: var(--success-color);
}

.role-badge.member {
    background: var(--surface-elevated);
    color: var(--text-secondary);
}

/* Circle Treasury */
.treasury-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
}

.treasury-balance {
    text-align: center;
    padding: var(--space-lg) 0;
}

.treasury-balance-value {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.treasury-balance-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

.donate-btn {
    width: 100%;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a1e;
    border: none;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    transition: all var(--transition-fast);
}

.donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,215,0,0.3);
}

/* Circle Member List */
.member-list {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.member-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-color);
}

.member-item:last-child {
    border-bottom: none;
}

.member-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.member-name {
    font-weight: 500;
    color: var(--text-color);
}

.member-username {
    font-size: 13px;
    color: var(--text-muted);
}

.member-actions {
    display: flex;
    gap: var(--space-sm);
}

/* Role Dropdown */
.role-dropdown {
    position: relative;
    display: inline-block;
}

.role-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 140px;
    z-index: 1000;
    overflow: hidden;
}

.role-dropdown-content.show {
    display: block;
    animation: fadeInUp 0.15s ease;
}

.role-option {
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-color);
    cursor: pointer;
    transition: background var(--transition-fast);
    border-bottom: 1px solid var(--border-color);
}

.role-option:last-child {
    border-bottom: none;
}

.role-option:hover {
    background: var(--surface-elevated);
}

/* Circle Member Item (modal) */
.circle-member-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.circle-member-item:last-child {
    border-bottom: none;
}

.circle-member-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.circle-member-name {
    font-weight: 500;
    color: var(--text-color);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.circle-member-username {
    font-size: 13px;
    color: var(--text-muted);
}

.circle-member-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

/* Circle Settings */
.settings-section {
    margin-bottom: 24px;
}

.settings-section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--hint-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding: 0 4px;
}

.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    gap: 16px;
}

.settings-item:last-child {
    border-bottom: none;
}

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

.settings-item-title {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 2px;
}

.settings-item-desc {
    font-size: 13px;
    color: var(--hint-color);
    line-height: 1.4;
}

.settings-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface-color);
    color: var(--text-color);
    font-size: 14px;
    min-width: 120px;
    cursor: pointer;
}

.settings-select:focus {
    outline: none;
    border-color: var(--button-color);
}

/* Toggle Switch */
.toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border-color);
    border-radius: 28px;
    transition: background 0.2s ease;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle input:checked + .toggle-slider {
    background: var(--button-color);
}

.toggle input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

/* Join Requests */
.join-requests-list {
    max-height: 300px;
    overflow-y: auto;
}

.join-request-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.join-request-item:last-child {
    border-bottom: none;
}

.join-request-user {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.join-request-message {
    font-size: 13px;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 4px;
    line-height: 1.4;
}

.join-request-actions {
    display: flex;
    gap: 8px;
    margin-left: 52px;
}

/* Join Button for non-members */
.join-circle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.join-circle-btn.primary {
    background: var(--button-color);
    color: white;
    border: none;
}

.join-circle-btn.primary:hover {
    opacity: 0.9;
}

.join-circle-btn.pending {
    background: var(--surface-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.join-circle-btn.pending:hover {
    background: var(--surface-color);
    color: var(--danger-color);
    border-color: var(--danger-color);
}

/* Join Request Modal */
.join-request-form {
    padding: 16px 0;
}

.join-request-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface-color);
    color: var(--text-color);
    font-size: 14px;
    resize: vertical;
    margin-bottom: 12px;
}

.join-request-form textarea:focus {
    outline: none;
    border-color: var(--button-color);
}

/* Circle Detail Modal */
.circle-detail-header {
    margin-bottom: 20px;
}

.circle-detail-cover {
    height: 100px;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.circle-detail-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.4) 100%);
}

.circle-detail-main {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: -32px;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

.circle-detail-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: var(--surface-color);
    border: 3px solid var(--surface-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 600;
    color: var(--text-color);
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.circle-detail-info {
    flex: 1;
    min-width: 0;
    padding-top: 36px;
}

.circle-detail-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.circle-role-badge {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    background: var(--surface-elevated);
    border-radius: 10px;
    color: var(--text-secondary);
}

.circle-detail-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 16px;
    line-height: 1.5;
}

.circle-detail-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.circle-detail-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.circle-detail-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.circle-detail-actions:empty {
    display: none;
}

.circle-detail-actions .btn-secondary {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
}

.circle-detail-section {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-top: 16px;
}

.circle-detail-section .section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 12px;
}

.circle-treasury-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--surface-elevated);
    border-radius: var(--radius-md);
}

.treasury-stars {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

/* Donate Modal */
.donate-form {
    padding: 16px 0;
    text-align: center;
}

.donate-amount-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.donate-star-icon {
    font-size: 32px;
}

.donate-amount-input {
    width: 120px;
    padding: 16px;
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--surface-color);
    color: var(--text-color);
    -moz-appearance: textfield;
}

.donate-amount-input::-webkit-outer-spin-button,
.donate-amount-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.donate-amount-input:focus {
    outline: none;
    border-color: var(--button-color);
}

.donate-presets {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.donate-preset-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface-elevated);
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.donate-preset-btn:hover {
    border-color: var(--button-color);
    color: var(--button-color);
}

.donate-buttons {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.donate-submit-btn {
    flex: 1;
    padding: 14px;
    font-size: 14px;
    border-radius: var(--radius-md);
}

.donate-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.donate-hint {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Circle Detail Tabs - responsive grid */
.circle-detail-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 16px;
    padding: 4px;
    background: var(--surface-elevated);
    border-radius: var(--radius-md);
}

.circle-detail-tab {
    padding: 10px 8px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.circle-detail-tab-icon {
    font-size: 18px;
    line-height: 1;
}

.circle-detail-tab:hover {
    color: var(--text-color);
    background: var(--surface-color);
}

.circle-detail-tab.active {
    color: var(--button-color);
    background: var(--surface-color);
    box-shadow: var(--shadow-sm);
}

.circle-detail-tab:focus {
    outline: none;
}

.circle-detail-tab:focus-visible {
    outline: none;
}

.circle-tab-content {
    display: none;
}

.circle-tab-content.active {
    display: block;
}

/* Circle Badges Grid */
.circle-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    padding: 4px 0;
}

.circle-badge-card {
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.circle-badge-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.circle-badge-icon {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
}

.circle-badge-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 4px;
    line-height: 1.3;
}

.circle-badge-count {
    font-size: 11px;
    color: var(--text-muted);
}

.circle-badge-add {
    border: 2px dashed var(--border-color);
    background: none;
    color: var(--text-muted);
}

.circle-badge-add:hover {
    border-color: var(--button-color);
    color: var(--button-color);
}

.circle-badge-add-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

/* Badge Detail Modal */
.badge-detail-header {
    text-align: center;
    padding: 20px 0;
}

.badge-detail-icon {
    font-size: 64px;
    margin-bottom: 12px;
}

.badge-detail-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 8px;
}

.badge-detail-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.badge-detail-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.badge-stat {
    text-align: center;
}

.badge-stat-value {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
}

.badge-stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* Badge Recipients List */
.badge-recipients-list {
    max-height: 300px;
    overflow-y: auto;
}

.badge-recipient-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.badge-recipient-item:last-child {
    border-bottom: none;
}

.badge-recipient-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

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

.badge-recipient-name {
    font-weight: 500;
    color: var(--text-color);
    font-size: 14px;
}

.badge-recipient-note {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}

/* Create Badge Form */
.create-badge-form {
    padding: 12px 0;
}

.badge-icon-input {
    width: 80px;
    height: 80px;
    font-size: 40px;
    text-align: center;
    padding: 0;
    margin: 0 auto 16px;
    display: block;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--surface-color);
}

.badge-icon-input:focus {
    outline: none;
    border-color: var(--button-color);
}

/* Award Badge Modal - Member Selector */
.award-member-list {
    max-height: 300px;
    overflow-y: auto;
}

.award-member-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.award-member-item:last-child {
    border-bottom: none;
}

.award-member-item:hover {
    background: var(--surface-elevated);
}

.award-member-item.selected {
    background: var(--primary-soft);
}

.award-member-item.has-badge {
    opacity: 0.5;
    pointer-events: none;
}

.award-member-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.award-member-info {
    flex: 1;
}

.award-member-name {
    font-weight: 500;
    color: var(--text-color);
}

.award-member-role {
    font-size: 12px;
    color: var(--text-muted);
}

.award-member-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.award-member-item.selected .award-member-check {
    background: var(--button-color);
    border-color: var(--button-color);
}

/* User badge display in member list */
.member-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.member-badge-mini {
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--surface-elevated);
    border-radius: 4px;
}

/* Circle Shop */
.shop-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    padding: 4px 0;
}

.shop-item-card {
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-fast);
}

.shop-item-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.shop-item-card.active {
    border-color: var(--button-color);
    box-shadow: 0 0 0 2px var(--primary-soft);
}

.shop-item-preview {
    height: 80px;
    width: 100%;
}

.shop-item-info {
    padding: 12px;
    flex: 1;
}

.shop-item-name {
    display: block;
    font-weight: 500;
    color: var(--text-color);
    font-size: 13px;
    margin-bottom: 4px;
}

.shop-item-desc {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.3;
}

.shop-item-card .btn-secondary {
    margin: 0 12px 12px;
}

.shop-item-active,
.shop-item-owned {
    display: block;
    text-align: center;
    padding: 8px 12px;
    margin: 0 12px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.shop-item-active {
    background: var(--primary-soft);
    color: var(--button-color);
}

.shop-item-owned {
    background: var(--surface-color);
    color: var(--text-muted);
}

/* Circle Achievements */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    padding: 4px 0;
}

.achievement-card {
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 12px;
    text-align: center;
    transition: all var(--transition-fast);
}

.achievement-card.earned {
    background: var(--primary-soft);
    border-color: var(--button-color);
}

.achievement-card.locked {
    opacity: 0.5;
}

.achievement-icon {
    display: block;
    font-size: 32px;
    margin-bottom: 8px;
}

.achievement-name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.achievement-desc {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Circle Activity Log */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-secondary);
}

.activity-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: baseline;
}

.activity-actor {
    font-weight: 500;
    color: var(--text-color);
}

.activity-action {
    color: var(--text-secondary);
    font-size: 14px;
}

.activity-time {
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Circle Challenges */
.challenges-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.challenge-card {
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.challenge-card:hover {
    border-color: var(--border-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.challenge-card.challenge-active {
    border-left: 3px solid var(--success-color);
}

.challenge-card.challenge-completed {
    opacity: 0.7;
}

.challenge-card.challenge-upcoming {
    border-left: 3px solid var(--warning-color);
}

.challenge-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.challenge-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.3;
}

.challenge-prize {
    font-size: 14px;
    font-weight: 600;
    color: var(--warning-color);
    white-space: nowrap;
}

.challenge-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.challenge-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

.challenge-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.challenge-time {
    color: var(--success-color);
    font-weight: 500;
}

/* Form hint */
.form-hint {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Circle Feed */
.circle-feed-posts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.circle-feed-post {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.circle-feed-post:hover {
    border-color: var(--border-light);
}

.circle-feed-post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.circle-feed-post-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.circle-feed-post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.circle-feed-post-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.circle-feed-post-author {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-color);
}

.circle-feed-post-time {
    font-size: 12px;
    color: var(--text-muted);
}

.circle-feed-post-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-color);
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.circle-feed-post-image {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}

.circle-feed-post-stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.circle-feed-post-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Challenge Creation Form */
.challenge-mode-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.challenge-mode-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    background: var(--surface-elevated);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.challenge-mode-option:hover {
    border-color: var(--border-light);
}

.challenge-mode-option.selected {
    border-color: var(--button-color);
    background: var(--primary-soft);
}

.challenge-mode-icon {
    font-size: 24px;
}

.challenge-mode-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-color);
}

.challenge-mode-desc {
    font-size: 11px;
    color: var(--text-muted);
}

.challenge-dates-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.challenge-date-field {
    flex: 1;
}

.challenge-date-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.challenge-date-arrow {
    color: var(--text-muted);
    font-size: 16px;
    padding-top: 16px;
}

/* FAQ Section */
.circle-faq {
    padding: 0 4px;
}

.faq-section {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
}

.faq-section h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 8px 0;
}

.faq-section h4 svg {
    width: 18px;
    height: 18px;
    color: var(--button-color);
}

.faq-section p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.faq-section ul {
    margin: 0;
    padding-left: 20px;
}

.faq-section li {
    font-size: 13px;
    color: var(--text-color);
    margin-bottom: 6px;
    line-height: 1.4;
}

.faq-section li:last-child {
    margin-bottom: 0;
}
/* Inter-Circle Challenges (Circle Battles) */

.inter-circle-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.inter-circle-tabs .tab-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.inter-circle-tabs .tab-btn:hover {
    border-color: var(--button-color);
    color: var(--text-color);
}

.inter-circle-tabs .tab-btn.active {
    background: var(--button-color);
    border-color: var(--button-color);
    color: white;
}

/* Challenge Cards */
.inter-circle-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.inter-circle-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.inter-circle-card.active {
    border-color: var(--success-color);
    background: linear-gradient(135deg, rgba(74,222,128,0.05), transparent);
}

.inter-circle-card.upcoming {
    border-color: var(--button-color);
    background: linear-gradient(135deg, rgba(255,154,108,0.05), transparent);
}

.inter-circle-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.inter-circle-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    flex: 1;
}

.inter-circle-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.inter-circle-status.status-draft {
    background: var(--surface-elevated);
    color: var(--text-muted);
}

.inter-circle-status.status-registration {
    background: rgba(255,154,108,0.15);
    color: var(--button-color);
}

.inter-circle-status.status-active {
    background: rgba(74,222,128,0.15);
    color: var(--success-color);
}

.inter-circle-status.status-completed {
    background: rgba(96,165,250,0.15);
    color: #60a5fa;
}

.inter-circle-status.status-cancelled {
    background: rgba(239,68,68,0.15);
    color: var(--danger-color);
}

.inter-circle-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.inter-circle-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.inter-circle-prize {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

/* Challenge Detail */
.inter-circle-detail-header {
    margin-bottom: 20px;
}

.inter-circle-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 12px;
}

.inter-circle-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.info-item {
    background: var(--surface-elevated);
    padding: 12px;
    border-radius: var(--radius-md);
}

.info-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.info-value {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.inter-circle-register-section {
    margin-bottom: 20px;
    text-align: center;
}

.inter-circle-register-section .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Leaderboard */
.inter-circle-leaderboard {
    margin-top: 20px;
}

.inter-circle-leaderboard h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
}

.leaderboard-item.disqualified {
    opacity: 0.5;
    text-decoration: line-through;
}

.leaderboard-rank {
    font-size: 16px;
    font-weight: 700;
    color: var(--button-color);
    min-width: 40px;
}

.leaderboard-item:first-child .leaderboard-rank {
    color: #FFD700;
}

.leaderboard-item:nth-child(2) .leaderboard-rank {
    color: #C0C0C0;
}

.leaderboard-item:nth-child(3) .leaderboard-rank {
    color: #CD7F32;
}

.leaderboard-circle {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.circle-icon-sm {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.leaderboard-circle .circle-name {
    font-weight: 500;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leaderboard-stats {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.leaderboard-stats span {
    white-space: nowrap;
}

/* Icon sizes */
.icon-xs {
    width: 14px;
    height: 14px;
}

/* Responsive */
@media (max-width: 400px) {
    .inter-circle-info-grid {
        grid-template-columns: 1fr;
    }

    .leaderboard-stats {
        flex-direction: column;
        gap: 4px;
    }
}
/* Search */
.search-input {
    width: 100%;
    padding: var(--space-md);
    padding-left: 40px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--text-color);
    transition: all var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-wrapper {
    position: relative;
    margin-bottom: var(--space-lg);
}

.search-icon {
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 20px;
    height: 20px;
}

.search-results {
    margin-top: var(--space-lg);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.search-result-item:hover {
    background: var(--surface-elevated);
    border-color: var(--border-light);
}

.search-result-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.search-result-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.search-result-name {
    font-weight: 500;
    color: var(--text-color);
}

.search-result-username {
    font-size: 13px;
    color: var(--text-muted);
}

/* Notifications */
.notification-list {
    margin-top: var(--space-md);
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast);
}

.notification-item:hover {
    background: var(--surface-elevated);
}

.notification-item.unread {
    background: var(--primary-soft);
}

.notification-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.notification-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.notification-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notification-avatar-badge {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    font-size: 22px;
}

.notification-type-icon {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-color);
}

.notification-type-icon i,
.notification-type-icon svg {
    width: 10px;
    height: 10px;
    color: white;
    stroke-width: 2.5;
}

.notification-content {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}

.notification-text {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.5;
}

.notification-text strong {
    font-weight: 600;
    color: var(--text-primary);
}

.notification-time {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Voice Recording Styles */
.voice-record-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    color: var(--text-secondary);
}

.voice-record-btn:hover {
    background: var(--surface-elevated);
    border-color: var(--border-light);
    color: var(--text-color);
}

.voice-record-btn.recording {
    background: var(--danger-color);
    border-color: var(--danger-color);
    color: white;
    animation: pulse 1s infinite;
}

.voice-record-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--danger-color);
    color: white;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
}

.voice-record-indicator .recording-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: var(--radius-full);
    animation: pulse 1s infinite;
}

/* Audio Player in Posts */
.audio-player {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--surface-elevated);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.audio-play-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.audio-play-btn:hover {
    transform: scale(1.1);
}

.audio-waveform {
    flex: 1;
    height: 32px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.audio-waveform-bar {
    width: 3px;
    background: var(--border-light);
    border-radius: 2px;
    transition: height var(--transition-fast);
}

.audio-waveform-bar.active {
    background: var(--primary-color);
}

.audio-time {
    font-size: 12px;
    color: var(--text-muted);
    min-width: 40px;
    text-align: right;
}

/* Image viewer */
.image-viewer {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
}

.image-viewer.active {
    display: flex;
}

.image-viewer img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-viewer-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--surface-color);
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gradient text utility */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Coffee match card */
.coffee-match-container {
    margin-bottom: var(--space-md);
}

.coffee-match-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    color: white;
}

.coffee-match-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.coffee-match-icon {
    font-size: 24px;
}

.coffee-match-title {
    font-weight: 600;
    font-size: 16px;
}

.coffee-match-partner {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.coffee-match-avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.coffee-match-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coffee-match-initial {
    font-size: 24px;
    font-weight: 600;
    color: white;
}

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

.coffee-match-name {
    font-weight: 600;
    font-size: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.coffee-match-username {
    opacity: 0.8;
    font-size: 14px;
}

.coffee-match-karma {
    opacity: 0.8;
    font-size: 13px;
}

.coffee-match-interests {
    margin-bottom: var(--space-md);
}

.coffee-match-interests-label {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: var(--space-sm);
}

.coffee-match-interests-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.coffee-match-interest-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: var(--radius-md);
    font-size: 13px;
}

.coffee-match-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    background: white;
    color: #667eea;
    text-align: center;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.coffee-match-contact-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.coffee-match-contacted {
    text-align: center;
    margin-top: var(--space-md);
    font-size: 13px;
    opacity: 0.8;
}

.coffee-match-empty {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
}

.coffee-match-empty-icon {
    font-size: 48px;
    margin-bottom: var(--space-sm);
}

.coffee-match-empty-title {
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text-color);
}

.coffee-match-empty-hint {
    font-size: 13px;
    color: var(--text-muted);
}

/* Settings sections */
.settings-section {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-color);
}

.settings-section:last-child {
    border-bottom: none;
}

/* Settings tabs */
.settings-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--surface-elevated);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

.settings-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    background: transparent;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.settings-tab:hover {
    color: var(--text-color);
}

.settings-tab.active {
    background: var(--surface-color);
    color: var(--text-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.settings-tab svg {
    width: 16px;
    height: 16px;
}

.settings-section-header {
    font-weight: 600;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.settings-section-icon {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.settings-section-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
}

.settings-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    background: var(--surface-elevated);
    border-radius: var(--radius-md);
    gap: var(--space-md);
}

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

.settings-toggle-label {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 2px;
}

.settings-toggle-hint {
    font-size: 13px;
    color: var(--text-muted);
}

/* Settings link item */
.settings-link-item {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-color);
    transition: opacity var(--transition-fast);
}

.settings-link-item:hover {
    opacity: 0.8;
}

.settings-link-content {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.settings-link-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.settings-link-info {
    flex: 1;
}

.settings-link-title {
    font-weight: 500;
    color: var(--text-color);
}

.settings-link-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

.settings-link-arrow {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Settings button group */
.settings-button-group {
    display: flex;
    gap: var(--space-sm);
}

.settings-lang-btn {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface-color);
    color: var(--text-color);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.settings-lang-btn:hover {
    border-color: var(--border-light);
}

.settings-lang-btn.active {
    background: var(--primary-soft);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Settings radio group */
.settings-radio-group {
    padding-left: var(--space-md);
}

.settings-radio-label {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: var(--space-sm);
}

.settings-radio-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.settings-radio-option {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: 14px;
    color: var(--text-color);
}

.settings-radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

/* Settings list container */
.settings-list-container {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.settings-empty-state {
    color: var(--text-muted);
    text-align: center;
    padding: var(--space-lg);
    font-size: 14px;
}

/* Settings user item */
.settings-user-item {
    display: flex;
    align-items: center;
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-color);
    gap: var(--space-md);
}

.settings-user-item:last-child {
    border-bottom: none;
}

.settings-user-avatar-wrap {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.settings-user-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.settings-user-initial {
    font-weight: 500;
    font-size: 16px;
}

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

.settings-user-name {
    font-weight: 500;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.settings-user-username {
    font-size: 13px;
    color: var(--text-muted);
}

/* Settings about text */
.settings-about-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.settings-about-text p {
    margin-bottom: var(--space-sm);
}

.settings-about-text p:last-child {
    margin-bottom: 0;
}

/* Legacy coffee card styles for backwards compatibility */
.coffee-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    margin-bottom: var(--space-md);
}

.coffee-icon {
    font-size: 48px;
    margin-bottom: var(--space-md);
}

.coffee-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.coffee-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: var(--space-lg);
}

/* Questions/QA styles */
.question-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    transition: all var(--transition-fast);
}

.question-card:hover {
    border-color: var(--border-light);
}

.question-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.question-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.question-avatar i {
    color: white;
}

.question-meta {
    flex: 1;
    min-width: 0;
}

.question-author {
    font-weight: 500;
    color: var(--text-color);
    display: block;
}

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

.question-stars {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
}

.question-stars i {
    color: #ffc107;
    fill: #ffc107;
}

.question-free {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--surface-elevated);
    color: var(--text-muted);
    border-radius: var(--radius-md);
    font-size: 13px;
}

.question-content {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: var(--space-md);
    color: var(--text-color);
    font-style: italic;
}

.question-actions {
    display: flex;
    gap: var(--space-sm);
}

.question-actions .btn,
.question-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.question-reject-btn {
    color: var(--danger-color) !important;
}

.question-reject-btn:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: var(--danger-color) !important;
}

.question-answer {
    background: var(--surface-elevated);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-top: var(--space-md);
    border-left: 3px solid var(--primary-color);
}

.question-answer-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.question-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
}

.question-status-pending {
    background: rgba(255, 107, 107, 0.1);
    color: var(--primary-color);
}

.question-status-answered {
    background: rgba(74, 222, 128, 0.1);
    color: var(--success-color);
}

.question-status-rejected {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.question-status-cancelled {
    background: var(--surface-elevated);
    color: var(--text-muted);
}

/* Settings styles */
.settings-group {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    overflow: hidden;
}

.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-item:hover {
    background: var(--surface-elevated);
}

.settings-item-label {
    font-weight: 500;
    color: var(--text-color);
}

.settings-item-value {
    color: var(--text-muted);
    font-size: 14px;
}

/* Toggle switch moved to circles.css */

/* Recommendation card */
.recommendation-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
}

.recommendation-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.recommendation-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.recommendation-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommendation-info {
    flex: 1;
}

.recommendation-name {
    font-weight: 600;
    color: var(--text-color);
}

.recommendation-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.recommendation-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Back Button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: var(--space-sm) var(--space-md);
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-color);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: var(--space-md);
}

.back-btn:hover {
    background: var(--surface-elevated);
    border-color: var(--border-light);
}

.back-btn i {
    width: 16px;
    height: 16px;
}

/* No Comments */
.no-comments {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-muted);
    font-size: 14px;
}

/* Blocked User Item */
.blocked-user-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
}

.blocked-user-item .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.blocked-user-item .user-info {
    flex: 1;
}

.blocked-user-item .user-name {
    font-weight: 500;
    color: var(--text-color);
}

.blocked-user-item .user-username {
    font-size: 13px;
    color: var(--text-muted);
}

/* Feed Filters */
.feed-filters {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

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

.feed-filter {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.feed-filter:hover {
    background: var(--surface-elevated);
    border-color: var(--border-light);
}

.feed-filter.active {
    background: var(--primary-soft);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Challenge Filter Info */
.challenge-filter-info {
    display: flex;
    align-items: center;
    padding: 0 var(--space-lg) var(--space-sm);
}

.challenge-filter-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-sm) var(--space-xs) var(--space-md);
    background: var(--primary-soft);
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-xl);
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 500;
}

.challenge-filter-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    color: var(--primary-color);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.challenge-filter-clear:hover {
    background: rgba(255, 107, 107, 0.2);
}

/* Bottom Sheet for Challenge Selector */
.bottom-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.bottom-sheet-overlay.open {
    opacity: 1;
    visibility: visible;
}

.bottom-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-color);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform var(--transition-normal);
}

.bottom-sheet-overlay.open .bottom-sheet {
    transform: translateY(0);
}

.bottom-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
}

.bottom-sheet-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.bottom-sheet-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: var(--secondary-bg);
    border: none;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.bottom-sheet-close:hover {
    background: var(--surface-elevated);
}

.bottom-sheet-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
}

/* Challenge Filter Options */
.challenge-filter-option {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.challenge-filter-option:hover {
    background: var(--secondary-bg);
}

.challenge-filter-icon {
    font-size: 24px;
}

.challenge-filter-text {
    flex: 1;
}

.challenge-filter-title {
    font-weight: 500;
    color: var(--text-color);
}

.challenge-filter-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Icon size utility */
.icon-xs {
    width: 12px;
    height: 12px;
}

/* ============== CHALLENGES PAGE ============== */

.challenges-page {
    padding-bottom: 80px;
}

.challenges-page .page-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.challenges-page .page-header .back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--surface-elevated);
    border: none;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.challenges-page .page-header .back-btn:hover {
    background: var(--border-color);
    color: var(--text-color);
}

.challenges-page .page-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin: 0;
}

.challenges-page .page-content {
    padding: var(--space-lg);
}

.challenges-section {
    margin-bottom: var(--space-xl);
}

.challenges-section .section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-color);
}

.challenges-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* Challenge Card Item (list style) */
.challenge-card-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.challenge-card-item:hover {
    border-color: var(--border-light);
    background: var(--surface-elevated);
}

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

.challenge-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,165,0,0.15));
    border-radius: var(--radius-md);
    color: #FFD700;
    flex-shrink: 0;
}

.challenge-card-content {
    flex: 1;
    min-width: 0;
}

.challenge-card-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.challenge-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.challenge-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.challenge-card-prize {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #FFD700;
}

.challenge-card-stats {
    font-size: 12px;
    color: var(--text-muted);
}

.challenge-card-stats span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.challenge-card-arrow {
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Rewards List */
.rewards-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.reward-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.reward-place {
    font-size: 24px;
    flex-shrink: 0;
}

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

.reward-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 4px;
}

.reward-amount {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.reward-amount i {
    color: var(--warning-color);
}

/* Empty state within sections */
.challenges-section .empty-state {
    padding: var(--space-xl);
    text-align: center;
}

.challenges-section .empty-state i {
    display: block;
    margin: 0 auto var(--space-md);
}

.challenges-section .empty-state p {
    font-size: 14px;
    color: var(--text-muted);
}
