/* ==========================================================================
   CandleSmart Design System — v3 Copper & Brown
   ========================================================================== */

/* 1. Global Reset & Core Settings */
:root {
    --primary-color: #8A5A3A;
    --primary-light: #D9A876;
    --accent: #D9A876;
    --accent-success: #6db87a;
    --accent-warning: #d4944a;
    --accent-error: #c94a4a;
    --bg-main: #F5EDE3;
    --bg-card: #FFFBF5;
    --bg-elevated: #FFF8EF;
    --text-main: #2A1A11;
    --text-muted: #8A5A3A;
    --border-color: #E5D5C3;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(42, 26, 17, 0.06), 0 1px 2px rgba(42, 26, 17, 0.04);
    --shadow-md: 0 4px 12px rgba(42, 26, 17, 0.08);
    --shadow-lg: 0 10px 40px rgba(42, 26, 17, 0.1);
    --transition: all 0.2s ease;
}

body.dark {
    --bg-main: #1C120C;
    --bg-card: #231610;
    --bg-elevated: #2A1A11;
    --text-main: #FDF8E3;
    --text-muted: #B79A81;
    --border-color: #3A2117;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
}

body.dark .bottom-nav { background: rgba(28, 18, 12, 0.95) !important; }
body.dark #accountBar { background: rgba(28, 18, 12, 0.95) !important; }
body.dark .modal-inner { background: var(--bg-card); color: var(--text-main); }
body.dark .modal-close { color: var(--text-main); }
body.dark .feed-tag.intensity-low { border-color: #60a5fa; color: #60a5fa; }
body.dark .feed-tag.intensity-med-low { border-color: #38bdf8; color: #38bdf8; }
body.dark .feed-tag.intensity-mid { border-color: #fbbf24; color: #fbbf24; }
body.dark .feed-tag.intensity-med-high { border-color: #fb923c; color: #fb923c; }
body.dark .feed-tag.intensity-high { border-color: #f87171; color: #f87171; }
body.dark .intensity-toggle-container label:hover { background-color: rgba(253, 248, 227, 0.05); }
body.dark #addScentBtn, body.dark #addWaxBtn { color: var(--accent); border-color: var(--accent); background: rgba(217, 168, 118, 0.08); }
body.dark #addScentBtn:hover, body.dark #addWaxBtn:hover { background-color: rgba(217, 168, 118, 0.15); color: var(--accent); border-color: var(--accent); }
body.dark #desktopSidebar { background: #120B07; box-shadow: 2px 0 12px rgba(0,0,0,0.5); }
body.dark #desktopSidebar .sidebar-nav-btn:hover { background: rgba(253,248,227,0.06); }
body.dark #desktopSidebar .sidebar-nav-btn.active { background: rgba(217,168,118,0.12); }
body.dark #desktopSidebar.collapsed .sidebar-nav-btn::after { background: #120B07; }

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    color: var(--text-main);
}

/* All tabs use .tab-page for padding — see global classes section */

/* Build tab: edge-to-edge on mobile */
@media (max-width: 768px) {
    #tab-build > div {
        padding: 0 !important;
    }

    .build-tab-layout {
        grid-template-columns: 1fr !important;
    }
    .build-tab-right {
        gap: 0;
    }
    .build-tab-side-panel {
        min-width: 0;
    }
    .build-tab-side-panel > .card {
        border-left: 3px solid var(--accent);
    }

    #tab-build .batch-calculator {
        padding: 0.75rem !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }

    #tab-build .result {
        border-radius: 0 !important;
        border-left: none !important;
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* 2. Layout Wrapper */

/* 2b. Tab System & Bottom Navigation */
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Auth Gate Wordmark */
.auth-wordmark {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 2.2rem;
    line-height: 1;
    letter-spacing: 0.04em;
    background: linear-gradient(180deg, #FEE1C6 0%, #FDF8E3 20%, #D9A876 58%, #8A5A3A 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 1px 0 rgba(253,248,227,0.28)) drop-shadow(0 1px 1px rgba(0,0,0,0.4));
}
.auth-wordmark-smart {
    font-style: italic;
}

/* Bottom Navigation */
.bottom-nav {
    display: none;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 100;
    background: rgba(245, 237, 227, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    padding: 0.3rem 0 env(safe-area-inset-bottom, 0.3rem);
    justify-content: space-around;
    align-items: center;
}

.bottom-nav .nav-btn {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 0.35rem 0.7rem;
    cursor: pointer;
    min-width: 56px;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
}

.bottom-nav .nav-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.bottom-nav .nav-label {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.bottom-nav .nav-btn.active {
    color: var(--accent);
}

.bottom-nav .nav-btn.active::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

/* Activity Feed Cards */
.feed-card {
    background: rgba(35, 22, 16, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 0.5px solid rgba(58, 33, 23, 0.5);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

body:not(.dark) .feed-card {
    background: rgba(255, 251, 245, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(229, 213, 195, 0.6);
    box-shadow: 0 4px 24px rgba(42, 26, 17, 0.06);
}

.feed-card:hover {
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

body:not(.dark) .feed-card:hover {
    box-shadow: 0 6px 32px rgba(42, 26, 17, 0.1);
}

/* Feed card — social layout */
.feed-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.6rem;
}

.feed-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: #fff;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feed-card-byline {
    flex: 1;
    min-width: 0;
}

.feed-card-user {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
}

.feed-card-time {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.feed-card-action-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.feed-card-recipe-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.feed-card-details {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 0.5rem;
}

.feed-tag {
    font-size: 0.72rem;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    background: rgba(253, 248, 227, 0.06);
    border: 0.5px solid rgba(58, 33, 23, 0.5);
    color: var(--text-muted);
    font-weight: 500;
}

body:not(.dark) .feed-tag {
    background: rgba(42, 26, 17, 0.04);
    border-color: rgba(229, 213, 195, 0.6);
}

.feed-tag.intensity-low { border-color: #60a5fa; color: #60a5fa; }
.feed-tag.intensity-med-low { border-color: #38bdf8; color: #38bdf8; }
.feed-tag.intensity-mid { border-color: #fbbf24; color: #fbbf24; }
.feed-tag.intensity-med-high { border-color: #fb923c; color: #fb923c; }
.feed-tag.intensity-high { border-color: #f87171; color: #f87171; }

/* Action bar */
.feed-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.feed-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.feed-action-btn:hover {
    background: var(--bg-elevated);
    color: var(--text-main);
    border-color: var(--text-muted);
}

.feed-action-btn.action-copy {
    border-color: var(--accent);
    color: var(--accent);
}

.feed-action-btn.action-copy:hover {
    background: var(--accent);
    color: #fff;
}

.feed-action-btn.action-bookmark {
    margin-left: auto;
}

.feed-action-btn.action-bookmark.saved {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.feed-action-btn.action-delete {
    border-color: var(--accent-error);
    color: var(--accent-error);
}

.feed-action-btn.action-delete:hover {
    background: var(--accent-error);
    color: #fff;
}

.feed-action-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

/* Feed filter tabs */
.feed-filters {
    display: flex;
    gap: 6px;
    margin-bottom: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.feed-filter-btn {
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.feed-filter-btn:hover {
    color: var(--text-main);
    border-color: var(--text-muted);
}

/* Member Search */
.member-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    max-height: 300px;
    overflow-y: auto;
    z-index: 50;
}
.member-search-result {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}
.member-search-result:last-child {
    border-bottom: none;
}
.member-search-result:hover {
    background: var(--bg-elevated);
}
.member-search-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7rem;
    color: #fff;
    flex-shrink: 0;
    text-transform: uppercase;
}

.feed-filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ==========================================================================
   Home Page Layout & Widgets — Premium
   ========================================================================== */

/* Mobile: single column */
.home-layout {
    display: block;
}

.home-left-sidebar,
.home-right-sidebar {
    display: none;
}

/* Desktop: 3-column with gradient background */
@media (min-width: 769px) {
    #tab-home {
        background:
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='100' viewBox='0 0 80 100'%3E%3Crect x='36' y='50' width='8' height='28' rx='2' fill='rgba(226,184,83,0.03)'/%3E%3Cellipse cx='40' cy='48' rx='5' ry='8' fill='rgba(226,184,83,0.025)'/%3E%3C/svg%3E"),
            radial-gradient(circle at 15% 25%, rgba(226,184,83,0.07) 0%, transparent 20%),
            radial-gradient(circle at 85% 20%, rgba(231,126,34,0.05) 0%, transparent 15%),
            radial-gradient(circle at 10% 70%, rgba(226,184,83,0.05) 0%, transparent 18%),
            radial-gradient(circle at 90% 75%, rgba(251,191,36,0.04) 0%, transparent 15%),
            radial-gradient(circle at 50% 15%, rgba(251,146,60,0.04) 0%, transparent 12%),
            radial-gradient(circle at 50% 85%, rgba(226,184,83,0.03) 0%, transparent 14%),
            radial-gradient(circle at 50% 50%, rgba(226,184,83,0.08) 0%, transparent 55%),
            linear-gradient(180deg, var(--bg-main) 0%, rgba(226,184,83,0.03) 100%);
        min-height: 100vh;
    }

    body.dark #tab-home {
        background:
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='100' viewBox='0 0 80 100'%3E%3Crect x='36' y='50' width='8' height='28' rx='2' fill='rgba(226,184,83,0.06)'/%3E%3Cellipse cx='40' cy='48' rx='5' ry='8' fill='rgba(226,184,83,0.05)'/%3E%3C/svg%3E"),
            radial-gradient(circle at 15% 25%, rgba(226,184,83,0.12) 0%, transparent 20%),
            radial-gradient(circle at 85% 20%, rgba(231,126,34,0.09) 0%, transparent 15%),
            radial-gradient(circle at 10% 70%, rgba(226,184,83,0.08) 0%, transparent 18%),
            radial-gradient(circle at 90% 75%, rgba(251,191,36,0.07) 0%, transparent 15%),
            radial-gradient(circle at 50% 15%, rgba(251,146,60,0.07) 0%, transparent 12%),
            radial-gradient(circle at 50% 85%, rgba(226,184,83,0.05) 0%, transparent 14%),
            radial-gradient(circle at 50% 50%, rgba(226,184,83,0.12) 0%, transparent 55%),
            linear-gradient(180deg, var(--bg-main) 0%, rgba(226,184,83,0.05) 100%);
    }

    .home-layout {
        display: grid;
        grid-template-columns: 240px 1fr 280px;
        gap: 1.5rem;
        align-items: start;
        max-width: 1400px;
        margin: 0 auto;
        padding: 1.5rem 2rem;
    }

    .home-left-sidebar,
    .home-right-sidebar {
        display: block;
        position: sticky;
        top: 1.5rem;
    }

    .home-feed {
        min-width: 0;
    }
}

/* Burn Test Logger */
.bt-radio {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.bt-radio:hover {
    background: var(--bg-elevated);
    color: var(--text-main);
}
.bt-radio input[type="radio"] {
    margin: 0;
    accent-color: var(--accent);
}
.bt-rating {
    display: flex;
    gap: 2px;
}
.bt-star {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--border-color);
    cursor: pointer;
    padding: 0;
    transition: color 0.15s ease;
}
.bt-star:hover,
.bt-star.active {
    color: var(--accent);
}
.burn-test-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.75rem;
    margin-bottom: 6px;
}
.burn-test-card:hover {
    border-color: var(--accent);
}

/* Burn Test Widget */
.widget-burntests { border-top-color: #f97316; }

/* ─── Widget Cards (Glassmorphism) ─── */
.home-widget {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.5);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 1.1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.dark .home-widget {
    background: rgba(31,41,55,0.7);
    border: 1px solid rgba(55,65,81,0.6);
    border-top: 3px solid var(--accent);
    box-shadow: 0 2px 16px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
}

.home-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.6);
}

body.dark .home-widget:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Widget accent colors */
.home-widget.widget-stats { border-top-color: var(--accent); }
.home-widget.widget-alerts { border-top-color: var(--accent-error); }
.home-widget.widget-batches { border-top-color: var(--accent-success); }
.home-widget.widget-messages { border-top-color: #8b5cf6; }
.home-widget.widget-budget { border-top-color: #10b981; }
.home-widget.widget-shopping { border-top-color: #f59e0b; }
.home-widget.widget-queue { border-top-color: #f97316; }
.home-widget.widget-value { border-top-color: #3b82f6; }
.home-widget.widget-notifs { border-top-color: #ec4899; }

/* Widget customize button */
.widget-customize-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.3rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}
.widget-customize-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Widget toggle modal */
.widget-toggle-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
}
.widget-toggle-row:last-child { border-bottom: none; }
.widget-toggle-icon { font-size: 1.1rem; flex-shrink: 0; }
.widget-toggle-name { flex: 1; font-size: 0.85rem; font-weight: 500; }
.widget-toggle-switch {
    position: relative;
    width: 38px;
    height: 22px;
    flex-shrink: 0;
}
.widget-toggle-switch input { opacity: 0; width: 0; height: 0; }
.widget-toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--border-color);
    border-radius: 11px;
    cursor: pointer;
    transition: background 0.2s;
}
.widget-toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.widget-toggle-switch input:checked + .widget-toggle-slider {
    background: var(--accent);
}
.widget-toggle-switch input:checked + .widget-toggle-slider::before {
    transform: translateX(16px);
}

/* Home notification panel */
.home-notif-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    max-height: 320px;
    overflow-y: auto;
    box-shadow: var(--shadow-md);
}
body.dark .home-notif-panel {
    background: var(--bg-elevated);
}
.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: var(--accent-error);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Widget title */
.home-widget-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.home-widget-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
    margin-left: 4px;
}

/* ─── Widget Drag & Drop ─── */
.widget-drag-handle {
    cursor: grab;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.4;
    transition: opacity 0.15s;
    user-select: none;
    letter-spacing: -2px;
}
.widget-drag-handle:hover { opacity: 1; }
.home-widget.dragging {
    opacity: 0.4;
    transform: scale(0.97);
    box-shadow: none;
}
.home-widget.drag-over {
    border-top: 3px solid var(--accent);
    box-shadow: 0 0 0 2px rgba(226,184,83,0.3);
}

.home-left-sidebar.drag-over,
.home-right-sidebar.drag-over {
    outline: 2px dashed var(--accent);
    outline-offset: 4px;
    border-radius: var(--radius-md);
}

/* ─── Stats (Left Sidebar) ─── */
.home-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.home-stat-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.6rem;
    text-align: center;
    transition: var(--transition);
}

.home-stat-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(226,184,83,0.12);
}

.home-stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    margin: 0 auto 0.4rem;
}

.home-stat-icon.icon-recipes { background: rgba(226,184,83,0.15); }
.home-stat-icon.icon-items { background: rgba(96,165,250,0.15); }
.home-stat-icon.icon-queue { background: rgba(251,191,36,0.15); }
.home-stat-icon.icon-finished { background: rgba(46,204,113,0.15); }

body.dark .home-stat-icon.icon-recipes { background: rgba(226,184,83,0.2); }
body.dark .home-stat-icon.icon-items { background: rgba(96,165,250,0.2); }
body.dark .home-stat-icon.icon-queue { background: rgba(251,191,36,0.2); }
body.dark .home-stat-icon.icon-finished { background: rgba(46,204,113,0.2); }

.home-stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 2px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

.home-stat-value.val-recipes { color: var(--accent); text-shadow: 0 0 20px rgba(226,184,83,0.25); }
.home-stat-value.val-items { color: #60a5fa; text-shadow: 0 0 20px rgba(96,165,250,0.25); }
.home-stat-value.val-queue { color: #fbbf24; text-shadow: 0 0 20px rgba(251,191,36,0.25); }
.home-stat-value.val-finished { color: var(--accent-success); text-shadow: 0 0 20px rgba(46,204,113,0.25); }

.home-stat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
}

/* ─── Low Stock Items ─── */
.home-low-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

body.dark .home-low-item {
    border-bottom-color: rgba(255,255,255,0.05);
}

.home-low-item:last-child {
    border-bottom: none;
}

.home-low-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    background: rgba(231,76,60,0.1);
    flex-shrink: 0;
}

.home-low-info {
    flex: 1;
    min-width: 0;
}

.home-low-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-low-bar-wrap {
    height: 3px;
    background: var(--border-color);
    border-radius: 2px;
    margin-top: 4px;
    overflow: hidden;
}

.home-low-bar {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.home-low-bar.bar-critical { background: var(--accent-error); }
.home-low-bar.bar-low { background: var(--accent-warning); }
.home-low-bar.bar-ok { background: var(--accent-success); }

.home-low-qty {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-error);
    font-family: monospace;
    flex-shrink: 0;
}

/* ─── Recent Batches ─── */
.home-batch-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

body.dark .home-batch-item {
    border-bottom-color: rgba(255,255,255,0.05);
}

.home-batch-item:last-child {
    border-bottom: none;
}

.home-batch-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-success);
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(46,204,113,0.4);
}

.home-batch-info {
    flex: 1;
    min-width: 0;
}

.home-batch-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-batch-recipe {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.home-batch-meta {
    text-align: right;
    flex-shrink: 0;
}

.home-batch-cost {
    font-family: monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-success);
}

.home-batch-date {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 1px;
}

/* ─── Quick Actions (2x2 Grid) ─── */
.home-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.home-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0.75rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
}

.home-action-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--bg-card);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.home-action-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: rgba(226,184,83,0.1);
}

body.dark .home-action-icon {
    background: rgba(226,184,83,0.15);
}

/* ─── Empty state ─── */
.home-empty-state {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
    padding: 1rem 0;
    opacity: 0.7;
}

/* Profile Photo */
.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 3px solid var(--border-color);
}

.feed-avatar img,
.member-search-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Feed card hidden by filter */
.feed-card.feed-hidden {
    display: none;
}

/* Follow button */
.feed-card-top {
    align-items: center;
}
.feed-action-btn.action-follow {
    flex-shrink: 0;
    border-color: var(--accent);
    color: var(--accent);
    font-size: 0.72rem;
    padding: 0.2rem 0.5rem;
}
.feed-action-btn.action-follow:hover {
    background: var(--accent);
    color: #fff;
}
.feed-action-btn.action-follow.following {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    opacity: 0.7;
}

/* Like button */
.feed-action-btn.action-like.liked {
    color: #e74c3c;
    border-color: #e74c3c;
}

/* Comment section */
.feed-comments-section {
    border-top: 1px solid var(--border-color);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}
.feed-comments-list {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 0.5rem;
}
.feed-comment-item {
    display: flex;
    gap: 8px;
    padding: 0.4rem 0;
    align-items: flex-start;
}
.feed-comment-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}
.feed-comment-body {
    flex: 1;
    min-width: 0;
}
.feed-comment-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}
.feed-comment-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-main);
}
.feed-comment-time {
    font-size: 0.68rem;
    color: var(--text-muted);
}
.feed-comment-delete {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    cursor: pointer;
    padding: 0 2px;
    margin-left: auto;
    opacity: 0;
    transition: opacity 0.15s;
}
.feed-comment-item:hover .feed-comment-delete {
    opacity: 1;
}
.feed-comment-delete:hover {
    color: var(--accent-error);
}
.feed-comment-text {
    font-size: 0.8rem;
    color: var(--text-main);
    line-height: 1.4;
}
.feed-comment-input-row {
    display: flex;
    gap: 6px;
    align-items: center;
}
.feed-comment-input {
    flex: 1;
    padding: 0.35rem 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    background: var(--bg-card);
    color: var(--text-main);
}
.feed-comment-send {
    padding: 0.35rem 0.6rem;
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
}
.feed-comment-send:disabled {
    opacity: 0.5;
    cursor: default;
}

@media (min-width: 768px) {
    .feed-card {
        padding: 1.25rem;
    }
}

/* card-grid mobile default is already block via global rule */

/* 3. Typography & Header Elements */
header {
    text-align: center;
    max-width: 1100px;
    margin: 0 auto 3rem auto;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
    border-bottom: none;
    padding-bottom: 0;
    letter-spacing: -0.3px;
}

h3 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 1.25rem 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* 4. Elegant Card Surfaces */
section {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

/* 4b. Global Tab Layout Classes */
.tab-page {
    padding: 1.25rem;
}
.tab-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.tab-page-header h2 {
    margin: 0;
}
.card-grid {
    display: block;
}
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
}
.card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: var(--text-main);
}
.card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0 0 0.75rem 0;
}

/* 5. Forms & Interactive Form Elements */
label {
    display: block;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
select {
    width: 100%;
    padding: 0.7rem 0.85rem;
    font-size: 0.95rem;
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    transition: var(--transition);
    outline: none;
    margin-bottom: 1rem;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus {
    border-color: var(--accent);
    background-color: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(217, 168, 118, 0.15);
}

/* Intensity Radio Button Custom Styling Toggles */
.intensity-toggle-container {
    background-color: var(--bg-elevated);
    padding: 0.4rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 1.25rem;
}

.intensity-toggle-container label {
    cursor: pointer;
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    transition: var(--transition);
}

.intensity-toggle-container label:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.intensity-toggle-container label:has(input:checked) {
    background-color: var(--accent);
    color: #fff;
    font-weight: 600;
}

body.dark .intensity-toggle-container label:has(input:checked) {
    background-color: var(--accent);
    color: #1C120C;
}

.intensity-high-label:has(input:checked) {
    background-color: #e74c3c !important;
    color: #fff !important;
    border-color: #e74c3c;
}

body.dark .intensity-high-label:has(input:checked) {
    background-color: #dc2626 !important;
    color: #fff !important;
}

/* 6. Clean UI Buttons */
button {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.65rem 1.1rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Standard/Primary Actions button theme */
button[type="submit"], #generateBuildBtn {
    background: linear-gradient(180deg, #D9A876, #8A5A3A);
    color: #FDF8E3;
    letter-spacing: 0.3px;
    border: none;
}

button[type="submit"]:hover, #generateBuildBtn:hover {
    background: linear-gradient(180deg, #FEE1C6, #D9A876);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Context Sub-row Add Control Layout Buttons */
#addScentBtn, #addWaxBtn {
    background-color: transparent;
    border: 1px dashed var(--primary-color);
    color: var(--primary-color);
}

#addScentBtn:hover, #addWaxBtn:hover {
    background-color: rgba(138, 90, 58, 0.05);
}

/* Dynamic Rows Clear Button Style */
.recipe-scent-row button, .recipe-wax-row button, .dye-record-row button {
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    height: 40px;
    width: 40px;
    padding: 0;
}

.recipe-scent-row button:hover, .recipe-wax-row button:hover, .dye-record-row button:hover {
    color: var(--accent-error);
    border-color: var(--accent-error);
    background-color: rgba(231, 76, 60, 0.05);
}

/* 7. Dynamic Data Row Items Alignment Fixes */
.recipe-scent-row, .recipe-wax-row {
    background-color: var(--bg-elevated);
    padding: 6px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 6px;
}

.recipe-scent-row select, .recipe-scent-row input,
.recipe-wax-row select, .recipe-wax-row input {
    margin-bottom: 0 !important; /* Force layout alignment within compact rows */
}

/* Dynamic Tracker Status String Box UI */
#blendTrackerStatus, #waxBlendTrackerStatus {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    background-color: var(--bg-main);
    display: inline-block;
    border: 1px solid currentColor;
}

/* 8. Beautiful Modern Lists Views */
ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

li.recipe-item, li.vessel-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}

li.recipe-item:hover, li.vessel-item:hover {
    border-color: var(--primary-color);
    background-color: var(--bg-card);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Helper small text descriptors */
small {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: -0.75rem;
    margin-bottom: 1rem;
}

/* 9. Output Build Sheets Terminal Block Styling */
.result {
    background-color: transparent;
    color: inherit;
    border-radius: var(--radius-md);
    padding: 0;
    font-family: inherit;
    line-height: 1.6;
    margin-top: 0.75rem;
    border: none;
}

.result strong {
    color: var(--text-main);
}

/* 10. Pro Scent Overlay Modal Styling — handled by .modal-overlay + .modal-inner */

/* ==========================================================================
   Desktop Sidebar Navigation & Responsive Layout
   ========================================================================== */

/* Sidebar — hidden on mobile by default */
#desktopSidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 240px;
    z-index: 200;
    background: #120B07;
    color: #B79A81;
    flex-direction: column;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
    overflow: hidden;
    box-shadow: 2px 0 12px rgba(0,0,0,0.3);
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Brand area */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1.2rem 1.25rem;
    border-bottom: 1px solid rgba(58, 33, 23, 0.6);
    flex-shrink: 0;
}

.sidebar-logo {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    object-fit: contain;
}

.sidebar-brand-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
    background: linear-gradient(180deg, #FEE1C6 0%, #FDF8E3 20%, #D9A876 58%, #8A5A3A 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 1px 0 rgba(253,248,227,0.28)) drop-shadow(0 1px 1px rgba(0,0,0,0.4));
}

.sidebar-brand-smart {
    font-style: italic;
}

/* Nav items */
.sidebar-nav-items {
    flex: 1;
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.7rem 1.25rem;
    border: none;
    background: transparent;
    color: rgba(183, 154, 129, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    border-radius: 0;
    margin: 0;
    width: 100%;
    text-align: left;
    position: relative;
}

.sidebar-nav-btn:hover {
    color: #FDF8E3;
    background: rgba(253, 248, 227, 0.06);
}

.sidebar-nav-btn.active {
    color: #FDF8E3;
    background: rgba(217, 168, 118, 0.12);
    font-weight: 600;
}

.sidebar-nav-btn.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    background: var(--accent);
    border-radius: 0 3px 3px 0;
}

.sidebar-icon {
    font-size: 1.15rem;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
    line-height: 1;
}

.sidebar-label {
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.2s ease;
}

/* Footer */
.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(58, 33, 23, 0.6);
    flex-shrink: 0;
}

.sidebar-admin-link {
    display: block;
    color: var(--accent-error);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 0.75rem;
    padding: 0.3rem 0.5rem;
    border: 1px solid var(--accent-error);
    border-radius: var(--radius-sm);
    text-align: center;
    transition: var(--transition);
}

.sidebar-admin-link:hover {
    background: var(--accent-error);
    color: #fff;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0.5rem;
}

.sidebar-username {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--accent);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    cursor: pointer;
    text-decoration: none;
}
.sidebar-username:hover {
    text-decoration: underline;
}

.sidebar-edit-name {
    background: transparent;
    border: 1px solid rgba(183, 154, 129, 0.3);
    color: rgba(183, 154, 129, 0.6);
    padding: 0.15rem 0.35rem;
    font-size: 0.7rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
}

.sidebar-edit-name:hover {
    color: #FDF8E3;
    border-color: rgba(183, 154, 129, 0.5);
}

.sidebar-signout {
    width: 100%;
    padding: 0.5rem;
    font-size: 0.8rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.6);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.sidebar-signout:hover {
    background: rgba(253, 248, 227, 0.08);
    color: #FDF8E3;
}

/* Sidebar collapsed state */
#desktopSidebar.collapsed {
    width: 68px;
}

#desktopSidebar.collapsed .sidebar-brand-text,
#desktopSidebar.collapsed .sidebar-label,
#desktopSidebar.collapsed .sidebar-admin-link,
#desktopSidebar.collapsed .sidebar-username,
#desktopSidebar.collapsed .sidebar-edit-name {
    opacity: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
}

#desktopSidebar.collapsed .sidebar-brand {
    padding: 1.2rem 0;
    justify-content: center;
}

#desktopSidebar.collapsed .sidebar-nav-btn {
    padding: 0.7rem 0;
    justify-content: center;
}

#desktopSidebar.collapsed .sidebar-icon {
    width: auto;
}

#desktopSidebar.collapsed .sidebar-footer {
    padding: 1rem 0;
}

#desktopSidebar.collapsed .sidebar-signout {
    font-size: 0;
    padding: 0.5rem;
}

#desktopSidebar.collapsed .sidebar-signout::after {
    content: '🚪';
    font-size: 1rem;
}

/* Sidebar collapsed tooltip */
#desktopSidebar.collapsed .sidebar-nav-btn {
    position: relative;
}

#desktopSidebar.collapsed .sidebar-nav-btn::after {
    content: attr(aria-label);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: #fff;
    padding: 0.4rem 0.7rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    margin-left: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 300;
}

#desktopSidebar.collapsed .sidebar-nav-btn:hover::after {
    opacity: 1;
}

/* Desktop media query */
@media (min-width: 769px) {
    /* Show sidebar, hide mobile nav */
    #desktopSidebar {
        display: flex;
    }

    #bottomNav {
        display: none !important;
    }

    #accountBar {
        display: none !important;
    }

    .bottom-nav {
        z-index: 50;
    }

    /* Content area shifts right for sidebar */
    #appMain {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-left: 240px;
        min-height: 100vh;
        transition: margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Home feed — handled by .home-layout grid */

    #tab-recipes > div,
    #tab-build > div,
    #tab-inventory > div,
    #tab-budget > div {
        max-width: 1400px !important;
        margin: 0 auto !important;
        padding: 2rem 2.5rem !important;
    }
    #tab-settings > div {
        max-width: 1400px !important;
        margin: 0 auto !important;
        padding: 2rem 2.5rem !important;
    }

    /* Settings sticky save bar */
    #tab-settings {
        position: relative;
        overflow-y: auto;
        max-height: 100vh;
    }
    #tab-settings .card-grid.three-col {
        column-count: unset;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 1rem;
    }
    #tab-settings .card-grid.three-col > * {
        margin-bottom: 0 !important;
        break-inside: auto;
        display: block;
        width: auto;
    }

    #settingsSaveBar {
        position: sticky !important;
        bottom: 0;
        left: 0;
        right: 0;
    }

    /* Build tab */
    #tab-build .batch-calculator {
        padding: 2rem;
        border-radius: var(--radius-md);
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow-sm);
    }

    #tab-build .result {
        border-radius: var(--radius-md);
        border-left: 4px solid var(--accent);
        margin-left: 0;
        margin-right: 0;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    /* Recipe list — 3 columns on desktop */
    #recipeList {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    /* Feed cards */
    #activityFeed .feed-card {
        max-width: 100%;
    }

    /* Desktop typography */
    h2 {
        font-size: 1.4rem;
    }

    section {
        padding: 2rem;
    }

    /* Global card grid — masonry columns on desktop */
    .card-grid {
        column-count: 2;
        column-gap: 1rem;
    }
    .card-grid > * {
        margin-bottom: 1rem !important;
        break-inside: avoid;
        display: inline-block;
        width: 100%;
    }
    .card-grid.three-col {
        column-count: 3;
    }
    #tab-inventory .card-grid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 1rem;
    }
    #tab-inventory .card-grid > * {
        margin-bottom: 0 !important;
        break-inside: auto;
        display: block;
    }

    /* Build tab: grid layout with equal columns */
    .build-tab-layout {
        display: grid;
        grid-template-columns: 1fr 1fr 0fr;
        gap: 1rem;
        align-items: start;
        transition: grid-template-columns 0.4s ease;
    }
    .build-tab-layout.panel-open {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .build-tab-right {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .build-tab-side-panel {
        overflow: hidden;
        min-width: 0;
        transition: opacity 0.3s ease;
    }
}

/* Dye input fix — flex-based sizing */
.dye-record-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.dye-record-row .dye-record-name {
    flex: 2;
    min-width: 0;
    margin-bottom: 0;
}

.dye-record-row .dye-record-drops {
    flex: 1;
    min-width: 0;
    max-width: 200px;
    margin-bottom: 0;
}

/* ==========================================================================
   Modal System — use .modal-backdrop + .modal-box on every modal
   Sizes: .modal-sm (420px) .modal-md (500px) .modal-lg (900px)
   ========================================================================== */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(18, 11, 7, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1000;
    padding: 1rem;
    overflow-y: auto;
}
.modal-backdrop.active { display: block; }
.modal-box {
    position: relative;
    background: var(--bg-elevated);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    padding: 1.5rem;
    margin: 0 auto;
    animation: modalSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-box.modal-sm { max-width: 420px; margin-top: 15vh; }
.modal-box.modal-md { max-width: 500px; margin-top: 8vh; }
.modal-box.modal-lg { max-width: 900px; margin-top: 4vh; height: auto; max-height: 85vh; overflow-y: auto; }
.modal-box.modal-full { max-width: 900px; margin-top: 4vh; height: 85%; }
.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 1.2rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-muted);
    z-index: 1;
    line-height: 1;
}
.modal-close:hover { color: var(--accent); }
.modal-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.modal-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}
.modal-actions button { flex: 1; font-size: 0.85rem; padding: 0.5rem; }
@keyframes modalSlide {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Help Manual */
/* Help modal */
.help-section { border-bottom: 1px solid var(--border-color); }
.help-section:last-child { border-bottom: none; }
.help-toggle {
    width: 100%; text-align: left; padding: 0.85rem 0.25rem; font-size: 0.95rem;
    font-weight: 700; background: none; border: none; cursor: pointer;
    color: var(--text-main); display: flex; align-items: center; gap: 8px;
    border-radius: var(--radius-sm); transition: background 0.2s ease;
}
.help-toggle:hover { background: var(--bg-elevated); }
.help-toggle::after { content: '▶'; font-size: 0.65rem; color: var(--text-muted); transition: transform 0.3s ease-in-out; margin-left: auto; }
.help-toggle.open::after { transform: rotate(180deg); }
.help-content { display: none; padding: 0.25rem 0.25rem 1rem 1.75rem; font-size: 0.85rem; line-height: 1.7; color: var(--text-muted); }
.help-content.open { display: block; }
.help-content ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.help-content li { margin-bottom: 0.4rem; }
.help-content li strong { color: var(--text-main); }
.help-content p { margin-bottom: 0.5rem; }
.help-content p strong { color: var(--text-main); }
body.dark .help-toggle.open { background: rgba(55, 65, 81, 0.4); }

/* Wick type toggle */
.wick-type-btn { transition: var(--transition); }
.wick-type-btn.active {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
    font-weight: 600;
}

/* Inventory category tabs */
.inv-cat-btn { transition: var(--transition); cursor: pointer; }
.inv-cat-btn.active {
    background: var(--bg-elevated) !important;
    color: var(--text-main) !important;
    font-weight: 600;
    border-color: var(--accent) !important;
}

/* Inventory action buttons — touch-friendly 44×44 */
.inv-action-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 6px;
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
    cursor: pointer;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.inv-action-btn:active { transform: scale(0.92); }
.inv-action-btn.inv-delete { border-color: var(--accent-error); color: var(--accent-error); }
.inv-action-btn.inv-delete:hover { background: rgba(231, 76, 60, 0.1); }
.inv-action-btn.inv-edit:hover { border-color: var(--accent); color: var(--accent); }

/* Recipe library and community buttons */
.btn-vessel { background-color: #34495e; color: white; }
.btn-community { background-color: #8e44ad; color: white; }
.btn-library { background-color: var(--accent-success); color: white; }
body.dark .btn-vessel, body.dark .btn-community, body.dark .btn-library { filter: brightness(0.85); }

/* Dye headings — use --text-main so they work in dark mode */
.dye-heading { color: var(--text-main); }

/* Batch queue buttons */
.btn-done { background: var(--accent-success); color: #fff; }
.btn-done:hover { filter: brightness(1.1); }
.btn-delete-queue { background: transparent; border: 1px solid var(--border-color); color: var(--text-muted); }
.btn-delete-queue:hover { border-color: var(--accent-error); color: var(--accent-error); }

/* Scent/wax row remove button — bigger touch target */
.recipe-scent-row button, .recipe-wax-row button, .dye-record-row button {
    height: 40px;
    width: 40px;
}

/* Copy recipe button state */
.btn-copied {
    opacity: 0.5;
    border-color: var(--accent-success) !important;
    color: var(--accent-success) !important;
}

@media (max-width: 380px) {
    .dye-record-row {
        flex-wrap: wrap;
    }
    .dye-record-row .dye-record-name,
    .dye-record-row .dye-record-drops {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* ============================================================
   Sticker / Label Builder
   ============================================================ */

/* Template picker buttons */
.tmpl-btn.active {
    border-color: var(--accent) !important;
    background: var(--bg-card) !important;
    box-shadow: 0 0 0 1px var(--accent);
}
.tmpl-btn:hover {
    border-color: var(--accent);
}

/* Base sticker canvas */
.sticker {
    width: 280px;
    padding: 16px;
    border-radius: 8px;
    background: #fff;
    color: #1a1a2e;
    font-family: 'Georgia', serif;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.sticker.small  { width: 200px; padding: 12px; font-size: 0.85em; }
.sticker.medium { width: 280px; padding: 16px; }
.sticker.large  { width: 360px; padding: 20px; font-size: 1.1em; }

/* Sticker elements */
.sticker .sticker-brand {
    font-size: 1.1em;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 4px;
    position: relative;
    z-index: 2;
}
.sticker .sticker-scent {
    font-size: 0.95em;
    font-style: italic;
    margin-bottom: 6px;
    opacity: 0.8;
    position: relative;
    z-index: 2;
}
.sticker .sticker-type {
    display: inline-block;
    font-size: 0.65em;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 6px;
    position: relative;
    z-index: 2;
}
.sticker .sticker-desc {
    font-size: 0.75em;
    line-height: 1.4;
    opacity: 0.7;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}
.sticker .sticker-qr { margin: 6px 0; position: relative; z-index: 2; }
.sticker .sticker-qr canvas, .sticker .sticker-qr img { display: block; margin: 0 auto; }
.sticker.small .sticker-qr canvas, .sticker.small .sticker-qr img { width: 50px !important; height: 50px !important; }
.sticker.medium .sticker-qr canvas, .sticker.medium .sticker-qr img { width: 64px !important; height: 64px !important; }
.sticker.large .sticker-qr canvas, .sticker.large .sticker-qr img { width: 80px !important; height: 80px !important; }
.sticker .sticker-footer {
    font-size: 0.6em;
    opacity: 0.5;
    margin-top: 4px;
    line-height: 1.3;
    position: relative;
    z-index: 2;
}
.sticker .sticker-care {
    font-size: 0.6em;
    line-height: 1.3;
    opacity: 0.6;
    margin-top: 6px;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 6px;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Shared SVG background layer — sits behind all content */
.sticker .sticker-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

/* Sticker action buttons */
.sticker-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.sticker-actions button {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}
.sticker-actions button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* --- TEMPLATE: Minimal --- */
.sticker.tmpl-minimal {
    border: 1.5px solid currentColor;
}

/* --- TEMPLATE: Classic --- */
.sticker.tmpl-classic {
    border: none;
    background: #fff;
}
.sticker.tmpl-classic .sticker-bg svg { opacity: 0.06; }

/* --- TEMPLATE: Modern --- */
.sticker.tmpl-modern {
    border-radius: 0;
    border: none;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}
.sticker.tmpl-modern .sticker-brand {
    letter-spacing: 4px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}
.sticker.tmpl-modern .sticker-bg svg { opacity: 0.04; }

/* --- TEMPLATE: Botanical --- */
.sticker.tmpl-botanical {
    border: none;
    border-radius: 16px;
    background: linear-gradient(170deg, #faf9f6 0%, #f4f1eb 100%);
}
.sticker.tmpl-botanical .sticker-brand {
    font-family: 'Georgia', serif;
    letter-spacing: 1px;
}

/* --- TEMPLATE: Elegant --- */
.sticker.tmpl-elegant {
    border: none;
    background: linear-gradient(135deg, #fdfcfb 0%, #f5f0e8 100%);
}
.sticker.tmpl-elegant .sticker-brand {
    letter-spacing: 3px;
}

/* --- TEMPLATE: Luxe --- */
.sticker.tmpl-luxe {
    border: none;
    border-radius: 4px;
    background: #1a1a2e;
    color: #f0ead6;
}
.sticker.tmpl-luxe .sticker-scent { opacity: 0.7; }
.sticker.tmpl-luxe .sticker-footer { opacity: 0.35; }
.sticker.tmpl-luxe .sticker-care { border-top-color: rgba(255,255,255,0.15); }
.sticker.tmpl-luxe .sticker-qr canvas,
.sticker.tmpl-luxe .sticker-qr img { filter: invert(1); }

/* Print mode: hide everything except stickers */
@media print {
    body * { visibility: hidden; }
    .sticker, .sticker * { visibility: visible; }
    .sticker {
        position: absolute;
        left: 0; top: 0;
        page-break-inside: avoid;
        box-shadow: none;
    }
}

/* ============================================================
   Budget Tab — Hero KPI Cards */
.budget-hero-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 1rem;
}
.budget-hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    border-left: 4px solid transparent;
}
.budget-hero-green { border-left-color: #10b981; }
.budget-hero-red { border-left-color: #f43f5e; }
.budget-hero-blue { border-left-color: #3b82f6; }
.budget-hero-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.budget-hero-amount {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: monospace;
}
.budget-hero-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Budget Tab — Quick Stats */
.budget-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 1rem;
}
.budget-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    text-align: center;
}
.budget-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.budget-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: monospace;
    color: var(--text-main);
}
.budget-stat-sub {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Budget Tab — Diverging Chart */
.budget-chart-wrap {
    position: relative;
    height: 240px;
    margin-bottom: 1.5rem;
}
.budget-chart-area {
    position: relative;
    height: 100%;
}
.budget-chart-gridlines {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 20px;
    pointer-events: none;
}
.budget-chart-baseline {
    position: absolute;
    left: -40px;
    right: 0;
    top: 50%;
    height: 1px;
    background: var(--border-color);
    z-index: 2;
}
.budget-chart-labels {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 20px;
    width: 38px;
}
.budget-chart-gridline {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
    opacity: 0.5;
    pointer-events: none;
}
.budget-chart-ylabel {
    position: absolute;
    left: 4px;
    font-size: 0.6rem;
    color: var(--text-muted);
    font-weight: 600;
    transform: translateY(-50%);
}
.budget-chart-bars {
    position: absolute;
    left: 40px;
    right: 0;
    top: 0;
    bottom: 20px;
    display: flex;
    align-items: stretch;
    gap: 6px;
    padding: 0 8px;
}
.budget-chart-col {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
}
.budget-chart-bar {
    position: absolute;
    left: 15%;
    right: 15%;
    border-radius: 3px;
    min-height: 2px;
    transition: height 0.3s ease;
}
.budget-chart-bar.inc {
    background: #34d399;
    border-radius: 3px 3px 0 0;
}
.budget-chart-bar.exp {
    background: #fb7185;
    border-radius: 0 0 3px 3px;
}
.budget-chart-val {
    position: absolute;
    font-size: 0.65rem;
    font-weight: 700;
    white-space: nowrap;
    transform: translateX(-50%);
    left: 50%;
    z-index: 3;
}
.budget-chart-val.inc { color: #34d399; bottom: 50%; margin-bottom: 4px; }
.budget-chart-val.exp { color: #fb7185; top: 50%; margin-top: 4px; }
.budget-chart-month {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    color: var(--text-muted);
    white-space: nowrap;
}
/* Legacy legend (reuse old class names in HTML) */
.budget-chart-legend {
    display: flex;
    gap: 1rem;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    padding-top: 0.25rem;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
}
.legend-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    display: inline-block;
}

/* Budget Tab — Transactions (kept) */
.budget-tx-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
}
.budget-tx-row:last-child { border-bottom: none; }
.budget-tx-icon {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--bg-elevated);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.budget-tx-info { flex: 1; min-width: 0; }
.budget-tx-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.budget-tx-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
}
.budget-tx-amount {
    font-size: 0.9rem;
    font-weight: 700;
    font-family: monospace;
    flex-shrink: 0;
}
body.dark .budget-tx-icon { background: var(--bg-elevated); }

.budget-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1rem;
    align-items: start;
}

/* Budget Tab — Mobile */
@media (max-width: 768px) {
    .budget-hero-row,
    .budget-stats-row,
    .budget-grid {
        grid-template-columns: 1fr;
    }
    #tab-budget .card + div > .card,
    #tab-budget .card + div > button {
        grid-column: 1;
    }
    #tab-budget [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    #tab-budget .tab-page {
        padding-bottom: 80px !important;
    }
    #budgetTxList {
        max-height: 250px !important;
    }
}

/* ============================================================
   Profile Edit Panel & Layouts
   ============================================================ */

/* Profile Edit Panel */
.profile-edit-panel {
    margin-bottom: 1rem;
}

/* Layout Buttons */
.layout-btn {
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 0.7rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}
.layout-btn:hover {
    border-color: var(--accent);
    color: var(--text-main);
}
.layout-btn.active {
    background: var(--accent);
    color: #1a1a2e;
    border-color: var(--accent);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   PROFILE LAYOUTS — 18 unique themes with 3-color system
   --p1 = primary, --p2 = secondary, --p3 = accent
   ═══════════════════════════════════════════════════════════════ */

.profile-container {
    --p1: #e2b853;
    --p2: #1a1a2e;
    --p3: #f1641e;
}

/* ─── Base profile styles (neutral defaults, themes override everything) ─── */
.profile-page { padding: 1.5rem; }
.profile-loading { text-align: center; padding: 3rem; color: var(--text-muted); }
.profile-not-found { text-align: center; padding: 3rem; }
.profile-not-found h2 { margin-bottom: 0.5rem; }
.profile-private-msg { text-align: center; padding: 3rem; border-radius: var(--radius-md); }
.lock-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.profile-edit-panel { margin-bottom: 1rem; }
.profile-grid { display: grid; gap: 1rem; }
.recipe-card { transition: var(--transition); }
.activity-card { transition: var(--transition); }
.empty-section { padding: 2rem; text-align: center; color: var(--text-muted); font-size: 0.85rem; }
.profile-section-title { margin-bottom: 0.75rem; }

/* ─── 1. CLEAN — Ultra-minimal, centered, hairline, uppercase ─── */
.layout-clean {
    max-width: 560px;
    margin: 0 auto;
    overflow: hidden;
}
.layout-clean .profile-page {
    background: #fafafa;
    max-width: 560px;
    margin: 0 auto;
}
.layout-clean .profile-header {
    text-align: center;
    padding: 4rem 1.5rem 2.5rem;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.layout-clean .profile-avatar {
    width: 88px;
    height: 88px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: none;
}
.layout-clean .profile-name {
    font-size: 1.4rem;
    font-weight: 200;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--text-main);
}
.layout-clean .profile-bio {
    font-style: normal;
    color: #aaa;
    max-width: 340px;
    margin: 0.75rem auto 0;
    line-height: 1.8;
    font-size: 0.82rem;
    font-weight: 300;
}
.layout-clean .profile-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 0;
    padding: 2rem 0;
    border-top: 1px solid rgba(0,0,0,0.04);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    flex-wrap: wrap;
}
.layout-clean .profile-stat {
    text-align: center;
    padding: 0;
    background: none;
    border: none;
}
.layout-clean .profile-stat-value {
    font-size: 2rem;
    font-weight: 200;
    color: var(--text-main);
    display: block;
}
.layout-clean .profile-stat-label {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #bbb;
    font-weight: 400;
    display: block;
    margin-top: 0.25rem;
}
.layout-clean .follow-btn {
    margin-top: 2rem;
    border: 1px solid rgba(0,0,0,0.12);
    color: var(--text-main);
    padding: 0.5rem 3rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 300;
    font-size: 0.75rem;
    background: transparent;
}
.layout-clean .follow-btn:hover,
.layout-clean .follow-btn.following {
    background: var(--text-main);
    color: #fff;
    border-color: var(--text-main);
}
.layout-clean .profile-section-title {
    text-align: center;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #ccc;
    font-weight: 400;
    margin-bottom: 1.5rem;
}
.layout-clean .recipe-card {
    background: #fff;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    border-radius: 0;
    padding: 1.25rem 0;
    margin-bottom: 0;
}
.layout-clean .recipe-card-name {
    font-weight: 200;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    color: var(--text-main);
}
.layout-clean .recipe-card-meta { color: #ccc; font-size: 0.72rem; }
.layout-clean .activity-card {
    background: #fff;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    border-radius: 0;
    padding: 1rem 0;
    margin-bottom: 0;
}
.layout-clean .activity-action { color: #bbb; font-weight: 300; }
.layout-clean .activity-recipe { font-weight: 300; color: var(--text-main); }
.layout-clean .back-link { color: #aaa; font-weight: 300; letter-spacing: 1px; text-decoration: none; }
.layout-clean .empty-section { background: transparent; border: 1px dashed rgba(0,0,0,0.06); color: #ccc; }
.layout-clean .profile-private-msg { background: transparent; border: 1px dashed rgba(0,0,0,0.06); color: #bbb; }
.layout-clean .profile-edit-panel { background: #fff; border: none; border-bottom: 1px solid rgba(0,0,0,0.04); border-radius: 0; padding: 1rem 0; }

/* ─── 2. NOIR — Cinematic dark, gradient header, 2-col stats, warm accent ─── */
.layout-noir .profile-page {
    background: #1a1a1a;
    color: #e0e0e0;
}
.layout-noir .profile-header {
    background: linear-gradient(160deg, #222 0%, #111 60%, color-mix(in srgb, #111 70%, var(--p3)) 100%);
    padding: 3rem 2rem 2rem;
    border-radius: 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.layout-noir .profile-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--p1), var(--p3));
}
.layout-noir .profile-avatar {
    width: 92px;
    height: 92px;
    border: 2px solid var(--p1);
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(0,0,0,0.6);
}
.layout-noir .profile-name {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}
.layout-noir .profile-bio {
    color: rgba(255,255,255,0.5);
    font-style: italic;
}
.layout-noir .profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    margin-top: 1.5rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.06);
}
.layout-noir .profile-stat {
    background: #1a1a1a;
    padding: 1rem;
    text-align: center;
}
.layout-noir .profile-stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--p1);
}
.layout-noir .profile-stat-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.35);
    margin-top: 0.2rem;
}
.layout-noir .profile-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--p3);
    border-bottom: 2px solid color-mix(in srgb, var(--p3) 30%, transparent);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}
.layout-noir .follow-btn {
    background: var(--p1);
    color: #111;
    border: none;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.layout-noir .follow-btn:hover,
.layout-noir .follow-btn.following {
    background: transparent;
    color: var(--p1);
    border: 1px solid var(--p1);
}
.layout-noir .recipe-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-left: 3px solid var(--p3);
    border-radius: 0;
}
.layout-noir .recipe-card-name { color: #fff; font-weight: 700; }
.layout-noir .recipe-card-meta { color: rgba(255,255,255,0.3); }
.layout-noir .activity-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-left: 3px solid var(--p1);
    border-radius: 0;
}
.layout-noir .activity-action { color: rgba(255,255,255,0.4); }
.layout-noir .activity-recipe { color: var(--p1); font-weight: 700; }
.layout-noir .back-link { color: var(--p1); }
.layout-noir .empty-section { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04); color: rgba(255,255,255,0.2); border-radius: 0; }
.layout-noir .profile-private-msg { background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.05); color: rgba(255,255,255,0.4); border-radius: 0; }
.layout-noir .profile-edit-panel { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04); border-radius: 0; }

/* ─── 3. NEON — Cyberpunk, full-width glow, grid dividers, uppercase bold ─── */
.layout-neon .profile-page {
    background: #0a0a0f;
    color: #e0e0e0;
}
.layout-neon .profile-header {
    background: #0d0d14;
    padding: 0;
    border-radius: 0;
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: center;
    padding: 2rem;
}
.layout-neon .profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--p3), var(--p1), var(--p3), transparent);
    box-shadow: 0 0 30px var(--p3), 0 0 60px color-mix(in srgb, var(--p3) 40%, transparent);
}
.layout-neon .profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    border: 2px solid var(--p3);
    box-shadow: 0 0 20px color-mix(in srgb, var(--p3) 50%, transparent),
                0 0 40px color-mix(in srgb, var(--p3) 20%, transparent);
}
.layout-neon .profile-name {
    color: var(--p3);
    font-size: 1.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 25px color-mix(in srgb, var(--p3) 60%, transparent);
}
.layout-neon .profile-bio {
    color: rgba(255,255,255,0.5);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.layout-neon .profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.03);
    margin-top: 0;
    border-top: 1px solid rgba(255,255,255,0.04);
}
.layout-neon .profile-stat {
    background: #0a0a0f;
    padding: 1.25rem 1rem;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.04);
}
.layout-neon .profile-stat:last-child { border-right: none; }
.layout-neon .profile-stat-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--p3);
    text-shadow: 0 0 15px color-mix(in srgb, var(--p3) 40%, transparent);
    display: block;
}
.layout-neon .profile-stat-label {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.3);
    font-weight: 700;
    display: block;
    margin-top: 0.3rem;
}
.layout-neon .profile-section-title {
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--p3);
    text-shadow: 0 0 12px color-mix(in srgb, var(--p3) 40%, transparent);
}
.layout-neon .follow-btn {
    background: var(--p3);
    color: #0a0a0f;
    border: none;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    padding: 0.7rem 2rem;
    box-shadow: 0 0 20px color-mix(in srgb, var(--p3) 40%, transparent);
}
.layout-neon .follow-btn:hover {
    box-shadow: 0 0 30px color-mix(in srgb, var(--p3) 60%, transparent), 0 0 60px color-mix(in srgb, var(--p3) 30%, transparent);
}
.layout-neon .follow-btn.following {
    background: transparent;
    border: 1px solid var(--p3);
    color: var(--p3);
    box-shadow: none;
}
.layout-neon .recipe-card {
    background: rgba(10,10,15,0.8);
    border: 1px solid rgba(255,255,255,0.04);
    border-left: 3px solid var(--p3);
    border-radius: 0;
    box-shadow: 0 0 15px color-mix(in srgb, var(--p3) 6%, transparent);
}
.layout-neon .recipe-card-name {
    color: var(--p3);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px color-mix(in srgb, var(--p3) 30%, transparent);
}
.layout-neon .recipe-card-meta { color: rgba(255,255,255,0.25); text-transform: uppercase; font-size: 0.7rem; letter-spacing: 1px; }
.layout-neon .activity-card {
    background: rgba(10,10,15,0.8);
    border: 1px solid rgba(255,255,255,0.04);
    border-left: 3px solid var(--p1);
    border-radius: 0;
    box-shadow: 0 0 15px color-mix(in srgb, var(--p1) 6%, transparent);
}
.layout-neon .activity-action { color: var(--p3); text-transform: uppercase; font-size: 0.75rem; }
.layout-neon .activity-recipe { color: var(--p3); font-weight: 900; text-shadow: 0 0 8px color-mix(in srgb, var(--p3) 25%, transparent); }
.layout-neon .back-link { color: var(--p3); text-transform: uppercase; letter-spacing: 1px; text-shadow: 0 0 12px color-mix(in srgb, var(--p3) 40%, transparent); }
.layout-neon .empty-section { background: rgba(10,10,15,0.5); border: 1px solid rgba(255,255,255,0.03); color: rgba(255,255,255,0.15); border-radius: 0; box-shadow: inset 0 0 40px color-mix(in srgb, var(--p3) 3%, transparent); }
.layout-neon .profile-private-msg { background: rgba(10,10,15,0.8); border: 1px solid var(--p3); color: var(--p3); border-radius: 0; box-shadow: 0 0 25px color-mix(in srgb, var(--p3) 12%, transparent); }
.layout-neon .profile-edit-panel { background: rgba(10,10,15,0.6); border: 1px solid rgba(255,255,255,0.04); border-radius: 0; }

/* ─── 4. MOSAIC — Grid-first, gradient name, colored tag badges ─── */
.layout-mosaic .profile-page {
    background: linear-gradient(135deg, color-mix(in srgb, var(--p1) 4%, transparent), color-mix(in srgb, var(--p3) 3%, transparent));
}
.layout-mosaic .profile-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: center;
    padding: 1.75rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.layout-mosaic .profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-lg);
    border: 3px solid transparent;
    background-image: linear-gradient(var(--bg-card), var(--bg-card)), linear-gradient(135deg, var(--p1), var(--p3));
    background-origin: border-box;
    background-clip: padding-box, border-box;
}
.layout-mosaic .profile-name {
    font-size: 1.4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--p1), var(--p3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}
.layout-mosaic .profile-bio {
    color: var(--text-muted);
    margin-top: 0.25rem;
    font-size: 0.85rem;
}
.layout-mosaic .profile-stats {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}
.layout-mosaic .profile-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    background: var(--bg-elevated);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}
.layout-mosaic .profile-stat-value {
    font-weight: 800;
    color: var(--p1);
    font-size: 0.9rem;
}
.layout-mosaic .profile-stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: lowercase;
    font-weight: 400;
}
.layout-mosaic .profile-section-title {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--p1);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
}
.layout-mosaic .follow-btn {
    background: linear-gradient(135deg, var(--p1), var(--p3));
    color: #fff;
    border: none;
    font-weight: 700;
    border-radius: 12px;
    padding: 0.5rem 1.5rem;
}
.layout-mosaic .follow-btn.following {
    background: var(--bg-elevated);
    border: 1px solid var(--p1);
    color: var(--p1);
    border-radius: 12px;
}
.layout-mosaic .recipe-card {
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-top: 3px solid var(--p1);
}
.layout-mosaic .recipe-card-name {
    font-weight: 900;
    background: linear-gradient(135deg, var(--p1), var(--p3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.layout-mosaic .recipe-card-meta { color: var(--text-muted); }
.layout-mosaic .profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.layout-mosaic .activity-card {
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-top: 3px solid var(--p3);
}
.layout-mosaic .activity-action { color: var(--p3); }
.layout-mosaic .activity-recipe {
    font-weight: 800;
    background: linear-gradient(135deg, var(--p1), var(--p3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.layout-mosaic .back-link { color: var(--p1); font-weight: 700; }
.layout-mosaic .empty-section { background: var(--bg-card); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 2px dashed var(--border-color); }
.layout-mosaic .profile-private-msg { background: var(--bg-card); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--p1); }
.layout-mosaic .profile-edit-panel { background: var(--bg-card); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }

/* ─── 5. SUNSET — Warm gradient header, centered, frosted glass stats ─── */
.layout-sunset .profile-page {
    background: linear-gradient(180deg, #fff5f0 0%, #fff0e6 50%, #fef5f7 100%);
}
.layout-sunset .profile-header {
    background: linear-gradient(135deg, #ff6b35 0%, #daa520 50%, #e84393 100%);
    padding: 3.5rem 2rem 3rem;
    border-radius: 0;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.layout-sunset .profile-header::before {
    content: '';
    position: absolute;
    top: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
}
.layout-sunset .profile-avatar {
    width: 96px;
    height: 96px;
    margin: 0 auto 1rem;
    border: 4px solid rgba(255,255,255,0.5);
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    position: relative;
    z-index: 1;
}
.layout-sunset .profile-name {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    text-shadow: 0 2px 15px rgba(0,0,0,0.15);
    position: relative;
    z-index: 1;
}
.layout-sunset .profile-bio {
    color: rgba(255,255,255,0.8);
    position: relative;
    z-index: 1;
}
.layout-sunset .profile-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}
.layout-sunset .profile-stat {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    text-align: center;
}
.layout-sunset .profile-stat-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}
.layout-sunset .profile-stat-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.65);
}
.layout-sunset .profile-section-title {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #e84393;
}
.layout-sunset .follow-btn {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-weight: 600;
    border-radius: 12px;
}
.layout-sunset .follow-btn:hover {
    background: rgba(255,255,255,0.3);
}
.layout-sunset .follow-btn.following {
    background: #fff;
    color: #e84393;
    border-color: #fff;
}
.layout-sunset .recipe-card {
    background: linear-gradient(135deg, rgba(255,107,53,0.05), rgba(232,67,147,0.04));
    border: 1px solid rgba(255,107,53,0.1);
    border-radius: var(--radius-md);
}
.layout-sunset .recipe-card-name { font-weight: 700; color: #c0392b; }
.layout-sunset .recipe-card-meta { color: #b08968; }
.layout-sunset .activity-card {
    background: linear-gradient(135deg, rgba(255,107,53,0.05), rgba(232,67,147,0.04));
    border: 1px solid rgba(255,107,53,0.1);
    border-radius: var(--radius-md);
}
.layout-sunset .activity-action { color: #d35400; }
.layout-sunset .activity-recipe { color: #e84393; font-weight: 700; }
.layout-sunset .back-link { color: #ff6b35; }
.layout-sunset .empty-section { background: rgba(255,107,53,0.03); border: 1px dashed rgba(255,107,53,0.2); color: #b08968; border-radius: var(--radius-md); }
.layout-sunset .profile-private-msg { background: linear-gradient(135deg, rgba(255,107,53,0.06), rgba(232,67,147,0.04)); border: 1px solid rgba(255,107,53,0.15); color: #c0392b; border-radius: var(--radius-md); }
.layout-sunset .profile-edit-panel { background: rgba(255,107,53,0.03); border: 1px solid rgba(255,107,53,0.1); border-radius: var(--radius-md); }

/* ─── 6. OCEAN — Deep blue gradient header, wave SVG, teal accents ─── */
.layout-ocean .profile-page {
    background: linear-gradient(180deg, #e8f4f8 0%, #d6eaf8 50%, #eaf2f8 100%);
}
.layout-ocean .profile-header {
    background: linear-gradient(180deg, #0c2461 0%, #1e3799 50%, #0a3d62 100%);
    padding: 3rem 2rem 3.5rem;
    border-radius: 0;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.layout-ocean .profile-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%23e8f4f8' d='M0,64L48,58.7C96,53,192,43,288,48C384,53,480,75,576,80C672,85,768,75,864,64C960,53,1056,43,1152,48C1248,53,1344,75,1440,80L1440,120L0,120Z'/%3E%3C/svg%3E") repeat-x bottom;
    background-size: cover;
}
.layout-ocean .profile-avatar {
    width: 88px;
    height: 88px;
    margin: 0 auto 1rem;
    border: 3px solid #20bf6b;
    box-shadow: 0 0 25px rgba(32,191,107,0.3);
    position: relative;
    z-index: 1;
}
.layout-ocean .profile-name {
    color: #20bf6b;
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}
.layout-ocean .profile-bio {
    color: rgba(255,255,255,0.7);
    position: relative;
    z-index: 1;
}
.layout-ocean .profile-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 1;
}
.layout-ocean .profile-stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #20bf6b;
}
.layout-ocean .profile-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}
.layout-ocean .profile-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #20bf6b;
    border-bottom: 2px solid #20bf6b;
    padding-bottom: 0.5rem;
}
.layout-ocean .follow-btn {
    background: #20bf6b;
    color: #0c2461;
    border: none;
    font-weight: 700;
}
.layout-ocean .follow-btn:hover {
    background: var(--p1);
}
.layout-ocean .follow-btn.following {
    background: transparent;
    border: 1px solid #20bf6b;
    color: #20bf6b;
}
.layout-ocean .recipe-card {
    background: rgba(10,61,98,0.04);
    border: 1px solid rgba(30,55,153,0.1);
    border-left: 3px solid #20bf6b;
}
.layout-ocean .recipe-card-name { font-weight: 700; color: #0c2461; }
.layout-ocean .recipe-card-meta { color: #5b7ea1; }
.layout-ocean .activity-card {
    background: rgba(10,61,98,0.04);
    border: 1px solid rgba(30,55,153,0.1);
    border-left: 3px solid #1e3799;
}
.layout-ocean .activity-action { color: #0a3d62; }
.layout-ocean .activity-recipe { color: #0c2461; font-weight: 700; }
.layout-ocean .back-link { color: #1e3799; }
.layout-ocean .empty-section { background: rgba(10,61,98,0.03); border: 1px solid rgba(30,55,153,0.12); color: #5b7ea1; }
.layout-ocean .profile-private-msg { background: linear-gradient(135deg, rgba(12,36,97,0.06), rgba(10,61,98,0.04)); border: 1px solid rgba(30,55,153,0.15); color: #0c2461; }
.layout-ocean .profile-edit-panel { background: rgba(10,61,98,0.03); border: 1px solid rgba(30,55,153,0.08); }

/* ─── 7. FOREST — Earthy green gradient, double-border frame, organic avatar ─── */
.layout-forest .profile-page {
    background: linear-gradient(180deg, #f0f5e8 0%, #e8f0d8 50%, #f2f7ec 100%);
}
.layout-forest .profile-header {
    background: linear-gradient(135deg, #1a3c34 0%, #2d5016 100%);
    padding: 2rem;
    border-radius: var(--radius-md);
    color: #fff;
    position: relative;
}
.layout-forest .profile-header::before {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    bottom: 8px;
    left: 8px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: calc(var(--radius-md) - 4px);
    pointer-events: none;
}
.layout-forest .profile-header::after {
    content: '';
    position: absolute;
    top: 14px;
    right: 14px;
    bottom: 14px;
    left: 14px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: calc(var(--radius-md) - 8px);
    pointer-events: none;
}
.layout-forest .profile-avatar {
    width: 85px;
    height: 85px;
    border: 3px solid var(--p1);
    border-radius: 50% 50% 50% 20%;
}
.layout-forest .profile-name {
    color: var(--p1);
    font-size: 1.4rem;
    font-weight: 700;
}
.layout-forest .profile-bio {
    color: rgba(255,255,255,0.65);
    font-style: italic;
}
.layout-forest .profile-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.layout-forest .profile-stat-value {
    font-weight: 700;
    color: var(--p1);
}
.layout-forest .profile-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}
.layout-forest .profile-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--p1);
}
.layout-forest .follow-btn {
    background: var(--p1);
    color: var(--p2);
    border: none;
    font-weight: 700;
}
.layout-forest .follow-btn:hover { background: var(--p3); }
.layout-forest .follow-btn.following {
    background: transparent;
    border: 1px solid var(--p1);
    color: var(--p1);
}
.layout-forest .recipe-card {
    background: rgba(45,80,22,0.04);
    border: 1px solid rgba(45,80,22,0.1);
    border-left: 3px solid var(--p1);
}
.layout-forest .recipe-card-name { font-weight: 700; color: #1a3c34; }
.layout-forest .recipe-card-meta { color: #6b8f5e; }
.layout-forest .activity-card {
    background: rgba(45,80,22,0.04);
    border: 1px solid rgba(45,80,22,0.1);
    border-left: 3px solid #2d5016;
}
.layout-forest .activity-action { color: #3d6b2e; }
.layout-forest .activity-recipe { color: #1a3c34; font-weight: 700; }
.layout-forest .back-link { color: #2d5016; }
.layout-forest .empty-section { background: rgba(45,80,22,0.03); border: 1px dashed rgba(45,80,22,0.15); color: #6b8f5e; }
.layout-forest .profile-private-msg { background: linear-gradient(135deg, rgba(26,60,52,0.06), rgba(45,80,22,0.04)); border: 1px solid rgba(45,80,22,0.12); color: #1a3c34; }
.layout-forest .profile-edit-panel { background: rgba(45,80,22,0.03); border: 1px solid rgba(45,80,22,0.08); }

/* ─── 8. GALAXY — Deep space gradient, starfield, glow stats, cosmic cards ─── */
.layout-galaxy .profile-page {
    background: linear-gradient(180deg, #0f0c29 0%, #1a1640 50%, #0f0c29 100%);
    color: #e0e0e0;
}
.layout-galaxy .profile-header {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    padding: 3rem 2rem;
    border-radius: 0;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.layout-galaxy .profile-header::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 25vw 10vh 0 0 rgba(255,255,255,0.3), 50vw 20vh 0 0 rgba(255,255,255,0.2), 75vw 5vh 0 0 rgba(255,255,255,0.4), 15vw 30vh 0 0 rgba(255,255,255,0.15), 60vw 35vh 0 0 rgba(255,255,255,0.25), 30vw 40vh 0 0 rgba(255,255,255,0.1), 85vw 25vh 0 0 rgba(255,255,255,0.35), 45vw 15vh 0 0 rgba(255,255,255,0.2);
}
.layout-galaxy .profile-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    border: 3px solid var(--p3);
    box-shadow: 0 0 30px color-mix(in srgb, var(--p3) 40%, transparent),
                0 0 60px color-mix(in srgb, var(--p1) 20%, transparent);
}
.layout-galaxy .profile-name {
    color: var(--p3);
    font-size: 1.8rem;
    font-weight: 900;
    text-shadow: 0 0 30px color-mix(in srgb, var(--p3) 40%, transparent);
}
.layout-galaxy .profile-bio {
    color: rgba(255,255,255,0.5);
    max-width: 400px;
    margin: 0 auto;
}
.layout-galaxy .profile-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 1.5rem;
}
.layout-galaxy .profile-stat {
    text-align: center;
}
.layout-galaxy .profile-stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--p3);
    text-shadow: 0 0 10px color-mix(in srgb, var(--p3) 30%, transparent);
    display: block;
}
.layout-galaxy .profile-stat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.35);
    display: block;
    margin-top: 0.25rem;
}
.layout-galaxy .profile-section-title {
    text-align: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--p3);
    text-shadow: 0 0 15px color-mix(in srgb, var(--p3) 30%, transparent);
}
.layout-galaxy .follow-btn {
    background: var(--p3);
    color: var(--p2);
    border: none;
    font-weight: 800;
    box-shadow: 0 0 20px color-mix(in srgb, var(--p3) 30%, transparent);
}
.layout-galaxy .follow-btn:hover {
    box-shadow: 0 0 30px color-mix(in srgb, var(--p3) 50%, transparent);
}
.layout-galaxy .follow-btn.following {
    background: transparent;
    border: 1px solid var(--p3);
    color: var(--p3);
    box-shadow: none;
}
.layout-galaxy .recipe-card {
    background: rgba(48,43,99,0.3);
    border: 1px solid rgba(255,255,255,0.06);
    border-left: 3px solid var(--p3);
    box-shadow: 0 0 15px rgba(36,36,62,0.3);
}
.layout-galaxy .recipe-card-name { color: var(--p3); font-weight: 800; text-shadow: 0 0 10px color-mix(in srgb, var(--p3) 25%, transparent); }
.layout-galaxy .recipe-card-meta { color: rgba(255,255,255,0.3); }
.layout-galaxy .activity-card {
    background: rgba(48,43,99,0.3);
    border: 1px solid rgba(255,255,255,0.06);
    border-left: 3px solid var(--p1);
    box-shadow: 0 0 15px rgba(36,36,62,0.3);
}
.layout-galaxy .activity-action { color: rgba(255,255,255,0.4); }
.layout-galaxy .activity-recipe { color: var(--p3); text-shadow: 0 0 8px color-mix(in srgb, var(--p3) 20%, transparent); }
.layout-galaxy .back-link { color: var(--p3); text-shadow: 0 0 10px color-mix(in srgb, var(--p3) 30%, transparent); }
.layout-galaxy .empty-section { background: rgba(48,43,99,0.2); border: 1px solid rgba(255,255,255,0.04); color: rgba(255,255,255,0.2); box-shadow: inset 0 0 40px rgba(36,36,62,0.3); }
.layout-galaxy .profile-private-msg { background: rgba(48,43,99,0.4); border: 1px solid var(--p3); color: rgba(255,255,255,0.6); box-shadow: 0 0 25px color-mix(in srgb, var(--p3) 10%, transparent); }
.layout-galaxy .profile-edit-panel { background: rgba(48,43,99,0.2); border: 1px solid rgba(255,255,255,0.05); }

/* ─── 9. CANDY — Bright gradient, pill stats, rounded everything, pastel ─── */
.layout-candy .profile-page {
    background: linear-gradient(135deg, #fff0f6 0%, #f0f0ff 50%, #fff5e6 100%);
}
.layout-candy .profile-header {
    background: linear-gradient(135deg, var(--p1) 0%, var(--p3) 100%);
    padding: 2.5rem 2rem;
    border-radius: 30px;
    color: #fff;
    text-align: center;
}
.layout-candy .profile-avatar {
    width: 95px;
    height: 95px;
    margin: 0 auto 1rem;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
.layout-candy .profile-name {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
}
.layout-candy .profile-bio {
    color: rgba(255,255,255,0.85);
}
.layout-candy .profile-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}
.layout-candy .profile-stat {
    background: rgba(255,255,255,0.15);
    padding: 0.75rem 1.25rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
}
.layout-candy .profile-stat-value {
    font-weight: 800;
    color: var(--p2);
    display: block;
}
.layout-candy .profile-stat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    display: block;
    margin-top: 0.15rem;
}
.layout-candy .follow-btn {
    background: #fff;
    color: var(--p3);
    border: none;
    font-weight: 800;
    border-radius: 25px;
    padding: 0.6rem 2rem;
}
.layout-candy .follow-btn:hover { background: var(--p2); color: #fff; }
.layout-candy .follow-btn.following { background: var(--p2); color: #fff; border: none; }
.layout-candy .profile-section-title {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--p3);
}
.layout-candy .recipe-card {
    border-radius: 20px;
    border: none;
    background: linear-gradient(135deg, color-mix(in srgb, var(--p1) 10%, transparent), color-mix(in srgb, var(--p3) 7%, transparent));
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.layout-candy .recipe-card-name { font-weight: 800; color: var(--p3); }
.layout-candy .recipe-card-meta { color: #c49fc4; }
.layout-candy .activity-card {
    border-radius: 20px;
    border: none;
    background: linear-gradient(135deg, color-mix(in srgb, var(--p3) 8%, transparent), color-mix(in srgb, var(--p1) 5%, transparent));
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.layout-candy .activity-action { color: var(--p3); }
.layout-candy .activity-recipe { font-weight: 800; color: var(--p1); }
.layout-candy .back-link { color: var(--p3); font-weight: 700; }
.layout-candy .empty-section { border-radius: 20px; background: rgba(255,255,255,0.5); border: 2px dashed color-mix(in srgb, var(--p1) 30%, transparent); color: #c49fc4; }
.layout-candy .profile-private-msg { border-radius: 20px; background: linear-gradient(135deg, color-mix(in srgb, var(--p1) 8%, transparent), color-mix(in srgb, var(--p3) 6%, transparent)); color: var(--p3); }
.layout-candy .profile-edit-panel { border-radius: 20px; background: rgba(255,255,255,0.4); border: 1px solid rgba(0,0,0,0.05); }

/* ─── 10. INDUSTRIAL — Monospace, sharp 0-radius, concrete bg, orange accents ─── */
.layout-industrial .profile-page {
    background: #1a1a1a;
    color: #e0e0e0;
}
.layout-industrial .profile-header {
    background: #2d2d2d;
    padding: 2rem;
    border-radius: 0;
    border-left: 6px solid var(--p3);
    font-family: 'Courier New', monospace;
}
.layout-industrial .profile-avatar {
    width: 80px;
    height: 80px;
    border: 3px solid var(--p3);
    border-radius: 0;
}
.layout-industrial .profile-name {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--p3);
    text-transform: uppercase;
    letter-spacing: 3px;
}
.layout-industrial .profile-bio {
    color: rgba(255,255,255,0.5);
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
}
.layout-industrial .profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    margin-top: 1rem;
    border: 1px solid #444;
}
.layout-industrial .profile-stat {
    background: #1a1a1a;
    padding: 0.75rem 1rem;
    border-right: 1px solid #444;
    font-family: 'Courier New', monospace;
    text-align: center;
}
.layout-industrial .profile-stat:last-child { border-right: none; }
.layout-industrial .profile-stat-value {
    font-weight: 700;
    color: var(--p3);
    display: block;
}
.layout-industrial .profile-stat-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #777;
    display: block;
    margin-top: 0.2rem;
    font-family: 'Courier New', monospace;
}
.layout-industrial .profile-section-title {
    font-family: 'Courier New', monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--p3);
    border-bottom: 2px solid var(--p3);
    padding-bottom: 0.5rem;
}
.layout-industrial .follow-btn {
    background: var(--p3);
    color: var(--p2);
    border: none;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 0;
}
.layout-industrial .follow-btn:hover { background: var(--p1); }
.layout-industrial .follow-btn.following {
    background: transparent;
    border: 1px solid var(--p3);
    color: var(--p3);
}
.layout-industrial .recipe-card {
    background: #222;
    border: 1px solid #444;
    border-left: 4px solid var(--p3);
    font-family: 'Courier New', monospace;
    border-radius: 0;
}
.layout-industrial .recipe-card-name {
    font-family: 'Courier New', monospace;
    color: var(--p3);
    text-transform: uppercase;
    letter-spacing: 2px;
}
.layout-industrial .recipe-card-meta { color: #666; font-family: 'Courier New', monospace; }
.layout-industrial .activity-card {
    background: #222;
    border: 1px solid #444;
    border-left: 4px solid var(--p1);
    font-family: 'Courier New', monospace;
    border-radius: 0;
}
.layout-industrial .activity-action { color: var(--p3); font-family: 'Courier New', monospace; }
.layout-industrial .activity-recipe { color: var(--p3); font-family: 'Courier New', monospace; text-transform: uppercase; letter-spacing: 1px; }
.layout-industrial .back-link { color: var(--p3); font-family: 'Courier New', monospace; text-transform: uppercase; letter-spacing: 1px; }
.layout-industrial .empty-section { background: #222; border: 2px dashed #444; color: #555; font-family: 'Courier New', monospace; border-radius: 0; }
.layout-industrial .profile-private-msg { background: #222; border: 1px solid var(--p3); color: var(--p3); font-family: 'Courier New', monospace; border-radius: 0; }
.layout-industrial .profile-edit-panel { background: #222; border: 1px solid #444; border-radius: 0; }

/* ─── 11. WATERCOLOR — Soft pastel bg, paint-stroke effects, rounded cards ─── */
.layout-watercolor .profile-page {
    background: linear-gradient(135deg, #fef9ef 0%, #f5eef8 50%, #eef7fc 100%);
}
.layout-watercolor .profile-header {
    background: linear-gradient(135deg, #fef9ef 0%, #f0e6ff 50%, #e6f7ff 100%);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.layout-watercolor .profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, color-mix(in srgb, var(--p1) 15%, transparent) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, color-mix(in srgb, var(--p3) 12%, transparent) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, color-mix(in srgb, var(--p2) 8%, transparent) 0%, transparent 50%);
    pointer-events: none;
}
.layout-watercolor .profile-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    border: 3px solid var(--p1);
    border-radius: 50%;
    position: relative;
    z-index: 1;
}
.layout-watercolor .profile-name {
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--p2);
    position: relative;
    z-index: 1;
}
.layout-watercolor .profile-bio {
    color: var(--text-muted);
    font-style: italic;
    position: relative;
    z-index: 1;
}
.layout-watercolor .profile-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}
.layout-watercolor .profile-stat-value { font-weight: 700; color: var(--p1); }
.layout-watercolor .profile-stat-label { font-size: 0.7rem; text-transform: uppercase; color: var(--text-muted); }
.layout-watercolor .profile-section-title {
    font-size: 0.8rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--p1);
    font-style: italic;
}
.layout-watercolor .follow-btn {
    background: transparent;
    color: var(--p1);
    border: 1px solid var(--p1);
    font-weight: 300;
    letter-spacing: 1px;
}
.layout-watercolor .follow-btn:hover { background: var(--p1); color: #fff; }
.layout-watercolor .follow-btn.following { background: var(--p1); color: #fff; }
.layout-watercolor .recipe-card {
    border: none;
    background: linear-gradient(135deg, color-mix(in srgb, var(--p1) 6%, transparent), color-mix(in srgb, var(--p3) 4%, transparent), color-mix(in srgb, var(--p2) 3%, transparent));
    border-radius: var(--radius-md);
}
.layout-watercolor .recipe-card-name { color: var(--p2); font-weight: 300; }
.layout-watercolor .recipe-card-meta { color: var(--text-muted); font-style: italic; }
.layout-watercolor .activity-card {
    border: none;
    background: linear-gradient(135deg, color-mix(in srgb, var(--p3) 5%, transparent), color-mix(in srgb, var(--p1) 4%, transparent));
    border-radius: var(--radius-md);
}
.layout-watercolor .activity-action { color: var(--p2); }
.layout-watercolor .activity-recipe { color: var(--p1); font-weight: 300; }
.layout-watercolor .back-link { color: var(--p1); font-weight: 300; }
.layout-watercolor .empty-section { background: rgba(255,255,255,0.4); border: 2px dashed color-mix(in srgb, var(--p1) 20%, transparent); color: var(--text-muted); border-radius: var(--radius-md); }
.layout-watercolor .profile-private-msg { background: linear-gradient(135deg, color-mix(in srgb, var(--p1) 6%, transparent), color-mix(in srgb, var(--p3) 4%, transparent)); color: var(--p2); border-radius: var(--radius-md); }
.layout-watercolor .profile-edit-panel { background: rgba(255,255,255,0.3); border: 1px solid color-mix(in srgb, var(--p1) 15%, transparent); border-radius: var(--radius-md); }

/* ─── 12. ZEN — Max 520px, ultra-thin weight:100, massive whitespace, bottom-border cards ─── */
.layout-zen {
    max-width: 520px;
    margin: 0 auto;
}
.layout-zen .profile-page {
    background: #fff;
    max-width: 520px;
    margin: 0 auto;
}
.layout-zen .profile-header {
    text-align: center;
    padding: 4rem 1.5rem 3rem;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.layout-zen .profile-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
}
.layout-zen .profile-name {
    font-size: 2rem;
    font-weight: 100;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--p2);
}
.layout-zen .profile-bio {
    color: #bbb;
    font-size: 0.9rem;
    line-height: 2.2;
    max-width: 350px;
    margin: 1rem auto 0;
    font-weight: 300;
}
.layout-zen .profile-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.layout-zen .profile-stat {
    text-align: center;
    padding: 0;
    background: none;
    border: none;
}
.layout-zen .profile-stat-value {
    font-size: 2.2rem;
    font-weight: 100;
    color: var(--p1);
    display: block;
}
.layout-zen .profile-stat-label {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #ccc;
    display: block;
    margin-top: 0.3rem;
    font-weight: 300;
}
.layout-zen .follow-btn {
    margin-top: 2.5rem;
    background: transparent;
    border: 1px solid rgba(0,0,0,0.1);
    color: var(--p2);
    padding: 0.6rem 3.5rem;
    font-weight: 100;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.75rem;
}
.layout-zen .follow-btn:hover { background: var(--p2); color: #fff; border-color: var(--p2); }
.layout-zen .follow-btn.following { background: var(--p2); color: #fff; border-color: var(--p2); }
.layout-zen .profile-section-title {
    text-align: center;
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: #ccc;
    margin: 3rem 0 1.5rem;
    font-weight: 300;
}
.layout-zen .recipe-card {
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    border-radius: 0;
    padding: 1.25rem 0;
    background: transparent;
}
.layout-zen .recipe-card-name {
    font-weight: 100;
    font-size: 1rem;
    letter-spacing: 1px;
    color: var(--p2);
}
.layout-zen .recipe-card-meta { color: #ccc; font-size: 0.7rem; letter-spacing: 0.5px; }
.layout-zen .activity-card {
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    border-radius: 0;
    padding: 1rem 0;
    background: transparent;
}
.layout-zen .activity-action { color: #bbb; font-weight: 300; }
.layout-zen .activity-recipe { font-weight: 100; color: var(--p2); letter-spacing: 1px; }
.layout-zen .back-link { color: #aaa; font-weight: 300; letter-spacing: 2px; }
.layout-zen .empty-section { background: transparent; border: 1px dashed rgba(0,0,0,0.06); color: #ccc; border-radius: 0; }
.layout-zen .profile-private-msg { background: transparent; border: 1px solid rgba(0,0,0,0.05); color: #bbb; border-radius: 0; }
.layout-zen .profile-edit-panel { background: transparent; border: none; border-bottom: 1px solid rgba(0,0,0,0.05); border-radius: 0; }

/* ─── 13. RUSTIC — Warm wood gradient header, crosshatch texture, organic avatar ─── */
.layout-rustic .profile-page {
    background: linear-gradient(180deg, #faf5ef 0%, #f5ede0 50%, #faf3e8 100%);
}
.layout-rustic .profile-header {
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 50%, #A0522D 100%);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.layout-rustic .profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.layout-rustic .profile-avatar {
    width: 90px;
    height: 90px;
    margin: 0 auto 1rem;
    border: 4px solid var(--p1);
    border-radius: 50% 50% 50% 20%;
    position: relative;
    z-index: 1;
}
.layout-rustic .profile-name {
    color: var(--p1);
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}
.layout-rustic .profile-bio {
    color: rgba(255,255,255,0.8);
    font-style: italic;
    position: relative;
    z-index: 1;
}
.layout-rustic .profile-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}
.layout-rustic .profile-stat {
    background: rgba(0,0,0,0.2);
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    text-align: center;
}
.layout-rustic .profile-stat-value { font-weight: 700; color: var(--p1); display: block; }
.layout-rustic .profile-stat-label { font-size: 0.7rem; text-transform: uppercase; color: rgba(255,255,255,0.6); display: block; margin-top: 0.15rem; }
.layout-rustic .profile-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--p1);
}
.layout-rustic .follow-btn {
    background: var(--p1);
    color: var(--p2);
    border: none;
    font-weight: 700;
    border-radius: 25px;
    padding: 0.5rem 2rem;
}
.layout-rustic .follow-btn:hover { background: var(--p3); }
.layout-rustic .follow-btn.following {
    background: transparent;
    border: 1px solid var(--p1);
    color: var(--p1);
    border-radius: 25px;
}
.layout-rustic .recipe-card {
    background: rgba(139,69,19,0.04);
    border: 1px solid rgba(139,69,19,0.12);
    border-left: 3px solid var(--p1);
    border-radius: 0 8px 8px 0;
}
.layout-rustic .recipe-card-name { font-weight: 700; color: #8B4513; }
.layout-rustic .recipe-card-meta { color: #a0845c; }
.layout-rustic .activity-card {
    background: rgba(139,69,19,0.04);
    border: 1px solid rgba(139,69,19,0.12);
    border-left: 3px solid #D2691E;
    border-radius: 0 8px 8px 0;
}
.layout-rustic .activity-action { color: #8B4513; }
.layout-rustic .activity-recipe { color: #A0522D; font-weight: 700; }
.layout-rustic .back-link { color: #8B4513; }
.layout-rustic .empty-section { background: rgba(139,69,19,0.03); border: 1px dashed rgba(139,69,19,0.15); color: #a0845c; border-radius: var(--radius-md); }
.layout-rustic .profile-private-msg { background: linear-gradient(135deg, rgba(139,69,19,0.06), rgba(210,105,30,0.04)); border: 1px solid rgba(139,69,19,0.15); color: #8B4513; border-radius: var(--radius-md); }
.layout-rustic .profile-edit-panel { background: rgba(139,69,19,0.03); border: 1px solid rgba(139,69,19,0.1); border-radius: var(--radius-md); }

/* ─── 14. GRADIENT — Animated color-shifting header, glassmorphism stats, gradient name ─── */
.layout-gradient .profile-page {
    background: linear-gradient(135deg, color-mix(in srgb, var(--p1) 6%, transparent), color-mix(in srgb, var(--p2) 4%, transparent), color-mix(in srgb, var(--p3) 5%, transparent));
}
.layout-gradient .profile-header {
    background: linear-gradient(-45deg, var(--p1), var(--p2), var(--p3), var(--p1));
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    color: #fff;
    text-align: center;
    position: relative;
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.layout-gradient .profile-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    border: 4px solid rgba(255,255,255,0.6);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.layout-gradient .profile-name {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(-45deg, var(--p1), #fff, var(--p3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.layout-gradient .profile-bio { color: rgba(255,255,255,0.85); }
.layout-gradient .profile-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}
.layout-gradient .profile-stat {
    background: rgba(255,255,255,0.15);
    padding: 0.75rem 1.25rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
}
.layout-gradient .profile-stat-value { font-weight: 800; color: #fff; display: block; }
.layout-gradient .profile-stat-label { font-size: 0.65rem; text-transform: uppercase; color: rgba(255,255,255,0.7); display: block; margin-top: 0.15rem; }
.layout-gradient .follow-btn {
    background: #fff;
    color: var(--p2);
    border: none;
    font-weight: 800;
    border-radius: 25px;
    padding: 0.6rem 2rem;
}
.layout-gradient .follow-btn:hover { background: var(--p2); color: #fff; }
.layout-gradient .follow-btn.following { background: var(--p2); color: #fff; }
.layout-gradient .profile-section-title {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--p3);
}
.layout-gradient .recipe-card {
    background: linear-gradient(135deg, color-mix(in srgb, var(--p1) 5%, transparent), color-mix(in srgb, var(--p2) 3%, transparent));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
}
.layout-gradient .recipe-card-name {
    font-weight: 800;
    background: linear-gradient(-45deg, var(--p1), var(--p2), var(--p3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.layout-gradient .recipe-card-meta { color: var(--text-muted); }
.layout-gradient .activity-card {
    background: linear-gradient(135deg, color-mix(in srgb, var(--p3) 5%, transparent), color-mix(in srgb, var(--p1) 3%, transparent));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
}
.layout-gradient .activity-action { color: var(--p3); }
.layout-gradient .activity-recipe {
    font-weight: 800;
    background: linear-gradient(-45deg, var(--p3), var(--p1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.layout-gradient .back-link {
    background: linear-gradient(-45deg, var(--p1), var(--p3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}
.layout-gradient .empty-section { background: rgba(255,255,255,0.03); border: 1px dashed rgba(255,255,255,0.08); color: var(--text-muted); border-radius: var(--radius-md); }
.layout-gradient .profile-private-msg { background: linear-gradient(135deg, color-mix(in srgb, var(--p1) 8%, transparent), color-mix(in srgb, var(--p3) 6%, transparent)); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-md); color: var(--text-main); }
.layout-gradient .profile-edit-panel { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-md); }

/* ─── 15. PULSE — Breathing glow on avatar, pulsing stat borders, rhythmic ─── */
.layout-pulse .profile-page {
    background: linear-gradient(180deg, color-mix(in srgb, var(--p1) 3%, transparent) 0%, transparent 100%);
}
.layout-pulse .profile-header {
    background: var(--p2);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
}
.layout-pulse .profile-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    border: 3px solid var(--p1);
    animation: pulseGlow 2s ease-in-out infinite;
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--p1) 40%, transparent); }
    50% { box-shadow: 0 0 0 15px color-mix(in srgb, var(--p1) 0%, transparent), 0 0 40px color-mix(in srgb, var(--p1) 20%, transparent); }
}
.layout-pulse .profile-name { color: var(--p1); font-size: 1.6rem; font-weight: 800; }
.layout-pulse .profile-bio { color: var(--text-muted); }
.layout-pulse .profile-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}
.layout-pulse .profile-stat {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    background: color-mix(in srgb, var(--p1) 8%, transparent);
    animation: pulseBorder 3s ease-in-out infinite;
    text-align: center;
}
@keyframes pulseBorder {
    0%, 100% { border: 1px solid color-mix(in srgb, var(--p1) 20%, transparent); }
    50% { border: 1px solid color-mix(in srgb, var(--p1) 60%, transparent); }
}
.layout-pulse .profile-stat-value { font-weight: 800; color: var(--p1); display: block; }
.layout-pulse .profile-stat-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); display: block; margin-top: 0.15rem; }
.layout-pulse .profile-section-title {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--p1);
}
.layout-pulse .follow-btn {
    background: var(--p1);
    color: var(--p2);
    border: none;
    font-weight: 700;
    animation: pulseBtn 2s ease-in-out infinite;
}
@keyframes pulseBtn {
    0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--p1) 40%, transparent); }
    50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--p1) 0%, transparent); }
}
.layout-pulse .follow-btn.following { background: transparent; border: 1px solid var(--p1); color: var(--p1); animation: none; }
.layout-pulse .recipe-card {
    background: var(--bg-card);
    border: 1px solid color-mix(in srgb, var(--p1) 15%, transparent);
    border-left: 3px solid var(--p1);
    animation: pulseBorder 3s ease-in-out infinite;
}
.layout-pulse .recipe-card-name { font-weight: 800; color: var(--p1); }
.layout-pulse .recipe-card-meta { color: var(--text-muted); }
.layout-pulse .activity-card {
    background: var(--bg-card);
    border: 1px solid color-mix(in srgb, var(--p1) 15%, transparent);
    border-left: 3px solid var(--p1);
    animation: pulseBorder 3s ease-in-out infinite;
}
.layout-pulse .activity-action { color: var(--p1); }
.layout-pulse .activity-recipe { font-weight: 800; color: var(--p1); }
.layout-pulse .back-link { color: var(--p1); text-shadow: 0 0 8px color-mix(in srgb, var(--p1) 20%, transparent); }
.layout-pulse .empty-section { background: color-mix(in srgb, var(--p1) 3%, transparent); border: 1px dashed color-mix(in srgb, var(--p1) 25%, transparent); color: var(--text-muted); animation: pulseBorder 3s ease-in-out infinite; }
.layout-pulse .profile-private-msg { background: color-mix(in srgb, var(--p1) 5%, transparent); border: 1px solid color-mix(in srgb, var(--p1) 20%, transparent); color: var(--p1); }
.layout-pulse .profile-edit-panel { background: color-mix(in srgb, var(--p1) 3%, transparent); border: 1px solid color-mix(in srgb, var(--p1) 10%, transparent); border-radius: var(--radius-lg); }

/* ─── 16. WAVE — Animated wave SVG at header bottom, cool blue tones ─── */
.layout-wave .profile-page {
    background: linear-gradient(180deg, #e8f0f8 0%, #dce8f4 50%, #e4edf6 100%);
}
.layout-wave .profile-header {
    background: linear-gradient(180deg, var(--p2) 0%, color-mix(in srgb, var(--p2) 60%, var(--p3)) 100%);
    padding: 3rem 2rem 4rem;
    border-radius: 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.layout-wave .profile-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -50%;
    right: -50%;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%23e8f0f8' fill-opacity='1' d='M0,64L48,58.7C96,53,192,43,288,48C384,53,480,75,576,80C672,85,768,75,864,64C960,53,1056,43,1152,48C1248,53,1344,75,1440,80L1440,120L0,120Z'/%3E%3C/svg%3E") repeat-x;
    background-size: 50% 100%;
    animation: waveMove 4s linear infinite;
}
.layout-wave .profile-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -50%;
    right: -50%;
    height: 40px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%23e8f0f8' fill-opacity='0.5' d='M0,96L48,90.7C96,85,192,75,288,80C384,85,480,105,576,110C672,115,768,105,864,96C960,85,1056,75,1152,80C1248,85,1344,105,1440,110L1440,120L0,120Z'/%3E%3C/svg%3E") repeat-x;
    background-size: 70% 100%;
    animation: waveMove 6s linear infinite reverse;
}
@keyframes waveMove {
    0% { background-position-x: 0; }
    100% { background-position-x: 50%; }
}
.layout-wave .profile-avatar {
    width: 90px;
    height: 90px;
    border: 3px solid var(--p3);
    position: relative;
    z-index: 1;
}
.layout-wave .profile-name { color: var(--p3); font-size: 1.5rem; font-weight: 700; position: relative; z-index: 1; }
.layout-wave .profile-bio { color: rgba(255,255,255,0.7); position: relative; z-index: 1; }
.layout-wave .profile-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}
.layout-wave .profile-stat-value { font-weight: 700; color: var(--p3); }
.layout-wave .profile-stat-label { font-size: 0.7rem; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.layout-wave .profile-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--p3);
    border-bottom: 2px solid var(--p3);
    padding-bottom: 0.5rem;
}
.layout-wave .follow-btn { background: var(--p3); color: #fff; border: none; font-weight: 700; }
.layout-wave .follow-btn.following { background: transparent; border: 1px solid var(--p3); color: var(--p3); }
.layout-wave .recipe-card {
    background: rgba(10,61,98,0.03);
    border: 1px solid rgba(10,61,98,0.08);
    border-left: 3px solid var(--p3);
    border-radius: var(--radius-sm);
}
.layout-wave .recipe-card-name { font-weight: 700; color: var(--p2); }
.layout-wave .recipe-card-meta { color: #7a9bb5; }
.layout-wave .activity-card {
    background: rgba(10,61,98,0.03);
    border: 1px solid rgba(10,61,98,0.08);
    border-left: 3px solid var(--p1);
    border-radius: var(--radius-sm);
}
.layout-wave .activity-action { color: #5a7fa0; }
.layout-wave .activity-recipe { color: var(--p2); font-weight: 700; }
.layout-wave .back-link { color: var(--p3); }
.layout-wave .empty-section { background: rgba(10,61,98,0.02); border: 1px dashed rgba(10,61,98,0.12); color: #7a9bb5; }
.layout-wave .profile-private-msg { background: linear-gradient(135deg, rgba(10,61,98,0.06), rgba(10,61,98,0.03)); border: 1px solid rgba(10,61,98,0.12); color: var(--p2); }
.layout-wave .profile-edit-panel { background: rgba(10,61,98,0.02); border: 1px solid rgba(10,61,98,0.08); }

/* ─── 17. SHIMMER — Light sweep animation, warm neutral bg ─── */
.layout-shimmer .profile-page {
    background: linear-gradient(180deg, #f8f6f0 0%, #f4f0e8 100%);
}
.layout-shimmer .profile-header {
    background: var(--p2);
    padding: 3rem 2rem;
    border-radius: var(--radius-md);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.layout-shimmer .profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    animation: shimmerSweep 4s ease-in-out infinite;
}
@keyframes shimmerSweep {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}
.layout-shimmer .profile-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--p1), var(--p3), transparent);
    animation: shimmerSweep 4s ease-in-out infinite 0.5s;
}
.layout-shimmer .profile-avatar {
    width: 90px;
    height: 90px;
    border: 3px solid var(--p1);
    position: relative;
    z-index: 1;
}
.layout-shimmer .profile-name { color: var(--p1); font-size: 1.5rem; font-weight: 700; position: relative; z-index: 1; }
.layout-shimmer .profile-bio { color: rgba(255,255,255,0.7); position: relative; z-index: 1; }
.layout-shimmer .profile-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}
.layout-shimmer .profile-stat-value { font-weight: 700; color: var(--p1); }
.layout-shimmer .profile-stat-label { font-size: 0.7rem; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.layout-shimmer .profile-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--p1);
    border-bottom: 2px solid var(--p1);
    padding-bottom: 0.5rem;
}
.layout-shimmer .follow-btn { background: var(--p1); color: var(--p2); border: none; font-weight: 700; position: relative; z-index: 1; }
.layout-shimmer .follow-btn.following { background: transparent; border: 1px solid var(--p1); color: var(--p1); }
.layout-shimmer .recipe-card {
    background: var(--bg-card);
    border: 1px solid rgba(0,0,0,0.06);
    border-left: 3px solid var(--p1);
    position: relative;
    overflow: hidden;
}
.layout-shimmer .recipe-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmerSweep 4s ease-in-out infinite;
}
.layout-shimmer .recipe-card-name { font-weight: 700; color: var(--p1); position: relative; z-index: 1; }
.layout-shimmer .recipe-card-meta { color: var(--text-muted); position: relative; z-index: 1; }
.layout-shimmer .activity-card {
    background: var(--bg-card);
    border: 1px solid rgba(0,0,0,0.06);
    border-left: 3px solid var(--p1);
    position: relative;
    overflow: hidden;
}
.layout-shimmer .activity-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmerSweep 4s ease-in-out infinite 0.3s;
}
.layout-shimmer .activity-action { color: var(--p1); position: relative; z-index: 1; }
.layout-shimmer .activity-recipe { color: var(--p1); font-weight: 700; position: relative; z-index: 1; }
.layout-shimmer .back-link { color: var(--p1); }
.layout-shimmer .empty-section { background: var(--bg-card); border: 1px dashed var(--p1); color: var(--text-muted); }
.layout-shimmer .profile-private-msg { background: var(--bg-card); border: 1px solid var(--p1); color: var(--p1); }
.layout-shimmer .profile-edit-panel { background: var(--bg-card); border: 1px solid rgba(0,0,0,0.06); }

/* ─── 18. ORBIT — Rotating dashed ring around avatar, spinning ring on stat cards ─── */
.layout-orbit .profile-page {
    background: linear-gradient(180deg, #f8f7f5 0%, #f2f0ec 100%);
}
.layout-orbit .profile-header {
    background: var(--bg-elevated);
    padding: 3rem 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    position: relative;
}
.layout-orbit .profile-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    border: 3px solid var(--p1);
    position: relative;
    z-index: 1;
}
.layout-orbit .profile-avatar::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 2px dashed var(--p3);
    animation: orbitSpin 10s linear infinite;
}
.layout-orbit .profile-avatar::after {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--p3);
    animation: orbitSpin 10s linear infinite;
    transform-origin: 5px 55px;
}
@keyframes orbitSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.layout-orbit .profile-name { font-size: 1.6rem; font-weight: 800; color: var(--p1); }
.layout-orbit .profile-bio { color: var(--text-muted); }
.layout-orbit .profile-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}
.layout-orbit .profile-stat {
    position: relative;
    padding: 0.75rem 1.5rem;
}
.layout-orbit .profile-stat::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--p3) 20%, transparent);
    animation: orbitSpin 15s linear infinite reverse;
}
.layout-orbit .profile-stat-value { font-weight: 800; color: var(--p1); position: relative; z-index: 1; display: block; }
.layout-orbit .profile-stat-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); position: relative; z-index: 1; display: block; margin-top: 0.15rem; }
.layout-orbit .profile-section-title {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--p1);
}
.layout-orbit .follow-btn { background: var(--p1); color: var(--p2); border: none; font-weight: 700; }
.layout-orbit .follow-btn.following { background: transparent; border: 1px solid var(--p1); color: var(--p1); }
.layout-orbit .recipe-card {
    background: var(--bg-card);
    border: 1px solid rgba(0,0,0,0.06);
    border-left: 3px solid var(--p1);
    border-radius: var(--radius-md);
    position: relative;
}
.layout-orbit .recipe-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--p3);
    transform: translateY(-50%);
    animation: orbitSpin 10s linear infinite;
}
.layout-orbit .recipe-card-name { font-weight: 800; color: var(--p1); }
.layout-orbit .recipe-card-meta { color: var(--text-muted); }
.layout-orbit .activity-card {
    background: var(--bg-card);
    border: 1px solid rgba(0,0,0,0.06);
    border-left: 3px solid var(--p3);
    border-radius: var(--radius-md);
}
.layout-orbit .activity-action { color: var(--p1); }
.layout-orbit .activity-recipe { color: var(--p1); font-weight: 800; }
.layout-orbit .back-link { color: var(--p1); }
.layout-orbit .empty-section { background: var(--bg-card); border: 2px dashed color-mix(in srgb, var(--p3) 20%, transparent); color: var(--text-muted); border-radius: var(--radius-md); }
.layout-orbit .profile-private-msg { background: var(--bg-card); border: 1px solid var(--p1); color: var(--p1); border-radius: var(--radius-md); }
.layout-orbit .profile-edit-panel { background: var(--bg-card); border: 1px solid rgba(0,0,0,0.06); border-radius: var(--radius-md); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}