/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --night-100: #0b0f14;
  --night-90: #1a1d22;
  --night-80: #282c30;
  --white: #ffffff;
  --gray-90: #e7e7e7;
  --gray-70: #b6b7b8;
  --neon-lime: #00fc56;
  --border-white-15: rgba(255, 255, 255, 0.15);
  --font: 'Noto Sans', sans-serif;
}

html, body {
  height: 100%;
  background: var(--night-100);
  color: var(--white);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* --- Page layout --- */
.page {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

/* --- Header --- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  background: var(--night-100);
  flex-shrink: 0;
  z-index: 10;
}

.header__logo img {
  display: block;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__deposit {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  background: var(--night-90);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.header__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(to bottom, #ffcb9e, #ffffff);
  flex-shrink: 0;
}

/* --- Cover --- */
.cover {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
}

.cover__glow {
  position: absolute;
  width: 265px;
  height: 128px;
  background: #01fc56;
  opacity: 0.6;
  filter: blur(50px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Notification cards */
.cover__notifications {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  z-index: 2;
  padding: 0 20px;
  width: 100%;
  max-width: 320px;
  margin-left: -10%;
}

.notif-card {
  background: rgba(45, 45, 47, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 14px;
  padding: 8px 10px;
  width: 75%;
  position: relative;
  z-index: 1;
}

.cover__notifications::after {
  content: '';
  position: absolute;
  width: 244px;
  height: 44px;
  background: #1c5a30;
  filter: blur(10px);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -10%);
  z-index: 0;
  pointer-events: none;
}

.notif-card--lg {
  border-radius: 16px;
  padding: 10px 12px;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.notif-card__header {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}

.notif-card__icon {
  display: block;
  border-radius: 3px;
}

.notif-card__app {
  font-size: 7px;
  color: var(--neon-lime);
  font-family: 'Roboto', sans-serif;
}

.notif-card__time {
  font-size: 8px;
  color: #a8a8a8;
  font-family: 'Roboto', sans-serif;
}

.notif-card__arrow {
  margin-left: auto;
  flex-shrink: 0;
  transform: rotate(180deg);
}

.notif-card__title {
  font-size: 8px;
  color: var(--white);
  font-family: 'Roboto', sans-serif;
  margin-bottom: 2px;
}

.notif-card--lg .notif-card__title {
  font-size: 10px;
  font-weight: 500;
}

.notif-card__body {
  font-size: 7px;
  color: var(--gray-70);
  font-family: 'Roboto', sans-serif;
  line-height: 1.4;
}

/* Bell */
.cover__bell {
  position: absolute;
  right: 5%;
  top: 40%;
  transform: translateY(-50%) rotate(-25deg);
  z-index: 3;
  pointer-events: none;
  max-width: 110px;
}

/* Checkmark */
.cover__checkmark {
  position: absolute;
  right: 5%;
  top: 40%;
  transform: translateY(-50%);
  z-index: 4;
  pointer-events: none;
}

.cover__checkmark img {
  display: block;
  max-width: 120px;
}

/* Instruction mockup */
.cover__mockup {
  position: relative;
  z-index: 2;
  width: 80%;
  max-width: 312px;
}

/* --- Mockup styles --- */
.mockup {
  background: #121318;
  border-radius: 5px;
  overflow: hidden;
  border-top: 1px solid rgba(0, 0, 0, 0.3);
}

.mockup--addressbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
}

.mockup__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #333439;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 7px 15px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  flex: 1;
  margin-right: 10px;
}

.mockup__lock {
  flex-shrink: 0;
}

.mockup__url {
  font-size: 10px;
  font-family: 'Roboto', sans-serif;
  white-space: nowrap;
}

.mockup__url-proto {
  color: #09c84a;
}

.mockup__url-host {
  color: var(--white);
}

.mockup__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.mockup__tab-count {
  width: 20px;
  height: 20px;
  border: 2px solid white;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  font-family: 'Roboto', sans-serif;
}

.mockup--settings {
  padding: 10px 0;
}

.mockup__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
}

.mockup__row--placeholder {
  opacity: 0.4;
}

.mockup__label {
  font-size: 11px;
  font-family: 'Roboto', sans-serif;
  color: var(--white);
}

.mockup__placeholder-bar {
  height: 10px;
  background: #444;
  border-radius: 4px;
  width: 100px;
}

.mockup__placeholder-bar--wide {
  width: 140px;
}

/* Toggle */
.mockup__toggle {
  width: 34px;
  height: 20px;
  background: #4a4c50;
  border-radius: 320px;
  position: relative;
  flex-shrink: 0;
  margin-left: auto;
}

.mockup__toggle-thumb {
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 1px;
  left: 1px;
  transition: left 0.2s;
}

.mockup__toggle--on {
  background: #4CAF50;
}

.mockup__toggle--on .mockup__toggle-thumb {
  left: 15px;
}

/* Checkbox */
.mockup__checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid #666;
  border-radius: 3px;
  flex-shrink: 0;
  margin-right: 10px;
  position: relative;
}

.mockup__checkbox--checked {
  background: #4285f4;
  border-color: #4285f4;
}

.mockup__checkbox--checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Section header (Firefox iOS style) */
.mockup__section-header {
  font-size: 9px;
  font-family: 'Roboto', sans-serif;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 16px 2px;
}

/* Search row (Samsung Internet style) */
.mockup__search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  margin: 0 10px 4px;
  background: #2a2b30;
  border-radius: 6px;
}

/* Decorative arrow */
.decor-arrow {
  position: absolute;
  right: 20px;
  top: -120px;
  z-index: 6;
  pointer-events: none;
}

/* --- Panel (bottom content) --- */
.panel {
  background: var(--night-90);
  border-top: 1px solid var(--border-white-15);
  border-radius: 20px 20px 0 0;
  padding: 20px 20px 30px;
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}

/* --- Screens --- */
.screen {
  display: none;
}

.screen--active {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --- Landing screen --- */
.panel__title {
  font-family: 'Impact', 'Arial Black', var(--font);
  font-size: 36px;
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  line-height: 1;
  /* Replace with TT Bluescreens if available:
     font-family: 'TT Bluescreens Trial Variable', 'Impact', sans-serif; */
}

.advantages {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.advantage {
  display: flex;
  align-items: flex-start;
  gap: 5px;
}

.advantage__img {
  width: 38px;
  height: 38px;
  border-radius: 100px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.advantage__img img {
  display: block;
}

.advantage__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 4px;
}

.advantage__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}

.advantage__desc {
  font-size: 12px;
  font-weight: 400;
  color: var(--gray-90);
}

/* --- Done screen --- */
.done-info {
  display: flex;
  align-items: flex-start;
  gap: 5px;
}

.done-info__icon {
  width: 38px;
  height: 38px;
  border-radius: 100px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.done-info__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 4px;
}

.done-info__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}

.done-info__desc {
  font-size: 12px;
  font-weight: 400;
  color: var(--gray-90);
}

/* --- Instruction screen --- */
.instruction-header {
  display: flex;
  align-items: flex-start;
  gap: 5px;
}

.instruction-header__icon {
  width: 38px;
  height: 38px;
  border-radius: 100px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.instruction-header__text {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  padding: 0 4px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-left: 20px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 5px;
}

.step__number {
  width: 32px;
  height: 32px;
  background: var(--night-80);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  flex-shrink: 0;
}

.step__text {
  font-size: 12px;
  font-weight: 400;
  color: var(--gray-90);
  padding: 0 4px;
  display: flex;
  align-items: center;
  min-height: 32px;
}

/* --- Buttons --- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  transition: opacity 0.15s;
}

.btn:active {
  opacity: 0.8;
}

.btn--primary {
  background: var(--neon-lime);
  color: var(--night-100);
}

.btn--primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn--tertiary {
  background: var(--night-80);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
}

/* --- Footer --- */
.footer {
  background: var(--night-90);
  padding: 16px;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4px;
  flex-shrink: 0;
  z-index: 5;
}

/* --- Responsive --- */
@media (max-height: 600px) {
  .cover__bell {
    max-width: 80px;
  }

  .panel__title {
    font-size: 28px;
  }
}
