/* =============================================================
   HuyICT Booking — Popup CSS
   ============================================================= */

/* ── Overlay ─────────────────────────────────────────────────── */
.huyb-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10, 5, 25, .72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity .25s ease;
}
.huyb-overlay.huyb-visible {
  opacity: 1;
}
.huyb-overlay[hidden] {
  display: none !important;
}

/* ── Modal ───────────────────────────────────────────────────── */
.huyb-modal {
  position: relative;
  display: grid;
  grid-template-columns: 320px 1fr;
  width: 100%;
  max-width: 840px;
  max-height: 92vh;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.5);
  transform: translateY(24px) scale(.97);
  transition: transform .28s cubic-bezier(.34,1.56,.64,1);
  background: #fff;
}
.huyb-overlay.huyb-visible .huyb-modal {
  transform: translateY(0) scale(1);
}

/* ── Close button ────────────────────────────────────────────── */
.huyb-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 30;           /* luôn trên mọi thứ kể cả success overlay */
  width: 34px;
  height: 34px;
  background: rgba(30, 10, 50, .55);
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s, transform .15s, border-color .18s;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.huyb-close:hover {
  background: rgba(123, 63, 160, .85);
  border-color: rgba(255,255,255,.5);
  transform: scale(1.1);
}
.huyb-close:active { transform: scale(.95); }

/* ── Left panel ──────────────────────────────────────────────── */
.huyb-panel--left {
  background: linear-gradient(160deg, #1a0a2e 0%, #4a1e6e 55%, #7b3fa0 100%);
  color: #fff;
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.huyb-left-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 1;
}
.huyb-panel--left::before {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 240px;
  height: 240px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
  pointer-events: none;
}

.huyb-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 600;
  opacity: .85;
}
.huyb-brand__sparkle {
  color: #f0c040;
  font-size: 1rem;
}

.huyb-heading {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -.02em;
}
.huyb-heading em {
  font-style: normal;
  color: #f0c040;
}

.huyb-sub {
  font-size: .84rem;
  opacity: .8;
  line-height: 1.6;
  margin: 0;
}

.huyb-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.huyb-benefits li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  opacity: .9;
}
.huyb-benefits li svg {
  color: #f0c040;
  flex-shrink: 0;
}

.huyb-hotline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  opacity: .85;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.huyb-hotline a {
  color: #f0c040;
  font-weight: 700;
  text-decoration: none;
}

/* ── Right panel ─────────────────────────────────────────────── */
/* position: relative là BẮT BUỘC để success overlay đè lên đúng */
.huyb-panel--right {
  background: #fff;
  padding: 28px 28px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ── SUCCESS STATE: absolute overlay phủ toàn bộ right panel ─── */
.huyb-success {
  position: absolute;
  inset: 0;
  background: #fff;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  padding: 40px 28px;
  animation: huyb-fadein .35s ease;
}
/* CRITICAL: ẩn hoàn toàn khi có hidden attribute */
.huyb-success[hidden] {
  display: none !important;
}
.huyb-success__icon {
  animation: huyb-pop .5s cubic-bezier(.34,1.56,.64,1);
}
.huyb-success h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #111827;
  margin: 0;
}
.huyb-success p {
  color: #6b7280;
  font-size: .88rem;
  margin: 0;
  line-height: 1.6;
}

/* ── Form ────────────────────────────────────────────────────── */
.huyb-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  justify-content: center;
}
/* CRITICAL: ẩn hoàn toàn khi có hidden attribute */
.huyb-form[hidden] {
  display: none !important;
}

.huyb-form-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 3px solid #ef4444;
  color: #991b1b;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: .82rem;
  line-height: 1.6;
}
.huyb-form-error[hidden] {
  display: none !important;
}

.huyb-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.huyb-field label {
  font-size: .73rem;
  font-weight: 600;
  color: #374151;
  letter-spacing: .02em;
}
.huyb-req { color: #ef4444; }

.huyb-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.huyb-input-icon {
  position: absolute;
  left: 12px;
  color: #9ca3af;
  pointer-events: none;
  flex-shrink: 0;
}
.huyb-input-wrap input,
.huyb-input-wrap select,
.huyb-field textarea {
  width: 100%;
  padding: 9px 14px 9px 38px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: .86rem;
  font-family: inherit;
  color: #111827;
  background: #f9fafb;
  transition: border-color .15s, box-shadow .15s, background .15s;
  outline: none;
  appearance: none;
}
.huyb-field textarea {
  padding: 9px 14px;
  resize: vertical;
  min-height: 64px;
}
.huyb-input-wrap input:focus,
.huyb-input-wrap select:focus,
.huyb-field textarea:focus {
  border-color: #7b3fa0;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(123,63,160,.12);
}
.huyb-field.huyb-error .huyb-input-wrap input,
.huyb-field.huyb-error .huyb-input-wrap select,
.huyb-field.huyb-error textarea {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}
.huyb-input-wrap--select .huyb-select-arrow {
  position: absolute;
  right: 12px;
  color: #6b7280;
  pointer-events: none;
}

.huyb-field-err {
  font-size: .7rem;
  color: #ef4444;
  min-height: 14px;
}

/* ── Map ─────────────────────────────────────────────────────── */
.huyb-map-wrap {
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid #e5e7eb;
  animation: huyb-fadein .3s ease;
}
.huyb-map-wrap[hidden] {
  display: none !important;
}
.huyb-map-info {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 8px 12px;
  background: #f3eaff;
  color: #4a1e6e;
  font-size: .76rem;
  line-height: 1.5;
}
.huyb-map-info svg { flex-shrink: 0; margin-top: 1px; }
.huyb-map-frame {
  width: 100%;
  height: 150px;
  display: block;
}

/* ── Submit button ───────────────────────────────────────────── */
.huyb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all .18s ease;
  font-family: inherit;
  white-space: nowrap;
}
.huyb-btn--primary {
  background: linear-gradient(135deg, #4a1e6e, #7b3fa0);
  color: #fff;
  width: 100%;
  box-shadow: 0 4px 16px rgba(74,30,110,.35);
  margin-top: 4px;
}
.huyb-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74,30,110,.45);
}
.huyb-btn--primary:active { transform: translateY(0); }
.huyb-btn--primary:disabled {
  opacity: .75;
  transform: none;
  cursor: not-allowed;
}
.huyb-btn--outline {
  border: 2px solid #7b3fa0;
  color: #7b3fa0;
  background: transparent;
  padding: 10px 24px;
}
.huyb-btn--outline:hover { background: #7b3fa0; color: #fff; }

/* ── Spin animation ──────────────────────────────────────────── */
.huyb-spin {
  animation: huyb-rotate 1s linear infinite;
}
@keyframes huyb-rotate { to { transform: rotate(360deg); } }
@keyframes huyb-fadein  { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes huyb-pop     { 0%   { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 680px) {
  .huyb-modal {
    grid-template-columns: 1fr;
    max-height: 96vh;
    border-radius: 16px;
  }
  .huyb-panel--left {
    padding: 20px 20px 16px;
  }
  .huyb-left-inner { gap: 10px; }
  .huyb-heading { font-size: 1.3rem; }
  .huyb-benefits, .huyb-hotline { display: none; }
  .huyb-panel--right { padding: 20px 18px 20px; }
  .huyb-close { top: 10px; right: 10px; }
  .huyb-success { padding: 28px 18px; }
}

/* =============================================================
   SHORTCODE INLINE FORM (huyb-sc-*)
   [huyict_booking id="X"] — gắn vào bất kỳ trang nào
   ============================================================= */

/* ── Wrapper ──────────────────────────────────────────────────── */
.huyb-sc-wrap { margin: 24px 0; }

/* ── Card ──────────────────────────────────────────────────────── */
.huyb-sc-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(74,30,110,.14), 0 2px 8px rgba(0,0,0,.06);
  position: relative;
}

/* ── Gradient header band ──────────────────────────────────────── */
.huyb-sc-header {
  background: linear-gradient(135deg, #1a0a2e 0%, #4a1e6e 60%, #7b3fa0 100%);
  padding: 12px 28px 20px;
  position: relative;
  overflow: hidden;
}
.huyb-sc-header::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
}
.huyb-sc-header::after {
  content: '';
  position: absolute;
  bottom: -20px; left: 20px;
  width: 80px; height: 80px;
  background: rgba(212,168,67,.12);
  border-radius: 50%;
}

.huyb-sc-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff !important;
  margin: 0 0 6px;
  font-family: var(--font-heading, Georgia, serif);
  letter-spacing: .04em;
  text-transform: uppercase;
  position: relative; z-index: 1;
}
.huyb-sc-title em {
  font-style: normal;
  color: #f0c040;
}
.huyb-sc-sub {
  color: rgba(255,255,255,.78);
  font-size: .83rem;
  margin: 0;
  line-height: 1.6;
  position: relative; z-index: 1;
}

/* ── Badge pills in header ──────────────────────────────────────── */
.huyb-sc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  position: relative; z-index: 1;
}
.huyb-sc-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.9);
  font-size: .72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
}

/* ── Form body ──────────────────────────────────────────────────── */
.huyb-sc-form {
  padding: 24px 28px 20px;
}

/* ── Error banner ───────────────────────────────────────────────── */
.huyb-sc-err {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-left: 3px solid #ef4444;
  color: #b91c1c;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: .82rem;
  margin-bottom: 16px;
}
.huyb-sc-err[hidden] { display: none !important; }

/* ── Grid ───────────────────────────────────────────────────────── */
.huyb-sc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

/* ── Field ──────────────────────────────────────────────────────── */
.hbf-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hbf-field--full { grid-column: 1 / -1; }

.hbf-field label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  font-weight: 700;
  color: #4a1e6e;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.hbf-req { color: #ef4444; font-size: .9rem; line-height: 1; }

.hbf-field input,
.hbf-field select,
.hbf-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e2d9f3;
  border-radius: 10px;
  font-family: inherit;
  font-size: .9rem;
  color: #1a0a2e;
  background: #faf8ff;
  outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
  box-sizing: border-box;
}

.hbf-field input:focus,
.hbf-field select:focus,
.hbf-field textarea:focus {
  border-color: #7b3fa0;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(123,63,160,.15);
}

.hbf-field input::placeholder,
.hbf-field textarea::placeholder {
  color: #bdb4cc;
  font-size: .86rem;
}

/* Select arrow */
.hbf-select-wrap { position: relative; }
.hbf-select-wrap select { appearance: none; padding-right: 32px; cursor: pointer; }
.hbf-select-arrow {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #7b3fa0;
}

/* Error state */
.hbf-err {
  font-size: .73rem;
  color: #ef4444;
  min-height: 14px;
  display: block;
}
.hbf-field--error input,
.hbf-field--error select,
.hbf-field--error textarea {
  border-color: #ef4444;
  background: #fff5f5;
}

/* ── Divider ────────────────────────────────────────────────────── */
.huyb-sc-divider {
  border: none;
  border-top: 1px solid #f0e8ff;
  margin: 4px 0 16px;
}

/* ── Submit button ──────────────────────────────────────────────── */
.huyb-sc-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  background: linear-gradient(135deg, #4a1e6e 0%, #7b3fa0 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: .93rem;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, opacity .2s;
  box-shadow: 0 6px 20px rgba(74,30,110,.38);
  font-family: inherit;
  position: relative;
  overflow: hidden;
}
.huyb-sc-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.1) 0%, transparent 60%);
}
.huyb-sc-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(74,30,110,.48);
}
.huyb-sc-submit:active { transform: translateY(0); }
.huyb-sc-submit:disabled {
  opacity: .7;
  transform: none;
  cursor: not-allowed;
}

/* ── Privacy note ───────────────────────────────────────────────── */
.huyb-sc-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #b0a0c8;
  font-size: .72rem;
  margin-top: 12px;
}

/* ── Success state ──────────────────────────────────────────────── */
.huyb-sc-success {
  text-align: center;
  padding: 48px 24px;
  background: linear-gradient(160deg, #f8f4ff 0%, #fff 100%);
}
.huyb-sc-success[hidden] { display: none !important; }

.huyb-sc-success-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(34,197,94,.35);
  animation: sc-pop .5s cubic-bezier(.34,1.56,.64,1);
}

.huyb-sc-success h3 {
  font-family: Georgia, serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #1a0a2e;
  margin: 0 0 8px;
}
.huyb-sc-success p {
  color: #6b7280;
  font-size: .88rem;
  line-height: 1.65;
  margin: 0 0 20px;
}
.huyb-sc-again {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  background: transparent;
  border: 2px solid #7b3fa0;
  color: #7b3fa0;
  border-radius: 50px;
  font-weight: 700;
  font-size: .86rem;
  cursor: pointer;
  font-family: inherit;
  transition: all .18s;
}
.huyb-sc-again:hover { background: #7b3fa0; color: #fff; }

/* ── Banner style ───────────────────────────────────────────────── */
.huyb-sc-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #1a0a2e 0%, #4a1e6e 60%, #6b2f8e 100%);
  border-radius: 16px;
  padding: 20px 28px;
  margin: 16px 0;
  position: relative;
  overflow: hidden;
}
.huyb-sc-banner::after {
  content: '';
  position: absolute;
  top: -20px; right: 60px;
  width: 100px; height: 100px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
}
.huyb-sc-banner__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  font-family: Georgia, serif;
  margin: 0 0 4px;
  position: relative; z-index: 1;
}
.huyb-sc-banner__sub {
  font-size: .8rem;
  color: rgba(255,255,255,.72);
  position: relative; z-index: 1;
}
.huyb-sc-banner__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  background: linear-gradient(135deg, #d4a843, #f0cc70);
  color: #1a0a2e;
  border: none;
  border-radius: 50px;
  font-weight: 800;
  font-size: .88rem;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: all .2s;
  box-shadow: 0 4px 14px rgba(212,168,67,.35);
  position: relative; z-index: 1;
}
.huyb-sc-banner__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(212,168,67,.5);
}

/* ── Animations ──────────────────────────────────────────────────── */
@keyframes sc-pop {
  0%   { transform: scale(0) rotate(-20deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg);   opacity: 1; }
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .huyb-sc-grid { grid-template-columns: 1fr; }
  .huyb-sc-header { padding: 18px 20px 16px; }
  .huyb-sc-form { padding: 18px 20px 16px; }
  .huyb-sc-banner { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px 20px; }
  .huyb-sc-banner__btn { width: 100%; justify-content: center; }
}



/* ═══════════════════════════════════════════════════════════
   HUYICT BOOKING — ADMIN CSS (loaded on all plugin pages)
   ═══════════════════════════════════════════════════════════ */

/* Page layout */
.huyb-page-wrap { width: 100%; }

/* Header banner */
.huyb-admin-header {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, #1a0a2e, #4a1e6e);
  border-radius: 12px; padding: 20px 24px; margin: 12px 0 20px; color: #fff;
}
.huyb-admin-header h1 { margin: 0; font-size: 1.3rem; color: #fff; line-height: 1.3; }
.huyb-admin-header p  { margin: 5px 0 0; opacity: .8; font-size: .85rem; }

/* Premium forms table */
.huyb-forms-table {
  width: 100%; border-collapse: collapse;
  background: #fff; border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
  border: 1px solid #f0eaf8; overflow: hidden;
}
.huyb-forms-table th {
  background: #f8f6ff; color: #4a1e6e;
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  padding: 12px 14px; border-bottom: 2px solid #e8e0f0;
  text-align: left; white-space: nowrap;
}
.huyb-forms-table td {
  padding: 12px 14px; border-bottom: 1px solid #f5f0fc;
  font-size: .86rem; vertical-align: middle;
}
.huyb-forms-table tr:last-child td { border-bottom: none; }
.huyb-forms-table tbody tr:hover td { background: #fdfbff; }

/* Form info */
.huyb-form-title { font-weight: 700; color: #1a0a2e; font-size: .9rem; line-height: 1.3; }
.huyb-form-src   { color: #7b3fa0; font-size: .78rem; font-weight: 700; background: #f3eaff; padding: 2px 8px; border-radius: 20px; white-space: nowrap; }

/* Style badges */
.huyb-style-inline { background: #dbeafe; color: #1d4ed8; padding: 3px 9px; border-radius: 4px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.huyb-style-button { background: #fef3c7; color: #d97706; padding: 3px 9px; border-radius: 4px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.huyb-style-banner { background: #d1fae5; color: #065f46; padding: 3px 9px; border-radius: 4px; font-size: .72rem; font-weight: 700; white-space: nowrap; }

/* Field pills */
.huyb-pill {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 8px; border-radius: 20px;
  font-size: .72rem; font-weight: 700; margin: 1px;
  white-space: nowrap;
}
.huyb-pill-on  { background: #ede9fe; color: #5b21b6; border: 1px solid #c4b5fd; }
.huyb-pill-off { background: #f3f4f6; color: #9ca3af; border: 1px solid #e5e7eb; text-decoration: line-through; }

/* Shortcode copy button */
.huyb-shortcode-copy {
  display: inline-flex; align-items: center; gap: 5px;
  background: #1e1e2e; color: #a6e3a1 !important;
  border: none; border-radius: 6px;
  padding: 5px 11px; font-family: monospace; font-size: .76rem;
  cursor: pointer; white-space: nowrap; transition: background .15s;
}
.huyb-shortcode-copy:hover { background: #2d2d3d; }

/* Action buttons */
.huyb-btn-edit, .huyb-btn-del {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px; border-radius: 6px;
  font-size: .78rem; font-weight: 600;
  cursor: pointer; border: none; text-decoration: none !important;
  transition: all .15s;
}
.huyb-btn-edit { background: #f0e8ff; color: #6d28d9 !important; }
.huyb-btn-edit:hover { background: #7b3fa0; color: #fff !important; }
.huyb-btn-del  { background: #fee2e2; color: #dc2626 !important; margin-left: 4px; }
.huyb-btn-del:hover { background: #dc2626; color: #fff !important; }

/* New button */
.huyb-btn-new {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #4a1e6e, #7b3fa0);
  color: #fff !important; border-radius: 8px;
  font-weight: 700; font-size: .88rem;
  text-decoration: none !important; border: none;
  cursor: pointer; transition: all .2s;
  box-shadow: 0 4px 12px rgba(74,30,110,.3);
}
.huyb-btn-new:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(74,30,110,.4); color: #fff !important; }

/* Tip box */
.huyb-tip {
  display: flex; align-items: flex-start; gap: 10px;
  background: #faf5ff; border: 1px solid #e9d5ff;
  border-left: 3px solid #7c3aed; border-radius: 8px;
  padding: 12px 16px; margin-bottom: 20px;
  font-size: .83rem; color: #4a1e6e; line-height: 1.6;
}
.huyb-tip code { background: #ede9fe; color: #5b21b6; padding: 1px 6px; border-radius: 4px; font-size: .8rem; }

/* Edit form grid */
.huyb-edit-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
.huyb-card { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 2px 12px rgba(0,0,0,.07); border: 1px solid #f0eaf8; }
.huyb-card h3 { margin: 0 0 16px; font-size: .95rem; color: #1a0a2e; font-weight: 700; padding-bottom: 10px; border-bottom: 1px solid #f0eaf8; }
.huyb-field-cards { display: flex; flex-direction: column; gap: 10px; }
.huyb-fc { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: #faf7ff; border-radius: 8px; border: 1px solid #ede8f8; }
.huyb-fc__label { font-size: .85rem; font-weight: 600; color: #1a0a2e; }
.huyb-fc__desc  { font-size: .72rem; color: #9ca3af; margin-top: 2px; }

/* Toggle */
.huyb-toggle { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.huyb-toggle input { opacity: 0; width: 0; height: 0; }
.huyb-toggle-slider { position: absolute; cursor: pointer; inset: 0; background: #d1d5db; border-radius: 22px; transition: .25s; }
.huyb-toggle-slider:before { content: ""; position: absolute; height: 16px; width: 16px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: .25s; }
.huyb-toggle input:checked + .huyb-toggle-slider { background: #7b3fa0; }
.huyb-toggle input:checked + .huyb-toggle-slider:before { transform: translateX(18px); }

