/* ==========================================================================
   IronPhantom Setup Wizard - Modern WordPress Style
   ========================================================================== */

:root {
  /* WordPress Admin Colors */
  --ip-text: #1d2327;
  --ip-text-soft: #3c434a;
  --ip-muted: #646970;
  --ip-border: #dcdcde;
  --ip-border-soft: #e5e7eb;
  --ip-bg: #f0f0f1;
  --ip-white: #ffffff;

  /* IronPhantom Brand */
  --ip-red: #d63638;
  --ip-red-hover: #b32d2e;
  --ip-red-dark: #9f1f24;
  --ip-red-soft: #fff5f5;

  /* WordPress Blue */
  --ip-blue: #2271b1;
  --ip-blue-soft: #f0f6fc;

  /* Status */
  --ip-success: #00a32a;
  --ip-success-bg: #edfaef;
  --ip-warning: #dba617;
  --ip-warning-bg: #fcf9e8;
  --ip-error: #d63638;
  --ip-error-bg: #fcf0f1;
  --ip-info: #72aee6;
  --ip-info-bg: #f0f6fc;

  /* UI */
  --ip-radius-lg: 16px;
  --ip-radius-md: 12px;
  --ip-radius-sm: 8px;
  --ip-shadow-main: 0 14px 36px rgba(0, 0, 0, 0.08);
  --ip-shadow-card: 0 8px 22px rgba(0, 0, 0, 0.045);
  --ip-shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.075);
}

/* ==========================================================================
   Professional Font System
   ========================================================================== */

.ironphantom_wp_wizard,
.ironphantom_wp_wizard button,
.ironphantom_wp_wizard input,
.ironphantom_wp_wizard textarea,
.ironphantom_wp_wizard select {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen-Sans,
    Ubuntu,
    Cantarell,
    "Helvetica Neue",
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.ironphantom_wp_title,
.ironphantom_wp_subtitle,
.ironphantom_wp_brand,
.ironphantom_wp_choice_text strong,
.ironphantom_wp_notice strong {
  letter-spacing: -0.35px;
}

.ironphantom_wp_intro,
.ironphantom_wp_choice_text small,
.ironphantom_wp_notice p,
.ironphantom_wp_privacy {
  letter-spacing: -0.05px;
}

/* ==========================================================================
   Base Page
   ========================================================================== */

.ironphantom_on_activation_modal_overlay {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 32px);
  padding: 32px 20px 42px;
  box-sizing: border-box;
  z-index: 1;
  background: var(--ip-bg);
}

/* ==========================================================================
   Main Wizard Container
   ========================================================================== */

.ironphantom_wp_wizard {
  max-width: 1080px;
  margin: 24px auto;
  background: var(--ip-white);
  border: 1px solid var(--ip-border);
  border-radius: var(--ip-radius-lg);
  box-shadow: var(--ip-shadow-main);
  overflow: hidden;
}

/* ==========================================================================
   Header
   ========================================================================== */

.ironphantom_wp_wizard_header {
  min-height: 70px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--ip-border-soft);
  background: #ffffff;
}

.ironphantom_wp_brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ip-text);
  font-size: 18px;
  font-weight: 800;
}

.ironphantom_wp_brand strong {
  font-weight: 800;
}

/* Logo IP - replaces default emoji look */
.ironphantom_wp_logo,
.ironphantom_wp_notice_icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ip-red) 0%, var(--ip-red-dark) 100%);
  border: 1px solid rgba(214, 54, 56, 0.35);
  border-radius: 12px;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.4px;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(214, 54, 56, 0.20);
  flex-shrink: 0;
}

.ironphantom_wp_plan_badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #f0faf3;
  color: #24783d;
  border: 1px solid #cdebd3;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  white-space: nowrap;
}

.ironphantom_wp_plan_badge::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--ip-success);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(0, 163, 42, 0.12);
}

/* ==========================================================================
   Body
   ========================================================================== */

.ironphantom_wp_wizard_body {
  padding: 38px 40px 0;
  background: #ffffff;
}

.ironphantom_wp_title {
  max-width: 760px;
  margin: 0 auto 12px;
  color: #111827;
  font-size: 32px;
  line-height: 1.18;
  font-weight: 800;
  text-align: center;
}

.ironphantom_wp_title::after {
  content: "";
  display: block;
  width: 74px;
  height: 3px;
  margin: 16px auto 0;
  border-radius: 999px;
  background: var(--ip-red);
}

.ironphantom_wp_intro {
  max-width: 760px;
  margin: 0 auto 32px;
  color: var(--ip-text-soft);
  font-size: 15px;
  line-height: 1.65;
  text-align: center;
}

/* ==========================================================================
   Choice Wrapper
   ========================================================================== */

.ironphantom_wp_choice_wrapper {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--ip-border-soft);
  border-radius: var(--ip-radius-lg);
  padding: 28px 32px 32px;
  margin-bottom: 26px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.035);
}

.ironphantom_wp_subtitle {
  text-align: center;
  margin: 0 0 24px;
  color: var(--ip-text);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 800;
}

.ironphantom_wp_choices {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 76px;
  align-items: stretch;
}

.ironphantom_wp_choices::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 50%;
  width: 1px;
  background: var(--ip-border-soft);
  transform: translateX(-50%);
}

.ironphantom_wp_choices::after {
  content: "OR";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #ffffff;
  color: var(--ip-muted);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.45px;
  border: 1px solid var(--ip-border-soft);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.055);
}

/* ==========================================================================
   Choice Cards
   ========================================================================== */

.ironphantom_wp_choice_card {
  min-height: 128px;
  width: 100%;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #ffffff;
  border: 1px solid var(--ip-border-soft);
  border-radius: var(--ip-radius-md);
  cursor: pointer;
  text-align: left;
  box-shadow: var(--ip-shadow-card);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.ironphantom_wp_choice_card:hover,
.ironphantom_wp_choice_card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--ip-red);
  background: #ffffff;
  box-shadow: var(--ip-shadow-hover);
  outline: none;
}

.ironphantom_wp_choice_card:active {
  transform: translateY(0);
}

.ironphantom_wp_choice_left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.ironphantom_wp_choice_icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: var(--ip-red);
  border: 1px solid var(--ip-border-soft);
  border-radius: 14px;
  font-size: 25px;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.045);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.ironphantom_wp_choice_card:hover .ironphantom_wp_choice_icon {
  border-color: rgba(214, 54, 56, 0.35);
  box-shadow: 0 8px 20px rgba(214, 54, 56, 0.10);
  transform: scale(1.03);
}

.ironphantom_wp_choice_text {
  min-width: 0;
}

.ironphantom_wp_choice_text strong {
  display: block;
  color: var(--ip-text);
  font-size: 16px;
  line-height: 1.3;
  font-weight: 800;
  margin-bottom: 6px;
}

.ironphantom_wp_choice_text small {
  display: block;
  color: var(--ip-muted);
  font-size: 13px;
  line-height: 1.45;
  max-width: 330px;
}

.ironphantom_wp_choice_arrow {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--ip-muted);
  background: #f6f7f7;
  border: 1px solid var(--ip-border-soft);
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
  transition:
    transform 0.18s ease,
    color 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease;
}

.ironphantom_wp_choice_card:hover .ironphantom_wp_choice_arrow {
  transform: translateX(4px);
  color: #ffffff;
  background: var(--ip-red);
  border-color: var(--ip-red);
}

/* ==========================================================================
   Manual API Section
   ========================================================================== */

.ironphantom_wp_api_section {
  margin: 26px 0;
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--ip-border-soft);
  border-radius: var(--ip-radius-md);
  box-shadow: var(--ip-shadow-card);
}

.ironphantom_wp_api_section label {
  display: block;
  margin-bottom: 9px;
  color: var(--ip-text);
  font-weight: 700;
  font-size: 14px;
}

.ironphantom_wp_api_section input {
  width: 100%;
  max-width: 620px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #8c8f94;
  border-radius: var(--ip-radius-sm);
  background: #ffffff;
  color: #2c3338;
  font-size: 14px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.ironphantom_wp_api_section input:focus {
  border-color: var(--ip-blue);
  box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.16);
  outline: 2px solid transparent;
}

/* ==========================================================================
   Primary Button
   ========================================================================== */

.ironphantom_wp_primary_btn {
  margin-top: 18px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ip-red);
  border: 1px solid var(--ip-red);
  color: #ffffff;
  border-radius: var(--ip-radius-sm);
  padding: 10px 22px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(214, 54, 56, 0.18);
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.ironphantom_wp_primary_btn:hover,
.ironphantom_wp_primary_btn:focus-visible {
  background: var(--ip-red-hover);
  border-color: var(--ip-red-hover);
  box-shadow: 0 8px 20px rgba(179, 45, 46, 0.22);
  transform: translateY(-1px);
  outline: none;
}

.ironphantom_wp_primary_btn:active {
  transform: translateY(0);
}

/* ==========================================================================
   Notice Box
   ========================================================================== */

.ironphantom_wp_notice {
  margin: 32px -40px 0;
  padding: 24px 40px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #f6f7f7;
  border-top: 1px solid var(--ip-border-soft);
}

.ironphantom_wp_notice_icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  font-size: 12px;
}

.ironphantom_wp_notice_content {
  max-width: 760px;
}

.ironphantom_wp_notice strong {
  display: block;
  color: var(--ip-text);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 800;
  margin-bottom: 4px;
}

.ironphantom_wp_notice p {
  margin: 0;
  color: var(--ip-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ==========================================================================
   Privacy
   ========================================================================== */

.ironphantom_wp_privacy {
  margin-top: 18px;
  color: var(--ip-muted);
  font-size: 13px;
  line-height: 1.5;
}

.ironphantom_wp_privacy a {
  color: var(--ip-red);
  text-decoration: none;
  font-weight: 700;
}

.ironphantom_wp_privacy a:hover,
.ironphantom_wp_privacy a:focus-visible {
  color: var(--ip-red-hover);
  text-decoration: underline;
  outline: none;
}

/* ==========================================================================
   Footer Actions
   ========================================================================== */

.ironphantom_wp_footer_actions {
  margin: 24px 0 28px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ironphantom_wp_skip_btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--ip-red);
  color: var(--ip-red);
  border-radius: var(--ip-radius-sm);
  cursor: pointer;
  font-size: 13px;
  text-decoration: none;
  font-weight: 700;
  padding: 9px 18px;
  box-shadow: 0 4px 12px rgba(214, 54, 56, 0.08);
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.ironphantom_wp_skip_btn:hover,
.ironphantom_wp_skip_btn:focus-visible {
  background: var(--ip-red);
  border-color: var(--ip-red);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 7px 18px rgba(214, 54, 56, 0.18);
  transform: translateY(-1px);
  outline: none;
}

.ironphantom_wp_skip_btn:active {
  transform: translateY(0);
}

.ironphantom_wp_exit_btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ip-red);
  border: 1px solid var(--ip-red);
  color: #ffffff;
  border-radius: var(--ip-radius-sm);
  cursor: pointer;
  font-size: 13px;
  text-decoration: none;
  font-weight: 700;
  padding: 9px 18px;
  box-shadow: 0 4px 12px rgba(214, 54, 56, 0.12);
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.ironphantom_wp_exit_btn:hover,
.ironphantom_wp_exit_btn:focus-visible {
  background: var(--ip-red-hover);
  border-color: var(--ip-red-hover);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 7px 18px rgba(179, 45, 46, 0.20);
  transform: translateY(-1px);
  outline: none;
}

.ironphantom_wp_exit_btn:active {
  transform: translateY(0);
}

/* ==========================================================================
   Activation Messages
   ========================================================================== */

.ironphantom_activation_message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 20px 0 26px;
  padding: 14px 16px;
  border-radius: var(--ip-radius-sm);
  border: 1px solid rgba(114, 174, 230, 0.35);
  border-left: 4px solid var(--ip-info);
  background: var(--ip-info-bg);
}

.ironphantom_activation_message.is-success {
  border-color: rgba(0, 163, 42, 0.25);
  border-left-color: var(--ip-success);
  background: var(--ip-success-bg);
}

.ironphantom_activation_message.is-error {
  border-color: rgba(214, 54, 56, 0.25);
  border-left-color: var(--ip-error);
  background: var(--ip-error-bg);
}

.ironphantom_activation_message.is-warning {
  border-color: rgba(219, 166, 23, 0.28);
  border-left-color: var(--ip-warning);
  background: var(--ip-warning-bg);
}

.ironphantom_activation_message_icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid var(--ip-border-soft);
  flex-shrink: 0;
}

.ironphantom_activation_message_text strong {
  display: block;
  color: var(--ip-text);
  margin-bottom: 4px;
  font-weight: 700;
}

.ironphantom_activation_message_text span {
  display: block;
  color: var(--ip-muted);
  font-size: 13px;
  line-height: 1.45;
}

/* ==========================================================================
   Loader
   ========================================================================== */

.ironphantom_on_activation_loader_overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.86);
  display: none;
  z-index: 999999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  backdrop-filter: blur(4px);
}

.ironphantom_on_activation_spinner {
  width: 52px;
  height: 52px;
  border: 4px solid var(--ip-border);
  border-top: 4px solid var(--ip-red);
  border-radius: 50%;
  animation: ironphantom_spin 0.8s linear infinite;
}

@keyframes ironphantom_spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.ironphantom_on_activation_loader_overlay p {
  margin-top: 16px;
  color: var(--ip-text);
  font-weight: 700;
  font-size: 15px;
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .ironphantom_wp_choice_card,
  .ironphantom_wp_choice_icon,
  .ironphantom_wp_choice_arrow,
  .ironphantom_wp_primary_btn,
  .ironphantom_wp_skip_btn,
  .ironphantom_wp_exit_btn,
  .ironphantom_on_activation_spinner {
    animation: none;
    transition: none;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .ironphantom_wp_wizard {
    max-width: 100%;
  }

  .ironphantom_wp_choices {
    gap: 58px;
  }

  .ironphantom_wp_choice_card {
    padding: 22px;
  }

  .ironphantom_wp_choice_icon {
    width: 54px;
    height: 54px;
    font-size: 23px;
  }
}

@media (max-width: 782px) {
  .ironphantom_on_activation_modal_overlay {
    min-height: auto;
    padding: 16px 12px 28px;
  }

  .ironphantom_wp_wizard {
    margin: 8px auto;
    border-radius: 14px;
  }

  .ironphantom_wp_wizard_header {
    min-height: auto;
    padding: 20px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .ironphantom_wp_brand {
    font-size: 18px;
  }

  .ironphantom_wp_plan_badge {
    white-space: normal;
  }

  .ironphantom_wp_wizard_body {
    padding: 28px 18px 0;
  }

  .ironphantom_wp_title {
    font-size: 26px;
    line-height: 1.22;
    text-align: left;
  }

  .ironphantom_wp_title::after {
    margin-left: 0;
  }

  .ironphantom_wp_intro {
    text-align: left;
    font-size: 14px;
    margin-bottom: 24px;
  }

  .ironphantom_wp_choice_wrapper {
    padding: 22px 16px;
    border-radius: 14px;
  }

  .ironphantom_wp_subtitle {
    text-align: left;
    font-size: 19px;
    margin-bottom: 18px;
  }

  .ironphantom_wp_choices {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ironphantom_wp_choices::before,
  .ironphantom_wp_choices::after {
    display: none;
  }

  .ironphantom_wp_choice_card {
    min-height: auto;
    padding: 18px;
  }

  .ironphantom_wp_choice_left {
    gap: 15px;
  }

  .ironphantom_wp_choice_icon {
    width: 50px;
    height: 50px;
    font-size: 22px;
    border-radius: 12px;
  }

  .ironphantom_wp_logo {
    width: 40px;
    height: 40px;
    font-size: 12px;
    border-radius: 11px;
  }

  .ironphantom_wp_choice_text strong {
    font-size: 15.5px;
  }

  .ironphantom_wp_choice_text small {
    font-size: 13px;
  }

  .ironphantom_wp_choice_arrow {
    width: 32px;
    height: 32px;
    font-size: 23px;
  }

  .ironphantom_wp_api_section {
    padding: 20px 16px;
  }

  .ironphantom_wp_notice {
    margin-left: -18px;
    margin-right: -18px;
    padding: 22px 18px;
  }

  .ironphantom_wp_footer_actions {
    margin: 20px 0 24px;
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .ironphantom_wp_choice_card {
    align-items: flex-start;
  }

  .ironphantom_wp_choice_left {
    align-items: flex-start;
  }

  .ironphantom_wp_choice_arrow {
    display: none;
  }

  .ironphantom_wp_notice {
    flex-direction: column;
  }
}
