/* Công Định Auto Admin Control Panel Stylesheet
   Modern, sleek dark admin dashboard with motorsport accents
*/

:root {
  --adm-bg: #090d14;
  --adm-sidebar: #0f1726;
  --adm-card: #141c2e;
  --adm-border: #1f2a40;
  --adm-primary: #ff5500;
  --adm-primary-hover: #ea580c;
  --adm-text: #f1f5f9;
  --adm-text-muted: #8e9cb2;
  --adm-text-dim: #5c6b84;
  --adm-green: #10b981;
  --adm-blue: #3b82f6;
  --adm-yellow: #f59e0b;
  --adm-red: #ef4444;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--adm-bg);
  color: var(--adm-text);
  line-height: 1.5;
}

/* ------------------- LOGIN SCREEN ------------------- */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at 50% 30%, #172138 0%, #090d14 70%);
}

.login-card {
  background-color: var(--adm-card);
  border: 1px solid var(--adm-border);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.login-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.login-badge {
  background: linear-gradient(135deg, #ff5500, #b91c1c);
  color: white;
  font-weight: 900;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 18px;
}

.login-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 13px;
  color: var(--adm-text-muted);
  margin-bottom: 28px;
}

/* ------------------- ADMIN LAYOUT ------------------- */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
  width: 260px;
  background-color: var(--adm-sidebar);
  border-right: 1px solid var(--adm-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: all 0.3s ease;
  z-index: 100;
}

.sidebar-brand {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--adm-border);
}

.sidebar-menu {
  list-style: none;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.sidebar-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--adm-text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s;
}

.sidebar-menu li a:hover {
  background-color: rgba(255, 85, 0, 0.08);
  color: #fff;
}

.sidebar-menu li a.active {
  background: linear-gradient(135deg, var(--adm-primary), #ea580c);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 85, 0, 0.35);
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--adm-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Main Area */
.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Topbar */
.admin-topbar {
  background-color: var(--adm-sidebar);
  border-bottom: 1px solid var(--adm-border);
  padding: 14px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-visit-site {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--adm-text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--adm-border);
}

.btn-visit-site:hover {
  color: #fff;
  border-color: var(--adm-primary);
}

/* Content Container */
.admin-content {
  padding: 30px;
  flex: 1;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

/* Dashboard Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background-color: var(--adm-card);
  border: 1px solid var(--adm-border);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.stat-info h3 {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-info span {
  font-size: 13px;
  color: var(--adm-text-muted);
}

/* Admin Panels & Tables */
.admin-panel {
  background-color: var(--adm-card);
  border: 1px solid var(--adm-border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 30px;
}

.panel-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--adm-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.panel-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  background-color: rgba(9, 13, 20, 0.6);
  padding: 12px 18px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--adm-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--adm-border);
}

.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--adm-text);
  vertical-align: middle;
}

.data-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
}

/* Status Badges */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-pending { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.badge-confirmed { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.badge-done { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.badge-cancelled { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.badge-published { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.badge-draft { background: rgba(142, 156, 178, 0.15); color: #8e9cb2; }

/* Admin Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--adm-text);
  margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background-color: var(--adm-sidebar);
  border: 1px solid var(--adm-border);
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--adm-primary);
}

/* Rich Editor Toolbar */
.editor-toolbar {
  display: flex;
  gap: 4px;
  background: var(--adm-sidebar);
  border: 1px solid var(--adm-border);
  border-bottom: none;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  padding: 6px 10px;
  flex-wrap: wrap;
}

.editor-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--adm-text-muted);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: bold;
}

.editor-btn:hover {
  background-color: var(--adm-card);
  color: #fff;
}

.editor-content {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  min-height: 220px;
  font-family: monospace;
}

/* Gallery Upload Drag Area */
.upload-dropzone {
  border: 2px dashed var(--adm-border);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  background: rgba(15, 23, 38, 0.4);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 24px;
}

.upload-dropzone:hover {
  border-color: var(--adm-primary);
  background: rgba(255, 85, 0, 0.04);
}

.upload-icon {
  width: 48px;
  height: 48px;
  color: var(--adm-primary);
  margin-bottom: 10px;
}

/* Gallery Admin Grid */
.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.admin-gallery-card {
  background-color: var(--adm-sidebar);
  border: 1px solid var(--adm-border);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.admin-gallery-thumb {
  height: 140px;
  background-color: #000;
}

.admin-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-gallery-info {
  padding: 10px 12px;
}

.admin-gallery-info h5 {
  font-size: 13px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-gallery-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

/* Action Buttons */
.btn-action {
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s;
}

.btn-edit { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.btn-delete { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.btn-copy { background: rgba(16, 185, 129, 0.2); color: #34d399; }

.btn-action:hover { opacity: 0.8; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--adm-primary), #ea580c);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 85, 0, 0.3);
}

.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 85, 0, 0.4);
}

/* Keyframes */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Table Responsive */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Mobile Sidebar Toggle & Overlay */
.btn-sidebar-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--adm-border);
  color: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 99;
}

.sidebar-backdrop.active {
  display: block;
}

@media (max-width: 900px) {
  .btn-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .admin-sidebar {
    position: fixed;
    left: -280px;
    width: 280px;
    height: 100vh;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.6);
    z-index: 100;
  }

  .admin-sidebar.open {
    left: 0;
  }

  .admin-content {
    padding: 16px;
  }

  .admin-topbar {
    padding: 12px 16px;
  }
}

/* Slide Banner Admin Cards */
.slides-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.slide-admin-card {
  background-color: var(--adm-sidebar);
  border: 1px solid var(--adm-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.slide-admin-card.inactive {
  opacity: 0.65;
  border-style: dashed;
}

.slide-admin-card:hover {
  border-color: rgba(255, 85, 0, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.slide-banner-preview,
.slide-admin-thumb {
  position: relative;
  height: 190px;
  background-color: #000;
  overflow: hidden;
}

.slide-banner-preview img,
.slide-admin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-order-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.slide-status-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}

.slide-admin-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 2;
}

.badge-active,
.badge-confirmed { background: rgba(16, 185, 129, 0.9); color: #fff; }
.badge-inactive,
.badge-cancelled { background: rgba(239, 68, 68, 0.85); color: #fff; }

.slide-admin-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.slide-admin-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.3;
}

.slide-admin-sub,
.slide-admin-subtitle {
  font-size: 13px;
  color: var(--adm-text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slide-admin-buttons,
.slide-admin-buttons-preview {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 12px;
}

.slide-btn-tag {
  background: rgba(255, 85, 0, 0.12);
  border: 1px solid rgba(255, 85, 0, 0.3);
  color: var(--adm-primary);
  padding: 4px 10px;
  border-radius: 6px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 600;
}

.slide-btn-tag.primary {
  background: rgba(255, 85, 0, 0.15);
  border-color: rgba(255, 85, 0, 0.4);
  color: #ff7733;
}

.slide-btn-tag.secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #cbd5e1;
}

.slide-admin-actions {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--adm-border);
}

/* ------------------- MODAL DIALOGS ------------------- */
.modal {
  position: fixed;
  inset: 0;
  background-color: rgba(4, 7, 13, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal.active {
  display: flex !important;
}

.modal-dialog {
  background-color: var(--adm-card);
  border: 1px solid var(--adm-border);
  border-radius: 14px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: admModalZoom 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes admModalZoom {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 18px 24px;
  background-color: var(--adm-sidebar);
  border-bottom: 1px solid var(--adm-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--adm-text-dim);
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}

.modal-close:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.08);
}

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

/* Media Picker Modal */
.media-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
  padding: 8px 2px;
}

.media-picker-item {
  position: relative;
  height: 105px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background-color: var(--adm-bg);
  transition: all 0.2s;
}

.media-picker-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-picker-item:hover {
  border-color: var(--adm-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 85, 0, 0.3);
}

.media-picker-item .media-picker-title,
.media-picker-item span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.75);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  padding: 4px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.toast {
  background-color: var(--adm-card);
  border: 1px solid var(--adm-border);
  color: #fff;
  padding: 14px 20px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 420px;
  animation: admToastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 4px solid var(--adm-primary);
  pointer-events: auto;
  font-size: 13px;
  font-weight: 600;
}

.toast.success { border-left-color: var(--adm-green); }
.toast.error { border-left-color: var(--adm-red); }

@keyframes admToastIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ------------------- FOCAL POINT & THUMBNAIL ANGLE PICKER ------------------- */
.btn-focal-preset {
  background: #141b26;
  border: 1px solid #232f42;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 4px;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-focal-preset:hover {
  background: #1e293b;
  border-color: #ef4444;
  color: #fff;
  transform: translateY(-1px);
}

.btn-focal-preset.is-active {
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
  color: #ff6b6b;
  font-weight: 700;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}

/* ===================================================
   TỐI ƯU HÓA ADMIN CMS TRÊN THIẾT BỊ DI ĐỘNG & TABLET
   =================================================== */
@media (max-width: 768px) {
  .admin-topbar {
    padding: 10px 14px;
    gap: 10px;
  }
  .admin-title {
    font-size: 16px;
  }
  .table-responsive {
    border-radius: 8px;
    border: 1px solid var(--adm-border);
    margin-bottom: 16px;
  }
  .table-responsive table {
    min-width: 560px;
  }
  .notify-subtabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 6px !important;
    padding-bottom: 8px !important;
  }
  .notify-subtab-btn {
    white-space: nowrap !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .form-grid > * {
    grid-column: span 1 !important;
  }
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .admin-stat-card {
    padding: 14px 12px !important;
  }
  .admin-stat-val {
    font-size: 22px !important;
  }
  .slides-admin-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .admin-modal-dialog {
    width: 95% !important;
    max-width: 95% !important;
    padding: 16px !important;
    margin: 10px auto !important;
  }
}

/* =========================================================
   SEO & SOCIAL SHARE PREVIEW SIMULATOR STYLES
   ========================================================= */
.sim-tab-btn {
  flex: 1;
  padding: 8px 12px;
  background: transparent;
  color: var(--adm-text-dim);
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.sim-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.sim-tab-btn.active {
  background: var(--adm-primary, #ff5500);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 85, 0, 0.3);
}

.sim-card-wrapper {
  animation: fadeIn 0.25s ease-in-out;
}

/* 1. ZALO SIMULATOR */
.zalo-chat-container {
  background: #ebf1f8;
  border-radius: 12px;
  padding: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.zalo-chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.zalo-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #0068ff;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.zalo-bubble {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e1e6ed;
}
.zalo-link-thumb {
  width: 100%;
  aspect-ratio: 1.91 / 1;
  max-height: 180px;
  overflow: hidden;
  background: #1a1a1a;
}
.zalo-link-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.zalo-link-content {
  padding: 12px 14px;
}
.zalo-title {
  font-size: 14px;
  font-weight: 700;
  color: #081c36;
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.zalo-desc {
  font-size: 12px;
  color: #556575;
  line-height: 1.45;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.zalo-domain {
  font-size: 11px;
  color: #0068ff;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 2. FACEBOOK / MESSENGER SIMULATOR */
.fb-card-container {
  background: #18191a;
  border: 1px solid #3a3b3c;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.fb-link-thumb {
  width: 100%;
  aspect-ratio: 1.91 / 1;
  max-height: 190px;
  overflow: hidden;
  background: #000;
}
.fb-link-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fb-link-content {
  padding: 12px 14px;
  background: #242526;
}
.fb-domain {
  font-size: 11px;
  color: #b0b3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.fb-title {
  font-size: 15px;
  font-weight: 700;
  color: #e4e6eb;
  line-height: 1.35;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fb-desc {
  font-size: 12px;
  color: #b0b3b8;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 3. GOOGLE SERP SIMULATOR */
.google-card-container {
  background: #202124;
  border-radius: 10px;
  padding: 16px;
  border: 1px solid #3c4043;
  font-family: Roboto, Arial, sans-serif;
}
.google-site-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.google-favicon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #303134;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.google-title {
  font-size: 18px;
  color: #8ab4f8;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 6px;
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.google-title:hover {
  text-decoration: underline;
}
.google-desc {
  font-size: 13px;
  color: #bdc1c6;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* PRESETS & BADGES */
.btn-preset {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-preset:hover {
  background: rgba(255, 85, 0, 0.2);
  color: #ff5500;
  border-color: rgba(255, 85, 0, 0.4);
}

.badge-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #60a5fa;
  background: rgba(37, 99, 235, 0.12);
  padding: 5px 10px;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid rgba(37, 99, 235, 0.25);
  transition: all 0.2s ease;
}
.badge-link:hover {
  background: rgba(37, 99, 235, 0.25);
  color: #93c5fd;
}


