/* ------------------ PAGE & GLOBAL ------------------ */

/* Keep layout inside the screen and stop iOS text auto-scaling */
/* ------------------ PAGE & GLOBAL ------------------ */

/* Fallback behind body (shows during overscroll / keyboard bounce) */
html {
  height: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  background-color: #021619;   /* stays the same */
}

body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;   /* <-- smooth iOS scrolling */
  scroll-behavior: smooth;
  text-decoration: none !important;
  min-height: 100vh;

  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.66)),
    linear-gradient(191.24deg,
      #36A8C0 0.42%,
      #000000 25.37%,
      #2F2F2F 45.14%,
      #000000 63.5%,
      #36A8C0 98.34%);
  /* background-attachment: fixed;  <-- remove or comment this out */
  background-attachment: scroll;       /* default, but explicit */
  background-size: cover;
  background-repeat: no-repeat;
}


/* 🔴 REMOVE this whole block from your file:
.rio-page-bg { ... }
*/


/* If ever used, don't repaint page bg */
.backgrond_shpae { background: transparent !important; border-radius: 0; }

/* Keep your narrow container on desktop; full width on phones */
.container {
  max-width: 514px !important;
}
@media (max-width: 576px) {
  .container { max-width: 100% !important; }
}

/* Generic resets */
* { text-decoration: none !important; box-sizing: border-box; }

/* Media elements never overflow */
img, video, canvas { max-width: 100%; height: auto; display: block; }

/* ------------------ BUTTONS ------------------ */
.btn, [type=submit]{
  align-items: center;
  padding: 15px 20px !important;
  background: #36A8C0 !important;
  color: #fff !important;
  height: auto;
  border-radius: 12px !important;
}

.login input.btn,
.signup input.btn,
.forgot input.btn,
.forgot a.outline_btn { width: 100%; }

.btn_sm{
  box-sizing: border-box;
  align-items: center;
  padding: 10px 19px !important;
  color: #36A8C0 !important;
  height: 40px;
  border: 1px solid #36A8C0 !important;
  border-radius: 12px !important;
}

.btn_tabs_active{
  box-sizing: border-box;
  padding: 15px 25px;
  height: 50px;
  background: #36A8C0;
  width: 175px;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
}

.btn_tabs{
  box-sizing: border-box;
  padding: 15px 25px;
  height: 50px;
  color: #B5B5B5 !important;
  width: 175px;
  filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.05));
  border-radius: 12px;
}

.secondary_btn{
  box-sizing: border-box;
  padding: 10px 19px;
  width: auto;
  height: 40px;
  background: rgba(54, 168, 192, 0.5);
  border: 1px solid #36A8C0;
  border-radius: 12px;
}

.outline_btn{
  align-items: center;
  padding: 15px 20px;
  height: auto;
  border: 1px solid #36A8C0;
  border-radius: 12px;
  background-color: transparent;
  color: #36A8C0;
}

/* ------------------ TYPOGRAPHY & LINKS ------------------ */
.link, a{
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  display: inline-block;
  line-height: 20px;
  color: #36A8C0 !important;
}
.Link_blue{ font-weight: 500; color: #0072FF !important; }

/* Subtle whitish Delete link */
.payment-card-delete {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75) !important;   /* soft off-white */
  text-decoration: none !important;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.payment-card-delete:hover {
  color: rgba(255, 255, 255, 0.95) !important;   /* brightens slightly on hover */
  opacity: 1;
}




.light_text{
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  text-align: center;
  color: #EDEDED;
}

.white_txt{
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  color: #FFFFFF;
}

.h4_semibold{
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-size: 18px;
  line-height: 22px;
  color: #FFFFFF;
}

.label{
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  color: #EDEDED;
}

.text{
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300;
  font-size: 16px;
  line-height: 20px;
  text-align: center;
  color: #FFFFFF;
}

h3{
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500 !important;
  font-size: 21px !important;
  line-height: 26px !important;
  color: #FFFFFF !important;
}

span{ display: inline-block; }

/* ------------------ FORM CONTROLS ------------------ */
/* iOS zoom fix: ensure >=16px */
@media (max-width: 768px) {
  input, select, textarea, button {
    font-size: 16px !important;
    line-height: 1.2;
  }
}

/* Base input look */
.input, input {
  box-sizing: border-box;
  padding: 10px 20px;
  height: 55px;
  background: #2F2F2F;
  border: 1px solid rgba(241, 241, 241, 0.1);
  border-radius: 12px;
}

/* Bootstrap form controls in forms */
form .form-control,
form .form-select{
  display: block;
  width: 100%;
  padding: 10px 20px;
  font-size: 16px;              /* was 14px -> fixes iOS zoom */
  font-weight: 400;
  height: 55px;
  line-height: 1.5;
  color: #B5B5B5 !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #2F2F2F;
  background-clip: padding-box;
  border: none;
  border-radius: 12px;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

form .form-control::placeholder,
form .form-select::placeholder { color: #B5B5B5 !important; }

.form-control:focus{
  color: #B5B5B5 !important;
  background-color: #2F2F2F !important;
  border: none !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.form-label{
  margin-bottom: .5rem;
  color: #EDEDED;
  font-size: 16px;
  font-weight: 400;
}

/* ------------------ SPACING UTILS ------------------ */
.mt-7{  margin-top: 7px; }
.mt-15{ margin-top: 15px; }
.mt-20{ margin-top: 20px; }
.mt-25{ margin-top: 25px; }
.mt-30{ margin-top: 30px; }
.mt-40{ margin-top: 40px; }
.mt-80{ margin-top: 80px; }
.width_100{ width: 100%; }

/* ------------------ SECTIONS ------------------ */
header, section.login { background: transparent !important; }

/* QR reader container (works well on iOS with keyboard + notch) */
#reader {
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  /* dynamic viewport height avoids 100vh issues on iOS */
  height: min(45dvh, 350px);
  background-color: #191D22; /* keeps layout stable before video paints */
  margin-bottom: 20px;
}
#reader video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

/* Legacy placeholder, kept if used elsewhere */
#camera-view {
  width: 100%;
  height: 300px;
  background-color: #191D22;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* ------------------ OFFCANVAS & NAV ------------------ */
.offcanvas-start { background-color: #000; color: #fff; width: 280px; }
.offcanvas-header { border-bottom: 1px solid #2c2c2e; }
.offcanvas {
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.66)),
    linear-gradient(191.24deg, #36A8C0 0.42%, #000000 25.37%, #2F2F2F 45.14%, #000000 63.5%, #36A8C0 98.34%);
}

.menu-section {
  background-color: #1c1c1e;
  border-radius: 12px;
  margin: 15px;
  padding: 0;
  list-style: none;
}
.menu-section li { border-bottom: 1px solid #2c2c2e; }
.menu-section li:last-child { border-bottom: none; }
.menu-section a{
  display: flex;
  align-items: center;
  padding: 0 20px;
  color: #ffffff !important;
  height: 62px;
  text-decoration: none;
  transition: background-color 0.2s;
}
.menu-section a i { font-size: 1.2rem; margin-right: 15px; }
.menu-text { flex-grow: 1; }
.menu-section a:hover { background-color: #2c2c2e; text-decoration: none; }

a.navbar-brand img { max-width: initial; width: auto; }

/* ------------------ CARDS / MISC ------------------ */
.modal-content { border-radius: 12px; text-align: center; }
.modal-body h6 { font-weight: 500; margin-bottom: 20px; }
.modal-footer { justify-content: center; gap: 15px; }

.plug-card {
  background-color: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.plug-info h6 { margin: 0; font-weight: 600; }
.plug-info span { font-size: 1.5rem; font-weight: 500; color: #007bff; }
.plug-icon { font-size: 2rem; color: #495057; }

.timer-container{
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 1.25rem;
  background: linear-gradient(90deg, #1A1A1D 0%, #2E2E33 100%);
  margin-top: 15px;
  padding: 15px;
  flex-direction: column;
  border-radius: 12px;
}
.timer-container span#timer { font-size: 25px; color: #fff; font-weight: 400; }
div#timer { display: inline-block; color: #fff; }

.note-text{ margin-top: 8px; font-size: 16px; color: #EDEDED; }

.progress { background-color: #444; }
.progress-bar { background: linear-gradient(90deg, #2ab2d3, #0f91a5); }

.plug_container .card{
  background-color: #1A1A1D;
  border-radius: 12px;
  padding: 20px !important;
}
.plug_container .card h6{ font-size: 16px; color: #B0B0B0; font-weight: 400; }
.plug_container .card h2{ font-size: 35px; color: #fff; font-weight: 500; }

.payment_d small{ font-size: 18px; color: #fff; font-weight: 400; }
.semibold{ color: #BCBCBC; font-size: 16px; font-weight: 300; }
.payment_d img{ margin-right: 20px; }
.border_bottom{ border-bottom: 1px solid #252525; }
.payment_d .d-flex{ padding: 12px 0px; }

.card_d.p-3.rounded.mb-3{
  background-color: #0D272C;
  padding: 20px !important;
  border-radius: 8px !important;
}
.card_d .semibold{ color: #fff; font-size: 16px; font-weight: 400; }
.card_d .ms-2{ color: #fff; font-size: 14px; font-weight: 400; }

.btn_2{
  background-color: #1F606E;
  border: 1px solid #36A8C0;
  padding: 15px 20px;
  font-size: 16px;
  border-radius: 12px;
  color: #fff;
  font-weight: 400;
}

.tracker_box{
  padding: 15px 13px;
  width: 100%;
  height: auto;
  background: linear-gradient(90deg, #1A1A1D 0%, #2E2E33 100%);
  border-radius: 12px;
}
.tracker_box strong{
  color: #fff !important;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 20px !important;
}
.tracker_box small.text-white-50.d-block{
  color: #F0F0F0 !important;
  font-size: 16px;
  font-weight: 400;
}
.Tracker_status span{ font-size: 16px; color: #fff; font-weight: 400; }

.progress.rounded-pill.bg-secondary{
  background-color: rgba(54, 168, 192, 0.15) !important;
  height: 35px !important;
}
.progress-bar.bg-info.rounded-pill{
  height: 35px !important;
  background: linear-gradient(270deg, #36A8C0 0%, #194F5A 100%);
  border-radius: 1000px;
}

h3.fw-bold.text-center.track_heading{
  text-align: center !important;
  display: block;
  width: 100%;
}

.verify .bg-secondary{
  align-items: center;
  font-weight: 600;
  background: linear-gradient(90deg, #1A1A1D 0%, #2E2E33 100%);
  margin-top: 30px;
  padding: 15px;
  border-radius: 12px;
}
.verify h3.bold{ font-size: 18px !important; color: #fff; font-weight: 400 !important; }
.verify .small{ font-size: 16px; color: #EDEDED; font-weight: 400; }
.verify p.white{ color: #EDEDED; font-size: 16px; }



/* ------------------ PLUG PAGE FIX ------------------ */
.plug-page button.card {
  background-color: #1A1A1D !important;
  border: none !important;
  color: #fff !important;
  border-radius: 12px;
  padding: 20px !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  cursor: pointer;
}

.plug-page button.card:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.plug-page button.card h6 {
  font-size: 16px;
  color: #B0B0B0 !important;
  font-weight: 400;
}

.plug-page button.card h2 {
  font-size: 35px;
  color: #fff !important;
  font-weight: 500;
}

.plug-page button.card img {
  filter: none;
  opacity: 1;
}
