/* ---- Base & Variables ---- */
:root {
    --bg-main: #FAFAFB;
    --text-main: #1C1C1C;
    --text-muted: #ADB5BD;
    --border-color: #E5E5EA;
    --brand-dark: #4A3434;
    --brand-yellow: #FFBB00;
    --brand-pink: #FF8BA7;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ---- Header ---- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 48px;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 20px;
    color: var(--brand-dark);
}

.logo-icon {
    width: 28px;
    height: 28px;
    background-color: var(--brand-dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--brand-yellow);
    font-weight: bold;
    font-size: 26px;
}

.logo-icon.faded {
    opacity: 0.5;
}

.logo-text.faded {
    color: var(--text-muted);
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 32px;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-dark);
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ---- Sidebar Logo ---- */
.dash-logo {
    padding: 5px 18px;
}

.dash-logo .logo-link {
    display: flex;
    align-items: center;
    /* vertically center text with image */
    gap: 12px;
}

.dash-logo .logo-link img {
    display: block;
    width: 55px;
    /* ensure consistent size */
    height: 55px;
    object-fit: contain;
}

.dash-logo .logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--brand-dark);
    line-height: 1;
    /* keep text vertically centered */
}

.auth-buttons {
    display: flex;
    gap: 12px;
}

/* ---- Buttons ---- */
.btn {
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    border: none;
    transition: 0.2s ease;
}

.btn-dark {
    background-color: var(--brand-dark);
    color: var(--white);
}

.btn-dark:hover {
    background-color: #2D2520;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--brand-dark);
}

.btn-outline:hover {
    background-color: #f5f5f5;
}

.btn-dark-sm {
    background-color: var(--brand-dark);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 12px;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* ---- Layout & Container ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
}

.breadcrumb {
    font-size: 12px;
    color: #4A3434;
    margin-bottom: 24px;
}

.breadcrumb a {
    color: var(--text-main);
}

/* ---- Services Section ---- */
.services-section {
    margin-bottom: 48px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--brand-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.service-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: 0.2s ease;
}

.service-card:hover {
    border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.service-card i {
    font-size: 24px;
    color: var(--text-muted);
}

.service-card h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-dark);
    margin-bottom: 2px;
}

.service-card p {
    font-size: 11px;
    color: var(--text-muted);
}

/* ---- Filter Bar ---- */
.filter-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 48px;
}

.filter-bar {
    display: flex;
    align-items: center;
    background-color: var(--white);
    border: 1px solid #373A40;
    border-radius: 30px;
    padding: 10px 66px;
    font-size: 16px;
    font-weight: 500;
}

.filter-item {
    padding: 8px 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* Stacked chevrons for small filter icon */
.stack-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
}

.stack-chevrons {
    width: 14px;
    height: 16px;
    display: block;
    color: var(--text-muted);
}

.filter-item .stack-chevrons {
    vertical-align: middle;
}

.filter-divider {
    width: 1px;
    height: 16px;
    background-color: var(--border-color);
}

.toggle-switch {
    width: 32px;
    height: 18px;
    background-color: var(--border-color);
    border-radius: 10px;
    position: relative;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* ---- Editor Sections ---- */
.editors-section {
    margin-bottom: 48px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.category-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-muted);
    margin: 0 auto;
}

.category-title span {
    color: var(--brand-yellow);
}

.carousel-container {
    position: relative;
}

.editors-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, calc(25% - 12px));
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
}

.editors-grid::-webkit-scrollbar {
    display: none;
}

/* Chrome */

.editor-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Highlight cho các Editor đang bật ASAP */
.editor-card.is-asap {
    border: 2px solid rgb(153, 255, 237);
}

.room-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.editor-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
}

.editor-profile {
    display: flex;
    align-items: center;
    gap: 8px;
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #E2D9D1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
    color: var(--brand-dark);
    border: 2px solid var(--white);
}

.avatar.dark {
    background-color: #2D2520;
    color: white;
}

.avatar.gray {
    background-color: #BDBDBD;
    color: white;
}

.avatar.white {
    background-color: white;
    border: 1px solid var(--border-color);
}

.logo-icon-sm {
    color: var(--brand-yellow);
    font-size: 14px;
}

.name-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.name {
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.flag {
    font-size: 10px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
    margin-top: 8px;
}

.flag img {
    width: 16px;
    height: 12px;
    border-radius: 2px;
    object-fit: cover;
}

.rating-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.text-yellow {
    color: var(--brand-yellow);
}

.badge-auto {
    border: 1.8px solid #373A40;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 2px;
    color: #333;
}

.price-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 11px;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    /* divider line */
    padding-top: 10px;
    gap: 8px;
    height: 20px;
}

.tag-pink {
    background-color: #FFE5EC;
    color: #FF4D79;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
}

.price {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}

.price strong {
    color: var(--brand-dark);
    font-size: 13px;
    line-height: 1;
}

/* Carousel Button */
.carousel-btn {
    position: absolute;
    top: 50%;
    right: -16px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
}

/* ---- Floating Action Button ---- */
.fab {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 40px;
    height: 40px;
    background-color: var(--brand-dark);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

/* ---- Footer (Updated) ---- */
.site-footer {
    justify-content: center;
    /* Đẩy nội dung vào giữa */
    width: 100%;
    padding-bottom: 40px;
    margin-top: 60px;
    /* Khoảng cách với nội dung phía trên */
}

.footer-container {
    width: 100%;
    max-width: 1200px;
    /* Cùng kích thước với .container ở trên */
    margin: 0 24px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    /* Đường kẻ ngang mỏng */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Dùng filter và opacity để làm logo biến thành màu xám nhạt giống hệt ảnh */
    opacity: 0.25;
    filter: grayscale(100%);
}

.footer-logo .logo-icon {
    width: 28px;
    height: 28px;
    background-color: #40362e;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #F7B731;
    font-weight: 800;
    font-size: 16px;
}

.footer-logo .logo-text {
    font-weight: 700;
    font-size: 20px;
    color: var(--brand-dark);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 12px;
    font-weight: 500;
    color: #716965;
    /* Màu xám hơi ngả nâu nhạt */
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--brand-dark);
}

/* =======================================
   UTILITIES
   ======================================= */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: #4A3434;
}

.mt-20 {
    margin-top: 20px;
}

.mt-auto {
    margin-top: auto;
}

/* =======================================
   HERO SECTION
   ======================================= */
.hero-section {
    margin-bottom: 32px;
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =======================================
   TRENDING SECTION
   ======================================= */
.trending-section {
    margin-bottom: 60px;
}

.section-title-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-dark);
}

.section-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

.trending-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    /* Cột lớn bên trái gấp đôi cột nhỏ */
    grid-auto-rows: 150px;
    /* Cố định chiều cao mỗi hàng */
    gap: 16px;
}

.trend-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.trend-item.large {
    grid-column: span 1;
    grid-row: span 2;
    /* Hình lớn chiếm 2 dòng */
}

.trend-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.trend-item:hover img {
    transform: scale(1.05);
}

.trend-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, transparent 40%, rgba(0, 0, 0, 0.3) 100%);
}

.trend-overlay {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    color: var(--white);
}

.trend-overlay h3 {
    font-size: 15px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.trend-overlay p {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 4px;
}

/* =======================================
   FEATURED EDITORS (Khối màu vàng)
   ======================================= */
.featured-editors-wrapper {
    background-color: #FEF7DB;
    /* Màu nền vàng nhạt */
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 60px;
    text-align: center;
}

.featured-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 24px;
}

.editor-card.featured {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* =======================================
   BỔ SUNG VÀ GHI ĐÈ CARD AVATAR
   ======================================= */
/* Đẩy avatar nổi lên đè vào ảnh nền giống như thiết kế */
.editor-card .editor-profile {
    margin-top: -28px;
    position: relative;
    z-index: 5;
}

/* Style cho avatar là ảnh thật (dành cho các card featured) */
.avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--white);
    background-color: #E2D9D1;
    object-fit: cover;
}

/* Tinh chỉnh vị trí cho các badge trong thẻ featured */
.auto-accept-row {
    margin-top: -10px;
}

.badge-auto.text-yellow {
    border-color: var(--brand-yellow);
    color: var(--brand-dark);
    font-weight: 600;
}

/* =======================================
   SINGLE EXPOSURE DETAIL PAGE
   ======================================= */

.text-main {
    color: var(--text-main);
    font-weight: 500;
}

/* Detail Hero Layout */
.detail-hero {
    display: flex;
    gap: 48px;
    margin-bottom: 48px;
    align-items: flex-start;
}

.detail-info {
    flex: 0 0 40%;
}

.detail-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.detail-title i {
    font-size: 28px;
    font-weight: normal;
}

.detail-desc {
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 8px;
    line-height: 1.6;
}

.show-more {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    display: inline-block;
    margin-bottom: 32px;
}

/* Accordion */
.accordion {
    border-top: 1px solid var(--border-color);
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.accordion-header {
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-dark);
    cursor: pointer;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    font-size: 13px;
    color: var(--text-muted);
}

.accordion-item.active .accordion-content {
    max-height: 200px;
    /* Chiều cao mở rộng */
    padding-bottom: 16px;
}

.accordion-content ul {
    list-style-type: disc;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Before/After Slider */
.detail-slider-wrapper {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    height: 400px;
}

.ba-slider {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: col-resize;
    touch-action: none; /* Ngăn cuộn trang khi vuốt trên điện thoại */
}

.ba-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ba-before-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    /* Khởi tạo ở mức 50% */
    height: 100%;
    overflow: hidden;
    border-right: 2px solid var(--white);
}

.ba-before {
    width: 200%;
    /* Fix width để ảnh không bị bóp méo khi container thu nhỏ */
    max-width: none;
}

.ba-handle {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    transform: translateX(-50%);
    pointer-events: none;
    /* Tránh cản trở thao tác kéo của chuột */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ba-handle-line {
    width: 2px;
    height: 100%;
    background-color: var(--white);
    position: absolute;
}

.ba-handle-btn {
    width: 32px;
    height: 32px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    color: var(--text-main);
    font-size: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.ba-label {
    position: absolute;
    top: 16px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
}

.label-before {
    left: 16px;
}

.ba-editor-overlay {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 11px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    padding: 10px;
    border-radius: 8px;
}

.ba-editor-overlay img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid white;
}

/* Matches Grid (Thay vì cuộn ngang, nó sẽ bẻ dòng) */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.results-header h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--brand-dark);
}

.sort-dropdown select {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    font-size: 13px;
    color: var(--text-main);
    outline: none;
    cursor: pointer;
    appearance: none;
}

.sort-dropdown {
    position: relative;
}

.sort-dropdown::after {
    content: '▼';
    font-size: 9px;
    position: absolute;
    right: 12px;
    top: 12px;
    pointer-events: none;
    color: var(--text-muted);
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px 16px;
    margin-bottom: 60px;
}

/* =======================================
   PROFILE PAGE (TRUONGTT)
   ======================================= */

.profile-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: flex-start;
}

/* --- Sidebar: Profile Card --- */
.profile-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    position: relative;
    margin-bottom: 32px;
}

.profile-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.profile-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.profile-avatar-wrap {
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #F7B731, #FF8BA7);
    /* Viền glow */
}

.profile-avatar-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--white);
}

.profile-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
}

.profile-badge-auto {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #FEF7DB;
    color: var(--brand-yellow);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
}

.profile-badge-auto .dot {
    width: 6px;
    height: 6px;
    background-color: var(--brand-yellow);
    border-radius: 50%;
}

.profile-rating {
    font-size: 14px;
    margin-bottom: 24px;
}

.profile-rating strong {
    color: var(--text-main);
}

.profile-stats {
    display: flex;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-right: 1px solid var(--border-color);
    font-size: 11px;
}

.stat-item:last-child {
    border-right: none;
}

.stat-lbl {
    color: var(--text-muted);
}

.stat-val {
    font-weight: 600;
}

/* --- Sidebar: Reviews --- */
.review-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.filter-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-group label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.filter-group select {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-main);
    outline: none;
    background: var(--white);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.review-item {
    display: flex;
    gap: 12px;
}

.review-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #E5E5EA;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}

.review-content {
    flex: 1;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.reviewer-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-dark);
}

.review-date {
    font-size: 11px;
    color: var(--text-muted);
}

.review-stars {
    font-size: 11px;
    margin-bottom: 6px;
}

.review-text {
    font-size: 13px;
    color: var(--brand-dark);
    line-height: 1.5;
}

.btn-next {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

/* --- Main Content: Tabs & Grid --- */
.service-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
    gap: 24px;
}

.tab-item {
    padding: 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-item.active {
    color: var(--brand-dark);
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--brand-yellow);
    border-radius: 3px 3px 0 0;
}

.tab-item .badge {
    background: var(--brand-yellow);
    color: var(--white);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 12px;
}

.tab-item .badge.gray {
    background: #E5E5EA;
    color: var(--text-muted);
}

.profile-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* --- Service Card --- */
.srv-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.srv-img-area {
    height: 200px;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

/* Re-use .ba-slider from previous CSS, just ensure it fills the area */
.srv-img-area .ba-slider {
    height: 100%;
    border-radius: 12px 12px 0 0;
}

.srv-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.srv-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.srv-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.whats-included {
    font-size: 11px;
    color: var(--brand-yellow);
    font-weight: 500;
}

.srv-price {
    text-align: right;
    display: flex;
    flex-direction: column;
}

.srv-price strong {
    font-size: 18px;
    color: var(--brand-dark);
}

.srv-price span {
    font-size: 11px;
    color: var(--text-muted);
}

.srv-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid #f0f0f0;
    padding-top: 16px;
}

.srv-meta {
    display: flex;
    gap: 24px;
    font-size: 12px;
    color: var(--brand-dark);
    font-weight: 500;
}

.meta-lbl {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: normal;
    margin-bottom: 2px;
    display: block;
}

/* =======================================
   DASHBOARD LAYOUT (image_9cd2fa)
   ======================================= */

.dashboard-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background-color: var(--white);
}

/* --- Utilities --- */
.w-100 {
    width: 100%;
}

.mt-10 {
    margin-top: 10px;
}

.btn-yellow {
    background-color: var(--brand-yellow);
    color: var(--white);
    border: none;
}

.btn-yellow:hover {
    background-color: #E5A82D;
}

/* --- SIDEBAR --- */
.dash-sidebar {
    width: 250px;
    background-color: #FFFFFF;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 0px 16px 16px 25px;
    flex-shrink: 0;
    height: 100%;
}

.dash-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 25px;
    color: var(--brand-dark);
    padding-left: 8px;
    font-family: 'DM Sans', sans-serif;
}

.logo-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.dash-sidebar-actions {
    margin-bottom: 24px;
}

.dash-progress-box {
    border: 1px solid #C5C5FC;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 24px;
    background-color: var(--white);
}

.progress-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--brand-dark);
    margin-bottom: 8px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background-color: #E5E5EA;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--brand-yellow);
    border-radius: 2px;
}

.dash-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    font-size: 16px;
    font-weight: 400;
    color: var(--brand-dark);
    border-radius: 6px;
    cursor: pointer;
}

.nav-item:hover {
    background-color: #EAEAEA;
}

.nav-item.active {
    font-weight: 500;
    background-color: #EAEAEA;
    position: relative;
    border-right: 3px solid #F5C84A;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: #4A90E2;
    border-radius: 0 4px 4px 0;
}

.nav-sub {
    padding-left: 42px;
    display: none;
    flex-direction: column;
    margin-top: -4px;
    margin-bottom: 8px;
}

/* Chỉ hiện nav-sub khi nav-item liền trước nó đang active */
.nav-item.active+.nav-sub {
    display: flex;
}

.nav-sub-item {
    font-size: 14px;
    padding: 6px 0;
    cursor: pointer;
}

.nav-sub-item.text-muted {
    color: #868E96;
}

.badge-red {
    background-color: #FF6C02;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
}

.dash-balance-box {
    background-color: #F0F0F0;
    border-radius: 8px;
    padding: 12px;
    margin-top: auto;
}

.balance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.balance-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 12px;
}

/* --- MAIN CONTENT --- */
.dash-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #F8F9FA;
    overflow-y: auto;
}

/* Header */
.dash-header {
    height: 64px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
    background-color: #FFFFFF;
    position: sticky;
    top: 0;
    z-index: 1100;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.user-profile-container {
    position: relative;
    display: inline-block;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: 0.2s;
}

.user-profile:hover {
    background-color: #f5f5f5;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #CED4DA;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    gap: 4px;
}

.user-email {
    font-size: 11px;
    color: var(--text-muted);
}

/* User Dropdown Menu */
.user-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    min-width: 280px;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 12px;
    overflow: hidden;
}

.user-dropdown-menu.show {
    display: block;
}

.user-dropdown-header {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: 0.2s;
}

.user-dropdown-header:hover {
    background-color: #F8F9FA;
}

.user-dropdown-header i {
    margin-left: auto;
    font-size: 16px;
    color: var(--text-muted);
}

.user-dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
}

.user-dropdown-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: 0.2s;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 500;
}

.user-dropdown-item:hover {
    background-color: #F8F9FA;
}

.user-dropdown-item i:first-child {
    font-size: 18px;
    width: 20px;
    display: flex;
    justify-content: center;
}

.user-dropdown-item i:last-child {
    margin-left: auto;
    font-size: 14px;
    color: var(--text-muted);
}

.user-dropdown-item.logout {
    color: #FF6B6B;
}

.user-dropdown-item.logout i:first-child {
    color: #FF6B6B;
}

/* Content */
.dash-content {
    padding: 20px;
    /* max-width: 1200px; */
    margin: 0 auto;
    width: 100%;
    background-color: #F8F9FA;
}

.dash-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 16px;
    width: 300px;
}

.search-box input {
    border: none;
    outline: none;
    font-size: 14px;
    width: 100%;
    color: #ADB5BD;
}

.search-box i {
    color: var(--text-muted);
    font-size: 16px;
}

.toolbar-actions {
    display: flex;
    gap: 5px;
}

.btn-tool {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-tool:hover {
    background: #F8F9FA;
}

.btn-tool.active,
.btn-tool:active,
.btn-tool:focus {
    background-color: #E9ECEF;
}

/* Dropdown Menu */
.dropdown-container {
    position: relative;
    display: inline-block;
}

.btn-dropdown::after {
    content: '';
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 160px;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 8px;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    padding: 12px 16px;
    font-size: 13px;
    color: var(--brand-dark);
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-item:hover {
    background-color: #F8F9FA;
}

.dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

/* Table */
.table-container {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
    background-color: #ffffff;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background-color: #ffffff;
}

.data-table th {
    background-color: #ffffff;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #495057;
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 16px;
    font-size: 13px;
    color: var(--brand-dark);
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.badge-rate {
    background-color: #E9ECEF;
    color: var(--text-muted);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.btn-icon {
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    padding: 4px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-icon:hover {
    background: #EAEAEA;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 8px;
}

.btn-page {
    background: #E9ECEF;
    border: none;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
}

.btn-page.disabled {
    color: #ADB5BD;
    cursor: not-allowed;
}

/* =======================================
   RESPONSIVE (MOBILE & TABLET)
   ======================================= */

.menu-toggle {
    width: 24px;
    height: 18px;
    cursor: pointer;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.3s;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--brand-dark);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);
    background: rgba(0, 0, 0, 0.5);
    z-index: 900;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .dash-sidebar {
        width: 220px;
    }

    .dash-content {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .dash-header {
        padding: 0 16px;
    }

    /* Sidebar Off-canvas Logic */
    .dash-sidebar {
        position: fixed;
        left: 0;
        top: 65px;
        height: calc(100vh - 64px);
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 100%;
        box-shadow: 4px 0 12px rgba(0, 0, 0, 0.1);
        padding-top: 15px;
    }

    .dash-sidebar .dash-logo {
        display: none;
    }

    .dash-sidebar.active {
        transform: translateX(0);
    }

    /* Content Adjustments */
    .dash-content {
        padding: 16px;
    }

    .dash-toolbar {
        flex-direction: column;
        gap: 16px;
    }

    .search-box {
        width: 100%;
    }

    .toolbar-actions {
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .btn-tool {
        white-space: nowrap;
    }

    /* Table Scroll */
    .table-container {
        overflow-x: auto;
    }

    .data-table {
        min-width: 700px;
    }

    .user-email {
        display: none;
    }

    /* Hide email to save space */
}

/* =======================================
   PROJECT DRAFTS VIEW (Trang chi tiết Test1)
   ======================================= */

.project-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

.project-header-top .breadcrumb {
    margin-bottom: 0;
    /* Ghi đè margin cũ của .breadcrumb */
    font-size: 14px;
    font-weight: 500;
}

.project-header-top .breadcrumb span {
    color: var(--brand-dark);
}

.btn-actions-pill {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: 0.2s;
}

.btn-actions-pill:hover {
    background-color: #F8F9FA;
}

.drafts-container {
    max-width: 860px;
    margin: 0 auto;
}

.drafts-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.drafts-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.drafts-title span {
    font-size: 14px;
    color: #868E96;
    font-weight: 400;
}

.btn-purchase {
    background-color: #EEF0F2;
    color: #ADB5BD;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: not-allowed;
    /* Nút xám chưa active */
}

.draft-item {
    background-color: #F1F3F5;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.draft-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.draft-icon {
    font-size: 24px;
    color: var(--brand-dark);
}

.draft-info {
    display: flex;
    flex-direction: column;
}

.draft-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--brand-dark);
}

.draft-warning {
    font-size: 14px;
    color: #FF6B6B;
    font-weight: 500;
}

.draft-editor-pill {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    padding: 4px 12px 4px 4px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--brand-dark);
    margin-right: 32px;
    /* Đẩy giá tiền sang phải 1 chút */
}

.draft-editor-pill img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.draft-editor-pill .remove-icon {
    color: #ADB5BD;
    cursor: pointer;
    font-size: 10px;
}

.draft-editor-pill .remove-icon:hover {
    color: var(--brand-dark);
}

.draft-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 80px;
}

.draft-price {
    font-size: 16px;
    font-weight: 500;
    color: var(--brand-dark);
    font-family: 'DM Sans', sans-serif;
}

.draft-actions {
    font-size: 12px;
    font-weight: 600;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.draft-actions .edit {
    color: var(--brand-yellow);
    cursor: pointer;
}

.draft-actions .delete {
    color: #FF6B6B;
    cursor: pointer;
}

.dashed-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn-dashed {
    background-color: transparent;
    border: 2px dashed #CED4DA;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-dark);
    cursor: pointer;
    transition: 0.2s;
}

.btn-dashed:hover {
    background-color: rgba(0, 0, 0, 0.03);
    border-color: var(--brand-dark);
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    max-width: 430px;
    width: 90%;
    animation: slideIn 0.3s ease;
    overflow: hidden;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 10px 32px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    letter-spacing: -0.5px;
}

.modal-close {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--text-main);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    flex-shrink: 0;
    padding: 0;
}

.modal-close:hover {
    color: var(--brand-dark);
}

.modal-body {
    padding: 0 32px 28px 32px;
}

.modal-body p {
    margin: 0;
    font-size: 15px;
    color: var(--text-main);
    line-height: 1.6;
    letter-spacing: -0.2px;
}

.modal-footer {
    padding: 24px 32px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-modal {
    padding: 11px 32px;
    border-radius: 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: 0.2s;
    letter-spacing: -0.3px;
}

.btn-modal-cancel {
    background-color: var(--white);
    border: 1.5px solid var(--text-muted);
    color: var(--text-main);
}

.btn-modal-cancel:hover {
    background-color: #F8F9FA;
    border-color: var(--text-main);
}

.btn-modal-continue {
    background-color: var(--text-main);
    color: var(--white);
}

.btn-modal-continue:hover {
    background-color: #1C1C1C;
}

.btn-modal-delete {
    background-color: var(--text-main);
    color: var(--white);
}

.btn-modal-delete:hover {
    background-color: #1C1C1C;
}

/* Notification Button */
.mantine-UnstyledButton-root {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.mantine-ActionIcon-root {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mantine-ActionIcon-root:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Notifications Panel */
.header-actions {
    position: relative;
}

.notifications-panel {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 420px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-top: 12px;
    z-index: 2000;
    overflow: hidden;
}

.notifications-panel.show {
    display: flex;
    flex-direction: column;
}

.notifications-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.notifications-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

.mark-all-read {
    color: #4A90E2;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s;
}

.mark-all-read:hover {
    color: #357ABD;
}

.notifications-tabs {
    display: flex;
    padding: 0 24px;
    border-bottom: 1px solid var(--border-color);
    gap: 24px;
}

.notification-tab {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 16px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    transition: 0.2s;
}

.notification-tab.active {
    color: var(--text-main);
    font-weight: 600;
}

.notification-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--text-main);
}

.notification-tab:hover {
    color: var(--text-main);
}

.notifications-content {
    flex: 1;
    padding: 40px 24px;
    text-align: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.notifications-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.notifications-empty i {
    font-size: 40px;
    color: var(--text-muted);
}

.notifications-empty p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-main);
}

.notifications-footer {
    padding: 16px 24px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background-color: #FAFAFA;
}

.notifications-footer a {
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: 0.2s;
}

.notifications-footer a:hover {
    color: var(--brand-dark);
}

/* =======================================
   ACCOUNT SETTINGS PAGE
   ======================================= */

.account-settings-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 15px;
    max-width: 990px;
    margin: 0 auto;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.settings-form-container {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

/* Avatar Upload */
.avatar-upload-section {
    flex: 0 0 auto;
}

.avatar-placeholder {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 2px dashed #CED4DA;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--brand-dark);
    font-size: 40px;
    cursor: pointer;
    transition: 0.2s;
    background-color: transparent;
    overflow: hidden;
    box-sizing: border-box;
}

.avatar-placeholder:hover {
    background-color: #F8F9FA;
    border-color: #ADB5BD;
}

/* Form Fields */
.form-fields-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    flex: 100%;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-dark);
}

.field-hint {
    font-size: 11px;
    color: #868E96;
    margin-top: -4px;
    margin-bottom: 2px;
}

.form-group input {
    width: 100%;
    padding: 8px 10px;
    background-color: #F1F3F5;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 14px;
    color: var(--brand-dark);
    outline: none;
    transition: 0.2s;
}

.form-group input::placeholder {
    color: #ADB5BD;
}

.form-group input:focus {
    border-color: #CED4DA;
    background-color: var(--white);
}

/* Align inputs to the bottom of the form group for consistent alignment */
.form-group>.input-with-indicator,
.form-group>input {
    margin-top: auto;
}

/* Input có dấu chấm cam */
.input-with-indicator {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-indicator input {
    padding-right: 30px;
    /* Nhường chỗ cho dấu chấm */
}

.required-dot {
    position: absolute;
    right: 14px;
    width: 6px;
    height: 6px;
    background-color: #FF6C02;
    /* Màu cam */
    border-radius: 50%;
    pointer-events: none;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    /* Đẩy nút căn lề bằng với các ô input (Width avatar 160px + gap 40px) */
    margin-left: 200px;
}

.btn-save {
    background-color: #1C1C1C;
    color: var(--white);
    border: none;
    padding: 10px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-save:hover {
    background-color: #000000;
}

.btn-cancel {
    background-color: var(--white);
    color: var(--brand-dark);
    border: 1px solid #CED4DA;
    padding: 10px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-cancel:hover {
    background-color: #F8F9FA;
}

/* Responsive Tablet & Mobile */
@media (max-width: 768px) {
    .settings-form-container {
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
    }

    .avatar-upload-section {
        display: flex;
        justify-content: center;
        margin-bottom: 8px;
    }

    .form-row {
        flex-direction: column;
        gap: 20px;
    }

    .form-actions {
        margin-left: 0;
        justify-content: stretch;
        margin-top: 32px;
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
    }

    .account-settings-card {
        padding: 20px;
        border: none;
        box-shadow: none;
        background-color: transparent;
    }
}

/* =======================================
   MY EDITOR TEAM PAGE
   ======================================= */

.editor-team-container {
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 60px;
}

/* Empty Favorites */
.empty-favorites-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 60px 0;
    color: var(--brand-dark);
}

.empty-favorites-section i {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--brand-dark);
}

.empty-favorites-section p {
    font-size: 12px;
    font-weight: 600;
    margin-top: 5px;
}

/* Page Title */
.team-page-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 23.5px;
    font-weight: 500;
    line-height: 26.1px;
    letter-spacing: 0;
    color: var(--brand-dark);
    margin-bottom: 15px;
}

/* Roster Group */
.roster-group {
    margin-bottom: 32px;
}

.roster-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.roster-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 400;
    color: var(--brand-dark);
}

.roster-title h2 {
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 20.1px;
    letter-spacing: 0;
    color: var(--brand-dark);
}

.roster-title i {
    font-size: 20px;
}

.btn-delete-roster {
    background-color: var(--white);
    border: 1.5px solid var(--border-color);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-delete-roster:hover {
    background-color: #F8F9FA;
}

/* Roster Grid */
.roster-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(255px, 0fr));
    gap: 10px;
}

/* Overrides for Editor Card in Team Page */
.roster-card {
    height: 100%;
}

.roster-card-img-wrap {
    position: relative;
    height: 160px;
}

.roster-card-img-wrap .room-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-remove-editor {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--white);
    color: var(--brand-dark);
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.roster-card .editor-info {
    margin-top: 30px;
}

.roster-card .editor-profile {
    margin-top: -36px;
    margin-bottom: 8px;
}

.avatar-img-wrap img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--white);
    object-fit: cover;
    background-color: #E2D9D1;
}

/* Backup Slot */
.backup-editor-slot {
    border: 1px dashed #ADB5BD;
    border-radius: 12px;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-dark);
    min-height: 280px;
    cursor: pointer;
    transition: 0.2s;
}

.backup-editor-slot:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Create Roster Box */
.create-roster-box {
    border: 1px dashed #ADB5BD;
    border-radius: 8px;
    padding: 14px;
    background-color: transparent;
}

.create-roster-box h3 {
    font-size: 13px;
    font-weight: 500;
    color: var(--brand-dark);
    margin-bottom: 10px;
}

.roster-select-wrapper {
    position: relative;
    max-width: 300px;
}

.roster-select {
    width: 100%;
    padding: 8px 10px;
    border: 1.6px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--white);
    font-size: 12px;
    color: var(--text-muted);
    appearance: none;
    outline: none;
    cursor: pointer;
}

.roster-select-wrapper i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

/* My Editor Team Mobile Optimizations (Horizontal Scroll) */
@media (max-width: 768px) {
    .editor-team-container {
        padding: 0 15px 40px;
    }

    .roster-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        margin-bottom: 20px;
    }

    .roster-title h2 {
        font-size: 15px;
    }

    .roster-cards-grid {
        display: flex;
        overflow-x: auto;
        gap: 16px;
        padding-bottom: 15px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .roster-cards-grid::-webkit-scrollbar {
        height: 4px;
    }

    .roster-cards-grid::-webkit-scrollbar-thumb {
        background: #CED4DA;
        border-radius: 4px;
    }

    .roster-card,
    .backup-editor-slot {
        flex: 0 0 280px;
        min-width: 280px;
        scroll-snap-align: start;
    }

    .backup-editor-slot {
        min-height: 280px;
    }

    .btn-delete-roster {
        padding: 4px 10px;
        font-size: 11px;
    }
}

/* Floating Action Button (Help) */
.help-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background-color: #000000;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.help-fab .fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #FF3B30;
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--bg-main);
}

/* =======================================
   INTEGRATIONS PAGE
   ======================================= */

.integrations-container {
    max-width: 950px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 10px;
}

.integration-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: stretch;
    /* Để phần logo kéo dài bằng phần info nếu info nhiều dòng */
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.integration-logo {
    width: 160px;
    min-height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    background-color: var(--white);
}

.integration-logo img {
    width: 125px;
    height: 125px;
    object-fit: contain;
    border-radius: 10px;
}

/* Nền xanh riêng cho Dropbox */
.integration-logo.dropbox-bg {
    background-color: #0061FF;
}

.integration-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.integration-title {
    font-size: 19px;
    font-weight: 500;
    color: var(--brand-dark);
}

.integration-desc {
    font-size: 13px;
    color: #868E96;
    margin-bottom: 7px;
}

.btn-login {
    background-color: #1C1C1C;
    color: var(--white);
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: inline-block;
}

.btn-login:hover {
    background-color: #000000;
}

/* Responsive cho Mobile */
@media (max-width: 768px) {
    .integration-card {
        flex-direction: column;
    }

    .integration-logo {
        width: 100%;
        min-height: 120px;
    }

    .integration-info {
        padding: 20px;
        align-items: center;
        text-align: center;
    }
}

/* =======================================
   BILLING & REPORTS PAGE
   ======================================= */

.billing-report-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 32px 40px;
    max-width: 1050px;
    margin: 0 auto;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.report-section {
    display: flex;
    flex-direction: column;
}

.report-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-dark);
    /* Màu nâu đậm */
    margin-bottom: 20px;
}

.report-form-row {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    /* Quan trọng: Căn đáy để nút Save bằng với input */
}

.report-form-row.align-center {
    align-items: flex-end;
    /* Vẫn căn đáy cho dải Report Options */
}

.report-form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.report-form-group label {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-dark);
}

/* Wrapper cho input/select để chứa icon bên trong */
.input-wrapper {
    position: relative;
    width: 100%;
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 10px 32px 10px 12px;
    /* Chừa chỗ cho icon bên phải */
    background-color: #F1F3F5;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 13px;
    color: var(--brand-dark);
    outline: none;
    appearance: none;
    /* Ẩn mũi tên mặc định của select */
    transition: 0.2s;
}

.input-wrapper input::placeholder {
    color: #ADB5BD;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    border-color: #CED4DA;
    background-color: var(--white);
}

/* Custom Icons bên trong input */
.input-wrapper .select-icon,
.input-wrapper .clear-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #ADB5BD;
    font-size: 14px;
    pointer-events: none;
    /* Để có thể click xuyên qua vào select */
}

.input-wrapper .clear-icon {
    cursor: pointer;
    pointer-events: auto;
    /* Dấu X thì có thể click được (nếu viết JS) */
}

.input-wrapper .clear-icon:hover {
    color: var(--brand-dark);
}

/* Nút Save */
.save-btn-container {
    height: 38px;
    /* Khớp với chiều cao của input */
}

.btn-report-save {
    background-color: var(--white);
    color: var(--brand-dark);
    border: 1px solid #CED4DA;
    padding: 0 24px;
    height: 100%;
    /* Tràn đầy container 38px */
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-report-save:hover {
    background-color: #F8F9FA;
    border-color: var(--brand-dark);
}

/* Divider nét đứt hoặc nét liền */
.report-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 32px 0;
}

/* Separator giữa 2 ngày (-) */
.date-separator {
    padding-bottom: 10px;
    /* Canh giữa so với text input */
    color: #868E96;
    font-weight: 500;
}

/* Action Buttons dưới cùng */
.report-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.btn-download-dark {
    background-color: #4A3434;
    /* Màu nâu tối */
    color: var(--white);
    border: none;
    padding: 10px 24px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-download-dark i {
    font-size: 16px;
}

.btn-download-dark:hover {
    background-color: #2D2520;
}

/* Responsive cho Tablet/Mobile */
@media (max-width: 900px) {
    .report-form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .save-btn-container {
        margin-top: 8px;
    }

    .btn-report-save {
        width: 100%;
        padding: 10px 0;
    }

    .date-separator {
        display: none;
        /* Ẩn dấu trừ khi rớt dòng */
    }

    .report-actions {
        flex-direction: column;
    }

    .btn-download-dark {
        justify-content: center;
    }
}


        /* ========================================================= */
        /* --- CSS CHO GIAO DIỆN ĐẶT HÀNG AI CLIPS --- */
        /* ========================================================= */
        .ai-clips-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.6); z-index: 10005;
            display: none; justify-content: center; align-items: flex-start;
            overflow-y: auto; padding: 40px 0;
            opacity: 0; animation: fadeInMp 0.3s forwards;
        }
        .ai-clips-modal {
            background: #fff; width: 800px; max-width: 95%; height: auto;
            margin: auto; border-radius: 12px; display: flex; flex-direction: column;
            position: relative; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
        }

        /* Danh sách Radio Clips */
        .clips-list-container { border: 1px solid #e5e7eb; border-radius: 8px; margin-bottom: 32px; background: #fff;}
        .clips-list-item { display: flex; align-items: center; padding: 16px; border-bottom: 1px solid #e5e7eb; cursor: pointer; transition: 0.2s;}
        .clips-list-item:hover { background: #f9fafb; }
        .clips-list-item:last-child { border-bottom: none; }
        .clips-list-item input[type="radio"] { margin-right: 16px; accent-color: #374151; width: 18px; height: 18px; }
        .clips-list-item strong { font-size: 15px; color: #111827; width: 100px; display: inline-block; font-weight: 600;}
        .clips-list-item span.desc { font-size: 14px; color: #9ca3af; flex: 1; }
        .clips-list-item span.price { font-size: 16px; font-weight: 700; color: #111827; }

        /* Add-ons có ảnh bên trái */
        .ai-clips-addon { display: flex; align-items: flex-start; gap: 16px; padding: 16px; border: 1px solid #e5e7eb; border-radius: 8px; margin-bottom: 12px; cursor: pointer; background: #fff;}
        .ai-clips-addon input[type="checkbox"] { margin-top: 4px; width: 18px; height: 18px; accent-color: #374151; }
        .ai-clips-addon img { width: 140px; height: 90px; object-fit: cover; border-radius: 6px; }
        .ai-clips-addon-info { flex: 1; }
        .ai-clips-addon-header { display: flex; justify-content: space-between; margin-bottom: 6px;}
        .ai-clips-addon-header h4 { margin: 0; font-size: 16px; color: #111827; font-weight: 500; }
        .ai-clips-addon-header span { font-size: 15px; font-weight: 600; color: #111827; }
        .ai-clips-addon-header span small { font-weight: 400; color: #9ca3af; font-size: 13px; }
        .ai-clips-addon-info p { margin: 0; font-size: 14px; color: #6b7280; line-height: 1.5;}

        /* Source Files Tabs */
        .ai-tabs-header { display: flex; gap: 24px; border-bottom: 1px solid #e5e7eb; margin-bottom: 24px; }
        .ai-tab { padding-bottom: 12px; font-size: 15px; color: #6b7280; cursor: pointer; position: relative;}
        .ai-tab.active { font-weight: 600; color: #111827; }
        .ai-tab.active::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background: #111827; }

        /* Sticky Footer (Luôn hiển thị ở dưới cùng của Modal khi cuộn) */
        .ai-clips-footer {
            position: sticky; bottom: -50px; left: 0; width: 100%;
            background: #fff; border-top: 1px solid #e5e7eb; padding: 16px 24px;
            display: flex; justify-content: space-between; align-items: center;
            border-radius: 0 0 12px 12px; z-index: 20; box-sizing: border-box;
            box-shadow: 0 -4px 12px rgba(0,0,0,0.05); /* Bóng đổ ngược lên trên */

        }
        .ai-clips-footer-left h4 { margin: 0; font-size: 18px; color: #111827; font-weight: 500;}
        .ai-clips-footer-left p { margin: 4px 0 0 0; font-size: 14px; color: #6b7280; }
        .ai-clips-footer-right { display: flex; align-items: center; gap: 24px; }
        .ai-clips-footer-price { font-size: 24px; color: #111827; font-weight: 600; }
        /* ========================================================= */
        /* --- CSS CHO GIAO DIỆN ĐẶT HÀNG AI HDR --- */
        /* ========================================================= */
        .ai-hdr-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.6); z-index: 10005;
            display: none; justify-content: center; 
            align-items: flex-start; /* Căn lên sát trên cùng để có thể cuộn xuống */
            overflow-y: auto; /* Thêm thanh cuộn cho toàn bộ màn hình đen */
            padding: 40px 0; /* Tạo khoảng trống trên/dưới cho đẹp */
            opacity: 0; animation: fadeInMp 0.3s forwards;
        }
        .ai-hdr-modal {
            background: #fff; width: 800px; max-width: 95%; 
            height: auto; /* Bỏ chiều cao cố định để nó tự giãn ra theo nội dung */
            margin: auto; /* Tự động căn giữa nếu nội dung ngắn */
            border-radius: 12px; display: flex; flex-direction: column; overflow: hidden;
            position: relative; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
        }
        /* Bỏ phần overflow-y: auto ở body đi */
        .ai-body { padding: 32px 24px; background: #fff; }
        /* Hero Banner */
        .ai-hero {
            position: relative; height: 220px; flex-shrink: 0;
            background: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
            display: flex; flex-direction: column; justify-content: space-between; padding: 20px 24px; color: #fff;
        }
        .ai-hero::before {
            content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.6) 100%);
        }
        .ai-hero-top, .ai-hero-bottom { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end;}
        .ai-hero-top { align-items: center; }
        .ai-btn-back { background: none; border: none; color: #fff; font-size: 16px; font-weight: 500; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 0;}
        .ai-hero-actions { display: flex; align-items: center; gap: 12px; }
        .ai-btn-practices { background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 8px 16px; border-radius: 6px; font-size: 14px; font-weight: 500; cursor: pointer; display: flex; align-items: center; gap: 6px; backdrop-filter: blur(4px);}
        .ai-btn-close { background: #fff; color: #111827; border: none; width: 32px; height: 32px; border-radius: 6px; display: flex; justify-content: center; align-items: center; font-size: 18px; cursor: pointer; }
        .ai-hero-title h1 { margin: 0 0 4px 0; font-size: 36px; font-weight: 700; }
        .ai-hero-title a { color: #fff; text-decoration: none; font-size: 14px; display: flex; align-items: center; gap: 6px; }

        /* Modal Body */
        .ai-body { flex: 1; overflow-y: auto; padding: 32px 24px; background: #fff; }
        .ai-section-title { font-size: 22px; font-weight: 600; color: #111827; margin: 0 0 8px 0; }
        .ai-section-desc { font-size: 15px; color: #6b7280; margin: 0 0 24px 0; line-height: 1.5; }

        /* Models Grid */
        .ai-models-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
        .ai-model-card { border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; cursor: pointer; transition: 0.2s; position: relative; }
        .ai-model-card:hover:not(.disabled) { border-color: #2563eb; box-shadow: 0 4px 12px rgba(37,99,235,0.1); }
        .ai-model-icon { width: 48px; height: 48px; margin-bottom: 16px; }
        .ai-model-card h3 { margin: 0 0 4px 0; font-size: 18px; color: #111827; }
        .ai-model-card .price { font-size: 14px; color: #6b7280; margin-bottom: 12px; display: block;}
        .ai-model-card p { font-size: 14px; color: #9ca3af; margin: 0 0 16px 0; line-height: 1.5; }
        .ai-badge { display: inline-flex; align-items: center; gap: 4px; background: #0022cc; color: #fff; padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; margin-bottom: 6px;}
        
        .ai-model-card.disabled { opacity: 0.7; cursor: not-allowed; background: #fafafa; }
        .ai-error-box { border: 1px solid #fca5a5; background: #fef2f2; border-radius: 6px; padding: 12px; font-size: 13px; color: #ef4444; line-height: 1.5;}
        
        /* Upload Box */
        .ai-upload-box { border: 1px dashed #d1d5db; border-radius: 8px; padding: 40px 20px; text-align: center; margin-bottom: 32px; background: #fafafa;}
        .ai-upload-box i { font-size: 32px; color: #111827; margin-bottom: 12px; }
        .ai-upload-box p { font-size: 16px; color: #111827; font-weight: 500; margin: 0 0 4px 0;}
        .ai-upload-box a { color: #2563eb; text-decoration: underline; font-size: 14px; }

        /* Exposures Toggle */
        .ai-toggle-group { display: inline-flex; background: #f3f4f6; border-radius: 8px; padding: 4px; margin-bottom: 32px;}
        .ai-toggle-btn { background: transparent; border: none; padding: 8px 20px; font-size: 14px; font-weight: 500; color: #6b7280; cursor: pointer; border-radius: 6px;}
        .ai-toggle-btn.active { background: #fff; color: #111827; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
        .ai-exposure-total { float: right; margin-top: 10px; font-size: 16px; font-weight: 500; color: #111827; }

        /* Promo Banners */
        .ai-promo-review { background: #f8fafc; border-radius: 12px; padding: 24px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; position: relative; overflow: hidden;}
        .ai-promo-text h3 { margin: 0 0 8px 0; font-size: 20px; display: flex; align-items: center; gap: 10px;}
        .ai-promo-text .badge { background: #0022cc; color: white; border: none; }
        .ai-promo-text p { margin: 0 0 16px 0; font-size: 15px; color: #6b7280; max-width: 300px; line-height: 1.5;}
        .ai-btn-dark { background: #111827; color: #fff; border: none; padding: 10px 20px; border-radius: 30px; font-weight: 600; cursor: pointer;}
        
        .ai-promo-discount { background: linear-gradient(to right, #fdfbf7 0%, #ff7a18 100%); border-radius: 12px; padding: 24px; display: flex; justify-content: space-between; align-items: center; margin-top: 32px;}
        .ai-promo-discount h3 { margin: 0 0 8px 0; font-size: 22px; color: #111827; }
        .ai-promo-discount p { margin: 0; font-size: 15px; color: #374151; max-width: 400px;}

        /* Radio Options */
        .ai-radio-card { border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; display: flex; gap: 16px; margin-bottom: 12px; cursor: pointer; }
        .ai-radio-card input[type="radio"] { accent-color: #374151; width: 20px; height: 20px; margin-top: 2px;}
        .ai-radio-content h4 { margin: 0 0 4px 0; font-size: 15px; font-weight: 600; color: #111827; }
        .ai-radio-content p { margin: 0; font-size: 14px; color: #4b5563; }

        /* Sticky Footer */
          .ai-footer {
            position: sticky; bottom: -50px; left: 0; width: 100%;
            background: #fff; border-top: 1px solid #e5e7eb; padding: 16px 24px;
            display: flex; justify-content: space-between; align-items: center;
            border-radius: 0 0 12px 12px; z-index: 20; box-sizing: border-box;
            box-shadow: 0 -4px 12px rgba(0,0,0,0.05); /* Bóng đổ ngược lên trên */

        }
        .ai-footer-left h4 { margin: 0; font-size: 16px; color: #111827; font-weight: 500;}
        .ai-footer-left p { margin: 4px 0 0 0; font-size: 14px; color: #6b7280; }
        .ai-footer-right { display: flex; align-items: center; gap: 24px; }
        .ai-footer-price { text-align: right; }
        .ai-footer-price span { display: block; font-size: 13px; color: #6b7280; }
        .ai-footer-price strong { display: block; font-size: 18px; color: #111827; font-weight: 700; margin-top: 2px;}
        .ai-btn-blue { background: #0022cc; color: #fff; border: none; padding: 12px 24px; border-radius: 30px; font-size: 16px; font-weight: 600; cursor: pointer; }
        /* --- CSS CHO HEADER SIDEBAR --- */
        .header-title-row {
            display: flex;
            justify-content: space-between;
            align-items: center; 
            padding-bottom: 16px; 
        }

        .header-title-row h2 {
            margin: 0;
            font-size: 24px;
            font-weight: 600;
            color: #111827;
        }

        .header-actions-wrapper {
            display: flex;
            align-items: center;
            gap: 20px; /* Khoảng cách giữa chữ xanh và nút X */
        }

        /* Style cho chữ màu xanh */
        .link-add-template {
            color: #2563eb; 
            font-size: 14px;
            font-weight: 600;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 6px; 
            transition: color 0.2s ease;
        }

        .link-add-template i { font-size: 16px; }
        .link-add-template:hover { color: #1d4ed8; text-decoration: underline; }

        .close-sidebar-btn {
            background: none; border: none; font-size: 20px;
            cursor: pointer; color: #4b5563; padding: 0;
            display: flex;
        }

        /* --- CSS CHO DROPDOWN MENU ACTIONS --- */
        .actions-dropdown-container { position: relative; display: inline-block; }

        .actions-dropdown-menu {
            position: absolute; top: 100%; right: 0; margin-top: 8px;
            background: #fff; min-width: 220px;
            border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.15);
            border: 1px solid #eee; z-index: 100;
            display: flex; flex-direction: column; padding: 8px 0;
            opacity: 0; visibility: hidden; transform: translateY(-10px);
            transition: all 0.2s ease;
        }

        .actions-dropdown-menu.show { opacity: 1; visibility: visible; transform: translateY(0); }
        .action-item { padding: 10px 16px; display: flex; align-items: center; gap: 10px; color: #333; text-decoration: none; font-size: 14px; transition: background 0.2s; }
        .action-item:hover:not(.disabled) { background: #f5f5f5; }
        .action-item i { font-size: 18px; color: #555; }
        .action-item.disabled { color: #aaa; cursor: not-allowed; }
        .action-item.disabled i { color: #aaa; }
        .action-item.text-danger { color: #e02424; }
        .action-item.text-danger i { color: #e02424; }
        .action-item.text-danger:hover { background: #fdf2f2; }
        .action-item.text-success { color: #10b981; }
        .action-item.text-success i { color: #10b981; }
        .action-item.text-success:hover { background: #d1fae5; }
        .action-divider { height: 1px; background: #eee; margin: 4px 0; }

        /* --- CSS CHO LỚP PHỦ TỐI MÀN HÌNH --- */
        .service-sidebar-overlay {
            position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0, 0, 0, 0.4);
            opacity: 0; visibility: hidden; transition: 0.3s ease;
            z-index: 9998; 
        }

        /* --- CSS CHO HỘP THOẠI SIDEBAR --- */
        .service-sidebar {
            position: fixed; top: 50%; left: 50%;
            transform: translate(-50%, -50%) scale(0.95);
            width: 650px; max-height: 90vh; background: #fff;
            z-index: 9999; transition: all 0.3s ease;
            display: flex; flex-direction: column;
            box-shadow: 0 15px 50px rgba(0,0,0,0.2);
            font-family: 'Inter', sans-serif; border-radius: 12px;
            opacity: 0; visibility: hidden;
        }

        .service-sidebar-overlay.active { opacity: 1; visibility: visible; }
        .service-sidebar.active { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }

        /* --- CSS CHO TABS --- */
        .sidebar-header { padding: 20px 20px 0 20px; }
        .sidebar-tabs { display: flex; gap: 20px; border-bottom: 1px solid #e0e0e0; }
        .tab-btn { background: none; border: none; font-size: 15px; padding: 12px 0; cursor: pointer; color: #555; display: flex; align-items: center; gap: 5px; position: relative; font-family: inherit; }
        .tab-btn.active { color: #000; font-weight: 600; }
        .tab-btn.active::after { content: ""; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background: #000; }
        .badge-new { background: #0022cc; color: white; padding: 2px 6px; border-radius: 10px; font-size: 10px; font-weight: 700; }

        /* --- CSS CHO CÁC TAB NỘI DUNG --- */
        .sidebar-content { padding: 20px; overflow-y: auto; flex: 1; }
        .tab-pane { display: none; }
        .tab-pane.active { display: block; animation: fadeIn 0.4s ease; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

        /* TAB 1: Dịch vụ thường (Cards) */
        .service-category h3 { font-size: 16px; margin: 0 0 16px 0; color: #111827; font-weight: 600; }
        .service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 32px; }

        .service-card { 
            border: 1px solid #e5e7eb; 
            border-radius: 8px; 
            padding: 20px 16px; 
            cursor: pointer; 
            transition: all 0.2s ease;
            display: flex; /* Dàn ngang Icon và Text */
            align-items: flex-start;
            gap: 16px;
        }
        .service-card:hover { border-color: #d1d5db; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
        
        .card-icon { 
            font-size: 24px; 
            color: #9ca3af; /* Màu xám nhạt */
            display: flex;
            margin-top: 2px;
        }

        .card-info {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .card-info h4 { margin: 0; font-size: 15px; font-weight: 600; color: #111827; }
        .card-info p { margin: 0; font-size: 13px; color: #6b7280; line-height: 1.5; }
        .show-more { font-size: 13px; color: #9ca3af; font-weight: 500; transition: 0.2s; margin-top: 4px; }
        .service-card:hover .show-more { color: #4b5563; }

        /* TAB 2: Thẻ AI Nền Đen */
        .ai-card { background: #151515; color: #fff; border-radius: 12px; display: flex; margin-bottom: 20px; overflow: hidden; min-height: 180px; }
        .ai-info { padding: 25px; width: 55%; z-index: 2; display: flex; flex-direction: column; justify-content: center; }
        .ai-info h3 { margin: 0 0 10px 0; font-size: 22px; font-weight: 600; color: #fff; }
        .ai-info p { color: #aaa; font-size: 13px; margin: 0 0 20px 0; line-height: 1.5; }
        .ai-price { color: #ccc; font-size: 13px; margin-bottom: 20px; }
        .btn-order-now { background: #fff; color: #000; border: none; padding: 8px 16px; border-radius: 30px; font-weight: 600; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; width: fit-content; transition: 0.2s; }
        .btn-order-now:hover { background: #eee; transform: translateY(-2px); }
        .btn-order-now i { background: #000; color: #fff; border-radius: 50%; padding: 3px; font-size: 12px; }
        .ai-img-placeholder { width: 45%; background: linear-gradient(90deg, #151515 0%, rgba(21,21,21,0) 50%), url('https://placehold.co/400x300/333/555?text=AI+Preview') center/cover; }

        /* --- CSS CHO CÁC MODAL --- */
        .np-modal-overlay {
            display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.4); z-index: 10000; justify-content: center; align-items: center;
        }
        .np-modal-content {
            background: #fff; width: 100%; max-width: 440px; border-radius: 16px; 
            box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    animation: fadeInNp 0.2s ease-out; padding: 12px 0;
    max-height: 90vh; display: flex; flex-direction: column;
        }
        @keyframes fadeInNp { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
        .np-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 28px; }
        .np-modal-header h2 { margin: 0; font-size: 26px; font-weight: 700; color: #000; }
        .np-close-btn { background: none; border: none; font-size: 20px; cursor: pointer; color: #6b7280; transition: color 0.2s; padding: 0; display: flex; }
        .np-close-btn:hover { color: #111827; }
.np-modal-body { padding: 8px 28px 24px 28px; overflow-y: auto; }
        .np-form-group { margin-bottom: 24px; }
        .np-form-group label { display: block; font-size: 15px; font-weight: 500; color: #374151; margin-bottom: 10px; }
        .np-form-group input {
            width: 100%; padding: 14px 16px; background-color: #f4f5f7; border: 2px solid transparent; 
            border-radius: 8px; font-size: 15px; color: #111827; box-sizing: border-box; 
            font-family: inherit; transition: all 0.2s ease;
        }
        .np-form-group input::placeholder { color: #adb5bd; font-weight: 400; }
        .np-form-group input:focus { outline: none; border-color: #e5e7eb; background-color: #fff; }
        .np-modal-footer { display: flex; margin-top: 32px; }
        .np-btn-submit {
            width: 100%; background: #18181b; color: #fff; border: none; 
            padding: 14px 16px; border-radius: 999px; font-size: 16px; 
    font-weight: 600; cursor: pointer; transition: all 0.2s ease;
    position: relative; z-index: 10;
        }
.np-btn-submit:hover:not(:disabled) { background: #27272a; transform: translateY(-1px); }
.np-btn-submit:active:not(:disabled) { transform: translateY(0); }
.np-btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }

        /* ========================================================= */
        /* --- CSS CHO GIAO DIỆN CHI TIẾT DỊCH VỤ (CENTER MODAL) --- */
        /* ========================================================= */
        .service-detail-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.6); z-index: 10000;
            opacity: 0; visibility: hidden; transition: 0.3s ease;
            display: flex; justify-content: center; align-items: flex-start;
            overflow-y: auto; padding: 40px 0;
        }
        
        .service-detail-sidebar {
            width: 700px; max-width: 95%; 
            height: auto; /* Tự giãn dài theo nội dung */
            margin: auto; /* Tự động căn giữa */
            background: #fff; z-index: 10001; transition: all 0.3s ease;
            box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
            overflow: hidden; 
            transform: scale(0.95);
        }

        .service-detail-overlay.active { opacity: 1; visibility: visible; }
        /* .service-detail-sidebar.active { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); } */
        .service-detail-sidebar.active { 
            transform: scale(1);
        }
        /* Header */
        .sd-header {
            background: url('../../photourgent/icons/datlichj.png') center/cover;
            padding: 20px 24px; color: #fff;
        }
        .sd-top-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
        .sd-btn-back, .sd-btn-close { 
            background: rgba(255,255,255,0.2); border: none; color: #fff; 
            padding: 6px 12px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; gap: 6px; font-weight: 500;font-size: 16px;
        }
        .sd-btn-back:hover, .sd-btn-close:hover { background: rgba(255,255,255,0.3); }
        .sd-btn-close { padding: 6px; border-radius: 4px;color: #000; font-size: 22px; background: #fff;}
        .sd-btn-back { background: transparent; padding-left: 0; padding-right: 0; }
        .sd-btn-back:hover { background: transparent; opacity: 0.8; }
        .sd-header-content h2 { margin: 0 0 5px 0; font-size: 32px; font-weight: 700; }
        .sd-link-included { color: #fff; font-size: 14px; text-decoration: none; display: flex; align-items: center; gap: 4px; margin-bottom: 16px;}
        
        .sd-header-content-flex { display: flex; justify-content: space-between; align-items: flex-start; }
        .sd-header-left { display: flex; flex-direction: column; }

        /* Body */
        .sd-body { padding: 24px; background: #fafafa; }
        .sd-section { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px; margin-bottom: 24px; box-shadow: 0 2px 4px rgba(0,0,0,0.02);}
        .sd-section-title { margin: 0 0 16px 0; font-size: 18px; font-weight: 600; color: #111827; }
        .sd-section-title span { font-weight: 400; color: #9ca3af; font-size: 14px; margin-left: 8px;}
        .sd-desc { color: #6b7280; font-size: 14px; margin: 0 0 16px 0; }

        /* Counters */
        .sd-counters-section { background: #fff; padding: 24px; border-radius: 12px; margin-bottom: 24px; border: 1px solid #e5e7eb;}
        .sd-counter-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
        .sd-counter-row:last-child { margin-bottom: 0; }
        
        /* --- CẬP NHẬT COUNTER (Thêm giá tiền) --- */
        .sd-counter-label { display: flex; align-items: center; gap: 8px; }
        .sd-counter-label label { font-size: 15px; font-weight: 500; color: #111827; display: flex; align-items: center; gap: 4px; }
        .sd-counter-label label i { color: #000; font-size: 16px; }
        .sd-counter-price { font-size: 14px; color: #9ca3af; font-weight: 400; }
        
        .sd-counter-controls { display: flex; align-items: center; gap: 10px; }
        .sd-counter-controls button { width: 36px; height: 36px; background: #fff; border: 1px solid #d1d5db; border-radius: 6px; cursor: pointer; font-size: 18px; color: #374151; }
        .sd-counter-controls input { width: 50px; height: 36px; text-align: center; border: none; background: #f3f4f6; border-radius: 6px; font-weight: 600; }

        /* --- CẬP NHẬT ADD-ONS (Custom Checkbox, Giá tiền, Nút Add notes) --- */
        .sd-addon-card { 
            display: flex; align-items: flex-start; gap: 16px; padding: 16px; 
            border: 1px solid #e5e7eb; border-radius: 8px; margin-bottom: 12px; cursor: pointer; 
        }
        
        /* Ẩn checkbox mặc định */
        .sd-checkbox-hidden { display: none; }
        
        /* Custom Checkbox hình vuông */
        /* Ẩn checkbox mặc định */
        .sd-checkbox-hidden { display: none; }
        
        /* Custom Checkbox hình vuông (Khung mặc định) */
        .sd-custom-checkbox {
            width: 20px; height: 20px; border: 2px solid #9ca3af; border-radius: 4px;
            display: flex; justify-content: center; align-items: center;
            margin-top: 2px; flex-shrink: 0; transition: 0.1s; 
            background-color: transparent;
        }
        
        /* Trạng thái Checked (Đổ màu nền và hiện dấu tích SVG) */
        .sd-checkbox-hidden:checked + .sd-custom-checkbox {
            background-color: #374151; /* Màu xám đen */
            border-color: #374151;
            /* Dùng mã SVG trực tiếp làm ảnh nền để icon luôn hiển thị nét căng */
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
            background-size: 13px;
            background-position: center;
            background-repeat: no-repeat;
        }
        
        /* Ẩn thẻ <i> cũ đi để tránh xung đột */
        .sd-custom-checkbox i { display: none; }

        /* Nội dung Text của Add-on */
        .sd-addon-content { flex: 1; }
        .sd-addon-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
        .sd-addon-header h4 { margin: 0; font-size: 15px; font-weight: 500; color: #111827; }
        .sd-addon-price { font-size: 13px; color: #9ca3af; }
        .sd-addon-price strong { color: #111827; font-weight: 600; font-size: 14px; }
        .sd-addon-content p { margin: 0; font-size: 14px; color: #9ca3af; line-height: 1.5; }
        
        /* Nút Add Notes & Container */
        .sd-btn-add-notes { 
            color: #1d4ed8; font-size: 14px; font-weight: 500; background: none; 
            border: none; padding: 0; cursor: pointer; margin-top: 12px; display: none;
        }
        .sd-btn-add-notes:hover { text-decoration: underline; color: #1e3a8a; }
        
        .sd-checkbox-hidden:checked ~ .sd-addon-content:not(.show-notes) .sd-btn-add-notes {
            display: inline-block;
        }

        .sd-notes-container { position: relative; margin-top: 12px; display: none; }
        .sd-notes-container .sd-textarea { padding-right: 40px; }
        .sd-btn-close-notes {
            position: absolute; top: 12px; right: 12px; background: none; border: none;
            color: #9ca3af; font-size: 18px; cursor: pointer; padding: 0; display: flex;
        }
        .sd-btn-close-notes:hover { color: #4b5563; }
        
        .sd-checkbox-hidden:checked ~ .sd-addon-content.show-notes .sd-notes-container {
            display: block;
        }

        /* Forms & Buttons */
        .sd-textarea { width: 100%; padding: 16px; border: 1px solid #e5e7eb; border-radius: 8px; background: rgb(241, 243, 245); resize: vertical; font-family: inherit; box-sizing: border-box; }
        .sd-textarea:focus { outline: none; background: #fff; }
        .sd-btn-outline { border: 1px solid #d1d5db; background: #fff; padding: 8px 16px; border-radius: 20px; font-weight: 600; font-size: 14px; cursor: pointer; }

        /* Source Files */
        .sd-files-box { border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px; text-align: center; }
        .sd-btn-dark { width: 100%; background: #18181b; color: #fff; padding: 12px; border: none; border-radius: 8px; font-weight: 600; font-size: 15px; margin-bottom: 12px; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 8px;}
        .sd-btn-white { width: 100%; background: #fff; color: #374151; padding: 12px; border: 1px solid #d1d5db; border-radius: 8px; font-weight: 600; font-size: 15px; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 8px;}
        .sd-divider { display: flex; align-items: center; text-align: center; margin: 20px 0; color: #9ca3af; font-size: 12px; display: none;}
        .sd-divider::before, .sd-divider::after { content: ''; flex: 1; border-bottom: 1px solid #e5e7eb; }
        .sd-divider span { padding: 0 10px; }
        .sd-label-small { display: block; text-align: left; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: #374151;}
        .sd-input-link { width: 90%; padding: 12px 16px; border: 1px solid #e5e7eb; border-radius: 8px; background: #f3f4f6; box-sizing: border-box;}

        /* Finished Files Radio */
        .sd-radio-card { border: 1px solid #e5e7eb; border-radius: 8px; padding: 16px; margin-bottom: 12px; cursor: pointer; }
        .sd-radio-header { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #111827; margin-bottom: 4px; }
        .sd-radio-header input[type="radio"] { accent-color: #2563eb; width: 18px; height: 18px; }
        .sd-radio-desc { margin: 0 0 12px 28px; font-size: 13px; color: #6b7280; }
        .sd-radio-desc.text-danger { color: #dc2626; }
        .sd-checkbox-sub { display: flex; align-items: flex-start; gap: 10px; margin-left: 28px; font-size: 14px; font-weight: 500; color: #374151; }
        .sd-checkbox-sub small { color: #9ca3af; font-weight: 400; display: block; margin-top: 2px;}

        /* Footer */
        .sd-footer { background: #fff; border-top: 1px solid #e5e7eb; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; }
        .sd-footer-info h4 { margin: 0 0 4px 0; font-size: 16px; font-weight: 600; }
        .sd-footer-info p { margin: 0 0 4px 0; font-size: 14px; color: #6b7280; }
        .sd-footer-info small { color: #111827; font-size: 13px; font-style: italic;}
        .sd-btn-primary { background: #0022cc; color: #fff; padding: 12px 24px; border: none; border-radius: 30px; font-weight: 600; font-size: 16px; cursor: pointer; }
        .sd-btn-primary:hover { background: #001ba6; }

        /* ========================================================= */
        /* --- CSS CHO EDITOR DROPDOWN & CHIP (ẢNH 1, 2, 4) --- */
        /* ========================================================= */
        .sd-editor-wrapper { position: relative; width: 260px; }
        
        .sd-editor-trigger {
            background: #fff; padding: 4px 10px;  
            border: 1px solid #d1d5db; cursor: pointer; display: flex; 
            align-items: center; min-height: 35px; box-sizing: border-box;
        }
        
        /* Trạng thái 1: Choose an editor */
        .sd-editor-placeholder { display: flex; align-items: center; justify-content: space-between; width: 100%; color: #9ca3af; font-size: 14px; font-weight: 500;}
        .sd-editor-placeholder .left-part { display: flex; align-items: center; gap: 10px; }
        .sd-editor-placeholder .icon-user { font-size: 24px; }
        .sd-editor-placeholder .icon-caret { font-size: 16px; }

        /* Trạng thái 4: Đã chọn (Chip) */
        .sd-editor-chip { display: flex; align-items: center; justify-content: space-between; width: 100%; }
        .sd-editor-chip .chip-info { display: flex; align-items: center; gap: 10px; color: #111827; font-weight: 500; font-size: 14px; }
        .sd-editor-chip img { border-radius: 50%; width: 24px; height: 24px; border: 1px solid #e5e7eb; object-fit: cover;}
        .sd-chip-close { background: none; border: none; color: #9ca3af; font-size: 18px; cursor: pointer; padding: 0; display: flex; }
        .sd-chip-close:hover { color: #4b5563; }

        /* Trạng thái 2: Dropdown Menu */
        .sd-editor-dropdown {
            position: absolute; top: calc(100% + 4px); left: 0; width: 100%;
            background: #fff; border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            border: 1px solid #e5e7eb; z-index: 10;
            opacity: 0; visibility: hidden; transform: translateY(-5px); transition: 0.2s ease;
        }
        .sd-editor-dropdown.active { opacity: 1; visibility: visible; transform: translateY(0); }
        .sd-dropdown-item {
            padding: 12px 14px; display: flex; align-items: center; gap: 12px;
            cursor: pointer; color: #111827; font-size: 15px; font-weight: 500; transition: background 0.2s;
        }
        .sd-dropdown-item:hover { background: #f9fafb; border-radius: 6px; }
        .sd-dropdown-item .icon-circle {
            width: 32px; height: 32px; background: #e5e7eb; border-radius: 50%;
            display: flex; justify-content: center; align-items: center; color: #6b7280; font-size: 18px;
        }

        /* ========================================================= */
        /* --- CSS CHO MARKETPLACE MODAL (ẢNH 3) --- */
        /* ========================================================= */
        .marketplace-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.6); z-index: 10005; /* Cao hơn sidebar detail */
            display: none; justify-content: center; align-items: center;
            opacity: 0; animation: fadeInMp 0.3s forwards;
        }
        @keyframes fadeInMp { to { opacity: 1; } }
        .marketplace-modal {
            background: #fff; width: 1000px; max-width: 95%; height: 85vh;
            border-radius: 12px; display: flex; flex-direction: column; overflow: hidden;
        }
        .mp-header {
            padding: 20px 24px; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center;
        }
        .mp-header h2 { margin: 0; font-size: 22px; font-weight: 700; color: #111827; }
        .mp-close { background: none; border: none; font-size: 20px; cursor: pointer; color: #6b7280; }
        
        .mp-toolbar {
            padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; background: #fff; border-bottom: 1px solid #e5e7eb;
        }
        .mp-search { display: flex; align-items: center; background: #f3f4f6; padding: 10px 16px; border-radius: 8px; width: 300px;}
        .mp-search i { color: #9ca3af; font-size: 18px; margin-right: 8px; }
        .mp-search input { border: none; background: none; outline: none; width: 100%; font-size: 14px; }
        .mp-checkbox { font-size: 14px; color: #374151; display: flex; align-items: center; gap: 8px; cursor: pointer;}
        
        .mp-body { padding: 24px; overflow-y: auto; flex: 1; background: #fafafa; }
        .mp-body h3 { margin: 0 0 20px 0; font-size: 18px; font-weight: 600; }
        .mp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
        
        .mp-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column;}
        .mp-card-img { height: 180px; background: #e5e7eb; position: relative; }
        .mp-preview-btn { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,0.8); border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: flex; justify-content: center; align-items: center; font-size: 18px;}
        
        .mp-card-info { padding: 16px; display: flex; flex-direction: column; flex: 1; }
        .mp-editor-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
        .mp-editor-meta img { width: 40px; height: 40px; border-radius: 50%; }
        .mp-editor-meta h4 { margin: 0; font-size: 15px; font-weight: 600; color: #111827; }
        .mp-editor-meta p { margin: 0; font-size: 12px; color: #9ca3af; text-transform: uppercase;}
        
        .mp-stats { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 13px; font-weight: 500;}
        .mp-stats .star { color: #f59e0b; display: flex; align-items: center; gap: 4px; }
        .mp-stats .star span { color: #6b7280; }
        .star-yellow,
        .svg-yellow,
        .icon.star,
        .review-stars .ph-star {
            color: #f59e0b;
            fill: #f59e0b;
        }
        .badge { padding: 4px 8px; border-radius: 20px; font-size: 12px; font-weight: 600; border: 1px solid;}
        .badge-blue { color: #1d4ed8; background: #eff6ff; border-color: #bfdbfe; }
        .badge-yellow { color: #b45309; background: #fffbeb; border-color: #fde68a; }
        
        .mp-btn-use { width: 100%; background: #111827; color: #fff; border: none; padding: 10px; border-radius: 6px; font-weight: 600; cursor: pointer; transition: 0.2s; margin-top: auto;}
        .mp-btn-use:hover { background: #000; }

        /* =======================================================
   SỬA LỖI HIỂN THỊ MODAL CHI TIẾT DỊCH VỤ 
   ======================================================= */

/* 1. Xóa đường gạch dọc (thanh cuộn thừa) bên trong Modal */
.service-detail-sidebar {
    overflow: visible !important; /* Tắt cuộn bên trong, để lớp màn đen bên ngoài cuộn */
    border-radius: 12px;
}

/* Ẩn triệt để UI của thanh cuộn nếu trình duyệt cố tình hiển thị */
.service-detail-sidebar::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
}

/* 2. Sửa lỗi tàng hình chữ ở Header (Thêm màu nền tối dự phòng khi ảnh lỗi) */
.sd-header {
    background-color: #111827 !important; /* Màu xanh đen dự phòng */
    background-image: url('../../photourgent/icons/datlichj.png');
    background-size: cover;
    background-position: center;
    border-radius: 12px 12px 0 0; /* Bo tròn 2 góc trên cho khớp với Form */
}

/* =======================================================
   SỬA LỖI GOOGLE PICKER BỊ CHE KHUẤT BỞI MODAL (Z-INDEX)
   ======================================================= */
.picker-dialog,
.picker.modal-dialog,
.picker-dialog-bg {
    z-index: 100000 !important;
}