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

:root {
    --blue: #4f6ef7;
    --blue-hover: #3b5de7;
    --blue-light: #eef2ff;
    --blue-glow: rgba(79,110,247,0.12);
    --red: #ef4444;
    --green: #22c55e;
    --purple: #7c3aed;
    --bg: #f5f6fa;
    --card: #ffffff;
    --border: #e5e7ee;
    --text: #1a1d26;
    --text2: #6b7188;
    --text3: #9ca3b8;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.03);
    /* Multi-user session colors */
    --user-color-0: #4f6ef7;
    --user-color-1: #22c55e;
    --user-color-2: #f59e0b;
    --user-color-3: #ec4899;
    --user-color-4: #8b5cf6;
    --user-color-5: #14b8a6;
    --user-color-6: #f97316;
    --user-color-7: #06b6d4;
    --shadow-md: 0 2px 8px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
    --transition: 0.2s ease;
    --glass-bg: rgba(255,255,255,0.58);
    --glass-bg-strong: rgba(255,255,255,0.74);
    --glass-border: rgba(255,255,255,0.68);
    --glass-shadow: 0 12px 30px rgba(42,58,118,0.16), inset 0 1px 0 rgba(255,255,255,0.72);
    --glass-highlight: linear-gradient(132deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.12) 45%, rgba(140,165,255,0.16) 100%);
    --liquid-ease: cubic-bezier(0.22,0.7,0.18,1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    background-image: radial-gradient(circle at 10% 0%, rgba(116,141,255,0.2) 0, transparent 38%), radial-gradient(circle at 95% 12%, rgba(115,220,255,0.22) 0, transparent 32%), radial-gradient(circle at 28% 88%, rgba(173,134,255,0.18) 0, transparent 34%);
    background-attachment: fixed;
    animation: auroraShift 18s ease-in-out infinite alternate;
}

.container { max-width: min(1360px, calc(100vw - 24px)); margin: 0 auto; padding: 0 24px; }
.credentials-container {
    max-width: min(1680px, calc(100vw - 24px)) !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
}
body.credentials-wide main.container {
    max-width: min(1680px, calc(100vw - 24px));
    padding: 0 24px;
}
body.moment-wide main.container {
    max-width: min(1560px, calc(100vw - 24px));
    padding: 0 24px;
}
main { width: 100%; flex: 1; }

/* ==================== Header ==================== */
header {
    background: var(--glass-bg-strong);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 10;
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    box-shadow: 0 10px 24px rgba(53,78,186,0.08);
}
.header-inner { display: flex; align-items: center; justify-content: center; height: 64px; }
.header-right { display: flex; align-items: center; gap: 16px; }
#user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    background: rgba(255,255,255,0.68);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 999px;
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    box-shadow: 0 4px 12px rgba(79,110,247,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
    transition: all 0.26s var(--liquid-ease);
}
#user-info:hover {
    background: rgba(255,255,255,0.88);
    box-shadow: 0 8px 18px rgba(79,110,247,0.14), inset 0 1px 0 rgba(255,255,255,1);
    transform: translateY(-1px);
}
.user-name {
    font-size: 0.875rem; font-weight: 600; color: var(--text);
    margin: 0;
}
.user-divider {
    color: var(--border);
    font-size: 0.875rem;
    margin: 0 -2px;
}
.btn-link-inline {
    background: none;
    border: none;
    color: var(--text3);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all var(--transition);
    margin: 0;
}
.btn-link-inline:hover {
    color: var(--red);
    background: rgba(239,68,68,0.08);
}
.logo { font-size: 1.35rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.accent { color: var(--blue); }

/* ==================== Pills / Tabs ==================== */
.pill-group {
    display: inline-flex;
    background: rgba(231,235,250,0.72);
    border-radius: var(--radius-sm);
    padding: 3px; gap: 2px;
    border: 1px solid rgba(255,255,255,0.66);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}
.pill {
    padding: 7px 20px; border: none; border-radius: 8px;
    font-size: 0.875rem; font-weight: 600;
    color: var(--text2); background: transparent;
    cursor: pointer; transition: transform 0.32s var(--liquid-ease), background 0.26s var(--liquid-ease), color 0.26s var(--liquid-ease), box-shadow 0.3s var(--liquid-ease);
    user-select: none;
}
.pill:hover { color: var(--text); background: rgba(255,255,255,0.68); transform: translateY(-1px); }
.pill.active {
    background: rgba(255,255,255,0.84); color: var(--blue);
    box-shadow: 0 6px 16px rgba(42,63,148,0.16), inset 0 1px 0 rgba(255,255,255,0.84);
}
.sub-nav { margin-bottom: 20px; }

/* ==================== Type Chips ==================== */
.type-bar { display: flex; gap: 8px; margin-bottom: 16px; }
.type-chip {
    padding: 7px 18px; border: 1.5px solid var(--border); border-radius: 20px;
    font-size: 0.875rem; font-weight: 600;
    color: var(--text2); background: var(--card);
    cursor: pointer; transition: all var(--transition);
}
.type-chip:hover { border-color: var(--blue); color: var(--blue); }
.type-chip.active { background: var(--blue); border-color: var(--blue); color: white; }

/* ==================== Panels & Cards ==================== */
.view { padding-top: 20px; padding-bottom: 40px; }
.panel {
    transition: opacity 0.3s ease;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(22px) saturate(148%);
    -webkit-backdrop-filter: blur(22px) saturate(148%);
    animation: glassEnter 0.5s var(--liquid-ease);
}
.card {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: var(--radius); padding: 24px;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(22px) saturate(148%);
    -webkit-backdrop-filter: blur(22px) saturate(148%);
    animation: glassEnter 0.5s var(--liquid-ease);
}
.center-content { text-align: center; padding: 48px 28px; }
.center-content h2 { font-size: 1.3rem; font-weight: 700; margin: 12px 0 6px; }
.center-content p { margin-bottom: 20px; font-size: 0.95rem; }
.accent-icon { color: var(--blue); margin-bottom: 4px; }

#view-quick .panel,
#view-session .panel,
#view-space .panel,
#view-friend .panel,
#view-xhs .panel {
    padding: 30px;
}

#view-quick .center-content,
#s-create.center-content {
    min-height: 360px;
}

#view-xhs .card {
    min-height: 280px;
}

.result-card {
    background: linear-gradient(135deg, var(--blue-light) 0%, #f0f4ff 100%);
    border: 1px solid #d4ddff; border-radius: var(--radius);
    padding: 28px; text-align: center;
    margin-top: 20px; box-shadow: var(--shadow);
    animation: slideUp 0.3s ease;
}

/* ==================== Forms ==================== */
.textarea {
    width: 100%; padding: 14px 16px;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    font-size: 0.9375rem; resize: none; outline: none;
    font-family: inherit; transition: border-color var(--transition), box-shadow 0.26s var(--liquid-ease), transform 0.26s var(--liquid-ease);
    background: rgba(255,255,255,0.68);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.textarea:focus { border-color: rgba(79,110,247,0.7); box-shadow: 0 0 0 4px rgba(79,110,247,0.16), 0 10px 20px rgba(64,86,180,0.14); transform: translateY(-1px); }

.code-input {
    flex: 1; padding: 12px 16px;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    font-size: 1.6rem; font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    text-align: center; letter-spacing: 0.18em;
    text-transform: uppercase; outline: none;
    transition: border-color var(--transition), box-shadow 0.26s var(--liquid-ease), transform 0.26s var(--liquid-ease);
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.code-input:focus { border-color: rgba(79,110,247,0.7); box-shadow: 0 0 0 4px rgba(79,110,247,0.16), 0 8px 20px rgba(64,86,180,0.14); transform: translateY(-1px); }

.label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--text2); margin-bottom: 8px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--text2); margin: 12px 0; cursor: pointer; }
.checkbox-row input { accent-color: var(--blue); }
.xhs-input-row { align-items: stretch; }
.xhs-url-input { flex: 1; min-height: 102px; }
.xhs-input-row .btn { min-width: 116px; }
.xhs-actions { margin-top: 12px; flex-wrap: wrap; }
.xhs-result-head { margin-bottom: 10px; }
.xhs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.xhs-item {
    background: rgba(255,255,255,0.68);
    border: 1px solid rgba(214,223,255,0.84);
    border-radius: var(--radius-sm);
    padding: 10px;
}
.xhs-check-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.xhs-check-row input { accent-color: var(--blue); }
.xhs-index { font-size: 0.8rem; color: var(--text2); font-weight: 600; }
.xhs-img-wrap {
    border-radius: 8px;
    overflow: hidden;
    background: #eef2ff;
    display: block;
    margin-bottom: 8px;
}
.xhs-img-wrap img {
    width: 100%;
    height: 168px;
    object-fit: cover;
    display: block;
}
.xhs-item .btn-link { display: inline-block; }

/* ==================== Buttons ==================== */
.btn {
    padding: 10px 26px; border: none; border-radius: var(--radius-sm);
    font-size: 0.9rem; font-weight: 700; cursor: pointer;
    transition: transform 0.3s var(--liquid-ease), box-shadow 0.3s var(--liquid-ease), background 0.26s var(--liquid-ease), border-color 0.26s var(--liquid-ease); font-family: inherit;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover:not(:disabled) { background: #4764ee; transform: translateY(-2px) scale(1.01); box-shadow: 0 8px 18px rgba(79,110,247,0.34); }
.btn-primary:active:not(:disabled) { transform: translateY(0) scale(0.985); }
.btn::after {
    content: '';
    position: absolute;
    inset: -120%;
    background: radial-gradient(circle, rgba(255,255,255,0.42) 0%, rgba(255,255,255,0.06) 38%, transparent 62%);
    opacity: 0;
    transform: translateX(-30%) translateY(12%) scale(0.9);
    transition: opacity 0.28s var(--liquid-ease), transform 0.28s var(--liquid-ease);
    pointer-events: none;
    z-index: -1;
}
.btn:hover:not(:disabled)::after {
    opacity: 1;
    transform: translateX(4%) translateY(-4%) scale(1.05);
}
.btn-sm { padding: 7px 16px; font-size: 0.8125rem; }
.full { width: 100%; padding: 13px; margin-top: 8px; font-size: 0.9375rem; }

.btn-link {
    background: none; border: none;
    color: var(--blue); font-size: 0.875rem; font-weight: 600;
    cursor: pointer; padding: 0; transition: color var(--transition);
}
.btn-link:hover { color: var(--blue-hover); }
.btn-link.danger { color: var(--red); }
.btn-link.danger:hover { color: #dc2626; }
.btn-link.sm { font-size: 0.8125rem; }

.icon-btn {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border: none; border-radius: 8px;
    background: rgba(255,255,255,0.44); color: var(--text3);
    cursor: pointer; transition: transform 0.26s var(--liquid-ease), background 0.24s var(--liquid-ease), color 0.24s var(--liquid-ease), box-shadow 0.28s var(--liquid-ease);
    border: 1px solid rgba(255,255,255,0.66);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.76);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.icon-btn:hover { background: rgba(238,242,255,0.88); color: var(--blue); transform: translateY(-1px); box-shadow: 0 8px 14px rgba(79,110,247,0.16), inset 0 1px 0 rgba(255,255,255,0.8); }

/* ==================== Dropzone ==================== */
.dropzone {
    border: 2px dashed #d0d5e0; border-radius: var(--radius);
    padding: 36px; text-align: center; cursor: pointer;
    transition: all var(--transition);
    background: rgba(255,255,255,0.58);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
.dropzone:hover, .dropzone.drag-over {
    border-color: var(--blue); background: rgba(236,242,255,0.82);
    transform: translateY(-1px);
}
.dz-placeholder { color: var(--text3); }
.dz-placeholder svg { margin: 0 auto 8px; opacity: 0.6; }
.dz-placeholder p { font-size: 0.9rem; }
.dz-placeholder small { font-size: 0.8rem; opacity: 0.7; }

.preview-grid { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.preview-grid .thumb-wrap { position: relative; display: inline-block; }
.preview-grid img { height: 88px; border-radius: 8px; object-fit: cover; box-shadow: var(--shadow); }
.preview-grid .remove-btn {
    position: absolute; top: -5px; right: -5px;
    width: 18px; height: 18px; border-radius: 50%; border: none;
    background: var(--red); color: white;
    font-size: 10px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    transition: transform var(--transition);
}
.preview-grid .remove-btn:hover { transform: scale(1.15); }

.file-list { text-align: left; }
.file-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 12px; background: var(--bg); border-radius: 8px;
    margin-bottom: 6px; font-size: 0.875rem;
}
.file-item .name { color: var(--text); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item .size { color: var(--text3); margin: 0 10px; white-space: nowrap; font-size: 0.8rem; }
.file-item .remove-btn { background: none; border: none; color: var(--text3); cursor: pointer; font-size: 1rem; }
.file-item .remove-btn:hover { color: var(--red); }

/* ==================== Code Display ==================== */
.code-display {
    font-size: 2.5rem; font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-weight: 800; color: var(--blue); letter-spacing: 0.18em; margin: 8px 0 12px;
}
.code-display.small { font-size: 1.8rem; margin: 4px 0; }
.code-display.clickable { cursor: pointer; transition: opacity var(--transition); }
.code-display.clickable:hover { opacity: 0.7; }

/* ==================== Composer ==================== */
.composer {
    background: rgba(255,255,255,0.56); border: 1.5px solid rgba(255,255,255,0.66);
    border-radius: var(--radius); overflow: hidden;
    margin: 16px 0; box-shadow: var(--glass-shadow);
    transition: border-color var(--transition), box-shadow var(--transition), transform 0.26s var(--liquid-ease);
    backdrop-filter: blur(18px) saturate(138%);
    -webkit-backdrop-filter: blur(18px) saturate(138%);
}
.composer:focus-within { border-color: rgba(79,110,247,0.56); box-shadow: 0 0 0 4px rgba(79,110,247,0.14), var(--glass-shadow); transform: translateY(-1px); }
.composer-text {
    width: 100%; padding: 14px 16px 8px;
    border: none; font-size: 0.9375rem;
    resize: none; outline: none;
    font-family: inherit; background: transparent;
}
.attach-bar { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 8px; }
.attach-tag {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 8px; background: var(--bg);
    border: 1px solid var(--border); border-radius: 6px;
    font-size: 0.8rem; color: var(--text2); max-width: 180px;
}
.attach-tag .tag-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-tag .tag-remove { background: none; border: none; color: var(--text3); cursor: pointer; font-size: 0.8rem; padding: 0; }
.attach-tag .tag-remove:hover { color: var(--red); }

.composer-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 12px; border-top: 1px solid #f0f1f5; background: #fafbfd;
}
.toolbar-left { display: flex; gap: 4px; }

/* ==================== Timeline ==================== */
.timeline { display: flex; flex-direction: column; gap: 12px; }
.chat-scroll {
    max-height: calc(100vh - 320px);
    overflow-y: auto;
    padding-right: 2px;
}
.timeline-card {
    background: rgba(255,255,255,0.56); border: 1px solid rgba(255,255,255,0.66);
    border-radius: var(--radius); padding: 18px;
    box-shadow: var(--glass-shadow); animation: cardFloatIn 0.38s var(--liquid-ease);
    backdrop-filter: blur(18px) saturate(142%);
    -webkit-backdrop-filter: blur(18px) saturate(142%);
    transition: transform 0.26s var(--liquid-ease), box-shadow 0.26s var(--liquid-ease), border-color 0.24s var(--liquid-ease);
}
.timeline-card:hover {
    border-color: rgba(79,110,247,0.28);
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(38,58,146,0.18), inset 0 1px 0 rgba(255,255,255,0.76);
}
.timeline-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.badge {
    display: inline-block; padding: 3px 10px; border-radius: 10px;
    font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.badge.text-type { background: #f0f1f5; color: #6b7280; }
.badge.image-type { background: #dbeafe; color: #2563eb; }
.badge.file-type { background: #f3e8ff; color: var(--purple); }
.badge.green { background: #dcfce7; color: #16a34a; }
.badge.red { background: #fef2f2; color: var(--red); }
.time-label { font-size: 0.8rem; color: var(--text3); }

.text-bubble {
    background: #f7f8fb; padding: 12px 14px;
    border-radius: var(--radius-sm); font-size: 0.9rem;
    white-space: pre-wrap; word-break: break-word;
    max-height: 200px; overflow: auto; font-family: inherit;
    border: 1px solid #eef0f4;
}
.img-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.img-card { background: var(--bg); border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.img-card img { width: 100%; max-height: 200px; object-fit: contain; display: block; }
.img-card .img-footer { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; }
.img-card .img-footer span { font-size: 0.8rem; color: var(--text3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dl-row {
    display: flex; align-items: center; padding: 10px 14px;
    background: var(--bg); border-radius: var(--radius-sm);
    margin-bottom: 6px; border: 1px solid #eef0f4;
}
.dl-row .dl-info { flex: 1; min-width: 0; }
.dl-row .dl-name { font-size: 0.9rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-row .dl-size { font-size: 0.8rem; color: var(--text3); }
.dl-row .btn { flex-shrink: 0; margin-left: 12px; }

/* ==================== Error / Status ==================== */
.form-group { margin-bottom: 16px; }
.error-card {
    background: #fef2f2; border: 1px solid #fecaca;
    border-radius: var(--radius); padding: 14px;
    color: var(--red); font-size: 0.875rem;
}
.success-card {
    background: #f0fdf4; border: 1px solid #bbf7d0;
    border-radius: var(--radius); padding: 14px;
    color: #16a34a; font-size: 0.875rem;
}
.timer { font-family: 'SF Mono', Monaco, monospace; font-size: 1.1rem; font-weight: 700; color: var(--text); }
.actions-row { display: flex; gap: 16px; margin: 10px 0 4px; }
.muted { color: var(--text3); font-size: 0.875rem; }
.upper { text-transform: uppercase; letter-spacing: 0.04em; }
.text-right { text-align: right; }
.hidden { display: none !important; }
.mt { margin-top: 14px; }
.row { display: flex; align-items: center; }
.spread { justify-content: space-between; }
.gap { gap: 12px; }
.gap-sm { gap: 8px; }

/* ==================== Toast ==================== */
.toast {
    position: fixed; top: 24px; right: 24px;
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border);
    color: var(--text);
    padding: 16px 22px; border-radius: 14px;
    font-size: 0.9375rem; font-weight: 500;
    opacity: 0; pointer-events: none;
    transition: all 0.4s var(--liquid-ease);
    box-shadow: var(--glass-shadow);
    z-index: 100;
    transform: translateX(400px) scale(0.92);
    max-width: 400px;
    backdrop-filter: blur(22px) saturate(148%);
    -webkit-backdrop-filter: blur(22px) saturate(148%);
    animation: none;
}
.toast.show {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
    animation: toastGlow 0.5s var(--liquid-ease);
}
.toast.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.92) 0%, rgba(220, 38, 38, 0.88) 100%);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    box-shadow: 0 12px 30px rgba(239, 68, 68, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.toast.success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.92) 0%, rgba(22, 163, 74, 0.88) 100%);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    box-shadow: 0 12px 30px rgba(34, 197, 94, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.toast.normal {
    background: var(--glass-bg-strong);
    border-color: var(--glass-border);
    color: var(--text);
    box-shadow: var(--glass-shadow);
}

@keyframes toastGlow {
    0% { box-shadow: var(--glass-shadow); }
    50% { box-shadow: 0 12px 30px rgba(79, 110, 247, 0.25), var(--glass-shadow); }
    100% { box-shadow: var(--glass-shadow); }
}

/* ==================== Animations ==================== */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.fade-in { animation: slideUp 0.25s ease; }

/* ==================== Modal ==================== */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(15,18,30,0.5);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    z-index: 50; animation: fadeIn 0.2s ease;
}
.modal-card {
    background: rgba(255,255,255,0.66); border-radius: 18px;
    box-shadow: 0 18px 36px rgba(24,35,82,0.22), inset 0 1px 0 rgba(255,255,255,0.8);
    width: 440px; max-width: 92vw;
    overflow: hidden; animation: scaleIn 0.3s cubic-bezier(0.2,0.8,0.2,1);
    backdrop-filter: blur(26px) saturate(155%);
    -webkit-backdrop-filter: blur(26px) saturate(155%);
}
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid var(--border);
    background: #fafbfd;
}
.modal-close {
    background: none; border: none; font-size: 1.4rem;
    color: var(--text3); cursor: pointer; line-height: 1;
    width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
    border-radius: 6px; transition: all var(--transition);
}
.modal-close:hover { background: #f0f1f5; color: var(--text); }
.modal-body { padding: 22px 24px 26px; }
.login-memory-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.login-memory-btn {
    border: 1px solid var(--border);
    background: #f8f9fd;
    color: var(--text2);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all var(--transition);
}
.login-memory-btn:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: var(--blue-light);
}
.input {
    width: 100%; padding: 11px 14px;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    font-size: 0.9375rem; font-family: inherit; outline: none;
    transition: border-color var(--transition), box-shadow 0.26s var(--liquid-ease), transform 0.26s var(--liquid-ease);
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.input:focus { border-color: rgba(79,110,247,0.72); box-shadow: 0 0 0 4px rgba(79,110,247,0.16), 0 8px 20px rgba(64,86,180,0.14); transform: translateY(-1px); }

/* ==================== Timeline Delete ==================== */
.timeline-delete {
    background: none; border: none; color: var(--text3);
    cursor: pointer; font-size: 0.7rem; font-weight: 500;
    transition: color var(--transition);
}
.timeline-delete:hover { color: var(--red); }

/* ==================== Friend List ==================== */
.friend-list { display: flex; flex-direction: column; gap: 8px; }
.friend-card {
    background: rgba(255,255,255,0.56); border: 1px solid rgba(255,255,255,0.66);
    border-radius: var(--radius); padding: 14px 18px;
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: var(--glass-shadow); transition: border-color var(--transition), transform 0.26s var(--liquid-ease), box-shadow 0.26s var(--liquid-ease);
    animation: cardFloatIn 0.28s var(--liquid-ease);
    backdrop-filter: blur(18px) saturate(138%);
    -webkit-backdrop-filter: blur(18px) saturate(138%);
}
.friend-card:hover { border-color: rgba(79,110,247,0.34); transform: translateY(-2px); box-shadow: 0 14px 24px rgba(46,68,156,0.16), inset 0 1px 0 rgba(255,255,255,0.76); }
.friend-info { display: flex; align-items: center; gap: 10px; }
.online-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--text3); flex-shrink: 0;
}
.online-dot.online { background: var(--green); box-shadow: 0 0 6px rgba(34,197,94,0.4); }
.friend-name { font-weight: 600; font-size: 0.9375rem; }
.friend-actions { display: flex; gap: 8px; align-items: center; }

/* ==================== Request Cards ==================== */
.request-card {
    background: rgba(255,255,255,0.56); border: 1px solid rgba(255,255,255,0.66);
    border-radius: var(--radius); padding: 14px 18px;
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 8px; box-shadow: var(--glass-shadow);
    animation: cardFloatIn 0.28s var(--liquid-ease);
    backdrop-filter: blur(18px) saturate(138%);
    -webkit-backdrop-filter: blur(18px) saturate(138%);
}
.request-card .req-name { font-weight: 600; font-size: 0.9375rem; }
.request-card .req-actions { display: flex; gap: 8px; }

/* ==================== Friend Session ==================== */
.f-session-items-scroll {
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    scroll-behavior: smooth;
}
.f-live-session .f-session-item {
    width: min(78%, 680px);
}
.f-live-session .f-session-item.sent {
    align-self: flex-end;
    border-left: 3px solid var(--blue);
}
.f-live-session .f-session-item.received {
    align-self: flex-start;
    border-left: 3px solid var(--green);
}
.f-sender-label {
    font-size: 0.75rem; font-weight: 600; color: var(--text3);
    margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.03em;
}

/* ==================== Invitation Card ==================== */
.invitation-card {
    background: rgba(255,255,255,0.56); border: 1px solid rgba(179,198,255,0.74);
    border-radius: var(--radius); padding: 14px 18px;
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 8px; box-shadow: var(--glass-shadow);
    animation: cardFloatIn 0.28s var(--liquid-ease);
    backdrop-filter: blur(18px) saturate(138%);
    -webkit-backdrop-filter: blur(18px) saturate(138%);
}
.inv-info { font-size: 0.9375rem; }
.inv-info .muted { font-size: 0.8125rem; }
.inv-actions { display: flex; gap: 8px; }

/* ==================== Active Session Card ==================== */
.active-session-card {
    background: rgba(255,255,255,0.56); border: 1px solid rgba(120,223,165,0.72);
    border-radius: var(--radius); padding: 14px 18px;
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 8px; box-shadow: var(--glass-shadow);
    animation: cardFloatIn 0.28s var(--liquid-ease);
    backdrop-filter: blur(18px) saturate(138%);
    -webkit-backdrop-filter: blur(18px) saturate(138%);
}
.as-info { font-size: 0.9375rem; }
.as-info .muted { font-size: 0.8125rem; }
.as-actions { display: flex; gap: 8px; }

/* ==================== Session Members Panel ==================== */
.member-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 6px 0; border-bottom: 1px solid var(--border);
}
.member-row:last-child { border-bottom: none; }
.member-name { font-size: 0.875rem; }
.badge.blue-sm {
    display: inline-block; font-size: 0.65rem; font-weight: 700;
    background: var(--blue-light); color: var(--blue);
    padding: 1px 6px; border-radius: 8px; margin-left: 4px;
}

/* ==================== Request Badge ==================== */
.req-count-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; border-radius: 9px;
    background: var(--red); color: white;
    font-size: 0.65rem; font-weight: 700;
    margin-left: 4px; padding: 0 5px;
}

/* ==================== History Card ==================== */
.history-card {
    background: rgba(255,255,255,0.56); border: 1px solid rgba(255,255,255,0.66);
    border-radius: var(--radius); padding: 14px 18px;
    margin-bottom: 8px; box-shadow: var(--glass-shadow);
    animation: cardFloatIn 0.28s var(--liquid-ease);
    backdrop-filter: blur(18px) saturate(138%);
    -webkit-backdrop-filter: blur(18px) saturate(138%);
}
.history-card .hist-name { font-weight: 600; font-size: 0.9375rem; }
.history-card .hist-meta { font-size: 0.8rem; color: var(--text3); margin-top: 4px; }
.history-card.clickable { cursor: pointer; transition: border-color var(--transition), box-shadow var(--transition); }
.history-card.clickable:hover { border-color: rgba(79,110,247,0.38); box-shadow: 0 14px 24px rgba(46,68,156,0.16), inset 0 1px 0 rgba(255,255,255,0.76); transform: translateY(-2px); }

/* ==================== Notification Bell & Drawer ==================== */
.notif-bell {
    position: relative; background: none; border: none;
    cursor: pointer; color: var(--text2); padding: 4px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px; transition: all var(--transition);
}
.notif-bell:hover { background: var(--blue-light); color: var(--blue); }
.notif-badge {
    position: absolute; top: -4px; right: -4px;
    min-width: 16px; height: 16px; border-radius: 8px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 0.6rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}
.notif-backdrop {
    position: fixed; inset: 0;
    background: rgba(15,18,30,0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 40;
    animation: fadeIn 0.2s ease;
}
.notif-drawer {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 400px; max-width: 90vw;
    background: linear-gradient(180deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.75) 100%);
    border-left: 1px solid rgba(255,255,255,0.8);
    box-shadow: -12px 0 48px rgba(79,110,247,0.08), inset 1px 0 0 rgba(255,255,255,0.9);
    z-index: 45; display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s var(--liquid-ease);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
}
.notif-drawer.open {
    transform: translateX(0);
    animation: drawerSlideIn 0.4s var(--liquid-ease);
}
.notif-drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(79,110,247,0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.5) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.notif-drawer-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}
.notif-list {
    flex: 1; overflow-y: auto; padding: 16px 0;
    background: transparent;
}
.notif-list:empty::after {
    content: 'No notifications';
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text3);
    font-size: 0.9375rem;
}
.notif-item {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 20px 24px;
    margin: 0 16px 12px;
    border-radius: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--liquid-ease);
    animation: slideUp 0.3s ease;
    background: linear-gradient(135deg, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.65) 100%);
    border: 1px solid rgba(255,255,255,0.8);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    box-shadow: 0 4px 12px rgba(79,110,247,0.06), inset 0 1px 0 rgba(255,255,255,1);
}
.notif-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, var(--blue) 0%, #6366f1 100%);
    opacity: 0;
    transition: opacity 0.3s var(--liquid-ease);
}
.notif-item:hover::before {
    opacity: 1;
}
.notif-item:hover {
    background: linear-gradient(135deg, rgba(236,242,255,0.9) 0%, rgba(236,242,255,0.8) 100%);
    border-color: rgba(79,110,247,0.3);
    transform: translateX(-8px) translateY(-2px);
    box-shadow: 0 16px 32px rgba(79,110,247,0.18), inset 0 1px 0 rgba(255,255,255,1);
}
.notif-item .notif-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(79,110,247,0.12) 0%, rgba(99,102,241,0.08) 100%);
    border: 1px solid rgba(79,110,247,0.15);
    font-size: 1.25rem;
    position: relative;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.notif-item .notif-icon::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.2) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.notif-item .notif-dot {
    position: absolute;
    top: -2px; right: -2px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f6ef7 0%, #6366f1 100%);
    border: 2px solid rgba(255,255,255,0.95);
    box-shadow: 0 0 16px rgba(79,110,247,0.7), 0 2px 8px rgba(79,110,247,0.4);
    animation: pulse 2s ease-in-out infinite;
}
.notif-item .notif-content {
    flex: 1;
    min-width: 0;
}
.notif-item .notif-text {
    font-size: 0.9375rem;
    color: var(--text);
    line-height: 1.6;
    font-weight: 500;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.notif-item .notif-time {
    font-size: 0.8125rem;
    color: var(--text3);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 4px;
}
.notif-item .notif-time::before {
    content: '•';
    color: var(--text3);
    opacity: 0.5;
}
.notif-item .notif-actions {
    display: flex; gap: 8px; margin-top: 14px;
}
.notif-item.read {
    background: linear-gradient(135deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.35) 100%);
    border-color: rgba(255,255,255,0.6);
    box-shadow: 0 2px 6px rgba(79,110,247,0.03);
}
.notif-item.read .notif-icon {
    background: linear-gradient(135deg, rgba(79,110,247,0.06) 0%, rgba(99,102,241,0.04) 100%);
    border-color: rgba(79,110,247,0.08);
    opacity: 0.7;
}
.notif-item.read .notif-dot {
    display: none;
}
.notif-item.read .notif-text {
    color: var(--text2);
    font-weight: 400;
}
.notif-item.read:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0.55) 100%);
    border-color: rgba(79,110,247,0.2);
    box-shadow: 0 8px 20px rgba(79,110,247,0.1);
}

@keyframes drawerSlideIn {
    0% {
        transform: translateX(100%);
        opacity: 0.8;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 16px rgba(79,110,247,0.7), 0 2px 8px rgba(79,110,247,0.4);
    }
    50% {
        opacity: 0.85;
        transform: scale(1.2);
        box-shadow: 0 0 24px rgba(79,110,247,0.9), 0 2px 12px rgba(79,110,247,0.6);
    }
}

/* ==================== Pending Columns ==================== */
.pending-columns {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 520px) {
    .pending-columns { grid-template-columns: 1fr; }
}

/* ==================== Friend Check Card ==================== */
.friend-check-list {
    display: flex; flex-direction: column; gap: 6px;
    max-height: 200px; overflow-y: auto;
}
.friend-check-card {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; background: rgba(255,255,255,0.56);
    border: 1px solid rgba(255,255,255,0.66); border-radius: var(--radius-sm);
    margin-bottom: 0; cursor: pointer;
    transition: border-color var(--transition), transform 0.26s var(--liquid-ease), box-shadow 0.26s var(--liquid-ease);
    font-size: 0.9375rem;
    backdrop-filter: blur(14px) saturate(130%);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.78);
}
.friend-check-card:hover { border-color: rgba(79,110,247,0.42); transform: translateY(-1px); box-shadow: 0 10px 20px rgba(46,68,156,0.14), inset 0 1px 0 rgba(255,255,255,0.82); }
.friend-check-card input { accent-color: var(--blue); }
.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    background: rgba(255,255,255,0.62);
    backdrop-filter: blur(22px) saturate(145%);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
}
.footer-inner {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    padding-bottom: 10px;
}
.footer-blog-link {
    color: var(--text2);
    font-size: 0.82rem;
    text-decoration: none;
    transition: color var(--transition);
}
.footer-blog-link:hover { color: var(--blue); }
.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.social-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.6);
    color: var(--text2);
    border-radius: 999px;
    padding: 4px 9px 4px 5px;
    font-size: 0.75rem;
    transition: transform 0.26s var(--liquid-ease), box-shadow 0.26s var(--liquid-ease), border-color 0.24s var(--liquid-ease), background 0.24s var(--liquid-ease);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.social-link:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(52,72,164,0.14); background: rgba(255,255,255,0.78); }

button,
a,
input,
textarea,
select {
    transition: transform 0.26s var(--liquid-ease), box-shadow 0.26s var(--liquid-ease), background-color 0.24s var(--liquid-ease), border-color 0.24s var(--liquid-ease), color 0.24s var(--liquid-ease), opacity 0.24s var(--liquid-ease);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(79,110,247,0.16), 0 8px 20px rgba(46,68,156,0.16);
}
button:not(:disabled):active,
.pill:active,
.type-chip:active,
.icon-btn:active {
    transform: scale(0.98);
}
.social-badge {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1;
}
.social-badge svg { width: 11px; height: 11px; fill: currentColor; }
.social-link.github .social-badge { background: #111827; }
.social-link.gitee .social-badge { background: #c71d23; }
.social-link.xhs .social-badge { background: #ff2442; }
.social-link.csdn .social-badge { background: #fc5531; }
.social-link.github:hover { color: #111827; border-color: #11182733; }
.social-link.gitee:hover { color: #c71d23; border-color: #c71d2333; }
.social-link.xhs:hover { color: #ff2442; border-color: #ff244233; }
.social-link.csdn:hover { color: #fc5531; border-color: #fc553133; }

/* ==================== User Avatar (header) ==================== */
.user-avatar-small {
    width: 36px; height: 36px; border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.9);
    box-shadow: 0 2px 8px rgba(79,110,247,0.16);
    transition: all 0.26s var(--liquid-ease);
}
#user-info:hover .user-avatar-small {
    box-shadow: 0 4px 12px rgba(79,110,247,0.24);
    transform: scale(1.05);
}
.user-name.clickable {
    cursor: pointer;
    transition: color var(--transition);
    padding: 4px 8px;
    border-radius: 8px;
}
.user-name.clickable:hover {
    color: var(--blue);
    background: rgba(79,110,247,0.08);
}

/* ==================== Profile Avatar ==================== */
.profile-avatar-wrap {
    position: relative; display: inline-block; cursor: pointer;
}
.profile-avatar {
    width: 88px; height: 88px; border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(79,110,247,0.18);
    box-shadow: 0 6px 20px rgba(79,110,247,0.16);
    transition: transform 0.3s var(--liquid-ease), box-shadow 0.3s var(--liquid-ease);
}
.profile-avatar-wrap:hover .profile-avatar {
    transform: scale(1.05);
    box-shadow: 0 10px 28px rgba(79,110,247,0.24);
}
.profile-avatar-overlay {
    position: absolute; inset: 0; border-radius: 50%;
    background: rgba(0,0,0,0.4); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 600;
    opacity: 0; transition: opacity 0.26s var(--liquid-ease);
}
.profile-avatar-wrap:hover .profile-avatar-overlay { opacity: 1; }

/* ==================== Profile Page ==================== */
.profile-header-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.72) 0%, rgba(236,242,255,0.68) 100%);
    border: 1px solid rgba(255,255,255,0.8);
    padding: 32px;
}
.profile-header-content {
    display: flex;
    align-items: center;
    gap: 28px;
}
.profile-avatar-section {
    flex-shrink: 0;
}
.profile-avatar-wrap-large {
    position: relative;
    display: inline-block;
    cursor: pointer;
}
.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.95);
    box-shadow: 0 8px 24px rgba(79,110,247,0.2), 0 2px 8px rgba(79,110,247,0.12);
    transition: all 0.3s var(--liquid-ease);
}
.profile-avatar-wrap-large:hover .profile-avatar-large {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(79,110,247,0.28), 0 4px 12px rgba(79,110,247,0.16);
}
.profile-avatar-overlay-large {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.26s var(--liquid-ease);
}
.profile-avatar-overlay-large svg {
    width: 28px;
    height: 28px;
}
.profile-avatar-wrap-large:hover .profile-avatar-overlay-large {
    opacity: 1;
}
.profile-info-section {
    flex: 1;
    min-width: 0;
}
.profile-username-display {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.profile-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.profile-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    color: var(--text2);
}
.profile-meta-item svg {
    color: var(--text3);
    flex-shrink: 0;
}
.section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

@media (max-width: 520px) {
    .profile-header-content {
        flex-direction: column;
        text-align: center;
    }
    .profile-avatar-section {
        margin-bottom: 8px;
    }
    .profile-meta {
        align-items: center;
    }
}

/* ==================== Responsive ==================== */
@media (max-width: 520px) {
    .container { padding: 0 14px; }
    .code-display { font-size: 1.8rem; }
    .code-display.small { font-size: 1.3rem; }
    .code-input { font-size: 1.3rem; }
    .img-grid { grid-template-columns: 1fr; }
    .xhs-grid { grid-template-columns: 1fr; }
    .xhs-input-row { flex-direction: column; }
    .header-right { gap: 8px; }
    .pill { padding: 6px 14px; font-size: 0.8rem; }
    .modal-card { border-radius: 14px; }
    .card { padding: 16px; }
    .center-content { padding: 32px 16px; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .footer-socials { width: 100%; }
    #moment-timeline #timeline-list,
    #moment-my #my-moments-list { column-count: 1; }
}

/* ==================== Moment Styles ==================== */
#view-moment {
    width: 100%;
}

#moment-create {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

#moment-create .card,
#moment-create #moment-create-error,
#moment-create #moment-create-success {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

#moment-timeline #timeline-list,
#moment-my #my-moments-list {
    column-count: 2;
    column-gap: 18px;
}

#moment-timeline #timeline-list > .card,
#moment-my #my-moments-list > .card {
    display: inline-block;
    width: 100%;
    margin: 0 0 18px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
}

.moment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.moment-content {
    margin-bottom: 16px;
}

.moment-content p {
    margin: 0 0 12px 0;
    line-height: 1.6;
    white-space: pre-wrap;
}

.moment-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

/* Card Stack Mode - iOS Style */
.moment-card-stack {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 560px;
    margin: 20px auto;
    perspective: 1200px;
}

.moment-card-stack-item {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: grab;
    user-select: none;
    background: white;
}

.moment-card-stack-item:active {
    cursor: grabbing;
}

.moment-card-stack-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.moment-card-stack-item.active {
    z-index: 10;
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 1;
}

.moment-card-stack-item.next {
    z-index: 9;
    transform: translateY(15px) scale(0.95) rotate(-3deg);
    opacity: 0.85;
}

.moment-card-stack-item.after {
    z-index: 8;
    transform: translateY(30px) scale(0.9) rotate(2deg);
    opacity: 0.7;
}

.moment-card-stack-item.hidden {
    z-index: 7;
    transform: translateY(45px) scale(0.85) rotate(-1deg);
    opacity: 0;
    pointer-events: none;
}

.moment-card-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    z-index: 100;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.moment-card-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 100;
}

.moment-card-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
}

.moment-card-dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

.moment-image-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.moment-image-item:hover {
    transform: scale(1.02);
}

.live-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
}

.moment-actions {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-public {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-private {
    background: #fce4ec;
    color: #c2185b;
}

.badge-visible_to {
    background: #f3e5f5;
    color: #7b1fa2;
}

.badge-hidden_from {
    background: #fff3e0;
    color: #f57c00;
}

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

/* ==================== Performance Optimizations ==================== */

/* 加载骨架屏 */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

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

.skeleton-card {
    height: 200px;
    margin-bottom: 16px;
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-text.short {
    width: 60%;
}

/* 加载指示器 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(79, 110, 247, 0.2);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spinner-rotate 0.8s linear infinite;
    will-change: transform;
}

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

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.loading-overlay.show {
    opacity: 1;
    pointer-events: all;
}

/* 图片懒加载优化 */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* 卡片进入动画优化 - 使用transform和opacity */
.card.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.4s ease forwards;
    will-change: transform, opacity;
}

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

/* 优化卡片堆叠动画性能 */
.moment-card-stack-item {
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* 平滑滚动 */
.smooth-scroll {
    scroll-behavior: smooth;
}

/* 减少重绘 */
.no-select {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* 硬件加速 */
.hw-accelerate {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

/* ==================== Credentials Page ==================== */
.cred-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.7);
    color: var(--text);
    font-size: 0.9375rem;
    transition: all var(--transition);
    font-family: inherit;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.form-input:hover {
    border-color: var(--blue);
    background: rgba(255, 255, 255, 0.85);
}

.form-input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-glow);
    background: rgba(255, 255, 255, 0.95);
}

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

/* Filters Section */
.credentials-filters {
    width: 100%;
}

#view-credentials {
    width: 100%;
}

#view-credentials .filters-row {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

#view-credentials .filter-group {
    flex: 0 0 auto;
    min-width: 220px;
    max-width: 260px;
}

.filter-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card);
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition);
    cursor: pointer;
}

.filter-select:hover {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-glow);
}

.filter-select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-glow);
}

#view-credentials .btn-manage-categories,
#view-credentials #cred-add-btn {
    min-height: 42px;
}

.btn-manage-categories {
    padding: 10px 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-manage-categories:hover {
    background: var(--blue-light);
    border-color: var(--blue);
    color: var(--blue);
}

#cred-add-btn {
    margin-left: auto;
}

#view-credentials .table-wrapper {
    width: 100%;
    overflow-x: hidden;
    border-radius: 14px;
}

#view-credentials .cred-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    min-width: 100%;
}

#view-credentials .cred-table thead {
    background: var(--bg);
    border-bottom: 2px solid var(--border);
}

#view-credentials .cred-table th {
    padding: 16px 20px;
    text-align: left;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

#view-credentials .cred-table th:nth-child(1),
#view-credentials .cred-table td:nth-child(1) { width: 24%; }
#view-credentials .cred-table th:nth-child(2),
#view-credentials .cred-table td:nth-child(2) { width: 10%; }
#view-credentials .cred-table th:nth-child(3),
#view-credentials .cred-table td:nth-child(3) { width: 12%; }
#view-credentials .cred-table th:nth-child(4),
#view-credentials .cred-table td:nth-child(4) { width: 14%; }
#view-credentials .cred-table th:nth-child(5),
#view-credentials .cred-table td:nth-child(5) { width: 14%; }
#view-credentials .cred-table th:nth-child(6),
#view-credentials .cred-table td:nth-child(6) { width: 26%; }

#view-credentials .cred-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

#view-credentials .cred-table tbody tr:hover {
    background: var(--blue-light);
}

#view-credentials .cred-table tbody tr.expired {
    opacity: 0.6;
}

#view-credentials .cred-table td {
    padding: 16px 20px;
    vertical-align: middle;
    font-size: 0.9375rem;
    word-break: break-word;
}

/* Name Cell */
.cred-name-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cred-name-cell strong {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
}

.cred-key-preview {
    font-size: 0.8125rem;
    color: var(--text3);
    font-family: 'Monaco', 'Menlo', monospace;
    overflow-wrap: anywhere;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-badge.active {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.expired {
    background: #fee2e2;
    color: #991b1b;
}

/* Category Badge */
.category-badge {
    display: inline-block;
    padding: 6px 12px;
    background: #fef3c7;
    color: #92400e;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 600;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Date Display */
.cred-date {
    font-size: 0.875rem;
    color: var(--text2);
    white-space: nowrap;
}

/* Expire Badge */
.expire-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.expire-badge.no-limit {
    background: #e0e7ff;
    color: #3730a3;
}

.expire-badge.expired {
    background: #fee2e2;
    color: #991b1b;
}

.expire-date {
    font-size: 0.875rem;
    color: var(--text2);
    white-space: nowrap;
}

.cred-actions {
    display: flex;
    gap: 6px;
    row-gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.btn-action {
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    min-height: 34px;
    line-height: 1;
}

.btn-action:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-action.btn-view:hover {
    background: var(--blue-light);
    border-color: var(--blue);
    color: var(--blue);
}

.btn-action.btn-copy:hover {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #1e40af;
}

.btn-action.btn-edit:hover {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

.btn-action.btn-delete:hover {
    background: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.page-info {
    font-size: 0.9375rem;
    color: var(--text2);
    font-weight: 500;
}

/* Loading & Empty States */
.loading-state, .empty-state {
    text-align: center;
    padding: 64px 24px;
}

.loading-state .spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

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

.empty-state svg {
    color: var(--text3);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 0.9375rem;
    color: var(--text2);
}

/* Category Management */
.category-input-wrapper {
    display: flex;
    gap: 12px;
}

.category-input-wrapper input {
    flex: 1;
}

.category-list {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 340px;
    overflow-y: auto;
    padding-right: 4px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.category-item span {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text);
}

/* Modal Styles for Credentials */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 18, 30, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    animation: fadeIn 0.2s ease;
}

.modal-backdrop.hidden {
    display: none;
}

.modal-content,
.modal-dialog {
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), var(--glass-shadow);
    backdrop-filter: blur(26px) saturate(155%);
    -webkit-backdrop-filter: blur(26px) saturate(155%);
    width: 90%;
    max-width: 540px;
    max-height: 90vh;
    overflow: hidden;
    animation: scaleIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.modal-content.modal-small,
.modal-dialog.modal-small,
.modal-dialog.modal-sm {
    max-width: 440px;
}

#cred-modal .modal-dialog {
    max-width: 760px;
}

#cred-category-modal .modal-dialog {
    max-width: 720px;
}

#cred-reveal-modal .modal-dialog {
    max-width: 520px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--text3);
    cursor: pointer;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.6);
    color: var(--text);
}

.modal-body {
    padding: 24px;
    background: transparent;
    flex: 1;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

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

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

/* Key Input Wrapper */
.key-input-wrapper {
    position: relative;
}

.key-input-wrapper input {
    padding-right: 48px;
}

.key-toggle-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text3);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition);
}

.key-toggle-btn:hover {
    color: var(--blue);
}

/* Reveal Modal */
.reveal-warning {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.reveal-warning svg {
    color: #f59e0b;
    flex-shrink: 0;
}

.reveal-warning p {
    font-size: 0.875rem;
    color: #92400e;
    font-weight: 500;
    margin: 0;
}

.key-reveal-wrapper {
    position: relative;
}

.key-reveal-wrapper input {
    padding-right: 48px;
    font-family: 'Monaco', 'Menlo', monospace;
}

.input-with-icon {
    position: relative;
}

.input-with-icon .input {
    padding-right: 48px;
}

.input-icon-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text3);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
}

.input-icon-btn:hover {
    color: var(--blue);
    background: rgba(79,110,247,0.1);
}

.warning-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(254,243,199,0.8);
    color: #92400e;
    border: 1px solid #f59e0b;
    border-radius: 10px;
    padding: 12px 14px;
}

.warning-box svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .credentials-container {
        max-width: calc(100vw - 12px) !important;
        padding: 0 12px !important;
    }

    .container {
        max-width: calc(100vw - 12px);
        padding: 0 12px;
    }

    body.credentials-wide main.container {
        max-width: calc(100vw - 12px);
        padding: 0 12px;
    }

    body.moment-wide main.container {
        max-width: calc(100vw - 12px);
        padding: 0 12px;
    }

    #view-credentials .filters-row {
        flex-direction: column;
        align-items: stretch;
    }

    #view-credentials .filter-group {
        width: 100%;
        max-width: 100%;
        min-width: 100%;
    }

    .btn-manage-categories,
    #cred-add-btn {
        width: 100%;
        justify-content: center;
    }

    #view-credentials .table-wrapper {
        overflow-x: hidden;
    }

    #view-credentials .cred-table th,
    #view-credentials .cred-table td {
        padding: 12px 10px;
        font-size: 0.78rem;
    }

    #view-credentials .cred-table th:nth-child(1),
    #view-credentials .cred-table td:nth-child(1) { width: 32%; }
    #view-credentials .cred-table th:nth-child(2),
    #view-credentials .cred-table td:nth-child(2) { width: 14%; }
    #view-credentials .cred-table th:nth-child(3),
    #view-credentials .cred-table td:nth-child(3) { width: 14%; }
    #view-credentials .cred-table th:nth-child(4),
    #view-credentials .cred-table td:nth-child(4) { width: 14%; }
    #view-credentials .cred-table th:nth-child(5),
    #view-credentials .cred-table td:nth-child(5) { width: 12%; }
    #view-credentials .cred-table th:nth-child(6),
    #view-credentials .cred-table td:nth-child(6) { width: 14%; }

    #moment-timeline #timeline-list,
    #moment-my #my-moments-list { column-count: 1; }

    .modal-dialog,
    .modal-content {
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
    }

    .cred-actions {
        flex-direction: column;
    }

    .btn-action {
        width: 100%;
        justify-content: center;
    }
}
