@import url("/assets/variables-596c7127.css");
@import url("/assets/reviews-2e5816bc.css");
@import url("/assets/form_builder-f83e7eee.css");
@import url("/assets/ai_chat-69dfebe8.css");

body {
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-gray);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

.block {
    display: block;
}

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

    &:hover {
        color: var(--secondary-dark);
    }
}

.btn,
.btn-primary,
.btn-secondary,
input[type="submit"],
button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    background: var(--primary);
    color: var(--bg-white);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
    text-decoration: none;
    box-shadow: var(--shadow-xs), inset 0 1px 0 rgba(255, 255, 255, 0.1);

    &:hover {
        background: var(--primary-dark);
        color: var(--bg-white);
        box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.1);
        transform: translateY(-1px);
    }

    &:active {
        transform: translateY(0);
        box-shadow: var(--shadow-xs);
    }

    &:focus-visible {
        outline: 2px solid var(--secondary);
        outline-offset: 2px;
    }
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-dark);
    border: 1px solid var(--border-dark);
    box-shadow: var(--shadow-xs);

    &:hover {
        background: var(--bg-gray);
        color: var(--text-dark);
        box-shadow: var(--shadow-sm);
    }
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: var(--radius);
    border: 1px solid var(--border-dark);
    background: var(--bg-white);
    color: var(--text-medium);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    gap: 6px;
    font-family: inherit;

    &:hover {
        background: var(--bg-gray);
        color: var(--text-dark);
        border-color: var(--text-light);
        box-shadow: var(--shadow-sm);
    }

    &:active {
        transform: translateY(0);
        background: var(--bg-gray-light);
    }

    &:focus-visible {
        outline: 2px solid var(--secondary);
        outline-offset: 2px;
    }

    &.danger {
        border-color: var(--danger) !important;
        color: var(--danger) !important;

        &:hover {
            background: var(--danger) !important;
            color: var(--bg-white) !important;
        }
    }
}

main {
    .admin {
        display: grid;
        grid-template-columns: 256px 1fr;
        height: 100vh;
        background: var(--bg-gray);

        .sidebar {
            background: var(--bg-white);
            padding: 0;
            overflow-y: auto;
            border-right: 1px solid var(--border-gray);
            display: flex;
            flex-direction: column;
            scrollbar-width: thin;
            scrollbar-color: var(--border-gray) transparent;

            .logo {
                padding: 20px 20px 16px;
                margin-bottom: 4px;
                border-bottom: 1px solid var(--border-gray);
                position: sticky;
                top: 0;
                background: var(--bg-white);
                z-index: 1;

                .brand-link {
                    font-size: 18px;
                    font-weight: 700;
                    color: var(--text-dark);
                    letter-spacing: -0.03em;
                    transition: opacity var(--transition);

                    &:hover {
                        opacity: 0.7;
                    }
                }

                .logo-image {
                    max-width: 100%;
                    max-height: 40px;
                    display: block;
                }
            }

            h2 {
                font-size: 11px;
                font-weight: 600;
                text-transform: uppercase;
                letter-spacing: 0.06em;
                color: var(--text-light);
                margin: 20px 0 4px;
                padding: 0 20px;
                display: flex;
                align-items: center;
                gap: 8px;

                &:first-of-type {
                    margin-top: 12px;
                }

                .nav-icon {
                    width: 16px;
                    height: 16px;
                    opacity: 0.5;
                    flex-shrink: 0;
                }
            }

            .nav-link {
                display: block;
                padding: 7px 16px 7px 20px;
                margin: 1px 8px;
                border-radius: var(--radius-sm);
                color: var(--text-medium);
                font-size: 13px;
                font-weight: 500;
                text-decoration: none;
                transition: all var(--transition);
                position: relative;

                &:hover {
                    background: var(--bg-gray);
                    color: var(--text-dark);
                }

                &.active {
                    background: var(--secondary-light);
                    color: var(--secondary);
                    font-weight: 600;

                    &::before {
                        content: "";
                        position: absolute;
                        left: 0;
                        top: 4px;
                        bottom: 4px;
                        width: 3px;
                        border-radius: 0 2px 2px 0;
                        background: var(--secondary);
                    }
                }
            }

            .logout-section {
                margin-top: auto;
                padding: 16px 12px 20px;
                border-top: 1px solid var(--border-gray);

                .logout-button {
                    width: 100%;
                    padding: 8px 16px;
                    border-radius: var(--radius-sm);
                    border: 1px solid var(--border-gray);
                    background: var(--bg-white);
                    color: var(--text-medium);
                    font-size: 13px;
                    font-weight: 500;
                    cursor: pointer;
                    transition: all var(--transition);

                    &:hover {
                        background: var(--bg-gray);
                        color: var(--text-dark);
                        border-color: var(--border-dark);
                    }
                }
            }
        }
    }

    .admin-content {
        background: var(--bg-gray);
        padding: 32px 40px;
        overflow-y: auto;

        .head-nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 28px;
            padding-bottom: 0;
            border-bottom: none;

            h1 {
                margin: 0;
                font-size: 24px;
                font-weight: 700;
                color: var(--text-dark);
                letter-spacing: -0.025em;
            }

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

            .map-icon-link {
                display: flex;
                align-items: center;
                justify-content: center;
                padding: 8px;
                border-radius: var(--radius-sm);
                color: var(--text-light);

                &:hover {
                    color: var(--text-dark);
                    background: var(--bg-gray-light);
                }

                svg {
                    width: 20px;
                    height: 20px;
                }
            }

            .head-nav-actions {
                display: flex;
                align-items: center;
                gap: 8px;
                flex-wrap: wrap;

                select {
                    padding: 7px 12px;
                    border: 1px solid var(--border-gray);
                    border-radius: var(--radius-sm);
                    background: var(--bg-white);
                    font-size: 13px;
                    color: var(--text-dark);
                    cursor: pointer;
                    box-shadow: var(--shadow-xs);

                    &:focus {
                        outline: none;
                        border-color: var(--secondary);
                        box-shadow: var(--shadow-ring);
                    }
                }
            }
        }

        .map-toolbar {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
            margin-bottom: 24px;
            background: var(--bg-white);
            padding: 12px 16px;
            border-radius: var(--radius-lg);
            border: 1px solid var(--border-gray);
            box-shadow: var(--shadow-xs);

            .map-filters {
                display: flex;
                align-items: center;
                gap: 6px;
                flex-wrap: wrap;
                flex: 1;

                select {
                    padding: 6px 28px 6px 10px;
                    border: 1px solid var(--border-gray);
                    border-radius: var(--radius-sm);
                    background: var(--bg-white);
                    font-size: 13px;
                    color: var(--text-dark);
                    cursor: pointer;
                    appearance: none;
                    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
                    background-repeat: no-repeat;
                    background-position: right 6px center;
                    background-size: 16px;
                    transition: all var(--transition);

                    &:hover {
                        border-color: var(--text-light);
                    }

                    &:focus {
                        outline: none;
                        border-color: var(--secondary);
                        box-shadow: var(--shadow-ring);
                    }
                }
            }
        }

        .map-analytics {
            margin-top: 0;

            .analytics-title {
                font-size: 16px;
                font-weight: 600;
                color: var(--text-dark);
                margin-bottom: 16px;
                letter-spacing: -0.01em;
            }

            .analytics-grid {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 12px;
                margin-bottom: 20px;

                @media (max-width: 500px) {
                    grid-template-columns: 1fr;
                }
            }

            .metric-card {
                background: var(--bg-white);
                border: 1px solid var(--border-gray);
                border-radius: var(--radius-lg);
                padding: 16px 20px;
                box-shadow: var(--shadow-xs);
                transition: all var(--transition);

                &:hover {
                    box-shadow: var(--shadow-sm);
                    border-color: var(--border-dark);
                }

                .metric-label {
                    font-size: 12px;
                    font-weight: 500;
                    color: var(--text-light);
                    margin-bottom: 4px;
                    text-transform: uppercase;
                    letter-spacing: 0.04em;
                }

                .metric-value {
                    font-size: 24px;
                    font-weight: 700;
                    color: var(--text-dark);
                    line-height: 1.2;
                    letter-spacing: -0.02em;
                }

                .metric-trend {
                    margin-top: 6px;
                    min-height: 18px;
                }

                .metric-subtext {
                    font-size: 11px;
                    font-weight: 500;
                    color: var(--text-light);
                    margin-top: 4px;
                }
            }

            .analytics-charts {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 12px;
                margin-bottom: 12px;

                @media (max-width: 500px) {
                    grid-template-columns: 1fr;
                }
            }

            .analytics-charts-wide {
                margin-bottom: 12px;
            }

            .chart-card-wide {
                width: 100%;
            }

            .chart-card {
                background: var(--bg-white);
                border: 1px solid var(--border-gray);
                border-radius: var(--radius-lg);
                padding: 20px;
                box-shadow: var(--shadow-xs);

                h3 {
                    font-size: 13px;
                    font-weight: 600;
                    color: var(--text-dark);
                    margin: 0 0 16px 0;
                    letter-spacing: -0.01em;
                }
            }

            .pie-chart-container {
                display: flex;
                align-items: center;
                gap: 20px;

                canvas {
                    flex-shrink: 0;
                }

                .pie-legend {
                    flex: 1;
                    min-width: 0;
                }
            }

            /* Comparison Toggle */
            .comparison-toggle {
                display: flex;
                align-items: center;
                gap: 8px;
                cursor: pointer;
                font-size: 13px;
                font-weight: 500;
                color: var(--text-medium);
                white-space: nowrap;

                input[type="checkbox"] {
                    width: 16px;
                    height: 16px;
                    cursor: pointer;
                    accent-color: var(--secondary);
                }
            }

            /* Comparison Panel */
            .comparison-panel {
                background: linear-gradient(135deg, var(--secondary-light) 0%, #dbeafe 100%);
                border: 1px solid #bfdbfe;
                border-radius: var(--radius-lg);
                padding: 20px;
                margin-bottom: 20px;

                h3 {
                    font-size: 16px;
                    font-weight: 600;
                    color: var(--text-dark);
                    margin: 0 0 16px 0;
                }

                .comparison-grid {
                    display: grid;
                    grid-template-columns: repeat(2, 1fr);
                    gap: 16px;

                    @media (max-width: 500px) {
                        grid-template-columns: 1fr;
                    }
                }

                .comparison-card {
                    background: var(--bg-white);
                    border-radius: 8px;
                    padding: 16px;
                    text-align: center;

                    .comparison-label {
                        font-size: 12px;
                        color: var(--text-muted);
                        margin-bottom: 8px;
                    }

                    .comparison-values {
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        gap: 8px;
                        margin-bottom: 8px;

                        .current-value {
                            font-size: 18px;
                            font-weight: 700;
                            color: var(--text-dark);
                        }

                        .vs {
                            font-size: 11px;
                            color: var(--text-muted);
                        }

                        .prev-value {
                            font-size: 14px;
                            color: var(--text-medium);
                        }
                    }

                    .comparison-change {
                        font-size: 13px;
                        font-weight: 500;

                        .change-positive {
                            color: #22c55e;
                        }

                        .change-negative {
                            color: #ef4444;
                        }

                        .change-neutral {
                            color: var(--text-muted);
                        }
                    }
                }
            }

            /* Goal Tracking */
            .goal-tracking-card {
                .goal-header {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    margin-bottom: 16px;

                    h3 {
                        margin: 0;
                    }

                    .btn-small {
                        padding: 6px 12px;
                        font-size: 12px;
                        background: var(--bg-gray-light);
                        border: 1px solid var(--border-dark);
                        border-radius: 4px;
                        cursor: pointer;
                        transition: var(--transition);

                        &:hover {
                            background: var(--bg-white);
                        }
                    }
                }

                .goal-edit-form {
                    display: flex;
                    gap: 16px;
                    align-items: flex-end;
                    margin-bottom: 16px;
                    padding: 16px;
                    background: var(--bg-gray-light);
                    border-radius: 8px;

                    .goal-inputs {
                        display: flex;
                        gap: 16px;
                        align-items: flex-end;
                        flex-wrap: wrap;
                    }

                    .goal-input-group {
                        display: flex;
                        flex-direction: column;
                        gap: 4px;

                        label {
                            font-size: 12px;
                            color: var(--text-muted);
                        }

                        input {
                            padding: 8px 12px;
                            border: 1px solid var(--border-dark);
                            border-radius: 4px;
                            font-size: 14px;
                            width: 140px;
                        }
                    }

                    .btn-primary.btn-small {
                        padding: 8px 16px;
                        font-size: 13px;
                    }
                }

                .goal-progress {
                    display: grid;
                    grid-template-columns: repeat(2, 1fr);
                    gap: 24px;

                    @media (max-width: 700px) {
                        grid-template-columns: 1fr;
                    }
                }

                .goal-item {
                    .goal-item-header {
                        display: flex;
                        justify-content: space-between;
                        margin-bottom: 8px;

                        .goal-label {
                            font-size: 14px;
                            font-weight: 500;
                            color: var(--text-dark);
                        }

                        .goal-numbers {
                            font-size: 14px;
                            color: var(--text-medium);
                        }
                    }

                    .goal-bar {
                        height: 12px;
                        background: #e5e7eb;
                        border-radius: 6px;
                        overflow: hidden;
                        margin-bottom: 8px;

                        .goal-bar-fill {
                            height: 100%;
                            background: linear-gradient(
                                90deg,
                                #3b82f6,
                                #8b5cf6
                            );
                            border-radius: 6px;
                            transition: width 0.5s ease;

                            &.revenue {
                                background: linear-gradient(
                                    90deg,
                                    #10b981,
                                    #22c55e
                                );
                            }
                        }
                    }

                    .goal-footer {
                        display: flex;
                        justify-content: space-between;
                        font-size: 12px;

                        .goal-pct {
                            font-weight: 600;
                            color: var(--text-dark);
                        }

                        .goal-remaining {
                            color: var(--text-muted);
                        }
                    }
                }
            }

            /* Distance Analytics */
            .distance-analytics {
                display: grid;
                grid-template-columns: 1fr 2fr;
                gap: 24px;

                @media (max-width: 700px) {
                    grid-template-columns: 1fr;
                }

                .distance-summary {
                    display: flex;
                    flex-direction: column;
                    gap: 16px;

                    .distance-metric {
                        .distance-label {
                            font-size: 12px;
                            color: var(--text-muted);
                            margin-bottom: 4px;
                        }

                        .distance-value {
                            font-size: 24px;
                            font-weight: 700;
                            color: var(--text-dark);
                        }
                    }
                }

                .distance-breakdown {
                    display: flex;
                    flex-direction: column;
                    gap: 12px;

                    .distance-category {
                        .category-header {
                            display: flex;
                            justify-content: space-between;
                            margin-bottom: 6px;

                            .category-label {
                                font-size: 13px;
                                color: var(--text-dark);
                            }

                            .category-count {
                                font-size: 13px;
                                font-weight: 600;
                                color: var(--text-medium);
                            }
                        }

                        .category-bar {
                            height: 8px;
                            background: #e5e7eb;
                            border-radius: 4px;
                            overflow: hidden;

                            .category-fill {
                                height: 100%;
                                border-radius: 4px;
                                transition: width 0.3s ease;

                                &.local {
                                    background: #22c55e;
                                }

                                &.regional {
                                    background: #3b82f6;
                                }

                                &.long-distance {
                                    background: #8b5cf6;
                                }

                                &.cross-country {
                                    background: #ef4444;
                                }
                            }
                        }
                    }
                }
            }

            /* Conversion Funnel */
            .conversion-funnel {
                min-height: 200px;
            }

            /* Top Routes */
            .top-routes {
                min-height: 100px;
            }
        }

        table {
            width: 100%;
            border-collapse: collapse;
            border-spacing: 0;
            background: var(--bg-white);
            border: 1px solid var(--border-gray);
            border-radius: var(--radius-lg);
            overflow: hidden;
            box-shadow: var(--shadow-xs);

            thead {
                background: var(--bg-gray);
                border-bottom: 1px solid var(--border-gray);
            }

            tbody {
                tr {
                    border-bottom: 1px solid var(--border-subtle);
                    transition: background var(--transition);

                    &:last-child {
                        border-bottom: none;
                    }

                    &:hover {
                        background: var(--bg-gray);
                    }
                }
            }

            th,
            td {
                text-align: left;
                padding: 12px 16px;
                white-space: nowrap;

                &.action-column {
                    width: auto;
                    text-align: right;

                    display: flex;
                    align-items: center;
                    justify-content: flex-end;
                    gap: 8px;

                    a,
                    button {
                        font-size: 13px;
                        font-weight: 500;
                        text-decoration: none;
                        transition: all var(--transition);

                        &:hover {
                            text-decoration: underline;
                        }
                    }

                    a {
                        color: var(--secondary);

                        &:hover {
                            color: var(--secondary-dark);
                        }
                    }

                    button {
                        background: none;
                        border: none;
                        padding: 0;
                        cursor: pointer;
                    }

                    .danger {
                        color: var(--danger);

                        &:hover {
                            color: #b91c1c;
                        }
                    }
                }
            }

            th {
                font-weight: 600;
                font-size: 11px;
                color: var(--text-light);
                text-transform: uppercase;
                letter-spacing: 0.05em;
            }

            td {
                font-size: 13px;
                color: var(--text-dark);
            }
        }

        .two-col {
            display: grid;
            grid-template-columns: 1fr 400px;
            gap: 24px;
        }
    }

    &:not(:has(.admin)) {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        padding: 20px;
    }
}

.form-group {
    margin-bottom: 20px;

    label {
        display: block;
        margin-bottom: 6px;
        font-weight: 500;
        font-size: 13px;
        color: var(--text-medium);
    }

    input,
    select,
    textarea {
        width: 100%;
        padding: 10px 14px;
        font-size: 14px;
        border-radius: var(--radius);
        border: 1px solid var(--border-gray);
        background: var(--bg-white);
        color: var(--text-dark);
        transition: all var(--transition);
        font-family: inherit;
        box-shadow: var(--shadow-xs);

        &:hover {
            border-color: var(--text-light);
        }

        &:focus {
            outline: none;
            border-color: var(--secondary);
            box-shadow: var(--shadow-ring);
        }

        &::placeholder {
            color: var(--text-light);
        }
    }

    select {
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
        background-position: right 12px center;
        background-repeat: no-repeat;
        background-size: 20px;
        padding-right: 40px;
    }

    &:has(input[type="checkbox"]) {
        label {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 0;
            cursor: pointer;
        }

        input[type="checkbox"] {
            width: 18px;
            height: 18px;
            padding: 0;
            cursor: pointer;
            accent-color: var(--secondary);
        }
    }

    input[type="color"] {
        height: 48px;
        cursor: pointer;
        padding: 4px;
    }

    .attached-images {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
        margin-top: 12px;
    }

    .image-preview {
        border: 1px solid var(--border-dark);
        border-radius: var(--border-radius);
        overflow: hidden;
        background: var(--bg-gray-light);
    }

    .preview-thumbnail {
        width: 100px;
        height: 100px;
        object-fit: cover;
        display: block;
    }
}

.menu-section-config {
    input[type="text"],
    select {
        padding: 10px 14px;
        font-size: 14px;
        border-radius: var(--radius);
        border: 1px solid var(--border-gray);
        background: var(--bg-white);
        color: var(--text-dark);
        transition: all var(--transition);
        font-family: inherit;
        box-shadow: var(--shadow-xs);

        &:hover {
            border-color: var(--text-light);
        }

        &:focus {
            outline: none;
            border-color: var(--secondary);
            box-shadow: var(--shadow-ring);
        }

        &::placeholder {
            color: var(--text-light);
        }
    }

    select {
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
        background-position: right 12px center;
        background-repeat: no-repeat;
        background-size: 20px;
        padding-right: 40px;
    }

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

    .menu-section-details.hidden {
        display: none;
    }
}

.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-gray);
    box-shadow: var(--shadow-xs);
}

.text-muted {
    color: var(--text-medium);
}

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

.auth-container {
    width: 100%;
    max-width: 400px;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 40px;
    border: 1px solid var(--border-gray);
    box-shadow: var(--shadow-lg);

    h1 {
        margin: 0 0 32px;
        font-size: 24px;
        font-weight: 700;
        color: var(--text-dark);
        text-align: center;
        letter-spacing: -0.03em;
    }

    .btn-primary {
        width: 100%;
        margin-top: 8px;
    }

    a {
        color: var(--text-medium);
        font-size: 13px;
        text-align: center;
        display: block;
        margin-top: 16px;

        &:hover {
            color: var(--secondary);
        }
    }
}

/* Signup page */
.auth-container--signup {
    max-width: 600px;

    .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;

        @media (max-width: 560px) {
            grid-template-columns: 1fr;
        }
    }

    .form-hint {
        display: block;
        margin-top: 4px;
        font-size: 12px;
        color: var(--text-light);
    }
}

.signup-errors {
    background: var(--danger-light);
    border: 1px solid var(--danger);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--danger);

    p {
        margin: 0 0 4px;

        &:last-child {
            margin-bottom: 0;
        }
    }
}

.plan-selection {
    margin: 24px 0 8px;

    .plan-selection-label {
        display: block;
        margin-bottom: 12px;
        font-weight: 500;
        font-size: 13px;
        color: var(--text-medium);
    }
}

.plan-cards {
    display: grid;
    gap: 12px;
}

.plan-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 2px solid var(--border-gray);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition);

    &:hover {
        border-color: var(--secondary-light);
    }

    &:has(input:checked) {
        border-color: var(--secondary);
        box-shadow: var(--shadow-ring);
    }

    input[type="radio"] {
        margin-top: 2px;
        accent-color: var(--secondary);
    }
}

.plan-card-content {
    flex: 1;
    min-width: 0;
}

.plan-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.plan-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-dark);
}

.plan-price {
    font-weight: 600;
    font-size: 15px;
    color: var(--secondary);
    white-space: nowrap;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--text-medium);

    li {
        padding: 2px 0;

        &::before {
            content: "\2713\0020";
            color: var(--success);
            font-weight: 600;
        }
    }
}

.signup-success {
    text-align: center;

    .success-icon {
        color: var(--success);
        margin-bottom: 16px;
    }

    .success-message {
        font-size: 15px;
        color: var(--text-medium);
        margin: 0 0 16px;
    }

    .success-subdomain {
        font-size: 15px;
        color: var(--text-dark);
        margin: 0 0 16px;
    }

    .success-note {
        font-size: 13px;
        color: var(--text-light);
        margin: 0 0 24px;
    }

    .btn-primary {
        display: inline-flex;
    }
}

/* Web Quote Header Styles */
.web-quote-header {
    margin: 0 auto;
    padding: 0 16px 24px;
    margin-bottom: 40px;
    .header-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        gap: 16px;

        @media (min-width: 768px) {
            flex-direction: row;
            gap: 48px;
        }
    }

    .logo-section {
        display: flex;
        align-items: center;
        gap: 16px;
        margin-bottom: 16px;

        @media (min-width: 768px) {
            margin-bottom: 0;
        }
    }

    .logo-wrapper {
        display: flex;
        align-items: center;
        gap: 12px;

        .logo-image {
            max-width: 200px;
            max-height: 60px;
            width: auto;
            height: auto;
            display: block;
        }
    }

    .logo-box {
        width: 48px;
        height: 48px;
        background: #f97316;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .logo-text {
        color: white;
        font-weight: 700;
        font-size: 18px;
    }

    .nav-section {
        font-weight: 500;
        font-size: 18px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex: 1;
        gap: 48px;
    }

    .contact-section {
        text-align: center;
        display: flex;
        align-items: center;
        gap: 16px;

        @media (min-width: 768px) {
            text-align: right;
        }
    }

    .prominent-phone {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;

        @media (min-width: 768px) {
            align-items: flex-end;
        }
    }

    .phone-label {
        font-size: 12px;
        font-weight: 600;
        color: var(--secondary);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 4px;
    }

    .phone-link {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 24px;
        font-weight: 500;
        color: var(--text-dark);
        text-decoration: none;
        transition: all 0.3s ease;
        position: relative;

        &:hover {
            color: var(--secondary);
            transform: scale(1.05);
        }

        &.prominent {
            font-size: 28px;
            font-weight: 700;
            color: var(--secondary);
            background: var(--secondary-light);
            padding: 12px 20px;
            border-radius: var(--border-radius);
            border: 2px solid var(--secondary);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

            &:hover {
                background: var(--secondary);
                color: white;
                transform: translateY(-2px);
                box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
            }

            @media (max-width: 768px) {
                font-size: 24px;
                padding: 10px 16px;
            }
        }
    }

    .phone-icon {
        width: 24px;
        height: 24px;
        transition: all 0.3s ease;

        .prominent & {
            width: 28px;
            height: 28px;
        }

        .phone-link:hover & {
            transform: rotate(15deg) scale(1.1);
            filter: brightness(0) invert(1);
        }
    }

    .phone-availability {
        font-size: 11px;
        color: var(--text-medium);
        font-weight: 500;
        background: var(--bg-gray-light);
        padding: 4px 8px;
        border-radius: 12px;
        border: 1px solid var(--border-gray);
    }
}

/* Web Quote Styles */
.web-quote {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;

    h2 {
        font-size: 32px;
        font-weight: 700;
        color: var(--text-dark);
        margin: 0 0 32px;
        letter-spacing: -0.02em;
    }

    h3 {
        font-size: 20px;
        font-weight: 600;
        color: var(--text-dark);
        margin: 0 0 20px;
        letter-spacing: -0.01em;
    }

    h4 {
        font-size: 16px;
        font-weight: 600;
        color: var(--text-dark);
        margin: 0 0 8px;
    }

    .customer-info {
        background: var(--bg-gray-light);
        border: 1px solid var(--border-dark);
        border-radius: var(--border-radius-lg);
        padding: 24px;
        margin-bottom: 32px;

        ul {
            list-style: none;
            padding: 0;
            margin: 0;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 16px;

            li {
                font-size: 14px;
                color: var(--text-medium);

                strong {
                    color: var(--text-dark);
                    font-weight: 600;
                }
            }
        }
    }

    .quote-layout {
        display: grid;
        grid-template-columns: 1fr 380px;
        gap: 40px;
        align-items: start;
    }

    .quote-main-content {
        min-width: 0;
    }

    .quote-sidebar {
        position: sticky;
        top: 20px; /* Overridden by JS for tall sidebars */
        align-self: start;
    }

    .products-section {
        ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .product-card {
            background: var(--bg-white);
            border: 1px solid var(--border-dark);
            border-radius: var(--border-radius);
            padding: 0;
            margin-bottom: 20px;
            transition: var(--transition-normal);
            display: grid;
            grid-template-columns: 220px 1fr auto;
            gap: 0;
            align-items: stretch;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
            position: relative;
            overflow: hidden;

            &::before {
                content: "";
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                height: 4px;
                background: var(--secondary);
                opacity: 0;
                transition: opacity 0.25s ease;
            }

            &:hover {
                box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
                transform: translateY(-2px);

                &::before {
                    opacity: 1;
                }
            }

            .product-image {
                pointer-events: none;
                background: var(--bg-gray-light);
                border-radius: var(--border-radius);
                padding: 0;
                display: flex;
                align-items: stretch;
                justify-content: center;

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

            &:hover .product-image .product-img {
                transform: scale(1.05);
            }

            .product-info {
                pointer-events: none;
                padding: 28px 0 28px 28px;

                .product-title {
                    font-size: 26px;
                    font-weight: 800;
                    margin: 0 0 10px;
                    color: var(--text-dark);
                    letter-spacing: -0.02em;
                }

                .product-dimensions {
                    font-size: 14px;
                    color: var(--text-medium);
                    margin-bottom: 10px;
                }

                .product-ideal {
                    display: flex;
                    align-items: center;
                    gap: 12px;
                    margin-bottom: 8px;

                    strong {
                        font-size: 13px;
                        font-weight: 700;
                        color: var(--text-medium);
                        text-transform: uppercase;
                        letter-spacing: 0.05em;
                    }
                }

                .ideal-list {
                    list-style: none;
                    margin: 0;
                    padding: 0;
                    display: flex;
                    flex-wrap: wrap;
                    gap: 8px;

                    li {
                        font-size: 14px;
                        color: var(--text-dark);
                        font-weight: 500;

                        &::before {
                            content: "✓";
                            margin-right: 6px;
                            color: var(--secondary);
                            font-weight: 700;
                        }
                    }
                }
            }

            .product-actions {
                pointer-events: auto;
                display: flex;
                flex-direction: column;
                align-items: flex-end;
                justify-content: center;
                gap: 20px;
                min-width: 160px;
                padding: 28px 28px 28px 0;

                .price-wrapper {
                    display: flex;
                    flex-direction: column;
                    align-items: flex-end;
                    gap: 6px;
                }

                .original-price {
                    font-size: 18px;
                    font-weight: 500;
                    color: var(--text-light);
                    text-decoration: line-through;
                }

                .product-price {
                    font-size: 32px;
                    font-weight: 800;
                    color: var(--text-dark);
                    letter-spacing: -0.02em;
                    line-height: 1;

                    .price-prefix {
                        font-size: 14px;
                        font-weight: 500;
                        color: var(--text-medium);
                        display: block;
                        margin-bottom: 4px;
                    }
                }

                .discount-badge {
                    background: var(--secondary-light);
                    color: var(--secondary);
                    padding: 8px 14px;
                    border-radius: 0;
                    font-size: 12px;
                    font-weight: 700;
                    border: 1px solid var(--secondary);
                    text-transform: uppercase;
                    letter-spacing: 0.02em;
                }

                .quantity-controls {
                    display: flex;
                    align-items: center;
                    gap: 0;
                    background: var(--bg-gray-light);
                    border-radius: 0;
                    padding: 6px;
                    border: 1px solid var(--border-dark);

                    .quantity-btn {
                        width: 40px;
                        height: 40px;
                        border: 1px solid var(--border-gray);
                        background: var(--bg-white);
                        color: var(--secondary);
                        font-size: 22px;
                        font-weight: 600;
                        cursor: pointer;
                        transition: var(--transition-fast);
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        border-radius: var(--border-radius-sm);
                        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);

                        &:hover {
                            background: var(--secondary);
                            color: var(--bg-white);
                            transform: scale(1.05);
                            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
                        }

                        &:active {
                            transform: scale(0.98);
                            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
                        }
                    }

                    .quantity-display {
                        width: 56px;
                        text-align: center;
                        font-size: 20px;
                        font-weight: 700;
                        color: var(--text-dark);
                        margin: 0 8px;
                        background: transparent;
                        border: 1px solid var(--border-gray);
                        height: 40px;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        border-radius: var(--border-radius-sm);
                    }
                }
            }
        }
    }

    /* Products Toolbar (Modify button + Product Type Tabs) */
    .products-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        /*margin-bottom: 20px;*/
        border-bottom: 2px solid var(--border-dark);
        padding-bottom: 0;

        .modify-quote-bar {
            margin-bottom: 0;
        }
    }

    /* Product Type Tabs */
    .product-tabs-nav {
        display: flex;
        gap: 4px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .product-tab-btn {
        padding: 10px 20px;
        border: none;
        background: none;
        font-size: 14px;
        font-weight: 600;
        color: var(--text-medium);
        cursor: pointer;
        white-space: nowrap;
        border-bottom: 2px solid transparent;
        margin-bottom: -2px;
        transition: var(--transition);

        &:hover {
            color: var(--text-dark);
        }

        &.active {
            color: var(--secondary);
            border-bottom-color: var(--secondary);
        }
    }

    .summary-section {
        position: sticky;
        top: 20px;
        z-index: 10;

        turbo-frame {
            display: block;
        }

        .summary-card {
            background: var(--bg-white);
            border: 1px solid var(--border-dark);
            border-radius: 0;
            padding: 0;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            overflow: hidden;

            .summary-header {
                background: var(--secondary);
                padding: 24px 28px;
                display: flex;
                justify-content: space-between;
                align-items: center;
            }

            .summary-title {
                font-size: 24px;
                font-weight: 700;
                color: #ffffff;
                margin: 0;
                letter-spacing: -0.02em;
            }

            .summary-badge {
                display: flex;
                align-items: center;
                gap: 6px;
                background: rgba(255, 255, 255, 0.2);
                padding: 6px 12px;
                border-radius: 0;
                font-size: 12px;
                font-weight: 600;
                color: #ffffff;

                svg {
                    width: 14px;
                    height: 14px;
                }
            }

            .empty-state {
                text-align: center;
                padding: 60px 32px;
                color: var(--text-light);

                svg {
                    color: var(--text-light);
                    margin-bottom: 16px;
                }

                p {
                    font-size: 15px;
                    margin: 0;
                    color: var(--text-medium);
                }
            }

            .summary-content {
                padding: 28px;

                .summary-section {
                    margin-bottom: 24px;
                    padding-bottom: 20px;

                    &:last-of-type {
                        border-bottom: none;
                        margin-bottom: 0;
                        padding-bottom: 0;
                    }

                    &.fees-section {
                        background: var(--bg-gray-light);
                        margin: 0 -28px 24px;
                        padding: 20px 28px;
                        border-bottom: none;
                    }

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

                    .section-title {
                        font-size: 13px;
                        font-weight: 700;
                        color: var(--text-medium);
                        text-transform: uppercase;
                        letter-spacing: 0.05em;
                        margin: 0;
                    }

                    .promo-indicator {
                        display: inline-flex;
                        align-items: center;
                        gap: 4px;
                        background: var(--primary);
                        color: #ffffff;
                        font-size: 11px;
                        font-weight: 700;
                        padding: 4px 10px;
                        border-radius: 0;
                        text-transform: uppercase;
                        letter-spacing: 0.03em;
                    }
                }

                .summary-item {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    padding: 10px 0;
                    font-size: 15px;
                    color: var(--text-dark);

                    &:last-child {
                        padding-bottom: 0;
                    }

                    .item-left {
                        display: flex;
                        align-items: center;
                        gap: 8px;
                        flex: 1;

                        .item-quantity {
                            display: inline-flex;
                            align-items: center;
                            justify-content: center;
                            min-width: 28px;
                            height: 28px;
                            background: var(--bg-gray-light);
                            border-radius: 0;
                            font-size: 13px;
                            font-weight: 700;
                            color: var(--text-dark);
                        }

                        .item-name {
                            font-weight: 600;
                            color: var(--text-dark);
                        }

                        .fee-note {
                            display: block;
                            font-size: 12px;
                            font-weight: 400;
                            color: var(--text-light);
                            margin-top: 2px;
                        }
                    }

                    .item-right {
                        display: flex;
                        flex-direction: column;
                        align-items: flex-end;
                        gap: 2px;

                        .item-original-price {
                            font-size: 13px;
                            color: var(--text-light);
                            text-decoration: line-through;
                        }

                        .item-price {
                            font-weight: 700;
                            font-size: 17px;
                            color: var(--secondary);

                            .price-period {
                                font-size: 13px;
                                font-weight: 500;
                                color: var(--text-medium);
                            }

                            .free-price {
                                color: var(--secondary);
                                font-weight: 700;
                            }

                            .call-price {
                                color: var(--text-medium);
                                font-size: 14px;
                                font-weight: 500;
                            }

                            .custom-price {
                                color: var(--secondary);
                                font-weight: 600;
                            }

                            .tbd-price {
                                color: var(--text-light);
                                font-style: italic;
                            }
                        }
                    }
                }

                .total-row {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    padding: 24px 0 0;
                    margin-top: 20px;

                    .total-label {
                        font-size: 18px;
                        font-weight: 700;
                        color: var(--text-dark);
                    }

                    .total-prices {
                        display: flex;
                        flex-direction: column;
                        align-items: flex-end;
                        gap: 4px;

                        .total-original {
                            font-size: 16px;
                            color: var(--text-light);
                            text-decoration: line-through;
                        }

                        .total-amount {
                            font-size: 32px;
                            font-weight: 800;
                            color: var(--text-dark);
                            letter-spacing: -0.02em;

                            &.call-price {
                                font-size: 18px;
                                font-weight: 600;
                                color: var(--text-medium);
                            }
                        }
                    }
                }

                .savings-badge {
                    display: flex;
                    align-items: center;
                    gap: 14px;
                    background: var(--secondary-light);
                    border: 1px solid var(--secondary);
                    border-radius: 0;
                    padding: 16px 20px;
                    margin-top: 24px;

                    .savings-icon {
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        width: 40px;
                        height: 40px;
                        background: var(--secondary);
                        border-radius: 0;
                        flex-shrink: 0;

                        img,
                        svg {
                            width: 20px;
                            height: 20px;
                            filter: brightness(0) invert(1);
                        }
                    }

                    .savings-content {
                        display: flex;
                        flex-direction: column;
                        gap: 2px;

                        strong {
                            font-size: 14px;
                            font-weight: 700;
                            color: var(--secondary-dark);
                        }

                        span {
                            font-size: 13px;
                            color: var(--secondary);
                        }
                    }
                }
            }

            .submit-btn {
                display: block;
                text-align: center;
                width: calc(100% - 56px);
                margin: 0 28px 20px;
                padding: 18px 24px;
                background: var(--primary);
                color: white;
                border: none;
                border-radius: 0;
                font-size: 17px;
                font-weight: 700;
                cursor: pointer;
                transition: all 0.2s ease;

                &:hover {
                    background: var(--primary-dark);
                    transform: translateY(-2px);
                }

                &:active {
                    transform: translateY(0);
                }
            }

            .whats-next-btn {
                width: 100%;
                margin: 0;
                padding: 16px 28px 24px;
                color: var(--text-medium);
                font-size: 14px;
                font-weight: 600;
                cursor: pointer;
                transition: all 0.15s ease;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 8px;

                svg {
                    transition: all 0.15s ease;
                }

                &:hover {
                    color: var(--secondary);

                    svg {
                        transform: scale(1.1);
                    }
                }
            }
        }

        .qualifying-text-card {
            display: flex;
            align-items: flex-start;
            gap: 14px;
            background: var(--secondary-light);
            border: 1px solid var(--secondary);
            border-radius: 0;
            padding: 20px 24px;
            margin-top: 20px;

            svg {
                flex-shrink: 0;
                color: var(--secondary);
                margin-top: 2px;
            }

            p {
                margin: 0;
                color: var(--secondary-dark);
                font-size: 15px;
                line-height: 1.6;
                font-weight: 500;
            }
        }
    }
}

/* Contact Info Form (inline on web quote page) */
.contact-info-form {
    background: var(--bg-white);
    border: 1px solid var(--border-dark);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition:
        opacity 0.4s ease,
        transform 0.4s ease,
        max-height 0.4s ease,
        margin 0.4s ease,
        padding 0.4s ease;
    overflow: hidden;

    h3 {
        font-size: 24px;
        font-weight: 700;
        color: var(--text-dark);
        margin: 0 0 8px;
    }

    .contact-info-subtitle {
        font-size: 15px;
        color: var(--text-medium);
        margin: 0 0 24px;
    }

    .contact-info-fields {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;

        @media (max-width: 768px) {
            grid-template-columns: 1fr;
        }
    }

    .form-group {
        margin-bottom: 0;
    }

    .form-group--submit {
        display: flex;
        align-items: flex-end;
    }

    .submit-modification-btn {
        width: 100%;
        padding: 12px 20px;
        background: var(--primary);
        color: var(--bg-white);
        border: none;
        border-radius: var(--border-radius);
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition);

        &:hover {
            background: var(--primary-dark, var(--primary));
            transform: translateY(-1px);
        }

        &:active {
            transform: translateY(0);
        }
    }

    &.contact-info-form--hidden {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
        margin: 0;
        padding: 0 32px;
        border-color: transparent;
        box-shadow: none;
        pointer-events: none;
    }
}

/* Modify quote bar */
.modify-quote-bar {
    display: none;
    margin-bottom: 24px;

    &.modify-quote-bar--visible {
        display: block;
    }
}

.modify-quote-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-dark);
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-medium);
    cursor: pointer;
    transition: var(--transition);

    &:hover {
        color: var(--secondary);
        border-color: var(--secondary);
        background: var(--secondary-light);
    }

    svg {
        flex-shrink: 0;
    }
}

/* Quote content gate — hidden until contact info is complete */
.quote-content {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition:
        opacity 0.4s ease 0.15s,
        max-height 0.4s ease;

    &.quote-content--visible {
        opacity: 1;
        max-height: none;
        overflow: visible;
    }
}

.whats-next-dialog {
    border: none;
    border-radius: 0;
    padding: 0;
    max-width: 600px;
    width: 90%;
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);

    &::backdrop {
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
    }

    .dialog-content {
        display: flex;
        flex-direction: column;
    }

    .dialog-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 24px;
        border-bottom: 1px solid var(--border-gray);

        h3 {
            margin: 0;
            font-size: 24px;
            font-weight: 700;
            color: var(--text-dark);
        }

        .dialog-close {
            background: none;
            border: none;
            padding: 8px;
            cursor: pointer;
            color: var(--text-medium);
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 6px;
            transition: var(--transition);

            &:hover {
                background: var(--bg-gray-light);
                color: var(--text-dark);
            }

            svg {
                width: 24px;
                height: 24px;
            }
        }
    }

    .dialog-body {
        padding: 24px;
        color: var(--text-dark);
        line-height: 1.6;
        font-size: 16px;
        max-height: 60vh;
        overflow-y: auto;

        p {
            margin: 0 0 16px;

            &:last-child {
                margin-bottom: 0;
            }
        }
    }
}

/* FAQs Section */
.faqs-section {
    width: 100%;
    padding: 48px 0;
    background: var(--bg-white);
    margin-top: 32px;
}

.faqs-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.faqs-header {
    margin-bottom: 48px;
}

.faqs-header h2 {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin: 0;
}

.faqs-highlight {
    display: block;
    font-weight: 700;
    color: var(--text-dark);
}

.faqs-accent {
    color: var(--secondary);
}

.faqs-list {
    display: flex;
    flex-direction: column;
}

.faq-item {
    width: 100%;
}

.faq-question {
    width: 100%;
    padding: 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    opacity: 0.8;
}

.faq-question-text {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 18px;
    padding-right: 16px;
    flex: 1;
    text-align: left;
}

.faq-icon {
    flex-shrink: 0;
    margin-left: 16px;
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-icon svg {
    display: block;
}

.faq-answer {
    padding: 0 0 16px 0;
}

.faq-answer p {
    color: var(--text-medium);
    line-height: 1.6;
    font-size: 16px;
    margin: 0;
}

.faq-divider {
    border-bottom: 1px solid var(--border-gray);
    width: 100%;
}

/* Tab Styles */
.tabs-container {
    margin-bottom: 32px;
}

.tabs-nav {
    display: flex;
    gap: 2px;
    margin-bottom: 20px;
    background: var(--bg-gray-light);
    border-radius: var(--radius);
    padding: 3px;
    width: fit-content;
}

.tab-button {
    padding: 8px 20px;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-medium);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.tab-button.active-tab {
    background: var(--bg-white);
    color: var(--text-dark);
    font-weight: 600;
    box-shadow: var(--shadow-xs);
}

.tab-button:hover {
    color: var(--text-dark);
}

/* ── Detail Page (Quote Show, etc.) ── */
.detail-breadcrumb {
    font-size: 13px;
    color: var(--text-light);
    margin: 0 0 2px 0;
    font-weight: 500;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.detail-card {
    background: var(--bg-white);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow-xs);
}

.detail-card--wide {
    margin-bottom: 16px;
}

.detail-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 16px 0;
    letter-spacing: -0.01em;
}

.detail-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.detail-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.detail-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0;
}

.detail-value--lg {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.detail-value--mono {
    font-family: "SF Mono", SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 12px;
    word-break: break-all;
}

.detail-field-divider {
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    padding: 0;
    line-height: 1;
}

.detail-empty {
    margin: 0;
    color: var(--text-light);
    font-size: 13px;
}

.detail-error {
    color: var(--danger);
    font-size: 12px;
    padding-top: 0;
}

.detail-back {
    margin-top: 24px;

    a {
        color: var(--text-light);
        font-size: 13px;
        font-weight: 500;
        text-decoration: none;

        &:hover {
            color: var(--text-dark);
        }
    }
}

/* Pricing Summary */
.pricing-summary {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 400px;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-subtle);

    &:last-child {
        border-bottom: none;
    }
}

.pricing-row--total {
    border-top: 1px solid var(--border-gray);
    border-bottom: none;
    margin-top: 4px;
    padding-top: 12px;

    .pricing-label {
        font-size: 16px;
        font-weight: 600;
        color: var(--text-dark);
    }

    .pricing-value {
        font-size: 20px;
        font-weight: 700;
        letter-spacing: -0.02em;
    }
}

.pricing-label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.pricing-label--discount {
    color: var(--success);
}

.pricing-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.pricing-value--discount {
    color: var(--success);
}

.pricing-value--positive {
    color: var(--success);
}

.pricing-value--negative {
    color: var(--danger);
}

@media (max-width: 1024px) {
    main .admin {
        grid-template-columns: 1fr;

        .sidebar {
            display: none;
        }

        .admin-content {
            padding: 20px 16px;

            .two-col {
                grid-template-columns: 1fr;
            }
        }
    }

    .web-quote {
        padding: 20px 16px;

        .quote-layout {
            grid-template-columns: 1fr;
            gap: 24px;
        }

        .quote-sidebar {
            position: static;
            order: -1;
        }

        .summary-section {
            position: static;

            .summary-card {
                border-radius: 0;

                .summary-header {
                    padding: 20px;
                }

                .summary-title {
                    font-size: 20px;
                }

                .summary-badge {
                    font-size: 11px;
                    padding: 5px 10px;
                    border-radius: 0;
                }

                .summary-content {
                    padding: 20px;

                    .summary-section.fees-section {
                        margin: 0 -20px 20px;
                        padding: 16px 20px;
                    }

                    .total-row .total-prices .total-amount {
                        font-size: 28px;
                    }
                }

                .submit-btn {
                    width: calc(100% - 40px);
                    margin: 0 20px 16px;
                    padding: 16px 20px;
                    font-size: 16px;
                    border-radius: 0;
                }

                .whats-next-btn {
                    padding: 12px 20px 20px;
                }
            }

            .qualifying-text-card {
                padding: 16px 20px;
                margin-top: 16px;
                border-radius: 0;

                p {
                    font-size: 14px;
                }
            }
        }

        .customer-info ul {
            grid-template-columns: 1fr;
        }

        .products-section .product-card {
            grid-template-columns: 1fr;
            gap: 0;
            padding: 0;
            border-radius: 0;

            &::before {
                display: none;
            }

            .product-image {
                padding: 0;
                border-radius: 0;

                .product-img {
                    width: 100%;
                    height: auto;
                    max-height: 220px;
                    object-fit: cover;
                }
            }

            .product-info {
                padding: 20px;

                .product-title {
                    font-size: 22px;
                }

                .product-ideal strong {
                    font-size: 12px;
                }

                .ideal-list {
                    gap: 6px;

                    li {
                        font-size: 13px;
                    }
                }
            }

            .product-actions {
                width: 100%;
                flex-direction: row;
                flex-wrap: wrap;
                align-items: center;
                justify-content: space-between;
                padding: 20px;
                padding-top: 0;
                border-top: none;
                gap: 16px;

                .price-wrapper {
                    flex-direction: row;
                    align-items: center;
                    justify-content: space-between;
                    width: 100%;
                }

                .product-price {
                    font-size: 22px;
                }

                .original-price {
                    display: none;
                }

                .discount-badge {
                    font-size: 10px;
                    padding: 4px 8px;
                    border-radius: 0;
                }

                .quantity-controls {
                    padding: 4px;
                    border-radius: 0;

                    .quantity-btn {
                        width: 44px;
                        height: 44px;
                        font-size: 22px;
                        border-radius: 0;
                    }

                    .quantity-display {
                        width: 60px;
                        font-size: 20px;
                    }
                }

                /* When there's a discount, quantity goes on its own row */
                &:has(.price-wrapper) .quantity-controls {
                    width: 100%;
                    justify-content: center;
                }
            }
        }
    }

    .reviews-header h2 {
        font-size: 36px;
    }

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

    .faqs-header h2 {
        font-size: 32px;
    }
}

/* Mobile Bottom Bar - Hidden by default */
.mobile-bottom-bar {
    display: none;
}

/* keyValueContainer height stabilization */
[data-webhook-preview-target="keyValueContainer"] {
    min-height: fit-content;
    transition: min-height 0.15s ease;
}

/* Nested form row stability */
.key-value-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
    position: relative;
}

.key-value-row:last-child {
    margin-bottom: 0;
}

/* Form input stability */
[data-nested-form-target="target"] {
    min-height: 48px;
    position: relative;
}

/* Custom value input styling */
.custom-value-input {
    border: 1px solid var(--border-gray);
    border-radius: var(--border-radius);
    padding: 8px 12px;
    background: var(--bg-white);
    color: var(--text-dark);
    font-size: 14px;
    transition: var(--transition-fast);
    width: 200px;
}

/* URL parameter inputs styling */
.url-param-inputs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (max-width: 768px) {
    .moving-plan-card {
        display: none;
    }
    .map-container {
        display: none;
    }

    .mobile-bottom-bar {
        display: flex;
        flex-direction: column;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        opacity: 0;
        transform: translateY(100%);
        transition:
            opacity 0.3s ease,
            transform 0.3s ease;
        pointer-events: none;
    }

    .mobile-bottom-bar.visible {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .mobile-nav-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: var(--secondary);
        padding: 14px 20px;
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        color: var(--bg-white);
        text-decoration: none;
        font-size: 11px;
        font-weight: 500;
        padding: 8px 12px;
        border-radius: var(--border-radius-sm);
        transition: var(--transition-fast);

        svg {
            width: 22px;
            height: 22px;
            stroke: var(--bg-white);
        }

        &:hover,
        &:active,
        &:focus {
            color: var(--bg-white);
            opacity: 0.85;

            svg {
                stroke: var(--bg-white);
            }
        }
    }

    .mobile-total-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: var(--bg-white);
        padding: 10px 20px;
        border-top: 1px solid var(--border-gray);
        border-top-left-radius: var(--border-radius);
        border-top-right-radius: var(--border-radius);
    }

    .mobile-total-label {
        font-size: 14px;
        font-weight: 500;
        color: var(--text-dark);
    }

    .mobile-total-prices {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-original-price {
        font-size: 14px;
        font-weight: 500;
        color: var(--text-light);
        text-decoration: line-through;
    }

    .mobile-total-amount {
        font-size: 18px;
        font-weight: 700;
        color: var(--secondary);
    }

    /* Add padding to bottom of page to account for fixed bar */
    body {
        padding-bottom: 130px;
    }
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.01em;
}

.status-pending {
    background: #f1f5f9;
    color: #64748b;
}

.status-contacted {
    background: #eff6ff;
    color: #2563eb;
}

.status-quoted {
    background: #eef2ff;
    color: #4f46e5;
}

.status-booked {
    background: #f0fdf4;
    color: #16a34a;
}

.status-lost {
    background: #fef2f2;
    color: #dc2626;
}

/* Site Status Badges */
.status-draft {
    background: #f1f5f9;
    color: #64748b;
}

.status-generating {
    background: #dbeafe;
    color: #2563eb;
    animation: pulse-badge 2s ease-in-out infinite;
}

.status-live {
    background: #dcfce7;
    color: #16a34a;
}

.status-failed {
    background: #fef2f2;
    color: #dc2626;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Generating Banner */
.generating-banner {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.generating-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #bfdbfe;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

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

.generating-banner h3 {
    margin: 0 0 0.5rem;
    color: #1e40af;
    font-size: 1.125rem;
}

.generating-step {
    color: #3b82f6;
    font-size: 0.9rem;
    margin: 0 0 1rem;
    min-height: 1.25em;
}

/* Status Select Dropdown */
.status-select {
    padding: 4px 24px 4px 10px;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 12px;
    transition: all var(--transition);

    &:focus {
        outline: 2px solid var(--secondary);
        outline-offset: 1px;
    }

    option {
        background: white;
        color: var(--text-dark);
    }
}

/* Analytics Tabs */
.analytics-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--bg-gray-light);
    border-radius: var(--radius);
    padding: 3px;
}

.analytics-tab {
    padding: 7px 16px;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-medium);
    cursor: pointer;
    white-space: nowrap;
    border-radius: var(--radius-sm);
    transition: all var(--transition);

    &:hover {
        color: var(--text-dark);
    }

    &.active {
        background: var(--bg-white);
        color: var(--text-dark);
        font-weight: 600;
        box-shadow: var(--shadow-xs);
    }
}

.analytics-tab-panel {
    display: none;

    &.active {
        display: block;
    }
}

.source-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.source-card {
    background: var(--bg-white);
    border: 1px solid var(--border-gray);
    border-left: 3px solid var(--secondary);
    border-radius: var(--radius);
    padding: 16px;
    transition: all var(--transition);

    &:hover {
        box-shadow: var(--shadow-sm);
    }

    .source-card-title {
        font-size: 14px;
        font-weight: 600;
        color: var(--text-dark);
        margin-bottom: 12px;
    }

    .source-card-metrics {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .source-card-metric {
        display: flex;
        justify-content: space-between;
        font-size: 13px;

        .source-metric-label {
            color: var(--text-muted);
        }

        .source-metric-value {
            font-weight: 600;
            color: var(--text-dark);
        }
    }
}

/* Source Performance Table */
.source-table {
    overflow-x: auto;

    table {
        min-width: 600px;
    }
}

.map-section {
    display: grid;
    grid-template-columns: 30% 1fr;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 20px;
    box-sizing: border-box;

    @media (max-width: 1024px) {
        grid-template-columns: 1fr;
    }
}

.moving-plan-card {
    background: var(--bg-white);
    border: 1px solid var(--border-dark);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);

    h3 {
        font-size: 20px;
        font-weight: 600;
        color: var(--secondary);
        margin: 0 0 24px;
    }
}

.location-info {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.location-marker {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;

    &.pickup {
        background: var(--secondary);
    }

    &.destination {
        background: var(--secondary);
    }

    .marker-icon {
        width: 12px;
        height: 12px;
        background: var(--bg-white);
        border-radius: 50%;
        display: block;
    }
}

.location-details {
    flex: 1;

    strong {
        display: block;
        font-size: 14px;
        font-weight: 600;
        color: var(--text-dark);
        margin-bottom: 4px;
    }

    p {
        font-size: 16px;
        color: var(--text-dark);
        margin: 0;
        font-weight: 500;
    }
}

.location-divider {
    width: 2px;
    height: 24px;
    background: var(--secondary);
    margin-left: 15px;
    margin-bottom: 8px;
}

.map-container {
    width: 100%;
    overflow: hidden;

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

/* Mileage Pricing */
.mileage-cta {
    background: var(--primary-light, #e0e7ff);
    border: 1px solid var(--primary, #2563eb);
    border-radius: 8px;
    padding: 16px 20px;
    margin: 16px 0;
    text-align: center;
}

.mileage-cta p {
    margin: 0;
    font-size: 14px;
    color: #374151;
}

.mileage-cta-link {
    color: var(--primary, #2563eb);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.mileage-dialog {
    max-width: 640px;
}

.mileage-address-group {
    margin-bottom: 12px;
}

.mileage-address-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

.mileage-address-wrapper {
    position: relative;
}

.mileage-address-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.mileage-address-input:focus {
    outline: none;
    border-color: var(--primary, #2563eb);
    box-shadow: 0 0 0 2px var(--primary-light, #e0e7ff);
}

.pac-container {
    z-index: 2147483647 !important;
}

/* Inline address autocomplete fields */
.address-autocomplete-wrapper {
    position: relative;
}

.address-autocomplete-wrapper gmp-place-autocomplete {
    width: 100% !important;
}

.address-autocomplete-wrapper gmp-place-autocomplete input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.address-autocomplete-wrapper gmp-place-autocomplete input:focus {
    outline: none;
    border-color: var(--primary, #2563eb);
    box-shadow: 0 0 0 2px var(--primary-light, #e0e7ff);
}

/* Admin form: Google Places autocomplete inside .form-group */
.form-group gmp-place-autocomplete {
    width: 100% !important;
    color-scheme: light;
}

.form-group gmp-place-autocomplete input {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border-gray);
    background: var(--bg-white);
    color: var(--text-dark);
    font-family: inherit;
    box-shadow: var(--shadow-xs);
    box-sizing: border-box;
    transition: all var(--transition);
}

.form-group gmp-place-autocomplete input:hover {
    border-color: var(--text-light);
}

.form-group gmp-place-autocomplete input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: var(--shadow-ring);
}

.address-selected-display {
    display: block;
    font-size: 12px;
    color: #059669;
    margin-top: 4px;
    font-style: italic;
}

.address-hint {
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
    margin: 8px 0 0;
}

.mileage-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.mileage-suggestion-item {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 13px;
    border-bottom: 1px solid #f3f4f6;
}

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

.mileage-suggestion-item:hover {
    background: #f3f4f6;
}

.mileage-map {
    border: 1px solid #d1d5db;
}

.mileage-result {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 15px;
}

.mileage-distance {
    font-weight: 600;
    color: #374151;
}

.mileage-fee {
    color: var(--primary, #2563eb);
    font-weight: 700;
}

.mileage-confirm-btn {
    width: 100%;
}

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

/* Fee Form Layout (fields + summary sidebar) */
.fee-form-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    align-items: start;
}

/* Fee Summary Card */
.fee-summary {
    position: sticky;
    top: 24px;
}

.fee-summary .card {
    padding: 20px;
}

.fee-summary h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
}

.fee-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 6px 0;
    font-size: 14px;
}

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

.fee-summary-value {
    font-weight: 600;
    text-align: right;
}

@media (max-width: 768px) {
    .fee-form-layout {
        grid-template-columns: 1fr;
    }

    .fee-summary {
        position: static;
    }
}

/* ── Metric Cards (top-level) ── */

.metric-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.metric-cards .metric-card {
    background: var(--bg-white);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow-xs);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-cards .metric-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--border-dark);
}

.metric-cards .metric-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.metric-cards .metric-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

@media (max-width: 900px) {
    .metric-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .metric-cards { grid-template-columns: 1fr; }
}

/* ── Table Toolbar ── */

.table-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.table-toolbar-count {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
    white-space: nowrap;
}

/* ── Search Field ── */

.search-field {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-field-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 10px 14px 10px 36px;
    font-size: 14px;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius);
    background: var(--bg-white);
    color: var(--text-dark);
    box-shadow: var(--shadow-xs);
    transition: all var(--transition);
    box-sizing: border-box;
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-input:hover {
    border-color: var(--text-light);
}

.search-input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: var(--shadow-ring);
}

.search-field-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.search-field-clear:hover {
    color: var(--text-medium);
    background: var(--bg-gray-light);
}

/* ── Modal (native dialog) ── */

.modal {
    border: none;
    border-radius: var(--radius-xl);
    padding: 0;
    max-width: 480px;
    width: calc(100% - 32px);
    box-shadow: var(--shadow-xl);
    background: var(--bg-white);
    color: var(--text-dark);
}

.modal::backdrop {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
}

.modal-content {
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border-gray);
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--text-dark);
}

.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    color: var(--text-light);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    padding: 0;
}

.modal-close:hover {
    background: var(--bg-gray-light);
    color: var(--text-medium);
}

.modal-body {
    padding: 20px 24px 24px;
}

.modal-description {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.modal-description code {
    font-size: 13px;
    background: var(--bg-gray-light);
    padding: 1px 6px;
    border-radius: var(--radius-xs);
    color: var(--text-dark);
    font-weight: 500;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-gray);
}

/* ── Quote Timestamp Display ── */
.timestamp-display {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.timestamp-time {
    font-size: 11px;
    color: var(--text-light);
}

.detail-timestamp {
    font-size: 13px;
    color: var(--text-light);
    margin: 2px 0 0 0;
    font-weight: 400;
}

/* ── Quote Preview Card ── */
.quote-preview-card {
    position: fixed;
    z-index: 100;
    width: 320px;
    background: var(--bg-white);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.quote-preview-card--visible {
    opacity: 1;
    transform: translateY(0);
}

.quote-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-gray);
}

.quote-preview-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.quote-preview-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quote-preview-field {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.quote-preview-field .detail-label {
    font-size: 11px;
}

.quote-preview-field .detail-value {
    font-size: 13px;
}

.quote-preview-field .detail-value--lg {
    font-size: 16px;
}

.quote-preview-divider {
    height: 1px;
    background: var(--border-gray);
    margin: 2px 0;
}

/* ── Activity Timeline ── */
.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.activity-item {
    display: flex;
    gap: 14px;
    position: relative;
    padding-bottom: 20px;
}

.activity-item:last-child {
    padding-bottom: 0;
}

.activity-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 18px;
    bottom: 0;
    width: 2px;
    background: var(--border-gray);
}

.activity-dot {
    width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
    margin-top: 2px;
    border: 2px solid;
}

.activity-dot--create {
    background: var(--success-light);
    border-color: var(--success);
}

.activity-dot--update {
    background: var(--info-light);
    border-color: var(--info);
}

.activity-dot--destroy {
    background: var(--danger-light);
    border-color: var(--danger);
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.activity-action {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.activity-status-change {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.activity-arrow {
    color: var(--text-light);
    font-size: 12px;
}

.activity-changes {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.activity-change {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.activity-change-attr {
    font-weight: 500;
    color: var(--text-medium);
    min-width: 100px;
}

.activity-change-old {
    color: var(--text-light);
    text-decoration: line-through;
}

.activity-change-new {
    color: var(--text-dark);
    font-weight: 500;
}

.activity-meta {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-light);
}

.activity-user {
    font-weight: 500;
}

/* ── Audit Log ── */

.audit-filters {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.audit-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 0;

    select {
        min-width: 160px;
    }
}

.audit-filter-actions {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding-bottom: 2px;
}

.audit-event {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
}

.audit-event .activity-dot {
    width: 10px;
    height: 10px;
}

.audit-changes {
    font-size: 13px;
    max-width: 360px;
}

.audit-change-row {
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.8;
}

.audit-change-attr {
    font-weight: 500;
    color: var(--text-medium);
}

.audit-change-old {
    color: var(--text-light);
    text-decoration: line-through;
}

.audit-change-new {
    color: var(--text-dark);
    font-weight: 500;
}

.audit-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--border-gray);
    margin-top: 16px;
}

.audit-page-info {
    font-size: 13px;
    color: var(--text-light);
}

/* ── Hour Detail Modal ── */

.hour-detail-modal {
    max-width: 640px;
}

.hour-detail-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.hour-detail-stat {
    text-align: center;
    padding: 12px 8px;
    background: var(--bg-gray-light);
    border-radius: var(--radius-lg);
}

.hour-detail-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.hour-detail-stat-label {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 2px;
}

.hour-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.hour-detail-table th {
    text-align: left;
    padding: 8px 10px;
    font-weight: 600;
    color: var(--text-medium);
    border-bottom: 2px solid var(--border-gray);
    font-size: 12px;
}

.hour-detail-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-gray);
    color: var(--text-dark);
}

.hour-detail-table td a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.hour-detail-table td a:hover {
    text-decoration: underline;
}

.hour-detail-row .row-tooltip {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 10;
    background: var(--text-dark);
    color: #fff;
    padding: 10px 14px;
    border-radius: var(--radius-lg);
    font-size: 12px;
    line-height: 1.6;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    pointer-events: none;
}

.hour-detail-row:hover .row-tooltip {
    display: block;
}

.hour-detail-row:hover {
    background: var(--bg-gray-light);
}

/* ── Journey Dashboard ── */

.journey-phase-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-bottom: 24px;

    .phase {
        background: var(--bg-white);
        border: 1px solid var(--border-gray);
        border-radius: var(--radius-lg);
        padding: 16px 20px;
        text-align: center;
        transition: all var(--transition);
        position: relative;
        overflow: hidden;

        &::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--border-gray);
            transition: background var(--transition);
        }

        .phase-number {
            display: block;
            font-size: 11px;
            font-weight: 600;
            color: var(--text-light);
            text-transform: uppercase;
            letter-spacing: 0.04em;
            margin-bottom: 2px;
        }

        .phase-name {
            display: block;
            font-size: 16px;
            font-weight: 700;
            color: var(--text-dark);
        }

        .phase-months {
            display: block;
            font-size: 12px;
            color: var(--text-light);
            margin-top: 2px;
        }

        &.active {
            border-color: var(--phase-color);
            box-shadow: var(--shadow-sm);

            &::before {
                background: var(--phase-color);
            }

            .phase-number {
                color: var(--phase-color);
            }
        }

        &.completed {
            &::before {
                background: var(--phase-color);
            }

            .phase-number {
                color: var(--phase-color);
            }

            .phase-name {
                color: var(--text-medium);
            }
        }
    }
}

@media (max-width: 768px) {
    .journey-phase-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Journey Timeline */
.journey-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 8px;
}

.journey-phase-divider {
    padding: 12px 0 8px;
    margin-top: 8px;

    &:first-child {
        margin-top: 0;
    }

    h2, span {
        font-size: 13px;
        font-weight: 600;
        color: var(--phase-color);
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin: 0;
    }
}

.journey-timeline-node {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    cursor: pointer;
    transition: background var(--transition-fast);
    border-radius: var(--radius);
    padding-left: 8px;
    position: relative;

    &:hover {
        background: var(--bg-gray-light);
    }

    .timeline-dot {
        width: 12px;
        height: 12px;
        border-radius: var(--radius-full);
        flex-shrink: 0;
        margin-top: 4px;
        border: 2px solid var(--border-gray);
        background: var(--bg-white);
        transition: all var(--transition);
    }

    &.sent .timeline-dot {
        background: #16a34a;
        border-color: #16a34a;
    }

    &.current .timeline-dot {
        background: var(--phase-color);
        border-color: var(--phase-color);
        box-shadow: 0 0 0 4px color-mix(in srgb, var(--phase-color) 20%, transparent);
        animation: journey-pulse 2s ease-in-out infinite;
    }

    &.failed .timeline-dot {
        background: var(--danger);
        border-color: var(--danger);
    }

    .timeline-content {
        flex: 1;
        min-width: 0;
    }

    .timeline-header {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .timeline-week {
        font-size: 12px;
        font-weight: 600;
        color: var(--text-light);
        white-space: nowrap;
    }

    .timeline-subject {
        font-size: 13px;
        font-weight: 500;
        color: var(--text-dark);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .timeline-meta {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 2px;
        font-size: 12px;
        color: var(--text-light);
    }

    &.sent .timeline-subject {
        color: var(--text-medium);
    }

    &.pending .timeline-subject {
        color: var(--text-light);
    }
}

@keyframes journey-pulse {
    0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--phase-color) 20%, transparent); }
    50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--phase-color) 10%, transparent); }
}

.journey-communication-detail {
    margin-left: 32px;
    padding: 12px 16px;
    background: var(--bg-gray-light);
    border-radius: var(--radius);
    margin-bottom: 8px;
    border-left: 3px solid var(--border-gray);
}

/* Journey Trend Bars */
.journey-trend-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 120px;
    padding-top: 8px;

    .trend-bar-wrapper {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        height: 100%;
        justify-content: flex-end;
    }

    .trend-bar {
        width: 100%;
        min-height: 4px;
        border-radius: var(--radius-xs) var(--radius-xs) 0 0;
        transition: height 0.3s ease;
    }

    .trend-label {
        font-size: 10px;
        color: var(--text-light);
        margin-top: 4px;
        white-space: nowrap;
    }
}

/* Journey Save Bar */
.journey-save-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    position: sticky;
    bottom: -32px;
    background: var(--bg-white);
    padding: 16px 40px;
    margin: 24px -40px -32px;
    border-top: 1px solid var(--border-gray);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
    z-index: 10;
}

/* Journey Metric Deltas */
.metric-delta {
    font-size: 12px;
    font-weight: 600;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 9999px;
}

.metric-delta.positive {
    background: #f0fdf4;
    color: #16a34a;
}

.metric-delta.negative {
    background: #fef2f2;
    color: #dc2626;
}

/* Journey Recommendations */
.journey-recommendation-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 12px;
    background: #fffbeb;
    border-radius: var(--radius);
    font-size: 13px;
    color: #92400e;
    line-height: 1.5;
}

.recommendation-icon {
    font-weight: 700;
    color: #d97706;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Journey Milestones */
.journey-milestone-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-gray);
}

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

.milestone-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background: #f0fdf4;
    color: #16a34a;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

/* Journey Preview Panel */
.journey-preview-panel {
    margin-top: 12px;
    padding: 16px;
    background: var(--bg-gray-light);
    border-radius: var(--radius);
    border-left: 3px solid var(--secondary);
}

/* Journey Skipped Timeline Node */
.journey-timeline-node.skipped .timeline-dot {
    background: var(--text-light);
    border-color: var(--text-light);
}

.journey-timeline-node.skipped .timeline-subject {
    color: var(--text-light);
    text-decoration: line-through;
}

/* Print Styles */
@media print {
    .head-nav-actions,
    .timeline-actions,
    .journey-save-bar,
    .btn-primary,
    .btn-secondary,
    button {
        display: none !important;
    }

    .journey-phase-bar {
        page-break-inside: avoid;
    }

    .chart-card {
        page-break-inside: avoid;
    }
}
