/* Lucky Wheel - PromptAll (Modern SaaS v1.1.2) */
.luck-el-root{
  --luck-el-pointer-top:-14px;
  --luck-el-pointer-size:14px;

  position:relative;
  padding:22px;
  border-radius:22px;
  overflow:visible;
  background:rgba(255,255,255,.75);
  backdrop-filter:saturate(1.2) blur(10px);
}

.luck-el-layout{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
}

.luck-el-wheel-area{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  width:100%;
}

.luck-el-wheel-wrap{
  overflow:visible;

  position:relative;
  width:var(--luck-el-wheel-size, clamp(260px, 62vw, 520px));
  max-width:100%;
  aspect-ratio:1/1;
  height:auto;
}

.luck-el-canvas{
  width:100%;
  height:100%;
  display:block;
  border-radius:50%;
  background:#fff;
  box-shadow:0 22px 70px rgba(0,0,0,.12);
}

.luck-el-pointer{
  position:absolute;
  top:var(--luck-el-pointer-top, -14px); /* tip touches rim */
  left:50%;
  transform:translateX(-50%);
  z-index:6;
  width:0;height:0;
  pointer-events:none;
}

/* premium pointer */
.luck-el-pointer:before{
  content:"";
  display:block;
  width:0;height:0;
  border-left: calc(var(--luck-el-pointer-size, 14px)) solid transparent;
  border-right: calc(var(--luck-el-pointer-size, 14px)) solid transparent;
  border-top: calc(var(--luck-el-pointer-size, 14px) * 2) solid #111;
  filter:drop-shadow(0 10px 14px rgba(0,0,0,.25));
}
.luck-el-pointer:after{
  content:"";
  position:absolute;
  left:50%;
  top: calc(var(--luck-el-pointer-size, 14px) * 1.4);
  transform:translateX(-50%);
  width:12px;height:12px;
  border-radius:50%;
  background:#111;
  box-shadow:0 10px 20px rgba(0,0,0,.25);
}

.luck-el-center-logo{
  position:absolute;
  inset:50% auto auto 50%;
  transform:translate(-50%,-50%);
  width:78px;height:78px;
  border-radius:999px;
  overflow:hidden;
  background:rgba(255,255,255,0);
  box-shadow:0 12px 30px rgba(0,0,0,.16);
  z-index:5;
  pointer-events:none;
}
.luck-el-center-logo img{
  border-radius:999px;

  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

.luck-el-btn{
  appearance:none;
  border:0;
  border-radius:14px;
  padding:12px 18px;
  font-weight:800;
  cursor:pointer;
  transition:transform .08s ease,opacity .2s ease, box-shadow .2s ease;
  box-shadow:0 10px 26px rgba(0,0,0,.14);
}
.luck-el-btn:active{transform:scale(.98);}
.luck-el-btn[disabled]{opacity:.55;cursor:not-allowed;box-shadow:none;}

.luck-el-hint{
  font-size:13px;
  opacity:.85;
  min-height:18px;
  text-align:center;
}

/* ---------- Modals (ported to body for full-screen overlay) ---------- */
.luck-el-modal, .luck-el-form-modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:2147483000; /* very high */
}
.luck-el-modal.is-open, .luck-el-form-modal.is-open{display:block;}

.luck-el-modal-backdrop{
  position:fixed; /* critical: viewport, not column */
  inset:0;
  background:rgba(0,0,0,.55);
}

.luck-el-modal-card{
  position:fixed;
  inset:50% auto auto 50%;
  transform:translate(-50%,-50%);
  width:min(560px, calc(100vw - 32px));
  max-height:calc(100vh - 32px);
  overflow:auto;
  background:#fff;
  border-radius:20px;
  box-shadow:0 18px 70px rgba(0,0,0,.28);
}

.luck-el-modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  background:rgba(0,0,0,.03);
  position:sticky;
  top:0;
}
.luck-el-modal-title{font-weight:900;}
.luck-el-modal-x{border:0;background:transparent;cursor:pointer;font-size:22px;line-height:1;padding:6px 10px;}

.luck-el-modal-body{padding:16px 16px;}
.luck-el-modal-foot{padding:14px 16px;display:flex;justify-content:flex-end;gap:10px;}

.luck-el-result-text{font-size:16px;font-weight:900;margin-bottom:10px;}
.luck-el-result-code{
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  background:rgba(0,0,0,.05);
  border:1px dashed rgba(0,0,0,.2);
  padding:12px 12px;
  border-radius:14px;
  display:none;
  user-select:all;
}
.luck-el-result-code.is-visible{display:block;}

/* Form layout centered */
.luck-el-form{
  display:block;
  width:min(420px, 100%);
  margin:0 auto;
}
.luck-el-field{margin-bottom:12px;}
.luck-el-label{
  display:block;
  font-size:13px;
  opacity:.88;
  margin-bottom:6px;
  text-align:right;
}
.luck-el-input{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.12);
  outline:none;
  background:#fff;
}
.luck-el-input:focus{border-color:rgba(0,0,0,.35);}
.luck-el-form-hint{margin-top:10px;}


/* ---- v1.1.3 UX polish + RTL correctness ---- */
.luck-el-modal-card{
  direction: rtl;
  text-align: right;
}

.luck-el-modal-head{
  direction: rtl;
}

.luck-el-modal-foot{
  direction: rtl;
  justify-content: flex-start; /* in RTL this aligns to right */
}

.luck-el-modal-x{
  color:#d14;
}

.luck-el-form{
  width:min(460px, 100%);
}

.luck-el-input{
  border-radius:12px;
  border:1px solid rgba(0,0,0,.14);
  box-shadow:0 1px 0 rgba(0,0,0,.02) inset;
}

.luck-el-field label{
  display:block;
}

.luck-el-btn{
  border-radius:12px;
}
