/* Apple-inspired liquid glass UI */
:root{
  --bg: #0b1020;
  --fg: #e9f0ff;
  --muted: #9fb3ff;
  --accent: #6da3ff;
  --accent-2:#9c6dff;
  --card:#ffffff14;
  --glass:#0d1225aa;
  --good:#57e39f;
  --bad:#ff6b88;
  --warn:#ffd166;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:"Nunito",system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,"Helvetica Neue",Arial;
  color:var(--fg);
  background: radial-gradient(1200px 800px at 10% 10%, #203080 0%, transparent 50%),
              radial-gradient(1000px 600px at 90% 90%, #8040a0 0%, transparent 50%),
              linear-gradient(180deg, #0b1020, #1a2040);
  background-attachment: fixed;
  min-height:100vh;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.glass-wrap{padding:16px; display:flex; flex-direction:column; gap:16px; min-height:100%; -webkit-overflow-scrolling: touch}
.glass{
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  border:1px solid #ffffff22;
  border-radius:18px;
  box-shadow: 0 10px 30px #00000040, inset 0 1px 0 #ffffff22;
}

.topbar{display:flex; align-items:center; justify-content:space-between; padding:12px 16px}
.brand{display:flex; align-items:center; gap:12px}
.brand .logo{font-size:28px; filter: drop-shadow(0 2px 6px #0008)}
.brand h1{margin:0; font-size:20px; letter-spacing:0.5px}
.brand .teen{opacity:0.7}
.balances{display:flex; gap:16px; font-weight:700}
.bal{padding:6px 10px; border-radius:12px; background:var(--card)}
.bal.mini{color:var(--warn)}
.bal.kr{color:var(--good)}

.grid{display:grid; grid-template-columns:2fr 1fr; grid-template-rows:auto auto; gap:16px}
.games{grid-column:1/2; grid-row:1/3; padding:16px}
.shop{grid-column:2/3; grid-row:1/2; padding:16px}
.promos{grid-column:2/3; grid-row:2/3; padding:16px}

h2{margin:0 0 12px 0; font-size:18px; color:var(--muted)}
.cards{display:grid; grid-template-columns: repeat(3, 1fr); gap:12px; margin-bottom:12px}
.card{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px;
  padding:16px; border-radius:16px; background:var(--card); color:var(--fg);
  border:1px solid #ffffff22; cursor:pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  min-height:120px; touch-action:manipulation;
}
.card:hover{transform: translateY(-2px); box-shadow:0 10px 20px #0006}
.card:active{transform: translateY(0)}
.card.active{outline:2px solid var(--accent); box-shadow:0 0 0 6px #6da3ff22}
.card-hero{font-size:32px}
.card-title{font-weight:800}
.card-sub{opacity:0.8; font-size:12px}

.bet-box{display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:6px; background:rgba(255,255,255,0.1); border-radius:8px; padding:8px 12px; border:1px solid rgba(255,255,255,0.2)}
label{display:flex; flex-direction:column; gap:6px; font-size:12px}
select,input{background:#ffffff12; border:1px solid #ffffff24; color:var(--fg); border-radius:12px; padding:12px 16px; outline:none; font-size:16px; min-height:44px; box-sizing:border-box; -webkit-user-select: text; user-select: text}
input[type=number]{width:120px; -webkit-appearance:none; -moz-appearance:textfield; appearance:none}

.primary, .secondary, .link{cursor:pointer; border:none; border-radius:12px; padding:10px 14px; font-weight:800; letter-spacing:.4px; min-height:44px; touch-action:manipulation; transition:all 0.2s ease}
.primary{background: linear-gradient(135deg, var(--accent), var(--accent-2)); color:#001}
.primary:active{transform:scale(0.95)}
.secondary{background:#ffffff18; color:var(--fg); border:1px solid #ffffff33}
.secondary:active{transform:scale(0.95); background:#ffffff25}
.link{background:transparent; color:var(--muted); text-decoration:underline; padding:6px 8px}
.hint{opacity:0.8}

.game-area{min-height:280px; margin-top:12px; padding:12px; border-radius:14px; background:#ffffff0f; border:1px dashed #ffffff33}
/* Playing cards - realistic proportions */
.game-area .card{
  display:inline-flex; 
  flex-direction:column; 
  align-items:flex-start; 
  justify-content:space-between; 
  width:60px; 
  height:85px; 
  padding:6px; 
  margin:4px; 
  border-radius:8px; 
  background:#fff; 
  color:#111; 
  border:1px solid #ccc; 
  box-shadow:0 3px 6px rgba(0,0,0,0.2); 
  font-family:'Courier New', monospace;
  position:relative;
  min-width:60px;
  min-height:85px;
}
.game-area .card .rank{
  font-weight:800; 
  font-size:14px; 
  line-height:1;
  align-self:flex-start;
}
.game-area .card .suit{
  font-size:12px; 
  line-height:1;
  align-self:flex-start;
  margin-top:-2px;
}
.game-area .card .center-suit{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  font-size:24px;
  opacity:0.25;
}
.game-area .card.red{color:#d32f2f}
.game-area .card.back{
  background: repeating-linear-gradient(45deg, #1976d2, #1976d2 2px, #fff 2px, #fff 4px);
  color:transparent;
}
.cards-row{display:flex; flex-wrap:wrap; gap:6px}

/* Settings modal */
.modal .danger{background:#c0392b; color:#fff; padding:8px 12px; border:none; border-radius:8px; cursor:pointer}
.modal .danger:hover{background:#e74c3c}

/* Save Recommendation */
.save-recommendation {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  border-radius: 12px;
  border: 1px solid #ff8c42;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.recommendation-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}

.recommendation-content {
  flex: 1;
}

.recommendation-content strong {
  display: block;
  color: #fff;
  font-size: 16px;
  margin-bottom: 4px;
  font-weight: 700;
}

.recommendation-content p {
  color: #fff;
  opacity: 0.95;
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

/* Plinko (Ball Drop) */
.plinko{display:flex; flex-direction:column; gap:10px; align-items:center}
.plinko-board{position:relative; width:var(--w,480px); height:var(--h,320px); background:linear-gradient(180deg, #ffffff10, #00000014); border-radius:12px; border:1px solid #ffffff22; overflow:hidden}
.plinko-board .peg{position:absolute; width:10px; height:10px; border-radius:50%; background:#ffffff66; box-shadow:0 0 0 2px #00000022}
.plinko-board .ball{position:absolute; width:14px; height:14px; border-radius:50%; background:radial-gradient(circle at 30% 30%, #fff, #ffd166 60%, #d4a73a); box-shadow:0 6px 10px #0006; will-change: transform}
.plinko-top{position:relative; height:28px; width:var(--w,480px);}
.plinko-top .drop-col{position:absolute; top:4px; width:2px; height:20px; background:#ffffff22; cursor:pointer}
.plinko-top .drop-col.active{background:#6da3ff}
.plinko-top .drop-marker{position:absolute; top:0; width:8px; height:8px; border-radius:50%; background:#6da3ff; box-shadow:0 0 0 3px #6da3ff33}
.plinko-slots{display:grid; grid-template-columns: repeat(11, 1fr); gap:6px; margin-top:6px; width:100%}
.plinko .pl-slot{padding:6px; text-align:center; border-radius:8px; background:#00000033; border:1px solid #ffffff22; font-weight:800}
.plinko .pl-slot.hit{background:#27ae60; color:#000}
.plinko-controls{display:flex; gap:8px; align-items:center; margin-top:6px}
.game-area .result{margin-top:4px; font-weight:800}
.game-area .controls{margin-top:10px; display:flex; gap:8px; align-items:center}

/* Blackjack layout */
.bj .row{display:flex; justify-content:space-between; gap:12px}
.bj .lbl{opacity:.8; margin-bottom:6px}

/* Roulette (Animated wheel) */
.roulette{display:flex; flex-direction:column; gap:10px; align-items:center}
.roulette-stage{display:flex; align-items:center; justify-content:center; width:100%}
.wheel-wrap{position:relative; display:inline-block}
.wheel-svg{width:min(60vw, 360px); height:auto; transform:rotate(0deg)}
.wheel-svg .number{transform-origin:center; transform-box:fill-box}
.pointer{position:absolute; top:-16px; left:50%; transform:translateX(-50%); width:0; height:0; border-left:10px solid transparent; border-right:10px solid transparent; border-top:16px solid #ffd166; filter: drop-shadow(0 2px 6px #0008); z-index:2}
.roulette-ball{position:absolute; width:12px; height:12px; border-radius:50%; background:radial-gradient(circle at 30% 30%, #fff, #ddd 60%, #aaa); box-shadow:0 4px 10px #0006; z-index:1; will-change: transform}
.roulette-controls{display:flex; gap:8px; align-items:center; flex-wrap:wrap}
.roulette-controls .bet-btn{background:#ffffff12; border:1px solid #ffffff33; color:var(--fg); border-radius:10px; padding:8px 12px; font-weight:800; cursor:pointer}
.roulette-controls .bet-btn.active{outline:2px solid var(--accent); box-shadow:0 0 0 6px #6da3ff22}
.roulette-controls input{min-width:140px}
.roulette .result{margin-top:6px}

/* Spin wheel (SVG animated) */
.spin-stage{display:flex; align-items:center; justify-content:center; width:100%}
.spin-wrap{position:relative; display:inline-block}
.spin-rotor{transform:rotate(0deg)}
.spin-wheel-svg{width:min(50vw, 320px); height:auto}
.spin-wheel-svg .spin-number{transform-origin:center; transform-box:fill-box}
.spin-pointer{position:absolute; top:-12px; left:50%; transform:translateX(-50%); width:0; height:0; border-left:10px solid transparent; border-right:10px solid transparent; border-top:14px solid #ffd166; filter: drop-shadow(0 2px 6px #0008); z-index:2}
.spin .auto{margin-left:auto; opacity:.9}

/* Slot machine styling */
.slot{display:flex; flex-direction:column; gap:12px; align-items:center; padding:14px; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.06)); border-radius:12px; border:1px solid #ffffff22}
.slot-stage{display:flex; gap:14px; align-items:center; justify-content:center; width:100%; max-width:820px; padding:12px; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.04)); border-radius:12px; box-shadow: inset 0 1px 0 #ffffff11}
.slot-reel-wrap{display:flex; flex-direction:column; align-items:center; gap:6px}
.slot-reel{width:120px; height:160px; display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start; gap:0; background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.18)); border-radius:10px; border:1px solid #ffffff22; box-shadow:0 6px 18px rgba(0,0,0,0.45), inset 0 1px 0 #ffffff11; overflow:hidden; padding:0 6px; position:relative}
.slot-reel-label{min-height:18px; font-size:12px; font-weight:600; letter-spacing:.5px; opacity:0; transition:opacity .25s ease; text-transform:uppercase; color:#ffffffaa}
.slot-reel-label.show{opacity:1}
.slot-reel-cell{width:100%; height:48px; display:flex; align-items:center; justify-content:center; font-size:36px; transition: transform .12s ease, opacity .12s ease}
.slot-reel-cell:nth-child(2){font-size:48px; transform:scale(1.08); font-weight:900; filter: drop-shadow(0 8px 18px #0008)}
.slot-strip{display:flex; flex-direction:column; align-items:center; width:100%; will-change:transform;}
.slot-reel .slot-reel-cell{margin:4px 0}

/* visible center window on each reel */
.slot-reel::after{
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  height: 56px; /* matches center cell visual size */
  top: 50%;
  transform: translateY(-50%);
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.45), inset 0 1px 0 #ffffff11;
  pointer-events: none;
}
.slot-stage::before{content:''; position:absolute; width:calc(100% - 40px); height:10px; top:6px; left:50%; transform:translateX(-50%); background:linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); border-radius:6px; pointer-events:none}
.slot .result{font-weight:900; margin-top:6px; font-size:15px}
.slot .result.win{color:var(--good)}
.slot .result.lose{color:var(--bad)}
.slot .result.jackpot{color:#ffd166; text-shadow:0 4px 18px #ffd16655}
.slot .controls{display:flex; gap:8px; align-items:center}
.slot .secondary, .slot .primary{min-height:40px; border-radius:10px}
.slot .auto{display:inline-flex; align-items:center; gap:6px}

/* compact layout on small screens */
@media (max-width: 720px){
  .slot-stage{gap:10px; padding:8px}
  .slot-reel{width:86px; height:132px}
  .slot-reel-label{font-size:11px}
  .slot-reel-cell{height:40px; font-size:28px}
  .slot-reel-cell:nth-child(2){font-size:36px}
}

/* Dice game */
.dice-game{width:100%}
.dice-layout{display:flex; gap:16px; align-items:flex-start; justify-content:space-between}
.dice-main{flex:1; display:flex; flex-direction:column; gap:12px; align-items:center; max-width:400px; margin:0 auto}
.dice-stage{display:flex; flex-direction:column; gap:12px; align-items:center}
.dice-container{display:flex; gap:20px; align-items:center}
.dice{font-size:64px; padding:12px; background:#ffffff12; border:2px solid #ffffff22; border-radius:12px; min-width:80px; min-height:80px; display:flex; align-items:center; justify-content:center; transition:transform 0.1s ease}
.dice:hover{transform:scale(1.05)}
.dice-rules{text-align:center; opacity:0.8; font-size:12px; max-width:300px}

/* Dice game advertisement banners */
.dice-ad{width:150px; padding:12px; background:var(--card); border:1px solid #ffffff22; border-radius:12px; display:flex; flex-direction:column; justify-content:center; min-height:250px}
.dice-ad .ad-content{text-align:center; display:flex; flex-direction:column; gap:8px}
.dice-ad .ad-icon{font-size:32px; margin-bottom:4px}
.dice-ad .ad-title{font-weight:800; font-size:13px; color:var(--fg); line-height:1.2}
.dice-ad .ad-effect{font-weight:700; color:var(--good); font-size:12px; line-height:1.2}
.dice-ad .ad-chance{font-size:10px; opacity:0.8; line-height:1.3}
.dice-ad .ad-rarity{padding:3px 6px; border-radius:6px; font-size:9px; font-weight:800; text-transform:uppercase; margin-top:4px}
.dice-ad .ad-rarity.legendary{background:#ff6b2b33; border:1px solid #ff6b2b; color:#ffb366}
.dice-ad .ad-rarity.epic{background:#9c6dff33; border:1px solid #9c6dff; color:#e5d6ff}

.shop-list{display:grid; gap:10px}
.shop-item{display:flex; justify-content:space-between; align-items:center; gap:10px; padding:10px; background:var(--card); border-radius:12px; border:1px solid #ffffff22}
.shop-item .meta{display:flex; align-items:center; gap:10px}
.shop-item .icon{font-size:20px}
.price{color:var(--good); font-weight:800}
.shop-item .actions{margin-top:8px; display:flex; gap:8px; flex-wrap:wrap}

.promo-box{display:flex; gap:8px}
.promo-box input{flex:1}

.foot{display:flex; justify-content:space-between; align-items:center; padding:10px 14px; font-size:12px}

/* Simple animations */
@keyframes pop{
  0%{transform:scale(.98); opacity:.9}
  100%{transform:scale(1); opacity:1}
}
.win{color:var(--good)}
.lose{color:var(--bad)}

/* Responsive */
@media (max-width: 980px){
  .glass-wrap{padding:12px; gap:12px}
  .grid{grid-template-columns: 1fr; grid-template-rows:auto; gap:12px}
  .games{grid-column:1/2; grid-row:auto; padding:12px}
  .shop{grid-column:1/2; padding:12px}
  .promos{grid-column:1/2; padding:12px}
  .cards{grid-template-columns: repeat(2, 1fr); gap:8px}
  .topbar{padding:8px 12px; flex-wrap:wrap; gap:8px}
  .brand{gap:8px}
  .brand h1{font-size:18px}
  .brand .teen{font-size:11px}
  .balances{gap:8px; font-size:12px}
  .bal{padding:4px 8px}
  
  /* Dice game responsive */
  .dice-layout{flex-direction:column; gap:12px}
  .dice-ad{width:100%; min-height:auto; flex-direction:row; align-items:center; padding:8px}
  .dice-ad .ad-content{flex-direction:row; text-align:left; align-items:center; gap:12px}
  .dice-ad .ad-icon{margin-bottom:0; font-size:28px}
  .dice-ad .ad-title{font-size:12px}
  .dice-ad .ad-effect{font-size:11px}
  .dice-ad .ad-chance{font-size:9px}
}
@media (max-width: 560px){
  .glass-wrap{padding:8px; gap:8px}
  .cards{grid-template-columns: 1fr; gap:8px}
  .card{padding:12px; gap:6px}
  .card-hero{font-size:28px}
  .card-title{font-size:14px}
  .card-sub{font-size:11px}
  .bet-box{flex-direction:column; align-items:stretch; gap:8px}
  .bet-box label{font-size:14px}
  .bet-box input{width:100%}
  .topbar{flex-direction:column; align-items:stretch; text-align:center}
  .balances{justify-content:center; flex-wrap:wrap}
  .primary, .secondary{padding:12px 16px; font-size:14px}
  .shop-list{gap:8px}
  .shop-item{padding:8px; flex-direction:column; align-items:stretch; text-align:center}
  .shop-item .meta{justify-content:center; margin-bottom:6px}
  .shop-item .actions{justify-content:center}
  .promo-box{flex-direction:column; gap:8px}
  .foot{flex-direction:column; gap:8px; text-align:center}
}

/* Cosmetics */
.skin-neon .game-area .card{background: linear-gradient(135deg, #06f, #c0f); border-color:#c0f; box-shadow:0 4px 16px #80a0ff44, inset 0 1px 0 #ffffffaa}
.skin-neon .game-area .card.back{background: repeating-linear-gradient(45deg, #c0f, #c0f 2px, #06f 2px, #06f 4px)}
.skin-galaxy .game-area{background: radial-gradient(600px 300px at 20% 20%, #4b3b7a33 0%, transparent 60%), #ffffff0f}
.skin-galaxy .game-area .card{background: linear-gradient(135deg, #2a1a4a, #4a2a6a); border-color:#6a4a8a; color:#e0d0ff}
.skin-galaxy .game-area .card.back{background: repeating-linear-gradient(45deg, #4a2a6a, #4a2a6a 2px, #2a1a4a 2px, #2a1a4a 4px)}

/* Modal (Inventory/Shop) */
.modal{position:fixed; inset:0; display:none; align-items:center; justify-content:center; z-index:1000}
.modal[aria-hidden="false"]{display:flex}
.modal-backdrop{position:absolute; inset:0; background:#000c; backdrop-filter: blur(8px)}
.modal-content{position:relative; width:min(1200px, 95vw); max-height:90vh; display:flex; flex-direction:column; border-radius:24px; overflow:hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 8px 30px rgba(0,0,0,0.3)}
.modal-header{display:flex; align-items:center; justify-content:space-between; padding:16px 20px; border-bottom:1px solid #ffffff22; background: linear-gradient(135deg, #ffffff08, #ffffff04)}
.tabs{display:flex; gap:8px}
.tab{background:#ffffff12; border:1px solid #ffffff33; color:var(--fg); border-radius:12px; padding:12px 18px; font-weight:800; cursor:pointer; transition: all 0.2s ease; font-size: 14px}
.tab.active{background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: white; border-color: transparent; box-shadow:0 4px 15px rgba(109, 163, 255, 0.3)}
.tab:hover:not(.active){background:#ffffff20; border-color: var(--accent)}
.close{background:transparent; border:none; color:var(--fg); font-size:20px; cursor:pointer; padding: 8px; border-radius: 8px; transition: all 0.2s ease; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center}
.close:hover{background: #ffffff15; color: var(--bad)}
.modal-body{display:grid; grid-template-columns: 3fr 2fr; gap:20px; padding:20px; flex:1; /* only left list scrolls */ overflow:hidden; min-height:0}

/* For the special promocode DB modal, use a single-column body so the list can be wider
  while keeping the modal max-width unchanged. */
#promocodeDbModal .modal-body{ grid-template-columns: 1fr; }
.modal-list{display:grid; grid-template-columns: repeat(3, 1fr); gap:10px; align-content:start; overflow:auto; max-height:100%; min-height:0; padding-right:6px}
.modal-card{display:flex; align-items:center; gap:10px; padding:10px; border-radius:12px; background:var(--card); border:1px solid #ffffff22; cursor:pointer; transition: background .15s ease}
.modal-card:hover{background:#ffffff28}
.modal-card .icon{font-size:22px}
.modal-card .name{font-weight:800}
.modal-card .meta{opacity:.8; font-size:12px}

.inventory-actions{
  border:1px solid rgba(255,255,255,0.2);
  background:rgba(255,255,255,0.05);
  border-radius:8px;
  padding:12px;
  margin:12px 0;
}
.inventory-actions .hint{
  margin-bottom:8px;
  color:rgba(255,255,255,0.8);
  font-size:12px;
}

/* Promocode Database Styles */
.promocode-list{
  display:grid;
  gap:12px;
  max-height:70vh;
  overflow-y:auto;
  padding:8px;
}

/* Let the promocode list use the full width of the promocode modal (span empty right column)
   so promo cards become wider without increasing the modal size. */
#promocodeDbModal .modal-body .promocode-list {
  grid-column: 1 / -1;
  padding-right: 12px;
}

#promocodeDbModal .promocode-item {
  width: 100%;
  box-sizing: border-box;
}
.promo-stats{
  background:rgba(255,255,255,0.1);
  border-radius:8px;
  padding:12px;
  margin-bottom:16px;
  display:flex;
  gap:20px;
  flex-wrap:wrap;
}
.promo-stats .stat{
  font-weight:600;
}
.promo-stats .value{
  color:var(--accent);
}
.promocode-item{
  background:var(--card);
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.2);
  padding:16px;
  transition:all 0.2s ease;
}
.promocode-item:hover{
  background:rgba(255,255,255,0.18);
  transform:translateY(-1px);
}
.promocode-item.used-up{
  opacity:0.5;
  background:rgba(255,255,255,0.05);
}
.promo-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:8px;
}
.promo-code{
  font-family:'Courier New', monospace;
  font-weight:800;
  font-size:16px;
  background:rgba(0,0,0,0.3);
  padding:4px 8px;
  border-radius:4px;
}
.promo-tier{
  font-size:11px;
  background:rgba(255,255,255,0.2);
  padding:2px 6px;
  border-radius:10px;
  opacity:0.8;
}
.promo-desc{
  color:rgba(255,255,255,0.9);
  margin-bottom:8px;
  line-height:1.4;
}
.promo-usage{
  font-size:11px;
  color:rgba(255,255,255,0.6);
  margin-bottom:12px;
}
.promo-use-btn{
  width:100%;
  font-size:13px;
}
.modal-detail{background:#ffffff0f; border:1px dashed #ffffff33; border-radius:14px; padding:12px; /* keep detail fixed; no scroll on right pane */ overflow:hidden}
.modal-detail .title{display:flex; align-items:center; gap:10px; font-weight:800; font-size:16px; margin-bottom:6px}
.modal-detail .desc{opacity:.9; margin-bottom:8px}
.modal-detail .actions{display:flex; gap:8px; align-items:center; flex-wrap:wrap}
.badge{display:inline-block; padding:2px 6px; border-radius:8px; background:#ffffff18; border:1px solid #ffffff22; font-size:11px}
.badge.rarity-common{background:#365c2a33; border-color:#50fa7b66; color:#aef8b6}
.badge.rarity-uncommon{background:#295a7a33; border-color:#6df; color:#c6edff}
.badge.rarity-rare{background:#3b2a5c33; border-color:#b98bff; color:#e5d6ff}
.badge.rarity-super-rare{background:#5c3a2a33; border-color:#ffc37a; color:#ffe3b8}

/* Lock page scroll when modal is open */
body.modal-open{overflow:hidden}

/* Gang Map Styles */
.gang-map-body{display:flex; flex-direction:column; gap:16px; overflow:hidden}
.gang-stats{display:grid; grid-template-columns: repeat(3, 1fr); gap:12px}
.stat-box{background:var(--card); border-radius:12px; padding:12px; text-align:center; border:1px solid #ffffff22}
.stat-label{font-size:12px; opacity:0.8; margin-bottom:4px}
.stat-value{font-size:20px; font-weight:800; color:var(--accent)}
.map-container{flex:1; overflow:hidden}
.map-title{font-size:16px; font-weight:800; margin-bottom:12px; text-align:center}
.heist-targets{display:grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap:12px; max-height:400px; overflow-y:auto}
.heist-target{background:var(--card); border:1px solid #ffffff22; border-radius:12px; padding:16px; cursor:pointer; display:flex; align-items:center; gap:12px; transition: all 0.2s ease}
.heist-target:hover{background:#ffffff22; transform:translateY(-2px)}
.heist-target.disabled{opacity:0.5; cursor:not-allowed; pointer-events:none}
.target-icon{font-size:32px}
.target-info{flex:1}
.target-name{font-weight:800; margin-bottom:4px}
.target-stats{display:flex; gap:12px; margin-bottom:4px}
.target-stats .risk{color:var(--warn)}
.target-stats .payout{color:var(--good)}
.target-desc{font-size:12px; opacity:0.8}
.cooldown-warning{background:var(--warn); color:#000; padding:8px 12px; border-radius:8px; text-align:center; font-weight:800}
.cooldown-bypass{background:var(--good); color:#000; padding:8px 12px; border-radius:8px; text-align:center; font-weight:800}
.badge.rarity-epic{background:#ff6b2b33; border-color:#ff6b2b; color:#ffb366}

/* Diagnostic & Support Section Styles */
#diagnostics-section {
  border-top: 1px solid #ffffff22;
  margin-top: 20px;
  padding-top: 20px;
}

.section-description {
  opacity: 0.8;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.4;
}

.diagnostic-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.diagnostic-card {
  background: var(--card);
  border: 1px solid #ffffff22;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.2s ease;
  position: relative;
}

.diagnostic-card:hover {
  background: #ffffff22;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.diagnostic-card.balance-missing {
  border-color: var(--warn);
  background: linear-gradient(135deg, var(--card), rgba(255, 209, 102, 0.1));
}

.diagnostic-icon {
  font-size: 32px;
  margin-bottom: 12px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.diagnostic-content h4 {
  margin: 0 0 8px 0;
  font-weight: 800;
  color: var(--fg);
}

.diagnostic-content p {
  margin: 0 0 16px 0;
  opacity: 0.8;
  font-size: 14px;
  line-height: 1.4;
}

.diagnostic-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  width: 100%;
}

.diagnostic-btn:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(109, 163, 255, 0.3);
}

.diagnostic-btn.emergency {
  background: var(--warn);
  color: #000;
  font-weight: 800;
  animation: pulse 2s infinite;
}

.diagnostic-btn.emergency:hover {
  background: #ffed85;
  box-shadow: 0 4px 12px rgba(255, 209, 102, 0.4);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.diagnostic-info {
  background: #ffffff08;
  border: 1px solid #ffffff22;
  border-radius: 10px;
  padding: 16px;
}

.diagnostic-info h4 {
  margin: 0 0 12px 0;
  color: var(--accent);
  font-weight: 800;
}

.diagnostic-info ul {
  margin: 0;
  padding-left: 20px;
  opacity: 0.9;
}

.diagnostic-info li {
  margin-bottom: 8px;
  line-height: 1.4;
}

.diagnostic-info strong {
  color: var(--fg);
  font-weight: 700;
}

/* Back button for diagnostic pages */
.diagnostic-back-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  border: 1px solid #ffffff22;
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  z-index: 1000;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.diagnostic-back-btn:hover {
  background: #ffffff22;
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

/* Feedback Modal Styles */
.feedback-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.feedback-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.feedback-modal {
  max-width: 800px;
  width: 95vw;
}

.feedback-body {
  padding: 30px;
  display: block;
  min-height: 500px;
}

.feedback-step {
  display: none;
}

.feedback-step.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Step 1: Reason Selection */
.reason-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.reason-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--card);
  border: 2px solid #ffffff22;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  min-height: 100px;
}

.reason-btn:hover {
  background: #ffffff18;
  border-color: #667eea;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.reason-btn.selected {
  background: linear-gradient(135deg, #667eea25, #764ba225);
  border-color: #667eea;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
  transform: translateY(-2px);
}

.reason-icon {
  font-size: 40px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.reason-text h4 {
  margin: 0 0 6px 0;
  color: var(--fg);
  font-size: 18px;
  font-weight: 700;
}

.reason-text p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}

/* Step 2: Contact Form */
.contact-form {
  margin-top: 24px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--fg);
  font-weight: 600;
  font-size: 15px;
}

.form-group input, 
.form-group textarea {
  width: 100%;
  padding: 16px;
  border: 2px solid #ffffff22;
  border-radius: 12px;
  background: var(--card);
  color: var(--fg);
  font-size: 15px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
  background: #ffffff08;
}

.account-status {
  padding: 14px 16px;
  background: #ffffff0f;
  border-radius: 10px;
  border: 1px solid #ffffff22;
  font-size: 15px;
}

.privacy-note {
  background: #ffffff0a;
  padding: 16px;
  border-radius: 10px;
  border-left: 4px solid #667eea;
  margin-top: 16px;
}

/* Step 3: Message */
.selected-reason {
  background: linear-gradient(135deg, #667eea20, #764ba220);
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  border-left: 4px solid #667eea;
  font-size: 15px;
  font-weight: 600;
}

.form-group textarea {
  min-height: 180px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.6;
}

.message-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.char-count {
  font-size: 13px;
  color: var(--muted);
}

.submission-note {
  text-align: right;
}

/* Step Navigation */
.step-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 36px;
  gap: 16px;
}

.step-buttons button {
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 15px;
  min-width: 120px;
}

.step-buttons .secondary {
  background: #ffffff18;
  color: var(--fg);
  border: 1px solid #ffffff33;
}

.step-buttons .secondary:hover {
  background: #ffffff28;
  border-color: var(--accent);
  transform: translateY(-1px);
}

.step-buttons .primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.step-buttons .primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.step-buttons .primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Success Step */
.success-content {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.success-content h3 {
  color: #4CAF50;
  margin-bottom: 12px;
}

.feedback-id {
  background: #ffffff0f;
  padding: 12px;
  border-radius: 8px;
  margin: 20px 0;
  border: 1px solid #ffffff22;
}

.feedback-id strong {
  color: #667eea;
}

/* ===============================
   PETS SYSTEM STYLES
   =============================== */

/* Pets modal and general styling */
#petsModal .modal-content {
  max-width: 1100px;
  max-height: 88vh;
  width: 95vw;
}

#petsModal .modal-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.pets-status-banner {
  padding: 8px 16px;
  border-bottom: 1px solid #ffffff22;
  background: linear-gradient(135deg, #ffffff05, #ffffff02);
}

.pets-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 20px 24px;
  flex: 1;
  overflow: hidden;
}

#petsModalList {
  overflow-y: auto;
  max-height: 60vh;
  padding-right: 12px;
}

#petsModalDetail {
  background: linear-gradient(135deg, #ffffff08, #ffffff04);
  border-radius: 16px;
  padding: 24px;
  overflow-y: auto;
  max-height: 60vh;
  border: 1px solid #ffffff15;
}

/* Pets locked/unlocked messages */
.pets-locked-message,
.pets-unlocked-banner,
.empty-inventory {
  text-align: center;
  padding: 16px 20px;
  background: linear-gradient(135deg, #ffffff0a, #ffffff05);
  border-radius: 10px;
  border: 1px solid #ffffff15;
  margin: 0;
}

.pets-locked-message .lock-icon,
.pets-unlocked-banner .banner-icon,
.empty-inventory .empty-icon {
  font-size: 24px;
  margin-bottom: 8px;
  opacity: 0.8;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.pets-locked-message h3,
.pets-unlocked-banner h3,
.empty-inventory h3 {
  margin: 0 0 6px 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.pets-locked-message p,
.pets-unlocked-banner p,
.empty-inventory p {
  margin: 0;
  opacity: 0.7;
  font-size: 12px;
  line-height: 1.4;
}

.progress-info {
  background: #ffffff08;
  padding: 8px 12px;
  border-radius: 6px;
  margin-top: 8px;
  border: 1px solid #ffffff22;
  font-size: 11px;
}

.pets-unlocked-banner {
  background: linear-gradient(135deg, #4CAF5020, #667eea20);
  border: 1px solid #4CAF5030;
}

.pets-unlocked-banner.compact {
  padding: 12px 16px;
}

.pets-unlocked-banner.compact .banner-icon {
  font-size: 18px;
  margin-bottom: 4px;
}

.pets-unlocked-banner.compact h3 {
  font-size: 12px;
  margin-bottom: 2px;
}

.pets-unlocked-banner.compact p {
  font-size: 10px;
  margin: 0;
}

.pets-unlocked-banner .banner-text h3 {
  color: #4CAF50;
}

.empty-inventory {
  background: linear-gradient(135deg, #ff800020, #a335ee20);
  border: 1px solid #ff800040;
}

.empty-inventory .empty-icon {
  opacity: 0.5;
}

/* Status banner specific styling */
.pets-status-banner .pets-locked-message,
.pets-status-banner .pets-unlocked-banner,
.pets-status-banner .empty-inventory {
  background: linear-gradient(135deg, #ffffff0f, #ffffff08);
  border: 1px solid #ffffff25;
  border-radius: 8px;
  padding: 12px 16px;
}

.pets-status-banner .pets-unlocked-banner {
  background: linear-gradient(135deg, #4CAF5015, #667eea15);
  border: 1px solid #4CAF5030;
}

.pets-status-banner .empty-inventory {
  background: linear-gradient(135deg, #ff800015, #a335ee15);
  border: 1px solid #ff800030;
}

/* Auto-hide animation */
.pets-status-banner .pets-unlocked-banner.auto-hide {
  animation: fadeOutSlide 1s ease-out forwards;
}

@keyframes fadeOutSlide {
  0% {
    opacity: 1;
    transform: translateY(0);
    max-height: 100px;
  }
  100% {
    opacity: 0;
    transform: translateY(-20px);
    max-height: 0;
    padding: 0 16px;
    margin: 0;
  }
}

/* Pet cards grid */
.pets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  padding: 12px 0;
}

.pet-card {
  background: linear-gradient(135deg, var(--card), #ffffff08);
  border: 1px solid #ffffff22;
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.pet-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.2), 0 4px 15px rgba(0,0,0,0.1);
  border-color: var(--accent);
  background: linear-gradient(135deg, #ffffff15, #ffffff08);
}

.pet-card.common {
  border-left: 4px solid #8c8c8c;
}

.pet-card.uncommon {
  border-left: 4px solid #1eff00;
}

.pet-card.rare {
  border-left: 4px solid #0070dd;
}

.pet-card.epic {
  border-left: 4px solid #a335ee;
}

.pet-card.legendary {
  border-left: 4px solid #ff8000;
  background: linear-gradient(135deg, #ff800020, var(--card));
  box-shadow: 0 4px 15px rgba(255, 128, 0, 0.2);
}

.pet-card.legendary:hover {
  box-shadow: 0 12px 35px rgba(255, 128, 0, 0.3), 0 4px 15px rgba(255, 128, 0, 0.1);
}

.pet-icon {
  font-size: 40px;
  text-align: center;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.pet-info {
  margin-bottom: 20px;
}

.pet-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--fg);
}

.pet-rarity {
  font-size: 13px;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}

.pet-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  margin-bottom: 4px;
}

.pet-level {
  background: var(--accent);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.pet-acquired {
  font-size: 11px;
  opacity: 0.6;
}

.pet-status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.pet-status.owned {
  background: #4CAF50;
  color: white;
}

/* Pet task progress */
.pet-task-progress {
  margin-bottom: 12px;
}

.task-label {
  font-size: 11px;
  opacity: 0.7;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.progress-bar {
  background: #ffffff1a;
  border-radius: 8px;
  height: 6px;
  overflow: hidden;
  margin-bottom: 4px;
}

.progress-fill {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  height: 100%;
  transition: width 0.3s ease;
  border-radius: 8px;
}

.progress-text {
  font-size: 10px;
  opacity: 0.8;
  text-align: center;
}

/* Pet actions */
.pet-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pet-action {
  flex: 1;
  min-width: 100px;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.pet-action.primary {
  background: var(--accent);
  color: white;
}

.pet-action.primary:hover:not(:disabled) {
  background: var(--accent-2);
  transform: translateY(-1px);
}

.pet-action.secondary {
  background: #ffffff15;
  color: var(--fg);
  border: 1px solid #ffffff22;
}

.pet-action.secondary:hover:not(:disabled) {
  background: #ffffff25;
  border-color: var(--accent);
}

.pet-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Empty states */
.empty-inventory {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-inventory h3 {
  margin: 0 0 20px 0;
  color: var(--accent);
}

.no-pets-filtered {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  opacity: 0.7;
}

/* Inventory controls */
.inventory-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #ffffff22;
}

.inventory-header h3 {
  margin: 0 0 12px 0;
  color: var(--fg);
}

.inventory-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.inventory-filters select {
  background: var(--glass);
  border: 1px solid #ffffff22;
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--fg);
  font-size: 12px;
  min-width: 120px;
}

.inventory-filters select:focus {
  outline: none;
  border-color: var(--accent);
}

/* Pet details panel */
.pet-details {
  padding: 0;
}

.pet-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ffffff22;
}

.pet-large-icon {
  font-size: 56px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.pet-title h3 {
  margin: 0 0 10px 0;
  font-size: 24px;
  color: var(--fg);
  font-weight: 700;
}

.pet-title .pet-rarity {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.pet-rarity.common { background: #8c8c8c; color: white; }
.pet-rarity.uncommon { background: #1eff00; color: black; }
.pet-rarity.rare { background: #0070dd; color: white; }
.pet-rarity.epic { background: #a335ee; color: white; }
.pet-rarity.legendary { background: #ff8000; color: white; }

.pet-description {
  margin-bottom: 24px;
  padding: 20px;
  background: linear-gradient(135deg, #ffffff08, #ffffff04);
  border-radius: 12px;
  border-left: 4px solid var(--accent);
  border: 1px solid #ffffff15;
}

.pet-description p {
  margin: 0;
  line-height: 1.6;
  opacity: 0.9;
  font-size: 15px;
}

.pet-stats,
.pet-current-stats,
.pet-upgrade-preview,
.pet-unlock-task,
.pet-purchase-info {
  margin-bottom: 24px;
}

.pet-stats h4,
.pet-current-stats h4,
.pet-upgrade-preview h4,
.pet-unlock-task h4,
.pet-purchase-info h4 {
  margin: 0 0 16px 0;
  color: var(--accent);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
}

.stat-grid {
  display: grid;
  gap: 12px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #ffffff0a;
  border-radius: 8px;
  border: 1px solid #ffffff15;
}

.stat-label {
  font-size: 13px;
  opacity: 0.8;
  font-weight: 600;
}

.stat-value {
  font-weight: 700;
  color: var(--good);
  font-size: 13px;
}

.pet-upgrade-preview {
  background: linear-gradient(135deg, #667eea20, #4CAF5020);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #667eea40;
}

.upgrade-cost {
  font-weight: 700;
  color: var(--warn);
  margin-bottom: 16px;
  text-align: center;
  font-size: 16px;
}

.pet-unlock-task {
  background: linear-gradient(135deg, #ff800020, #a335ee20);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #ff800040;
}

.task-info {
  text-align: center;
}

.task-description {
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 15px;
}

.task-progress {
  margin-top: 12px;
}

.pet-purchase-info {
  background: linear-gradient(135deg, #ffffff08, #ffffff04);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #ffffff15;
}

.price-info .price {
  font-size: 20px;
  font-weight: 700;
  color: var(--warn);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .modal-content {
    width: 98vw;
    max-height: 95vh;
    border-radius: 16px;
  }
  
  .modal-body {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }
  
  #petsModal .modal-body {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }
  
  .pets-status-banner {
    padding: 16px 20px;
  }
  
  .pets-content-wrapper {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px 20px;
  }
  
  #petsModalList {
    max-height: 40vh;
    padding-right: 8px;
  }
  
  #petsModalDetail {
    max-height: 35vh;
    padding: 16px;
  }
  
  .pets-grid {
    grid-template-columns: 1fr;
  }
  
  .pet-actions {
    flex-direction: column;
  }
  
  .pet-action {
    min-width: unset;
  }
  
  .inventory-filters {
    flex-direction: column;
  }
  
  .inventory-filters select {
    min-width: unset;
  }
  
  .pet-header {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .stat-item {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
  
  .feedback-modal {
    width: 98vw;
    max-width: none;
  }
  
  .feedback-body {
    padding: 20px;
    min-height: 300px;
  }
  
  .reason-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .reason-btn {
    min-height: 80px;
    padding: 16px;
  }
  
  .reason-icon {
    font-size: 32px;
  }
  
  .reason-text h4 {
    font-size: 16px;
  }
  
  .reason-text p {
    font-size: 14px;
  }
  
  .step-buttons {
    flex-direction: column;
    gap: 12px;
  }
  
  .step-buttons button {
    width: 100%;
    min-width: unset;
  }
  
  /* Mobile banner adjustments */
  .pets-status-banner .pets-locked-message,
  .pets-status-banner .pets-unlocked-banner,
  .pets-status-banner .empty-inventory {
    padding: 8px 12px;
  }
  
  .pets-status-banner .lock-icon,
  .pets-status-banner .banner-icon,
  .pets-status-banner .empty-icon {
    font-size: 20px;
    margin-bottom: 6px;
  }
  
  .pets-status-banner h3 {
    font-size: 12px;
    margin-bottom: 4px;
  }
  
  .pets-status-banner p {
    font-size: 10px;
    margin-bottom: 8px;
  }
  
  .pets-status-banner .pets-unlocked-banner.compact {
    padding: 8px 12px;
  }
  
  .pets-status-banner .pets-unlocked-banner.compact .banner-icon {
    font-size: 16px;
    margin-bottom: 2px;
  }
  
  .pets-status-banner .pets-unlocked-banner.compact h3 {
    font-size: 11px;
    margin-bottom: 2px;
  }
  
  .pets-status-banner .pets-unlocked-banner.compact p {
    font-size: 9px;
  }
}
