﻿/* ============================================================
   ===== GLOBAL =====
   ============================================================ */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #fafafa;
    color: #222;
    margin: 0;
    padding: 0;
}

/* =====================================================
   TOP HEADER BAR
   ===================================================== */
.top-header-bar {
    background: linear-gradient(90deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #e6e6e6;
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1030;
}

.top-contact-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    list-style: none;
    padding: 0;
}

    .top-contact-list li {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: #cfd4dd;
    }

        .top-contact-list li i {
            color: #f0b429;
            font-size: 0.85rem;
        }

        .top-contact-list li a {
            color: #cfd4dd;
            text-decoration: none;
            transition: color 0.25s ease;
        }

            .top-contact-list li a:hover {
                color: #f0b429;
            }

.top-right-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.top-follow-text {
    color: #cfd4dd;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.top-social-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
}

    .top-social-list li a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
        color: #e6e6e6;
        font-size: 0.8rem;
        text-decoration: none;
        transition: all 0.3s ease;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

        .top-social-list li a:hover {
            background: #f0b429;
            color: #1a1a2e;
            transform: translateY(-2px);
            border-color: #f0b429;
        }

@media (max-width: 991.98px) {
    .top-header-bar {
        padding: 7px 0;
    }

    .top-contact-list {
        justify-content: center;
        gap: 16px;
    }

    .top-right-wrap {
        justify-content: center;
    }

    .top-social-list {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .top-header-bar {
        font-size: 0.78rem;
        padding: 6px 0;
    }

    .top-contact-list {
        gap: 14px;
    }

        .top-contact-list li span {
            font-size: 0.75rem;
        }
}

h1, h2, h3, .brand-text {
    font-family: 'Playfair Display', serif;
}

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.35s ease;
}

/* ===== NAVBAR ===== */
.custom-navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    height: 82px;
    padding: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.35s ease;
}

    .custom-navbar .container {
        height: 82px;
        display: flex;
        align-items: center;
        overflow: hidden;
    }

.site-header.scrolled .custom-navbar {
    height: 82px;
    box-shadow: 0 6px 24px rgba(6, 128, 168, 0.10);
    background: rgba(255, 255, 255, 0.97);
}

    .site-header.scrolled .custom-navbar .container {
        height: 82px;
    }

/* ===== LOGO ===== */
.logo-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0680A8, #5D58A6, #BB3866);
    padding: 3px;
    box-shadow: 0 4px 12px rgba(93, 88, 166, 0.35);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    margin-right: 14px;
    flex-shrink: 0;
    align-self: center;
}

    .logo-wrapper:hover {
        transform: scale(1.06) rotate(-3deg);
        box-shadow: 0 6px 18px rgba(93, 88, 166, 0.5);
    }

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    background: #fff;
    display: block;
}

/* ===== BRAND TEXT ===== */
.brand-text-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.15;
    overflow: hidden;
}

.brand-text {
    display: block;
    white-space: nowrap;
}

.brand-main {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    background: linear-gradient(90deg, #0680A8, #5D58A6, #BB3866);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.brand-sub {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #0680A8, #5D58A6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 3px;
    line-height: 1;
}

/* ===== NAV LINKS ===== */
.custom-link {
    position: relative;
    font-weight: 500;
    font-size: 0.98rem;
    color: #333 !important;
    margin: 0 6px;
    padding: 6px 4px !important;
    transition: color 0.3s ease;
}

    .custom-link::after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: -4px;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, #5D58A6, #BB3866);
        transition: all 0.3s ease;
        transform: translateX(-50%);
        border-radius: 2px;
    }

    .custom-link:hover {
        color: #5D58A6 !important;
    }

        .custom-link:hover::after {
            width: 80%;
        }

/* ===== CTA BUTTON ===== */
.btn-cta {
    background: linear-gradient(135deg, #5D58A6, #BB3866);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 9px 26px;
    border-radius: 50px;
    border: none;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 18px rgba(93, 88, 166, 0.35);
    transition: all 0.3s ease;
}

    .btn-cta:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 26px rgba(187, 56, 102, 0.45);
        color: #fff;
    }

/* ===== TOGGLER ===== */
.custom-toggler {
    border: none;
    padding: 6px 10px;
    background: transparent;
}

    .custom-toggler:focus {
        box-shadow: none;
        outline: none;
    }

.toggler-bar {
    display: block;
    width: 24px;
    height: 2.5px;
    background: #5D58A6;
    margin: 5px 0;
    border-radius: 2px;
    transition: 0.3s;
}

/* ===== MAIN CONTENT ===== */
main {
    padding-top: 20px;
}

/* ===== MOBILE ===== */
@media (max-width: 991.98px) {

    .custom-navbar {
        height: auto !important;
        min-height: 70px;
        overflow: visible !important;
        padding: 0;
    }

        .custom-navbar .container {
            height: auto !important;
            min-height: 70px;
            overflow: visible !important;
            flex-wrap: wrap;
        }

    .site-header.scrolled .custom-navbar {
        height: auto !important;
    }

        .site-header.scrolled .custom-navbar .container {
            height: auto !important;
        }

    .navbar-brand {
        margin-right: 0;
        padding: 8px 0;
    }

    .brand-main {
        font-size: 1rem;
    }

    .brand-sub {
        font-size: 0.6rem;
        letter-spacing: 3px;
    }

    .logo-wrapper {
        width: 60px;
        height: 60px;
        margin-right: 10px;
    }

    .navbar-collapse {
        background: #fff;
        margin-top: 10px;
        margin-bottom: 10px;
        border-radius: 16px;
        padding: 12px 16px;
        box-shadow: 0 10px 30px rgba(6, 128, 168, 0.12);
        width: 100%;
        flex-basis: 100%;
    }

    .custom-link {
        padding: 10px 8px !important;
        border-bottom: 1px solid #f2f2f2;
        display: block;
    }

        .custom-link::after {
            display: none;
        }

    .btn-cta {
        display: inline-block;
        margin-top: 8px;
        width: 100%;
        text-align: center;
    }

    .custom-toggler {
        margin-left: auto;
    }
}

@media (max-width: 400px) {
    .brand-main {
        font-size: 0.92rem;
    }

    .brand-sub {
        font-size: 0.55rem;
        letter-spacing: 2.6px;
    }

    .logo-wrapper {
        width: 60px;
        height: 60px;
        margin-right: 8px;
    }
}

/* ============================================================
   ===== SITE FOOTER =====
   ============================================================ */
.site-footer {
    background: linear-gradient(135deg, #0a1628 0%, #16213e 50%, #1a1042 100%);
    color: #cfd8e3;
    font-family: 'Poppins', sans-serif;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

    .site-footer::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #0680A8, #5D58A6, #BB3866, #5D58A6, #0680A8);
    }

.footer-top {
    padding: 60px 0 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 6px;
    box-shadow: 0 4px 12px rgba(6, 128, 168, 0.45);
}

.footer-brand-name {
    margin: 0;
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
}

.footer-brand-sub {
    display: block;
    color: #0680A8;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    width: 100%;
    margin-left: 67px;
    margin-top: -22px;
}

.footer-about {
    font-size: 14px;
    line-height: 1.7;
    color: #b8c1d1;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

    .footer-social a {
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.06);
        color: #cfd8e3;
        border-radius: 50%;
        text-decoration: none;
        transition: all 0.3s ease;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

        .footer-social a:hover {
            background: #0680A8;
            color: #fff;
            border-color: #0680A8;
            transform: translateY(-4px);
            box-shadow: 0 6px 16px rgba(6, 128, 168, 0.55);
        }

.footer-heading {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 10px;
}

    .footer-heading::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 40px;
        height: 3px;
        background: linear-gradient(90deg, #0680A8, #5D58A6, #BB3866);
        border-radius: 2px;
    }

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 10px;
    }

    .footer-links a {
        color: #b8c1d1;
        text-decoration: none;
        font-size: 14px;
        transition: all 0.25s ease;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

        .footer-links a i {
            color: #0680A8;
            font-size: 11px;
            transition: transform 0.25s ease;
        }

        .footer-links a:hover {
            color: #0680A8;
            padding-left: 4px;
        }

            .footer-links a:hover i {
                transform: translateX(4px);
            }

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-contact li {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 16px;
        font-size: 14px;
        line-height: 1.6;
    }

        .footer-contact li i {
            color: #0680A8;
            font-size: 15px;
            margin-top: 3px;
            flex-shrink: 0;
            width: 18px;
            text-align: center;
        }

    .footer-contact a {
        color: #b8c1d1;
        text-decoration: none;
        transition: color 0.25s ease;
    }

        .footer-contact a:hover {
            color: #0680A8;
        }

.footer-news-text {
    font-size: 13px;
    color: #b8c1d1;
    margin-bottom: 14px;
    line-height: 1.6;
}

.footer-badge {
    margin-top: 16px;
    font-size: 12px;
    color: #0680A8;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(6, 128, 168, 0.12);
    border: 1px solid rgba(6, 128, 168, 0.35);
    border-radius: 30px;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.35);
    padding: 18px 0;
    font-size: 13px;
    color: #a8b2c3;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

    .footer-bottom a {
        color: #cfd8e3;
        text-decoration: none;
        transition: color 0.25s ease;
    }

        .footer-bottom a:hover {
            color: #0680A8;
        }

    .footer-bottom .divider {
        margin: 0 8px;
        color: #556078;
    }

/* ============================================================
   ===== BACK TO TOP =====
   ============================================================ */
.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 92px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0680A8, #5D58A6);
    color: #fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.35s ease;
    box-shadow: 0 6px 18px rgba(6, 128, 168, 0.5);
    z-index: 999;
}

    .back-to-top.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .back-to-top:hover {
        background: linear-gradient(135deg, #5D58A6, #BB3866);
        color: #fff;
        transform: translateY(-4px);
        box-shadow: 0 8px 22px rgba(187, 56, 102, 0.55);
    }

/* ============================================================
   ===== CHATBOT TRIGGER =====
   ============================================================ */
.wa-chatbot-trigger {
    position: fixed;
    right: 22px;
    bottom: 22px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 20px 7px 7px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    box-shadow: 0 8px 24px -8px rgba(6, 128, 168, 0.28), 0 2px 6px rgba(15, 23, 42, 0.06);
    z-index: 1001;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

    .wa-chatbot-trigger:hover {
        transform: translateY(-2px);
        border-color: rgba(6, 128, 168, 0.5);
        box-shadow: 0 14px 32px -10px rgba(93, 88, 166, 0.28), 0 4px 10px rgba(6, 128, 168, 0.18);
    }

.wa-trigger-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.25s ease;
}

    .wa-trigger-icon i {
        font-size: 20px;
        line-height: 1;
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

#waIconClose {
    font-size: 18px;
}

.wa-chatbot-trigger.active .wa-trigger-icon {
    background: #BB3866;
}

.wa-trigger-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    text-align: left;
}

.wa-trigger-label {
    font-size: 13.5px;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: 0.1px;
}

.wa-trigger-sub {
    font-size: 10.5px;
    font-weight: 500;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 1px;
}

    .wa-trigger-sub::before {
        content: '';
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #10B981;
        display: inline-block;
        box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.18);
    }

.wa-chatbot-trigger.active .wa-trigger-sub::before {
    background: #BB3866;
    box-shadow: 0 0 0 2px rgba(187, 56, 102, 0.18);
}

.wa-trigger-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #BB3866;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(187, 56, 102, 0.45);
}

.wa-chatbot-trigger.active .wa-trigger-badge {
    display: none;
}

/* ============================================================
   ===== CHATBOT PANEL =====
   ============================================================ */
.wa-chatbot-panel {
    position: fixed;
    right: 22px;
    bottom: 90px;
    width: 340px;
    height: 520px;
    max-height: calc(100vh - 110px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 24px 60px -20px rgba(6, 128, 168, 0.30), 0 0 0 1px rgba(93, 88, 166, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}

    .wa-chatbot-panel.open {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

.wa-chatbot-header {
    background: linear-gradient(135deg, #5D58A6 0%, #BB3866 100%);
    color: #fff;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.wa-chatbot-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wa-chatbot-avatar {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    padding: 2px;
    flex-shrink: 0;
}

    .wa-chatbot-avatar img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        display: block;
    }

.wa-online-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 11px;
    height: 11px;
    background: #10B981;
    border-radius: 50%;
    border: 2px solid #fff;
}

.wa-chatbot-header-info {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.wa-chatbot-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.2px;
}

.wa-chatbot-status {
    font-size: 10.5px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin: 2px 0 0 0;
}

.wa-chatbot-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.wa-chatbot-reset,
.wa-chatbot-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: none;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background 0.2s ease;
}

    .wa-chatbot-reset:hover,
    .wa-chatbot-close:hover {
        background: rgba(255, 255, 255, 0.32);
    }

.wa-chatbot-body {
    padding: 14px 12px 12px;
    background: #F2F5FA;
    background-image: radial-gradient(circle at 20% 30%, rgba(6, 128, 168, 0.06) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(187, 56, 102, 0.05) 0%, transparent 50%);
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .wa-chatbot-body::-webkit-scrollbar {
        width: 6px;
    }

    .wa-chatbot-body::-webkit-scrollbar-thumb {
        background: rgba(93, 88, 166, 0.25);
        border-radius: 999px;
    }

.wa-message {
    display: flex;
    gap: 8px;
    animation: waMsgIn 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.wa-message-user {
    justify-content: flex-end;
}

@keyframes waMsgIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wa-message-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5D58A6, #BB3866);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(93, 88, 166, 0.35);
    align-self: flex-end;
}

.wa-message-content {
    background: #ffffff;
    border-radius: 4px 10px 10px 10px;
    padding: 8px 12px 4px;
    max-width: 78%;
    position: relative;
    box-shadow: 0 1px 3px rgba(6, 128, 168, 0.10);
    word-wrap: break-word;
}

.wa-message-agent .wa-message-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -6px;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-top-color: #ffffff;
    border-right-color: #ffffff;
}

.wa-message-user .wa-message-content {
    background: linear-gradient(135deg, #0680A8, #5D58A6);
    color: #fff;
    border-radius: 10px 4px 10px 10px;
}

    .wa-message-user .wa-message-content::before {
        content: '';
        position: absolute;
        top: 0;
        right: -6px;
        left: auto;
        width: 0;
        height: 0;
        border: 6px solid transparent;
        border-top-color: #5D58A6;
        border-left-color: #5D58A6;
    }

.wa-message-content p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: #111b21;
    font-weight: 400;
    word-break: break-word;
}

.wa-message-user .wa-message-content p {
    color: #fff;
}

.wa-message-content strong {
    font-weight: 600;
}

.wa-message-time {
    display: block;
    font-size: 9.5px;
    color: #8696a0;
    text-align: right;
    margin-top: 3px;
}

.wa-message-user .wa-message-time {
    color: rgba(255, 255, 255, 0.75);
}

.wa-typing-bubble {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    padding: 10px 14px !important;
    min-height: 30px;
}

.wa-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5D58A6;
    display: inline-block;
    animation: waDotBounce 1.2s infinite ease-in-out;
}

    .wa-dot:nth-child(2) {
        animation-delay: 0.15s;
    }

    .wa-dot:nth-child(3) {
        animation-delay: 0.3s;
    }

@keyframes waDotBounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    30% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

.wa-chatbot-input-area {
    padding: 10px 12px;
    background: #fff;
    border-top: 1px solid rgba(93, 88, 166, 0.10);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.wa-chat-input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1.5px solid rgba(93, 88, 166, 0.18);
    background: #F8FAFC;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #0f172a;
    outline: none;
    transition: all 0.2s ease;
}

    .wa-chat-input:focus {
        border-color: #0680A8;
        background: #fff;
        box-shadow: 0 0 0 3px rgba(6, 128, 168, 0.15);
    }

    .wa-chat-input::placeholder {
        color: #94a3b8;
    }

    .wa-chat-input:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.wa-chat-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0680A8, #5D58A6);
    color: #fff;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px -3px rgba(6, 128, 168, 0.5);
}

    .wa-chat-send:hover:not(:disabled) {
        transform: scale(1.06);
        background: linear-gradient(135deg, #5D58A6, #BB3866);
        box-shadow: 0 8px 18px -4px rgba(187, 56, 102, 0.55);
    }

    .wa-chat-send:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

@media (max-width: 767.98px) {
    .footer-top {
        padding: 40px 0 25px;
    }

    .footer-brand-name {
        font-size: 20px;
    }

    .footer-brand-sub {
        margin-left: 0;
        margin-top: 0;
    }

    .footer-heading {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .wa-chatbot-trigger {
        right: 12px;
        bottom: 12px;
        padding: 6px 14px 6px 6px;
        gap: 8px;
    }

    .wa-trigger-icon {
        width: 32px;
        height: 32px;
    }

        .wa-trigger-icon i {
            font-size: 17px;
        }

    #waIconClose {
        font-size: 15px;
    }

    .wa-trigger-label {
        font-size: 12.5px;
    }

    .wa-trigger-sub {
        font-size: 10px;
    }

    .wa-chatbot-panel {
        right: 10px;
        left: 10px;
        bottom: 78px;
        width: auto;
        height: auto;
        max-height: calc(100vh - 100px);
        border-radius: 14px;
    }

    .back-to-top {
        right: 12px;
        bottom: 82px;
        width: 42px;
        height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wa-chatbot-trigger,
    .wa-chatbot-panel,
    .wa-trigger-icon,
    .wa-message {
        transition: none;
        animation: none;
    }
}

:root {
    --blue: #0680A8;
    --purple: #5D58A6;
    --pink: #BB3866;
    --purple-dark: #4a4585;
    --blue-dark: #056a8b;
    --grad-main: linear-gradient(90deg, #0680A8, #5D58A6, #BB3866);
    --grad-btn: linear-gradient(135deg, #0680A8, #5D58A6);
    --grad-btn-hover: linear-gradient(135deg, #5D58A6, #BB3866);
    --grad-card: linear-gradient(135deg, #0680A8 0%, #5D58A6 50%, #BB3866 100%);
    --grad-card-hover: linear-gradient(135deg, #5D58A6 0%, #BB3866 50%, #0680A8 100%);
    --glow-purple: rgba(93, 88, 166, 0.35);
    --glow-pink: rgba(187, 56, 102, 0.45);
    --glow-blue: rgba(6, 128, 168, 0.35);
    --ink: #1B1B1F;
    --ink-soft: #4A4A55;
    --gray-500: #6B7280;
    --radius: 18px;
    --hairline: rgba(93, 88, 166, 0.22);
    --shadow-lg: 0 24px 60px -20px rgba(6, 128, 168, 0.25);
    --shadow-md: 0 12px 32px -12px rgba(93, 88, 166, 0.18);
    --ease-lux: cubic-bezier(0.2, 0.9, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #f4f6fb 0%, #eef1f9 100%);
    color: var(--ink);
    min-height: 100vh;
    line-height: 1.5;
}

.flash-success {
    max-width: 900px;
    margin: 20px auto;
    padding: 14px 20px;
    background: linear-gradient(135deg, rgba(6,128,168,0.12), rgba(93,88,166,0.12));
    color: var(--purple);
    border-left: 4px solid var(--purple);
    border-radius: 10px;
    font-weight: 600;
}

.page-wrap {
    max-width: 950px;
    margin: 40px auto;
    padding: 0 20px;
}

.header-bar {
    text-align: center;
    margin-bottom: 32px;
}

    .header-bar h1 {
        font-size: 2.4rem;
        background: var(--grad-main);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-bottom: 8px;
        font-weight: 800;
        letter-spacing: -0.5px;
    }

    .header-bar p {
        color: var(--gray-500);
    }

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-form {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 500px;
}

.form-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    border: 1px solid var(--hairline);
    position: relative;
    overflow: hidden;
}

    .form-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 5px;
        background: var(--grad-main);
    }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 640px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .form-card {
        padding: 24px;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 4px;
}

    .form-group label {
        font-size: 0.82rem;
        font-weight: 700;
        color: var(--ink-soft);
        margin-bottom: 6px;
        text-transform: uppercase;
        letter-spacing: 0.4px;
    }

.form-control {
    padding: 12px 14px;
    border: 1.5px solid var(--hairline);
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.25s var(--ease-lux);
    background: #fafbfd;
    color: var(--ink);
    font-family: inherit;
}

    .form-control:focus {
        outline: none;
        border-color: var(--purple);
        background: #fff;
        box-shadow: 0 0 0 4px var(--glow-purple);
    }

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--ink-soft);
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.95rem;
}

    .checkbox-row input {
        accent-color: var(--purple);
        width: 18px;
        height: 18px;
    }

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    margin: 20px 0 16px;
    padding-left: 12px;
    border-left: 4px solid;
    border-image: var(--grad-main) 1;
}

.service-list {
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 1.5px solid var(--hairline);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s var(--ease-lux);
    background: #fafbfd;
}

    .service-item:hover {
        border-color: var(--purple);
        background: #fff;
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    .service-item input[type="checkbox"] {
        width: 20px;
        height: 20px;
        accent-color: var(--purple);
        cursor: pointer;
    }

.svc-name {
    flex: 1;
    font-weight: 500;
}

.svc-price {
    font-weight: 700;
    background: var(--grad-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.price-panel {
    background: linear-gradient(135deg, rgba(6,128,168,0.06), rgba(187,56,102,0.06));
    padding: 22px;
    border-radius: 14px;
    border: 1px solid var(--hairline);
    margin-bottom: 24px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed var(--hairline);
}

    .price-row:last-child {
        border-bottom: none;
    }

    .price-row span {
        font-weight: 600;
        color: var(--ink-soft);
    }

.price-input {
    border: none;
    background: transparent;
    font-weight: 700;
    font-size: 1.05rem;
    text-align: right;
    color: var(--ink);
    width: 180px;
    padding: 4px;
    font-family: inherit;
}

    .price-input.editable {
        background: #fff;
        border: 1.5px solid var(--hairline);
        border-radius: 8px;
        padding: 6px 10px;
    }

        .price-input.editable:focus {
            outline: none;
            border-color: var(--purple);
            box-shadow: 0 0 0 3px var(--glow-purple);
        }

.price-row.balance strong {
    font-size: 1.3rem;
    background: var(--grad-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-wrap {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
    margin-top: 24px;
}

.btn-primary-gradient {
    background: var(--grad-btn);
    color: #fff;
    border: none;
    padding: 13px 30px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-lux);
    box-shadow: 0 8px 24px -8px var(--glow-purple);
    text-decoration: none;
    display: inline-block;
    font-family: inherit;
}

    .btn-primary-gradient:hover {
        background: var(--grad-btn-hover);
        transform: translateY(-2px);
        box-shadow: 0 12px 30px -8px var(--glow-pink);
        color: #fff;
    }

.btn-secondary {
    background: #fff;
    color: var(--purple);
    border: 2px solid var(--purple);
    padding: 11px 26px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s var(--ease-lux);
    display: inline-block;
    font-size: 0.95rem;
}

    .btn-secondary:hover {
        background: var(--purple);
        color: #fff;
        transform: translateY(-2px);
    }

.btn-danger-gradient {
    background: linear-gradient(135deg, #BB3866, #8a2a4c);
    color: #fff;
    border: none;
    padding: 13px 30px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s var(--ease-lux);
    box-shadow: 0 8px 24px -8px var(--glow-pink);
    font-family: inherit;
    font-size: 0.95rem;
}

    .btn-danger-gradient:hover {
        background: linear-gradient(135deg, #8a2a4c, #BB3866);
        transform: translateY(-2px);
    }

.table-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--hairline);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

    .data-table thead {
        background: var(--grad-main);
    }

    .data-table th {
        color: #fff;
        padding: 14px;
        text-align: left;
        font-size: 0.82rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 700;
    }

        .data-table th.right,
        .data-table td.right {
            text-align: right;
        }

    .data-table td {
        padding: 14px;
        border-bottom: 1px solid var(--hairline);
        color: var(--ink-soft);
        font-size: 0.93rem;
    }

    .data-table tbody tr:hover {
        background: rgba(93, 88, 166, 0.04);
    }

    .data-table tr:last-child td {
        border-bottom: none;
    }

.empty {
    text-align: center;
    color: var(--gray-500);
    padding: 30px !important;
    font-style: italic;
}

.btn-icon {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    margin-left: 4px;
    transition: all 0.2s var(--ease-lux);
    border: 1.5px solid transparent;
}

    .btn-icon.view {
        color: var(--blue);
        border-color: var(--blue);
    }

        .btn-icon.view:hover {
            background: var(--blue);
            color: #fff;
        }

    .btn-icon.edit {
        color: var(--purple);
        border-color: var(--purple);
    }

        .btn-icon.edit:hover {
            background: var(--purple);
            color: #fff;
        }

    .btn-icon.delete {
        color: var(--pink);
        border-color: var(--pink);
    }

        .btn-icon.delete:hover {
            background: var(--pink);
            color: #fff;
        }

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

    .detail-grid > div {
        padding: 14px;
        background: linear-gradient(135deg, rgba(6,128,168,0.05), rgba(187,56,102,0.05));
        border-radius: 10px;
        border: 1px solid var(--hairline);
    }

    .detail-grid span {
        display: block;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.6px;
        color: var(--gray-500);
        margin-bottom: 6px;
        font-weight: 700;
    }

    .detail-grid strong {
        color: var(--ink);
        font-size: 1rem;
    }

.tag-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

    .tag-list li {
        padding: 8px 16px;
        background: var(--grad-btn);
        color: #fff;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 600;
    }

        .tag-list li.empty {
            background: #eee;
            color: #888;
        }

.warning-box {
    background: linear-gradient(135deg, rgba(187,56,102,0.12), rgba(187,56,102,0.06));
    border-left: 4px solid var(--pink);
    color: var(--pink);
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-weight: 600;
}

.invoice-page {
    max-width: 850px;
    margin: 30px auto;
    padding: 0 20px;
}

.invoice-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
    flex-wrap: wrap;
}

.invoice-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 48px;
    border: 1px solid var(--hairline);
    position: relative;
    overflow: hidden;
}

    .invoice-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 6px;
        background: var(--grad-main);
    }

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--hairline);
    margin-bottom: 28px;
}

.brand {
    font-size: 2rem;
    background: var(--grad-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    letter-spacing: 1px;
}

.tag {
    color: var(--gray-500);
    margin-top: 4px;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.inv-meta p {
    margin: 6px 0;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.invoice-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

@media (max-width: 640px) {
    .invoice-info-grid {
        grid-template-columns: 1fr;
    }

    .invoice-card {
        padding: 28px;
    }
}

.invoice-info-grid h3 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--purple);
    margin-bottom: 12px;
}

.invoice-info-grid p {
    margin: 5px 0;
    color: var(--ink-soft);
    font-size: 0.93rem;
}

.badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
}

    .badge.paid {
        background: var(--grad-btn);
        color: #fff;
    }

    .badge.due {
        background: var(--grad-card);
        color: #fff;
    }

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

    .invoice-table thead {
        background: var(--grad-main);
    }

    .invoice-table th {
        color: #fff;
        padding: 14px;
        text-align: left;
        font-size: 0.82rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 700;
    }

        .invoice-table th.right,
        .invoice-table td.right {
            text-align: right;
        }

    .invoice-table td {
        padding: 14px;
        border-bottom: 1px solid var(--hairline);
        color: var(--ink-soft);
    }

    .invoice-table tbody tr:hover {
        background: rgba(93, 88, 166, 0.04);
    }

.totals {
    margin-left: auto;
    max-width: 340px;
}

.tot-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    color: var(--ink-soft);
    font-weight: 500;
}

    .tot-row.grand {
        font-size: 1.35rem;
        font-weight: 800;
        color: var(--ink);
        border-top: 2px solid var(--hairline);
        padding-top: 16px;
        margin-top: 8px;
    }

        .tot-row.grand span:last-child {
            background: var(--grad-main);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

.invoice-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 2px dashed var(--hairline);
    color: var(--gray-500);
    font-size: 0.9rem;
}

    .invoice-footer p {
        margin: 4px 0;
    }

.text-danger {
    color: #BB3866;
    font-size: 0.85rem;
    margin-top: 4px;
    display: block;
    font-weight: 600;
}

/* ============================================================ */
/*  MANUAL SERVICES ROWS                                        */
/* ============================================================ */
.manual-services {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.msvc-row {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 10px;
    align-items: center;
    background: #fafbfd;
    padding: 12px;
    border-radius: 12px;
    border: 1.5px solid var(--hairline);
    transition: all 0.25s var(--ease-lux);
}

    .msvc-row:hover {
        border-color: var(--purple);
        background: #fff;
        box-shadow: var(--shadow-md);
    }

.btn-remove {
    background: linear-gradient(135deg, #BB3866, #8a2a4c);
    color: #fff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.25s var(--ease-lux);
}

    .btn-remove:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px -8px var(--glow-pink);
    }

.btn-add-service {
    background: #fff;
    color: var(--purple);
    border: 2px dashed var(--purple);
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.25s var(--ease-lux);
    width: 100%;
}

    .btn-add-service:hover {
        background: var(--purple);
        color: #fff;
        border-style: solid;
    }

@media (max-width: 640px) {
    .msvc-row {
        grid-template-columns: 1fr;
    }

    .btn-remove {
        width: 100%;
    }
}

/* ============================================================ */
/*  COMPANY HEADER (Invoice)                                    */
/* ============================================================ */
.company-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--hairline);
    margin-bottom: 28px;
}

.company-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.company-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 50%;
    background: linear-gradient(#fff, #fff) padding-box, var(--grad-main) border-box;
    border: 3px solid transparent;
    padding: 4px;
    flex-shrink: 0;
}

.company-info {
    line-height: 1.5;
}

.company-name {
    font-size: 1.5rem;
    background: var(--grad-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.company-line {
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin: 2px 0;
}

.company-right {
    text-align: right;
    min-width: 220px;
}

    .company-right p {
        margin: 5px 0;
        font-size: 0.9rem;
        color: var(--ink-soft);
    }

.inv-tag {
    font-size: 1.6rem;
    font-weight: 900;
    background: var(--grad-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 3px;
    margin-bottom: 8px !important;
}

@media (max-width: 640px) {
    .company-header {
        flex-direction: column;
    }

    .company-right {
        text-align: left;
    }

    .company-left {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================================ */
/*  PRINT — Header, Navbar, Footer SAB HIDE                     */
/* ============================================================ */
@media print {

    @page {
        size: A4;
        margin: 10mm;
    }

    html, body {
        background: #fff !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* ---------- HIDE SITE CHROME ---------- */
    header,
    .site-header,
    .top-header-bar,
    .custom-navbar,
    .navbar,
    .navbar-collapse,
    .navbar-toggler,
    footer,
    .site-footer,
    .footer-top,
    .footer-bottom,
    .footer-brand,
    .footer-social,
    .footer-links,
    .footer-contact,
    .footer-heading,
    .footer-badge,
    .back-to-top,
    .wa-chatbot-trigger,
    .wa-chatbot-panel,
    .no-print,
    .invoice-actions,
    .flash-success {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    main {
        padding: 0 !important;
        margin: 0 !important;
    }

    /* ---------- INVOICE LAYOUT ---------- */
    .invoice-page {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .invoice-card {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        border-radius: 0 !important;
        background: #fff !important;
    }

        .invoice-card::before {
            display: none !important;
        }

    /* ---------- COLOR PRESERVE ---------- */
    .invoice-table thead,
    .company-logo,
    .company-name,
    .inv-tag,
    .badge,
    .tot-row.grand span:last-child,
    .tag-list li {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* ---------- PAGE BREAKS ---------- */
    .company-header,
    .invoice-footer,
    .totals {
        page-break-inside: avoid;
    }

    .invoice-table tr {
        page-break-inside: avoid;
    }
}
