/* FlowCore Dashboard — Profile + animated slots cabinet */

.profile-page {
  display: grid;
  gap: 18px;
}

.profile-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 20px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(84, 215, 197, 0.18);
  background:
    linear-gradient(135deg, rgba(84, 215, 197, 0.1), rgba(88, 101, 242, 0.08)),
    rgba(10, 17, 27, 0.82);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(84, 215, 197, 0.45);
  box-shadow: 0 0 0 4px rgba(84, 215, 197, 0.08);
  object-fit: cover;
}

.profile-hero-main h3 {
  margin: 0 0 4px;
  font-size: 22px;
}

.profile-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(151, 191, 255, 0.16);
  background: rgba(8, 14, 24, 0.55);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.profile-card {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(151, 191, 255, 0.12);
  background: rgba(10, 17, 27, 0.68);
}

.profile-card h4 {
  margin: 0 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(180, 205, 230, 0.78);
}

.profile-stat-big {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  color: #9ef5e8;
}

.profile-progress {
  margin-top: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.profile-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #45dbc2, #69a8ff);
  transition: width 0.45s ease;
}

.profile-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: start;
}

@media (max-width: 960px) {
  .profile-split {
    grid-template-columns: 1fr;
  }
}

/* ——— Slot machine cabinet ——— */
.slot-cabinet {
  position: relative;
  padding: 20px 18px 18px;
  border-radius: 20px;
  border: 2px solid rgba(255, 196, 87, 0.28);
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(255, 196, 87, 0.18), transparent 55%),
    linear-gradient(180deg, #1a1424 0%, #0d1118 45%, #121820 100%);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -8px 24px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.slot-cabinet::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 18px,
    rgba(255, 255, 255, 0.015) 18px,
    rgba(255, 255, 255, 0.015) 19px
  );
  pointer-events: none;
}

.slot-cabinet-lights {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.slot-light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffd98a;
  box-shadow: 0 0 10px rgba(255, 196, 87, 0.8);
  animation: slotLightBlink 1.2s ease-in-out infinite;
}

.slot-light:nth-child(2) { animation-delay: 0.2s; }
.slot-light:nth-child(3) { animation-delay: 0.4s; }
.slot-light:nth-child(4) { animation-delay: 0.6s; }
.slot-light:nth-child(5) { animation-delay: 0.8s; }

@keyframes slotLightBlink {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}

.slot-cabinet-title {
  text-align: center;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffd98a;
  text-shadow: 0 0 18px rgba(255, 196, 87, 0.45);
}

.slot-window {
  position: relative;
  padding: 14px 12px;
  border-radius: 14px;
  border: 3px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #05080e, #0a1018);
  box-shadow: inset 0 0 32px rgba(0, 0, 0, 0.75);
}

.slot-window::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 11px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(84, 215, 197, 0.12);
}

.slot-reels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.slot-reel {
  position: relative;
  height: 108px;
  border-radius: 12px;
  border: 2px solid rgba(151, 191, 255, 0.14);
  background: linear-gradient(180deg, #111822, #080d14);
  overflow: hidden;
  box-shadow: inset 0 -6px 16px rgba(0, 0, 0, 0.5);
}

.slot-reel-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  will-change: transform;
}

.slot-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 108px;
  font-size: 52px;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
}

.slot-reel.is-spinning .slot-reel-inner {
  animation: slotReelSpin 0.12s linear infinite;
}

.slot-reel.is-blur .slot-symbol {
  filter: blur(2px) drop-shadow(0 0 8px rgba(84, 215, 197, 0.35));
}

@keyframes slotReelSpin {
  from { transform: translateY(0); }
  to { transform: translateY(-54px); }
}

.slot-reel.is-landing .slot-reel-inner {
  animation: slotReelLand 0.55s cubic-bezier(0.22, 1.2, 0.36, 1) forwards;
}

@keyframes slotReelLand {
  0% { transform: translateY(-18px); }
  70% { transform: translateY(6px); }
  100% { transform: translateY(0); }
}

.slot-cabinet.is-win .slot-window {
  animation: slotWinPulse 0.8s ease-in-out 2;
  border-color: rgba(255, 196, 87, 0.55);
}

.slot-cabinet.is-win .slot-cabinet-title {
  color: #fff3c4;
}

@keyframes slotWinPulse {
  0%, 100% { box-shadow: inset 0 0 32px rgba(0, 0, 0, 0.75); }
  50% { box-shadow: inset 0 0 48px rgba(255, 196, 87, 0.25), 0 0 24px rgba(255, 196, 87, 0.2); }
}

.slot-cabinet.is-loss .slot-reels {
  animation: slotLossShake 0.45s ease;
}

@keyframes slotLossShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.slot-controls {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.slot-bet-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.slot-bet-chip {
  border: 1px solid rgba(151, 191, 255, 0.16);
  background: rgba(8, 14, 24, 0.72);
  color: rgba(220, 235, 250, 0.92);
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.slot-bet-chip:hover {
  border-color: rgba(84, 215, 197, 0.4);
  transform: translateY(-1px);
}

.slot-bet-input {
  flex: 1 1 100px;
  min-width: 90px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(151, 191, 255, 0.18);
  background: rgba(6, 12, 20, 0.85);
  color: #e8f2ff;
  font: inherit;
}

.slot-spin-btn {
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  color: #1a1208;
  background: linear-gradient(180deg, #ffd98a 0%, #f1a93a 48%, #c97812 100%);
  box-shadow:
    0 6px 0 #8a4f08,
    0 12px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.slot-spin-btn:hover:not(:disabled) {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.slot-spin-btn:active:not(:disabled) {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #8a4f08, 0 6px 16px rgba(0, 0, 0, 0.3);
}

.slot-spin-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.2);
}

.slot-spin-btn.is-pulling {
  animation: slotLeverPull 0.35s ease;
}

@keyframes slotLeverPull {
  0% { transform: translateY(0); }
  40% { transform: translateY(5px) scale(0.98); }
  100% { transform: translateY(-1px); }
}

.slot-result-banner {
  min-height: 52px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: opacity 0.25s ease;
}

.slot-result-banner.is-win {
  color: #ffe8a8;
  border-color: rgba(255, 196, 87, 0.35);
  background: rgba(255, 196, 87, 0.1);
}

.slot-result-banner.is-loss {
  color: rgba(200, 220, 240, 0.85);
  border-color: rgba(151, 191, 255, 0.14);
  background: rgba(8, 14, 24, 0.55);
}

.slot-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: center;
  margin-top: 8px;
  font-size: 12px;
  color: rgba(180, 205, 230, 0.78);
}

.slot-confetti {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 3;
}

.slot-confetti-piece {
  position: absolute;
  top: -12px;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  opacity: 0;
  animation: slotConfettiFall 1.4s ease-out forwards;
}

@keyframes slotConfettiFall {
  0% { opacity: 1; transform: translateY(0) rotate(0deg); }
  100% { opacity: 0; transform: translateY(220px) rotate(540deg); }
}

.profile-daily-btn {
  margin-top: 10px;
}

.profile-leader-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(151, 191, 255, 0.08);
  font-size: 13px;
}

.profile-leader-row:last-child {
  border-bottom: none;
}

.profile-empty {
  padding: 28px;
  text-align: center;
  color: rgba(180, 205, 230, 0.78);
}

.profile-ach-item {
  font-size: 13px;
  margin: 4px 0;
  color: rgba(220, 235, 250, 0.9);
}

.profile-stack {
  display: grid;
  gap: 14px;
}

.profile-leaderboards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.profile-leader-list,
.profile-slots-history,
.profile-ach-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-leader-list li,
.profile-slots-history li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(151, 191, 255, 0.08);
  font-size: 13px;
}

.profile-leader-list li:last-child,
.profile-slots-history li:last-child {
  border-bottom: none;
}

.profile-slots-history li.is-win {
  color: #9ef5e8;
}

.profile-slots-history li.is-loss {
  color: rgba(255, 120, 130, 0.88);
}

.profile-leader-rank {
  color: rgba(180, 205, 230, 0.72);
  min-width: 2.2em;
}

.slot-jackpot-line {
  text-align: center;
  margin: -6px 0 10px;
}

@media (prefers-reduced-motion: reduce) {
  .slot-reel.is-spinning .slot-reel-inner,
  .slot-light,
  .slot-cabinet.is-win .slot-window {
    animation: none !important;
  }
}
