:root {
    --primary: #0d6efd;
    --secondary: #6c757d;
    --accent: #00b894;
    --mobile-section-space: 1.25rem;
    --dynamic-bottom-nav-height: 0px;
}

/* Chat UI */
.chat-card {
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
}

.chat-sidebar {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-right: 1px solid rgba(13, 110, 253, 0.12);
}

.chat-sidebar-header {
    padding: 1.5rem 1.5rem 1rem;
}

.chat-thread-search {
    padding: 0 1.5rem 1rem;
}

.chat-thread-list {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background: transparent;
    border: 0;
    margin: 0;
    box-shadow: none;
}

.chat-thread-item {
    border: 1px solid rgba(13, 110, 253, 0.12);
    width: 100%;
    text-align: left;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.chat-thread-item:hover,
.chat-thread-item.active {
    background: #ffffff;
    border-color: rgba(13, 110, 253, 0.3);
    box-shadow: 0 10px 24px rgba(13, 110, 253, 0.12);
}

.chat-thread-info {
    flex: 1 1 auto;
    min-width: 0;
}

.chat-thread-title {
    font-weight: 600;
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-thread-subtitle {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-thread-meta {
    font-size: 0.8rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-thread-time {
    font-size: 0.75rem;
    color: #6c757d;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.chat-thread-unread {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0d6efd;
    flex-shrink: 0;
    margin-left: 0.35rem;
    margin-top: 0.35rem;
}

.chat-thread-empty {
    padding: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: #6c757d;
}

.chat-content {
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chat-placeholder {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
}

.chat-placeholder-icon {
    font-size: 2.75rem;
    color: #0d6efd;
    opacity: 0.25;
}

.chat-panel {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-panel-header {
    padding: 1.25rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(13, 110, 253, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.chat-panel-header-title {
    flex: 1 1 auto;
}

.chat-back-button {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

.chat-messages {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: linear-gradient(180deg, rgba(248, 250, 255, 0.8) 0%, #ffffff 100%);
}

.chat-message {
    max-width: 82%;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    background: #f1f5ff;
    align-self: flex-start;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
    position: relative;
}

.chat-message-self {
    background: #0d6efd;
    color: #fff;
    align-self: flex-end;
}

.chat-message-meta {
    font-size: 0.75rem;
    margin-bottom: 0.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: inherit;
    opacity: 0.85;
}

.chat-message-meta-info {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
}

.chat-message-meta-extras {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.chat-message-time {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.chat-message-edited {
    display: inline-flex;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-left: 0.35rem;
    opacity: 0.8;
}

.chat-message-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.chat-message-action {
    border: none;
    background: none;
    color: inherit;
    opacity: 0.75;
    padding: 0.2rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.chat-message-action .bi {
    font-size: 0.85rem;
}

.chat-message-action:hover,
.chat-message-action:focus {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.22);
    outline: none;
}

.chat-message-other .chat-message-action:hover,
.chat-message-other .chat-message-action:focus {
    background-color: rgba(13, 110, 253, 0.12);
}

.chat-message.is-editing-target {
    outline: 2px dashed rgba(13, 110, 253, 0.5);
    outline-offset: 3px;
}

.chat-message.is-editing-target::after {
    content: 'Mengedit';
    position: absolute;
    top: -0.75rem;
    right: 1rem;
    font-size: 0.65rem;
    font-weight: 600;
    color: #0d6efd;
    background: #ffffff;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.2);
    z-index: 1;
}

.chat-message-self.is-editing-target {
    background-color: #0b5ed7;
}

.chat-message-other.is-editing-target {
    background-color: #e6edff;
}

.chat-message-body {
    white-space: pre-wrap;
    word-break: break-word;
    color: inherit;
}

.chat-message-empty {
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.chat-form {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(13, 110, 253, 0.08);
    background: #fff;
}

.chat-edit-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.75rem;
    background: rgba(13, 110, 253, 0.08);
    border-radius: 12px;
    color: #0d6efd;
}

.chat-edit-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.chat-edit-label .bi {
    font-size: 0.95rem;
}

.chat-edit-cancel {
    border: none;
    background: none;
    color: #0d6efd;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.chat-edit-cancel:hover,
.chat-edit-cancel:focus {
    background-color: rgba(13, 110, 253, 0.12);
    outline: none;
}

.chat-new-message-notice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.12);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    transition: opacity 0.2s ease, transform 0.2s ease;
    opacity: 0;
    transform: translateY(6px);
}

.chat-new-message-notice.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.chat-form-inner {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

#chatMessageInput {
    resize: none;
    min-height: 2.8rem;
    max-height: 10.5rem;
    overflow-y: hidden;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border-radius: 1rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

.ai-answer-bubble {
    position: relative;
    max-width: 85%;
    padding-right: 2.4rem;
}

.ai-answer-bubble .ai-answer-edit-button {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    border: none;
    background: rgba(255, 255, 255, 0.25);
    color: inherit;
    width: 1.8rem;
    height: 1.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    opacity: 0.75;
    transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.ai-answer-bubble[data-variant="skip"] .ai-answer-edit-button {
    background: rgba(108, 117, 125, 0.12);
    color: #495057;
}

.ai-answer-bubble .ai-answer-edit-button:hover,
.ai-answer-bubble .ai-answer-edit-button:focus-visible {
    opacity: 1;
    transform: translateY(-1px);
    outline: none;
}

.ai-answer-bubble-editing {
    outline: 2px dashed rgba(13, 110, 253, 0.45);
    outline-offset: 3px;
}

.ai-answer-bubble[data-edited="1"]::after {
    content: 'Diedit';
    position: absolute;
    bottom: -0.75rem;
    right: 0.75rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.18);
}

.ai-edit-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: rgba(13, 110, 253, 0.08);
    border-radius: 12px;
    color: #0d6efd;
}

.ai-edit-label {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.85rem;
    gap: 0.4rem;
}

.ai-edit-cancel {
    border: none;
    background: none;
    color: #0d6efd;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ai-edit-cancel:hover,
.ai-edit-cancel:focus-visible {
    background-color: rgba(13, 110, 253, 0.12);
    color: #0a58ca;
    outline: none;
}

.chat-form .btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}

.chat-input-wrap {
    position: relative;
    flex: 1 1 auto;
}

.chat-textarea-container {
    position: relative;
    flex: 1 1 auto;
}

.chat-emoji-toggle {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    top: auto;
    right: auto;
    transform: none;
    border: none;
    background: transparent;
    color: var(--primary);
    font-size: 1.25rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    padding: 0;
    cursor: pointer;
}

.chat-emoji-toggle:is(:hover, :focus-visible) {
    color: #0a58ca;
}

.chat-emoji-panel {
    position: absolute;
    left: 0;
    bottom: calc(100% + 0.65rem);
    width: min(280px, 100%);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
    z-index: 1050;
    max-height: 240px;
    overflow: hidden;
    padding: 0;
    box-sizing: border-box;
}

.chat-emoji-panel.d-none {
    display: none !important;
}

.chat-emoji-panel.is-open {
    display: block;
}

.chat-emoji-search {
    position: absolute;
    left: 0;
    bottom: calc(100% + 0.5rem);
    width: min(240px, 100%);
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
    padding: 0.4rem 0.5rem;
    z-index: 1060;
    display: flex;
    gap: 0.4rem;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: 3.2rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.chat-emoji-panel-scroll {
    max-height: 240px;
    overflow-y: auto;
    padding: 0.75rem;
    scrollbar-width: thin;
    scrollbar-gutter: stable both-edges;
    -webkit-overflow-scrolling: touch;
}

.chat-emoji-panel-scroll::-webkit-scrollbar {
    width: 6px;
}

.chat-emoji-panel-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(15, 23, 42, 0.25);
    border-radius: 100px;
}

.chat-emoji-panel-scroll::-webkit-scrollbar-track {
    background-color: transparent;
}

.chat-emoji-search.d-none {
    display: none !important;
}

.chat-emoji-search-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.3rem;
    color: #1f2937;
    background: rgba(15, 23, 42, 0.05);
    border: none;
    box-shadow: none;
}

.chat-emoji-search-item .emoji-char {
    font-size: 1.35rem;
    line-height: 1;
}

.chat-emoji-search-item.is-active,
.chat-emoji-search-item:is(:hover, :focus-visible) {
    background: rgba(13, 110, 253, 0.12);
}

.chat-emoji-search::-webkit-scrollbar {
    height: 6px;
}

.chat-emoji-search::-webkit-scrollbar-thumb {
    background-color: rgba(15, 23, 42, 0.25);
    border-radius: 100px;
}

.chat-emoji-search::-webkit-scrollbar-track {
    background-color: transparent;
}

.chat-emoji-section+.chat-emoji-section {
    margin-top: 0.75rem;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    padding-top: 0.75rem;
}

.chat-emoji-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    margin-bottom: 0.35rem;
}

.chat-emoji-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(32px, 1fr));
    gap: 0.35rem;
}

.chat-emoji-button {
    border: none;
    background: rgba(15, 23, 42, 0.05);
    border-radius: 10px;
    font-size: 1.3rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
    cursor: pointer;
}

.chat-emoji-button:is(:hover, :focus-visible) {
    background: rgba(13, 110, 253, 0.12);
}

.chat-send-button {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

@media (max-width: 991.98px) {
    .chat-card {
        border-radius: 20px;
        border: none;
    }

    .chat-sidebar {
        border-right: 0;
    }

    .chat-card .chat-content {
        display: none;
    }

    .chat-card.is-chat-open .chat-content {
        display: flex;
        border-top: 1px solid rgba(13, 110, 253, 0.08);
    }

    .chat-thread-list {
        max-height: 260px;
    }

    .chat-card.is-chat-open .chat-sidebar-wrapper {
        display: none;
    }

    .chat-card.is-chat-open .chat-panel {
        display: flex !important;
    }

    .chat-panel-header {
        padding-inline: 1rem;
        padding-top: 1rem;
    }

    .chat-messages,
    .chat-form {
        padding-inline: 1rem;
    }

    .chat-back-button {
        display: inline-flex;
    }

    main>.container,
    main>section>.container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .hero>.container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

/* Notification UI */
.notification-card {
    border-radius: 24px;
    overflow: hidden;
}

.notification-body {
    color: #495057;
    line-height: 1.65;
}

.notification-body>*:last-child {
    margin-bottom: 0;
}

.contact-feedback {
    margin-top: 0.25rem;
    font-size: 0.85rem;
}

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

.notification-item {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    cursor: pointer;
    background: #fff;
    transition: background-color 0.2s ease, border-left-color 0.2s ease;
    border-left: 4px solid transparent;
}

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

.notification-item:hover {
    background: rgba(13, 110, 253, 0.05);
}

.notification-item.is-unread {
    border-left-color: #0d6efd;
    background: rgba(13, 110, 253, 0.08);
}

.notification-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.35rem;
}

.notification-item-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.notification-item-time {
    font-size: 0.8rem;
    color: #6c757d;
}

.notification-item-message {
    margin-bottom: 0.5rem;
}

.notification-empty {
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

@media (max-width: 575.98px) {
    .chat-thread-item {
        padding: 0.65rem 0.9rem;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    }

    .chat-message {
        max-width: 90%;
    }

    .chat-thread-list {
        padding: 0 1rem 1.25rem;
    }

    .notification-item {
        padding: 1rem 1.25rem;
    }

    .notification-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .notification-item-time {
        margin-top: 0;
    }

    .about-hero-title {
        font-size: 1.5rem;
    }

    .about-hero-actions .btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.95rem;
    }

    .lead {
        font-size: 1rem;
    }

    .navbar.sticky-top .container {
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .navbar-brand {
        font-size: 1.05rem;
        padding: 0.35rem;
    }

    .nav-quick-item {
        padding: 0.35rem 0.55rem;
        font-size: 0.7rem;
    }
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #eef3ff 0%, #f7f8fa 45%, #ffffff 100%);
}

.hero {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.15), rgba(0, 184, 148, 0.15));
    padding: 4rem 0;
}

.hero-title {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 700;
    color: #1a1d20;
}

.hero-subtitle {
    color: #4a4f57;
}

header.navbar {
    min-height: 4.5rem;
}

.navbar-brand-logo {
    height: 36px;
    width: auto;
}

@media (max-width: 575.98px) {
    header.navbar {
        min-height: 4rem;
    }

    .navbar-brand-logo {
        height: 30px;
    }
}

.auth-actions {
    flex-shrink: 0;
}

.nav-quick-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.nav-quick-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 0.35rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--primary);
    border: 1px solid var(--primary);
    transition: background-color 0.2s ease, border-color 0.2s ease;
    line-height: 1;
    vertical-align: middle;
}

.nav-quick-label {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    line-height: 1;
}

.navbar-nav .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    position: relative;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    font-weight: 600;
    color: #3b4453;
    background: transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
    padding: 0.5rem 0.75rem !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus-visible {
    color: var(--primary);
    border-color: var(--primary);
    outline: none;
}

.navbar-nav .nav-link.active {
    color: var(--primary);
    border-color: var(--primary);
}

.navbar-nav .nav-link .nav-link-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    flex: 0 0 auto;
    width: auto;
    height: auto;
}

.navbar-nav .nav-link .nav-link-icon {
    font-size: 1em;
    line-height: 1;
    color: #64748b;
}

.navbar-nav .nav-link:hover .nav-link-icon,
.navbar-nav .nav-link:focus-visible .nav-link-icon,
.navbar-nav .nav-link.active .nav-link-icon {
    color: var(--primary);
}

.report-attachment-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.report-attachment-item {
    position: relative;
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 16px;
    overflow: hidden;
    background: #f8fafc;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.report-attachment-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.report-attachment-item img.is-loaded {
    opacity: 1;
}

.report-attachment-remove {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    border: none;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.report-attachment-remove:hover,
.report-attachment-remove:focus-visible {
    background: rgba(220, 53, 69, 0.9);
    outline: none;
}

.nav-link-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0.95rem;
    height: 0.95rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    font-size: 0.55rem;
    font-weight: 600;
    line-height: 1;
    color: #ffffff;
    background-color: var(--primary);
    pointer-events: none;
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(40%, -40%);
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.25);
}

.nav-quick-item i {
    font-size: 1rem;
    line-height: 1;
    color: currentColor;
}

.nav-quick-item:hover,
.nav-quick-item:focus-visible {
    background: #0b5ed7;
    border-color: #0a58ca;
    color: #ffffff;
    outline: none;
}

.nav-quick-item.active {
    background: #0a58ca;
    border-color: #0a53be;
    color: #ffffff;
}

.nav-quick-item.active i {
    color: currentColor;
}

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 0.35rem;
    padding: 0.45rem 0.8rem 0.7rem;
    padding: 0.45rem calc(0.8rem + env(safe-area-inset-left)) calc(0.7rem + env(safe-area-inset-bottom));
    background: #ffffff;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.12);
}

.bottom-nav-link {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.35rem 0.2rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    transition: color 0.2s ease, background-color 0.2s ease;
    position: relative;
}

.bottom-nav-link span {
    line-height: 1;
}

.bottom-nav-link i {
    font-size: 1.05rem;
    line-height: 1;
}

.bottom-nav-badge {
    position: absolute;
    top: 0.2rem;
    right: calc(0.2rem + env(safe-area-inset-right, 0));
    min-width: 1rem;
    min-height: 1rem;
    padding: 0.08rem 0.3rem;
    border-radius: 999px;
    font-size: 0.55rem;
    font-weight: 600;
    line-height: 1;
    color: #ffffff;
    background-color: #dc3545;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.bottom-nav-link.active {
    color: var(--primary);
    background: rgba(13, 110, 253, 0.12);
}

.bottom-nav-link.active i {
    color: var(--primary);
}

.bottom-nav-link:not(.active):hover {
    color: #1a1d20;
}

.scroll-top-btn {
    --scroll-top-inline-gap: 1.5rem;
    --scroll-top-bottom-nav-height: var(--dynamic-bottom-nav-height, 0rem);
    --scroll-top-block-extra: 0.25rem;
    position: fixed;
    bottom: calc(var(--scroll-top-bottom-nav-height) + var(--scroll-top-inline-gap) + var(--scroll-top-block-extra) + env(safe-area-inset-bottom));
    right: calc(var(--scroll-top-inline-gap) + env(safe-area-inset-right));
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 18px 36px rgba(13, 110, 253, 0.25);
    cursor: pointer;
    opacity: 0;
    transform: scale(0.85);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.scroll-top-btn i {
    font-size: 1.25rem;
    line-height: 1;
}

.scroll-top-btn:hover {
    box-shadow: 0 20px 40px rgba(13, 110, 253, 0.3);
}

.scroll-top-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.35);
}

.scroll-top-btn.is-visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

@media (max-width: 991.98px) {
    main {
        padding-bottom: calc(env(safe-area-inset-bottom) + var(--dynamic-bottom-nav-height, 0px) + 2.5rem);
    }

    .scroll-top-btn {
        --scroll-top-inline-gap: 1.25rem;
        --scroll-top-bottom-nav-height: var(--dynamic-bottom-nav-height, 0rem);
        --scroll-top-block-extra: 0rem;
    }
}

@media (max-width: 575.98px) {
    .auth-actions .btn {
        font-size: 0.95rem;
        padding: 0.5rem 1.1rem;
    }

    .scroll-top-btn {
        --scroll-top-inline-gap: 1rem;
        width: 2.75rem;
        height: 2.75rem;
    }

    .hero .form-control {
        font-size: 0.9rem;
    }

    .filter-type-icon {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.85rem;
    }
}

.guest-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
}

.guest-profile-id code {
    font-size: 0.85rem;
}

.home-main-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem !important;
}

.home-feed-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem !important;
}

.home-report-card .card-catalog-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.home-report-card {
    border-radius: 20px;
}

.home-report-card.card-catalog:hover {
    transform: none;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.home-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem !important;
}

.guest-card {
    height: 100%;
}

.about-aspiration-section {
    margin-bottom: 0;
}

footer {
    margin-top: var(--mobile-section-space);
}

footer.bg-dark .footer-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

footer.bg-dark .footer-link:hover,
footer.bg-dark .footer-link:focus-visible {
    color: #ffffff;
}

@media (max-width: 991.98px) {
    .guest-card {
        height: auto !important;
    }

    .home-main-column {
        gap: var(--mobile-section-space) !important;
    }

    .home-feed-stack {
        gap: var(--mobile-section-space) !important;
    }

    .home-sidebar {
        gap: var(--mobile-section-space) !important;
    }
}

@media (min-width: 992px) {
    .filter-advanced-container {
        width: 100%;
        margin: 0;
    }

    footer {
        margin-top: 3rem;
    }
}

@media (max-width: 575.98px) {
    .report-attachment-previews {
        gap: 0.5rem;
    }

    .report-attachment-item {
        width: calc((100% - 1rem) / 3);
        height: auto;
        aspect-ratio: 1 / 1;
        min-width: 0;
    }

    .report-attachment-item img {
        height: auto;
    }

    .chat-emoji-panel {
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        max-height: min(240px, 55vh);
        padding: 0;
        margin: 0;
    }

    .chat-emoji-search {
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .chat-emoji-panel-scroll {
        padding: 0.6rem 0.75rem;
        max-height: min(240px, 55vh);
    }

    .chat-emoji-section {
        padding-top: 0;
        padding-bottom: 0;
    }

    .guest-avatar {
        width: 64px;
        height: 64px;
    }

    .guest-profile-id {
        font-size: 0.7rem;
    }

    .guest-profile-id code {
        font-size: 0.7rem;
    }

    .filter-advanced-container {
        padding: var(--mobile-section-space) calc(var(--mobile-section-space) * 0.8) calc(var(--mobile-section-space) - 0.25rem);
    }

    .pt-5 {
        padding-top: var(--mobile-section-space) !important;
    }

    .py-5,
    .pb-5,
    .py-4,
    .pt-4,
    .pb-4 {
        padding-top: var(--mobile-section-space) !important;
        padding-bottom: var(--mobile-section-space) !important;
    }

    section {
        padding-top: 0;
        padding-bottom: 0;
    }

    .container,
    .container-fluid {
        padding-left: var(--mobile-section-space);
        padding-right: var(--mobile-section-space);
    }

    .row {
        --bs-gutter-x: var(--mobile-section-space);
        --bs-gutter-y: var(--mobile-section-space);
    }

    main {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .about-aspiration-section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

@media (max-width: 375.98px) {
    .bottom-nav-link {
        font-size: 0.65rem;
    }

    .bottom-nav-link i {
        font-size: 0.95rem;
    }
}

.input-group-password .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group-password .password-toggle-btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    display: flex;
    align-items: center;
    gap: 0.15rem;
    padding-inline: 0.8rem;
}

.input-group-password .password-toggle-btn i {
    pointer-events: none;
}

.input-group-password .password-toggle-btn:focus-visible {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.card-business,
.card-catalog {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(229, 240, 255, 0.92) 100%);
    position: relative;
    display: flex;
    flex-direction: column;
}

.card-catalog {
    --bs-card-spacer-y: 0;
    --bs-card-spacer-x: 0;
    padding: 0;
}

.card.card-surface {
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 24px;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(213, 232, 255, 0.9));
}

.card.card-surface .card-header {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.08), rgba(255, 255, 255, 0.7));
    border-bottom: 1px solid rgba(13, 110, 253, 0.16);
}

.card.card-surface .card-body {
    background: transparent;
}

.card-catalog:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.14);
}

.card-catalog.card-catalog-flat {
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: none;
    background: #ffffff;
    transform: none;
}

.card-catalog.card-catalog-flat:hover,
.card-catalog.card-catalog-flat:focus-visible,
.card-catalog.card-catalog-flat:focus-within {
    transform: none;
    box-shadow: none;
}

.feed-section .home-feed .card-catalog {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: none;
}

.feed-section .home-feed .card-catalog:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(15, 23, 42, 0.16);
}

.card-catalog .card-img-top,
.card-business .card-img-top {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    display: block;
    object-fit: cover;
    background-color: #eef2f7;
}

.card-catalog .card-img-top {
    flex-shrink: 0;
}

.explore-card-image {
    opacity: 1;
    transition: opacity 0.35s ease;
}

.explore-card-image.is-pending {
    opacity: 0;
}

.list-hover-surface {
    display: block;
    width: 100%;
    border-radius: 16px;
    padding: 0.8rem;
    transition: background-color 0.18s ease, border-color 0.18s ease;
    color: inherit;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background-color: transparent;
}

.list-hover-surface:hover,
.list-hover-surface:focus-visible,
.list-hover-surface:focus-within {
    background-color: #f1f5f9;
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: none;
    text-decoration: none;
}

.related-thumb,
.related-thumb-placeholder {
    width: 56px;
    height: 56px;
}

.related-thumb {
    object-fit: cover;
    background-color: #eef2f7;
}

.related-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.related-list>li:last-child {
    margin-bottom: 0 !important;
}

@media (max-width: 575.98px) {
    .related-address {
        font-size: 0.75rem;
    }
}

.card-img-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    flex: 0 0 auto;
}

.card-catalog-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100%;
    color: inherit;
    text-decoration: none;
}

.card-catalog-body {
    padding: 1rem 1.25rem 0.9rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.business-description-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.card-title-clamp {
    font-size: 0.9rem;
    line-height: 1.35;
    color: #1f2937;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    min-height: calc(1.35em * 2);
}

.card-subtitle-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.3;
}

.card-catalog-body>*:last-child {
    margin-bottom: 0 !important;
}

.card-catalog-footer {
    padding: 0.6rem 1.25rem 0.85rem;
    font-size: 0.82rem;
    color: #5f6a7c;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    column-gap: 0.75rem;
    row-gap: 0.35rem;
    margin-top: 0.5rem;
    flex-shrink: 0;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.card-catalog-footer span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.card-catalog-footer span:first-child {
    flex: 1;
    min-width: 0;
}

.card-catalog-footer span:last-child {
    flex-shrink: 0;
}

.card-entity-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.35;
}

.card-entity-name i {
    flex-shrink: 0;
    font-size: 1rem;
    color: #0d6efd;
}

.card-entity-name span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.card-catalog .favorite-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.card-catalog-link {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-business .favorite-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.card-business .card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.card-business .card-footer {
    padding: 0.75rem 1.25rem 0.75rem;
    font-size: 0.85rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    column-gap: 0.75rem;
    row-gap: 0.35rem;
    background: transparent;
    border-top: 1px solid rgba(15, 23, 42, 0.05);
    margin-top: auto;
}

.filter-card .form-check-input {
    margin-top: 0;
}

.filter-type-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: stretch;
}

.filter-type-option {
    position: relative;
    flex: 1 1 140px;
    cursor: pointer;
}

.filter-type-option .form-check-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.filter-type-label {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(13, 110, 253, 0.25);
    border-radius: 0.9rem;
    background-color: #ffffff;
    color: #1f2937;
    font-weight: 600;
    cursor: pointer;
    min-width: 140px;
    width: 100%;
    font-size: 0.85rem;
    line-height: 1.2;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.filter-type-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    font-size: 1rem;
    flex-shrink: 0;
}

.filter-type-option.is-checked .filter-type-label {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.filter-type-option.is-checked .filter-type-icon {
    background-color: #0d6efd;
    color: #ffffff;
}

.filter-advanced-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0;
    border: none;
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
    margin: 0 8px 0.35rem;
}

.filter-advanced-toggle:hover,
.filter-advanced-toggle:focus-visible {
    color: #0a58ca;
    outline: none;
}

.filter-advanced-toggle i {
    font-size: 1rem;
    transition: transform 0.22s ease;
}

.filter-advanced-toggle.is-open i {
    transform: rotate(180deg);
}

.filter-advanced-toggle span {
    display: inline-block;
}

.filter-advanced-container {
    display: none;
    padding: 1rem 1.1rem 0.85rem;
    border-radius: 1rem;
    background: rgba(13, 110, 253, 0.04);
    border: 1px solid rgba(13, 110, 253, 0.08);
    width: calc(100% - 16px);
    margin: 0 auto;
    box-sizing: border-box;
}

.filter-advanced-container.is-visible {
    display: block;
    animation: filterAdvancedFadeIn 0.3s ease forwards;
}

.filter-advanced-container.is-hiding {
    display: block;
    animation: filterAdvancedFadeOut 0.2s ease forwards;
}

.filter-card {
    position: relative;
    transition: box-shadow 0.25s ease;
}

.filter-card.is-advanced-card-opening,
.filter-card.is-advanced-card-closing {
    animation-duration: 0.32s;
    animation-timing-function: ease;
    animation-fill-mode: both;
}

.filter-card.is-advanced-card-opening {
    animation-name: filterCardSlideDown;
}

.filter-card.is-advanced-card-closing {
    animation-name: filterCardSlideUp;
}

@keyframes filterAdvancedFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes filterAdvancedFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-6px);
    }
}

.filter-card.is-advanced-card-opening {
    box-shadow: 0 1.1rem 2.2rem rgba(15, 23, 42, 0.12);
}

.filter-card.is-advanced-card-closing {
    box-shadow: 0 0.95rem 1.8rem rgba(15, 23, 42, 0.1);
}

@keyframes filterCardSlideDown {
    from {
        transform: translateY(-10px);
        opacity: 0.92;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes filterCardSlideUp {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    60% {
        transform: translateY(-8px);
        opacity: 0.95;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.filter-reset-wrapper {
    flex-shrink: 0;
}

.filter-reset-btn {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    line-height: 1.1;
}

.filter-header {
    width: 100%;
}

.card-business .card-footer span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.upload-preview-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.upload-preview-square {
    width: 128px;
    height: 128px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: linear-gradient(180deg, rgba(238, 243, 255, 0.6), rgba(255, 255, 255, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1 / 1;
}

.upload-preview-square img,
.upload-preview-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

.upload-preview-square.gallery-placeholder {
    aspect-ratio: auto;
    min-height: 124px;
    align-items: flex-start;
    padding: 0.75rem;
}

.upload-preview-square.gallery-placeholder .gallery-placeholder-inner {
    gap: 0.25rem;
}


.upload-preview-placeholder {
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.85rem;
}

.upload-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 0.25rem;
}

.gallery-remove-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: 1px solid rgba(220, 53, 69, 0.25);
    background-color: rgba(255, 255, 255, 0.92);
    color: #dc3545;
    box-shadow: 0 0.35rem 0.9rem rgba(0, 0, 0, 0.08);
}

.gallery-remove-btn:hover,
.gallery-remove-btn:focus {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.gallery-remove-btn i {
    font-size: 1rem;
}

.gallery-drag-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
}

.gallery-touch-controls {
    display: none;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
}

.gallery-touch-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    padding: 0;
}

.gallery-touch-button i {
    font-size: 1rem;
}

.gallery-manager-warning {
    margin-top: 0.75rem;
}

.gallery-empty {
    font-size: 0.85rem;
}

.gallery-section {
    --gallery-gap: clamp(0.5rem, 1.25vw, 1rem);
    --gallery-min-column: 140px;
}

[data-gallery-root][data-gallery-max="5"] {
    --gallery-min-column: 128px;
}

@media (max-width: 767.98px) {
    .gallery-drag-hint {
        display: none !important;
    }
}

@media (max-width: 575.98px) {
    [data-gallery-root] {
        --gallery-min-column: 148px;
    }

    [data-gallery-root][data-gallery-max="5"] {
        --gallery-min-column: 132px;
    }

    .operational-schedule-table {
        min-width: 0;
    }

    .operational-schedule-table thead {
        display: none;
    }

    .operational-schedule-table tbody {
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
    }

    .operational-schedule-table tbody tr {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
        background: #ffffff;
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 18px;
        padding: 0.95rem;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    }

    .operational-schedule-table tbody tr td {
        padding: 0;
        border: 0;
    }

    .operational-schedule-table tbody tr td:first-child {
        flex: 0 0 100%;
        font-weight: 600;
        font-size: 0.95rem;
        color: #1f2937;
    }

    .operational-schedule-table tbody tr td[data-label="Jam buka"],
    .operational-schedule-table tbody tr td[data-label="Jam tutup"] {
        flex: 1 1 calc(50% - 0.4rem);
        min-width: 0;
    }

    .operational-schedule-table tbody tr td[data-label="Jam buka"] input,
    .operational-schedule-table tbody tr td[data-label="Jam tutup"] input {
        width: 100%;
    }

    .operational-schedule-table tbody tr td.operational-status-cell {
        flex: 0 0 100%;
        text-align: left;
    }

    .operational-toggle-group {
        width: 100%;
        border-radius: 14px;
        background: rgba(248, 250, 252, 0.95);
    }

    .operational-toggle {
        flex: 1 1 50%;
    }

    .operational-toggle-label {
        font-size: 0.82rem;
        padding: 0.55rem 0.75rem;
    }

    [data-gallery-list] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

[data-gallery-list] {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--gallery-min-column, 140px), 1fr));
    gap: var(--gallery-gap);
    width: 100%;
    margin-top: 0.25rem;
    padding-bottom: 0.25rem;
    align-items: stretch;
}

[data-gallery-list] .gallery-item {
    cursor: grab;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

[data-gallery-list] .upload-preview-tile {
    width: 100%;
}

.gallery-slot {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
}

.gallery-slot.is-empty .gallery-item {
    cursor: pointer;
}

.gallery-slot.is-drop-target::after,
.gallery-slot.is-drop-target-after::after {
    content: '';
    position: absolute;
    top: 0.35rem;
    bottom: 0.35rem;
    width: 4px;
    border-radius: 9999px;
    background: rgba(13, 110, 253, 0.9);
    pointer-events: none;
    z-index: 2;
}

.gallery-slot.is-drop-target::after {
    left: 0;
    transform: translateX(-50%);
}

.gallery-slot.is-drop-target-after::after {
    right: 0;
    transform: translateX(50%);
}

.gallery-item-empty {
    cursor: pointer;
}

.gallery-item-empty[tabindex='-1'] {
    cursor: default;
}

.gallery-item-empty .gallery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    border: 1px dashed rgba(108, 117, 125, 0.6);
    background: #f8f9fa;
    color: #6c757d;
    padding: 0.75rem;
}

.gallery-placeholder-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    text-align: center;
}

.gallery-placeholder-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.gallery-placeholder-label {
    font-weight: 600;
    font-size: 0.85rem;
}

.gallery-placeholder-help {
    font-size: 0.75rem;
}

.gallery-required-hint {
    font-size: 0.75rem;
    color: #dc3545;
}

.gallery-item.gallery-dragging {
    opacity: 0.8;
    cursor: grabbing;
    box-shadow: 0 0.5rem 1rem rgba(15, 76, 129, 0.15);
}

[data-gallery-list] .upload-preview-square {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
}

.gallery-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.6rem;
    font-size: 0.8rem;
    width: 100%;
}

.gallery-drop-indicator {
    position: absolute;
    top: 0;
    width: 4px;
    border-radius: 9999px;
    background: rgba(13, 110, 253, 0.9);
    pointer-events: none;
    display: none;
    transform: translateX(-50%);
}

@media (hover: none) and (pointer: coarse) {
    .gallery-drag-hint {
        display: none;
    }

    .gallery-touch-controls {
        display: inline-flex;
    }
}

.upload-preview-tile {
    width: 128px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    text-align: left;
}

.upload-preview-tile .form-check {
    margin-top: 0;
    align-self: flex-start;
}

@media (min-width: 992px) {
    .upload-preview-grid {
        display: grid;
        grid-template-columns: repeat(5, 128px);
        gap: 1.25rem;
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    .upload-preview-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .upload-preview-grid .upload-preview-tile {
        width: 100%;
        max-width: none;
    }

    .upload-preview-grid .upload-preview-square {
        width: 100%;
    }

    .upload-preview-grid .form-check-label {
        font-size: 0.75rem;
    }

    .upload-preview-square.gallery-placeholder {
        aspect-ratio: 1 / 1;
        min-height: 0;
        align-items: center;
    }

    .upload-preview-square.gallery-placeholder .gallery-placeholder-inner {
        justify-content: center;
    }
}

.product-gallery-card {
    display: flex;
    flex-direction: column;
}

.product-gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(180deg, rgba(238, 243, 255, 0.65), rgba(255, 255, 255, 0.9));
    overflow: hidden;
}

.product-gallery-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

.product-gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 3rem;
}

.product-gallery-thumbs {
    --product-gallery-thumb-gap: 0.5rem;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--product-gallery-thumb-gap);
    padding: 1rem 1.25rem 0.75rem;
}

@media (min-width: 768px) {
    .product-gallery-thumbs {
        --product-gallery-thumb-gap: 0.75rem;
    }
}

.product-gallery-thumb {
    border: 2px solid transparent;
    background: transparent;
    padding: 0;
    border-radius: 16px;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (max-width: 767.98px) {
    .product-action-buttons {
        width: 100%;
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .product-action-buttons .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
        flex: 1 0 auto;
    }
}

.product-gallery-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.product-gallery-thumb:hover,
.product-gallery-thumb:focus-visible {
    border-color: rgba(13, 110, 253, 0.35);
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.12);
}

.product-gallery-thumb.is-active {
    border-color: rgba(13, 110, 253, 0.9);
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.18);
}

.favorite-tile {
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.favorite-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.16);
}

.favorite-tile-image {
    position: relative;
    width: 100%;
    height: 220px;
    background: #eef2f7;
}

.favorite-tile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.favorite-tile-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 2rem;
    color: #94a3b8;
}

.favorite-tile-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.favorite-tile-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.favorite-tile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    color: #64748b;
    font-size: 0.85rem;
}

.favorite-tile-address {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    color: #64748b;
    font-size: 0.85rem;
}

.favorite-tile-address i {
    margin-top: 0.2rem;
}

.favorite-tile .favorite-toggle {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
}

.favorite-tile .stretched-link {
    position: static;
}

.profile-nav-wrapper {
    padding: 1.5rem 0 0.75rem;
}

.profile-nav {
    display: flex;
    gap: 0;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 14px;
    overflow: hidden;
}

.profile-nav-link {
    display: flex;
    flex: 1 1 0;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: transparent;
    border: 0;
    border-right: 1px solid rgba(148, 163, 184, 0.22);
    padding: 0.6rem 0.7rem;
    color: #1e293b;
    min-height: 68px;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.profile-nav-link:last-child {
    border-right: 0;
}

.profile-nav-link:hover,
.profile-nav-link:focus-visible {
    background-color: rgba(13, 110, 253, 0.08);
    color: #0d6efd;
}

.profile-nav-link.is-active {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #ffffff;
}

.profile-nav-link.is-active .profile-nav-icon {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.profile-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.12);
    color: inherit;
    font-size: 1rem;
    line-height: 1;
}

.profile-nav-label {
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.2;
    text-align: left;
}

.dashboard-summary-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
}

.dashboard-summary-card .card-body {
    text-align: center;
}

.profile-collection-card {
    transition: box-shadow 0.2s ease;
}

.profile-collection-card:hover,
.profile-collection-card:focus-within {
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}

.profile-collection-card-body {
    padding: 1.5rem;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
}

.profile-photo-group {
    flex-wrap: wrap;
}

.profile-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-cropper-modal .modal-content {
    border-radius: 1rem;
}

.profile-cropper-stage {
    position: relative;
    width: min(320px, calc(100vw - 4rem));
    aspect-ratio: 1 / 1;
    border-radius: 1rem;
    background: rgba(241, 245, 249, 0.9);
    overflow: hidden;
    margin: 0 auto;
    border: 1px solid rgba(15, 23, 42, 0.12);
    cursor: grab;
    touch-action: none;
}

.profile-cropper-stage.is-cropper-dragging {
    cursor: grabbing;
}

.profile-cropper-image {
    position: absolute;
    inset: 0;
    user-select: none;
    pointer-events: none;
}

.profile-cropper-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.profile-cropper-overlay::before,
.profile-cropper-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(to bottom,
            transparent 32%,
            rgba(255, 255, 255, 0.25) 32%,
            rgba(255, 255, 255, 0.25) 34%,
            transparent 34%,
            transparent 66%,
            rgba(255, 255, 255, 0.25) 66%,
            rgba(255, 255, 255, 0.25) 68%,
            transparent 68%);
}

.profile-cropper-overlay::after {
    transform: rotate(90deg);
}

.profile-cropper-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(2px);
    transition: opacity 0.2s ease;
    z-index: 2;
}

.profile-cropper-loading[hidden] {
    display: none !important;
}

.profile-cropper-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-cropper-preview-frame {
    width: 96px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.profile-cropper-preview-frame img {
    position: absolute;
    top: 0;
    left: 0;
    user-select: none;
    pointer-events: none;
}



.operational-schedule-table th:nth-child(4),
.operational-status-cell {
    white-space: nowrap;
}

.operational-status-cell {
    text-align: center;
}

.operational-toggle-group {
    display: inline-flex;
    align-items: stretch;
    justify-content: center;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(248, 250, 252, 0.9);
    min-width: 10rem;
    transition: box-shadow 0.2s ease;
}

.operational-toggle {
    position: relative;
    flex: 1 1 0;
}

.operational-toggle:not(:last-child) .operational-toggle-label {
    border-right: 1px solid rgba(15, 23, 42, 0.12);
}

.operational-toggle-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.operational-toggle-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #475467;
    min-width: 0;
    background: transparent;
    transition: background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.operational-toggle-input:checked+.operational-toggle-label {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.85), rgba(17, 166, 235, 0.7));
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.operational-toggle-input:focus-visible+.operational-toggle-label {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 0 0 3px rgba(13, 110, 253, 0.35);
}

@media (max-width: 575.98px) {
    .profile-photo-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-photo-group .profile-avatar {
        margin-bottom: 0.75rem;
    }

    .profile-photo-group .flex-grow-1 {
        width: 100%;
    }
}

.profile-mobile-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: #ffffff;
    padding: 1rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-mobile-card+.profile-mobile-card {
    margin-top: 0.75rem;
}

.profile-mobile-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.profile-mobile-card-thumb {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
}

.profile-mobile-card-thumb.placeholder {
    background: rgba(15, 23, 42, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(15, 23, 42, 0.45);
    font-size: 1.1rem;
}

.profile-mobile-card-title {
    font-weight: 600;
    line-height: 1.2;
}

.profile-mobile-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.profile-mobile-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.profile-mobile-card-actions .btn {
    flex: 1 1 8rem;
}

.section-tint {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.08) 0%, rgba(0, 184, 148, 0.06) 100%);
    border-radius: 28px;
}

.section-tint-alt {
    background: linear-gradient(135deg, rgba(255, 185, 0, 0.12) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-radius: 28px;
}

.badge-category-static {
    pointer-events: none;
}

@media (max-width: 767.98px) {
    .profile-nav-wrapper {
        padding: 1.25rem 0 0.5rem;
    }

    .dashboard-summary-row {
        display: grid;
        gap: 0.65rem;
    }

    .dashboard-summary-card {
        min-height: auto;
    }

    .dashboard-summary-card .card-body {
        padding: 0.75rem 0.5rem;
    }

    .dashboard-summary-card .card-body .text-secondary {
        font-size: 0.75rem;
    }

    .dashboard-summary-card .card-body .h4 {
        font-size: 1.15rem;
    }

    .profile-collection-card {
        box-shadow: none !important;
        border: none;
        background: transparent;
    }

    .business-sidebar {
        margin-top: 1.25rem !important;
    }

    .operational-card {
        border: none !important;
        background: #f5f5f5;
        border-radius: 16px;
        padding: 1.25rem;
        box-shadow: none;
    }

    .operational-card>.d-flex {
        margin-bottom: 1rem;
    }

    .business-sidebar .card {
        margin-bottom: 1.25rem !important;
    }

    .business-sidebar .card:last-child {
        margin-bottom: 0 !important;
    }

    .profile-collection-card-body {
        padding: 0;
    }

    .profile-nav-link {
        flex-direction: column;
        align-items: center;
        gap: 0.3rem;
        min-height: 58px;
        padding: 0.45rem 0.3rem;
    }

    .profile-nav-label {
        font-size: 0.6rem;
        text-align: center;
    }

    .profile-mobile-card {
        padding: 0.9rem;
        border-radius: 16px;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    }

    .profile-mobile-card-actions .btn {
        flex: 1 1 45%;
    }

    .operational-advanced .table-responsive,
    .branch-operational-advanced .table-responsive {
        overflow: visible;
    }

    .operational-advanced table,
    .branch-operational-advanced table {
        width: 100%;
        border: 0;
    }

    .operational-advanced thead,
    .branch-operational-advanced thead {
        display: none;
    }

    .operational-advanced tbody tr,
    .branch-operational-advanced tbody tr {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 16px;
        padding: 0.85rem;
        background: #ffffff;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    }

    .operational-advanced tbody tr:last-child,
    .branch-operational-advanced tbody tr:last-child {
        margin-bottom: 0;
    }

    .operational-advanced tbody td,
    .branch-operational-advanced tbody td {
        border: 0 !important;
        padding: 0 !important;
        text-align: left !important;
        flex: 1 1 100%;
    }

    .operational-advanced tbody tr td:first-child,
    .branch-operational-advanced tbody tr td:first-child {
        font-size: 0.9rem;
        font-weight: 600;
        margin-bottom: 0.15rem;
        flex-basis: 100%;
        width: 100%;
    }

    .operational-advanced tbody tr td:first-child::before,
    .branch-operational-advanced tbody tr td:first-child::before {
        content: '';
    }

    .operational-advanced tbody td[data-label]::before,
    .branch-operational-advanced tbody td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: #6c757d;
        margin-bottom: 0.25rem;
    }

    .operational-advanced tbody td[data-label="24 jam"]::before,
    .operational-advanced tbody td[data-label="Tutup?"]::before,
    .branch-operational-advanced tbody td[data-label="24 jam"]::before,
    .branch-operational-advanced tbody td[data-label="Tutup?"]::before {
        display: inline-flex;
        align-items: center;
        margin-bottom: 0;
        margin-right: 0.35rem;
    }

    .operational-advanced tbody td[data-label="Jam buka"],
    .operational-advanced tbody td[data-label="Jam tutup"],
    .branch-operational-advanced tbody td[data-label="Jam buka"],
    .branch-operational-advanced tbody td[data-label="Jam tutup"] {
        flex: 1 1 calc(50% - 0.4rem);
    }

    .operational-advanced tbody td[data-label="24 jam"],
    .operational-advanced tbody td[data-label="Tutup?"],
    .branch-operational-advanced tbody td[data-label="24 jam"],
    .branch-operational-advanced tbody td[data-label="Tutup?"] {
        flex: 1 1 calc(50% - 0.4rem);
        display: flex;
        align-items: center;
        gap: 0.4rem;
    }

    .operational-advanced tbody td .form-check,
    .branch-operational-advanced tbody td .form-check {
        justify-content: flex-start !important;
    }
}

@media (min-width: 992px) {
    .profile-nav {
        justify-content: flex-start;
    }
}

.text-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-owner-link {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}

.card-business:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.14);
}

.badge-soft-primary {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.badge-soft-success {
    background-color: rgba(25, 135, 84, 0.12);
    color: #198754;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1a1d20;
}

.list-branches .list-group-item {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    margin-bottom: 1rem;
}

.table-modern tr {
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.table-modern th {
    color: #1a1d20;
    font-weight: 600;
}

.table-status-column {
    width: 160px;
    min-width: 160px;
    white-space: nowrap;
}

.table-status-column .form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn[data-disabled="1"] {
    pointer-events: none;
    opacity: 0.55;
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
    border-color: rgba(13, 110, 253, 0.3);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.floating-card {
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    border: none;
}

.favorite-toggle {
    border: none;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    color: #0d6efd;
}

.favorite-toggle:hover {
    background: rgba(13, 110, 253, 0.16);
    color: #0d6efd;
}

.favorite-toggle.active {
    background: rgba(13, 110, 253, 0.2);
    color: #0d6efd;
    box-shadow: 0 10px 24px rgba(13, 110, 253, 0.18);
}

.badge-outline {
    border: 1px solid rgba(13, 110, 253, 0.2);
    color: #0d6efd;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.badge-outline:hover,
.badge-outline:focus-visible {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.badge-truncate {
    display: inline-flex;
    align-items: center;
    max-width: 30ch;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.feed-section {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 24px;
    padding: 0;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
}

.feed-section-header {
    padding: 1.5rem 1.75rem 1rem;
}

.feed-section .home-feed {
    margin: 0;
    padding: 0 1.75rem 1.75rem;
}

.feed-section .feed-loader {
    padding: 0 1.75rem 1.75rem;
}

.feed-section-header p {
    color: #64748b;
}

@media (max-width: 767.98px) {
    .filter-header {
        padding: 0;
        margin: 1rem 1rem 0.75rem;
        position: relative;
    }

    .filter-header>div:first-child {
        flex: 1 1 auto;
        min-width: 0;
        padding-right: 4.25rem;
    }

    .filter-reset-wrapper {
        position: absolute;
        top: 0;
        right: 0;
    }

    .feed-section-header {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 0.6rem;
        padding: 0;
        margin: 1rem 1rem 0.75rem;
        position: relative;
    }

    .feed-section-header>div {
        flex: 1 1 auto;
        min-width: 0;
        padding-right: 4.5rem;
    }

    .feed-section-header h2 {
        font-size: 1.05rem;
        line-height: 1.3;
    }

    .feed-section-header p {
        font-size: 0.85rem;
    }

    .feed-section-header .btn {
        position: absolute;
        top: 0;
        right: 0;
        padding: 0;
        background: transparent;
        border: none;
        color: var(--primary);
        font-size: 0.85rem;
        line-height: 1.2;
        font-weight: 600;
        border-radius: 0;
    }

    .feed-section-header .btn:hover,
    .feed-section-header .btn:focus-visible {
        color: var(--primary);
        background: transparent;
        text-decoration: underline;
        box-shadow: none;
    }

    .feed-section .home-feed {
        padding: 0;
        margin: 0 1rem 1rem;
        gap: 0.75rem;
        --bs-gutter-x: 0;
        --bs-gutter-y: 0;
    }

    .feed-section .feed-loader {
        padding: 0;
        margin: 0 1rem 1rem;
    }

    .filter-reset-btn {
        font-size: 0.68rem;
        padding: 0.22rem 0.5rem;
    }

    .filter-type-options {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.45rem;
        width: 100%;
    }

    .filter-type-option {
        min-width: 0;
    }

    .filter-type-label {
        width: 100%;
        min-width: 0;
        padding: 0.45rem 0.55rem;
        gap: 0.35rem;
        font-size: 0.75rem;
        justify-content: center;
    }

    .filter-type-icon {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.8rem;
    }

    .card-catalog-body {
        padding: 0.8rem 0.95rem 0.7rem;
        gap: 0.45rem;
    }

    .card-catalog-body h5 {
        font-size: 0.96rem;
        line-height: 1.3;
    }

    .card-catalog-body p {
        font-size: 0.8rem;
    }

    .card-catalog-footer {
        padding: 0.5rem 0.95rem 0.65rem;
        font-size: 0.75rem;
    }

    .card-catalog .badge,
    .card-catalog .badge-category-static {
        font-size: 0.68rem;
    }

    .card-catalog .favorite-toggle,
    .card-business .favorite-toggle {
        top: 10px;
        right: 10px;
    }

    .card-business .card-body {
        padding: 1rem;
        gap: 0.5rem;
    }

    .card-business .card-footer {
        padding: 0.6rem 1rem 0.65rem;
        font-size: 0.75rem;
    }

    .favorite-toggle {
        width: 42px;
        height: 42px;
        padding: 0.35rem;
    }

    .favorite-toggle i {
        font-size: 1.05rem;
    }
}

.home-feed,
.explore-feed {
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}

.home-feed::-webkit-scrollbar,
.explore-feed::-webkit-scrollbar {
    height: 6px;
}

.home-feed::-webkit-scrollbar-thumb,
.explore-feed::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.4);
    border-radius: 999px;
}

.home-feed::-webkit-scrollbar-track,
.explore-feed::-webkit-scrollbar-track {
    background: transparent;
}

.spinner-feed {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 0;
    min-height: 3rem;
    text-align: center;
    width: 100%;
}

.spinner-feed .spinner-border {
    display: none;
}

.spinner-feed .spinner-feed-error {
    display: none;
    margin-top: 0.5rem;
}

.spinner-feed.is-loading .spinner-border {
    display: inline-block;
}

.spinner-feed.has-error .spinner-feed-error {
    display: block;
}

@media (max-width: 575.98px) {

    .home-feed,
    .explore-feed {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: visible;
        padding: 0;
        scroll-padding-left: 0;
        scroll-padding-right: 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .home-feed>[class^='col'],
    .home-feed>[class*=' col'],
    .explore-feed>[class^='col'],
    .explore-feed>[class*=' col'] {
        flex: 0 0 calc(48% - 0.5rem);
        max-width: calc(48% - 0.5rem);
        min-width: 180px;
        scroll-snap-align: center;
    }

    .feed-section .feed-loader {
        padding: 0;
    }

    .card-catalog,
    .card-business {
        border: 1px solid rgba(15, 23, 42, 0.08);
        box-shadow: none;
        background: #ffffff;
    }

    .card-catalog {
        background: #ffffff;
    }

    .card-catalog:hover,
    .card-catalog:active,
    .card-business:hover,
    .card-business:active {
        transform: none;
        box-shadow: none;
    }

    .home-feed::-webkit-scrollbar,
    .explore-feed::-webkit-scrollbar {
        display: none;
    }

    .explore-feed[data-feed-layout="grid"] {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
        scroll-snap-type: none;
        overflow-x: visible;
        margin-left: 0;
        margin-right: 0;
        --bs-gutter-y: 0;
    }

    .explore-feed[data-feed-layout="grid"]>[class^='col'],
    .explore-feed[data-feed-layout="grid"]>[class*=' col'] {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding-left: 0;
        padding-right: 0;
        margin-top: 0;
        scroll-snap-align: unset;
    }

    .explore-feed[data-feed-layout="grid"]>.explore-feed-spinner {
        grid-column: 1 / -1;
    }
}

.feed-sidebar-section {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.05);
}

.branch-item {
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 18px;
    padding: 0.75rem;
    transition: box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
    background: #ffffff;
}

.branch-item:hover,
.branch-item:focus-visible {
    background-color: #f1f5f9;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    transform: translateY(-3px);
}

.product-availability-item {
    border: none;
    padding: 0;
    margin-bottom: 0.75rem;
}

.product-availability-item:last-child {
    margin-bottom: 0;
}

.branch-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(13, 110, 253, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.branch-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.branch-thumb-placeholder {
    color: rgba(13, 110, 253, 0.75);
    font-size: 1.3rem;
}

.branch-body {
    flex: 1;
}

.gallery-thumb {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-thumb:hover,
.gallery-thumb:focus-visible {
    transform: scale(1.05);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.business-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.business-gallery-thumb {
    border-radius: 18px;
    overflow: hidden;
    background: rgba(148, 163, 184, 0.08);
    position: relative;
    outline: none;
}

.business-gallery-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.business-gallery-thumb:focus-visible {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.35);
}

.business-contact-item {
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    transition: box-shadow 0.2s ease;
}

.business-contact-item:hover,
.business-contact-item:focus-within {
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.business-contact-item .fw-semibold {
    font-size: 0.95rem;
}

.contact-item-header {
    margin-bottom: 0.35rem;
}

.detail-chat-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.detail-chat-actions .detail-chat-button {
    flex: 0 0 auto;
    font-size: 0.88rem;
    padding: 0.45rem 0.75rem;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.business-header-top {
    gap: 1rem;
}

.business-header-title {
    min-width: 0;
}

.product-category-badge {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.spinner-border.spinner-border-compact {
    width: 0.75rem;
    height: 0.75rem;
    border-width: 0.1em;
}

.btn-compact {
    padding: 0.35rem 0.65rem;
    font-size: 0.82rem;
    line-height: 1.3;
}

@media (max-width: 575.98px) {
    .business-contact-item {
        gap: 0.35rem;
        border-radius: 14px;
    }

    .business-contact-item .fw-semibold {
        font-size: 0.9rem;
    }

    .detail-chat-actions {
        flex-wrap: wrap;
        width: 100%;
    }

    .detail-chat-actions .detail-chat-button {
        flex: 1 1 calc(50% - 0.25rem);
        max-width: calc(50% - 0.25rem);
        font-size: 0.8rem;
        padding: 0.4rem 0.55rem;
        min-width: 0;
    }

    .detail-chat-actions .detail-chat-button:only-child {
        flex-basis: 100%;
        max-width: 100%;
    }

    .detail-chat-actions .detail-chat-button[data-catalog-download] {
        flex-basis: 100%;
        max-width: 100%;
    }

    .business-header-top {
        gap: 0.75rem;
    }

    .business-location-actions .btn {
        font-size: 0.7rem;
        padding: 0.5rem;
    }

    .business-location-summary {
        font-size: 0.9rem;
    }

    .business-contact-item .contact-item-value {
        font-size: 0.88rem;
    }

    .contact-item-header {
        margin-bottom: 0;
        gap: 0.4rem !important;
    }
}

.gallery-modal-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 1rem;
}

.gallery-modal-frame .modal-img {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.breadcrumb a {
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: none;
}

@media (max-width: 576px) {
    .breadcrumb {
        font-size: 0.8125rem;
    }

    .breadcrumb .breadcrumb-item {
        font-size: inherit;
    }
}

.feed-loader {
    min-height: 1px;
}

.feed-loader .spinner-border {
    display: block;
    margin: 0 auto;
}

.map-container {
    min-height: 320px;
    border-radius: 16px;
    overflow: hidden;
}

.map-container.map-container--google {
    display: block;
}

.map-container .map-embed-frame {
    width: 100%;
    min-height: 320px;
    border: 0;
    display: block;
}

.leaflet-control-attribution {
    font-size: 0.65rem;
    line-height: 1.2;
}

.map-container-fullscreen {
    position: fixed !important;
    inset: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 1080;
    border-radius: 0;
    max-width: none !important;
}

.map-fullscreen-placeholder {
    width: 100%;
}

body.map-fullscreen-active {
    overflow: hidden;
}

.map-fullscreen-control .map-fullscreen-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background-color: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.map-fullscreen-control .map-fullscreen-button:hover {
    background-color: #f8f9fa;
}

.umkm-map-container {
    position: relative;
    min-height: 460px;
}

@media (max-width: 575.98px) {
    .umkm-map-container {
        min-height: 360px;
    }

    .map-region-controls {
        width: 100%;
        display: grid !important;
        grid-template-columns: 0.424fr 0.576fr;
        column-gap: 0;
        gap: 0 !important;
    }

    .map-region-controls .btn {
        font-size: 0.8rem;
        width: 100%;
        margin: 0 !important;
    }

    .map-region-controls [data-map-summary-expand],
    .map-region-controls [data-map-summary-collapse] {
        flex: 0 0 auto;
        max-width: 100%;
    }

    .map-region-summary__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .map-region-summary__counts {
        width: 100%;
        justify-content: flex-start !important;
        gap: 0.75rem;
    }

    .map-region-summary__counts .badge {
        background-color: transparent;
        color: #1e293b;
        font-weight: 500;
        font-size: 0.85rem;
    }

    .map-region-kelurahan {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .map-region-kelurahan__heading {
        width: 100%;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.2rem;
    }

    .map-region-kelurahan__total,
    .map-region-kelurahan__breakdown {
        font-size: 0.85rem;
    }

    .map-region-kelurahan__breakdown {
        text-align: left !important;
        width: 100%;
    }
}

@media (min-width: 992px) {
    .umkm-map-container {
        min-height: 520px;
    }
}

.umkm-map-error {
    background-color: #f8fafc;
}

.umkm-map-error .umkm-map-empty {
    box-shadow: none;
}

.umkm-map-empty {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.92);
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    max-width: 260px;
    box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.12);
    pointer-events: none;
    z-index: 500;
}

.umkm-map-container.umkm-map-loading::after {
    content: 'Memuat data...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.92);
    padding: 0.85rem 1.4rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #0f172a;
    box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.18);
    z-index: 600;
    pointer-events: none;
}

.map-region-card {
    border-radius: 16px;
}

.map-region-summary {
    margin-top: 1.5rem;
}

.map-region-summary details {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.85rem 1.1rem;
    background-color: #f8fafc;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.map-region-summary details+details {
    margin-top: 0.85rem;
}

.map-region-summary details[open] {
    background-color: #ffffff;
    box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.08);
}

.map-region-summary summary {
    list-style: none;
    cursor: pointer;
}

.map-region-summary summary::-webkit-details-marker {
    display: none;
}

.map-region-summary summary:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 4px;
}

.map-region-summary__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.map-region-summary__info small {
    font-size: 0.85rem;
    font-weight: 500;
    display: block;
}

.map-region-summary__title {
    font-weight: 600;
    color: #0f172a;
}

.map-region-summary__counts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.map-region-controls {
    gap: 0.5rem !important;
}

.map-region-summary__body {
    margin-top: 0.9rem;
}

.map-region-kelurahan {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-top: 1px solid #e2e8f0;
}

.map-region-kelurahan:first-child {
    border-top: none;
    padding-top: 0;
}

.map-region-kelurahan__heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.map-region-kelurahan__name {
    font-weight: 500;
    color: #1e293b;
}

.map-region-kelurahan__total {
    white-space: nowrap;
}

.map-region-kelurahan__breakdown {
    text-align: right;
}

.umkm-map-container.umkm-map-loading {
    pointer-events: none;
}

.umkm-map-icon {
    filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.25));
    transition: transform 0.15s ease;
}

.umkm-map-icon.leaflet-interactive:hover {
    transform: translateY(-2px);
}

.umkm-marker-tooltip {
    background-color: rgba(15, 23, 42, 0.92);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.7rem;
    font-weight: 600;
    box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.18);
}

.umkm-marker-tooltip.leaflet-tooltip-top::before {
    border-top-color: rgba(15, 23, 42, 0.92);
}

.umkm-map-popup .leaflet-popup-content-wrapper {
    border-radius: 16px;
    box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.18);
}

.umkm-map-popup .leaflet-popup-content {
    margin: 0;
    padding: 1.2rem 1.2rem 1rem;
}

.umkm-map-popup__content p {
    margin-bottom: 0.5rem;
}

.umkm-map-popup__content p:last-child {
    margin-bottom: 0;
}

.umkm-map-popup__media {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    object-fit: cover;
    max-height: 160px;
}

.umkm-map-popup__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.umkm-map-popup__parent {
    margin-bottom: 0.5rem;
}

.umkm-map-popup__address i,
.umkm-map-popup__location i {
    font-size: 0.95rem;
}

.umkm-map-popup__button {
    color: #ffffff !important;
}

@media (max-width: 575.98px) {
    :where(.container, .container-sm, .container-md, .container-lg, .container-xl, .container-xxl) {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .hero>.container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .hero {
        padding: 3rem 0;
    }

    .feed-section {
        padding: 0;
    }

    .card-catalog {
        border-radius: 18px;
    }

    .card-catalog-body {
        padding: 0.75rem 0.9rem 0.6rem;
    }

    .card-catalog-body h5 {
        font-size: 0.92rem;
    }

    .card-catalog-body p {
        font-size: 0.78rem;
    }

    .badge-truncate {
        max-width: 19ch;
    }

    .card-catalog-footer {
        padding: 0.45rem 0.9rem 0.6rem;
        font-size: 0.72rem;
    }

    .card-business {
        margin-bottom: 1.5rem;
        border-radius: 18px;
    }

    .favorite-toggle {
        width: 38px;
        height: 38px;
        padding: 0.3rem;
    }

    footer.bg-dark {
        padding-top: 1.25rem !important;
        padding-bottom: calc(1.25rem + env(safe-area-inset-bottom)) !important;
        margin-bottom: calc(2.75rem + env(safe-area-inset-bottom));
    }

    footer.bg-dark .container {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
}

.legal-card {
    border-radius: 1.5rem;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
    background: #ffffff;
}

.legal-card__header {
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    padding-bottom: 1rem;
    margin-bottom: 1.75rem;
}

.legal-card__title {
    font-size: 1.75rem;
    line-height: 1.3;
    color: #111827;
}

.legal-card__meta {
    color: #6b7280;
}

.legal-content {
    color: #4b5563;
    font-size: 1.02rem;
    line-height: 1.8;
}

.legal-content>*:first-child {
    margin-top: 0;
}

.legal-content>*+* {
    margin-top: 0.75rem;
}

.legal-content p {
    margin-bottom: 0;
}

.legal-content h2,
.legal-content h3,
.legal-content h4 {
    color: #111827;
    font-weight: 600;
    margin-top: 2.25rem;
    margin-bottom: 1rem;
}

.legal-content h2 {
    font-size: 1.5rem;
}

.legal-content h3 {
    font-size: 1.25rem;
}

.legal-content h4 {
    font-size: 1.15rem;
}

.legal-content ul,
.legal-content ol {
    padding-left: 1.35rem;
    margin-bottom: 0;
}

.legal-content ol {
    list-style: decimal inside;
}

.legal-content li+li {
    margin-top: 0.65rem;
}

.legal-content strong {
    color: #1f2937;
}

.legal-content .legal-bullet-group {
    display: grid;
    row-gap: 0;
    margin-top: 0.65rem;
}

.legal-content .legal-bullet {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.75rem;
    align-items: flex-start;
}

.legal-content .legal-bullet__marker {
    color: #1f2937;
    font-weight: 600;
    line-height: 1.4;
    padding-top: 0.125rem;
}

.legal-content .legal-bullet__content {
    min-width: 0;
}

.legal-content .legal-bullet__content strong {
    color: inherit;
}

.legal-content p+.legal-bullet-group {
    margin-top: 0.65rem;
}

.legal-content .legal-bullet-group+.legal-bullet-group {
    margin-top: 0.65rem;
}

.legal-content a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.legal-content blockquote {
    border-left: 4px solid rgba(13, 110, 253, 0.35);
    padding-left: 1rem;
    color: #1f2937;
    background: rgba(13, 110, 253, 0.04);
    border-radius: 0.75rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin-top: 1.5rem;
}

.legal-content table th,
.legal-content table td {
    border: 1px solid rgba(148, 163, 184, 0.6);
    padding: 0.75rem 1rem;
    text-align: left;
}

.legal-content table th {
    background: rgba(148, 163, 184, 0.12);
    color: #1f2937;
    font-weight: 600;
}

.legal-content hr {
    margin: 2rem 0;
    border-top: 1px solid rgba(148, 163, 184, 0.4);
}

.legal-language-switch__label {
    font-size: 0.95rem;
}

@media (max-width: 575.98px) {
    .legal-content {
        font-size: 0.95rem !important;
        line-height: 1.7;
    }

    .legal-content h2 {
        font-size: 1.3rem;
    }

    .legal-content h3 {
        font-size: 1.15rem;
    }

    .legal-content h4 {
        font-size: 1.05rem;
    }

    .legal-content .legal-bullet {
        column-gap: 0.5rem;
    }

    .legal-content .legal-bullet__marker {
        padding-top: 0.1rem;
    }
}

.legal-language-switch__links .btn {
    border-radius: 999px;
    padding: 0.45rem 1.1rem;
    font-weight: 500;
}

@media (min-width: 992px) {
    .legal-content {
        font-size: 1.08rem;
    }

    .legal-card__title {
        font-size: 1.95rem;
    }
}

@media (max-width: 767.98px) {
    .legal-card__title {
        font-size: 1.55rem;
    }

    .legal-card__header {
        margin-bottom: 1.5rem;
        padding-bottom: 0.85rem;
    }

    .legal-content {
        font-size: 0.98rem;
        line-height: 1.75;
    }

}

@media (max-width: 575.98px) {
    .inherit-toggle-label {
        font-size: 0.8em;
    }

    .operational-mode-toggle .btn {
        font-size: 0.75rem;
        padding: 0.35rem 0.6rem;
    }

    .branch-products-header {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .branch-products-header [data-branch-products-button] {
        margin-left: 0 !important;
        align-self: flex-start;
    }

    .legal-language-switch__links .btn {
        padding: 0.4rem 0.9rem;
    }
}

@media (min-width: 992px) {
    .card-title-clamp {
        font-size: 0.85rem;
    }
}
