.shop-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}

.shop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) var(--spacing-lg);
  padding-top: max(var(--spacing-lg), env(safe-area-inset-top));
}

.shop-header-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  background: var(--gradient-alias);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shop-balance {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--accent-amber);
  background: rgba(251,191,36,0.12);
  border-radius: var(--radius-full);
  padding: 6px 14px;
}

/* Tabs */
.shop-tabs {
  display: flex;
  gap: 6px;
  padding: 0 var(--spacing-lg) var(--spacing-md);
  overflow-x: auto;
  scrollbar-width: none;
}
.shop-tabs::-webkit-scrollbar { display: none; }

.shop-tab {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1.5px solid transparent;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.shop-tab.active {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(124,106,239,0.12);
}

/* Content */
.shop-content {
  flex: 1;
  overflow-y: auto;
  padding: 0 var(--spacing-lg) var(--spacing-lg);
}

/* Section title */
.shop-section-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: var(--spacing-md) 0 var(--spacing-sm);
}

/* Section */
.shop-section {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

/* Shop item (boost / mafia pack) */
.shop-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  border: 1.5px solid transparent;
  transition: border-color var(--transition-fast);
}

.shop-item-featured {
  background: linear-gradient(135deg, rgba(124,106,239,0.12), rgba(176,106,179,0.08));
  border-color: rgba(124,106,239,0.3);
  flex-direction: column;
  align-items: flex-start;
}

.shop-item-icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
}

.shop-item-icon-lg {
  font-size: 40px;
  width: 60px;
  height: 60px;
}

.shop-item-info {
  flex: 1;
  min-width: 0;
}

.shop-item-name {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

.shop-item-desc {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.4;
}

.shop-item-count {
  font-size: var(--font-size-sm);
  color: var(--accent-amber);
  font-weight: var(--font-weight-bold);
  margin-top: 4px;
}

.shop-item-active-label {
  font-size: var(--font-size-xs);
  color: var(--accent-teal);
  font-weight: var(--font-weight-semibold);
  margin-top: 4px;
}

.shop-buy-btn {
  flex-shrink: 0;
  padding: 8px 14px;
  background: var(--accent-primary);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  border: none;
  transition: opacity var(--transition-fast);
  white-space: nowrap;
}

.shop-buy-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--bg-surface);
  color: var(--text-muted);
}

.shop-buy-btn-lg {
  width: 100%;
  padding: 12px;
  margin-top: var(--spacing-sm);
  font-size: var(--font-size-base);
}

/* Roles row */
.shop-roles-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-sm);
}

.shop-role-chip {
  font-size: var(--font-size-xs);
  padding: 3px 10px;
  background: rgba(124,106,239,0.15);
  border: 1px solid rgba(124,106,239,0.25);
  border-radius: var(--radius-full);
  color: var(--accent-lavender);
}

/* Cosmetics grid */
.shop-cosmetics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.shop-cosmetic-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: var(--spacing-sm);
  border: 2px solid transparent;
  transition: border-color var(--transition-fast);
}

.shop-cosmetic-item.active {
  border-color: var(--accent-primary);
}

/* Skin preview */
.shop-skin-preview {
  width: 56px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.08);
}

/* Theme preview */
.shop-theme-preview {
  width: 56px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.08);
}
.shop-theme-default  { background: linear-gradient(135deg, #0B0E17, #7C6AEF); }
.shop-theme-midnight { background: linear-gradient(135deg, #060A14, #3B82F6); }
.shop-theme-sunset   { background: linear-gradient(135deg, #140A06, #F97316); }
.shop-theme-forest   { background: linear-gradient(135deg, #060E0A, #10B981); }

/* Frame preview */
.shop-frame-preview {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  position: relative;
}

/* Title preview */
.shop-title-preview {
  width: 56px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

/* Wheel skin preview */
.shop-wheel-skin-preview {
  width: 56px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  overflow: hidden;
}
.shop-wheel-skin-preview > div {
  flex: 1;
}

/* Roulette skin preview */
.shop-roulette-skin-preview {
  width: 56px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  overflow: hidden;
}
.shop-roulette-skin-preview > div {
  flex: 1;
}

.shop-cosmetic-label {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.2;
}

.shop-cosmetic-btn {
  width: 100%;
  padding: 5px 6px;
  background: var(--accent-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  border: none;
  transition: opacity var(--transition-fast);
  text-align: center;
}

.shop-cosmetic-btn:disabled {
  opacity: 0.5;
  background: var(--bg-surface);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* Avatar frame styles */
.avatar-frame-silver  { box-shadow: 0 0 0 3px #94A3B8; }
.avatar-frame-gold    { box-shadow: 0 0 0 3px #F59E0B; }
.avatar-frame-diamond { box-shadow: 0 0 0 3px #38BDF8, 0 0 12px rgba(56,189,248,0.5); }
.avatar-frame-fire    { box-shadow: 0 0 0 3px #F97316, 0 0 12px rgba(249,115,22,0.5); animation: avatar-fire-pulse 1.5s ease-in-out infinite; }

@keyframes avatar-fire-pulse {
  0%, 100% { box-shadow: 0 0 0 3px #F97316, 0 0 8px rgba(249,115,22,0.4); }
  50%       { box-shadow: 0 0 0 3px #EF4444, 0 0 20px rgba(239,68,68,0.6); }
}

/* Wheel */
.shop-wheel-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) 0;
}

.shop-wheel-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  background: var(--gradient-alias);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fortune-wheel-outer {
  position: relative;
  width: 276px;
  height: 276px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fortune-wheel {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--bg-elevated);
  box-shadow: var(--shadow-modal);
  transition: transform 4s cubic-bezier(0.17,0.67,0.12,0.99);
  will-change: transform;
}

.fortune-wheel-pointer {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  color: var(--accent-amber);
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  z-index: 2;
  filter: drop-shadow(0 0 6px rgba(251,191,36,0.6));
}

.wheel-result {
  min-height: 40px;
  text-align: center;
}

.wheel-result-text {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--accent-amber);
  animation: fade-in 0.3s ease;
}

.wheel-btns {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  width: 100%;
  max-width: 280px;
}

.wheel-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
}

.wheel-btn-free {
  background: var(--accent-primary);
  color: #fff;
}

.wheel-btn-free.disabled {
  background: var(--bg-elevated);
  color: var(--text-muted);
  cursor: not-allowed;
}

.wheel-btn-paid {
  background: rgba(251,191,36,0.15);
  color: var(--accent-amber);
  border: 1.5px solid rgba(251,191,36,0.3);
}

.wheel-btn-paid:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
