/*
  File: WEB/css/coupon-create.css
  Description: Coupon creation page — hero, form builder, live preview, checkout sidebar.
*/

/* ── Hero ────────────────────────────────────────────────────────────────── */
.cc-hero {
  background: linear-gradient(155deg, #150e04 0%, #0e0b07 70%);
  border-bottom: 1px solid rgba(200, 137, 42, .22);
  padding: 70px 24px 50px;
  position: relative;
  overflow: hidden;
}
.cc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(200, 137, 42, .09), transparent 70%);
  pointer-events: none;
}
.cc-hero-inner { position: relative; max-width: 740px; margin: 0 auto; }
.cc-kicker {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #c8892a;
  margin: 0 0 10px;
  display: block;
}
.cc-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 700;
  color: #f6ead7;
  margin: 0 0 12px;
  line-height: .95;
}
.cc-sub {
  font-size: 14px;
  color: rgba(246, 234, 215, .6);
  max-width: 520px;
  line-height: 1.6;
  margin: 0;
}

/* ── Main layout ─────────────────────────────────────────────────────────── */
.cc-main { max-width: 1200px; margin: 0 auto; padding: 32px 20px 60px; }
.cc-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) {
  .cc-layout { grid-template-columns: 1fr; }
}

/* ── Builder panel ───────────────────────────────────────────────────────── */
.cc-builder-panel {
  background: rgba(18, 11, 4, .95);
  border: 1px solid rgba(200, 137, 42, .22);
  border-radius: 12px;
  padding: 28px 28px 32px;
}
.cc-panel-title {
  font-family: var(--font-display);
  font-size: 20px;
  color: #f6ead7;
  margin: 0 0 22px;
}
.cc-section-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #c8892a;
  border-bottom: 1px solid rgba(200, 137, 42, .18);
  padding-bottom: 6px;
  margin: 20px 0 14px;
}
.cc-section-label:first-child { margin-top: 0; }

/* Form rows */
.cc-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.cc-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.cc-field > span {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: rgba(246, 234, 215, .5);
}
.cc-field em { color: #c8892a; font-style: normal; }
.cc-field-note { font-size: 11px; color: rgba(246, 234, 215, .35); margin-top: 4px; }

/* Inputs */
.cc-input, .cc-select, .cc-textarea {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(200, 137, 42, .2);
  border-radius: 7px;
  color: #f6ead7;
  font-family: var(--font-ui);
  font-size: 13px;
  padding: 9px 12px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color .14s;
}
.cc-input:focus, .cc-select:focus, .cc-textarea:focus { outline: none; border-color: #c8892a; }
.cc-input--error { border-color: #e74c3c !important; }
.cc-textarea { resize: vertical; }
.cc-select option { background: #1a1208; }

.cc-amount-wrap, .cc-code-wrap { position: relative; display: flex; align-items: center; }
.cc-amount-prefix {
  position: absolute;
  right: 12px;
  color: #c8892a;
  font-weight: 700;
  pointer-events: none;
  font-size: 14px;
}
.cc-input--amount { padding-right: 28px; }
.cc-code-wrap .cc-input--code { flex: 1; border-radius: 7px 0 0 7px; }
.cc-code-gen-btn {
  background: rgba(200, 137, 42, .15);
  border: 1px solid rgba(200, 137, 42, .35);
  border-left: none;
  color: #c8892a;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  padding: 9px 14px;
  cursor: pointer;
  border-radius: 0 7px 7px 0;
  white-space: nowrap;
  transition: background .12s;
}
.cc-code-gen-btn:hover { background: rgba(200, 137, 42, .25); }

/* Redemption radio chips */
.cc-redemption-options { display: flex; flex-direction: column; gap: 8px; }
.cc-radio-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(200, 137, 42, .16);
  border-radius: 7px;
  padding: 9px 12px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: rgba(246, 234, 215, .6);
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.cc-radio-chip:has(input:checked) {
  background: rgba(200, 137, 42, .12);
  border-color: rgba(200, 137, 42, .45);
  color: #f6ead7;
}
.cc-radio-chip input { accent-color: #c8892a; }

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.cc-sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 20px; }

/* Coupon preview */
.cc-preview-wrap {}
.cc-preview-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(246, 234, 215, .4);
  margin-bottom: 8px;
}
.cc-coupon-preview {
  background: linear-gradient(135deg, #1c1005, #0e0b07);
  border: 1px solid rgba(200, 137, 42, .4);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  gap: 0;
  min-height: 110px;
  box-shadow: 0 0 24px rgba(200, 137, 42, .08);
  position: relative;
}
.cc-coupon-preview::before {
  content: '';
  position: absolute;
  left: 80px;
  top: 0; bottom: 0;
  width: 1px;
  background: repeating-linear-gradient(to bottom, transparent, transparent 6px, rgba(200, 137, 42, .2) 6px, rgba(200, 137, 42, .2) 12px);
}
.cc-preview-logo {
  width: 80px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #c8892a;
  background: rgba(200, 137, 42, .07);
  letter-spacing: .02em;
}
.cc-preview-body { flex: 1; padding: 14px 16px; }
.cc-preview-biz {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #c8892a;
  margin-bottom: 5px;
}
.cc-preview-headline {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #f6ead7;
  line-height: 1.1;
  margin-bottom: 5px;
}
.cc-preview-desc {
  font-size: 11px;
  color: rgba(246, 234, 215, .5);
  line-height: 1.45;
  margin-bottom: 10px;
}
.cc-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.cc-preview-code {
  background: rgba(200, 137, 42, .18);
  border: 1px dashed rgba(200, 137, 42, .5);
  color: #f5d087;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .1em;
  padding: 4px 12px;
  border-radius: 4px;
}
.cc-preview-expiry { font-size: 11px; color: rgba(246, 234, 215, .35); }

/* Checkout box */
.cc-checkout-box {
  background: rgba(18, 11, 4, .95);
  border: 1px solid rgba(200, 137, 42, .3);
  border-radius: 12px;
  padding: 22px 22px 20px;
}
.cc-checkout-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #f6ead7;
  margin-bottom: 14px;
}
.cc-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 13px;
  color: rgba(246, 234, 215, .6);
  padding: 10px 0;
  border-top: 1px solid rgba(200, 137, 42, .1);
  border-bottom: 1px solid rgba(200, 137, 42, .1);
  margin-bottom: 12px;
}
.cc-price-row strong { font-size: 20px; color: #f5d087; font-family: var(--font-display); }
.cc-checkout-note { font-size: 12px; color: rgba(246, 234, 215, .45); line-height: 1.5; margin-bottom: 16px; }
.cc-payment-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(246, 234, 215, .4);
  margin-bottom: 10px;
}
.cc-payment-methods { display: flex; flex-direction: column; gap: 8px; }

.cc-pay-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background .14s, transform .1s;
  text-align: left;
}
.cc-pay-btn:hover { transform: translateY(-1px); }
.cc-pay-btn--bws { background: #c8892a; color: #0e0b07; }
.cc-pay-btn--bws:hover { background: #d99f3a; }
.cc-pay-btn--paypal { background: #003087; color: #fff; }
.cc-pay-btn--paypal:hover { background: #0045b5; }
.cc-pay-btn--cashapp { background: #00d54b; color: #0e0b07; }
.cc-pay-btn--cashapp:hover { background: #00e855; }

.cc-pay-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
}
.cc-pay-icon--pp { background: #009cde; color: #fff; }
.cc-pay-icon--ca { background: rgba(0, 0, 0, .2); }

.cc-pay-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.5;
  background: rgba(200, 137, 42, .1);
  border: 1px solid rgba(200, 137, 42, .25);
  color: #f6ead7;
}
.cc-pay-status[data-type="error"] { background: rgba(231, 76, 60, .1); border-color: rgba(231, 76, 60, .3); color: #e74c3c; }
.cc-pay-status[data-type="success"] { background: rgba(46, 204, 113, .1); border-color: rgba(46, 204, 113, .3); color: #2ecc71; }
.cc-pay-status[data-type="pending"] { background: rgba(200, 137, 42, .08); border-color: rgba(200, 137, 42, .2); color: rgba(246, 234, 215, .7); }

/* Next steps */
.cc-next-steps {
  background: rgba(255, 255, 255, .025);
  border: 1px solid rgba(200, 137, 42, .1);
  border-radius: 10px;
  padding: 18px 18px 14px;
}
.cc-next-title {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: rgba(246, 234, 215, .4);
  margin-bottom: 10px;
}
.cc-next-list {
  padding-left: 16px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.cc-next-list li { font-size: 12px; color: rgba(246, 234, 215, .55); line-height: 1.45; }

@media (max-width: 700px) {
  .cc-form-row { grid-template-columns: 1fr; }
  .cc-builder-panel { padding: 18px 14px 22px; }
}
