/* VPNexues authentication — clean, isolated responsive system */
.vpn-auth-open,
html.vpn-auth-open,
html.vpn-auth-open body { overflow: hidden; }

#vpnModal {
  --auth-green: #1faf4b;
  --auth-green-dark: #0b7a34;
  --auth-mint: #eef8f0;
  --auth-ink: #20283a;
  --auth-muted: #667085;
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: auto;
  background: rgba(4, 30, 14, .72);
  font-family: "Poppins", "Nunito", Arial, sans-serif;
  backdrop-filter: blur(7px);
}

#vpnModal.open { display: flex; }
#vpnModal, #vpnModal * { box-sizing: border-box; }

#vpnModal .vpn-modal-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(420px, 1.08fr) minmax(390px, .92fr);
  width: min(1060px, calc(100vw - 48px));
  min-height: min(740px, calc(100dvh - 48px));
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 25, 9, .34);
}

#vpnModal .vpn-modal-drag-handle,
#vpnModal .vpn-auth-produce,
#vpnModal .vpn-auth-bottom-art { display: none; }

#vpnModal .vpn-modal-deco {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  padding: 30px 40px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(90deg, rgba(1,67,24,.36), rgba(1,67,24,.04)), url("../img/auth/auth-grocery-banner-v2.png") center / cover no-repeat;
}

#vpnModal .vpn-modal-deco::before,
#vpnModal .vpn-modal-deco::after { content: none; }

#vpnModal .vpn-category-drawer__brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  align-self: flex-start;
  padding: 7px 16px 7px 10px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(3,85,31,.42);
  box-shadow: 0 12px 30px rgba(0,45,16,.18);
  width: 215px;
}

#vpnModal .vpn-modal-logo {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 4px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  filter: none;
}

#vpnModal .deco-logo { color: #fff; font-size: 21px; font-weight: 700; line-height: 1; }
#vpnModal .idlogo-vivasayam-txt { display: block;color:#fff;font-size:8px;margin-top:5px; }

#vpnModal .vpn-close-btn {
  position: absolute;
  top: 35px;
  right: 20px;
  z-index: 10;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(10,75,31,.14);
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: #135f2d;
  font-size: 25px;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(0,40,14,.18);
  cursor: pointer;
}

#vpnModal .vpn-auth-banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 56px 0 22px;
}

#vpnModal .vpn-auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

#vpnModal .vpn-auth-banner-content h2 {
  max-width: 440px;
  margin: 0;
  color: #fff;
  font: 900 clamp(42px, 4.3vw, 58px)/1.04 inherit;
  text-shadow: 0 3px 20px rgba(0,35,12,.24);
}

#vpnModal .vpn-auth-banner-content p {
  max-width: 400px;
  margin: 18px 0 0;
  color: rgba(255,255,255,.92);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}

#vpnModal .vpn-auth-benefits { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
#vpnModal .vpn-auth-benefits span { padding: 9px 11px; border-radius: 999px; background: rgba(2,78,28,.5); color: #fff; font-size: 12px; font-weight: 800; }

#vpnModal .vpn-modal-form-area {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 100%;
  padding: 34px 40px;
  overflow-y: auto;
  background: #fff;
}

#vpnModal .vpn-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 0 0 24px; padding: 5px; border: 1px solid #e2e8e4; border-radius: 999px; background: #f7faf8; }
#vpnModal .vpn-tab { min-height: 48px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--auth-muted); font-family: inherit; font-size: 15px; font-weight: 900; cursor: pointer; }
#vpnModal .vpn-tab.active { background: linear-gradient(110deg, #22b950, #118e3a); color: #fff; box-shadow: 0 9px 22px rgba(31,175,75,.22); }

#vpnModal .vpn-auth-card-head { margin: 0 0 16px; }
#vpnModal .vpn-auth-card-head p { margin: 0 0 4px; color: #159c42; font-size: 15px; font-weight: 900; }
#vpnModal .vpn-auth-card-head h3 { margin: 0; color: var(--auth-ink); font: 900 29px/1.18 inherit; }
#vpnModal .vpn-form-sub { margin: 0 0 18px; color: var(--auth-muted); font-size: 14px; font-weight: 600; line-height: 1.55; }
#vpnModal .vpn-field-label { display: block; margin: 0 0 8px; color: var(--auth-ink); font-size: 14px; font-weight: 900; }

#vpnModal .vpn-input-group { position: relative; display: flex; align-items: stretch; width: 100%; min-width: 0; margin: 0 0 14px; }
#vpnModal .vpn-input-group > i { position: absolute; top: 50%; left: 16px; z-index: 1; color: var(--auth-green); transform: translateY(-50%); }
#vpnModal .vpn-input-group input { flex: 1 1 auto; width: 100%; min-width: 0; height: 56px; padding: 0 16px; border: 1.5px solid #dfe6e2; border-radius: 14px; outline: 0; background: #fff; color: var(--auth-ink); font-family: inherit; font-size: 14px; font-weight: 700; }
#vpnModal .vpn-input-group > i + input { padding-left: 46px; }
#vpnModal .vpn-input-group input::placeholder { color: #9099a8; font-weight: 500; }
#vpnModal .vpn-input-group input:focus { border-color: var(--auth-green); box-shadow: 0 0 0 4px rgba(31,175,75,.12); }

#vpnModal .vpn-country-prefix { display: inline-flex; flex: 0 0 102px; align-items: center; justify-content: center; gap: 7px; margin-right: 8px; border: 1.5px solid #dfe6e2; border-radius: 14px; color: var(--auth-ink); font-size: 14px; font-weight: 800; }
#vpnModal .vpn-country-prefix img { width: 24px; height: 18px; object-fit: cover; }

#vpnModal .vpn-submit-btn { width: 100%; min-height: 56px; margin: 0 0 14px; padding: 0 18px; border: 0; border-radius: 14px; background: linear-gradient(110deg, #22b950, #118e3a); color: #fff; font-family: inherit; font-size: 16px; font-weight: 900; box-shadow: 0 13px 28px rgba(31,175,75,.22); cursor: pointer; }
#vpnModal .vpn-submit-btn:disabled { opacity: .58; box-shadow: none; cursor: not-allowed; }
#vpnModal .vpn-otp-resend-link { margin: 0 0 12px; padding: 0; border: 0; background: transparent; color: var(--auth-green-dark); font: 800 13px/1.4 inherit; text-decoration: underline; cursor: pointer; }
#vpnModal .vpn-otp-message { margin: 0 0 14px; padding: 10px 12px; border: 1px solid #dcebdd; border-radius: 12px; background: #f5fbf6; }
#vpnModal .vpn-auth-switch { margin: 2px 0 15px; color: var(--auth-muted); font-size: 13px; font-weight: 700; text-align: center; }
#vpnModal .vpn-auth-switch a, #vpnModal .vpn-terms a { color: #159c42; font-weight: 900; cursor: pointer; }

#vpnModal .vpn-divider { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: #818a98; font-size: 12px; }
#vpnModal .vpn-divider::before, #vpnModal .vpn-divider::after { content: ""; flex: 1; height: 1px; background: #e3e8e5; }
#vpnModal .vpn-social-row { display: flex; gap: 10px; margin: 0 0 15px; }
#vpnModal .vpn-social-btn { display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border: 1px solid #e0e6e2; border-radius: 13px; background: #fff; color: #202020; font-family: inherit; font-size: 13px; font-weight: 700; }
#vpnModal .vpn-trust-strip { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: var(--auth-mint); color: #148b3b; }
#vpnModal .vpn-trust-strip > i { font-size: 24px; }
#vpnModal .vpn-trust-strip span { display: flex; flex: 1; flex-direction: column; }
#vpnModal .vpn-trust-strip strong { font-size: 13px; }
#vpnModal .vpn-trust-strip small { display: block; font-size: 10px; font-weight: 600; }
#vpnModal .vpn-trust-strip b { font-size: 14px; text-align: center; }
#vpnModal .vpn-terms { margin: 0; color: #7c8798; font-size: 12px; font-weight: 600; line-height: 1.55; text-align: center; }

#vpnModal .vpn-hidden,
#vpnModal .vpn-signup-extra { display: none !important; }
#vpnModal button:focus-visible, #vpnModal input:focus-visible { outline: 3px solid rgba(31,175,75,.32); outline-offset: 2px; }

@media (max-width: 820px) {
  #vpnModal { align-items: flex-start; padding: 20px; background: #edf4ef; backdrop-filter: none; }
  #vpnModal .vpn-modal-panel { display: block; width: min(620px, 100%); min-height: 0; max-height: none; overflow: visible; border: 0; border-radius: 30px; }
  #vpnModal .vpn-modal-deco { min-height: 440px; padding: 24px 26px 84px; border-radius: 30px 30px 0 0; background-position: center 37%; }
  #vpnModal .vpn-auth-banner-content { flex: 0 0 auto; justify-content: flex-start; padding-top: 58px; }
  #vpnModal .vpn-auth-banner-content h2 { max-width: 330px; font-size: 38px; }
  #vpnModal .vpn-auth-banner-content p { max-width: 310px; font-size: 14px; }
  #vpnModal .vpn-auth-benefits { display: none; }
  #vpnModal .vpn-modal-form-area { min-height: 0; margin: -44px 18px 22px; padding: 24px; overflow: visible; border: 1px solid #e5ebe7; border-radius: 27px; box-shadow: 0 18px 45px rgba(21,75,34,.14); }
}

@media (max-width: 479px) {
  #vpnModal { display: none; width: 100vw; height: 100dvh; padding: 0; overflow-x: hidden; overflow-y: auto; }
  #vpnModal.open { display: block; }
  #vpnModal .vpn-modal-panel { width: 100%; min-height: 100dvh; margin: 0; border-radius: 0; background: #f4f8f5; box-shadow: none; }
  #vpnModal .vpn-modal-deco { min-height: clamp(420px, 112vw, 462px); padding: 20px 20px 76px; border-radius: 0 0 30px 30px; }
  #vpnModal .vpn-category-drawer__brand { min-height: 52px; max-width: calc(100% - 52px); }
  #vpnModal .vpn-modal-logo { width: 40px; height: 40px; }
  #vpnModal .deco-logo { font-size: 18px; }
  #vpnModal .vpn-close-btn { top: 18px; right: 16px; }
  #vpnModal .vpn-auth-banner-content { display: grid; align-content: start; gap: 15px; padding: 42px 0 0; }
  #vpnModal .vpn-auth-badge, #vpnModal .vpn-auth-banner-content h2, #vpnModal .vpn-auth-banner-content p { margin: 0; }
  #vpnModal .vpn-auth-banner-content h2 { max-width: min(280px, 74vw); font-size: clamp(30px, 8.2vw, 34px); }
  #vpnModal .vpn-auth-banner-content p { max-width: min(260px, 70vw); font-size: 14px; line-height: 1.5; }
  #vpnModal .vpn-modal-form-area { width: calc(100% - 32px); margin: -38px 16px 22px; padding: 20px; border-radius: 26px; }
  #vpnModal .vpn-tab, #vpnModal .vpn-social-btn, #vpnModal .vpn-close-btn { min-height: 44px; }
  #vpnModal .vpn-tabs { margin-bottom: 20px; }
  #vpnModal .vpn-auth-card-head h3 { font-size: 25px; }
  #vpnModal .vpn-country-prefix { flex-basis: 96px; }
}

@media (max-width: 350px) {
  #vpnModal .vpn-modal-deco { min-height: 408px; padding: 16px 16px 66px; }
  #vpnModal .vpn-auth-banner-content { padding-top: 28px; }
  #vpnModal .vpn-auth-banner-content h2 { font-size: 28px; }
  #vpnModal .vpn-modal-form-area { width: calc(100% - 24px); margin: -34px 12px 18px; padding: 16px; }
  #vpnModal .vpn-country-prefix { flex-basis: 86px; gap: 5px; }
}

@media (max-height: 600px) and (min-width: 821px) {
  #vpnModal { padding: 12px; }
  #vpnModal .vpn-modal-panel { min-height: calc(100dvh - 24px); max-height: calc(100dvh - 24px); }
  #vpnModal .vpn-modal-form-area { padding-top: 24px; padding-bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  #vpnModal * { scroll-behavior: auto !important; transition: none !important; }
}
