/* =====================
   INBOX SCREEN
   ===================== */
.inbox-list {
    padding: 8px 0;
}

.anon-insight-bar {
    width: calc(100% - 36px);
    margin: 6px 18px 10px;
    padding: 12px 14px;
    border: 1.5px solid #dac8e8;
    border-radius: 16px;
    background: #f6eefc;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    font-family: var(--font-ui);
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.08);
}

.anon-insight-bar-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.anon-insight-bar-copy strong {
    font-size: 0.96rem;
    line-height: 1.15;
}

.anon-insight-bar-copy small {
    color: #6f6778;
    font-size: 0.76rem;
    line-height: 1.25;
}

.anon-insight-bar-arrow {
    flex-shrink: 0;
    color: #7c3aed;
    font-family: Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 1;
}

.inbox-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-light);
    background: white;
    cursor: pointer;
    transition: background var(--t);
}

.inbox-row:hover {
    background: #faf8fc;
}

.inbox-row:active {
    background: #f5f5f5;
}

.inbox-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #d9d9d9;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inbox-avatar.anon-sender {
    border: none;
    background: #f4eff8;
    color: #8c759f;
}

.inbox-avatar.public-sender,
.inbox-sender-link {
    cursor: pointer;
}

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

.inbox-row-text {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.35;
}

.inbox-row-text strong {
    font-weight: 700;
}

.inbox-sender-link {
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 700;
    text-align: left;
}

.inbox-sender-link:active {
    color: #7c3aed;
}

.inbox-row-time {
    font-size: 0.68rem;
    color: var(--text-muted, #888888);
    font-weight: 400;
    display: inline-block;
    margin-left: 6px;
}

.inbox-row-snippet {
    font-size: 0.8rem;
    color: var(--text-muted, #777777);
    font-style: italic;
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inbox-section-header {
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 16px 16px 6px 16px;
    margin-top: 4px;
}
.inbox-section-header:first-child {
    padding-top: 8px;
    margin-top: 0;
}

.inbox-insight-btn {
    display: block;
    width: fit-content;
    margin-top: 6px;
    padding: 0;
    border: none;
    background: transparent;
    color: #7c3aed;
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
}

.inbox-insight-btn:hover {
    color: #5b21b6;
    text-decoration: underline;
}

.inbox-insight-btn:active {
    opacity: 0.8;
}

.inbox-thumb {
    width: 68px;
    height: 42px;
    border-radius: 8px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    padding: 4px 6px;
}

/* Thumbnails */
.th-tape {
    width: 100%;
    height: 100%;
    background: var(--tape);
    background-image: repeating-linear-gradient(90deg, transparent 0, transparent 4px,
            rgba(160, 140, 100, 0.1) 4px, rgba(160, 140, 100, 0.1) 5px);
    position: relative;
}

.th-tape::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70%;
    height: 30%;
    background: rgba(180, 155, 110, 0.25);
    border-radius: 1px;
    transform: translate(-50%, -50%);
}

.th-sticky {
    width: 28px;
    height: 28px;
    border-radius: 3px;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1);
}

.th-sticky.yellow {
    background: var(--sticky-yellow);
}

.th-sticky.pink {
    background: var(--sticky-pink);
}

.th-sticky.blue {
    background: var(--sticky-blue);
}

.th-cd {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #ff9de2, #c77dff, #4895ef, #4cc9f0, #ff9de2);
    position: relative;
}

.th-cd::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30%;
    height: 30%;
    border-radius: 50%;
    background: #eeeeee;
    transform: translate(-50%, -50%);
}

.th-phone {
    font-size: 1.5rem;
    line-height: 1;
}

/* =====================
   INBOX SUB-NAV TABS
   ===================== */
.inbox-subnav {
    display: flex;
    align-items: center;
    gap: 3px;
    width: calc(100% - 36px);
    margin: 14px 18px 8px;
    padding: 3px;
    border-radius: var(--r-pill);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #18181B;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    flex-shrink: 0 !important;
    min-height: 42px;
    box-sizing: border-box;
}

.inbox-subtab {
    position: relative;
    flex: 1 1 0;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: var(--r-pill);
    border: none;
    background: transparent;
    font-family: var(--font-ui);
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
}

.inbox-subtab.active {
    background: #FFFFFF !important;
    color: #18181B !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Reply notification card */
.inbox-reply-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-light);
    background: white;
    cursor: pointer;
    transition: background var(--t);
    gap: 12px;
}

.inbox-reply-card:hover {
    background: #faf8fc;
}

.inbox-reply-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.inbox-reply-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: #f0e6ff;
    border: 1.5px solid #e4c7ff;
    flex-shrink: 0;
}

.inbox-reply-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.inbox-reply-title {
    font-family: var(--font-ui);
    font-size: 0.92rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.inbox-reply-title strong {
    font-weight: 600;
    color: #111111;
}

.inbox-reply-time {
    font-size: 0.68rem;
    color: var(--text-secondary);
}

.inbox-reply-arrow {
    color: #c4b5fd;
    font-size: 1.4rem;
    line-height: 1;
}

