/* ==========================================================================
   Forala DLC - Bento Grid Profile Styles (Screenshot 1 Layout)
   ========================================================================== */

:root {
  --bento-card-bg: rgba(18, 18, 24, 0.75);
  --bento-card-border: rgba(255, 255, 255, 0.07);
  --bento-inner-bg: rgba(255, 255, 255, 0.03);
  --bento-inner-border: rgba(255, 255, 255, 0.05);
  --bento-input-bg: rgba(0, 0, 0, 0.28);
  --bento-btn-bg: rgba(255, 255, 255, 0.05);
  --bento-btn-hover: rgba(255, 255, 255, 0.09);
  --bento-radius: 20px;
}

.light-theme {
  --bento-card-bg: rgba(255, 255, 255, 0.85);
  --bento-card-border: rgba(0, 0, 0, 0.08);
  --bento-inner-bg: rgba(0, 0, 0, 0.03);
  --bento-inner-border: rgba(0, 0, 0, 0.06);
  --bento-input-bg: rgba(0, 0, 0, 0.04);
  --bento-btn-bg: rgba(0, 0, 0, 0.04);
  --bento-btn-hover: rgba(0, 0, 0, 0.08);
}

/* Page Layout Container */
.profile-bento-container {
  max-width: 1160px;
  margin: 100px auto 80px;
  padding: 0 24px;
  box-sizing: border-box;
}

/* Header Section (Screenshot 1) */
.profile-bento-header {
  margin-bottom: 28px;
  text-align: left;
}

.profile-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(199, 149, 237, 0.12);
  border: 1px solid rgba(199, 149, 237, 0.25);
  color: #c795ed;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-bottom: 12px;
}

.profile-header-badge svg {
  width: 13px;
  height: 13px;
}

.profile-header-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main, #ffffff);
  margin: 0 0 6px 0;
  line-height: 1.2;
}

.profile-header-title span.user-highlight {
  color: var(--primary, #c795ed);
}

.profile-header-desc {
  font-size: 14px;
  color: var(--text-muted, #94a3b8);
  margin: 0;
  font-weight: 500;
}

/* Bento Grid System — one single panel, columns are transparent */
.bento-grid {
  display: grid;
  grid-template-columns: 330px 330px 1fr;
  gap: 14px;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 14px;
}

.bento-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  min-width: 0;
}

/* Bento Card Base */
.bento-card {
  background: var(--bento-card-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--bento-card-border);
  border-radius: var(--bento-radius);
  padding: 22px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.bento-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.light-theme .bento-card {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.light-theme .bento-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
}

/* Card Header with Icon */
.bento-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main, #ffffff);
  margin-bottom: 14px;
}

.bento-card-head.muted-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 10px;
}

.bento-card-head svg,
.bento-card-head i {
  width: 15px;
  height: 15px;
  color: var(--primary, #c795ed);
  flex-shrink: 0;
}

/* 1. Mini Profile Card (Col 1, Top) */
.bento-user-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
  flex: none;
}

.bento-user-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bento-avatar-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  cursor: pointer;
}
.bento-avatar-wrap:hover .bento-avatar {
  filter: brightness(1.15);
  transform: scale(1.06);
}
.bento-avatar {
  transition: transform 220ms cubic-bezier(0.23, 1, 0.32, 1), filter 200ms;
}
/* Profile banner */
.profile-banner {
  position: relative;
  height: 132px;
  border-radius: 20px;
  margin-bottom: 16px;
  overflow: hidden;
  cursor: pointer;
  background:
    linear-gradient(rgba(22, 22, 26, 0.55), rgba(22, 22, 26, 0.85)),
    radial-gradient(500px 200px at 30% 0%, rgba(199, 149, 237, 0.25), transparent 70%),
    #141419;
  background-size: cover;
  background-position: center;
  border: 1px solid transparent;
}
.profile-banner.has-image {
  background-color: #141419;
}
.profile-banner .banner-edit-hint {
  position: absolute;
  right: 12px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border-color);
  border-radius: 9px;
  padding: 5px 10px;
  opacity: 0;
  transition: opacity 200ms;
}
.profile-banner:hover .banner-edit-hint { opacity: 1; }
.avatar-edit-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary, #c795ed);
  color: #121218;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #121218;
  pointer-events: none;
}
.avatar-edit-badge svg { width: 11px; height: 11px; }

.bento-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(199, 149, 237, 0.4);
  background: var(--surface, #1e1e24);
  font-size: 0;
  color: transparent;
  text-indent: -9999px;
}

.avatar-online-dot {
  display: none !important;
}

.bento-user-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bento-username-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  position: relative;
}

.bento-role-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2.5px 7.5px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.2;
  flex-shrink: 0;
  transition: all 0.2s ease;
  user-select: none;
}

.bento-role-pill.role-user {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

.bento-role-pill.role-user.has-sub {
  background: rgba(199, 149, 237, 0.14);
  border: 1px solid rgba(199, 149, 237, 0.38);
  color: #c795ed;
  box-shadow: 0 0 12px rgba(199, 149, 237, 0.18);
}

.bento-role-pill.role-beta {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.38);
  color: #fbbf24;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.bento-role-pill.role-media {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.38);
  color: #f87171;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
}

.bento-role-pill.role-admin {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.38);
  color: #f87171;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
}

.bento-role-pill.role-developer {
  display: none !important;
}

.bento-username {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main, #ffffff);
  letter-spacing: -0.2px;
}

/* Badges Row Right of Username */
.bento-badges-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 6px;
  min-height: 22px;
}
.bento-badges-row:empty {
  display: none;
}

.bento-badge-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
  user-select: none;
}

.bento-badge-item:hover {
  transform: none;
  filter: drop-shadow(0 2px 8px currentColor);
}

.bento-badge-item.badge-has-bg {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.bento-badge-item.badge-has-bg:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.bento-badge-item svg,
.bento-badge-item i {
  width: 15px;
  height: 15px;
  display: block;
}

.bento-badge-manage-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  color: var(--text-muted, #94a3b8);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  margin-left: 2px;
  transition: all 0.2s ease;
}

.bento-badge-manage-btn:hover {
  background: rgba(199, 149, 237, 0.12);
  border-color: #c795ed;
  color: #c795ed;
  transform: translateY(-1px);
}

/* Badge Interactive Popover Widget */
.badge-popover-widget {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px) scale(0.96);
  opacity: 0;
  visibility: hidden;
  background: #16161c;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(199, 149, 237, 0.12);
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  z-index: 10000;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  overflow: hidden;
}

.badge-popover-widget.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
}

.badge-popover-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-popover-icon svg,
.badge-popover-icon i {
  width: 17px;
  height: 17px;
}

.badge-popover-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main, #ffffff);
}

.badge-popover-btn {
  font-size: 11.5px;
  font-weight: 600;
  color: #e2c9fb;
  background: linear-gradient(135deg, rgba(199, 149, 237, 0.22), rgba(199, 149, 237, 0.1));
  border: 1px solid rgba(199, 149, 237, 0.4);
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
}

.badge-popover-btn:hover {
  background: rgba(199, 149, 237, 0.9);
  border-color: #c795ed;
  color: #16161c;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(199, 149, 237, 0.35);
}

.badge-popover-close {
  background: none;
  border: none;
  color: var(--text-muted, #94a3b8);
  font-size: 15px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.badge-popover-close:hover {
  color: #ffffff;
}

.badge-popover-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(199, 149, 237, 0.35), #c795ed);
  width: 100%;
}

@keyframes badgeProgress {
  from { width: 100%; }
  to { width: 0%; }
}

.badge-popover-progress.animating {
  animation: badgeProgress 3s linear forwards;
}

/* Subscription Expiry Line */
.bento-sub-expiry {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted, #94a3b8);
  line-height: 1.3;
  margin-top: 1px;
  white-space: normal;
  word-break: break-word;
}

.bento-sub-expiry .sub-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c795ed;
  box-shadow: 0 0 8px rgba(199, 149, 237, 0.7);
  flex-shrink: 0;
}

.bento-sub-expiry.inactive .sub-status-dot {
  background: #64748b;
  box-shadow: none;
}

.bento-sub-expiry.inactive {
  color: #64748b;
}

/* Badge Detail Modal */
.badge-detail-modal-card {
  max-width: 420px !important;
  text-align: center;
  padding: 32px 28px !important;
}

.badge-detail-big-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.badge-detail-big-icon-wrap svg,
.badge-detail-big-icon-wrap i {
  width: 32px;
  height: 32px;
}

.badge-detail-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main, #ffffff);
  margin-bottom: 6px;
}

.badge-detail-short {
  font-size: 13px;
  font-weight: 600;
  color: #c795ed;
  margin-bottom: 14px;
}

.badge-detail-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.badge-detail-btn {
  width: 100%;
  padding: 12px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #c795ed 0%, #d8b4fe 100%);
  color: #121218;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.badge-detail-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(199, 149, 237, 0.35);
}

/* Badge Equip Modal */
.badge-equip-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 18px 0 24px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
}

.badge-equip-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.badge-equip-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(199, 149, 237, 0.3);
}

.badge-equip-item.equipped {
  border-color: rgba(199, 149, 237, 0.4);
  background: rgba(199, 149, 237, 0.06);
}

.badge-equip-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-equip-icon-preview {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.badge-equip-icon-preview svg,
.badge-equip-icon-preview i {
  width: 18px;
  height: 18px;
}

.badge-equip-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.badge-equip-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main, #ffffff);
}

.badge-equip-desc {
  font-size: 11.5px;
  color: var(--text-muted, #94a3b8);
}

.bento-logout-btn {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.bento-logout-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  transform: scale(1.05);
}

.bento-logout-btn svg {
  width: 15px;
  height: 15px;
}

/* Action Buttons inside Card 1 */
.bento-user-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding-top: 0;
}

.bento-btn-secondary {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  background: var(--bento-btn-bg);
  border: 1px solid var(--bento-inner-border);
  border-radius: 12px;
  color: var(--text-main, #ffffff);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-family: inherit;
  box-sizing: border-box;
}

.bento-btn-secondary:hover {
  background: var(--bento-btn-hover);
  border-color: rgba(199, 149, 237, 0.3);
  transform: translateY(-1px);
}

.bento-btn-secondary svg,
.bento-btn-secondary i {
  width: 15px;
  height: 15px;
  color: var(--primary, #c795ed);
}

.bento-btn-admin {
  background: linear-gradient(135deg, rgba(199, 149, 237, 0.2), rgba(168, 85, 247, 0.1));
  border-color: rgba(199, 149, 237, 0.35);
  color: #c795ed;
}

.bento-btn-admin:hover {
  background: linear-gradient(135deg, rgba(199, 149, 237, 0.28), rgba(168, 85, 247, 0.18));
  border-color: rgba(199, 149, 237, 0.55);
}

/* 2. Key Activation & Change Email Inputs */
.bento-input-group {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 12px;
}

.bento-input-group input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bento-input-bg);
  border: 1px solid var(--bento-inner-border);
  border-radius: 12px;
  color: var(--text-main, #ffffff);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.bento-input-group input:focus {
  border-color: var(--primary, #c795ed);
  background: rgba(0, 0, 0, 0.38);
}

.light-theme .bento-input-group input:focus {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--primary, #c795ed);
}

.bento-action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  background: var(--bento-btn-bg);
  border: 1px solid var(--bento-inner-border);
  border-radius: 12px;
  color: var(--text-main, #ffffff);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.bento-action-btn:hover {
  background: var(--bento-btn-hover);
  border-color: rgba(199, 149, 237, 0.35);
  color: var(--primary, #c795ed);
  transform: translateY(-1px);
}

.bento-action-btn svg,
.bento-action-btn i {
  width: 15px;
  height: 15px;
  color: var(--primary, #c795ed);
}

/* Key Activation Card Bottom Anchor */
.bento-key-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* 3. Value Display Card (Current Email) */
.bento-email-val-card {
  padding: 16px 20px;
}

.bento-card-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main, #ffffff);
  padding: 10px 14px;
  background: var(--bento-inner-bg);
  border: 1px solid var(--bento-inner-border);
  border-radius: 12px;
  word-break: break-all;
}

/* Change Email Card Compact */
.bento-change-email-card {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bento-change-email-card .bento-action-btn {
  margin-top: 2px;
}

/* 4. Need Help Card */
.bento-help-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 20px;
}

.bento-help-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main, #ffffff);
}

.bento-help-desc {
  font-size: 12.5px;
  color: var(--text-muted, #94a3b8);
  margin-top: -4px;
  line-height: 1.4;
}

.bento-social-row {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.bento-social-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: var(--bento-btn-bg);
  border: 1px solid var(--bento-inner-border);
  border-radius: 12px;
  color: var(--text-main, #ffffff);
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bento-social-btn:hover {
  background: var(--bento-btn-hover);
  transform: translateY(-2px);
}

.bento-social-btn.discord:hover {
  color: #5865f2;
  border-color: rgba(88, 101, 242, 0.4);
}

.bento-social-btn.telegram:hover {
  color: #229ed9;
  border-color: rgba(34, 158, 217, 0.4);
}

/* 5. Right Column Meta Cards */
.bento-meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.bento-meta-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main, #ffffff);
}

.bento-hwid-badge {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(199, 149, 237, 0.12);
  border: 1px solid rgba(199, 149, 237, 0.28);
  border-radius: 10px;
  color: #c795ed;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bento-hwid-badge:hover {
  background: rgba(199, 149, 237, 0.22);
  border-color: rgba(199, 149, 237, 0.5);
  transform: scale(1.02);
}

.bento-hwid-badge.not-linked {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
  color: #f87171;
}

.bento-hwid-badge svg {
  width: 14px;
  height: 14px;
  opacity: 0.85;
}

/* 6. Launcher Card (Col 3, Big) */
.bento-launcher-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
}

.bento-launcher-desc {
  font-size: 12.5px;
  color: var(--text-muted, #94a3b8);
  margin-top: -4px;
}

.bento-specs-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 2px;
}

.spec-item {
  background: var(--bento-inner-bg);
  border: 1px solid var(--bento-inner-border);
  border-radius: 12px;
  padding: 12px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.spec-item svg {
  width: 16px;
  height: 16px;
  color: var(--primary, #c795ed);
  flex-shrink: 0;
}

.spec-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.spec-label {
  font-size: 11px;
  color: var(--text-muted, #94a3b8);
  font-weight: 600;
}

.spec-val {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main, #ffffff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bento-btn-download {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 20px;
  background: #c795ed;
  border: none;
  border-radius: 14px;
  color: #121218;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  margin-top: 4px;
  box-shadow: 0 4px 18px rgba(199, 149, 237, 0.28);
}

.bento-btn-download:hover {
  background: #d8b4fe;
  color: #0c0a13;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.bento-btn-download:active {
  transform: scale(0.99);
}

.bento-btn-download svg {
  width: 18px;
  height: 18px;
  color: #121218;
}

.launcher-footnote {
  text-align: center;
  margin-top: 2px;
}

.launcher-footnote a {
  font-size: 12px;
  color: var(--text-muted, #94a3b8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.launcher-footnote a:hover {
  color: var(--primary, #c795ed);
  text-decoration: underline;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  overflow-y: auto;
  padding: 32px 16px;
  z-index: 100000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: block;
  opacity: 1;
}

.modal-card {
  background: var(--surface, #181820);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  border-radius: 20px;
  padding: 32px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(199, 149, 237, 0.1);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-muted, #94a3b8);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 22px;
  color: var(--text-main, #ffffff);
  text-align: center;
}

.modal-form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted, #94a3b8);
}

.modal-form-group input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  border-radius: 12px;
  color: var(--text-main, #ffffff);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
}

.modal-form-group input:focus {
  border-color: var(--primary, #c795ed);
  background: rgba(0, 0, 0, 0.45);
}

.modal-submit-btn {
  width: 100%;
  padding: 13px;
  background: var(--primary, #c795ed);
  border: 1px solid transparent;
  border-radius: 12px;
  color: #121218;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), filter 200ms;
  font-family: inherit;
  margin-top: 6px;
}

.modal-submit-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* Roulette Modal Styling */
.roulette-modal-card {
  max-width: 460px;
  text-align: center;
}

.roulette-wheel-box {
  margin: 20px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid rgba(199, 149, 237, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(199, 149, 237, 0.2) 0%, rgba(18, 18, 24, 0.9) 70%);
  position: relative;
  box-shadow: 0 0 30px rgba(199, 149, 237, 0.3);
}

.roulette-wheel-box svg {
  width: 64px;
  height: 64px;
  color: #c795ed;
  animation: rouletteSpin 8s linear infinite;
}

@keyframes rouletteSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Responsive Breakpoints */
@media (max-width: 1020px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bento-col:nth-child(3) {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  .profile-bento-container {
    margin-top: 85px;
    padding: 0 16px;
  }
  .profile-header-title {
    font-size: 26px;
  }
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .bento-col:nth-child(3) {
    grid-column: span 1;
  }
  .bento-meta-row {
    grid-template-columns: 1fr 1fr;
  }
  .bento-specs-row {
    grid-template-columns: 1fr;
  }
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-4px); }
}

@keyframes successPulse {
  0% { box-shadow: 0 0 0 0 rgba(199, 149, 237, 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(199, 149, 237, 0); }
  100% { box-shadow: 0 0 0 0 rgba(199, 149, 237, 0); }
}

.error-shake {
  animation: errorShake 0.4s ease-in-out !important;
  border-color: #ef4444 !important;
}

.success-pulse {
  animation: successPulse 0.9s ease-out !important;
  border-color: #c795ed !important;
}
/* ─── HWID hold-to-confirm + cabinet additions ── */
.hold-confirm-btn {
  position: relative;
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  border: 1px solid rgba(199,149,237,0.4);
  background: rgba(199,149,237,0.07);
  color: var(--text-main);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  transition: transform 160ms cubic-bezier(0.23,1,0.32,1), border-color 200ms;
}
.hold-confirm-btn:active { transform: scale(0.98); }
.hold-confirm-btn .hold-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(199,149,237,0.45), rgba(139,92,246,0.45));
  transform: scaleX(0);
  transform-origin: left center;
}
.hold-confirm-btn .hold-label { position: relative; z-index: 1; }
.hold-confirm-btn.done { border-color: #4ade80; }
.bento-subs-card, .bento-wallet-card, .bento-ref-card, .bento-beta-card { min-width: 0; }
.hist-tab.active { border-color: var(--primary) !important; color: var(--primary) !important; }
/* ── Native controls: force dark rendering (fixes white spinners / dropdowns) ── */
:root { color-scheme: dark; }
.light-theme { color-scheme: light; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
select option, select optgroup { background-color: #14141a; color: #e8e8ef; }
.light-theme select option, .light-theme select optgroup { background-color: #ffffff; color: #1a1a22; }

