/* =========================================================
   DOOVITES — Modern Authentication Modal & Navbar CSS
   Comprehensive Login, Sign Up, and Password-Protected Guest Flows
   ========================================================= */

.g-auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000005;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  overflow-y: auto;
  animation: gAuthFade 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@keyframes gAuthFade {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.g-auth-card {
  background: #ffffff;
  width: 100%;
  max-width: 440px;
  margin: auto;
  overflow: visible;
  border-radius: 22px;
  padding: 26px 24px 20px;
  box-shadow: 0 25px 65px -12px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.04);
  position: relative;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1e293b;
}

@media (min-width: 600px) {
  .g-auth-card {
    max-width: 440px;
    padding: 28px 28px 22px;
  }
}

/* Close button */
.g-auth-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 18px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
  z-index: 10;
}

.g-auth-close-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
  transform: scale(1.05);
}

/* Segmented Tab Switcher (Log In | Sign Up) */
.g-auth-tab-bar {
  display: flex;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 3px;
  margin-bottom: 14px;
  gap: 3px;
  position: relative;
}

.g-auth-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: #64748b;
  background: transparent;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  outline: none;
}

.g-auth-tab:hover:not(.active) {
  color: #1e293b;
  background: rgba(255, 255, 255, 0.5);
}

.g-auth-tab.active {
  background: #ffffff;
  color: #744b9e;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.g-auth-tab svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.g-auth-tab.active svg {
  opacity: 1;
  color: #d04a9b;
}

/* View Header */
.g-auth-view-header {
  text-align: center;
  margin-bottom: 12px;
}

.g-auth-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 3px;
  letter-spacing: -0.3px;
}

.g-auth-subtitle {
  font-size: 12.5px;
  font-weight: 500;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

/* Social Buttons */
.g-google-btn-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.g-btn-auth-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 40px;
  border-radius: 11px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.g-btn-auth-pill:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.g-btn-auth-pill svg {
  flex-shrink: 0;
}

/* Divider */
.g-auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 10px 0 12px;
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 500;
}

.g-auth-divider::before, .g-auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.g-auth-divider span {
  padding: 0 10px;
}

/* 2-Column Responsive Grid on Desktop */
.g-auth-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 580px) {
  .g-auth-grid-2col {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Forms and Inputs */
.g-field-group {
  text-align: left;
  margin-bottom: 10px;
}

.g-form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 4px;
}

.g-req {
  color: #d04a9b;
  font-weight: 800;
  margin-left: 2px;
}

.g-opt {
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
  margin-left: auto;
}

.g-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.g-input-icon {
  position: absolute;
  left: 11px;
  color: #94a3b8;
  pointer-events: none;
  transition: color 0.2s;
}

.g-auth-input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
  font-size: 13.5px;
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.g-auth-input.with-icon {
  padding-left: 36px;
}

.g-auth-input.with-eye {
  padding-right: 36px;
}

.g-auth-input:focus {
  background: #ffffff;
  border-color: #d04a9b;
  box-shadow: 0 0 0 3.5px rgba(208, 74, 155, 0.14);
}

.g-input-wrap:focus-within .g-input-icon {
  color: #744b9e;
}

/* Username Field & Live Availability Badge */
.g-form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.g-username-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.4;
  transition: all 0.2s ease;
}

.g-username-badge.checking {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.g-username-badge.available {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.g-username-badge.taken {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.g-username-badge.invalid {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

.g-input-wrap.has-prefix {
  position: relative;
}

.g-input-prefix {
  position: absolute;
  left: 11px;
  font-size: 13.5px;
  font-weight: 800;
  color: #94a3b8;
  pointer-events: none;
  z-index: 2;
}

.g-auth-input.with-prefix {
  padding-left: 26px;
  font-weight: 600;
}

.g-field-hint {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
  text-align: left;
}

.g-username-suggestions {
  margin-top: 6px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.g-suggestions-label {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

.g-suggestions-pills {
  display: inline-flex;
  gap: 5px;
  flex-wrap: wrap;
}

.g-suggestion-pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #744b9e;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.g-suggestion-pill:hover {
  background: #fdf4ff;
  border-color: #d04a9b;
  color: #d04a9b;
  transform: translateY(-1px);
}

/* Password Toggle Eye Button */
.g-password-toggle-btn {
  position: absolute;
  right: 6px;
  background: transparent;
  border: none;
  color: #94a3b8;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 7px;
  transition: all 0.15s ease;
  padding: 0;
}

.g-password-toggle-btn:hover {
  color: #334155;
  background: #f1f5f9;
}

/* Submit Buttons */
.g-btn-auth-submit {
  width: 100%;
  height: 42px;
  background: linear-gradient(135deg, #744b9e 0%, #d04a9b 100%);
  color: #ffffff;
  border: none;
  border-radius: 11px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(208, 74, 155, 0.28);
  margin-top: 4px;
}

.g-btn-auth-submit:hover {
  transform: translateY(-1.5px);
  filter: brightness(1.05);
  box-shadow: 0 9px 24px rgba(208, 74, 155, 0.42);
}

.g-btn-auth-submit:active {
  transform: translateY(0);
}

.g-btn-auth-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.g-btn-auth-submit.guest {
  background: linear-gradient(135deg, #475569 0%, #744b9e 100%);
  box-shadow: 0 6px 18px rgba(116, 75, 158, 0.28);
}

/* Error Messages */
.g-auth-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  margin: 12px 0;
  text-align: left;
  line-height: 1.4;
  animation: gAuthShake 0.3s ease-in-out;
}

@keyframes gAuthShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* ALERT: Account Already Exists Banner */
.g-auth-account-exists-banner {
  background: linear-gradient(135deg, #fff7ed 0%, #fef2f2 100%);
  border: 1.5px solid #fdba74;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.12);
  animation: gAuthFade 0.25s ease-out;
}

.g-exists-banner-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.g-exists-banner-content {
  flex: 1;
}

.g-exists-banner-title {
  font-size: 14px;
  font-weight: 800;
  color: #9a3412;
  margin-bottom: 2px;
}

.g-exists-banner-text {
  font-size: 12.5px;
  color: #7c2d12;
  line-height: 1.4;
  margin-bottom: 10px;
}

.g-btn-exists-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ea580c;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.g-btn-exists-login:hover {
  background: #c2410c;
  transform: translateY(-1px);
}

/* ALERT: User is Already Logged In Banner */
.g-auth-session-alert {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1.5px solid #86efac;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.g-session-alert-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.g-session-alert-body {
  flex: 1;
}

.g-session-alert-title {
  font-size: 13px;
  font-weight: 700;
  color: #14532d;
}

.g-session-alert-subtitle {
  font-size: 11.5px;
  color: #166534;
}

.g-session-alert-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.g-btn-pill-sm {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.15s;
}

.g-btn-pill-sm.primary {
  background: #166534;
  color: #ffffff;
}

.g-btn-pill-sm.primary:hover {
  background: #14532d;
}

.g-btn-pill-sm.logout {
  background: #f1f5f9;
  color: #475569;
}

.g-btn-pill-sm.logout:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Footer Links & Guest Callout */
.g-auth-footer-links {
  margin-top: 10px;
  text-align: center;
}

.g-auth-switch-text {
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 6px;
}

.g-link-switch-tab {
  background: none;
  border: none;
  color: #744b9e;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  padding: 0;
  margin-left: 4px;
  text-decoration: underline;
  font-family: inherit;
}

.g-link-switch-tab:hover {
  color: #d04a9b;
}

.g-auth-guest-callout {
  background: #faf5ff;
  border: 1px dashed #d8b4fe;
  border-radius: 10px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11.5px;
  color: #6b21a8;
  margin-top: 4px;
  flex-wrap: wrap;
}

.g-btn-switch-guest {
  background: none;
  border: none;
  color: #744b9e;
  font-weight: 800;
  font-size: 11.5px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  font-family: inherit;
}

.g-btn-switch-guest:hover {
  color: #d04a9b;
}

/* Guest View Styles */
.g-guest-icon-box {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #744b9e 0%, #d04a9b 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(116, 75, 158, 0.28);
}

.g-auth-info-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11.5px;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 8px 10px;
  margin: 10px 0 12px;
  text-align: left;
  line-height: 1.4;
}

.g-auth-info-note svg {
  flex-shrink: 0;
  color: #744b9e;
  margin-top: 2px;
}

.g-btn-back-to-login {
  background: none;
  border: none;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}

.g-btn-back-to-login:hover {
  color: #0f172a;
}

.g-auth-terms {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 10px;
  line-height: 1.4;
  text-align: center;
}

.g-auth-terms a {
  color: #744b9e;
  text-decoration: none;
  font-weight: 600;
}

.g-auth-terms a:hover {
  color: #d04a9b;
  text-decoration: underline;
}

/* TOP NAVBAR LOGIN & SIGNUP BUTTONS */
.btn-nav-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-nav-login:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

/* In unified passwordless flow, duplicate signup button is hidden to prevent redundancy */
.nav-cta-group .btn-nav-signup,
.header-right .btn-nav-signup {
  display: none !important;
}

/* =========================================================
   UNIVERSAL USER ACCOUNT BUTTON & PILL (All Pages)
   ========================================================= */
.btn-nav-login.logged-in {
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  height: 44px;
  min-width: 0;
  max-width: 220px;
  padding: 5px 12px 5px 6px;
  border-radius: 14px;
  background: #fcf9ff !important;
  border: 1px solid #e8deef !important;
  color: #4b266d !important;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  overflow-wrap: normal;
}

.btn-nav-login.logged-in:hover {
  background: #f5eef9 !important;
  border-color: #d6c3e4 !important;
  box-shadow: 0 4px 12px rgba(116, 75, 158, 0.08);
}

.nav-account-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #ede3f5;
  color: #4b266d;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.nav-account-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.nav-account-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  color: #1e1b4b;
}

.nav-account-role {
  font-size: 9px;
  font-weight: 600;
  line-height: 1.2;
  color: #766481;
  letter-spacing: 0.04em;
  text-transform: none;
  white-space: nowrap;
}

.nav-account-role.is-handle {
  text-transform: lowercase !important;
}

@media (max-width: 600px) {
  .btn-nav-login.logged-in {
    max-width: min(160px, calc(100vw - 152px)) !important;
    height: 40px !important;
    padding: 4px 10px 4px 5px !important;
    gap: 7px;
  }
  .nav-account-avatar {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    font-size: 10px;
  }
  .nav-account-name {
    font-size: 11.5px;
  }
  .nav-account-role {
    font-size: 8.5px;
  }
}

@media (max-width: 768px) {
  .top-nav .btn-nav-login.logged-in,
  .hub-header .btn-nav-login.logged-in {
    display: inline-flex !important;
  }

  /* Anchor dropdown neatly within the mobile viewport instead of overflowing the left screen edge */
  .nav-account-dropdown {
    position: fixed !important;
    top: calc(var(--site-nav-height, 60px) + 8px);
    right: 12px !important;
    left: auto !important;
    width: min(280px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    border-radius: 16px !important;
    box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.08) !important;
  }
}

/* User Account Dropdown in Navigation */
.nav-account-wrap {
  position: relative;
  display: inline-flex;
}

.nav-account-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 250px;
  background: #ffffff !important;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.05);
  padding: 10px;
  z-index: 999999 !important;
  display: none;
  flex-direction: column;
  gap: 3px;
  animation: navDropdownFade 0.18s ease-out;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.nav-account-dropdown.show {
  display: flex;
}

@keyframes navDropdownFade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-dropdown-header {
  padding: 8px 10px 10px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 4px;
  text-align: left;
}

.nav-dropdown-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-dropdown-role {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: all 0.15s;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  font-family: inherit;
}

.nav-dropdown-item:hover {
  background: #f8fafc;
  color: #0f172a;
}

.nav-dropdown-item.logout {
  color: #ef4444;
  margin-top: 4px;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
  border-radius: 0 0 10px 10px;
}

.nav-dropdown-item.logout:hover {
  background: #fef2f2;
  color: #dc2626;
}

/* Pulsing input focus highlight when redirected from existing account */
@keyframes gPulseFocus {
  0% { box-shadow: 0 0 0 0 rgba(208, 74, 155, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(208, 74, 155, 0); }
  100% { box-shadow: 0 0 0 0 rgba(208, 74, 155, 0); }
}

.g-input-pulse {
  animation: gPulseFocus 1.2s infinite;
  border-color: #d04a9b !important;
}

/* =========================================================
   MY ACCOUNT VIEW & PROFILE SETTINGS STYLES
   ========================================================= */
.g-account-header-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(116, 75, 158, 0.06) 0%, rgba(208, 74, 155, 0.06) 100%);
  border: 1px solid rgba(208, 74, 155, 0.16);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

.g-account-avatar-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #744b9e 0%, #d04a9b 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(116, 75, 158, 0.28);
}

.g-account-header-meta {
  flex: 1;
  text-align: left;
}

.g-account-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.g-account-type-badge {
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.g-account-meta-handle {
  font-size: 11.5px;
  color: #744b9e;
  font-weight: 700;
}

/* Password Change Drawer */
.g-account-pwd-toggle-wrap {
  margin: 4px 0 10px;
  text-align: left;
}

.g-account-pwd-toggle-btn {
  background: none;
  border: none;
  color: #744b9e;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}

.g-account-pwd-toggle-btn:hover {
  color: #d04a9b;
}

.g-account-pwd-drawer {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 12px 14px 4px;
  margin-bottom: 10px;
  animation: gAuthFade 0.2s ease-out;
}

/* Success Alert */
.g-auth-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  margin: 10px 0;
  text-align: left;
  animation: gAuthFade 0.2s ease-out;
}

/* Action Buttons Row */
.g-account-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.g-btn-account-cancel {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  padding: 0 18px;
  height: 42px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.g-btn-account-cancel:hover {
  background: #e2e8f0;
  color: #0f172a;
}

@media (max-width: 480px) {
  .g-auth-overlay {
    padding: 12px 10px;
    align-items: center;
  }

  .g-auth-card {
    width: 100%;
    max-width: 100%;
    padding: 18px 16px 14px;
    border-radius: 20px;
    margin: auto;
  }

  .g-auth-close-btn {
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .g-auth-brand-logo {
    width: 38px;
    height: 38px;
    margin: 0 auto 6px;
  }

  .g-auth-title {
    font-size: 19px;
    line-height: 1.25;
    margin-bottom: 4px;
  }

  .g-auth-subtitle {
    font-size: 12.5px;
    margin-bottom: 12px;
    line-height: 1.35;
  }

  .g-field-group {
    margin-bottom: 10px;
  }

  .g-form-label {
    font-size: 12px;
    margin-bottom: 5px;
  }

  /* Compact Phone Combo on Mobile */
  .g-phone-input-combo {
    height: 44px;
    border-radius: 12px;
  }

  .g-country-picker-btn {
    padding: 0 8px 0 10px;
    gap: 6px;
    font-size: 13px;
  }

  .g-flag-img {
    width: 20px;
    height: 14px;
  }

  .g-country-dial {
    font-size: 13px;
  }

  .g-unified-phone-input {
    font-size: 14.5px;
    padding: 0 10px;
  }

  /* Compact Flush Dropdown on Mobile */
  .g-country-dropdown {
    top: calc(100% + 4px);
    max-height: 190px;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.06);
  }

  .g-country-search-box {
    padding: 7px 10px;
  }

  .g-country-search-input {
    font-size: 13px;
  }

  .g-country-list {
    max-height: 140px;
    padding: 4px;
  }

  .g-country-item {
    padding: 6px 8px;
    font-size: 13px;
    gap: 8px;
  }

  .g-country-item-dial {
    font-size: 11.5px;
    padding: 2px 6px;
  }

  /* Compact Action Buttons & Dividers on Mobile */
  .g-btn-auth-submit {
    height: 42px;
    font-size: 14px;
    margin-top: 10px;
    border-radius: 12px;
  }

  .g-auth-divider {
    margin: 10px 0 8px;
    font-size: 11px;
  }

  .g-auth-divider span {
    padding: 0 8px;
  }

  .g-btn-auth-pill.g-btn-google-trigger {
    height: 40px;
    font-size: 13px;
    border-radius: 12px;
  }

  .g-auth-guest-callout {
    margin-top: 8px;
    padding: 7px 10px;
    font-size: 11.5px;
    border-radius: 10px;
  }

  .g-btn-switch-guest {
    font-size: 11.5px;
  }

  .g-auth-terms {
    margin-top: 8px;
    font-size: 10.5px;
    line-height: 1.35;
  }
}

@media (max-height: 660px) {
  .g-auth-overlay {
    padding: 6px;
  }

  .g-auth-card {
    padding: 14px 14px 10px;
  }

  .g-auth-brand-logo {
    display: none;
  }

  .g-auth-title {
    font-size: 17px;
    margin-bottom: 2px;
  }

  .g-auth-subtitle {
    font-size: 11.5px;
    margin-bottom: 8px;
  }

  .g-field-group {
    margin-bottom: 8px;
  }

  .g-auth-divider {
    margin: 8px 0 6px;
  }

  .g-country-dropdown {
    max-height: 160px;
  }

  .g-country-list {
    max-height: 115px;
  }
}

/* =========================================================
   WHATSAPP / MOBILE OTP FLOW STYLES
   ========================================================= */

.g-auth-method-switcher {
  display: flex;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 3px;
  margin-bottom: 14px;
  gap: 4px;
}

.g-method-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.g-method-tab.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.g-method-tab:hover:not(.active) {
  color: #334155;
}

/* =========================================================
   MODERN UNIFIED PHONE INPUT WITH EMBEDDED COUNTRY SELECTOR
   (Google / Microsoft / Stripe Design Standard)
   ========================================================= */

.g-phone-input-combo {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  height: 48px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 13px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.g-phone-input-combo:hover {
  border-color: #cbd5e1;
}

.g-phone-input-combo:focus-within,
.g-phone-input-combo.has-dropdown-open {
  border-color: #744b9e;
  box-shadow: 0 0 0 3.5px rgba(116, 75, 158, 0.12);
  background: #ffffff;
}

/* Country Selector Button Embedded Inside Phone Box */
.g-country-picker-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 100%;
  padding: 0 10px 0 13px;
  border: none;
  background: transparent;
  color: #0f172a;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border-radius: 11px 0 0 11px;
  transition: background 0.15s ease;
  outline: none;
  user-select: none;
  flex-shrink: 0;
}

.g-country-picker-btn:hover {
  background: #f8fafc;
}

.g-country-picker-btn.is-active,
.g-phone-input-combo.has-dropdown-open .g-country-picker-btn {
  background: #f1f5f9;
}

/* Flag Image */
.g-flag-img {
  width: 22px;
  height: 15px;
  border-radius: 2.5px;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  display: block;
  flex-shrink: 0;
}

.g-flag-fallback {
  font-size: 16px;
  line-height: 1;
}

.g-country-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.g-country-dial {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.2px;
}

.g-country-caret {
  color: #64748b;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.g-phone-input-combo.has-dropdown-open .g-country-caret,
.g-country-picker-btn.is-active .g-country-caret {
  transform: rotate(180deg);
  color: #744b9e;
}

/* Subtle Vertical Divider */
.g-phone-divider {
  width: 1px;
  height: 22px;
  background: #e2e8f0;
  flex-shrink: 0;
}

/* Seamless Phone Number Input inside the unified container */
.g-unified-phone-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none !important;
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 500;
  color: #0f172a;
  font-family: inherit;
  letter-spacing: 0.3px;
}

.g-unified-phone-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
  letter-spacing: normal;
}

/* Full-width Flush Country Dropdown Popover */
.g-country-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  width: 100%;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 18px 42px -6px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.04);
  z-index: 100050;
  overflow: hidden;
  animation: gCountryDropdownFade 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

@keyframes gCountryDropdownFade {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.g-country-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid #f1f5f9;
  background: #f8fafc;
}

.g-country-search-icon {
  color: #94a3b8;
  flex-shrink: 0;
}

.g-country-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 13.5px;
  font-family: inherit;
  color: #0f172a;
  outline: none;
  padding: 0;
}

.g-country-search-input::placeholder {
  color: #94a3b8;
}

.g-country-search-clear {
  background: #e2e8f0;
  border: none;
  color: #64748b;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.15s ease;
}

.g-country-search-clear:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.g-country-list {
  max-height: 220px;
  overflow-y: auto;
  padding: 6px;
  margin: 0;
  outline: none;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

.g-country-list::-webkit-scrollbar {
  width: 5px;
}
.g-country-list::-webkit-scrollbar-track {
  background: transparent;
}
.g-country-list::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 4px;
}
.g-country-list::-webkit-scrollbar-thumb:hover {
  background: #cbd5e1;
}

.g-country-section-header {
  padding: 6px 10px 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #94a3b8;
}

.g-country-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: #1e293b;
  cursor: pointer;
  transition: background 0.12s ease;
  user-select: none;
}

.g-country-item:hover,
.g-country-item.is-focused {
  background: #f8fafc;
}

.g-country-item.is-selected {
  background: #f5f0fb;
  color: #744b9e;
  font-weight: 600;
}

.g-country-item-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.g-country-item-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.g-country-item-dial {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 6px;
  flex-shrink: 0;
  letter-spacing: -0.2px;
}

.g-country-item.is-selected .g-country-item-dial {
  background: rgba(116, 75, 158, 0.12);
  color: #744b9e;
}

.g-country-empty-hint {
  padding: 24px 12px;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
}

.g-otp-country-select {
  display: none !important;
}

.with-phone-field {
  flex: 1;
}

/* Sent target pill */
.g-otp-target-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
}

.g-otp-target-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #166534;
}

.g-otp-target-label {
  color: #15803d;
}

.g-otp-target-num {
  font-weight: 700;
  color: #14532d;
}

.g-btn-change-num {
  background: transparent;
  border: none;
  color: #15803d;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.g-btn-change-num:hover {
  background: #dcfce7;
}

/* Test Mode Alert Banner */
.g-otp-test-hint {
  background: #fffbeb;
  border: 1px dashed #f59e0b;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12.5px;
  color: #92400e;
  margin-bottom: 12px;
  text-align: center;
  animation: gAuthFade 0.2s ease-out;
}

.g-otp-code-highlight {
  display: inline-block;
  background: #fef3c7;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 14px;
  letter-spacing: 2px;
  color: #78350f;
}

/* 6-digit OTP code box */
.g-otp-digit-field {
  text-align: center !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  letter-spacing: 12px !important;
  height: 52px !important;
  padding-left: 18px !important;
  font-family: 'Courier New', Courier, monospace !important;
  color: #0f172a !important;
}

.g-otp-digit-field::placeholder {
  letter-spacing: 8px;
  color: #cbd5e1;
  font-size: 20px;
}

/* Countdown & Resend */
.g-otp-countdown-wrap {
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: #64748b;
}

.g-otp-countdown-wrap strong {
  color: #0f172a;
}

.g-btn-resend-link {
  background: none;
  border: none;
  color: #6366f1;
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
  padding: 4px 8px;
  font-family: inherit;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.g-btn-resend-link:hover {
  color: #4f46e5;
}

/* =========================================================
   6-BOX INDIVIDUAL OTP GRID & SUBSTEP BANNERS
   ========================================================= */

.g-auth-brand-logo {
  display: inline-block;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.g-otp-boxes-grid {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 10px 0 12px;
}

.g-otp-box {
  width: 44px;
  height: 52px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  color: #0f172a;
  outline: none;
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@media (max-width: 400px) {
  .g-otp-box {
    width: 38px;
    height: 46px;
    font-size: 19px;
    border-radius: 9px;
  }
}

.g-otp-box:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  transform: translateY(-2px);
}

.g-otp-box.filled {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

.g-otp-auto-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
  color: #059669;
  font-weight: 600;
  margin-top: 4px;
}

.g-auth-substep-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 12.5px;
  color: #92400e;
  line-height: 1.45;
}

.g-auth-substep-banner.blue {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}

.g-verified-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #166534;
}

/* ========================================================
   HOST ACCOUNT & CONTACT VERIFICATION SECTION (dashboard & manage)
   ======================================================== */
.hub-account-section {
  margin-top: 32px;
}

.hub-account-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 26px 28px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

.hub-account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
}

.hub-account-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hub-account-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #9d236b, #d946ef);
  color: #ffffff;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hub-account-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hub-account-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.hub-acc-type-badge {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 3px 10px;
  border-radius: 999px;
}

.hub-account-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: #64748b;
}

.hub-acc-feedback {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}
.hub-acc-feedback.success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.hub-acc-feedback.error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.hub-account-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.hub-acc-row {
  padding: 16px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

.hub-acc-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.hub-acc-row-info {
  flex: 1;
  min-width: 220px;
}

.hub-acc-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.hub-acc-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
}

.hub-acc-status-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
}
.hub-acc-status-pill.verified {
  color: #047857;
  background: #d1fae5;
}
.hub-acc-status-pill.unverified {
  color: #b45309;
  background: #fef3c7;
}
.hub-acc-status-pill.empty {
  color: #64748b;
  background: #e2e8f0;
}

.hub-acc-value {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}

.hub-acc-hint {
  margin-top: 3px;
  font-size: 12px;
  color: #64748b;
}

.hub-acc-name-edit {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.hub-acc-input {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.hub-acc-input:focus {
  border-color: #9d236b;
  box-shadow: 0 0 0 3px rgba(157, 35, 107, 0.12);
}
.hub-acc-input:disabled {
  background: #f1f5f9;
  color: #334155;
  border-color: #e2e8f0;
  cursor: default;
}

.btn-hub-acc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-hub-acc-icon:hover {
  background: #f1f5f9;
  color: #9d236b;
  border-color: #9d236b;
}

.hub-acc-otp-input {
  max-width: 150px;
  min-width: 120px;
  letter-spacing: 0.2em;
  font-weight: 700;
  text-align: center;
}

.hub-acc-otp-box {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #cbd5e1;
}

.hub-acc-otp-step {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-hub-acc-primary {
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #9d236b, #c026d3);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}
.btn-hub-acc-primary:hover:not(:disabled) {
  opacity: 0.94;
}
.btn-hub-acc-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-hub-acc-outline {
  padding: 8px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #1e293b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn-hub-acc-outline:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.btn-hub-acc-ghost {
  padding: 9px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.btn-hub-acc-ghost:hover {
  color: #0f172a;
  background: #e2e8f0;
}

@media (max-width: 640px) {
  .hub-account-card {
    padding: 20px 16px;
  }
}


