:root {
    --gold: #C9A227;
    --gold-light: #D4B84A;
    --gold-dark: #A8871E;
    --black: #0A0A0A;
    --black-light: #1A1A1A;
    --black-medium: #2A2A2A;
    --white: #FFFFFF;
    --off-white: #F8F8F8;
    --gray: #888888;
    --gray-light: #E0E0E0;
    --gray-dark: #444444;
}

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

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--black);
    color: var(--white);
    min-height: 100vh;
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--black-medium);
    background: var(--black);
}

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

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    color: var(--gray);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--white);
    background: var(--black-light);
}

.nav-link.active {
    color: var(--gold);
}

.header-signin {
    background: var(--gold);
    color: var(--black);
    text-decoration: none;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.header-signin:hover {
    background: var(--gold-light);
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--gold);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--black);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: 'Fraunces', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--gray);
}

.header-badge {
    font-size: 0.75rem;
    color: var(--gray);
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--black-medium);
    border-radius: 100px;
}

/* Chat Container */
.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
}


/* Welcome Message */
.welcome-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1rem;
    flex: 1;
}

.welcome-icon {
    width: 80px;
    height: 80px;
    background: var(--gold);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 2.5rem;
    color: var(--black);
    margin-bottom: 1.5rem;
}

.welcome-intro {
    color: var(--white);
    font-size: 1.1rem;
    max-width: 440px;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.quick-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    max-width: 500px;
}

.quick-prompt {
    background: var(--black-light);
    border: 1px solid var(--black-medium);
    color: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-prompt:hover {
    border-color: var(--gold);
    background: var(--black-medium);
}

/* Onboarding Flow */
.ob-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ob-screen {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 0;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform: translateX(40px);
}

.ob-screen-active {
    display: flex;
    opacity: 1;
    transform: translateX(0);
}

.ob-screen-exit {
    display: flex;
    opacity: 0;
    transform: translateX(-40px);
}

.ob-screen-enter {
    transform: translateX(40px);
    opacity: 0;
}

.ob-screen-enter.ob-screen-active {
    transform: translateX(0);
    opacity: 1;
}

.ob-scroll {
    flex: 1;
    overflow-y: auto;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ob-headline {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.25;
    margin-bottom: 0.5rem;
}

.ob-sub {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Footer */
.ob-footer {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.ob-footer-nodots {
    padding-top: 0.5rem;
    padding-bottom: 1rem;
}

.ob-next-btn {
    width: 100%;
    padding: 14px;
    background: var(--gold);
    color: var(--black);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.15s;
}

.ob-next-btn:hover { opacity: 0.9; }
.ob-next-btn:active { opacity: 0.8; }

.ob-skip {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 0.82rem;
    cursor: pointer;
    font-family: inherit;
    padding: 4px 8px;
    transition: color 0.15s;
}

.ob-skip:hover { color: var(--white); }

.ob-dots {
    display: flex;
    gap: 6px;
    margin-top: 2px;
}

.ob-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--black-medium);
    transition: background 0.2s;
}

.ob-dot-active {
    background: var(--gold);
}

/* Screen 1: Calculator cards */
.ob-calc-cards {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.ob-calc-card {
    width: 100%;
    background: var(--black-light);
    border: 1px solid var(--black-medium);
    border-radius: 14px;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    color: var(--white);
    transition: border-color 0.2s;
    overflow: hidden;
}

.ob-calc-card:hover { border-color: var(--gold); }

.ob-calc-front {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
}

.ob-calc-card.ob-calc-flipped .ob-calc-front { display: none; }

.ob-calc-back {
    display: none;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.85rem 1rem;
}

.ob-calc-card.ob-calc-flipped .ob-calc-back { display: flex; }
.ob-calc-card.ob-calc-flipped { border-color: var(--gold); }

.ob-calc-icon { font-size: 1.4rem; flex-shrink: 0; }
.ob-calc-label { font-size: 0.92rem; font-weight: 500; flex: 1; text-align: left; }
.ob-calc-tap { font-size: 0.72rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.05em; }

.ob-calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
}

.ob-calc-dim { color: var(--gray); }
.ob-calc-strike { color: #888; text-decoration: line-through; }
.ob-calc-diy { color: #4CAF50; font-weight: 600; }

.ob-calc-badge {
    margin-top: 0.2rem;
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold);
    font-family: 'Fraunces', serif;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    text-align: center;
}

/* Screen 2: Before/After */
.ob-ba-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    margin-bottom: 0.75rem;
}

.ob-ba-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.ob-ba-img {
    width: 100%;
    border-radius: 12px;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.ob-ba-label {
    font-size: 0.75rem;
    color: var(--gray);
    font-weight: 500;
}

.ob-ba-arrow {
    font-size: 1.4rem;
    color: var(--gold);
    flex-shrink: 0;
}

.ob-ba-text {
    font-size: 0.88rem;
    color: var(--gray);
    line-height: 1.5;
    max-width: 400px;
}

/* Screen 3: Action cards */
.ob-action-cards {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin-bottom: 0.75rem;
}

.ob-action-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--black-light);
    border: 1px solid var(--black-medium);
    color: var(--white);
    padding: 0.85rem 1rem;
    border-radius: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.ob-action-card:hover {
    border-color: var(--gold);
    background: var(--black-medium);
    transform: translateY(-1px);
}

.ob-action-card:active {
    transform: translateY(0);
    border-color: var(--gold);
}

.ob-action-emoji {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 34px;
    text-align: center;
}

.ob-action-body {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.ob-action-savings {
    font-family: 'Fraunces', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold);
    line-height: 1.2;
}

.ob-action-sub {
    font-size: 0.78rem;
    color: var(--gray);
    line-height: 1.3;
}

.ob-free-note {
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 0.6rem;
}

.ob-input-row {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    align-items: flex-end;
}

.ob-input-row textarea {
    flex: 1;
    background: var(--black-light);
    border: 1px solid var(--black-medium);
    color: var(--white);
    padding: 0.85rem 1rem;
    border-radius: 100px;
    font-size: 0.95rem;
    font-family: inherit;
    resize: none;
    outline: none;
    min-height: 44px;
    max-height: 120px;
}

.ob-input-row textarea:focus { border-color: var(--gold); }
.ob-input-row .send-button { flex-shrink: 0; }

/* About Modal */
.about-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.about-modal {
    background: var(--black-light);
    border: 1px solid var(--black-medium);
    border-radius: 20px;
    padding: 2rem;
    max-width: 460px;
    width: 100%;
    position: relative;
    text-align: center;
}

.about-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--gray);
    font-size: 1.5rem;
    cursor: pointer;
}

.about-modal-close:hover {
    color: var(--white);
}

.about-modal-icon {
    width: 56px;
    height: 56px;
    background: var(--gold);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.8rem;
    color: var(--black);
    margin: 0 auto 1rem;
}

.about-modal h2 {
    font-family: 'Fraunces', serif;
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.about-modal p {
    color: var(--gray-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    text-align: left;
}

.about-modal p:last-child {
    margin-bottom: 0;
}

/* About Button */
.about-btn {
    background: none;
    border: 1px solid var(--black-medium);
    color: var(--gray);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.about-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.about-btn-nav {
    width: 28px;
    height: 28px;
}

.header-right-guest {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Messages */
.messages {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-bottom: 1rem;
}

.message {
    display: flex;
    gap: 0.75rem;
    max-width: 88%;
    align-items: flex-start;
}

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message.assistant {
    align-self: flex-start;
}

.message-avatar {
    width: 32px;
    height: 32px;
    background: var(--gold);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--black);
    flex-shrink: 0;
    margin-top: 2px;
}

.message-content {
    background: var(--black-light);
    padding: 0.875rem 1.125rem;
    border-radius: 18px;
    border-top-left-radius: 6px;
    min-width: 0;
}

.message.user .message-content {
    background: var(--gold);
    color: var(--black);
    border-radius: 18px;
    border-top-right-radius: 6px;
    border-top-left-radius: 18px;
}

.message-content p {
    line-height: 1.6;
    font-size: 0.95rem;
}

.message-content ul {
    margin: 0.75rem 0;
    padding-left: 1.25rem;
}

.message-content li {
    margin: 0.4rem 0;
    line-height: 1.5;
}

.message-content strong {
    font-weight: 600;
}

.message-content img.message-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 12px;
    margin: 0.75rem 0;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.message-content img.message-image:hover {
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

.viz-loading-indicator {
    width: 100%;
}

.message-content img[alt^="Visualization"] {
    max-width: 100%;
    border-radius: 12px;
    margin-top: 0.75rem;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.message-content img[alt^="Visualization"]:hover {
    transform: scale(1.01);
    transition: transform 0.2s ease;
}

.image-container {
    position: relative;
    display: inline-block;
    margin: 0.75rem 0;
}

.image-container img.message-image {
    margin: 0;
}

.image-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.image-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px solid var(--gray-light, #3a3a3a);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--gray-text, #aaa);
    font-size: 0.72rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.image-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gold, #d4a843);
    border-color: var(--gold, #d4a843);
}

.image-action-btn svg {
    flex-shrink: 0;
}

.image-action-success {
    color: #81c784 !important;
    border-color: #81c784 !important;
}

.tool-list-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;
}

.tool-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--black-medium);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--black-medium);
}

.checkbox-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--gold);
}

.tool-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.tool-info .tool-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.shop-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.amazon-shop-link,
.hd-shop-link {
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
}

.amazon-shop-link {
    color: #FF9900;
}

.hd-shop-link {
    color: var(--gold);
}

.amazon-shop-link:hover,
.hd-shop-link:hover {
    text-decoration: underline;
}

.action-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    margin: 0.5rem 0;
    background: transparent;
    border: 1px solid var(--gold);
    border-radius: 8px;
    color: var(--gold);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-link-btn:hover {
    background: rgba(201, 162, 39, 0.15);
    transform: translateY(-1px);
}

.action-link-btn:active {
    transform: translateY(0);
}

.shopping-list-header {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.shopping-list-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.shopping-section-order-now {
    background: rgba(76, 175, 80, 0.08);
    border-left: 3px solid rgba(76, 175, 80, 0.4);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
}

.shopping-section-order-now .shopping-section-header {
    color: #66BB6A;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.shopping-section-pickup {
    background: rgba(212, 168, 67, 0.08);
    border-left: 3px solid rgba(212, 168, 67, 0.4);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
}

.shopping-section-pickup .shopping-section-header {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.shopping-section-pickup .pickup-reason {
    display: block;
    font-size: 0.78rem;
    color: rgba(212, 168, 67, 0.7);
    margin-top: 0.15rem;
    font-style: italic;
}

.shopping-cost-summary {
    text-align: center;
    padding: 0.6rem 0.75rem;
    margin: 0.5rem 0;
    font-size: 0.88rem;
    color: var(--light);
    line-height: 1.5;
}

.shopping-cost-summary strong {
    color: var(--light);
}

.shopping-tip {
    font-size: 0.82rem;
    color: var(--gray);
    font-style: italic;
    padding: 0.25rem 0 0.5rem;
}

.shopping-card {
    background: var(--gray-dark, #1a1a1a);
    border: 1px solid var(--gray-light, #3a3a3a);
    border-radius: 16px;
    overflow: hidden;
    margin: 1rem 0;
    max-width: 500px;
}

.shopping-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-light, #3a3a3a);
}

.shopping-card-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--gold, #d4a843);
}

.shopping-card-subtitle {
    font-size: 0.72rem;
    color: var(--gray-text, #aaa);
    margin-top: 2px;
}

.shopping-section-online,
.shopping-section-store {
    padding: 1rem 1.25rem;
}

.shopping-section-online {
    border-bottom: 1px solid var(--gray-light, #3a3a3a);
}

.shopping-section-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white, #fff);
    flex-wrap: wrap;
}

.shopping-section-icon {
    font-size: 1rem;
}

.shopping-section-meta {
    font-weight: 400;
    font-size: 0.68rem;
    color: var(--gray-text, #aaa);
    margin-left: auto;
}

.shopping-section-divider {
    height: 1px;
    background: var(--gray-light, #3a3a3a);
    margin: 0.6rem 0;
}

.shopping-item-row {
    display: flex;
    align-items: flex-start;
    padding: 0.5rem 0;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.shopping-item-row:last-of-type {
    border-bottom: none;
}

.shopping-item-info {
    flex: 1;
    min-width: 0;
}

.shopping-item-name {
    font-size: 0.75rem;
    color: var(--white, #fff);
    font-weight: 500;
}

.shopping-item-reason {
    font-size: 0.65rem;
    color: var(--gray-text, #aaa);
    margin-top: 2px;
    font-style: italic;
}

.shopping-item-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 4px;
}

.shopping-item-link {
    font-size: 0.62rem;
    padding: 2px 8px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.shopping-item-link:hover {
    opacity: 0.8;
}

.shopping-link-amazon {
    background: rgba(255, 153, 0, 0.15);
    color: #FF9900;
    border: 1px solid rgba(255, 153, 0, 0.3);
}

.shopping-link-hd {
    background: rgba(246, 100, 2, 0.12);
    color: #F66402;
    border: 1px solid rgba(246, 100, 2, 0.25);
}

.shopping-item-qty {
    font-size: 0.72rem;
    color: var(--gray-text, #aaa);
    min-width: 1.5rem;
    text-align: center;
}

.shopping-item-price {
    font-size: 0.75rem;
    color: var(--white, #fff);
    font-weight: 600;
    min-width: 3.5rem;
    text-align: right;
    white-space: nowrap;
}

.shopping-subtotal {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--white, #fff);
    border-top: 1px solid var(--gray-light, #3a3a3a);
    margin-top: 0.25rem;
}

.shopping-cart-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: var(--gold, #d4a843);
    color: var(--black, #111);
    text-align: center;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.78rem;
    text-decoration: none;
    margin-top: 0.5rem;
    transition: opacity 0.2s;
    font-family: inherit;
}

.shopping-cart-btn:hover {
    opacity: 0.9;
}

.shopping-search-fallback {
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.shopping-fallback-label {
    font-size: 0.65rem;
    color: var(--gray-text, #aaa);
    margin-bottom: 0.4rem;
}

.shopping-search-link {
    display: inline-block;
    padding: 3px 8px;
    margin: 2px 4px 2px 0;
    background: rgba(255,255,255,0.06);
    border-radius: 6px;
    font-size: 0.68rem;
    color: var(--gold, #d4a843);
    text-decoration: none;
    transition: background 0.2s;
}

.shopping-search-link:hover {
    background: rgba(255,255,255,0.12);
}

.shopping-store-item {
    display: flex;
    align-items: flex-start;
    padding: 0.6rem 0;
    gap: 0.6rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.shopping-store-checkbox {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding-top: 2px;
}

.shopping-store-checkbox input {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

.store-checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--gray-light, #3a3a3a);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.shopping-store-checkbox input:checked ~ .store-checkmark {
    background: var(--gold, #d4a843);
    border-color: var(--gold, #d4a843);
}

.shopping-store-checkbox input:checked ~ .store-checkmark::after {
    content: '\2713';
    color: var(--black, #111);
    font-size: 12px;
    font-weight: 700;
}

.shopping-store-item-info {
    flex: 1;
    min-width: 0;
}

.shopping-item-recommendation {
    font-size: 0.65rem;
    color: var(--gold-light, #e8c56d);
    margin-top: 3px;
}

.shopping-item-store-reason {
    font-size: 0.62rem;
    color: var(--gray-text, #aaa);
    margin-top: 2px;
    font-style: italic;
}

.shopping-store-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.5rem;
}

.shopping-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 14px;
    border: 1px solid var(--gray-light, #3a3a3a);
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    color: var(--gray-text, #aaa);
    font-size: 0.7rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.shopping-action-btn:hover {
    background: rgba(255,255,255,0.1);
    color: var(--gold, #d4a843);
    border-color: var(--gold, #d4a843);
}

.shopping-card .shopping-store-tip {
    font-size: 0.62rem;
    color: var(--gray-text, #aaa);
    margin-top: 0.75rem;
    font-style: italic;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.shopping-savings-footer {
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,0.03);
    border-top: 1px solid var(--gray-light, #3a3a3a);
}

.shopping-savings-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.72rem;
    color: var(--gray-text, #aaa);
}

.shopping-savings-amount {
    font-weight: 600;
    color: var(--white, #fff);
}

.shopping-savings-highlight {
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px solid var(--gray-light, #3a3a3a);
    color: var(--gold, #d4a843) !important;
    font-weight: 700;
    font-size: 0.82rem;
}

.shopping-savings-highlight .shopping-savings-amount {
    color: var(--gold, #d4a843);
    font-size: 0.82rem;
}

.affiliate-links-section {
    padding: 14px 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.affiliate-links-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--gold, #d4a843);
    margin-bottom: 10px;
    text-transform: uppercase;
}
.affiliate-link-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    margin-bottom: 6px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: var(--text, #e0e0e0);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}
.affiliate-link-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold, #d4a843);
}
.affiliate-link-note {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-dim, #999);
    font-weight: 400;
}
.affiliate-disclosure {
    margin-top: 10px;
    font-size: 0.72rem;
    color: var(--text-dim, #999);
    text-align: center;
}
.affiliate-disclosure a {
    color: var(--gold, #d4a843);
    text-decoration: underline;
}

.shopping-actions-footer {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-wrap: wrap;
}

.shopping-action-btn-main {
    flex: 1;
    min-width: 100px;
    padding: 10px 8px;
    background: rgba(201, 162, 39, 0.12);
    color: var(--gold, #d4a843);
    border: 1px solid rgba(201, 162, 39, 0.25);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: inherit;
    text-align: center;
    transition: background 0.2s;
}

.shopping-action-btn-main:hover {
    background: rgba(201, 162, 39, 0.22);
}

.delivery-choice-container {
    padding: 16px 16px 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.delivery-choice-prompt {
    font-size: 0.85rem;
    color: var(--gray, #aaa);
    margin: 0 0 10px 0;
    font-weight: 500;
}
.delivery-choice-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.delivery-choice-btn {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(201, 162, 39, 0.08);
    border: 1.5px solid rgba(201, 162, 39, 0.25);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-align: left;
}
.delivery-choice-btn:hover {
    background: rgba(201, 162, 39, 0.18);
    border-color: rgba(201, 162, 39, 0.5);
    transform: translateY(-1px);
}
.delivery-choice-btn:active {
    transform: translateY(0);
}
.delivery-choice-btn.delivery-chosen {
    background: rgba(201, 162, 39, 0.2);
    border-color: var(--gold, #d4a843);
}
.delivery-choice-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}
.delivery-choice-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold, #d4a843);
    line-height: 1.3;
}

.receipt-card {
    background: var(--bg-card, #1a1a1a);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    margin-top: 12px;
}

.receipt-card-header {
    padding: 20px 20px 12px;
    text-align: center;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
}

.receipt-card-title {
    font-family: 'Fraunces', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold, #d4a843);
    margin-bottom: 4px;
}

.receipt-card-date {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
}

.receipt-card-body {
    padding: 16px 20px;
}

.receipt-cost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

.receipt-cost-row.contractor {
    text-decoration: line-through;
    opacity: 0.6;
}

.receipt-cost-row.contractor .receipt-cost-value {
    font-size: 1.1rem;
    text-decoration: line-through;
}

.receipt-cost-row.actual .receipt-cost-value {
    color: #fff;
    font-weight: 600;
}

.receipt-cost-row.saved {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 12px;
    margin-top: 4px;
}

.receipt-cost-row.saved .receipt-cost-label {
    color: var(--gold, #d4a843);
    font-weight: 700;
    font-size: 0.9rem;
}

.receipt-cost-row.saved .receipt-cost-value {
    color: var(--gold, #d4a843);
    font-weight: 700;
    font-size: 1.3rem;
}

.receipt-card-lifetime {
    display: none;
    padding: 10px 20px;
    text-align: center;
    border-top: 1px dashed rgba(255,255,255,0.1);
    background: rgba(212, 168, 67, 0.08);
}

.receipt-lifetime-text {
    font-size: 0.85rem;
    color: var(--gold, #d4a843);
}

.receipt-lifetime-text strong {
    font-size: 1.1rem;
}

.receipt-card-rating {
    padding: 12px 20px;
    text-align: center;
    border-top: 1px dashed rgba(255,255,255,0.1);
}

.receipt-rating-label {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
}

.receipt-stars {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.receipt-star {
    font-size: 1.6rem;
    color: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: color 0.2s, transform 0.15s;
}

.receipt-star:hover,
.receipt-star.active {
    color: var(--gold, #d4a843);
    transform: scale(1.15);
}

.receipt-card-footer {
    padding: 12px 20px 16px;
    border-top: 1px dashed rgba(255,255,255,0.1);
    text-align: center;
}

.receipt-lifetime {
    font-size: 0.82rem;
    color: var(--gold, #d4a843);
    margin-bottom: 10px;
}

.receipt-card-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.receipt-card-actions button {
    padding: 8px 16px;
    background: rgba(201, 162, 39, 0.12);
    color: var(--gold, #d4a843);
    border: 1px solid rgba(201, 162, 39, 0.25);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: inherit;
}

.receipt-scan-fab {
    position: fixed;
    bottom: 90px;
    right: 16px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gold, #d4a843);
    color: #1a1a1a;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.2s;
}

.receipt-scan-fab:hover {
    transform: scale(1.1);
}

.receipt-scan-fab.scanning {
    animation: scan-pulse 1s ease-in-out infinite;
    pointer-events: none;
}

@keyframes scan-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.95); }
}

.sms-list-btn {
    display: block;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.6rem 1rem;
    background: rgba(201, 162, 39, 0.12);
    border: 1.5px solid var(--gold);
    color: var(--gold);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body);
}

.sms-list-btn:hover {
    background: rgba(201, 162, 39, 0.22);
    transform: translateY(-1px);
}

.sms-list-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.sms-list-btn.sms-sent {
    background: rgba(76, 175, 80, 0.15);
    border-color: #4caf50;
    color: #4caf50;
}

.phone-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.phone-modal {
    background: var(--card-bg, #1a1a2e);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 16px;
    padding: 2rem;
    max-width: 360px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.phone-modal h3 {
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin: 0 0 0.5rem;
}

.phone-modal p {
    color: var(--text-secondary, #aaa);
    font-size: 0.9rem;
    margin: 0 0 1rem;
    line-height: 1.4;
}

.phone-modal input[type="tel"] {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1.5px solid rgba(201, 162, 39, 0.3);
    border-radius: 10px;
    color: var(--text-primary, #fff);
    font-size: 1.1rem;
    font-family: var(--font-body);
    letter-spacing: 0.5px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}

.phone-modal input[type="tel"]:focus {
    border-color: var(--gold);
}

.phone-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--gray, #888);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.phone-modal-error {
    color: #f44336;
    font-size: 0.82rem;
    margin-top: 0.5rem;
}

.phone-modal-send {
    width: 100%;
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--gold);
    color: #1a1a2e;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-body);
    transition: opacity 0.2s;
}

.phone-modal-send:hover {
    opacity: 0.9;
}

.phone-modal-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.prep-steps-section {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(201, 162, 39, 0.05);
    border-left: 3px solid var(--gold);
    border-radius: 8px;
}

.prep-steps-header {
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.prep-steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.prep-steps-list li {
    font-size: 0.85rem;
    color: var(--light);
    padding: 0.35rem 0;
    padding-left: 1.2rem;
    position: relative;
    line-height: 1.4;
}

.prep-steps-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--gold);
}

.gold-button {
    background: var(--gold);
    color: var(--black);
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease;
}

.gold-button:hover {
    background: var(--gold-light);
}

.secondary-button {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--black-medium);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.secondary-button:hover {
    background: var(--black-medium);
    border-color: var(--gray);
}

.copy-feedback {
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 500;
}

/* Typing Indicator */
.typing-dots {
    display: flex;
    gap: 4px;
    padding: 0.5rem 0;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--gray);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    30% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

/* Input Area */
.input-area {
    padding: 0.5rem 1rem;
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
    border-top: 1px solid var(--black-medium);
    background: var(--black);
}

.image-preview {
    position: relative;
    padding: 0.5rem 0.5rem 0;
}

.image-preview img {
    max-height: 120px;
    border-radius: 12px;
}

.remove-image {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 24px;
    height: 24px;
    background: var(--black);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.input-field-wrapper {
    flex: 1;
    display: flex;
    align-items: flex-end;
    background: var(--black-light);
    border-radius: 24px;
    border: 1px solid var(--black-medium);
    padding: 4px 4px 4px 6px;
    transition: border-color 0.2s ease;
    min-height: 44px;
}

.input-field-wrapper:focus-within {
    border-color: var(--gold);
}

.inline-photo-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--gold);
    transition: all 0.2s ease;
    margin-bottom: 2px;
    align-self: flex-end;
    position: relative;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.12), rgba(201, 162, 39, 0.04));
    border: 1px solid rgba(201, 162, 39, 0.25);
}

.inline-photo-btn::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.4), transparent 40%, transparent 60%, rgba(201, 162, 39, 0.2));
    opacity: 0;
    animation: photoBtnShimmer 3s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes photoBtnShimmer {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.inline-photo-btn:hover {
    color: var(--gold);
    background: rgba(201, 162, 39, 0.18);
    border-color: rgba(201, 162, 39, 0.5);
    transform: scale(1.08);
}

.inline-photo-btn input {
    display: none;
}

.photo-btn-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.sparkle-overlay {
    position: absolute;
    top: -4px;
    right: -5px;
    animation: sparkleFloat 2.5s ease-in-out infinite;
    filter: drop-shadow(0 0 2px rgba(201, 162, 39, 0.6));
}

@keyframes sparkleFloat {
    0%, 100% { transform: scale(0.8) rotate(0deg); opacity: 0.7; }
    50% { transform: scale(1.1) rotate(15deg); opacity: 1; }
}

.photo-btn-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--black);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 10px;
    white-space: nowrap;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    animation: tooltipFadeIn 0.3s ease-out;
}

.photo-btn-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--gold);
}

.photo-btn-tooltip.show {
    display: block;
}

@keyframes tooltipFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(4px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

textarea {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1rem;
    font-family: inherit;
    padding: 6px 8px;
    resize: none;
    max-height: 120px;
    line-height: 1.5;
}

textarea::placeholder {
    color: var(--gray);
}

textarea:focus {
    outline: none;
}

.send-button {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--gold);
    border: none;
    border-radius: 50%;
    color: var(--black);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.send-button:hover {
    background: var(--gold-light);
    transform: scale(1.05);
}

.send-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.disclaimer {
    text-align: center;
    font-size: 0.7rem;
    color: var(--gray-dark);
    margin-top: 0.4rem;
    padding: 0 0.5rem;
}

.site-footer-links {
    text-align: center;
    font-size: 0.7rem;
    color: var(--gray-dark);
    margin-top: 0.25rem;
    padding: 0 0.5rem;
}

.site-footer-links a {
    color: var(--gray-dark);
    text-decoration: none;
}

.site-footer-links a:hover {
    color: var(--gold);
    text-decoration: underline;
}

.sms-consent-text {
    font-size: 0.72rem;
    color: var(--gray-dark);
    text-align: center;
    margin-top: 8px;
    line-height: 1.4;
}

.sms-consent-text a {
    color: var(--gold);
    text-decoration: none;
}

.sms-consent-text a:hover {
    text-decoration: underline;
}

/* Scrollbar */
.chat-container::-webkit-scrollbar {
    width: 6px;
}

.chat-container::-webkit-scrollbar-track {
    background: transparent;
}

.chat-container::-webkit-scrollbar-thumb {
    background: var(--black-medium);
    border-radius: 3px;
}

.chat-container::-webkit-scrollbar-thumb:hover {
    background: var(--gray-dark);
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .app-container {
        max-width: 100%;
    }
    
    header {
        padding: 0.5rem 0.75rem;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        border-radius: 10px;
    }
    
    .logo {
        gap: 0.5rem;
    }
    
    .logo-name {
        font-size: 1.1rem;
    }
    
    .logo-tagline {
        font-size: 0.65rem;
    }
    
    .welcome-intro {
        font-size: 1rem;
    }
    
    .quick-prompts {
        flex-direction: column;
    }
    
    .message {
        max-width: 92%;
    }
    
    .header-nav {
        gap: 0.15rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.4rem;
        font-size: 0.75rem;
    }
    
    .chat-container {
        padding: 0.75rem;
    }
    
    .input-area {
        padding: 0.4rem 0.5rem;
        padding-bottom: max(0.4rem, env(safe-area-inset-bottom));
    }
    
    .disclaimer {
        font-size: 0.65rem;
        margin-top: 0.25rem;
    }
    
    .message-content {
        padding: 0.75rem 1rem;
    }
}

/* Sign-in button: subtle when user is chatting */
.header-signin {
    transition: all 0.3s ease;
}

body.has-messages .header-signin {
    background: transparent;
    color: var(--gray);
    border: 1px solid var(--black-medium);
    font-weight: 500;
    font-size: 0.8rem;
    padding: 0.4rem 0.9rem;
}

body.has-messages .header-signin:hover {
    color: var(--gold);
    border-color: var(--gold);
    background: rgba(201, 162, 39, 0.1);
}

/* Authentication Pages */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.auth-card {
    background: var(--black-light);
    border: 1px solid var(--black-medium);
    border-radius: 24px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.auth-card h1 {
    font-family: 'Fraunces', serif;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--gray);
    margin-bottom: 2rem;
}

.google-signin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    background: #ffffff;
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.google-signin-btn:hover {
    background: #f5f5f5;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.google-icon {
    flex-shrink: 0;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    gap: 1rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.auth-divider span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    white-space: nowrap;
}

.auth-form {
    text-align: left;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--white);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--black-medium);
    border: 1px solid var(--black-medium);
    border-radius: 12px;
    color: var(--white);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--gold);
}

.form-group input::placeholder {
    color: var(--gray);
}

.auth-button {
    width: 100%;
    padding: 1rem;
    background: var(--gold);
    color: var(--black);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 0.5rem;
}

.auth-button:hover {
    background: var(--gold-light);
}

.auth-switch {
    margin-top: 1.5rem;
    color: var(--gray);
}

.auth-switch a {
    color: var(--gold);
    text-decoration: none;
}

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

.auth-guest {
    display: block;
    margin-top: 1rem;
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9rem;
}

.auth-guest:hover {
    color: var(--white);
}

.flash-message {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.flash-message.error {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ff6b6b;
}

.flash-message.success {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #51cf66;
}

/* Onboarding Page */
.onboarding-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    overflow-y: auto;
}

.onboarding-card {
    background: var(--black-light);
    border: 1px solid var(--black-medium);
    border-radius: 24px;
    padding: 2.5rem;
    width: 100%;
    max-width: 600px;
    margin: 2rem 0;
}

.onboarding-form {
    text-align: left;
}

.skill-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.skill-option {
    cursor: pointer;
}

.skill-option input {
    display: none;
}

.skill-card {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: var(--black-medium);
    border: 2px solid var(--black-medium);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.skill-option input:checked + .skill-card {
    border-color: var(--gold);
    background: rgba(201, 162, 39, 0.1);
}

.skill-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.skill-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.skill-desc {
    font-size: 0.85rem;
    color: var(--gray);
}

.form-hint {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem;
    background: var(--black-medium);
    border-radius: 12px;
}

.tool-checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.tool-checkbox-item:hover {
    background: var(--black-light);
}

.tool-checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
    cursor: pointer;
}

.tool-checkbox-item .tool-name {
    font-size: 0.9rem;
}

/* Page Content */
.page-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

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

.page-header h1 {
    font-family: 'Fraunces', serif;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--gray);
}

.tools-form {
    max-width: 800px;
}

.custom-tool-input {
    display: flex;
    gap: 0.5rem;
}

.custom-tool-input input {
    flex: 1;
    padding: 0.875rem 1rem;
    background: var(--black-medium);
    border: 1px solid var(--black-medium);
    border-radius: 12px;
    color: var(--white);
    font-size: 1rem;
    font-family: inherit;
}

.custom-tool-input input:focus {
    outline: none;
    border-color: var(--gold);
}

.owned-custom-tools {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--black-medium);
}

.owned-custom-tools h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.custom-tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.no-custom-tools {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Past Projects Page */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
}

.project-card {
    display: flex;
    align-items: center;
    background: var(--black-light);
    border: 1px solid var(--black-medium);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.project-card:hover {
    border-color: var(--gold);
}

.project-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.25rem;
    text-decoration: none;
    color: var(--white);
}

.project-link h3 {
    font-size: 1rem;
    font-weight: 600;
}

.project-date {
    font-size: 0.85rem;
    color: var(--gray);
}

.project-messages {
    font-size: 0.8rem;
    color: var(--gray);
}

.project-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.25rem;
}

.project-info h3 {
    font-size: 1rem;
    font-weight: 600;
}

.project-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-right: 1rem;
}

.status-select {
    background: var(--black-medium);
    border: 1px solid var(--black-medium);
    border-radius: 8px;
    color: var(--white);
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
}

.status-select:focus {
    outline: none;
    border-color: var(--gold);
}

.project-card.status-in-progress {
    border-left: 3px solid var(--gold);
}

.project-card.status-completed {
    border-left: 3px solid #28a745;
}

.project-card.status-want-to-do {
    border-left: 3px solid var(--gray);
}

.project-card.conversation-card {
    border-left: 3px solid transparent;
}

.project-card.conversation-card.follow-up {
    border-left: 3px solid var(--gold);
    background: linear-gradient(90deg, rgba(201, 162, 39, 0.1) 0%, var(--black-light) 30%);
}

.follow-up-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    background: var(--gold);
    color: var(--black);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.project-tips {
    font-size: 0.85rem;
    color: var(--gray);
    font-style: italic;
    margin-top: 0.25rem;
}

.projects-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
}

.project-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.section-title {
    font-family: 'Fraunces', serif;
    font-size: 1.1rem;
    color: var(--gold);
    margin: 0;
}

.section-hint {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0;
}

.delete-project {
    padding: 0.75rem;
    background: transparent;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 1.25rem;
    transition: color 0.2s ease;
}

.delete-project:hover {
    color: #ff6b6b;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.empty-state .auth-button {
    width: auto;
    display: inline-block;
    padding: 0.875rem 2rem;
}

/* My Home Page */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
}

.room-card {
    background: var(--black-light);
    border: 1px solid var(--black-medium);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.2s ease;
}

.room-card:hover {
    border-color: var(--gold);
}

.room-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.room-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.room-status {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.room-status.has-photo {
    color: var(--gold);
}

.room-status .status-icon {
    margin-right: 0.25rem;
}

.room-action-btn {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.upload-btn {
    background: var(--gold);
    color: var(--black);
    border: none;
}

.upload-btn:hover {
    background: var(--gold-light);
}

.view-btn {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}

.view-btn:hover {
    background: rgba(201, 162, 39, 0.1);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: var(--black-light);
    border: 1px solid var(--black-medium);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--black-medium);
}

.modal-header h2 {
    font-family: 'Fraunces', serif;
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: var(--white);
}

.modal-body {
    padding: 1.5rem;
}

.modal-body img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--black-medium);
}

.modal-actions .gold-button,
.modal-actions .secondary-button {
    flex: 1;
    text-align: center;
}

.delete-btn:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

/* Analysis Loading */
#analysis-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    gap: 1rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--black-medium);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Findings */
.findings-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.finding-item {
    background: var(--black-medium);
    border-radius: 12px;
    padding: 1rem;
}

.finding-item.confirmed {
    border: 1px solid var(--gold);
}

.finding-item.rejected {
    opacity: 0.5;
}

.finding-question {
    margin-bottom: 0.75rem;
}

.finding-label {
    font-weight: 600;
    color: var(--gold);
    margin-right: 0.5rem;
}

.finding-value {
    color: var(--white);
}

.finding-confirm {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--gray);
}

.confirm-btn {
    padding: 0.375rem 0.875rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    border: 1px solid var(--black-medium);
    background: transparent;
    color: var(--white);
    transition: all 0.2s ease;
}

.confirm-btn.yes:hover {
    background: rgba(40, 167, 69, 0.2);
    border-color: #28a745;
    color: #28a745;
}

.confirm-btn.no:hover {
    background: rgba(220, 53, 69, 0.2);
    border-color: #dc3545;
    color: #dc3545;
}

.confirm-btn.adjust:hover {
    background: rgba(201, 162, 39, 0.2);
    border-color: var(--gold);
    color: var(--gold);
}

.size-estimate-section {
    background: var(--black-medium);
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1.5rem 0;
    border: 1px solid var(--gray-dark);
}

.size-estimate-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.confidence-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.confidence-badge.high {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.confidence-badge.medium {
    background: rgba(201, 162, 39, 0.2);
    color: var(--gold);
}

.confidence-badge.low {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.size-question {
    color: var(--gray);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.size-question strong {
    color: var(--gold);
}

.size-confirm-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.size-input-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.size-input-row input {
    width: 80px;
    padding: 0.5rem 0.75rem;
    background: var(--black);
    border: 1px solid var(--gray-dark);
    border-radius: 8px;
    color: var(--white);
    font-size: 1rem;
    text-align: center;
}

.size-input-row input:focus {
    outline: none;
    border-color: var(--gold);
}

.size-x {
    color: var(--gray);
    font-weight: 600;
}

.size-unit {
    color: var(--gray);
}

.confirmed-text {
    color: #28a745;
    font-weight: 600;
}

.confirmed-text {
    color: #28a745;
    font-weight: 500;
}

.rejected-text {
    color: #dc3545;
    font-weight: 500;
}

.save-findings-btn {
    width: 100%;
}

/* Room Details */
.room-detail-photo {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.room-details-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.room-details-list p {
    color: var(--gray);
}

.room-details-list strong {
    color: var(--white);
    margin-right: 0.5rem;
}

.error {
    color: #ff6b6b;
    text-align: center;
    padding: 1rem;
}

/* Suite Styles */
.home-sections {
    max-width: 800px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-family: 'Fraunces', serif;
    font-size: 1.25rem;
    margin: 0;
}

.add-btn {
    background: var(--gold);
    color: var(--black);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease;
}

.add-btn:hover {
    background: var(--gold-light);
}

.suites-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.suite-card {
    background: var(--black-light);
    border: 1px solid var(--black-medium);
    border-radius: 16px;
    overflow: hidden;
}

.suite-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.suite-header:hover {
    background: var(--black-medium);
}

.suite-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.suite-icon {
    font-size: 1.5rem;
}

.suite-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.room-count {
    color: var(--gray);
    font-size: 0.9rem;
}

.expand-icon {
    color: var(--gray);
    transition: transform 0.2s ease;
}

.suite-rooms.expanded + .delete-suite-btn ~ .suite-header .expand-icon,
.suite-rooms.expanded ~ .suite-header .expand-icon {
    transform: rotate(180deg);
}

.suite-rooms {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}

.suite-rooms.expanded {
    max-height: 500px;
    padding: 0.5rem 1rem 1rem;
}

.room-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--black-medium);
    border-radius: 10px;
    margin-bottom: 0.5rem;
}

.room-item-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.room-item-icon {
    font-size: 1.25rem;
}

.room-item-name {
    font-weight: 500;
}

.has-photo-badge {
    background: var(--gold);
    color: var(--black);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
}

.room-item-actions {
    display: flex;
    gap: 0.5rem;
}

.room-action-small {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    background: transparent;
    border: 1px solid var(--gray);
    color: var(--gray);
    transition: all 0.2s ease;
}

.room-action-small:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.room-action-small.upload-label {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}

.room-action-small.delete {
    border-color: transparent;
    color: var(--gray);
    padding: 0.375rem 0.5rem;
}

.room-action-small.delete:hover {
    color: #ff6b6b;
}

.add-room-to-suite {
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border: 1px dashed var(--gray);
    border-radius: 10px;
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.add-room-to-suite:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.delete-suite-btn {
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border: none;
    border-top: 1px solid var(--black-medium);
    color: var(--gray);
    font-size: 0.85rem;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s ease;
}

.delete-suite-btn:hover {
    color: #ff6b6b;
}

.empty-hint {
    color: var(--gray);
    font-size: 0.95rem;
    padding: 1.5rem;
    text-align: center;
    background: var(--black-light);
    border: 1px dashed var(--black-medium);
    border-radius: 12px;
}

.standalone-rooms-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.room-card-standalone {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--black-light);
    border: 1px solid var(--black-medium);
    border-radius: 12px;
    transition: border-color 0.2s ease;
}

.room-card-standalone:hover {
    border-color: var(--gold);
}

.room-card-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.room-card-actions {
    display: flex;
    gap: 0.5rem;
}

.delete-btn-small {
    background: transparent;
    border: 1px solid transparent;
    color: var(--gray);
    padding: 0.5rem;
}

.delete-btn-small:hover {
    color: #ff6b6b;
}

/* Suite/Room Modals */
.modal-small {
    max-width: 450px;
}

.modal-hint {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.suite-options, .room-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.suite-option, .room-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--black-medium);
    border: 1px solid var(--black-medium);
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    text-align: left;
}

.suite-option:hover, .room-option:hover {
    border-color: var(--gold);
    background: rgba(201, 162, 39, 0.1);
}

.suite-option-icon, .room-option-icon {
    font-size: 1.5rem;
}

.suite-option-name, .room-option-name {
    font-weight: 600;
    color: var(--white);
    flex: 1;
}

.suite-option-rooms {
    color: var(--gray);
    font-size: 0.85rem;
}

/* Tool Scan Section */
.tool-scan-section {
    background: var(--black-light);
    border: 2px solid var(--gold);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.scan-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.scan-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
}

.scan-text h2 {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 0.25rem;
}

.scan-text p {
    color: var(--gray);
    font-size: 0.95rem;
}

.upload-area {
    text-align: center;
    padding: 1.5rem;
}

.snap-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--black);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.snap-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 162, 39, 0.3);
}

.upload-hint {
    margin-top: 1rem;
    color: var(--gray);
    font-size: 0.9rem;
}

.photo-preview-container {
    margin-top: 1.5rem;
}

.preview-images {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.preview-image-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
}

.preview-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--black-medium);
}

.remove-image {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: var(--gold);
    color: var(--black);
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.analyze-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--gold);
    color: var(--black);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.analyze-button:hover:not(:disabled) {
    background: var(--gold-light);
}

.analyze-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.analysis-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--black-medium);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.analysis-results {
    margin-top: 1.5rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.results-header h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.25rem;
    color: var(--gold);
}

.text-button {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
}

.text-button:hover {
    color: var(--gold-light);
}

.tool-group {
    margin-bottom: 1.5rem;
}

.group-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.group-header.certain {
    background: rgba(76, 175, 80, 0.15);
    color: #81C784;
}

.group-header.likely {
    background: rgba(255, 193, 7, 0.15);
    color: #FFD54F;
}

.group-header.unclear {
    background: rgba(156, 39, 176, 0.15);
    color: #CE93D8;
}

.group-header.add-more {
    background: rgba(201, 162, 39, 0.15);
    color: var(--gold);
}

.group-icon {
    font-size: 1.25rem;
}

.detected-tools-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 2.5rem;
}

.detected-tool-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--black-medium);
    border-radius: 8px;
}

.detected-tool-item.confirmed {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.detected-tool-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
}

.likely-tool-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--black-medium);
    border-radius: 8px;
}

.likely-tool-item.confirmed {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.likely-tool-item.rejected {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.confirm-buttons {
    display: flex;
    gap: 0.5rem;
}

.confirm-yes, .confirm-no {
    padding: 0.4rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.confirm-yes {
    background: rgba(76, 175, 80, 0.2);
    color: #81C784;
}

.confirm-yes:hover {
    background: rgba(76, 175, 80, 0.3);
}

.confirm-no {
    background: rgba(244, 67, 54, 0.2);
    color: #E57373;
}

.confirm-no:hover {
    background: rgba(244, 67, 54, 0.3);
}

.confirmed-badge {
    color: #81C784;
    font-size: 0.85rem;
}

.rejected-badge {
    color: #E57373;
    font-size: 0.85rem;
}

.unclear-tool-item {
    padding: 1rem;
    background: var(--black-medium);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.unclear-tool-item.confirmed {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.unclear-description {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.unclear-guess {
    color: #CE93D8;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 0.75rem;
}

.unclear-input {
    display: flex;
    gap: 0.5rem;
}

.unclear-input input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    background: var(--black);
    border: 1px solid var(--gray-dark);
    border-radius: 6px;
    color: var(--white);
    font-size: 0.9rem;
    font-family: inherit;
}

.unclear-input button {
    padding: 0.5rem 1rem;
    background: var(--gold);
    color: var(--black);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.add-missed-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--black-medium);
}

.add-tool-inline {
    display: flex;
    gap: 0.5rem;
    padding-left: 2.5rem;
    margin-bottom: 0.75rem;
}

.add-tool-inline input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--black);
    border: 1px solid var(--gray-dark);
    border-radius: 8px;
    color: var(--white);
    font-size: 1rem;
    font-family: inherit;
}

.add-tool-inline input:focus {
    outline: none;
    border-color: var(--gold);
}

.add-tool-inline button {
    padding: 0.75rem 1.25rem;
    background: var(--gold);
    color: var(--black);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.save-detected-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--black);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1.5rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.save-detected-button:hover {
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
}

/* Manual Section */
.manual-section {
    margin-bottom: 2rem;
}

.manual-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    background: var(--black-light);
    border: 1px solid var(--black-medium);
    border-radius: 10px;
    color: var(--gray);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.manual-toggle:hover {
    border-color: var(--gold);
    color: var(--white);
}

.manual-toggle svg {
    transition: transform 0.2s ease;
}

.manual-tools-content {
    margin-top: 1rem;
    padding: 1.5rem;
    background: var(--black-light);
    border-radius: 10px;
}

/* Current Inventory */
.current-inventory {
    background: var(--black-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.current-inventory h3 {
    font-family: 'Fraunces', serif;
    color: var(--gold);
    margin-bottom: 1rem;
}

.inventory-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.inventory-tag {
    padding: 0.5rem 1rem;
    background: var(--black-medium);
    border: 1px solid var(--gray-dark);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--white);
}

/* Suggestions Section */
.group-header.suggestions {
    background: rgba(33, 150, 243, 0.15);
    color: #64B5F6;
}

.suggestion-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem;
    background: var(--black-medium);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.suggestion-item.confirmed {
    display: flex;
    align-items: center;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.suggestion-item.rejected {
    display: flex;
    align-items: center;
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.suggestion-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.suggestion-reason {
    font-size: 0.85rem;
    color: var(--gray);
    font-style: italic;
}

/* Remember Me Checkbox */
.remember-me {
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--gray);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
    cursor: pointer;
}

.checkbox-label span {
    user-select: none;
}

/* Voice Icon - Custom Hedy H with Art Deco styling */
.hedy-voice-icon {
    position: relative;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid var(--gold);
    transition: all 0.2s ease;
}

.hedy-voice-icon:hover {
    background: rgba(201, 162, 39, 0.1);
    transform: scale(1.05);
}

.hedy-voice-icon .h-letter {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--gold);
    letter-spacing: 0.05em;
    line-height: 1;
}

/* Sound waves container */
.hedy-voice-icon .sound-waves {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.hedy-voice-icon .wave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid var(--gold);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
}

/* Idle State - Static gold H */
.hedy-voice-icon.idle .h-letter {
    animation: none;
}

/* Listening State - H pulses, waves ripple outward */
.hedy-voice-icon.listening {
    background: rgba(201, 162, 39, 0.15);
}

.hedy-voice-icon.listening .h-letter {
    animation: pulse-h 1.5s ease-in-out infinite;
}

.hedy-voice-icon.listening .wave {
    animation: ripple-out 2s ease-out infinite;
}

.hedy-voice-icon.listening .wave:nth-child(2) {
    animation-delay: 0.4s;
}

.hedy-voice-icon.listening .wave:nth-child(3) {
    animation-delay: 0.8s;
}

@keyframes pulse-h {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes ripple-out {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Processing State - H steady, dots orbit around */
.hedy-voice-icon.processing .h-letter {
    animation: none;
}

.hedy-voice-icon .orbit-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    opacity: 0;
}

.hedy-voice-icon.processing .orbit-dots {
    opacity: 1;
    animation: orbit 1.2s linear infinite;
}

.hedy-voice-icon .orbit-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
}

.hedy-voice-icon .orbit-dot:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.hedy-voice-icon .orbit-dot:nth-child(2) { top: 50%; right: 0; transform: translateY(-50%); }
.hedy-voice-icon .orbit-dot:nth-child(3) { bottom: 0; left: 50%; transform: translateX(-50%); }

@keyframes orbit {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Speaking State - Glow effect and inward waves */
.hedy-voice-icon.speaking {
    box-shadow: 0 0 20px rgba(201, 162, 39, 0.4);
}

.hedy-voice-icon.speaking .h-letter {
    animation: glow-pulse 1s ease-in-out infinite;
}

.hedy-voice-icon.speaking .wave {
    animation: ripple-in 1.5s ease-in-out infinite;
}

.hedy-voice-icon.speaking .wave:nth-child(2) {
    animation-delay: 0.3s;
}

.hedy-voice-icon.speaking .wave:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes glow-pulse {
    0%, 100% { 
        opacity: 1;
        text-shadow: 0 0 10px rgba(201, 162, 39, 0.5);
    }
    50% { 
        opacity: 0.8;
        text-shadow: 0 0 20px rgba(201, 162, 39, 0.8);
    }
}

@keyframes ripple-in {
    0% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* Voice Status Text */
.voice-status {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--gold);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.hedy-voice-icon.listening .voice-status,
.hedy-voice-icon.processing .voice-status,
.hedy-voice-icon.speaking .voice-status {
    opacity: 1;
}

/* Speaker Button on Responses */
.speak-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid var(--gold);
    border-radius: 8px;
    color: var(--gold);
    cursor: pointer;
    margin-left: 8px;
    transition: all 0.2s ease;
    vertical-align: middle;
}

.speak-button:hover {
    background: rgba(201, 162, 39, 0.15);
}

.speak-button.playing {
    background: var(--gold);
    color: var(--black);
}

.speak-button svg {
    width: 16px;
    height: 16px;
}

/* Voice Mode Toggle */
.voice-mode-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
}

.voice-toggle-label {
    font-size: 0.85rem;
    color: var(--gray);
}

.voice-toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--black-medium);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.voice-toggle-switch.active {
    background: var(--gold);
}

.voice-toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: var(--white);
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.voice-toggle-switch.active::after {
    transform: translateX(20px);
}

/* Hedy Attitude Selector */
.hedy-attitude-selector {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
}

.attitude-label {
    font-size: 0.85rem;
    color: var(--gray);
}

.attitude-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.attitude-btn {
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    border: 1px solid var(--gray-dark);
    background: transparent;
    color: var(--gray);
    transition: all 0.2s ease;
}

.attitude-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.attitude-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
}

@media (max-width: 600px) {
    .attitude-options {
        gap: 0.4rem;
    }
    
    .attitude-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* Settings Modal */
.settings-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.settings-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.settings-modal {
    background: var(--black-light);
    border-radius: 16px;
    border: 1px solid var(--black-medium);
    max-width: 450px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.settings-modal-overlay.visible .settings-modal {
    transform: scale(1);
}

.settings-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--black-medium);
}

.settings-modal-header h2 {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    color: var(--gold);
    margin: 0;
}

.settings-close-btn {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--gray);
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.settings-close-btn:hover {
    color: var(--white);
}

.settings-modal-content {
    padding: 1.5rem;
}

.settings-section h3 {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.settings-description {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.attitude-options-modal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.attitude-btn-modal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid var(--black-medium);
    background: var(--black);
    cursor: pointer;
    transition: all 0.2s ease;
}

.attitude-btn-modal:hover {
    border-color: var(--gold);
}

.attitude-btn-modal.active {
    border-color: var(--gold);
    background: rgba(201, 162, 39, 0.1);
}

.attitude-btn-modal .attitude-icon {
    font-size: 1.5rem;
}

.attitude-btn-modal .attitude-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
}

.attitude-btn-modal .attitude-desc {
    font-size: 0.75rem;
    color: var(--gray);
}

.settings-link {
    font-size: 1.25rem !important;
}

.settings-section + .settings-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--black-medium);
}

.location-settings {
    margin-top: 0.75rem;
}

.location-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.location-toggle-label {
    font-size: 0.9rem;
    color: var(--white);
}

.location-zip-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.zip-input {
    flex: 1;
    min-width: 100px;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--black-medium);
    background: var(--black);
    color: var(--white);
    font-size: 0.9rem;
    font-family: inherit;
}

.zip-input:focus {
    outline: none;
    border-color: var(--gold);
}

.btn-small {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: none;
    background: var(--gold);
    color: var(--black);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.btn-small:hover {
    background: var(--gold-light);
}

.btn-text-small {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.5rem;
    font-family: inherit;
}

.btn-text-small:hover {
    text-decoration: underline;
}

.location-privacy-note {
    font-size: 0.75rem;
    color: var(--gray);
    font-style: italic;
}

@media (max-width: 400px) {
    .attitude-options-modal {
        grid-template-columns: 1fr;
    }
    
    .location-zip-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .zip-input {
        width: 100%;
    }
}

/* Message actions container */
.message-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

/* Header H icon animation for loading */
.logo-icon.loading {
    animation: orbit 1.2s linear infinite;
}

/* Mobile touch target for voice button */
@media (max-width: 600px) {
    .hedy-voice-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }
}

/* Tier Cards for Project Difficulty Options */
.tier-card {
    background: var(--black-medium);
    border: 1px solid var(--gray-dark);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin: 0.75rem 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tier-card:hover {
    border-color: var(--gold);
    background: rgba(201, 162, 39, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tier-card:active {
    transform: translateY(0);
    background: rgba(201, 162, 39, 0.15);
    box-shadow: none;
}

.tier-card.quick {
    border-left: 4px solid #4CAF50;
}

.tier-card.standard {
    border-left: 4px solid var(--gold);
}

.tier-card.pro {
    border-left: 4px solid #9C27B0;
}

.tier-card.budget {
    border-left: 4px solid #4CAF50;
}

.tier-card.midrange {
    border-left: 4px solid var(--gold);
}

.tier-card.premium {
    border-left: 4px solid #9C27B0;
}

.tier-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.tier-icon {
    font-size: 1.4rem;
}

.tier-title {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--white);
}

.tier-meta-line {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 0.6rem;
    letter-spacing: 0.02em;
}

.tier-description {
    color: var(--gray-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.tier-description > div {
    margin-bottom: 0.3rem;
}

.tier-detail-item {
    padding-left: 0.75rem;
    position: relative;
}

.tier-detail-item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--gray);
}

.tier-cost {
    font-size: 0.9rem;
    color: var(--gold);
    font-weight: 600;
    margin-top: 0.25rem;
}

.tier-select-hint {
    font-size: 0.7rem;
    color: var(--gray);
    text-align: right;
    margin-top: 0.5rem;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tier-card.tier-selected-static {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
    transform: none;
}

.tier-card.tier-selected-static:hover {
    transform: none;
    box-shadow: none;
}

.tier-card.tier-chosen {
    opacity: 1;
    border-color: var(--gold);
    background: rgba(201, 162, 39, 0.15);
    pointer-events: none;
    cursor: default;
}

.tier-card.tier-chosen .tier-select-hint {
    display: none;
}

.material-selected {
    opacity: 0.4;
    pointer-events: none;
    cursor: default;
    transform: none !important;
}

.material-selected .tier-select-hint {
    display: none;
}

.material-btn.material-chosen {
    opacity: 1 !important;
    border-color: var(--gold);
    background: rgba(201, 162, 39, 0.15);
}

.option-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.option-card {
    background: var(--black-medium);
    border: 1px solid var(--gray-dark);
    border-left: 4px solid var(--gold);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-card:hover {
    border-color: var(--gold);
    background: rgba(201, 162, 39, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.option-card:active {
    transform: translateY(0);
    background: rgba(201, 162, 39, 0.15);
}

.option-card.option-selected {
    border-color: var(--gold);
    background: rgba(201, 162, 39, 0.15);
    border-left-width: 4px;
    position: relative;
}

.option-card.option-selected::after {
    content: '✓';
    position: absolute;
    top: 0.6rem;
    right: 0.75rem;
    width: 22px;
    height: 22px;
    background: var(--gold);
    color: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

.option-card.option-selected .option-select-hint {
    display: none;
}

.option-card.option-static {
    cursor: default;
    opacity: 0.4;
    pointer-events: none;
}

.option-card.option-confirmed {
    opacity: 1;
    border-color: var(--gold);
    background: rgba(201, 162, 39, 0.15);
    cursor: default;
    pointer-events: none;
    position: relative;
}

.option-card.option-confirmed::after {
    content: '✓';
    position: absolute;
    top: 0.6rem;
    right: 0.75rem;
    width: 22px;
    height: 22px;
    background: var(--gold);
    color: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

.option-card.option-confirmed .option-select-hint {
    display: none;
}

.option-confirm-btn {
    display: block;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--gold);
    color: #1a1a1a;
    border: none;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.option-confirm-btn:hover {
    background: var(--gold-light, #e0c86e);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 162, 39, 0.3);
}

.option-confirm-btn:active {
    transform: translateY(0);
}

.option-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

.option-card-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--gold);
}

.option-img-link {
    font-size: 0.65rem;
    color: var(--gold-light, #e0c86e);
    text-decoration: none;
    padding: 2px 8px;
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 10px;
    transition: all 0.2s;
    white-space: nowrap;
}

.option-img-link:hover {
    background: rgba(201, 162, 39, 0.15);
    border-color: var(--gold);
}

.option-card-desc {
    font-size: 0.75rem;
    color: var(--gray-text);
    line-height: 1.5;
}

.option-select-hint {
    font-size: 0.65rem;
    color: var(--gold-light, #e0c86e);
    margin-top: 0.4rem;
    opacity: 0.6;
    text-align: right;
}

.materials-buttons-container {
    margin-top: 1rem;
}

.phone-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.phone-modal {
    background: var(--black-light);
    border: 1px solid var(--gold);
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 360px;
    width: 100%;
}

.phone-modal-title {
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 0.5rem;
}

.phone-modal-subtitle {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.phone-modal-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(201, 162, 39, 0.3);
    border-radius: 10px;
    color: var(--light);
    font-size: 1.1rem;
    font-family: 'DM Sans', sans-serif;
    margin-bottom: 1rem;
    box-sizing: border-box;
}

.phone-modal-input:focus {
    outline: none;
    border-color: var(--gold);
}

.phone-modal-actions {
    display: flex;
    gap: 0.75rem;
}

.phone-modal-cancel {
    flex: 1;
    padding: 0.65rem;
    background: transparent;
    border: 1px solid var(--gray);
    border-radius: 10px;
    color: var(--gray);
    font-size: 0.9rem;
    cursor: pointer;
}

.phone-modal-send {
    flex: 1;
    padding: 0.65rem;
    background: var(--gold);
    border: none;
    border-radius: 10px;
    color: var(--black);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
}

.phone-modal-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.phone-modal-signin {
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--gray);
}

.phone-modal-signin a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
}

.phone-modal-signin a:hover {
    text-decoration: underline;
}

.tier-cards-container {
    margin: 1rem 0;
}

.tier-cards-intro {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Compound project section */
.compound-section {
    margin: 1.5rem 0;
    padding-top: 1rem;
    border-top: 1px solid var(--black-medium);
}

.compound-title {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .tier-card {
        padding: 0.875rem 1rem;
    }
    
    .tier-title {
        font-size: 1rem;
    }
    
    .tier-meta {
        font-size: 0.8rem;
    }
}

/* Message text container for proper block element nesting */
.message-text {
    line-height: 1.6;
}

.message-text p {
    margin-bottom: 0.75rem;
}

.message-text p:last-child {
    margin-bottom: 0;
}

/* Step-by-step instruction cards */
.steps-container {
    margin: 0.75rem 0;
}

.step-card {
    display: flex;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    margin: 0.5rem 0;
    background: var(--black-medium);
    border-radius: 10px;
    border-left: 3px solid var(--gold);
    align-items: flex-start;
}

.step-card:nth-child(even) {
    background: rgba(42, 42, 42, 0.6);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--black);
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.step-content {
    flex: 1;
    color: var(--gray-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.step-content strong {
    color: var(--white);
}

@media (max-width: 600px) {
    .step-card {
        padding: 0.75rem;
        margin: 0.4rem 0;
        gap: 0.6rem;
    }
    
    .step-number {
        min-width: 26px;
        height: 26px;
        font-size: 0.8rem;
    }
    
    .step-content {
        font-size: 0.9rem;
    }
}

/* Size Comparison UI */
.size-comparison-container {
    background: var(--black-medium);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    border: 1px solid var(--gold);
}

.size-comparison-header h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.25rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.size-comparison-subtitle {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.size-comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.size-option {
    background: var(--black);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    border: 2px solid var(--gray-dark);
    transition: all 0.2s ease;
}

.size-option:hover {
    border-color: var(--gold);
}

.size-option.loading {
    opacity: 0.7;
}

.size-label {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.size-loading {
    color: var(--gray);
    font-style: italic;
    padding: 2rem 0;
}

.size-option img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.size-select-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--gold);
    color: var(--black);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.size-select-btn:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

.size-error {
    color: #dc3545;
    padding: 2rem 0;
}

.size-selection-prompt {
    text-align: center;
    color: var(--gray);
    margin-top: 1rem;
    font-style: italic;
}

@media (max-width: 600px) {
    .size-comparison-grid {
        grid-template-columns: 1fr;
    }
}

/* Property Management */
.property-management {
    margin-bottom: 2rem;
}

.property-selector-section {
    background: var(--black-medium);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--gray-dark);
}

.property-selector-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.property-selector-header label {
    font-weight: 500;
    color: var(--gray);
}

.property-dropdown {
    flex: 1;
    min-width: 200px;
    max-width: 350px;
    padding: 0.75rem 1rem;
    background: var(--black);
    border: 1px solid var(--gray-dark);
    border-radius: 8px;
    color: var(--white);
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
}

.property-dropdown:focus {
    outline: none;
    border-color: var(--gold);
}

.add-btn.small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.active-property-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-dark);
    flex-wrap: wrap;
}

.property-type-badge {
    background: var(--gold);
    color: var(--black);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.property-address {
    color: var(--gray);
    font-size: 0.9rem;
}

.edit-property-btn,
.delete-property-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.edit-property-btn {
    background: var(--black);
    color: var(--white);
    border: 1px solid var(--gray-dark);
}

.edit-property-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.delete-property-btn {
    background: transparent;
    color: #dc3545;
    border: 1px solid #dc3545;
}

.delete-property-btn:hover {
    background: #dc3545;
    color: white;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--black-medium);
    border-radius: 12px;
    border: 1px dashed var(--gray-dark);
}

.empty-state h3 {
    font-family: 'Fraunces', serif;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--black);
    border: 1px solid var(--gray-dark);
    border-radius: 8px;
    color: var(--white);
    font-size: 1rem;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--gold);
}

.form-input::placeholder {
    color: var(--gray);
}

.gold-button.full-width {
    width: 100%;
}

@media (max-width: 600px) {
    .property-selector-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .property-dropdown {
        max-width: none;
    }
    
    .active-property-info {
        flex-direction: column;
        align-items: flex-start;
    }
}

.property-filter-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--black-medium);
    border-radius: 8px;
    border: 1px solid var(--gray-dark);
}

.property-filter-bar label {
    font-weight: 500;
    color: var(--gray);
}

@media (max-width: 600px) {
    .property-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Guided Room Capture Styles */
.modal-large .modal-content {
    max-width: 600px;
}

.capture-time {
    text-align: center;
    color: var(--gold);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.capture-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.capture-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--black-medium);
    border: 1px solid var(--gray-dark);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.capture-option:hover {
    border-color: var(--gold);
    background: var(--black-light);
}

.capture-option.secondary {
    opacity: 0.7;
}

.capture-option.secondary:hover {
    opacity: 1;
}

.capture-option-icon {
    font-size: 2rem;
}

.capture-option-content h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.capture-option-content p {
    font-size: 0.85rem;
    color: var(--gray);
}

/* Corner Capture Flow */
.capture-progress {
    text-align: center;
    margin-bottom: 1.5rem;
}

.progress-text {
    color: var(--gold);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 4px;
    background: var(--black-medium);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gold);
    transition: width 0.3s ease;
}

.corner-diagram {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.room-diagram-container {
    padding: 1rem;
}

.room-diagram {
    position: relative;
    width: 200px;
    height: 200px;
    background: var(--black-medium);
    border: 2px solid var(--gray-dark);
    border-radius: 8px;
}

.corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--black);
    border: 2px solid var(--gray-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.corner-number {
    font-size: 0.9rem;
    color: var(--gray);
}

.corner-nw { top: -10px; left: -10px; }
.corner-ne { top: -10px; right: -10px; }
.corner-sw { bottom: -10px; left: -10px; }
.corner-se { bottom: -10px; right: -10px; }

.corner.active {
    border-color: var(--gold);
    background: var(--gold);
    animation: pulse 1.5s infinite;
}

.corner.active .corner-number {
    color: var(--black);
    font-weight: 600;
}

.corner.captured {
    border-color: var(--gold);
    background: var(--gold);
}

.corner.captured .corner-number {
    color: var(--black);
}

.corner.captured::after {
    content: '✓';
    position: absolute;
    font-size: 1.2rem;
    color: var(--black);
}

.corner.captured .corner-number {
    display: none;
}

.room-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    opacity: 0.5;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(201, 162, 39, 0); }
    100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0); }
}

.capture-instruction {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--black-medium);
    border-radius: 8px;
}

.capture-instruction p {
    color: var(--gray-light);
}

.capture-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.capture-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
}

.captured-thumbnails {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.capture-thumb {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--gold);
}

.capture-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.capture-thumb span {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: var(--gold);
    color: var(--black);
    font-size: 0.7rem;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Panorama/Single Capture */
.panorama-instructions,
.single-instructions {
    padding: 1.5rem;
    background: var(--black-medium);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.panorama-instructions ol,
.single-instructions ul {
    padding-left: 1.5rem;
    color: var(--gray-light);
    margin-top: 0.75rem;
}

.panorama-instructions li,
.single-instructions li {
    margin-bottom: 0.5rem;
}

/* Analysis Phase */
.analysis-phase {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    gap: 1rem;
}

#analysis-status {
    color: var(--gray);
}

/* Layout Confirmation */
.layout-confirmation h3 {
    font-family: 'Fraunces', serif;
    color: var(--gold);
    margin-bottom: 1rem;
}

.wall-summary {
    background: var(--black-medium);
    padding: 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.wall-summary ul {
    padding-left: 1.5rem;
    color: var(--gray-light);
    margin: 0.75rem 0;
}

.wall-summary li {
    margin-bottom: 0.5rem;
}

.wall-summary p {
    color: var(--gray-light);
    margin-bottom: 0.5rem;
}

.wall-summary.edited {
    border: 1px solid var(--gold);
}

.edit-success {
    color: var(--gold) !important;
    font-weight: 500;
}

.gap-questions {
    margin: 1.5rem 0;
}

.gap-questions h4 {
    color: var(--gold);
    margin-bottom: 1rem;
}

.gap-question {
    margin-bottom: 1rem;
}

.gap-question label {
    display: block;
    color: var(--gray-light);
    margin-bottom: 0.5rem;
}

/* Floor Plan Section */
.floor-plan-section {
    margin: 1.5rem 0;
}

.floor-plan-section h4 {
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.editor-intro {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 1rem;
    padding: 0.5rem 0.75rem;
    background: var(--black);
    border-radius: 6px;
    text-align: center;
}

.editor-intro.step2 {
    color: var(--gold);
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid var(--gold);
}

/* Fixture Toolbar */
.fixture-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--black);
    border-radius: 8px;
    border: 1px solid var(--black-medium);
}

.fixture-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    background: var(--black-medium);
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 60px;
}

.fixture-btn:hover {
    border-color: var(--gold);
    background: var(--black-light);
}

.fixture-btn.selected {
    border-color: var(--gold);
    background: rgba(201, 162, 39, 0.2);
}

.fixture-icon {
    font-size: 1.5rem;
}

.fixture-label {
    font-size: 0.65rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fixture-btn.selected .fixture-label {
    color: var(--gold);
}

/* Interactive Floor Plan Canvas */
.floor-plan-canvas {
    background: var(--black-medium);
    border-radius: 8px;
    min-height: 280px;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floor-plan-room-interactive {
    position: relative;
    width: 280px;
    height: 220px;
    background: var(--black);
    border: 4px solid var(--gold);
    border-radius: 4px;
}

/* Wall Zones for placing fixtures */
.wall-zone {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.wall-zone:hover {
    background: rgba(201, 162, 39, 0.15);
}

.wall-zone.active {
    background: rgba(201, 162, 39, 0.25);
}

.wall-label {
    font-size: 0.7rem;
    color: var(--gray);
    opacity: 0.6;
    pointer-events: none;
}

.wall-zone:hover .wall-label {
    opacity: 1;
    color: var(--gold);
}

.wall-north {
    top: 0;
    left: 20px;
    right: 20px;
    height: 30px;
}

.wall-south {
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 30px;
}

.wall-east {
    top: 20px;
    right: 0;
    bottom: 20px;
    width: 30px;
    writing-mode: vertical-rl;
}

.wall-west {
    top: 20px;
    left: 0;
    bottom: 20px;
    width: 30px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.room-center-zone {
    position: absolute;
    top: 35px;
    left: 35px;
    right: 35px;
    bottom: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px dashed var(--black-medium);
    border-radius: 4px;
    transition: all 0.2s;
}

.room-center-zone:hover {
    border-color: var(--gray);
    background: rgba(255, 255, 255, 0.02);
}

.center-hint {
    font-size: 0.75rem;
    color: var(--gray);
    opacity: 0.5;
}

.room-center-zone:hover .center-hint {
    opacity: 0.8;
}

/* Placed fixtures */
.placed-fixture {
    position: absolute;
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform 0.15s, filter 0.15s;
    z-index: 10;
    user-select: none;
}

.placed-fixture:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px var(--gold));
}

.placed-fixture.on-wall-north { top: -5px; }
.placed-fixture.on-wall-south { bottom: -5px; }
.placed-fixture.on-wall-east { right: -5px; }
.placed-fixture.on-wall-west { left: -5px; }

.placed-fixture-delete {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 22px;
    height: 22px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid var(--black);
    z-index: 15;
    transition: transform 0.15s;
}

.placed-fixture-delete:hover {
    transform: scale(1.2);
    background: #c0392b;
}

/* Placed items summary */
.placed-items-summary {
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--black);
    border-radius: 6px;
    font-size: 0.85rem;
}

.placed-items-summary:empty {
    display: none;
}

.placed-items-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.placed-item-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: var(--black-medium);
    border-radius: 4px;
    font-size: 0.8rem;
}

.placed-item-tag .tag-icon {
    font-size: 1rem;
}

/* Old floor plan styles (for compatibility) */
.floor-plan-diagram {
    display: flex;
    justify-content: center;
}

.floor-plan-room {
    position: relative;
    width: 250px;
    height: 200px;
    background: var(--black);
    border: 3px solid var(--gold);
    border-radius: 4px;
}

.floor-plan-wall {
    position: absolute;
    font-size: 0.7rem;
    color: var(--gray);
    padding: 0.25rem;
}

.floor-plan-wall[data-direction="north"] { top: 5px; left: 50%; transform: translateX(-50%); }
.floor-plan-wall[data-direction="south"] { bottom: 5px; left: 50%; transform: translateX(-50%); }
.floor-plan-wall[data-direction="east"] { right: 5px; top: 50%; transform: translateY(-50%); }
.floor-plan-wall[data-direction="west"] { left: 5px; top: 50%; transform: translateY(-50%); }

.floor-plan-item {
    position: absolute;
    font-size: 1.5rem;
    transform: translate(-50%, -50%);
}

.edit-hint {
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 0.5rem;
}

/* Small bathroom tip */
.small-room-tip {
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid var(--gold);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.small-room-tip strong {
    color: var(--gold);
}

@media (max-width: 480px) {
    .fixture-toolbar {
        gap: 0.35rem;
        padding: 0.5rem;
    }
    
    .fixture-btn {
        padding: 0.4rem 0.5rem;
        min-width: 50px;
    }
    
    .fixture-icon {
        font-size: 1.25rem;
    }
    
    .fixture-label {
        font-size: 0.55rem;
    }
    
    .floor-plan-room-interactive {
        width: 240px;
        height: 190px;
    }
    
    .placed-fixture {
        font-size: 1.5rem;
    }
}

.confirmation-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.confirmation-actions .gold-button,
.confirmation-actions .secondary-button {
    flex: 1;
}

.edit-layout-form .form-group {
    margin-bottom: 1rem;
}

.edit-layout-form label {
    display: block;
    color: var(--gray);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.edit-layout-form textarea {
    min-height: 80px;
    resize: vertical;
}

/* Capture button styling */
button.capture-btn,
.room-action-btn.capture-btn {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

button.capture-btn:hover,
.room-action-btn.capture-btn:hover {
    background: var(--gold);
    color: var(--black);
}

.room-action-small.capture-btn {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
}

.room-action-small.capture-btn:hover {
    background: var(--gold);
    color: var(--black);
}

/* Start Building Button */
.start-building-btn {
    display: inline-block;
    background: var(--gold);
    color: var(--black);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
    margin-right: 0.5rem;
}

.start-building-btn:hover {
    background: var(--gold-light);
    transform: scale(1.02);
}

.project-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .start-building-btn {
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }
}

/* Voice Recording Fullscreen Overlay */
.voice-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.voice-overlay.active {
    opacity: 1;
    visibility: visible;
}

.voice-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Container for H and waves - centered together */
.voice-overlay-icon-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-overlay-h {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 6rem;
    color: var(--gold);
    letter-spacing: 0.02em;
    line-height: 1;
    position: relative;
    z-index: 2;
}

/* Waves container for overlay - centered with H */
.voice-overlay-waves {
    position: absolute;
    width: 200px;
    height: 200px;
    top: 0;
    left: 0;
    pointer-events: none;
}

.overlay-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 3px solid var(--gold);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
}

/* Listening state - pulsing H and rippling waves */
.voice-overlay.listening .voice-overlay-h {
    animation: overlay-pulse 1.5s ease-in-out infinite;
}

.voice-overlay.listening .overlay-wave {
    animation: overlay-ripple 2s ease-out infinite;
}

.voice-overlay.listening .overlay-wave:nth-child(2) {
    animation-delay: 0.5s;
}

.voice-overlay.listening .overlay-wave:nth-child(3) {
    animation-delay: 1s;
}

@keyframes overlay-pulse {
    0%, 100% { 
        transform: scale(1);
        text-shadow: 0 0 20px rgba(201, 162, 39, 0.3);
    }
    50% { 
        transform: scale(1.08);
        text-shadow: 0 0 40px rgba(201, 162, 39, 0.6);
    }
}

@keyframes overlay-ripple {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

/* Processing state - steady glow, no pulse */
.voice-overlay.processing .voice-overlay-h {
    animation: none;
    text-shadow: 0 0 30px rgba(201, 162, 39, 0.5);
}

.voice-overlay.processing .overlay-wave {
    animation: processing-glow 1.5s ease-in-out infinite;
    opacity: 0.3;
}

@keyframes processing-glow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.2;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.4;
    }
}

.voice-overlay-status {
    margin-top: 2rem;
    font-size: 1.25rem;
    color: var(--gold);
    font-weight: 500;
    letter-spacing: 0.05em;
}

.voice-overlay-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
}

.voice-overlay-done {
    background: var(--gold);
    border: none;
    color: var(--dark);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.voice-overlay-done:hover {
    background: var(--light-gold);
    transform: scale(1.05);
}

.voice-overlay-cancel {
    background: transparent;
    border: 1px solid rgba(201, 162, 39, 0.3);
    color: rgba(201, 162, 39, 0.7);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.voice-overlay-cancel:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201, 162, 39, 0.1);
}

/* ===== Turn Indicator ===== */
.turn-indicator {
    display: none;
    font-size: 1.2rem;
    text-align: center;
    padding: 0.25rem 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.turn-indicator.visible {
    display: block;
    opacity: 1;
}

/* ===== Continuous Voice Conversation Mode ===== */
.voice-convo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.97) 0%, rgba(20, 20, 20, 0.98) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.voice-convo-overlay.active {
    opacity: 1;
    visibility: visible;
}

.voice-convo-overlay.exiting {
    opacity: 0;
}

/* H Icon Container */
.voice-convo-h-container {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.voice-convo-h-letter {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 5rem;
    color: var(--gold);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

/* Pulsing ring behind H */
.voice-convo-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(201, 162, 39, 0.15);
    z-index: 1;
}

/* Waves container */
.voice-convo-waves {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.convo-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid var(--gold);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
}

/* Listening state - active pulsing */
.voice-convo-h-container.listening .voice-convo-pulse {
    animation: convo-pulse-glow 1.5s ease-in-out infinite;
}

.voice-convo-h-container.listening .voice-convo-h-letter {
    animation: convo-h-pulse 1.5s ease-in-out infinite;
}

.voice-convo-h-container.listening .convo-wave {
    animation: convo-wave-ripple 2s ease-out infinite;
}

.voice-convo-h-container.listening .convo-wave:nth-child(2) {
    animation-delay: 0.5s;
}

.voice-convo-h-container.listening .convo-wave:nth-child(3) {
    animation-delay: 1s;
}

/* Processing state - gentle glow */
.voice-convo-h-container.processing .voice-convo-pulse {
    animation: convo-processing-glow 2s ease-in-out infinite;
}

.voice-convo-h-container.processing .voice-convo-h-letter {
    text-shadow: 0 0 25px rgba(201, 162, 39, 0.5);
}

/* Speaking state - steady bright glow */
.voice-convo-h-container.speaking .voice-convo-pulse {
    background: rgba(201, 162, 39, 0.25);
    animation: convo-speaking-pulse 0.8s ease-in-out infinite;
}

.voice-convo-h-container.speaking .voice-convo-h-letter {
    color: #f0d878;
    text-shadow: 0 0 40px rgba(201, 162, 39, 0.8);
}

/* Waiting state - subtle pulse */
.voice-convo-h-container.waiting .voice-convo-pulse {
    animation: convo-waiting-pulse 3s ease-in-out infinite;
}

.voice-convo-h-container.waiting .voice-convo-h-letter {
    opacity: 0.7;
}

/* Animations */
@keyframes convo-pulse-glow {
    0%, 100% {
        transform: scale(1);
        background: rgba(201, 162, 39, 0.15);
    }
    50% {
        transform: scale(1.1);
        background: rgba(201, 162, 39, 0.25);
    }
}

@keyframes convo-h-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes convo-wave-ripple {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

@keyframes convo-processing-glow {
    0%, 100% {
        background: rgba(201, 162, 39, 0.1);
        transform: scale(1);
    }
    50% {
        background: rgba(201, 162, 39, 0.2);
        transform: scale(1.05);
    }
}

@keyframes convo-speaking-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

@keyframes convo-waiting-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.7;
    }
}

/* Status text */
.voice-convo-status {
    font-size: 1.1rem;
    color: var(--gold);
    font-weight: 500;
    letter-spacing: 0.03em;
    margin-bottom: 1rem;
    min-height: 1.5rem;
}

/* Transcript display */
.voice-convo-transcript {
    max-width: 80%;
    text-align: center;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    min-height: 2rem;
    padding: 0 1rem;
}

/* Byyeee Exit Button */
.voice-convo-exit {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--black);
    border: none;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.3);
}

.voice-convo-exit:hover {
    background: #e8bc5f;
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 6px 25px rgba(201, 162, 39, 0.4);
}

.voice-convo-exit:active {
    transform: translateX(-50%) scale(0.98);
}

@media (max-width: 480px) {
    .voice-convo-h-container {
        width: 120px;
        height: 120px;
    }
    
    .voice-convo-h-letter {
        font-size: 4rem;
    }
    
    .voice-convo-exit {
        bottom: 40px;
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

/* Permission Primer Overlay */
.permission-primer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.permission-primer-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.permission-primer-content {
    background: var(--black-light);
    border: 1px solid var(--gold);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    max-width: 320px;
    margin: 0 1rem;
    animation: primer-pop 0.3s ease;
}

@keyframes primer-pop {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.permission-primer-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.permission-primer-content h3 {
    font-family: 'Fraunces', serif;
    color: var(--gold);
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.permission-primer-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.permission-primer-btn {
    background: var(--gold);
    color: var(--black);
    border: none;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.permission-primer-btn:hover {
    background: #e8bc5f;
    transform: scale(1.05);
}

/* Voice Toast Notification */
.voice-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--black-light);
    border: 1px solid var(--gold);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    text-align: center;
    max-width: 90%;
    width: max-content;
    max-width: 400px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.voice-toast.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Voice Troubleshooting Modal */
.troubleshoot-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.troubleshoot-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.troubleshoot-modal {
    background: var(--black-light);
    border: 1px solid var(--black-medium);
    border-radius: 16px;
    max-width: 400px;
    width: calc(100% - 2rem);
    max-height: 85vh;
    overflow-y: auto;
    margin: 1rem;
}

.troubleshoot-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--black-medium);
}

.troubleshoot-modal-header h2 {
    font-family: 'Fraunces', serif;
    font-size: 1.3rem;
    color: var(--gold);
}

.troubleshoot-modal-content {
    padding: 1.5rem;
}

.troubleshoot-section {
    margin-bottom: 1.5rem;
}

.troubleshoot-section:last-child {
    margin-bottom: 0;
}

.troubleshoot-section h4 {
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.troubleshoot-section ul {
    list-style: none;
    padding: 0;
}

.troubleshoot-section li {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 0.4rem 0;
    padding-left: 1.2rem;
    position: relative;
}

.troubleshoot-section li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--gold);
}

/* Voice settings in modal */
.voice-settings-info {
    margin-top: 0.5rem;
}

.voice-troubleshoot-link {
    color: var(--gold);
    font-size: 0.9rem;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.voice-troubleshoot-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Voice Preference Prompt */
.voice-pref-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.voice-pref-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.voice-pref-content {
    background: var(--black-light);
    border: 1px solid var(--gold);
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.voice-pref-content p {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.voice-pref-subtext {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.9rem !important;
    margin-bottom: 1.5rem !important;
}

.voice-pref-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.voice-pref-btn {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.voice-pref-btn.primary {
    background: var(--gold);
    color: var(--black);
    font-weight: 600;
}

.voice-pref-btn.primary:hover {
    background: var(--gold-light);
}

.voice-pref-btn.secondary {
    background: transparent;
    border: 1px solid var(--gray-dark);
    color: var(--white);
}

.voice-pref-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Settings row for toggles */
.settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-row-label {
    flex: 1;
}

.settings-row-label span {
    color: var(--white);
    font-size: 1rem;
}

.settings-row-hint {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.clockwise-arrow {
    position: absolute;
    top: 50%;
    right: -8px;
    transform: translateY(-50%);
    font-size: 1.8rem;
    color: var(--gold);
    opacity: 0.6;
}
.diagram-hint {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gold-light);
    margin-top: 0.5rem;
    line-height: 1.4;
}

.placed-fixture {
    cursor: grab;
    touch-action: none;
    user-select: none;
    z-index: 10;
}
.placed-fixture.dragging {
    cursor: grabbing;
    opacity: 0.7;
    z-index: 100;
    position: absolute !important;
}
.fixture-edit-menu {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--black-medium);
    border: 1px solid var(--gold);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 200;
    min-width: 140px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.fixture-type-select {
    background: var(--black-light);
    color: var(--white);
    border: 1px solid var(--gold);
    border-radius: 6px;
    padding: 6px;
    font-size: 0.85rem;
    font-family: inherit;
}
.fixture-edit-remove {
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px;
    font-size: 0.8rem;
    cursor: pointer;
}
.fixture-edit-close {
    background: var(--gold);
    color: var(--black);
    border: none;
    border-radius: 6px;
    padding: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 600;
}

.edit-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    margin-top: 0.5rem;
}
.edit-photo-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}
.edit-photo-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
}
.retake-photo-btn {
    display: block;
    text-align: center;
    background: var(--gold);
    color: var(--black);
    padding: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
    border-radius: 4px;
}
.retake-photo-btn input { display: none; }
.edit-room-header {
    margin-bottom: 1rem;
}
.edit-photos-section {
    margin: 1rem 0;
}
.edit-photos-section h4 {
    color: var(--gold);
    margin-bottom: 0.5rem;
}
.room-details-edit {
    margin-top: 1rem;
}

.savings-highlight {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.08));
    border: 1px solid rgba(76, 175, 80, 0.4);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin: 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #66BB6A;
    text-align: center;
    letter-spacing: 0.01em;
}

.savings-highlight strong {
    color: #81C784;
}

.hedy-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--gold);
    color: var(--black);
    padding: 0.75rem 1.5rem;
    border-radius: 24px;
    font-size: 0.95rem;
    font-weight: 600;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    text-align: center;
    max-width: 90%;
}

.hedy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Onboarding mobile */
@media (max-width: 480px) {
    .ob-headline {
        font-size: 1.3rem;
    }

    .ob-scroll {
        padding: 1.25rem 1rem 0;
    }

    .ob-footer {
        padding: 0.5rem 1rem 1rem;
    }

    .ob-calc-badge {
        font-size: 1rem;
    }

    .ob-ba-arrow {
        font-size: 1.1rem;
    }
}

/* Hide reCAPTCHA badge (required attribution text added to page) */
.grecaptcha-badge { visibility: hidden !important; }

/* Credit Balance Button */
.credit-balance-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(201, 162, 39, 0.12);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 20px;
    padding: 4px 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold);
    transition: all 0.15s;
}

.credit-balance-btn:hover {
    background: rgba(201, 162, 39, 0.2);
    border-color: var(--gold);
}

.credit-coin {
    font-size: 0.6rem;
    color: var(--gold);
}

.credit-count {
    font-variant-numeric: tabular-nums;
}

/* Credit Dropdown */
.credit-dropdown {
    position: absolute;
    top: 52px;
    right: 10px;
    width: 260px;
    background: var(--black-light);
    border: 1px solid var(--black-medium);
    border-radius: 12px;
    z-index: 500;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    overflow: hidden;
}

.credit-dropdown-header {
    padding: 12px 14px;
    border-bottom: 1px solid var(--black-medium);
}

.credit-dropdown-balance {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 6px;
}

.credit-dropdown-history {
    padding: 8px 14px;
    max-height: 200px;
    overflow-y: auto;
}

.credit-history-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.8rem;
    color: var(--gray);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.credit-history-row:last-child { border-bottom: none; }

.credit-positive { color: #4CAF50; font-weight: 600; }
.credit-negative { color: #999; }

.credit-empty, .credit-loading {
    color: var(--gray);
    font-size: 0.8rem;
    text-align: center;
    padding: 8px 0;
}

.credit-buy-btn {
    display: block;
    width: calc(100% - 20px);
    margin: 8px 10px 10px;
    padding: 10px;
    background: var(--gold);
    color: var(--black);
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.15s;
}

.credit-buy-btn:hover { opacity: 0.9; }

/* Signup Modal */
.signup-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.signup-modal {
    background: var(--black-light);
    border: 1px solid var(--black-medium);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    max-width: 400px;
    width: 100%;
    position: relative;
    text-align: center;
}

.signup-modal-icon {
    width: 48px;
    height: 48px;
    background: var(--gold);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--black);
    margin: 0 auto 1rem;
}

.signup-modal h2 {
    font-family: 'Fraunces', serif;
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
    color: var(--white);
}

.signup-modal-sub {
    color: var(--gold);
    font-size: 0.88rem;
    margin-bottom: 1.2rem;
}

.signup-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    font-size: 0.82rem;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 0.8rem;
}

.signup-modal form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.signup-modal input {
    background: var(--black);
    border: 1px solid var(--black-medium);
    color: var(--white);
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
}

.signup-modal input:focus {
    border-color: var(--gold);
}

.signup-submit-btn {
    background: var(--gold);
    color: var(--black);
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.15s;
    margin-top: 0.2rem;
}

.signup-submit-btn:hover { opacity: 0.9; }
.signup-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.promo-code-section { margin: 8px 0; }
.promo-toggle-link {
    color: var(--gold);
    font-size: 0.82rem;
    text-decoration: none;
    opacity: 0.8;
}
.promo-toggle-link:hover { opacity: 1; }
.promo-apply-btn {
    background: var(--gold);
    color: var(--black);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
}
.promo-apply-btn:hover { opacity: 0.9; }

.signup-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    color: var(--gray);
    font-size: 0.8rem;
}

.signup-divider::before, .signup-divider::after {
    content: '';
    flex: 1;
    border-top: 1px solid var(--black-medium);
}

.signup-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--white);
    color: #333;
    border: none;
    padding: 11px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.15s;
    width: 100%;
}

.signup-google-btn:hover { opacity: 0.9; }

.signup-signin-link {
    color: var(--gray);
    font-size: 0.8rem;
    margin-top: 1rem;
}

.signup-signin-link a {
    color: var(--gold);
    text-decoration: none;
}

.signup-signin-link a:hover { text-decoration: underline; }

.recaptcha-attribution {
    color: var(--gray);
    font-size: 0.68rem;
    margin-top: 0.8rem;
    line-height: 1.4;
}

.recaptcha-attribution a {
    color: var(--gray);
    text-decoration: underline;
}

/* Signup Gate in Chat */
.signup-gate-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 320px;
    margin: 0.5rem 0 0.5rem 42px;
    padding: 1rem;
    background: rgba(201, 162, 39, 0.06);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 12px;
}

.signup-gate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    border: none;
    transition: opacity 0.15s;
}

.signup-gate-email {
    background: var(--gold);
    color: var(--black);
}

.signup-gate-google {
    background: var(--white);
    color: #333;
}

.signup-gate-btn:hover { opacity: 0.9; }

.signup-gate-link {
    color: var(--gray);
    font-size: 0.78rem;
    text-align: center;
    text-decoration: none;
}

.signup-gate-link:hover { color: var(--gold); }

/* Purchase Modal */
.purchase-packages {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.purchase-pkg {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--black);
    border: 1px solid var(--black-medium);
    border-radius: 10px;
    padding: 12px 14px;
    cursor: pointer;
    font-family: inherit;
    color: var(--white);
    transition: border-color 0.15s;
}

.purchase-pkg:hover { border-color: var(--gold); }

.purchase-popular {
    border-color: var(--gold);
    background: rgba(201, 162, 39, 0.06);
}

.purchase-pkg-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.purchase-pkg-name {
    font-weight: 600;
    font-size: 0.92rem;
}

.purchase-bonus {
    font-size: 0.72rem;
    color: var(--gold);
    font-weight: 500;
}

.purchase-savings {
    font-size: 0.72rem;
    color: #4CAF50;
    font-weight: 600;
}

.purchase-desc {
    font-size: 0.72rem;
    color: var(--gray);
    line-height: 1.3;
    margin-top: 2px;
}

.purchase-funnel-header {
    text-align: center;
    margin-bottom: 12px;
    padding: 8px;
}

.purchase-funnel-header h3 {
    color: var(--gold);
    font-family: 'Fraunces', serif;
    font-size: 1.1rem;
    margin: 4px 0;
}

.purchase-funnel-header p {
    color: var(--gray);
    font-size: 0.82rem;
    margin: 0;
}

.purchase-funnel-emoji {
    font-size: 1.4rem;
}

.purchase-promo-link {
    text-align: center;
    margin-top: 10px;
}

.purchase-promo-link a {
    color: var(--gray);
    font-size: 0.75rem;
    text-decoration: underline;
}

.credit-starter-status {
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.78rem;
    color: var(--gold);
    margin-bottom: 8px;
    text-align: center;
}

.credit-starter-status small {
    color: var(--gray);
}

.credit-starter-expired {
    background: rgba(255, 100, 100, 0.1);
    border-color: rgba(255, 100, 100, 0.3);
    color: #ff6464;
}

.purchase-pkg-price {
    font-family: 'Fraunces', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold);
}

.purchase-note {
    color: var(--gray);
    font-size: 0.78rem;
    font-style: italic;
    text-align: center;
}

/* Sticky Cost Bar */
.cost-bar {
    display: flex;
    flex-direction: column;
    background: var(--black-light);
    border-bottom: 1px solid var(--black-medium);
    padding: 8px 16px;
    cursor: pointer;
    user-select: none;
    z-index: 10;
}

.cost-bar-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cost-bar-compact::after {
    content: '\25BC';
    font-size: 0.6rem;
    color: var(--gray);
    transition: transform 0.2s;
}

.cost-bar-compact.cost-bar-open::after {
    transform: rotate(180deg);
}

.cost-bar-total {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--white);
}

.cost-bar-savings {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--gold);
}

.cost-bar-expanded {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 8px;
    margin-top: 6px;
    border-top: 1px solid var(--black-medium);
}

.cost-bar-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--gray);
}

.cost-bar-savings-row {
    font-weight: 700;
    color: var(--gold);
    font-size: 0.9rem;
}

.cost-bar-savings-row span {
    color: var(--gold);
}

/* Completion Card */
.completion-card {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.12), rgba(201, 162, 39, 0.04));
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1rem 0;
    text-align: center;
}

.completion-header {
    font-family: 'Fraunces', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 1rem;
}

.completion-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--gray-light);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.completion-row:last-of-type {
    border-bottom: none;
}

.completion-savings {
    font-weight: 700;
    font-size: 1.1rem;
}

.completion-savings span {
    color: var(--gold);
}

.completion-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.completion-share-btn {
    background: var(--gold);
    color: var(--black);
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.15s;
}

.completion-share-btn:hover { opacity: 0.9; }

.completion-new-btn {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
}

.completion-new-btn:hover {
    background: rgba(201, 162, 39, 0.1);
}


.receipt-scan-bar {
    display: none;
    padding: 0 16px 4px;
    animation: slideInReceipt 0.3s ease;
}
@keyframes slideInReceipt {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.receipt-scan-icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid rgba(201,162,39,0.25);
    border-radius: 12px;
    cursor: pointer;
    padding: 4px 10px;
    color: rgba(201,162,39,0.7);
    font-size: 11px;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s;
}
.receipt-scan-icon-btn:hover {
    color: var(--gold);
    border-color: rgba(201,162,39,0.5);
    background: rgba(201,162,39,0.08);
}
.receipt-scan-tooltip {
    font-size: 11px;
    opacity: 1;
    transition: opacity 0.5s;
}
.receipt-scan-tooltip.faded {
    opacity: 0;
}


@keyframes receiptConfetti {
    0% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}
.receipt-card-container {
    animation: receiptConfetti 0.6s ease-out;
}

.savings-callout-card {
    background: linear-gradient(135deg, rgba(52,211,153,0.12), rgba(52,211,153,0.04));
    border: 1px solid rgba(52,211,153,0.2);
    border-radius: 14px;
    padding: 10px 14px;
    margin: 8px 0;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.savings-callout-card.callout-visible {
    opacity: 1;
    transform: translateY(0);
    animation: coinDrop 0.5s ease-out;
}
@keyframes coinDrop {
    0% { opacity: 0; transform: translateY(-20px) scale(0.9); }
    60% { opacity: 1; transform: translateY(4px) scale(1.02); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
.cost-callout-card {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: 14px;
    padding: 10px 14px;
    margin: 8px 0;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.cost-callout-card.callout-visible {
    opacity: 1;
    transform: translateY(0);
}
.callout-main {
    display: flex;
    align-items: center;
    gap: 8px;
}
.callout-icon { font-size: 20px; }
.callout-label {
    flex: 1;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
}
.savings-callout-card .callout-label,
.savings-callout-card .callout-amount { color: #4AE8AD; }
.cost-callout-card .callout-label,
.cost-callout-card .callout-amount { color: #FBBF24; }
.callout-amount {
    font-family: 'DM Sans', sans-serif;
    font-weight: 800;
    white-space: nowrap;
}
.savings-callout-card .callout-amount { font-size: 17px; }
.cost-callout-card .callout-amount { font-size: 16px; }
.callout-source {
    font-style: italic;
    font-size: 10px;
    color: #6B6B6B;
    margin-top: 4px;
    padding-left: 28px;
}

.receipt-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}
.receipt-modal-overlay.receipt-visible {
    opacity: 1;
}
.receipt-modal-card {
    background: #111;
    border: 1px solid rgba(201,162,39,0.2);
    border-radius: 20px;
    max-width: 420px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 24px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.receipt-visible .receipt-modal-card {
    transform: translateY(0);
}
.receipt-header { text-align: center; margin-bottom: 4px; }
.receipt-logo {
    font-family: 'Fraunces', serif;
    font-size: 14px;
    color: #C9A227;
    letter-spacing: 2px;
    margin-bottom: 8px;
}
.receipt-project-name {
    font-family: 'Fraunces', serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}
.receipt-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 12px;
    color: #888;
}
.receipt-status-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}
.status-active {
    background: rgba(74,232,173,0.15);
    color: #4AE8AD;
}
.status-completed {
    background: rgba(201,162,39,0.15);
    color: #C9A227;
}
.receipt-divider {
    border: none;
    border-top: 1px dashed rgba(255,255,255,0.15);
    margin: 16px 0;
}
.receipt-section { margin-bottom: 4px; }
.receipt-section-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 10px;
}
.receipt-line-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}
.receipt-item-label {
    font-size: 13px;
    color: #ccc;
}
.receipt-item-amount {
    font-size: 13px;
    font-weight: 600;
    color: #ccc;
}
.receipt-strikethrough {
    text-decoration: line-through;
    color: #888 !important;
}
.receipt-item-source {
    font-size: 10px;
    font-style: italic;
    color: #666;
    margin-bottom: 4px;
    padding-left: 4px;
}
.receipt-confirm-note {
    font-size: 10px;
    font-style: italic;
    color: #888;
}
.receipt-subtotal-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0 4px;
    margin-top: 6px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-weight: 700;
    font-size: 14px;
    color: #fff;
}
.receipt-time-item .receipt-item-amount {
    font-style: italic;
    opacity: 0.7;
}
.receipt-savings-box {
    background: linear-gradient(135deg, rgba(52,211,153,0.15), rgba(52,211,153,0.05));
    border: 1px solid rgba(52,211,153,0.25);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    margin: 16px 0;
}
.receipt-savings-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #4AE8AD;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.receipt-savings-amount {
    font-family: 'DM Sans', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #4AE8AD;
}
.receipt-savings-pct {
    font-size: 12px;
    color: rgba(74,232,173,0.7);
    margin-top: 4px;
}
.receipt-lifetime-box {
    background: rgba(201,162,39,0.08);
    border: 1px solid rgba(201,162,39,0.15);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    margin-bottom: 12px;
}
.receipt-lifetime-label {
    font-size: 11px;
    color: #888;
    margin-bottom: 2px;
}
.receipt-lifetime-amount {
    font-family: 'DM Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #C9A227;
}
.receipt-footer-note {
    font-size: 10px;
    color: #666;
    text-align: center;
    font-style: italic;
    margin-bottom: 14px;
}
.receipt-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.receipt-btn-close {
    background: rgba(255,255,255,0.08);
    color: #ccc;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 10px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'DM Sans', sans-serif;
}
.receipt-btn-close:hover {
    background: rgba(255,255,255,0.12);
}
.receipt-btn-scan {
    background: linear-gradient(135deg, #C9A227, #E8C547);
    color: #1a1a2e;
    border: none;
    padding: 10px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'DM Sans', sans-serif;
}
.receipt-btn-scan:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(201,162,39,0.3);
}
.receipt-btn-scan:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.receipt-confirmed-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: #4AE8AD;
    background: rgba(52,211,153,0.12);
    padding: 1px 6px;
    border-radius: 6px;
    margin-left: 4px;
}
.receipt-partial-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    color: #E8C547;
    background: rgba(232,197,71,0.12);
    padding: 1px 6px;
    border-radius: 6px;
    margin-left: 4px;
}
.receipt-est-label {
    font-size: 10px;
    font-style: italic;
    color: #888;
}
.receipt-estimated {
    font-style: italic;
    color: #999;
}
.receipt-scanned-section {
    margin: 12px 0;
}
.scanned-receipt-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
}
.scanned-receipt-store {
    font-weight: 700;
    font-size: 13px;
    color: #fff;
}
.scanned-receipt-date {
    font-size: 11px;
    color: #888;
    margin-bottom: 6px;
}
.scanned-receipt-item {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #ccc;
    padding: 2px 0;
}
.scanned-receipt-total {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 4px;
    padding-top: 4px;
}

@media (max-width: 600px) {
    .receipt-modal-card {
        padding: 18px;
        max-height: 80vh;
    }
    .receipt-savings-amount { font-size: 30px; }
}

.mobile-profile-icon {
    display: none;
}

@media (max-width: 767px) {
    .desktop-nav { display: none !important; }
    .header-right-guest { display: none !important; }
    .mobile-profile-icon { display: flex; }
    header {
        justify-content: space-between;
        padding: 8px 16px;
    }
}
@media (min-width: 768px) {
    .mobile-bottom-nav { display: none !important; }
}

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--black-light, #1e1e3a);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 6px 0 env(safe-area-inset-bottom, 6px);
    z-index: 1000;
    justify-content: space-around;
}
@media (max-width: 767px) {
    .mobile-bottom-nav { display: flex; }
    body { padding-bottom: 64px; }
    .app-container { padding-bottom: 0; }
}
.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 10px;
    font-family: 'DM Sans', sans-serif;
    padding: 4px 12px;
    transition: color 0.2s;
}
.mobile-nav-item.active, .mobile-nav-item:hover {
    color: var(--gold);
}
.mobile-nav-item svg {
    opacity: 0.7;
}
.mobile-nav-item.active svg {
    opacity: 1;
    stroke: var(--gold);
}

.mobile-profile-panel { position: fixed; inset: 0; z-index: 1001; }
.mobile-profile-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.mobile-profile-content {
    position: absolute;
    bottom: 64px;
    left: 0;
    right: 0;
    background: var(--black-light, #1e1e3a);
    border-top: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px 16px 0 0;
    padding: 20px 16px;
    animation: slideUpProfile 0.2s ease;
}
@keyframes slideUpProfile {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.mobile-profile-header { margin-bottom: 12px; }
.mobile-profile-email { color: rgba(255,255,255,0.7); font-size: 13px; }
.mobile-profile-credits {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 8px;
    color: var(--gold);
    font-size: 14px;
}
.mobile-profile-buy-btn {
    margin-left: auto;
    background: var(--gold);
    color: var(--black, #1a1a2e);
    border: none;
    border-radius: 12px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.mobile-profile-item {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    padding: 12px 0;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-decoration: none;
}
.mobile-profile-item:hover { color: var(--gold); }

.stuff-tabs {
    display: flex;
    gap: 4px;
    padding: 12px 16px 0;
    margin-bottom: 8px;
}
.stuff-tab {
    padding: 8px 20px;
    border-radius: 20px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    transition: all 0.2s;
}
.stuff-tab.active {
    background: rgba(201,162,39,0.15);
    color: var(--gold);
}
.stuff-tab:hover { color: var(--gold); }

.yearly-savings-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(201,162,39,0.08);
    border-bottom: 1px solid rgba(201,162,39,0.15);
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    color: rgba(255,255,255,0.8);
}
.yearly-savings-banner strong {
    color: var(--gold);
    font-weight: 700;
}
.yearly-savings-icon {
    font-size: 16px;
}
.streaming-content::after {
    content: '\25AE';
    color: var(--gold);
    animation: blink-cursor 0.7s infinite;
    margin-left: 2px;
}
@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

#healthHoldingPage {
    position: fixed;
    inset: 0;
    background: var(--black);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.health-holding-inner {
    text-align: center;
    padding: 2rem 1.5rem;
    max-width: 440px;
    width: 100%;
}
.health-icon-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    margin-bottom: 1.5rem;
}
.health-hedy-icon {
    width: 72px;
    height: 72px;
    background: var(--gold);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 2.2rem;
    color: var(--black);
}
.health-zzz {
    animation: zzz-float 2s ease-in-out infinite;
}
@keyframes zzz-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.health-headline {
    color: var(--white);
    font-family: 'Fraunces', serif;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.health-emoji {
    display: inline;
}
.health-subtext {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}
.health-retry-btn {
    background: var(--gold);
    color: var(--black);
    border: none;
    padding: 14px 40px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'DM Sans', sans-serif;
}
.health-retry-btn:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
}
.health-retry-btn:active {
    transform: scale(0.97);
}
.health-retry-btn.shaking {
    animation: shake 0.4s ease-in-out;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}
.health-retry-status {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.75rem;
    min-height: 1.2em;
}
.health-email-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray);
}
.health-email-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.health-email-form {
    display: flex;
    gap: 8px;
    max-width: 360px;
    margin: 0 auto;
}
.health-email-input {
    flex: 1;
    background: var(--gray);
    border: 1px solid var(--gray-light);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--white);
    font-size: 0.95rem;
    outline: none;
    font-family: 'DM Sans', sans-serif;
}
.health-email-input:focus {
    border-color: var(--gold);
}
.health-email-input::placeholder {
    color: #666;
}
.health-email-btn {
    background: var(--gold);
    color: var(--black);
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.health-email-btn:hover {
    background: var(--gold-light);
}
.health-email-success {
    color: var(--gold);
    font-size: 0.95rem;
    margin-top: 0.75rem;
}
.health-footer-text {
    color: #555;
    font-size: 0.8rem;
    margin-top: 2rem;
}

.notify-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.notify-modal {
    background: var(--gray);
    border: 1px solid var(--gray-light);
    border-radius: 16px;
    padding: 2rem;
    max-width: 380px;
    width: 90%;
    text-align: center;
    position: relative;
}
.notify-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
}

.recovery-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gray);
    border: 1px solid var(--gold);
    border-radius: 12px;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 10001;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    animation: toast-in 0.4s ease;
    color: var(--white);
    font-weight: 500;
}
@keyframes toast-in {
    from { transform: translateX(-50%) translateY(-30px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}
.recovery-toast-btn {
    background: var(--gold);
    color: var(--black);
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    white-space: nowrap;
}

.error-retry-bubble {
    background: var(--gray) !important;
    border: 1px solid var(--gold) !important;
    border-radius: 16px !important;
}
.error-retry-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
    flex-wrap: wrap;
}
.error-retry-btn {
    background: var(--gold);
    color: var(--black);
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    transition: background 0.2s;
}
.error-retry-btn:hover {
    background: var(--gold-light);
}
.error-notify-link {
    color: var(--gold);
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
    background: none;
    border: none;
    font-family: 'DM Sans', sans-serif;
}

.viz-shimmer-card {
    margin-top: 12px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(26,26,46,0.95), rgba(30,30,55,0.95));
    border: 1px solid rgba(212,175,55,0.25);
}
.viz-shimmer-preview {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(90deg, rgba(212,175,55,0.05) 25%, rgba(212,175,55,0.12) 50%, rgba(212,175,55,0.05) 75%);
    background-size: 200% 100%;
    animation: vizShimmer 1.8s ease-in-out infinite;
    position: relative;
}
.viz-shimmer-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(212,175,55,0.08), transparent 70%);
}
.viz-shimmer-footer {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.viz-shimmer-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d4af37;
    animation: vizShimmerPulse 1.4s ease-in-out infinite;
    flex-shrink: 0;
}
.viz-shimmer-status {
    color: rgba(212,175,55,0.85);
    font-size: 0.88em;
    font-family: 'DM Sans', sans-serif;
}
@keyframes vizShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@keyframes vizShimmerPulse {
    0%, 100% { opacity: 0.4; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.1); }
}
