/* ============ Staging Form – Pretty v1 ============ */
#staging-site-form {
    ---webo-bg: #ffffff;
    --webo-text: #121927;
    --webo-muted: #64748b;
    --webo-primary: #00a15d;
    --webo-primary-600: #069e59;
    --webo-primary-700: #058a4e;
    --webo-ring: 0 0 0 4px rgba(0, 161, 93, .12);
    --webo-border: #e5e7eb;
    --webo-shadow: 0 10px 25px rgba(2, 6, 23, .06), 0 2px 8px rgba(2, 6, 23, .04);
    background: #121927;
    padding: 20px;
    margin-top: 1.5em;
    border: 1px solid #f9fafb;
    border-radius: 12px;
    box-shadow: var(--webo-shadow);
}
/* groups */
#staging-site-form .form-group {
  margin-bottom: 16px !important;
}

/* label */
#staging-site-form label {
  display: block;
  font-weight: 600;
  color: var(--webo-text);
  margin-bottom: 8px;
}

/* inputs */
#staging-site-form .form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--webo-border);
  border-radius: 10px;
  background: #fff !important;
  color: #000 !important;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

/* placeholder tone */
#staging-site-form .form-control::placeholder {
  color: var(--webo-muted);
  opacity: .8;
}

/* focus */
#staging-site-form .form-control:focus {
  border-color: var(--webo-primary);
  box-shadow: var(--webo-ring);
}

/* disabled/readOnly */
#staging-site-form .form-control[disabled],
#staging-site-form .form-control[readonly]{
  background: #f8fafc;
  color: #94a3b8;
}

/* domain group with suffix */
#staging-site-form .domain-group {
  position: relative;
}

#staging-site-form .domain-group .form-control {
  padding-right: 156px; /* room for .staging.webo.vn */
}

#staging-site-form .domain-suffix {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  font-size: 14px;
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid var(--webo-border);
  border-radius: 8px;
  padding: 8px 10px;
  pointer-events: none;
  white-space: nowrap;
}

/* button */
#staging-site-form .create-site-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--webo-primary);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: .2px;
  transition: transform .12s ease, box-shadow .12s ease, background .2s ease;
  box-shadow: 0 8px 18px rgba(0,161,93,.18);
}

#staging-site-form .create-site-btn:hover {
  background: var(--webo-primary-600);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,161,93,.22);
}

#staging-site-form .create-site-btn:active {
  background: var(--webo-primary-700);
  transform: translateY(0);
}

/* loading state (reuse class anh đã có) */
#staging-site-form .create-site-btn.loading {
  pointer-events: none;
  opacity: .9;
}

/* messages */
#staging-site-form .form-message {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  display: none;
  border: 1px solid transparent;
}

#staging-site-form .form-message.success {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

#staging-site-form .form-message.error {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

/* select membership (giữ logic cũ, blend style) */
#staging-site-form select#membership {
  background-color: #ddfff0;
  border: 1px solid var(--webo-border);
  border-radius: 10px;
  padding: 10px 12px;
}

/* small screens */
@media (max-width: 640px){
  #staging-site-form { padding: 14px; border-radius: 12px; }
  #staging-site-form .domain-group .form-control { padding-right: 140px; }
  #staging-site-form .domain-suffix { font-size: 13px; padding: 6px 8px; }
}

/* dark mode auto */
@media (prefers-color-scheme: dark){
  #staging-site-form{
    --webo-bg:#0b1220;
    --webo-text:#e6edf6;
    --webo-muted:#94a3b8;
    --webo-border:#1f2a44;
    --webo-ring:0 0 0 4px rgba(0,161,93,.25);
    box-shadow: 0 10px 28px rgba(0,0,0,.35);
  }
  #staging-site-form .form-control{ background:#111827; border-color:#1f2a44; color:var(--webo-text); }
  #staging-site-form .domain-suffix{ background:#0f172a; border-color:#1f2a44; color:#e6edf6; }
}


.domain-group {
    position: relative;
    display: flex;
    align-items: center;
}

.domain-suffix {
    position: absolute;
    right: 10px;
    color: #666;
    pointer-events: none;
}

.form-group {
    margin-bottom: 10px !important;
}

select#membership {
    background-color: #DDFFF0;
    border: none;
}

.create-site-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.create-site-btn.loading i {
    animation: spin 1s linear infinite;
}

.alert-success {
    color: #4fba69;
}

.alert-danger {
    color: #f44336;
}

/* Popup styling */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000d4;
    justify-content: center;
    align-items: center;
    place-items: anchor-center;
    align-content: center;
    z-index: 999;
    display: none;
}

/*.popup-content {*/
/*    background-color: rgb(16 12 12 / 0%);*/
/*    box-shadow: 0px 0px 10px 0px #00a15d9e;*/
/*    padding: 20px;*/
/*    border-radius: 5px;*/
/*    max-width: 1200px;*/
/*    width: 100%;*/
/*}*/

/*.popup button {*/
/*    background-color: #007bff;*/
/*    color: white;*/
/*    border: none;*/
/*    cursor: pointer;*/
/*    border-radius: 5px;*/
/*}*/

/*.popup button:hover {*/
/*    background-color: #0056b3;*/
/*}*/
/*.container-webo {*/
/*    padding: 40px 20px;*/
/*}*/
/*h3 {*/
/*    color:rgb(255, 255, 255);*/
/*    letter-spacing: 1.5px;*/
/*    font-weight: bold;*/
/*}*/
/*h1 {*/
/*    margin-bottom: 20px;*/
/*    color: #333;*/
/*}*/
/*.cards-webo {*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    gap: 20px;*/
/*    margin-top: 20px;*/
/*    flex-wrap: wrap;*/
/*}*/
/*.card {*/
/*    background-color: white;*/
/*    border-radius: 15px;*/
/*    padding: 25px;*/
/*    width: 280px;*/
/*    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);*/
/*    text-align: center;*/
/*    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;*/
/*    position: relative;*/
/*    overflow: hidden;*/
/*}*/
/*.card::before {*/
/*    content: "";*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: -100%;*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    background: rgba(255, 255, 255, 0.2);*/
/*    transition: left 0.5s ease-in-out;*/
/*}*/
/*.card:hover::before {*/
/*    left: 100%;*/
/*}*/
/*.card:hover {*/
/*    transform: scale(1.07);*/
/*    box-shadow: 0px 12px 25px rgba(0, 0, 0, 0.3);*/
/*}*/
/*.divi { background: linear-gradient(to bottom, #201331, #b142eccf); color: white; }*/
/*.elementor-webo {     background: linear-gradient(to bottom, #FFEEFC, #FF87EB); color: #333 }*/
/*.flatsome {     background: linear-gradient(to bottom, #FFEEFC, #446084); color: #000; }*/
/*.card img {*/
/*    width: 100px;*/
/*    margin: 15px 0;*/
/*    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.2));*/
/*}*/

/*ul {*/
/*    list-style-type: none;*/
/*    padding: 0;*/
/*}*/

/*.container-webo ul li {*/
/*    margin: 10px 0;*/
/*    font-size: 14px;*/
/*}*/

/*.button-webo {*/
/*    background: linear-gradient(to right, #6200ea, #a100f2);*/
/*    color: white;*/
/*    border: none;*/
/*    padding: 12px 25px;*/
/*    border-radius: 8px;*/
/*    cursor: pointer;*/
/*    font-size: 14px;*/
/*    font-weight: bold;*/
/*    transition: background 0.3s, transform 0.2s;*/
/*    position: relative;*/
/*    overflow: hidden;*/
/*}*/

/*.button-webo::after {*/
/*    content: "";*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: -100%;*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    background: rgba(255, 255, 255, 0.2);*/
/*    transition: left 0.5s ease-in-out;*/
/*}*/

/*.button-webo:hover::after {*/
/*    left: 100%;*/
/*}*/

/*.button-webo:hover {*/
/*    background: linear-gradient(to right, #3700b3, #7200ca);*/
/*    transform: scale(1.05);*/
/*}*/

/*.form-group input, .form-group select {*/
/*    width: 100% !important;*/
/*    padding: 10px !important;*/
/*    border: 1px solid #ddd !important;*/
/*    border-radius: 4px !important;*/
/*}*/

/*@media (max-width: 768px) {*/
/*    .container-webo ul, .container-webo h4, .container-webo h2 {*/
/*        display: none;*/
/*    }*/
/*    .card img {*/
/*        width: 150px;*/
/*    }*/
/*    .button-webo {*/
/*        margin-top: 20px;*/
/*        width: 80%;*/
/*    }*/
/*}*/
/* =========================
   THEME POPUP → LIST VIEW
   (scope: chỉ trong #theme-popup)
   ========================= */
#theme-popup .container-webo { padding: 24px 16px; }
#theme-popup h3 { color: #9fb4c8; text-align:center; margin: 0 0 6px; letter-spacing: 1.2px; }
#theme-popup h1 { color: #e7edf5; text-align:center; font-size: 28px; margin-bottom: 16px; }

/* biến cards → list dọc */
#theme-popup .cards-webo{
  display: block;          /* bỏ flex hàng ngang */
  max-width: 860px;
  margin: 0 auto;
  padding: 0;
}

/* mỗi .card là 1 hàng */
#theme-popup .card{
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  margin: 0 0 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.05); /* nền tối nhẹ */
  color: #e8eef6;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.06);
  transform: none !important;   /* tắt scale cũ */
}
#theme-popup .card:hover{
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
  transform: translateY(-1px);
}

/* reset các nền gradient cũ của từng card */
#theme-popup .card.divi,
#theme-popup .card.elementor-webo,
#theme-popup .card.flatsome,
#theme-popup .card.blocksy{
  background: rgba(255,255,255,.05);
  color: #e8eef6;
}

/* bố cục trong 1 hàng */
#theme-popup .card h4{
  margin: 0; font-size: 12px; opacity: .75; letter-spacing: .6px;
}
#theme-popup .card h2{
  margin: 2px 0 0; font-size: 20px; line-height: 1.2; color: #fff;
}
#theme-popup .card img{
  width: 80px; height: auto; margin: 0 6px 0 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
}

/* chia 3 vùng: logo+title | features | button */
#theme-popup .card > * { margin: 0; }
#theme-popup .card .theme-left{
  display: flex; align-items: center; gap: 12px; min-width: 220px;
}
#theme-popup .card .theme-meta{
  flex: 1 1 auto; color: #cbd5e1;
}
#theme-popup .card .theme-meta ul{
  display: flex; gap: 14px; flex-wrap: wrap;
  list-style: none; padding: 0; margin: 0;
  font-size: 13px;
}
#theme-popup .card .theme-action{
  display: flex; align-items: center; justify-content: flex-end; min-width: 160px;
}

/* nút select – giữ style cũ nhưng cân lại */
#theme-popup .button-webo{
  padding: 10px 18px; border-radius: 10px; font-weight: 700;
}

/* Ẩn phần mô tả thừa: dùng lại <ul> sẵn có, không hiển thị h4 phụ */
#theme-popup .card ul li { margin: 0; }
#theme-popup .card h4 { display:none; }

/* mobile: xếp dọc gọn gàng */
@media (max-width: 720px){
  #theme-popup .card{
    flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px;
  }
  #theme-popup .card .theme-left{ min-width: 0; }
  #theme-popup .card .theme-meta ul{ gap: 8px; font-size: 12px; }
  #theme-popup .card .theme-action{ width: 100%; justify-content: stretch; }
  #theme-popup .button-webo{ width: 100%; }
}

/* tinh chỉnh tiêu đề tổng thể của popup 1 (không ảnh hưởng popup 1 step chọn cách) */
#theme-popup .popup-content{
  background: transparent;
  box-shadow: none;
  max-width: 980px;
}
/* ==========================
   ✨ TUNING: Theme Popup UI
   ========================== */

/* Container tổng */
#theme-popup .container-webo {
  padding: 32px 16px;
  overflow-y: auto;
  max-height: 86vh;
  scrollbar-width: thin;
  scrollbar-color: #00a15d rgba(255,255,255,0.05);
}
#theme-popup .container-webo::-webkit-scrollbar {
  width: 6px;
}
#theme-popup .container-webo::-webkit-scrollbar-thumb {
  background: #00a15d;
  border-radius: 10px;
}

/* Tiêu đề popup */
#theme-popup h3 {
  color: #7bdcb5;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}
#theme-popup h1 {
  color: #ffffff;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: .5px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Card nền và hiệu ứng */
#theme-popup .card {
  background: rgba(18, 27, 37, 0.85);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
  backdrop-filter: blur(8px);
  transition: transform .2s ease, border-color .2s ease, box-shadow .25s ease;
}
#theme-popup .card:hover {
  border-color: #00a15d;
  box-shadow: 0 8px 20px rgba(0,161,93,.3);
  transform: translateY(-2px);
}

/* Tiêu đề mỗi theme */
#theme-popup .card h2 {
  font-size: 20px;
  letter-spacing: .8px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
#theme-popup .card h2::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  margin-top: 4px;
  background: linear-gradient(90deg, #00a15d, #37ffb2);
  border-radius: 1px;
}

/* Phần mô tả */
#theme-popup .card .theme-meta ul {
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: #d1d5db;
}
#theme-popup .card .theme-meta ul li::before {
  content: "• ";
  color: #00a15d;
  font-weight: bold;
}

/* Nút chọn */
#theme-popup .button-webo {
  background: linear-gradient(135deg, #00a15d, #29d487);
  border: 1px solid #00a15d;
  color: #fff;
  font-weight: 700;
  letter-spacing: .3px;
  box-shadow: 0 4px 12px rgba(0,161,93,.25);
  transition: all .25s ease;
  cursor: pointer;
}
#theme-popup .button-webo:hover {
  background: #fff;
  color: #00a15d;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,161,93,.35);
}
#theme-popup .button-webo:active {
  transform: translateY(0);
  box-shadow: 0 3px 6px rgba(0,161,93,.25);
}

/* Mobile cải thiện cuộn + spacing */
@media (max-width: 720px) {
  #theme-popup .container-webo {
    padding: 24px 10px;
    max-height: 80vh;
  }
  #theme-popup .card {
    padding: 14px 12px;
    border-radius: 12px;
    margin-bottom: 10px;
  }
  #theme-popup .card .theme-meta ul li {
    font-size: 13px;
  }
  #theme-popup .card img {
    width: 48px;
  }
}

/* ==========================
   🟩 KHUNG BAO TOÀN BỘ POPUP CHỌN THEME
   ========================== */
#theme-popup .popup-content {
  background: rgba(17, 24, 39, 0.85); /* nền tối mờ */
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55);
  backdrop-filter: blur(12px);
  max-width: 960px;
  margin: 0 auto;
  padding: 36px 28px;
  overflow: hidden;
  position: relative;
}

/* Viền highlight nhẹ xanh quanh khung */
#theme-popup .popup-content::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 1px solid rgba(0,161,93,0.25);
  pointer-events: none;
  box-shadow: 0 0 25px rgba(0,161,93,0.08) inset;
}

/* Cho cảm giác nổi */
#theme-popup .popup-content:hover::before {
  border-color: rgba(0,161,93,0.45);
  box-shadow: 0 0 25px rgba(0,161,93,0.15) inset;
}

/* Căn giữa nội dung bên trong khung */
#theme-popup .container-webo {
  background: transparent;
  padding: 32px 16px;
}

/* Căn chỉnh tiêu đề trong khung */
#theme-popup h3,
#theme-popup h1 {
  text-align: center;
}

/* Responsive khung */
@media (max-width: 720px){
  #theme-popup .popup-content {
    padding: 20px 14px;
    border-radius: 14px;
  }
}

/* ===== Webo Modal (Step 1) ===== */
#first-popup.webo-modal{
  position: fixed;
  inset: 0;
  z-index: 999999;
  font: inherit;
  color: inherit;
}

#first-popup .webo-modal__overlay{
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
}

#first-popup .webo-modal__content{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(.98);
    width: min(920px, 92vw);
    max-height: 86vh;
    overflow: auto;
    background: linear-gradient(18deg, #000000, #58d3be42);
    color: #e8e8e8;
    border: 1px solid rgb(89 211 191 / 57%);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, .5);
    animation: webo-pop .18s ease-out forwards;
}

/* Grid 2 cột → 1 cột trên mobile */
#first-popup .webo-modal__grid{
  display: grid; gap: 16px;
  grid-template-columns: repeat(2, minmax(0,1fr));
}
@media (max-width: 720px){
  #first-popup .webo-modal__grid{ grid-template-columns: 1fr; }
}

/* Card */
#first-popup .webo-card{
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 16px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
#first-popup .webo-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  border-color: rgba(255,255,255,.12);
}


#first-popup .webo-card__head h3{
  margin: 0 0 6px; font-size: 20px; line-height: 1.2; color: #fff;
}
#first-popup .webo-card__head p{
  margin: 0 0 12px; color: #a7b1b8;
}
#first-popup .webo-card__body ul{
   color: #cdd6dd;
}

/* Buttons (scoped để không phá Flatsome .button) */
#first-popup .webo-card__foot{ display: flex; gap: 8px; }

#first-popup .button{
  appearance: none;
  border: 0;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  background: #22272b;
  color: #e8e8e8;
  transition: filter .15s ease, transform .1s ease;
}
#first-popup .button:hover{
  filter: brightness(1.08);
  transform: translateY(-1px);
}
#first-popup .button:active{ transform: translateY(0); }

#first-popup .button-primary{
  background: linear-gradient(135deg, #00a15d, #3aa05d);
  color: #fff;
}
#first-popup .button-primary:hover{ filter: brightness(1.05); }

/* Pop animation + reduce-motion */
@keyframes webo-pop{
  from{ opacity: 0; transform: translate(-50%,-52%) scale(.96); }
  to  { opacity: 1; transform: translate(-50%,-50%)  scale(1); }
}
@media (prefers-reduced-motion: reduce){
  #first-popup .webo-modal__content{ animation: none; transform: translate(-50%,-50%); }
  #first-popup .webo-card, #first-popup .button{ transition: none; }
}

/* Optional: khoá scroll body khi mở (nếu bạn add class bằng JS) */
body.webomodal-lock{ overflow: hidden; }

/* Light mode fallback (nếu site nền sáng) */
@media (prefers-color-scheme: light){
  #first-popup .webo-modal__content{
    background: #fff; color: #222; border-color: rgba(0,0,0,.06);
  }
  #first-popup .webo-card{
    background: #fff; border-color: rgba(0,0,0,.06);
  }
  #first-popup .webo-card__head h3{ color: #111; }
  #first-popup .webo-card__head p{ color: #6b7280; }
  #first-popup .webo-card__body ul{ color: #374151; }
  #first-popup .button{ background: #f3f4f6; color: #111; }
}