:root {
    --primary: #FF6B6B;
    --secondary: #4ECDC4;
    --accent: #FFE66D;
    --bg-start: #faf9f6;
    --bg-end: #f0e6d3;
    --text: #2c3e50;
    --text-light: #7f8c8d;
    --card-bg: rgba(255, 255, 255, 0.85);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12);
    --radius: 20px;
    --radius-sm: 12px;
    --font-family: 'Nunito', 'Segoe UI', -apple-system, sans-serif;
    --max-width: 680px;
    --sidebar-width: 200px;
}

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

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, var(--bg-start) 0%, var(--bg-end) 100%);
    min-height: 100vh;
    color: var(--text);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px;
    padding-bottom: 80px;
}

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
}

.header-inner {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.user-menu:hover {
    background: rgba(0, 0, 0, 0.03);
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.avatar-sm {
    width: 28px;
    height: 28px;
    font-size: 12px;
}

.avatar-lg {
    width: 56px;
    height: 56px;
    font-size: 22px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
    width: 100%;
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

.post-composer {
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    border-radius: 8px;
    padding: 16px;
}

.composer-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
}

.composer-textarea {
    flex: 1;
    min-height: 72px;
    border: none;
    background: transparent;
    border-radius: 4px;
    padding: 8px 0;
    font-family: var(--font-family);
    font-size: 16px;
    resize: none;
    transition: all 0.2s ease;
    line-height: 1.6;
    color: var(--text);
}

.composer-textarea::placeholder {
    color: #939393;
}

.composer-textarea:focus {
    outline: none;
    background: transparent;
}

.composer-textarea .mention {
    color: var(--primary);
    background: rgba(255, 107, 107, 0.12);
    padding: 1px 4px;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
}

.composer-textarea:focus::placeholder {
    color: #ccc;
}

.composer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 10px;
}

.composer-toolbar {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 10px;
}

.composer-tools {
    display: flex;
    gap: 8px;
}

.tool-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.04);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s ease;
}

.tool-btn:hover {
    background: rgba(255, 107, 107, 0.15);
    color: var(--primary);
    transform: scale(1.1);
}

.mention-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-height: 240px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 8px;
}

.mention-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.mention-item:hover {
    background: rgba(255, 107, 107, 0.08);
}

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

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

.mention-name {
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
}

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

.mention-no-result {
    padding: 16px;
    text-align: center;
    color: var(--text-light);
}

.image-preview-container {
    margin-top: 12px;
}

#imagePreviews {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.image-preview {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-panel {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 12px;
    z-index: 1000;
    max-width: 300px;
    margin-top: 8px;
}

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

.emoji-item {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.emoji-item:hover {
    background: rgba(255, 107, 107, 0.15);
    transform: scale(1.2);
}

.hashtag-input {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(255, 107, 107, 0.15);
    color: var(--primary);
    border-radius: 4px;
    font-weight: 500;
}

.composer-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mood-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.mood-trigger:hover {
    border-color: var(--primary);
    background: rgba(255, 107, 107, 0.05);
}

.mood-trigger.selected {
    border-color: var(--primary);
    background: rgba(255, 107, 107, 0.1);
}

.mood-panel {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 12px;
    z-index: 1000;
    margin-top: 8px;
    width: 280px;
}

.mood-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.mood-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    border-radius: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mood-grid-item:hover {
    background: rgba(255, 107, 107, 0.15);
    transform: scale(1.1);
}

.mood-grid-item.selected {
    background: rgba(255, 107, 107, 0.2);
}

.mood-grid-item .emoji {
    font-size: 24px;
    margin-bottom: 2px;
}

.mood-grid-item .name {
    font-size: 11px;
    color: #666;
}

.mood-selector {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1;
}

.mood-btn {
    padding: 5px 10px;
    border-radius: 16px;
    border: 2px solid transparent;
    background: rgba(0, 0, 0, 0.04);
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.mood-btn:hover {
    transform: scale(1.05);
}

.mood-btn.active {
    border-color: var(--primary);
    background: rgba(255, 107, 107, 0.1);
}

.btn {
    padding: 8px 18px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #ff8e8e);
    color: white;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.3);
}

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

.btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.08);
}

.btn-ghost {
    background: transparent;
    color: var(--text-light);
    padding: 6px 12px;
    font-size: 13px;
}

.btn-ghost:hover {
    color: var(--primary);
    background: rgba(255, 107, 107, 0.1);
}

.featured-badge {
    background: linear-gradient(135deg, #ffa502, #ff6348);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 6px;
    margin-bottom: 8px;
}

.pinned-badge {
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 6px;
    margin-bottom: 8px;
}

.badges-container {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.pinned-post {
    border: 2px solid #ff4757;
    position: relative;
}

.featured-post {
    border: 2px solid #ffa502;
    position: relative;
}

.pinned-featured-post {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #ff4757, #ffa502) border-box;
    position: relative;
}

.post {
    animation: slideIn 0.4s ease;
}

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

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

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

.post-nickname {
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
    cursor: pointer;
}

.post-nickname:hover {
    color: var(--primary);
}

.post-meta {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.post-mood {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 10px;
    font-size: 11px;
}

.post-content {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    white-space: pre-wrap;
    word-break: break-word;
}

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

.post-images {
    display: grid;
    gap: 4px;
    margin-bottom: 10px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.post-images.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.post-images.grid-multi {
    grid-template-columns: repeat(3, 1fr);
}

.post-image-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.post-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-images .more-images {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
}

.post-actions {
    display: flex;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
}

.response-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.response-btn:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--primary);
}

.response-btn.active {
    color: var(--primary);
    background: rgba(255, 107, 107, 0.1);
}

.response-count {
    font-weight: 600;
}

.response-panel {
    margin-top: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: var(--radius-sm);
    display: none;
    width: 100%;
}

.response-panel.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.response-options {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.response-option {
    padding: 6px 10px;
    border-radius: 16px;
    border: 2px solid transparent;
    background: white;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.response-option:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.response-option.selected {
    border-color: var(--primary);
    transform: scale(1.05);
}

.response-summary {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.response-badge {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: white;
}

.login-page, .register-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: linear-gradient(135deg, var(--bg-start) 0%, var(--bg-end) 100%);
}

.auth-card {
    width: 100%;
    max-width: 360px;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: slideIn 0.5s ease;
}

.auth-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 13px;
}

.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
    color: var(--text);
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 14px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.auth-btn {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
}

.auth-link {
    text-align: center;
    margin-top: 18px;
    color: var(--text-light);
    font-size: 13px;
}

.auth-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}

.profile-header {
    text-align: center;
    padding: 20px 16px;
    margin-bottom: 16px;
}

.profile-layout {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
    margin-bottom: 12px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    font-weight: 700;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
}

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

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

.profile-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 3px;
    word-break: break-word;
}

.profile-username {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 8px;
}

.profile-bio {
    color: var(--text);
    margin-bottom: 12px;
    font-size: 14px;
    text-align: left;
    line-height: 1.5;
}

.profile-mood {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    font-size: 13px;
    margin-bottom: 8px;
}

.midsummer-id {
    font-size: 14px;
    color: #666;
    padding: 4px 0;
    display: inline-block;
}

.profile-info .midsummer-id {
    margin-top: 4px;
}

.profile-info .midsummer-id strong {
    color: var(--primary);
    font-weight: 600;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

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

.profile-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

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

.profile-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.visitors-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.visitors-title {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.visitors-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.visitor-item {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.visitor-item:hover {
    transform: scale(1.1);
}

.visitor-tooltip {
    position: absolute;
    bottom: -26px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text);
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.visitor-item:hover .visitor-tooltip {
    opacity: 1;
}

.footprint-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    font-size: 9px;
    animation: pulse 2s infinite;
}

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

.empty-state {
    text-align: center;
    padding: 40px 16px;
    color: var(--text-light);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.empty-text {
    font-size: 14px;
}

.loading {
    display: flex;
    justify-content: center;
    padding: 30px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 16px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 11px;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

.tab-icon {
    font-size: 20px;
}

.tab-item:hover .tab-icon {
    transform: scale(1.1);
}

.toast {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text);
    color: white;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 13px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    max-width: 90%;
    text-align: center;
}

.toast.show {
    opacity: 1;
}

.toast.success {
    background: #2ecc71;
}

.toast.error {
    background: #e74c3c;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 16px;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    max-width: 360px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-right: 30px;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.08);
}

.textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 2px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 14px;
    resize: vertical;
    transition: all 0.3s ease;
}

.textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.response-effect {
    position: fixed;
    pointer-events: none;
    z-index: 1000;
    animation: floatUp 1s ease forwards;
    font-size: 28px;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-80px) scale(1.5);
    }
}

.hidden {
    display: none !important;
}

.nav-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.guest-prompt {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(78, 205, 196, 0.1));
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.guest-prompt-text {
    font-size: 13px;
    color: var(--text);
}

.guest-prompt-text strong {
    color: var(--primary);
}

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

.prompt-actions .btn {
    padding: 7px 14px;
    font-size: 13px;
}

#homePage {
    width: 100%;
    min-height: 100vh;
}

@media (min-width: 769px) {
    body {
        padding-left: var(--sidebar-width);
    }

    .tab-bar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: var(--sidebar-width);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-right: 1px solid rgba(0, 0, 0, 0.05);
        border-top: none;
        border-bottom: none;
        flex-direction: column;
        justify-content: flex-start;
        padding: 24px 0;
        gap: 8px;
        z-index: 200;
    }

    .tab-bar .logo-area {
        padding: 8px 20px 24px;
        margin-bottom: 8px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .tab-bar .logo-area .logo-text {
        font-size: 20px;
        font-weight: 700;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .tab-bar .nav-section {
        padding: 8px 0;
    }

    .tab-bar .nav-label {
        font-size: 10px;
        color: var(--text-light);
        padding: 8px 20px 6px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .tab-bar .tab-item {
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
        padding: 12px 20px;
        margin: 0 12px;
        border-radius: 12px;
        font-size: 14px;
        color: var(--text);
    }

    .tab-bar .tab-icon {
        font-size: 18px;
        width: 24px;
        text-align: center;
    }

    .tab-bar .tab-item.active {
        background: linear-gradient(135deg, rgba(255, 107, 107, 0.15), rgba(78, 205, 196, 0.1));
        color: var(--primary);
    }

    .tab-bar .tab-item:hover {
        background: rgba(0, 0, 0, 0.04);
    }

    .tab-bar .tab-item.active .tab-icon {
        transform: scale(1.1);
    }

    .container {
        max-width: 640px;
        margin: 0 auto;
        padding: 28px 24px;
    }

    .header {
        display: none;
    }

    .guest-prompt {
        border: 1px solid rgba(0, 0, 0, 0.08);
    }

    .card {
        padding: 20px;
        margin-bottom: 16px;
    }
}
