/* Shared auth / help styles — match the Gorgor mobile app */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --g-green: #22C55E;
  --g-green-deep: #16A34A;
  --g-green-soft: #dcfce7;
  --g-bg: #050d08;
  --g-card: rgba(22, 32, 26, 0.72);
  --g-input: rgba(18, 26, 22, 0.88);
  --g-border: rgba(255, 255, 255, 0.12);
  --g-text: #ffffff;
  --g-muted: rgba(255, 255, 255, 0.72);
  --g-placeholder: rgba(255, 255, 255, 0.42);
  --g-help-green: #0b4a2a;
  --g-radius: 18px;
  --g-radius-sm: 12px;
  --g-font: 'Inter', system-ui, -apple-system, sans-serif;
}

html, body { height: 100%; }

body.g-auth-page {
  margin: 0 !important;
  min-height: 100vh;
  font-family: var(--g-font) !important;
  color: var(--g-text) !important;
  background-color: var(--g-bg) !important;
  background-image:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(29, 185, 84, 0.28) 0%, transparent 58%),
    radial-gradient(ellipse 70% 50% at 50% 70%, rgba(11, 74, 42, 0.35) 0%, #050d08 72%) !important;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}

.g-auth-shell {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 18px max(32px, env(safe-area-inset-bottom));
  position: relative;
}

.g-help-pill {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(13, 74, 42, 0.92);
  border: 1px solid rgba(29, 185, 84, 0.35);
  color: #fff !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
}

.g-auth-wrap {
  width: 100%;
  max-width: 430px;
  margin: 28px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.g-logo {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--g-green);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  display: block;
}

.g-brand {
  margin: 14px 0 18px;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--g-green);
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-align: center;
}

.g-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  text-align: center;
  letter-spacing: -0.02em;
}

.g-subtitle {
  margin: 8px 0 18px;
  font-size: 0.95rem;
  color: var(--g-muted);
  text-align: center;
  line-height: 1.45;
}

.g-card {
  width: 100%;
  background: var(--g-card);
  border: 1px solid var(--g-border);
  border-radius: var(--g-radius);
  padding: 18px 16px 16px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.g-field {
  position: relative;
  margin-bottom: 12px;
}

.g-field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  pointer-events: none;
  z-index: 1;
}

.g-field-action {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  padding: 4px;
  z-index: 2;
}

.g-input,
.g-select {
  width: 100%;
  height: 48px;
  border-radius: var(--g-radius-sm);
  border: 1px solid var(--g-border);
  background: var(--g-input);
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  padding: 0 42px 0 42px;
  outline: none;
}

.g-input::placeholder { color: var(--g-placeholder); }
.g-input:focus,
.g-select:focus {
  border-color: rgba(29, 185, 84, 0.7);
  box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.16);
}

.g-input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 50px #122018 inset;
  -webkit-text-fill-color: #fff;
}

.g-phone-row {
  display: flex;
  align-items: stretch;
  height: 48px;
  border-radius: var(--g-radius-sm);
  border: 1px solid var(--g-border);
  background: var(--g-input);
  overflow: hidden;
}
.g-phone-row:focus-within {
  border-color: rgba(29, 185, 84, 0.7);
  box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.16);
}
.g-phone-prefix {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 14px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.g-phone-row .g-input {
  border: 0;
  background: transparent;
  box-shadow: none;
  height: 100%;
  padding-left: 12px;
}

.g-label-float {
  position: absolute;
  left: 14px;
  top: -8px;
  font-size: 11px;
  color: var(--g-muted);
  background: #101910;
  padding: 0 6px;
  z-index: 2;
}

.g-btn {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: var(--g-radius-sm);
  background: #22C55E;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 6px;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.28);
}
.g-btn:hover { background: #16a34a; filter: none; }
.g-btn:disabled { opacity: 0.8; cursor: not-allowed; }
.g-btn.loading .g-btn-default { display: none; }
.g-btn-loading { display: none; }
.g-btn.loading .g-btn-loading { display: inline-flex; align-items: center; gap: 8px; }

.g-center-link {
  display: block;
  text-align: center;
  color: #fff !important;
  margin-top: 16px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none !important;
  background: none;
  border: 0;
  width: 100%;
  cursor: pointer;
  font-family: inherit;
}

.g-center-link.strong { font-weight: 800; }
.g-center-link.green { color: var(--g-green) !important; font-weight: 800; }
.g-muted-note {
  text-align: center;
  color: var(--g-muted);
  font-size: 0.9rem;
  margin: 14px 0 0;
}

.g-otp-icon {
  width: 78px;
  height: 78px;
  margin: 4px auto 14px;
  border-radius: 50%;
  background: rgba(29, 185, 84, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}
.g-otp-icon img { width: 42px; height: 42px; object-fit: contain; }
.g-otp-copy {
  text-align: center;
  color: #fff;
  font-size: 0.98rem;
  margin: 0 0 16px;
  line-height: 1.45;
}
.g-otp-copy span { color: var(--g-green); font-weight: 700; }

.g-otp-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}
.g-otp-row input {
  width: 56px;
  height: 58px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  background: rgba(8, 16, 12, 0.7);
  border: 1.5px solid rgba(29, 185, 84, 0.55);
  border-radius: 10px;
  outline: none;
}
.g-otp-row input:focus {
  border-color: var(--g-green);
  box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.18);
}
.g-resend {
  text-align: center;
  color: var(--g-placeholder);
  font-size: 0.85rem;
  margin: 4px 0 0;
}

.modal-backdrop { background: rgba(0, 0, 0, 0.62); }
.g-fp-dialog .modal-content {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.g-fp-card {
  background: #fff;
  border-radius: 22px;
  padding: 28px 22px 22px;
  text-align: center;
}
.g-fp-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #d9f6e4;
  color: #148a44;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}
.g-fp-card h3 {
  margin: 0 0 18px;
  color: var(--g-green);
  font-size: 1.35rem;
  font-weight: 800;
}
.g-fp-field {
  position: relative;
  margin-bottom: 18px;
}
.g-fp-field i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8aa090;
}
.g-fp-field input {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1px solid #b7e7c8;
  background: #eefbf3;
  padding: 0 14px 0 42px;
  font-size: 0.95rem;
  color: #1a1a1a;
  outline: none;
}
.g-fp-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.g-fp-cancel,
.g-fp-verify {
  height: 46px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}
.g-fp-cancel {
  background: #fff;
  border: 1px solid #d5d8dc;
  color: #333;
}
.g-fp-verify {
  background: #28A745;
  border: 0;
  color: #fff;
}

.g-msg-card {
  background: #fff;
  border-radius: 18px;
  padding: 22px 18px;
  text-align: center;
}
.g-msg-card p {
  margin: 0 0 16px;
  color: #222;
  font-size: 1rem;
  line-height: 1.5;
}

.loader {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: gspin 0.7s linear infinite;
}
@keyframes gspin { to { transform: rotate(360deg); } }

.select2-container { width: 100% !important; }
.select2-container--default .select2-selection--single {
  height: 48px !important;
  border-radius: var(--g-radius-sm) !important;
  border: 1px solid var(--g-border) !important;
  background: var(--g-input) !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 46px !important;
  color: #fff !important;
  padding-left: 42px !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 46px !important;
  right: 8px;
}
.select2-dropdown {
  background: #132018 !important;
  border: 1px solid var(--g-border) !important;
  color: #fff;
}
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background: var(--g-green) !important;
}
.select2-search__field {
  background: #0d1611 !important;
  color: #fff !important;
  border: 1px solid var(--g-border) !important;
}

.toast-success { background-color: var(--g-green-deep) !important; }
.toast-error { background-color: #e11d48 !important; }
#toast-container > div { opacity: 0.96; border-radius: 10px; }

/* Help page — green header + white sheet */
body.g-help-page {
  margin: 0 !important;
  min-height: 100vh;
  font-family: var(--g-font) !important;
  background: #e9edf0 !important;
}

.g-help-header {
  background: #0b4a2a;
  color: #fff;
  padding: 14px 16px 18px;
  position: relative;
  overflow: hidden;
}
.g-help-header::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.g-help-bar {
  display: grid;
  grid-template-columns: 40px 1fr 72px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.g-help-back {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  text-decoration: none !important;
}
.g-help-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.85);
  justify-self: center;
  background: #fff;
}
.g-help-title {
  justify-self: end;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.g-help-wrap {
  padding: 24px 12px 32px !important;
  box-sizing: border-box;
}
.g-help-sheet {
  background: #fff;
  border-radius: 24px;
  width: 100%;
  margin: 0 auto;
  min-height: calc(100vh - 160px);
  padding: 22px 18px 40px;
  position: relative;
  z-index: 2;
  max-width: 640px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  border: 1px solid #eceff3;
}

.g-help-h1 {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 800;
  color: #1a1a1a;
}
.g-help-sub {
  margin: 6px 0 18px;
  color: #6b7280;
  font-size: 0.95rem;
}

.g-help-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid #eceff3;
  border-radius: 16px;
  text-decoration: none !important;
  color: inherit;
  margin-bottom: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.g-help-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}
.g-help-card-text { flex: 1; min-width: 0; }
.g-help-ico.phone { background: #f3f4f6; color: #111; }
.g-help-ico.wa { background: #e7f8ee; color: #25d366; }
.g-help-ico.mail { background: #e8f1fb; color: #2b7de9; }
.g-help-card strong {
  display: block;
  color: #111827;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
}
.g-help-card span {
  display: block;
  color: #9aa3af;
  font-size: 0.86rem;
  margin-top: 2px;
  word-break: break-all;
}
.g-help-card i.chev {
  margin-left: auto;
  color: #d1d5db;
  font-size: 0.85rem;
}

.g-bank-card {
  background: #fff;
  border: 1px solid #eceff3;
  border-radius: 16px;
  overflow: hidden;
}
.g-bank-row {
  padding: 13px 16px;
  border-bottom: 1px solid #eef0f3;
}
.g-bank-row:last-child { border-bottom: 0; }
.g-bank-row small {
  display: block;
  color: #9aa3af;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 3px;
}
.g-bank-row b {
  display: block;
  color: #111;
  font-size: 0.98rem;
  font-weight: 800;
}

.g-help-section {
  margin: 22px 0 10px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #1a1a1a;
}

.g-help-body {
  background: #fff;
  border: 1px solid #eceff3;
  border-radius: 14px;
  padding: 14px 16px;
  color: #1f2937;
  line-height: 1.55;
}
.g-help-body a { color: var(--g-green); font-weight: 600; }
.g-help-body p { margin: 0 0 10px; }
.g-help-body table { width: 100%; }
.g-help-body td, .g-help-body th {
  padding: 8px 0;
  border-bottom: 1px solid #eef0f3;
}

@media (max-width: 480px) {
  .g-logo { width: 78px; height: 78px; }
  .g-brand { font-size: 1.55rem; }
  .g-otp-row input { width: 48px; height: 52px; }
}
