.ucoup-card{
  max-width: 760px;
  margin: 24px auto;
  padding: 20px 22px 18px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15,23,42,.12);
  border: 1px solid rgba(148,163,184,.35);
  font-family: system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
}

.ucoup-title{
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

/* Redeem UI */

.ucoup-redeem-shell{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.ucoup-field-row{
  margin-bottom: 10px;
}

.ucoup-label{
  display:block;
  font-size:.86rem;
  font-weight:600;
  color:#4b5563;
  margin-bottom:4px;
}

.ucoup-input{
  width:100%;
  border-radius:999px;
  border:1px solid #d1d5db;
  padding:8px 14px;
  font-size:.92rem;
  outline:none;
  transition:border-color .15s ease, box-shadow .15s ease;
}

.ucoup-input:focus{
  border-color:#1795F1;
  box-shadow:0 0 0 1px rgba(23,149,241,.25);
}

.ucoup-actions{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:4px;
}

.ucoup-btn,
.ucoup-btn-secondary{
  border:none;
  border-radius:999px;
  padding:8px 16px;
  font-size:.9rem;
  font-weight:600;
  cursor:pointer;
  transition:transform .1s ease, box-shadow .1s ease, filter .1s ease;
}

.ucoup-btn{
  background:linear-gradient(180deg,#1795F1,#0B63D1);
  color:#fff;
  box-shadow:0 10px 24px rgba(23,149,241,.45);
}

.ucoup-btn-secondary{
  background:#eef2ff;
  color:#1d4ed8;
  box-shadow:0 6px 18px rgba(129,140,248,.35);
}

.ucoup-btn:hover,
.ucoup-btn-secondary:hover{
  filter:brightness(1.04);
  transform:translateY(-1px);
}

.ucoup-btn:disabled{
  opacity:.7;
  cursor:default;
  transform:none;
  box-shadow:none;
}

.ucoup-status{
  font-size:.82rem;
  color:#6b7280;
}

/* Apple Pay style result */

.ucoup-redeem-result{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:12px;
}

.ucoup-paymark{
  width:58px;
  height:58px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#e5f2ff;
  box-shadow:0 12px 30px rgba(23,149,241,.35);
  position:relative;
}

.ucoup-paymark-icon{
  width:34px;
  height:34px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#1795F1;
  color:#fff;
  position:relative;
  overflow:hidden;
}

.ucoup-icon-check,
.ucoup-icon-x{
  width:20px;
  height:20px;
  fill:none;
  stroke:#fff;
  stroke-width:2;
  transition:opacity .18s ease, transform .18s ease;
}

.ucoup-icon-check path{
  fill:#fff;
  stroke:none;
}

.ucoup-icon-x{
  position:absolute;
}

.ucoup-paymark[data-state="success"] .ucoup-icon-check{
  opacity:1;
  transform:translateY(0);
}

.ucoup-paymark[data-state="success"] .ucoup-icon-x{
  opacity:0;
  transform:translateY(10px);
}

.ucoup-paymark[data-state="error"]{
  background:#fee2e2;
  box-shadow:0 12px 30px rgba(248,113,113,.4);
}

.ucoup-paymark[data-state="error"] .ucoup-paymark-icon{
  background:#ef4444;
}

.ucoup-paymark[data-state="error"] .ucoup-icon-check{
  opacity:0;
  transform:translateY(-10px);
}

.ucoup-paymark[data-state="error"] .ucoup-icon-x{
  opacity:1;
  transform:translateY(0);
}

.ucoup-prize-text{
  font-size:.95rem;
  color:#111827;
  line-height:1.4;
}

/* Dashboard */

.ucoup-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.ucoup-tabs{
  display:inline-flex;
  padding:3px;
  border-radius:999px;
  background:#f3f4f6;
}

.ucoup-tab-btn{
  border:none;
  border-radius:999px;
  padding:6px 14px;
  font-size:.84rem;
  font-weight:600;
  background:transparent;
  color:#4b5563;
  cursor:pointer;
}

.ucoup-tab-active{
  background:#fff;
  color:#0f172a;
  box-shadow:0 4px 14px rgba(148,163,184,.45);
}

.ucoup-search-wrap{
  flex:1;
  text-align:right;
}

.ucoup-search{
  max-width:220px;
  width:100%;
  border-radius:999px;
  border:1px solid #d1d5db;
  padding:6px 12px;
  font-size:.84rem;
}

.ucoup-list{
  border-radius:18px;
  border:1px solid rgba(148,163,184,.45);
  background:#fff;
  box-shadow:0 12px 32px rgba(15,23,42,.12);
  padding:10px 10px 6px;
}

.ucoup-row{
  border-radius:12px;
  padding:9px 10px;
  display:flex;
  flex-direction:column;
  gap:4px;
  transition:background .1s ease;
}

.ucoup-row + .ucoup-row{
  border-top:1px solid #e5e7eb;
}

.ucoup-row-main{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.ucoup-code{
  font-weight:700;
  letter-spacing:.08em;
  font-size:.9rem;
  color:#111827;
}

.ucoup-name{
  font-size:.88rem;
  color:#4b5563;
}

.ucoup-meta{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:8px;
  font-size:.8rem;
  color:#6b7280;
}

.ucoup-meta-left div{
  line-height:1.3;
}

.ucoup-btn-small{
  border:none;
  border-radius:999px;
  padding:5px 12px;
  font-size:.78rem;
  font-weight:600;
  background:linear-gradient(180deg,#1795F1,#0B63D1);
  color:#fff;
  cursor:pointer;
  box-shadow:0 8px 20px rgba(23,149,241,.45);
}

.ucoup-btn-small:hover{
  filter:brightness(1.05);
}

.ucoup-tag{
  border-radius:999px;
  padding:3px 10px;
  font-size:.74rem;
  font-weight:600;
}

.ucoup-tag-muted{
  background:#e5e7eb;
  color:#4b5563;
}

.ucoup-empty{
  padding:8px 4px;
  font-size:.84rem;
  color:#6b7280;
}

.ucoup-footer-note{
  margin-top:7px;
  font-size:.8rem;
  color:#6b7280;
}

@media (max-width:700px){
  .ucoup-card{
    margin:16px;
    padding:16px 14px 14px;
  }
  .ucoup-toolbar{
    flex-direction:column;
    align-items:stretch;
  }
  .ucoup-search-wrap{
    text-align:left;
  }
  .ucoup-meta{
    flex-direction:column;
    align-items:flex-start;
  }
}
