/* ═══════════════════════════════════════════
   ADJARABET PROMO LANDING
   Colors: exact from adjarabet.am production
   ═══════════════════════════════════════════ */

:root {
  --g7: #111314;  --g6: #181a1b;  --g5: #232527;
  --g4: #373c3f;  --g3: #585f63;  --g2: #90989d;
  --g1: #c0c5c8;  --white: #f8f8f8;
  --pri: #039855;  --pri5: #0a5635;  --pri6: #0e3022;
  --pri-h: #04a85e;
  --r: 8px;
  --f: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html { height:100%; }
body { font-family:var(--f); background:var(--g7); color:var(--white); min-height:100%; overflow-x:hidden; -webkit-font-smoothing:antialiased; }

.page { display:none; }
.page.active { display:flex; }

/* ═══════════════════════════════════════════
   GIFTS PAGE
   ═══════════════════════════════════════════ */
.gifts-page {
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: radial-gradient(ellipse at 50% 30%, #1a1d20 0%, var(--g7) 70%);
}

/* ── Logo inside container ── */
.gifts-logo {
  display: block;
  height: 160px;
  width: auto;
  margin: 0 auto 24px;
}

.gifts-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px 32px;
}

.gifts-container {
  max-width: 520px;
  width: 100%;
  text-align: center;
}

/* ── Hero ── */
.hero-section { margin-bottom: 24px; }

.hero-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.title-gift-icon {
  width: 28px;
  height: 28px;
  color: var(--pri);
  flex-shrink: 0;
}

.hero-sub {
  font-size: 14px;
  color: var(--g2);
  line-height: 1.5;
}

/* ── Gift Grid ── */
.gifts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 auto 16px;
}

/* ── Single gift ── */
.gift-card {
  position: relative;
  aspect-ratio: 1;
  cursor: pointer;
  border-radius: var(--r);
  background: var(--g5);
  border: 1px solid var(--g4);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.gift-card:hover {
  transform: translateY(-4px);
  border-color: var(--pri5);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.gift-card:active {
  transform: scale(0.96);
  transition-duration: 0.08s;
}

.gift-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
  transition: transform 0.2s;
}

.gift-card:hover img {
  transform: scale(1.08);
}



.gifts-footer {
  font-size: 12px;
  color: var(--g3);
}


/* ═══════════════════════════════════════════
   BONUS MODAL
   ═══════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  visibility: hidden; opacity: 0;
  transition: visibility 0.25s, opacity 0.25s;
}
.modal-overlay.active { visibility: visible; opacity: 1; }

.modal-bg {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.85);
}

.modal-card {
  position: relative;
  max-width: 360px; width: 90%;
  background: var(--g6);
  border: 1px solid var(--g4);
  border-radius: 12px;
  padding: 32px 24px 28px;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34,1.2,0.64,1);
  overflow: hidden;
}
.modal-overlay.active .modal-card { transform: scale(1); }

.modal-inner { position: relative; z-index: 2; text-align: center; }

.modal-gift-img {
  width: 100px; height: 100px;
  object-fit: contain;
  margin: 0 auto 16px;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}

.modal-label {
  font-size: 24px; font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.modal-amount {
  font-size: 36px; font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.modal-type {
  font-size: 14px; font-weight: 600;
  color: #54a883;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 4px 0 16px;
}

.modal-desc {
  font-size: 13px;
  color: var(--g2);
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal-btn {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(248,248,248,0.8);
  border-radius: var(--r);
  background: var(--pri);
  color: var(--white);
  font-size: 14px; font-weight: 600;
  font-family: var(--f);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: background 0.15s;
}
.modal-btn:hover { background: var(--pri-h); }

/* Confetti */
.confetti-box {
  position: absolute; inset: 0;
  overflow: hidden; pointer-events: none; z-index: 1;
}
.confetti-p {
  position: absolute;
  width: 6px; height: 10px;
  border-radius: 1px;
  top: -12px;
  animation: cfall linear forwards;
}
@keyframes cfall {
  0% { transform: translateY(0) rotate(0); opacity:1; }
  100% { transform: translateY(400px) rotate(540deg); opacity:0; }
}


/* ═══════════════════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════════════════ */
.login-page {
  min-height: 100vh;
  align-items: center; justify-content: center;
  padding: 20px;
  background: var(--g7);
}

.login-wrap {
  max-width: 420px; width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--g6);
  border: 1px solid var(--g5);
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { opacity:0; transform:translateY(10px); }
  to { opacity:1; transform:translateY(0); }
}

/* Banner */
.login-banner {
  position: relative;
  width: 100%; height: 170px;
  overflow: hidden;
}
.banner-img { width:100%; height:100%; object-fit:cover; }
.banner-fade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(17,19,20,0.15), var(--g6));
}
.banner-logo {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  height: 32px; width: auto;
}

/* Form area */
.login-form-area { padding: 24px 20px 28px; }

.login-heading {
  font-size: 18px; font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
  color: var(--white);
}

form { display: flex; flex-direction: column; gap: 12px; }

/* Input field */
.field {
  display: flex; align-items: center;
  background: var(--g5);
  border-radius: var(--r);
  border: 1px solid var(--g4);
  height: 48px;
  transition: background 0.15s, border-color 0.15s;
}
.field:hover { background: var(--g4); }
.field:focus-within { background: var(--g4); border-color: var(--g3); }

.field-icon {
  display: flex; align-items: center; justify-content: center;
  width: 44px; min-width: 44px; height: 100%;
  color: var(--g2);
}

.field-body { flex: 1; position: relative; height: 100%; }

.field-input {
  width: 100%; height: 100%;
  padding: 16px 0 4px;
  background: transparent;
  border: none; outline: none;
  color: var(--white);
  font-size: 14px;
  font-family: var(--f);
}

.field-label {
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 13px; color: var(--g2);
  pointer-events: none;
  transition: all 0.2s;
}
.field-input:focus ~ .field-label,
.field-input:not(:placeholder-shown) ~ .field-label {
  top: 10px; transform: translateY(0);
  font-size: 10px; color: var(--g1);
}

.eye-btn {
  display: flex; align-items: center; justify-content: center;
  width: 40px; min-width: 40px; height: 100%;
  background: transparent; border: none;
  color: var(--g2); cursor: pointer;
}
.eye-btn:hover { color: var(--g1); }

/* Error */
.field-error {
  display: none;
  padding: 8px 12px;
  border-radius: var(--r);
  background: rgba(185,28,28,0.15);
  border: 1px solid rgba(185,28,28,0.3);
  color: #f87171; font-size: 12px;
  text-align: center;
}
.field-error.visible { display: block; }

/* Recovery */
.recover-row { display: flex; justify-content: space-between; }
.recover-link { font-size: 11px; color: var(--g2); cursor: default; user-select: none; }

/* Login button */
.btn-login {
  position: relative;
  width: 100%; height: 48px;
  border: 1px solid rgba(248,248,248,0.8);
  border-radius: var(--r);
  background: var(--pri);
  color: var(--white);
  font-size: 14px; font-weight: 600;
  font-family: var(--f);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: background 0.15s;
  margin-top: 4px;
}
.btn-login:hover { background: var(--pri-h); }
.btn-login.loading { pointer-events: none; opacity: 0.7; }
.btn-login.loading .btn-login-text { visibility: hidden; }
.btn-spinner {
  display: none;
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.5s linear infinite;
}
.btn-login.loading .btn-spinner { display: block; }
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }

/* Separator */
.sep {
  display: flex; align-items: center; gap: 10px;
  margin: 18px 0 14px;
}
.sep-line { flex: 1; height: 1px; background: var(--g4); }
.sep-text { font-size: 12px; color: var(--g3); white-space: nowrap; }

/* Register */
.btn-register {
  display: block;
  width: 100%; height: 48px;
  line-height: 48px;
  text-align: center;
  border-radius: var(--r);
  background: var(--g4);
  color: var(--white);
  font-size: 14px; font-weight: 600;
  text-transform: uppercase;
  cursor: default;
  user-select: none;
}

.no-card-block {
  text-align: center;
  padding: 20px 0;
}
.no-card-icon {
  margin: 0 auto 16px;
  width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--pri6);
  border: 1px solid var(--pri5);
}
.no-card-text {
  font-size: 14px;
  color: var(--g1);
  line-height: 1.6;
  margin-bottom: 20px;
}
.btn-link-card {
  width: 100%; height: 48px;
  border: 1px solid rgba(248,248,248,0.8);
  border-radius: var(--r);
  background: var(--pri);
  color: var(--white);
  font-size: 14px; font-weight: 600;
  font-family: var(--f);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: background 0.15s;
}
.btn-link-card:hover { background: var(--pri-h); }


/* ═══════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════ */
.toast {
  position: fixed; bottom: 20px; left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--g5); border: 1px solid var(--g4);
  color: var(--white); padding: 10px 20px;
  border-radius: var(--r); font-size: 13px;
  z-index: 9999; opacity: 0; visibility: hidden;
  transition: all 0.25s; pointer-events: none;
  max-width: 92%; text-align: center;
}
.toast.visible { opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }
.toast.success { border-color:rgba(3,152,85,0.4); background:rgba(10,86,53,0.7); }


/* ── Responsive ── */
@media (max-width: 420px) {
  .gifts-grid { gap: 10px; }
  .hero-title { font-size: 24px; }
  .gift-card { padding: 10px; }
  .login-form-area { padding: 20px 16px 24px; }
  .gifts-logo { height: 130px; }
}

@media (min-width: 768px) {
  .gifts-logo { height: 200px; }
  .hero-title { font-size: 34px; }
  .title-gift-icon { width: 34px; height: 34px; }
  .gifts-grid { gap: 16px; }
}
