html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: #fff;
  box-sizing: border-box;
  width: 100vw;
  overflow: hidden;
}
body {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}
.container {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

/* --- PAGE STYLE --- */
.page, .page-import, .page-landing, .page-createwallet {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(.77,0,.18,1), opacity 0.2s;
  overflow-y: auto;
}
.page.active, .page-import.active, .page-landing.active, .page-createwallet.active {
  transform: translateX(0);
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}

/* --- LANDING PAGE CONTENT --- */
.logo {
  margin-top: 162px;
  margin-bottom: 16px;
  align-self: center;
}
.logo img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  border-radius: 20px;
  background: transparent;
  display: block;
}

.bottom-section {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.main-content {
  text-align: center;
  margin-bottom: 18px;
}
.main-content h1 {
  font-size: 2.1rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 10px 0;
}
.sub {
  color: #888;
  font-size: 0.85rem;
  margin: 0 0 30px 0;
  letter-spacing: 0.3px;
  text-align: center;
}
.action-buttons {
  width: 90vw;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 auto 160px auto;
}

.btn {
  display: block;
  width: 100%;
  padding: 18px 0;
  border-radius: 40px;
  font-size: 1.12rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.06px;
}
.btn-primary {
  background: #111;
  color: #fff;
  border: none;
}
.btn-primary:hover {
  background: #222;
}
.btn-secondary {
  background: #fff;
  color: #111;
  border: 2px solid #dadada;
}
.btn-secondary:hover {
  background: #f7f7f7;
}

/* --- IMPORT & CREATE WALLET PAGE --- */
.page-import .import-header,
.page-createwallet .import-header {
  display: flex;
  align-items: center;
  padding: 24px 0 0 8px;
  min-height: 54px;
}
.page-import .back-btn,
.page-createwallet .back-btn {
  background: none;
  border: none;
  padding: 6px 14px 6px 2px;
  font-size: 1.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  line-height: 1;
}
.page-import .back-btn svg,
.page-createwallet .back-btn svg {
  display: block;
}
.page-import .import-title,
.page-createwallet .import-title {
  padding: 6px 0 14px 22px;
}
.page-import .import-title h2,
.page-createwallet .import-title h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.18;
}

.page-import .import-options,
.page-createwallet .import-options {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
}
.page-import .import-row,
.page-createwallet .import-row {
  display: flex;
  align-items: center;
  padding: 22px 20px;
  border-bottom: 1px solid #ededed;
  text-decoration: none;
  color: #111;
  background: #fff;
  transition: background 0.2s;
}
.page-import .import-row:first-child,
.page-createwallet .import-row:first-child {
  border-top: 1px solid #ededed;
}
.page-import .import-row:hover,
.page-createwallet .import-row:hover {
  background: #f5f5f5;
}
.page-import .import-icon,
.page-createwallet .import-icon {
  margin-right: 16px;
  display: flex;
  align-items: center;
  min-width: 40px;
}
.import-icon img {
  width: 40px;
  height: 40px;
  display: inline-block;
  vertical-align: middle;
}
.page-import .import-arrow,
.page-createwallet .import-arrow {
  margin-left: auto;
  font-size: 1.6rem;
  color: #000;
}
.page-import .import-row > span:not(.import-icon):not(.import-arrow),
.page-createwallet .import-row > span:not(.import-icon):not(.import-arrow) {
  font-weight: 700;
  font-size: 1.18rem;
}

.page-import .tos-bar,
.page-createwallet .tos-bar {
  margin-top: auto;
  text-align: center;
  font-size: 0.8rem;
  color: #aaa;
  padding: 36px 8px 18px 8px;
}
.page-import .tos-bar a,
.page-createwallet .tos-bar a {
  color: #111;
  text-decoration: underline;
  font-weight: 500;
}

/* --- DESKTOP MODE (CARD) --- */
@media (min-width: 900px) {
  body {
    background: #f2f2f2 !important;
  }
  .container {
    width: 420px;
    height: 600px;
    min-height: 600px;
    max-width: 98vw;
    margin: 0 auto;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 18px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.08);
    background: #fff;
    overflow: hidden;
  }
  .page, .page-import, .page-landing, .page-createwallet {
    border-radius: 18px;
    width: 100%;
    height: 100%;
    min-height: 100%;
    max-height: 100%;
    overflow-y: auto;
  }
  .logo img {
    width: 120px;
    height: 120px;
  }
  .page-import .import-title,
  .page-createwallet .import-title {
    padding: 10px 0 16px 28px;
  }
  .page-import .import-title h2,
  .page-createwallet .import-title h2 {
    font-size: 1.45rem;
  }
}


  .splash-screen {
    position: fixed;
    z-index: 9999;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s;
  }
  .splash-logo {
    width: 108px;
    height: 108px;
    /* animasi fadeIn + blink */
    animation: splashFadeIn 0.8s, blinkLogo 2.2s 2 alternate;
  }
  @keyframes splashFadeIn {
    0% { opacity: 0; transform: scale(0.8);}
    100% { opacity: 1; transform: scale(1);}
  }
  @keyframes blinkLogo {
    0%   { opacity: 1; }
    25%  { opacity: 0.2; }
    50%  { opacity: 1; }
    75%  { opacity: 0.2; }
    100% { opacity: 1; }
  }



