/* styles.css - DEWA Interactive Wallet */
:root{
  --bg1: #2e2e2e;
  --bg2: #1a1a1a;
  --leather1: #5a3e1b;
  --leather2: #2e1b0f;
  --accent: #f0c14b;
  --glass: rgba(255,255,255,0.03);
}

*{box-sizing:border-box}
html,body{height:100%;margin:0;font-family:Segoe UI, Roboto, -apple-system, system-ui;background:linear-gradient(135deg,var(--bg1),var(--bg2));-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}

.wallet-scene{
  width: 500px;
  height: 300px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-15deg);
  transition: transform 1s ease;
  cursor: grab;
  border-radius:18px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.7);
  perspective: 2000px;
}

.wallet-scene.open{ transform: rotateY(0deg); }

.wallet{
  width:100%;
  height:100%;
  position:absolute;
  background: linear-gradient(145deg,var(--leather1),var(--leather2));
  border-radius: 15px;
  overflow: hidden;
  transform-style: preserve-3d;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.4);
}

.wallet::before{
  content:'';
  position:absolute;
  width:100%;
  height:100%;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.12), transparent);
  border-radius:15px;
  mix-blend-mode: overlay;
  pointer-events:none;
}

.wallet-inner{
  display:grid;
  grid-template-columns: 1fr 1fr;
  height:100%;
  transform-style: preserve-3d;
  padding: 18px;
  gap:8px;
}

.slot{
  background: rgba(0,0,0,0.12);
  margin: 4px;
  border-radius: 10px;
  box-shadow: inset 0 6px 14px rgba(0,0,0,0.5);
  overflow: auto;
  padding: 10px;
  transform: translateZ(20px);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:6px;
}

.bill{
  width: 90%;
  height: 50px;
  margin: 5px auto;
  border-radius: 6px;
  background: linear-gradient(90deg, #1db954, #15823d);
  color: #fff;
  font-weight: 700;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor: grab;
  transition: transform 0.25s cubic-bezier(.2,.9,.2,1), box-shadow 0.2s;
  user-select: none;
  touch-action: none;
  box-shadow: 0 8px 18px rgba(0,0,0,0.45);
}

.bill:active{ cursor: grabbing; transform: scale(0.98); }

.bill:hover{ transform: translateY(-8px) scale(1.05); }

.bill.card{
  background: linear-gradient(90deg,#0072ff,#00c6ff);
  height:44px;
  border-radius:8px;
  font-weight:600;
  letter-spacing:0.6px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.5);
}

.nav{
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display:flex;
  gap:14px;
}

.nav button{
  padding:10px 20px;
  border:none;
  border-radius:30px;
  background:var(--accent);
  color:#111;
  font-weight:700;
  cursor:pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  transition: transform .18s, filter .18s;
}

.nav button:hover{ transform: translateY(-4px) scale(1.03); filter:brightness(1.02); }

@media (max-width:640px){
  .wallet-scene{ width: 94vw; height: 56vw; }
}
