/* Inline Styles converted to classes */
.agreement-text-wrap {
  white-space: pre-wrap;
  overflow-wrap: break-word; /* fetched document text can contain unbroken long strings/URLs */
}
.agreement-empty-text {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* color palette from <https://github.com/vuejs/theme> */
:root {
  --vt-c-white: #ffffff;
  --vt-c-white-soft: #f8f8f8;
  --vt-c-white-mute: #f2f2f2;

  --vt-c-black: #181818;
  --vt-c-black-soft: #222222;
  --vt-c-black-mute: #282828;

  --vt-c-indigo: #2c3e50;

  --vt-c-divider-light-1: rgba(60, 60, 60, 0.29);
  --vt-c-divider-light-2: rgba(60, 60, 60, 0.12);
  --vt-c-divider-dark-1: rgba(84, 84, 84, 0.65);
  --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48);

  --vt-c-text-light-1: var(--vt-c-indigo);
  --vt-c-text-light-2: rgba(60, 60, 60, 0.66);
  --vt-c-text-dark-1: var(--vt-c-white);
  --vt-c-text-dark-2: rgba(235, 235, 235, 0.64);
}

/* semantic color variables for this project */
:root {
  --color-background: var(--vt-c-white);
  --color-background-soft: var(--vt-c-white-soft);
  --color-background-mute: var(--vt-c-white-mute);

  --color-border: var(--vt-c-divider-light-2);
  --color-border-hover: var(--vt-c-divider-light-1);

  --color-heading: var(--vt-c-text-light-1);
  --color-text: var(--vt-c-text-light-1);

  --section-gap: 160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-background: var(--vt-c-black);
    --color-background-soft: var(--vt-c-black-soft);
    --color-background-mute: var(--vt-c-black-mute);

    --color-border: var(--vt-c-divider-dark-2);
    --color-border-hover: var(--vt-c-divider-dark-1);

    --color-heading: var(--vt-c-text-dark-1);
    --color-text: var(--vt-c-text-dark-2);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  font-weight: normal;
}

body {
  min-height: 100vh;
  color: var(--color-text);
  background: var(--color-background);
  transition:
    color 0.5s,
    background-color 0.5s;
  line-height: 1.6;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Fira Sans",
    "Droid Sans",
    "Helvetica Neue",
    sans-serif;
  font-size: 15px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Theme color settings */
:root {
  --main-color: #303cd0;
}

#app {
  margin: 0 auto;
  padding: 2rem;
  font-weight: normal;
}

a,
.green {
  text-decoration: none;
  color: hsla(160, 100%, 37%, 1);
  transition: 0.4s;
  padding: 3px;
}

/* ========================================================
   App.vue Styles
   ======================================================== */
/* Global reset to remove any default margins/paddings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow-x: hidden; /* safety net: never let a stray wide element force horizontal scroll/zoom on mobile */
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  height: 100%;
  overflow-x: hidden; /* safety net: never let a stray wide element force horizontal scroll/zoom on mobile */
}

#app {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
}

.app-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.env-indicator {
  position: fixed;
  top: 10px;
  right: 10px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  z-index: 10000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Localhost - White Tag */
.env-indicator.local {
  background-color: white;
  color: #333;
  border: 1px solid #ddd;
}

/* 54... - Orange Tag (Dev) */
.env-indicator.dev {
  background-color: #ff9800;
  color: white;
}

/* 13... - Green Tag (Test) */
.env-indicator.test {
  background-color: #4caf50;
  color: white;
}

/* ========================================================
   landingpage.vue Styles
   ======================================================== */
/* --- Layout and Container Styles --- */
.page-container.landing-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 1rem 0.5rem 3rem 0.5rem;
  background-color: #060b27; /* Fallback matching bottom of the bg image */
  background-image: var(--bg-top-url);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
}

@media screen and (min-width: 448px) {
  .page-container.landing-page {
    background-size: 448px auto;
  }
}

.img-banner {
  width: 90%;
  max-width: 403px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* --- Registration Form Card Overlaid on Background --- */
.form-card {
  width: 90%;
  max-width: 403px;
  margin: 0.5rem auto;
  aspect-ratio: 750 / 818;
  background-image: var(--bg-card-url);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
  display: flex;
  flex-direction: column;
}

.form-card-top-spacer {
  height: 52%;
  width: 100%;
}

.registration-form {
  height: 38%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 1.8rem;
}

.form-card-bottom-spacer {
  height: 10%;
  width: 100%;
}

.input-group {
  width: 85%;
  margin: 0 auto;
}

.input-field-wrapper {
  position: relative;
  width: 100%;
}

.prepend-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  display: flex;
  align-items: center;
}

.icon {
  height: 1.25rem;
  width: 1.25rem;
}

.form-input {
  width: 100%;
  height: 38px;
  padding: 0 2.5rem;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-size: 16px; /* must stay >= 16px to prevent iOS Safari auto-zoom on focus */
  background-color: #ffffff;
  color: #333;
  transition:
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}

.form-input:focus {
  outline: none;
  border-color: #03e8fc;
  box-shadow: 0 0 0 2px rgba(3, 232, 252, 0.2);
}

.form-input::placeholder {
  color: #bbb;
}
/* --- Hidden Debug Triggers --- */
.debug-trigger-2 {
  position: absolute;
  top: 15%;
  left: 42.5%;
  width: 15%;
  height: 25%;
  z-index: 20;
}

.debug-ip-box {
  background: rgba(0, 0, 0, 0.25);
  color: #00f2fe;
  font-size: 0.7rem;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px dashed rgba(0, 242, 254, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 90%;
  margin: 0.5rem auto 1rem auto;
  gap: 4px;
  word-break: break-all;
}

/* --- Checkbox Styles --- */
.agreement-checkbox-group {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 7.5%;
  box-sizing: border-box;
  margin: 8px auto 0 auto;
}

.agreement-checkbox {
  height: 0.9rem;
  width: 0.9rem;
  accent-color: #1e5ef6;
  cursor: pointer;
}

.agreement-label {
  margin-left: 0.4rem;
  font-size: 0.7rem;
  color: #666;
  text-align: left;
  line-height: 1.3;
}

.agreement-link {
  color: #1e5ef6;
  font-weight: 500;
  text-decoration: none;
}

.agreement-link:hover {
  text-decoration: underline;
}

/* --- Submit Button --- */
.landing-page .submit-button {
  width: 85%;
  margin: 0 auto;
  height: 44px;
  letter-spacing: 0.15rem;
  background-image: linear-gradient(90deg, #5398ff 0%, #1e5ef6 100%);
  color: white;
  font-size: 1.05rem;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(30, 94, 246, 0.3);
  transition:
    transform 0.1s ease,
    box-shadow 0.15s ease;
}

.landing-page .submit-button:active {
  transform: scale(0.98);
}

/* --- Feature Image --- */
.feature-container {
  width: 80%;
  max-width: 358px;
  margin: 25px auto 0.5rem auto;
  padding: 0;
}

.img-feature {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Dialog Styles (Original for Error/Success Messages) --- */
.dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.65);
  transition: opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}

.dialog-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.dialog-content {
  background-color: #11264e;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  max-width: 22rem;
  width: 90%;
  text-align: center;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dialog-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.dialog-message {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
  overflow-wrap: break-word; /* dynamic content (phone numbers, API error text) must never force horizontal overflow */
}

.dialog-confirm-btn {
  padding: 0.6rem 2rem;
  background-image: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #fff;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 242, 254, 0.3);
}

.error-text {
  color: #ff4a4a;
}

.success-text {
  color: #00f5d4;
}

/* --- Agreement Pop-out Specific Styles --- */
.agreement-content {
  max-width: 32rem;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background-color: #060b27;
}

.agreement-title {
  color: white;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.agreement-text-area {
  flex-grow: 1;
  overflow-y: auto;
  text-align: left;
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  padding: 0.9rem;
  border-radius: 0.5rem;
  background: #11264e;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.agreement-text-area::-webkit-scrollbar {
  width: 6px;
}

.agreement-text-area::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.agreement-text-area::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  transition: background 0.2s ease;
}

.agreement-text-area::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.agreement-text-area {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05);
}

.agreement-text-area p {
  margin-bottom: 0.5rem;
}

.agreement-close-btn {
  margin-top: auto;
  background-image: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  padding: 0.8rem;
  border-radius: 0.5rem;
  color: white;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

/* --- Floating Support Container with Label --- */
.floating-support-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  z-index: 999;
}

.floating-support-btn {
  width: 60px;
  height: auto;
  background: transparent;
  border: none;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
  transition: transform 0.2s ease;
}

.floating-support-container:hover .floating-support-btn {
  transform: scale(1.1);
}

.support-label {
  color: white;
  font-size: 11px;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* --- App Environment Masks --- */
.isAttention-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 1.5rem;
}

.mask-instruction {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.6;
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  padding: 16px 24px;
  border-radius: 12px;
  position: relative;
  margin-top: 60px;
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  animation: float-pulse 2.5s ease-in-out infinite;
}

.mask-instruction::before {
  content: "";
  width: 45px;
  height: 45px;
  position: absolute;
  top: -55px;
  right: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300f2fe' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  animation: bounce-arrow 1.5s ease-in-out infinite;
}

@keyframes float-pulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1.02);
  }
}

@keyframes bounce-arrow {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(6px, -6px);
  }
}

/* ========================================================
   support.vue Styles
   ======================================================== */
.page-container.support-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 1rem 0.5rem 3rem 0.5rem; /* bottom padding matched to landing page */
  background-color: #060b27;
  background-image: var(--bg-top-url);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
  z-index: 0;
}

@media screen and (min-width: 448px) {
  .page-container.support-page {
    background-size: 448px auto;
  }
}

.header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 44px;
  width: 95%;
  max-width: 425px;
  z-index: 10;
  color: white !important;
}
.back-icon,
.header .back-icon {
  position: absolute !important;
  left: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 24px !important;
  width: 24px !important;
  height: 24px !important;
  cursor: pointer !important;
  color: white !important;
  z-index: 999 !important;
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.back-icon svg,
.header .back-icon svg {
  width: 24px !important;
  height: 24px !important;
  color: white !important;
}

.back-icon:hover,
.header .back-icon:hover {
  transform: translateY(-50%) scale(1.1) !important;
  color: #1e5ef6 !important;
}

.header-title {
  font-size: 28px; /* decreased by 10% */
  font-weight: 600;
  color: white !important;
}

.hero {
  margin-top: 20px;
  z-index: 10;
  width: 95%;
  max-width: 425px;
  color: white !important;
}

.hero-hello {
  font-size: 38px;
  margin: 0;
  font-weight: bold;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtext {
  font-size: 16px;
  margin-top: 4px;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.main-card {
  margin-top: 20px;
  margin-bottom: 20px;
  background: rgba(15, 23, 78, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(0, 242, 254, 0.4);
  border-radius: 20px;
  padding: 20px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 8px 32px rgba(0, 242, 254, 0.15),
    0 0 16px rgba(0, 242, 254, 0.1);
  width: 95%;
  max-width: 425px;
  color: white !important;
}

.card-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 15px;
  font-weight: 600;
}

.field-group {
  width: 100%;
  margin: 15px 0;
}

.field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 6px;
}

.input-field-wrapper {
  position: relative;
  width: 100%;
}

.prepend-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  display: flex;
  align-items: center;
}

.icon {
  height: 1.25rem;
  width: 1.25rem;
}

.form-input {
  width: 100%;
  height: 38px;
  padding: 0 2.5rem;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-size: 16px; /* must stay >= 16px to prevent iOS Safari auto-zoom on focus */
  background-color: #ffffff;
  color: #333;
  transition:
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}

.form-input:focus {
  outline: none;
  border-color: #03e8fc;
  box-shadow: 0 0 0 2px rgba(3, 232, 252, 0.2);
}

.form-input::placeholder {
  color: #bbb;
}

.form-item {
  width: 100%;
  margin: 0 0 20px 0;
}

/* Custom styles for the input as it appears in the screenshot */
.el-textarea__inner {
  background-color: #fff;
  border-radius: 0.5rem;
  padding: 15px;
  color: #333;
  font-size: 16px; /* must stay >= 16px to prevent iOS Safari auto-zoom on focus */
  border: 1px solid #ddd;
  resize: none;
  transition:
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}

.el-textarea__inner:focus {
  outline: none;
  border-color: #03e8fc;
  box-shadow: 0 0 0 2px rgba(3, 232, 252, 0.2);
}

.el-textarea__inner::placeholder {
  color: #bbb;
}

/* --- Upload Boxes --- */
.upload-row {
  width: 100%;
  margin: 0 0 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.upload-box {
  position: relative;
  width: 90px;
  height: 90px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px dashed rgba(0, 242, 254, 0.4);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  gap: 4px;
  overflow: hidden;
  transition:
    border-color 0.2s,
    background-color 0.2s;
}

.upload-box:hover {
  border-color: #1e5ef6;
  background-color: rgba(30, 94, 246, 0.05);
}

.hidden-input {
  display: none;
}

.upload-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.upload-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.upload-filename {
  font-size: 10px;
  color: #fff;
  text-align: center;
  padding: 0 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.remove-btn {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.upload-error {
  width: 100%;
  margin: -8px 0 10px 0;
  font-size: 12px;
  color: #ff6b6b;
}

.card-info {
  margin-bottom: 30px;
}

.info-title {
  font-size: 20px;
  margin: 0 0 5px 0;
  font-weight: 600;
}

.info-text {
  font-size: 14px;
  opacity: 0.8;
  margin: 0;
}

.submit-btn {
  width: 100%;
  margin: 0;
  height: 44px;
  letter-spacing: 0.15rem;
  background-image: linear-gradient(90deg, #5398ff 0%, #1e5ef6 100%);
  color: white;
  font-size: 1.05rem;
  font-weight: bold;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(30, 94, 246, 0.3);
  transition:
    transform 0.1s ease,
    box-shadow 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.submit-btn:hover,
.submit-btn:focus {
  background-image: linear-gradient(90deg, #5398ff 0%, #1e5ef6 100%);
  opacity: 0.95;
  color: #fff;
}

.submit-btn:active {
  transform: scale(0.98);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.help-link-container {
  text-align: center;
  margin-top: 15px;
}

.help-link-container span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}

.help-link-container span:hover {
  color: #fff;
}

.el-input__count {
  background: transparent !important;
  color: rgba(0, 0, 0, 0.4) !important;
  bottom: 8px !important;
  right: 12px !important;
}

/* --- Dialog Styles --- */
.dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.65);
  transition: opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}

.dialog-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.dialog-content {
  background-color: #11264e;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  max-width: 22rem;
  width: 90%;
  text-align: center;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}

.dialog-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.dialog-message {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
  overflow-wrap: break-word; /* dynamic content (phone numbers, API error text) must never force horizontal overflow */
}

.dialog-confirm-btn {
  padding: 0.6rem 2rem;
  background-image: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #fff;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 242, 254, 0.3);
  transition: transform 0.2s;
}

.dialog-confirm-btn:hover {
  transform: scale(1.05);
}

.error-text {
  color: #ff4a4a;
}

.success-text {
  color: #00f5d4;
}

/* --- Animated Background Circles --- */
.bg-circles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: float 15s infinite ease-in-out;
}

.circle-1 {
  width: 250px;
  height: 250px;
  top: -60px;
  right: -50px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.15) 0%,
    transparent 70%
  );
  animation-delay: 0s;
}

.circle-2 {
  width: 450px;
  height: 450px;
  top: -120px;
  right: -100px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation-delay: -5s;
}

.circle-3 {
  width: 650px;
  height: 650px;
  top: -200px;
  right: -150px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 70%
  );
  animation-delay: -10s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(30px, 50px) rotate(5deg);
  }
  66% {
    transform: translate(-20px, 20px) rotate(-5deg);
  }
}

/* ========================================================
   tutorial.vue Styles
   ======================================================== */
/* --- Layout and Container Styles --- */
.page-container.tutorial-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 1rem 0.5rem 8px 0.5rem;
  background-color: #060b27;
  background-image: var(--bg-top-url);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
}

@media screen and (min-width: 448px) {
  .page-container.tutorial-page {
    background-size: 448px auto;
  }
}

.img-logo {
  width: 100%;
  max-width: 382px;
}

/* --- Container for the Image and Overlays --- */
.image-container {
  position: relative;
  /* Essential for positioning child overlays */
  width: 100%;
  /* Or a fixed width, e.g., 800px */
  max-width: 382px;
  /* Max width for responsiveness */
  margin: 1rem auto;
  /* Center the container */
  overflow: hidden;
  /* Ensures nothing spills out */
}

.image-container img {
  width: 100%;
  /* Makes the image responsive and fill the container */
  display: block;
  /* Removes extra space below image */
  height: auto;
  /* Maintains aspect ratio */
}

.img-card {
  width: 100%;
  max-width: 382px;
  padding: 0;
  border-radius: 1rem;
}

/* --- Download Badge Group Layout (Stacked Vertically) --- */
.tutorial-page .download-badge-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 1.5rem auto 0 auto;
}

.tutorial-page .badge-button {
  width: 100% !important;
  max-width: 360px !important;
  box-sizing: border-box !important;
  background: #000000 !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 12px !important;
  padding: 11px 20px !important;
  cursor: pointer !important;
  outline: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease !important;
}

.tutorial-page .badge-button:hover {
  transform: scale(1.04) !important;
  box-shadow: 0 6px 16px rgba(0, 242, 254, 0.2) !important;
  border-color: rgba(0, 242, 254, 0.8) !important;
}

.tutorial-page .badge-button:active {
  transform: scale(0.98) !important;
}

.tutorial-page .badge-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.tutorial-page .badge-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.tutorial-page .badge-icon.android-svg {
  color: #3ddc84;
  fill: #3ddc84;
}

.tutorial-page .badge-icon.apple-svg {
  color: #ffffff;
  fill: #ffffff;
  width: 34px;
  height: 34px;
}

.tutorial-page .badge-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tutorial-page .badge-subtitle {
  font-size: 13px;
  text-transform: uppercase;
  color: #d8d8d8;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.tutorial-page .badge-title {
  font-size: 20px;
  font-weight: bold;
  color: #ffffff;
  line-height: 1.2;
}

@media screen and (max-width: 420px) {
  .form-card {
    min-height: 380px !important;
  }
  .form-input {
    height: 36px !important;
    font-size: 16px !important; /* must stay >= 16px to prevent iOS Safari auto-zoom on focus */
  }
  .landing-page .submit-button {
    height: 40px !important;
    font-size: 0.95rem !important;
  }
}
@media screen and (max-width: 350px) {
  .form-card {
    min-height: 360px !important;
  }
  .form-input {
    height: 34px !important;
  }
  .landing-page .submit-button {
    height: 38px !important;
  }
}

/* --- Full-screen Submitting Overlay --- */
.submitting-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.submitting-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.submitting-text {
  margin-top: 16px;
  color: #fff;
  font-size: 14px;
  letter-spacing: 1px;
}

