/* =========================================================
   GF GLOBAL MODAL — FULL SYSTEM (CLEAN)
   Mobile → Desktop
   Single source of truth — no overrides needed
========================================================= */


/* =========================================================
   BASE WRAPPER
========================================================= */



/* =========================================================
   OVERLAY
========================================================= */



/* =========================================================
   PANEL
========================================================= */



/* =========================================================
   TOP ALERT BAR (STATUS)
========================================================= */

/* RED */

.gf-modal--danger .gf-modal-panel::before {
  background: #ff4d4f;
}

/* RED (ERROR STATE) */
.gf-modal--error .gf-modal-panel::before {
  background: #ff4d4f;
}

/* AMBER */
.gf-modal--warning .gf-modal-panel::before {
  background: #faad14;
}

/* default (purple) */
.gf-modal--alert .gf-modal-panel::before {
  background: #8A5CFF;
}


/* =========================================================
   TITLE
========================================================= */



/* =========================================================
   TEXT
========================================================= */



/* =========================================================
   ACTIONS
========================================================= */



/* =========================================================
   MESSAGE MODE (STACK BUTTON)
========================================================= */



/* =========================================================
   DESKTOP
========================================================= */

.gf-password-strength {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
}

.gf-password-strength.weak { color: #ff4d4f; }
.gf-password-strength.medium { color: #faad14; }
.gf-password-strength.strong { color: #52c41a; }

/* =====================================================
   AGE VERIFIED SUCCESS MODAL
===================================================== */

.gf-age-success {
  text-align: center;
  padding: 6px 4px;
}

.gf-age-success__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 6px;

  border-radius: 50%;
  background: #22C55E;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #fff;
  font-weight: 700;
  font-size: 16px;

  box-shadow: 0 6px 14px rgba(34,197,94,0.25);
}

.gf-age-success__verified {
  font-size: 13px;
  font-weight: 600;
  color: #22C55E;
  margin-bottom: 12px;
}

.gf-age-success__title {
  font-size: 15px;
  margin-bottom: 6px;
}

.gf-age-success__text {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
}

.gf-age-success__sub {
  font-size: 13px;
  color: #6b6785;
  line-height: 1.5;
}

.gf-modal--message .gf-modal-text {
  padding-top: 4px;
}

/* =========================================================
   MODAL TOP BAR (TYPE BASED)
========================================================= */

.gf-modal-card {
  position: relative;
}

/* top bar base */
.gf-modal-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  border-radius: 12px 12px 0 0;
  background: #8b5cf6; /* default purple */
}

/* ERROR = RED */
.gf-modal--error .gf-modal-card::before {
  background: #ef4444;
}

/* WARNING = AMBER */
.gf-modal--warning .gf-modal-card::before {
  background: #f59e0b;
}

/* SUCCESS = GREEN */
.gf-modal--success .gf-modal-card::before {
  background: #22c55e;
}


/* =========================================================
   GF WISHLIST MODAL — FORCE CENTER + SIZE
========================================================= */

#gf-wishlist-welcome-modal{
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 100vh;
  padding: 20px;
}


/* PANEL SIZE (clean + premium) */
#gf-wishlist-welcome-modal .gf-modal-panel{
  width: 100%;
  max-width: 540px;   /* slightly bigger than before */
  border-radius: 18px;
}


/* BODY SPACING */
#gf-wishlist-welcome-modal .gf-modal-body{
  padding: 26px 24px;
}


/* TEXT BALANCE */
#gf-wishlist-welcome-modal .gf-welcome-copy{
  text-align: center;
  max-width: 340px;
  margin: 0 auto;
}


/* IMAGE SCALE */
#gf-wishlist-welcome-modal .gf-welcome-visual img{
  width: 150px;
  height: auto;
  border-radius: 16px;
  display: block;
  margin: 0 auto;
}

/* =========================================================
   CORE FIX — MAKE MODAL ACT LIKE AN OVERLAY
========================================================= */

#gf-wishlist-welcome-modal {
  position: fixed;
  inset: 0;

  display: none; /* ✅ default hidden */

  align-items: center;
  justify-content: center;

  z-index: 9999;
}

#gf-wishlist-welcome-modal.is-open {
  display: flex; /* ✅ only show when open */
}

/* =========================================================
   ACCOUNT RESTRICTED MODAL — FULL REPLACEMENT (CORRECT)
   Uses core modal system (.gf-modal-panel)
========================================================= */

/* Overlay upgrade */
.gf-modal--restricted .gf-modal-overlay {
  background: rgba(12, 10, 30, 0.72);
  backdrop-filter: blur(8px);
}


/* PANEL — override base modal panel */
.gf-modal--restricted .gf-modal-panel {
  width: calc(100% - 32px);
  max-width: 520px !important;

  padding: 28px 26px;

  border-radius: 18px;

  background: #ffffff;

  box-shadow:
    0 24px 70px rgba(0,0,0,0.28),
    0 6px 18px rgba(0,0,0,0.08);

  text-align: center;
}


/* REMOVE default purple title */
.gf-modal--restricted .gf-modal-title {
  color: #111827;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
}

.gf-modal--restricted .gf-modal-title::after {
  display: none;
}


/* BODY TEXT */
.gf-modal--restricted .gf-modal-text {
  font-size: 14px;
  line-height: 1.5;
  color: #6b7280;

  margin: 0 0 14px 0;
}


/* REASON BOX */
.gf-modal--restricted .gf-restricted-reason {
  margin: 18px 0 20px;
  padding: 14px 16px;

  border-radius: 12px;

  background: linear-gradient(180deg, #fff7ed, #ffedd5);
  border: 1px solid #fed7aa;

  color: #9a3412;
}


/* REASON LABEL */
.gf-modal--restricted .gf-restricted-reason strong {
  display: block;

  font-size: 12px;
  font-weight: 600;

  text-transform: uppercase;
  letter-spacing: 0.6px;

  margin-bottom: 6px;

  color: #c2410c;
}


/* REASON TEXT */
.gf-modal--restricted .gf-restricted-reason span {
  font-size: 14px;
  font-weight: 500;
}


/* FOOTER TEXT */
.gf-modal--restricted .gf-modal-footer {
  font-size: 13px;
  color: #6b7280;

  margin-top: 12px;
}




/* BUTTON */
.gf-modal--restricted .gf-modal-actions {
  margin-top: 18px;
}

.gf-modal--restricted .gf-modal-btn--primary {
  width: 100%;
  height: 42px;

  border-radius: 10px;

  background: linear-gradient(135deg, #7C5CFF, #5B3FEA);
  box-shadow: 0 6px 14px rgba(124,92,255,0.25);
}

/* =========================================================
   DASHBOARD WELCOME MODAL
========================================================= */

#gf-dashboard-welcome-modal {
  --gf-welcome-ink: #171039;
  --gf-welcome-muted: #64627a;
  --gf-welcome-purple: #7c4dff;
  --gf-welcome-purple-deep: #5d35dd;
  --gf-welcome-pink: #e56aa4;
  --gf-welcome-orange: #f26b2a;

  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  color: var(--gf-welcome-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#gf-dashboard-welcome-modal:not([hidden]),
#gf-dashboard-welcome-modal.is-open {
  display: flex;
}

#gf-dashboard-welcome-modal[hidden] {
  display: none;
}

#gf-dashboard-welcome-modal .gf-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 14, 35, 0.62);
  backdrop-filter: blur(10px);
}

#gf-dashboard-welcome-modal .gf-dashboard-welcome-shell {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(88vh, 760px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 24px;
  background:
    radial-gradient(circle at 15% 0%, rgba(255,255,255,.95), transparent 30%),
    radial-gradient(circle at 90% 7%, rgba(124,77,255,.12), transparent 32%),
    linear-gradient(180deg, #fff 0%, #fbf8ff 56%, #fff 100%);
  box-shadow: 0 28px 90px rgba(18,14,35,.30);
}

#gf-dashboard-welcome-modal .gf-welcome-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #180f3c;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(69,44,136,.14);
}

#gf-dashboard-welcome-modal .gf-welcome-header {
  flex: 0 0 auto;
  padding: 22px 62px 14px;
  text-align: center;
}

#gf-dashboard-welcome-modal .gf-welcome-kicker {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 7px;
  border-radius: 50%;
  background: rgba(124,77,255,.08);
  font-size: 20px;
  box-shadow: 0 10px 22px rgba(124,77,255,.10);
}

#gf-dashboard-welcome-modal .gf-welcome-header h2 {
  margin: 0;
  color: var(--gf-welcome-ink);
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
}

#gf-dashboard-welcome-modal .gf-welcome-header h2 span {
  color: var(--gf-welcome-purple);
}

#gf-dashboard-welcome-modal .gf-welcome-header p {
  margin: 7px 0 0;
  color: #43415f;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
}

#gf-dashboard-welcome-modal .gf-welcome-rule {
  width: 74px;
  height: 5px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gf-welcome-purple), var(--gf-welcome-pink));
}

#gf-dashboard-welcome-modal .gf-dashboard-welcome-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 10px;
  padding: 0 28px 16px;
}

#gf-dashboard-welcome-modal .gf-welcome-panel {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: max-content;
  overflow: visible;
  border: 1px solid rgba(124,77,255,.16);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 14px 34px rgba(49,33,112,.06);
}

#gf-dashboard-welcome-modal .gf-welcome-panel--live,
#gf-dashboard-welcome-modal .gf-welcome-panel--share,
#gf-dashboard-welcome-modal .gf-welcome-panel--start {
  background:
    radial-gradient(circle at 8% 50%, rgba(124,77,255,.10), transparent 30%),
    rgba(255,255,255,.82);
}

#gf-dashboard-welcome-modal .gf-welcome-panel--warning {
  border-color: rgba(242,107,42,.18);
  background:
    radial-gradient(circle at 8% 50%, rgba(242,107,42,.12), transparent 30%),
    rgba(255,250,246,.9);
}

#gf-dashboard-welcome-modal .gf-welcome-visual {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #8f5bff, #6338dc);
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.20), 0 12px 22px rgba(124,77,255,.18);
}

#gf-dashboard-welcome-modal .gf-welcome-visual--shield {
  background: linear-gradient(145deg, #ff9a70, #f26b4a);
}

#gf-dashboard-welcome-modal .gf-welcome-visual span {
  font-size: 25px;
  line-height: 1;
}

#gf-dashboard-welcome-modal .gf-welcome-content,
#gf-dashboard-welcome-modal .gf-welcome-copy {
  min-width: 0;
}

#gf-dashboard-welcome-modal .gf-welcome-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin: 0 0 5px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .04em;
}

#gf-dashboard-welcome-modal .gf-welcome-pill--purple {
  background: rgba(124,77,255,.09);
  color: var(--gf-welcome-purple);
}

#gf-dashboard-welcome-modal .gf-welcome-pill--orange {
  background: rgba(242,107,42,.11);
  color: var(--gf-welcome-orange);
}

#gf-dashboard-welcome-modal .gf-welcome-copy h3 {
  margin: 0 0 4px;
  color: var(--gf-welcome-ink);
  font-size: 18px;
  line-height: 1.15;
  font-weight: 900;
}

#gf-dashboard-welcome-modal .gf-welcome-copy p {
  margin: 0;
  color: #3f425f;
  font-size: 13px;
  line-height: 1.42;
}

#gf-dashboard-welcome-modal .gf-welcome-copy p + p {
  margin-top: 4px;
}

#gf-dashboard-welcome-modal .gf-welcome-copy strong {
  color: var(--gf-welcome-orange);
  font-weight: 900;
}

#gf-dashboard-welcome-modal .gf-muted {
  color: #7c7a8f;
}

#gf-dashboard-welcome-modal .gf-welcome-username {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin: 0 0 6px;
  color: var(--gf-welcome-purple);
  font-size: 22px;
  line-height: 1.05;
  font-weight: 900;
}

#gf-dashboard-welcome-modal .gf-welcome-username span {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gf-welcome-purple);
  color: #fff;
  font-size: 11px;
}

#gf-dashboard-welcome-modal .gf-welcome-share-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(49,33,112,.07);
}

#gf-dashboard-welcome-modal .gf-share-url {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 9px 10px;
  color: #272542;
  font-size: 12px;
  font-weight: 700;
}

#gf-dashboard-welcome-modal .gf-dashboard-welcome-footer {
  flex: 0 0 auto;
  padding: 0 28px 18px;
}

#gf-dashboard-welcome-modal .gf-welcome-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

#gf-dashboard-welcome-modal .gf-btn {
  min-width: 0;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(124,77,255,.28);
  border-radius: 14px;
  padding: 0 12px;
  font-size: 13px;
  line-height: 1.1;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: none;
}

#gf-dashboard-welcome-modal .gf-btn-primary {
  border: 0;
  background: linear-gradient(135deg, var(--gf-welcome-purple), var(--gf-welcome-purple-deep));
  color: #fff;
  box-shadow: 0 12px 22px rgba(124,77,255,.22);
}

#gf-dashboard-welcome-modal .gf-btn-ghost,
#gf-dashboard-welcome-modal .gf-btn-secondary {
  background: #fff;
  color: #3d2e79;
}

#gf-dashboard-welcome-modal .gf-welcome-copy-btn {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

#gf-dashboard-welcome-modal .gf-welcome-secure {
  margin: 12px 0 0;
  text-align: center;
  color: #717087;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

@media (max-height: 720px) and (min-width: 721px) {
  #gf-dashboard-welcome-modal .gf-dashboard-welcome-shell {
    width: min(680px, 100%);
    max-height: 90vh;
  }

  #gf-dashboard-welcome-modal .gf-welcome-header {
    padding-top: 14px;
    padding-bottom: 10px;
  }

  #gf-dashboard-welcome-modal .gf-welcome-kicker {
    display: none;
  }

  #gf-dashboard-welcome-modal .gf-welcome-header h2 {
    font-size: 24px;
  }

  #gf-dashboard-welcome-modal .gf-welcome-header p {
    font-size: 13px;
  }

  #gf-dashboard-welcome-modal .gf-welcome-rule {
    margin-top: 9px;
  }

  #gf-dashboard-welcome-modal .gf-dashboard-welcome-body {
    gap: 8px;
    padding-bottom: 12px;
  }

  #gf-dashboard-welcome-modal .gf-welcome-panel {
    grid-template-columns: 46px minmax(0, 1fr);
    padding: 10px 14px;
  }

  #gf-dashboard-welcome-modal .gf-welcome-visual {
    width: 42px;
    height: 42px;
  }

  #gf-dashboard-welcome-modal .gf-welcome-visual span {
    font-size: 20px;
  }

  #gf-dashboard-welcome-modal .gf-welcome-pill {
    min-height: 20px;
    margin-bottom: 4px;
    padding: 0 9px;
    font-size: 10px;
  }

  #gf-dashboard-welcome-modal .gf-welcome-copy h3 {
    font-size: 16px;
  }

  #gf-dashboard-welcome-modal .gf-welcome-copy p {
    font-size: 12px;
  }

  #gf-dashboard-welcome-modal .gf-welcome-username {
    font-size: 18px;
  }

  #gf-dashboard-welcome-modal .gf-btn {
    min-height: 36px;
    font-size: 12px;
  }
}

@media (max-width: 720px) {
  #gf-dashboard-welcome-modal {
    align-items: flex-start;
    padding: 12px;
    overflow: hidden;
  }

  #gf-dashboard-welcome-modal .gf-dashboard-welcome-shell {
    width: min(100%, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    border-radius: 20px;
  }

  #gf-dashboard-welcome-modal .gf-welcome-header {
    padding: 18px 56px 12px;
  }

  #gf-dashboard-welcome-modal .gf-welcome-header h2 {
    font-size: 26px;
  }

  #gf-dashboard-welcome-modal .gf-welcome-header p {
    font-size: 13px;
  }

  #gf-dashboard-welcome-modal .gf-welcome-rule {
    margin-top: 10px;
  }

  #gf-dashboard-welcome-modal .gf-dashboard-welcome-body,
  #gf-dashboard-welcome-modal .gf-dashboard-welcome-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  #gf-dashboard-welcome-modal .gf-dashboard-welcome-body {
    gap: 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  #gf-dashboard-welcome-modal .gf-welcome-panel {
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    min-height: auto;
    padding: 16px 14px;
  }

  #gf-dashboard-welcome-modal .gf-welcome-visual {
    width: 44px;
    height: 44px;
  }

  #gf-dashboard-welcome-modal .gf-welcome-visual span {
    font-size: 21px;
  }

  #gf-dashboard-welcome-modal .gf-welcome-copy h3 {
    font-size: 17px;
    line-height: 1.2;
  }

  #gf-dashboard-welcome-modal .gf-welcome-copy p {
    font-size: 13px;
    line-height: 1.42;
  }

  #gf-dashboard-welcome-modal .gf-welcome-username {
    font-size: 19px;
    line-height: 1.1;
  }

  #gf-dashboard-welcome-modal .gf-welcome-share-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  #gf-dashboard-welcome-modal .gf-share-url {
    min-width: 0;
  }

  #gf-dashboard-welcome-modal .gf-welcome-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  #gf-dashboard-welcome-modal .gf-btn {
    width: 100%;
    min-height: 46px;
    padding: 0 10px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  #gf-dashboard-welcome-modal {
    padding: 8px;
  }

  #gf-dashboard-welcome-modal .gf-dashboard-welcome-shell {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 18px;
  }

  #gf-dashboard-welcome-modal .gf-welcome-close {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    font-size: 24px;
  }

  #gf-dashboard-welcome-modal .gf-welcome-header {
    padding: 16px 48px 10px;
  }

  #gf-dashboard-welcome-modal .gf-welcome-kicker {
    width: 30px;
    height: 30px;
    margin-bottom: 8px;
    font-size: 18px;
  }

  #gf-dashboard-welcome-modal .gf-welcome-header h2 {
    font-size: 22px;
    line-height: 1.12;
  }

  #gf-dashboard-welcome-modal .gf-welcome-header p {
    font-size: 12px;
    line-height: 1.35;
  }

  #gf-dashboard-welcome-modal .gf-dashboard-welcome-body {
    gap: 10px;
    padding: 0 12px 12px;
  }

  #gf-dashboard-welcome-modal .gf-welcome-panel {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: auto;
    padding: 14px;
  }

  #gf-dashboard-welcome-modal .gf-welcome-visual {
    width: 42px;
    height: 42px;
    justify-self: start;
  }

  #gf-dashboard-welcome-modal .gf-welcome-copy h3 {
    font-size: 16px;
    line-height: 1.2;
  }

  #gf-dashboard-welcome-modal .gf-welcome-copy p {
    font-size: 12px;
    line-height: 1.45;
  }

  #gf-dashboard-welcome-modal .gf-welcome-username {
    font-size: 18px;
    flex-wrap: wrap;
  }

  #gf-dashboard-welcome-modal .gf-welcome-share-row {
    grid-template-columns: 1fr;
    border-radius: 14px;
    margin-top: 10px;
  }

  #gf-dashboard-welcome-modal .gf-share-url {
    white-space: normal;
    word-break: break-all;
    padding: 10px;
  }

  #gf-dashboard-welcome-modal .gf-welcome-copy-btn {
    width: 100%;
  }

  #gf-dashboard-welcome-modal .gf-welcome-actions {
    grid-template-columns: 1fr;
  }

  #gf-dashboard-welcome-modal .gf-btn {
    min-height: 44px;
    font-size: 12px;
  }

  #gf-dashboard-welcome-modal .gf-dashboard-welcome-footer {
    padding: 0 12px 14px;
  }
}
