/* ============================================================
   FlavorBridge App Stylesheet
   Main CSS for the recipe browser SPA
   ============================================================ */

/* --- Design Tokens --- */
:root {
    --warm: #E8552E;
    --warm-hover: #D44A25;
    --gold: #D4942A;
    --gold-hover: #BF8524;
    --cream: #FDF6EC;
    --dark: #1A1210;
    --mid: #3D2E28;
    --sage: #7B8F6A;
    --terracotta: #C4704B;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 4px rgba(26, 18, 16, 0.04);
    --shadow-md: 0 2px 12px rgba(26, 18, 16, 0.06);
    --shadow-lg: 0 8px 32px rgba(26, 18, 16, 0.1);
    --shadow-xl: 0 16px 48px rgba(26, 18, 16, 0.14);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 100px;
    --transition: 0.2s ease;
    --nav-height: 64px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--cream);
    background-image:
        radial-gradient(ellipse at 10% 20%, rgba(212, 148, 42, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 50%, rgba(196, 112, 75, 0.05) 0%, transparent 45%),
        radial-gradient(ellipse at 40% 80%, rgba(123, 143, 106, 0.04) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--dark);
    overflow-x: hidden;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Grain texture overlay (matches landing page) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1000;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    line-height: 1.2;
    color: var(--dark);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--warm);
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    border: none;
    background: none;
    font-size: inherit;
}

input, textarea, select {
    font-family: 'Outfit', sans-serif;
    font-size: inherit;
}

ul, ol {
    list-style: none;
}


/* ============================================================
   1. LAYOUT
   ============================================================ */

.app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-nav {
    position: sticky;
    top: 0;
    z-index: 900;
    background: var(--white);
    border-bottom: 1px solid rgba(26, 18, 16, 0.06);
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.95);
}

.app-main {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.app-footer {
    background: linear-gradient(180deg, #1A1210 0%, #231915 100%);
    color: rgba(253, 246, 236, 0.5);
    padding: 3rem 2rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 300;
    margin-top: auto;
    border-top: 3px solid;
    border-image: linear-gradient(to right, var(--warm), var(--gold), var(--sage)) 1;
}

.app-footer a {
    color: var(--gold);
    transition: color var(--transition);
}

.app-footer a:hover {
    color: var(--cream);
}


/* ============================================================
   2. NAVIGATION
   ============================================================ */

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-logo {
    font-family: 'DM Serif Display', serif;
    font-size: 1.3rem;
    color: var(--dark);
    white-space: nowrap;
    flex-shrink: 0;
    transition: color var(--transition);
}

.nav-logo:hover {
    color: var(--warm);
}

.nav-search {
    flex: 1;
    max-width: 420px;
    position: relative;
}

.nav-search input {
    width: 100%;
    padding: 0.55rem 1rem 0.55rem 2.5rem;
    border: 1px solid rgba(26, 18, 16, 0.1);
    border-radius: var(--radius-full);
    background: var(--cream);
    font-size: 0.9rem;
    color: var(--dark);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.nav-search input::placeholder {
    color: rgba(61, 46, 40, 0.4);
}

.nav-search input:focus {
    border-color: var(--warm);
    box-shadow: 0 0 0 3px rgba(232, 85, 46, 0.1);
}

.nav-search::before {
    content: '';
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233D2E28' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    flex-shrink: 0;
}

.nav-link {
    padding: 0.45rem 0.9rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--mid);
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--warm);
    background: rgba(232, 85, 46, 0.06);
}

.nav-user {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.65rem 0.35rem 0.35rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background var(--transition);
}

.nav-user:hover {
    background: rgba(26, 18, 16, 0.04);
}

.nav-user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(26, 18, 16, 0.06);
    min-width: 180px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    z-index: 950;
}

.nav-user-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-user-menu a,
.nav-user-menu button {
    display: block;
    width: 100%;
    padding: 0.55rem 0.75rem;
    font-size: 0.88rem;
    color: var(--mid);
    border-radius: var(--radius-sm);
    text-align: left;
    transition: color var(--transition), background var(--transition);
}

.nav-user-menu a:hover,
.nav-user-menu button:hover {
    color: var(--dark);
    background: var(--cream);
}


/* ============================================================
   3. CULTURE FILTERS
   ============================================================ */

.culture-bar {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(26, 18, 16, 0.06);
    background: var(--white);
    position: sticky;
    top: var(--nav-height);
    z-index: 800;
}

.culture-pills {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.culture-pills::-webkit-scrollbar {
    display: none;
}

.culture-pill {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-full);
    background: rgba(26, 18, 16, 0.04);
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--mid);
    transition: all var(--transition);
    flex-shrink: 0;
    scroll-snap-align: start;
}

.culture-pill:hover {
    background: rgba(232, 85, 46, 0.08);
    color: var(--warm);
}

.culture-pill.active {
    background: var(--warm);
    color: var(--white);
    border-color: var(--warm);
}

.culture-pill .pill-emoji {
    font-size: 1.1rem;
    line-height: 1;
}

.culture-pill .pill-name {
    line-height: 1;
}


/* ============================================================
   4. RECIPE GRID
   ============================================================ */

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1.5rem 0;
}

.recipe-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    cursor: pointer;
}

.recipe-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(212, 148, 42, 0.12), 0 4px 16px rgba(26, 18, 16, 0.06);
}

.card-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 30% 40%, rgba(232, 85, 46, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(212, 148, 42, 0.12) 0%, transparent 50%),
        linear-gradient(135deg, #FFF5E8 0%, #FEF0DB 30%, #FDF0E0 60%, #F5EBDB 100%);
    font-size: 4.5rem;
    line-height: 1;
    position: relative;
}

.card-body {
    padding: 1.25rem;
}

.card-culture-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sage);
    background: rgba(123, 143, 106, 0.1);
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.6rem;
}

.card-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.15rem;
    line-height: 1.3;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: rgba(61, 46, 40, 0.55);
    font-weight: 400;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    border-top: 1px solid rgba(26, 18, 16, 0.05);
    font-size: 0.82rem;
    color: var(--mid);
}

.card-footer span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.card-premium-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--gold);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(212, 148, 42, 0.3);
    z-index: 2;
}


/* ============================================================
   5. RECIPE DETAIL PAGE
   ============================================================ */

.recipe-detail {
    max-width: 880px;
    margin: 0 auto;
}

.recipe-hero {
    width: 100%;
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse at 25% 35%, rgba(232, 85, 46, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 65%, rgba(212, 148, 42, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(123, 143, 106, 0.06) 0%, transparent 60%),
        linear-gradient(160deg, #FFF5E8 0%, #FEF0DB 40%, #F5EBDB 100%);
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
    font-size: 6rem;
    line-height: 1;
    min-height: 240px;
}

.recipe-header {
    margin-bottom: 2rem;
}

.recipe-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.15;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.recipe-culture-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sage);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.7rem;
    background: rgba(123, 143, 106, 0.1);
    border-radius: var(--radius-full);
    transition: background var(--transition), color var(--transition);
    margin-bottom: 1rem;
}

.recipe-culture-link:hover {
    background: rgba(123, 143, 106, 0.18);
    color: var(--sage);
}

.recipe-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(26, 18, 16, 0.06);
    border-bottom: 1px solid rgba(26, 18, 16, 0.06);
    margin-bottom: 2rem;
}

.recipe-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.recipe-meta-item .meta-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(61, 46, 40, 0.45);
}

.recipe-meta-item .meta-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark);
}

.recipe-story {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--mid);
    font-weight: 300;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--gold);
}

.recipe-content {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Ingredients */
.ingredients-list {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    align-self: start;
    position: sticky;
    top: calc(var(--nav-height) + 80px);
}

.ingredients-list h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(26, 18, 16, 0.06);
}

.ingredient-item {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    padding: 0.55rem 0;
    font-size: 0.92rem;
    color: var(--mid);
    border-bottom: 1px solid rgba(26, 18, 16, 0.03);
    transition: color var(--transition);
}

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

.ingredient-item:hover {
    color: var(--dark);
}

.ingredient-item::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--terracotta);
    flex-shrink: 0;
    margin-top: 0.35rem;
}

/* Instructions */
.instructions-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.instructions-list h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 1.25rem;
}

.instruction-step {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(26, 18, 16, 0.05);
}

.instruction-step:last-child {
    border-bottom: none;
}

.step-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Serif Display', serif;
    font-size: 0.9rem;
    color: var(--warm);
    background: rgba(232, 85, 46, 0.08);
    border-radius: 50%;
    margin-top: 0.1rem;
}

.step-text {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--mid);
    font-weight: 300;
}


/* ============================================================
   6. COMMENTS SECTION
   ============================================================ */

.comments-section {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(26, 18, 16, 0.08);
}

.comments-header {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.comment-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.comment-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(26, 18, 16, 0.1);
    border-radius: var(--radius-md);
    background: var(--cream);
    color: var(--dark);
    font-size: 0.92rem;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.comment-form textarea::placeholder {
    color: rgba(61, 46, 40, 0.4);
}

.comment-form textarea:focus {
    border-color: var(--warm);
    box-shadow: 0 0 0 3px rgba(232, 85, 46, 0.1);
}

.comment-form input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(26, 18, 16, 0.1);
    border-radius: var(--radius-md);
    background: var(--cream);
    color: var(--dark);
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.comment-form input::placeholder {
    color: rgba(61, 46, 40, 0.4);
}

.comment-form input:focus {
    border-color: var(--warm);
    box-shadow: 0 0 0 3px rgba(232, 85, 46, 0.1);
}

.comment-form select {
    padding: 0.7rem 1rem;
    border: 1px solid rgba(26, 18, 16, 0.1);
    border-radius: var(--radius-md);
    background: var(--cream);
    color: var(--mid);
    font-size: 0.88rem;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%233D2E28' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    padding-right: 2.5rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.comment-form select:focus {
    border-color: var(--warm);
    box-shadow: 0 0 0 3px rgba(232, 85, 46, 0.1);
}

.comment-form button {
    align-self: flex-end;
    padding: 0.65rem 1.5rem;
    background: var(--warm);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.comment-form button:hover {
    background: var(--warm-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 85, 46, 0.25);
}

.comment-form button:active {
    transform: translateY(0);
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.comment-item {
    display: flex;
    gap: 0.85rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(26, 18, 16, 0.05);
}

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

.comment-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    background: var(--warm);
}

.comment-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.comment-name {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--dark);
}

.comment-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    background: rgba(123, 143, 106, 0.12);
    color: var(--sage);
}

.comment-body {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--mid);
    font-weight: 300;
}

.comment-rating {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin-top: 0.4rem;
}


/* ============================================================
   7. RATING STARS
   ============================================================ */

.stars {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
}

.star {
    color: rgba(26, 18, 16, 0.15);
    font-size: 1rem;
    transition: color var(--transition), transform var(--transition);
    cursor: pointer;
    line-height: 1;
}

.star::before {
    content: '\2605';
}

.star:hover {
    transform: scale(1.15);
}

.star.filled {
    color: var(--gold);
}


/* ============================================================
   8. SEARCH RESULTS
   ============================================================ */

.search-results {
    padding: 1rem 0;
}

.search-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(26, 18, 16, 0.06);
}

.search-header h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0;
}

.search-count {
    font-size: 0.88rem;
    color: rgba(61, 46, 40, 0.5);
    font-weight: 400;
}


/* ============================================================
   9. AUTH PAGES
   ============================================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(160deg, var(--cream) 0%, #F9EDD9 40%, #F5E4CC 100%);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
}

.auth-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.75rem;
    color: var(--dark);
    text-align: center;
    margin-bottom: 2rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-form input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(26, 18, 16, 0.12);
    border-radius: var(--radius-md);
    background: var(--cream);
    color: var(--dark);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.auth-form input::placeholder {
    color: rgba(61, 46, 40, 0.4);
}

.auth-form input:focus {
    border-color: var(--warm);
    box-shadow: 0 0 0 3px rgba(232, 85, 46, 0.1);
}

.auth-form button {
    width: 100%;
    padding: 0.85rem;
    background: var(--warm);
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    margin-top: 0.5rem;
}

.auth-form button:hover {
    background: var(--warm-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(232, 85, 46, 0.25);
}

.auth-form button:active {
    transform: translateY(0);
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.88rem;
    color: var(--mid);
}

.auth-switch a {
    color: var(--warm);
    font-weight: 500;
}

.auth-switch a:hover {
    text-decoration: underline;
}


/* ============================================================
   10. PRICING PAGE
   ============================================================ */

.pricing-page {
    padding: 3rem 0;
}

.pricing-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-header h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.pricing-header p {
    font-size: 1.05rem;
    color: var(--mid);
    font-weight: 300;
    max-width: 500px;
    margin: 0 auto;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
    transition: transform var(--transition), box-shadow var(--transition);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.premium {
    border-color: var(--gold);
    position: relative;
    box-shadow: var(--shadow-lg);
}

.pricing-card.premium::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 1rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.pricing-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-family: 'DM Serif Display', serif;
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.pricing-price span {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--mid);
}

.pricing-feature {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--mid);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-bottom: 1px solid rgba(26, 18, 16, 0.04);
}

.pricing-feature:last-of-type {
    border-bottom: none;
    margin-bottom: 1.5rem;
}


.pricing-cta {
    display: block;
    width: 100%;
    padding: 0.8rem;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
    margin-top: auto;
    background: var(--cream);
    color: var(--dark);
}

.pricing-cta:hover {
    background: rgba(26, 18, 16, 0.08);
    transform: translateY(-1px);
}

.pricing-card.premium .pricing-cta {
    background: var(--warm);
    color: var(--white);
}

.pricing-card.premium .pricing-cta:hover {
    background: var(--warm-hover);
    box-shadow: 0 4px 16px rgba(232, 85, 46, 0.25);
}


/* ============================================================
   11. FREE TIER BANNER
   ============================================================ */

.free-tier-banner {
    background: linear-gradient(135deg, rgba(212, 148, 42, 0.08) 0%, rgba(232, 85, 46, 0.06) 100%);
    border: 1px solid rgba(212, 148, 42, 0.2);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.views-counter {
    font-size: 0.9rem;
    color: var(--mid);
    font-weight: 400;
}

.views-counter strong {
    color: var(--dark);
    font-weight: 600;
}

.upgrade-prompt {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    background: var(--gold);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.upgrade-prompt:hover {
    background: var(--gold-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 148, 42, 0.25);
}


/* ============================================================
   12. PREMIUM LOCK OVERLAY
   ============================================================ */

.premium-lock {
    position: absolute;
    inset: 0;
    background: rgba(253, 246, 236, 0.85);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border-radius: var(--radius-lg);
    z-index: 10;
    text-align: center;
    padding: 2rem;
}

.lock-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.25rem;
    opacity: 0.8;
}

.lock-message {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--mid);
    line-height: 1.4;
    max-width: 260px;
}

.lock-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.25rem;
    background: var(--gold);
    color: var(--white);
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.lock-cta:hover {
    background: var(--gold-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 148, 42, 0.3);
    color: var(--white);
}


/* ============================================================
   13. LOADING & EMPTY STATES
   ============================================================ */

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    gap: 1rem;
    color: var(--mid);
    font-size: 0.95rem;
    font-weight: 400;
}

.loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(232, 85, 46, 0.15);
    border-top-color: var(--warm);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
    text-align: center;
    gap: 0.75rem;
}

.empty-state .empty-icon {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 0.5rem;
    opacity: 0.6;
}

.empty-state h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.35rem;
    color: var(--dark);
}

.empty-state p {
    font-size: 0.95rem;
    color: var(--mid);
    font-weight: 300;
    max-width: 400px;
    line-height: 1.6;
}


/* ============================================================
   14. TOAST NOTIFICATIONS
   ============================================================ */

.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-md);
    background: var(--dark);
    color: var(--cream);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-xl);
    z-index: 9999;
    opacity: 0;
    transform: translateY(12px);
    animation: toastIn 0.3s ease forwards;
    pointer-events: auto;
    max-width: 380px;
}

.toast.success {
    background: var(--sage);
    color: var(--white);
}

.toast.error {
    background: var(--warm);
    color: var(--white);
}

@keyframes toastIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================================
   15. MODALS
   ============================================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 18, 16, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    padding: 2rem;
    opacity: 0;
    animation: fadeIn 0.2s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    transform: scale(0.96) translateY(8px);
    animation: modalIn 0.25s ease forwards;
}

@keyframes modalIn {
    to {
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(26, 18, 16, 0.05);
    color: var(--mid);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    line-height: 1;
}

.modal-close:hover {
    background: rgba(26, 18, 16, 0.1);
    color: var(--dark);
}


/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet: 2-column grid */
@media (max-width: 1024px) {
    .recipe-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .recipe-content {
        grid-template-columns: 1fr 1.4fr;
        gap: 1.5rem;
    }
}

/* Mobile large: stack layout */
@media (max-width: 768px) {
    :root {
        --nav-height: 56px;
    }

    .app-main {
        padding: 1.25rem 1rem;
    }

    .nav-inner {
        padding: 0 1rem;
    }

    .nav-search {
        max-width: 100%;
    }

    .nav-link {
        display: none;
    }

    .recipe-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .recipe-content {
        grid-template-columns: 1fr;
    }

    .ingredients-list {
        position: static;
    }

    .recipe-hero {
        padding: 3rem 1.5rem;
        font-size: 4.5rem;
        min-height: 180px;
    }

    .recipe-title {
        font-size: 1.75rem;
    }

    .recipe-meta-row {
        gap: 1rem;
    }

    .culture-pills {
        padding: 0 1rem;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .free-tier-banner {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .auth-card {
        padding: 2rem 1.5rem;
    }

    .comment-form button {
        align-self: stretch;
    }

    .toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        max-width: none;
    }

    .modal-content {
        max-width: 100%;
        border-radius: var(--radius-lg);
        padding: 1.5rem;
    }
}

/* Mobile small */
@media (max-width: 480px) {
    .nav-inner {
        gap: 0.75rem;
    }

    .nav-logo {
        font-size: 1.15rem;
    }

    .recipe-hero {
        font-size: 3.5rem;
        padding: 2.5rem 1rem;
        min-height: 150px;
    }

    .card-image {
        height: 160px;
        font-size: 3.5rem;
    }

    .pricing-header h1 {
        font-size: 1.75rem;
    }
}

/* ============================================================
   ADDITIONAL COMPONENT STYLES
   ============================================================ */

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: var(--warm);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    box-shadow: 0 4px 16px rgba(232, 85, 46, 0.25);
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 85, 46, 0.35);
    background: var(--warm-hover);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: transparent;
    color: var(--warm);
    border: 2px solid var(--warm);
    border-radius: var(--radius-full);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--warm);
    color: var(--white);
}

/* --- Card extras --- */
.card-emoji {
    font-size: 4.5rem;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.card-desc {
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--mid);
    font-weight: 300;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-rating {
    color: var(--gold);
    font-weight: 600;
}

.card-comments {
    color: var(--mid);
    opacity: 0.65;
}

/* recipe card as link */
a.recipe-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* --- Browse header --- */
.browse-header {
    text-align: center;
    padding: 2.5rem 0 1rem;
    position: relative;
}
.browse-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--warm), var(--gold));
    border-radius: 2px;
    margin: 1rem auto 0;
}

.browse-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.browse-subtitle {
    font-size: 1.05rem;
    color: var(--mid);
    font-weight: 300;
}

/* --- Culture header --- */
.culture-header {
    text-align: center;
    padding: 2.5rem 0 1.5rem;
}

.culture-header-emoji {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.culture-header-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.culture-header-desc {
    font-size: 1.05rem;
    color: var(--mid);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto 1rem;
    line-height: 1.7;
}

.culture-header-count {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sage);
    background: rgba(123, 143, 106, 0.1);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
}

/* --- Recipe hero emoji --- */
.recipe-hero-emoji {
    font-size: 6rem;
    line-height: 1;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.2));
}

/* --- Recipe desc --- */
.recipe-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--mid);
    font-weight: 300;
    margin-bottom: 1rem;
}

/* --- Difficulty badge --- */
.difficulty-badge {
    font-size: 0.82rem;
    font-weight: 600;
}

/* --- Meta icon --- */
.meta-icon {
    margin-right: 0.25rem;
}

.recipe-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: var(--mid);
    font-weight: 400;
}

/* --- Recipe story --- */
.recipe-story h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.recipe-story p {
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--mid);
    font-weight: 300;
}

/* --- Section heading --- */
.section-heading {
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 1.25rem;
}

/* --- Ingredients/Instructions panels --- */
.ingredients-panel {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    align-self: start;
    position: sticky;
    top: calc(var(--nav-height) + 24px);
}

.ingredients-panel .ingredients-list {
    background: none;
    box-shadow: none;
    padding: 0;
    position: static;
}

.instructions-panel .instructions-list {
    list-style: none;
    padding: 0;
}

.ingredient-bullet {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--terracotta);
    flex-shrink: 0;
    margin-right: 0.5rem;
}

/* --- Recipe views notice --- */
.recipe-views-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(212, 148, 42, 0.08), rgba(232, 85, 46, 0.06));
    border: 1px solid rgba(212, 148, 42, 0.2);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--mid);
}

.recipe-views-notice a {
    color: var(--gold);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition);
}

.recipe-views-notice a:hover {
    color: var(--warm);
}

/* --- Social Share Buttons --- */
.recipe-share-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(61, 46, 40, 0.1);
}

.share-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--mid);
    opacity: 0.65;
    margin-right: 0.15rem;
    white-space: nowrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0.42rem 0.9rem;
    border-radius: var(--radius-full, 9999px);
    border: 1.5px solid transparent;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    line-height: 1;
    white-space: nowrap;
}

.share-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.share-btn:active {
    transform: translateY(0);
    box-shadow: none;
    opacity: 0.85;
}

.share-twitter {
    background: #000;
    color: #fff;
    border-color: #000;
}
.share-twitter:hover {
    background: #1a1a1a;
    color: #fff;
}

.share-whatsapp {
    background: #25d366;
    color: #fff;
    border-color: #25d366;
}
.share-whatsapp:hover {
    background: #20c05c;
    color: #fff;
}

.share-facebook {
    background: #1877f2;
    color: #fff;
    border-color: #1877f2;
}
.share-facebook:hover {
    background: #1468d9;
    color: #fff;
}

.share-copy {
    background: var(--cream);
    color: var(--mid);
    border-color: rgba(61, 46, 40, 0.25);
}
.share-copy:hover {
    border-color: var(--terracotta);
    color: var(--terracotta);
    background: rgba(196, 112, 75, 0.07);
}
.share-copy.copied {
    background: rgba(123, 143, 106, 0.12);
    border-color: var(--sage);
    color: var(--sage);
}

.share-native {
    background: var(--terracotta);
    color: #fff;
    border-color: var(--terracotta);
}
.share-native:hover {
    background: #b5623e;
    color: #fff;
}

.share-btn svg {
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .recipe-share-row {
        gap: 0.4rem;
    }
    .share-btn {
        padding: 0.38rem 0.7rem;
        font-size: 0.76rem;
    }
    .share-btn-label {
        display: none;
    }
    .share-btn {
        padding: 0.45rem;
        border-radius: 50%;
        width: 34px;
        height: 34px;
        justify-content: center;
    }
    .share-native .share-btn-label {
        display: inline;
    }
    .share-native {
        border-radius: var(--radius-full, 9999px);
        padding: 0.42rem 0.9rem;
        width: auto;
        height: auto;
    }
}

/* --- Nav avatar & user menu --- */
.nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
}

.nav-login-link {
    font-weight: 500 !important;
}

.nav-cta-link {
    background: var(--warm) !important;
    color: var(--white) !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: var(--radius-full) !important;
    font-weight: 600 !important;
    transition: transform var(--transition), box-shadow var(--transition) !important;
}

.nav-cta-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 85, 46, 0.25);
}

.menu-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(26, 18, 16, 0.06);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--dark);
}

.menu-header small {
    font-weight: 300;
    color: var(--mid);
    font-size: 0.78rem;
}

.menu-item {
    display: block;
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
    color: var(--mid);
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition);
}

.menu-item:hover {
    background: rgba(26, 18, 16, 0.03);
}

.premium-badge-item {
    color: var(--gold) !important;
    font-weight: 600;
}

/* --- Comment extras --- */
.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-time {
    font-size: 0.75rem;
    color: rgba(61, 46, 40, 0.4);
    margin-left: auto;
}

.comment-rating {
    margin-bottom: 0.25rem;
}

.comment-form h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.15rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.rating-input {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.rating-input label {
    font-size: 0.88rem;
    color: var(--mid);
    font-weight: 400;
}

.stars.interactive .star {
    cursor: pointer;
    transition: transform 0.15s ease;
}

.stars.interactive .star:hover,
.stars .star.hover {
    transform: scale(1.25);
}

.empty-comments {
    text-align: center;
    padding: 2rem;
    color: var(--mid);
    font-weight: 300;
    font-size: 0.95rem;
}

/* --- Footer --- */
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    font-family: 'DM Serif Display', serif;
    font-size: 1.2rem;
    color: var(--cream);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.footer-copy {
    margin-top: 0.5rem;
    font-size: 0.78rem;
    opacity: 0.5;
}

/* --- Search header --- */
.search-header {
    padding: 2rem 0 1rem;
}

.search-header h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--dark);
    margin-bottom: 0.35rem;
}

.search-count {
    font-size: 0.9rem;
    color: var(--mid);
    font-weight: 300;
}

/* --- Pricing extras --- */
.pricing-plan-name {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.pricing-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.3rem 1rem;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(212, 148, 42, 0.3);
}

.pricing-features {
    list-style: none;
    margin: 1.5rem 0;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0;
    font-size: 0.92rem;
    color: var(--mid);
}

.pricing-feature.highlight {
    color: var(--dark);
    font-weight: 500;
}

.feature-check {
    color: var(--sage);
    font-weight: 700;
    font-size: 0.85rem;
}

.feature-x {
    color: rgba(61, 46, 40, 0.25);
    font-weight: 700;
    font-size: 0.85rem;
}

.feature-disabled {
    opacity: 0.5;
}

.pricing-cta {
    display: block;
    text-align: center;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all var(--transition);
}

.pricing-cta-free {
    background: transparent;
    color: var(--mid);
    border: 2px solid rgba(61, 46, 40, 0.15);
}

.pricing-cta-free:hover {
    border-color: var(--mid);
    color: var(--dark);
}

.pricing-cta-premium {
    background: var(--gold);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(212, 148, 42, 0.3);
}

.pricing-cta-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 148, 42, 0.4);
}

.pricing-card {
    position: relative;
}

.pricing-card.premium {
    border: 2px solid var(--gold);
}

/* --- Views icon in banner --- */
.views-icon {
    margin-right: 0.35rem;
}

/* --- Auth subtitle --- */
.auth-subtitle {
    font-size: 0.95rem;
    color: var(--mid);
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* ============================================================
   COMMUNITY KITCHEN
   ============================================================ */

.community-kitchen {
    max-width: 1000px;
    margin: 0 auto;
}

.community-header {
    text-align: center;
    padding: 2.5rem 0 1.5rem;
}

.community-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.community-subtitle {
    font-size: 1.05rem;
    color: var(--mid);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Share Card */
.community-share-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 2rem;
}

.share-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.75rem;
    cursor: pointer;
    transition: background var(--transition);
}

.share-card-header:hover {
    background: rgba(232, 85, 46, 0.03);
}

.share-card-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.share-card-prompt {
    font-size: 1rem;
    font-weight: 500;
    color: var(--mid);
    flex: 1;
}

.share-card-arrow {
    font-size: 0.75rem;
    color: var(--mid);
    opacity: 0.5;
    transition: transform var(--transition);
}

.share-form-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 1.75rem 1.75rem;
    border-top: 1px solid rgba(26, 18, 16, 0.06);
    padding-top: 1.25rem;
}

.share-form-body input[type="text"],
.share-form-body input[type="url"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(26, 18, 16, 0.1);
    border-radius: var(--radius-md);
    background: var(--cream);
    color: var(--dark);
    font-size: 0.92rem;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.share-form-body input::placeholder {
    color: rgba(61, 46, 40, 0.4);
}

.share-form-body input:focus {
    border-color: var(--warm);
    box-shadow: 0 0 0 3px rgba(232, 85, 46, 0.1);
}

.cuisine-tag-row {
    position: relative;
}

.share-form-hint {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: rgba(61, 46, 40, 0.45);
    font-weight: 300;
}

.share-video-btn {
    align-self: flex-end;
    padding: 0.65rem 1.5rem;
}

/* Cuisine Filters */
.community-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
}

.community-filter-pill {
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-full);
    background: rgba(26, 18, 16, 0.04);
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--mid);
    transition: all var(--transition);
    white-space: nowrap;
}

.community-filter-pill:hover {
    background: rgba(232, 85, 46, 0.08);
    color: var(--warm);
}

.community-filter-pill.active {
    background: var(--warm);
    color: var(--white);
    border-color: var(--warm);
}

/* Video Grid */
.community-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.video-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.video-embed-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: var(--dark);
    overflow: hidden;
}

.video-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-card-body {
    padding: 1rem 1.25rem 1.25rem;
}

.video-card-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.video-card-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.video-avatar {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--white);
}

.video-user-name {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--dark);
}

.video-card-badges {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.video-platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
    background: rgba(26, 18, 16, 0.06);
    color: var(--mid);
}

.video-platform-badge.youtube {
    background: rgba(255, 0, 0, 0.08);
    color: #c00;
}

.video-platform-badge.tiktok {
    background: rgba(0, 0, 0, 0.06);
    color: #111;
}

.video-platform-badge.instagram {
    background: rgba(193, 53, 132, 0.08);
    color: #c13584;
}

.video-cuisine-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
    background: rgba(123, 143, 106, 0.12);
    color: var(--sage);
}

.video-caption {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--mid);
    font-weight: 300;
    margin-bottom: 0.4rem;
}

.video-time {
    font-size: 0.75rem;
    color: rgba(61, 46, 40, 0.4);
}

.community-empty {
    grid-column: 1 / -1;
}

.community-pagination {
    text-align: center;
    padding: 2rem 0;
}

.pagination-info {
    font-size: 0.88rem;
    color: var(--mid);
    font-weight: 400;
}

/* Community nav link highlight */
.nav-community-link {
    color: var(--warm) !important;
    font-weight: 600 !important;
}

/* Community Kitchen Responsive */
@media (max-width: 768px) {
    .community-grid {
        grid-template-columns: 1fr;
    }

    .community-header {
        padding: 1.5rem 0 1rem;
    }

    .share-card-header {
        padding: 1rem 1.25rem;
    }

    .share-form-body {
        padding: 0 1.25rem 1.25rem;
    }

    .share-video-btn {
        align-self: stretch;
    }

    .video-card-meta {
        flex-direction: column;
        gap: 0.4rem;
    }

    .community-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.25rem;
    }

    .community-filters::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 480px) {
    .community-title {
        font-size: 1.75rem;
    }
}

/* --- Logo --- */
.logo-icon {
    font-size: 1.3rem;
}

.logo-text {
    font-family: 'DM Serif Display', serif;
    font-size: 1.25rem;
    color: var(--dark);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

/* --- Lock overlay refinements --- */
.premium-lock h2 {
    font-family: 'DM Serif Display', serif;
    margin-bottom: 0.5rem;
}

.premium-lock p {
    color: var(--mid);
    font-weight: 300;
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
}

.lock-cta {
    display: inline-flex;
    padding: 0.85rem 2rem;
    background: var(--gold);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all var(--transition);
    box-shadow: 0 4px 16px rgba(212, 148, 42, 0.3);
}

.lock-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 148, 42, 0.4);
}

/* --- Mobile extras --- */
@media (max-width: 768px) {
    .recipe-content {
        grid-template-columns: 1fr;
    }

    .ingredients-panel {
        position: static;
    }

    .recipe-views-notice {
        flex-direction: column;
        text-align: center;
    }

    .nav-cta-link {
        display: none !important;
    }

    .nav-community-link {
        display: inline-flex !important;
        font-size: 0.82rem !important;
        padding: 0.35rem 0.7rem !important;
    }

    .browse-header {
        padding: 1.5rem 0 0.5rem;
    }

    .culture-header {
        padding: 1.5rem 0 1rem;
    }
}

/* ============================================================
   SOCIAL LAYER — Follow, Profile, Notifications, Feed
   ============================================================ */

/* Notification Bell in Nav */
.nav-notif-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: transparent;
    transition: background var(--transition);
    cursor: pointer;
    text-decoration: none;
}
.nav-notif-btn:hover {
    background: rgba(212, 148, 42, 0.12);
}
.notif-bell {
    font-size: 1.2rem;
    line-height: 1;
}
.notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--warm);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    font-family: 'Outfit', sans-serif;
}

/* Follow Buttons */
.follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-full);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid var(--warm);
    background: var(--warm);
    color: white;
    text-decoration: none;
}
.follow-btn:hover {
    background: var(--warm-hover);
    border-color: var(--warm-hover);
    transform: translateY(-1px);
}
.follow-btn.following {
    background: transparent;
    color: var(--sage);
    border-color: var(--sage);
}
.follow-btn.following:hover {
    background: rgba(123, 143, 106, 0.1);
}
.follow-btn-gate {
    background: linear-gradient(135deg, var(--gold), var(--warm));
    border-color: transparent;
}
.follow-btn-gate:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.gate-star {
    font-size: 0.8em;
}
.follow-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Small follow button on video cards */
.follow-btn-sm {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-full);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all var(--transition);
    border: 1.5px solid var(--warm);
    background: transparent;
    color: var(--warm);
    white-space: nowrap;
    flex-shrink: 0;
}
.follow-btn-sm:hover {
    background: var(--warm);
    color: white;
}
.follow-btn-sm.following {
    border-color: var(--sage);
    color: var(--sage);
}
.follow-btn-sm.following:hover {
    background: rgba(123, 143, 106, 0.1);
}
.follow-btn-sm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Video card user link */
.video-user-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    transition: opacity var(--transition);
}
.video-user-link:hover {
    opacity: 0.75;
}
.video-card-user {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.video-card-user-plain {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ─── Profile Page ─────────────────────────────────────── */
.profile-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}
.profile-header {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}
.profile-avatar-lg {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    font-family: 'DM Serif Display', serif;
}
.profile-info {
    flex: 1;
    min-width: 0;
}
.profile-name-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}
.profile-name {
    font-size: 2rem;
    margin: 0;
}
.profile-premium-badge {
    background: linear-gradient(135deg, var(--gold), #E8A020);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.02em;
}
.profile-stats {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
}
.profile-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.stat-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    font-family: 'DM Serif Display', serif;
}
.stat-label {
    font-size: 0.78rem;
    color: #8B7355;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}
.profile-joined {
    font-size: 0.82rem;
    color: #9B8470;
    margin-top: 0.5rem;
}
.profile-bio-text {
    color: var(--mid);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}
.profile-bio {
    margin-bottom: 0.75rem;
}
.bio-text {
    color: var(--mid);
    font-size: 0.95rem;
    line-height: 1.6;
}
.bio-empty {
    color: #9B8470;
    font-style: italic;
}
.bio-edit-btn {
    font-size: 0.78rem;
    color: var(--warm);
    margin-top: 0.25rem;
    display: block;
}
.link-btn {
    background: none;
    border: none;
    color: var(--warm);
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: inherit;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}
#bio-edit-form {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
#bio-edit-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 0.6rem 0.8rem;
    border: 1.5px solid #E5D8C8;
    border-radius: var(--radius-md);
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    color: var(--dark);
    background: var(--cream);
    resize: vertical;
    transition: border-color var(--transition);
}
#bio-edit-form textarea:focus {
    outline: none;
    border-color: var(--warm);
}
.bio-edit-actions {
    display: flex;
    gap: 0.5rem;
}
.btn-sm {
    padding: 0.35rem 0.8rem !important;
    font-size: 0.82rem !important;
}
.profile-videos-section {
    margin-top: 1rem;
}
.profile-grid {
    margin-top: 1.5rem;
}

/* ─── Following Feed Page ──────────────────────────────── */
.following-feed-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}
.feed-header {
    margin-bottom: 2rem;
}
.feed-title {
    font-size: 2rem;
    margin-bottom: 0.4rem;
}
.feed-subtitle {
    color: #8B7355;
    font-size: 0.95rem;
}
.feed-empty {
    margin-top: 2rem;
}

/* ─── Notifications Page ───────────────────────────────── */
.notifications-page {
    max-width: 680px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}
.notif-page-header {
    margin-bottom: 2rem;
}
.notif-page-header h1 {
    font-size: 2rem;
}
.notif-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.notif-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}
.notif-item.unread {
    background: rgba(232, 85, 46, 0.04);
    border-left: 3px solid var(--warm);
}
.notif-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    width: 36px;
    text-align: center;
}
.notif-content {
    flex: 1;
    min-width: 0;
}
.notif-message {
    font-size: 0.92rem;
    color: var(--dark);
    margin-bottom: 2px;
}
.notif-time {
    font-size: 0.78rem;
    color: #9B8470;
}
.notif-action {
    font-size: 0.82rem;
    color: var(--warm);
    font-weight: 600;
    white-space: nowrap;
    padding: 0.3rem 0.7rem;
    border: 1.5px solid var(--warm);
    border-radius: var(--radius-full);
    transition: all var(--transition);
    text-decoration: none;
}
.notif-action:hover {
    background: var(--warm);
    color: white;
}

/* ─── Social Gate (premium prompt) ────────────────────── */
.social-gate {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 2rem;
}
.social-gate-inner {
    text-align: center;
    max-width: 420px;
    background: white;
    padding: 3rem 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}
.gate-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.social-gate-inner h2 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}
.social-gate-inner p {
    color: #8B7355;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* ─── Responsive Social ────────────────────────────────── */
@media (max-width: 640px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
    }
    .profile-name-row {
        justify-content: center;
    }
    .profile-stats {
        justify-content: center;
        gap: 1.5rem;
    }
    .follow-btn {
        width: 100%;
        justify-content: center;
    }
    .profile-avatar-lg {
        width: 76px;
        height: 76px;
        font-size: 2rem;
    }
    .notif-item {
        flex-wrap: wrap;
    }
}

/* ============================================================
   I MADE THIS — Photo Upload & Gallery
   ============================================================ */

/* Social proof badge in recipe header */
.made-this-badge {
    color: var(--warm);
    font-weight: 600;
}

/* Section wrapper */
.made-this-section {
    margin: 2.5rem 0 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 148, 42, 0.2);
}

.made-this-header {
    margin-bottom: 1.25rem;
}

.made-this-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.made-this-count-chip {
    background: linear-gradient(135deg, var(--warm), var(--gold));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
    letter-spacing: 0.03em;
}

.made-this-subtitle {
    color: var(--mid);
    font-size: 0.9rem;
    margin-top: 0.25rem;
    opacity: 0.75;
}

/* Upload card */
.made-this-upload-card {
    background: var(--white);
    border: 1.5px solid rgba(212, 148, 42, 0.25);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}

.made-this-upload-card:hover {
    box-shadow: var(--shadow-md);
}

.upload-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    user-select: none;
    background: linear-gradient(135deg, rgba(253, 246, 236, 0.8), rgba(255, 255, 255, 0.95));
    transition: background var(--transition);
}

.upload-card-header:hover {
    background: rgba(212, 148, 42, 0.06);
}

.upload-card-icon {
    font-size: 1.4rem;
}

.upload-card-prompt {
    flex: 1;
    font-weight: 600;
    color: var(--dark);
}

.upload-card-arrow {
    color: var(--gold);
    font-size: 0.8rem;
    transition: transform var(--transition);
}

.upload-form-body {
    padding: 1.25rem;
    border-top: 1px solid rgba(212, 148, 42, 0.12);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Photo upload area (dropzone-style) */
.photo-upload-area {
    border: 2px dashed rgba(212, 148, 42, 0.4);
    border-radius: var(--radius-md);
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    background: rgba(253, 246, 236, 0.5);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.photo-upload-area:hover,
.photo-upload-area:focus {
    border-color: var(--gold);
    background: rgba(212, 148, 42, 0.06);
}

.upload-area-icon {
    font-size: 2.5rem;
}

.upload-area-text {
    font-weight: 600;
    color: var(--dark);
}

.upload-area-hint {
    font-size: 0.8rem;
    color: var(--mid);
    opacity: 0.7;
}

/* Preview */
#made-this-preview-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.made-this-preview-img {
    max-width: 100%;
    max-height: 360px;
    width: auto;
    height: auto;
    border-radius: var(--radius-md);
    object-fit: cover;
    box-shadow: var(--shadow-md);
    border: 2px solid rgba(212, 148, 42, 0.2);
}

.remove-photo-btn {
    font-size: 0.85rem;
}

/* Caption input */
.upload-form-body input[type="text"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid rgba(61, 46, 40, 0.15);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    background: var(--white);
    color: var(--dark);
    transition: border-color var(--transition);
    outline: none;
}

.upload-form-body input[type="text"]:focus {
    border-color: var(--gold);
}

.upload-form-body input[type="text"]::placeholder {
    color: var(--mid);
    opacity: 0.5;
}

.made-this-submit-btn {
    align-self: flex-start;
}

/* Login CTA */
.made-this-login-cta {
    margin-bottom: 1.5rem;
}

/* Photo grid */
.made-this-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

/* Photo card */
.made-this-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
    border: 1px solid rgba(61, 46, 40, 0.06);
}

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

.made-this-photo-wrap {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--cream), rgba(212, 148, 42, 0.12));
}

.made-this-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.made-this-card:hover .made-this-photo {
    transform: scale(1.03);
}

.made-this-photo-fallback {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--gold);
    opacity: 0.5;
}

.made-this-card-body {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.made-this-card-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.made-this-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.made-this-user-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.made-this-user-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.made-this-time {
    font-size: 0.72rem;
    color: var(--mid);
    opacity: 0.6;
}

.made-this-caption {
    font-size: 0.82rem;
    color: var(--mid);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Heart button */
.made-this-actions {
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
}

.heart-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--mid);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    opacity: 0.7;
}

.heart-btn:hover {
    opacity: 1;
    background: rgba(232, 85, 46, 0.07);
}

.heart-btn.hearted {
    opacity: 1;
    color: var(--warm);
}

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

.heart-icon {
    font-size: 0.95rem;
    line-height: 1;
}

.heart-count {
    font-weight: 600;
    min-width: 1ch;
}

.heart-display {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: var(--mid);
    opacity: 0.6;
    padding: 0.25rem 0.5rem;
}

/* Empty state */
.made-this-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--mid);
    opacity: 0.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.made-this-empty .empty-icon {
    font-size: 3rem;
    opacity: 0.5;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .made-this-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .photo-upload-area {
        padding: 1.5rem 1rem;
    }

    .upload-area-icon {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .made-this-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .made-this-card-body {
        padding: 0.5rem;
    }
}

/* ============================================================
   MOBILE HAMBURGER MENU
   ============================================================ */

/* Hamburger button — hidden on desktop, shown ≤768px */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}
.hamburger-btn:hover {
    background: rgba(26, 18, 16, 0.06);
}
.hamburger-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--mid);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
    transform-origin: center;
}
.hamburger-btn.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger-btn.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav drawer — hidden on desktop */
.mobile-nav-drawer {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 2px solid rgba(196, 112, 75, 0.15);
    box-shadow: 0 8px 24px rgba(26, 18, 16, 0.12);
    z-index: 900;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.2s ease;
}
.mobile-nav-drawer.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Show hamburger + drawer only on mobile */
@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }
    .mobile-nav-drawer {
        display: block;
    }
}

/* Drawer link list */
.mobile-nav-links {
    padding: 0.75rem 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.mobile-nav-link {
    display: block;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--mid);
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition);
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--warm);
    background: rgba(232, 85, 46, 0.07);
}

/* Mobile auth section (login/signup or user actions) */
.mobile-auth-nav {
    border-top: 1px solid rgba(26, 18, 16, 0.08);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.mobile-auth-nav a,
.mobile-auth-nav button {
    display: block;
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    text-align: left;
    transition: background var(--transition), color var(--transition);
    font-family: 'Outfit', sans-serif;
}
.mobile-nav-user-info {
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    color: rgba(61, 46, 40, 0.55);
    font-weight: 400;
}
.mobile-nav-action {
    color: var(--mid);
    background: none;
    border: none;
    cursor: pointer;
}
.mobile-nav-action:hover {
    color: var(--warm);
    background: rgba(232, 85, 46, 0.07);
}
.mobile-nav-login {
    color: var(--mid);
}
.mobile-nav-login:hover {
    color: var(--warm);
    background: rgba(232, 85, 46, 0.07);
}
.mobile-nav-signup {
    background: var(--warm) !important;
    color: var(--white) !important;
    text-align: center !important;
    font-weight: 600 !important;
    border-radius: var(--radius-full) !important;
    margin-top: 0.25rem;
}
.mobile-nav-signup:hover {
    background: var(--warm-hover) !important;
}

/* ─── STREAK BAR ──────────────────────────────────────────────── */
.streak-bar {
    display: flex;
    align-items: center;
    gap: 0;
    background: linear-gradient(135deg, #fff8f0 0%, #fff3e8 100%);
    border: 1px solid rgba(212, 148, 42, 0.2);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    margin: 1rem 0 0.5rem;
    flex-wrap: wrap;
}
.streak-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.25rem 1.25rem;
    flex: 1;
    min-width: 100px;
    justify-content: center;
}
.streak-icon {
    font-size: 1.8rem;
    line-height: 1;
}
.streak-details {
    display: flex;
    flex-direction: column;
}
.streak-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--mid);
    line-height: 1;
}
.streak-label {
    font-size: 0.7rem;
    color: #7a6050;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    margin-top: 0.2rem;
}
.streak-divider {
    width: 1px;
    height: 36px;
    background: rgba(212, 148, 42, 0.25);
    flex-shrink: 0;
}
@media (max-width: 600px) {
    .streak-bar {
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }
    .streak-item {
        padding: 0.25rem 0.5rem;
        min-width: 80px;
    }
    .streak-divider {
        display: none;
    }
    .streak-number {
        font-size: 1.25rem;
    }
}

/* ─── BADGES SECTION ──────────────────────────────────────────── */
.profile-badges-section {
    margin: 1.25rem 0 0.5rem;
}
.badges-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--mid);
    margin: 0 0 0.75rem;
}
.badges-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.badge-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(145deg, #fff 0%, #fffbf5 100%);
    border: 1px solid rgba(212, 148, 42, 0.25);
    border-radius: var(--radius-md);
    padding: 0.7rem 1rem;
    cursor: default;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    min-width: 80px;
    text-align: center;
}
.badge-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 85, 46, 0.12);
}
.badge-emoji {
    font-size: 1.75rem;
    line-height: 1;
}
.badge-title {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--mid);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.badges-empty {
    font-size: 0.9rem;
    color: #9a8070;
    font-style: italic;
    margin: 0;
}

/* ─── COOK ACROSS ─────────────────────────────────────────────────── */

/* Hero section */
.cook-across-page { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem 4rem; }
.ca-hero { background: linear-gradient(135deg, #1A1210 0%, #3D2E28 100%); border-radius: 20px; margin: 2rem 0 3rem; overflow: hidden; }
.ca-hero-inner { padding: 3.5rem 2.5rem; text-align: center; }
.ca-hero-badge { display: inline-block; background: rgba(212,148,42,0.2); color: #D4942A; border: 1px solid rgba(212,148,42,0.4); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.3rem 0.9rem; border-radius: 100px; margin-bottom: 1.25rem; }
.ca-hero-title { font-family: 'DM Serif Display', serif; font-size: clamp(2.5rem, 5vw, 4rem); color: #FDF6EC; font-weight: 400; margin: 0 0 1rem; line-height: 1.1; }
.ca-hero-desc { font-size: 1.05rem; color: rgba(253,246,236,0.7); max-width: 560px; margin: 0 auto 2rem; line-height: 1.7; font-weight: 300; }
.ca-start-btn { display: inline-block; background: #E8552E; color: white; padding: 1rem 2.25rem; border-radius: 100px; font-weight: 700; font-size: 1rem; border: none; cursor: pointer; text-decoration: none; transition: opacity 0.15s, transform 0.15s; }
.ca-start-btn:hover { opacity: 0.9; transform: translateY(-1px); color: white; }
.ca-upgrade-btn { background: linear-gradient(135deg, #D4942A, #E8552E); }
.ca-my-btn { display: inline-block; margin-left: 1.25rem; color: rgba(253,246,236,0.65); font-size: 0.9rem; text-decoration: none; transition: color 0.15s; }
.ca-my-btn:hover { color: #FDF6EC; }

/* Feed section */
.ca-feed-section { margin-top: 1rem; }
.ca-section-title { font-family: 'DM Serif Display', serif; font-size: 1.85rem; font-weight: 400; color: var(--dark); margin-bottom: 0.5rem; }
.ca-section-sub { color: #9a8070; font-size: 0.95rem; margin-bottom: 2rem; }
.ca-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.ca-empty-state { text-align: center; padding: 3rem 1.5rem; color: #9a8070; }
.ca-empty-state p { margin-bottom: 1.25rem; font-size: 1rem; }
.ca-load-more { text-align: center; margin-top: 2.5rem; }

/* Exchange cards */
.ca-exchange-card { background: white; border-radius: 16px; overflow: hidden; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 2px 8px rgba(26,18,16,0.06); }
.ca-exchange-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(26,18,16,0.1); }
.ca-card-photo { height: 140px; background-size: cover; background-position: center; position: relative; }
.ca-card-no-photo { height: 140px; background: linear-gradient(135deg, #F5E6D3, #E8D5BD); display: flex; align-items: center; justify-content: center; position: relative; }
.ca-card-cooking-icon { font-size: 3rem; opacity: 0.4; }
.ca-card-status { position: absolute; top: 0.75rem; right: 0.75rem; font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.7rem; border-radius: 100px; }
.ca-status-done { background: rgba(123,143,106,0.15); color: #4a6b40; }
.ca-status-active { background: rgba(232,85,46,0.12); color: #c44020; }
.ca-card-body { padding: 1.25rem; }
.ca-card-users { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.ca-mini-avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: 700; color: white; flex-shrink: 0; }
.ca-user-info { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.ca-user-name { font-size: 0.85rem; font-weight: 600; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ca-user-culture { font-size: 0.72rem; color: #9a8070; }
.ca-exchange-arrow { font-size: 1.1rem; color: #D4942A; flex-shrink: 0; }
.ca-card-recipes { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; color: var(--mid); margin-bottom: 0.5rem; flex-wrap: wrap; }
.ca-recipe-sep { color: #D4942A; }
.ca-card-comments { font-size: 0.78rem; color: #9a8070; margin: 0; }

/* Exchange detail page */
.ca-exchange-page { max-width: 900px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.ca-exchange-header { text-align: center; margin-bottom: 2.5rem; }
.ca-back-link { display: inline-block; color: #9a8070; font-size: 0.85rem; text-decoration: none; margin-bottom: 1.5rem; transition: color 0.15s; }
.ca-back-link:hover { color: var(--warm); }
.ca-exchange-status { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 0.3rem 1rem; border-radius: 100px; margin-bottom: 1rem; }
.ca-exchange-pair { font-family: 'DM Serif Display', serif; font-size: 1.75rem; color: var(--dark); margin: 0.5rem 0; }
.ca-pair-name { cursor: pointer; }
.ca-pair-name:hover { color: var(--warm); }
.ca-pair-x { margin: 0 0.5rem; }
.ca-exchange-message { font-style: italic; color: #7a6860; margin: 0.75rem 0; font-size: 0.95rem; }
.ca-share-btn { background: none; border: 1px solid rgba(26,18,16,0.15); padding: 0.45rem 1.1rem; border-radius: 100px; font-size: 0.82rem; cursor: pointer; color: var(--mid); transition: border-color 0.15s, color 0.15s; margin-top: 0.75rem; }
.ca-share-btn:hover { border-color: var(--warm); color: var(--warm); }

/* Section headings */
.ca-section-heading { font-family: 'DM Serif Display', serif; font-size: 1.5rem; font-weight: 400; color: var(--dark); margin: 0 0 0.4rem; }
.ca-section-hint { font-size: 0.88rem; color: #9a8070; margin: 0 0 1.5rem; }
.ca-recipes-section, .ca-posts-section, .ca-conversation-section, .ca-complete-section { margin-bottom: 2.5rem; padding: 1.75rem; background: white; border-radius: 16px; box-shadow: 0 2px 8px rgba(26,18,16,0.06); }

/* Recipe cards in exchange */
.ca-recipes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 640px) { .ca-recipes-grid { grid-template-columns: 1fr; } }
.ca-recipe-card { border: 1px solid rgba(26,18,16,0.08); border-radius: 12px; overflow: hidden; }
.ca-recipe-slot { border: 2px dashed rgba(26,18,16,0.12); border-radius: 12px; padding: 2rem 1.25rem; text-align: center; }
.ca-recipe-slot-avatar { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 700; color: white; margin: 0 auto 0.75rem; }
.ca-recipe-slot-name { font-weight: 600; margin-bottom: 0.4rem; }
.ca-recipe-slot-hint { font-size: 0.85rem; color: #9a8070; margin-bottom: 1rem; }
.ca-recipe-hero { height: 100px; display: flex; align-items: center; justify-content: center; }
.ca-recipe-emoji { font-size: 2.75rem; }
.ca-recipe-info { padding: 1rem; }
.ca-recipe-culture-tag { font-size: 0.72rem; font-weight: 600; color: #7B8F6A; text-transform: uppercase; letter-spacing: 0.06em; }
.ca-recipe-title { font-size: 1rem; font-weight: 700; color: var(--dark); margin: 0.3rem 0 0.5rem; }
.ca-recipe-desc { font-size: 0.82rem; color: var(--mid); line-height: 1.5; margin-bottom: 0.5rem; }
.ca-recipe-cooking-label { font-size: 0.8rem; color: var(--warm); font-weight: 600; margin-bottom: 0.75rem; }
.ca-recipe-ingredients { font-size: 0.8rem; color: var(--mid); margin-bottom: 0.75rem; }
.ca-recipe-ingredients ul { list-style: disc; padding-left: 1.25rem; margin-top: 0.3rem; }
.ca-recipe-link { font-size: 0.82rem; color: var(--warm); text-decoration: none; font-weight: 500; }
.ca-recipe-link:hover { text-decoration: underline; }
.ca-pick-recipe-cta { text-align: center; margin-top: 1.25rem; }
.ca-pick-recipe-cta p { font-size: 0.9rem; color: #9a8070; margin-bottom: 0.75rem; }

/* Posts */
.ca-posts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 640px) { .ca-posts-grid { grid-template-columns: 1fr; } }
.ca-posts-col-label { font-size: 0.85rem; font-weight: 700; color: var(--mid); margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.ca-post-card { border: 1px solid rgba(26,18,16,0.08); border-radius: 12px; overflow: hidden; }
.ca-post-photo { width: 100%; max-height: 260px; object-fit: cover; display: block; }
.ca-post-info { padding: 0.9rem; display: flex; gap: 0.75rem; align-items: flex-start; }
.ca-post-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: 700; color: white; flex-shrink: 0; }
.ca-post-name { font-size: 0.85rem; font-weight: 600; color: var(--dark); }
.ca-post-caption { font-size: 0.85rem; color: var(--mid); margin: 0.25rem 0; line-height: 1.5; }
.ca-post-time { font-size: 0.75rem; color: #bba898; }
.ca-post-waiting { text-align: center; padding: 2rem 1rem; color: #9a8070; }
.ca-post-waiting span { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.ca-post-waiting p { font-size: 0.85rem; }

/* Upload form */
.ca-upload-area { padding: 1.5rem; border: 2px dashed rgba(232,85,46,0.25); border-radius: 12px; text-align: center; }
.ca-upload-title { font-size: 1rem; font-weight: 600; color: var(--dark); margin-bottom: 0.35rem; }
.ca-upload-hint { font-size: 0.85rem; color: #9a8070; margin-bottom: 1.25rem; }
.ca-photo-upload { margin-bottom: 1rem; }
.ca-photo-upload input[type="file"] { display: none; }
.ca-photo-label { display: inline-block; background: rgba(232,85,46,0.08); color: var(--warm); border: 1px solid rgba(232,85,46,0.3); padding: 0.55rem 1.25rem; border-radius: 100px; font-size: 0.85rem; cursor: pointer; font-weight: 600; transition: background 0.15s; }
.ca-photo-label:hover { background: rgba(232,85,46,0.15); }
.ca-caption-textarea { width: 100%; min-height: 90px; border: 1px solid rgba(26,18,16,0.15); border-radius: 10px; padding: 0.75rem; font-family: inherit; font-size: 0.88rem; resize: vertical; margin-bottom: 1rem; background: #fafaf8; outline: none; }
.ca-caption-textarea:focus { border-color: var(--warm); }

/* Comments / conversation */
.ca-comments-list { max-height: 360px; overflow-y: auto; margin-bottom: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
.ca-no-comments { font-size: 0.88rem; color: #bba898; text-align: center; padding: 1rem 0; }
.ca-comment { display: flex; gap: 0.75rem; align-items: flex-start; }
.ca-comment-avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; color: white; flex-shrink: 0; }
.ca-comment-body { background: #fafaf8; border-radius: 12px; padding: 0.65rem 0.9rem; flex: 1; }
.ca-comment-name { font-size: 0.8rem; font-weight: 700; color: var(--dark); display: block; margin-bottom: 0.2rem; }
.ca-comment-text { font-size: 0.88rem; color: var(--mid); line-height: 1.55; margin: 0 0 0.25rem; }
.ca-comment-time { font-size: 0.72rem; color: #bba898; }
.ca-comment-form { display: flex; gap: 0.75rem; }
.ca-comment-textarea { flex: 1; border: 1px solid rgba(26,18,16,0.15); border-radius: 10px; padding: 0.65rem; font-family: inherit; font-size: 0.88rem; resize: none; min-height: 44px; outline: none; background: #fafaf8; }
.ca-comment-textarea:focus { border-color: var(--warm); }

/* Completed state */
.ca-complete-section { margin-top: 2rem; }
.ca-complete-card { text-align: center; padding: 2.5rem; }
.ca-complete-icon { font-size: 3rem; display: block; margin-bottom: 1rem; }
.ca-complete-card h3 { font-family: 'DM Serif Display', serif; font-size: 1.75rem; color: var(--dark); margin-bottom: 0.5rem; }
.ca-complete-card p { color: #7a6860; font-size: 0.95rem; margin-bottom: 1.5rem; }
.ca-share-btn-lg { background: var(--dark); color: white; border: none; padding: 0.9rem 2rem; border-radius: 100px; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: opacity 0.15s; }
.ca-share-btn-lg:hover { opacity: 0.85; }

/* Invite page */
.ca-invite-page { max-width: 600px; margin: 3rem auto; padding: 0 1.25rem; }
.ca-invite-card { background: white; border-radius: 20px; padding: 2.5rem; text-align: center; box-shadow: 0 4px 20px rgba(26,18,16,0.08); }
.ca-invite-icon { font-size: 3.5rem; display: block; margin-bottom: 1rem; }
.ca-invite-card h2 { font-family: 'DM Serif Display', serif; font-size: 1.85rem; color: var(--dark); margin-bottom: 1.25rem; font-weight: 400; }
.ca-invite-from { display: flex; gap: 1rem; align-items: center; text-align: left; background: #fafaf8; border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.ca-mini-avatar-lg { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 700; color: white; flex-shrink: 0; }
.ca-invite-message { font-style: italic; color: #7a6860; margin-top: 0.35rem; font-size: 0.88rem; }
.ca-invite-their-recipe { text-align: left; background: rgba(212,148,42,0.06); border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.ca-recipe-mini { display: flex; gap: 0.5rem; align-items: center; font-size: 0.9rem; color: var(--dark); font-weight: 500; margin-top: 0.5rem; }
.ca-recipe-mini-culture { font-size: 0.78rem; color: #9a8070; margin-left: auto; }
.ca-invite-my-recipe { text-align: left; margin-bottom: 1.5rem; }
.ca-invite-my-recipe label { font-size: 0.88rem; display: block; margin-bottom: 0.35rem; }
.ca-invite-hint { font-size: 0.8rem; color: #9a8070; margin-bottom: 0.75rem; }
.ca-recipe-picker-inline { margin-top: 0.5rem; }
.ca-recipe-select { width: 100%; padding: 0.65rem 1rem; border: 1px solid rgba(26,18,16,0.15); border-radius: 10px; font-family: inherit; font-size: 0.88rem; background: white; cursor: pointer; outline: none; }
.ca-recipe-select:focus { border-color: var(--warm); }
.ca-invite-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 0.5rem; }
.ca-accept-btn { background: #E8552E; color: white; border: none; padding: 0.9rem 2rem; border-radius: 100px; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: opacity 0.15s; }
.ca-accept-btn:hover { opacity: 0.9; }
.ca-accept-btn:disabled { opacity: 0.6; cursor: default; }
.ca-decline-btn { background: none; border: 1px solid rgba(26,18,16,0.2); color: #9a8070; padding: 0.9rem 1.5rem; border-radius: 100px; font-size: 0.88rem; cursor: pointer; transition: border-color 0.15s; }
.ca-decline-btn:hover { border-color: var(--warm); color: var(--warm); }

/* My Challenges page */
.ca-challenges-page { max-width: 680px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.ca-challenges-header { margin-bottom: 2rem; }
.ca-challenges-title { font-family: 'DM Serif Display', serif; font-size: 2rem; font-weight: 400; color: var(--dark); margin: 0.5rem 0 0; }
.ca-challenges-section { margin-bottom: 2rem; }
.ca-challenges-section-title { font-size: 1rem; font-weight: 700; color: var(--mid); margin-bottom: 1rem; }
.ca-challenge-list { display: flex; flex-direction: column; gap: 0.75rem; }
.ca-challenge-item { background: white; border-radius: 14px; padding: 1rem 1.25rem; display: flex; align-items: center; gap: 1rem; cursor: pointer; box-shadow: 0 1px 6px rgba(26,18,16,0.06); transition: box-shadow 0.15s, transform 0.15s; }
.ca-challenge-item:hover { box-shadow: 0 4px 14px rgba(26,18,16,0.1); transform: translateY(-1px); }
.ca-ci-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 700; color: white; flex-shrink: 0; }
.ca-ci-info { flex: 1; min-width: 0; }
.ca-ci-name { font-weight: 600; font-size: 0.95rem; color: var(--dark); display: block; }
.ca-ci-recipes { font-size: 0.8rem; color: var(--mid); display: block; margin-top: 0.2rem; }
.ca-ci-time { font-size: 0.72rem; color: #bba898; display: block; margin-top: 0.2rem; }
.ca-ci-arrow { color: #bba898; font-size: 0.9rem; }

/* Modal */
.ca-modal-overlay { position: fixed; inset: 0; background: rgba(26,18,16,0.55); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 1rem; }
.ca-modal { background: white; border-radius: 20px; padding: 2rem; max-width: 480px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; }
.ca-modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 1.1rem; cursor: pointer; color: #9a8070; padding: 0.25rem 0.5rem; }
.ca-modal h3 { font-family: 'DM Serif Display', serif; font-size: 1.5rem; font-weight: 400; color: var(--dark); margin: 0 0 0.5rem; }
.ca-modal-desc { font-size: 0.88rem; color: #7a6860; margin-bottom: 1.5rem; }
.ca-modal-field { margin-bottom: 1.25rem; }
.ca-modal-field label { font-size: 0.85rem; color: var(--mid); display: block; margin-bottom: 0.4rem; }
.ca-modal-input { width: 100%; padding: 0.65rem 1rem; border: 1px solid rgba(26,18,16,0.15); border-radius: 10px; font-family: inherit; font-size: 0.88rem; outline: none; }
.ca-modal-input:focus { border-color: var(--warm); }

/* Profile Cook Across button */
.ca-profile-invite-btn { display: inline-flex; align-items: center; gap: 0.4rem; background: linear-gradient(135deg, #E8552E, #D4942A); color: white; border: none; padding: 0.5rem 1.1rem; border-radius: 100px; font-size: 0.82rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: opacity 0.15s; margin-left: 0.5rem; }
.ca-profile-invite-btn:hover { opacity: 0.9; color: white; }
.ca-profile-invite-gate { background: rgba(212,148,42,0.1); color: #9a8070; border: 1px solid rgba(212,148,42,0.3); }
.ca-profile-invite-gate:hover { color: #9a8070; opacity: 0.8; }

/* Profile Cook Across exchanges section */
.ca-profile-section { margin-top: 2rem; }
.ca-profile-exchanges { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.9rem; margin-top: 1.25rem; }
.ca-profile-exchange-card { background: white; border-radius: 14px; padding: 1rem 1.1rem; cursor: pointer; box-shadow: 0 1px 6px rgba(26,18,16,0.06); transition: transform 0.15s, box-shadow 0.15s; }
.ca-profile-exchange-card:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(26,18,16,0.09); }
.ca-pex-users { margin-bottom: 0.4rem; }
.ca-pex-partner { font-weight: 600; font-size: 0.88rem; color: var(--dark); }
.ca-pex-recipes { font-size: 0.8rem; color: var(--mid); display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.3rem; }
.ca-pex-arrow { color: #D4942A; }
.ca-pex-cultures { font-size: 0.72rem; color: #9a8070; display: block; margin-bottom: 0.3rem; }
.ca-pex-time { font-size: 0.7rem; color: #bba898; }

/* Nav Cook Across link accent */
.nav-ca-link { font-weight: 600 \!important; }


/* Nav Family Vault link accent */
.nav-vault-link { font-weight: 600 !important; }

/* ─── FAMILY RECIPE VAULT ─────────────────────────────────────────── */

/* Vault locked state (free users) */
.vault-locked { max-width: 640px; margin: 4rem auto; padding: 0 1.5rem; text-align: center; }
.vault-locked-icon { font-size: 4rem; display: block; margin-bottom: 1.25rem; }
.vault-locked h1 { font-family: 'DM Serif Display', serif; font-size: 2.25rem; font-weight: 400; color: var(--dark); margin-bottom: 1rem; }
.vault-locked-tagline { font-size: 1.1rem; color: #7a6860; margin-bottom: 2rem; line-height: 1.65; }
.vault-locked-features { list-style: none; padding: 1.5rem 1.75rem; margin: 0 0 2.5rem; display: flex; flex-direction: column; gap: 0.75rem; text-align: left; background: #fefcf8; border-radius: 18px; }
.vault-locked-features li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.95rem; color: var(--dark); }
.vault-locked-features .feat-icon { font-size: 1.35rem; flex-shrink: 0; }
.vault-upgrade-cta { display: inline-block; background: linear-gradient(135deg, #E8552E, #D4942A); color: white; text-decoration: none; padding: 0.95rem 2.25rem; border-radius: 100px; font-size: 1rem; font-weight: 600; transition: opacity 0.15s; }
.vault-upgrade-cta:hover { opacity: 0.9; color: white; }
.vault-locked-note { margin-top: 1.25rem; font-size: 0.82rem; color: #bba898; }
.vault-page { max-width: 900px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.vault-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.vault-title-block h1 { font-family: 'DM Serif Display', serif; font-size: 2rem; font-weight: 400; color: var(--dark); margin: 0 0 0.35rem; }
.vault-title-block p { font-size: 0.9rem; color: #7a6860; margin: 0; }
.vault-add-btn { background: linear-gradient(135deg, #E8552E, #D4942A); color: white; border: none; padding: 0.75rem 1.5rem; border-radius: 100px; font-size: 0.88rem; font-weight: 700; cursor: pointer; transition: opacity 0.15s; flex-shrink: 0; }
.vault-add-btn:hover { opacity: 0.9; }
.vault-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.75rem; border-bottom: 2px solid #f0ebe4; }
.vault-tab { background: none; border: none; padding: 0.65rem 1.25rem 0.85rem; font-family: inherit; font-size: 0.9rem; font-weight: 600; color: #9a8070; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color 0.15s, border-color 0.15s; }
.vault-tab.active { color: var(--warm); border-color: var(--warm); }
.vault-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.vault-card { background: white; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 10px rgba(26,18,16,0.07); transition: transform 0.15s, box-shadow 0.15s; cursor: pointer; }
.vault-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(26,18,16,0.11); }
.vault-card-image { height: 140px; background: linear-gradient(135deg, #f5e6d3, #e8c99a); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; }
.vault-card-image img { width: 100%; height: 100%; object-fit: cover; }
.vault-card-badge { position: absolute; top: 0.6rem; right: 0.6rem; background: rgba(26,18,16,0.55); color: white; font-size: 0.65rem; font-weight: 700; padding: 0.2rem 0.55rem; border-radius: 100px; letter-spacing: 0.03em; }
.vault-card-badge.public { background: rgba(122,159,106,0.85); }
.vault-card-body { padding: 1rem 1.1rem 1.25rem; }
.vault-card-title { font-family: 'DM Serif Display', serif; font-size: 1.1rem; font-weight: 400; color: var(--dark); margin: 0 0 0.3rem; line-height: 1.35; }
.vault-card-culture { font-size: 0.78rem; color: var(--warm); font-weight: 600; margin-bottom: 0.4rem; }
.vault-card-story { font-size: 0.82rem; color: #9a8070; line-height: 1.55; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vault-card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 0.65rem; padding-top: 0.65rem; border-top: 1px solid #f0ebe4; }
.vault-card-date { font-size: 0.72rem; color: #bba898; }
.vault-empty { text-align: center; padding: 4rem 2rem; }
.vault-empty-icon { font-size: 3.5rem; display: block; margin-bottom: 1rem; }
.vault-empty h3 { font-family: 'DM Serif Display', serif; font-size: 1.5rem; font-weight: 400; color: var(--dark); margin-bottom: 0.5rem; }
.vault-empty p { color: #9a8070; font-size: 0.9rem; }
.vault-modal-overlay { position: fixed; inset: 0; background: rgba(26,18,16,0.6); display: flex; align-items: flex-start; justify-content: center; z-index: 1000; padding: 1.5rem 1rem; overflow-y: auto; }
.vault-modal { background: white; border-radius: 24px; padding: 2rem; max-width: 600px; width: 100%; position: relative; margin: auto; }
.vault-modal-close { position: absolute; top: 1.25rem; right: 1.25rem; background: none; border: none; font-size: 1.1rem; cursor: pointer; color: #9a8070; padding: 0.3rem 0.6rem; border-radius: 6px; }
.vault-modal-close:hover { background: #f5f0ea; }
.vault-modal-title { font-family: 'DM Serif Display', serif; font-size: 1.75rem; font-weight: 400; color: var(--dark); margin: 0 0 0.35rem; }
.vault-modal-subtitle { font-size: 0.85rem; color: #9a8070; margin-bottom: 1.75rem; }
.vault-form-field { margin-bottom: 1.25rem; }
.vault-form-field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--mid); margin-bottom: 0.4rem; letter-spacing: 0.02em; text-transform: uppercase; }
.vault-form-field label span { font-size: 0.75rem; text-transform: none; font-weight: 400; color: #bba898; letter-spacing: 0; }
.vault-form-input { width: 100%; padding: 0.7rem 1rem; border: 1.5px solid rgba(26,18,16,0.12); border-radius: 12px; font-family: inherit; font-size: 0.9rem; outline: none; background: #fafaf8; box-sizing: border-box; transition: border-color 0.15s; }
.vault-form-input:focus { border-color: var(--warm); background: white; }
.vault-form-textarea { min-height: 110px; resize: vertical; }
.vault-form-textarea-lg { min-height: 80px; }
.vault-privacy-toggle { display: flex; align-items: center; gap: 1.25rem; padding: 0.9rem 1.1rem; background: #fafaf8; border-radius: 14px; border: 1.5px solid rgba(26,18,16,0.08); }
.vault-privacy-info { flex: 1; }
.vault-privacy-info strong { font-size: 0.9rem; color: var(--dark); display: block; margin-bottom: 0.15rem; }
.vault-privacy-info small { font-size: 0.78rem; color: #9a8070; }
.vault-toggle-input { display: none; }
.vault-toggle-label { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; cursor: pointer; }
.vault-toggle-label::before { content: ''; position: absolute; inset: 0; background: #ddd; border-radius: 100px; transition: background 0.2s; }
.vault-toggle-label::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: white; border-radius: 50%; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.vault-toggle-input:checked + .vault-toggle-label::before { background: var(--sage); }
.vault-toggle-input:checked + .vault-toggle-label::after { transform: translateX(20px); }
.vault-photo-upload { margin-top: 0.3rem; }
.vault-photo-file-input { display: none; }
.vault-photo-btn { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(232,85,46,0.08); color: var(--warm); border: 1.5px dashed rgba(232,85,46,0.35); padding: 0.65rem 1.25rem; border-radius: 12px; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: background 0.15s; width: 100%; justify-content: center; box-sizing: border-box; }
.vault-photo-btn:hover { background: rgba(232,85,46,0.13); }
.vault-photo-preview { margin-top: 0.75rem; border-radius: 12px; overflow: hidden; max-height: 180px; display: none; }
.vault-photo-preview img { width: 100%; height: 180px; object-fit: cover; display: block; }
.vault-form-actions { display: flex; gap: 0.75rem; margin-top: 1.75rem; justify-content: flex-end; }
.vault-save-btn { background: linear-gradient(135deg, #E8552E, #D4942A); color: white; border: none; padding: 0.8rem 1.75rem; border-radius: 100px; font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: opacity 0.15s; }
.vault-save-btn:hover { opacity: 0.9; }
.vault-save-btn:disabled { opacity: 0.6; cursor: default; }
.vault-cancel-btn { background: none; border: 1.5px solid rgba(26,18,16,0.15); color: #9a8070; padding: 0.8rem 1.25rem; border-radius: 100px; font-size: 0.9rem; cursor: pointer; transition: border-color 0.15s; }
.vault-cancel-btn:hover { border-color: var(--warm); color: var(--warm); }
.vault-hint { font-size: 0.78rem; color: #bba898; margin-top: 0.35rem; }
.vault-ingredients-list { display: flex; flex-direction: column; gap: 0.4rem; }
.vault-ingredient-row { display: flex; gap: 0.4rem; align-items: center; }
.vault-ingredient-input { flex: 1; padding: 0.6rem 0.85rem; border: 1.5px solid rgba(26,18,16,0.12); border-radius: 10px; font-family: inherit; font-size: 0.88rem; outline: none; background: #fafaf8; }
.vault-ingredient-input:focus { border-color: var(--warm); background: white; }
.vault-remove-row { background: none; border: none; color: #bba898; font-size: 1rem; cursor: pointer; padding: 0.3rem; line-height: 1; transition: color 0.15s; }
.vault-remove-row:hover { color: var(--warm); }
.vault-add-row-btn { background: none; border: 1.5px dashed rgba(26,18,16,0.2); color: #9a8070; padding: 0.5rem 1rem; border-radius: 10px; font-size: 0.82rem; cursor: pointer; width: 100%; margin-top: 0.4rem; transition: border-color 0.15s, color 0.15s; }
.vault-add-row-btn:hover { border-color: var(--warm); color: var(--warm); }
.fr-detail { max-width: 760px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.fr-detail-back { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: #9a8070; text-decoration: none; margin-bottom: 1.5rem; transition: color 0.15s; }
.fr-detail-back:hover { color: var(--warm); }
.fr-detail-hero { border-radius: 20px; overflow: hidden; margin-bottom: 1.75rem; background: linear-gradient(135deg, #f5e6d3, #e8c99a); height: 260px; display: flex; align-items: center; justify-content: center; font-size: 6rem; }
.fr-detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.fr-detail-author { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; background: #fafaf8; padding: 0.85rem 1.1rem; border-radius: 14px; }
.fr-author-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 700; color: white; flex-shrink: 0; }
.fr-author-info strong { font-size: 0.9rem; color: var(--dark); display: block; }
.fr-author-info small { font-size: 0.78rem; color: #9a8070; }
.fr-family-badge { margin-left: auto; background: linear-gradient(135deg, rgba(232,85,46,0.12), rgba(212,148,42,0.12)); color: var(--warm); font-size: 0.72rem; font-weight: 700; padding: 0.25rem 0.7rem; border-radius: 100px; letter-spacing: 0.03em; }
.fr-detail-title { font-family: 'DM Serif Display', serif; font-size: 2.25rem; font-weight: 400; color: var(--dark); margin: 0 0 0.5rem; line-height: 1.2; }
.fr-detail-culture { font-size: 0.85rem; color: var(--warm); font-weight: 600; margin-bottom: 1rem; }
.fr-detail-story { background: linear-gradient(135deg, rgba(232,85,46,0.05), rgba(212,148,42,0.05)); border-left: 3px solid var(--gold); border-radius: 0 14px 14px 0; padding: 1.25rem 1.5rem; margin-bottom: 2rem; }
.fr-detail-story p { font-style: italic; color: #5a4a42; line-height: 1.7; font-size: 1rem; margin: 0; }
.fr-section-title { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 1rem; letter-spacing: 0.01em; }
.fr-ingredients-list { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-direction: column; gap: 0.5rem; }
.fr-ingredients-list li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; color: var(--mid); padding: 0.5rem 0; border-bottom: 1px solid #f5f0ea; }
.fr-ingredients-list li::before { content: '•'; color: var(--gold); font-size: 1.1rem; line-height: 1.3; flex-shrink: 0; }
.fr-instructions-list { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-direction: column; gap: 1rem; }
.fr-instructions-list li { display: flex; gap: 1rem; align-items: flex-start; }
.fr-step-num { min-width: 32px; height: 32px; background: linear-gradient(135deg, #E8552E, #D4942A); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; flex-shrink: 0; margin-top: 0.1rem; }
.fr-step-text { font-size: 0.9rem; color: var(--mid); line-height: 1.65; padding-top: 0.3rem; }
.fr-detail-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.fr-action-btn { background: none; border: 1.5px solid rgba(26,18,16,0.2); color: #9a8070; padding: 0.6rem 1.1rem; border-radius: 100px; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: border-color 0.15s, color 0.15s; }
.fr-action-btn:hover { border-color: var(--warm); color: var(--warm); }
.fr-action-btn.danger:hover { border-color: #c0392b; color: #c0392b; }
.community-recipe-section { margin-top: 2.5rem; }
.community-recipe-section-title { font-size: 1rem; font-weight: 700; color: var(--mid); margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.5rem; }
.fr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.fr-community-card { background: white; border-radius: 14px; padding: 1.1rem 1.25rem 1.25rem; box-shadow: 0 2px 8px rgba(26,18,16,0.06); cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; border-top: 3px solid var(--gold); }
.fr-community-card:hover { transform: translateY(-2px); box-shadow: 0 5px 16px rgba(26,18,16,0.1); }
.fr-community-card-badge { font-size: 0.65rem; font-weight: 700; color: var(--gold); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.5rem; }
.fr-community-card-title { font-family: 'DM Serif Display', serif; font-size: 1.05rem; font-weight: 400; color: var(--dark); margin-bottom: 0.3rem; }
.fr-community-card-author { font-size: 0.78rem; color: #9a8070; margin-bottom: 0.5rem; }
.fr-community-card-story { font-size: 0.82rem; color: #7a6860; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-family-section { margin-top: 2rem; }
.search-section-label { font-size: 0.85rem; font-weight: 700; color: var(--mid); margin-bottom: 1rem; letter-spacing: 0.03em; text-transform: uppercase; }
.profile-vault-section { margin-top: 2rem; }
.profile-vault-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.9rem; margin-top: 1rem; }
@media (max-width: 600px) {
  .vault-header { flex-direction: column; }
  .vault-grid { grid-template-columns: 1fr; }
  .fr-detail-hero { height: 200px; font-size: 4.5rem; }
  .fr-detail-title { font-size: 1.75rem; }
  .vault-locked h1 { font-size: 1.75rem; }
  .vault-modal { padding: 1.5rem; }
}

/* ─── CULTURE AMBASSADOR SYSTEM ───────────────────────────────────── */

/* Ambassador section on culture page */
.culture-ambassador-section {
  background: linear-gradient(135deg, rgba(212,148,42,0.08), rgba(232,85,46,0.06));
  border: 1.5px solid rgba(212,148,42,0.25);
  border-radius: 18px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
}
.amb-section-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.amb-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.amb-card-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700; color: white;
  flex-shrink: 0;
  border: 2.5px solid var(--gold);
}
.amb-card-body { flex: 1; min-width: 0; }
.amb-card-name {
  font-size: 1rem; font-weight: 700; color: var(--dark);
  text-decoration: none; display: block; margin-bottom: 0.2rem;
}
.amb-card-name:hover { color: var(--warm); }
.amb-card-title { font-size: 0.78rem; color: var(--gold); font-weight: 600; display: block; margin-bottom: 0.4rem; }
.amb-card-bio { font-size: 0.85rem; color: #7a6860; line-height: 1.55; margin: 0; }
.amb-culture-intro {
  font-style: italic;
  font-size: 0.9rem;
  color: #5a4840;
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
  margin: 1rem 0 0;
  line-height: 1.65;
}
.amb-edit-bar { display: flex; gap: 0.75rem; margin-top: 1rem; flex-wrap: wrap; }
.amb-edit-btn {
  background: none; border: 1.5px solid rgba(212,148,42,0.4);
  color: var(--gold); border-radius: 100px; padding: 0.45rem 1rem;
  font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.15s;
}
.amb-edit-btn:hover { background: rgba(212,148,42,0.1); border-color: var(--gold); }
.amb-edit-panel { margin-top: 1rem; padding: 1rem; background: white; border-radius: 12px; border: 1px solid rgba(0,0,0,0.08); }
.amb-edit-panel textarea {
  width: 100%; box-sizing: border-box;
  min-height: 100px; resize: vertical;
  padding: 0.75rem; border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 8px; font-size: 0.88rem; font-family: inherit; line-height: 1.55;
  color: var(--dark); background: #faf9f7;
}
.amb-edit-panel textarea:focus { outline: none; border-color: var(--gold); }
.amb-edit-actions { display: flex; gap: 0.75rem; margin-top: 0.75rem; }
.amb-picks-help { font-size: 0.82rem; color: #9a8070; margin-bottom: 0.75rem; }
.amb-pick-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.5rem 0.75rem; background: #faf9f7; border-radius: 8px;
  margin-bottom: 0.4rem; font-size: 0.85rem; color: var(--dark);
}
.amb-pick-remove {
  background: none; border: none; color: #c0392b; font-size: 0.9rem;
  cursor: pointer; padding: 0 0.25rem; line-height: 1;
}
.amb-pick-add { display: flex; gap: 0.75rem; align-items: center; margin-top: 0.75rem; flex-wrap: wrap; }
.amb-pick-select {
  flex: 1; min-width: 200px; padding: 0.5rem 0.75rem;
  border: 1.5px solid rgba(0,0,0,0.12); border-radius: 8px;
  font-size: 0.85rem; font-family: inherit; color: var(--dark); background: white;
}

/* Apply to become ambassador */
.culture-ambassador-apply {
  background: rgba(253,246,236,0.5);
  border: 1.5px dashed rgba(212,148,42,0.3);
  border-radius: 18px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
  text-align: center;
}
.amb-apply-label { font-size: 0.85rem; font-weight: 700; color: var(--gold); margin-bottom: 0.5rem; }
.amb-apply-desc { font-size: 0.88rem; color: #7a6860; line-height: 1.55; margin-bottom: 1rem; }
.amb-apply-btn {
  display: inline-block; background: var(--gold); color: white;
  padding: 0.7rem 1.5rem; border-radius: 100px; font-weight: 700;
  font-size: 0.88rem; border: none; cursor: pointer; text-decoration: none;
  transition: opacity 0.15s;
}
.amb-apply-btn:hover { opacity: 0.85; color: white; }
.amb-apply-premium { background: linear-gradient(135deg, var(--warm), var(--gold)); }

/* Ambassador picks on culture page */
.amb-picks-section { margin-bottom: 2rem; }
.amb-picks-title {
  font-size: 0.85rem; font-weight: 700; color: var(--mid);
  margin-bottom: 1rem; display: flex; align-items: center; gap: 0.4rem;
}
.amb-picks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.9rem; }
.amb-pick-card {
  background: white; border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(26,18,16,0.07);
  transition: transform 0.15s, box-shadow 0.15s; text-decoration: none;
  border: 1.5px solid rgba(212,148,42,0.15);
}
.amb-pick-card:hover { transform: translateY(-2px); box-shadow: 0 5px 16px rgba(26,18,16,0.12); }
.amb-pick-hero {
  height: 80px; display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
}
.amb-pick-info { padding: 0.6rem 0.75rem 0.75rem; }
.amb-pick-name { font-size: 0.82rem; font-weight: 600; color: var(--dark); display: block; margin-bottom: 0.2rem; }
.amb-pick-rating { font-size: 0.72rem; color: #9a8070; }

/* Ambassador badge on profile */
.profile-ambassador-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: linear-gradient(135deg, rgba(212,148,42,0.15), rgba(232,85,46,0.1));
  border: 1.5px solid rgba(212,148,42,0.4);
  color: #a07020; padding: 0.25rem 0.7rem; border-radius: 100px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.01em;
}

/* Ambassador section on profile page */
.profile-ambassador-section {
  background: linear-gradient(135deg, rgba(212,148,42,0.08), rgba(232,85,46,0.05));
  border: 1.5px solid rgba(212,148,42,0.2);
  border-radius: 16px; padding: 1.25rem 1.5rem; margin: 1.5rem 0;
}
.amb-profile-badge {
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem;
}
.amb-profile-culture-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-decoration: none; margin-bottom: 0.75rem;
}
.amb-profile-culture-emoji { font-size: 1.5rem; }
.amb-profile-culture-name { font-size: 1rem; font-weight: 700; color: var(--dark); }
.amb-profile-culture-name:hover { color: var(--warm); }
.amb-profile-bio { font-size: 0.88rem; color: #5a4840; line-height: 1.6; margin: 0.5rem 0 0; }
.amb-bio-edit-btn { font-size: 0.78rem; color: var(--gold); cursor: pointer; background: none; border: none; padding: 0.4rem 0; margin-top: 0.5rem; text-decoration: underline; }

/* Apply modal */
.amb-apply-modal { max-width: 560px; }
.amb-apply-modal-body { padding-top: 0.5rem; }
.amb-apply-culture-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--warm), var(--gold));
  color: white; padding: 0.3rem 0.9rem; border-radius: 100px;
  font-size: 0.78rem; font-weight: 700; margin-bottom: 1rem;
}
.amb-apply-explainer { font-size: 0.88rem; color: #7a6860; line-height: 1.55; margin-bottom: 1rem; }

/* Ambassadors page */
.ambassadors-page { max-width: 1000px; margin: 0 auto; padding-bottom: 3rem; }
.ambassadors-hero {
  text-align: center; padding: 2.5rem 1rem 2rem;
}
.ambassadors-hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: 2.25rem; font-weight: 400; color: var(--dark); margin-bottom: 0.75rem;
}
.ambassadors-hero-desc { font-size: 1rem; color: #7a6860; line-height: 1.6; max-width: 560px; margin: 0 auto 1rem; }
.ambassadors-count { font-size: 0.8rem; font-weight: 700; color: var(--gold); letter-spacing: 0.05em; text-transform: uppercase; }

.amb-region-section { margin-bottom: 2.5rem; }
.amb-region-label {
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--mid); margin-bottom: 1rem;
  padding-bottom: 0.5rem; border-bottom: 1px solid rgba(0,0,0,0.07);
}
.ambassadors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.amb-grid-card {
  background: white; border-radius: 16px; padding: 1.5rem 1.25rem 1.25rem;
  box-shadow: 0 2px 12px rgba(26,18,16,0.07); text-align: center;
  border: 1.5px solid rgba(212,148,42,0.15); transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
}
.amb-grid-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(26,18,16,0.1); }
.amb-grid-culture-emoji {
  font-size: 2.25rem; margin-bottom: 0.5rem; display: block; line-height: 1;
}
.amb-grid-avatar {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 0.75rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 700; color: white;
  border: 2.5px solid var(--gold);
}
.amb-grid-name { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.25rem; }
.amb-grid-culture { font-size: 0.78rem; font-weight: 600; color: var(--gold); margin-bottom: 0.5rem; }
.amb-grid-bio { font-size: 0.8rem; color: #7a6860; line-height: 1.5; margin-bottom: 0.75rem; }
.amb-grid-actions { display: flex; flex-direction: column; gap: 0.4rem; }
.amb-grid-profile-link, .amb-grid-culture-link {
  display: block; padding: 0.4rem 0.75rem; border-radius: 100px;
  font-size: 0.78rem; font-weight: 600; text-decoration: none; transition: all 0.15s;
}
.amb-grid-profile-link {
  background: var(--dark); color: white;
}
.amb-grid-profile-link:hover { opacity: 0.85; color: white; }
.amb-grid-culture-link {
  background: rgba(212,148,42,0.1); color: var(--gold); border: 1px solid rgba(212,148,42,0.25);
}
.amb-grid-culture-link:hover { background: rgba(212,148,42,0.2); color: var(--gold); }

.amb-cta-box {
  background: var(--dark); border-radius: 20px; padding: 2.5rem;
  text-align: center; margin-top: 2rem;
}
.amb-cta-emoji { font-size: 2.5rem; margin-bottom: 0.75rem; }
.amb-cta-title {
  font-family: 'DM Serif Display', serif; font-size: 1.75rem; font-weight: 400;
  color: #fdf6ec; margin-bottom: 0.6rem;
}
.amb-cta-desc { font-size: 0.92rem; color: rgba(253,246,236,0.65); line-height: 1.6; margin-bottom: 1.5rem; }
.amb-cta-btn {
  display: inline-block; background: var(--gold); color: white;
  padding: 0.8rem 2rem; border-radius: 100px; font-weight: 700; font-size: 0.95rem;
  text-decoration: none; transition: opacity 0.15s;
}
.amb-cta-btn:hover { opacity: 0.85; color: white; }

@media (max-width: 600px) {
  .ambassadors-hero-title { font-size: 1.75rem; }
  .ambassadors-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .amb-grid-card { padding: 1rem; }
  .amb-picks-grid { grid-template-columns: repeat(2, 1fr); }
  .culture-ambassador-section, .culture-ambassador-apply { padding: 1.25rem; }
}

/* ─── WEEKLY CULTURE CHALLENGE ───────────────────────────────────── */

.wc-page { min-height: 80vh; }

/* Hero */
.wc-hero {
  background: linear-gradient(135deg, #1A1210 0%, #3D2E28 50%, #1A1210 100%);
  padding: 3rem 1.5rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.wc-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(232,85,46,0.25), transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(212,148,42,0.2), transparent 60%);
  pointer-events: none;
}
.wc-hero-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.wc-hero-label {
  display: inline-block;
  background: rgba(232,85,46,0.2); border: 1px solid rgba(232,85,46,0.4);
  color: #f5b07a; padding: 0.35rem 1rem; border-radius: 100px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.wc-hero-culture-emoji { font-size: 4.5rem; margin-bottom: 0.5rem; line-height: 1; }
.wc-hero-title {
  font-family: 'DM Serif Display', serif; font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400; margin-bottom: 0.75rem; color: #FDF6EC;
}
.wc-hero-recipe { font-size: 1rem; color: rgba(253,246,236,0.7); margin-bottom: 0.5rem; }
.wc-recipe-link {
  color: var(--gold); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(212,148,42,0.4);
}
.wc-recipe-link:hover { color: #f5ca6a; border-bottom-color: var(--gold); }
.wc-hero-dates { font-size: 0.8rem; color: rgba(253,246,236,0.45); margin-bottom: 1.5rem; }
.wc-countdown-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.wc-countdown-label { font-size: 0.75rem; color: rgba(253,246,236,0.55); letter-spacing: 0.06em; text-transform: uppercase; }
.wc-countdown {
  font-size: 2rem; font-weight: 800; color: var(--warm);
  letter-spacing: 0.04em; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 20px rgba(232,85,46,0.5);
}
.wc-countdown.wc-closed { font-size: 1.2rem; color: rgba(253,246,236,0.5); text-shadow: none; }

/* Container */
.wc-container { max-width: 1000px; margin: 0 auto; padding: 2rem 1.5rem; }

/* Last week's winner */
.wc-last-winner { margin-bottom: 2.5rem; }
.wc-last-winner-label {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--gold); margin-bottom: 0.75rem;
}
.wc-last-winner-card {
  display: flex; gap: 1.25rem; align-items: flex-start;
  background: linear-gradient(135deg, #FDF6EC, #fff);
  border: 2px solid var(--gold); border-radius: 16px; padding: 1.25rem;
}
.wc-lw-photo-wrap { position: relative; flex-shrink: 0; }
.wc-lw-photo { width: 100px; height: 100px; object-fit: cover; border-radius: 12px; }
.wc-lw-crown {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  font-size: 1.5rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.wc-lw-culture { font-size: 0.8rem; color: var(--mid); font-weight: 600; margin-bottom: 0.25rem; }
.wc-lw-name { font-family: 'DM Serif Display', serif; font-size: 1.25rem; margin-bottom: 0.25rem; color: var(--dark); }
.wc-lw-caption { font-size: 0.9rem; color: var(--mid); font-weight: 300; margin-bottom: 0.5rem; font-style: italic; }
.wc-lw-votes { font-size: 0.85rem; color: var(--warm); font-weight: 600; }

/* Submit CTA */
.wc-submit-cta {
  background: var(--dark); border-radius: 16px; padding: 2rem; margin-bottom: 2rem;
  text-align: center;
}
.wc-submit-cta.wc-submitted { background: linear-gradient(135deg, #1a2e1a, #1A1210); }
.wc-submit-cta-inner { max-width: 500px; margin: 0 auto; }
.wc-submit-cta-title { font-family: 'DM Serif Display', serif; font-size: 1.5rem; color: #FDF6EC; margin-bottom: 0.5rem; }
.wc-submit-cta-desc { color: rgba(253,246,236,0.65); font-size: 0.9rem; margin-bottom: 1.25rem; font-weight: 300; }
.wc-submit-cta-btns { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* Submit form */
.wc-submit-form {
  background: white; border-radius: 16px; padding: 1.75rem;
  border: 2px solid rgba(232,85,46,0.2); margin-bottom: 2rem;
}
.wc-form-title { font-family: 'DM Serif Display', serif; font-size: 1.25rem; margin-bottom: 1.25rem; color: var(--dark); }
.wc-form-body { display: flex; flex-direction: column; gap: 1rem; }
.wc-photo-upload-area {
  border: 2px dashed rgba(26,18,16,0.2); border-radius: 12px;
  cursor: pointer; overflow: hidden; min-height: 160px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s;
}
.wc-photo-upload-area:hover { border-color: var(--warm); }
.wc-photo-placeholder { text-align: center; padding: 2rem; color: var(--mid); }
.wc-upload-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.wc-photo-placeholder p { font-size: 0.9rem; margin-bottom: 0.25rem; }
.wc-upload-hint { font-size: 0.75rem; color: rgba(61,46,40,0.5); }
.wc-photo-preview { width: 100%; max-height: 300px; object-fit: cover; }
.wc-caption-input {
  width: 100%; border: 1.5px solid rgba(26,18,16,0.15); border-radius: 10px;
  padding: 0.75rem 1rem; font-family: 'Outfit', sans-serif; font-size: 0.9rem;
  color: var(--dark); resize: vertical; min-height: 80px;
}
.wc-caption-input:focus { outline: none; border-color: var(--warm); }
.wc-form-actions { display: flex; gap: 0.75rem; }

/* Submissions */
.wc-submissions-section { margin-bottom: 2.5rem; }
.wc-section-title {
  font-family: 'DM Serif Display', serif; font-size: 1.5rem; font-weight: 400;
  margin-bottom: 1.25rem; color: var(--dark);
  padding-bottom: 0.5rem; border-bottom: 2px solid rgba(26,18,16,0.06);
}
.wc-leaderboard-header {
  font-size: 0.85rem; color: var(--mid); font-weight: 600;
  margin-bottom: 1rem; padding: 0.5rem 0;
}
.wc-submissions-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.wc-submission-card {
  background: white; border-radius: 16px; overflow: hidden;
  border: 1.5px solid rgba(26,18,16,0.08);
  transition: transform 0.15s, box-shadow 0.15s;
}
.wc-submission-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,18,16,0.1); }
.wc-submission-card.wc-my-submission { border-color: var(--warm); }
.wc-sub-photo-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.wc-sub-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.wc-mine-badge {
  position: absolute; top: 0.5rem; left: 0.5rem;
  background: var(--warm); color: white; font-size: 0.7rem; font-weight: 700;
  padding: 0.25rem 0.6rem; border-radius: 100px;
}
.wc-sub-body { padding: 0.875rem; }
.wc-sub-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.wc-sub-author {
  font-weight: 600; font-size: 0.85rem; color: var(--dark); cursor: pointer;
}
.wc-sub-author:hover { color: var(--warm); }
.wc-sub-time { font-size: 0.75rem; color: rgba(61,46,40,0.5); }
.wc-sub-caption { font-size: 0.85rem; color: var(--mid); font-weight: 300; margin-bottom: 0.75rem; line-height: 1.5; }
.wc-sub-actions { display: flex; align-items: center; }
.wc-vote-btn {
  display: flex; align-items: center; gap: 0.4rem;
  background: rgba(26,18,16,0.05); border: 1.5px solid rgba(26,18,16,0.1);
  border-radius: 100px; padding: 0.4rem 0.9rem;
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: all 0.15s; color: var(--mid);
}
.wc-vote-btn:hover:not(:disabled) { background: rgba(232,85,46,0.08); border-color: var(--warm); color: var(--warm); }
.wc-vote-btn.voted { background: rgba(232,85,46,0.1); border-color: var(--warm); color: var(--warm); }
.wc-vote-btn.disabled, .wc-vote-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Empty state */
.wc-empty-submissions {
  text-align: center; padding: 3rem 1.5rem;
  color: var(--mid); font-size: 0.95rem;
}
.wc-empty-icon { font-size: 3rem; margin-bottom: 0.75rem; }

/* Archive */
.wc-archive { margin-top: 1.5rem; padding-top: 2rem; border-top: 2px solid rgba(26,18,16,0.06); }
.wc-archive-title {
  font-family: 'DM Serif Display', serif; font-size: 1.5rem; font-weight: 400;
  margin-bottom: 1.25rem; color: var(--dark);
}
.wc-archive-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.wc-archive-card {
  background: white; border-radius: 12px; padding: 1rem;
  border: 1.5px solid rgba(26,18,16,0.08);
  display: flex; align-items: flex-start; gap: 0.75rem;
}
.wc-archive-emoji { font-size: 1.5rem; flex-shrink: 0; }
.wc-archive-culture { font-weight: 700; font-size: 0.85rem; color: var(--dark); margin-bottom: 0.2rem; }
.wc-archive-recipe { font-size: 0.75rem; color: var(--mid); margin-bottom: 0.2rem; }
.wc-archive-date { font-size: 0.7rem; color: rgba(61,46,40,0.5); margin-bottom: 0.4rem; }
.wc-archive-winner { font-size: 0.75rem; font-weight: 600; color: var(--gold); }
.wc-no-winner { color: rgba(61,46,40,0.4); font-weight: 400; }

/* Homepage challenge banner */
.home-challenge-banner {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, #1A1210 0%, #3D2E28 100%);
  border-radius: 16px; padding: 1.25rem 1.5rem; margin-bottom: 1.75rem;
  color: white; border: 1.5px solid rgba(232,85,46,0.3);
  transition: opacity 0.15s;
}
.home-challenge-banner:hover { opacity: 0.95; }
.hcb-label {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: #f5b07a; margin-bottom: 0.35rem;
}
.hcb-title { font-family: 'DM Serif Display', serif; font-size: 1.1rem; color: #FDF6EC; margin-bottom: 0.25rem; }
.hcb-sub { font-size: 0.8rem; color: rgba(253,246,236,0.6); font-weight: 300; }
.hcb-cta {
  background: var(--warm); color: white; padding: 0.6rem 1.25rem;
  border-radius: 100px; font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
  margin-left: 1rem;
}

/* Nav challenge link */
.nav-challenge-link { color: var(--warm) !important; font-weight: 600; }

/* Responsive */
@media (max-width: 900px) {
  .wc-submissions-grid { grid-template-columns: repeat(2, 1fr); }
  .wc-archive-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .wc-hero { padding: 2rem 1rem; }
  .wc-hero-culture-emoji { font-size: 3rem; }
  .wc-countdown { font-size: 1.5rem; }
  .wc-container { padding: 1.5rem 1rem; }
  .wc-last-winner-card { flex-direction: column; }
  .wc-lw-photo { width: 100%; height: 200px; }
  .wc-submissions-grid { grid-template-columns: 1fr; }
  .wc-archive-grid { grid-template-columns: repeat(2, 1fr); }
  .home-challenge-banner { flex-direction: column; gap: 0.75rem; text-align: center; }
  .hcb-cta { margin-left: 0; }
}

/* ─── DIETARY FILTERS ───────────────────────────────────────────── */
.dietary-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  background: white;
  border-radius: 12px;
  border: 1.5px solid rgba(26,18,16,0.07);
}

.dietary-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sage);
  flex-shrink: 0;
}

.dietary-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  border: 1.5px solid rgba(26,18,16,0.15);
  background: transparent;
  color: var(--mid);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.dietary-pill:hover {
  border-color: var(--warm);
  color: var(--warm);
  background: rgba(232,85,46,0.05);
}

.dietary-pill.active {
  background: var(--warm);
  border-color: var(--warm);
  color: white;
  font-weight: 600;
}

.dietary-clear {
  padding: 0.3rem 0.6rem;
  border-radius: 100px;
  border: 1.5px solid rgba(26,18,16,0.12);
  background: transparent;
  color: rgba(61,46,40,0.5);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s;
}

.dietary-clear:hover {
  background: rgba(26,18,16,0.05);
  color: var(--mid);
}

/* Dietary tags on recipe cards */
.card-dietary-tags {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.card-dietary-tag {
  font-size: 0.78rem;
  padding: 0.12rem 0.5rem;
  background: rgba(123,143,106,0.12);
  color: var(--sage);
  border-radius: 100px;
  border: 1px solid rgba(123,143,106,0.25);
  font-weight: 500;
}

/* ─── STORY SHARE BUTTONS ───────────────────────────────────────── */
.fs-share-row {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  margin-left: auto;
}

.fs-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid rgba(26,18,16,0.12);
  background: transparent;
  color: rgba(61,46,40,0.45);
  cursor: pointer;
  transition: all 0.15s;
  padding: 0;
  flex-shrink: 0;
}

.fs-share-btn:hover {
  border-color: var(--warm);
  color: var(--warm);
  background: rgba(232,85,46,0.06);
}

/* ─── VIDEO CARD SHARE / FOOTER ─────────────────────────────────── */
.video-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.video-share-row {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.vid-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid rgba(26,18,16,0.12);
  background: transparent;
  color: rgba(61,46,40,0.4);
  cursor: pointer;
  transition: all 0.15s;
  padding: 0;
  flex-shrink: 0;
}

.vid-share-btn:hover {
  border-color: var(--warm);
  color: var(--warm);
  background: rgba(232,85,46,0.06);
}

/* Recipe detail dietary tags */
.recipe-dietary-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.recipe-dietary-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  background: rgba(123,143,106,0.1);
  color: var(--sage);
  border: 1.5px solid rgba(123,143,106,0.25);
}

/* Pinterest share button */
.share-pinterest { color: #E60023 !important; }
.share-pinterest:hover { background: rgba(230,0,35,0.08) !important; border-color: #E60023 !important; }

@media (max-width: 760px) {
  .dietary-filter-bar { padding: 0.6rem 0.75rem; gap: 0.4rem; }
  .dietary-pill { font-size: 0.75rem; padding: 0.25rem 0.6rem; }
}
