
/* ===== ATOMA PAY: Reference-sized mobile UI ===== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue: #2848f8;
  --icon-blue: #3152f7;
  --cyan: #12c7e7;
  --text: #333;
  --muted: #999;
  --page-bg: #f7f7f7;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--page-bg);
  -webkit-text-size-adjust: 100%;
}

button {
  font-family: inherit;
  font-weight: 400;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.app {
  width: 100%;
  max-width: 600px;
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: 58px;
  position: relative;
  overflow: hidden;
  background: var(--page-bg);
}

/* ===== Header ===== */

.hero {
  height: 265px;
  background: var(--blue);
  color: white;
  position: relative;
  overflow: hidden;
}

.topbar {
  height: 84px;
  padding: 34px 17px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.menu-icon {
  width: 24px;
  height: 24px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.logo {
  position: absolute;
  left: 50%;
  top: 39px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  font-size: 18px;
  font-weight: 900;
  line-height: 14px;
  letter-spacing: .75px;
}

.logo-bottom {
  display: flex;
  align-items: center;
  font-size: 20px;
  line-height: 19px;
  letter-spacing: 2.2px;
}

.logo-mark {
  width: 13px;
  height: 13px;
  margin-left: 1px;
  flex-shrink: 0;
}

.notification {
  width: 23px;
  height: 24px;
  position: relative;
  color: white;
}

.notification svg {
  display: block;
  width: 22px;
  height: 22px;
}

.notification-dot {
  position: absolute;
  right: -2px;
  top: -2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #f20d19;
}

.balance-area {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 15px 12px 0;
}

.balance-label {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  color: #8297ff;
  font-size: 16px;
  line-height: 20px;
}

.eye-icon {
  width: 20px;
  height: 16px;
  flex-shrink: 0;
}

.balance {
  margin-top: 10px;
  font-size: 31px;
  font-weight: 400;
  line-height: 36px;
}

.commission {
  border-top: 1px solid rgba(255,255,255,.05);
  margin-top: 17px;
  padding-top: 17px;
  color: #8297ff;
  font-size: 16px;
  line-height: 23px;
  white-space: nowrap;
}

.commission strong {
  color: white;
  font-size: 15px;
  font-weight: 400;
}

.pattern {
  position: absolute;
  width: 60px;
  height: 60px;
  opacity: .14;
  background-image: radial-gradient(
    circle,
    #b5c2ff 1.5px,
    transparent 2px
  );
  background-size: 7.5px 7.5px;
}

.pattern-left {
  left: -32px;
  top: 131px;
}

.pattern-right {
  right: -15px;
  top: 89px;
}

/* ===== Main content ===== */

.content {
  position: relative;
  z-index: 3;
  margin: -29px 17px 0;
}

/* ===== Action card ===== */

.action-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: 26px;
  column-gap: 0;
  background: white;
  border-radius: 3px;
  box-shadow: 0 2px 3px rgba(0,0,0,.16);
  padding: 17px 7px 18px;
}

.action {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  color: #222;
  font-size: 12px;
  line-height: 15px;
  text-align: center;
}

.action-svg {
  display: block;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* ===== Transactions card ===== */

.transactions-card {
  margin-top: 13px;
  padding: 11px 13px 5px;
  background: white;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0,0,0,.17);
}

.transaction-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 9px;
}

.latest-title {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  line-height: 21px;
  white-space: nowrap;
}

.refresh-icon {
  width: 15px;
  height: 15px;
  color: #a0a3ac;
  flex-shrink: 0;
}

.history-button {
  color: #858585;
  font-size: 14px;
  line-height: 19px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 2px 7px;
  flex-shrink: 0;
}

.transaction-list {
  display: flex;
  flex-direction: column;
}

.transaction {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 9px;
  min-height: 60px;
  padding: 4px 0 7px;
}

.transaction-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #4385e8;
  border: 1px solid #d8e6ff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.transaction-icon svg {
  width: 29px;
  height: 29px;
  display: block;
}

.transaction-info {
  min-width: 0;
  padding-top: 1px;
}

.transaction-name {
  font-size: 12px;
  line-height: 16px;
  overflow-wrap: anywhere;
}

.transaction-date {
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
  line-height: 18px;
  white-space: nowrap;
}

.amount {
  font-size: 14px;
  line-height: 17px;
  font-weight: 700;
  color: #111;
  text-align: right;
  white-space: nowrap;
}

/* ===== Bottom navigation ===== */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  height: 58px;
  background: white;
  box-shadow: 0 -2px 6px rgba(0,0,0,.04);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  z-index: 10;
}

.nav-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  color: #c2c5ca;
  font-size: 12px;
  line-height: 15px;
}

.nav-icon {
  display: block;
  width: 25px;
  height: 25px;
}

.nav-item.active {
  color: #3152f7;
}

/* ===== Compact screens ===== */

@media (max-width: 360px) {
  .content {
    margin-left: 12px;
    margin-right: 12px;
  }

  .topbar {
    padding-left: 14px;
    padding-right: 14px;
  }

  .action-card {
    padding-left: 4px;
    padding-right: 4px;
  }

  .action {
    font-size: 11px;
  }

  .transactions-card {
    padding-left: 9px;
    padding-right: 9px;
  }

  .transaction {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    column-gap: 6px;
  }

  .transaction-icon {
    width: 34px;
    height: 34px;
  }

  .transaction-icon svg {
    width: 27px;
    height: 27px;
  }

  .transaction-name {
    font-size: 11px;
    line-height: 15px;
  }

  .transaction-date {
    font-size: 13px;
    line-height: 17px;
  }

  .amount {
    font-size: 12px;
  }

  .latest-title {
    font-size: 13px;
  }

  .history-button {
    font-size: 12px;
  }

  .commission {
    font-size: 14px;
  }

  .commission strong {
    font-size: 13px;
  }
}
