:root {
    --app-primary: #03AED2;
    --app-primary-dark: #0290ae;
    --app-accent: #b88917;
    --app-cream: #e8f9fd;
    --app-surface: #ffffff;
    --app-bg: #f5f7fb;
    --app-text: #0d2d36;
    --app-muted: #5a8a96;
    --app-border: rgba(3, 174, 210, 0.14);
    --app-shadow: 0 24px 48px rgba(3, 174, 210, 0.08);
    --app-radius: 22px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    background: radial-gradient(circle at top left, rgba(3, 174, 210, 0.10), transparent 28%), var(--app-bg);
    color: var(--app-text);
}

h1,
h2,
h3,
h4,
h5,
.fw-display {
    font-family: "Manrope", sans-serif;
}

.shadow-soft {
    box-shadow: var(--app-shadow);
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: 300px;
    background: linear-gradient(180deg, #026d84 0%, #0290ae 100%);
    color: #fff;
    padding: 1.5rem;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1030;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 1.5rem;
}

.sidebar-brand__logo,
.login-logo,
.topbar-avatar {
    width: 48px;
    height: 48px;
    border-radius: 100%;
    object-fit: cover;
}

.sidebar-brand h1 {
    font-size: 1rem;
    margin: 0;
    color: #fff;
}

.sidebar-brand small {
    color: rgba(255, 255, 255, 0.7);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.sidebar-link,
.sidebar-link--button,
.sidebar-child {
    border: 0;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.9rem 1rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    transition: all 0.2s ease;
    background: transparent;
    width: 100%;
}

.sidebar-link span,
.sidebar-link--button span {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-link:hover,
.sidebar-link.active,
.sidebar-link--button:hover,
.sidebar-group.is-current .sidebar-link--button,
.sidebar-group.is-expanded .sidebar-link--button,
.sidebar-child:hover,
.sidebar-child.active {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.sidebar-children {
    padding-left: 1.2rem;
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    display: none;
    transition: max-height 0.25s ease, opacity 0.2s ease, margin-top 0.2s ease;
}

.sidebar-group.is-expanded .sidebar-children {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: 960px;
    opacity: 1;
    margin-top: 0.35rem;
}

.sidebar-chevron {
    transition: transform 0.2s ease;
}

.sidebar-group.is-expanded .sidebar-chevron {
    transform: rotate(180deg);
}

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin-left: 300px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 2rem 1rem;
    align-items: center;
}

.topbar-hamburger {
    display: none;
}

.topbar-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.notification-dot {
    position: absolute;
    top: -6px;
    right: -4px;
    width: 22px;
    height: 22px;
    background: var(--app-accent);
    color: #fff;
    border-radius: 999px;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notification-menu {
    min-width: 320px;
}

.app-content {
    padding: 0 2rem 2rem;
}

.app-footer {
    margin-top: auto;
    padding: 1rem 2rem 2rem;
    color: var(--app-muted);
}

.card {
    border-radius: var(--app-radius);
    border: 1px solid var(--app-border);
}

.dashboard-card {
    border: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f0fbfd 100%);
}

.dashboard-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.stat-label {
    color: var(--app-muted);
    font-size: 0.95rem;
}

.stat-value {
    font-size: 1.55rem;
    font-weight: 800;
}

.section-card {
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--app-border);
    box-shadow: var(--app-shadow);
}

.login-page {
    min-height: 100vh;
    margin: 0;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
}

.login-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.login-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, rgba(2, 112, 136, 0.45) 0%, rgba(1, 60, 75, 0.85) 100%);
}

.login-hero__content {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 580px;
    width: 100%;
    transform: translateY(-5vh);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    margin-bottom: 1rem;
}

.login-hero h1 {
    font-size: clamp(2.3rem, 4vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    width: min(100%, 520px);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 32px;
    padding: 2.25rem;
    border: 1px solid rgba(3, 174, 210, 0.12);
}

.login-logo {
    width: 82px;
    height: 82px;
    border-radius: 24px;
}

.input-group-modern .input-group-text,
.input-group-modern .form-control,
.input-group-modern .btn {
    border-radius: 16px;
}

.input-group-modern .input-group-text {
    background: #f7f8fa;
    border-color: #e7ebef;
}

.input-group-modern .form-control {
    border-color: #e7ebef;
    padding: 0.85rem 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--app-primary) 0%, #0290ae 100%);
    border-color: var(--app-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #0290ae 0%, #026d84 100%);
    border-color: #0290ae;
}

.btn-outline-secondary.password-toggle {
    border-color: #e7ebef;
}

.table.dataTable {
    --dt-row-selected: 3, 174, 210;
}

.table thead th {
    white-space: nowrap;
}

.empty-state {
    border: 1px dashed rgba(3, 174, 210, 0.25);
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    color: var(--app-muted);
}

.proof-thumb {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
}

.invoice-box {
    background: #fff;
    border-radius: 28px;
    box-shadow: var(--app-shadow);
    padding: 2rem;
    border: 1px solid var(--app-border);
}

.setting-file-preview {
    margin-top: 0.75rem;
    padding: 0.85rem;
    border-radius: 18px;
    border: 1px solid rgba(3, 174, 210, 0.14);
    background: #fbfcfd;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.setting-file-preview.empty {
    display: block;
}

.setting-file-preview__image {
    width: 92px;
    height: 92px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(3, 174, 210, 0.12);
}

.setting-file-preview__meta {
    min-width: 0;
}

.setting-file-preview__favicon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(3, 174, 210, 0.12);
    background: #fff;
}

.document-signature-wrap {
    min-height: 88px;
    display: flex;
    align-items: flex-end;
}

.document-signature {
    max-width: 220px;
    max-height: 96px;
    object-fit: contain;
}

.document-signature-placeholder {
    width: 220px;
    height: 72px;
    border-bottom: 1px dashed rgba(3, 174, 210, 0.35);
}

@media (max-width: 1199.98px) {
    .app-sidebar {
        width: 270px;
    }

    .app-main {
        margin-left: 270px;
    }
}

/* Mobile sidebar overlay backdrop */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1029;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.sidebar-backdrop.is-visible {
    display: block;
    opacity: 1;
}

@media (max-width: 991.98px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-hero {
        display: none;
    }

    .app-sidebar {
        width: 280px;
        transform: translateX(-100%);
    }

    .app-sidebar.is-open {
        transform: translateX(0);
    }

    .app-main {
        margin-left: 0;
        width: 100%;
    }

    .topbar-hamburger {
        display: inline-flex !important;
    }
}

@media (max-width: 767.98px) {

    .topbar,
    .app-content,
    .app-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .topbar {
        flex-wrap: wrap;
        align-items: center;
    }

    .login-panel {
        padding: 1rem;
    }

    .login-card {
        padding: 1.5rem;
        border-radius: 24px;
    }
}

/* ===== Print Styles ===== */
@media print {
    /* Hide print/action buttons */
    .no-print,
    .d-flex.justify-content-end.mb-3 {
        display: none !important;
    }

    /* Remove card styling */
    .invoice-box {
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
    }

    /* Remove background and body padding */
    body {
        background: #fff !important;
        padding: 0 !important;
        font-size: 11pt !important;
    }

    .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Smaller headings for print */
    h2 {
        font-size: 14pt !important;
    }

    h3 {
        font-size: 12pt !important;
    }

    /* Table styling for print */
    .table {
        font-size: 9pt !important;
    }

    .table th,
    .table td {
        padding: 4px 8px !important;
    }

    /* Signature section */
    .document-signature-wrap {
        min-height: 60px;
    }

    .document-signature {
        max-height: 70px;
    }

    /* Ensure content fits on page */
    .section-card {
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
    }
}


/* ==========================================================================
   CHATBOT STYLES — AZBot Layanan Informasi Pembayaran
   ========================================================================== */

/* ─── Halaman publik chatbot ─── */
.chatbot-page {
    background: linear-gradient(145deg, #e8f9fd 0%, #f5f7fb 60%, #fff 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ─── Navbar ─── */
.chatbot-navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--app-border);
    padding: 0.85rem 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.chatbot-navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.chatbot-navbar__brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.chatbot-navbar__logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--app-border);
}

.chatbot-navbar__title {
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--app-text);
    line-height: 1.2;
}

.chatbot-navbar__sub {
    font-size: 0.78rem;
    color: var(--app-muted);
}

/* ─── Main layout ─── */
.chatbot-main {
    flex: 1;
    padding: 2rem 1rem;
}

/* ─── Info card (kiri) ─── */
.chatbot-info-card {
    background: #fff;
    border-radius: 24px;
    border: 1px solid var(--app-border);
    box-shadow: var(--app-shadow);
    overflow: hidden;
    position: sticky;
    top: 90px;
}

.chatbot-info-card__header {
    background: linear-gradient(135deg, #026d84 0%, #03AED2 100%);
    padding: 2rem 1.5rem;
    text-align: center;
    color: #fff;
}

.chatbot-info-card__header h3 {
    font-family: "Manrope", sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0.75rem 0 0.25rem;
}

.chatbot-info-card__header p {
    opacity: 0.85;
    font-size: 0.88rem;
    margin: 0;
}

.chatbot-feature-list {
    list-style: none;
    padding: 1.5rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.chatbot-feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--app-text);
}

.chatbot-feature-list li i {
    color: var(--app-primary);
    font-size: 1.05rem;
    flex-shrink: 0;
}

.chatbot-info-divider {
    height: 1px;
    background: var(--app-border);
    margin: 0 1.5rem;
}

.chatbot-bank-info {
    padding: 1.25rem 1.5rem 1.5rem;
}

.chatbot-bank-info__label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--app-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.chatbot-bank-info__bank {
    font-weight: 700;
    color: var(--app-text);
    margin: 0;
}

.chatbot-bank-info__account {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--app-primary);
    letter-spacing: 0.05em;
    margin: 0.1rem 0;
}

.chatbot-bank-info__owner {
    font-size: 0.85rem;
    color: var(--app-muted);
    margin: 0;
}

/* ─── Chat window ─── */
.chatbot-window {
    background: #fff;
    border-radius: 24px;
    border: 1px solid var(--app-border);
    box-shadow: var(--app-shadow);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 180px);
    min-height: 520px;
    max-height: 780px;
    overflow: hidden;
}

.chatbot-window__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: linear-gradient(90deg, #026d84, #03AED2);
    color: #fff;
    border-radius: 24px 24px 0 0;
    flex-shrink: 0;
}

.chatbot-window__header-title {
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    font-size: 1rem;
}

.chatbot-window__header-status {
    font-size: 0.78rem;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.chatbot-status-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.3);
    animation: chatbot-pulse 2s infinite;
}

@keyframes chatbot-pulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.3); }
    50%       { box-shadow: 0 0 0 5px rgba(74, 222, 128, 0.1); }
}

/* ─── Messages area ─── */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    scroll-behavior: smooth;
    background: #f8fcfd;
}

.chatbot-messages::-webkit-scrollbar { width: 5px; }
.chatbot-messages::-webkit-scrollbar-track { background: transparent; }
.chatbot-messages::-webkit-scrollbar-thumb { background: rgba(3, 174, 210, 0.25); border-radius: 4px; }

/* ─── Bubble row ─── */
.chatbot-bubble-row {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    animation: chatbot-fadein 0.25s ease;
}

@keyframes chatbot-fadein {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.chatbot-bubble-row--user {
    flex-direction: row-reverse;
}

/* ─── Bubble ─── */
.chatbot-bubble {
    max-width: 72%;
    padding: 0.7rem 1rem;
    border-radius: 18px;
    font-size: 0.88rem;
    line-height: 1.55;
    word-break: break-word;
}

.chatbot-bubble--bot {
    background: #fff;
    border: 1px solid var(--app-border);
    border-bottom-left-radius: 4px;
    color: var(--app-text);
    box-shadow: 0 2px 8px rgba(3, 174, 210, 0.06);
}

.chatbot-bubble--user {
    background: linear-gradient(135deg, var(--app-primary), #0290ae);
    color: #fff;
    border-bottom-right-radius: 4px;
}

/* ─── Typing indicator ─── */
.chatbot-bubble--typing {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0.75rem 1rem;
    min-width: 60px;
}

.chatbot-bubble--typing span {
    width: 7px;
    height: 7px;
    background: var(--app-primary);
    border-radius: 50%;
    display: inline-block;
    animation: chatbot-bounce 1.2s ease infinite;
}

.chatbot-bubble--typing span:nth-child(2) { animation-delay: 0.2s; }
.chatbot-bubble--typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes chatbot-bounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
    40%           { transform: translateY(-6px); opacity: 1; }
}

/* ─── Bot avatar ─── */
.chatbot-bot-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #026d84, #03AED2);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.chatbot-bot-avatar--sm {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
}

.chatbot-bot-avatar--lg {
    width: 64px;
    height: 64px;
    font-size: 1.6rem;
    margin: 0 auto 0.75rem;
}

/* ─── Input area ─── */
.chatbot-input-area {
    border-top: 1px solid var(--app-border);
    padding: 1rem 1.25rem;
    background: #fff;
    flex-shrink: 0;
}

.chatbot-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.chatbot-input {
    flex: 1;
    border: 1.5px solid var(--app-border);
    border-radius: 14px;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #f8fcfd;
}

.chatbot-input:focus {
    border-color: var(--app-primary);
    box-shadow: 0 0 0 3px rgba(3, 174, 210, 0.12);
    background: #fff;
}

.chatbot-send-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--app-primary), #0290ae);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.chatbot-send-btn:hover  { transform: scale(1.06); }
.chatbot-send-btn:active { transform: scale(0.96); }
.chatbot-send-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ─── Quick replies ─── */
.chatbot-quick-replies {
    display: none;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.chatbot-quick-btn {
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1.5px solid var(--app-border);
    background: var(--app-cream);
    color: var(--app-text);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
    white-space: nowrap;
}

.chatbot-quick-btn:hover {
    background: var(--app-primary);
    border-color: var(--app-primary);
    color: #fff;
    transform: translateY(-1px);
}

/* ─── Btn ghost for header ─── */
.btn-ghost-light {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    border-radius: 10px;
    font-size: 0.8rem;
    padding: 0.3rem 0.75rem;
}

.btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* ─── Footer chatbot ─── */
.chatbot-footer {
    text-align: center;
    padding: 1.25rem 1rem;
    color: var(--app-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--app-border);
    background: rgba(255, 255, 255, 0.6);
}

.chatbot-footer p { margin: 0; }

/* ==========================================================================
   CHATBOT FAB (Floating Action Button) — di halaman login
   ========================================================================== */

.chatbot-fab-wrap {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.chatbot-fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #026d84, #03AED2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(3, 174, 210, 0.45);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: chatbot-fab-appear 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    animation-delay: 0.8s;
}

@keyframes chatbot-fab-appear {
    from { transform: scale(0) rotate(-30deg); opacity: 0; }
    to   { transform: scale(1) rotate(0deg); opacity: 1; }
}

.chatbot-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(3, 174, 210, 0.55);
    color: #fff;
}

.chatbot-fab__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: #f97316;
    color: #fff;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    animation: chatbot-badge-pop 1.8s ease infinite;
}

@keyframes chatbot-badge-pop {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.2); }
}

/* Tooltip popup di atas FAB */
.chatbot-fab-tooltip {
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--app-border);
    box-shadow: 0 12px 36px rgba(3, 174, 210, 0.18);
    padding: 1rem 1.1rem;
    width: 240px;
    position: relative;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px) scale(0.97);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.chatbot-fab-tooltip.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* Panah ke bawah */
.chatbot-fab-tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 24px;
    width: 16px;
    height: 8px;
    background: #fff;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    filter: drop-shadow(0 2px 2px rgba(3, 174, 210, 0.08));
}

.chatbot-fab-tooltip__close {
    position: absolute;
    top: 0.5rem;
    right: 0.6rem;
    background: none;
    border: none;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--app-muted);
    cursor: pointer;
    padding: 0 0.25rem;
}

.chatbot-fab-tooltip__close:hover { color: var(--app-text); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 767.98px) {
    .chatbot-window {
        height: calc(100svh - 160px);
        max-height: none;
        border-radius: 18px;
    }

    .chatbot-window__header {
        border-radius: 18px 18px 0 0;
    }

    .chatbot-bubble { max-width: 88%; }

    .chatbot-main { padding: 1rem 0.75rem; }

    .chatbot-fab-wrap {
        bottom: 1.25rem;
        right: 1.25rem;
    }

    .chatbot-fab-tooltip {
        width: 210px;
    }
}


/* ==========================================================================
   HOME / LANDING PAGE STYLES
   ========================================================================== */

.home-page {
    background: var(--app-bg);
    font-family: "Plus Jakarta Sans", sans-serif;
}

/* ─── Navbar ─── */
.home-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    padding: 1rem 1.25rem;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.home-navbar--scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 24px rgba(3, 174, 210, 0.1);
    padding: 0.65rem 1.25rem;
}

.home-navbar--scrolled .home-navbar__name {
    color: var(--app-text);
}

.home-navbar--scrolled .btn-outline-light {
    --bs-btn-color: var(--app-primary);
    --bs-btn-border-color: var(--app-primary);
}

.home-navbar--scrolled .btn-light {
    background: var(--app-primary);
    border-color: var(--app-primary);
    color: #fff;
}

.home-navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.home-navbar__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.home-navbar__logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.home-navbar--scrolled .home-navbar__logo {
    border-color: var(--app-border);
}

.home-navbar__name {
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    transition: color 0.3s;
}

.home-navbar__actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.home-nav-btn {
    border-radius: 10px !important;
}

/* ─── Hero ─── */
.home-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    padding-top: 80px;
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.home-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg,
        rgba(2, 112, 136, 0.55) 0%,
        rgba(1, 50, 65, 0.88) 100%);
}

.home-hero__content {
    position: relative;
    z-index: 1;
    padding: 4rem 1rem 5rem;
}

.min-vh-hero {
    min-height: 70vh;
}

.home-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1rem;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    backdrop-filter: blur(4px);
}

.home-hero__title {
    font-family: "Manrope", sans-serif;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin: 1rem 0;
}

.home-hero__sub {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.home-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}

.home-btn-cta {
    background: #fff !important;
    color: var(--app-primary) !important;
    border-color: #fff !important;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.home-btn-cta:hover {
    background: var(--app-cream) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.home-hero__wave {
    position: relative;
    z-index: 1;
    line-height: 0;
    margin-top: -2px;
}

.home-hero__wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* ─── Stats strip ─── */
.home-stats {
    background: var(--app-bg);
    padding: 2rem 1rem;
}

.home-stats__grid {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--app-border);
    box-shadow: var(--app-shadow);
    overflow: hidden;
}

.home-stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    flex: 1;
    min-width: 200px;
}

.home-stat-item__icon {
    font-size: 1.75rem;
    color: var(--app-primary);
    flex-shrink: 0;
}

.home-stat-item__value {
    font-family: "Manrope", sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: var(--app-text);
}

.home-stat-item__label {
    font-size: 0.8rem;
    color: var(--app-muted);
    line-height: 1.3;
}

.home-stat-divider {
    width: 1px;
    height: 48px;
    background: var(--app-border);
    flex-shrink: 0;
}

/* ─── Section commons ─── */
.home-section {
    background: var(--app-bg);
}

.home-section-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: var(--app-cream);
    color: var(--app-primary);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}

.home-section-badge--alt {
    background: rgba(3, 174, 210, 0.1);
}

.home-section-title {
    font-family: "Manrope", sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--app-text);
    line-height: 1.25;
}

.home-section-sub {
    color: var(--app-muted);
    max-width: 580px;
    margin: 0.75rem auto 0;
    font-size: 0.97rem;
    line-height: 1.7;
}

/* ─── Feature cards ─── */
.home-feature-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--app-border);
    padding: 1.75rem;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(3, 174, 210, 0.12);
}

.home-feature-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.home-feature-card h4 {
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--app-text);
}

.home-feature-card p {
    font-size: 0.88rem;
    color: var(--app-muted);
    line-height: 1.65;
    margin: 0;
}

.bg-primary-soft  { background: rgba(3, 174, 210, 0.12); color: var(--app-primary); }
.bg-warning-soft  { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.bg-success-soft  { background: rgba(16, 185, 129, 0.12); color: #059669; }
.bg-info-soft     { background: rgba(6, 182, 212, 0.12); color: #0891b2; }
.bg-purple-soft   { background: rgba(124, 58, 237, 0.1); color: #7c3aed; }
.bg-danger-soft   { background: rgba(239, 68, 68, 0.1); color: #dc2626; }

/* ─── Untuk orangtua section ─── */
.home-parents-section {
    background: linear-gradient(135deg, #f0fbfd 0%, #e8f9fd 100%);
}

.home-parents-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.home-parents-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.93rem;
    color: var(--app-text);
}

.home-parents-list li i {
    font-size: 1rem;
    flex-shrink: 0;
}

/* ─── Chat preview mock ─── */
.home-chat-preview {
    background: #fff;
    border-radius: 24px;
    border: 1px solid var(--app-border);
    box-shadow: 0 20px 60px rgba(3, 174, 210, 0.14);
    overflow: hidden;
    max-width: 420px;
    margin: 0 auto;
}

.home-chat-preview__header {
    background: linear-gradient(90deg, #026d84, #03AED2);
    color: #fff;
    padding: 0.9rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
}

.home-chat-preview__dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
}

.home-chat-preview__body {
    padding: 1.25rem;
    background: #f8fcfd;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.home-chat-bubble {
    padding: 0.65rem 0.95rem;
    border-radius: 16px;
    font-size: 0.82rem;
    line-height: 1.55;
    max-width: 88%;
}

.home-chat-bubble--bot {
    background: #fff;
    border: 1px solid var(--app-border);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    color: var(--app-text);
}

.home-chat-bubble--user {
    background: linear-gradient(135deg, var(--app-primary), #0290ae);
    color: #fff;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

/* ─── Contact cards ─── */
.home-contact-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--app-border);
    padding: 1.5rem;
    text-align: center;
    height: 100%;
}

.home-contact-card i {
    font-size: 1.75rem;
    color: var(--app-primary);
    margin-bottom: 0.75rem;
    display: block;
}

.home-contact-card h6 {
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--app-text);
}

.home-contact-card p {
    font-size: 0.87rem;
    color: var(--app-muted);
    margin: 0;
    line-height: 1.6;
}

/* ─── CTA section ─── */
.home-cta-section {
    background: linear-gradient(135deg, #026d84 0%, #03AED2 100%);
    color: #fff;
    padding: 5rem 1rem;
}

.home-cta-section h2 {
    font-family: "Manrope", sans-serif;
    font-weight: 800;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin-bottom: 0.75rem;
}

.home-cta-section .btn-light {
    padding: 0.75rem 2rem;
    border-radius: 14px;
}

/* ─── Footer ─── */
.home-footer {
    background: var(--app-text);
    color: rgba(255, 255, 255, 0.7);
    padding: 2rem 1rem;
}

.home-footer .text-muted { color: rgba(255,255,255,0.5) !important; }

.home-footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    margin-left: 1.25rem;
    transition: color 0.15s;
}

.home-footer-link:hover {
    color: var(--app-cream);
}

/* ─── Responsive ─── */
@media (max-width: 991.98px) {
    .home-hero {
        min-height: auto;
        padding-top: 70px;
    }

    .home-hero__content { padding: 3rem 1rem 4.5rem; }

    .home-stat-divider { display: none; }

    .home-stats__grid { gap: 0; }

    .home-stat-item {
        flex: 0 0 50%;
        border-bottom: 1px solid var(--app-border);
    }

    .home-stat-item:nth-child(odd) { border-right: 1px solid var(--app-border); }
}

@media (max-width: 575.98px) {
    .home-hero__title { font-size: 2rem; }

    .home-hero__cta { flex-direction: column; align-items: flex-start; }

    .home-stat-item { flex: 0 0 100%; border-right: none !important; }

    .home-navbar__name { display: none; }

    .home-chat-preview { max-width: 100%; }
}
