@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800;900&display=swap');

:root { 
    --bg-body: #f4f6f9; 
    --bg-card: #ffffff; 
    --text-main: #1e293b; 
    --text-muted: #64748b; 
    --cyan: #00d2ff; 
    --cyan-hover: #00b8e6;
    --orange: #f39c12; 
    --orange-hover: #e67e22;
    --neon-red: #ff4757; 
    --border: #e2e8f0;
    --radius-pill: 9999px;
    --shadow-soft: 0 4px 15px rgba(0,0,0,0.05);
    --shadow-hover: 0 8px 25px rgba(0, 210, 255, 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Montserrat', sans-serif; }
body { background-color: var(--bg-body); color: var(--text-main); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }

/* --- 1. HEADER --- */
.main-header { background: #fff; border-bottom: 1px solid var(--border); padding: 12px 0; position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow-soft); }
.header-container { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; gap: 10px; flex-wrap: nowrap;}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none;}
.logo-img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border);}
.site-name { font-weight: 900; font-size: 20px; color: #0f766e; text-transform: uppercase; white-space: nowrap;}
.shop-badge { background: var(--neon-red); color: #fff; font-size: 10px; padding: 3px 8px; border-radius: 6px; font-weight: 900; }

.main-nav { display: flex; align-items: center; gap: 15px; flex-wrap: nowrap;}
.main-nav a { color: var(--text-main); font-weight: 800; font-size: 14px; padding-bottom: 5px; border-bottom: 2px solid transparent; transition: 0.2s; white-space: nowrap;}
.main-nav a:hover, .main-nav a.active { color: var(--cyan); border-bottom-color: var(--cyan); }

.header-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0;}
.header-icon { width: 18px; height: 18px; object-fit: contain; margin-right: 5px; }
.btn-phone { background: #fff; color: var(--text-main); border: 1px solid var(--border); padding: 8px 15px; border-radius: var(--radius-pill); font-weight: 800; font-size: 13px; display: flex; align-items: center; gap: 5px; white-space: nowrap;}
.btn-zalo { background: var(--cyan); color: #fff; padding: 8px 15px; border-radius: var(--radius-pill); font-weight: 800; font-size: 13px; display: flex; align-items: center; gap: 5px; white-space: nowrap;}
.btn-fb { background: var(--orange); color: #000; padding: 8px 15px; border-radius: var(--radius-pill); font-weight: 800; font-size: 13px; display: flex; align-items: center; gap: 5px; white-space: nowrap;}
.theme-btn { display: none !important; } /* Ẩn nút theme nếu không dùng */

/* --- 2. MAIN CONTENT & BANNER --- */
.main-content { max-width: 1400px; margin: 20px auto; padding: 0 20px; }
.banner-section img { width: 100%; border-radius: 20px; display: block; box-shadow: var(--shadow-soft); margin-bottom: 20px;}

/* --- 3. FEATURES BAR (Thanh tiện ích) --- */
.features-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 25px; }
.feature { 
    display: flex; align-items: center; gap: 12px; 
    background: #fff; padding: 15px 20px; 
    border-radius: 16px; border: 1px solid var(--border); 
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.feature i { font-size: 24px; color: var(--cyan); }
.feat-text b { font-size: 13px; color: var(--text-main); font-weight: 800; display: block; margin-bottom: 2px;}
.feat-text span { font-size: 11px; color: var(--text-muted); font-weight: 600; }

/* --- 4. FILTER SECTION (Thanh tìm kiếm) --- */
.filter-section { display: flex; gap: 10px; margin-bottom: 15px; align-items: center; flex-wrap: nowrap; }
.search-box { position: relative; flex: 1; }
.search-box i { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.search-box input { width: 100%; height: 48px; padding: 0 20px 0 45px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: #fff; color: var(--text-main); font-size: 14px; font-weight: 600; outline: none; transition: 0.3s;}
.search-box input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.15); }
.filter-select { height: 48px; padding: 0 20px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: #fff; color: var(--text-main); font-size: 14px; font-weight: 600; outline: none; cursor: pointer; white-space: nowrap;}
.btn-search { height: 48px; border-radius: var(--radius-pill); padding: 0 25px; font-weight: 800; font-size: 14px; white-space: nowrap; display: flex; align-items: center; gap: 8px; cursor: pointer; transition: 0.3s;}
.btn-advance { height: 48px; border-radius: var(--radius-pill); padding: 0 20px; font-weight: 800; font-size: 14px; white-space: nowrap; display: flex; align-items: center; gap: 8px; cursor: pointer; transition: 0.3s;}

.btn-cyan { background: var(--cyan); color: #fff; border: none; }
.btn-cyan:hover { background: var(--cyan-hover); transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.btn-orange { background: var(--orange); color: #000; border: none; }
.btn-orange:hover { background: var(--orange-hover); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(243, 156, 18, 0.3); }

/* --- 5. ADVANCED FILTER POPUP (Sửa lỗi tràn) --- */
.adv-filter-wrapper { position: relative; }
.adv-popup { 
    position: absolute; top: calc(100% + 10px); right: 0; width: 450px; 
    background: #fff; border: 1px solid var(--border); border-radius: 16px; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.15); 
    display: none; z-index: 1050; padding: 20px; 
}
.adv-popup.show { display: block; animation: fadeInDown 0.2s ease-out; }
.adv-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 15px;}
.adv-title h3 { font-size: 15px; color: var(--cyan); display: flex; align-items: center; gap: 5px; margin: 0 0 5px 0; text-transform: uppercase; font-weight: 800;}
.adv-title span { font-size: 12px; color: var(--text-muted); font-weight: 600;}
.adv-close { background: #f1f5f9; border: none; color: #64748b; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: 0.2s;}
.adv-close:hover { background: #e2e8f0; color: var(--neon-red); }

.adv-section-title { font-size: 12px; font-weight: 800; color: var(--text-muted); margin-bottom: 12px; text-transform: uppercase;}
.adv-inputs { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.input-group { flex: 1; }
.input-group label { display: block; font-size: 11px; color: var(--orange); font-weight: 800; margin-bottom: 5px; }
.input-control { display: flex; border: 1px solid var(--border); border-radius: var(--radius-pill); overflow: hidden; background: #f8fafc; height: 40px;}
.input-control input { width: 100%; border: none; background: transparent; text-align: center; color: var(--text-main); font-weight: 700; outline: none; font-size: 14px;}
.input-control button { background: var(--cyan); color: #fff; border: none; width: 35px; cursor: pointer; font-size: 16px; font-weight: bold; transition: 0.2s;}
.input-control button:hover { background: var(--cyan-hover); }
.input-arrow { color: var(--text-muted); margin-top: 15px; }

.adv-tags { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.adv-tag { padding: 8px; border-radius: 8px; border: 1px solid var(--border); background: #fff; font-size: 12px; cursor: pointer; color: var(--text-main); font-weight: 700; transition: 0.2s; text-align: center;}
.adv-tag:hover, .adv-tag.active { background: rgba(0, 210, 255, 0.1); border-color: var(--cyan); color: var(--cyan); }

.adv-footer { display: flex; gap: 10px; border-top: 1px solid var(--border); padding-top: 15px; }
.adv-footer button { flex: 1; padding: 10px; border-radius: var(--radius-pill); font-weight: 800; font-size: 13px; cursor: pointer; border: none; display: flex; align-items: center; justify-content: center; gap: 5px; transition: 0.2s;}
.btn-apply { background: var(--cyan); color: #fff; }
.btn-apply:hover { background: var(--cyan-hover); }
.btn-clear { background: #f1f5f9; border: 1px solid var(--border) !important; color: var(--text-main); }
.btn-clear:hover { background: #e2e8f0; }

/* --- 6. TAGS LỌC NHANH --- */
.filter-tags { display: flex; gap: 10px; margin-bottom: 25px; flex-wrap: wrap; }
.tag-pill { padding: 8px 18px; border-radius: var(--radius-pill); background: #fff; border: 1px solid var(--border); color: var(--text-main); font-size: 13px; font-weight: 700; transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;}
.tag-pill:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }
.tag-pill.active { background: var(--cyan); color: #fff; border-color: var(--cyan); }
.tag-pill.hot { border-color: var(--orange); color: var(--orange); }
.tag-pill.hot:hover, .tag-pill.hot.active { background: var(--orange); color: #fff; }
.tag-pill .badge { background: rgba(0,0,0,0.1); padding: 2px 8px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 800;}
.tag-pill.active .badge { background: rgba(255,255,255,0.3); }

/* --- 7. LIST HEADER & SORT --- */
.list-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; }
.list-header-left { display: flex; flex-direction: column; gap: 5px; }
.kho-acc-label { font-size: 12px; color: var(--orange); text-transform: uppercase; font-weight: 800; display: flex; align-items: center; gap: 5px;}
.danh-sach-acc { font-size: 22px; font-weight: 900; color: var(--text-main); display: flex; align-items: center; gap: 10px; margin: 0;}
.danh-sach-acc .count { background: var(--cyan); color: #fff; padding: 2px 10px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 900;}

.sort-wrapper { position: relative; }
.sort-btn { background: #fff; border: 1px solid var(--border); color: var(--text-main); padding: 10px 18px; border-radius: var(--radius-pill); font-size: 14px; display: flex; align-items: center; gap: 15px; cursor: pointer; min-width: 180px; justify-content: space-between; font-weight: 700; transition: 0.2s;}
.sort-btn:hover { border-color: var(--cyan); }
.sort-btn i { transition: transform 0.3s; color: var(--text-muted); }
.sort-btn.active i.fa-chevron-down { transform: rotate(180deg); }
.sort-menu { position: absolute; top: calc(100% + 10px); right: 0; width: 100%; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); display: none; z-index: 1000; padding: 5px; }
.sort-menu.show { display: block; }
.sort-item { padding: 10px 15px; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--text-main); font-weight: 600; transition: 0.2s; }
.sort-item:hover { background: #f8fafc; }
.sort-item.active { background: rgba(0, 210, 255, 0.1); color: var(--cyan); }

/* --- 8. ACC GRID & CARD --- */
.acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 25px; }
.acc-card { background: var(--bg-card); border-radius: 20px; border: 1px solid var(--border); overflow: hidden; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: var(--shadow-soft); display: flex; flex-direction: column;}
.acc-card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(0,0,0,0.08); border-color: var(--cyan); }
.acc-img { position: relative; height: 200px; overflow: hidden; }
.acc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.acc-card:hover .acc-img img { transform: scale(1.05); }
.status-badge { position: absolute; top: 15px; right: 15px; background: #2ed573; color: #fff; padding: 4px 12px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 800; }
.hot-badge { position: absolute; top: 15px; left: 15px; background: var(--neon-red); color: #fff; padding: 4px 12px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 800; display: flex; align-items: center; gap: 4px;}
.acc-info { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.acc-info h3 { font-size: 18px; color: var(--text-main); margin-bottom: 5px; font-weight: 800;}
.acc-title { color: var(--text-muted); font-size: 13px; font-weight: 600; margin-bottom: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-price-row { display: flex; justify-content: space-between; margin-bottom: 20px; border-bottom: 1px dashed var(--border); padding-bottom: 15px; }
.acc-price-row .label { display: block; font-size: 12px; color: var(--text-muted); font-weight: 600; margin-bottom: 5px; }
.acc-price-row .price { font-size: 22px; font-weight: 900; color: var(--neon-red); }
.acc-price-row .price-rent { font-size: 18px; font-weight: 800; color: var(--orange); }
.acc-actions { display: flex; gap: 10px; margin-top: auto; }
.acc-actions a, .acc-actions button { flex: 1; font-size: 13px; padding: 10px 10px; border-radius: var(--radius-pill); font-weight: 800; display: flex; justify-content: center; align-items: center; gap: 5px; cursor: pointer; border: none; transition: 0.3s;}
.btn-installment { background: rgba(0, 210, 255, 0.1); color: var(--cyan); border: 1px solid var(--cyan); }
.btn-installment:hover { background: var(--cyan); color: #fff; transform: translateY(-2px); }
.btn-view { background: rgba(243, 156, 18, 0.1); color: var(--orange); border: 1px solid var(--orange); }
.btn-view:hover { background: var(--orange); color: #000; transform: translateY(-2px); }

/* --- 9. FLOATING ICONS --- */
.floating-contact { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 999; }
.float-img { width: 130px; border-radius: 8px; transition: transform 0.2s; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2)); }
.float-img:hover { transform: scale(1.05); }

/* --- 10. POPUP THÔNG BÁO --- */
.popup-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(3px); display: none; justify-content: center; align-items: center; z-index: 9999; }
.popup-content { background: #fff; color: #333; padding: 35px; border-radius: 20px; text-align: center; max-width: 450px; position: relative; width: 90%; box-shadow: 0 10px 30px rgba(0,0,0,0.3);}
.close-popup { position: absolute; top: 15px; right: 20px; font-size: 24px; cursor: pointer; color: #999; background: transparent; border: none; font-weight: bold;}
.close-popup:hover { color: var(--neon-red); }
.popup-brand { color: var(--cyan); font-size: 12px; font-weight: 800; letter-spacing: 1px; margin-bottom: 10px; }
.popup-content h2 { font-size: 26px; color: #1e293b; margin-bottom: 15px; font-weight: 900; }
.popup-badge { background: #fef3c7; color: #d97706; padding: 8px 20px; border-radius: var(--radius-pill); display: inline-block; font-weight: 800; font-size: 14px; margin-bottom: 15px; border: 1px solid #fde68a;}
.popup-desc { color: #64748b; font-size: 13px; margin-bottom: 25px; font-weight: 500;}
.popup-buttons { display: flex; gap: 10px; margin-bottom: 15px; }
.btn-popup-zalo, .btn-popup-fb { flex: 1; padding: 12px; border-radius: var(--radius-pill); color: #fff; font-weight: 800; font-size: 14px; display: flex; justify-content: center; align-items: center; gap: 8px;}
.btn-popup-zalo { background: #0068ff; }
.btn-popup-fb { background: #1877f2; }
.btn-popup-close { width: 100%; padding: 12px; border-radius: var(--radius-pill); background: #f1f5f9; border: 1px solid #e2e8f0; color: #475569; font-weight: 800; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 8px; }

@keyframes fadeInDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
/* =========================================
   FIX FORM TRẢ GÓP (MODAL POPUP)
   ========================================= */
/* Xóa viền đen khi click vào tag */
.tag-pill:focus, .tag-pill:active, .sort-btn:focus, .btn-installment:focus, .btn-view:focus {
    outline: none !important;
    box-shadow: none !important;
}

.installment-modal { 
    position: fixed; 
    top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.6); 
    backdrop-filter: blur(5px);
    display: none; /* Ẩn mặc định */
    justify-content: center; 
    align-items: center; 
    z-index: 99999; 
}
.installment-box { 
    background: #fff; 
    border-radius: 16px; 
    width: 100%; 
    max-width: 900px; 
    padding: 35px; 
    position: relative; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    max-height: 90vh;
    overflow-y: auto;
    color: #333;
}
.close-installment { 
    position: absolute; 
    top: 20px; right: 20px; 
    font-size: 24px; 
    cursor: pointer; 
    color: #94a3b8; 
    background: #f1f5f9; 
    width: 36px; height: 36px; 
    border-radius: 50%; 
    display: flex; justify-content: center; align-items: center;
    transition: 0.2s;
    border: none;
}
.close-installment:hover { background: #e2e8f0; color: #ef4444; }

.installment-header { margin-bottom: 25px; padding-right: 40px;}
.installment-header h3 { color: #00d2ff; font-size: 14px; margin-bottom: 5px; text-transform: uppercase; font-weight: 800;}
.installment-header h2 { font-size: 28px; margin: 0; color: #1e293b; font-weight: 900;}

.form-row-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 20px;}
.form-group { display: flex; flex-direction: column; }
.form-group label { font-weight: 700; font-size: 13px; color: #1e293b; margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea { 
    width: 100%; padding: 12px 15px; 
    border: 1px solid #cbd5e1; border-radius: 8px; 
    font-size: 14px; color: #333; outline: none; transition: 0.2s; background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #00d2ff; box-shadow: 0 0 0 3px rgba(0,210,255,0.1);}
.btn-calc { 
    background: #00d2ff; color: #fff; border: none; 
    padding: 14px 25px; border-radius: 50px; 
    font-weight: 800; font-size: 15px; cursor: pointer; 
    margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; 
    transition: 0.3s; width: 100%;
}
.btn-calc:hover { background: #00b8e6; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,210,255,0.3);}

.installment-result { margin-top: 30px; border-top: 1px solid #e2e8f0; padding-top: 25px; }
.result-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 25px; }
.res-item { background: #f8fafc; padding: 15px; border-radius: 8px; border: 1px solid #e2e8f0; }
.res-item span { display: block; font-size: 13px; color: #64748b; margin-bottom: 5px; }
.res-item strong { font-size: 18px; color: #00d2ff; font-weight: 800;}

#scheduleTable { border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; margin-bottom: 25px; }
.schedule-row { display: flex; justify-content: space-between; padding: 12px 15px; border-bottom: 1px solid #e2e8f0; font-size: 14px; background: #fff;}
.schedule-row:nth-child(even) { background: #f8fafc; }
.schedule-row:last-child { border-bottom: none; }
.schedule-row span { color: #334155; }
.btn-send-zalo { background: #0068ff; color: #fff; border: none; padding: 14px; border-radius: 50px; font-weight: 800; cursor: pointer; width: 100%; display: flex; justify-content: center; align-items: center; gap: 8px; transition: 0.2s;}
.btn-send-zalo:hover { background: #0055d4; }

/* =========================================
   SITE FOOTER (Chân trang)
   ========================================= */
.site-footer {
    background: #fff;
    border-top: 1px solid var(--border);
    margin-top: 40px;
    padding: 30px 20px 20px 20px;
}
.footer-features {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 30px;
    margin-bottom: 20px;
}
.ft-item {
    display: flex;
    align-items: center;
    gap: 15px;
}
.ft-item i {
    font-size: 32px;
}
.ft-text b {
    display: block;
    font-size: 13px;
    color: var(--text-main);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.ft-text span {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.4;
    display: block;
}
.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}
.ft-logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--border);
    object-fit: cover;
}
.ft-brand-text h3 {
    font-size: 16px;
    color: #0f766e;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ft-brand-text p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 992px) {
    .footer-features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .footer-features { grid-template-columns: 1fr; }
}
/* =========================================
   ĐỒNG BỘ ICON LOGO (HEADER & FOOTER)
   ========================================= */
.logo-img, .ft-logo { 
    width: 48px; 
    height: 48px; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 2px solid var(--border);
}
.ft-logo {
    width: 45px;
    height: 45px;
}

/* Khối thay thế khi không có ảnh hoặc ảnh lỗi */
.logo-placeholder, .ft-logo-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #94a3b8;
}
.ft-logo-placeholder {
    width: 45px;
    height: 45px;
    font-size: 20px;
}
/* Fix select box trong form Sort để giống nút bấm */
select.sort-btn {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
    cursor: pointer;
}
/* =========================================
   NÚT CUỘN LÊN ĐẦU TRANG (SCROLL TO TOP)
   ========================================= */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px; /* Nằm bên trái để không đè lên icon Zalo/FB */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #00d2ff; /* Màu xanh cyan */
    color: #000; /* Mũi tên màu đen */
    border: none;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.4); /* Đổ bóng màu xanh */
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: #00b8e6;
    transform: translateY(-5px); /* Nảy lên khi hover */
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.6);
}
/* =========================================
   TRANG CHI TIẾT ACC (ACC-DETAIL)
   ========================================= */
.breadcrumb { margin-bottom: 20px; }
.breadcrumb a { color: var(--text-muted); font-size: 14px; display: inline-flex; align-items: center; gap: 8px; transition: 0.2s; font-weight: 600; text-decoration: none;}
.breadcrumb a:hover { color: var(--cyan); }



.detail-image { 
    flex: 1; 
    max-width: 50%; 
}
.detail-image img { 
    width: 100%; 
    height: auto;
    border-radius: 16px; 
    border: 1px solid var(--border); 
    display: block;
    object-fit: cover;
}

.detail-info { 
    flex: 1; 
    display: flex;
    flex-direction: column;
}
.detail-info .subtitle { 
    font-size: 13px; 
    color: var(--cyan); 
    font-weight: 800; 
    letter-spacing: 1px; 
    margin-bottom: 5px; 
    text-transform: uppercase;
}
.detail-info h1 { 
    font-size: 32px; 
    margin-bottom: 20px; 
    color: var(--text-main); 
    font-weight: 900;
}

.price-box { 
    background: rgba(0,0,0,0.02); 
    padding: 20px; 
    border-radius: 12px; 
    border: 1px dashed var(--border); 
    margin-bottom: 20px; 
}
.price-box .label { 
    display: block; 
    font-size: 13px; 
    color: var(--text-muted); 
    margin-bottom: 5px; 
    font-weight: 600;
}
.price-box .price { 
    display: block; 
    font-size: 36px; 
    font-weight: 900; 
    color: var(--neon-red); 
    margin-bottom: 5px; 
}
.price-box .note { 
    font-size: 12px; 
    color: var(--text-muted); 
    font-style: italic;
}

.info-list { list-style: none; margin-bottom: 25px; padding: 0;}
.info-list li { 
    display: flex; 
    justify-content: space-between; 
    padding: 12px 0; 
    border-bottom: 1px solid var(--border); 
    font-size: 14px; 
}
.info-list li span { color: var(--text-muted); font-weight: 600;}
.info-list li strong { color: var(--text-main); font-weight: 700;}

/* Lưới nút bấm */
.detail-actions { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 12px; 
    margin-bottom: 15px; 
}
.detail-actions a, .detail-actions button { 
    padding: 14px; 
    border-radius: var(--radius-pill); 
    font-weight: 800; 
    font-size: 14px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    border: none; 
    cursor: pointer; 
    transition: 0.3s; 
    text-decoration: none;
}
.btn-detail-zalo { background: #0068ff; color: #fff; }
.btn-detail-zalo:hover { background: #0055d4; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,104,255,0.3);}

.btn-detail-fb { background: #1877f2; color: #fff; }
.btn-detail-fb:hover { background: #145dbf; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(24,119,242,0.3);}

.btn-detail-installment { background: var(--orange); color: #000; }
.btn-detail-installment:hover { background: var(--orange-hover); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(243,156,18,0.3);}

.btn-detail-call { background: #2ed573; color: #fff; }
.btn-detail-call:hover { background: #26b863; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(46,213,115,0.3);}

.detail-note { 
    font-size: 12px; 
    color: var(--text-muted); 
    font-style: italic; 
    text-align: center;
}

/* Responsive cho điện thoại */
@media (max-width: 768px) {
    
    .detail-image { max-width: 100%; }
    .detail-actions { grid-template-columns: 1fr; }
}
/* Fix ảnh trang chi tiết hiển thị full 100% không bị cắt */
.detail-image { 
    flex: 1; 
    max-width: 50%; 
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.detail-image img { 
    width: 100%; 
    height: auto !important; /* Quan trọng: Ép chiều cao tự động theo ảnh gốc */
    object-fit: contain !important; /* Không cắt ảnh */
    border-radius: 16px; 
    border: 1px solid var(--border); 
    display: block;
    max-height: 600px; /* Giới hạn chiều cao tối đa để không bị quá dài */
}

/* Khối Inline Trả Góp */

.inline-installment-box .installment-header { margin-bottom: 25px; border-bottom: 1px dashed var(--border); padding-bottom: 15px;}
.inline-installment-box .installment-header h3 { color: var(--cyan); font-size: 14px; font-weight: 800; margin-bottom: 5px; text-transform: uppercase;}
.inline-installment-box .installment-header h2 { font-size: 28px; color: var(--text-main); font-weight: 900; margin: 0;}

/* Form Grid */
.form-row-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 20px; }
.inline-installment-box .form-group label { font-weight: 700; font-size: 13px; color: var(--text-main); margin-bottom: 8px; display: block;}
.inline-installment-box .form-group input, 
.inline-installment-box .form-group select, 
.inline-installment-box .form-group textarea { 
    width: 100%; padding: 12px 15px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; color: var(--text-main); outline: none; background: var(--bg-body);
}
.inline-installment-box .form-group input:focus, 
.inline-installment-box .form-group select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,210,255,0.1);}

/* Nút Dự Toán */
.inline-installment-box .btn-calc {
    background: var(--cyan); color: #fff; border: none; padding: 14px 25px; border-radius: var(--radius-pill);
    font-weight: 800; font-size: 15px; cursor: pointer; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: 0.3s;
}
.inline-installment-box .btn-calc:hover { background: var(--cyan-hover); transform: translateY(-2px); box-shadow: var(--shadow-hover);}

/* Kết quả Inline */
.inline-installment-box .installment-result { margin-top: 30px; border-top: 1px solid var(--border); padding-top: 25px; }
.inline-installment-box .result-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 25px; }
.inline-installment-box .res-item { background: var(--bg-body); padding: 15px; border-radius: 8px; border: 1px solid var(--border); }
.inline-installment-box .res-item span { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 5px; font-weight: 600;}
.inline-installment-box .res-item strong { font-size: 18px; color: var(--cyan); font-weight: 800;}

#inlineScheduleTable { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: 25px; }
.schedule-row { display: flex; justify-content: space-between; padding: 12px 15px; border-bottom: 1px solid var(--border); font-size: 14px; background: var(--bg-card);}
.schedule-row:nth-child(even) { background: var(--bg-body); }
.schedule-row:last-child { border-bottom: none; }
.schedule-row span { color: var(--text-main); }
.inline-installment-box .btn-send-zalo { background: #0068ff; color: #fff; border: none; padding: 14px; border-radius: var(--radius-pill); font-weight: 800; cursor: pointer; width: 100%; display: flex; justify-content: center; align-items: center; gap: 8px; transition: 0.2s;}
.inline-installment-box .btn-send-zalo:hover { background: #0055d4; }
/* Nút Copy nội dung */
.btn-copy { 
    background: #e0f2fe; 
    color: #00b8e6; 
    border: 1px solid #00b8e6; 
    padding: 14px; 
    border-radius: var(--radius-pill); 
    font-weight: 800; 
    cursor: pointer; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 8px; 
    transition: 0.2s;
    font-size: 14px;
}
.btn-copy:hover { 
    background: #00b8e6; 
    color: #fff; 
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,184,230,0.3);
}
/* FIX MODAL TRẢ GÓP */
.installment-modal { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
    display: none; justify-content: center; align-items: center; z-index: 999999; 
}
.installment-box { 
    background: #fff; border-radius: 20px; width: 100%; max-width: 900px; 
    padding: 35px; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.3); 
    max-height: 90vh; overflow-y: auto; color: #333;
}
.close-installment { 
    position: absolute; top: 20px; right: 20px; font-size: 28px; font-weight: bold;
    cursor: pointer; color: #94a3b8; background: #f1f5f9; width: 36px; height: 36px; 
    border-radius: 50%; display: flex; justify-content: center; align-items: center; border: none; transition: 0.2s;
}
.close-installment:hover { background: #e2e8f0; color: #ef4444; transform: rotate(90deg); }

.installment-header { margin-bottom: 25px; padding-right: 40px;}
.installment-header h3 { color: var(--cyan); font-size: 14px; margin-bottom: 5px; text-transform: uppercase; font-weight: 800;}
.installment-header h2 { font-size: 28px; margin: 0; color: #1e293b; font-weight: 900;}

.form-row-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 20px;}
.installment-form .form-group label { font-weight: 700; font-size: 13px; color: #1e293b; margin-bottom: 8px; display: block;}
.installment-form .form-group input, .installment-form .form-group select, .installment-form .form-group textarea { 
    width: 100%; padding: 12px 15px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; color: #333; outline: none; background: #fff;
}
.installment-form .form-group input:focus, .installment-form .form-group select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,210,255,0.1);}
.btn-calc { 
    background: var(--cyan); color: #fff; border: none; padding: 14px 25px; border-radius: var(--radius-pill); 
    font-weight: 800; font-size: 15px; cursor: pointer; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: 0.3s;
}
.btn-calc:hover { background: var(--cyan-hover); transform: translateY(-2px); box-shadow: var(--shadow-hover);}

.installment-result { margin-top: 30px; border-top: 1px solid #e2e8f0; padding-top: 25px; }
.result-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 25px; }
.res-item { background: #f8fafc; padding: 15px; border-radius: 8px; border: 1px solid #e2e8f0; }
.res-item span { display: block; font-size: 13px; color: #64748b; margin-bottom: 5px; font-weight: 600;}
.res-item strong { font-size: 18px; color: var(--cyan); font-weight: 800;}

#scheduleTable { border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; margin-bottom: 25px; }
.schedule-row { display: flex; justify-content: space-between; padding: 12px 15px; border-bottom: 1px solid #e2e8f0; font-size: 14px; background: #fff;}
.schedule-row:nth-child(even) { background: #f8fafc; }
.schedule-row:last-child { border-bottom: none; }
.btn-send-zalo { background: #0068ff; color: #fff; border: none; padding: 14px; border-radius: var(--radius-pill); font-weight: 800; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 8px; transition: 0.2s;}
.btn-send-zalo:hover { background: #0055d4; }
.btn-copy { background: #e0f2fe; color: #00b8e6; border: 1px solid #00b8e6; padding: 14px; border-radius: var(--radius-pill); font-weight: 800; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 8px; transition: 0.2s;}
.btn-copy:hover { background: #00b8e6; color: #fff; }

/* FIX ICON NỔI BỊ CẮT */
.floating-contact { 
    position: fixed; 
    bottom: 20px; 
    right: 20px; 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    z-index: 999; 
    max-width: 140px; /* Giới hạn chiều rộng */
}
.float-img { 
    width: 100%; /* Tự co theo max-width của thẻ cha */
    max-width: 130px;
    height: auto; 
    border-radius: 8px; 
    transition: transform 0.2s; 
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2)); 
}
/* =========================================
   FORM TRẢ GÓP INLINE (TRANG CHI TIẾT)
   ========================================= */

@keyframes slideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

.inline-installment-box .installment-header { margin-bottom: 25px; border-bottom: 1px dashed var(--border); padding-bottom: 15px;}
.inline-installment-box .installment-header h3 { color: var(--cyan); font-size: 14px; font-weight: 800; margin-bottom: 5px; text-transform: uppercase;}
.inline-installment-box .installment-header h2 { font-size: 28px; color: var(--text-main); font-weight: 900; margin: 0;}

.inline-installment-box .form-row-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 20px; }
.inline-installment-box .form-group label { font-weight: 700; font-size: 13px; color: var(--text-main); margin-bottom: 8px; display: block;}
.inline-installment-box .form-group input, 
.inline-installment-box .form-group select, 
.inline-installment-box .form-group textarea { 
    width: 100%; padding: 12px 15px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; color: var(--text-main); outline: none; background: var(--bg-body);
}
.inline-installment-box .form-group input:focus, 
.inline-installment-box .form-group select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,210,255,0.1);}

.inline-installment-box .btn-calc {
    background: var(--cyan); color: #fff; border: none; padding: 14px 25px; border-radius: var(--radius-pill);
    font-weight: 800; font-size: 15px; cursor: pointer; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: 0.3s;
}
.inline-installment-box .btn-calc:hover { background: var(--cyan-hover); transform: translateY(-2px); box-shadow: var(--shadow-hover);}

.inline-installment-box .installment-result { margin-top: 30px; border-top: 1px solid var(--border); padding-top: 25px; }
.inline-installment-box .result-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 25px; }
.inline-installment-box .res-item { background: var(--bg-body); padding: 15px; border-radius: 8px; border: 1px solid var(--border); }
.inline-installment-box .res-item span { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 5px; font-weight: 600;}
.inline-installment-box .res-item strong { font-size: 18px; color: var(--cyan); font-weight: 800;}

#dtScheduleTable { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: 25px; }
/* =========================================
   LÀM ĐẸP FORM TRẢ GÓP (INPUT & SELECT)
   ========================================= */

/* 1. Xóa mũi tên lên xuống (spinner) của input number */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield; /* Cho Firefox */
}

/* 2. Style lại thẻ Select (Thời hạn, Phí) */
.installment-form select,
.inline-installment-box select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: var(--bg-body);
    /* Dùng SVG làm mũi tên màu xanh Cyan */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300d2ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px !important; /* Chừa khoảng trống cho mũi tên */
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main);
}

/* 3. Hiệu ứng khi click vào ô nhập liệu (Focus) */
.installment-form input:focus,
.installment-form select:focus,
.installment-form textarea:focus,
.inline-installment-box input:focus,
.inline-installment-box select:focus,
.inline-installment-box textarea:focus {
    border-color: var(--cyan) !important;
    box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.15) !important;
    outline: none !important;
}

/* 4. Custom lại thanh cuộn (Scrollbar) toàn trang cho nhỏ và đẹp hơn */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 5. Chỉnh lại khoảng cách cho form thêm thoáng */
.installment-form .form-row-4,
.inline-installment-box .form-row-4 {
    gap: 15px;
}
.installment-form .form-group label,
.inline-installment-box .form-group label {
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 12px;
}
.installment-form input, 
.installment-form select,
.installment-form textarea,
.inline-installment-box input,
.inline-installment-box select,
.inline-installment-box textarea {
    border-radius: 10px; /* Bo góc mềm hơn chút */
    border: 1px solid var(--border);
    padding: 12px 15px;
    transition: all 0.2s ease;
}

/* =========================================
   LÀM ĐẸP FORM TRẢ GÓP (INPUT & SELECT)
   ========================================= */

/* 1. Xóa mũi tên lên xuống (spinner) của input number */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield; /* Cho Firefox */
}

/* 2. Style lại thẻ Select (Thời hạn, Phí) */
.installment-form select,
.inline-installment-box select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: var(--bg-body);
    /* Dùng SVG làm mũi tên màu xanh Cyan */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300d2ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px !important; /* Chừa khoảng trống cho mũi tên */
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main);
}

/* 3. Hiệu ứng khi click vào ô nhập liệu (Focus) */
.installment-form input:focus,
.installment-form select:focus,
.installment-form textarea:focus,
.inline-installment-box input:focus,
.inline-installment-box select:focus,
.inline-installment-box textarea:focus {
    border-color: var(--cyan) !important;
    box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.15) !important;
    outline: none !important;
}

/* 4. Custom lại thanh cuộn (Scrollbar) toàn trang cho nhỏ và đẹp hơn */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 5. Chỉnh lại khoảng cách cho form thêm thoáng */
.installment-form .form-row-4,
.inline-installment-box .form-row-4 {
    gap: 15px;
}
.installment-form .form-group label,
.inline-installment-box .form-group label {
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 12px;
}
.installment-form input, 
.installment-form select,
.installment-form textarea,
.inline-installment-box input,
.inline-installment-box select,
.inline-installment-box textarea {
    border-radius: 10px; /* Bo góc mềm hơn chút */
    border: 1px solid var(--border);
    padding: 12px 15px;
    transition: all 0.2s ease;
}

/* =========================================
   GIAO DIỆN MỚI: FORM TRẢ GÓP INLINE
   ========================================= */
.inline-installment-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 0; /* Bỏ padding tổng, chuyển vào từng phần */
    margin-top: 30px;
    margin-bottom: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    overflow: hidden;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

/* Header của Form */
.inline-header {
    background: #f8fafc;
    padding: 20px 30px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.inline-title h3 { color: var(--cyan); font-size: 13px; font-weight: 800; margin: 0 0 5px 0; text-transform: uppercase; letter-spacing: 1px;}
.inline-title h2 { font-size: 26px; color: #1e293b; font-weight: 900; margin: 0;}
.btn-close-inline { background: transparent; border: none; font-size: 20px; color: #94a3b8; cursor: pointer; transition: 0.2s;}
.btn-close-inline:hover { color: #ef4444; transform: rotate(90deg);}

/* Body của Form */
.inline-body { padding: 30px; }

.form-row-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; }
.form-group label { font-weight: 700; font-size: 12px; color: #64748b; margin-bottom: 8px; text-transform: uppercase; display: flex; align-items: center; gap: 6px;}
.form-group label i { color: var(--cyan); font-size: 14px;}

/* Style cho Input/Select */
.inline-installment-box input, 
.inline-installment-box select, 
.inline-installment-box textarea { 
    width: 100%; 
    padding: 14px 16px; 
    border: 1px solid #cbd5e1; 
    border-radius: 12px; 
    font-size: 15px; 
    font-weight: 600;
    color: #1e293b; 
    background: #fff;
    outline: none; 
    transition: all 0.2s ease;
}
.inline-installment-box input:focus, 
.inline-installment-box select:focus, 
.inline-installment-box textarea:focus { 
    border-color: var(--cyan); 
    box-shadow: 0 0 0 4px rgba(0, 210, 255, 0.15); 
}

/* Custom lại thẻ Select */
.inline-installment-box select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300d2ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

/* Các class bổ trợ */
.input-disabled { background: #f1f5f9 !important; color: #64748b !important; cursor: not-allowed; border-color: #e2e8f0 !important; box-shadow: none !important;}
.input-highlight { border-color: var(--cyan) !important; font-size: 16px !important;}
.helper-text { font-size: 11px; color: #64748b; margin-top: 6px; font-weight: 500;}

.inline-action-bar { display: flex; justify-content: flex-end; margin-top: 10px; }
.btn-calc { 
    background: var(--cyan); color: #fff; border: none; padding: 14px 30px; border-radius: 50px; 
    font-weight: 800; font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; 
    transition: all 0.3s ease;
}
.btn-calc:hover { background: var(--cyan-hover); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,210,255,0.3);}

/* Kết quả */
.installment-result { padding: 0 30px 30px 30px; margin-top: 10px; }
.result-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 25px; }
.res-item { background: #f8fafc; padding: 15px 20px; border-radius: 12px; border: 1px solid #e2e8f0; }
.res-item span { display: block; font-size: 12px; color: #64748b; margin-bottom: 8px; font-weight: 600; text-transform: uppercase;}
.res-item strong { font-size: 20px; color: var(--cyan); font-weight: 800;}

#dtScheduleTable { border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; margin-bottom: 25px; }
.schedule-row { display: flex; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid #e2e8f0; font-size: 14px; background: #fff; font-weight: 500;}
.schedule-row:nth-child(even) { background: #f8fafc; }
.schedule-row:last-child { border-bottom: none; }
.schedule-row span { color: #334155; }

/* Xóa mũi tên input number */
input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }
/* =========================================
   FIX TRIỆT ĐỂ GIAO DIỆN FORM TRẢ GÓP INLINE
   ========================================= */

/* 1. Khung chứa toàn bộ form */
.inline-installment-box {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 30px !important;
    margin-top: 30px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
}

/* 2. Tiêu đề */
.inline-installment-box .installment-header {
    margin-bottom: 25px !important;
    border-bottom: 1px dashed #e2e8f0 !important;
    padding-bottom: 20px !important;
}
.inline-installment-box .installment-header h3 {
    color: #00b8e6 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    margin-bottom: 5px !important;
}
.inline-installment-box .installment-header h2 {
    font-size: 28px !important;
    color: #1e293b !important;
    font-weight: 900 !important;
    margin: 0 !important;
}

/* 3. Grid 4 cột */
.form-row-4 {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    margin-bottom: 20px !important;
}

/* 4. Label */
.inline-installment-box .form-group label {
    font-weight: 700 !important;
    font-size: 12px !important;
    color: #64748b !important;
    margin-bottom: 8px !important;
    text-transform: uppercase !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}
.inline-installment-box .form-group label i {
    color: #00b8e6 !important;
}

/* 5. Các ô nhập liệu (Input, Select, Textarea) */
.inline-installment-box input, 
.inline-installment-box select, 
.inline-installment-box textarea {
    width: 100% !important;
    height: 48px !important;
    padding: 0 16px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    background-color: #ffffff !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}
.inline-installment-box textarea {
    height: auto !important;
    padding: 16px !important;
}

/* Focus trạng thái */
.inline-installment-box input:focus, 
.inline-installment-box select:focus, 
.inline-installment-box textarea:focus {
    border-color: #00b8e6 !important;
    box-shadow: 0 0 0 3px rgba(0, 184, 230, 0.15) !important;
}

/* 6. Chỉnh riêng ô "Giá trị acc" và "Tiền trả trước" */
.inline-installment-box input[disabled] {
    background-color: #f1f5f9 !important;
    color: #64748b !important;
    cursor: not-allowed !important;
    border-color: #e2e8f0 !important;
}
.inline-installment-box #dtInsPrepay {
    border-color: #00b8e6 !important; /* Viền xanh để nổi bật */
    color: #00b8e6 !important;
    font-size: 18px !important;
}

/* 7. Xóa giao diện mặc định của thẻ Select (Dropdown) */
.inline-installment-box select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300b8e6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    background-size: 18px !important;
    padding-right: 40px !important;
    cursor: pointer !important;
}

/* 8. Nút Dự toán ngay */
.inline-installment-box .btn-calc {
    background: #00b8e6 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 14px 30px !important;
    border-radius: 50px !important; /* Bo tròn hoàn toàn */
    font-weight: 800 !important;
    font-size: 15px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: 0.2s !important;
    margin-top: 10px !important;
    width: auto !important; /* Không kéo dài hết cỡ */
}
.inline-installment-box .btn-calc:hover {
    background: #0099c2 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 184, 230, 0.3) !important;
}

/* 9. Kết quả dự toán */
.installment-result {
    margin-top: 30px !important;
    border-top: 1px solid #e2e8f0 !important;
    padding-top: 25px !important;
}
.result-summary {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 15px !important;
    margin-bottom: 25px !important;
}
.res-item {
    background: #f8fafc !important;
    padding: 15px !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
}
.res-item span {
    display: block !important;
    font-size: 12px !important;
    color: #64748b !important;
    margin-bottom: 5px !important;
    font-weight: 600 !important;
}
.res-item strong {
    font-size: 20px !important;
    color: #00b8e6 !important;
    font-weight: 800 !important;
}

/* Xóa mũi tên thừa của input number */
input[type="number"]::-webkit-outer-spin-button, 
input[type="number"]::-webkit-inner-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}
input[type="number"] { 
    -moz-appearance: textfield; 
}

/* =========================================
   FIX TRIỆT ĐỂ GIAO DIỆN FORM TRẢ GÓP INLINE
   ========================================= */

/* 1. Khung chứa toàn bộ form */
.inline-installment-box {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 30px !important;
    margin-top: 30px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
}

/* 2. Tiêu đề */
.inline-installment-box .installment-header {
    margin-bottom: 25px !important;
    border-bottom: 1px dashed #e2e8f0 !important;
    padding-bottom: 20px !important;
}
.inline-installment-box .installment-header h3 {
    color: #00b8e6 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    margin-bottom: 5px !important;
}
.inline-installment-box .installment-header h2 {
    font-size: 28px !important;
    color: #1e293b !important;
    font-weight: 900 !important;
    margin: 0 !important;
}

/* 3. Grid 4 cột */
.form-row-4 {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    margin-bottom: 20px !important;
}

/* 4. Label */
.inline-installment-box .form-group label {
    font-weight: 700 !important;
    font-size: 12px !important;
    color: #64748b !important;
    margin-bottom: 8px !important;
    text-transform: uppercase !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}
.inline-installment-box .form-group label i {
    color: #00b8e6 !important;
}

/* 5. Các ô nhập liệu (Input, Select, Textarea) */
.inline-installment-box input, 
.inline-installment-box select, 
.inline-installment-box textarea {
    width: 100% !important;
    height: 48px !important;
    padding: 0 16px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    background-color: #ffffff !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}
.inline-installment-box textarea {
    height: auto !important;
    padding: 16px !important;
}

/* Focus trạng thái */
.inline-installment-box input:focus, 
.inline-installment-box select:focus, 
.inline-installment-box textarea:focus {
    border-color: #00b8e6 !important;
    box-shadow: 0 0 0 3px rgba(0, 184, 230, 0.15) !important;
}

/* 6. Chỉnh riêng ô "Giá trị acc" và "Tiền trả trước" */
.inline-installment-box input[disabled] {
    background-color: #f1f5f9 !important;
    color: #64748b !important;
    cursor: not-allowed !important;
    border-color: #e2e8f0 !important;
}
.inline-installment-box #dtInsPrepay {
    border-color: #00b8e6 !important; /* Viền xanh để nổi bật */
    color: #00b8e6 !important;
    font-size: 18px !important;
}

/* 7. Xóa giao diện mặc định của thẻ Select (Dropdown) */
.inline-installment-box select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300b8e6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    background-size: 18px !important;
    padding-right: 40px !important;
    cursor: pointer !important;
}

/* 8. Nút Dự toán ngay */
.inline-installment-box .btn-calc {
    background: #00b8e6 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 14px 30px !important;
    border-radius: 50px !important; /* Bo tròn hoàn toàn */
    font-weight: 800 !important;
    font-size: 15px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: 0.2s !important;
    margin-top: 10px !important;
    width: auto !important; /* Không kéo dài hết cỡ */
}
.inline-installment-box .btn-calc:hover {
    background: #0099c2 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 184, 230, 0.3) !important;
}

/* 9. Kết quả dự toán */
.installment-result {
    margin-top: 30px !important;
    border-top: 1px solid #e2e8f0 !important;
    padding-top: 25px !important;
}
.result-summary {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 15px !important;
    margin-bottom: 25px !important;
}
.res-item {
    background: #f8fafc !important;
    padding: 15px !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
}
.res-item span {
    display: block !important;
    font-size: 12px !important;
    color: #64748b !important;
    margin-bottom: 5px !important;
    font-weight: 600 !important;
}
.res-item strong {
    font-size: 20px !important;
    color: #00b8e6 !important;
    font-weight: 800 !important;
}

/* Xóa mũi tên thừa của input number */
input[type="number"]::-webkit-outer-spin-button, 
input[type="number"]::-webkit-inner-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}
input[type="number"] { 
    -moz-appearance: textfield; 
}

/* =========================================
   TRANG CHI TIẾT ACC & FORM TRẢ GÓP (NEW)
   ========================================= */
.detail-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    margin-bottom: 30px;
}

/* Ảnh bên trái */
.detail-image-col { width: 100%; }
.img-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #e2e8f0;
}
.img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}
.img-wrapper:hover img { transform: scale(1.02); }
.img-overlay {
    position: absolute;
    bottom: 15px; left: 15px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 13px; font-weight: 600;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: 0.3s;
}
.img-wrapper:hover .img-overlay { opacity: 1; }

/* Thông tin bên phải */
.detail-info-col { display: flex; flex-direction: column; }
.badge-success {
    background: #2ed573; color: #fff;
    padding: 6px 15px; border-radius: 20px;
    font-size: 13px; font-weight: 700;
    display: inline-flex; align-items: center; gap: 5px;
    width: fit-content; margin-bottom: 15px;
}
.sub-title { font-size: 13px; color: #00d2ff; font-weight: 800; letter-spacing: 0.5px; margin-bottom: 5px; }
.acc-code { font-size: 32px; font-weight: 900; color: #1e293b; margin-bottom: 20px; }

.price-card {
    background: #fdfbf7;
    border: 1px dashed #f39c12;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}
.p-label { display: block; font-size: 13px; color: #64748b; font-weight: 600; margin-bottom: 5px; }
.p-value { display: block; font-size: 36px; font-weight: 900; color: #ff4757; margin-bottom: 5px; }
.p-note { font-size: 12px; color: #64748b; font-style: italic; }

.info-meta { list-style: none; padding: 0; margin-bottom: 25px; }
.info-meta li {
    display: flex; justify-content: space-between;
    padding: 15px 0; border-bottom: 1px dashed #e2e8f0;
    font-size: 14px;
}
.info-meta li span { color: #64748b; font-weight: 600; }
.info-meta li strong { color: #1e293b; font-weight: 800; }

.action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
}
.btn-action {
    padding: 14px; border-radius: 10px;
    font-weight: 800; font-size: 14px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    border: none; cursor: pointer; transition: 0.2s; text-decoration: none;
}
.btn-zalo { background: #00b8e6; color: #fff; }
.btn-zalo:hover { background: #0099c2; transform: translateY(-2px); }
.btn-installment { background: #00b8e6; color: #fff; border: 1px solid #00b8e6;}
.btn-installment:hover { background: #0099c2; transform: translateY(-2px); }
.btn-fb { background: #1877f2; color: #fff; }
.btn-fb:hover { background: #145dbf; transform: translateY(-2px); }
.btn-call { background: #fbc02d; color: #000; }
.btn-call:hover { background: #f9a825; transform: translateY(-2px); }
.footer-note { font-size: 12px; color: #94a3b8; font-style: italic; text-align: center; }

/* FORM TRẢ GÓP INLINE */
.inline-installment-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    margin-bottom: 40px;
}
.form-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    border-bottom: 1px dashed #e2e8f0; padding-bottom: 15px; margin-bottom: 25px;
}
.form-title h3 { color: #00b8e6; font-size: 14px; font-weight: 800; margin-bottom: 5px; text-transform: uppercase; }
.form-title h2 { font-size: 26px; color: #1e293b; font-weight: 900; margin: 0; }
.btn-close { background: transparent; border: none; font-size: 24px; color: #94a3b8; cursor: pointer; transition: 0.2s; }
.btn-close:hover { color: #ef4444; }

.form-row {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.form-group label { font-weight: 700; font-size: 13px; color: #1e293b; margin-bottom: 8px; display: block; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 15px; border: 1px solid #cbd5e1;
    border-radius: 10px; font-size: 15px; font-weight: 600; color: #1e293b; outline: none; transition: 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: #00b8e6; box-shadow: 0 0 0 3px rgba(0, 184, 230, 0.15);
}
.input-disabled { background: #f1f5f9 !important; color: #64748b !important; cursor: not-allowed; }
.input-active { border-color: #00b8e6 !important; color: #00b8e6 !important; font-size: 16px !important; }
.helper { font-size: 11px; color: #64748b; margin-top: 6px; display: block; }

/* Custom Select Wrapper & Arrow */
.select-wrapper { position: relative; }
.select-wrapper::after {
    content: '\f107'; font-family: 'FontAwesome';
    position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
    color: #00b8e6; font-size: 16px; font-weight: 900; pointer-events: none;
}
.select-wrapper select {
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    cursor: pointer; padding-right: 40px; background: #fff;
}

/* Custom Scrollbar cho Select Dropdown */
select::-webkit-scrollbar { width: 6px; }
select::-webkit-scrollbar-track { background: #f1f5f9; }
select::-webkit-scrollbar-thumb { background: #00b8e6; border-radius: 10px; }

/* Nút Dự toán */
.btn-calc {
    background: #00b8e6; color: #fff; border: none; padding: 12px 25px;
    border-radius: 50px; font-weight: 800; font-size: 15px; cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
    transition: 0.2s;
}
.btn-calc:hover { background: #0099c2; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0, 184, 230, 0.3); }

/* LIGHTBOX */
.lightbox-modal {
    display: none; position: fixed; z-index: 99999; left: 0; top: 0;
    width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(5px);
    justify-content: center; align-items: center;
}
.lightbox-content { max-width: 90%; max-height: 90%; border-radius: 10px; box-shadow: 0 0 30px rgba(0,0,0,0.5); animation: zoomIn 0.3s ease; }
.lightbox-close {
    position: absolute; top: 30px; right: 40px; color: #fff; font-size: 40px;
    font-weight: bold; cursor: pointer; transition: 0.2s;
}
.lightbox-close:hover { color: #ff4757; transform: scale(1.1); }
@keyframes zoomIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Responsive */
@media (max-width: 992px) {
    .detail-layout { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
    .form-row { grid-template-columns: 1fr; }
    .action-grid { grid-template-columns: 1fr; }
}
/* =========================================
   CUSTOM DROPDOWN (Thay thế Select mặc định)
   ========================================= */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}
.custom-select-trigger {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    transition: 0.2s;
}
.custom-select-trigger:hover, .custom-select-trigger.active {
    border-color: #00b8e6;
    box-shadow: 0 0 0 3px rgba(0,184,230,0.1);
}
.custom-select-trigger i {
    color: #00b8e6;
    transition: transform 0.3s;
    font-size: 14px;
}
.custom-select-trigger.active i {
    transform: rotate(180deg);
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    padding: 5px;
}
.custom-select-options.show {
    display: block;
    animation: fadeInDown 0.2s ease-out;
}

/* Thanh cuộn xịn màu Cyan */
.custom-select-options::-webkit-scrollbar {
    width: 6px;
}
.custom-select-options::-webkit-scrollbar-track {
    background: transparent;
}
.custom-select-options::-webkit-scrollbar-thumb {
    background: #00b8e6;
    border-radius: 10px;
}
.custom-select-options::-webkit-scrollbar-thumb:hover {
    background: #0099c2;
}

/* Các item bên trong */
.custom-option {
    padding: 12px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: 0.2s;
}
.custom-option:hover {
    background: #f1f5f9;
}
.custom-option.active {
    background: rgba(0, 184, 230, 0.1);
    color: #00b8e6;
    font-weight: 700;
}

/* ==== INS-FORM START (form trả góp dùng chung) ==== */
.ins-form { color: #1e293b; text-align: left; }
.ins-form button:focus { outline: none; }
.ins-form button:focus-visible { outline: 2px solid var(--cyan, #00d2ff); outline-offset: 2px; }

.ins-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; padding-bottom: 16px; margin-bottom: 22px; border-bottom: 1px dashed var(--border, #e2e8f0); }
.ins-kicker { display: block; color: var(--cyan, #00d2ff); font-size: 14px; font-weight: 800; text-transform: uppercase; margin-bottom: 4px; }
.ins-head h2 { margin: 0; font-size: 28px; font-weight: 900; color: #1e293b; }
.ins-close { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; border: none; background: #f1f5f9; color: #94a3b8; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: .2s; }
.ins-close:hover { background: #fee2e2; color: #ef4444; transform: rotate(90deg); }

.ins-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ins-field { display: flex; flex-direction: column; margin-bottom: 18px; }
.ins-field label { font-weight: 700; font-size: 12px; letter-spacing: .4px; text-transform: uppercase; color: #64748b; margin-bottom: 8px; }
.ins-field small { color: #64748b; font-size: 12px; margin-top: 6px; }
.ins-field small b { color: #1e293b; }

.ins-input { width: 100%; padding: 12px 16px; border: 1px solid #cbd5e1; border-radius: 12px; background: #fff; color: #1e293b; font-size: 15px; font-weight: 700; outline: none; transition: .2s; }
.ins-input:focus { border-color: var(--cyan, #00d2ff); box-shadow: 0 0 0 3px rgba(0, 210, 255, .15); }
.ins-input-disabled { background: #f1f5f9; color: #64748b; border-color: #e2e8f0; cursor: not-allowed; }
textarea.ins-input { font-weight: 500; font-size: 14px; resize: vertical; font-family: inherit; }
.ins-readonly { background: #f8fafc; font-size: 13px; line-height: 1.6; color: #334155; }

.ins-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ins-quick { margin-top: 10px; }
.ins-chip { padding: 9px 16px; border-radius: 9999px; border: 1px solid #cbd5e1; background: #fff; color: #334155; font-weight: 700; font-size: 13px; cursor: pointer; transition: .15s; }
.ins-chip:hover { border-color: var(--cyan, #00d2ff); color: var(--cyan, #00d2ff); }
.ins-chip.active { background: var(--cyan, #00d2ff); border-color: var(--cyan, #00d2ff); color: #fff; box-shadow: 0 4px 12px rgba(0, 210, 255, .35); }
.ins-chip-sm { padding: 6px 12px; font-size: 12px; }

.ins-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 12px; padding: 12px 16px; font-size: 14px; font-weight: 600; margin-bottom: 14px; }

.ins-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; border-radius: 9999px; padding: 14px 26px; font-weight: 800; font-size: 15px; cursor: pointer; transition: .2s; }
.ins-btn:hover { transform: translateY(-2px); }
.ins-btn-primary { background: var(--cyan, #00d2ff); color: #fff; }
.ins-btn-primary:hover { background: var(--cyan-hover, #00b8e6); box-shadow: 0 6px 18px rgba(0, 210, 255, .35); }

.ins-result { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--border, #e2e8f0); }
.ins-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.ins-card { background: #f8fafc; border: 1px solid var(--border, #e2e8f0); border-radius: 14px; padding: 14px 16px; }
.ins-card span { display: block; font-size: 12px; font-weight: 700; color: #64748b; text-transform: uppercase; margin-bottom: 6px; }
.ins-card strong { font-size: 19px; font-weight: 800; color: var(--cyan, #00d2ff); }
.ins-card.is-total { background: linear-gradient(135deg, #00d2ff, #0082c8); border-color: transparent; }
.ins-card.is-total span { color: rgba(255, 255, 255, .85); }
.ins-card.is-total strong { color: #fff; }

.ins-sub { font-size: 16px; font-weight: 800; margin: 0 0 10px; color: #1e293b; }
.ins-table { border: 1px solid var(--border, #e2e8f0); border-radius: 14px; overflow: hidden; background: #fff; }
.ins-row { display: grid; grid-template-columns: 100px 1fr 1fr 1.2fr; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--border, #e2e8f0); font-size: 14px; color: #334155; }
.ins-row:nth-child(even) { background: #f8fafc; }
.ins-row:last-child { border-bottom: none; }
.ins-row span:last-child { text-align: right; }
.ins-row.head { background: #f1f5f9; font-size: 12px; font-weight: 800; text-transform: uppercase; color: #64748b; }
.ins-pay { font-weight: 800; color: var(--neon-red, #ff4757); }

.ins-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.ins-btn-zalo { background: #0068ff; color: #fff; }
.ins-btn-zalo:hover { background: #0055d4; box-shadow: 0 6px 18px rgba(0, 104, 255, .35); }
.ins-btn-copy { background: #e0f2fe; color: #0284c7; border: 1px solid #7dd3fc; }
.ins-btn-copy:hover { background: #0284c7; color: #fff; }

@media (max-width: 700px) {
    .ins-grid-2, .ins-actions { grid-template-columns: 1fr; }
    .ins-summary { grid-template-columns: repeat(2, 1fr); }
    .ins-row { grid-template-columns: 70px 1fr 1fr 1fr; padding: 10px 12px; font-size: 12px; }
    .ins-head h2 { font-size: 22px; }
}
/* ==== INS-FORM END ==== */
