/* ===== PHONE UI ===== */
.phone-device {
    width: 340px; height: 620px; border-radius: 40px;
    background: #0a0a14; border: 3px solid #333;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.05);
    position: relative; overflow: hidden;
    animation: slideUp 0.4s ease;
}
.phone-notch {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 120px; height: 24px; background: #000;
    border-radius: 0 0 16px 16px; z-index: 10;
}
.phone-screen {
    position: absolute; top: 0; bottom: 0; left: 0; right: 0;
    display: flex; flex-direction: column;
    background: linear-gradient(180deg, #0c0a1a, #1a0e2e);
    border-radius: 37px; overflow: hidden;
}
.phone-statusbar {
    display: flex; justify-content: space-between;
    padding: 32px 24px 8px; font-size: 0.8rem; color: var(--text-dim);
}
.phone-content {
    flex: 1; overflow-y: auto; padding: 8px 16px;
    scrollbar-width: none;
}
.phone-content::-webkit-scrollbar { display: none; }
.phone-navbar {
    display: flex; justify-content: space-around;
    padding: 12px 0; background: rgba(0,0,0,0.5);
    border-top: 1px solid var(--border);
}
.phone-nav-btn {
    background: none; border: none; font-size: 1.3rem;
    cursor: pointer; padding: 8px 16px; border-radius: 12px;
    transition: all 0.2s; opacity: 0.5;
}
.phone-nav-btn.active { opacity: 1; background: rgba(255,107,157,0.1); }
.phone-close {
    position: absolute; top: -8px; right: -48px;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.1); border: 1px solid var(--border);
    color: var(--text); font-size: 1rem; cursor: pointer;
    transition: all 0.2s; z-index: 10;
}
.phone-close:hover { background: rgba(255,107,157,0.2); }

/* Messages Tab */
.phone-chat-list { display: flex; flex-direction: column; gap: 4px; }
.phone-chat-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px; border-radius: 14px;
    cursor: pointer; transition: all 0.2s;
}
.phone-chat-item:hover { background: rgba(255,255,255,0.05); }
.phone-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; flex-shrink: 0;
}
.phone-chat-info { flex: 1; min-width: 0; }
.phone-chat-name { font-size: 0.9rem; font-weight: 600; }
.phone-chat-preview {
    font-size: 0.8rem; color: var(--text-dim);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.phone-chat-time { font-size: 0.7rem; color: var(--text-dim); }
.phone-unread {
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--pink); color: #000; font-size: 0.7rem;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}

/* Chat View */
.phone-chat-view { display: flex; flex-direction: column; height: 100%; }
.phone-chat-header {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 0 12px; border-bottom: 1px solid var(--border);
}
.phone-chat-back {
    background: none; border: none; color: var(--text);
    font-size: 1.2rem; cursor: pointer;
}
.phone-messages {
    flex: 1; display: flex; flex-direction: column;
    gap: 8px; padding: 12px 0; overflow-y: auto;
}
.phone-msg {
    max-width: 80%; padding: 10px 14px; border-radius: 16px;
    font-size: 0.85rem; line-height: 1.5;
    animation: slideUp 0.2s ease;
}
.phone-msg.received {
    align-self: flex-start;
    background: rgba(255,255,255,0.08);
    border-bottom-left-radius: 4px;
}
.phone-msg.sent {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    border-bottom-right-radius: 4px;
}
.phone-input-bar {
    display: flex; gap: 8px; padding: 8px 0;
    border-top: 1px solid var(--border);
}
.phone-input-bar input {
    flex: 1; padding: 10px 14px; border-radius: 20px;
    background: rgba(0,0,0,0.3); border: 1px solid var(--border);
    color: var(--text); font-family: var(--font); font-size: 0.85rem;
    outline: none;
}
.phone-input-bar button {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--pink); border: none;
    cursor: pointer; font-size: 0.9rem;
}

/* Social Tab */
.phone-social-feed { display: flex; flex-direction: column; gap: 16px; }
.social-post {
    background: rgba(255,255,255,0.03); border-radius: 14px;
    padding: 14px; border: 1px solid var(--border);
}
.social-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.social-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
}
.social-name { font-size: 0.85rem; font-weight: 600; }
.social-time { font-size: 0.7rem; color: var(--text-dim); }
.social-text { font-size: 0.85rem; line-height: 1.6; margin-bottom: 8px; }
.social-actions { display: flex; gap: 16px; }
.social-action {
    background: none; border: none; color: var(--text-dim);
    font-size: 0.8rem; cursor: pointer; transition: color 0.2s;
    font-family: var(--font);
}
.social-action:hover { color: var(--pink); }

/* Calendar Tab */
.phone-calendar { padding: 8px 0; }
.cal-month { text-align: center; font-weight: 600; margin-bottom: 12px; }
.cal-grid {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
}
.cal-day {
    aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
    border-radius: 8px; font-size: 0.8rem; color: var(--text-dim);
}
.cal-day.today { background: var(--pink); color: #fff; font-weight: 700; }
.cal-day.event { background: rgba(168,85,247,0.2); color: var(--purple); }
.cal-header { font-size: 0.7rem; color: var(--text-dim); text-align: center; }

@media (max-width: 400px) {
    .phone-device { width: 300px; height: 550px; border-radius: 32px; }
    .phone-screen { border-radius: 29px; }
}
