/* =========================================================
   DRAGON STORE
   ALIGHT MOTION PREMIUM
   DARK GOLD THEME
========================================================= */

:root {
  --bg: #11110f;
  --bg-soft: #181815;
  --card: #1d1d19;
  --card-soft: #22221d;

  --text: #f4f1e8;
  --muted: #aaa79d;
  --muted-dark: #77756d;

  --gold: #c9a96e;
  --gold-light: #dfc58f;
  --gold-dark: #a98950;

  --border: #302f29;
  --border-light: #3a3932;

  --success: #7db394;
  --success-bg: #18251d;

  --danger: #d98282;
  --danger-bg: #291b1b;

  --shadow:
    0 18px 50px rgba(0, 0, 0, 0.32);

  --shadow-soft:
    0 8px 25px rgba(0, 0, 0, 0.22);

  --radius: 18px;
}


/* =========================================================
   RESET
========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;

  background:
    radial-gradient(
      circle at 50% -10%,
      rgba(201, 169, 110, 0.08),
      transparent 32%
    ),
    var(--bg);

  color: var(--text);

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  line-height: 1.6;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;

  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 14px 5%;

  background:
    rgba(17, 17, 15, 0.88);

  border-bottom:
    1px solid rgba(201, 169, 110, 0.12);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}


/* =========================================================
   BRAND
========================================================= */

.brand {
  display: flex;
  align-items: center;

  gap: 11px;

  min-width: 0;
}

.brand-logo {
  width: 42px;
  height: 42px;

  display: block;

  object-fit: cover;

  border-radius: 12px;

  border:
    1px solid rgba(201, 169, 110, 0.22);

  box-shadow:
    0 5px 18px rgba(0, 0, 0, 0.3);
}

.brand-name {
  color: var(--text);

  font-size: 15px;
  font-weight: 750;

  line-height: 1.2;
}

.brand-subtitle {
  margin-top: 2px;

  color: var(--muted);

  font-size: 11px;

  line-height: 1.2;
}


/* =========================================================
   NAV ACTIONS
========================================================= */

.nav-actions {
  display: flex;
  align-items: center;

  gap: 9px;
}


/* =========================================================
   COIN PILL
========================================================= */

.coin-pill {
  min-height: 40px;

  display: inline-flex;
  align-items: center;

  gap: 6px;

  padding: 0 12px;

  border:
    1px solid var(--border-light);

  border-radius: 999px;

  background:
    rgba(29, 29, 25, 0.95);

  color: var(--text);

  box-shadow:
    0 5px 18px rgba(0, 0, 0, 0.2);

  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.coin-pill:hover {
  border-color:
    rgba(201, 169, 110, 0.55);

  background:
    #24241f;

  transform:
    translateY(-1px);
}

.coin-pill:active {
  transform:
    translateY(0);
}


/* COIN SVG */

.icon {
  width: 19px;
  height: 19px;
}

.coin-icon {
  fill: none;

  stroke: var(--gold);

  stroke-width: 1.7;

  stroke-linecap: round;
  stroke-linejoin: round;
}

#coinBalance {
  color: var(--text);

  font-size: 13px;
  font-weight: 750;
}

.coin-label {
  color: var(--muted);

  font-size: 12px;
}

.plus {
  color: var(--gold);

  font-size: 17px;
  font-weight: 700;
}


/* =========================================================
   BACK HOME
========================================================= */

.history-nav-btn {
  min-height: 40px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 13px;

  border:
    1px solid var(--border-light);

  border-radius: 11px;

  background:
    var(--card);

  color: var(--muted);

  font-size: 12px;
  font-weight: 650;

  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.history-nav-btn:hover {
  color: var(--gold-light);

  border-color:
    rgba(201, 169, 110, 0.5);

  background:
    var(--card-soft);
}


/* =========================================================
   MAIN
========================================================= */

.am-page {
  width: min(100%, 900px);

  margin: 0 auto;

  padding:
    62px 20px
    80px;
}


/* =========================================================
   HERO
========================================================= */

.am-hero {
  position: relative;

  text-align: center;

  padding:
    10px 10px
    46px;
}

.am-hero::before {
  content: "";

  position: absolute;

  width: 250px;
  height: 250px;

  top: -80px;
  left: 50%;

  transform:
    translateX(-50%);

  background:
    radial-gradient(
      circle,
      rgba(201, 169, 110, 0.10),
      transparent 68%
    );

  pointer-events: none;

  z-index: -1;
}


/* =========================================================
   PRODUCT ICON
========================================================= */

.am-product-icon {
  width: 90px;
  height: 90px;

  margin:
    0 auto
    20px;

  padding: 4px;

  background:
    #1a1a17;

  border:
    1px solid rgba(201, 169, 110, 0.25);

  border-radius: 24px;

  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.38);

  overflow: hidden;
}

.am-product-icon img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  border-radius: 20px;
}


/* =========================================================
   EYEBROW
========================================================= */

.eyebrow {
  display: inline-flex;
  align-items: center;

  padding:
    5px 10px;

  border:
    1px solid rgba(201, 169, 110, 0.32);

  border-radius: 999px;

  background:
    rgba(201, 169, 110, 0.08);

  color: var(--gold-light);

  font-size: 10px;
  font-weight: 800;

  letter-spacing:
    0.13em;
}


/* =========================================================
   HERO TITLE
========================================================= */

.am-hero h1 {
  margin:
    14px 0
    9px;

  color: var(--text);

  font-size:
    clamp(28px, 5vw, 42px);

  line-height: 1.1;

  letter-spacing:
    -0.035em;
}

.am-hero > p {
  max-width: 560px;

  margin:
    0 auto
    23px;

  color: var(--muted);

  font-size: 13px;
}


/* =========================================================
   PRODUCT INFO
========================================================= */

.am-product-info {
  display: flex;
  justify-content: center;

  flex-wrap: wrap;

  gap: 10px;
}

.am-product-info > div {
  min-width: 145px;

  padding:
    11px 18px;

  border:
    1px solid var(--border);

  border-radius: 12px;

  background:
    rgba(29, 29, 25, 0.7);
}

.am-product-info span {
  display: block;

  margin-bottom: 2px;

  color: var(--muted-dark);

  font-size: 9px;
  font-weight: 700;

  text-transform: uppercase;

  letter-spacing:
    0.08em;
}

.am-product-info strong {
  display: block;

  color: var(--text);

  font-size: 13px;
}


/* =========================================================
   PURCHASE CARD
========================================================= */

.am-card {
  width: 100%;

  padding: 28px;

  background:
    linear-gradient(
      145deg,
      #1d1d19,
      #191916
    );

  border:
    1px solid var(--border);

  border-radius: 22px;

  box-shadow:
    var(--shadow);

  overflow: hidden;
}


/* =========================================================
   STEP INDICATORS
========================================================= */

.am-steps {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 5px;

  margin-bottom: 30px;
}

.am-step {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 5px;

  padding:
    8px 4px;

  color:
    #68675f;
}

.am-step::after {
  content: "";

  position: absolute;

  top: 19px;

  left:
    calc(50% + 20px);

  width:
    calc(100% - 40px);

  height: 1px;

  background:
    #302f29;
}

.am-step:last-child::after {
  display: none;
}

.am-step span {
  position: relative;

  z-index: 2;

  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  border:
    1px solid #35342e;

  border-radius: 50%;

  background:
    #181815;

  color:
    #77756d;

  font-size: 10px;
  font-weight: 750;

  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.am-step small {
  color: inherit;

  font-size: 9px;
  font-weight: 650;

  white-space: nowrap;
}

.am-step.active {
  color:
    var(--gold);
}

.am-step.active span {
  border-color:
    var(--gold);

  background:
    rgba(201, 169, 110, 0.12);

  color:
    var(--gold-light);

  box-shadow:
    0 0 0 4px
    rgba(201, 169, 110, 0.05);
}


/* =========================================================
   ERROR
========================================================= */

.am-error {
  display: none;

  margin-bottom: 20px;

  padding:
    14px 16px;

  background:
    var(--danger-bg);

  border:
    1px solid rgba(217, 130, 130, 0.25);

  border-radius: 13px;
}

.am-error.show {
  display: block;
}

.am-error strong {
  display: block;

  margin-bottom: 2px;

  color:
    #e39a9a;

  font-size: 12px;
}

.am-error p {
  margin: 0;

  color:
    #ad8585;

  font-size: 11px;
}


/* =========================================================
   PANELS
========================================================= */

.am-panel {
  display: none;

  animation:
    amFadeIn 0.28s ease;
}

.am-panel.active {
  display: block;
}

@keyframes amFadeIn {
  from {
    opacity: 0;

    transform:
      translateY(7px);
  }

  to {
    opacity: 1;

    transform:
      translateY(0);
  }
}


/* =========================================================
   PANEL TEXT
========================================================= */

.am-panel-label {
  display: block;

  margin-bottom: 7px;

  color:
    var(--gold);

  font-size: 9px;
  font-weight: 800;

  letter-spacing:
    0.14em;
}

.am-panel h2 {
  margin:
    0 0 8px;

  color:
    var(--text);

  font-size: 24px;

  line-height: 1.2;

  letter-spacing:
    -0.02em;
}

.am-panel > p {
  margin:
    0 0 24px;

  color:
    var(--muted);

  font-size: 12px;
}


/* =========================================================
   LABEL
========================================================= */

.am-label {
  display: block;

  margin-bottom: 7px;

  color:
    #d6d1c5;

  font-size: 11px;
  font-weight: 700;
}


/* =========================================================
   INPUT
========================================================= */

.am-input {
  width: 100%;

  min-height: 50px;

  padding:
    0 15px;

  border:
    1px solid var(--border-light);

  border-radius: 12px;

  outline: none;

  background:
    #151512;

  color:
    var(--text);

  font-size: 13px;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.am-input::placeholder {
  color:
    #626159;
}

.am-input:hover {
  border-color:
    #45443c;
}

.am-input:focus {
  border-color:
    rgba(201, 169, 110, 0.7);

  background:
    #181815;

  box-shadow:
    0 0 0 3px
    rgba(201, 169, 110, 0.08);
}

.am-textarea {
  display: block;

  min-height: 120px;

  padding:
    14px 15px;

  resize: vertical;

  line-height: 1.5;
}


/* =========================================================
   GOLD BUTTON
========================================================= */

.am-button {
  width: 100%;

  min-height: 50px;

  margin-top: 16px;

  padding:
    0 20px;

  border:
    1px solid
    rgba(201, 169, 110, 0.6);

  border-radius: 12px;

  background:
    linear-gradient(
      135deg,
      #c9a96e,
      #ad8b51
    );

  color:
    #171612;

  font-size: 12px;
  font-weight: 800;

  box-shadow:
    0 8px 22px
    rgba(0, 0, 0, 0.25);

  transition:
    transform 0.2s ease,
    filter 0.2s ease,
    box-shadow 0.2s ease;
}

.am-button:hover {
  filter:
    brightness(1.08);

  transform:
    translateY(-1px);

  box-shadow:
    0 11px 27px
    rgba(0, 0, 0, 0.34);
}

.am-button:active {
  transform:
    translateY(0);
}

.am-button:disabled {
  cursor:
    not-allowed;

  opacity:
    0.5;

  filter:
    grayscale(0.25);

  transform:
    none;

  box-shadow:
    none;
}


/* =========================================================
   SECONDARY BUTTON
========================================================= */

.am-secondary-button {
  width: 100%;

  min-height: 47px;

  margin-top: 9px;

  border:
    1px solid var(--border-light);

  border-radius: 12px;

  background:
    transparent;

  color:
    var(--muted);

  font-size: 12px;
  font-weight: 650;

  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.am-secondary-button:hover {
  color:
    var(--text);

  border-color:
    #4a4840;

  background:
    rgba(255, 255, 255, 0.025);
}


/* =========================================================
   HELP
========================================================= */

.am-help {
  display: flex;
  flex-direction: column;

  gap: 2px;

  margin-top: 14px;

  padding:
    13px 14px;

  border:
    1px solid rgba(201, 169, 110, 0.12);

  border-radius: 12px;

  background:
    rgba(201, 169, 110, 0.045);
}

.am-help strong {
  color:
    #d5c29d;

  font-size: 11px;
}

.am-help span {
  color:
    var(--muted);

  font-size: 10px;
}


/* =========================================================
   MAIL GUIDE
========================================================= */

.am-mail-guide {
  display: flex;
  align-items: center;

  gap: 12px;

  margin-bottom: 20px;

  padding:
    14px;

  border:
    1px solid var(--border);

  border-radius: 13px;

  background:
    #191916;
}

.am-mail-icon {
  flex: 0 0 auto;

  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  border:
    1px solid rgba(201, 169, 110, 0.18);

  border-radius: 11px;

  background:
    rgba(201, 169, 110, 0.08);

  color:
    var(--gold);

  font-size: 17px;
  font-weight: 800;
}

.am-mail-guide strong {
  display: block;

  color:
    #ddd8cc;

  font-size: 11px;
}

.am-mail-guide span {
  display: block;

  margin-top: 2px;

  color:
    var(--muted);

  font-size: 10px;
}


/* =========================================================
   VERIFIED
========================================================= */

.am-verified {
  display: flex;
  align-items: center;

  gap: 12px;

  margin-bottom: 16px;

  padding:
    15px;

  border:
    1px solid rgba(125, 179, 148, 0.2);

  border-radius: 13px;

  background:
    var(--success-bg);
}

.am-verified-icon {
  flex: 0 0 auto;

  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background:
    rgba(125, 179, 148, 0.12);

  color:
    var(--success);

  font-size: 17px;
  font-weight: 800;
}

.am-verified strong {
  display: block;

  color:
    #d9e8dc;

  font-size: 11px;
}

.am-verified span {
  display: block;

  margin-top: 2px;

  color:
    var(--muted);

  font-size: 10px;

  word-break: break-word;
}


/* =========================================================
   PURCHASE BOX
========================================================= */

.am-purchase-box {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 10px;

  margin-top: 14px;
}

.am-purchase-box > div {
  padding:
    14px;

  border:
    1px solid var(--border);

  border-radius: 12px;

  background:
    #181815;
}

.am-purchase-box span {
  display: block;

  margin-bottom: 3px;

  color:
    var(--muted-dark);

  font-size: 9px;

  text-transform: uppercase;

  letter-spacing:
    0.06em;
}

.am-purchase-box strong {
  display: block;

  color:
    var(--text);

  font-size: 12px;
}


/* =========================================================
   SMALL NOTE
========================================================= */

.am-small-note {
  margin:
    10px 0 0 !important;

  color:
    #77756d !important;

  text-align: center;

  font-size: 9px !important;
}


/* =========================================================
   SUCCESS
========================================================= */

#stepPurchase {
  text-align: center;
}

.am-success-icon {
  width: 68px;
  height: 68px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin:
    5px auto
    20px;

  border:
    1px solid rgba(125, 179, 148, 0.25);

  border-radius: 50%;

  background:
    rgba(125, 179, 148, 0.1);

  color:
    var(--success);

  font-size: 27px;
  font-weight: 800;

  box-shadow:
    0 10px 30px
    rgba(0, 0, 0, 0.25);
}

#stepPurchase > p {
  max-width: 500px;

  margin-left: auto;
  margin-right: auto;
}

.am-success-box {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 15px;

  margin-top: 22px;

  padding:
    16px;

  border:
    1px solid rgba(125, 179, 148, 0.2);

  border-radius: 13px;

  background:
    var(--success-bg);

  text-align: left;
}

.am-success-box span {
  color:
    var(--muted);

  font-size: 10px;
}

.am-success-box strong {
  color:
    var(--success);

  font-size: 11px;
}

.am-home-button {
  display: flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
}


/* =========================================================
   LOADING
========================================================= */

.am-loading {
  display: none;

  padding:
    50px 10px;

  text-align: center;

  animation:
    amFadeIn 0.28s ease;
}

.am-loading.active {
  display: block;
}

.am-spinner {
  width: 42px;
  height: 42px;

  margin:
    0 auto
    18px;

  border:
    3px solid #34332d;

  border-top-color:
    var(--gold);

  border-radius: 50%;

  animation:
    amSpin 0.8s linear infinite;
}

@keyframes amSpin {
  to {
    transform:
      rotate(360deg);
  }
}

.am-loading h2 {
  margin:
    0 0 6px;

  color:
    var(--text);

  font-size: 20px;
}

.am-loading p {
  margin: 0;

  color:
    var(--muted);

  font-size: 11px;
}


/* =========================================================
   INFORMATION
========================================================= */

.am-information {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 12px;

  margin-top: 18px;
}

.am-info-card {
  display: flex;
  align-items: flex-start;

  gap: 11px;

  padding:
    17px;

  border:
    1px solid var(--border);

  border-radius: 16px;

  background:
    rgba(29, 29, 25, 0.72);

  box-shadow:
    var(--shadow-soft);
}

.am-info-number {
  flex: 0 0 auto;

  width: 31px;
  height: 31px;

  display: flex;
  align-items: center;
  justify-content: center;

  border:
    1px solid rgba(201, 169, 110, 0.18);

  border-radius: 9px;

  background:
    rgba(201, 169, 110, 0.07);

  color:
    var(--gold);

  font-size: 9px;
  font-weight: 800;
}

.am-info-card h3 {
  margin:
    1px 0 4px;

  color:
    #e3ded2;

  font-size: 11px;
}

.am-info-card p {
  margin: 0;

  color:
    var(--muted);

  font-size: 9px;

  line-height: 1.55;
}


/* =========================================================
   FOOTER
========================================================= */

.am-footer {
  padding:
    25px 20px
    35px;

  border-top:
    1px solid var(--border);

  background:
    rgba(17, 17, 15, 0.8);

  text-align: center;
}

.am-footer p {
  margin: 0;

  color:
    #68665e;

  font-size: 9px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 760px) {

  .navbar {
    padding:
      12px 4%;
  }

  .brand-subtitle {
    display: none;
  }

  .brand-name {
    font-size: 14px;
  }

  .brand-logo {
    width: 39px;
    height: 39px;

    border-radius: 11px;
  }

  .history-nav-btn {
    padding:
      0 10px;

    font-size: 11px;
  }

  .coin-pill {
    min-height: 38px;

    padding:
      0 9px;
  }

  .coin-label {
    display: none;
  }

  .am-page {
    padding:
      42px 14px
      60px;
  }

  .am-hero {
    padding:
      10px 5px
      35px;
  }

  .am-card {
    padding:
      21px;

    border-radius:
      20px;
  }

  .am-information {
    grid-template-columns:
      1fr;
  }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 520px) {

  .navbar {
    gap: 8px;
  }

  .nav-actions {
    gap: 6px;
  }

  .brand {
    gap: 8px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .brand-name {
    font-size: 13px;
  }

  .history-nav-btn {
    min-height: 36px;

    padding:
      0 9px;

    font-size: 10px;
  }

  .coin-pill {
    min-height: 36px;

    padding:
      0 8px;
  }

  .coin-icon {
    width: 17px;
    height: 17px;
  }

  #coinBalance {
    font-size: 11px;
  }

  .plus {
    font-size: 15px;
  }

  .am-product-icon {
    width: 82px;
    height: 82px;
  }

  .am-hero h1 {
    font-size: 28px;
  }

  .am-hero > p {
    font-size: 11px;
  }

  .am-product-info {
    display: grid;

    grid-template-columns:
      repeat(2, 1fr);
  }

  .am-product-info > div {
    min-width: 0;

    padding:
      10px;
  }

  .am-steps {
    gap: 2px;

    margin-bottom: 24px;
  }

  .am-step span {
    width: 30px;
    height: 30px;

    font-size: 9px;
  }

  .am-step::after {
    top: 17px;

    left:
      calc(50% + 17px);

    width:
      calc(100% - 34px);
  }

  .am-step small {
    font-size: 8px;
  }

  .am-panel h2 {
    font-size: 21px;
  }

  .am-panel > p {
    font-size: 11px;
  }

  .am-purchase-box {
    grid-template-columns:
      1fr;
  }

  .am-mail-guide {
    align-items:
      flex-start;
  }

  .am-info-card {
    padding:
      15px;
  }
}


/* =========================================================
   VERY SMALL SCREEN
========================================================= */

@media (max-width: 360px) {

  .brand-name {
    font-size: 12px;
  }

  .brand-logo {
    width: 33px;
    height: 33px;
  }

  .history-nav-btn {
    padding:
      0 7px;

    font-size: 9px;
  }

  .coin-pill {
    padding:
      0 7px;
  }

  .am-card {
    padding:
      16px;
  }

  .am-step small {
    font-size: 7px;
  }

  .am-hero h1 {
    font-size: 25px;
  }
}