/**
 * Sighrly - Premium Dark Theme
 * Intimate, safe, professional design
 */

:root {
    /* Background */
    --bg-primary: #0B0F14;
    --bg-surface: #0F1620;
    --bg-surface-2: #121C2A;
    --bg-surface-3: #1A2332;
    
    /* Borders */
    --border-color: #1E2A3A;
    --border-light: rgba(30, 42, 58, 0.5);
    
    /* Text */
    --text-primary: #E8EEF6;
    --text-secondary: #C5D1E0;
    --text-muted: #9FB0C4;
    --text-dim: #6B7A8F;
    
    /* Accents */
    --accent: #7FA2C7;
    --accent-hover: #8FB2D9;
    --accent-light: rgba(127, 162, 199, 0.15);
    --accent-glow: rgba(127, 162, 199, 0.3);
    --warning: #FB7185;
    --success: #7FA2C7;
    
    /* Buttons */
    --btn-bg: #223248;
    --btn-hover: #2A3B52;
    --btn-text: #E8EEF6;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: var(--bg-primary);
    background-image: 
        radial-gradient(ellipse at top left, rgba(127, 162, 199, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(127, 162, 199, 0.03) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-primary) 0%, #0D1117 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    padding-bottom: 100px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
    display: flex;
}

.container {
    flex: 1;
    max-width: 720px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-lg);
    margin-left: 280px;
}

@media (max-width: 768px) {
    .container {
        max-width: 100%;
    }
}

/* Header */
.brand-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    padding: var(--spacing-2xl) 0 var(--spacing-xl);
    position: relative;
}

.brand-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.brand-header h1 {
    font-size: 3.5rem;
    font-weight: 200;
    letter-spacing: 6px;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 50%, var(--text-primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

.brand-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.brand-link:hover {
    color: var(--accent);
    transform: scale(1.02);
}

.tagline {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 1.5px;
    margin-top: var(--spacing-sm);
    font-style: italic;
}

/* Cards */
.card {
    background: rgba(15, 22, 32, 0.6);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        var(--shadow-sm),
        0 0 0 1px rgba(255, 255, 255, 0.02) inset;
    backdrop-filter: blur(20px) saturate(180%);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover {
    border-color: rgba(127, 162, 199, 0.3);
    box-shadow: 
        var(--shadow-lg),
        0 0 0 1px rgba(127, 162, 199, 0.1) inset,
        0 0 60px rgba(127, 162, 199, 0.08);
    transform: translateY(-2px);
}

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

.card h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.section-title {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    letter-spacing: 0.3px;
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
}

/* Composer */
.composer-section {
    margin-bottom: var(--spacing-xl);
}

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

.composer-header h2 {
    margin: 0;
    flex: 1;
}

.info-toggle {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-family: inherit;
    white-space: nowrap;
}

.info-toggle:hover {
    background: var(--bg-surface-3);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

.info-toggle.active {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
}

.info-icon {
    font-size: 1rem;
}

.info-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin 0.3s ease;
    opacity: 0;
    margin: 0;
    border-radius: 12px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-light);
}

.info-panel.expanded {
    max-height: 900px;
    opacity: 1;
    margin: var(--spacing-md) 0 var(--spacing-lg);
    padding: var(--spacing-lg);
}

.info-panel .info-content h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.info-panel .info-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.info-panel .info-text strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* Reactions Explanation */
.reactions-explanation {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-light);
}

.reactions-explanation h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.reaction-examples {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin: var(--spacing-md) 0;
}

.reaction-example {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(18, 28, 42, 0.4);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.reaction-example:hover {
    background: rgba(18, 28, 42, 0.6);
    border-color: rgba(127, 162, 199, 0.3);
}

.reaction-example-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(0.9);
}

.reaction-example-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reaction-example-text strong {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.reaction-example-text span {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.views-explanation {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(18, 28, 42, 0.4);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin-top: var(--spacing-md);
}

.views-explanation .reaction-example-icon {
    width: 28px;
    height: 28px;
    opacity: 0.8;
}

/* Rate Limit Message */
.rate-limit-message {
    display: none;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    margin-top: var(--spacing-md);
    background: rgba(251, 113, 133, 0.15);
    border: 1px solid rgba(251, 113, 133, 0.3);
    border-radius: 12px;
    color: #FB7185;
    font-size: 0.9rem;
    animation: slideIn 0.3s ease;
}

.rate-limit-message.error-message {
    background: rgba(251, 113, 133, 0.15);
    border-color: rgba(251, 113, 133, 0.3);
    color: #FB7185;
}

.rate-limit-message i {
    font-size: 1rem;
    opacity: 0.9;
}

.rate-limit-text {
    flex: 1;
}

#rate-limit-countdown {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

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

/* About Page Styles */
.about-section h2 {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.about-section h2 i {
    color: var(--accent);
    font-size: 1.2rem;
}

.about-feature {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--border-light);
}

.about-feature:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.about-feature.highlight-feature {
    background: linear-gradient(135deg, rgba(127, 162, 199, 0.05) 0%, rgba(127, 162, 199, 0.02) 100%);
    padding: var(--spacing-lg);
    border-radius: 16px;
    border: 1px solid rgba(127, 162, 199, 0.2);
    border-bottom: 1px solid var(--border-light);
}

.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(18, 28, 42, 0.4);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    color: var(--accent);
}

.feature-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.feature-content p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: var(--spacing-md) 0;
}

.feature-list li {
    padding: var(--spacing-sm) 0;
    padding-left: var(--spacing-lg);
    position: relative;
    color: var(--text-muted);
    line-height: 1.6;
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

.daily-match-info {
    margin-top: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.info-box {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(18, 28, 42, 0.4);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    align-items: flex-start;
}

.info-box i {
    color: var(--accent);
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.info-box strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

.info-box div {
    flex: 1;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.composer-form textarea {
    flex: 1;
    width: 100%;
    background: var(--bg-surface-2);
    border: 2px solid var(--border-light);
    border-radius: 16px;
    padding: var(--spacing-lg);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1.05rem;
    resize: vertical;
    min-height: 160px;
    transition: all 0.3s ease;
    line-height: 1.8;
    font-weight: 300;
}

.composer-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 
        0 0 0 4px var(--accent-light),
        var(--shadow-md);
    background: var(--bg-surface);
}

.composer-input-wrapper {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.composer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-light);
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.composer-avatar:hover {
    border-color: var(--accent);
    transform: scale(1.05);
}

.composer-form textarea::placeholder {
    color: var(--text-dim);
    opacity: 0.6;
}

.composer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--spacing-md);
    gap: var(--spacing-md);
}

.char-count {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

/* Buttons */
.btn {
    background: var(--btn-bg);
    color: var(--btn-text);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover:not(:disabled)::before {
    width: 300px;
    height: 300px;
}

.btn:hover:not(:disabled) {
    background: var(--btn-hover);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(127, 162, 199, 0.25),
        0 0 0 1px rgba(127, 162, 199, 0.1) inset;
}

.btn:active:not(:disabled) {
    transform: translateY(0);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: var(--bg-primary);
    border: none;
    font-weight: 700;
    box-shadow: 
        0 4px 16px rgba(127, 162, 199, 0.4),
        0 0 0 1px rgba(127, 162, 199, 0.2) inset;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
    box-shadow: 
        0 8px 24px rgba(127, 162, 199, 0.5),
        0 0 0 1px rgba(127, 162, 199, 0.3) inset;
    transform: translateY(-2px);
}

/* Messages */
.message {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid;
}

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

.message.success {
    background: rgba(127, 162, 199, 0.12);
    color: var(--success);
    border-color: var(--success);
}

.message.error {
    background: rgba(251, 113, 133, 0.12);
    color: var(--warning);
    border-color: var(--warning);
}

/* Daily Match */
.match-section {
    margin-top: var(--spacing-xl);
}

.match-post {
    background: linear-gradient(135deg, var(--bg-surface-2) 0%, var(--accent-light) 100%);
    border: 2px solid var(--border-light);
    border-radius: 16px;
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-md);
}

.match-post .post-body {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    font-weight: 300;
    letter-spacing: 0.2px;
}

.match-post .post-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.match-reactions {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

/* Reaction Buttons - Minimalist Twitter Style */
.reaction-btn {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
    min-width: auto;
    z-index: 1;
    -webkit-tap-highlight-color: transparent;
}

.reaction-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.reaction-btn:hover:not(:disabled)::before {
    left: 100%;
}

.reaction-btn > * {
    position: relative;
    z-index: 1;
}

.reaction-btn:hover:not(:disabled) {
    background: rgba(18, 28, 42, 0.4);
    transform: scale(1.05);
}

.reaction-btn:active:not(:disabled) {
    transform: scale(0.95);
    background: rgba(18, 28, 42, 0.6);
}

/* I hear you - Blue */
.reaction-read {
    color: #60A5FA;
}

.reaction-read:hover:not(:disabled) {
    background: rgba(96, 165, 250, 0.15);
    color: #3B82F6;
}

.reaction-read.active {
    background: rgba(96, 165, 250, 0.2);
    color: #3B82F6;
    font-weight: 600;
}

/* I get it - Yellow/Amber */
.reaction-understand {
    color: #FBBF24;
}

.reaction-understand:hover:not(:disabled) {
    background: rgba(251, 191, 36, 0.15);
    color: #F59E0B;
}

.reaction-understand.active {
    background: rgba(251, 191, 36, 0.2);
    color: #F59E0B;
    font-weight: 600;
}

/* With you - Green */
.reaction-withyou {
    color: #7FA2C7;
}

.reaction-withyou:hover:not(:disabled) {
    background: rgba(127, 162, 199, 0.15);
    color: #8FB2D9;
}

.reaction-withyou.active {
    background: rgba(127, 162, 199, 0.2);
    color: #8FB2D9;
    font-weight: 600;
}

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

.reaction-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.reaction-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(0.85);
    transition: all 0.2s ease;
    opacity: 0.8;
}

.reaction-btn:hover:not(:disabled) .reaction-icon {
    filter: brightness(1);
    opacity: 1;
    transform: scale(1.08);
}

.reaction-btn.active .reaction-icon {
    filter: brightness(1.1);
    opacity: 1;
    transform: scale(1.1);
}

/* Post footer: Reactions + Stats */
.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(30, 42, 58, 0.5);
    gap: var(--spacing-lg);
}

.reactions {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    flex-wrap: wrap;
}

.post-stats {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    margin-left: auto;
    opacity: 0.6;
}

.stat-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: default;
    pointer-events: none;
}

.stat-icon {
    width: 12px;
    height: 12px;
    object-fit: contain;
    opacity: 0.7;
    filter: brightness(0.8);
}

.stat-count {
    font-size: 0.75rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
}

.reaction-btn .count {
    font-size: 0.75rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    margin-left: 4px;
    color: var(--text-muted);
    opacity: 0.8;
    min-width: 14px;
    text-align: left;
    transition: all 0.15s ease;
}

.reaction-btn:hover:not(:disabled) .count {
    opacity: 1;
}

.reaction-btn.active .count {
    color: currentColor;
    opacity: 1;
    font-weight: 600;
}

/* Tooltip enhancement */
.reaction-btn[title],
.views-item[title],
.inbox-stat-item[title],
.reaction-badge[title] {
    position: relative;
    cursor: help;
}

.reaction-btn[title]:hover::after,
.views-item[title]:hover::after,
.inbox-stat-item[title]:hover::after,
.reaction-badge[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 6px 10px;
    background: rgba(11, 15, 20, 0.95);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 6px;
    border: 1px solid rgba(127, 162, 199, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    animation: tooltipFadeIn 0.2s ease forwards;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Reply Form */
.reply-form {
    margin-top: var(--spacing-lg);
}

.reply-form textarea {
    width: 100%;
    background: var(--bg-surface);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: var(--spacing-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    min-height: 100px;
    margin-bottom: var(--spacing-md);
    transition: all 0.3s ease;
}

.reply-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 
        0 0 0 4px var(--accent-light),
        var(--shadow-sm);
}

.reply-form textarea::placeholder {
    color: var(--text-dim);
    opacity: 0.6;
}

/* Feed Section */
.feed-section {
    margin-top: var(--spacing-2xl);
}

.empty-feed {
    text-align: center;
    padding: var(--spacing-2xl);
}

/* Posts List */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.post-card {
    background: linear-gradient(135deg, rgba(15, 22, 32, 0.8) 0%, rgba(18, 28, 42, 0.6) 100%);
    border: 1px solid rgba(30, 42, 58, 0.6);
    border-radius: 20px;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(127, 162, 199, 0) inset;
    position: relative;
    backdrop-filter: blur(20px);
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(127, 162, 199, 0), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-card:hover {
    border-color: rgba(127, 162, 199, 0.4);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(127, 162, 199, 0.2) inset;
    background: linear-gradient(135deg, rgba(15, 22, 32, 0.95) 0%, rgba(18, 28, 42, 0.8) 100%);
    transform: translateY(-2px);
}

.post-card:hover::before {
    opacity: 1;
    background: linear-gradient(90deg, transparent, rgba(127, 162, 199, 0.6), transparent);
}

.post-card.own-post {
    border-color: rgba(127, 162, 199, 0.3);
    background: linear-gradient(135deg, rgba(15, 22, 32, 0.9) 0%, rgba(127, 162, 199, 0.08) 100%);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(127, 162, 199, 0.15) inset;
}

.post-card.own-post:hover {
    border-color: rgba(127, 162, 199, 0.5);
    box-shadow: 
        0 8px 24px rgba(127, 162, 199, 0.2),
        0 0 0 1px rgba(127, 162, 199, 0.3) inset;
    transform: translateY(-2px);
}

/* Meta bar - dedicated bar at top */
.post-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px var(--spacing-lg);
    background: rgba(11, 15, 20, 0.5);
    border-bottom: 1px solid rgba(30, 42, 58, 0.5);
    gap: var(--spacing-md);
    flex-wrap: wrap;
    backdrop-filter: blur(10px);
}

.post-card:hover .post-meta-bar {
    background: rgba(11, 15, 20, 0.6);
    border-bottom-color: rgba(127, 162, 199, 0.3);
}

/* Post content layout (Twitter style) */
.post-content {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
    padding: var(--spacing-lg) var(--spacing-xl);
}

@media (max-width: 640px) {
    .post-content {
        padding: var(--spacing-md);
        gap: var(--spacing-md);
    }
}

.post-avatar {
    flex-shrink: 0;
}

.avatar-img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid rgba(30, 42, 58, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.post-card:hover .avatar-img {
    border-color: rgba(127, 162, 199, 0.5);
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(127, 162, 199, 0.3);
}

.post-main {
    flex: 1;
    min-width: 0;
}

/* Remove old post-header styles - now using post-meta-bar */

.own-post-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(127, 162, 199, 0.15);
    border: 1px solid rgba(127, 162, 199, 0.3);
    border-radius: 12px;
    padding: 4px var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.3px;
}

.badge-icon {
    font-size: 0.85rem;
}

.badge-text {
    font-size: 0.7rem;
}

.post-body {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    word-wrap: break-word;
    word-break: break-word;
    font-weight: 400;
    letter-spacing: 0.02em;
    padding: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

@media (max-width: 640px) {
    .post-body {
        font-size: 1rem;
        line-height: 1.65;
        margin-bottom: var(--spacing-md);
    }
}

.post-time {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.8;
}

.expires-in {
    font-family: 'Courier New', 'Monaco', monospace;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 10px;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
    border: 1px solid;
    /* Default: green for lots of time */
    background: linear-gradient(135deg, rgba(127, 162, 199, 0.15) 0%, rgba(127, 162, 199, 0.08) 100%);
    border-color: rgba(127, 162, 199, 0.35);
    color: #7FA2C7;
}

.expires-in:hover {
    opacity: 1;
    transform: scale(1.05);
}

.expired {
    color: var(--warning);
    font-weight: 600;
    font-size: 0.85rem;
    background: rgba(251, 113, 133, 0.15);
    padding: 5px var(--spacing-sm);
    border-radius: 8px;
    border: 1px solid rgba(251, 113, 133, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.expired::before {
    content: '⏱️';
    font-size: 0.85rem;
}

.expired {
    color: var(--warning);
    font-weight: 500;
}

/* Reactions moved to .post-footer */

.reaction-stats {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-light);
}

.reaction-stats .stat {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.reaction-stats strong {
    color: var(--text-primary);
    font-weight: 500;
    min-width: 120px;
}

/* Replies */
.replies-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.reply-card {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    transition: all 0.2s ease;
}

.reply-card:hover {
    border-color: rgba(127, 162, 199, 0.4);
    box-shadow: var(--shadow-sm);
}

.reply-context {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
}

.reply-to-post {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 0;
    padding-left: 0;
    border-left: none;
}

.reply-body {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-weight: 400;
}

.reply-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 0.85rem;
}

.reply-time {
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.reply-back-btn {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.85rem;
    min-height: auto;
}

.btn-small {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.85rem;
    min-height: 32px;
}

.replied-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(127, 162, 199, 0.15);
    border: 1px solid rgba(127, 162, 199, 0.3);
    border-radius: 8px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
}

.creator-reply {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(127, 162, 199, 0.2);
    background: rgba(127, 162, 199, 0.05);
    border-radius: 8px;
    padding: var(--spacing-md);
}

.creator-reply-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.creator-reply-label i {
    font-size: 0.8rem;
}

.creator-reply-body {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Info Card */
.info-card {
    background: linear-gradient(135deg, var(--bg-surface-2) 0%, var(--accent-light) 100%);
    border: 2px solid rgba(127, 162, 199, 0.2);
    display: flex;
    gap: var(--spacing-lg);
    align-items: flex-start;
    padding: var(--spacing-lg);
}

.info-card .info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 4px;
    color: var(--accent);
}

.info-card .info-content h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.info-card .info-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.info-card .info-text strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* Warning Card */
.warning-card {
    background: linear-gradient(135deg, var(--bg-surface-2) 0%, rgba(251, 113, 133, 0.05) 100%);
    border-color: rgba(251, 113, 133, 0.2);
}

.warning-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.warning-text strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* About Page */
.about-content {
    color: var(--text-primary);
}

.about-content h3 {
    font-size: 1.4rem;
    font-weight: 500;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    letter-spacing: 0.3px;
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--border-light);
}

.about-content p {
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 1.05rem;
}

.about-content ul {
    margin-left: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.about-content li {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
    font-size: 1.05rem;
}

.about-content code {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 4px var(--spacing-xs);
    font-family: 'Courier New', 'Monaco', monospace;
    font-size: 0.9em;
    color: var(--accent);
    font-weight: 500;
}

/* Sidebar - Twitter Style */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: var(--spacing-lg);
}

.sidebar-header {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-light);
}

.sidebar-logo {
    text-decoration: none;
    color: var(--text-primary);
    display: block;
}

.sidebar-logo h1 {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 4px;
    margin: 0;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 50%, var(--text-primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    flex: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
}

.sidebar-link i {
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
}

.sidebar-link:hover {
    background: var(--bg-surface-2);
    color: var(--text-primary);
    transform: translateX(4px);
}

.sidebar-link.active {
    color: var(--accent);
    background: var(--accent-light);
    font-weight: 600;
}

.sidebar-notification {
    margin-left: auto;
    background: #FB7185;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    animation: pulse 2s infinite;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-light);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: 12px;
    margin-bottom: var(--spacing-lg);
    background: var(--bg-surface-2);
    transition: all 0.2s ease;
}

.sidebar-user:hover {
    background: var(--bg-surface-3);
}

.sidebar-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-light);
    object-fit: cover;
}

.sidebar-user-info {
    flex: 1;
}

.sidebar-user-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.sidebar-stats {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.sidebar-stat-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--bg-surface-2);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.sidebar-stat-item:hover {
    background: var(--bg-surface-3);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.sidebar-stat-item i {
    font-size: 1.2rem;
    color: var(--accent);
    width: 24px;
    text-align: center;
}

.sidebar-stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.sidebar-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto;
}

/* Navigation (old - keep for compatibility) */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(15, 22, 32, 0.95) 0%, rgba(11, 15, 20, 0.8) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-around;
    padding: var(--spacing-md) 0;
    z-index: 1000;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.nav-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--border-light);
    transition: all 0.2s ease;
}

.nav-link:hover .nav-avatar {
    border-color: var(--accent);
    transform: scale(1.1);
}

.nav-link.active .nav-avatar {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-light);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-surface-2);
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--accent);
    background: var(--accent-light);
}

.nav-link.active::after {
    width: 60%;
}

.nav-notification {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #FB7185;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(251, 113, 133, 0.4);
    animation: pulse 2s infinite;
}

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

.nav-link {
    position: relative;
}

/* Empty States */
.empty-state {
    color: var(--text-muted);
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-lg);
    font-size: 1.1rem;
    line-height: 1.8;
}

.empty-state a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.empty-state a:hover {
    border-bottom-color: var(--accent);
    color: var(--accent-hover);
}

/* Loading */
.loading {
    color: var(--text-muted);
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    font-size: 1.1rem;
    font-weight: 300;
}

/* Responsive */
.mobile-menu-toggle {
    display: none;
}

@media (max-width: 640px) {
    body {
        padding-top: 0;
        padding-bottom: 80px;
    }
    
    .container {
        padding: var(--spacing-md) var(--spacing-sm);
        max-width: 100%;
    }
    
    .brand-header {
        padding: var(--spacing-lg) 0;
        margin-bottom: var(--spacing-lg);
    }
    
    .brand-header h1 {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .tagline {
        font-size: 0.9rem;
    }
    
    .card {
        padding: var(--spacing-md);
        border-radius: 12px;
    }
    
    .card h2 {
        font-size: 1.2rem;
    }
    
    /* Post card mobile */
    .post-card {
        border-radius: 16px;
        overflow: hidden;
        margin-bottom: var(--spacing-md);
    }
    
    .post-meta-bar {
        padding: 10px var(--spacing-md);
        font-size: 0.75rem;
        flex-wrap: wrap;
        gap: var(--spacing-xs);
    }
    
    .post-time {
        font-size: 0.7rem;
    }
    
    .expires-in {
        font-size: 0.65rem;
        padding: 3px 6px;
    }
    
    .post-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    
    .post-stats {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
    }
    
    .post-content {
        padding: var(--spacing-md);
        gap: var(--spacing-md);
    }
    
    .avatar-img {
        width: 44px;
        height: 44px;
        border-width: 2px;
    }
    
    .post-body {
        font-size: 1rem;
        line-height: 1.65;
        margin-bottom: var(--spacing-md);
        word-break: break-word;
    }
    
    .post-main {
        min-width: 0;
    }
    
    /* Reactions mobile */
    .post-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    
    .reactions {
        width: 100%;
        gap: var(--spacing-sm);
    }
    
    .reaction-btn {
        padding: 6px 4px;
        gap: 4px;
        min-height: auto;
    }
    
    .post-stats {
        width: 100%;
        justify-content: flex-end;
        margin-left: 0;
    }
    
    .reaction-icon {
        width: 20px;
        height: 20px;
    }
    
    .reaction-btn {
        padding: 8px 6px;
        gap: 6px;
        min-height: 44px;
    }
    
    .stat-icon {
        width: 10px;
        height: 10px;
    }
    
    .composer-input-wrapper {
        gap: var(--spacing-sm);
    }
    
    .composer-avatar {
        width: 40px;
        height: 40px;
    }
    
    .composer-form textarea {
        min-height: 120px;
        font-size: 1rem;
    }
    
    .rate-limit-message {
        font-size: 0.85rem;
        padding: var(--spacing-sm);
    }
    
    .about-feature {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .daily-match-info {
        gap: var(--spacing-sm);
    }
    
    .info-box {
        flex-direction: column;
        gap: var(--spacing-sm);
        padding: var(--spacing-sm);
    }
    
    .info-box i {
        font-size: 1rem;
    }
    
    .stat-count {
        font-size: 0.7rem;
    }
    
    .reaction-btn .count {
        font-size: 0.65rem;
        margin-left: 3px;
    }
    
    .composer-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    
    .info-toggle {
        width: 100%;
        justify-content: center;
    }
    
    .info-panel.expanded {
        max-height: 1200px;
    }
    
    .reaction-examples {
        gap: var(--spacing-sm);
    }
    
    .reaction-example {
        padding: var(--spacing-sm);
        gap: var(--spacing-sm);
    }
    
    .reaction-example-icon {
        width: 28px;
        height: 28px;
    }
    
    .reaction-example-text strong {
        font-size: 0.9rem;
    }
    
    .reaction-example-text span {
        font-size: 0.8rem;
    }
    
    .views-explanation {
        padding: var(--spacing-sm);
        gap: var(--spacing-sm);
    }
    
    .views-explanation .reaction-example-icon {
        width: 24px;
        height: 24px;
    }
    
    .composer-footer {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        padding: var(--spacing-md) var(--spacing-lg);
        min-height: 44px; /* Touch target size */
    }
    
    .match-reactions {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .sidebar {
        width: 100%;
        max-width: 280px;
    }
    
    .sidebar-link {
        font-size: 1rem;
    }
    
    .sidebar-user-avatar {
        width: 36px;
        height: 36px;
    }
    
    .sidebar-stat-item {
        padding: var(--spacing-sm);
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--accent-light);
    color: var(--text-primary);
}

::-moz-selection {
    background: var(--accent-light);
    color: var(--text-primary);
}

/* Inbox specific styles */
.inbox-post {
    margin-bottom: var(--spacing-lg);
}

.inbox-stats {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(30, 42, 58, 0.5);
    flex-wrap: wrap;
}

.inbox-stat-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(18, 28, 42, 0.4);
    border: 1px solid rgba(30, 42, 58, 0.5);
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: default;
}

.inbox-stat-item:hover {
    background: rgba(18, 28, 42, 0.6);
    border-color: rgba(127, 162, 199, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    opacity: 0.9;
}

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

.stat-icon-small {
    width: 18px;
    height: 18px;
    object-fit: contain;
    opacity: 0.8;
}

.stat-icon-emoji {
    font-size: 1.2rem;
    opacity: 0.9;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

/* Simplified Inbox Stats - Added after reaction-breakdown */
.inbox-stats-simple {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(30, 42, 58, 0.5);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.stat-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
    font-size: 0.9rem;
}

.stat-icon-fa {
    color: var(--accent);
    font-size: 0.9rem;
    width: 18px;
    text-align: center;
    opacity: 0.8;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 500;
    min-width: 80px;
}

.reaction-details {
    display: flex;
    gap: var(--spacing-xs);
    align-items: center;
    margin-left: auto;
    flex-wrap: wrap;
}

.reaction-mini {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.reaction-mini-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.reaction-read-mini {
    background: rgba(96, 165, 250, 0.15);
    color: #60A5FA;
}

.reaction-understand-mini {
    background: rgba(251, 191, 36, 0.15);
    color: #FBBF24;
}

.reaction-withyou-mini {
    background: rgba(127, 162, 199, 0.15);
    color: #7FA2C7;
}

.reaction-breakdown {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(30, 42, 58, 0.5);
    flex-wrap: wrap;
}

.reaction-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px var(--spacing-md);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1.5px solid;
    transition: all 0.2s ease;
    cursor: default;
}

.reaction-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.reaction-icon-small {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0.9);
}

.reaction-read-badge {
    background: rgba(96, 165, 250, 0.15);
    border-color: rgba(96, 165, 250, 0.5);
    color: #60A5FA;
}

.reaction-read-badge .reaction-icon-small {
    filter: brightness(1) saturate(1.2);
}

.reaction-understand-badge {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.5);
    color: #FBBF24;
}

.reaction-understand-badge .reaction-icon-small {
    filter: brightness(1) saturate(1.2);
}

.reaction-withyou-badge {
    background: rgba(127, 162, 199, 0.15);
    border-color: rgba(127, 162, 199, 0.5);
    color: #7FA2C7;
}

.reaction-withyou-badge .reaction-icon-small {
    filter: brightness(1) saturate(1.2);
}

.reaction-count {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    opacity: 0.9;
    font-size: 0.85rem;
}

/* Reply Card Styles */
.reply-card {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    transition: all 0.2s ease;
}

.reply-card:hover {
    border-color: rgba(127, 162, 199, 0.4);
    box-shadow: var(--shadow-sm);
}

.reply-context {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
}

.reply-to-post {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

.reply-body {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.reply-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
}

.reply-time {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
}

.reply-back-btn {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.85rem;
    min-height: auto;
}

.btn-small {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.85rem;
    min-height: 32px;
}

.replied-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(127, 162, 199, 0.15);
    border: 1px solid rgba(127, 162, 199, 0.3);
    border-radius: 8px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
}

.creator-reply {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(127, 162, 199, 0.2);
    background: rgba(127, 162, 199, 0.05);
    border-radius: 8px;
    padding: var(--spacing-md);
}

.creator-reply-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.creator-reply-label i {
    font-size: 0.8rem;
}

.creator-reply-body {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer */
.main-footer {
    background: linear-gradient(180deg, rgba(11, 15, 20, 0.95) 0%, rgba(15, 22, 32, 0.8) 100%);
    border-top: 1px solid var(--border-light);
    margin-top: var(--spacing-2xl);
    padding: var(--spacing-2xl) var(--spacing-lg);
    backdrop-filter: blur(20px);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 2px;
}

.footer-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    padding: 4px 0;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.heart {
    color: #FB7185;
    animation: heartbeat 1.5s ease-in-out infinite;
}

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

@media (max-width: 768px) {
    .inbox-analytics {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .analytics-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: var(--spacing-sm);
        background: rgba(15, 22, 32, 0.3);
        border-radius: 8px;
    }
    
    .analytics-label {
        font-size: 0.8rem;
    }
    
    .analytics-value {
        font-size: 1.1rem;
    }
    
    .reaction-breakdown {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .reaction-badge {
        width: 100%;
        justify-content: space-between;
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .footer-section {
        text-align: center;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.unread-badge {
    background: #FB7185;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    animation: pulse 2s infinite;
}

/* Unread Reply Card */
.reply-card.unread {
    border-left: 4px solid #FB7185;
    background: linear-gradient(135deg, var(--bg-surface-2) 0%, rgba(251, 113, 133, 0.05) 100%);
}

/* Reply Form Embedded */
.reply-form-embedded {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-light);
}

.reply-textarea {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: var(--spacing-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.reply-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.reply-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--spacing-sm);
    gap: var(--spacing-md);
}

.reply-char-count {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
}

.reply-status-message {
    margin-top: var(--spacing-sm);
    min-height: 24px;
}

.success-msg, .error-msg {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.success-msg {
    background: rgba(127, 162, 199, 0.15);
    color: var(--accent);
    border: 1px solid rgba(127, 162, 199, 0.3);
}

.error-msg {
    background: rgba(251, 113, 133, 0.15);
    color: #FB7185;
    border: 1px solid rgba(251, 113, 133, 0.3);
}

.locked-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(127, 162, 199, 0.1);
    border: 1px solid rgba(127, 162, 199, 0.2);
    border-radius: 8px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
}

.conversation-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.context-expires-footer {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-variant-numeric: tabular-nums;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(127, 162, 199, 0.1);
    border: 1px solid rgba(127, 162, 199, 0.2);
    border-radius: 8px;
    font-weight: 500;
}

.reply-message-embedded {
    margin-top: var(--spacing-md);
    min-height: 24px;
}

/* Match Post Header with Avatar */
.match-post-header {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.match-post-avatar {
    flex-shrink: 0;
}

.match-post-avatar .avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--border-light);
    object-fit: cover;
}

.match-post-content {
    flex: 1;
}

/* Reply Boxes in Today's Sigh */
.my-reply-box,
.creator-reply-box {
    background: var(--bg-surface);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: var(--spacing-md);
    margin-top: var(--spacing-lg);
    transition: all 0.2s ease;
}

.my-reply-box {
    border-color: rgba(127, 162, 199, 0.3);
    background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(127, 162, 199, 0.05) 100%);
}

.creator-reply-box {
    border-color: rgba(127, 162, 199, 0.4);
    background: linear-gradient(135deg, var(--bg-surface-2) 0%, rgba(127, 162, 199, 0.08) 100%);
    box-shadow: var(--shadow-sm);
}

.reply-box-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.reply-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    object-fit: cover;
}

.reply-box-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.reply-box-body {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    padding-left: 40px;
}

.reply-box-time {
    font-size: 0.8rem;
    color: var(--text-dim);
    padding-left: 40px;
    font-variant-numeric: tabular-nums;
}

.match-locked {
    margin-top: var(--spacing-md);
    text-align: center;
}

/* Replies I Sent Section */
.replies-i-sent {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 2px solid var(--border-light);
}

.replies-section-title {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 600;
}

.received-reply {
    border-color: rgba(127, 162, 199, 0.2);
}

.received-reply.unread {
    border-color: rgba(127, 162, 199, 0.5);
    background: linear-gradient(135deg, var(--bg-surface-2) 0%, rgba(127, 162, 199, 0.08) 100%);
    box-shadow: 0 0 0 2px rgba(127, 162, 199, 0.2);
}

.my-reply-preview {
    background: var(--bg-surface);
    border-left: 3px solid var(--accent);
    padding: var(--spacing-sm) var(--spacing-md);
    margin: var(--spacing-md) 0;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

.creator-reply-received {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-light);
}

.expired-visible {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.85rem;
    background: rgba(127, 162, 199, 0.1);
    padding: 5px var(--spacing-sm);
    border-radius: 8px;
    border: 1px solid rgba(127, 162, 199, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Conversation Style for Replies */
.conversation-card {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    transition: all 0.2s ease;
}

.conversation-card.unread {
    border-color: rgba(127, 162, 199, 0.5);
    background: linear-gradient(135deg, var(--bg-surface-2) 0%, rgba(127, 162, 199, 0.08) 100%);
    box-shadow: 0 0 0 2px rgba(127, 162, 199, 0.2);
}

.conversation-card:hover {
    border-color: rgba(127, 162, 199, 0.4);
    box-shadow: var(--shadow-sm);
}

.conversation-context {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--border-light);
}

.context-header {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.context-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-light);
    object-fit: cover;
    flex-shrink: 0;
}

.context-info {
    flex: 1;
}

.context-post {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-xs);
    font-style: italic;
}

.context-expires {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-variant-numeric: tabular-nums;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: rgba(127, 162, 199, 0.1);
    border: 1px solid rgba(127, 162, 199, 0.2);
    border-radius: 6px;
}

.conversation-messages {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.message-bubble {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
    animation: messageSlideIn 0.3s ease;
}

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

.message-mine {
    flex-direction: row-reverse;
}

.message-mine .message-content {
    background: linear-gradient(135deg, rgba(127, 162, 199, 0.15) 0%, rgba(127, 162, 199, 0.08) 100%);
    border: 1px solid rgba(127, 162, 199, 0.3);
    border-radius: 16px 16px 4px 16px;
}

.message-theirs .message-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 16px 16px 16px 4px;
}

.message-avatar {
    flex-shrink: 0;
}

.message-avatar .avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border-light);
    object-fit: cover;
}

.message-content {
    max-width: 75%;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-xs);
}

.message-body {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    word-wrap: break-word;
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-variant-numeric: tabular-nums;
    margin-top: var(--spacing-xs);
}

.message-mine .message-time {
    text-align: right;
}

@media (max-width: 640px) {
    .message-content {
        max-width: 85%;
    }
    
    .message-avatar .avatar-img {
        width: 32px;
        height: 32px;
    }
    
    .context-avatar {
        width: 36px;
        height: 36px;
    }
}

.already-replied-message {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(127, 162, 199, 0.1);
    border: 1px solid rgba(127, 162, 199, 0.2);
    border-radius: 12px;
    margin-top: var(--spacing-md);
}

.already-replied-message i {
    color: var(--accent);
    font-size: 1.2rem;
    margin-top: 2px;
}

.already-replied-message strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.already-replied-message p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

.nav-notification {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #FB7185;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(251, 113, 133, 0.4);
    animation: pulse 2s infinite;
}

.nav-link {
    position: relative;
}

