/* Upsell Panel — Spaceship-style floating drawer */
.upsell-panel { position: fixed; inset: 0; z-index: 9990; pointer-events: none; opacity: 0; transition: opacity .3s ease; }
.upsell-panel--open { pointer-events: all; opacity: 1; }
.upsell-panel--closing { pointer-events: none; opacity: 0; }

.upsell-panel__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.4); backdrop-filter: blur(2px); }

.upsell-panel__drawer {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 420px; max-width: 90vw;
  background: #fff; box-shadow: -8px 0 40px rgba(0,0,0,.15);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.upsell-panel--open .upsell-panel__drawer { transform: translateX(0); }
.upsell-panel--closing .upsell-panel__drawer { transform: translateX(100%); }

.upsell-panel__header {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 24px; border-bottom: 1px solid #f0f1f3;
}
.upsell-panel__header-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: #eefaf9; display: flex; align-items: center; justify-content: center;
  color: #00a4a6;
}
.upsell-panel__title { font-size: 18px; font-weight: 800; color: #111; flex: 1; }
.upsell-panel__close {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #6b7280; cursor: pointer; border: none; background: #f4f5f7;
  transition: all .15s;
}
.upsell-panel__close:hover { background: #e5e7eb; color: #111; }

/* Added Item Confirmation */
.upsell-panel__added-item {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 24px; background: #ecfdf5; border-bottom: 1px solid #a7f3d0;
}
.upsell-panel__added-check {
  width: 32px; height: 32px; border-radius: 50%;
  background: #10b981; color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.upsell-panel__added-info { flex: 1; min-width: 0; }
.upsell-panel__added-label { font-size: 11px; font-weight: 700; color: #059669; text-transform: uppercase; letter-spacing: .5px; }
.upsell-panel__added-name { font-size: 14px; font-weight: 700; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upsell-panel__added-price { font-size: 14px; font-weight: 800; color: #059669; flex-shrink: 0; }

.upsell-panel__subheader {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; background: #f9fafb; border-bottom: 1px solid #f0f1f3;
}
.upsell-panel__subtitle { font-size: 13px; font-weight: 700; color: #374151; }
.upsell-panel__add-all {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: #00a4a6;
  background: none; border: 1px solid #00a4a6; border-radius: 8px;
  padding: 6px 12px; cursor: pointer; transition: all .15s;
}
.upsell-panel__add-all:hover { background: #00a4a6; color: #fff; }
.upsell-panel__added-btn { background: #10b981; color: #fff; border-color: #10b981; pointer-events: none; }

.upsell-panel__items { flex: 1; overflow-y: auto; padding: 8px 0; }

.upsell-panel__empty { padding: 40px 24px; text-align: center; color: #6b7280; }

.upsell-panel__item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 24px;
  border-bottom: 1px solid #f4f5f7;
  transition: background .15s;
}
.upsell-panel__item:hover { background: #f9fafb; }
.upsell-panel__item:last-child { border-bottom: none; }

.upsell-panel__item-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
}

.upsell-panel__item-info { flex: 1; min-width: 0; }
.upsell-panel__item-name { font-size: 14px; font-weight: 700; color: #111; line-height: 1.3; }
.upsell-panel__item-tier { font-size: 12px; color: #6b7280; margin-top: 1px; }

.upsell-panel__item-pricing { text-align: right; flex-shrink: 0; }
.upsell-panel__item-trial { display: block; font-size: 14px; font-weight: 800; color: #111; }
.upsell-panel__item-after { display: block; font-size: 11px; color: #9ca3af; margin-top: 2px; }
.upsell-panel__item-price { display: block; font-size: 14px; font-weight: 800; color: #111; }

.upsell-panel__item-add {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: #f4f5f7; border: 1px solid #e5e7eb;
  color: #374151; cursor: pointer; flex-shrink: 0;
  transition: all .15s;
}
.upsell-panel__item-add:hover { background: #00a4a6; color: #fff; border-color: #00a4a6; }
.upsell-panel__item-add:disabled { cursor: default; }
.upsell-panel__item-added { background: #ecfdf5; border-color: #6ee7b7; color: #10b981; }

/* Domain search item */
.upsell-panel__item--domain { flex-wrap: wrap; }
.upsell-panel__item-info--wide { flex: 1 1 100%; min-width: 0; }
.upsell-panel__domain-search {
  display: flex; gap: 8px; margin-top: 10px;
}
.upsell-panel__domain-input {
  flex: 1; min-width: 0;
  padding: 10px 14px; border-radius: 8px;
  border: 1px solid #d1d5db; font-size: 14px;
  background: #fff; color: #111;
  transition: border-color .15s, box-shadow .15s;
}
.upsell-panel__domain-input:focus {
  outline: none; border-color: #00a4a6;
  box-shadow: 0 0 0 3px rgba(0,164,166,.15);
}
.upsell-panel__domain-input--error {
  border-color: #ef4444;
  animation: shake .3s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.upsell-panel__domain-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px; border-radius: 8px;
  background: #00a4a6; color: #fff; border: none;
  font-size: 13px; font-weight: 700; cursor: pointer;
  white-space: nowrap; transition: background .15s;
}
.upsell-panel__domain-btn:hover { background: #008889; }
.bg-teal-600 { background: #0d9488; }

.upsell-panel__footer {
  padding: 16px 24px; border-top: 1px solid #e5e7eb;
  display: flex; flex-direction: column; gap: 12px;
}
.upsell-panel__hide {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #6b7280; cursor: pointer;
}
.upsell-panel__hide input { accent-color: #00a4a6; width: 16px; height: 16px; }
.upsell-panel__continue {
  width: 100%; padding: 14px 0; border-radius: 12px;
  background: #00a4a6; color: #fff; border: none;
  font-size: 16px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s;
}
.upsell-panel__continue:hover { background: #008889; }

/* Tailwind-like bg color utilities for icons */
.bg-blue-500 { background: #3b82f6; }
.bg-blue-600 { background: #2563eb; }
.bg-blue-700 { background: #1d4ed8; }
.bg-purple-500 { background: #8b5cf6; }
.bg-purple-600 { background: #7c3aed; }
.bg-purple-700 { background: #6d28d9; }
.bg-teal-500 { background: #14b8a6; }
.bg-indigo-500 { background: #6366f1; }
.bg-green-500 { background: #22c55e; }
.bg-orange-500 { background: #f97316; }
.bg-pink-500 { background: #ec4899; }
.bg-red-500 { background: #ef4444; }
.bg-amber-500 { background: #f59e0b; }

/* Mobile tweaks */
@media (max-width: 480px) {
  .upsell-panel__drawer { width: 100%; max-width: 100%; }
  .upsell-panel__item { padding: 12px 16px; gap: 10px; }
  .upsell-panel__header { padding: 16px; }
  .upsell-panel__subheader { padding: 10px 16px; }
  .upsell-panel__footer { padding: 12px 16px; }
  .upsell-panel__added-item { padding: 12px 16px; }
}
