.webo-form {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 5px;
}

.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%;
    }
}


/* ===== 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);
}

/* Headings & text */
#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; }
}