﻿/* ═══════════════════════════════════════════════════════════════
   ReviewFloAI — Apple-Inspired Design System Overrides
   Source of truth: reviewflo-brand-guide.html
   Load AFTER all YNEX stylesheets
   ═══════════════════════════════════════════════════════════════ */

/* ────────────────────────────────────────
   CSS Variables
   ──────────────────────────────────────── */
:root {
    /* Brand */
    --rf-black: #1D1D1F;
    --rf-blue: #0071E3;
    --rf-blue-hover: #0077ED;
    --rf-blue-bg: rgba(0, 113, 227, 0.07);
    /* Neutrals */
    --rf-text: #1D1D1F;
    --rf-text-secondary: #48484A;
    --rf-text-tertiary: #86868B;
    --rf-text-placeholder: #AEAEB2;
    --rf-border: #E8E8ED;
    --rf-surface: #F5F5F7;
    --rf-bg: #FFFFFF;
    --rf-card: #FFFFFF;
    /* Status */
    --rf-success: #34C759;
    --rf-warning: #FF9500;
    --rf-error: #FF3B30;
    --rf-info: #5AC8FA;
    --rf-ai: #AF52DE;
    /* Radius */
    --rf-radius-sm: 8px;
    --rf-radius-md: 12px;
    --rf-radius-lg: 16px;
    --rf-radius-xl: 20px;
    --rf-radius-full: 980px;
    /* Shadows */
    /*--rf-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);*/
    --rf-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    --rf-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --rf-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    /* Typography */
    --rf-font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    /* YNEX overrides */
    --primary-color: #0071E3;
    --primary-rgb: 0, 113, 227;
    --side-menu-width: 270px;
}


/* ════════════════════════════════════════════
   BASE / GLOBAL
   ════════════════════════════════════════════ */

body {
    background-color: var(--rf-bg) !important;
    color: var(--rf-text);
    font-family: var(--rf-font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ════════════════════════════════════════════
   PRIMARY COLOR → APPLE BLUE
   ════════════════════════════════════════════ */

.btn-primary,
[data-bs-theme] .btn-primary {
    background-color: var(--rf-blue) !important;
    border-color: var(--rf-blue) !important;
    border-radius: var(--rf-radius-full) !important;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: all 0.2s ease;
}

    .btn-primary:hover,
    [data-bs-theme] .btn-primary:hover {
        background-color: var(--rf-blue-hover) !important;
        border-color: var(--rf-blue-hover) !important;
    }

    .btn-primary:focus,
    .btn-primary:active,
    .btn-primary.active {
        background-color: var(--rf-blue-hover) !important;
        border-color: var(--rf-blue-hover) !important;
        box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2) !important;
    }

.btn-primary-light,
.btn-outline-primary {
    color: var(--rf-blue) !important;
    border-color: var(--rf-blue) !important;
    border-radius: var(--rf-radius-full) !important;
    font-weight: 600;
    background: transparent;
}

    .btn-primary-light:hover,
    .btn-outline-primary:hover {
        background-color: var(--rf-blue-bg) !important;
        color: var(--rf-blue) !important;
        border-color: var(--rf-blue) !important;
    }

/* Ghost / light button */
.btn-light,
.btn-outline-light {
    border-radius: var(--rf-radius-full) !important;
}

/* Danger soft button */
.btn-outline-danger,
.btn-danger-light {
    border-radius: var(--rf-radius-full) !important;
}

/* All buttons get capsule radius */
.btn {
    border-radius: var(--rf-radius-full);
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: all 0.2s ease;
}

/* Small buttons */
.btn-sm {
    padding: 6px 16px;
    font-size: 13px;
}

.btn-wave {
    border-radius: var(--rf-radius-full) !important;
}

.text-primary {
    color: var(--rf-blue) !important;
}

.bg-primary {
    background-color: var(--rf-blue) !important;
}

.bg-primary-transparent,
.bg-primary-transparent {
    background-color: var(--rf-blue-bg) !important;
    color: var(--rf-blue) !important;
}

.border-primary {
    border-color: var(--rf-blue) !important;
}

/* Links — color only, no underline */
a {
    color: var(--rf-blue);
    text-decoration: none;
}

    a:hover {
        color: var(--rf-blue-hover);
        text-decoration: none;
    }

/* Focus ring */
.form-control:focus,
.form-select:focus {
    border-color: var(--rf-blue);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

.form-control,
.form-select {
    border-radius: var(--rf-radius-md);
    border: 1.5px solid var(--rf-border);
    color: var(--rf-text);
    font-size: 14px;
}

    .form-control::placeholder {
        color: var(--rf-text-placeholder);
    }


/* ════════════════════════════════════════════
   CARDS
   ════════════════════════════════════════════ */

/*.card.custom-card {
    border: none;
    border-radius: var(--rf-radius-lg) !important;*/
    /*box-shadow: var(--rf-shadow-sm);*/
    /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);*/
    /*background: var(--rf-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}*/

.card.custom-card {
    border: none !important;
    border-radius: var(--rf-radius-lg) !important;
    /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);*/
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    background: var(--rf-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .card.custom-card:hover {
        /* Only for clickable cards — see .review-card below */
    }

.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding: 16px 20px;
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: var(--rf-text) !important;
    letter-spacing: -0.02em !important;
}

    /* Remove teal accent line from card titles */
    .card-title::before {
        display: none !important;
    }


/* ════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════ */

.app-header {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.main-header {
    background: transparent !important;
}

/* Profile dropdown */
.header-profile-dropdown {
    border-radius: var(--rf-radius-md) !important;
    box-shadow: var(--rf-shadow-md) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    min-width: 200px;
}


/* ════════════════════════════════════════════
   STATUS COLORS — Apple HIG
   ════════════════════════════════════════════ */

/* Success */
.bg-success {
    background-color: var(--rf-success) !important;
}

.bg-success-transparent {
    background-color: rgba(52, 199, 89, 0.1) !important;
    color: var(--rf-success) !important;
}

.text-success {
    color: var(--rf-success) !important;
}

/* Warning */
.bg-warning {
    background-color: var(--rf-warning) !important;
}

.bg-warning-transparent {
    background-color: rgba(255, 149, 0, 0.1) !important;
    color: var(--rf-warning) !important;
}

.text-warning {
    color: var(--rf-warning) !important;
}

.bg-warning-subtle {
    background-color: rgba(255, 149, 0, 0.07) !important;
}

/* Danger / Error */
.bg-danger {
    background-color: var(--rf-error) !important;
}

.bg-danger-transparent {
    background-color: rgba(255, 59, 48, 0.07) !important;
    color: var(--rf-error) !important;
}

.text-danger {
    color: var(--rf-error) !important;
}

/* Info */
.bg-info-transparent {
    background-color: rgba(90, 200, 250, 0.1) !important;
    color: #0A84FF !important;
}

/* AI / Purple */
.bg-purple {
    background-color: var(--rf-ai) !important;
}

.bg-purple-transparent {
    background-color: rgba(175, 82, 222, 0.1) !important;
    color: var(--rf-ai) !important;
}

.alert-purple {
    background-color: rgba(175, 82, 222, 0.07);
    border-color: rgba(175, 82, 222, 0.15);
    border-left: 4px solid var(--rf-ai);
    color: #7C3AED;
}


/* ════════════════════════════════════════════
   BADGES & PILLS
   ════════════════════════════════════════════ */

.badge {
    border-radius: var(--rf-radius-full);
    font-weight: 600;
    letter-spacing: 0.01em;
}

    .badge.rounded-pill {
        border-radius: var(--rf-radius-full);
    }


/* ════════════════════════════════════════════
   PROGRESS BARS
   ════════════════════════════════════════════ */

.progress {
    border-radius: var(--rf-radius-full);
    background: var(--rf-surface);
}

.progress-bar.bg-primary {
    background: #4f46e5 !important;
}


/* ════════════════════════════════════════════
   NAV TABS
   ════════════════════════════════════════════ */

.nav-tabs .nav-link.active {
    color: var(--rf-blue);
    border-bottom-color: var(--rf-blue);
}

.nav-tabs .nav-link {
    color: var(--rf-text-tertiary);
    font-weight: 500;
}

    .nav-tabs .nav-link:hover {
        color: var(--rf-text);
    }


/* ════════════════════════════════════════════
   AVATARS
   ════════════════════════════════════════════ */

.avatar {
    border-radius: var(--rf-radius-md);
}

.avatar-rounded {
    border-radius: 50%;
}


/* ════════════════════════════════════════════
   REVIEW CARDS (Inbox)
   ════════════════════════════════════════════ */

.review-card {
    cursor: pointer;
    /*box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;*/
    /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06) !important;*/
    box-shadow: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1.5px solid transparent !important;
    margin-bottom: 16px !important;
}

/*    .review-card:hover {
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
        transform: scale(1.02);
    }*/

    .review-card:hover {
        border: 1.5px solid var(--rf-blue) !important;
        box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12), 0 8px 24px rgba(0, 113, 227, 0.15) !important;
        /*transform: translateY(-2px);*/
    }

        .review-card:hover .ti-chevron-right {
            color: var(--rf-blue) !important;
        }


/* ════════════════════════════════════════════
   STAR RATING
   ════════════════════════════════════════════ */

.star-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

    .star-rating .ti-star-filled {
        color: var(--rf-warning);
    }

    .star-rating .ti-star {
        color: #D1D1D6;
    }

.star-rating-sm {
    font-size: 14px;
}

.star-rating-md {
    font-size: 18px;
}

.star-rating-lg {
    font-size: 24px;
}

.star-value {
    margin-left: 6px;
    font-weight: 600;
    color: var(--rf-text);
}

.star-rating-sm .star-value {
    font-size: 12px;
}

.star-rating-md .star-value {
    font-size: 14px;
}

.star-rating-lg .star-value {
    font-size: 16px;
}

/* ════════════════════════════════════════════
   STAR PICKER (Quick Reply)
   ════════════════════════════════════════════ */

.rf-star {
    font-size: 1.75rem;
    line-height: 1;
    color: #D1D1D6;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
}

    .rf-star:hover:not(:disabled) {
        color: #DAA520 !important;
        transform: scale(1.15);
    }

    .rf-star:disabled {
        cursor: default;
        opacity: 0.8;
    }

.rf-star-active {
    color: #DAA520;
}

/* ════════════════════════════════════════════
   MODALS
   ════════════════════════════════════════════ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    animation: fadeIn 0.2s ease;
}

.modal-card {
    animation: scaleIn 0.2s ease;
    margin: 1rem;
    border-radius: var(--rf-radius-xl) !important;
    box-shadow: var(--rf-shadow-lg);
}

.modal-content {
    border-radius: var(--rf-radius-xl) !important;
    border: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.97);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* ════════════════════════════════════════════
   ACCORDION (Help page)
   ════════════════════════════════════════════ */

.accordion-button:not(.collapsed) {
    background-color: var(--rf-blue-bg);
    color: var(--rf-blue);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--rf-blue);
}

.accordion-item {
    border-radius: var(--rf-radius-md) !important;
    border-color: var(--rf-border);
}


/* ════════════════════════════════════════════
   VIDEO ITEM (Help page)
   ════════════════════════════════════════════ */

.video-item {
    transition: border-color 0.15s ease;
}

    .video-item:hover {
        border-color: var(--rf-blue) !important;
    }


/* ════════════════════════════════════════════
   ALERTS
   ════════════════════════════════════════════ */

.alert {
    border-radius: var(--rf-radius-md);
}

.alert-success {
    background-color: rgba(52, 199, 89, 0.08);
    border-color: rgba(52, 199, 89, 0.15);
    color: #1B7A34;
}

.alert-warning {
    background-color: rgba(255, 149, 0, 0.08);
    border-color: rgba(255, 149, 0, 0.15);
    color: #8A5200;
}


/* ════════════════════════════════════════════
   PAGE TITLE
   ════════════════════════════════════════════ */

.page-title {
    font-weight: 800;
    font-size: 2.5rem;
    letter-spacing: -0.04em;
    color: var(--rf-text);
    line-height: 1.1;
}


/* ════════════════════════════════════════════
   SPINNER
   ════════════════════════════════════════════ */

.spinner-border.text-primary {
    color: var(--rf-blue) !important;
}


/* ════════════════════════════════════════════
   SWEETALERT
   ════════════════════════════════════════════ */

.swal2-cancel {
    background-color: rgba(0, 0, 0, 0.04) !important;
    color: var(--rf-text) !important;
    border-radius: var(--rf-radius-full) !important;
}

.swal2-popup {
    border-radius: var(--rf-radius-xl) !important;
}


/* ════════════════════════════════════════════
   DROPDOWN MENUS
   ════════════════════════════════════════════ */

.dropdown-menu {
    border-radius: var(--rf-radius-md) !important;
    box-shadow: var(--rf-shadow-md) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--rf-surface);
    color: var(--rf-text);
}


/* ════════════════════════════════════════════
   BG-LIGHT OVERRIDE
   ════════════════════════════════════════════ */

.bg-light {
    background-color: var(--rf-surface) !important;
}


/* ════════════════════════════════════════════
   TEXT UTILITIES
   ════════════════════════════════════════════ */

.text-muted {
    color: var(--rf-text-tertiary) !important;
}

.fw-semibold {
    letter-spacing: -0.01em;
}

h1, .h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

h2, .h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

h3, .h3 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h4, h5, h6,
.fw-bold {
    letter-spacing: -0.02em;
}


/* ════════════════════════════════════════════
   PASSWORD TOGGLE
   ════════════════════════════════════════════ */

.password-wrapper {
    position: relative;
}

    .password-wrapper input {
        padding-right: 40px;
    }

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--rf-text-tertiary);
    background: none;
    border: none;
    padding: 0;
    font-size: 16px;
}

    .password-toggle:hover {
        color: var(--rf-text);
    }


/* ════════════════════════════════════════════
   CURSOR / UTILITY
   ════════════════════════════════════════════ */

.cursor-pointer {
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

    .cursor-pointer:hover {
        box-shadow: var(--rf-shadow-md);
    }


/* ════════════════════════════════════════════
   SCROLLBAR
   Subtle, Apple-style thin scrollbar
   ════════════════════════════════════════════ */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 0, 0, 0.25);
    }


/* ════════════════════════════════════════════
   INBOX SEARCH CARD
   ════════════════════════════════════════════ */

.shadow-md {
    /*box-shadow: var(--rf-shadow-sm) !important;*/
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}


/* ════════════════════════════════════════════
   BORDER-DOTTED (Inbox status footer)
   ════════════════════════════════════════════ */

.border-dotted {
    border-top: 1px dashed rgba(0, 0, 0, 0.08) !important;
}

/* ════════════════════════════════════════════
   LOGO FIX — prevent sidebar clipping
   ════════════════════════════════════════════ */

.main-sidebar-header .header-logo {
    overflow: visible !important;
    padding-left: 8px !important;
}

    .main-sidebar-header .header-logo .desktop-logo {
        white-space: nowrap !important;
    }


/* ════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════ */

.footer {
    background: #FFFFFF !important;
    border-top: none !important;
}


/* Remove border between logo and sidebar nav */
.main-sidebar-header {
    border-bottom: none !important;
}
/* Sidebar badge colors — orange */
.side-menu__item .badge {
    background: rgb(182, 68, 0) !important;
    color: white !important;
}

.main-sidebar-header {
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding-left: 20px !important;
}


/* ── App Links ── */
/* Reusable link style: no underline by default, underline on hover (text only, not icons) */
.rf-link {
    text-decoration: none;
    color: #0071E3;
}

    .rf-link:hover {
        color: #0077ED;
    }

    .rf-link span {
        text-decoration: none;
    }

    .rf-link:hover span {
        text-decoration: underline !important;
    }


/* ── Apple-style nav arrows ── */
.rf-nav-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--rf-blue);
    background: var(--rf-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

    .rf-nav-arrow i {
        font-size: 22px;
        font-weight: 700;
        color: #ffffff;
    }

    .rf-nav-arrow:hover {
        background: #0062cc;
        border-color: #0062cc;
    }

        .rf-nav-arrow:hover i {
            color: #ffffff;
        }

    .rf-nav-arrow:disabled {
        background: var(--rf-blue);
        border-color: var(--rf-blue);
        cursor: default;
        opacity: 0.35;
    }

        .rf-nav-arrow:disabled:hover {
            background: var(--rf-blue);
            border-color: var(--rf-blue);
        }

            .rf-nav-arrow:disabled:hover i {
                color: #ffffff;
            }


/* ── Apple-style search input ── */
.rf-search {
    position: relative;
}

    .rf-search input {
        padding-left: 36px;
        padding-right: 36px;
        border-radius: 8px;
    }

    .rf-search .rf-search-icon {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 16px;
        color: #86868b;
        pointer-events: none;
    }

    .rf-search .rf-search-clear {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        background: #c7c7cc;
        border: none;
        border-radius: 50%;
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        padding: 0;
    }

        .rf-search .rf-search-clear:hover {
            background: #d2d2d7;
        }

        .rf-search .rf-search-clear i {
            font-size: 12px;
            color: white;
        }



/* ── Apple-style button press ── */
.btn-primary:active {
    background-color: #0062cc !important;
    border-color: #0062cc !important;
    box-shadow: none !important;
    transform: none !important;
}


/* ── Rewrite input group ── */
.input-group > .form-control:first-child {
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.input-group > .btn:last-child {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}


/* ── Neutral filter dropdowns ── */
.rf-filter {
    border: 1px solid #d2d2d7;
    border-radius: 6px;
    color: #1d1d1f;
    background-color: white;
    font-size: 13px;
    padding: 6px 28px 6px 10px;
}

    .rf-filter:focus {
        border-color: #86868b;
        box-shadow: none;
        outline: none;
    }

/* ── Modal close button — match nav arrow style ── */
.modal-card .btn-icon.btn-light {
    background: #e8e8ed;
    border: none;
    border-radius: 50%;
}

    .modal-card .btn-icon.btn-light:hover {
        background: #f5f5f7;
    }


/* ── Modal backdrop blur — Apple style ── */
.modal-overlay {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.3) !important;
}

/* ── SweetAlert backdrop blur — Apple style ── */
.swal2-container {
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    background: rgba(0, 0, 0, 0.3) !important;
}

/* ── SweetAlert button — match primary button height ── */
.swal2-confirm {
    padding: 8px 24px !important;
    font-size: 15px !important;
    border-radius: 6px !important;
}


/* ── Button hover — Apple style darken ── */
.btn-primary:hover {
    background-color: #0062cc !important;
    border-color: #0062cc !important;
}

.btn-outline-primary:hover {
    background-color: #0062cc !important;
    border-color: #0062cc !important;
    color: white !important;
}

/* Apple-style placeholder text */
::placeholder {
    /*color: #6e6e73 !important;*/
    color: var(--bs-secondary-color);
    opacity: 1 !important;
    font-weight: 400 !important;
    font-size: 15px !important;
}

/* Larger inputs globally */
.form-control,
.form-select {
    padding: 10px 10px;
    font-size: 15px;
}


/*.progress-bar.bg-primary {
    background: linear-gradient(90deg, #0071E3, #AF52DE) !important;
}
*/
/* Apple-style status tabs */
.rf-status-tabs {
    display: inline-flex;
    background: #ffffff;
    border-radius: 980px;
    padding: 3px;
    gap: 2px;
    border: 1px solid #E8E8ED;
}

.rf-status-tab {
    padding: 8px 20px;
    border-radius: 980px;
    font-size: 16px;
    font-weight: 500;
    color: #86868B;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
    white-space: nowrap;
}

    .rf-status-tab:hover {
        color: #1D1D1F;
        background: rgba(0, 0, 0, 0.04);
    }

    .rf-status-tab.active {
        background: #0071E3;
        color: #ffffff;
        font-weight: 600;
    }

        .rf-status-tab.active:hover {
            background: #0062cc;
            color: #ffffff;
        }

    .rf-status-tab .badge {
        font-size: 11px;
        padding: 2px 7px;
        vertical-align: middle;
    }

    /* Colored badges by status */
    .rf-status-tab[href*="pending"] .badge {
        background: rgb(182, 68, 0) !important;
        color: #ffffff;
    }

    .rf-status-tab[href*="waiting"] .badge {
        background: rgb(182, 68, 0) !important;
        color: #ffffff;
    }

    .rf-status-tab[href*="done"] .badge {
        background: #30D158 !important;
        color: #ffffff;
    }

    /* Active pill badges stay visible on dark bg */
    .rf-status-tab.active .badge {
        opacity: 0.95;
    }

/* Mobile: full width, smaller text */
@media (max-width: 576px) {
    .rf-status-tabs {
        display: flex;
        width: 100%;
    }

    .rf-status-tab {
        flex: 1;
        text-align: center;
        padding: 8px 10px;
        font-size: 13px;
    }
}


/*.review-card {
    border: 1px solid #E8E8ED !important;
}*/


/*.page {
    background: linear-gradient(180deg, #ffffff 0%, #e8f0fe 40%, #d4e4fc 100%) !important;
    min-height: 100vh;
}*/
/*
.page {
    background: linear-gradient(180deg, rgba(0, 113, 227, 0.01) 0%, rgba(0, 51, 153, 0.22) 100%) !important;
}*/

.page {
    /*background: #FAFBFC !important;*/
    background: #F5F5F7 !important;
    /*background: #FFFFFF !important;*/
    min-height: 100vh;
}

.app-header {
    background: transparent !important;
    box-shadow: none !important;
}

.footer {
    background: transparent !important;
    box-shadow: none !important;
    border-top: none !important;
}


/*.app-sidebar {
    border-right: none !important;
}*/

.app-sidebar .main-sidebar-header {
    border-right: none !important;
    border-bottom: none !important;
}

.app-sidebar {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

    .app-sidebar .main-sidebar-header,
    .app-sidebar::before,
    .app-sidebar::after {
        border: none !important;
        box-shadow: none !important;
        outline: none !important;
    }

.authentication {
    background: linear-gradient(180deg, #ffffff 0%, #e8f0fe 40%, #d4e4fc 100%) !important;
    min-height: 100vh;
}

/*body:has(.authentication) {
    background: linear-gradient(180deg, rgba(0,113,227,0.15) 0%, rgba(0,113,227,0.05) 50%, transparent 100%) !important;
    min-height: 100vh;
}*/

/*body:has(.authentication) {
    background: #F5F5F7 !important;
    min-height: 100vh;
}*/

body:has(.authentication) {
    background: linear-gradient(180deg, #0a1628, #122d54) !important;
    min-height: 100vh;
}

.authentication {
    background: transparent !important;
}



.rf-filter {
    min-width: 160px;
    cursor: pointer;
    border: 1px solid #D2D2D7;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

    .rf-filter:hover {
        border-color: #1D1D1F;
    }

    .rf-filter:focus {
        border-color: #1D1D1F;
        box-shadow: none;
    }


/* Apple-style card title icons */
.rf-card-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
}

/*.app-sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #e8f0fe 100%) !important;
}

    .app-sidebar .main-sidebar-header {
        background: transparent !important;
    }
*/

/*    .app-sidebar .side-menu__item.active,
    .app-sidebar .side-menu__item:hover {
        background: rgba(255, 255, 255, 0.7) !important;
        border-radius: 8px;
    }*/

/*.app-sidebar {
    background: #f0f4ff !important;
}

    .app-sidebar .main-sidebar-header {
        background: transparent !important;
    }

*/


.review-card-detail {
    /*box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;*/
    /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06) !important;*/
    box-shadow: none !important;

}

/* SweetAlert overrides */
.swal2-confirm {
    font-size: 16px !important;
    padding: 10px 32px !important;
    border-radius: 980px !important;
    background-color: #0071E3 !important;
    background-image: none !important;
    border: none !important;
    font-weight: 600 !important;
}

.swal2-close {
    font-size: 28px !important;
}


/* SweetAlert title */
.swal2-title {
    font-size: 22px !important;
    font-weight: 700 !important;
}

/* SweetAlert subtitle */
.swal2-html-container {
    font-size: 16px !important;
}

/* SweetAlert close X — nudge down and left */
.swal2-close {
    margin-right: 8px !important;
    margin-top: 8px !important;
}


.form-check-input[role="switch"]:checked {
    background-color: #0071E3 !important;
    border-color: #0071E3 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='white'/%3E%3Cpath d='M8 12l3 3 5-5' stroke='%230071E3' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-position: right center !important;
}



/* ============================================
   Scroll To Top - Maverick-style override
   Black circle → gray on hover
   ============================================ */
.scrollToTop {
    background: #555 !important;
    color: white !important;
    border: 1px solid #555 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    cursor: pointer !important;
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

    .scrollToTop:hover {
        background: #999 !important;
        color: white !important;
        border-color: #999 !important;
    }


/* Hide scroll-to-top when SweetAlert is open */
.swal2-container ~ .scrollToTop,
body.swal2-shown .scrollToTop,
html.swal2-shown .scrollToTop {
    display: none !important;
}


/* ════════════════════════════════════════════
   DARK SIDEBAR
   ════════════════════════════════════════════ */

[data-menu-styles="dark"] .app-sidebar {
    background: #1a1d2e !important;
}

    [data-menu-styles="dark"] .app-sidebar .main-sidebar-header {
        background: #1a1d2e !important;
    }

    [data-menu-styles="dark"] .app-sidebar .side-menu__label,
    [data-menu-styles="dark"] .app-sidebar .side-menu__item {
        font-size: 15px !important;
    }

        [data-menu-styles="dark"] .app-sidebar .side-menu__item:hover,
        [data-menu-styles="dark"] .app-sidebar .side-menu__item.active {
            background: rgba(255, 255, 255, 0.08) !important;
            border-radius: 8px;
        }

    [data-menu-styles="dark"] .app-sidebar .side-menu__icon {
        font-size: 18px !important;
    }


/* ════════════════════════════════════════════
   DARK BLUE SIDEBAR 
   ════════════════════════════════════════════ */
/*
    [data-menu-styles="dark"] .app-sidebar,
    [data-menu-styles="dark"] .app-sidebar .main-sidebar-header {
        background: #153050 !important;
    }*/

[data-menu-styles="dark"] .app-sidebar {
    background: linear-gradient(180deg, #0a1628, #122d54) !important;
}

    [data-menu-styles="dark"] .app-sidebar .main-sidebar-header {
        background: transparent !important;
    }


        /* ── Sidebar text → white ── */
        [data-menu-styles="dark"] .app-sidebar .side-menu__label,
        [data-menu-styles="dark"] .app-sidebar .side-menu__item,
        [data-menu-styles="dark"] .app-sidebar .side-menu__icon,
        [data-menu-styles="dark"] .app-sidebar .category-name,
        [data-menu-styles="dark"] .app-sidebar .side-menu__angle {
            color: rgba(255, 255, 255, 0.85) !important;
        }

            [data-menu-styles="dark"] .app-sidebar .side-menu__item:hover .side-menu__label,
            [data-menu-styles="dark"] .app-sidebar .side-menu__item:hover .side-menu__icon,
            [data-menu-styles="dark"] .app-sidebar .side-menu__item.active .side-menu__label,
            [data-menu-styles="dark"] .app-sidebar .side-menu__item.active .side-menu__icon {
                color: #ffffff !important;
            }



.rf-status-tab:not(.active) .badge {
    background: #86868B !important;
    color: #ffffff;
}

/* ════════════════════════════════════════════
   GLOWING CARD ICONS
   ════════════════════════════════════════════ */

.rf-card-icon-glow {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

/* ════════════════════════════════════════════
   DARK AI CARD
   ════════════════════════════════════════════ */

.rf-card-dark {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa) !important;
    border: none !important;
}

    .rf-card-dark .card-header {
        background: transparent !important;
        border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    }

    .rf-card-dark .card-title {
        color: #ffffff !important;
    }

    .rf-card-dark .progress {
        background: rgba(255,255,255,0.15) !important;
    }

/*    .rf-card-dark .progress-bar,
    .rf-card-dark .progress-bar.bg-primary {
        background: linear-gradient(90deg, #004999, #7B2D8E, #CC7700, #1B8A32) !important;
        box-shadow: none;
    }
*/

    .rf-card-dark .progress-bar,
    .rf-card-dark .progress-bar.bg-primary {
        background: linear-gradient(90deg, #4c1d95, #7c3aed, #4c1d95) !important;
        background-size: 200% 100% !important;
        /*animation: rf-progress-pulse 3s ease infinite !important;*/
        box-shadow: none;
    }

    .rf-card-dark .text-muted,
    .rf-card-dark .rf-dark-sub {
        color: #ffffff !important;
    }


/* ════════════════════════════════════════════
   ACCORDION CARD HEADERS — hover hint
   ════════════════════════════════════════════ */

.card-header.cursor-pointer:hover {
    background-color: rgba(0, 0, 0, 0.02) !important;
}

/* ════════════════════════════════════════════
   ACCORDION CHEVRON — scale on hover
   ════════════════════════════════════════════ */

.card-header.cursor-pointer .ti-chevron-down,
.card-header.cursor-pointer .ti-chevron-up {
    transition: transform 0.2s ease;
}

.card-header.cursor-pointer:hover .ti-chevron-down,
.card-header.cursor-pointer:hover .ti-chevron-up {
    transform: scale(1.2);
}

/* ════════════════════════════════════════════
   DARK BLUE CARD (QR / Tools)
   ════════════════════════════════════════════ */

.rf-card-dark-blue {
    background: linear-gradient(135deg, #0a1628, #1a4b8c) !important;
    border: none !important;
}

    .rf-card-dark-blue .card-header {
        background: transparent !important;
        border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    }

    .rf-card-dark-blue .card-title {
        color: #ffffff !important;
    }

    .rf-card-dark-blue .progress {
        background: rgba(255,255,255,0.1) !important;
    }

    .rf-card-dark-blue .text-muted,
    .rf-card-dark-blue .rf-dark-sub {
        color: #ffffff !important;
    }


/* ════════════════════════════════════════════
   QR CARD — gradient with glass QR holder
   ════════════════════════════════════════════ */

.rf-card-qr {
    background: linear-gradient(135deg, #0071E3, #38bdf8) !important;
    border: none !important;
}

    .rf-card-qr .card-header {
        background: transparent !important;
        border-bottom: 1px solid rgba(255,255,255,0.15) !important;
    }

    .rf-card-qr .card-title {
        color: #ffffff !important;
    }

    .rf-card-qr .text-muted {
        color: rgba(255,255,255,0.85) !important;
    }

    .rf-card-qr .fw-semibold {
        color: #ffffff;
    }

.rf-qr-glass {
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 16px;
    display: inline-block;
}

/* ════════════════════════════════════════════
   DARK CARD (lighter purple variant)
   ════════════════════════════════════════════ */

.rf-card-dark-light {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa) !important;
    border: none !important;
}

    .rf-card-dark-light .card-header {
        background: transparent !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    }

    .rf-card-dark-light .card-title {
        color: #ffffff !important;
    }

    .rf-card-dark-light .text-muted,
    .rf-card-dark-light p,
    .rf-card-dark-light span {
        color: #ffffff !important;
    }


/* ════════════════════════════════════════════
   CURRENT PLAN HIGHLIGHT
   ════════════════════════════════════════════ */

/*.card.custom-card.border-primary {
    border: 2px solid var(--rf-blue) !important;
}*/

/* ════════════════════════════════════════════
   POST TO GOOGLE — rotating outer glow on hover
   ════════════════════════════════════════════ */

/*.rf-btn-post {
    position: relative;
    z-index: 1;
}

.rf-btn-post::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(90deg, #EA4335, #4285F4, #FBBC05, #34A853, #EA4335);
    background-size: 300% 100%;
    border-radius: var(--rf-radius-full);
    z-index: -1;
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.3s ease;
    animation: rf-google-glow 3s linear infinite;
}

.rf-btn-post:hover::before {
    opacity: 0.7;
}

@keyframes rf-google-glow {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}*/

/* ════════════════════════════════════════════
   POST TO GOOGLE — animated border on hover
   ════════════════════════════════════════════ */

.rf-btn-post {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

    .rf-btn-post::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: inherit;
        padding: 2px;
        background: linear-gradient(90deg, #EA4335, #4285F4, #FBBC05, #34A853, #EA4335);
        background-size: 300% 100%;
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        opacity: 0;
        transition: opacity 0.3s ease;
        animation: rf-google-border 3s linear infinite;
    }

    .rf-btn-post:hover::before {
        opacity: 1;
    }

@keyframes rf-google-border {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 300% 50%;
    }
}

/* ════════════════════════════════════════════
   CURRENT PLAN — gradient border highlight
   ════════════════════════════════════════════ */

.card.custom-card.border-primary {
    border: none !important;
    position: relative;
    z-index: 1;
}

    .card.custom-card.border-primary::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: var(--rf-radius-lg);
        padding: 2px;
        background: linear-gradient(135deg, #0071E3, #AF52DE, #FF9500, #34C759);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        z-index: -1;
    }
/* ════ SIDEBAR PLAN BADGE ════ */
.sidebar-plan-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 10px 12px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}

.plan-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

    .plan-label strong {
        color: #fff;
    }

.plan-upgrade-link {
    display: block;
    font-size: 0.7rem;
    color: #5b9bf5;
    text-decoration: none;
    margin-top: 3px;
}

    .plan-upgrade-link:hover {
        color: #7db4ff;
    }

/* Hide when sidebar is collapsed to icon-only */
[data-toggled="icon-overlay-close"] .sidebar-plan-badge,
[data-toggled="icon-text-close"] .sidebar-plan-badge,
[data-toggled="detached-close"] .sidebar-plan-badge {
    display: none;
}

/* ════ SETTINGS PAGE ════ */
.settings-row > .col-lg-7 {
    display: flex;
}

    .settings-row > .col-lg-7 > .card {
        flex: 1;
    }

.settings-row > .col-lg-5 {
    display: flex;
    flex-direction: column;
}

    .settings-row > .col-lg-5 > .card:last-child {
        flex: 1;
    }

/* ════ MOBILE (375px) ════ */
@media (max-width: 576px) {
    html, body {
        overflow-x: hidden;
    }

    .card-body {
        padding: 14px !important;
    }

    .card-header {
        padding: 12px 14px !important;
    }

/*    h2.fw-semibold {
        font-size: 1.4rem;
        margin-top: 0.5rem !important;
        margin-bottom: 0.75rem !important;
    }*/

    h2.fw-semibold {
        font-size: 1.4rem;
        margin-top: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    .card.custom-card {
        margin-bottom: 0.75rem !important;
    }

    .main-content {
        padding-bottom: 1rem !important;
    }

    .rf-search {
        max-width: 100% !important;
        width: 100%;
    }

    .rf-nav-arrow {
        width: 34px;
        height: 34px;
    }

        .rf-nav-arrow i {
            font-size: 18px;
        }

    .rf-status-tabs {
        padding: 2px;
        gap: 2px;
        flex-shrink: 0;
        width: auto;
    }

    .rf-link {
        white-space: nowrap;
    }

    .rf-btn-post {
        width: 100% !important;
    }

    .text-danger.fs-14 {
        word-break: break-word;
    }

    .scrollToTop {
        display: none !important;
    }

}

/* ════ REWRITE BUTTON MOBILE ════ */
@media (max-width: 575.98px) {
    .rf-rewrite-group.input-group {
        flex-direction: column;
    }

        .rf-rewrite-group.input-group > .form-control {
            width: 100%;
            border-radius: 0.375rem !important;
            margin-bottom: 0.5rem;
        }

        .rf-rewrite-group.input-group > .btn {
            width: 100%;
            border-radius: 0.375rem !important;
        }
}

/* ════ QUALITY WARNINGS MOBILE ════ */
@media (max-width: 575.98px) {
    .alert.fs-14,
    .alert.fs-16 {
        word-break: break-word;
    }
}


/* ════ TEXTAREAS MOBILE ════ */
@media (max-width: 575.98px) {
    .card-body textarea.form-control[rows="5"] {
        min-height: 260px;
    }

    .card-body textarea.form-control[rows="3"] {
        min-height: 140px;
    }
}

/* ════ FEEDBACK INPUT MOBILE ════ */
@media (max-width: 575.98px) {
    .rf-rewrite-group > .form-control,
    .rf-rewrite-group > .form-control::placeholder {
        font-size: 13px;
    }
}


/* ════ RESOLVE BUTTONS MOBILE ════ */
@media (max-width: 575.98px) {
    .rf-resolve-buttons {
        flex-direction: column;
    }

        .rf-resolve-buttons .btn {
            width: 100%;
        }
}

/* ════ TRACK FOLLOW-UP DESCRIPTION ════ */
.rf-track-description {
    margin-left: 3.5em;
}


/* ════ POST/CANCEL BUTTON MOBILE ════ */
@media (max-width: 575.98px) {
    .rf-post-container .btn {
        width: 100%;
        min-width: unset !important;
    }
}

/* ════ QUICK REPLY MOBILE ════ */
@media (max-width: 575.98px) {
    .rf-btn-generate {
        width: 100%;
    }
}


/* ════ ANALYTICS MOBILE ════ */
@media (max-width: 575.98px) {
    .rf-btn-reply-gap {
        width: 100%;
    }
}

/* ════ BILLING BUTTONS MOBILE ════ */
@media (max-width: 575.98px) {
    .rf-billing-btn {
        width: 100%;
    }
}


/* ════ HELP BUTTON MOBILE ════ */
@media (max-width: 575.98px) {
    .rf-help-btn {
        width: 100%;
        text-align: center;
    }
}

/* ════ HIDE HAMBURGER ON DESKTOP ════ */
@media (min-width: 992px) {
    .header-content-left .header-element:nth-child(2) {
        display: none !important;
    }
}

/* ════ MOBILE SIDEBAR — push nav below logo ════ */
@media (max-width: 991.98px) {
    .app-sidebar .main-sidebar {
        padding-top: 60px;
    }
}

/* ════ GET REVIEWS BUTTONS MOBILE ════ */
@media (max-width: 575.98px) {
    .rf-get-reviews-btn {
        width: 100%;
    }
}

/* ════ MOBILE SIDEBAR — smaller text ════ */
@media (max-width: 991.98px) {
    [data-menu-styles="dark"] .app-sidebar .side-menu__label,
    .app-sidebar .side-menu__label {
        font-size: 13px !important;
    }

    [data-menu-styles="dark"] .app-sidebar .side-menu__icon,
    .app-sidebar .side-menu__icon {
        font-size: 15px !important;
    }

    [data-menu-styles="dark"] .app-sidebar .category-name,
    .app-sidebar .category-name {
        font-size: 9px !important;
    }

    .app-sidebar .side-menu__item {
        padding: 8px 16px !important;
    }
}

/* ════ MOBILE/TABLET HEADER — colored logo on light header ════ */
@media (max-width: 991.98px) {
    .app-header .desktop-dark,
    .app-header .desktop-white,
    .app-header .toggle-logo,
    .app-header .toggle-dark,
    .app-header .toggle-white {
        display: none !important;
    }

    .app-header .desktop-logo {
        display: block !important;
    }
}

/* ════ SETTINGS ════ */
.settings-row .col-lg-5 {
    align-self: flex-start;
}