/* ==========================================================================
   HỌC VIỆN MINH TRIẾT PHƯƠNG ĐÔNG - CẨM NANG KHÓA HỌC 2026
   Giao diện Chuẩn Màu Trắng (Light Theme) theo hocvienminhtrietphuongdong.vn
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700;800&family=Noto+Serif:wght@500;600;700;800&display=swap');

:root {
  /* Main Light Palette */
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-sidebar: #ffffff;
  
  /* Brand Colors */
  --primary-navy: #0f172a;
  --primary-dark: #1e293b;
  --brand-burgundy: #801424;     /* Màu đỏ đô đặc trưng của Học viện Minh Triết */
  --brand-burgundy-hover: #991b1b;
  --brand-gold: #c59b27;         /* Vàng kim hoa sen */
  --brand-gold-dark: #a17c18;
  --brand-gold-light: #fef9e7;
  --brand-blue: #0284c7;
  --brand-green: #10b981;
  
  /* Text Colors */
  --text-main: #0f172a;
  --text-sub: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  /* Borders & Shadows */
  --border-light: #e2e8f0;
  --border-hover: #cbd5e1;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px -4px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  
  --font-sans: 'Be Vietnam Pro', sans-serif;
  --font-serif: 'Noto Serif', serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Container */
.app-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px 60px 24px;
}

/* ==========================================================================
   Header Navbar - Nền Trắng Tinh Tế theo hocvienminhtrietphuongdong.vn
   ========================================================================== */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.brand-wrap:hover .brand-logo-img {
  transform: scale(1.05);
}

.brand-text h1 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin: 0;
}

.brand-text p {
  font-size: 11.5px;
  color: var(--text-muted);
  margin: 1px 0 0 0;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Nav Menu Links */
.header-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-sub);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary-navy);
  background: var(--bg-subtle);
}

.nav-link.active {
  background: #0f172a;
  color: #ffffff;
}

.header-action-pills {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  text-decoration: none;
  transition: var(--transition);
}

.app-btn-pill:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.app-btn-pill i {
  color: var(--brand-gold-dark);
}

/* Role Badge Pill */
.role-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.role-badge-pill.student {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.role-badge-pill.student:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.role-badge-pill.admin {
  background: #0f172a;
  color: #fbbf24;
  border: 1px solid #334155;
}

/* Admin Visibility Rules */
.admin-only {
  display: none !important;
}

body.role-admin .admin-only {
  display: inline-flex !important;
}

body.role-admin div.admin-only {
  display: flex !important;
}

/* ==========================================================================
   2-Column Layout: Sidebar (Trái) + Course Grid (Phải)
   ========================================================================== */
.main-layout-grid {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 28px;
  margin-top: 24px;
  align-items: start;
}

/* ==========================================================================
   Sidebar Filters (Bên Trái) - Chuẩn như ảnh Minh Triết Phương Đông
   ========================================================================== */
.filter-sidebar {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 80px;
}

.sidebar-count-box {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 16px;
}

.sidebar-count-text {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.sidebar-section-title {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-radio-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--text-sub);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.filter-radio-item:hover {
  color: var(--primary-navy);
}

.filter-radio-item input[type="radio"],
.filter-radio-item input[type="checkbox"] {
  accent-color: #0f172a;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.filter-radio-item.active {
  font-weight: 700;
  color: #0f172a;
}

.sidebar-divider {
  height: 1px;
  background: var(--border-light);
  margin: 18px 0;
}

.reset-all-filters-btn {
  width: 100%;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
  margin-top: 10px;
}

.reset-all-filters-btn:hover {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

/* ==========================================================================
   Main Content Area (Bên Phải)
   ========================================================================== */
.content-area {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Top Toolbar: Search + Sort + Actions */
.top-toolbar {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.search-bar-wrap {
  flex: 1;
  min-width: 260px;
  position: relative;
}

.search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 14px;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 10px 38px 10px 14px;
  font-size: 13.5px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--text-main);
  outline: none;
  font-family: inherit;
  transition: var(--transition);
}

.search-input:focus {
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.sort-select {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

.sort-select:focus {
  border-color: #0f172a;
}

.admin-actions-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: #0f172a;
  color: #ffffff;
}

.btn-primary:hover {
  background: #1e293b;
}

.btn-secondary {
  background: #f1f5f9;
  border-color: var(--border-light);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: #e2e8f0;
}

.btn-outline {
  background: #ffffff;
  border-color: var(--border-light);
  color: var(--text-sub);
}

.btn-outline:hover {
  background: #f8fafc;
  color: var(--text-main);
}

.btn-sm {
  padding: 6px 11px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Course Cards Grid (3 Cột) - Giống hệt ảnh chụp hocvienminhtrietphuongdong.vn
   ========================================================================== */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.course-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

/* Card Thumbnail Banner */
.card-thumbnail-wrap {
  width: 100%;
  height: 160px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
}

/* Distinctive Course Banners */
.card-thumb-bg-1 { background: linear-gradient(135deg, #4a0404 0%, #7f1d1d 50%, #991b1b 100%); color: white; }
.card-thumb-bg-2 { background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%); color: white; }
.card-thumb-bg-3 { background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%); color: white; }
.card-thumb-bg-4 { background: linear-gradient(135deg, #78350f 0%, #92400e 50%, #b45309 100%); color: white; }
.card-thumb-bg-5 { background: linear-gradient(135deg, #581c87 0%, #6b21a8 50%, #7e22ce 100%); color: white; }
.card-thumb-bg-6 { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); color: white; }

.card-thumb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.thumb-lotus-logo {
  font-size: 11px;
  font-weight: 700;
  color: #fde68a;
  display: flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.card-thumb-center {
  text-align: center;
  z-index: 2;
}

.thumb-course-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  line-height: 1.3;
}

.card-thumb-badges {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.badge-time {
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-status-danghoc {
  background: #2563eb;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
}

/* Card Body */
.card-body {
  padding: 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-card-name {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.course-card-name:hover {
  color: #2563eb;
}

.course-card-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Pricing Section in Card: RÕ RÀNG THEO YÊU CẦU */
.course-card-pricing {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.price-row-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.price-title-wrap {
  display: flex;
  flex-direction: column;
}

.price-title-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
}

.price-note-sub {
  font-size: 10.5px;
  color: #b45309;
  font-weight: 600;
  margin-top: 1px;
}

.price-value-amount {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
}

.price-value-amount.gold {
  color: #b45309;
}

.price-value-amount.free {
  color: #059669;
}

.deposit-note-sub {
  font-size: 10.5px;
  color: #475569;
  margin-top: 1px;
}

/* Card Footer Action Button: Xem chi tiết / Đăng ký khóa học */
.card-footer-action {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-enroll-full {
  width: 100%;
  background: #0f172a;
  color: #ffffff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.btn-enroll-full:hover {
  background: #801424; /* Hover chuyển màu đỏ đô Minh Triết */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(128, 20, 36, 0.25);
}

.btn-enroll-full i {
  font-size: 14px;
  color: #fde68a;
}

.price-row-item.total-cost {
  background: #f1f5f9;
  border-radius: 6px;
  padding: 6px 10px;
  margin-top: 4px;
  border-left: 3px solid #0f172a;
}

.price-row-item.total-cost .price-title-label {
  color: #0f172a;
  font-weight: 800;
}

.price-row-item.total-cost .price-value-amount {
  font-size: 16px;
  font-weight: 800;
  color: #b91c1c;
}

/* ==========================================================================
   STREAMLINED MODAL: NỀN TRẮNG SANG TRỌNG & TỐI ƯU UX
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease-out;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 980px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-light);
  transform: translateY(20px) scale(0.98);
  transition: all 0.25s ease-out;
  overflow: hidden;
}

.modal-backdrop.active .modal-window {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 18px 24px;
  background: #ffffff;
  color: #0f172a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border-light);
}

.modal-header h2 {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
}

.modal-close-btn {
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  color: #475569;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

/* 2-Column Streamlined Grid */
.streamlined-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
  align-items: start;
}

/* Left Column: Course Overview */
.modal-info-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.course-hero-box {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
}

.course-hero-price-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 14px;
}

.hero-price-tag {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
}

.hero-deposit-tag {
  font-size: 15px;
  font-weight: 700;
  color: #b45309;
}

.pricing-clarity-badge {
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.45;
}

.gift-highlight-card {
  background: #fffbeb;
  border: 1px dashed #fde68a;
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.gift-highlight-card h4 {
  font-size: 13px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gift-highlight-card ul {
  padding-left: 18px;
  font-size: 12.5px;
  color: #78350f;
  line-height: 1.6;
}

/* Right Column: Checkout & Dynamic VietQR */
.modal-checkout-col {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.checkout-step-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
}

.checkout-step-header .step-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.student-input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.input-field-wrap label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 4px;
}

.input-field-wrap input {
  width: 100%;
  padding: 9px 12px;
  font-size: 13px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: #0f172a;
  outline: none;
  font-family: inherit;
  transition: var(--transition);
}

.input-field-wrap input:focus {
  border-color: #0f172a;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.1);
}

.dynamic-qr-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  margin-bottom: 12px;
}

.dynamic-qr-image {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: var(--radius-sm);
  display: block;
  margin: 0 auto 6px auto;
}

.qr-caption {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

.live-syntax-preview {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 12px;
}

.live-syntax-label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
}

.live-syntax-text {
  font-family: monospace;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  word-break: break-all;
  margin-top: 3px;
}

.bank-info-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.bank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
}

.bank-row .label {
  color: #64748b;
}

.bank-row .val {
  font-weight: 700;
  color: #0f172a;
}

.copy-btn-mini {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.copy-btn-mini:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.cta-button-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.btn-cta-dark {
  background: #0f172a;
  color: #ffffff;
  font-weight: 700;
  padding: 11px 16px;
  font-size: 13.5px;
  border-radius: var(--radius-md);
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-cta-dark:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.btn-cta-zalo {
  background: #0068ff;
  color: #ffffff;
  font-weight: 700;
  padding: 10px 16px;
  font-size: 13px;
  border-radius: var(--radius-md);
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-cta-zalo:hover {
  background: #0056d6;
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #0f172a;
  color: white;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-left: 4px solid #10b981;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.error {
  border-left-color: #ef4444;
}

/* Forms in Admin Modal */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group.col-span-2 {
  grid-column: span 2;
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.form-input, .form-textarea, .form-select {
  padding: 9px 12px;
  font-size: 13px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--text-main);
  outline: none;
  font-family: inherit;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: #0f172a;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.1);
}

/* Responsive */
@media (max-width: 900px) {
  .main-layout-grid {
    grid-template-columns: 1fr;
  }
  .filter-sidebar {
    position: static;
  }
  .streamlined-modal-grid {
    grid-template-columns: 1fr;
  }
}
