/* ============================================
   get-coins.css — Get Coins view
   ============================================ */

/* ---- Page layout: main column + ad rail ---- */
.get-coins-layout {
  display: flex;
  width: 100%;
}

.get-coins-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px;
}

/* Kept for any legacy references — no longer the outermost wrapper */
.get-coins-view {
  width: 100%;
}

.get-coins-title {
  font-size: 22px;
  font-weight: 700;
  color: #18181b;
  margin: 0 0 6px;
  text-align: center;
}

/* ---- Balance pill ---- */
.get-coins-balance {
  display: none; /* shown via JS when user is signed in */
  align-items: center;
  gap: 8px;
  background: var(--color-background-primary);
  border: 0.5px solid #e5e7eb;
  border-radius: 999px;
  padding: 7px 16px;
  margin: 12px 0 4px;
}

.get-coins-balance-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.get-coins-balance-label {
  font-size: 14px;
  color: #6b7280;
}

.get-coins-balance-amount {
  font-size: 15px;
  font-weight: 500;
  color: #6D28D9;
}

.get-coins-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 24px;
  text-align: center;
}

/* ---- Status bar ---- */
.get-coins-status {
  display: none;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  width: 100%;
  max-width: 560px;
  box-sizing: border-box;
}

.get-coins-status--success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.get-coins-status--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.get-coins-status--neutral {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}

/* ---- Package grid ---- */
.get-coins-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  gap: 20px;
}

/* ---- Tile ---- */
.get-coins-tile {
  position: relative;
  background: #ffffff;
  border: 0.5px solid #e5e7eb;
  border-radius: 14px;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.get-coins-tile--featured {
  border: 2px solid #14B8A6;
}

/* ---- Best value badge ---- */
.get-coins-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: #14B8A6;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ---- Coin icon ---- */
.get-coins-tile-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
}

/* ---- Coin count ---- */
.get-coins-tile-count {
  font-size: 28px;
  font-weight: 700;
  color: #18181b;
  line-height: 1.2;
}

.get-coins-tile-label {
  font-size: 13px;
  font-weight: 400;
  color: #6b7280;
}

/* ---- Buy button (non-featured) ---- */
.get-coins-buy-btn {
  margin-top: 4px;
  width: 100%;
  padding: 12px 0;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  border: 1.5px solid #6D28D9;
  background: transparent;
  color: #6D28D9;
  transition: background 0.15s, color 0.15s;
}

.get-coins-buy-btn:hover:not(:disabled) {
  background: #6D28D9;
  color: #ffffff;
}

.get-coins-buy-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---- Buy button (featured) ---- */
.get-coins-tile--featured .get-coins-buy-btn {
  background: #6D28D9;
  color: #ffffff;
  border-color: #6D28D9;
}

.get-coins-tile--featured .get-coins-buy-btn:hover:not(:disabled) {
  background: #5b21b6;
  border-color: #5b21b6;
}

/* ---- Signed out / empty states ---- */
.get-coins-signed-out,
.get-coins-empty {
  font-size: 15px;
  color: #6b7280;
  text-align: center;
  padding: 40px 0;
  grid-column: 1 / -1;
}

/* ---- Footnote ---- */
.get-coins-footnote {
  font-size: 13px;
  color: #6b7280;
  text-align: center;
  max-width: 560px;
  width: 100%;
  margin: 1.5rem auto 0;
}

/* ---- Ad rail (scoped — mirrors feed.css rules for safety) ---- */
.get-coins-layout .ad-panel {
  width: 220px;
  flex-shrink: 0;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.get-coins-layout .ad-panel-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.get-coins-layout .ad-panel-placeholder {
  flex: 1;
  border: 1.5px dashed var(--color-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--color-text-muted);
  min-height: 360px;
}

/* ============================================
   Mobile
   ============================================ */
@media (max-width: 768px) {
  .get-coins-layout {
    flex-direction: column;
  }

  .get-coins-main {
    flex: unset;
    padding: 20px 16px;
  }

  .get-coins-balance {
    padding: 6px 14px;
  }

  .get-coins-balance-icon {
    width: 20px;
    height: 20px;
  }

  .get-coins-balance-label {
    font-size: 13px;
  }

  .get-coins-balance-amount {
    font-size: 14px;
  }

  .get-coins-layout .ad-panel {
    display: none !important;
  }

  .get-coins-grid {
    grid-template-columns: 1fr;
    max-width: none;
    gap: 12px;
  }

  /* Tiles become horizontal rows: icon + count left, buy button right */
  .get-coins-tile {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 16px;
    text-align: left;
  }

  /* Extra top padding on featured to clear badge */
  .get-coins-tile--featured {
    padding-top: 22px;
  }

  .get-coins-badge {
    top: -11px;
    left: 16px;
    transform: none;
  }

  .get-coins-tile-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }

  .get-coins-tile-count {
    font-size: 17px;
    flex: 1;
  }

  /* Button floats to the right */
  .get-coins-buy-btn {
    margin-top: 0;
    margin-left: auto;
    width: auto;
    padding: 9px 18px;
    flex-shrink: 0;
  }

  .get-coins-signed-out,
  .get-coins-empty {
    padding: 32px 0;
  }

  .get-coins-subtitle {
    font-size: 13px;
  }

  .get-coins-footnote {
    font-size: 12px;
    max-width: none;
    text-align: center;
    margin-top: 1rem;
  }
}
