/* Thẻ "Gói đang dùng" trong menu user ở header (base_header.html, user_menu_plan.js) */
.uim-plan {
  --uim-a: #1fb5d6;
  --uim-b: #5b3fa8;
  position: relative;
  overflow: hidden;
  margin: 2px 0 12px;
  padding: 12px 12px 12px;
  border-radius: 14px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, .22) 0, transparent 42%),
    linear-gradient(135deg, var(--uim-a), var(--uim-b));
  box-shadow: 0 8px 20px rgba(91, 63, 168, .25);
  line-height: 1.35;
  white-space: normal;
}

.uim-plan--expired {
  --uim-a: #f97316;
  --uim-b: #dc2626;
  box-shadow: 0 8px 20px rgba(220, 38, 38, .22);
}

.uim-plan--free {
  color: #1f2937;
  background: linear-gradient(160deg, #f8fafc, #eef2ff);
  border: 1px solid #e0e7ff;
  box-shadow: none;
}

.uim-plan-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.uim-plan-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, #fde68a, #f59e0b);
  color: #7c2d12;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .15), inset 0 -2px 0 rgba(0, 0, 0, .12);
}

.uim-plan--free .uim-plan-icon {
  background: #e0e7ff;
  color: #5b3fa8;
  box-shadow: none;
}

.uim-plan-info {
  min-width: 0;
  flex: 1 1 auto;
}

.uim-plan-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  opacity: .85;
}

.uim-plan-name {
  font-size: .95rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.uim-plan-sub {
  display: inline-block;
  max-width: 100%;
  margin-top: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
  font-size: .78rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.uim-plan-exp {
  margin-top: 8px;
  font-size: .78rem;
  opacity: .92;
}

.uim-plan--free .uim-plan-exp {
  color: #6b7280;
  opacity: 1;
}

.uim-plan-more {
  list-style: none;
  margin: 8px 0 0;
  padding: 8px 0 0;
  border-top: 1px dashed rgba(255, 255, 255, .35);
  font-size: .76rem;
}

.uim-plan-more li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0;
}

.uim-plan-more li span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 600;
}

.uim-plan-more li span:last-child {
  flex: 0 0 auto;
  opacity: .85;
}

.uim-plan-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #fff;
  color: var(--uim-b) !important;
  font-size: .85rem;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
  transition: transform .15s, box-shadow .15s;
}

.uim-plan-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}

.uim-plan-btn svg {
  color: #f59e0b;
}

.uim-plan--free .uim-plan-btn {
  background: linear-gradient(135deg, #1fb5d6, #5b3fa8);
  color: #fff !important;
  box-shadow: 0 6px 14px rgba(91, 63, 168, .3);
}

.uim-plan--free .uim-plan-btn svg {
  color: #fde68a;
}
