  :root {
    --sun: #FFD93D;
    --coral: #FF6B6B;
    --mint: #6BCB77;
    --sky: #4ECDC4;
    --lavender: #A78BFA;
    --peach: #FFAD60;
    --pink: #FF85A1;
    --cream: #FFFBF2;
    --soft: #F7F0FF;
    --card: #FFFFFF;
    --text: #2D2D2D;
    --muted: #888;
    --border: #E8E0FF;
    --shadow: 0 8px 32px rgba(167,139,250,0.13);
    --radius: 20px;
    --nav-h: 70px;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  body {
    font-family: 'Quicksand', sans-serif;
    background: var(--cream);
    color: var(--text);
    overflow-x: hidden;
  }

  /* ── SCROLLBAR ── */
  ::-webkit-scrollbar { width: 8px; }
  ::-webkit-scrollbar-track { background: var(--soft); }
  ::-webkit-scrollbar-thumb { background: var(--lavender); border-radius: 8px; }

  /* ── NAV ── */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 999;
    height: var(--nav-h);
    background: rgba(255,251,242,0.92);
    backdrop-filter: blur(14px);
    border-bottom: 2px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 32px;
    box-shadow: 0 2px 24px rgba(167,139,250,0.08);
  }

  .logo {
    font-family: 'Pacifico', cursive;
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--coral), var(--lavender), var(--sky));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
  }

  .nav-links { display: flex; gap: 6px; align-items: center; }
  .nav-links a {
    text-decoration: none; color: var(--text);
    font-weight: 600; font-size: 0.88rem;
    padding: 7px 14px; border-radius: 50px;
    transition: all .2s;
  }
  .nav-links a:hover { background: var(--soft); color: var(--lavender); }
  .nav-links a.active { background: var(--lavender); color: #fff; }

  .nav-right { display: flex; gap: 10px; align-items: center; }
  .btn { border: none; cursor: pointer; font-family: 'Quicksand', sans-serif; font-weight: 700; transition: all .2s; }
  .btn-outline {
    background: transparent; border: 2px solid var(--lavender);
    color: var(--lavender); padding: 8px 20px; border-radius: 50px; font-size: .88rem;
  }
  .btn-outline:hover { background: var(--lavender); color: #fff; }
  .btn-primary {
    background: linear-gradient(135deg, var(--coral), var(--pink));
    color: #fff; padding: 9px 22px; border-radius: 50px; font-size: .88rem;
    box-shadow: 0 4px 16px rgba(255,107,107,0.3);
  }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,107,107,0.4); }

  /* ── MAIN WRAPPER ── */
  main { padding-top: var(--nav-h); }

  /* ── SECTIONS ── */
  .section { display: none; }
  .section.active { display: block; }

  /* ══════════════════════════════════
     HERO / HOME
  ══════════════════════════════════ */
  #home {
    min-height: calc(100vh - var(--nav-h));
    background: linear-gradient(135deg, #FFF9F0 0%, #F0F4FF 50%, #FFF0F8 100%);
    position: relative; overflow: hidden;
  }

  .hero-bg-circles {
    position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  }
  .circle {
    position: absolute; border-radius: 50%;
    opacity: 0.18; animation: float 8s ease-in-out infinite;
  }
  .c1 { width: 340px; height: 340px; background: var(--sun); top: -80px; left: -80px; animation-delay: 0s; }
  .c2 { width: 240px; height: 240px; background: var(--sky); top: 20%; right: -60px; animation-delay: 2s; }
  .c3 { width: 180px; height: 180px; background: var(--pink); bottom: 10%; left: 20%; animation-delay: 4s; }
  .c4 { width: 120px; height: 120px; background: var(--mint); top: 55%; right: 25%; animation-delay: 1.5s; }
  .c5 { width: 90px; height: 90px; background: var(--lavender); bottom: 25%; right: 10%; animation-delay: 3s; }

  @keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-24px) scale(1.04); }
  }

  .hero-content {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; text-align: center;
    padding: 80px 24px 60px;
    min-height: calc(100vh - var(--nav-h));
  }

  .hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, #FFE7E7, #E7F4FF);
    border: 1.5px solid var(--border);
    padding: 8px 20px; border-radius: 50px;
    font-size: .82rem; font-weight: 700; color: var(--lavender);
    margin-bottom: 28px;
    animation: fadeDown .8s ease both;
  }

  .hero-title {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(2.4rem, 6vw, 5rem);
    font-weight: 900; line-height: 1.12;
    margin-bottom: 20px;
    animation: fadeDown .9s ease .1s both;
  }
  .hero-title .grad {
    background: linear-gradient(135deg, var(--coral) 0%, var(--lavender) 50%, var(--sky) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  }

  .hero-sub {
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    color: var(--muted); max-width: 600px; line-height: 1.7;
    margin-bottom: 40px;
    animation: fadeDown 1s ease .2s both;
  }

  .hero-cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; animation: fadeDown 1s ease .35s both; }
  .btn-hero {
    background: linear-gradient(135deg, var(--coral), var(--pink));
    color: #fff; padding: 15px 36px; border-radius: 50px;
    font-size: 1.1rem; font-weight: 800; border: none; cursor: pointer;
    box-shadow: 0 6px 28px rgba(255,107,107,0.35);
    transition: all .25s; font-family: 'Nunito', sans-serif;
  }
  .btn-hero:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(255,107,107,0.45); }
  .btn-hero-2 {
    background: #fff; color: var(--lavender); padding: 14px 36px; border-radius: 50px;
    font-size: 1.1rem; font-weight: 800; border: 2.5px solid var(--lavender); cursor: pointer;
    transition: all .25s; font-family: 'Nunito', sans-serif;
  }
  .btn-hero-2:hover { background: var(--lavender); color: #fff; }

  .hero-stats {
    display: flex; gap: 48px; margin-top: 64px; flex-wrap: wrap; justify-content: center;
    animation: fadeDown 1s ease .5s both;
  }
  .stat { text-align: center; }
  .stat-num { font-family: 'Nunito', sans-serif; font-size: 2rem; font-weight: 900; color: var(--text); }
  .stat-label { font-size: .82rem; color: var(--muted); font-weight: 600; }

  /* Features grid on home */
  .features-section {
    padding: 80px 24px;
    background: linear-gradient(to bottom, #F0F4FF, #FFF9F0);
  }
  .section-title {
    text-align: center;
    font-family: 'Nunito', sans-serif; font-size: 2.2rem; font-weight: 900;
    margin-bottom: 12px;
  }
  .section-sub { text-align: center; color: var(--muted); margin-bottom: 48px; font-size: 1.05rem; }

  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px; max-width: 1100px; margin: 0 auto;
  }
  .feat-card {
    background: var(--card); border-radius: var(--radius);
    padding: 30px 24px; text-align: center;
    border: 2px solid var(--border);
    cursor: pointer; transition: all .25s;
    box-shadow: var(--shadow);
  }
  .feat-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(167,139,250,0.18); border-color: var(--lavender); }
  .feat-icon { font-size: 2.8rem; margin-bottom: 14px; display: block; }
  .feat-name { font-weight: 800; font-size: 1rem; margin-bottom: 6px; color: var(--text); }
  .feat-desc { font-size: .84rem; color: var(--muted); line-height: 1.5; }

  @keyframes fadeDown {
    from { opacity: 0; transform: translateY(-18px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ══════════════════════════════════
     NEWS / GLOBAL UPDATES
  ══════════════════════════════════ */
  #news { padding: 40px 24px 60px; min-height: 100vh; }
  .news-toolbar {
    max-width: 1100px; margin: 0 auto 32px;
    display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  }
  .news-toolbar input {
    flex: 1; min-width: 220px; padding: 11px 18px;
    border: 2px solid var(--border); border-radius: 50px;
    font-family: 'Quicksand', sans-serif; font-size: .92rem;
    background: #fff; outline: none; transition: border .2s;
  }
  .news-toolbar input:focus { border-color: var(--lavender); }
  .chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
  .chip {
    padding: 7px 16px; border-radius: 50px; font-size: .82rem; font-weight: 700;
    border: 2px solid var(--border); background: #fff; cursor: pointer; transition: all .2s;
  }
  .chip:hover, .chip.on { background: var(--lavender); color: #fff; border-color: var(--lavender); }

  .news-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px; max-width: 1100px; margin: 0 auto;
  }
  .news-card {
    background: #fff; border-radius: var(--radius);
    border: 2px solid var(--border); overflow: hidden;
    box-shadow: var(--shadow); transition: all .25s; cursor: pointer;
  }
  .news-card:hover { transform: translateY(-4px); border-color: var(--sky); }
  .news-thumb {
    height: 160px; display: flex; align-items: center; justify-content: center;
    font-size: 4rem;
  }
  .news-body { padding: 18px; }
  .news-tag {
    display: inline-block; font-size: .72rem; font-weight: 800;
    padding: 3px 10px; border-radius: 50px; margin-bottom: 8px;
  }
  .news-title { font-weight: 800; font-size: .97rem; margin-bottom: 6px; line-height: 1.4; }
  .news-meta { font-size: .78rem; color: var(--muted); }

  /* ══════════════════════════════════
     DEALS / SHOP
  ══════════════════════════════════ */
  #deals { padding: 40px 24px 60px; min-height: 100vh; }
  .deals-hero {
    background: linear-gradient(135deg, #FFF3CC, #FFE0B2);
    border-radius: 24px; padding: 40px; text-align: center;
    margin-bottom: 40px; max-width: 1100px; margin: 0 auto 32px;
    border: 2px solid #FFD93D;
  }
  .deals-hero h2 { font-family: 'Nunito', sans-serif; font-size: 2rem; font-weight: 900; color: #B45309; }
  .deals-hero p { color: #92400E; margin-top: 8px; }
  .countdown {
    display: flex; gap: 16px; justify-content: center; margin-top: 20px; flex-wrap: wrap;
  }
  .count-box {
    background: #fff; border-radius: 14px; padding: 12px 20px; text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
  }
  .count-num { font-family: 'Nunito', sans-serif; font-size: 2rem; font-weight: 900; color: var(--coral); }
  .count-lbl { font-size: .72rem; font-weight: 700; color: var(--muted); }

  .deals-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px; max-width: 1100px; margin: 0 auto;
  }
  .deal-card {
    background: #fff; border-radius: var(--radius); border: 2px solid var(--border);
    overflow: hidden; box-shadow: var(--shadow); transition: all .25s;
  }
  .deal-card:hover { transform: translateY(-4px); border-color: var(--peach); }
  .deal-img { height: 140px; display: flex; align-items: center; justify-content: center; font-size: 4rem; }
  .deal-body { padding: 16px; }
  .deal-name { font-weight: 800; font-size: .95rem; margin-bottom: 6px; }
  .deal-prices { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
  .price-now { font-family: 'Nunito', sans-serif; font-size: 1.3rem; font-weight: 900; color: var(--mint); }
  .price-was { text-decoration: line-through; color: var(--muted); font-size: .85rem; }
  .discount-badge {
    background: var(--coral); color: #fff; padding: 2px 8px; border-radius: 50px;
    font-size: .72rem; font-weight: 800;
  }
  .deal-rating { font-size: .8rem; color: #F59E0B; margin-bottom: 12px; }
  .add-cart {
    width: 100%; padding: 10px; border-radius: 50px;
    background: linear-gradient(135deg, var(--mint), var(--sky));
    color: #fff; font-weight: 800; border: none; cursor: pointer;
    font-family: 'Quicksand', sans-serif; font-size: .9rem; transition: all .2s;
  }
  .add-cart:hover { transform: scale(1.03); }
  .cart-badge {
    position: relative; display: inline-block;
  }
  .cart-count {
    position: absolute; top: -8px; right: -8px;
    background: var(--coral); color: #fff; border-radius: 50%;
    width: 20px; height: 20px; font-size: .7rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
  }

  /* ══════════════════════════════════
     FUN / LAUGH
  ══════════════════════════════════ */
  #fun { padding: 40px 24px 60px; min-height: 100vh; }
  .fun-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; max-width: 900px; margin: 0 auto 32px; }
  .fun-tab {
    padding: 9px 22px; border-radius: 50px; border: 2px solid var(--border);
    background: #fff; cursor: pointer; font-weight: 700; font-size: .88rem;
    transition: all .2s;
  }
  .fun-tab:hover, .fun-tab.on { background: var(--sun); border-color: var(--sun); color: #333; }

  .joke-box {
    max-width: 700px; margin: 0 auto 40px;
    background: linear-gradient(135deg, #FFF9E0, #FFF0F8);
    border: 2.5px solid var(--sun); border-radius: 24px; padding: 36px;
    text-align: center;
  }
  .joke-emoji { font-size: 3rem; margin-bottom: 16px; display: block; }
  .joke-text { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; line-height: 1.6; }
  .joke-punchline { font-size: 1.05rem; color: var(--coral); font-weight: 800; min-height: 28px; }
  .btn-joke {
    background: linear-gradient(135deg, var(--sun), var(--peach));
    color: #333; padding: 12px 28px; border-radius: 50px; border: none;
    font-weight: 800; cursor: pointer; font-family: 'Quicksand', sans-serif;
    font-size: .95rem; margin-top: 20px; transition: all .2s;
  }
  .btn-joke:hover { transform: scale(1.05); }
  #reveal-btn { margin-left: 10px; background: #fff; border: 2px solid var(--coral); color: var(--coral); }

  .memes-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px; max-width: 1000px; margin: 0 auto;
  }
  .meme-card {
    background: #fff; border-radius: 18px; border: 2px solid var(--border);
    overflow: hidden; box-shadow: var(--shadow); transition: all .25s; cursor: pointer;
  }
  .meme-card:hover { transform: rotate(-1deg) scale(1.03); }
  .meme-face { height: 160px; display: flex; align-items: center; justify-content: center; font-size: 5rem; }
  .meme-caption { padding: 12px; font-weight: 800; font-size: .9rem; text-align: center; }

  /* ══════════════════════════════════
     CONNECT
  ══════════════════════════════════ */
  #connect { padding: 40px 24px 60px; min-height: 100vh; }
  .people-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px; max-width: 1100px; margin: 0 auto;
  }
  .person-card {
    background: #fff; border-radius: var(--radius); border: 2px solid var(--border);
    padding: 28px 20px; text-align: center; box-shadow: var(--shadow); transition: all .25s;
  }
  .person-card:hover { border-color: var(--pink); transform: translateY(-4px); }
  .avatar {
    width: 72px; height: 72px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; margin: 0 auto 12px;
    border: 3px solid var(--border);
  }
  .person-name { font-weight: 800; font-size: 1rem; margin-bottom: 4px; }
  .person-loc { font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
  .person-mood { font-size: .8rem; font-weight: 700; }
  .connect-btn {
    margin-top: 14px; width: 100%; padding: 9px; border-radius: 50px;
    background: linear-gradient(135deg, var(--pink), var(--lavender));
    color: #fff; font-weight: 800; border: none; cursor: pointer;
    font-family: 'Quicksand', sans-serif; font-size: .85rem; transition: all .2s;
  }
  .connect-btn:hover { transform: scale(1.04); }
  .connect-btn.following { background: #f0f0f0; color: var(--muted); }

  /* Online indicator */
  .status-dot {
    display: inline-block; width: 10px; height: 10px; border-radius: 50%;
    margin-right: 4px; vertical-align: middle;
  }
  .online { background: var(--mint); }
  .busy { background: var(--coral); }
  .away { background: var(--sun); }

  /* ══════════════════════════════════
     GROUPS
  ══════════════════════════════════ */
  #groups { padding: 40px 24px 60px; min-height: 100vh; }
  .groups-layout {
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: 300px 1fr; gap: 24px;
  }
  .group-sidebar { display: flex; flex-direction: column; gap: 14px; }
  .group-item {
    background: #fff; border-radius: 16px; border: 2px solid var(--border);
    padding: 16px; cursor: pointer; transition: all .2s; display: flex; gap: 14px; align-items: center;
  }
  .group-item:hover, .group-item.active { border-color: var(--lavender); background: var(--soft); }
  .group-emoji { font-size: 2rem; }
  .group-info { flex: 1; }
  .group-name { font-weight: 800; font-size: .92rem; }
  .group-members { font-size: .78rem; color: var(--muted); }
  .group-chat {
    background: #fff; border-radius: var(--radius); border: 2px solid var(--border);
    display: flex; flex-direction: column; height: 560px;
  }
  .chat-header {
    padding: 18px 20px; border-bottom: 2px solid var(--border);
    display: flex; align-items: center; gap: 14px;
  }
  .chat-title { font-weight: 800; font-size: 1rem; }
  .chat-subtitle { font-size: .78rem; color: var(--muted); }
  .chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
  .msg { max-width: 75%; }
  .msg.me { align-self: flex-end; }
  .msg-bubble {
    padding: 10px 16px; border-radius: 18px; font-size: .9rem; line-height: 1.5;
  }
  .msg .msg-bubble { background: var(--soft); border-bottom-left-radius: 4px; }
  .msg.me .msg-bubble { background: linear-gradient(135deg, var(--lavender), var(--sky)); color: #fff; border-bottom-right-radius: 4px; }
  .msg-meta { font-size: .72rem; color: var(--muted); margin-top: 4px; padding: 0 4px; }
  .msg.me .msg-meta { text-align: right; }
  .chat-input {
    padding: 16px 20px; border-top: 2px solid var(--border);
    display: flex; gap: 10px; align-items: center;
  }
  .chat-input input {
    flex: 1; padding: 11px 18px; border: 2px solid var(--border); border-radius: 50px;
    font-family: 'Quicksand', sans-serif; font-size: .92rem; outline: none;
  }
  .chat-input input:focus { border-color: var(--lavender); }
  .send-btn {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--lavender), var(--sky));
    color: #fff; border: none; cursor: pointer; font-size: 1.1rem; transition: all .2s;
  }
  .send-btn:hover { transform: scale(1.1); }

  /* ══════════════════════════════════
     THOUGHTS / FEED
  ══════════════════════════════════ */
  #thoughts { padding: 40px 24px 60px; min-height: 100vh; }
  .feed-layout {
    max-width: 900px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 300px; gap: 24px;
  }
  .compose-box {
    background: #fff; border-radius: var(--radius); border: 2px solid var(--border);
    padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow);
  }
  .compose-box textarea {
    width: 100%; border: none; outline: none; font-family: 'Quicksand', sans-serif;
    font-size: .97rem; resize: none; color: var(--text);
    min-height: 80px;
  }
  .compose-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; border-top: 1px solid var(--border); padding-top: 12px; }
  .compose-tools { display: flex; gap: 10px; }
  .compose-tool { background: none; border: none; cursor: pointer; font-size: 1.2rem; padding: 4px; border-radius: 8px; transition: background .2s; }
  .compose-tool:hover { background: var(--soft); }
  .post-btn {
    background: linear-gradient(135deg, var(--lavender), var(--sky));
    color: #fff; border: none; padding: 9px 22px; border-radius: 50px;
    font-weight: 800; cursor: pointer; font-family: 'Quicksand', sans-serif; font-size: .88rem;
    transition: all .2s;
  }
  .post-btn:hover { transform: scale(1.04); }

  .thought-card {
    background: #fff; border-radius: var(--radius); border: 2px solid var(--border);
    padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow); transition: border .2s;
  }
  .thought-card:hover { border-color: var(--lavender); }
  .thought-header { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
  .t-avatar { font-size: 2rem; }
  .t-name { font-weight: 800; font-size: .95rem; }
  .t-time { font-size: .78rem; color: var(--muted); }
  .thought-text { font-size: .95rem; line-height: 1.7; margin-bottom: 16px; }
  .thought-tag {
    display: inline-block; padding: 3px 10px; border-radius: 50px;
    font-size: .75rem; font-weight: 700; margin-right: 6px; margin-bottom: 10px;
  }
  .thought-actions { display: flex; gap: 16px; border-top: 1px solid var(--border); padding-top: 12px; }
  .t-action {
    background: none; border: none; cursor: pointer; font-size: .85rem; font-weight: 700;
    color: var(--muted); display: flex; align-items: center; gap: 6px; padding: 6px 10px;
    border-radius: 50px; transition: all .2s; font-family: 'Quicksand', sans-serif;
  }
  .t-action:hover { background: var(--soft); color: var(--lavender); }
  .t-action.liked { color: var(--coral); }

  .sidebar-widget {
    background: #fff; border-radius: var(--radius); border: 2px solid var(--border);
    padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow);
  }
  .widget-title { font-weight: 800; font-size: .95rem; margin-bottom: 14px; }
  .trending-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 0; border-bottom: 1px solid var(--border);
    cursor: pointer; transition: color .2s;
  }
  .trending-item:last-child { border-bottom: none; }
  .trending-item:hover { color: var(--lavender); }
  .trend-num { font-weight: 900; font-size: .9rem; color: var(--lavender); min-width: 22px; }
  .trend-tag { font-weight: 700; font-size: .88rem; }
  .trend-count { font-size: .75rem; color: var(--muted); margin-left: auto; }

  /* ══════════════════════════════════
     MOOD TRACKER
  ══════════════════════════════════ */
  #mood { padding: 40px 24px 60px; min-height: 100vh; }
  .mood-center { max-width: 700px; margin: 0 auto; }
  .mood-question { text-align: center; font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
  .mood-sub { text-align: center; color: var(--muted); margin-bottom: 36px; }
  .mood-emojis { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
  .mood-emoji-btn {
    font-size: 2.8rem; background: none; border: 3px solid var(--border);
    border-radius: 50%; width: 80px; height: 80px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s;
  }
  .mood-emoji-btn:hover { border-color: var(--lavender); transform: scale(1.15); }
  .mood-emoji-btn.selected { border-color: var(--lavender); background: var(--soft); transform: scale(1.15); }

  .mood-journal {
    background: #fff; border-radius: var(--radius); border: 2px solid var(--border);
    padding: 24px; margin-bottom: 24px;
  }
  .mood-journal label { font-weight: 700; display: block; margin-bottom: 10px; }
  .mood-journal textarea {
    width: 100%; border: 1.5px solid var(--border); border-radius: 14px;
    padding: 14px; font-family: 'Quicksand', sans-serif; font-size: .95rem;
    resize: none; min-height: 100px; outline: none;
  }
  .mood-journal textarea:focus { border-color: var(--lavender); }

  .mood-activities { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
  .activity-tag {
    padding: 8px 16px; border: 2px solid var(--border); border-radius: 50px;
    cursor: pointer; font-size: .85rem; font-weight: 700; transition: all .2s; background: #fff;
  }
  .activity-tag:hover, .activity-tag.on { background: var(--mint); border-color: var(--mint); color: #fff; }

  .mood-save {
    width: 100%; padding: 14px; border-radius: 50px;
    background: linear-gradient(135deg, var(--lavender), var(--sky));
    color: #fff; font-weight: 800; border: none; cursor: pointer;
    font-family: 'Quicksand', sans-serif; font-size: 1rem; transition: all .2s;
  }
  .mood-save:hover { transform: scale(1.03); }

  .mood-history {
    background: #fff; border-radius: var(--radius); border: 2px solid var(--border);
    padding: 24px; margin-top: 30px;
  }
  .mood-chart { display: flex; align-items: flex-end; gap: 10px; height: 100px; margin-top: 16px; }
  .mood-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
  .mood-bar {
    width: 100%; border-radius: 8px 8px 0 0; transition: height .5s ease;
  }
  .mood-bar-day { font-size: .7rem; color: var(--muted); font-weight: 700; }

  /* ══════════════════════════════════
     MEET / EVENTS
  ══════════════════════════════════ */
  #meet { padding: 40px 24px 60px; min-height: 100vh; }
  .events-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px; max-width: 1100px; margin: 0 auto;
  }
  .event-card {
    background: #fff; border-radius: var(--radius); border: 2px solid var(--border);
    overflow: hidden; box-shadow: var(--shadow); transition: all .25s; cursor: pointer;
  }
  .event-card:hover { transform: translateY(-4px); border-color: var(--sky); }
  .event-banner {
    height: 130px; display: flex; align-items: center; justify-content: center;
    font-size: 4rem; position: relative;
  }
  .event-date-badge {
    position: absolute; top: 14px; right: 14px;
    background: #fff; border-radius: 12px; padding: 6px 12px; text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,.12);
  }
  .event-date-badge .day { font-family: 'Nunito', sans-serif; font-size: 1.4rem; font-weight: 900; color: var(--coral); line-height: 1; }
  .event-date-badge .mon { font-size: .7rem; font-weight: 800; color: var(--muted); }
  .event-body { padding: 18px; }
  .event-name { font-weight: 800; font-size: 1rem; margin-bottom: 6px; }
  .event-info { font-size: .82rem; color: var(--muted); margin-bottom: 12px; }
  .event-going {
    display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; margin-bottom: 14px;
  }
  .going-faces { display: flex; }
  .going-face { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; display: flex; align-items: center; justify-content: center; font-size: .9rem; margin-left: -8px; }
  .going-face:first-child { margin-left: 0; }
  .join-btn {
    width: 100%; padding: 10px; border-radius: 50px;
    background: linear-gradient(135deg, var(--sky), var(--lavender));
    color: #fff; font-weight: 800; border: none; cursor: pointer;
    font-family: 'Quicksand', sans-serif; font-size: .88rem; transition: all .2s;
  }
  .join-btn:hover { transform: scale(1.03); }
  .join-btn.joined { background: var(--mint); }

  /* ══════════════════════════════════
     TOAST / MODAL
  ══════════════════════════════════ */
  .toast {
    position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(80px);
    background: linear-gradient(135deg, var(--lavender), var(--sky));
    color: #fff; padding: 14px 28px; border-radius: 50px;
    font-weight: 700; font-size: .95rem; z-index: 9999;
    box-shadow: 0 8px 32px rgba(78,205,196,0.35);
    transition: transform .35s ease, opacity .35s ease;
    opacity: 0; pointer-events: none;
  }
  .toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

  .modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.35);
    z-index: 9990; display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity .3s;
    backdrop-filter: blur(4px);
  }
  .modal-overlay.open { opacity: 1; pointer-events: all; }
  .modal {
    background: #fff; border-radius: 24px; padding: 36px;
    max-width: 440px; width: 90%; box-shadow: 0 24px 80px rgba(0,0,0,.2);
    transform: scale(.93); transition: transform .3s;
    position: relative;
  }
  .modal-overlay.open .modal { transform: scale(1); }
  .modal-close {
    position: absolute; top: 16px; right: 20px;
    background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--muted);
  }
  .modal h3 { font-family: 'Nunito', sans-serif; font-size: 1.5rem; font-weight: 900; margin-bottom: 8px; }
  .modal p { color: var(--muted); margin-bottom: 20px; }
  .modal input, .modal textarea {
    width: 100%; padding: 12px 16px; border: 2px solid var(--border);
    border-radius: 14px; font-family: 'Quicksand', sans-serif; font-size: .95rem;
    outline: none; margin-bottom: 14px;
  }
  .modal input:focus, .modal textarea:focus { border-color: var(--lavender); }
  .modal .btn-primary { width: 100%; padding: 13px; font-size: 1rem; border-radius: 50px; }

  /* ══════════════════════════════════
     WEATHER WIDGET
  ══════════════════════════════════ */
  .weather-widget {
    background: linear-gradient(135deg, #E0F4FF, #F0E8FF);
    border-radius: 18px; padding: 18px; border: 2px solid var(--border);
  }
  .weather-temp { font-family: 'Nunito', sans-serif; font-size: 2.4rem; font-weight: 900; }
  .weather-desc { font-size: .85rem; color: var(--muted); }

  /* ══════════════════════════════════
     RESPONSIVE
  ══════════════════════════════════ */
  @media (max-width: 768px) {
    .nav-links { display: none; }
    .feed-layout { grid-template-columns: 1fr; }
    .groups-layout { grid-template-columns: 1fr; }
    .hero-stats { gap: 28px; }
    .group-sidebar { flex-direction: row; overflow-x: auto; }
  }

  /* Loading shimmer */
  @keyframes shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
  }
  .shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 800px 100%; animation: shimmer 1.5s infinite;
  }

  /* Reaction ripple */
  @keyframes ripple {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
  }

  /* ══════════════════════════════════
     MOBILE NAV (bottom)
  ══════════════════════════════════ */
  .mobile-nav {
    display: none; position: fixed; bottom: 0; left: 0; right: 0;
    background: rgba(255,251,242,0.96); backdrop-filter: blur(12px);
    border-top: 2px solid var(--border); z-index: 998;
    padding: 8px 0 env(safe-area-inset-bottom, 8px);
  }
  .mobile-nav-inner { display: flex; justify-content: space-around; }
  .mob-btn { background: none; border: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 10px; border-radius: 12px; font-family: 'Quicksand', sans-serif; }
  .mob-btn .icon { font-size: 1.4rem; }
  .mob-btn .lbl { font-size: .62rem; font-weight: 700; color: var(--muted); }
  .mob-btn.active .lbl { color: var(--lavender); }
  @media (max-width: 600px) { .mobile-nav { display: block; } main { padding-bottom: 70px; } }