/* ==========================================================================
   KMCO Moodboard App — Design System & Main Stylesheet
   Palette: Warm Neutrals, Deep Espresso, Terracotta & Sage Accents
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,400&display=swap');

:root {
    /* Color Palette */
    --color-bg: #F9F8F6;
    --color-surface: #FFFFFF;
    --color-surface-translucent: rgba(255, 255, 255, 0.88);
    --color-surface-hover: #F3F1EC;
    
    --color-primary: #1F1E1D;
    --color-primary-light: #3D3A37;
    --color-accent: #C26D45;         /* Warm Terracotta */
    --color-accent-soft: #F4EAE4;
    --color-accent-hover: #AD5B35;
    --color-sage: #5B7065;           /* Subtle Sage */
    --color-sage-soft: #EBF0EC;

    --color-text-main: #1D1C1A;
    --color-text-muted: #73706B;
    --color-text-subtle: #9C9891;
    
    --color-border: #E8E5DF;
    --color-border-focus: #C26D45;

    /* Shadows & Elevation */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(31, 30, 29, 0.06);
    --shadow-lg: 0 16px 40px rgba(31, 30, 29, 0.1);
    --shadow-selected: 0 0 0 2px var(--color-accent), 0 8px 20px rgba(194, 109, 69, 0.15);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Typography */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;

    /* Transitions */
    --transition-fast: 0.18s ease;
    --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Atmosphere */
.bg-ambient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle at 10% 20%, rgba(244, 234, 228, 0.6) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(235, 240, 236, 0.6) 0%, transparent 40%);
}

/* Header */
.app-header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--color-primary);
}

.brand-badge {
    background: var(--color-primary);
    color: #FFF;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
}

.brand-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.header-tagline {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Main Container (Intake Form) */
.main-wrapper {
    position: relative;
    z-index: 5;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem 3rem;
    max-width: 780px;
    margin: 0 auto;
    width: 100%;
}

/* Progress Indicator */
.intake-progress-container {
    width: 100%;
    margin-bottom: 2rem;
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.progress-step-text {
    color: var(--color-accent);
}

.progress-track {
    width: 100%;
    height: 6px;
    background-color: var(--color-border);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent), #E0875C);
    width: 16.66%;
    border-radius: var(--radius-full);
    transition: width var(--transition-normal);
}

/* Card Container & Steps */
.intake-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2.25rem 2rem;
    width: 100%;
    backdrop-filter: blur(12px);
    transition: transform var(--transition-normal);
}

.step-panel {
    display: none;
    animation: fadeIn 0.35s ease forwards;
}

.step-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    background: var(--color-accent-soft);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.85rem;
}

.step-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.step-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 1.75rem;
}

/* Grid Selections */
.options-grid {
    display: grid;
    gap: 0.9rem;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-1 {
    grid-template-columns: 1fr;
}

/* Option Cards (Selectable) */
.option-card {
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition-fast);
    user-select: none;
    position: relative;
}

.option-card:hover {
    border-color: var(--color-text-subtle);
    background-color: var(--color-surface-hover);
    transform: translateY(-2px);
}

.option-card.selected {
    border-color: var(--color-accent);
    background-color: var(--color-accent-soft);
    box-shadow: var(--shadow-selected);
}

.option-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    width: 2.2rem;
    height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.option-card.selected .option-icon {
    background: #FFF;
}

.option-text {
    flex: 1;
}

.option-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-primary);
    margin-bottom: 0.15rem;
}

.option-desc {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.option-check {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.option-card.selected .option-check {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.option-check::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px);
    display: none;
}

.option-card.selected .option-check::after {
    display: block;
}

/* Textarea for Step 6 */
.custom-textarea {
    width: 100%;
    min-height: 130px;
    padding: 1rem 1.25rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--color-primary);
    background: var(--color-surface);
    resize: vertical;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.custom-textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.custom-textarea::placeholder {
    color: var(--color-text-subtle);
    font-size: 0.9rem;
}

/* Actions & Buttons */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--color-surface-hover);
    color: var(--color-primary);
    border-color: var(--color-text-subtle);
}

.btn-secondary:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--color-primary);
    color: #FFFFFF;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover:not(:disabled) {
    background: var(--color-accent);
    box-shadow: 0 6px 18px rgba(194, 109, 69, 0.25);
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-accent {
    background: var(--color-accent);
}

/* ==========================================================================
   MOODBOARD VIEW STYLES
   ========================================================================== */

.board-wrapper {
    position: relative;
    z-index: 5;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 2rem 5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.board-hero {
    text-align: center;
    margin-bottom: 2.5rem;
    max-width: 800px;
}

.board-title {
    font-family: var(--font-serif);
    font-size: 2.35rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-primary);
    margin-bottom: 0.6rem;
    letter-spacing: -0.015em;
}

.board-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

/* Summary Pills Bar */
.intake-summary-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.summary-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-primary-light);
    box-shadow: var(--shadow-sm);
}

.summary-pill-label {
    color: var(--color-text-subtle);
    font-weight: 500;
}

.loading-pill {
    color: var(--color-text-subtle);
    font-style: italic;
}

/* Gallery Section */
.board-gallery-section {
    width: 100%;
    margin-bottom: 3rem;
}

.gallery-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.gallery-info {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

/* Responsive Moodboard Grid */
.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.5rem;
}

/* Board Image Card */
.board-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

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

.board-img-container {
    position: relative;
    width: 100%;
    height: 280px;
    background-color: var(--color-surface-hover);
    overflow: hidden;
}

.board-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.board-card:hover .board-card-img {
    transform: scale(1.04);
}

/* Card Overlay Tag */
.board-card-tag {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.board-card-meta {
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-surface);
}

.board-card-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: capitalize;
}

.board-card-view-btn {
    font-size: 0.78rem;
    color: var(--color-accent);
    font-weight: 600;
}

/* Skeleton Loading Cards */
.board-card-skeleton {
    height: 320px;
    background: linear-gradient(90deg, #F3F1EC 25%, #EBE8E1 50%, #F3F1EC 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Conversion CTA Banner */
.board-cta-banner {
    width: 100%;
    background: var(--color-primary);
    color: #FFF;
    border-radius: var(--radius-lg);
    padding: 2.5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: var(--shadow-lg);
}

.cta-title {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #FFF;
}

.cta-desc {
    font-size: 0.95rem;
    color: #BDB9B3;
    max-width: 540px;
    line-height: 1.5;
}

.btn-wa {
    background: #25D366;
    color: #FFF;
    border: none;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
    white-space: nowrap;
}

.btn-wa:hover:not(:disabled) {
    background: #20BA5A;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    transform: translateY(-2px);
}

.wa-icon-svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox-modal.active {
    display: flex;
    animation: fadeIn 0.25s ease forwards;
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 14, 13, 0.85);
    backdrop-filter: blur(8px);
}

.lightbox-content {
    position: relative;
    z-index: 1001;
    max-width: 900px;
    max-height: 90vh;
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.6);
    color: #FFF;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-caption {
    padding: 0.85rem 1.25rem;
    background: #1A1918;
    color: #EEE;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
}

/* Value Notice */
.frictionless-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--color-text-subtle);
    margin-top: 1.25rem;
    text-align: center;
}

.frictionless-note svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Floating WhatsApp Button */
.wa-floating-btn {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    z-index: 100;
    background: #25D366;
    color: #FFF;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.wa-floating-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
}

.wa-floating-btn svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* ==========================================================================
   FASE 2: REFINEMENT & MATURE BOARD STYLES
   ========================================================================== */

/* Card Action Buttons (Top-right overlay) */
.card-actions-overlay {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    gap: 0.4rem;
    z-index: 5;
    opacity: 0.92;
    transition: opacity var(--transition-fast);
}

.board-card:hover .card-actions-overlay {
    opacity: 1;
}

.card-action-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    border: none;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: all var(--transition-fast);
}

.card-action-btn:hover {
    transform: scale(1.1);
}

.btn-card-remove:hover {
    background: #E05A47;
    color: #FFF;
}

.btn-card-more:hover {
    background: var(--color-accent);
    color: #FFF;
}

.card-action-btn.loading {
    pointer-events: none;
    opacity: 0.7;
    animation: spin 0.8s linear infinite;
}

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

/* Card removal animation */
.board-card.removing {
    opacity: 0;
    transform: scale(0.85) translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* Card newly added animation */
.board-card.newly-added {
    animation: fadeInUp 0.45s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Refinement Stats Bar */
.refinement-info-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent);
    background: var(--color-accent-soft);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
}

/* Mature Board Soft Toast / Banner (Pojok Bawah Kanan) */
.mature-board-toast {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    max-width: 420px;
    background: var(--color-primary);
    color: #FFF;
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 99;
    display: none;
    animation: slideUpToast 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mature-board-toast.active {
    display: block;
}

@keyframes slideUpToast {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

.toast-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #E0875C;
}

.toast-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
}

.toast-close:hover {
    color: #FFF;
}

.toast-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: #FFF;
}

.toast-desc {
    font-size: 0.85rem;
    color: #D1CEC7;
    margin-bottom: 1rem;
    line-height: 1.45;
}

.toast-actions {
    display: flex;
    gap: 0.6rem;
}

.toast-actions .btn {
    font-size: 0.82rem;
    padding: 0.5rem 1rem;
}

/* Explicit Favorite Button */
.btn-like-board {
    background: #FFF;
    color: #E05A47;
    border: 1px solid rgba(224, 90, 71, 0.3);
    transition: all var(--transition-fast);
}

.btn-like-board:hover {
    background: #FFF5F4;
    border-color: #E05A47;
    transform: translateY(-1px);
}

.btn-like-board.liked {
    background: #E05A47;
    color: #FFF;
    border-color: #E05A47;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .mature-board-toast {
        left: 1rem;
        right: 1rem;
        bottom: 5rem;
        max-width: calc(100% - 2rem);
    }
}


/* Responsive */
@media (max-width: 768px) {
    .board-wrapper {
        padding: 1rem 1.25rem 4rem;
    }

    .board-title {
        font-size: 1.8rem;
    }

    .board-cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .board-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1rem;
    }
}

/* ==========================================================================
   FASE 3: SWIPE CALIBRATION STYLES
   ========================================================================== */

.swipe-wrapper {
    position: relative;
    z-index: 5;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem 3rem;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
}

.swipe-header {
    text-align: center;
    margin-bottom: 1.5rem;
    width: 100%;
}

.swipe-title {
    font-family: var(--font-serif);
    font-size: 1.95rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-primary);
    margin-bottom: 0.4rem;
}

.swipe-subtitle {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
}

/* Swipe Progress */
.swipe-progress-box {
    width: 100%;
}

.swipe-progress-track {
    width: 100%;
    height: 6px;
    background-color: var(--color-border);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.swipe-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent), #E0875C);
    width: 12.5%;
    border-radius: var(--radius-full);
    transition: width var(--transition-normal);
}

.swipe-progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.swipe-liked-counter {
    color: var(--color-accent);
    background: var(--color-accent-soft);
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-full);
    font-size: 0.76rem;
}

/* Swipe Card Stage / Deck */
.swipe-stage {
    width: 100%;
    height: 480px;
    position: relative;
    perspective: 1000px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swipe-deck {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Single Swipe Card */
.swipe-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: grab;
    user-select: none;
    touch-action: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    will-change: transform, opacity;
}

.swipe-card:active {
    cursor: grabbing;
}

/* Stack depth effect for top 3 cards */
.swipe-card:nth-last-child(1) {
    z-index: 3;
    transform: scale(1) translateY(0);
}

.swipe-card:nth-last-child(2) {
    z-index: 2;
    transform: scale(0.95) translateY(14px);
    opacity: 0.85;
    pointer-events: none;
}

.swipe-card:nth-last-child(3) {
    z-index: 1;
    transform: scale(0.9) translateY(26px);
    opacity: 0.6;
    pointer-events: none;
}

.swipe-card:nth-last-child(n+4) {
    display: none;
}

/* Card Image Area */
.swipe-card-img-wrap {
    position: relative;
    width: 100%;
    flex: 1;
    background-color: var(--color-surface-hover);
    overflow: hidden;
}

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

/* Like / Dislike Stamp Overlays */
.swipe-stamp {
    position: absolute;
    top: 1.5rem;
    padding: 0.4rem 1.1rem;
    border-radius: var(--radius-sm);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 3px solid;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 10;
}

.swipe-stamp-like {
    left: 1.5rem;
    color: #25D366;
    border-color: #25D366;
    transform: rotate(-15deg);
}

.swipe-stamp-dislike {
    right: 1.5rem;
    color: #E05A47;
    border-color: #E05A47;
    transform: rotate(15deg);
}

/* Card Metadata */
.swipe-card-meta {
    padding: 1.25rem 1.5rem;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
}

.swipe-style-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.35rem;
}

.swipe-style-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.45;
}

/* Swipe Controls Section */
.swipe-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.swipe-btn {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    cursor: pointer;
    background: var(--color-surface);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    transition: all var(--transition-fast);
}

.swipe-btn:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.swipe-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.swipe-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.swipe-btn-dislike {
    color: #E05A47;
    border-color: rgba(224, 90, 71, 0.25);
}

.swipe-btn-dislike:hover:not(:disabled) {
    background: #FFF2F0;
    border-color: #E05A47;
}

.swipe-btn-like {
    color: #C26D45;
    border-color: rgba(194, 109, 69, 0.3);
    width: 68px;
    height: 68px;
    font-size: 1.7rem;
    background: var(--color-accent-soft);
}

.swipe-btn-like:hover:not(:disabled) {
    background: var(--color-accent);
    color: #FFF;
    border-color: var(--color-accent);
}

.swipe-btn-undo {
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

.swipe-btn-undo:hover:not(:disabled) {
    background: var(--color-surface-hover);
    color: var(--color-primary);
}

/* Tip / Instruction */
.swipe-instruction {
    font-size: 0.8rem;
    color: var(--color-text-subtle);
    text-align: center;
}

/* Finish Overlay Modal */
.swipe-finish-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(31, 30, 29, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.swipe-finish-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
}

.swipe-finish-box {
    background: var(--color-surface);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.finish-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-radius: var(--radius-full);
    animation: spin 0.9s linear infinite;
    margin: 0 auto 1.5rem;
}

.finish-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.finish-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.45;
}

/* ==========================================================================
   FASE 4: ROOM TRANSFORMATION STYLES
   ========================================================================== */

.transform-wrapper {
    position: relative;
    z-index: 5;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1.5rem 4rem;
    max-width: 820px;
    margin: 0 auto;
    width: 100%;
}

.transform-hero {
    text-align: center;
    margin-bottom: 2rem;
    max-width: 680px;
}

.transform-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.transform-subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.transform-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2.25rem;
    width: 100%;
    backdrop-filter: blur(12px);
    transition: all var(--transition-normal);
}

/* Dropzone Upload */
.dropzone-container {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-md);
    background-color: var(--color-bg);
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
    margin-bottom: 1.25rem;
}

.dropzone-container:hover, .dropzone-container.drag-over {
    border-color: var(--color-accent);
    background-color: var(--color-accent-soft);
}

.file-input-hidden {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.dropzone-icon {
    font-size: 2.5rem;
    margin-bottom: 0.6rem;
}

.dropzone-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.35rem;
}

.dropzone-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.dropzone-hint {
    font-size: 0.78rem;
    color: var(--color-text-subtle);
}

/* Preview Image in Dropzone */
.dropzone-preview {
    position: relative;
    width: 100%;
    max-height: 380px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.preview-image {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    display: block;
}

.btn-change-photo {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.75);
    color: #FFF;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background var(--transition-fast);
}

.btn-change-photo:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Guidance Box */
.photo-guidance-box {
    background: var(--color-surface-hover);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.75rem;
    font-size: 0.85rem;
}

.guidance-title {
    font-weight: 700;
    color: var(--color-primary);
    display: block;
    margin-bottom: 0.25rem;
}

.guidance-list {
    margin-left: 1.2rem;
    color: var(--color-text-muted);
}

/* Form Questions */
.transform-questions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.t-question-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.t-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
}

.t-select-input, .t-text-input {
    width: 100%;
    padding: 0.85rem 1.15rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    color: var(--color-primary);
    background: var(--color-surface);
    outline: none;
    transition: border-color var(--transition-fast);
}

.t-select-input:focus, .t-text-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-soft);
}

/* Scope Option Cards */
.t-options-grid {
    display: grid;
    gap: 0.8rem;
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.t-option-card {
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1rem 0.9rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.t-option-card:hover {
    border-color: var(--color-text-subtle);
    background-color: var(--color-surface-hover);
}

.t-option-card.selected {
    border-color: var(--color-accent);
    background-color: var(--color-accent-soft);
    box-shadow: var(--shadow-selected);
}

.t-option-icon {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
}

.t-option-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.2rem;
}

.t-option-desc {
    font-size: 0.76rem;
    color: var(--color-text-muted);
    line-height: 1.35;
}

/* Pills Multi-Select */
.t-pills-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.t-pill-btn {
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.t-pill-btn:hover {
    border-color: var(--color-text-subtle);
    background: var(--color-surface-hover);
}

.t-pill-btn.selected {
    background: var(--color-accent);
    color: #FFF;
    border-color: var(--color-accent);
}

/* Processing State */
.transform-processing-card {
    text-align: center;
    padding: 3.5rem 2rem;
}

.processing-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
    margin: 0 auto 1.25rem;
}

.processing-step-badge {
    display: inline-block;
    background: var(--color-accent-soft);
    color: var(--color-accent);
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(176, 90, 50, 0.2);
}

.processing-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.processing-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    max-width: 480px;
    margin: 0 auto 1.75rem;
    line-height: 1.5;
}

.processing-progress-bar {
    width: 100%;
    max-width: 380px;
    height: 8px;
    background: var(--color-border);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 0 auto 0.6rem;
}

.processing-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent), #E0875C);
    width: 15%;
    border-radius: var(--radius-full);
    transition: width 0.4s ease;
}

.processing-error-box {
    background: #FFF5F2;
    border: 1.5px solid #F2B8A2;
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    max-width: 480px;
    margin: 1.5rem auto 1.5rem;
}

.error-notice-text {
    font-size: 0.88rem;
    color: #A33A18;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

@keyframes progressPulsing {
    0% { width: 10%; }
    40% { width: 60%; }
    80% { width: 88%; }
    100% { width: 96%; }
}

.processing-timer {
    font-size: 0.8rem;
    color: var(--color-text-subtle);
    font-weight: 600;
    margin-bottom: 2rem;
}

.processing-tips-box {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    max-width: 480px;
    margin: 0 auto;
    text-align: left;
}

.p-tip-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-accent);
    display: block;
    margin-bottom: 0.25rem;
}

.p-tip-text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.45;
}

/* ==========================================================================
   BEFORE-AFTER SLIDER STYLES
   ========================================================================== */

.transform-result-card {
    padding: 2.25rem;
}

.result-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.result-title {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 0.4rem;
    margin-bottom: 0.35rem;
}

.result-subtitle {
    font-size: 0.92rem;
    color: var(--color-text-muted);
}

.before-after-container {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    cursor: ew-resize;
    user-select: none;
    touch-action: none;
    margin-bottom: 2rem;
}

.ba-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.ba-image-before-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.ba-image-before {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ba-label {
    position: absolute;
    bottom: 1rem;
    padding: 0.35rem 0.8rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    color: #FFF;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    border-radius: var(--radius-full);
    z-index: 3;
    pointer-events: none;
}

.ba-label-before {
    left: 1rem;
}

.ba-label-after {
    right: 1rem;
    background: var(--color-accent);
}

/* Draggable Handle */
.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 40px;
    margin-left: -20px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.ba-handle-line {
    flex: 1;
    width: 2.5px;
    background: #FFF;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.ba-handle-circle {
    width: 38px;
    height: 38px;
    background: #FFF;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    color: var(--color-primary);
    flex-shrink: 0;
}

.ba-handle-circle svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Result Action Buttons */
.result-actions-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.result-actions-primary {
    width: 100%;
}

.result-actions-primary .btn {
    width: 100%;
}

.result-actions-secondary {
    display: flex;
    justify-content: center;
}

/* ==========================================================================
   MODAL FEEDBACK (Kesempatan Terakhir)
   ========================================================================== */

.transform-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 14, 13, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.transform-modal-content {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    max-width: 540px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: fadeIn 0.25s ease forwards;
}

.modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
}

.ref-dropzone {
    border: 2px dashed rgba(224, 135, 92, 0.4);
    background: rgba(224, 135, 92, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-top: 1rem;
}

.ref-dropzone:hover, .ref-dropzone.drag-over {
    border-color: var(--color-accent);
    background: rgba(224, 135, 92, 0.08);
}

.final-attempt-used-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(14, 165, 233, 0.08);
    color: #0284c7;
    border: 1px dashed rgba(14, 165, 233, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-title {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
}

.modal-desc {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.45;
}

.feedback-tags-group {
    margin-bottom: 1.25rem;
}

.f-tag-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-primary);
    display: block;
    margin-bottom: 0.5rem;
}

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

    .before-after-container {
        height: 340px;
    }

    .transform-card {
        padding: 1.5rem;
    }
}


