﻿:root {
    --bf-bg: #f7f4ec;
    --bf-surface: #ffffff;
    --bf-surface-soft: #fffaf1;
    --bf-text: #1f2933;
    --bf-muted: #6b7280;
    --bf-primary: #d97706;
    --bf-primary-dark: #92400e;
    --bf-primary-soft: #fef3c7;
    --bf-green: #3f6212;
    --bf-green-soft: #ecfccb;
    --bf-blue: #2563eb;
    --bf-blue-soft: #dbeafe;
    --bf-pink: #be185d;
    --bf-pink-soft: #fce7f3;
    --bf-border: #eadfc8;
    --bf-shadow: 0 14px 35px rgba(120, 72, 20, 0.08);
}

html, body {
    background: radial-gradient(circle at top left, rgba(253, 186, 116, 0.18), transparent 32rem), linear-gradient(180deg, #fffaf1 0%, var(--bf-bg) 42%, #ffffff 100%);
    color: var(--bf-text);
}

.navbar {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--bf-border) !important;
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: -0.02em;
}

    .navbar-brand::before {
        content: "🦋 ";
    }

.nav-link {
    font-weight: 600;
}

    .nav-link:hover {
        color: var(--bf-primary) !important;
    }

.bf-hero {
    border-radius: 28px;
    padding: 42px;
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.98), rgba(255, 255, 255, 0.94)), radial-gradient(circle at 88% 12%, rgba(217, 119, 6, 0.22), transparent 14rem);
    border: 1px solid var(--bf-border);
    box-shadow: var(--bf-shadow);
    position: relative;
    overflow: hidden;
}

    .bf-hero::after {
        content: "🦋";
        position: absolute;
        right: 34px;
        top: 20px;
        font-size: 86px;
        opacity: 0.16;
        transform: rotate(12deg);
    }

.bf-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--bf-primary-soft);
    color: var(--bf-primary-dark);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.bf-title {
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.055em;
    margin-bottom: 16px;
}

.bf-subtitle {
    color: var(--bf-muted);
    font-size: 1.18rem;
    max-width: 760px;
}

.bf-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--bf-border);
    border-radius: 22px;
    box-shadow: var(--bf-shadow);
}

.bf-stat-card {
    background: var(--bf-surface);
    border: 1px solid var(--bf-border);
    border-radius: 22px;
    padding: 24px;
    box-shadow: var(--bf-shadow);
    height: 100%;
}

.bf-stat-label {
    color: var(--bf-muted);
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.055em;
}

.bf-stat-value {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: -0.045em;
}

.bf-stat-hint {
    color: var(--bf-muted);
    font-size: 0.9rem;
}

.bf-section-title {
    font-size: 1.35rem;
    font-weight: 850;
    letter-spacing: -0.025em;
}

.bf-plan-card {
    border-radius: 22px;
    border: 1px solid var(--bf-border);
    background: #fff;
    box-shadow: var(--bf-shadow);
    height: 100%;
    overflow: hidden;
}

    .bf-plan-card .bf-plan-head {
        padding: 20px;
        border-bottom: 1px solid var(--bf-border);
        background: linear-gradient(135deg, #fffaf1, #ffffff);
    }

.bf-plan-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    color: var(--bf-pink);
    font-weight: 700;
}

.bf-price {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.bf-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--bf-blue-soft);
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 800;
}

.bf-pill-green {
    background: var(--bf-green-soft);
    color: var(--bf-green);
}

.bf-pill-amber {
    background: var(--bf-primary-soft);
    color: var(--bf-primary-dark);
}

.bf-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-primary {
    background-color: var(--bf-primary);
    border-color: var(--bf-primary);
    font-weight: 700;
}

    .btn-primary:hover {
        background-color: var(--bf-primary-dark);
        border-color: var(--bf-primary-dark);
    }

.btn-outline-secondary,
.btn-outline-primary {
    font-weight: 700;
}

.table {
    vertical-align: middle;
}

.card,
.shadow-sm {
    border-radius: 18px;
}

footer {
    background: rgba(255, 255, 255, 0.72);
}
/* UI polish: stable cards, subtle motion and photo zoom */
.bf-card-lift,
.bf-plan-card,
.bf-stat-card,
.card.shadow-sm {
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

    .bf-card-lift:hover,
    .bf-plan-card:hover,
    .bf-stat-card:hover,
    .card.shadow-sm:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 42px rgba(120, 72, 20, 0.14);
    }

.bf-photo-frame {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
    border-bottom: 1px solid var(--bf-border);
}

.bf-photo-frame-sm {
    aspect-ratio: 4 / 3;
}

.bf-photo-frame-md {
    aspect-ratio: 16 / 10;
}

.bf-photo-frame-lg {
    aspect-ratio: 16 / 11;
}

.bf-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 220ms ease, filter 220ms ease;
}

.bf-photo-frame:hover .bf-photo-img {
    transform: scale(1.035);
    filter: saturate(1.06) contrast(1.02);
}

.bf-photo-zoom-button {
    position: absolute;
    right: 12px;
    bottom: 12px;
    border: 0;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.8rem;
    font-weight: 850;
    color: #fff;
    background: rgba(31, 41, 51, 0.78);
    backdrop-filter: blur(8px);
    opacity: 1;
    transform: translateY(0);
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.bf-photo-frame:hover .bf-photo-zoom-button {
    transform: translateY(-2px) scale(1.03);
}

.bf-photo-zoom-button:hover {
    background: rgba(146, 64, 14, 0.92);
}

.bf-photo-modal .modal-dialog {
    max-width: min(1120px, calc(100vw - 28px));
}

.bf-photo-modal-frame {
    background: rgba(0, 0, 0, 0.76);
    border-radius: 22px;
    padding: 12px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.bf-photo-modal-image {
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    display: block;
    border-radius: 16px;
}

.bf-photo-modal-caption {
    color: #fff;
    text-align: center;
    margin-top: 12px;
    font-weight: 700;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
}

.bf-fade-in {
    animation: bfFadeIn 280ms ease both;
}

@keyframes bfFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bf-card-lift,
    .bf-plan-card,
    .bf-stat-card,
    .card.shadow-sm,
    .bf-photo-img,
    .bf-photo-zoom-button,
    .bf-fade-in {
        transition: none;
        animation: none;
    }

        .bf-card-lift:hover,
        .bf-plan-card:hover,
        .bf-stat-card:hover,
        .card.shadow-sm:hover,
        .bf-photo-frame:hover .bf-photo-img {
            transform: none;
        }
}
/* UI polish pass 2: status pills, empty states and disabled action placeholders */
.bf-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.78rem;
    font-weight: 850;
    white-space: nowrap;
}

.bf-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.bf-status-suggested {
    background: #dbeafe;
    color: #1d4ed8;
}

.bf-status-verified {
    background: #dcfce7;
    color: #166534;
}

.bf-status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.bf-status-needs-more {
    background: #fef9c3;
    color: #854d0e;
}

.bf-status-disputed {
    background: #fce7f3;
    color: #9d174d;
}

.bf-status-muted {
    background: #f3f4f6;
    color: #4b5563;
}

.bf-empty-state {
    border: 1px dashed var(--bf-border);
    border-radius: 22px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--bf-shadow);
}

.bf-empty-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 10px;
}

.bf-muted-action {
    opacity: 0.58;
    cursor: not-allowed !important;
}

.bf-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bf-table-card {
    overflow: hidden;
}

.bf-table-card .table {
    margin-bottom: 0;
}

.bf-table-card tbody tr {
    transition: background 160ms ease;
}

.bf-table-card tbody tr:hover {
    background: rgba(254, 243, 199, 0.28);
}
/* Demo account switcher */
.bf-demo-role {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 0.78rem;
    font-weight: 850;
    white-space: nowrap;
    border: 1px solid transparent;
}

    .bf-demo-role::before {
        content: "●";
        font-size: 0.62rem;
        margin-right: 7px;
    }

.bf-demo-role-guest {
    background: #f3f4f6;
    color: #374151;
    border-color: #e5e7eb;
}

.bf-demo-role-basic {
    background: #dbeafe;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.bf-demo-role-premium {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.bf-demo-role-expert {
    background: #dcfce7;
    color: #166534;
    border-color: #bbf7d0;
}

.bf-demo-role-admin {
    background: #fce7f3;
    color: #9d174d;
    border-color: #fbcfe8;
}

.bf-demo-banner {
    border: 1px solid var(--bf-border);
    border-radius: 18px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--bf-shadow);
}
/* Keep navbar and demo switcher dropdown above hero/cards */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1040;
}

    .navbar .dropdown-menu {
        z-index: 1060;
    }

.bf-demo-banner {
    position: relative;
    z-index: 1;
}
/* Demo role capability cards */
.bf-role-panel {
    border: 1px solid var(--bf-border);
    border-radius: 22px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 241, 0.92));
    box-shadow: var(--bf-shadow);
}

.bf-role-panel-title {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.bf-role-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.bf-role-feature {
    border: 1px solid var(--bf-border);
    border-radius: 18px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.78);
}

    .bf-role-feature strong {
        display: block;
        font-size: 0.92rem;
        margin-bottom: 4px;
    }

    .bf-role-feature span {
        color: var(--bf-muted);
        font-size: 0.84rem;
    }

.bf-feature-locked {
    opacity: 0.58;
    filter: grayscale(0.25);
}

.bf-feature-unlocked {
    border-color: rgba(63, 98, 18, 0.26);
    background: rgba(236, 252, 203, 0.45);
}

.bf-feature-premium {
    border-color: rgba(217, 119, 6, 0.28);
    background: rgba(254, 243, 199, 0.58);
}

.bf-feature-expert {
    border-color: rgba(37, 99, 235, 0.25);
    background: rgba(219, 234, 254, 0.5);
}

.bf-plan-selected {
    outline: 3px solid rgba(217, 119, 6, 0.34);
    transform: translateY(-3px);
}

    .bf-plan-selected .bf-plan-head {
        background: linear-gradient(135deg, #fef3c7, #ffffff);
    }

@media (max-width: 992px) {
    .bf-role-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .bf-role-feature-grid {
        grid-template-columns: 1fr;
    }
}

/* Management admin tools demo panel */
.bf-admin-tools {
    border: 1px solid var(--bf-border);
    border-radius: 22px;
    padding: 22px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 241, 0.92));
    box-shadow: var(--bf-shadow);
}

.bf-admin-tool-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.bf-admin-tool {
    text-align: left;
    border: 1px solid var(--bf-border);
    border-radius: 18px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 8px 22px rgba(120, 72, 20, 0.06);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

    .bf-admin-tool:hover {
        transform: translateY(-3px);
        border-color: rgba(217, 119, 6, 0.42);
        box-shadow: 0 16px 34px rgba(120, 72, 20, 0.13);
    }

    .bf-admin-tool:active {
        transform: translateY(-1px);
    }

.bf-admin-tool-icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 10px;
    background: var(--bf-primary-soft);
    font-size: 1.1rem;
}

.bf-admin-tool strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 4px;
}

.bf-admin-tool small {
    display: block;
    color: var(--bf-muted);
    line-height: 1.35;
}

@media (max-width: 992px) {
    .bf-admin-tool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .bf-admin-tool-grid {
        grid-template-columns: 1fr;
    }
}
/* Self-guided demo path */
.bf-guided-demo {
    border: 1px solid var(--bf-border);
    border-radius: 22px;
    padding: 22px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 241, 0.9));
    box-shadow: var(--bf-shadow);
}

.bf-demo-step-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.bf-demo-step {
    position: relative;
    display: block;
    text-decoration: none;
    color: var(--bf-text);
    border: 1px solid var(--bf-border);
    border-radius: 18px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.86);
    min-height: 150px;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

    .bf-demo-step:hover {
        color: var(--bf-text);
        transform: translateY(-3px);
        border-color: rgba(217, 119, 6, 0.42);
        box-shadow: 0 16px 34px rgba(120, 72, 20, 0.13);
    }

.bf-demo-step-number {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    margin-bottom: 12px;
    background: var(--bf-primary-soft);
    color: var(--bf-primary-dark);
    font-weight: 900;
}

.bf-demo-step strong {
    display: block;
    font-size: 0.98rem;
    margin-bottom: 6px;
}

.bf-demo-step small {
    display: block;
    color: var(--bf-muted);
    line-height: 1.35;
}

@media (max-width: 1200px) {
    .bf-demo-step-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .bf-demo-step-grid {
        grid-template-columns: 1fr;
    }
}
/* More obvious clickable media affordance */
.bf-photo-frame::after {
    content: "Click photo to zoom";
    position: absolute;
    left: 12px;
    bottom: 12px;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.78rem;
    font-weight: 850;
    color: #92400e;
    background: rgba(254, 243, 199, 0.92);
    border: 1px solid rgba(217, 119, 6, 0.24);
    box-shadow: 0 8px 18px rgba(120, 72, 20, 0.12);
}

.bf-photo-frame:hover::after {
    background: rgba(255, 250, 241, 0.98);
}