:root {
  --sidebar-bg: #212631;
  --sidebar-hover: #2c3342;
  --sidebar-active-gray: #7a828e;
  --sidebar-active-blue: #3b7ddd;
  --main-bg: #f4f6f9;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --text-main: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --btn-blue: #0047b3;
  --btn-blue-hover: #00358a;
  --btn-red: #d93025;
  --btn-red-hover: #b82218;
  --btn-green: #15803d;
  --status-blue: #002db3;
  --status-red: #d93025;
  --status-running: #78350f;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--main-bg);
  color: var(--text-main);
  font-size: 13px;
  line-height: 1.45;
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ==================== SIDEBAR CHOTKHACH.VN ==================== */
.cc-sidebar {
  width: 245px;
  min-width: 245px;
  background-color: var(--sidebar-bg);
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 100;
  user-select: none;
  transition: width 0.2s ease, min-width 0.2s ease, transform 0.2s ease;
}

.cc-logo-wrap {
  padding: 10px 12px;
  background: #212631;
}

.cc-logo-box {
  background: #ffffff;
  border-radius: 3px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.5px;
  cursor: pointer;
}

.cc-logo-chot {
  background: #0038b8;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
  position: relative;
}

.cc-logo-care {
  color: #0038b8;
  border-top: 3px solid #0038b8;
  border-bottom: 3px solid #0038b8;
  padding: 0 3px;
}

.cc-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 6px;
}

.cc-nav::-webkit-scrollbar {
  width: 4px;
}
.cc-nav::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

.cc-nav-item {
  width: 100%;
  border: none;
  background: transparent;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 11px;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  margin-bottom: 2px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.cc-nav-item:hover {
  background: var(--sidebar-hover);
  color: #ffffff;
}

.cc-nav-item.active {
  background: var(--sidebar-active-blue);
  color: #ffffff;
  font-weight: 600;
}

.cc-nav-item.active-gray {
  background: var(--sidebar-active-gray);
  color: #ffffff;
  font-weight: 600;
}

.cc-nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cc-nav-icon {
  width: 16px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  opacity: 0.9;
}

.cc-hot-badge {
  background: linear-gradient(135deg, #ff6b00, #dc2626);
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 10px;
  letter-spacing: 0.3px;
  transform: rotate(-8deg);
  white-space: nowrap;
  flex-shrink: 0;
}

.cc-msg-bubble-icon {
  color: #ef4444;
  font-size: 14px;
  position: relative;
  flex-shrink: 0;
}

.cc-submenu {
  display: none;
  padding-left: 6px;
  margin-bottom: 4px;
}

.cc-submenu.open {
  display: block;
}

.cc-sub-item {
  width: 100%;
  border: none;
  background: transparent;
  color: #b8c2cc;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  text-align: left;
  margin-bottom: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cc-sub-item:hover {
  background: var(--sidebar-hover);
  color: #ffffff;
}

.cc-sub-item.active {
  background: var(--sidebar-active-blue);
  color: #ffffff;
  font-weight: 600;
}

.cc-sidebar-footer {
  padding: 8px 10px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cc-collapse-row {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 6px;
}

.cc-collapse-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  font-size: 14px;
}

.cc-account-info-btn {
  width: 100%;
  background: #0052cc;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.cc-account-info-btn:hover {
  background: #003d99;
}

@media (max-width: 900px) {
  body {
    flex-direction: column;
  }
  .cc-sidebar {
    width: 100%;
    min-width: 100%;
    height: auto;
    position: relative;
  }
  .cc-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-height: 240px;
  }
  .cc-nav-item {
    width: auto;
    flex: 1 1 calc(50% - 4px);
  }
  .cc-submenu.open {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  .cc-sub-item {
    width: auto;
    flex: 1 1 calc(50% - 4px);
  }
}

/* ==================== MAIN WORKSPACE ==================== */
.cc-main {
  flex: 1;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.cc-panel {
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  border: 1px solid #e5e7eb;
  min-height: calc(100vh - 26px);
  display: flex;
  flex-direction: column;
}

/* ==================== TOP ACTION BAR ==================== */
.cc-toolbar {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid #edf2f7;
}

.cc-toolbar.space-between {
  justify-content: space-between;
}

.cc-page-title {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  position: relative;
  padding-bottom: 6px;
}

.cc-page-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: #ff5722;
  border-radius: 2px;
}

/* ==================== BUTTONS CHỐT CARE ==================== */
.cc-btn {
  border: none;
  border-radius: 5px;
  padding: 7px 16px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity 0.15s, transform 0.05s;
  white-space: nowrap;
}

.cc-btn:active {
  transform: translateY(1px);
}

.cc-btn-blue {
  background: var(--btn-blue);
  color: #ffffff;
}
.cc-btn-blue:hover {
  background: var(--btn-blue-hover);
}

.cc-btn-red {
  background: var(--btn-red);
  color: #ffffff;
}
.cc-btn-red:hover {
  background: var(--btn-red-hover);
}

.cc-btn-green {
  background: var(--btn-green);
  color: #ffffff;
}

.cc-btn-outline {
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
}
.cc-btn-outline:hover {
  background: #f8fafc;
}

.cc-btn-sm {
  padding: 5px 11px;
  font-size: 12px;
  border-radius: 4px;
}

/* ==================== TOGGLE SWITCH CHỐT CARE ==================== */
.cc-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 4px 12px 4px 6px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
}

.cc-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
}

.cc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cc-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  transition: 0.2s;
  border-radius: 20px;
}

.cc-slider::before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
}

.cc-switch input:checked + .cc-slider {
  background-color: #0047b3;
}

.cc-switch input:checked + .cc-slider::before {
  transform: translateX(18px);
}

/* ==================== SEARCH INPUT ==================== */
.cc-search-input {
  border: 1px solid #d1d5db;
  border-radius: 5px;
  padding: 6px 12px;
  font-size: 12.5px;
  min-width: 190px;
  outline: none;
  color: #1e293b;
  background: #ffffff;
}

.cc-search-input:focus {
  border-color: #0047b3;
}

/* ==================== DATA TABLE CHỐT CARE ==================== */
.cc-table-container {
  flex: 1;
  overflow-x: auto;
}

.cc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.cc-table thead tr {
  background-color: #f1f3f6;
  border-bottom: 1px solid #e2e8f0;
}

.cc-table th {
  padding: 11px 12px;
  text-align: left;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  font-size: 12px;
}

.cc-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.cc-table tbody tr:hover {
  background-color: #f8fafc;
}

.cc-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #0047b3;
}

.cc-acc-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cc-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #cbd5e1;
}

.cc-status-active {
  color: var(--status-blue);
  font-weight: 700;
}

.cc-status-inactive {
  color: var(--status-red);
  font-weight: 700;
}

.cc-status-running {
  color: var(--status-running);
  font-weight: 700;
}

.cc-actions-stack {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
}

.cc-actions-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

/* ==================== THỎA THUẬN XỬ LÝ DỮ LIỆU TIN NHẮN (ẢNH 3) ==================== */
.cc-agreement-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: #f4f7fb;
}

.cc-agreement-card {
  width: 100%;
  max-width: 640px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
  border: 1px solid #e2e8f0;
  padding: 24px 28px;
}

.cc-agreement-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.cc-shield-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #1d4ed8;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.cc-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 0;
  font-size: 12px;
  color: #64748b;
}

.cc-step {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cc-step-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
}

.cc-step.active {
  color: #1d4ed8;
  font-weight: 600;
}

.cc-step.active .cc-step-circle {
  border-color: #1d4ed8;
  color: #1d4ed8;
}

.cc-step-line {
  width: 70px;
  height: 1.5px;
  background: #cbd5e1;
}

.cc-step-line.active {
  background: #3b82f6;
}

.cc-agreement-banner {
  background: linear-gradient(135deg, #2536eb, #3b49df);
  color: #ffffff;
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.cc-agreement-box {
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 20px;
}

/* ==================== LIVE CHAT TẬP TRUNG (GIAO DIỆN SÁNG) ==================== */
.cc-livechat-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: calc(100vh - 95px);
  border-top: 1px solid #e2e8f0;
}

.cc-chat-sidebar {
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
}

.cc-chat-list {
  flex: 1;
  overflow-y: auto;
}

.cc-chat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid #eef2f6;
  cursor: pointer;
  background: #ffffff;
}

.cc-chat-item:hover {
  background: #f1f5f9;
}

.cc-chat-item.active {
  background: #eff6ff;
  border-left: 3px solid #0047b3;
}

.cc-chat-main {
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.cc-chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cc-msg-bubble {
  max-width: 72%;
  padding: 10px 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  align-self: flex-start;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.cc-msg-bubble.self {
  background: #dbeafe;
  border-color: #bfdbfe;
  align-self: flex-end;
}

.cc-chat-composer {
  padding: 12px 16px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 10px;
  background: #ffffff;
}

/* ==================== MODAL DIALOGS ==================== */
.cc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.cc-modal-overlay.open {
  display: flex;
}

.cc-modal {
  background: #ffffff;
  border-radius: 10px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
  overflow: hidden;
}

.cc-modal-header {
  padding: 14px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 15px;
  color: #0f172a;
}

.cc-modal-body {
  padding: 18px;
  overflow-y: auto;
}

.cc-modal-footer {
  padding: 12px 18px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.cc-form-group {
  margin-bottom: 14px;
}

.cc-label {
  display: block;
  font-weight: 600;
  font-size: 12.5px;
  margin-bottom: 5px;
  color: #334155;
}

.cc-input,
.cc-select,
.cc-textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 11px;
  font-size: 13px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  font-family: inherit;
}

.cc-input:focus,
.cc-select:focus,
.cc-textarea:focus {
  border-color: #0047b3;
}

.cc-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cc-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* ==================== AUTH OVERLAY ==================== */
.cc-auth-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #1e222d 0%, #0f172a 100%);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.cc-auth-card {
  width: 100%;
  max-width: 430px;
  background: #ffffff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}

.cc-pagination-bar {
  padding: 12px 16px;
  border-top: 1px solid #edf2f7;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #64748b;
  font-size: 12.5px;
}

.cc-slot-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
  max-height: 165px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px;
  background: #f8fafc;
}

.cc-slot-check-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  font-size: 12px;
  cursor: pointer;
}

/* ==================== MODAL KỊCH BẢN KẾT BẠN / CHIẾN DỊCH 2 CỘT (GIỐNG ẢNH CHỐT CARE) ==================== */
.cc-script-modal-wide {
  max-width: 1140px;
  width: 96vw;
  max-height: 92vh;
}

.cc-script-modal-header {
  align-items: flex-start;
  background: #ffffff;
  padding: 16px 22px;
  border-bottom: 1px solid #e2e8f0;
}

.cc-script-close-btn {
  background: transparent;
  border: none;
  font-size: 18px;
  color: #64748b;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

.cc-script-close-btn:hover {
  color: #0f172a;
}

.cc-script-modal-2col {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 22px;
  padding: 18px 22px;
  background: #ffffff;
}

.cc-script-left-col {
  padding-right: 6px;
}

.cc-script-right-col {
  border-left: 1px solid #e2e8f0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
}

.cc-input-addon-group {
  display: flex;
  align-items: stretch;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
}

.cc-input-addon-label {
  background: #f8fafc;
  border-right: 1px solid #cbd5e1;
  padding: 9px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: #475569;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.cc-input-addon-group .cc-input {
  border: none;
  border-radius: 0;
  flex: 1;
}


/* Tooltip chữ i màu xanh giống ảnh Chốt Care */
.cc-info-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #0047b3;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  font-style: italic;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

.cc-info-icon:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-30%);
  width: 290px;
  background: #1e293b;
  color: #ffffff;
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.45;
  padding: 10px 12px;
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.28);
  z-index: 2500;
  white-space: normal;
  pointer-events: none;
}

.cc-time-box {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
}

.cc-phones-split-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 14px;
  align-items: start;
}

.cc-split-evenly-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #334155;
  cursor: pointer;
  padding-top: 2px;
}

.cc-greeting-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.cc-btn-action-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #ffffff;
  color: #1e293b;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.cc-btn-action-chip:hover {
  border-color: #0047b3;
  color: #0047b3;
  background: #eff6ff;
}

/* Các thẻ nội dung đã thêm: [Xin chào... (x)] */
.cc-contents-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  min-height: 30px;
}

.cc-content-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: #0047b3;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 5px;
  max-width: 180px;
  cursor: pointer;
  user-select: none;
}

.cc-content-pill-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cc-content-pill-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #ffffff;
  cursor: pointer;
  line-height: 1;
}

/* Cột phải Chọn tài khoản trong Modal Kịch bản */
.cc-script-acc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.cc-script-acc-search-wrap {
  flex: 1;
  min-width: 110px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  padding: 3px 6px;
  background: #ffffff;
}

.cc-script-acc-search-wrap input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 12px;
  color: #0f172a;
}

.cc-script-acc-search-wrap button {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 13px;
  padding: 0 3px;
}

.cc-script-acc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 410px;
  overflow-y: auto;
  padding-right: 4px;
}

.cc-script-acc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.12s;
}

.cc-script-acc-row:hover {
  background: #f1f5f9;
}

.cc-script-acc-row.selected {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.cc-script-acc-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #cbd5e1;
  flex-shrink: 0;
}

.cc-script-acc-name {
  font-weight: 700;
  color: #0f172a;
  font-size: 13px;
}

.cc-script-acc-phone {
  font-weight: 600;
  color: #334155;
  font-size: 12.5px;
  margin-left: 4px;
}

/* ==================== TRANG ĐĂNG VIDEO - ZALO VIDEO CREATOR STUDIO ==================== */
.cc-video-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

.cc-video-channel-strip-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  overflow-x: auto;
}

.cc-video-channel-label {
  font-weight: 700;
  font-size: 13px;
  color: #0f172a;
  white-space: nowrap;
}

.cc-video-channel-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0;
}

.cc-video-channel-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.cc-video-channel-pill img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.cc-video-channel-pill.active {
  background: #0047b3;
  border-color: #0047b3;
  color: #ffffff;
}

.cc-video-studio-layout {
  display: grid;
  grid-template-columns: 205px 1fr;
  gap: 20px;
  padding-top: 16px;
  min-height: calc(100vh - 110px);
}

.cc-video-sidebar {
  border-right: 1px solid #e2e8f0;
  padding-right: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cc-video-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
}

.cc-video-nav-item:hover {
  background: #f1f5f9;
}

.cc-video-nav-item.active {
  background: #e0edff;
  color: #0047b3;
  font-weight: 700;
}

.cc-video-nav-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px 4px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.cc-video-nav-subitem {
  padding: 6px 12px 6px 34px;
  font-size: 12.5px;
  color: #475569;
  border-radius: 6px;
  cursor: pointer;
}

.cc-video-nav-subitem:hover {
  background: #f1f5f9;
  color: #0047b3;
}

.cc-video-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cc-video-channel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.cc-video-channel-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e2e8f0;
}

.cc-video-tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid #e2e8f0;
}

.cc-video-tab {
  background: transparent;
  border: none;
  border-bottom: 2.5px solid transparent;
  padding: 8px 4px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
}

.cc-video-tab.active {
  color: #0047b3;
  border-bottom-color: #0047b3;
}

.cc-video-section {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 18px;
  background: #ffffff;
}

.cc-video-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13.5px;
  color: #0f172a;
  margin-bottom: 12px;
}

.cc-video-stats-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.cc-video-stats-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.cc-video-stat-card {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px 14px;
  background: #f8fafc;
}

.cc-video-stat-label {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 6px;
}

.cc-video-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

@media (max-width: 960px) {
  .cc-script-modal-2col {
    grid-template-columns: 1fr;
  }
  .cc-script-right-col,
  .cc-script-invite-right-col {
    border-left: none;
    border-top: 1px solid #e2e8f0;
    padding-left: 0;
    padding-top: 14px;
  }
  .cc-phones-split-grid,
  .cc-if-two-lists-grid {
    grid-template-columns: 1fr;
  }
  .cc-video-studio-layout {
    grid-template-columns: 1fr;
  }
}

/* ==================== KỊCH BẢN MỜI BẠN BÈ THAM GIA NHÓM ==================== */
.cc-script-invite-right-col {
  border-left: 1px solid #e2e8f0;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
}

.cc-if-accounts-strip {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px 14px;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
}

.cc-if-acc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1.5px solid transparent;
  cursor: pointer;
  min-width: 115px;
  transition: all 0.15s ease;
  user-select: none;
}

.cc-if-acc-card:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.cc-if-acc-card.active {
  background: #eff6ff;
  border-color: #0047b3;
}

.cc-if-acc-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #cbd5e1;
  margin-bottom: 2px;
}

.cc-if-acc-name {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cc-if-acc-phone {
  font-size: 11px;
  color: #64748b;
}

.cc-if-two-lists-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cc-if-subcol {
  display: flex;
  flex-direction: column;
}

.cc-if-list-box {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 10px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 285px;
}

.cc-if-search-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 8px;
}

.cc-if-input-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.cc-if-clear-circle {
  position: absolute;
  right: 6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #475569;
  color: #ffffff;
  border: none;
  font-size: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.cc-if-clear-circle:hover {
  background: #1e293b;
}

.cc-if-items-scroll {
  flex: 1;
  max-height: 205px;
  min-height: 185px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cc-if-item-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  background: #ffffff;
  font-size: 12px;
  transition: all 0.12s ease;
}

.cc-if-item-row:hover {
  border-color: #93c5fd;
  background: #f8fafc;
}

.cc-if-item-row.selected {
  border-color: #0047b3;
  background: #eff6ff;
}

.cc-if-item-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #cbd5e1;
  flex-shrink: 0;
}

.cc-if-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding-top: 6px;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}

.cc-if-page-arrow {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 6px;
}

.cc-if-page-arrow:hover {
  color: #0047b3;
}

/* ==================== CHÚC MỪNG SINH NHẬT PANEL ==================== */
.cc-bday-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 20px;
  align-items: start;
}

.cc-bday-left {
  display: flex;
  flex-direction: column;
}

.cc-bday-right {
  display: flex;
  flex-direction: column;
}

/* ==================== MUA GÓI DỊCH VỤ (CHỐT CARE) ==================== */
.cc-billing-page-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 6px 4px 24px 4px;
}

.cc-billing-hero-banner {
  background: linear-gradient(90deg, #003ea1 0%, #1d63dc 100%);
  border-radius: 14px;
  padding: 24px 28px;
  color: #ffffff;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px rgba(0, 62, 161, 0.18);
}

.cc-billing-hero-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.2px;
  margin-bottom: 4px;
}

.cc-billing-hero-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
}

.cc-billing-subtabs-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 16px;
}

.cc-billing-pill {
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.cc-billing-pill.active {
  background: #0047b3;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 71, 179, 0.25);
}

.cc-billing-priority-alert {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #b45309;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
}

.cc-billing-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.cc-plan-card-chotcare {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cc-plan-card-chotcare:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.cc-plan-header-blue {
  background: linear-gradient(135deg, #0047b3 0%, #2563eb 100%);
  color: #ffffff;
  padding: 20px 22px;
}

.cc-plan-header-title {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.cc-plan-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cc-plan-badge-pill {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cc-plan-body-chotcare {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cc-plan-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  color: #475569;
}

.cc-plan-collapse-btn {
  background: transparent;
  border: none;
  color: #1d4ed8;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 0 14px 0;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 14px;
  text-align: center;
}

.cc-plan-option-box {
  border: 1.5px solid #2563eb;
  border-radius: 10px;
  padding: 10px 14px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.cc-plan-option-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 5px solid #1d4ed8;
  background: #ffffff;
  flex-shrink: 0;
}

.cc-plan-tier-select {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 13.5px;
  font-weight: 700;
  color: #1d4ed8;
  outline: none;
  cursor: pointer;
}

.cc-btn-buy-plan {
  margin-top: auto;
  width: 100%;
  background: linear-gradient(90deg, #0047b3 0%, #2563eb 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.cc-btn-buy-plan:hover {
  opacity: 0.95;
}

@media (max-width: 960px) {
  .cc-bday-layout,
  .cc-billing-cards-grid {
    grid-template-columns: 1fr;
  }
}



