/* Mayın oyunu sayfa stilleri */
body { background-color: #0f1b24; }
.main-content { padding-top: 50px; }

.mines-wrapper { display: grid; grid-template-columns: 380px 1fr; gap: 24px; margin-top: 24px; }
.mines-left { background: #13202a; border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 16px; height: fit-content; position: sticky; top: 50px; padding-top: 24px; }
.mines-right { background: #0f1b24; border-radius: 12px; padding: 6px; min-height: 500px; border: 1px solid rgba(255,255,255,0.1); }

.tab-switch { background: rgba(255,255,255,0.06); border-radius: 16px; display:flex; padding:4px; gap:4px; margin-bottom: 12px; }
.tab-btn { flex:1; background: transparent; color:#cbd5e1; font-weight: 800; padding:10px 12px; border: none; border-radius: 12px; cursor:pointer; }
.tab-btn.active { background:#0b1221; color:#fff; }

.form-block { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; padding: 12px; margin-bottom: 10px; overflow: hidden; }
.row { display:flex; align-items:center; gap:10px; }
.between { justify-content: space-between; }
label { font-size: 13px; color:#cbd5e1; font-weight:700; }
.fiat { font-size: 12px; color:#9aa7b7; }

.bet-input { display:grid; grid-template-columns: 1fr 44px 44px 44px; gap:8px; }
.bet-input input { width:100%; background:#0b1620; color:#e5e7eb; border:1px solid rgba(255,255,255,0.08); border-radius: 8px; padding:10px 12px; font-weight:800; height:42px; }
.bet-input .coin, .bet-input .mini { background:#0b1620; border:1px solid rgba(255,255,255,0.08); border-radius:8px; width:44px; height:42px; display:flex; align-items:center; justify-content:center; padding:0; }
.bet-input .coin { color:#22c55e; font-weight:900; }
.bet-input .mini { color:#e5e7eb; font-weight:800; cursor:pointer; }

/* Disabled controls */
input[disabled], select[disabled], button[disabled] {
  opacity: 0.6;
  cursor: not-allowed !important;
}
.bet-input .mini[disabled] { pointer-events: none; }

.row-2 { display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
.select select, #gemsLeft { width:100%; background:#0b1620; color:#e5e7eb; border:1px solid rgba(255,255,255,0.08); border-radius:8px; padding:10px 12px; font-weight:800; }

.profit-input { display:flex; align-items:center; gap:8px; }
.profit-input input { flex:1; background:#0b1620; color:#e5e7eb; border:1px solid rgba(255,255,255,0.08); border-radius: 8px; padding:10px 12px; font-weight:800; }

.btn { border:none; border-radius:10px; font-weight:800; cursor:pointer; }
.btn.primary { background:#1ed760; color:#0b1221; padding:14px 12px; }
.btn.secondary { background:#1f2937; color:#e5e7eb; padding:12px; width:100%; border:1px solid rgba(255,255,255,0.08); margin-bottom:10px; }
.btn.success { background:#1ed760; color:#0b1221; padding:16px 12px; }
.btn.full { width:100%; }

.grid { display:grid; grid-template-columns: repeat(5, 1fr); grid-auto-rows: 110px; gap: 12px; padding: 8px; min-height: 400px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); }
.tile { background:#23323d; border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; display:flex; align-items:center; justify-content:center; position:relative; cursor:pointer; box-shadow: inset 0 0 0 2px rgba(0,0,0,0.2); }
.tile:hover { filter: brightness(1.05); }
.tile.open { background:#0c1721; }

.gem { width: 54px; height: 54px; background: radial-gradient(#32ff80,#0dbb47); border-radius: 10px; box-shadow: 0 9px 20px rgba(13,187,71,.40); }
.mine { width: 60px; height: 60px; background: radial-gradient(circle at 35% 35%, #ff97a3, #e11d48 60%, #7f0a1f); border-radius: 50%; position: relative; }
.mine::after { content:''; position:absolute; width: 34px; height: 11px; background: #0b1221; border-radius: 6px; top: 16px; left: 13px; transform: rotate(-20deg); box-shadow: 0 2px 0 rgba(255,255,255,0.15) inset; }
.spark { position:absolute; width: 15px; height: 15px; right: 9px; bottom: 9px; border-radius: 50%; background: radial-gradient(circle, #ffd54a, #ffa000 60%, #ff5722); box-shadow: 0 0 13px #ffb300; }

/* Cashout Popup */
.cashout-overlay { position: fixed; inset: 0; display:flex; align-items:center; justify-content:center; background: rgba(0,0,0,0.55); z-index: 3000; }
.cashout-modal { background:#0b1620; border:2px solid #1ed760; border-radius: 18px; padding: 24px 28px; text-align:center; color:#e5e7eb; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.cashout-mult { font-size: 40px; font-weight: 900; color:#1ed760; margin-bottom: 10px; }
.cashout-amount { font-size: 18px; font-weight: 800; }

/* Notification Popup */
.notification-overlay { position: fixed; inset: 0; display:flex; align-items:center; justify-content:center; background: rgba(0,0,0,0.55); z-index: 3000; }
.notification-modal { background:#0b1620; border:1px solid rgba(255,255,255,0.1); border-radius: 18px; padding: 24px 28px; text-align:center; color:#e5e7eb; box-shadow: 0 20px 60px rgba(0,0,0,.6); max-width: 400px; width: 90%; }
.notification-message { font-size: 16px; font-weight: 600; margin-bottom: 20px; }
.notification-close { background:#1ed760; color:#0b1221; border:none; border-radius: 10px; padding: 12px 24px; font-weight: 800; cursor: pointer; }
.notification-close:hover { background:#1bc553; }

@media (max-width: 768px) {
  .notification-modal { 
    max-width: 320px; 
    width: 85%; 
    padding: 18px 20px; 
    border-radius: 14px; 
  }
  .notification-message { 
    font-size: 14px; 
    margin-bottom: 16px; 
  }
  .notification-close { 
    padding: 10px 20px; 
    font-size: 14px; 
  }
  .cashout-modal { 
    max-width: 320px; 
    width: 85%; 
    padding: 18px 20px; 
    border-radius: 14px; 
  }
  .cashout-mult { 
    font-size: 32px; 
    margin-bottom: 8px; 
  }
  .cashout-amount { 
    font-size: 16px; 
  }
}

@media (max-width: 480px) {
  .notification-modal { 
    max-width: 280px; 
    width: 90%; 
    padding: 16px 18px; 
    border-radius: 12px; 
  }
  .notification-message { 
    font-size: 13px; 
    margin-bottom: 14px; 
  }
  .notification-close { 
    padding: 8px 16px; 
    font-size: 13px; 
  }
  .cashout-modal { 
    max-width: 280px; 
    width: 90%; 
    padding: 16px 18px; 
    border-radius: 12px; 
  }
  .cashout-mult { 
    font-size: 28px; 
    margin-bottom: 6px; 
  }
  .cashout-amount { 
    font-size: 14px; 
  }
}

@media (max-width: 992px){
  .mines-wrapper { grid-template-columns: 1fr; grid-template-rows: auto auto; }
  .mines-left { position: static; order: 2; }
  .mines-right { order: 1; padding: 10px; height: 60vh; }
  .grid { grid-auto-rows: 1fr; gap: 8px; height: 100%; }
}

/* Laptop L / 1366 */
@media (max-width: 1366px){
  .grid { grid-auto-rows: 104px; gap: 12px; }
}

/* Laptop / 1200-1100 widths */
@media (max-width: 1200px){
  .mines-wrapper { grid-template-columns: 1fr; grid-template-rows: auto auto; }
  .mines-left { order: 2; }
  .mines-right { order: 1; }
  .grid { grid-auto-rows: 98px; gap: 12px; }
}

@media (max-width: 1100px){
  .mines-wrapper { grid-template-columns: 1fr; grid-template-rows: auto auto; }
  .mines-left { order: 2; }
  .mines-right { order: 1; }
  .grid { grid-auto-rows: 94px; }
}

@media (max-width: 720px){
  .mines-wrapper { gap: 12px; margin-top: 12px; }
  .mines-left { padding: 12px; order: 2; }
  .mines-right { padding: 6px; height: 55vh; order: 1; }
  .grid { grid-auto-rows: 1fr; gap: 6px; height: 100%; }
  .gem { width: 40px; height: 40px; }
  .mine { width: 44px; height: 44px; }
  .tab-btn { padding: 8px 10px; }
  .bet-input { grid-template-columns: 1fr 40px 40px 40px; }
  .bet-input input { height: 40px; }
  .bet-input .coin, .bet-input .mini { width: 40px; height: 40px; }
}

@media (max-width: 480px){
  .main-content { padding-top: 50px; }
  .mines-wrapper { gap: 8px; margin-top: 8px; }
  .mines-left { padding: 8px; order: 2; }
  .mines-right { padding: 4px; height: 50vh; order: 1; }
  .grid { grid-auto-rows: 1fr; gap: 4px; height: 100%; }
  .gem { width: 36px; height: 36px; }
  .mine { width: 40px; height: 40px; }
  .tile { border-radius: 10px; }
  .btn.primary { padding: 12px 10px; }
  .form-block { padding: 8px; margin-bottom: 6px; }
  .bet-input { gap: 6px; }
  .bet-input input { height: 38px; padding: 8px 10px; }
  .bet-input .coin, .bet-input .mini { width: 38px; height: 38px; }
}

/* Small phones (iPhone SE/mini) */
@media (max-width: 375px){
  .main-content { padding-top: 50px; }
  .mines-wrapper { gap: 6px; margin-top: 6px; }
  .mines-left { padding: 6px; order: 2; }
  .mines-right { padding: 3px; height: 45vh; order: 1; }
  .grid { grid-auto-rows: 1fr; gap: 3px; height: 100%; }
  .gem { width: 32px; height: 32px; }
  .mine { width: 36px; height: 36px; }
  .form-block { padding: 6px; margin-bottom: 4px; }
  .bet-input { gap: 4px; }
  .bet-input input { height: 36px; padding: 6px 8px; }
  .bet-input .coin, .bet-input .mini { width: 36px; height: 36px; }
  .btn.primary { padding: 10px 8px; }
  .btn.secondary { padding: 10px 8px; }
}
