/* ============================================================
   FILE    : assets/css/coupon.css
   PURPOSE : Premium coupon UI — all prefixed .gc- (geo-coupon)
   ============================================================ */

/* ── Coupon chip row (public coupons on signup/upgrade) ────── */
.gc-chips-wrap {
  margin-bottom: 14px;
}
.gc-chips-label {
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  color: var(--text-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.gc-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.gc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(59,130,246,.08);
  border: 1px dashed rgba(59,130,246,.35);
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 12px;
  font-family: var(--font-mono, monospace);
  color: #60a5fa;
  cursor: pointer;
  transition: all .2s;
  font-weight: 600;
}
.gc-chip:hover {
  background: rgba(59,130,246,.16);
  border-color: #3b82f6;
  transform: translateY(-1px);
}
.gc-chip-tag {
  background: rgba(34,197,94,.15);
  color: #4ade80;
  font-size: 10px;
  padding: 1px 7px;
  border-radius: 99px;
  font-weight: 700;
}

/* ── Coupon input row ───────────────────────────────────────── */
.gc-input-wrap {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin-bottom: 10px;
}
.gc-input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255,255,255,.04);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: 10px;
  color: #f1f5f9;
  font-size: 14px;
  font-family: var(--font-mono, monospace);
  font-weight: 600;
  letter-spacing: 1px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  text-transform: uppercase;
}
.gc-input::placeholder {
  color: #334155;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.gc-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.gc-input.gc-input--applied {
  border-color: #22c55e;
  background: rgba(34,197,94,.05);
  color: #4ade80;
}
.gc-input.gc-input--error {
  border-color: #ef4444;
  background: rgba(239,68,68,.05);
}
.gc-apply-btn {
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  font-family: var(--font, inherit);
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  box-shadow: 0 2px 8px rgba(59,130,246,.3);
}
.gc-apply-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(59,130,246,.4); }
.gc-apply-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.gc-remove-btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(239,68,68,.25);
  background: rgba(239,68,68,.08);
  color: #f87171;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.gc-remove-btn:hover { background: rgba(239,68,68,.15); }

/* ── Status messages ────────────────────────────────────────── */
.gc-status {
  font-size: 12px;
  min-height: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all .25s;
}
.gc-status--validating { color: #60a5fa; }
.gc-status--applied    { color: #4ade80; font-weight: 600; }
.gc-status--error      { color: #f87171; }

/* ── Applied coupon badge ───────────────────────────────────── */
.gc-applied-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.25);
  border-radius: 10px;
  padding: 8px 14px;
  margin-bottom: 12px;
}
.gc-applied-badge-code {
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  font-weight: 700;
  color: #4ade80;
  letter-spacing: 1px;
}
.gc-applied-badge-label {
  background: rgba(34,197,94,.2);
  color: #4ade80;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  font-family: var(--font-mono, monospace);
}
.gc-applied-badge-remove {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
  margin-left: 2px;
  transition: color .2s;
}
.gc-applied-badge-remove:hover { color: #f87171; }

/* ── Pricing summary card ───────────────────────────────────── */
.gc-summary {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.gc-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.gc-summary-label { color: var(--text-muted, #64748b); }
.gc-summary-val   { font-weight: 600; color: var(--text-secondary, #94a3b8); font-family: var(--font-mono, monospace); }
.gc-summary-row--discount .gc-summary-val { color: #4ade80; }
.gc-summary-row--total {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 8px;
  margin-top: 2px;
}
.gc-summary-row--total .gc-summary-label { font-weight: 700; color: var(--text-primary, #f1f5f9); font-size: 14px; }
.gc-summary-row--total .gc-summary-val   { font-weight: 900; color: #fff; font-size: 16px; font-family: var(--font-mono, monospace); }

/* ── Spinner for apply button ───────────────────────────────── */
@keyframes gc-spin { to { transform: rotate(360deg); } }
.gc-spinner {
  display: inline-block;
  width: 12px; height: 12px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: gc-spin .7s linear infinite;
  vertical-align: middle;
  margin-right: 4px;
}