﻿@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  src: url("26.13.0_0/fonts/Inter-Regular.woff") format("woff");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  src: url("26.13.0_0/fonts/Inter-Medium.woff") format("woff");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  src: url("26.13.0_0/fonts/Inter-SemiBold.woff") format("woff");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  src: url("26.13.0_0/fonts/Inter-Bold.woff") format("woff");
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #E8E0F7 0%, #D4CFFF 30%, #C4BFF0 60%, #B8AFF0 100%);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

#root {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ====== TOP BAR ====== */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.top-bar-logo {
  width: 28px;
  height: 28px;
  fill: #1C1C1C;
}

.top-bar-help {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(0, 0, 0, 0.5);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s;
}
.top-bar-help:hover {
  color: rgba(0, 0, 0, 0.7);
}
.top-bar-help svg {
  width: 18px;
  height: 18px;
}

/* ====== SCREENS ====== */
.screen {
  display: none;
  flex-direction: column;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  animation: slideIn 0.25s ease;
}
.screen.active {
  display: flex;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ====== WELCOME SCREEN ====== */
.welcome-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px;
}

.welcome-card {
  background: #1C1C1C;
  border-radius: 24px;
  padding: 48px 32px 36px;
  max-width: 380px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 8px 20px rgba(0, 0, 0, 0.15);
}

.welcome-card-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.welcome-card-logo-icon {
  width: 40px;
  height: 40px;
}

.welcome-card-logo-text {
  font-size: 32px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: -0.5px;
}

.welcome-card-description {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-align: center;
  color: #A8A8A8;
  margin-bottom: 32px;
  max-width: 280px;
}

.welcome-card-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

/* ====== BUTTONS ====== */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border-radius: 12px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  outline: none;
}
.btn:focus-visible {
  outline: 2px solid #AB9FF2;
  outline-offset: 2px;
}

.btn-primary {
  background-color: #AB9FF2;
  color: #FFFFFF;
}
.btn-primary:hover {
  background-color: #9B8FE0;
  transform: translateY(-1px);
}
.btn-primary:active {
  background-color: #8B7FD0;
  transform: translateY(0);
}

.btn-secondary {
  background-color: #2A2A2D;
  color: #FFFFFF;
}
.btn-secondary:hover {
  background-color: #363639;
  transform: translateY(-1px);
}
.btn-secondary:active {
  background-color: #3D3D42;
  transform: translateY(0);
}

.btn-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

/* ====== BACK NAVIGATION ====== */
.nav-back {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.5);
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  gap: 6px;
  width: fit-content;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  transition: color 0.15s;
}
.nav-back:hover {
  color: rgba(0, 0, 0, 0.7);
}
.nav-back svg {
  width: 20px;
  height: 20px;
}

/* ====== IMPORT OPTIONS SCREEN ====== */
.import-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(135deg, #E8E0F7 0%, #D4CFFF 30%, #C4BFF0 60%, #B8AFF0 100%);
}

.import-card {
  background: #1C1C1C;
  border-radius: 24px;
  margin: 60px 20px 20px;
  padding: 36px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 8px 20px rgba(0, 0, 0, 0.15);
  max-width: 380px;
  width: calc(100% - 40px);
  align-self: center;
}

.import-card-title {
  font-size: 24px;
  font-weight: 600;
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 8px;
}

.import-card-subtitle {
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
  text-align: center;
  color: #A8A8A8;
  margin-bottom: 28px;
}

.import-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.import-option {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-radius: 12px;
  background-color: #2A2A2D;
  cursor: pointer;
  transition: background-color 0.15s;
  gap: 14px;
  width: 100%;
  border: none;
  text-align: left;
  color: #FFFFFF;
  font-family: inherit;
}
.import-option:hover {
  background-color: #363639;
}

.import-option-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #3D3D42;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.import-option-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.import-option-title {
  font-size: 15px;
  font-weight: 500;
  color: #FFFFFF;
}

.import-option-desc {
  font-size: 13px;
  font-weight: 400;
  color: #A8A8A8;
}

/* ====== CREATE WALLET (SEEDLESS) SCREEN ====== */
.create-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(135deg, #E8E0F7 0%, #D4CFFF 30%, #C4BFF0 60%, #B8AFF0 100%);
}

.create-card {
  background: #1C1C1C;
  border-radius: 24px;
  margin: 60px 20px 20px;
  padding: 32px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 8px 20px rgba(0, 0, 0, 0.15);
  max-width: 380px;
  width: calc(100% - 40px);
  align-self: center;
  overflow-y: auto;
}

.create-image {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
}

.create-title {
  font-size: 22px;
  font-weight: 600;
  line-height: 28px;
  text-align: center;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.create-subtitle {
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
  text-align: center;
  color: #A8A8A8;
  max-width: 280px;
  margin-bottom: 28px;
}

.create-features {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
}

.create-feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.create-feature-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.create-feature-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.create-feature-title {
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
}

.create-feature-desc {
  font-size: 13px;
  font-weight: 400;
  color: #A8A8A8;
  line-height: 18px;
}

.create-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: auto;
}

/* ====== EMAIL OPTIONS SCREEN ====== */
.email-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(135deg, #E8E0F7 0%, #D4CFFF 30%, #C4BFF0 60%, #B8AFF0 100%);
}

.email-card {
  background: #1C1C1C;
  border-radius: 24px;
  margin: 60px 20px 20px;
  padding: 36px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 8px 20px rgba(0, 0, 0, 0.15);
  max-width: 380px;
  width: calc(100% - 40px);
  align-self: center;
}

.email-card-title {
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.email-card-subtitle {
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
  text-align: center;
  color: #A8A8A8;
  margin-bottom: 28px;
}

.email-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.email-option {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-radius: 12px;
  background-color: #2A2A2D;
  cursor: pointer;
  transition: background-color 0.15s;
  gap: 14px;
  width: 100%;
  border: none;
  text-align: left;
  color: #FFFFFF;
  font-family: inherit;
}
.email-option:hover {
  background-color: #363639;
}

.email-option-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #3D3D42;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.email-option-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.email-option-title {
  font-size: 15px;
  font-weight: 500;
  color: #FFFFFF;
}

.email-option-desc {
  font-size: 13px;
  font-weight: 400;
  color: #A8A8A8;
}

/* ====== PIN SCREEN ====== */
.pin-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(135deg, #E8E0F7 0%, #D4CFFF 30%, #C4BFF0 60%, #B8AFF0 100%);
}

.pin-card {
  background: #1C1C1C;
  border-radius: 24px;
  margin: 60px 20px 20px;
  padding: 36px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 8px 20px rgba(0, 0, 0, 0.15);
  max-width: 380px;
  width: calc(100% - 40px);
  align-self: center;
}

.pin-title {
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.pin-subtitle {
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
  text-align: center;
  color: #A8A8A8;
  margin-bottom: 28px;
}

.pin-subtitle-warning {
  color: #F2C854;
}

.pin-input-container {
  display: flex;
  justify-content: center;
  margin-bottom: auto;
  width: 100%;
}

.pin-input {
  width: 100%;
  max-width: 220px;
  height: 56px;
  border-radius: 16px;
  border: 2px solid #3A3A3F;
  background-color: #2A2A2D;
  color: #FFFFFF;
  font-family: "Inter", sans-serif;
  font-size: 28px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 16px;
  padding: 0 24px;
  outline: none;
  transition: border-color 0.15s;
}
.pin-input:focus {
  border-color: #AB9FF2;
}
.pin-input::placeholder {
  color: #4A4A4F;
  letter-spacing: 8px;
}

.pin-footer {
  width: 100%;
  margin-top: 28px;
}

/* ====== PASSWORD SCREEN ====== */
.password-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(135deg, #E8E0F7 0%, #D4CFFF 30%, #C4BFF0 60%, #B8AFF0 100%);
}

.password-card {
  background: #1C1C1C;
  border-radius: 24px;
  margin: 60px 20px 20px;
  padding: 36px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 8px 20px rgba(0, 0, 0, 0.15);
  max-width: 380px;
  width: calc(100% - 40px);
  align-self: center;
}

.password-title {
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.password-subtitle {
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
  text-align: center;
  color: #A8A8A8;
  margin-bottom: 28px;
}

.password-fields {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.input-field {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 2px solid #3A3A3F;
  background-color: #2A2A2D;
  color: #FFFFFF;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 0 16px;
  outline: none;
  transition: border-color 0.15s;
}
.input-field:focus {
  border-color: #AB9FF2;
}
.input-field::placeholder {
  color: #6A6A6F;
  font-weight: 400;
}

.password-strength {
  position: relative;
  width: 100%;
}

.strength-label {
  position: absolute;
  top: 15px;
  right: 14px;
  font-size: 14px;
  font-weight: 600;
}
.strength-weak { color: #F25C5C; }
.strength-medium { color: #F2C854; }
.strength-strong { color: #4CC38A; }

.tos-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  cursor: pointer;
}

.tos-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid #4A4A4F;
  background-color: transparent;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: all 0.15s;
}
.tos-checkbox input[type="checkbox"]:checked {
  background-color: #AB9FF2;
  border-color: #AB9FF2;
}
.tos-checkbox input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.tos-checkbox label {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #A8A8A8;
  cursor: pointer;
}

.tos-checkbox label a {
  color: #A8A8A8;
  text-decoration: underline;
}

.password-footer {
  margin-top: auto;
}

/* ====== SEED PHRASE SCREEN ====== */
.seed-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(135deg, #E8E0F7 0%, #D4CFFF 30%, #C4BFF0 60%, #B8AFF0 100%);
}

.seed-card {
  background: #1C1C1C;
  border-radius: 24px;
  margin: 60px 20px 20px;
  padding: 36px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 8px 20px rgba(0, 0, 0, 0.15);
  max-width: 380px;
  width: calc(100% - 40px);
  align-self: center;
  overflow-y: auto;
}

.seed-title {
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.seed-subtitle {
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
  text-align: center;
  color: #F2C854;
  margin-bottom: 24px;
  max-width: 280px;
}

.seed-grid-wrapper {
  position: relative;
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
}

.seed-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  row-gap: 10px;
  column-gap: 10px;
  width: 100%;
  transition: filter 0.15s;
}
.seed-grid.blurred {
  filter: blur(4px);
}

.seed-word {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 41px;
  border-radius: 8px;
  background-color: #2A2A2D;
  border: 1px solid #3A3A3F;
  font-size: 14px;
  font-weight: 500;
  color: #FFFFFF;
  padding: 0 8px;
  gap: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.seed-word-number {
  font-size: 12px;
  color: #A8A8A8;
}

.seed-eye-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
}

.seed-eye-icon {
  width: 40px;
  height: 40px;
  opacity: 0.5;
}

.seed-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  justify-content: center;
  margin-bottom: 24px;
}

.seed-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid #4A4A4F;
  background-color: transparent;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: all 0.15s;
}
.seed-checkbox input[type="checkbox"]:checked {
  background-color: #AB9FF2;
  border-color: #AB9FF2;
}
.seed-checkbox input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.seed-checkbox label {
  font-size: 14px;
  font-weight: 400;
  color: #A8A8A8;
  cursor: pointer;
}

.seed-footer {
  width: 100%;
  margin-top: auto;
}

/* ====== IMPORT SEED SCREEN ====== */
.import-seed-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(135deg, #E8E0F7 0%, #D4CFFF 30%, #C4BFF0 60%, #B8AFF0 100%);
}

.import-seed-card {
  background: #1C1C1C;
  border-radius: 24px;
  margin: 60px 20px 20px;
  padding: 36px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 8px 20px rgba(0, 0, 0, 0.15);
  max-width: 380px;
  width: calc(100% - 40px);
  align-self: center;
  overflow-y: auto;
}

.import-seed-title {
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.import-seed-subtitle {
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
  text-align: center;
  color: #A8A8A8;
  margin-bottom: 24px;
}

.import-seed-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  row-gap: 10px;
  column-gap: 10px;
  width: 100%;
  margin-bottom: 16px;
}

.import-seed-input-wrapper {
  display: flex;
  align-items: center;
  height: 41px;
  border-radius: 8px;
  background-color: #2A2A2D;
  border: 1px solid #3A3A3F;
  padding: 0 8px;
  gap: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: border-color 0.15s;
}
.import-seed-input-wrapper:focus-within {
  border-color: #AB9FF2;
}

.import-seed-number {
  font-size: 12px;
  color: #A8A8A8;
  flex-shrink: 0;
}

.import-seed-input {
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 500;
  width: 100%;
  outline: none;
  font-family: "Inter", sans-serif;
}
.import-seed-input::placeholder {
  color: #4A4A4F;
}

.import-seed-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.import-seed-toggle a {
  font-size: 13px;
  font-weight: 500;
  color: #A8A8A8;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s;
}
.import-seed-toggle a:hover {
  color: #AB9FF2;
}

.import-seed-footer {
  width: 100%;
  margin-top: auto;
}

/* ====== DONE SCREEN ====== */
.done-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px;
  background: linear-gradient(135deg, #E8E0F7 0%, #D4CFFF 30%, #C4BFF0 60%, #B8AFF0 100%);
}

.done-card {
  background: #1C1C1C;
  border-radius: 24px;
  padding: 48px 32px 36px;
  max-width: 380px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 8px 20px rgba(0, 0, 0, 0.15);
}

.done-animation {
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
}

.done-title {
  font-size: 28px;
  font-weight: 600;
  text-align: center;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.done-subtitle {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-align: center;
  color: #A8A8A8;
  margin-bottom: 32px;
  max-width: 280px;
}

.done-footer {
  width: 100%;
}

/* Pin callout */
.pin-callout {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: #AB9FF2;
  padding: 12px 16px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.4s ease 0.6s both;
  z-index: 30;
}
.pin-callout span {
  color: #1C1C1C;
  font-size: 14px;
  font-weight: 600;
}
.pin-callout small {
  color: rgba(28, 28, 28, 0.7);
  font-size: 12px;
  font-weight: 400;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
