/* ============================================================
   UNIVERSE REDESIGN — full-section scroll layout
   ============================================================ */

/* Kill any backdrop-filter bleed from old styles.css inside our sections */
.full-section,
.full-section * {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

/* Scroll Progress Bar */
.scroll-bar {
    position: fixed;
    top: 0; left: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #f093fb, #4ecdc4, #f6d365);
    background-size: 300% 100%;
    animation: barShimmer 3s linear infinite;
    z-index: 9999;
    width: 0%;
    transition: width 0.15s linear;
}
@keyframes barShimmer {
    0%   { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* Side Dot Navigation */
.dot-nav {
    position: fixed;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 1000;
}
.dot-link {
    display: block;
    width: 11px; height: 11px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    border: 2px solid rgba(255,255,255,0.55);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    text-decoration: none;
}
.dot-link::after {
    content: attr(data-label);
    position: absolute;
    right: 20px; top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.dot-link:hover::after,
.dot-link.active::after { opacity: 1; }
.dot-link.active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(255,255,255,0.6);
}
.dot-link:hover { background: rgba(255,255,255,0.75); transform: scale(1.25); }

/* Full Section Base */
.full-section {
    position: relative;
    min-height: 100vh;
    padding: 90px 0 130px;
    overflow: hidden;
}
.sec-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Wave Divider */
.wave-div {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}
.wave-div svg { display: block; width: 100%; height: 80px; }

/* Section Header */
.sec-header { text-align: center; margin-bottom: 3rem; }
.sec-header h2 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.sec-header p { font-size: 1.05rem; color: rgba(255,255,255,0.7); font-weight: 300; }
.sec-header-dark h2 { color: #1a1a2e !important; text-shadow: none !important; }
.sec-header-dark p  { color: rgba(0,0,0,0.55) !important; }

/* Shared Add Row */
.add-row {
    display: flex;
    gap: 1rem;
    max-width: 580px;
    margin: 2rem auto 0;
}
.add-input {
    flex: 1;
    padding: 0.85rem 1.4rem;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    /* backdrop-filter removed to prevent blur bleed-through during entrance animations */
    transition: all 0.3s ease;
}
.add-input::placeholder { color: rgba(255,255,255,0.5); }
.add-input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.65);
    background: rgba(255,255,255,0.22);
}
.add-btn {
    padding: 0.85rem 1.6rem;
    border-radius: 50px;
    border: none;
    background: rgba(255,255,255,0.22);
    color: #fff;
    font-size: 0.9rem; font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    /* backdrop-filter removed to prevent blur bleed-through during entrance animations */
    white-space: nowrap;
}
.add-btn:hover { background: rgba(255,255,255,0.38); transform: scale(1.05); }
.add-btn:active { transform: scale(0.97); }

/* ---- THEME VARIABLES ---- */
:root {
    --bg-friends:     linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-oneliners:   linear-gradient(135deg, #c0392b 0%, #e91e8c 100%);
    --bg-birthday:    linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    --bg-suggestions: linear-gradient(135deg, #0d7377 0%, #38ef7d 100%);
    --bg-routine:     linear-gradient(135deg, #2c3e8c 0%, #8e54e9 100%);
    --bg-workouts:    linear-gradient(135deg, #c0392b 0%, #f39c12 100%);
    --bg-food:        linear-gradient(135deg, #0a3d62 0%, #30cfd0 100%);
    --bg-galaxy:      linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    --bar-colors:     linear-gradient(90deg, #ff6b6b, #f093fb, #4ecdc4, #f6d365);
    --theme-btn-bg:   linear-gradient(135deg, #ff6b6b, #f093fb, #4ecdc4, #f6d365);
}

/* Night */
body[data-theme="night"] {
    --bg-friends:     linear-gradient(135deg, #0d0e26 0%, #1a0e30 100%);
    --bg-oneliners:   linear-gradient(135deg, #1a0505 0%, #2a051a 100%);
    --bg-birthday:    linear-gradient(135deg, #1a1503 0%, #2a1a08 100%);
    --bg-suggestions: linear-gradient(135deg, #030f10 0%, #071510 100%);
    --bg-routine:     linear-gradient(135deg, #060b1a 0%, #12082a 100%);
    --bg-workouts:    linear-gradient(135deg, #1a0503 0%, #2a0e02 100%);
    --bg-food:        linear-gradient(135deg, #020e1a 0%, #041515 100%);
    --bg-galaxy:      linear-gradient(135deg, #020204 0%, #08060f 50%, #060508 100%);
    --bar-colors:     linear-gradient(90deg, #1a1a2e, #16213e, #0f3460, #533483);
    --theme-btn-bg:   linear-gradient(135deg, #0f3460, #533483);
}

/* Day */
body[data-theme="day"] {
    --bg-friends:     linear-gradient(135deg, #a8b8f8 0%, #c4a0e0 100%);
    --bg-oneliners:   linear-gradient(135deg, #e87070 0%, #f070b8 100%);
    --bg-birthday:    linear-gradient(135deg, #fae070 0%, #fdc090 100%);
    --bg-suggestions: linear-gradient(135deg, #3aada0 0%, #60e898 100%);
    --bg-routine:     linear-gradient(135deg, #6070c8 0%, #b080f8 100%);
    --bg-workouts:    linear-gradient(135deg, #e05858 0%, #f5b048 100%);
    --bg-food:        linear-gradient(135deg, #2878a8 0%, #50d8e0 100%);
    --bg-galaxy:      linear-gradient(135deg, #303868 0%, #605898 50%, #484868 100%);
    --bar-colors:     linear-gradient(90deg, #ffd700, #87ceeb, #90ee90, #ffb6c1);
    --theme-btn-bg:   linear-gradient(135deg, #87ceeb, #ffd700);
}

/* B&W */
body[data-theme="bw"] {
    --bg-friends:     linear-gradient(135deg, #585858 0%, #383838 100%);
    --bg-oneliners:   linear-gradient(135deg, #3e3e3e 0%, #262626 100%);
    --bg-birthday:    linear-gradient(135deg, #6e6e6e 0%, #565656 100%);
    --bg-suggestions: linear-gradient(135deg, #464646 0%, #343434 100%);
    --bg-routine:     linear-gradient(135deg, #363636 0%, #1e1e1e 100%);
    --bg-workouts:    linear-gradient(135deg, #5e5e5e 0%, #464646 100%);
    --bg-food:        linear-gradient(135deg, #2e2e2e 0%, #181818 100%);
    --bg-galaxy:      linear-gradient(135deg, #0e0e0e 0%, #1c1c1c 50%, #121212 100%);
    --bar-colors:     linear-gradient(90deg, #ffffff, #aaaaaa, #555555, #111111);
    --theme-btn-bg:   linear-gradient(135deg, #ffffff, #333333);
}

/* ---- SECTION BACKGROUNDS ---- */
.sec-friends     { background: var(--bg-friends); }
.sec-oneliners   { background: var(--bg-oneliners); }
.sec-birthday    { background: var(--bg-birthday); }
.sec-suggestions { background: var(--bg-suggestions); }
.sec-routine     { background: var(--bg-routine); }
.sec-workouts    { background: var(--bg-workouts); }
.sec-food        { background: var(--bg-food); }
.sec-galaxy      { background: var(--bg-galaxy); }

/* Scroll bar adapts to theme */
.scroll-bar { background: var(--bar-colors) !important; }

/* ---- THEME BUTTON ---- */
.theme-btn {
    position: fixed;
    bottom: 24px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    background: var(--theme-btn-bg);
    cursor: pointer;
    z-index: 9500;
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    padding: 0;
}
.theme-btn:hover  { transform: scale(1.15); box-shadow: 0 6px 20px rgba(0,0,0,0.5); }
.theme-btn:active { transform: scale(0.92); }

/* ---- FRIENDS ---- */
.sec-friends .friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
}
.sec-friends .friend-card {
    background: rgba(255,255,255,0.2) !important;
    /* backdrop-filter removed to prevent blur bleed-through during entrance animations */
    border: 1px solid rgba(255,255,255,0.25) !important;
    border-radius: 20px !important;
    padding: 1.6rem !important;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    color: #fff;
    box-shadow: none !important;
}
.sec-friends .friend-card:hover { transform: translateY(-6px) !important; background: rgba(255,255,255,0.22) !important; }
.sec-friends .friend-name { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.4rem; color: #fff !important; }
.sec-friends .think-count {
    font-size: 2.5rem; font-weight: 800;
    color: rgba(255,255,255,0.95) !important;
    margin-bottom: 0.8rem;
    font-family: 'Space Mono', monospace;
    display: block;
}
.sec-friends .think-btn {
    background: rgba(255,255,255,0.3) !important;
    border: 2px solid rgba(255,255,255,0.6) !important;
    color: #fff !important;
    padding: 0.55rem 1.2rem !important;
    border-radius: 30px !important;
    cursor: pointer;
    font-size: 0.85rem; font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s ease;
    width: 100%;
    text-transform: none !important;
}
.sec-friends .think-btn:hover { background: rgba(255,255,255,0.35) !important; transform: scale(1.04); }
@keyframes countPulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.18); }
    100% { transform: scale(1); }
}
.sec-friends .delete-btn {
    position: absolute; top: 10px; right: 12px;
    background: none !important; border: none !important;
    color: rgba(255,255,255,0.35) !important; cursor: pointer;
    font-size: 0.9rem; transition: color 0.2s;
}
.sec-friends .delete-btn:hover { color: rgba(255,100,100,0.8) !important; }

/* ---- ONE-LINERS ---- */
.oneliners-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    min-height: 80px;
}
@keyframes popIn {
    from { opacity: 0; transform: scale(0.6); }
    to   { opacity: 1; transform: scale(1); }
}
.oneliner-card {
    background: rgba(255,255,255,0.2);
    /* backdrop-filter removed to prevent blur bleed-through during entrance animations */
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 18px;
    padding: 1.1rem 1.4rem;
    max-width: 380px;
    position: relative;
    transition: all 0.3s ease;
    animation: popIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.oneliner-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.2); }
.oneliner-text {
    font-size: 0.95rem; color: #fff; font-weight: 500;
    line-height: 1.5; font-style: italic; margin-bottom: 0.8rem;
}
.oneliner-text::before { content: '\201C'; font-size: 1.4rem; vertical-align: -0.3rem; opacity: 0.5; margin-right: 1px; }
.oneliner-text::after  { content: '\201D'; font-size: 1.4rem; vertical-align: -0.3rem; opacity: 0.5; margin-left: 1px; }
.card-footer {
    display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem;
}
.like-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 0.25rem 0.7rem;
    border-radius: 30px;
    cursor: pointer; font-size: 0.82rem;
    display: flex; align-items: center; gap: 4px;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
}
.like-btn:hover { background: rgba(255,255,255,0.18); transform: scale(1.1); }
.like-btn.liked { background: rgba(255,80,80,0.35); border-color: #ff6b6b; }
.del-x {
    background: none; border: none;
    color: rgba(255,255,255,0.3); cursor: pointer;
    font-size: 0.95rem; padding: 0 4px;
    transition: color 0.2s;
}
.del-x:hover { color: rgba(255,100,100,0.8); }

/* ---- BIRTHDAY / OCCASIONS ---- */
.occasions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.4rem;
}
.occasion-card {
    background: rgba(255,255,255,0.32);
    /* backdrop-filter removed to prevent blur bleed-through during entrance animations */
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    color: #1a1a2e;
    transition: all 0.3s ease;
}
.occasion-card:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,0.46);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}
.occ-icon { font-size: 3rem; margin-bottom: 0.8rem; }
.occasion-card h3 { font-size: 1.05rem; font-weight: 700; color: #1a1a2e; margin-bottom: 0.3rem; }
.occ-date {
    font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: rgba(0,0,0,0.45); margin-bottom: 0.5rem;
}
.occasion-card p { font-size: 0.88rem; color: rgba(0,0,0,0.6); }

/* ---- SUGGESTIONS ---- */
.suggestions-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    justify-content: center;
    min-height: 80px;
}
.suggestion-card {
    background: rgba(255,255,255,0.22);
    /* backdrop-filter removed to prevent blur bleed-through during entrance animations */
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    padding: 0.75rem 1.4rem;
    display: flex; align-items: center; gap: 0.75rem;
    color: #fff;
    transition: all 0.3s ease;
    animation: popIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.suggestion-card:hover { transform: scale(1.05); background: rgba(255,255,255,0.26); }
.sug-text { font-size: 0.92rem; font-weight: 500; }
.sug-like-btn {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff; border-radius: 30px;
    padding: 0.2rem 0.65rem; cursor: pointer;
    font-size: 0.78rem; transition: all 0.2s;
    display: flex; align-items: center; gap: 3px;
    font-family: 'Poppins', sans-serif;
}
.sug-like-btn:hover { background: rgba(255,255,255,0.35); transform: scale(1.12); }
.sug-like-btn.liked { background: rgba(255,220,0,0.35); border-color: #fee140; }

/* ---- ROUTINE TIMELINE ---- */
.new-timeline {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
}
.new-timeline::before {
    content: '';
    position: absolute;
    left: 90px; top: 0; bottom: 0;
    width: 2px;
    background: rgba(255,255,255,0.25);
}
.tl-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
    position: relative;
}
.tl-time {
    min-width: 80px;
    font-size: 0.75rem; font-weight: 700;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: right;
}
.tl-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid rgba(255,255,255,0.4);
    box-shadow: 0 0 12px rgba(255,255,255,0.5);
    flex-shrink: 0;
    margin: 0 16px;
    z-index: 1;
}
.tl-content {
    flex: 1;
    background: rgba(255,255,255,0.18);
    /* backdrop-filter removed to prevent blur bleed-through during entrance animations */
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 14px;
    padding: 0.85rem 1.2rem;
    transition: all 0.3s ease;
}
.tl-content:hover { background: rgba(255,255,255,0.2); transform: translateX(6px); }
.tl-content h4 { color: #fff; font-size: 0.95rem; font-weight: 600; margin-bottom: 0.15rem; }
.tl-content p  { color: rgba(255,255,255,0.6); font-size: 0.82rem; }

/* ---- WORKOUT GRID ---- */
.new-workout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.3rem;
}
.wo-card {
    background: rgba(255,255,255,0.2);
    /* backdrop-filter removed to prevent blur bleed-through during entrance animations */
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 20px;
    padding: 1.6rem;
    text-align: center;
    color: #fff;
    transition: all 0.3s ease;
}
.wo-card:hover { transform: translateY(-8px); background: rgba(255,255,255,0.22); box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.wo-day {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    padding: 0.25rem 0.9rem;
    border-radius: 30px;
    font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 0.9rem;
}
.wo-emoji { font-size: 2.4rem; margin-bottom: 0.7rem; }
.wo-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.9rem; }
.wo-card ul { list-style: none; padding: 0; text-align: left; margin-bottom: 1rem; }
.wo-card ul li {
    padding: 0.25rem 0 0.25rem 1.1rem;
    font-size: 0.85rem; color: rgba(255,255,255,0.8); position: relative;
}
.wo-card ul li::before { content: '›'; position: absolute; left: 0; opacity: 0.55; }
.wo-badge {
    display: inline-block;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.28);
    padding: 0.22rem 0.75rem;
    border-radius: 30px;
    font-size: 0.78rem; font-weight: 600;
}

/* ---- FOOD GRID ---- */
.new-food-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1.3rem;
}
.fo-card {
    background: rgba(255,255,255,0.18);
    /* backdrop-filter removed to prevent blur bleed-through during entrance animations */
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 20px;
    padding: 1.8rem 1.3rem;
    text-align: center;
    color: #fff;
    transition: all 0.3s ease;
}
.fo-card:hover { transform: translateY(-8px) scale(1.03); background: rgba(255,255,255,0.2); box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.fo-emoji { font-size: 3rem; margin-bottom: 0.75rem; display: block; }
.fo-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.fo-card p  { font-size: 0.83rem; color: rgba(255,255,255,0.68); margin-bottom: 0.8rem; }
.fo-tag {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.28);
    padding: 0.18rem 0.75rem;
    border-radius: 30px;
    font-size: 0.72rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
}

/* ---- GALAXY ---- */
.galaxy-title {
    background: linear-gradient(90deg, #f093fb, #f5576c, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.sec-galaxy .sec-header p { color: rgba(255,255,255,0.45); }
.sec-galaxy .category { margin-bottom: 3.5rem; }
.sec-galaxy .category-title { color: #fff !important; font-size: 1.4rem; font-weight: 700; margin-bottom: 0.4rem; }
.sec-galaxy .category-text  { color: rgba(255,255,255,0.55) !important; margin-bottom: 1.2rem; }

/* ---- CAROUSEL ---- */
.carousel {
    position: relative;
    border-radius: 16px;
    background: rgba(0,0,0,0.3);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    perspective: 1200px;
}

.carousel-container {
    position: relative;
    height: 420px;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    pointer-events: none;
    cursor: pointer;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* Nav buttons */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    z-index: 10;
}

.carousel-nav:hover {
    background: rgba(255,255,255,0.32);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev { left: 14px; }
.carousel-nav.next { right: 14px; }

/* Dot indicators */
.carousel-indicators {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
}

.indicator.active {
    background: #fff;
    transform: scale(1.35);
}

@media (max-width: 768px) {
    .carousel-container { height: 240px; }
    .carousel-nav { width: 36px; height: 36px; font-size: 0.85rem; }
}

/* ---- MOBILE NAV DRAWER ---- */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.mobile-nav-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.drawer-tab {
    display: none;
    position: fixed;
    right: 16px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    z-index: 9001;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
    transition: background 0.2s, transform 0.2s;
}
.drawer-tab:active { background: rgba(255,255,255,0.35); transform: scale(0.93); }

.mobile-nav-drawer {
    display: none;
    position: fixed;
    top: 0;
    right: -260px;
    width: 260px;
    height: 100dvh;
    background: rgba(10,8,30,0.88);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-left: 1px solid rgba(255,255,255,0.1);
    z-index: 9002;
    flex-direction: column;
    padding: 48px 0 32px;
    transition: right 0.32s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
}
.mobile-nav-drawer.open { right: 0; }

.drawer-header {
    color: rgba(255,255,255,0.4);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0 24px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 8px;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
}

.drawer-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.18s, color 0.18s, padding-left 0.18s;
}
.drawer-link:active {
    background: rgba(255,255,255,0.08);
    color: #fff;
    padding-left: 32px;
}

@media (max-width: 768px) {
    .mobile-nav-overlay,
    .drawer-tab,
    .mobile-nav-drawer { display: flex; }
    .mobile-nav-overlay { display: block; }
}

/* ---- SECTION ENTRANCE ANIMATIONS ---- */
/* opacity + transform only — no visibility:hidden (avoids bleed-through artifacts) */
.full-section .sec-header,
.full-section .friends-grid,
.full-section .oneliners-flow,
.full-section .occasions-grid,
.full-section .suggestions-flow,
.full-section .new-timeline,
.full-section .new-workout-grid,
.full-section .new-food-grid,
.full-section #gallery-container,
.full-section .add-row {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.full-section.in-view .sec-header         { opacity: 1; transform: none; transition-delay: 0.05s; }
.full-section.in-view .friends-grid,
.full-section.in-view .oneliners-flow,
.full-section.in-view .occasions-grid,
.full-section.in-view .suggestions-flow,
.full-section.in-view .new-timeline,
.full-section.in-view .new-workout-grid,
.full-section.in-view .new-food-grid,
.full-section.in-view #gallery-container  { opacity: 1; transform: none; transition-delay: 0.2s; }
.full-section.in-view .add-row            { opacity: 1; transform: none; transition-delay: 0.35s; }

/* ---- MOBILE ---- */
@media (max-width: 768px) {
    .dot-nav { display: none; }
    .full-section { padding: 60px 0 110px; }
    .new-timeline::before { left: 70px; }
    .tl-time { min-width: 62px; font-size: 0.68rem; }
    .add-row { flex-direction: column; }
    .sec-header h2 { font-size: 1.8rem; }
    .tl-content { padding: 0.7rem 1rem; }
}
