/* =========================================================
   FM Phone Preview - FIX WIDTH + FIX HEIGHT (RESPONSIVE)
   ========================================================= */

/* ------------------------------
   Phone wrapper (controls scaling)
   ------------------------------ */
.fm-phone{
  width: 320px;                  /* <<< FIX szélesség */
  max-width: 100%;
  border-radius: 28px;
  border: 1px solid rgba(0,0,0,.15);
  background: #fff;
  box-shadow: inset 0 0 0 6px #111;
  overflow: hidden;
}

/* ------------------------------
   Status bar
   ------------------------------ */
.fm-phone-header{
  padding: .5rem .75rem 0 .75rem;
  color: #6c757d;
  font-size: .85rem;
  width: 100%;                   /* <<< sose szűküljön */
  box-sizing: border-box;
}

/* ------------------------------
   Screen (FIX HEIGHT + WIDTH)
   ------------------------------ */
.fm-phone-screen{
  width: 100%;                   /* <<< FIX szélesség */
  height: 380px;                 /* <<< FIX magasság */
  padding: 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* ------------------------------
   Unit chip
   ------------------------------ */
.fm-phone-chip{
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .55rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(248,249,250,1);
  font-size: .8rem;
  color: #6c757d;
  white-space: nowrap;           /* <<< ne törjön */
}

/* ------------------------------
   Big balance number
   ------------------------------ */
.fm-balance-big{
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;           /* <<< ne tágítson */
}

/* ------------------------------
   View containers (Balance / Stats)
   ------------------------------ */
.fm-view{
  flex: 1 1 auto;
  width: 100%;                   /* <<< FIX szélesség */
  transition: opacity .18s ease, transform .18s ease;
}

.fm-view-hidden{
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
}

/* ------------------------------
   Bottom navigation (FIXED)
   ------------------------------ */
.fm-phone-nav{
  display: flex;
  justify-content: space-around;
  border-top: 1px solid rgba(0,0,0,.08);
  padding-top: .55rem;
  margin-top: auto;
  width: 100%;                   /* <<< FIX szélesség */
  box-sizing: border-box;
  color: #6c757d;
  font-size: .95rem;
}

/* ------------------------------
   Tab buttons
   ------------------------------ */
.fm-tab{
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(248,249,250,1);
  border-radius: 12px;
  padding: .35rem .6rem;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.fm-tab.active{
  border-color: rgba(13,110,253,.35);
  background: rgba(13,110,253,.10);
  color: #0d6efd;
}

/* ------------------------------
   Stats canvas (LOCKED SIZE)
   ------------------------------ */
#fmStatsCanvas{
  display: block;
  width: 100%;
  height: 140px;                 /* <<< FIX grafikon */
  max-width: 100%;
}

/* =========================================================
   RESPONSIVE SCALE (mobile-friendly)
   ========================================================= */

/* Kisebb mobilokon ne lógjon ki */
@media (max-width: 380px){
  .fm-phone{
    transform: scale(0.92);
    transform-origin: top center;
  }
}

@media (max-width: 340px){
  .fm-phone{
    transform: scale(0.88);
  }
}
