/* =====================================================================
   Air Divine — Travel Savings রেজিস্ট্রেশন ফর্ম (r48): আরও মার্জিত চেহারা
   + "আগেই অ্যাকাউন্ট আছে" নোটিশ
   ===================================================================== */
.sg {
  --sx-m: #730522; --sx-m2: #8f0c35; --sx-md: #4a0318;
  --sx-gold: #c9a24a; --sx-gold-l: #f3d37e; --sx-gold-d: #a8812f;
  --sx-ink: #22101a; --sx-mut: #85727a; --sx-line: #ecdfd2; --sx-field: #fffcf7;
  --sx-serif: "ADX BnHead", "Noto Serif Bengali", "Tiro Bangla", Georgia, serif;
}

/* ---------- ডান দিকের কার্ড ---------- */
.sg .sg-card {
  border: 0; border-radius: 24px; padding: 30px 34px 26px;
  background:
    radial-gradient(520px 220px at 100% 0%, rgba(243, 211, 126, .16), transparent 60%),
    linear-gradient(#fff, #fffdf9);
  box-shadow: 0 0 0 1px rgba(201, 162, 74, .28), 0 40px 70px -50px rgba(74, 3, 24, .7);
}
.sg .sg-card__head { position: relative; padding-bottom: 16px; margin-bottom: 4px; border-bottom: 1px solid var(--sx-line); }
.sg .sg-card__head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 72px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--sx-gold), var(--sx-gold-l), transparent); }
.sg .sg-card__head h3 { font: 500 29px/1.25 var(--sx-serif); color: var(--sx-m); letter-spacing: 0; }
.sg .sg-card__head p { color: var(--sx-mut); }

/* "আগেই অ্যাকাউন্ট আছে? লগইন করুন" */
.sg .sgx-have {
  display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; margin: 10px 0 0 !important;
  padding: 5px 6px 5px 14px; border-radius: 999px; font-size: 13.5px; color: #5d4a51;
  background: linear-gradient(135deg, #fff8ea, #fbefe9); box-shadow: inset 0 0 0 1px rgba(201, 162, 74, .38);
}
.sg .sgx-have button {
  display: inline-flex; align-items: center; gap: 5px; border: 0; cursor: pointer; padding: 5px 12px; border-radius: 999px;
  font: 700 13.5px/1.2 "Hind Siliguri", sans-serif; color: #fff; background: linear-gradient(135deg, var(--sx-m2), var(--sx-md));
  box-shadow: 0 6px 14px -8px rgba(115, 5, 34, .9); transition: transform .2s, box-shadow .2s;
}
.sg .sgx-have button:hover { transform: translateX(2px); box-shadow: 0 8px 18px -8px rgba(115, 5, 34, 1), inset 0 0 0 1px rgba(243, 211, 126, .6); }

/* ধাপের শিরোনাম */
.sg .sg-step { margin-top: 22px; }
.sg .sg-step legend { font: 600 15.5px/1.3 var(--sx-serif); color: var(--sx-m); }
.sg .sg-step legend i {
  width: 28px; height: 28px; font: 700 13px/1 "Hind Siliguri", sans-serif; color: var(--sx-md);
  background: linear-gradient(135deg, #fbe7ad, var(--sx-gold-l) 45%, var(--sx-gold));
  box-shadow: 0 0 0 3px rgba(243, 211, 126, .22), 0 6px 14px -8px rgba(168, 129, 47, .9);
}

/* ঘরগুলো */
.sg .sg-f > span { color: #4e3a42; font-size: 13.5px; }
.sg .sg-f input, .sg .sg-f select, .sg .sg-f textarea, .sg .sg-money, .sg .sg-pw, .sg .sg-step__num {
  background: var(--sx-field); border-color: #eadccd; border-radius: 14px;
  box-shadow: inset 0 1px 2px rgba(74, 3, 24, .04);
}
.sg .sg-f input:hover, .sg .sg-f select:hover, .sg .sg-f textarea:hover, .sg .sg-money:hover, .sg .sg-pw:hover { border-color: #dcc6ae; }
.sg .sg-f input:focus, .sg .sg-f select:focus, .sg .sg-f textarea:focus, .sg .sg-money:focus-within, .sg .sg-pw:focus-within {
  background: #fff; border-color: var(--sx-gold); box-shadow: 0 0 0 4px rgba(243, 211, 126, .3);
}
.sg .sg-chips button.is-on { box-shadow: 0 8px 18px -10px rgba(115, 5, 34, .9), inset 0 0 0 1px rgba(243, 211, 126, .5); }

/* যাচাইয়ের অবস্থা */
.sg .sg-f { position: relative; align-content: start; }
.sg .sg-f.sgx-taken { grid-column: 1 / -1; }
.sg .sg-f.sgx-taken input { max-width: calc(50% - 8px); }
@media (max-width: 640px) { .sg .sg-f.sgx-taken input { max-width: none; } }
.sg .sg-f.sgx-checking input { background-image: linear-gradient(90deg, transparent, rgba(243, 211, 126, .25), transparent); background-size: 200% 100%; animation: sgxShimmer 1s linear infinite; }
@keyframes sgxShimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.sg .sg-f.sgx-ok input { border-color: #8cc5a4; padding-right: 40px; background: #fbfffc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f7a4c' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; }
.sg .sg-f.sgx-taken input { border-color: #d98a7c; background-color: #fff8f6; box-shadow: 0 0 0 4px rgba(217, 138, 124, .16); }

.sg .sgx-note { margin: 0; font-size: 12.5px; line-height: 1.5; }
.sg .sgx-note--ok { display: inline-flex; align-items: center; gap: 6px; color: #1f7a4c; font-weight: 600; animation: sgxIn .35s ease both; }

/* "আগেই অ্যাকাউন্ট আছে" কার্ড */
.sg .sgx-note--taken {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 4px; padding: 14px 14px 14px 14px; border-radius: 16px;
  background: linear-gradient(135deg, #fff7ea 0%, #fbeee9 100%);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 74, .45), 0 16px 30px -22px rgba(115, 5, 34, .7);
  animation: sgxIn .45s cubic-bezier(.16, 1, .3, 1) both; position: relative; overflow: hidden;
}
.sg .sgx-note--taken::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--sx-gold-l), var(--sx-gold), var(--sx-m)); }
.sg .sgx-note__ic {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--sx-gold-l);
  background: linear-gradient(135deg, var(--sx-m2), var(--sx-md)); box-shadow: 0 8px 18px -10px rgba(115, 5, 34, 1);
}
.sg .sgx-note__txt { min-width: 0; display: grid; gap: 3px; }
.sg .sgx-note__txt b { font: 600 15px/1.35 var(--sx-serif); color: var(--sx-m); }
.sg .sgx-note__txt small { font-size: 13px; line-height: 1.55; color: #5d4a51; }
.sg .sgx-note__act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sg .sgx-note__act button { cursor: pointer; border-radius: 999px; font: 700 13.5px/1 "Hind Siliguri", sans-serif; height: 36px; padding: 0 16px; display: inline-flex; align-items: center; gap: 6px; transition: transform .2s, box-shadow .2s, background .2s; }
.sg .sgx-login { border: 0; color: #fff; background: linear-gradient(135deg, var(--sx-m2), var(--sx-m) 55%, var(--sx-md)); box-shadow: 0 10px 20px -10px rgba(115, 5, 34, .95), inset 0 0 0 1px rgba(243, 211, 126, .55); }
.sg .sgx-login:hover { transform: translateY(-1px); }
.sg .sgx-other { border: 1px solid rgba(201, 162, 74, .55); color: var(--sx-m); background: #fffdf8; }
.sg .sgx-other:hover { background: #fff3da; }
.sg .sgx-shake { animation: sgxShake .5s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes sgxIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes sgxShake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-6px); } 40%, 60% { transform: translateX(6px); } }

/* সার্ভারের এরর বার্তা */
.sg .sg-err.sgx-hide { display: none; }
.sg .sg-err { border-radius: 14px; background: linear-gradient(135deg, #fff1ef, #fdecef); box-shadow: inset 0 0 0 1px rgba(217, 138, 124, .45); padding: 12px 16px; }

/* জমা দেওয়ার বোতাম: সোনালি ঝিলিক */
.sg .sg-btn { position: relative; overflow: hidden; height: 54px; border-radius: 16px; letter-spacing: .01em; box-shadow: 0 18px 30px -18px rgba(115, 5, 34, 1), inset 0 0 0 1px rgba(243, 211, 126, .45); }
.sg .sg-btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255, 236, 190, .35), transparent); animation: sgxShine 3.8s ease-in-out infinite; }
@keyframes sgxShine { 0%, 60% { left: -40%; } 100% { left: 130%; } }
.sg .sg-btn.sgx-wait { opacity: .75; pointer-events: none; }

/* লগইন পেজের ছোট বার্তা */
.sgx-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 2147483600; transform: translate(-50%, 16px); opacity: 0;
  max-width: min(480px, calc(100vw - 32px)); padding: 12px 20px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; text-align: center;
  color: #fff8ea; background: linear-gradient(135deg, #8f0c35, #4a0318); box-shadow: 0 18px 40px -18px rgba(40, 4, 16, .9), inset 0 0 0 1px rgba(243, 211, 126, .45);
  transition: opacity .3s, transform .3s;
}
.sgx-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 960px) { .sg .sg-card { padding: 24px 18px 20px; } .sg .sg-card__head h3 { font-size: 25px; } }
@media (prefers-reduced-motion: reduce) { .sg .sg-btn::after, .sg .sgx-note--taken, .sg .sgx-shake, .sg .sg-f.sgx-checking input { animation: none; } }

/* ---------- ছবি ও ছেলে/মেয়ে (r49) ---------- */
.sg .sgx-id > span small { font-weight: 500; color: var(--sx-mut); }
.sg .sgx-id__row {
  display: flex; align-items: center; gap: 18px; padding: 14px 16px; border-radius: 18px;
  background: linear-gradient(135deg, #fffaf0, #fbf1e8); box-shadow: inset 0 0 0 1px rgba(201, 162, 74, .32);
}
.sg .sgx-id__av {
  position: relative; flex: none; width: 92px; height: 92px; padding: 3px; border: 0; border-radius: 50%; cursor: pointer;
  background: conic-gradient(from 210deg, var(--sx-gold-l), var(--sx-gold), #fbe7ad, var(--sx-gold-d), var(--sx-gold-l));
  box-shadow: 0 12px 24px -12px rgba(115, 5, 34, .6); transition: transform .25s;
}
.sg .sgx-id__av:hover { transform: scale(1.04); }
.sg .sgx-id__av img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #fffdf8; background: #fbeed5; transition: filter .3s, opacity .3s; }
.sg .sgx-id.is-blank .sgx-id__av img { filter: grayscale(.6); opacity: .55; }
.sg .sgx-id__av i {
  position: absolute; right: 0; bottom: 2px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  font: 700 18px/1 Manrope, sans-serif; font-style: normal; color: var(--sx-gold-l); background: linear-gradient(135deg, var(--sx-m2), var(--sx-md));
  box-shadow: 0 0 0 3px #fffaf0;
}
.sg .sgx-id.has-photo .sgx-id__av i { font-size: 0; }
.sg .sgx-id.has-photo .sgx-id__av i::before { content: "✎"; font-size: 13px; }
.sg .sgx-id__side { min-width: 0; display: grid; gap: 9px; }
.sg .sgx-id__g { display: flex; gap: 8px; flex-wrap: wrap; }
.sg .sgx-id__g button {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px 0 4px; border-radius: 999px; cursor: pointer;
  font: 600 14px/1 "Hind Siliguri", sans-serif; color: var(--sx-m); background: #fff; border: 1px solid #eadccd; transition: all .2s;
}
.sg .sgx-id__g button img { width: 30px; height: 30px; border-radius: 50%; }
.sg .sgx-id__g button:hover { border-color: var(--sx-gold); }
.sg .sgx-id__g button.is-on { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--sx-m2), var(--sx-md)); box-shadow: 0 8px 18px -10px rgba(115, 5, 34, .9), inset 0 0 0 1px rgba(243, 211, 126, .5); }
.sg .sgx-id__act { display: flex; gap: 8px; flex-wrap: wrap; }
.sg .sgx-id__act button { height: 34px; padding: 0 14px; border-radius: 999px; cursor: pointer; font: 600 13px/1 "Hind Siliguri", sans-serif; }
.sg .sgx-id__pick { color: var(--sx-m); background: #fff; border: 1px dashed var(--sx-gold); }
.sg .sgx-id__pick:hover { background: #fff6e0; }
.sg .sgx-id__rm { color: #9b1238; background: transparent; border: 0; }
.sg .sgx-id__hint { font-size: 12.5px; line-height: 1.5; color: var(--sx-mut); }
.sg .sgx-id__hint.is-err { color: #b3261e; }
@media (max-width: 520px) { .sg .sgx-id__row { flex-direction: column; align-items: flex-start; } }

/* =================== OTP যাচাই (r51) =================== */
.sg .sgx-req { color: var(--sx-m); font-style: normal; }
.sg .sgx-otp { margin-top: -2px; }
.sg .sgx-otp__card {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px;
  background:
    radial-gradient(260px 120px at 100% 0%, rgba(243, 211, 126, .28), transparent 65%),
    linear-gradient(135deg, #fffaf0, #fbf0e6);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 74, .42), 0 18px 34px -26px rgba(115, 5, 34, .7);
  animation: sgxIn .4s cubic-bezier(.16, 1, .3, 1) both;
}
.sg .sgx-otp__card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--sx-gold-l), var(--sx-gold), var(--sx-m)); }
.sg .sgx-otp__ic {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: var(--sx-gold-l);
  background: linear-gradient(135deg, var(--sx-m2), var(--sx-md)); box-shadow: 0 10px 20px -10px rgba(115, 5, 34, 1), inset 0 0 0 1px rgba(243, 211, 126, .35);
}
.sg .sgx-otp__txt { min-width: 0; flex: 1; display: grid; gap: 2px; }
.sg .sgx-otp__txt b { font: 600 16px/1.35 var(--sx-serif); color: var(--sx-m); }
.sg .sgx-otp__txt small { font-size: 13px; line-height: 1.5; color: #6b5860; }
.sg .sgx-otp__txt small span { font-weight: 700; color: var(--sx-ink); }
.sg .sgx-otp__send {
  flex: none; position: relative; overflow: hidden; height: 42px; padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer;
  font: 700 14.5px/1 "Hind Siliguri", sans-serif; color: #fff; background: linear-gradient(135deg, var(--sx-m2), var(--sx-m) 55%, var(--sx-md));
  box-shadow: 0 12px 22px -12px rgba(115, 5, 34, 1), inset 0 0 0 1px rgba(243, 211, 126, .55); transition: transform .2s, opacity .2s;
}
.sg .sgx-otp__send:hover:not(:disabled) { transform: translateY(-1px); }
.sg .sgx-otp__send:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.sg .sgx-otp__card.is-ready .sgx-otp__send::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255, 236, 190, .45), transparent); animation: sgxShine 2.8s ease-in-out infinite; }
.sg .sgx-otp__send.is-busy { opacity: .7; cursor: wait; }
.sg .sgx-otp__err { margin: 6px 2px 0; min-height: 0; font-size: 13px; color: #b3261e; }
.sg .sgx-otp__err:empty { display: none; }

/* কোড দেওয়ার ধাপ */
.sg .sgx-otp__card.is-code { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 18px 14px; }
.sg .sgx-otp__top { display: flex; align-items: center; gap: 14px; }
.sg .sgx-otp__boxes { display: flex; justify-content: center; gap: 10px; }
.sg .sgx-otp__boxes input {
  width: 52px; height: 62px; padding: 0; text-align: center; border-radius: 16px; border: 1px solid #e6d3b4; outline: 0; background: #fff;
  font: 800 26px/1 Manrope, "Hind Siliguri", sans-serif; color: var(--sx-md); caret-color: var(--sx-gold-d);
  box-shadow: inset 0 2px 4px rgba(74, 3, 24, .05), 0 8px 18px -14px rgba(74, 3, 24, .6); transition: border-color .2s, box-shadow .2s, transform .2s;
}
.sg .sgx-otp__boxes input:focus { border-color: var(--sx-gold); box-shadow: 0 0 0 4px rgba(243, 211, 126, .35), 0 10px 22px -14px rgba(115, 5, 34, .7); transform: translateY(-2px); }
.sg .sgx-otp__boxes input.has { border-color: rgba(115, 5, 34, .35); background: linear-gradient(#fff, #fff8ea); }
.sg .sgx-otp.is-checking .sgx-otp__boxes input { opacity: .6; }
.sg .sgx-otp__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px dashed rgba(201, 162, 74, .45); font-size: 13px; color: #6b5860; }
.sg .sgx-otp__timer b { font-family: Manrope, sans-serif; color: var(--sx-m); }
.sg .sgx-otp__timer b.is-exp { color: #b3261e; font-family: inherit; }
.sg .sgx-otp__resend, .sg .sgx-otp__change { height: 32px; padding: 0 12px; border-radius: 999px; cursor: pointer; font: 600 13px/1 "Hind Siliguri", sans-serif; }
.sg .sgx-otp__resend { color: var(--sx-m); background: #fff; border: 1px solid rgba(201, 162, 74, .6); margin-left: auto; }
.sg .sgx-otp__resend:disabled { color: #a8979b; border-color: #eadccd; cursor: default; }
.sg .sgx-otp__change { color: #6b5860; background: transparent; border: 0; text-decoration: underline; text-underline-offset: 3px; }

/* যাচাই হয়ে গেলে */
.sg .sgx-otp__card.is-done { background: linear-gradient(135deg, #effaf3, #f8fcf2); box-shadow: inset 0 0 0 1px #bfe3cb, 0 18px 34px -26px rgba(23, 102, 58, .6); }
.sg .sgx-otp__card.is-done::before { background: linear-gradient(#7ed3a0, #2e9b5f, #17663a); }
.sg .sgx-otp__card.is-done .sgx-otp__ic { color: #fff; background: linear-gradient(135deg, #2e9b5f, #17663a); box-shadow: 0 0 0 6px rgba(46, 155, 95, .14), 0 10px 20px -10px rgba(23, 102, 58, 1); animation: sgxPop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.sg .sgx-otp__card.is-done .sgx-otp__txt b { color: #17532f; }
@keyframes sgxPop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.sg .sg-btn.sgx-glow { animation: sgxGlow 1.8s ease-in-out 2; }
@keyframes sgxGlow { 50% { box-shadow: 0 0 0 6px rgba(243, 211, 126, .45), 0 18px 30px -18px rgba(115, 5, 34, 1); } }
@media (max-width: 520px) {
  .sg .sgx-otp__card:not(.is-code):not(.is-done) { flex-wrap: wrap; }
  .sg .sgx-otp__send { width: 100%; }
  .sg .sgx-otp__boxes { gap: 6px; }
  .sg .sgx-otp__boxes input { width: 44px; height: 54px; font-size: 22px; border-radius: 13px; }
}
