﻿/* dangky-hddtcqt — Tax3S Institutional */
.hddtcqt-dangky {
    --tx-fs-base: 15px;
    --tx-fs-sm: 13px;
    --tx-fs-md: 14px;
    --tx-fs-lg: 16px;
    --tx-fs-xl: 18px;
    --tx-lh: 1.55;
    --hddtcqt-purple-deep: #1e3a8a;
    --hddtcqt-purple: #1e40af;
    --hddtcqt-purple-mid: #1e40af;
    --hddtcqt-purple-light: #e8eef8;
    --hddtcqt-purple-pale: #f0f2f5;
    --hddtcqt-purple-soft: #eef1f5;
    --hddtcqt-border: #d5dde6;
    --hddtcqt-border-light: #d5dde6;
    --hddtcqt-text: #0f172a;
    --hddtcqt-muted: #64748b;
    --hddtcqt-gradient: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%);
    --hddtcqt-gradient-deep: linear-gradient(160deg, #1e3a8a 0%, #1e40af 55%, #2563eb 100%);
    --hddtcqt-shadow: 0 4px 20px rgba(30, 64, 175, 0.1);
    --hddtcqt-shadow-lg: 0 8px 32px rgba(30, 64, 175, 0.14);
    --hddtcqt-focus-ring: 0 0 0 0.2rem rgba(30, 64, 175, 0.22);

    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 0 2.5rem;
    color: var(--hddtcqt-text);
}

html[data-theme="light"] .hddtcqt-dangky {
    --hddtcqt-purple-deep: #084298;
    --hddtcqt-purple: #0d6efd;
    --hddtcqt-purple-mid: #0d6efd;
    --hddtcqt-purple-light: #e7f1ff;
    --hddtcqt-purple-pale: #F8F9FA;
    --hddtcqt-purple-soft: #e9ecef;
    --hddtcqt-border: #dee2e6;
    --hddtcqt-border-light: #dee2e6;
    --hddtcqt-text: #212529;
    --hddtcqt-muted: #6c757d;
    --hddtcqt-gradient: linear-gradient(180deg, #0d6efd 0%, #0a58ca 100%);
    --hddtcqt-gradient-deep: linear-gradient(160deg, #084298 0%, #0a58ca 55%, #0d6efd 100%);
    --hddtcqt-shadow: 0 4px 20px rgba(13, 110, 253, 0.1);
    --hddtcqt-shadow-lg: 0 8px 32px rgba(13, 110, 253, 0.14);
    --hddtcqt-focus-ring: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

html[data-theme="sepia"] .hddtcqt-dangky {
    --hddtcqt-purple-deep: #5c2e1a;
    --hddtcqt-purple: #a0522d;
    --hddtcqt-purple-mid: #a0522d;
    --hddtcqt-purple-light: #f5ebe3;
    --hddtcqt-purple-pale: #f4f0ea;
    --hddtcqt-purple-soft: #efe6dc;
    --hddtcqt-border: #e0d5c8;
    --hddtcqt-border-light: #e0d5c8;
    --hddtcqt-text: #4a3b32;
    --hddtcqt-muted: #7a6558;
    --hddtcqt-gradient: linear-gradient(180deg, #a0522d 0%, #8b4513 100%);
    --hddtcqt-gradient-deep: linear-gradient(160deg, #5c2e1a 0%, #8b4513 55%, #a0522d 100%);
    --hddtcqt-shadow: 0 4px 20px rgba(160, 82, 45, 0.1);
    --hddtcqt-shadow-lg: 0 8px 32px rgba(160, 82, 45, 0.14);
    --hddtcqt-focus-ring: 0 0 0 0.2rem rgba(160, 82, 45, 0.25);
}

html[data-theme="navi"] .hddtcqt-dangky,
html[data-theme="institutional"] .hddtcqt-dangky {
    --hddtcqt-purple-deep: #1e3a8a;
    --hddtcqt-purple: #1e40af;
    --hddtcqt-purple-mid: #1e40af;
    --hddtcqt-purple-light: #e8eef8;
    --hddtcqt-purple-pale: #f0f2f5;
    --hddtcqt-purple-soft: #e8eef4;
    --hddtcqt-border: #d5dde6;
    --hddtcqt-border-light: #d5dde6;
    --hddtcqt-text: #0f172a;
    --hddtcqt-muted: #64748b;
    --hddtcqt-gradient: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%);
    --hddtcqt-gradient-deep: linear-gradient(160deg, #1e3a8a 0%, #1e40af 55%, #2563eb 100%);
    --hddtcqt-shadow: 0 4px 20px rgba(30, 64, 175, 0.1);
    --hddtcqt-shadow-lg: 0 8px 32px rgba(30, 64, 175, 0.14);
    --hddtcqt-focus-ring: 0 0 0 0.2rem rgba(30, 64, 175, 0.22);
}

html[data-theme="forest-green"] .hddtcqt-dangky,
html[data-theme="forest-mint"] .hddtcqt-dangky {
    --hddtcqt-purple-deep: #1b5e20;
    --hddtcqt-purple: #2e7d32;
    --hddtcqt-purple-mid: #2e7d32;
    --hddtcqt-purple-light: #e8f5e9;
    --hddtcqt-purple-pale: #f0f5f1;
    --hddtcqt-purple-soft: #e0efe5;
    --hddtcqt-border: #c8ddd0;
    --hddtcqt-border-light: #c8ddd0;
    --hddtcqt-text: #1b3b2b;
    --hddtcqt-muted: #5a7a64;
    --hddtcqt-gradient: linear-gradient(180deg, #2e7d32 0%, #1b5e20 100%);
    --hddtcqt-gradient-deep: linear-gradient(160deg, #1b5e20 0%, #256628 55%, #2e7d32 100%);
    --hddtcqt-shadow: 0 4px 20px rgba(46, 125, 50, 0.1);
    --hddtcqt-shadow-lg: 0 8px 32px rgba(46, 125, 50, 0.14);
    --hddtcqt-focus-ring: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
}

html[data-theme="pink-pastel"] .hddtcqt-dangky {
    --hddtcqt-purple-deep: #9d174d;
    --hddtcqt-purple: #db2777;
    --hddtcqt-purple-mid: #db2777;
    --hddtcqt-purple-light: #fce7f0;
    --hddtcqt-purple-pale: #fdf2f4;
    --hddtcqt-purple-soft: #f8e6eb;
    --hddtcqt-border: #f0d4dc;
    --hddtcqt-border-light: #f0d4dc;
    --hddtcqt-text: #4a2e35;
    --hddtcqt-muted: #8a6b72;
    --hddtcqt-gradient: linear-gradient(180deg, #db2777 0%, #be185d 100%);
    --hddtcqt-gradient-deep: linear-gradient(160deg, #9d174d 0%, #be185d 55%, #db2777 100%);
    --hddtcqt-shadow: 0 4px 20px rgba(219, 39, 119, 0.1);
    --hddtcqt-shadow-lg: 0 8px 32px rgba(219, 39, 119, 0.14);
    --hddtcqt-focus-ring: 0 0 0 0.2rem rgba(219, 39, 119, 0.25);
}

html[data-theme="dark"] .hddtcqt-dangky {
    --hddtcqt-purple-deep: #0a0a0a;
    --hddtcqt-purple: #3d8bfd;
    --hddtcqt-purple-mid: #3d8bfd;
    --hddtcqt-purple-light: #2a2a2a;
    --hddtcqt-purple-pale: #121212;
    --hddtcqt-purple-soft: #1a1a1a;
    --hddtcqt-border: #333333;
    --hddtcqt-border-light: #333333;
    --hddtcqt-text: #e0e0e0;
    --hddtcqt-muted: #a0a0a0;
    --hddtcqt-gradient: linear-gradient(180deg, #3d8bfd 0%, #0a58ca 100%);
    --hddtcqt-gradient-deep: linear-gradient(160deg, #0a0a0a 0%, #121212 55%, #1e1e1e 100%);
    --hddtcqt-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --hddtcqt-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --hddtcqt-focus-ring: 0 0 0 0.2rem rgba(61, 139, 253, 0.3);
}

/* ── Tiêu đề trang ── */
.hddtcqt-dangky .prov-header {
    background: var(--hddtcqt-gradient-deep);
    color: #fff;
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem !important;
    box-shadow: var(--hddtcqt-shadow-lg);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hddtcqt-dangky .prov-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.18) 0%, transparent 42%),
        radial-gradient(circle at 6% 88%, rgba(77, 166, 255, 0.22) 0%, transparent 45%);
    pointer-events: none;
}

.hddtcqt-dangky .prov-header .prov-title,
.hddtcqt-dangky .prov-header .prov-subtitle {
    position: relative;
    z-index: 1;
}

.hddtcqt-dangky .prov-title {
    color: #fff;
    font-weight: 700;
    font-size: var(--tx-fs-xl, 18px);
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}

.hddtcqt-dangky .prov-title i {
    color: #e7f0f8;
}

.hddtcqt-dangky .prov-subtitle {
    color: rgba(255, 255, 255, 0.92);
    font-size: var(--tx-fs-md, 14px);
    line-height: 1.55;
}

/* ── Cards ── */
.hddtcqt-dangky .prov-card {
    border: 1px solid var(--hddtcqt-border-light);
    border-radius: 14px;
    box-shadow: var(--hddtcqt-shadow);
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s ease;
}

.hddtcqt-dangky .prov-card:hover {
    box-shadow: var(--hddtcqt-shadow-lg);
}

.hddtcqt-dangky .dk-invoice-trial-note {
    display: none;
}

.hddtcqt-dangky .prov-card.dk-invoice-disabled {
    opacity: 0.62;
    pointer-events: none;
    user-select: none;
}

.hddtcqt-dangky .prov-card.dk-invoice-disabled .dk-invoice-trial-note {
    display: block;
}

.hddtcqt-dangky .prov-card.dk-invoice-disabled .form-control,
.hddtcqt-dangky .prov-card.dk-invoice-disabled .btn {
    background-color: #f1f3f5;
    cursor: not-allowed;
}

.hddtcqt-dangky .prov-card.dk-invoice-disabled label .text-danger {
    display: none;
}

.hddtcqt-dangky .prov-card .card-header {
    background: linear-gradient(135deg, #e7f0f8 0%, #e7f0f8 100%);
    color: var(--hddtcqt-purple-deep);
    font-weight: 600;
    font-size: var(--tx-fs-md, 14px);
    line-height: 1.4;
    border-bottom: 1px solid var(--hddtcqt-border);
    padding: 0.75rem 1.15rem;
}

.hddtcqt-dangky .prov-card .card-header h4,
.hddtcqt-dangky .prov-card .card-header h5,
.hddtcqt-dangky .prov-card .card-header h6 {
    color: var(--hddtcqt-purple-deep);
    font-weight: 600;
    font-size: inherit;
    line-height: inherit;
    margin: 0;
}

.hddtcqt-dangky .prov-card .card-header i {
    color: var(--hddtcqt-purple-mid);
    font-size: 0.95em;
}

.hddtcqt-dangky .prov-card .card-body {
    padding: 1.15rem 1.25rem;
}

.hddtcqt-dangky label {
    font-weight: 500;
    color: var(--hddtcqt-text);
    font-size: var(--tx-fs-sm, 13px);
}

/* ── Form ── */
.hddtcqt-dangky .form-control {
    border-color: #e5e7eb;
    border-radius: 8px;
    min-height: 36px;
    font-size: var(--tx-fs-md, 14px);
    padding: 8px 12px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.hddtcqt-dangky textarea.form-control {
    min-height: auto;
}

.hddtcqt-dangky .form-control:focus {
    border-color: var(--hddtcqt-purple-light);
    box-shadow: var(--hddtcqt-focus-ring);
}

.hddtcqt-dangky .form-control.is-invalid:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.2);
}

.hddtcqt-dangky .form-control.is-valid {
    border-color: #10b981;
    padding-right: 2.5rem;
}

.hddtcqt-dangky .form-control.is-valid:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.2);
}

.hddtcqt-dangky .dk-input-valid-wrap {
    position: relative;
}

.hddtcqt-dangky .dk-input-valid-wrap .form-control {
    padding-right: 2.5rem;
}

.hddtcqt-dangky .dk-input-valid-wrap .invalid-feedback {
    display: none;
}

.hddtcqt-dangky .dk-input-valid-wrap .form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

.hddtcqt-dangky .dk-input-valid-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #10b981;
    font-size: var(--tx-fs-base);
    line-height: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.hddtcqt-dangky .dk-input-valid-icon.is-visible {
    opacity: 1;
}

.hddtcqt-dangky .invalid-feedback {
    font-size: var(--tx-chrome-fs);
}

.hddtcqt-dangky #previewAmount {
    color: var(--hddtcqt-purple-deep);
    font-size: var(--tx-fs-xl);
}

/* ── Gói năm dạng card ── */
.hddtcqt-dangky .dk-section-label {
    font-weight: 600;
    color: var(--hddtcqt-purple-deep);
    font-size: var(--tx-fs-base);
}

.hddtcqt-dangky .dk-so-nam-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.hddtcqt-dangky .dk-package-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.65rem;
}

.hddtcqt-dangky .dk-package-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-height: 88px;
    padding: 0.65rem 0.4rem;
    border: 2px solid var(--hddtcqt-border-light);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.15s;
    text-align: center;
}

.hddtcqt-dangky .dk-package-card:hover {
    border-color: var(--hddtcqt-purple-light);
    background: var(--hddtcqt-purple-soft);
}

.hddtcqt-dangky .dk-package-card.is-selected {
    border-color: var(--hddtcqt-purple-mid);
    background: linear-gradient(180deg, #e7f0f8 0%, #e7f0f8 100%);
    box-shadow: 0 4px 16px rgba(26, 86, 160, 0.18);
    transform: translateY(-1px);
}

.hddtcqt-dangky .dk-package-years {
    font-weight: 700;
    font-size: var(--tx-fs-base);
    color: var(--hddtcqt-purple-deep);
    line-height: 1.2;
}

.hddtcqt-dangky .dk-package-badge {
    font-size: var(--tx-fs-xs);
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #059669, #10b981);
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
    line-height: 1.3;
}

.hddtcqt-dangky .dk-package-card--life {
    border-color: #d97706;
}

.hddtcqt-dangky .dk-package-badge--life {
    background: linear-gradient(135deg, #b45309, #d97706);
}

.hddtcqt-dangky .dk-package-card--trial {
    cursor: default;
    border-color: #0284c7;
}

.hddtcqt-dangky .dk-package-badge--trial {
    background: linear-gradient(135deg, #0369a1, #0ea5e9);
}

.hddtcqt-dangky.dk-mode-trial .dk-tab-paid,
.hddtcqt-dangky.dk-mode-paid .dk-tab-trial {
    display: none !important;
}

.hddtcqt-dangky.dk-mode-trial #tabQrPay,
.hddtcqt-dangky.dk-mode-trial #tabCodePay,
.hddtcqt-dangky.dk-mode-paid #tabTrialPay {
    display: none !important;
}

.hddtcqt-dangky.dk-mode-trial .dk-package-grid {
    grid-template-columns: minmax(160px, 220px);
    justify-content: start;
}

.hddtcqt-dangky.dk-mode-trial .dk-total-preview small {
    display: none;
}

.hddtcqt-dangky .dk-package-price {
    font-size: var(--tx-fs-sm);
    font-weight: 600;
    color: var(--hddtcqt-muted);
    line-height: 1.2;
}

.hddtcqt-dangky .dk-package-card.is-selected .dk-package-price {
    color: var(--hddtcqt-purple);
}

.hddtcqt-dangky .dk-total-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #e7f0f8 0%, #e7f0f8 100%);
    border: 1px solid var(--hddtcqt-border);
}

.hddtcqt-dangky .dk-total-label {
    font-weight: 600;
    color: var(--hddtcqt-purple-deep);
}

.hddtcqt-dangky .dk-total-amount {
    font-size: var(--tx-fs-xl, 18px);
    font-weight: 700;
    color: var(--hddtcqt-purple-deep);
    white-space: nowrap;
}

/* ── Tab thanh toán ── */
.hddtcqt-dangky .dk-pay-tabs {
    border-bottom: 2px solid var(--hddtcqt-border-light);
    margin-bottom: 0;
}

.hddtcqt-dangky .dk-pay-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    color: var(--hddtcqt-muted);
    font-weight: 600;
    font-size: var(--tx-fs-base);
    padding: 0.65rem 1rem;
    border-radius: 10px 10px 0 0;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.hddtcqt-dangky .dk-pay-tabs .nav-link:hover {
    color: var(--hddtcqt-purple);
    background: var(--hddtcqt-purple-soft);
}

.hddtcqt-dangky .dk-pay-tabs .nav-link.active {
    color: var(--hddtcqt-purple-deep);
    background: transparent;
    border-bottom-color: var(--hddtcqt-purple-mid);
}

.hddtcqt-dangky .dk-pay-tab-content {
    padding-top: 1.25rem;
}

/* ── Payment card ── */
.hddtcqt-dangky .dk-payment-card {
    padding: 1.15rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--hddtcqt-border-light);
    box-shadow: var(--hddtcqt-shadow);
}

.hddtcqt-dangky .dk-status-badge {
    display: inline-block;
    font-size: var(--tx-fs-sm);
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
}

.hddtcqt-dangky .dk-status-badge--pending {
    background: #e7f0f8;
    color: var(--hddtcqt-purple-deep);
}

.hddtcqt-dangky .dk-status-badge--waiting {
    background: #fef3c7;
    color: #92400e;
}

.hddtcqt-dangky .dk-status-badge--paid {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #fff;
}

.hddtcqt-dangky .dk-info-banner {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: var(--hddtcqt-purple-soft);
    border: 1px solid var(--hddtcqt-border);
    color: var(--hddtcqt-muted);
    font-size: var(--tx-chrome-fs);
}

/* ── QR skeleton ── */
.hddtcqt-dangky .dk-qr-skeleton {
    text-align: center;
    padding: 1.25rem 1rem;
}

.hddtcqt-dangky .dk-qr-skeleton__box {
    width: 220px;
    max-width: 100%;
    height: 220px;
    margin: 0 auto 1rem;
    border-radius: 14px;
    background: linear-gradient(90deg, #e7f0f8 25%, #e7f0f8 50%, #e7f0f8 75%);
    background-size: 200% 100%;
    animation: dk-qr-shimmer 1.2s ease-in-out infinite;
}

.hddtcqt-dangky .dk-qr-skeleton__line {
    height: 12px;
    border-radius: 6px;
    margin: 0 auto 0.5rem;
    max-width: 280px;
    background: linear-gradient(90deg, #e7f0f8 25%, #e7f0f8 50%, #e7f0f8 75%);
    background-size: 200% 100%;
    animation: dk-qr-shimmer 1.2s ease-in-out infinite;
}

.hddtcqt-dangky .dk-qr-skeleton__line--short {
    max-width: 160px;
}

.hddtcqt-dangky .dk-qr-skeleton__text {
    color: var(--hddtcqt-purple);
    font-size: var(--tx-chrome-fs);
    font-weight: 500;
}

@keyframes dk-qr-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.hddtcqt-dangky .dk-qr-frame {
    padding: 0.75rem;
    border-radius: 16px;
    background: linear-gradient(180deg, #e7f0f8 0%, #fff 100%);
    border: 1px solid var(--hddtcqt-border-light);
}

.hddtcqt-dangky .dk-payment-details {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.hddtcqt-dangky .dk-payment-detail-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.hddtcqt-dangky .dk-payment-detail-label {
    font-size: var(--tx-fs-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--hddtcqt-muted);
}

.hddtcqt-dangky .dk-payment-detail-value {
    font-size: var(--tx-fs-2xl);
    font-weight: 700;
    color: var(--hddtcqt-purple-deep);
}

.hddtcqt-dangky .dk-copy-wrap {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

.hddtcqt-dangky .dk-transfer-code {
    flex: 1;
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    font-size: var(--tx-fs-sm);
    word-break: break-all;
    line-height: 1.45;
    border: 1px solid var(--hddtcqt-border);
    background: var(--hddtcqt-purple-soft);
    color: var(--hddtcqt-purple-deep);
}

.hddtcqt-dangky .dk-btn-copy {
    flex-shrink: 0;
    align-self: stretch;
    border-radius: 10px;
    border: 1px solid var(--hddtcqt-border);
    background: #fff;
    color: var(--hddtcqt-purple);
    min-width: 42px;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.hddtcqt-dangky .dk-btn-copy:hover {
    background: var(--hddtcqt-purple-pale);
    border-color: var(--hddtcqt-purple-light);
    color: var(--hddtcqt-purple-deep);
}

.hddtcqt-dangky .dk-btn-copy.is-copied {
    background: #d1fae5;
    border-color: #6ee7b7;
    color: #065f46;
}

.hddtcqt-dangky .dk-payment-hint {
    font-size: var(--tx-chrome-fs);
    color: var(--hddtcqt-muted);
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    background: var(--hddtcqt-purple-soft);
    border-left: 3px solid var(--hddtcqt-purple-light);
}

.hddtcqt-dangky .dk-btn-action {
    min-height: 36px;
    font-size: var(--tx-fs-md, 14px);
    padding: 8px 14px;
    border-radius: 8px;
}

/* ── Buttons — kích thước chuẩn theo form-control ── */
.hddtcqt-dangky .btn {
    font-size: var(--tx-fs-md, 14px);
    line-height: 1.4;
    min-height: 36px;
    padding: 0.375rem 0.75rem;
    font-weight: 500;
}

.hddtcqt-dangky .btn i,
.hddtcqt-dangky .btn .fas,
.hddtcqt-dangky .btn .far,
.hddtcqt-dangky .btn .fab {
    font-size: 0.9em;
    line-height: 1;
    vertical-align: -0.05em;
}

.hddtcqt-dangky .input-group-append .btn,
.hddtcqt-dangky #btnFetchMst {
    font-size: var(--tx-fs-md, 14px);
    min-height: 36px;
    padding: 0.375rem 0.75rem;
    white-space: nowrap;
}

.hddtcqt-dangky .btn-info,
.hddtcqt-dangky #btnCheckPayment {
    background: var(--hddtcqt-gradient-deep) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(26, 86, 160, 0.28);
    transition: filter 0.2s, transform 0.2s, box-shadow 0.2s;
}

.hddtcqt-dangky .btn-info:hover:not(:disabled),
.hddtcqt-dangky #btnCheckPayment:hover:not(:disabled) {
    filter: brightness(1.06);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26, 86, 160, 0.36);
}

.hddtcqt-dangky .btn-info:disabled,
.hddtcqt-dangky #btnCheckPayment:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.hddtcqt-dangky .btn-outline-success,
.hddtcqt-dangky #btnCheckCode {
    color: var(--hddtcqt-purple) !important;
    border: 2px solid var(--hddtcqt-purple-mid) !important;
    background: #fff !important;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.hddtcqt-dangky .btn-outline-success:hover,
.hddtcqt-dangky #btnCheckCode:hover {
    background: var(--hddtcqt-gradient) !important;
    border-color: var(--hddtcqt-purple) !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(26, 86, 160, 0.28);
}

.hddtcqt-dangky .btn-outline-warning,
.hddtcqt-dangky #btnFetchMst {
    color: var(--hddtcqt-purple-deep) !important;
    border-color: #e7f0f8 !important;
    background: var(--hddtcqt-purple-soft) !important;
    font-weight: 500;
    border-radius: 8px;
}

.hddtcqt-dangky .btn-outline-warning:hover,
.hddtcqt-dangky #btnFetchMst:hover {
    background: var(--hddtcqt-purple-pale) !important;
    border-color: var(--hddtcqt-purple-light) !important;
    color: var(--hddtcqt-purple-deep) !important;
}

/* ── Badge & text ── */
.hddtcqt-dangky .text-primary {
    color: var(--hddtcqt-purple-deep) !important;
}

.hddtcqt-dangky .text-success {
    color: #059669 !important;
}

.hddtcqt-dangky .badge-secondary,
.hddtcqt-dangky #lblPaymentStatus.badge-secondary,
.hddtcqt-dangky #lblPaymentStatus.dk-status-badge--pending {
    background: #e7f0f8 !important;
    color: var(--hddtcqt-purple-deep) !important;
}

.hddtcqt-dangky #lblPaymentStatus.badge-success,
.hddtcqt-dangky #lblPaymentStatus.dk-status-badge--paid {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    color: #fff !important;
}

.hddtcqt-dangky code {
    color: var(--hddtcqt-purple-deep);
    background: var(--hddtcqt-purple-pale);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.88em;
}

/* ── Alerts ── */
.hddtcqt-dangky .alert-secondary,
.hddtcqt-dangky #lblQrPending {
    background: var(--hddtcqt-purple-soft);
    border: 1px solid var(--hddtcqt-border);
    color: var(--hddtcqt-muted);
    border-radius: 10px;
}

.hddtcqt-dangky .alert-warning,
.hddtcqt-dangky #lblQrError {
    background: linear-gradient(90deg, #fef3c7 0%, #fffbeb 100%);
    border-color: #fcd34d;
    color: #92400e;
    border-radius: 10px;
}

.hddtcqt-dangky .alert-success {
    background: linear-gradient(90deg, #d1fae5 0%, #ecfdf5 100%);
    border-color: #6ee7b7;
    color: #065f46;
}

.hddtcqt-dangky .alert-danger {
    background: linear-gradient(90deg, #fee2e2 0%, #fef2f2 100%);
    border-left: 4px solid #dc3545;
    color: #991b1b;
}

.hddtcqt-dangky .text-warning {
    color: #b45309 !important;
}

/* ── Thanh toán 2 cột ── */
.hddtcqt-dangky .xmld-pay-columns .border-lg-right {
    border-right: 1px solid var(--hddtcqt-border) !important;
}

@media (max-width: 991.98px) {
    .hddtcqt-dangky .xmld-pay-columns .border-lg-right {
        border-right: none !important;
        border-bottom: 1px solid var(--hddtcqt-border);
        padding-bottom: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .hddtcqt-dangky .xmld-code-col {
        padding-left: 0 !important;
    }
}

.hddtcqt-dangky .xmld-pay-col h6 i {
    color: var(--hddtcqt-purple-mid);
}

.hddtcqt-dangky .xmld-code-col h6 i {
    color: #059669;
}

.hddtcqt-dangky .xmld-qr-img {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: none;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

/* ── Loading overlay ── */
#loadingPopup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 51, 102, 0.38);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

#loadingPopup .spinner-border {
    color: #e7f0f8 !important;
    width: 2.75rem;
    height: 2.75rem;
    border-width: 0.25em;
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .hddtcqt-dangky .dk-package-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hddtcqt-dangky .prov-title {
        font-size: var(--tx-fs-2xl);
    }

    .hddtcqt-dangky .prov-header {
        padding: 1.15rem 1.25rem;
        border-radius: 12px;
    }

    .hddtcqt-dangky .dk-package-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hddtcqt-dangky .dk-total-preview {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .hddtcqt-dangky .dk-total-amount {
        font-size: var(--tx-fs-2xl);
    }

    .hddtcqt-dangky .dk-pay-tabs .nav-link {
        font-size: var(--tx-fs-sm);
        padding: 0.55rem 0.65rem;
    }
}

@media (max-width: 400px) {
    .hddtcqt-dangky .dk-package-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hddtcqt-dangky.dk-mode-trial .dk-package-grid {
        grid-template-columns: minmax(160px, 220px);
    }
}
