/* ═══ COCON APP — Design System ═══ */
:root {
    --cream: #FAF7F2;
    --warm-white: #FFF9F3;
    --sand: #E8DDD3;
    --clay: #C4A882;
    --terracotta: #C4704B;
    --deep-brown: #3D2B1F;
    --charcoal: #1A1714;
    --sage: #8B9E82;
    --muted-sage: #B5C4AE;
    --dusty-rose: #C9A9A6;
    --white: #FFFFFF;
    --border: rgba(196, 168, 130, 0.15);
    --shadow-sm: 0 1px 3px rgba(26, 23, 20, 0.04);
    --shadow-md: 0 4px 12px rgba(26, 23, 20, 0.06);
    --shadow-lg: 0 12px 32px rgba(26, 23, 20, 0.08);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 100px;
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Instrument Sans', -apple-system, sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); background: var(--cream); color: var(--charcoal); overflow-x: hidden; line-height: 1.6; }

.logo { font-family: var(--font-display); font-size: 1.5rem; color: var(--charcoal); text-decoration: none; letter-spacing: -0.02em; }
.logo span { color: var(--terracotta); }

/* ═══ AUTH ═══ */
.auth-container { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-left { background: var(--charcoal); display: flex; flex-direction: column; justify-content: center; padding: 4rem; position: relative; overflow: hidden; }
.auth-left::before { content: ''; position: absolute; width: 400px; height: 400px; background: var(--terracotta); border-radius: 50%; filter: blur(120px); opacity: 0.15; top: -10%; right: -10%; }
.auth-brand .logo { color: var(--cream); font-size: 2rem; display: block; margin-bottom: 2rem; }
.auth-tagline { font-family: var(--font-display); font-size: 2.8rem; color: var(--cream); line-height: 1.1; letter-spacing: -0.02em; }
.auth-tagline em { color: var(--clay); font-style: italic; }
.auth-features { margin-top: 3rem; display: flex; flex-direction: column; gap: 1rem; }
.auth-feature { display: flex; align-items: center; gap: 0.8rem; color: rgba(250, 247, 242, 0.6); font-size: 0.95rem; }
.auth-feature-icon { font-size: 1.2rem; }
.auth-right { display: flex; align-items: center; justify-content: center; padding: 2rem; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h2 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 0.3rem; }
.auth-box #auth-subtitle { font-size: 0.92rem; color: var(--deep-brown); opacity: 0.6; margin-bottom: 2rem; }
.btn-google { width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.7rem; padding: 0.85rem 1.5rem; border: 1.5px solid var(--sand); border-radius: var(--radius-full); background: var(--white); font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; color: var(--charcoal); cursor: pointer; transition: all 0.3s var(--ease); }
.btn-google:hover { border-color: var(--charcoal); background: var(--cream); }
.auth-divider { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; color: var(--sand); font-size: 0.8rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--sand); }

/* ═══ FORMS ═══ */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--deep-brown); margin-bottom: 0.35rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.75rem 1rem; border: 1.5px solid var(--sand); border-radius: var(--radius-sm); background: var(--white); font-family: var(--font-body); font-size: 0.9rem; color: var(--charcoal); transition: border-color 0.3s; outline: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--terracotta); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--sand); }
.form-hint { font-size: 0.78rem; color: var(--deep-brown); opacity: 0.5; margin-bottom: 0.5rem; }
.form-row { display: flex; gap: 1rem; }
.form-row .form-group { flex: 1; }
.checkbox-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; cursor: pointer; }
.checkbox-label input { width: auto; accent-color: var(--terracotta); }
.btn-primary-full { width: 100%; padding: 0.85rem; background: var(--charcoal); color: var(--cream); border: none; border-radius: var(--radius-full); font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.3s var(--ease); }
.btn-primary-full:hover { background: var(--terracotta); }
.auth-switch { text-align: center; margin-top: 1.5rem; font-size: 0.85rem; color: var(--deep-brown); }
.auth-switch a { color: var(--terracotta); font-weight: 600; text-decoration: none; }
.auth-error { color: #D94040; font-size: 0.82rem; text-align: center; margin-top: 1rem; display: none; }

/* ═══ APP NAV ═══ */
.app-nav { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 1.5rem; background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.app-nav-left { display: flex; align-items: center; gap: 0.6rem; }
.app-nav-right { display: flex; align-items: center; gap: 0.5rem; }
.breadcrumb-project { font-size: 0.88rem; font-weight: 500; color: var(--deep-brown); }
.user-menu { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; padding: 0.3rem 0.6rem; border-radius: var(--radius-full); transition: background 0.2s; position: relative; }
.user-menu:hover { background: var(--cream); }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--terracotta); color: white; display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; }
.user-dropdown { position: absolute; top: 100%; right: 0; margin-top: 0.5rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 0.4rem; display: none; min-width: 160px; z-index: 60; }
.user-dropdown.open { display: block; }
.user-dropdown a { display: block; padding: 0.6rem 1rem; font-size: 0.85rem; color: var(--deep-brown); text-decoration: none; border-radius: var(--radius-sm); transition: background 0.2s; }
.user-dropdown a:hover { background: var(--cream); }

/* ═══ BUTTONS ═══ */
.btn-icon { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; position: relative; }
.btn-icon:hover { border-color: var(--terracotta); color: var(--terracotta); }
.btn-icon-sm { width: 28px; height: 28px; border: none; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); transition: background 0.2s; opacity: 0.4; }
.btn-icon-sm:hover { background: rgba(0,0,0,0.05); opacity: 1; }
.btn-icon-xs { background: none; border: none; cursor: pointer; font-size: 0.75rem; padding: 2px; opacity: 0.5; transition: opacity 0.2s; }
.btn-icon-xs:hover { opacity: 1; }
.comment-badge { position: absolute; top: -4px; right: -4px; width: 18px; height: 18px; background: var(--terracotta); color: white; font-size: 0.6rem; font-weight: 700; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.btn-primary-app { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.6rem 1.2rem; background: var(--charcoal); color: var(--cream); border: none; border-radius: var(--radius-full); font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.3s var(--ease); }
.btn-primary-app:hover { background: var(--terracotta); }
.btn-secondary-app { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.6rem 1.2rem; background: var(--white); color: var(--charcoal); border: 1.5px solid var(--sand); border-radius: var(--radius-full); font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.3s var(--ease); }
.btn-secondary-app:hover { border-color: var(--terracotta); color: var(--terracotta); }

/* ═══ DASHBOARD ═══ */
.dashboard-main { max-width: 1100px; margin: 0 auto; padding: 2.5rem; }
.dashboard-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.dashboard-header h1 { font-family: var(--font-display); font-size: 1.8rem; }
.dashboard-subtitle { font-size: 0.88rem; color: var(--deep-brown); opacity: 0.5; margin-top: 0.2rem; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.project-card { padding: 1.5rem; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--border); cursor: pointer; transition: all 0.4s var(--ease); }
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--terracotta); }
.project-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.project-card-icon { font-size: 1.8rem; }
.project-card-name { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 0.3rem; }
.project-card-meta { font-size: 0.82rem; color: var(--deep-brown); opacity: 0.5; margin-bottom: 1rem; }
.project-card-footer { display: flex; justify-content: space-between; font-size: 0.8rem; }
.project-card-rooms { color: var(--deep-brown); opacity: 0.6; }
.project-card-budget { color: var(--terracotta); font-weight: 700; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 5rem 2rem; }
.empty-state-icon { font-size: 3.5rem; margin-bottom: 1.5rem; }
.empty-state h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 0.5rem; }
.empty-state p { color: var(--deep-brown); opacity: 0.6; margin-bottom: 2rem; max-width: 350px; }

/* ═══ PROJECT LAYOUT ═══ */
.project-layout { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 56px); }
.project-sidebar { background: var(--white); border-right: 1px solid var(--border); padding: 1.5rem; overflow-y: auto; display: flex; flex-direction: column; gap: 1.2rem; }
.sidebar-header h2 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 0.2rem; }
.sidebar-header p { font-size: 0.78rem; color: var(--deep-brown); opacity: 0.5; }
.sidebar-budget { padding: 1rem; background: var(--cream); border-radius: var(--radius-md); }
.budget-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--deep-brown); opacity: 0.5; margin-bottom: 0.2rem; }
.budget-amount { font-family: var(--font-display); font-size: 1.6rem; color: var(--terracotta); }
.sidebar-rooms { display: flex; flex-direction: column; gap: 2px; }
.sidebar-room { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.8rem; border-radius: var(--radius-sm); cursor: pointer; transition: all 0.2s; font-size: 0.88rem; }
.sidebar-room:hover { background: var(--cream); }
.sidebar-room.active { background: var(--cream); font-weight: 600; box-shadow: var(--shadow-sm); }
.sidebar-room-icon { font-size: 1rem; }
.sidebar-room-name { flex: 1; }
.sidebar-room-surface { font-size: 0.72rem; color: var(--deep-brown); opacity: 0.4; }
.btn-add-room { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.8rem; border: 1.5px dashed var(--sand); border-radius: var(--radius-sm); background: none; font-family: var(--font-body); font-size: 0.82rem; color: var(--deep-brown); opacity: 0.5; cursor: pointer; transition: all 0.2s; }
.btn-add-room:hover { opacity: 1; border-color: var(--terracotta); color: var(--terracotta); }
.sidebar-palette { padding-top: 0.5rem; border-top: 1px solid var(--border); }
.palette-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--deep-brown); opacity: 0.5; margin-bottom: 0.5rem; }
.palette-colors { display: flex; flex-wrap: wrap; gap: 6px; }
.palette-color { width: 28px; height: 28px; border-radius: 6px; cursor: pointer; border: 2px solid transparent; transition: all 0.2s; }
.palette-color:hover { transform: scale(1.15); border-color: var(--charcoal); }

/* ═══ MAIN CONTENT ═══ */
.project-main { padding: 2rem; overflow-y: auto; background: var(--cream); }
.room-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.room-header h2 { font-family: var(--font-display); font-size: 1.5rem; }
#room-meta { font-size: 0.82rem; color: var(--deep-brown); opacity: 0.5; margin-top: 0.2rem; }
.room-actions { display: flex; gap: 0.5rem; }
.items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; }
.item-card { border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--border); overflow: hidden; transition: all 0.3s var(--ease); }
.item-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.item-card-img { height: 160px; display: flex; align-items: center; justify-content: center; position: relative; background: #F5F0EB; }
.item-badge { position: absolute; top: 8px; right: 8px; padding: 3px 10px; background: var(--sage); color: white; font-size: 0.68rem; font-weight: 700; border-radius: var(--radius-full); }
.item-source-badge { position: absolute; bottom: 8px; left: 8px; padding: 3px 10px; color: white; font-size: 0.65rem; font-weight: 700; border-radius: var(--radius-full); text-decoration: none; transition: opacity 0.2s; z-index: 1; }
.item-source-badge:hover { opacity: 0.85; }
.item-card-body { padding: 1rem; }
.item-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 0.3rem; }
.item-card-top h4 { font-size: 0.95rem; font-weight: 600; flex: 1; }
.item-card-actions { display: flex; gap: 2px; }
.item-card-price { font-family: var(--font-display); font-size: 1.1rem; color: var(--terracotta); margin-bottom: 0.3rem; }
.item-card-price small { font-family: var(--font-body); font-size: 0.72rem; color: var(--deep-brown); opacity: 0.5; }
.item-card-supplier { font-size: 0.78rem; color: var(--deep-brown); opacity: 0.5; margin-bottom: 0.3rem; }
.item-card-link { font-size: 0.78rem; color: var(--terracotta); text-decoration: none; display: inline-block; margin-bottom: 0.3rem; }
.item-card-link:hover { text-decoration: underline; }
.item-card-notes { font-size: 0.78rem; color: var(--deep-brown); opacity: 0.5; padding-top: 0.4rem; border-top: 1px solid var(--border); margin-top: 0.4rem; font-style: italic; }
.room-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 5rem 2rem; }
.room-empty-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.room-empty h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 0.4rem; }
.room-empty p { color: var(--deep-brown); opacity: 0.5; margin-bottom: 1.5rem; font-size: 0.9rem; }
.room-empty-collab { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; margin-top: 1rem; }
.room-empty-collab-divider { font-size: 0.78rem; color: var(--warm-gray); text-transform: uppercase; letter-spacing: 1px; }
.btn-collab-ghost { background: none; border: 1.5px dashed var(--sand); color: var(--terracotta); padding: 0.6rem 1.2rem; border-radius: var(--radius-full); cursor: pointer; font-size: 0.85rem; font-weight: 500; font-family: var(--font-body); transition: all 0.2s; }
.btn-collab-ghost:hover { border-color: var(--terracotta); background: rgba(196, 112, 75, 0.05); }

/* ═══ COLLAB BANNER ═══ */
.collab-banner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.2rem; margin-bottom: 1.2rem; background: linear-gradient(135deg, rgba(196, 112, 75, 0.08) 0%, rgba(139, 158, 130, 0.08) 100%); border: 1.5px solid rgba(196, 112, 75, 0.2); border-radius: var(--radius-lg); animation: collabSlideIn 0.4s ease; }
.collab-banner-content { display: flex; align-items: center; gap: 0.8rem; flex: 1; min-width: 0; }
.collab-banner-icon { font-size: 1.5rem; flex-shrink: 0; }
.collab-banner-text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.collab-banner-text strong { font-size: 0.88rem; color: var(--deep-brown); }
.collab-banner-text span { font-size: 0.78rem; color: var(--warm-gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.collab-banner-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.collab-banner-btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1rem; background: var(--terracotta); color: white; border: none; border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 600; cursor: pointer; font-family: var(--font-body); transition: all 0.2s; white-space: nowrap; }
.collab-banner-btn:hover { background: var(--deep-terracotta); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.collab-banner-dismiss { background: none; border: none; color: var(--warm-gray); font-size: 1.2rem; cursor: pointer; padding: 0.2rem; line-height: 1; opacity: 0.5; transition: opacity 0.2s; }
.collab-banner-dismiss:hover { opacity: 1; }
.shared-banner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.2rem; margin-bottom: 1.2rem; background: linear-gradient(135deg, rgba(139, 158, 130, 0.12) 0%, rgba(196, 168, 130, 0.08) 100%); border: 1.5px solid rgba(139, 158, 130, 0.25); border-radius: var(--radius-lg); animation: collabSlideIn 0.4s ease; }
@keyframes collabSlideIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 768px) {
    .collab-banner { flex-direction: column; align-items: flex-start; }
    .collab-banner-text span { white-space: normal; }
    .collab-banner-actions { width: 100%; justify-content: space-between; }
}

/* ═══ CATEGORY TABS ═══ */
.category-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.2rem; overflow-x: auto; padding-bottom: 0.3rem; flex-wrap: wrap; }

/* ═══ VIEW TOGGLE ═══ */
.view-toggle { display: flex; gap: 0; border: 1.5px solid var(--sand); border-radius: var(--radius); overflow: hidden; }
.view-btn { padding: 0.45rem 0.6rem; background: var(--white); border: none; cursor: pointer; color: var(--deep-brown); transition: all 0.2s; display: flex; align-items: center; }
.view-btn:not(:last-child) { border-right: 1.5px solid var(--sand); }
.view-btn.active { background: var(--terracotta); color: white; }
.view-btn:hover:not(.active) { background: var(--cream); }

/* ═══ MOODBOARD VIEW ═══ */
.moodboard-view { padding: 0; }
.moodboard-empty { text-align: center; padding: 4rem 2rem; color: var(--warm-gray); }
.moodboard-empty h3 { font-family: var(--font-heading); color: var(--deep-brown); margin-bottom: 0.3rem; }
.mb-header { margin-bottom: 1.5rem; }
.mb-title { font-family: var(--font-heading); font-size: 1.3rem; color: var(--deep-brown); margin: 0; }
.mb-subtitle { font-size: 0.82rem; color: var(--warm-gray); margin-top: 0.2rem; }
.mb-board { display: flex; flex-direction: column; gap: 1.8rem; }
.mb-category { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 1.2rem; }
.mb-cat-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--border); }
.mb-cat-emoji { font-size: 1.3rem; }
.mb-cat-name { font-family: var(--font-heading); font-size: 1.05rem; color: var(--deep-brown); }
.mb-cat-count { background: var(--sand); color: var(--deep-brown); font-size: 0.7rem; font-weight: 600; padding: 0.15rem 0.5rem; border-radius: var(--radius-full); }
.mb-subcat-label { font-size: 0.78rem; font-weight: 600; color: var(--terracotta); text-transform: uppercase; letter-spacing: 0.5px; margin: 0.8rem 0 0.5rem; padding-left: 0.2rem; }
.mb-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.8rem; }
.mb-image-card { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; aspect-ratio: 1; background: var(--cream); transition: transform 0.2s var(--ease), box-shadow 0.2s; }
.mb-image-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.mb-image-card img { width: 100%; height: 100%; object-fit: cover; }
.mb-image-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 0.5rem; background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: white; display: flex; flex-direction: column; gap: 0.1rem; }
.mb-image-name { font-size: 0.72rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-image-price { font-size: 0.68rem; opacity: 0.85; }
.mb-vote-badge { position: absolute; top: 0.4rem; right: 0.4rem; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.mb-vote-up { background: #E8F5E9; color: #2E7D32; }
.mb-vote-down { background: #FBE9E7; color: #C62828; }
.mb-vote-debate { background: #FFF8E1; color: #F57F17; }

@media (max-width: 768px) {
    .mb-images { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 0.5rem; }
    .view-toggle { display: flex; }
}
.category-tab { padding: 0.45rem 1rem; background: var(--white); border: 1.5px solid var(--sand); border-radius: var(--radius-full); cursor: pointer; font-size: 0.78rem; font-weight: 500; color: var(--deep-brown); transition: all 0.2s; white-space: nowrap; font-family: var(--font-body); }
.category-tab:hover { border-color: var(--terracotta); }
.category-tab.active { background: var(--charcoal); color: var(--cream); border-color: var(--charcoal); }
.cat-count { opacity: 0.5; font-size: 0.7rem; margin-left: 0.2rem; }

/* ═══ DRAG & DROP ═══ */
.item-card[draggable="true"] { cursor: grab; }
.item-card.dragging { opacity: 0.4; cursor: grabbing; transform: scale(0.95); }
.sidebar-room.drag-over { background: rgba(196, 112, 75, 0.15); border-color: var(--terracotta); box-shadow: 0 0 0 2px rgba(196, 112, 75, 0.25); }

/* ═══ INSPIRATION CARDS ═══ */
.item-card-inspo { border: 1.5px dashed var(--clay); background: var(--warm-white); }
.item-badge-inspo { position: absolute; top: 8px; left: 8px; font-size: 1rem; background: rgba(255,255,255,0.85); border-radius: 50%; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; }

/* ═══ INSPIRATION MODAL ═══ */
.modal-wide { max-width: 700px; }
.inspo-subtitle { font-size: 0.85rem; color: var(--deep-brown); opacity: 0.5; margin-bottom: 1.2rem; }
.inspo-query-row { display: flex; gap: 0.6rem; margin-bottom: 1rem; }
.inspo-input { flex: 1; padding: 0.75rem 1rem; border: 1.5px solid var(--sand); border-radius: var(--radius-full); font-family: var(--font-body); font-size: 0.88rem; outline: none; }
.inspo-input:focus { border-color: var(--terracotta); }
.inspo-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.inspo-tag { padding: 0.35rem 0.8rem; background: var(--cream); border: 1px solid var(--sand); border-radius: var(--radius-full); font-size: 0.75rem; cursor: pointer; transition: all 0.2s; font-family: var(--font-body); }
.inspo-tag:hover { border-color: var(--terracotta); background: var(--warm-white); }
.inspo-results { min-height: 200px; max-height: 50vh; overflow-y: auto; }
.inspo-empty { text-align: center; padding: 3rem; color: var(--deep-brown); opacity: 0.5; }
.inspo-empty p { margin-top: 0.5rem; font-size: 0.88rem; }
.inspo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.inspo-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; cursor: pointer; transition: all 0.2s; }
.inspo-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--terracotta); }
.inspo-card-img { height: 140px; background: #F5F0EB center/cover; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.inspo-card-img span { font-size: 2.5rem; }
.inspo-card-img .inspo-card-photo { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.inspo-card:hover .inspo-card-photo { transform: scale(1.05); }
.inspo-card-visual .inspo-card-img { height: 160px; }
.inspo-card-body { padding: 0.8rem; }
.inspo-card-body h4 { font-size: 0.82rem; font-weight: 600; margin-bottom: 0.3rem; }
.inspo-card-body h4 .inspo-link { color: inherit; text-decoration: none; }
.inspo-card-body h4 .inspo-link:hover { color: var(--terracotta); text-decoration: underline; }
.inspo-card-body p { font-size: 0.72rem; color: var(--deep-brown); opacity: 0.5; margin-bottom: 0.5rem; }
.inspo-card-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; gap: 0.4rem; }
.inspo-price { font-weight: 700; color: var(--terracotta); font-size: 0.85rem; }
.inspo-source { font-size: 0.68rem; color: var(--deep-brown); opacity: 0.4; background: var(--cream); padding: 0.15rem 0.4rem; border-radius: var(--radius-sm); }
.inspo-card-body .btn-add-inspo { width: 100%; padding: 0.5rem; background: var(--charcoal); color: var(--cream); border: none; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.inspo-card-body .btn-add-inspo:hover { background: var(--terracotta); }
.inspo-loading { text-align: center; padding: 2rem; }
.inspo-spinner { display: inline-block; width: 24px; height: 24px; border: 3px solid var(--sand); border-top-color: var(--terracotta); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══ MODALS ═══ */
.modal-overlay { position: fixed; inset: 0; background: rgba(26, 23, 20, 0.4); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 200; padding: 1rem; }
.modal-overlay.active { display: flex; }
.modal { background: var(--white); border-radius: var(--radius-xl); padding: 2rem; width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); animation: modalIn 0.3s var(--ease); }
.modal.modal-sm { max-width: 420px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.97); } to { opacity: 1; transform: none; } }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.modal-header h3 { font-family: var(--font-display); font-size: 1.25rem; }
.modal-close { width: 32px; height: 32px; border: none; background: var(--cream); border-radius: 50%; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; color: var(--deep-brown); }
.modal-close:hover { background: var(--sand); }
.modal-actions { display: flex; justify-content: flex-end; gap: 0.8rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.room-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { cursor: pointer; }
.chip input { display: none; }
.chip span { display: inline-block; padding: 0.5rem 1rem; border: 1.5px solid var(--sand); border-radius: var(--radius-full); font-size: 0.82rem; transition: all 0.2s; }
.chip input:checked + span { background: var(--charcoal); color: var(--cream); border-color: var(--charcoal); }
.chip:hover span { border-color: var(--terracotta); }
.image-upload { border: 2px dashed var(--sand); border-radius: var(--radius-md); cursor: pointer; transition: border-color 0.3s; overflow: hidden; }
.image-upload:hover { border-color: var(--terracotta); }
.image-preview { height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; color: var(--sand); font-size: 0.82rem; }

/* ═══ SHARE ═══ */
.image-drop-zone { border: 2px dashed var(--sand); border-radius: var(--radius-md); cursor: pointer; transition: all 0.3s var(--ease); overflow: hidden; position: relative; background: var(--cream); }
.image-drop-zone:hover { border-color: var(--terracotta); background: rgba(196, 112, 75, 0.03); }
.image-drop-zone.dragover { border-color: var(--terracotta); background: rgba(196, 112, 75, 0.06); }
.image-drop-zone .image-preview { min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem; color: var(--deep-brown); opacity: 0.5; font-size: 0.82rem; padding: 1rem; }
.image-drop-zone .image-preview.has-image { opacity: 1; padding: 0.5rem; }
.image-drop-zone .image-preview.has-image img { width: 100%; max-height: 180px; object-fit: cover; border-radius: var(--radius-sm); display: block; }
.image-drop-zone .image-remove { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; background: rgba(0,0,0,0.5); color: white; border: none; border-radius: 50%; cursor: pointer; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; z-index: 2; transition: background 0.2s; }
.image-drop-zone .image-remove:hover { background: var(--terracotta); }
.share-description { font-size: 0.9rem; color: var(--deep-brown); opacity: 0.7; margin-bottom: 1.5rem; line-height: 1.6; }
.share-link-box { display: flex; gap: 0.5rem; }
.share-link-box input { flex: 1; padding: 0.7rem 1rem; border: 1.5px solid var(--sand); border-radius: var(--radius-sm); font-size: 0.82rem; background: var(--cream); color: var(--charcoal); }
.btn-copy { padding: 0.7rem 1.2rem; background: var(--charcoal); color: var(--cream); border: none; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.82rem; cursor: pointer; transition: background 0.2s; }
.btn-copy:hover { background: var(--terracotta); }
.share-copied { color: var(--sage); font-size: 0.82rem; font-weight: 600; margin-top: 0.8rem; }

/* ═══ COLORS ═══ */
.extracted-colors { margin-top: 1rem; }
.color-swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 0.5rem; }
.color-swatch { width: 56px; height: 56px; border: 3px solid transparent; border-radius: var(--radius-md); cursor: pointer; transition: all 0.2s; position: relative; }
.color-swatch:hover { transform: scale(1.1); border-color: var(--charcoal); }
.color-swatch-hex { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 0.62rem; color: var(--deep-brown); opacity: 0.6; white-space: nowrap; }

/* ═══ COMMENTS ═══ */
.comments-panel { position: fixed; top: 0; right: -400px; width: 380px; height: 100vh; background: var(--white); border-left: 1px solid var(--border); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; z-index: 150; transition: right 0.4s var(--ease); }
.comments-panel.open { right: 0; }
.comments-header { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--border); }
.comments-header h3 { font-family: var(--font-display); font-size: 1.1rem; }
.comments-list { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.comments-empty { text-align: center; color: var(--deep-brown); opacity: 0.4; font-size: 0.88rem; padding: 3rem 0; }
.comment { display: flex; gap: 0.8rem; }
.comment-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--sage); color: white; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 700; flex-shrink: 0; }
.comment-body { flex: 1; }
.comment-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.2rem; }
.comment-header strong { font-size: 0.82rem; }
.comment-time { font-size: 0.72rem; color: var(--deep-brown); opacity: 0.4; }
.comment-body p { font-size: 0.88rem; color: var(--deep-brown); line-height: 1.5; }
.comment-form { display: flex; gap: 0.5rem; padding: 1rem 1.5rem; border-top: 1px solid var(--border); }
.comment-form input { flex: 1; padding: 0.65rem 1rem; border: 1.5px solid var(--sand); border-radius: var(--radius-full); font-size: 0.85rem; outline: none; font-family: var(--font-body); }
.comment-form input:focus { border-color: var(--terracotta); }
.btn-send { width: 36px; height: 36px; border: none; background: var(--charcoal); color: var(--cream); border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.btn-send:hover { background: var(--terracotta); }

/* ═══ ITEM LIGHTBOX (like fancy-ganache) ═══ */
.lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 2000; align-items: center; justify-content: center; }
.lightbox.active { display: flex; }
.lightbox-close { position: absolute; top: 20px; right: 30px; background: none; border: none; color: white; font-size: 40px; cursor: pointer; z-index: 2001; line-height: 1; }
.lightbox-close:hover { color: var(--terracotta); }
.lightbox-content { max-width: 90%; max-height: 90%; display: flex; gap: 30px; align-items: flex-start; }
.lightbox-image { max-width: 60%; max-height: 80vh; border-radius: 10px; object-fit: contain; }
.lightbox-info { background: white; padding: 25px; border-radius: 12px; width: 350px; max-height: 80vh; overflow-y: auto; }
.lightbox-info h2 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 15px; color: var(--charcoal); }
.lightbox-info .info-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #eee; font-size: 0.82rem; }
.lightbox-info .info-row .label { color: var(--deep-brown); opacity: 0.5; }
.lightbox-info .info-row .value { font-weight: 500; }
.lightbox-info .total-price { background: #E8F5F0; padding: 15px; border-radius: var(--radius-sm); margin-top: 15px; text-align: center; }
.lightbox-info .total-price .amount { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; color: var(--terracotta); }
.lightbox-info .total-price .label { font-size: 0.7rem; color: var(--deep-brown); opacity: 0.5; }
.lightbox-info .notes-section { margin-top: 15px; padding: 12px; background: var(--cream); border-radius: var(--radius-sm); font-size: 0.82rem; color: var(--deep-brown); opacity: 0.7; font-style: italic; }
.lightbox-info .lightbox-votes { margin-top: 12px; }
.lightbox-info .lightbox-actions { display: flex; gap: 10px; margin-top: 20px; }
.lightbox-info .btn-lightbox { flex: 1; padding: 12px; border: none; border-radius: var(--radius-sm); cursor: pointer; font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; transition: opacity 0.2s; }
.lightbox-info .btn-lightbox:hover { opacity: 0.85; }
.lightbox-info .btn-lightbox-edit { background: var(--charcoal); color: var(--cream); }
.lightbox-info .btn-lightbox-comment { background: var(--clay); color: white; }
/* Link badges in lightbox */
.link-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--radius-full); font-size: 0.7rem; font-weight: 700; text-decoration: none; transition: opacity 0.2s; }
.link-badge:hover { opacity: 0.85; }
.link-badge.pinterest { background: #E60023; color: white; }
.link-badge.generic { background: #e8e8e8; color: #555; }
.link-badge svg { width: 12px; height: 12px; }

@media (max-width: 768px) {
    .lightbox-content { flex-direction: column; max-width: 95%; gap: 15px; }
    .lightbox-image { max-width: 100%; }
    .lightbox-info { width: 100%; }
}

/* ═══ ITEM VOTES ═══ */
.item-votes { display: flex; gap: 0.4rem; margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--border); }
.vote-btn { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.3rem 0.65rem; border: 1.5px solid var(--sand); border-radius: var(--radius-full); background: var(--white); font-size: 0.78rem; cursor: pointer; transition: all 0.2s var(--ease); color: var(--deep-brown); }
.vote-btn:hover { border-color: var(--clay); background: var(--cream); }
.vote-btn.vote-active.vote-up { background: #E8F5E9; border-color: #81C784; }
.vote-btn.vote-active.vote-down { background: #FBE9E7; border-color: #E57373; }
.vote-count { font-weight: 700; font-size: 0.75rem; }
.vote-summary { font-weight: 500; }
.toast { position: fixed; bottom: -60px; left: 50%; transform: translateX(-50%); padding: 0.8rem 1.5rem; background: var(--charcoal); color: var(--cream); border-radius: var(--radius-full); font-size: 0.85rem; font-weight: 500; box-shadow: var(--shadow-lg); z-index: 300; transition: bottom 0.4s var(--ease); }
.toast.show { bottom: 2rem; }

/* ═══ RESPONSIVE ═══ */
.btn-mobile-menu { display: none; width: 36px; height: 36px; border: none; background: none; cursor: pointer; border-radius: var(--radius-sm); transition: background 0.2s; color: var(--charcoal); }
.btn-mobile-menu:hover { background: var(--cream); }
.project-card:active { transform: scale(0.97); }
.sidebar-overlay { display: none; }

@media (max-width: 768px) {
    .auth-container { grid-template-columns: 1fr; }
    .auth-left { display: none; }
    .project-layout { grid-template-columns: 1fr; }
    .project-sidebar { position: fixed; left: -280px; top: 56px; bottom: 0; width: 260px; z-index: 100; transition: left 0.3s var(--ease); box-shadow: var(--shadow-lg); }
    .project-sidebar.open { left: 0; }
    .btn-mobile-menu { display: flex; align-items: center; justify-content: center; }
    .comments-panel { width: 100%; right: -100%; }
    .items-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.8rem; }
    .item-card-img { height: 120px; }
    .dashboard-header { flex-direction: column; gap: 1rem; align-items: flex-start; }
    .room-header { flex-direction: column; gap: 1rem; align-items: flex-start; }
    .form-row { flex-direction: column; gap: 0; }
    .modal { max-width: 100%; margin: 0.5rem; padding: 1.5rem; }
    .budget-kpis { grid-template-columns: repeat(2, 1fr); }
    .budget-columns { grid-template-columns: 1fr; }
}

/* ─── BUDGET DASHBOARD ──────────────────────────────────────── */
.btn-budget-dashboard { width: 100%; margin-top: 0.5rem; padding: 0.5rem 0.8rem; background: transparent; border: 1.5px solid var(--sand); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.75rem; font-weight: 500; color: var(--deep-brown); cursor: pointer; display: flex; align-items: center; gap: 0.4rem; transition: all 0.2s; }
.btn-budget-dashboard:hover, .btn-budget-dashboard.active { background: var(--terracotta); color: white; border-color: var(--terracotta); }

.budget-dashboard { padding: 0; }
.budget-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.budget-kpi { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 1.2rem; position: relative; }
.budget-kpi-label { font-size: 0.72rem; color: var(--deep-brown); opacity: 0.5; margin-bottom: 0.3rem; text-transform: uppercase; letter-spacing: 0.03em; font-weight: 500; }
.budget-kpi-value { font-size: 1.5rem; font-weight: 700; color: var(--charcoal); font-family: var(--font-heading); }
.budget-kpi-pct { font-size: 0.78rem; color: var(--deep-brown); opacity: 0.5; margin-top: 0.2rem; }
.kpi-green .budget-kpi-value { color: #4A8F4A; }
.kpi-orange .budget-kpi-value { color: #D4860B; }
.kpi-blue .budget-kpi-value { color: #4A7FB5; }

.budget-section { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 1.2rem; margin-bottom: 1rem; }
.budget-section h3 { font-size: 0.88rem; font-weight: 600; color: var(--charcoal); margin-bottom: 1rem; font-family: var(--font-heading); }

/* Progress bar */
.budget-progress-bar { display: flex; height: 24px; border-radius: var(--radius-full); overflow: hidden; background: var(--cream); margin-bottom: 0.8rem; }
.budget-progress-segment { transition: width 0.5s ease; min-width: 0; }
.budget-progress-legend { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.72rem; color: var(--deep-brown); }
.budget-progress-legend span { display: flex; align-items: center; gap: 0.3rem; }
.budget-progress-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }

/* Room bars */
.budget-room-bars { display: flex; flex-direction: column; gap: 0.8rem; }
.budget-room-row { }
.budget-room-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.3rem; font-size: 0.82rem; }
.budget-room-amount { font-weight: 700; color: var(--terracotta); }
.budget-bar-track { height: 18px; background: var(--cream); border-radius: var(--radius-full); overflow: hidden; }
.budget-bar-fill { height: 100%; background: var(--sand); border-radius: var(--radius-full); position: relative; transition: width 0.5s ease; min-width: 2px; }
.budget-bar-paid { height: 100%; background: var(--terracotta); border-radius: var(--radius-full); opacity: 0.85; }
.budget-room-detail { display: flex; gap: 0.8rem; margin-top: 0.2rem; font-size: 0.68rem; }
.budget-detail-paid { color: #4A8F4A; }
.budget-detail-planned { color: var(--deep-brown); opacity: 0.5; }

/* Columns layout */
.budget-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Category list */
.budget-cat-list { display: flex; flex-direction: column; gap: 0.4rem; }
.budget-cat-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0; border-bottom: 1px solid var(--cream); font-size: 0.82rem; }
.budget-cat-emoji { font-size: 1rem; width: 1.5rem; text-align: center; }
.budget-cat-name { flex: 1; }
.budget-cat-count { font-size: 0.68rem; background: var(--cream); padding: 0.1rem 0.4rem; border-radius: var(--radius-full); color: var(--deep-brown); opacity: 0.6; }
.budget-cat-amount { font-weight: 600; color: var(--terracotta); min-width: 70px; text-align: right; }

/* Payer list */
.budget-payer-list { display: flex; flex-direction: column; gap: 0.5rem; }
.budget-payer-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0; border-bottom: 1px solid var(--cream); }
.budget-payer-avatar { width: 28px; height: 28px; background: var(--terracotta); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 600; }
.budget-payer-name { flex: 1; font-size: 0.82rem; }
.budget-payer-amount { font-weight: 700; color: var(--charcoal); font-size: 0.88rem; }
.budget-empty-payer { font-size: 0.82rem; color: var(--deep-brown); opacity: 0.5; padding: 1rem 0; }

.budget-balance { margin-top: 0.8rem; padding: 0.8rem; background: #FFF8F0; border: 1px solid #F0D9C0; border-radius: var(--radius-sm); }
.budget-balance-text { font-size: 0.82rem; color: var(--charcoal); text-align: center; }

/* Item list in budget */
.budget-item-list { display: flex; flex-direction: column; }
.budget-item-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.4rem; border-bottom: 1px solid var(--cream); cursor: pointer; border-radius: var(--radius-sm); transition: background 0.15s; }
.budget-item-row:hover { background: var(--cream); }
.budget-item-emoji { font-size: 1.1rem; width: 1.5rem; text-align: center; }
.budget-item-info { flex: 1; min-width: 0; }
.budget-item-name { display: block; font-size: 0.82rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.budget-item-room { font-size: 0.68rem; color: var(--deep-brown); opacity: 0.5; }
.budget-item-amount { font-weight: 600; color: var(--terracotta); font-size: 0.82rem; white-space: nowrap; }

/* Status badges on item cards */
.item-status-ordered { background: #E8A838 !important; color: white !important; }
.item-status-delivered { background: #5B9BD5 !important; color: white !important; }
.item-status-installed { background: #6BAF6B !important; color: white !important; }

/* ─── EXPLORE PAGE ──────────────────────────────────────────── */
.explore-page { padding: 0; }
.explore-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.5rem; }
.explore-filter-btn { padding: 0.4rem 0.9rem; border: 1.5px solid var(--sand); border-radius: var(--radius-full); background: var(--white); font-family: var(--font-body); font-size: 0.75rem; font-weight: 500; color: var(--deep-brown); cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.explore-filter-btn:hover { border-color: var(--terracotta); }
.explore-filter-btn.active { background: var(--charcoal); color: white; border-color: var(--charcoal); }

.explore-category { margin-bottom: 1.8rem; }
.explore-cat-header { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.8rem; }
.explore-cat-icon { width: 32px; height: 32px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1rem; color: white; }
.explore-cat-header h3 { font-size: 0.95rem; font-weight: 600; font-family: var(--font-heading); color: var(--charcoal); flex: 1; }
.explore-cat-count { font-size: 0.68rem; color: var(--deep-brown); opacity: 0.4; background: var(--cream); padding: 0.2rem 0.5rem; border-radius: var(--radius-full); }

.explore-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.6rem; }
.explore-card { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.9rem; background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-md); text-decoration: none; color: inherit; transition: all 0.2s; }
.explore-card:hover { border-color: var(--terracotta); box-shadow: 0 2px 8px rgba(0,0,0,0.06); transform: translateY(-1px); }
.explore-card-logo { width: 36px; height: 36px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 0.88rem; font-weight: 700; flex-shrink: 0; }
.explore-card-info { flex: 1; min-width: 0; }
.explore-card-name { display: block; font-size: 0.82rem; font-weight: 600; color: var(--charcoal); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.explore-card-desc { display: block; font-size: 0.68rem; color: var(--deep-brown); opacity: 0.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.explore-card-arrow { flex-shrink: 0; opacity: 0; color: var(--terracotta); transition: opacity 0.2s; }
.explore-card:hover .explore-card-arrow { opacity: 1; }

@media (max-width: 768px) {
    .explore-grid { grid-template-columns: 1fr; }
    .explore-filters { gap: 0.3rem; }
    .explore-filter-btn { font-size: 0.7rem; padding: 0.35rem 0.6rem; }
}
