/* ==========================================================================
   ĐÔNG Y GIA TRUYỀN THẾ LONG - WEB VISUAL STUDIO & EDITOR
   Bộ công cụ thiết kế & biên tập giao diện web trực quan
   ========================================================================== */

:root {
    --studio-primary: #047857;
    --studio-primary-dark: #064e3b;
    --studio-accent: #ffd026;
    --studio-accent-light: #fef08a;
    --studio-dark: #0f172a;
    --studio-darker: #020617;
    --studio-card: #1e293b;
    --studio-border: rgba(255, 255, 255, 0.12);
    --studio-text: #f8fafc;
    --studio-text-muted: #94a3b8;
    --studio-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 20px rgba(4, 120, 87, 0.25);
    --studio-radius: 12px;
}

/* 1. NÚT KÍCH HOẠT CHẾ ĐỘ THIẾT KẾ (FLOATING STUDIO LAUNCHER) */
#studio-launcher-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 99999;
    display: none; /* Ẩn mặc định cho khách vãng lai */
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #022c22 0%, #064e3b 50%, #047857 100%);
    color: #ffd026;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    border: 2px solid #ffd026;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 18px rgba(255, 208, 38, 0.45);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
}

body.elementor-editor-active #studio-launcher-btn,
body.studio-mode-on #studio-launcher-btn {
    display: flex;
}

#studio-launcher-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 28px rgba(255, 208, 38, 0.7);
    color: #ffffff;
}

#studio-launcher-btn i {
    font-size: 1.1rem;
    color: #ffd026;
    animation: studioPulse 2.5s infinite;
}

@keyframes studioPulse {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(15deg) scale(1.15); }
}

/* 2. THANH CÔNG CỤ ĐIỀU KHIỂN CHÍNH (STUDIO TOPBAR DOCK) */
#studio-topbar-dock {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%) translateY(-120%);
    z-index: 99998;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 7px 14px;
    border-radius: 50px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(4, 120, 87, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--studio-text);
    white-space: nowrap;
    max-width: 98vw;
    overflow-x: auto;
}

#studio-topbar-dock.active {
    transform: translateX(-50%) translateY(0);
}

.studio-brand-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.88rem;
    font-weight: 800;
    color: #fef08a;
    letter-spacing: 0.5px;
}

.studio-brand-tag i {
    color: #ffd026;
    font-size: 1rem;
}

.studio-dock-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f1f5f9;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 13px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.studio-dock-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.studio-dock-btn.active {
    background: linear-gradient(135deg, #047857, #059669);
    border-color: #ffd026;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(4, 120, 87, 0.5);
}

.studio-dock-btn.btn-gold {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: #0f172a;
    font-weight: 800;
    border-color: #ffd026;
}

.studio-dock-btn.btn-gold:hover {
    background: linear-gradient(135deg, #b45309, #d97706);
    color: #ffffff;
}

.studio-dock-btn.btn-danger {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.studio-dock-btn.btn-danger:hover {
    background: #ef4444;
    color: #ffffff;
}

.studio-divider {
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 3px;
}

/* 3. SOẠN THẢO VĂN BẢN TRỰC TIẾP (INLINE WYSIWYG) */
body.studio-mode-on [data-studio-editable="true"] {
    outline: 2px dashed rgba(4, 120, 87, 0.5);
    outline-offset: 3px;
    cursor: text;
    transition: outline 0.2s ease, background-color 0.2s ease;
    border-radius: 4px;
}

body.studio-mode-on [data-studio-editable="true"]:hover {
    outline: 2px dashed #ffd026;
    background-color: rgba(255, 208, 38, 0.08);
}

body.studio-mode-on [data-studio-editable="true"]:focus {
    outline: 2px solid #047857;
    background-color: rgba(4, 120, 87, 0.12);
    box-shadow: 0 0 15px rgba(4, 120, 87, 0.3);
}

/* Bong bóng định dạng chữ nổi (Floating Formatting Bubble) */
#studio-format-bubble {
    position: absolute;
    z-index: 100000;
    display: none;
    align-items: center;
    gap: 4px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 4px 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

#studio-format-bubble button {
    background: none;
    border: none;
    color: #f8fafc;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

#studio-format-bubble button:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffd026;
}

/* 4. NÚT THAY ẢNH TRỰC QUAN (IMAGE REPLACER BADGE) */
.studio-img-wrapper {
    position: relative !important;
}

.studio-change-img-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 900;
    background: rgba(15, 23, 42, 0.88);
    color: #fef08a;
    border: 1.5px solid #ffd026;
    border-radius: 30px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

body.studio-mode-on .studio-img-wrapper:hover .studio-change-img-btn {
    display: flex;
}

.studio-change-img-btn:hover {
    background: #047857;
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(4, 120, 87, 0.6);
}

/* 5. BẢNG TÙY BIẾN GIAO DIỆN (STYLE INSPECTOR SIDEBAR) */
#studio-customizer-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 390px;
    height: 100vh;
    background: #0f172a;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--studio-text);
}

#studio-customizer-drawer.active {
    right: 0;
}

.studio-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: #090e1a;
}

.studio-drawer-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffd026;
    display: flex;
    align-items: center;
    gap: 8px;
}

.studio-drawer-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.studio-drawer-close:hover {
    color: #ffffff;
}

.studio-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.studio-group-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 18px;
}

.studio-group-card h4 {
    margin: 0 0 14px 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 8px;
}

.studio-group-card h4 i {
    color: #10b981;
}

.studio-control-row {
    margin-bottom: 14px;
}

.studio-control-row:last-child {
    margin-bottom: 0;
}

.studio-label-flex {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.studio-val-badge {
    color: #ffd026;
    font-weight: 700;
}

.studio-color-picker-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.studio-color-input {
    width: 44px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    background: none;
    padding: 0;
}

.studio-text-input,
.studio-select-input {
    flex: 1;
    background: #090e1a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.studio-text-input:focus,
.studio-select-input:focus {
    border-color: #10b981;
}

.studio-range-slider {
    width: 100%;
    accent-color: #10b981;
    cursor: pointer;
}

.studio-preset-palettes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.studio-preset-btn {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 6px 4px;
    background: #090e1a;
    cursor: pointer;
    font-size: 0.74rem;
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.studio-preset-btn:hover {
    border-color: #ffd026;
    transform: translateY(-2px);
}

.preset-dots {
    display: flex;
    gap: 4px;
}

.preset-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.studio-drawer-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #090e1a;
    display: flex;
    gap: 10px;
}

/* 6. MODAL QUẢN LÝ & KÉO THẢ SLIDE (DRAG & DROP SLIDE MANAGER) */
.studio-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(10px);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.studio-modal-overlay.active {
    display: flex;
}

.studio-modal-window {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--studio-text);
}

.studio-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: #090e1a;
}

.studio-modal-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffd026;
    display: flex;
    align-items: center;
    gap: 10px;
}

.studio-modal-body {
    padding: 22px 24px;
    overflow-y: auto;
    flex: 1;
}

/* Danh sách slide kéo thả */
.studio-slide-drag-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.studio-slide-card {
    background: #1e293b;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: grab;
    transition: all 0.25s ease;
    user-select: none;
}

.studio-slide-card:active {
    cursor: grabbing;
}

.studio-slide-card.dragging {
    opacity: 0.4;
    border-style: dashed;
    border-color: #ffd026;
    background: #047857;
}

.studio-slide-card.drag-over {
    border-color: #10b981;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
}

.slide-drag-handle {
    font-size: 1.2rem;
    color: #64748b;
    padding: 4px;
}

.slide-drag-handle:hover {
    color: #ffd026;
}

.slide-thumb-preview {
    width: 65px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.slide-info-meta {
    flex: 1;
    min-width: 0;
}

.slide-badge-title {
    font-size: 0.76rem;
    color: #ffd026;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slide-heading-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin: 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slide-sub-text {
    font-size: 0.78rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slide-card-actions {
    display: flex;
    gap: 6px;
}

.slide-action-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.slide-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.slide-action-btn.btn-delete:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
}

.studio-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #090e1a;
}

/* 7. MODAL THAY ẢNH TRỰC QUAN (IMAGE PICKER MODAL) */
.studio-img-preview-box {
    width: 100%;
    height: 220px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #090e1a;
    margin-bottom: 18px;
    position: relative;
}

.studio-img-preview-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.studio-upload-dropzone {
    border: 2px dashed #10b981;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    background: rgba(16, 185, 129, 0.05);
    cursor: pointer;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.studio-upload-dropzone:hover {
    background: rgba(16, 185, 129, 0.12);
    border-color: #ffd026;
}

.studio-upload-dropzone i {
    font-size: 2.2rem;
    color: #10b981;
    margin-bottom: 8px;
}

.studio-preset-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.studio-preset-img-item {
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s;
}

.studio-preset-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.studio-preset-img-item:hover,
.studio-preset-img-item.active {
    border-color: #ffd026;
}

/* 8. TOAST THÔNG BÁO STUDIO */
#studio-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0f172a;
    border: 1px solid #10b981;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(16, 185, 129, 0.4);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 100001;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

#studio-toast.show {
    opacity: 1;
    transform: translateY(0);
}

#studio-toast.toast-success i { color: #10b981; }
#studio-toast.toast-gold i { color: #ffd026; }
#studio-toast.toast-error i { color: #ef4444; border-color: #ef4444; }

/* Responsive Studio */
@media (max-width: 768px) {
    #studio-topbar-dock {
        top: 6px;
        padding: 5px 10px;
        gap: 6px;
    }
    .studio-brand-tag span {
        display: none;
    }
    .studio-dock-btn span {
        display: none;
    }
    .studio-dock-btn {
        padding: 6px 10px;
    }
    #studio-customizer-drawer {
        width: 100vw;
        right: -100vw;
    }
}

/* ==========================================================================
   9. KÉO THẢ SẮP XẾP CÁC KHỐI SECTION (DRAG & DROP SECTION MANAGER)
   ========================================================================== */
.studio-section-drag-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.studio-section-card {
    background: #1e293b;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: grab;
    transition: all 0.25s ease;
    user-select: none;
}

.studio-section-card:active {
    cursor: grabbing;
}

.studio-section-card.dragging {
    opacity: 0.4;
    border-color: #ffd026;
    background: #047857;
}

.studio-section-card.drag-over {
    border-color: #10b981;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

.section-drag-handle {
    font-size: 1.15rem;
    color: #64748b;
    cursor: grab;
}

.section-drag-handle:hover {
    color: #ffd026;
}

.section-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(4, 120, 87, 0.25);
    border: 1px solid rgba(4, 120, 87, 0.5);
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.section-meta-info {
    flex: 1;
    min-width: 0;
}

.section-name-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}

.section-id-tag {
    font-size: 0.74rem;
    color: #ffd026;
    font-family: monospace;
}

.section-spacing-ctrl {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #94a3b8;
}

.section-spacing-slider {
    width: 90px;
    accent-color: #10b981;
    cursor: pointer;
}

.section-toggle-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.section-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.section-toggle-btn.is-hidden {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.15);
}

/* ==========================================================================
   10. MODAL THAY LOGO TRỰC QUAN (LOGO CHANGER MODAL)
   ========================================================================== */
.studio-logo-preview-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #022c22 0%, #064e3b 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 20px;
}

.logo-icon-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.logo-icon-opt {
    height: 44px;
    border-radius: 8px;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffd026;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.logo-icon-opt:hover,
.logo-icon-opt.active {
    background: #047857;
    border-color: #ffd026;
    transform: scale(1.08);
}

/* ==========================================================================
   11. BẢNG QUẢN LÝ MENU KÉO THẢ (MENU MANAGER)
   ========================================================================== */
.studio-menu-drag-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.studio-menu-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: grab;
}

.studio-menu-inputs {
    display: flex;
    gap: 10px;
    flex: 1;
}

.studio-menu-inputs input {
    background: #090e1a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.82rem;
}

/* ==========================================================================
   12. SỔ KHÁM BỆNH & QUẢN LÝ KHÁCH HÀNG (MINI CRM LEADS DASHBOARD)
   ========================================================================== */
.studio-leads-header-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.leads-stats-row {
    display: flex;
    gap: 12px;
}

.lead-stat-chip {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #cbd5e1;
}

.lead-stat-chip strong {
    color: #ffd026;
    font-size: 0.95rem;
}

.studio-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: #090e1a;
}

.studio-leads-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    text-align: left;
}

.studio-leads-table th {
    background: #1e293b;
    padding: 12px 14px;
    color: #ffd026;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    white-space: nowrap;
}

.studio-leads-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
}

.studio-leads-table tr:hover {
    background: rgba(4, 120, 87, 0.12);
}

.lead-status-badge {
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.status-new {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid #10b981;
}

.lead-phone-link {
    color: #ffd026;
    text-decoration: none;
    font-weight: 700;
}

.lead-phone-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   13. WIDGET CHATBOX Y KHOA ĐỘC LẬP (NATIVE EMBEDDED MEDICAL CHATBOT)
   ========================================================================== */
#thelong-native-chat-launcher {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99990;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, #022c22 0%, #064e3b 50%, #047857 100%);
    border: 2px solid #ffd026;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 208, 38, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd026;
    font-size: 1.6rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#thelong-native-chat-launcher:hover {
    transform: scale(1.1);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5), 0 0 28px rgba(255, 208, 38, 0.7);
    color: #ffffff;
}

#thelong-native-chat-launcher .chat-badge-pulse {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 18px;
    height: 18px;
    background: #ef4444;
    border: 2px solid #ffffff;
    border-radius: 50%;
    animation: chatPulse 1.8s infinite;
}

@keyframes chatPulse {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

#thelong-native-chat-window {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 375px;
    height: 540px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 120px);
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(4, 120, 87, 0.3);
    z-index: 99991;
    display: none;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#thelong-native-chat-window.active {
    display: flex;
    transform: translateY(0) scale(1);
    opacity: 1;
}

.native-chat-header {
    background: linear-gradient(135deg, #022c22 0%, #064e3b 60%, #047857 100%);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #ffd026;
    color: #ffffff;
}

.chat-doc-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-doc-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #ffd026;
    object-fit: cover;
    background: #0f172a;
}

.chat-doc-info h4 {
    margin: 0;
    font-size: 0.96rem;
    font-weight: 800;
    color: #fef08a;
}

.chat-doc-info span {
    font-size: 0.74rem;
    color: #a7f3d0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.chat-status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px #10b981;
}

.native-chat-close {
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 4px;
}

.native-chat-close:hover {
    color: #ffffff;
}

.native-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #090e1a;
}

.chat-bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.86rem;
    line-height: 1.5;
    word-break: break-word;
}

.chat-bubble.bot-bubble {
    background: #1e293b;
    color: #f8fafc;
    border-top-left-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    align-self: flex-start;
}

.chat-bubble.user-bubble {
    background: linear-gradient(135deg, #047857, #059669);
    color: #ffffff;
    border-top-right-radius: 4px;
    align-self: flex-end;
    box-shadow: 0 4px 12px rgba(4, 120, 87, 0.35);
}

.chat-bubble.bot-bubble strong {
    color: #ffd026;
}

.chat-quick-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.chat-opt-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fef08a;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-opt-btn:hover {
    background: #047857;
    border-color: #ffd026;
    color: #ffffff;
    transform: translateY(-1px);
}

.native-chat-footer {
    padding: 12px 14px;
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 8px;
}

.native-chat-footer input {
    flex: 1;
    background: #090e1a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: 10px 16px;
    color: #ffffff;
    font-size: 0.85rem;
    outline: none;
    font-family: inherit;
}

.native-chat-footer input:focus {
    border-color: #10b981;
}

.native-chat-footer button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #047857;
    border: 1px solid #ffd026;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.native-chat-footer button:hover {
    background: #059669;
    transform: scale(1.05);
}

/* ==========================================================================
   14. THÔNG BÁO KHÁCH VỪA ĐẶT KHÁM (SOCIAL PROOF POPUP)
   ========================================================================== */
#thelong-social-proof-toast {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 99980;
    background: rgba(15, 23, 42, 0.94);
    border: 1.5px solid #ffd026;
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 208, 38, 0.25);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 340px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

#thelong-social-proof-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.social-proof-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #047857;
    color: #ffd026;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.social-proof-content {
    flex: 1;
    font-size: 0.78rem;
    color: #e2e8f0;
    line-height: 1.4;
}

.social-proof-content strong {
    color: #ffd026;
    display: block;
    font-size: 0.84rem;
}

.social-proof-time {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 2px;
}

.social-proof-close {
    background: none;
    border: none;
    color: #64748b;
    font-size: 1rem;
    cursor: pointer;
    padding: 2px;
    align-self: flex-start;
}

.social-proof-close:hover {
    color: #ffffff;
}

/* ==========================================================================
   17. GIAO DIỆN THIẾT KẾ WEBSITE CHUẨN 100% ELEMENTOR (ELEMENTOR WEBSITE BUILDER)
   ========================================================================== */

/* Trạng thái mở Elementor Editor */
body.elementor-editor-active {
    padding-left: 360px !important;
    transition: padding-left 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.elementor-editor-active.elementor-panel-collapsed {
    padding-left: 0 !important;
}

/* 1. BẢNG ĐIỀU KHIỂN ELEMENTOR PANEL BÊN TRÁI (360PX DARK THEME) */
#elementor-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 360px;
    height: 100vh;
    background: #26292c;
    color: #e0e0e0;
    z-index: 100000;
    display: none;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 13px;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.6);
    user-select: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

body.elementor-editor-active #elementor-panel {
    display: flex;
}

body.elementor-panel-collapsed #elementor-panel {
    transform: translateX(-100%);
}

/* Top Header của Elementor Panel */
#elementor-panel-header {
    height: 50px;
    background: #1e2023;
    border-bottom: 1px solid #141517;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    flex-shrink: 0;
}

.elementor-header-btn {
    background: none;
    border: none;
    color: #a4afb7;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background 0.15s;
}

.elementor-header-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.elementor-header-btn.active {
    color: #ff2851;
}

#elementor-panel-header-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #a4afb7;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

/* Khối nội dung chính của Panel */
#elementor-panel-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Thanh cuộn chuẩn Elementor */
#elementor-panel-content::-webkit-scrollbar {
    width: 6px;
}
#elementor-panel-content::-webkit-scrollbar-track {
    background: #1e2023;
}
#elementor-panel-content::-webkit-scrollbar-thumb {
    background: #495157;
    border-radius: 3px;
}
#elementor-panel-content::-webkit-scrollbar-thumb:hover {
    background: #71d7f7;
}

/* 2. CHẾ ĐỘ THƯ VIỆN WIDGET (ELEMENTS GRID) */
#elementor-panel-elements-view {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.elementor-search-box-wrap {
    padding: 12px 14px;
    background: #26292c;
    border-bottom: 1px solid #1e2023;
    position: relative;
}

.elementor-search-box-wrap i {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: #6d7882;
    font-size: 13px;
}

.elementor-search-input {
    width: 100%;
    background: #1e2023;
    border: 1px solid #34383c;
    border-radius: 3px;
    color: #ffffff;
    font-size: 12px;
    padding: 8px 12px 8px 32px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.elementor-search-input:focus {
    border-color: #71d7f7;
    box-shadow: 0 0 0 1px #71d7f7;
}

/* Danh mục Widget (Categories) */
.elementor-panel-categories {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 20px;
}

.elementor-panel-category {
    border-bottom: 1px solid #1e2023;
}

.elementor-panel-category-title {
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #a4afb7;
    background: #222527;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.elementor-panel-category-title:hover {
    color: #ffffff;
    background: #1e2023;
}

.elementor-panel-category-title i {
    font-size: 10px;
    transition: transform 0.2s;
}

.elementor-panel-category.collapsed .elementor-panel-category-title i {
    transform: rotate(-90deg);
}

.elementor-panel-category.collapsed .elementor-panel-category-items {
    display: none;
}

/* Lưới Widget 3 cột chuẩn Elementor */
.elementor-panel-category-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #1e2023;
    padding: 1px 0 0 1px;
}

.elementor-element-card {
    background: #26292c;
    padding: 14px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: grab;
    transition: all 0.15s ease;
    text-align: center;
    color: #a4afb7;
    border-right: 1px solid #1e2023;
    border-bottom: 1px solid #1e2023;
    position: relative;
}

.elementor-element-card:hover {
    background: #34383c;
    color: #ffffff;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.elementor-element-card:hover i {
    color: #ff2851;
    transform: scale(1.15);
}

.elementor-element-card i {
    font-size: 22px;
    color: #71d7f7;
    transition: transform 0.2s, color 0.2s;
}

.elementor-element-card .elementor-element-title {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    max-width: 95px;
    word-wrap: break-word;
}

.elementor-badge-pro {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #ffd026;
    color: #022c22;
    font-size: 8px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 2px;
    letter-spacing: 0.3px;
}

/* 3. CHẾ ĐỘ CHỈNH SỬA PHẦN TỬ (ELEMENT EDITOR - 3 TABS) */
#elementor-panel-editor-view {
    display: none;
    flex-direction: column;
    height: 100%;
}

/* 3 Tabs: Content, Style, Advanced */
.elementor-editor-tabs-nav {
    display: flex;
    background: #1e2023;
    border-bottom: 1px solid #141517;
    flex-shrink: 0;
}

.elementor-editor-tab-btn {
    flex: 1;
    padding: 12px 6px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #a4afb7;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s;
}

.elementor-editor-tab-btn:hover {
    color: #ffffff;
}

.elementor-editor-tab-btn.active {
    color: #ffffff;
    border-bottom-color: #ff2851;
    background: #26292c;
}

.elementor-editor-tab-btn.active i {
    color: #ff2851;
}

/* Nội dung bên trong Tab */
.elementor-editor-tab-pane {
    display: none;
    flex-direction: column;
    padding-bottom: 24px;
}

.elementor-editor-tab-pane.active {
    display: flex;
}

/* Accordion Section bên trong Tab */
.elementor-section-group {
    border-bottom: 1px solid #1e2023;
}

.elementor-section-group-header {
    padding: 12px 16px;
    background: #26292c;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #e0e0e0;
    transition: background 0.15s;
}

.elementor-section-group-header:hover {
    background: #2f3337;
}

.elementor-section-group-header i {
    font-size: 10px;
    color: #a4afb7;
    transition: transform 0.2s;
}

.elementor-section-group.collapsed .elementor-section-group-header i {
    transform: rotate(-90deg);
}

.elementor-section-group.collapsed .elementor-section-group-body {
    display: none;
}

.elementor-section-group-body {
    padding: 14px 16px;
    background: #212427;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Controls Elementor */
.el-control {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.el-control-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.el-control-label {
    font-size: 11px;
    font-weight: 600;
    color: #a4afb7;
}

.el-control-input-text,
.el-control-textarea,
.el-control-select {
    width: 100%;
    background: #1e2023;
    border: 1px solid #34383c;
    border-radius: 3px;
    color: #ffffff;
    font-size: 12px;
    padding: 7px 10px;
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

.el-control-input-text:focus,
.el-control-textarea:focus,
.el-control-select:focus {
    border-color: #71d7f7;
}

/* Bộ nút căn lề (Alignment) */
.el-choose-group {
    display: flex;
    border: 1px solid #34383c;
    border-radius: 3px;
    overflow: hidden;
    background: #1e2023;
}

.el-choose-btn {
    flex: 1;
    padding: 6px 8px;
    background: none;
    border: none;
    border-right: 1px solid #34383c;
    color: #a4afb7;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.el-choose-btn:last-child {
    border-right: none;
}

.el-choose-btn:hover {
    color: #ffffff;
    background: #2a2d31;
}

.el-choose-btn.active {
    background: #34383c;
    color: #71d7f7;
}

/* Slider có ô số */
.el-slider-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.el-slider-range {
    flex: 1;
    -webkit-appearance: none;
    height: 4px;
    border-radius: 2px;
    background: #34383c;
    outline: none;
}

.el-slider-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #71d7f7;
    cursor: pointer;
    transition: transform 0.1s;
}

.el-slider-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.el-slider-num {
    width: 50px;
    background: #1e2023;
    border: 1px solid #34383c;
    border-radius: 3px;
    color: #ffffff;
    font-size: 11px;
    text-align: center;
    padding: 4px;
    outline: none;
}

/* Kích thước 4 hướng (Dimensions: Margin / Padding) kèm nút Móc xích 🔗 */
.el-dimensions-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
}

.el-dim-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.el-dim-input {
    width: 100%;
    background: #1e2023;
    border: 1px solid #34383c;
    border-radius: 3px;
    color: #ffffff;
    font-size: 11px;
    text-align: center;
    padding: 5px 2px;
    outline: none;
    box-sizing: border-box;
}

.el-dim-label {
    font-size: 9px;
    color: #6d7882;
    text-transform: uppercase;
}

.el-link-btn {
    width: 28px;
    height: 28px;
    background: #1e2023;
    border: 1px solid #34383c;
    border-radius: 3px;
    color: #71d7f7;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    align-self: flex-start;
    margin-top: 2px;
    transition: background 0.15s;
}

.el-link-btn.unlinked {
    color: #6d7882;
}

/* Color Picker */
.el-color-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.el-color-box {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.el-color-hex-input {
    flex: 1;
    background: #1e2023;
    border: 1px solid #34383c;
    border-radius: 3px;
    color: #ffffff;
    font-size: 11px;
    padding: 6px 8px;
    font-family: monospace;
    outline: none;
}

/* 4. THANH ĐIỀU HƯỚNG ĐÁY CỦA PANEL (BOTTOM TOOLBAR) */
#elementor-panel-footer {
    height: 50px;
    background: #1e2023;
    border-top: 1px solid #141517;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    flex-shrink: 0;
    z-index: 10;
}

.elementor-footer-tools {
    display: flex;
    align-items: center;
    gap: 2px;
}

.elementor-footer-tool-btn {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    color: #a4afb7;
    font-size: 14px;
    cursor: pointer;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.elementor-footer-tool-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.elementor-footer-tool-btn.active {
    color: #71d7f7;
    background: rgba(113, 215, 247, 0.15);
}

/* NÚT UPDATE XANH LÁ HUYỀN THOẠI CỦA ELEMENTOR */
#elementor-saver-publish-btn {
    background: #2ebd59;
    color: #ffffff;
    border: none;
    border-radius: 3px;
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(46, 189, 89, 0.4);
    transition: background 0.15s, transform 0.1s;
}

#elementor-saver-publish-btn:hover {
    background: #28a745;
    transform: translateY(-1px);
}

#elementor-saver-publish-btn:active {
    transform: translateY(0);
}

/* Nút ẩn/hiện bảng Panel (Toggle Handle) */
#elementor-panel-toggle-btn {
    position: fixed;
    top: 50%;
    left: 360px;
    transform: translateY(-50%);
    width: 20px;
    height: 48px;
    background: #1e2023;
    border: 1px solid #34383c;
    border-left: none;
    border-radius: 0 4px 4px 0;
    color: #a4afb7;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100001;
    transition: left 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s, background 0.15s;
}

body.elementor-editor-active #elementor-panel-toggle-btn {
    display: flex;
}

body.elementor-panel-collapsed #elementor-panel-toggle-btn {
    left: 0;
}

#elementor-panel-toggle-btn:hover {
    color: #ffffff;
    background: #26292c;
}

/* 5. CANVAS HANDLES: KHUNG THAO TÁC SECTION & WIDGET TRÊN WEB */

/* Khung viền khi rê chuột vào Section (Chỉ khi Quản trị viên kích hoạt Elementor) */
body.elementor-editor-active .elementor-section-wrapper {
    position: relative !important;
}

body.elementor-editor-active .elementor-section-wrapper:hover {
    outline: 2px solid #3b82f6 !important;
    outline-offset: -2px !important;
}

/* Thanh Section Handle trên đầu (Màu xanh dương: (+) (⠿) (✕)) */
.elementor-section-handle-bar {
    display: none !important;
}

body.elementor-editor-active .elementor-section-handle-bar {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    height: 24px;
    background: #3b82f6;
    border-radius: 3px 3px 0 0;
    display: none !important;
    align-items: center;
    padding: 0 4px;
    gap: 2px;
    z-index: 9998;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.elementor-editor-active .elementor-section-wrapper:hover > .elementor-section-handle-bar,
body.elementor-editor-active .elementor-section-handle-bar.active {
    display: flex !important;
}

.el-sec-btn {
    width: 20px;
    height: 20px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 11px;
    cursor: pointer;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.el-sec-btn:hover {
    background: rgba(0, 0, 0, 0.2);
}

.el-sec-drag-handle {
    cursor: grab;
}

/* Bút chì chỉnh sửa Widget (Pencil Handle ✏️) */
body.elementor-editor-active .elementor-widget-active-box {
    position: relative !important;
}

body.elementor-editor-active .elementor-widget-active-box:hover {
    outline: 1.5px solid #06b6d4 !important;
    outline-offset: 1px !important;
}

.elementor-widget-pencil-handle {
    display: none !important;
}

body.elementor-editor-active .elementor-widget-pencil-handle {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 24px;
    height: 24px;
    background: #06b6d4;
    color: #ffffff;
    border-radius: 50%;
    display: none !important;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s, background 0.15s;
}

body.elementor-editor-active .elementor-widget-pencil-handle:hover {
    background: #ff2851;
    transform: scale(1.15);
}

body.elementor-editor-active .elementor-widget-active-box:hover > .elementor-widget-pencil-handle,
body.elementor-editor-active .elementor-widget-pencil-handle.active {
    display: flex !important;
}

/* Khung Viền & Thẻ Nhãn Đang Chọn (Active Canvas Box) */
#elementor-canvas-overlay {
    position: absolute;
    border: 2px solid #3b82f6;
    border-radius: 3px;
    pointer-events: none;
    z-index: 99990;
    display: none;
    transition: top 0.08s ease-out, left 0.08s ease-out, width 0.08s ease-out, height 0.08s ease-out;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.6), 0 0 15px rgba(59, 130, 246, 0.35);
}

#elementor-canvas-overlay-tag {
    position: absolute;
    top: -22px;
    left: -2px;
    background: #3b82f6;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px 3px 0 0;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
}

/* 6. HỘP THÊM KHỐI MỚI (ADD NEW SECTION BOX) & BỘ CHỌN CẤU TRÚC CỘT */
.elementor-add-section-box {
    display: none !important;
}

body.elementor-editor-active .elementor-add-section-box {
    display: flex !important;
    margin: 40px auto;
    max-width: 900px;
    border: 2px dashed #34383c;
    border-radius: 6px;
    padding: 30px;
    background: rgba(38, 41, 44, 0.85);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: border-color 0.2s, background 0.2s;
}

body.elementor-editor-active .elementor-add-section-box:hover {
    border-color: #ff2851;
    background: rgba(38, 41, 44, 0.95);
}

.elementor-add-section-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.elementor-add-section-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: #ff2851;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 40, 81, 0.4);
    transition: transform 0.2s, background 0.2s;
}

.elementor-add-section-btn:hover {
    transform: scale(1.1);
    background: #e61c43;
}

.elementor-template-library-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: #495157;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, background 0.2s;
}

.elementor-template-library-btn:hover {
    transform: scale(1.1);
    background: #5d676f;
}

/* Bộ chọn cấu trúc cột khi bấm (+) */
.elementor-structure-picker {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.elementor-structure-picker.active {
    display: flex;
}

.elementor-structure-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #a4afb7;
    letter-spacing: 0.5px;
}

.elementor-structures-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.elementor-struct-item {
    width: 120px;
    height: 45px;
    background: #1e2023;
    border: 1px solid #34383c;
    border-radius: 4px;
    display: flex;
    gap: 3px;
    padding: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.elementor-struct-item:hover {
    border-color: #71d7f7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(113, 215, 247, 0.2);
}

.elementor-struct-item .struct-col {
    background: #34383c;
    border-radius: 2px;
    height: 100%;
    transition: background 0.15s;
}

.elementor-struct-item:hover .struct-col {
    background: #71d7f7;
}

/* 7. MENU CHUỘT PHẢI (RIGHT-CLICK CONTEXT MENU) */
#elementor-context-menu {
    position: fixed;
    background: #26292c;
    border: 1px solid #34383c;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    z-index: 100010;
    display: none;
    flex-direction: column;
    min-width: 180px;
    padding: 6px 0;
    font-size: 12px;
}

.el-context-item {
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e0e0e0;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.el-context-item:hover {
    background: #ff2851;
    color: #ffffff;
}

.el-context-item i {
    width: 14px;
    font-size: 13px;
}

.el-context-divider {
    height: 1px;
    background: #34383c;
    margin: 4px 0;
}

.el-context-item.danger:hover {
    background: #dc2626;
}

/* 8. CỬA SỔ ĐIỀU HƯỚNG CÂY THƯ MỤC (NAVIGATOR MODAL) */
#elementor-navigator-modal {
    position: fixed;
    top: 60px;
    right: 20px;
    width: 280px;
    max-height: 480px;
    background: #26292c;
    border: 1px solid #34383c;
    border-radius: 6px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
    z-index: 99995;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.elementor-navigator-header {
    height: 40px;
    background: #1e2023;
    border-bottom: 1px solid #141517;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #a4afb7;
    cursor: move;
}

.elementor-navigator-tree {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.el-nav-item {
    padding: 6px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    color: #cbd5e1;
    font-size: 11px;
    transition: background 0.15s;
}

.el-nav-item:hover {
    background: #34383c;
    color: #ffffff;
}

.el-nav-item.active {
    background: rgba(113, 215, 247, 0.15);
    color: #71d7f7;
    font-weight: 600;
}

.el-nav-item-name {
    display: flex;
    align-items: center;
    gap: 6px;
}

.el-nav-actions {
    display: flex;
    gap: 6px;
    opacity: 0.6;
}

.el-nav-item:hover .el-nav-actions {
    opacity: 1;
}

/* 9. KHUNG VIEWPORT THIẾT KẾ RESPONSIVE (TABLET & MOBILE FRAMES) */
body.elementor-device-tablet {
    background: #121416 !important;
}

body.elementor-device-tablet #elementor-canvas-wrapper {
    max-width: 768px !important;
    margin: 25px auto !important;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.9) !important;
    border: 8px solid #26292c !important;
    border-radius: 12px !important;
    overflow-x: hidden !important;
    background: #022c22 !important;
}

body.elementor-device-mobile {
    background: #121416 !important;
}

body.elementor-device-mobile #elementor-canvas-wrapper {
    max-width: 375px !important;
    margin: 25px auto !important;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.9) !important;
    border: 10px solid #26292c !important;
    border-radius: 20px !important;
    overflow-x: hidden !important;
    background: #022c22 !important;
}

/* Đường kẻ chỉ báo vị trí thả Widget (Drop Indicator) */
.elementor-drop-indicator-line {
    height: 3px;
    background: #3b82f6;
    margin: 4px 0;
    border-radius: 2px;
    box-shadow: 0 0 8px #3b82f6;
    pointer-events: none;
}


/* Panel Element Inspector */
#studio-element-inspector {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 320px;
    max-height: calc(100vh - 100px);
    background: rgba(15, 23, 42, 0.96);
    border: 1.5px solid rgba(255, 208, 38, 0.6);
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(4, 120, 87, 0.35);
    backdrop-filter: blur(16px);
    z-index: 99997;
    display: none;
    flex-direction: column;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #f8fafc;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

#studio-element-inspector.active {
    display: flex;
    animation: inspectorSlideIn 0.3s ease-out;
}

@keyframes inspectorSlideIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.inspector-header {
    padding: 10px 14px;
    background: linear-gradient(135deg, #022c22, #064e3b);
    border-bottom: 1px solid rgba(255, 208, 38, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: move;
}

.inspector-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    color: #ffd026;
}

.inspector-target-tag {
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.75rem;
    color: #ffffff;
}

.inspector-close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
}

.inspector-close-btn:hover {
    color: #ffffff;
}

.inspector-body {
    padding: 12px 14px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.inspector-section {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px;
}

.inspector-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #fef08a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.inspector-section-title i {
    color: #ffd026;
    font-size: 0.85rem;
}

.inspector-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.inspector-row:last-child {
    margin-bottom: 0;
}

.inspector-row label {
    font-size: 0.72rem;
    color: #94a3b8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inspector-color-pick-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.inspector-color-pick-wrap input[type="color"] {
    width: 34px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: none;
    cursor: pointer;
    padding: 0;
}

.inspector-hex-input {
    flex: 1;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #f8fafc;
    font-size: 0.75rem;
    padding: 5px 8px;
    font-family: monospace;
}

.inspector-color-presets {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    transition: transform 0.15s ease;
}

.color-dot:hover {
    transform: scale(1.2);
    border-color: #ffd026;
}

.inspector-btn-group {
    display: flex;
    gap: 4px;
}

.inspector-btn-opt {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 5px;
    color: #e2e8f0;
    padding: 5px 4px;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.inspector-btn-opt:hover, .inspector-btn-opt.active {
    background: #047857;
    color: #ffffff;
    border-color: #ffd026;
}

.inspector-footer {
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 8px;
}

/* Thanh tô màu nhanh trên Selection Bubble */
.bubble-color-picker {
    position: relative;
    display: inline-flex;
}

.bubble-color-picker input[type="color"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* ==========================================================================
   15. THANH THAO TÁC NHANH TRÊN MỌI KHUNG ẢNH (IMAGE QUICK ACTION BAR)
   ========================================================================== */
.studio-img-wrapper {
    position: relative;
    transition: outline 0.2s ease;
}

body.studio-mode-on .studio-img-wrapper:hover {
    outline: 2px solid #ffd026 !important;
}

.studio-img-quick-bar {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid #ffd026;
    border-radius: 20px;
    padding: 3px 8px;
    display: none;
    align-items: center;
    gap: 4px;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
}

body.studio-mode-on .studio-img-wrapper:hover .studio-img-quick-bar {
    display: flex;
}

.studio-img-quick-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8fafc;
    border-radius: 12px;
    padding: 3px 7px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: all 0.2s;
    white-space: nowrap;
}

.studio-img-quick-btn:hover {
    background: #047857;
    color: #ffd026;
    border-color: #ffd026;
}

.studio-img-quick-btn.btn-del:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #f87171;
}

/* ==========================================================================
   16. BẢNG QUẢN LÝ ĐA PHƯƠNG TIỆN MEDIA & IMAGE STUDIO MODAL
   ========================================================================== */
.media-manager-tabs {
    display: flex;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 10px;
    margin-bottom: 14px;
    overflow-x: auto;
}

.media-tab-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 7px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s;
    white-space: nowrap;
}

.media-tab-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.media-tab-btn.active {
    background: linear-gradient(135deg, #047857, #065f46);
    border-color: #ffd026;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(4, 120, 87, 0.4);
}

.media-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    max-height: 480px;
    overflow-y: auto;
    padding: 4px;
}

.media-item-card {
    background: #1e293b;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.25s ease;
    cursor: grab;
}

.media-item-card:hover {
    border-color: #ffd026;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.media-item-card.dragging {
    opacity: 0.5;
    border-color: #34d399;
    cursor: grabbing;
}

.media-item-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: #0f172a;
}

.media-item-info {
    padding: 8px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.media-item-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.media-item-desc {
    font-size: 0.7rem;
    color: #94a3b8;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.media-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: rgba(15, 23, 42, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.media-action-icon-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 3px;
    transition: color 0.2s;
}

.media-action-icon-btn:hover {
    color: #ffd026;
}

.media-action-icon-btn.btn-del:hover {
    color: #ef4444;
}

.media-drag-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(2, 44, 34, 0.85);
    color: #ffd026;
    border: 1px solid #ffd026;
    border-radius: 4px;
    padding: 2px 5px;
    font-size: 0.65rem;
    font-weight: 800;
}



/* ==========================================================================
   18. ĐẦY ĐỦ 30+ WIDGETS & TOOLS ELEMENTOR (ELEMENTOR MEGA BUILDER PRO 3.5)
   ========================================================================== */

/* 1. Tabs Widget */
.elementor-widget-tabs {
    margin: 20px 0;
    border: 1px solid rgba(255, 208, 38, 0.2);
    border-radius: 8px;
    overflow: hidden;
    background: #022c22;
}
.el-tabs-nav {
    display: flex;
    background: #064e3b;
    border-bottom: 1px solid rgba(255, 208, 38, 0.3);
}
.el-tab-header {
    padding: 12px 20px;
    color: #cbd5e1;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.el-tab-header:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}
.el-tab-header.active {
    color: #ffd026;
    border-bottom-color: #ffd026;
    background: rgba(255, 208, 38, 0.1);
}
.el-tabs-content {
    padding: 20px;
}
.el-tab-pane {
    display: none;
    color: #e2e8f0;
    line-height: 1.6;
}
.el-tab-pane.active {
    display: block;
    animation: elFadeIn 0.3s ease;
}

/* 2. Accordion / FAQ Widget */
.elementor-widget-accordion {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.el-accordion-item {
    border: 1px solid rgba(255, 208, 38, 0.25);
    border-radius: 8px;
    overflow: hidden;
    background: #022c22;
}
.el-accordion-title {
    padding: 14px 18px;
    font-weight: 700;
    font-size: 14px;
    color: #ffd026;
    background: #064e3b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
}
.el-accordion-title:hover {
    background: #047857;
}
.el-accordion-title i {
    font-size: 12px;
    transition: transform 0.25s ease;
}
.el-accordion-item.active .el-accordion-title i {
    transform: rotate(180deg);
}
.el-accordion-body {
    display: none;
    padding: 16px 18px;
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.el-accordion-item.active .el-accordion-body {
    display: block;
    animation: elFadeIn 0.25s ease;
}

/* 3. Star Rating Widget */
.elementor-widget-star-rating {
    margin: 15px 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.el-stars {
    display: flex;
    gap: 3px;
    color: #ffd026;
    font-size: 18px;
}
.el-rating-title {
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 600;
}
.el-rating-score {
    background: #ffd026;
    color: #022c22;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}

/* 4. Progress Bar Widget */
.elementor-widget-progress-bar {
    margin: 18px 0;
}
.el-progress-title-wrap {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 6px;
}
.el-progress-track {
    height: 10px;
    background: #1e293b;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.el-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #047857, #ffd026);
    border-radius: 5px;
    transition: width 1s ease-in-out;
}

/* 5. Counter Widget */
.elementor-widget-counter {
    text-align: center;
    padding: 20px 15px;
    background: #022c22;
    border: 1.5px solid rgba(255, 208, 38, 0.3);
    border-radius: 10px;
    margin: 15px 0;
}
.el-counter-number {
    font-size: 38px;
    font-weight: 900;
    color: #ffd026;
    font-family: 'Playfair Display', serif;
    margin-bottom: 4px;
}
.el-counter-title {
    font-size: 13px;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 6. Icon Box & Image Box Widgets */
.elementor-widget-icon-box {
    text-align: center;
    padding: 24px 18px;
    background: #022c22;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin: 15px 0;
    transition: all 0.25s ease;
}
.elementor-widget-icon-box:hover {
    border-color: #ffd026;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}
.el-icon-box-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px auto;
    background: rgba(4, 120, 87, 0.3);
    border: 1.5px solid #ffd026;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffd026;
}
.el-icon-box-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
}
.el-icon-box-desc {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0;
}

/* 7. Icon List Widget */
.elementor-widget-icon-list {
    margin: 15px 0;
    list-style: none;
    padding: 0;
}
.el-icon-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #e2e8f0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.el-icon-list-item i {
    color: #34d399;
    font-size: 15px;
    flex-shrink: 0;
}

/* 8. Social Icons Widget */
.elementor-widget-social-icons {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    align-items: center;
}
.el-social-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    text-decoration: none;
    transition: transform 0.2s;
}
.el-social-icon-btn:hover {
    transform: scale(1.15);
}
.el-soc-zalo { background: #0068ff; }
.el-soc-fb { background: #1877f2; }
.el-soc-yt { background: #ff0000; }
.el-soc-tiktok { background: #010101; border: 1px solid #333; }

/* 9. Alert Widget */
.elementor-widget-alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    line-height: 1.5;
}
.el-alert-info {
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid #0ea5e9;
    color: #bae6fd;
}
.el-alert-warning {
    background: rgba(255, 208, 38, 0.15);
    border: 1px solid #ffd026;
    color: #fef08a;
}
.el-alert-success {
    background: rgba(52, 211, 153, 0.15);
    border: 1px solid #34d399;
    color: #a7f3d0;
}

/* 10. Doctor Profile Card Widget */
.elementor-widget-doctor-card {
    background: linear-gradient(135deg, #022c22 0%, #064e3b 100%);
    border: 1.5px solid #ffd026;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.el-doctor-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #ffd026;
    margin: 0 auto 15px auto;
    overflow: hidden;
}
.el-doctor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.el-doctor-name {
    color: #ffd026;
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 4px 0;
}
.el-doctor-title {
    color: #34d399;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.el-doctor-desc {
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

/* 11. Bảng So Sánh Đông Y vs Tây Y Widget (Comparison Table) */
.elementor-widget-comparison {
    margin: 25px 0;
    border: 1.5px solid rgba(255, 208, 38, 0.3);
    border-radius: 10px;
    overflow: hidden;
    background: #022c22;
}
.el-comp-row {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.el-comp-row:last-child {
    border-bottom: none;
}
.el-comp-header {
    background: #064e3b;
    font-weight: 800;
    font-size: 14px;
}
.el-comp-cell {
    flex: 1;
    padding: 12px 16px;
    font-size: 13px;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.el-comp-cell.criteria {
    flex: 0.8;
    background: rgba(0, 0, 0, 0.2);
    font-weight: 700;
    color: #ffd026;
}

/* 12. Working Hours & Hotline Box */
.elementor-widget-working-hours {
    padding: 20px;
    background: #022c22;
    border: 1.5px solid #ffd026;
    border-radius: 10px;
    margin: 20px 0;
}
.el-wh-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: #e2e8f0;
}
.el-wh-item:last-child {
    border-bottom: none;
}
.el-wh-item strong {
    color: #ffd026;
}

/* 13. MODAL THƯ VIỆN KHỐI MẪU (TEMPLATE BLOCKS LIBRARY) */
#elementor-template-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 100010;
    display: none;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
#elementor-template-modal.active {
    display: flex;
}
.el-template-dialog {
    width: 900px;
    max-width: 95vw;
    height: 80vh;
    background: #1e2023;
    border: 1px solid #34383c;
    border-radius: 8px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.el-template-dialog-header {
    height: 55px;
    padding: 0 20px;
    background: #26292c;
    border-bottom: 1px solid #34383c;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}
.el-template-dialog-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.el-template-card {
    background: #26292c;
    border: 1px solid #34383c;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.2s;
}
.el-template-card:hover {
    border-color: #ff2851;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.el-template-preview {
    height: 140px;
    background: #022c22;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    text-align: center;
    color: #ffd026;
    font-size: 14px;
    font-weight: 700;
    border-bottom: 1px solid #34383c;
}
.el-template-footer {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #e0e0e0;
    font-size: 13px;
    font-weight: 600;
}
.el-template-insert-btn {
    background: #ff2851;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}
.el-template-insert-btn:hover {
    background: #e61c43;
}

/* 14. ANIMATION KEYFRAMES (MOTION EFFECTS) */
@keyframes elFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes elSlideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes elZoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes elPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}
.el-animated-fadeIn { animation: elFadeIn 0.8s ease forwards; }
.el-animated-slideInUp { animation: elSlideInUp 0.8s ease forwards; }
.el-animated-zoomIn { animation: elZoomIn 0.8s ease forwards; }
.el-animated-pulse { animation: elPulse 2s infinite; }

/* ==========================================================================
   15. THƯ VIỆN CSS CHO 70 WIDGETS ELEMENTOR EXPANDED (PRO SUITE)
   ========================================================================== */

/* Flip Box (Thẻ lật 3D) */
.elementor-widget-flipbox {
    perspective: 1000px;
    margin: 20px 0;
}
.el-flipbox-inner {
    position: relative;
    width: 100%;
    min-height: 240px;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    border-radius: 12px;
}
.elementor-widget-flipbox:hover .el-flipbox-inner {
    transform: rotateY(180deg);
}
.el-flipbox-front, .el-flipbox-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}
.el-flipbox-front {
    background: linear-gradient(135deg, #022c22, #064e3b);
    border: 1.5px solid #ffd026;
    color: #ffd026;
}
.el-flipbox-back {
    background: linear-gradient(135deg, #064e3b, #047857);
    border: 1.5px solid #ffd026;
    color: #ffffff;
    transform: rotateY(180deg);
}

/* Call to Action (CTA Banner) */
.elementor-widget-cta {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    padding: 40px 30px;
    background: linear-gradient(135deg, #022c22, #0f172a);
    border: 1.5px solid #ffd026;
    text-align: center;
    margin: 25px 0;
}
.el-cta-content {
    position: relative;
    z-index: 2;
}

/* Countdown Timer */
.elementor-widget-countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}
.el-countdown-item {
    background: #1e2023;
    border: 1.5px solid #ffd026;
    border-radius: 8px;
    padding: 12px 18px;
    min-width: 65px;
    text-align: center;
}
.el-countdown-num {
    font-size: 28px;
    font-weight: 800;
    color: #ffd026;
    font-family: 'Playfair Display', serif;
}
.el-countdown-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #cbd5e1;
    margin-top: 4px;
}

/* Price List & Table */
.elementor-widget-pricelist {
    margin: 20px 0;
}
.el-pricelist-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.15);
}
.el-pricelist-title {
    font-weight: 700;
    color: #ffffff;
    font-size: 15px;
}
.el-pricelist-dots {
    flex: 1;
    border-bottom: 1px dotted rgba(255, 208, 38, 0.4);
    margin: 0 12px;
}
.el-pricelist-price {
    font-weight: 800;
    color: #ffd026;
    font-size: 16px;
}
.elementor-widget-pricingtable {
    background: #022c22;
    border: 2px solid #ffd026;
    border-radius: 14px;
    padding: 30px 20px;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Timeline */
.elementor-widget-timeline {
    position: relative;
    padding: 20px 0;
    margin: 20px 0;
}
.el-timeline-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    position: relative;
}
.el-timeline-node {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffd026;
    color: #022c22;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(255, 208, 38, 0.6);
}
.el-timeline-content {
    background: #1e2023;
    border: 1px solid #34383c;
    border-radius: 8px;
    padding: 14px 18px;
    flex: 1;
}

/* Before After Image Comparison */
.elementor-widget-beforeafter {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 25px auto;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #ffd026;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.el-ba-half {
    position: relative;
    height: 260px;
}
.el-ba-half img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.el-ba-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(2, 44, 34, 0.85);
    color: #ffd026;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #ffd026;
}

/* Step By Step Guide */
.elementor-widget-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}
.el-step-item {
    background: #1e2023;
    border: 1px solid #34383c;
    border-radius: 8px;
    padding: 18px;
    text-align: center;
    position: relative;
}
.el-step-number {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: #047857;
    color: #ffd026;
    font-weight: 800;
    line-height: 32px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 1.5px solid #ffd026;
}

/* Floating Hotline Phone Widget */
.elementor-widget-hotline-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 40px;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45);
    font-weight: 700;
    font-size: 15px;
    margin: 15px 0;
    border: 2px solid #ffd026;
}

/* Herbal Recipe Card */
.elementor-widget-herbal-recipe {
    background: #022c22;
    border: 1.5px solid #34d399;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}
.el-herb-tag {
    display: inline-block;
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 6px;
    margin-bottom: 6px;
}

/* ==========================================================================
   16. BỘ CÔNG CỤ THIẾT KẾ NÂNG CAO (ADVANCED DESIGN TOOLS SUITE)
   ========================================================================== */

/* Toggle Switch Widget Control */
.el-toggle-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
}
.el-switch-label {
    font-size: 11px;
    color: #cbd5e1;
    font-weight: 500;
}
.el-switch-btn {
    position: relative;
    width: 36px;
    height: 20px;
    background: #34383c;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
}
.el-switch-btn.active {
    background: #2ebd59;
}
.el-switch-handle {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.2s;
}
.el-switch-btn.active .el-switch-handle {
    transform: translateX(16px);
}

/* Lưới căn lề Canvas Grid Guide Overlay */
#elementor-grid-guide-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 99980;
    display: none;
}
#elementor-grid-guide-overlay.active {
    display: block;
}
.el-guide-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 15px;
    padding: 0 15px;
    box-sizing: border-box;
}
.el-guide-col {
    height: 100%;
    background: rgba(255, 40, 81, 0.05);
    border-left: 1px dashed rgba(255, 40, 81, 0.25);
    border-right: 1px dashed rgba(255, 40, 81, 0.25);
}

/* Cửa sổ Lịch sử trực quan (Visual History Modal) */
#elementor-history-modal {
    position: fixed;
    top: 60px;
    left: 380px;
    width: 290px;
    max-height: 420px;
    background: #26292c;
    border: 1px solid #34383c;
    border-radius: 8px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
    z-index: 99995;
    display: none;
    flex-direction: column;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
#elementor-history-modal.active {
    display: flex;
}
.el-history-header {
    height: 38px;
    background: #1e2023;
    border-bottom: 1px solid #141517;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #a4afb7;
}
.el-history-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}
.el-history-item {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: #cbd5e1;
    cursor: pointer;
    transition: background 0.15s;
    border-left: 3px solid transparent;
}
.el-history-item:hover {
    background: #34383c;
    color: #ffffff;
}
.el-history-item.active {
    background: rgba(46, 189, 89, 0.15);
    color: #2ebd59;
    border-left-color: #2ebd59;
    font-weight: 600;
}
.el-history-time {
    font-size: 9px;
    color: #64748b;
    margin-left: auto;
}

/* Responsive Hidden Utility Classes */
.elementor-hidden-desktop {
    display: none !important;
}
@media (max-width: 991px) {
    .elementor-hidden-tablet {
        display: none !important;
    }
}
@media (max-width: 767px) {
    .elementor-hidden-mobile {
        display: none !important;
    }
}

/* ==========================================================================
   ADMIN LOGIN MODAL & SECURITY CONTROLS
   ========================================================================== */
#studio-admin-login-modal {
    z-index: 999999 !important;
}

#studio-admin-login-modal .studio-modal-window {
    background: #0f172a;
    border-radius: 16px;
    overflow: hidden;
    animation: studioModalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes studioModalPop {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

#btn-admin-logout:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
}


/* Nút quay về Bảng Quản Trị Admin */
#studio-return-admin-btn {
    display: none;
    transition: all 0.25s ease;
}
body.studio-mode-on #studio-return-admin-btn,
body.elementor-editor-active #studio-return-admin-btn,
html.studio-mode-on #studio-return-admin-btn {
    display: inline-flex !important;
}
#studio-return-admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 208, 38, 0.4);
    background: linear-gradient(135deg, #047857, #064e3b);
}

#studio-return-admin-btn {
    display: none !important;
}
body.studio-mode-on.elementor-editor-active #studio-return-admin-btn {
    display: inline-flex !important;
}
