.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: var(--cb-radius-pill);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s ease, opacity 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--cb-black);
  color: var(--cb-white);
}

.btn-secondary {
  background: var(--cb-sand-dark);
  color: var(--cb-black);
}

.btn-link {
  background: none;
  color: var(--cb-black);
  text-decoration: underline;
  font-weight: 600;
  width: auto;
  padding: 8px 0;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--cb-sand-dark);
  border-radius: var(--cb-radius-sm);
  background: var(--cb-white);
  font-size: 16px;
}

.field input:focus {
  outline: 2px solid var(--cb-yellow);
  outline-offset: -1px;
}

.card {
  background: var(--cb-white);
  border-radius: var(--cb-radius-lg);
  padding: 20px;
  margin-bottom: 16px;
}

.points-card {
  background: var(--cb-black);
  color: var(--cb-white);
  border-radius: var(--cb-radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.points-card .points-label {
  font-size: 13px;
  color: var(--cb-sand-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.points-card .points-value {
  font-size: 40px;
  font-weight: 800;
  color: var(--cb-yellow);
  line-height: 1;
  margin-bottom: 12px;
}

.points-card .points-tier {
  display: inline-block;
  background: var(--cb-yellow);
  color: var(--cb-black);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--cb-radius-pill);
}

.points-card.empty {
  background: var(--cb-sand-dark);
  color: var(--cb-black);
}

.order-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--cb-white);
  border-radius: var(--cb-radius-md);
  padding: 16px;
  margin-bottom: 12px;
}

.order-card .order-desc {
  font-weight: 600;
}

.order-card .order-meta {
  font-size: 13px;
  color: var(--cb-text-muted);
}

.order-card .order-total {
  font-weight: 700;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: flex;
  justify-content: space-around;
  background: var(--cb-black);
  padding: 12px 8px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
}

.nav-wave {
  position: absolute;
  top: -13px;
  left: 0;
  right: 0;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='14' viewBox='0 0 44 14'%3E%3Cpath d='M0,14 C 8,-2 14,-2 22,10 C 30,-2 36,-2 44,14 Z' fill='%23F5C842'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 44px 14px;
}

.bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(245, 244, 240, 0.5);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: var(--cb-radius-pill);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.bottom-nav .nav-item.active {
  color: var(--cb-yellow);
  background: rgba(245, 200, 66, 0.14);
}

.bottom-nav .nav-item .nav-icon {
  display: flex;
  width: 22px;
  height: 22px;
}

.bottom-nav .nav-item .nav-icon svg {
  width: 100%;
  height: 100%;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state .emoji {
  font-size: 40px;
  margin-bottom: 12px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.tabs button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: var(--cb-radius-pill);
  background: var(--cb-sand-dark);
  font-weight: 700;
  cursor: pointer;
}

.tabs button.active {
  background: var(--cb-black);
  color: var(--cb-white);
}

/* --- Consensi, interruttori, azioni privacy --- */
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--cb-black);
}

.check input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 0;
  accent-color: var(--cb-black);
}

.check small {
  display: block;
  color: var(--cb-text-muted);
}

.check a {
  font-weight: 600;
}

.btn-danger {
  background: var(--cb-danger);
  color: var(--cb-white);
}

.stack > * + * {
  margin-top: 10px;
}

.center {
  text-align: center;
}

.legal-footer {
  text-align: center;
  font-size: 12px;
  color: var(--cb-text-muted);
  padding: 8px 20px 16px;
}
