/* DadMate v2 — Apple × Airbnb Hybrid Design */

/* ── Variables ── */
:root {
    --cream: #FAF8F5;
    --bg: #F3F0EB;
    --surface: #FFFFFF;
    --card: #FFFFFF;
    --card-warm: #FFF9F5;

    --sage: #5B9A8B;
    --sage-light: #7BB8AA;
    --sage-bg: rgba(91, 154, 139, 0.1);
    --sage-border: rgba(91, 154, 139, 0.2);

    --coral: #E8846B;
    --coral-bg: rgba(232, 132, 107, 0.1);

    --amber: #D4956A;
    --amber-bg: rgba(212, 149, 106, 0.1);

    --text-1: #2D3436;
    --text-2: #636E72;
    --text-3: #9CA3A8;
    --text-4: #C8CDD0;

    --border: rgba(0,0,0,0.06);
    --border-soft: rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
    --shadow: 0 4px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);

    --radius-sm: 12px;
    --radius: 16px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 999px;

    --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'DM Serif Display', Georgia, serif;
}

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

html { font-size: 16px; }

body {
    font-family: var(--font);
    background: var(--cream);
    color: var(--text-1);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

#app {
    max-width: 420px;
    margin: 0 auto;
    min-height: 100dvh;
    background: var(--cream);
    padding-bottom: 90px;
}

/* ── Screen ── */
.screen {
    display: none;
    animation: fadeUp 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.screen.active { display: block; }

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

/* ── Dashboard ── */
.dashboard-inner {
    padding: 0 0 24px;
}

/* ── Header ── */
.dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-wrap {
    position: relative;
    width: 44px;
    height: 44px;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--surface);
    box-shadow: var(--shadow-sm);
}

.avatar-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--sage);
    opacity: 0.5;
}

.header-greeting {
    font-size: 13px;
    color: var(--text-3);
    font-weight: 400;
}

.header-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: -0.4px;
    line-height: 1.2;
}

.header-btn {
    width: 42px;
    height: 42px;
    background: var(--surface);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-2);
    box-shadow: var(--shadow);
    position: relative;
    transition: all 0.2s;
}

.header-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.notif-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 16px;
    height: 16px;
    background: var(--coral);
    color: white;
    font-size: 9px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--cream);
}

/* ── Progress Hero ── */
.progress-hero {
    background: var(--surface);
    border-radius: var(--radius-xl);
    margin: 20px 16px;
    padding: 28px 24px;
    display: flex;
    align-items: center;
    gap: 28px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.progress-hero::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--sage-bg) 0%, transparent 70%);
    pointer-events: none;
}

/* Apple-style ring */
.progress-ring-wrap {
    position: relative;
    width: 110px;
    height: 110px;
    flex-shrink: 0;
}

.progress-ring {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.ring-bg {
    fill: none;
    stroke: var(--bg);
    stroke-width: 9;
}

.ring-fill {
    fill: none;
    stroke-width: 9;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.ring-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ring-week {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: -2px;
    line-height: 1;
}

.ring-label {
    font-size: 11px;
    color: var(--text-3);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.progress-info {
    flex: 1;
}

.baby-fruit {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.fruit-emoji { font-size: 28px; }

.fruit-name {
    font-size: 12px;
    color: var(--text-3);
    font-weight: 400;
}

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

.days-count {
    margin-bottom: 10px;
}

.days-num {
    font-family: var(--font-serif);
    font-size: 36px;
    color: var(--sage);
    line-height: 1;
    letter-spacing: -1px;
}

.days-label {
    display: block;
    font-size: 12px;
    color: var(--text-3);
    margin-top: 2px;
}

.due-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-3);
}

/* ── Sections ── */
.page-body { padding: 0 16px 20px; }
.dashboard-inner .section { padding: 0 16px; margin-bottom: 24px; }

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.see-all {
    background: none;
    border: none;
    color: var(--sage);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
    transition: color 0.2s;
}

.see-all:hover { color: var(--sage-light); }

/* Live pill */
.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--sage-bg);
    color: var(--sage);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.live-dot {
    width: 6px;
    height: 6px;
    background: var(--sage);
    border-radius: 50%;
    animation: livePulse 2s ease infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* ── Status Chips ── */
.status-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.status-row::-webkit-scrollbar { display: none; }

.status-chip {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    min-width: fit-content;
}

.chip-icon { font-size: 18px; }

.chip-info { display: flex; flex-direction: column; }

.chip-val {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-1);
    line-height: 1.2;
}

.chip-key {
    font-size: 10px;
    color: var(--text-3);
    font-weight: 500;
}

/* ── Tasks ── */
.task-stack { display: flex; flex-direction: column; gap: 8px; }

.task-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.task-card:hover {
    box-shadow: var(--shadow);
    transform: translateX(2px);
}

.task-card.done { opacity: 0.6; }

.task-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }

.task-check {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border);
    border-radius: 50%;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: transparent;
    flex-shrink: 0;
    transition: all 0.2s;
}

.task-check:hover { border-color: var(--sage); }

.task-check.checked {
    background: var(--sage);
    border-color: var(--sage);
    color: white;
}

.task-body { flex: 1; min-width: 0; }

.task-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.task-card.done .task-name {
    text-decoration: line-through;
    color: var(--text-3);
}

.task-sub {
    font-size: 12px;
    color: var(--text-3);
    margin-top: 2px;
}

.task-right { display: flex; align-items: center; gap: 8px; color: var(--text-4); flex-shrink: 0; }

.task-priority {
    font-size: 10px;
    font-weight: 600;
    color: var(--coral);
    background: var(--coral-bg);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

/* ── Quick ── */
.quick-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.quick-tile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.quick-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.tile-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
}

.sync-icon { background: var(--sage-bg); color: var(--sage); }
.chat-icon { background: var(--coral-bg); color: var(--coral); }
.guide-icon { background: var(--amber-bg); color: var(--amber); }
.alert-icon { background: rgba(239,68,68,0.08); color: #E8846B; }

.quick-tile:hover .tile-icon {
    transform: scale(1.1);
}

.tile-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-2);
}

/* ── Page Nav ── */
.page-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border-soft);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-back {
    background: none;
    border: none;
    color: var(--sage);
    cursor: pointer;
    padding: 8px;
    margin: -8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}

.nav-back:hover { background: var(--sage-bg); }

.nav-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: -0.3px;
}

.nav-more {
    background: none;
    border: none;
    color: var(--text-3);
    cursor: pointer;
    padding: 8px;
    margin: -8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.nav-more:hover {
    background: var(--bg);
    color: var(--text-2);
}

/* ── Guide Card ── */
.guide-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin: 20px 0;
}

.guide-cover {
    background: linear-gradient(135deg, var(--sage) 0%, var(--sage-light) 100%);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cover-emoji { font-size: 56px; }

.guide-info { padding: 20px 20px 24px; }

.guide-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.guide-tag {
    font-size: 11px;
    font-weight: 600;
    background: var(--bg);
    color: var(--text-2);
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.guide-tag.high {
    background: var(--coral-bg);
    color: var(--coral);
}

.guide-name {
    font-family: var(--font-serif);
    font-size: 24px;
    color: var(--text-1);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.guide-desc {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.5;
    margin-bottom: 14px;
}

.guide-meta {
    display: flex;
    gap: 16px;
}

.guide-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-3);
    font-weight: 500;
}

/* ── Checklist ── */
.check-section {
    margin-bottom: 16px;
}

.check-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.check-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.check-progress {
    font-size: 13px;
    font-weight: 700;
    color: var(--sage);
}

.check-list {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border-soft);
    transition: background 0.15s;
}

.check-row:last-child { border-bottom: none; }

.check-row:hover { background: rgba(91,154,139,0.02); }

.check-btn {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-radius: 50%;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: transparent;
    flex-shrink: 0;
    margin-top: 1px;
    transition: all 0.2s;
}

.check-btn:hover { border-color: var(--sage); box-shadow: 0 0 0 3px var(--sage-bg); }

.check-btn.checked {
    background: var(--sage);
    border-color: var(--sage);
    color: white;
}

.check-body { flex: 1; }

.check-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 2px;
}

.check-row.done .check-name { text-decoration: line-through; color: var(--text-3); }

.check-detail {
    font-size: 12px;
    color: var(--text-3);
    line-height: 1.4;
}

/* ── Tips ── */
.tips-box {
    background: linear-gradient(135deg, #FFF9F0 0%, #FFF5E8 100%);
    border: 1px solid rgba(212,149,106,0.2);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    margin-bottom: 8px;
}

.tips-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.tips-icon { font-size: 16px; }

.tips-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--amber);
}

.tips-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tips-bullets li {
    font-size: 13px;
    color: var(--text-2);
    padding-left: 14px;
    position: relative;
    line-height: 1.5;
}

.tips-bullets li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--amber);
    font-size: 11px;
}

/* ── Sync Banner ── */
.sync-banner {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 16px 0;
    box-shadow: var(--shadow-sm);
}

.sync-pulse {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.pulse-ring {
    position: absolute;
    inset: 0;
    border: 2px solid var(--sage);
    border-radius: 50%;
    animation: pingRing 2s ease infinite;
}

.pulse-dot {
    position: absolute;
    inset: 4px;
    background: var(--sage);
    border-radius: 50%;
}

@keyframes pingRing {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.8); opacity: 0; }
}

.sync-text {}

.sync-status {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-1);
}

.sync-time {
    font-size: 12px;
    color: var(--text-3);
    margin-top: 2px;
}

/* ── Health Grid ── */
.health-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.health-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.health-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.health-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.health-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.trend {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-full);
}

.trend.up { background: var(--sage-bg); color: var(--sage); }
.trend.down { background: rgba(239,68,68,0.08); color: #E8846B; }
.trend.normal { background: var(--bg); color: var(--text-2); }
.trend.good { background: var(--sage-bg); color: var(--sage); }

.health-val {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 4px;
}

.health-unit {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-3);
}

.health-note {
    font-size: 11px;
    color: var(--text-3);
    margin-top: 6px;
}

.health-mini-chart {
    height: 32px;
    margin-top: 8px;
}

.health-mini-chart svg {
    width: 100%;
    height: 100%;
}

/* ── Appointments ── */
.appt-list { display: flex; flex-direction: column; gap: 8px; }

.appt-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
}

.appt-date {
    background: var(--sage);
    color: white;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    text-align: center;
    min-width: 54px;
    flex-shrink: 0;
}

.appt-month {
    display: block;
    font-size: 10px;
    font-weight: 700;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.appt-day {
    display: block;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.2;
}

.appt-body { flex: 1; }

.appt-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 2px;
}

.appt-sub {
    font-size: 12px;
    color: var(--text-3);
}

.appt-loc {
    font-size: 11px;
    color: var(--text-4);
    margin-top: 2px;
}

.appt-add {
    background: none;
    border: 1.5px solid var(--sage);
    color: var(--sage);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.2s;
    flex-shrink: 0;
}

.appt-add:hover, .appt-add.added {
    background: var(--sage);
    color: white;
}

/* ── Mood ── */
.mood-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.mood-bars {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 80px;
    margin-bottom: 16px;
}

.mood-item { flex: 1; }

.mood-bar {
    height: var(--h);
    background: linear-gradient(to top, var(--sage), var(--sage-light));
    border-radius: 6px 6px 0 0;
    opacity: 0.3;
    position: relative;
    transition: all 0.3s;
    cursor: pointer;
    min-height: 12px;
}

.mood-bar.active {
    opacity: 1;
    box-shadow: 0 0 12px rgba(91,154,139,0.3);
}

.mood-bar:hover { opacity: 0.6; }

.bar-day {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: var(--text-4);
    font-weight: 500;
}

.mood-insight {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border-soft);
    font-size: 13px;
    color: var(--text-2);
}

/* ── Topic Chips ── */
.topic-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px 0 16px;
}

.topic-scroll::-webkit-scrollbar { display: none; }

.topic-chip {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-2);
    font-size: 13px;
    font-weight: 500;
    padding: 7px 16px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
    font-family: var(--font);
}

.topic-chip:hover {
    border-color: var(--sage-border);
    background: var(--sage-bg);
}

.topic-chip.active {
    background: var(--sage);
    border-color: var(--sage);
    color: white;
}

/* ── Featured Post ── */
.post-featured {
    background: linear-gradient(135deg, var(--card-warm) 0%, #FFF5EE 100%);
    border: 1.5px solid rgba(232,132,107,0.25);
    border-radius: var(--radius-xl);
    padding: 20px;
    margin-bottom: 16px;
    position: relative;
}

.post-featured-badge {
    display: inline-block;
    background: var(--coral);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

/* ── Posts ── */
.post-list { display: flex; flex-direction: column; gap: 12px; }

.post-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.25s;
}

.post-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

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

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg);
    border: 1.5px solid var(--border);
}

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

.badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    background: var(--bg);
    color: var(--text-3);
    margin-left: 5px;
}

.badge.expert {
    background: var(--sage-bg);
    color: var(--sage);
}

.badge.new {
    background: var(--coral-bg);
    color: var(--coral);
}

.author-time {
    font-size: 12px;
    color: var(--text-3);
    margin-top: 1px;
}

.post-headline {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-1);
    line-height: 1.35;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.post-preview {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.action-like, .action-comment {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: var(--text-3);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font);
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.action-like:hover {
    background: var(--coral-bg);
    color: var(--coral);
}

.action-comment:hover {
    background: var(--sage-bg);
    color: var(--sage);
}

/* ── FAB ── */
.fab {
    position: fixed;
    bottom: 96px;
    right: calc(50% - 200px);
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--sage) 0%, var(--sage-light) 100%);
    border: none;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(91,154,139,0.4);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 50;
}

.fab:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 8px 32px rgba(91,154,139,0.5);
}

/* ── Tab Bar ── */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 420px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 8px 0 24px;
    z-index: 100;
}

.tab {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 20px;
    cursor: pointer;
    color: var(--text-4);
    transition: all 0.2s;
    border-radius: 12px;
}

.tab:hover { color: var(--text-3); }

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

.tab span {
    font-size: 10px;
    font-weight: 600;
}

/* ── Toast ── */
.toast {
    position: fixed;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--text-1);
    color: white;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 200;
    pointer-events: none;
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── Responsive ── */
@media (max-width: 420px) {
    #app { max-width: 100%; }
    .fab { right: 20px; }
    .tab-bar { max-width: 100%; }
}
