/* Global color system aligned with campaign palette */
:root {
  --color-primary: #667eea;
  --color-secondary: #f1f5f9;
  --color-accent: #764ba2;
  --color-black: #222222;
  --color-white: #ffffff;
  --color-muted: #4b5563;
  --color-surface: #ffffff;
  --color-disabled-bg: #e5e7eb;
  --color-disabled-text: #9ca3af;

  --color-heading: var(--color-black);
  --color-heading-secondary: var(--color-heading);
  --color-heading-tertiary: var(--color-heading);
  --color-body-text: var(--color-muted);
  --color-body: var(--color-body-text);
  --color-button-primary-bg: var(--color-accent);
  --color-button-primary-text: var(--color-white);
  --color-button-secondary-bg: var(--color-secondary);
  --color-button-secondary-text: var(--color-black);
  --color-button-disabled-bg: var(--color-disabled-bg);
  --color-button-disabled-text: var(--color-disabled-text);
}

h1 {
  color: var(--color-white);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

p {
  color: var(--color-white);    font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

button,
.btn {
  font-family: inherit;
  font-size: 1rem;
  margin: 0 !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  text-align: center;
  width: 100%;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-primary img{
  color: var(--color-white);
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-accent);
}

.btn-disabled,
.btn:disabled {
  background: var(--color-button-disabled-bg, var(--color-disabled-bg, #e5e7eb));
  color: var(--color-button-disabled-text, var(--color-disabled-text, #9ca3af));
  cursor: not-allowed;
  opacity: 0.85;
  box-shadow: none;
}

.btn:not(.btn-disabled):not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.btn:not(.btn-disabled):not(:disabled):active {
  transform: translateY(0);
}

.action-button-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.action-button-group .btn {
  width: 100%;
}

.action-button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.action-button-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.action-button-icon svg {
  width: 100%;
  height: 100%;
}

.page-global-footer {
  margin-top: 32px;
  padding: 16px 12px 32px;
  text-align: center;
  color: rgba(255, 255, 255, 0.33);
  line-height: 1.5;
}

.page-global-footer p {
  font-size: x-small !important;
  margin: 0;
}

.page-global-footer-legal {
  margin: 0;
  color: inherit;
}

.page-global-footer-copy {
  display: block;
  margin-top: 6px;
  color: inherit;
}

.page-global-footer-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  cursor: pointer;
    font-size: x-small !important;
color: rgba(255, 255, 255, 0.33)
}

.page-global-footer-link:hover,
.page-global-footer-link:focus-visible {
  color: var(--color-accent, #6366f1);
}

.text-small {
  font-size: 0.75rem;
}

.text-muted {
  color: var(--color-muted, rgba(255, 255, 255, 0.65));
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  border-radius: 16px;
  padding: 64px 56px 16px 24px;
  aspect-ratio: 5 / 4;
  background-color: var(--color-white);
  color: var(--color-accent);
  border: none;
  font-weight: 600;
  font-size: small;
  width: 100%;
  line-height: 1.2;
}

.card::before,
.card::after {
  content: none;
}

/* Global modal system */
.sc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 32px 16px;
  z-index: 10000;
  backdrop-filter: blur(2px);
}

.sc-modal {
  background: var(--color-white, #ffffff);
  color: var(--color-black, #111827);
  border-radius: 24px;
  width: min(540px, 100%);
  height: 100%;
  box-sizing: border-box;
  padding: 64px 40px 56px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.25);
}

.sc-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.08);
  color: var(--color-black, #111827);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sc-modal-close:hover {
  background: rgba(15, 23, 42, 0.12);
  transform: scale(1.05);
}

.sc-modal-content {
  flex: 1 1 auto;
  overflow-y: auto;
  margin-top: 0;
  padding: 12px 8px 32px 0;
  margin-right: -8px;
  scroll-behavior: smooth;
  color: var(--color-black, #111827);
}

.sc-modal-content::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.sc-modal-content {
  scrollbar-width: none;
}

.sc-modal-content h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--color-black, #111827);
}

.sc-modal-content p {
  color: var(--color-black, #111827);
  font-size: 1rem;
  line-height: 1.6;
}

.sc-modal-content li {
  color: var(--color-black, #111827);
}

body.sc-modal-open {
  overflow: hidden;
}

/* Main container layout */
#root,
body,
html {
  min-height: 100%;
}

#root,
body {
  display: flex;
  flex-direction: column;
}

#root {
  flex: 1 1 auto;
}

#pageContainer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  flex: 1 1 auto;
  min-height: 100vh;
  text-align: center;
  margin: 0;
  padding: 0;
}

body.page-loading {
  overflow: hidden;
}

.page-transition-loader {
  position: fixed;
  inset: 0;
  background: var(--color-primary, #667eea);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  z-index: 11000;
  visibility: hidden;
}

.page-transition-loader.is-visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.page-transition-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--color-white, #ffffff);
  text-align: center;
}

.page-transition-content p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.page-transition-spinner {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--color-white, #ffffff);
  animation: page-transition-spin 0.8s linear infinite;
}

@keyframes page-transition-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

body.page-loading #pageContainer {
  visibility: hidden;
}
