/* ==========================================
   Shared Search Dropdown Component
   ========================================== */

/* -- Dropdown Shell -- */
.rfj-search-dropdown {
    position: absolute;
    z-index: var(--rfj-z-dropdown, 1000);
    width: 100%;
    max-height: 420px;
    overflow-y: auto;
    border: 1px solid var(--rfj-color-border-strong);
    border-radius: var(--rfj-radius-md);
    background: #fff;
    box-shadow: var(--rfj-shadow-lg);
    color: var(--rfj-text-primary);
    font-size: 14px;
    text-align: left;
}

/* -- Header and Hero Position Variants -- */
.header-search-wrapper .rfj-search-dropdown,
.header-search-dropdown.rfj-search-dropdown {
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
}

.hero-search-wrapper .rfj-search-dropdown,
.hero-search-dropdown.rfj-search-dropdown {
    top: calc(100% + 8px);
    right: 0;
    left: 0;
}

.rfj-sd-list,
.rfj-sd-items {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* -- Result Sections -- */
.rfj-sd-section {
    border-bottom: 1px solid var(--rfj-color-border);
}

.rfj-sd-section:last-child {
    border-bottom: 0;
}

.rfj-sd-section-header {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--rfj-color-border);
    background: #f7f9fc;
    color: var(--rfj-color-primary);
    font-size: 13px;
    font-weight: 700;
}

.rfj-sd-section-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rfj-sd-items {
    list-style: none;
}

/* -- Result Items -- */
.rfj-sd-item {
    border-bottom: 1px solid #f0f3f7;
}

.rfj-sd-item:last-child {
    border-bottom: 0;
}

.rfj-sd-item-link {
    display: block;
    padding: 10px 16px;
    overflow: hidden;
    color: var(--rfj-text-secondary);
    text-overflow: ellipsis;
    text-decoration: none;
    white-space: nowrap;
}

.rfj-sd-item-link:hover {
    color: var(--rfj-color-primary);
    background: #fff7f0;
}

/* -- Footer Action -- */
.rfj-sd-footer {
    padding: 10px 14px;
    border-top: 1px solid var(--rfj-color-border);
    background: #fbfcff;
}

.rfj-sd-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    border-radius: var(--rfj-radius-sm);
    color: var(--rfj-text-tertiary);
    font-weight: 700;
    text-decoration: none;
}

.rfj-sd-more-btn:hover,
.rfj-sd-more-btn:focus-visible {
    background: #f1f5f9;
    color: var(--rfj-text-secondary);
}

/* -- Empty, Loading, and Error States -- */
.rfj-sd-loading,
.rfj-sd-error,
.rfj-sd-empty {
    padding: 22px;
    color: var(--rfj-text-tertiary);
    text-align: center;
}

.rfj-sd-error {
    color: var(--rfj-color-danger);
}

.rfj-sd-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.rfj-sd-loading .rfj-sd-icon {
    animation: rfjSdSpin 0.8s linear infinite;
}

/* -- Component Animations -- */
@keyframes rfjSdSpin {
    to {
        transform: rotate(360deg);
    }
}
/* ==========================================
   Shared Modal, Form, Phone, and Software Dropdown Components
   ========================================== */

/* -- Modal Shell -- */
.rfj-modal *,
.rfj-modal *::before,
.rfj-modal *::after {
    box-sizing: border-box;
}

.rfj-modal {
    position: fixed;
    inset: 0;
    z-index: var(--rfj-z-modal, 2010);
    overflow-x: hidden;
    overflow-y: auto;
    color: var(--rfj-text-primary);
    font-family: var(--rfj-font-sans);
    outline: 0;
    animation: rfjFadeIn 180ms ease-out;
}

.rfj-modal-hidden,
.rfj-hidden {
    display: none !important;
}

.rfj-visible {
    display: block !important;
}

.rfj-flex {
    display: flex !important;
}

.rfj-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(17, 24, 39, 0.48);
    backdrop-filter: blur(3px);
}

.rfj-modal-dialog {
    position: relative;
    z-index: 2;
    width: auto;
    max-width: 560px;
    margin: 48px auto;
    pointer-events: none;
}

.rfj-modal-dialog-sm {
    max-width: 460px;
}

.rfj-modal-dialog-lg {
    max-width: 720px;
}

.rfj-modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--rfj-radius-lg);
    background: #fff;
    box-shadow: 0 24px 70px rgba(20, 32, 51, 0.22);
    pointer-events: auto;
    animation: rfjSlideIn 220ms ease-out;
}

.rfj-modal-header,
.rfj-modal-header-simple,
.rfj-modal-header-gradient {
    position: relative;
    padding: 22px 24px 20px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
}

.rfj-modal-header-simple {
    padding: 18px 24px;
}

.rfj-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--rfj-radius-sm);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}

.rfj-modal-close:hover,
.rfj-modal-close:focus {
    background: rgba(255, 255, 255, 0.24);
    outline: 0;
}

.rfj-modal-header-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-right: 26px;
}

.rfj-modal-logo {
    flex: 0 0 auto;
    padding: 8px;
    border-radius: var(--rfj-radius-sm);
    background: #fff;
    box-shadow: 0 8px 18px rgba(20, 32, 51, 0.12);
}

.rfj-modal-logo-img {
    display: block;
    max-width: 100px;
    height: auto;
}

.rfj-modal-desc {
    flex: 1 1 auto;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 13px;
    line-height: 1.75;
}

.rfj-modal-title-header {
    margin: 0;
    padding-right: 42px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.rfj-modal-body {
    padding: 24px;
    background: #fff;
}

.rfj-modal-title {
    margin: 0 0 18px;
    color: #6366f1;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.rfj-modal .text-center {
    text-align: center;
}

.rfj-modal .text-primary {
    color: #6366f1;
}

/* -- Form Layout and Controls -- */
.rfj-form {
    width: 100%;
}

.rfj-form-group {
    margin-bottom: 16px;
}

.rfj-form-group-hidden {
    display: none;
}

.rfj-control-label {
    display: block;
    margin-bottom: 7px;
    color: var(--rfj-text-primary);
    font-size: 14px;
    font-weight: 600;
}

.rfj-label {
    display: inline-flex;
    align-items: center;
    margin-right: 18px;
    color: var(--rfj-text-secondary);
    font-size: 14px;
    cursor: pointer;
}

.rfj-label:hover {
    color: var(--rfj-color-primary);
}

.rfj-checkbox-label a,
.rfj-help-text a {
    color: var(--rfj-color-primary);
}

.rfj-label input[type="radio"],
.rfj-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0 7px 0 0;
    accent-color: var(--rfj-color-primary);
    cursor: pointer;
}

.rfj-input,
.rfj-textarea,
.rfj-select {
    display: block;
    width: 100%;
    height: 42px;
    padding: 9px 12px;
    border: 1px solid var(--rfj-color-border-strong);
    border-radius: var(--rfj-radius-sm);
    background: #fff;
    color: var(--rfj-text-primary);
    font-size: 14px;
    line-height: 1.5;
    outline: 0;
    transition: border-color var(--rfj-transition), box-shadow var(--rfj-transition), background var(--rfj-transition);
    font-family: var(--rfj-font-sans);
}

.rfj-textarea {
    height: auto;
    min-height: 78px;
    resize: vertical;
}

.rfj-input:hover,
.rfj-textarea:hover,
.rfj-select:hover {
    border-color: #c3cedc;
}

.rfj-input:focus,
.rfj-textarea:focus,
.rfj-select:focus {
    border-color: var(--rfj-color-primary);
    box-shadow: 0 0 0 3px var(--rfj-color-primary-shadow);
}

.rfj-input[readonly] {
    background: #f5f7fb;
    color: var(--rfj-text-tertiary);
    cursor: not-allowed;
}

.rfj-input-error {
    border-color: var(--rfj-color-danger) !important;
    background: var(--rfj-red-fff7f7) !important;
}

.rfj-input-error:focus {
    box-shadow: 0 0 0 3px var(--rfj-color-danger-focus) !important;
}

.rfj-input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.rfj-input-group .rfj-input {
    flex: 1 1 auto;
    min-width: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.rfj-input-group .rfj-btn {
    flex: 0 0 auto;
    min-width: 108px;
    margin-left: -1px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    white-space: nowrap;
}

.rfj-error-message {
    display: block;
    min-height: 16px;
    margin-top: 5px;
    color: var(--rfj-color-danger);
    font-size: 12px;
    font-weight: 500;
}

.rfj-checkbox-label {
    display: inline-flex;
    align-items: flex-start;
    color: var(--rfj-text-tertiary);
    font-size: 13px;
    line-height: 1.6;
    cursor: pointer;
}

.rfj-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
}

.rfj-checkbox-label a {
    text-decoration: none;
    font-weight: 500;
}

.rfj-checkbox-label a:hover,
.rfj-help-text a:hover {
    color: var(--rfj-color-primary-hover);
    text-decoration: underline;
}

/* -- Form Buttons -- */
.rfj-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: var(--rfj-radius-sm);
    background: #fff;
    color: var(--rfj-text-secondary);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition: all var(--rfj-transition);
}

.rfj-btn:hover {
    transform: translateY(-1px);
}

.rfj-btn:focus,
.rfj-btn:active:focus {
    outline: 0;
    box-shadow: 0 0 0 3px var(--rfj-color-primary-shadow);
}

.rfj-btn[disabled] {
    cursor: not-allowed;
    opacity: 0.62;
    transform: none;
}

.rfj-btn-primary {
    border-color: #6366f1;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.25);
}

.rfj-btn-primary:hover,
.rfj-btn-primary:focus {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
}

.rfj-btn-block {
    width: 100%;
}

.rfj-help-text {
    display: block;
    margin-top: 6px;
    color: var(--rfj-text-tertiary);
    font-size: 12px;
    line-height: 1.5;
}

.rfj-help-text a {
    text-decoration: none;
}

/* -- Phone Modal Content -- */
.rfj-phone-content {
    padding: 8px 0 2px;
    text-align: center;
}

.rfj-phone-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--rfj-color-primary);
    box-shadow: var(--rfj-shadow-sm);
}

.rfj-phone-icon {
    width: 38px;
    height: 38px;
    color: #fff;
}

.rfj-phone-number-wrapper {
    margin-bottom: 18px;
}

.rfj-phone-number-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 30px;
    border: 1px solid var(--rfj-color-primary-border);
    border-radius: var(--rfj-radius-md);
    background: var(--rfj-color-primary-light);
    color: var(--rfj-color-primary);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1px;
}

.rfj-phone-number-link:hover {
    border-color: var(--rfj-color-primary);
    background: var(--rfj-color-primary);
    color: #fff;
}

.rfj-phone-info-card {
    padding: 16px 18px;
    border: 1px solid var(--rfj-color-primary-border);
    border-left: 4px solid var(--rfj-color-primary);
    border-radius: var(--rfj-radius-md);
    background: var(--rfj-color-primary-light);
}

.rfj-phone-info-content {
    display: flex;
    gap: 10px;
    text-align: left;
}

.rfj-phone-info-icon {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    color: var(--rfj-color-primary);
}

.rfj-phone-info-text {
    flex: 1 1 auto;
    color: var(--rfj-text-secondary);
    font-size: 13px;
    line-height: 1.8;
}

.rfj-phone-info-title {
    margin-bottom: 8px;
    color: var(--rfj-text-primary);
    font-weight: 700;
}

.rfj-phone-info-item {
    margin-bottom: 5px;
}

.rfj-phone-info-highlight {
    color: var(--rfj-color-primary);
}

.rfj-phone-info-success {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 4px;
    color: var(--rfj-color-success);
    vertical-align: -2px;
}

/* -- Software Search Dropdown -- */
.rfj-software-search-container {
    position: relative;
    width: 100%;
}

.rfj-software-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: var(--rfj-z-dropdown, 1000);
    display: none;
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid var(--rfj-color-border-strong);
    border-radius: var(--rfj-radius-md);
    background: #fff;
    box-shadow: var(--rfj-shadow-lg);
}

.rfj-dropdown-active {
    display: block;
    animation: rfjDropdownFadeIn 160ms ease-out;
}

.rfj-software-list {
    margin: 0;
    padding: 6px 0;
    list-style: none;
}

.rfj-software-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f3f7;
    cursor: pointer;
}

.rfj-software-option:last-child {
    border-bottom: 0;
}

.rfj-software-option:hover,
.rfj-software-option-hover,
.rfj-software-option-selected {
    background: var(--rfj-color-primary-light);
}

.rfj-software-logo,
.rfj-software-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-sm);
    background: #f7f9fc;
}

.rfj-software-logo {
    object-fit: contain;
}

.rfj-software-icon {
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--rfj-color-blue);
}

.rfj-software-icon::after {
    content: "S";
    font-size: 14px;
    font-weight: 800;
}

.rfj-software-info {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
}

.rfj-software-name,
.rfj-software-maker {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rfj-software-name {
    color: var(--rfj-text-primary);
    font-size: 14px;
    font-weight: 700;
}

.rfj-software-maker {
    margin-top: 2px;
    color: var(--rfj-text-tertiary);
    font-size: 12px;
}

.rfj-software-arrow {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-right: 2px solid #b7c0ce;
    border-bottom: 2px solid #b7c0ce;
    opacity: 0;
    transform: rotate(-45deg);
}

.rfj-software-option:hover .rfj-software-arrow,
.rfj-software-option-hover .rfj-software-arrow {
    opacity: 1;
}

.rfj-software-option-selected .rfj-software-name {
    color: var(--rfj-color-primary);
}

.rfj-software-empty {
    padding: 22px 14px;
    color: var(--rfj-text-tertiary);
    font-size: 14px;
    text-align: center;
}

.rfj-software-dropdown::-webkit-scrollbar {
    width: 6px;
}

.rfj-software-dropdown::-webkit-scrollbar-track {
    background: #f5f7fb;
}

.rfj-software-dropdown::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #cbd4e1;
}

/* -- Component Animations -- */
@keyframes rfjFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes rfjSlideIn {
    from {
        opacity: 0;
        transform: translateY(-18px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes rfjDropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 1200px) {
    body {
        min-width: 0;
    }

    .header-content {
        gap: 12px;
    }

    .header-nav a {
        padding: 0 7px;
    }

    .hero-banner-wrapper {
        grid-template-columns: 240px minmax(0, 1fr);
    }

    .hero-side-panel-right {
        display: none;
    }

    .home-rankings-grid,
    .ai-tools-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .header-nav {
        overflow-x: auto;
    }

    .header-search-wrapper {
        display: block;
        flex: 0 0 auto;
    }

    .header-search-input {
        width: 160px;
    }

    .header-search-input:focus {
        width: 220px;
    }

    .hero-banner-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-side-panel-left {
        min-height: auto;
    }

    .hero-side-panel-right {
        display: flex;
        min-height: 260px;
    }

    .hero-enquiry-scroll-wrapper {
        min-height: 210px;
    }

    .hero-panel-links-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-rows: 1fr;
    }

    .hero-panel-link-item {
        min-height: 66px;
    }

    .stats-grid,
    .categories-grid,
    .cases-grid,
    .posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-content,
    .footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .advisors-featured__header,
    .advisors-featured__scroll-wrapper {
        max-width: calc(100% - 28px);
    }

    .header-content {
        min-height: 58px;
        gap: 12px;
    }

    .logo-text {
        font-size: 16px;
    }

    .header-nav {
        display: none;
    }
    .header-search-wrapper {
        display: block;
        flex: 1 1 auto;
        min-width: 0;
    }

    .header-search-input {
        width: 100%;
    }

    .header-search-input:focus {
        width: 100%;
    }

    .header-search-wrapper .rfj-search-dropdown,
    .header-search-dropdown.rfj-search-dropdown {
        width: 100%;
        right: 0;
    }

    .header-ai-tool,
    .header-user-menu{
        display: none;
    }

    .header-user-name {
        display: none;
    }

    .header-user-trigger {
        width: 36px;
        height: 36px;
        padding: 0;
        border-radius: 50%;
    }

    .header-user-icon {
        width: 22px;
        height: 22px;
    }

    .header-user-icon svg {
        width: 20px;
        height: 20px;
    }

    .header-hamburger {
        display: flex;
    }

    .header-mobile-menu {
        display: block;
    }
    .home-banner-ad {
        display: none;
    }

    .home-hero {
        padding: 32px 0 26px;
    }

    .home-reseller-manufacturers-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-search-box {
        height: 52px;
    }

    .hero-search-btn {
        min-width: 58px;
        padding: 0 14px;
    }

    .hero-search-btn span {
        display: none;
    }

    .hero-panel-links-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-banner-arrow {
        opacity: 1;
    }

    .section-header {
        align-items: flex-end;
        flex-direction: row;
        gap: 12px;
    }

    .section-title-group {
        flex: 1;
    }

    .section-title-group .section-title {
        font-size: 22px;
    }

    .home-section {
        padding: 36px 0;
    }

    .software-card {
        flex-basis: 250px;
    }

    .home-rankings-grid,
    .home-latest-grid,
    .ai-tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-latest-header {
        align-items: flex-start;
    }

    .advisors-featured__arrow {
        display: none;
    }

    .footer-content,
    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .stats-grid,
    .categories-grid,
    .cases-grid,
    .posts-grid,
    .home-rankings-grid,
    .home-latest-grid,
    .ai-tools-grid {
        grid-template-columns: 1fr;
    }

    .home-latest-header {
        flex-direction: column;
    }

    .home-reseller-manufacturers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat-card a {
        min-height: 92px;
        padding: 16px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-panel-link-item {
        min-height: 66px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-btn {
        width: 100%;
    }

    .footer-qr-codes {
        flex-wrap: wrap;
    }

    .rfj-search-dropdown {
        position: fixed;
        right: 14px !important;
        left: 14px !important;
        width: auto !important;
        max-height: 60vh;
    }

    .header-mobile-menu-inner {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .rfj-modal-dialog {
        max-width: calc(100% - 28px);
        margin: 24px auto;
    }

    .rfj-modal-header,
    .rfj-modal-header-simple,
    .rfj-modal-header-gradient {
        padding: 20px 18px 18px;
    }

    .rfj-modal-header-content {
        flex-direction: column;
        align-items: center;
        padding-right: 0;
        text-align: center;
    }

    .rfj-modal-logo-img {
        max-width: 82px;
    }

    .rfj-modal-desc {
        font-size: 12px;
    }

    .rfj-modal-body {
        padding: 20px 18px;
    }

    .rfj-label {
        margin-right: 12px;
        margin-bottom: 8px;
    }

    .rfj-input-group {
        flex-direction: column;
        gap: 10px;
    }

    .rfj-input-group .rfj-input,
    .rfj-input-group .rfj-btn {
        width: 100%;
        margin-left: 0;
        border-radius: var(--rfj-radius-sm);
    }

    .rfj-phone-number-link {
        min-height: 50px;
        padding: 0 22px;
        font-size: 22px;
    }
}

.mobile-bottom-nav {
    display: none;
    position: fixed;
    z-index: 9998;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(calc(100% - 32px), 560px);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 5px;
    margin: 0;
    box-sizing: border-box;
    border: 1px solid #d7d9dd;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .04);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.mobile-nav-item {
    display: flex;
    min-width: 0;
    min-height: 61px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border-radius: 999px;
    padding: 4px 0;
    color: #8b8f98;
    font-size: 12px;
    font-weight: 550;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.mobile-nav-item:active { opacity: .75; }
.mobile-nav-item.is-active { background: #e4e5e7; color: #101114; font-weight: 650; }
.mobile-bottom-nav .mobile-nav-icon { display: block; width: 25px; height: 25px; stroke-width: 2.4; }
.mobile-nav-label { line-height: 1.2; }

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: grid;
    }

    .home-footer {
        display: none;
    }

    .right-nav {
        display: none !important;
    }

    body {
        padding-bottom: calc(96px + env(safe-area-inset-bottom));
    }
}

/* ===== Right Sticky Nav ===== */
.right-nav {
    position: fixed;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--bg-card, #fff);
    box-shadow: var(--shadow-md, 0 8px 24px rgba(20, 32, 51, 0.08));
    border-radius: var(--radius-xl, 12px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 6px;
    border: 1px solid var(--border-color, #e6eaf0);
}

.right-nav-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary, #181f2a);
    padding: 8px 6px;
    border-radius: var(--radius-lg, 8px);
    transition: all var(--transition-fast, 150ms ease);
    font-size: 11px;
    font-weight: 500;
    gap: 4px;
    cursor: pointer;
}

.right-nav-button .icon {
    flex-shrink: 0;
    font-size: 22px;
    color: var(--primary-color, var(--rfj-red-legacy-brand));
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md, 6px);
    transition: all var(--transition-fast, 150ms ease);
}

.right-nav-button .icon svg {
    display: block;
    width: 22px;
    height: 22px;
}

.right-nav-button .text {
    white-space: nowrap;
    color: var(--text-secondary, #4f5b6c);
    transition: color var(--transition-fast, 150ms ease);
}

button.right-nav-button,
button.rfj-floating-actions__button {
    border: 0;
    background: transparent;
    font: inherit;
}

.right-nav-button:hover {
    background-color: var(--primary-color, var(--rfj-red-legacy-brand));
}

.right-nav-button:hover .text, .right-nav-button:hover .icon {
    color: #fff;
}

@media (max-width: 992px) {
    .right-nav {
        right: 8px;
        padding: 6px 4px;
    }

    .right-nav-button {
        padding: 6px 4px;
        font-size: 10px;
    }

    .right-nav-button .icon {
        width: 28px;
        height: 28px;
    }

    .right-nav-button .icon svg {
        width: 15px;
        height: 15px;
    }
}

@media (max-width: 768px) {
    .right-nav {
        right: 6px;
        bottom: 80px;
        top: auto;
        transform: none;
    }
}
