/* === MortalMines style port (faithful to the original CSS) ======== */
:root {
  --principal-color: #60a6d1;
  --header_color: #152128;
  --header_background_opacity: 0.35;
  --background_position: center;
  --background_scale: 1.5;
  --background_blur: 0px;
  --background_url: url("https://images.unsplash.com/photo-1607513746994-51f730a44832?auto=format&fit=crop&w=1920&q=70");
  --logo_width: 400px;
  --phone_wrap: 30px;
  --large_screen_wrap: 20px;
  --particles: block;
}

* { margin: 0; padding: 0; font-family: Montserrat, sans-serif; outline: 0 !important; box-sizing: border-box; }
html, body { padding: 0; margin: 0; }
body {
  font-family: Montserrat, sans-serif;
  background: #262b2f;
  color: #c8c8c8;
  font-size: 15px;
  overflow-x: hidden;
}
a { color: var(--principal-color); text-decoration: none; }
a:hover, a:focus { color: var(--principal-color); text-decoration: underline; }
ol, ul { margin: 0 0 10.5px; padding-inline-start: 40px; }

.container-catalin {
  padding: 5px var(--large_screen_wrap);
  max-width: 1170px;
  margin: auto;
}
@media only screen and (max-width: 600px) { .container-catalin { padding: 5px var(--phone_wrap); } }

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-thumb { background: #37393e; }
::-webkit-scrollbar-track { background: #040807; }

/* === Header (hero) =============================================== */
.catalin-header {
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  z-index: 1020;
  background: var(--header_color);
  overflow: hidden;
}
.header-hover {
  position: absolute;
  inset: 0;
  background: var(--background_url);
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: var(--background_position);
  filter: blur(var(--background_blur));
  opacity: var(--header_background_opacity);
  z-index: 2;
}
#particles-js {
  position: absolute;
  inset: 0;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: var(--particles);
  z-index: 3;
}

.catalin-header .catalin-navigatie {
  padding: 20px 0;
  background: rgba(255,255,255,0.05);
  box-shadow: 0 3px 6px rgba(0,0,0,0.08), 0 3px 6px rgba(0,0,0,0.02);
  position: relative;
  z-index: 1020;
}
.catalin-header .catalin-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.catalin-header .catalin-nav-links li { display: inline-block; }
.catalin-header .catalin-nav-links li a {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: all .3s;
  text-shadow: 4px 4px 2px rgba(0,0,0,0.08);
  padding: 15px;
  position: relative;
}
.catalin-header .catalin-nav-links li a:hover { color: #fff; }
.catalin-header .catalin-nav-links li a:not(:nth-child(2)) { margin-left: 10px; }
.catalin-header .catalin-nav-links li .store {
  background: var(--principal-color);
  position: relative;
  padding: 15px 35px;
  text-align: center;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-bottom: 2px solid rgba(0,0,0,0.2);
  border-radius: 50px;
}
.steluta {
  position: absolute;
  top: -7px;
  right: 0;
  left: 0;
  transition: all .15s;
  text-align: center;
}
.store:hover .steluta { transform: rotate(180deg) scale(1.3,1.3) !important; color: #fff; }

@media only screen and (min-width: 768px) {
  .catalin-nav-links li a:after {
    content: "";
    height: 2px;
    width: 0%;
    background: var(--principal-color);
    position: absolute;
    left: 0; right: 0; bottom: 5px;
    margin: 0 auto;
    transition: all .35s ease;
  }
  .catalin-nav-links li a:hover:after { width: 50%; }
}

.catalin-header .catalin-header-content {
  text-align: center;
  margin-top: 80px;
  padding-bottom: 80px;
  background: linear-gradient(transparent 0, rgba(0,0,0,0.18) 30%, #262b2f 100%);
  position: relative;
  z-index: 999;
}

.coloana-3 {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.coloana-3 .cutie-1 { flex: 1; text-align: center; }
.coloana-3 .cutie-1 p { text-align: right; }
.coloana-3 .cutie-2 { flex: 1; }
.coloana-3 .cutie-3 { flex: 1; text-align: center; }

#logo-server {
  width: var(--logo_width) !important;
  transform: scale(var(--background_scale));
}

.directie-elemente,
.directia-elementelor-secundare {
  display: inline-block;
  vertical-align: middle;
  list-style: none;
  margin: 0;
  padding: 0;
}
.directia-elementelor-secundare { margin-left: 15px !important; }
.directie-elemente .principalul-element i {
  background: rgba(0,0,0,0.08);
  padding: 15px;
  border-radius: 5px;
  font-size: 35px;
  color: var(--principal-color);
}
.directia-elementelor-secundare .element-secundar h3 {
  color: var(--principal-color);
  font-weight: 700;
  font-size: 1.17em;
  margin: 0;
  text-align: left;
}
.directia-elementelor-secundare .element-secundar p {
  color: #fff;
  margin: 0;
  text-align: left;
}
.directie-elemente .principalul-element .discord-spatiu { margin-left: 10px; }

.invarte {
  width: 12px;
  height: 12px;
  animation: invarte 1s infinite;
  border: 3px solid var(--principal-color);
  border-right: 3px solid #fff;
  border-radius: 50%;
  display: inline-block;
}
@keyframes invarte { from { transform: rotate(0); } to { transform: rotate(360deg); } }

#open-nav {
  display: none; cursor: pointer; outline: 0; border: none;
  margin: auto; background: 0 0; color: #fff;
}
#open-nav i { font-size: 20px; }

.no-padding-margin { margin: 0 !important; padding: 0 !important; }

@media (max-width: 960px) {
  #open-nav { display: block; }
  #button-open { display: block !important; }
  #testare-hide { display: none; }
  .coloana-3 { flex-direction: column; }
  .coloana-3 > div { margin: auto; }
  .catalin-nav-links { justify-content: flex-end !important; }
}

/* === Sale banner ================================================== */
.sale {
  background: #d14841;
  display: inline-block;
  text-align: center;
  border-radius: 10px 10px 0 0;
  padding: 0 10px;
  margin: auto;
}
.sale p {
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  padding: 8px;
  margin: 0;
}
#countdown-triplez {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  padding: 5px;
  border-radius: 5px;
  width: 110px;
}

/* === Navbar (curved category nav) ================================ */
.navbar-default {
  border: none;
  background-color: #2c3136;
  border-radius: 5px;
  box-shadow: 0 10px 12px rgba(0,0,0,0.1);
  border-bottom: 3px solid #262b2f;
  position: relative;
}
.navbar-default .container-fluid { padding: 0 16px; }
.navbar-default .navbar-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  padding: 18px;
  cursor: pointer;
}
.navbar-default .navbar-toggle .icon-bar { display: block; width: 22px; height: 2px; background: #fff; margin: 4px 0; }

.navbar-default .navbar-collapse { display: block; }
.nav.navbar-nav {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.navbar-default .navbar-nav > li { position: relative; }
.navbar-default .navbar-nav > li > a {
  color: #c8c8c8;
  font-size: 14px;
  padding: 35px 20px;
  display: block;
  transition: all .3s;
  position: relative;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
  color: var(--principal-color);
  background-color: transparent;
  text-decoration: none;
}
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:focus,
.navbar-default .navbar-nav > .active > a:hover {
  color: var(--principal-color);
  text-decoration: none;
}
@media only screen and (min-width: 768px) {
  .navbar-default .navbar-nav > li > a:after {
    content: "";
    height: 2px;
    width: 0%;
    background: var(--principal-color);
    position: absolute;
    left: 0; right: 0; bottom: 22px;
    margin: 0 auto;
    transition: all .35s ease;
  }
  .navbar-default .navbar-nav > li > a:hover:after { width: 25%; }
}

/* Active downward arrow */
.activ-zone:after {
  content: " ";
  position: absolute;
  border: solid 10px transparent;
  border-color: #2c3136 transparent transparent transparent;
  top: 6em;
  left: 50%;
  margin-left: -10px;
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  display: none;
  background: #2c3136 !important;
  border: none !important;
  border-radius: 6px !important;
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  min-width: 180px;
  list-style: none;
  margin: 0;
  padding: 5px 0;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu > li > a {
  display: block;
  padding: 10px 20px;
  color: #c8c8c8;
  font-size: 13px;
  text-align: center;
  transition: all .3s;
  text-decoration: none;
}
.dropdown-menu > li > a:hover { color: #fff; background: #262b2f; }
.mdi-chevron-down::before { content: " ▾"; font-size: 11px; }

@media (max-width: 960px) {
  .navbar-default .navbar-toggle { display: block; }
  .navbar-default .navbar-collapse { display: none; }
  .navbar-default .navbar-collapse.open { display: block; }
  .nav.navbar-nav { flex-direction: column; padding-bottom: 12px; }
  .navbar-default .navbar-nav > li { width: 100%; }
  .navbar-default .navbar-nav > li > a { padding: 14px 20px; text-align: center; }
  .activ-zone:after { display: none; }
  .dropdown-menu { position: static; transform: none; box-shadow: none; min-width: 0; }
}

/* === Body grid ==================================================== */
.body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 24px;
  margin-top: 24px;
  padding-bottom: 30px;
}
@media (max-width: 960px) { .body { grid-template-columns: 1fr; } }
.col-md-9 { min-width: 0; }
.col-md-3 { min-width: 0; }

/* Welcome heading */
.bun-venit-pe {
  padding: 25px;
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 5px;
  background: #2e353b;
  color: var(--principal-color);
  border-radius: 5px 5px 0 0;
  border-bottom: 3px solid rgba(0,0,0,0.12);
}

/* === Panels ======================================================= */
.panel-default { border: none !important; }
.panel {
  background-color: #2c3136;
  box-shadow: 0 10px 12px rgba(0,0,0,0.1);
  margin-bottom: 26px;
}
.panel-body { padding: 20px; padding-top: 8px; }
.panel-default > .panel-heading {
  color: var(--principal-color);
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  background: #2e353b;
  border: none;
  border-bottom: 3px solid rgba(0,0,0,0.12);
  padding: 20px;
  letter-spacing: 1px;
  font-size: 14px;
}

/* The welcome panel attaches under .bun-venit-pe with no top radius */
.col-md-9 > .panel { border-top-left-radius: 0; border-top-right-radius: 0; }

/* User panel (sidebar top) */
.user-panel {
  display: flex;
  background: #2c3136;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  margin-bottom: 26px;
  border-radius: 5px;
  box-shadow: 0 10px 12px rgba(0,0,0,0.1);
}
.user-panel-left { display: flex; align-items: center; }
.user-panel-left-text { margin-left: 10px; }
.user-panel-left-text p { margin: 0; padding: 0; font-size: 12px; }
.user-panel-left .user-img img { border-radius: 5%; }
.user-name { color: var(--principal-color); font-weight: 700; font-size: 13px !important; }

/* Featured package */
.featured-package { text-align: center; }
.featured-package .image img { width: 96px; }
.featured-package .info .text {
  width: 100%;
  text-align: center;
  margin-bottom: 10px;
}
.featured-package .info .text .name { font-weight: 700; color: #fff; font-size: 14px; margin-top: 6px; }
.featured-package .info .text .price {
  font-weight: 700;
  font-size: 14px;
  color: #4da564;
  margin-top: 6px;
}
.featured-package .info .text .price .discount {
  color: #f44336;
  text-decoration: line-through;
  margin-right: 6px;
}
.featured-package .info .button { width: 100%; }

/* Goal */
.donation-goal p { margin: 0 0 6px 0; font-size: 13px; text-align: right; color: #c8c8c8; }
.progress {
  border: none;
  height: 20px;
  background: #262b2f;
  border-radius: 6px;
  overflow: hidden;
}
.progress-bar { background-color: var(--principal-color); height: 100%; transition: width .6s ease; }

/* Top donator */
.module .top-donator { display: flex; align-items: center; }
.module .top-donator .avatar img { width: 40px; image-rendering: pixelated; }
.module .top-donator .info { text-align: left; padding: 0 25px; flex: 1; }
.module .top-donator .info .ign { color: var(--principal-color); font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.module .top-donator .info .amount { font-size: 12px; color: #c8c8c8; }

/* Recent payments (style 2) */
.module .payments { list-style: none; margin: 0; padding: 0; position: relative; }
.module .payments li {
  display: flex;
  align-items: center;
  list-style: none;
  border-bottom: 1px solid #2e353b;
  padding: 6px 0;
  position: relative;
}
.module .payments li:last-child { border-bottom: none; }
.module .payments li .avatar { margin-right: 7px; }
.module .payments li .avatar img { border-radius: 5px; image-rendering: pixelated; }
.module .payments li .info {
  line-height: 15px;
  font-size: 12px;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
  flex: 1;
  margin: 10px 5px;
  position: relative;
  padding-right: 38px;
}
.module .payments li .info .ign h4 {
  font-weight: 700;
  font-size: 12px;
  margin: 0 0 3px;
  color: #fff;
}
.module .payments .extra h5 {
  font-size: 11px;
  margin: 0;
  background: #262b2f;
  color: #b3b3b3 !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  border-radius: 3px;
  padding: 2px 5px;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 18ch;
}
.detalii {
  position: absolute;
  right: 0;
  opacity: .5;
  transition: all .3s;
  cursor: help;
  top: 4px;
  font-size: 13px;
  color: #c8c8c8;
}
.detalii:hover { color: #fff; opacity: 1; }

/* === Buttons ====================================================== */
.btn-primary, .cumpara-zone-sm, .buton-verde {
  color: #fff;
  border: none;
  background-color: #4da564;
  text-shadow: 0 2px 2px rgba(0,0,0,0.1);
  border-bottom: 3px solid rgba(0,0,0,0.15) !important;
  outline: 0;
  font-weight: 700;
  padding: 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease;
}
.btn-primary:hover, .cumpara-zone-sm:hover, .buton-verde:hover {
  color: #fff !important;
  background-color: #15a558;
  text-decoration: none;
}
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 8px; font-size: 12px; }

.cumpara-zone {
  border: none;
  background: #4da564;
  padding: 10px;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 3px solid rgba(0,0,0,0.15) !important;
  color: #fff;
  cursor: pointer;
}

/* Cart trigger in nav (kept simple) */
.nav-cart-btn {
  background: #4da564;
  color: #fff;
  border: none;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 3px solid rgba(0,0,0,0.15);
  display: inline-flex; align-items: center; gap: 8px;
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  border-radius: 4px;
}
@media (max-width: 960px) { .nav-cart-btn { position: static; transform: none; margin: 8px auto; display: flex; } }

/* === Category / package list (catalog page) ====================== */
.category .packages-image {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}
.category .packages-image .package {
  border: 2px solid #33383e;
  background: #2e3338 !important;
  border-radius: 6px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}
.category .packages-image .package .image {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.category .packages-image .package .image img {
  max-width: 100%;
  max-height: 100%;
}
.category .packages-image .package .image .placeholder {
  font-size: 22px;
  color: #6a737a;
}
.category .packages-image .package .info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.category .packages-image .package .info .text {
  flex: 1;
  min-width: 0;
}
.category .packages-image .package .info .text .name {
  font-weight: 700;
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.category .packages-image .package .info .text .price {
  display: none; /* price moves to its own column */
}
.category .packages-image .package .info .price-col {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #4da564;
  white-space: nowrap;
}
.category .packages-image .package .info .price-col .discount {
  color: #f44336;
  text-decoration: line-through;
  margin-right: 6px;
}
.category .packages-image .package .info .price-col small {
  color: #4da564;
  font-size: 11px;
  margin-left: 2px;
}
.category .packages-image .package .info .button {
  flex: 0 0 auto;
}
.category .packages-image .package .info .button .btn-primary {
  padding: 10px 22px;
  border-radius: 4px;
}
@media (max-width: 540px) {
  .category .packages-image .package { flex-wrap: wrap; }
  .category .packages-image .package .info { flex-wrap: wrap; }
  .category .packages-image .package .info .text { flex: 1 1 100%; }
}

.category-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.category-tile {
  background: #2e3338;
  border: 2px solid #33383e;
  border-radius: 6px;
  padding: 22px 16px;
  text-align: center;
  text-decoration: none;
  color: #c8c8c8;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease;
}
.category-tile:hover { border-color: var(--principal-color); transform: translateY(-2px); color: #fff; text-decoration: none; }
.category-tile .tile-icon { font-size: 26px; color: var(--principal-color); margin-bottom: 8px; }
.category-tile .tile-name { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.category-tile .tile-count { font-size: 11px; color: #888; margin-top: 4px; }

.notification, .notice { font-size: 13px; }
.notice {
  background: rgba(96,166,209,0.10);
  border-left: 3px solid var(--principal-color);
  padding: 12px 16px;
  border-radius: 3px;
  margin-bottom: 14px;
}
.notice.warn { background: rgba(209,72,65,0.12); border-color: #d14841; }
.loading { text-align: center; padding: 40px 20px; color: #888; }

/* === Footer ======================================================= */
.footer-premium {
  background: #2c3136;
  color: #888;
  margin-top: 60px;
}
.footer-premium-flex { display: flex; flex-direction: row; }
.col-footer { margin-right: 30px; flex: 1; padding: 25px 0; line-height: 24px; }
.col-footer:last-child { margin-right: 0; }
.col-footer h3 {
  margin: 0 0 20px; color: #fff; font-size: 19px; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
}
.col-footer p { margin-bottom: 20px; }
.col-footer ul { list-style-type: none !important; padding: 0; margin: 0; }
.col-footer ul li a {
  display: block;
  padding-bottom: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #888;
  border-bottom: 1px dotted #404040;
  transition: color .3s;
  text-decoration: none;
}
.col-footer ul li a:hover { color: #fff !important; text-decoration: none; }
.col-footer .footer-store {
  padding: 12px 30px;
  font-weight: 600;
  background: var(--principal-color);
  font-size: 13px;
  border-radius: 2px;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 2px 2px rgba(0,0,0,0.1);
  display: inline-block;
}
.footer-copyright { background: rgba(0,0,0,0.2); border-bottom: 1px solid #2c3136; }
.footer-copyright-flex {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
}
.footer-copyright p { margin: 0; }
.footer-copyright ul { list-style: none; padding: 0; margin: 0; }
.footer-copyright ul li { display: inline-block; margin: 5px; }
.footer-copyright ul li a {
  background: rgba(0,0,0,0.05);
  color: #fff;
  font-size: 17px;
  display: block;
  border-bottom: 3px solid rgba(0,0,0,0.05);
  width: 36px; height: 36px; line-height: 36px;
  text-align: center;
  text-decoration: none;
}
.footer-copyright ul li a:hover { color: var(--principal-color); }
@media only screen and (max-width: 768px) {
  .footer-premium-flex { flex-direction: column; }
  .col-footer { padding: 5px 0 20px 0; margin-right: 0; }
}
@media only screen and (max-width: 568px) { .footer-copyright-flex { flex-direction: column; } }

/* === Basket drawer ================================================ */
.opened-basket {
  width: 100%; height: 100%; position: fixed;
  background: rgba(0,0,0,0.5);
  z-index: 100000; top: 0; left: 0;
}
.triplezone-basket-shadow .triplezone-basket {
  display: flex; flex-direction: column;
  max-width: 400px; width: 400px;
  background: #262b2f;
  height: 100%; top: 0; right: -400px;
  transition: all .3s;
  position: fixed; z-index: 99999;
  overflow-y: auto;
}
.triplezone-basket-shadow .triplezone-basket.open { right: 0; }
.close-basket {
  position: absolute; top: 10px; right: 10px;
  border-radius: 50%; border: none;
  color: #fff; background: #bb3d3d;
  width: 24px; height: 24px; line-height: 24px;
  cursor: pointer;
}
.triplezone-basket-shadow .triplezone-basket .triplezone-basket-header {
  position: relative; padding: 20px 30px;
  display: flex; align-items: center;
  background: rgba(0,0,0,0.1);
}
.triplezone-basket-shadow .triplezone-basket-header .basket-avatar img { width: 48px; image-rendering: pixelated; }
.triplezone-basket-shadow .triplezone-basket-header .text-basket {
  color: #fff; font-weight: 700; margin-left: 30px;
}
.triplezone-basket-shadow .triplezone-basket-header .text-basket p { margin: 0; color: #c8c8c8; letter-spacing: 1px; }
.triplezone-basket-shadow .triplezone-basket-body { padding: 30px; flex: 1; }
.triplezone-basket-shadow .triplezone-basket-body .basket-body-header { margin-bottom: 16px; }
.triplezone-basket-shadow .triplezone-basket-body .basket-body-header h3 {
  margin: 0; color: var(--principal-color); font-weight: 700;
}
.triplezone-basket-shadow .triplezone-basket-body .basket-body-header p {
  margin: 0; font-size: .8em; text-transform: uppercase;
}
.triplezone-basket-shadow .triplezone-basket-body .basket-body-items {
  border-radius: 3px; margin: 10px 0;
  background: rgba(0,0,0,0.1);
  padding: 20px; position: relative;
}
.triplezone-basket-shadow .triplezone-basket-body .basket-body-items p {
  margin: 0; font-size: .8em; color: #fff; font-weight: 700;
}
.triplezone-basket-shadow .triplezone-basket-body .basket-body-items .item-principal {
  color: var(--principal-color); font-weight: 700; font-size: unset; margin-bottom: 3px;
}
.triplezone-basket-shadow .triplezone-basket-body .basket-body-items .remove-x {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  border: none; background: #262b2f; color: #bb3d3d;
  border-radius: 50%; width: 32px; height: 32px;
  cursor: pointer; font-weight: 700;
}
.triplezone-basket-shadow .triplezone-basket-footer { padding: 0 30px 30px; }
.triplezone-basket-shadow .triplezone-basket-footer a,
.triplezone-basket-shadow .triplezone-basket-footer button {
  display: block; width: 100%;
  margin-bottom: 10px;
  color: #fff; border: none;
  background-color: #4da564;
  border-bottom: 3px solid rgba(0,0,0,0.15) !important;
  outline: 0;
  text-decoration: none;
  padding: 18px;
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  font-size: .8em;
  cursor: pointer;
}
.triplezone-basket-shadow .triplezone-basket-footer button:disabled { opacity: .5; cursor: not-allowed; }

/* === Modal ======================================================== */
.modal-shadow {
  position: fixed; inset: 0; z-index: 99998;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-shadow[hidden] { display: none; }
.modal-content {
  background-color: #2c3136;
  width: 100%; max-width: 560px; max-height: 85vh; overflow-y: auto;
  border-radius: 0;
}
.modal-header {
  padding: 24px 30px; border: none;
  display: flex; justify-content: space-between; align-items: center;
}
.modal-title {
  color: var(--principal-color); text-transform: uppercase; font-weight: 700;
  margin: 0; font-size: 18px;
}
.modal .close {
  background: #3b4248; color: #c8c8c8;
  width: 40px; height: 40px; border-radius: 5px;
  border: none; cursor: pointer; font-size: 16px;
}
.modal-body { background: #262b2f; padding: 30px; max-height: 60vh; overflow-x: auto; }
.modal-body img { max-width: 100%; border-radius: 4px; margin-bottom: 12px; }
.modal-footer {
  border: none; padding: 15px 30px;
  display: flex; justify-content: space-between; align-items: center;
}
.modal-price { color: #4da564; font-weight: 700; font-size: 18px; }

/* Up arrow */
.mergisus {
  position: fixed; right: 10px; bottom: 10px;
  cursor: pointer; width: 28px; height: 28px;
  outline: 0; border: none;
  background-color: var(--principal-color);
  border-bottom: 3px solid rgba(0,0,0,0.5);
  display: none; z-index: 10000;
}
.mergisus span {
  position: absolute; top: 50%; left: 50%;
  margin: -12px 0 0 -8px;
  width: 0; height: 0;
  border: 8px solid transparent;
  border-bottom-color: #fff;
}

/* === Casino extensions on top of the MortalMines theme ============= */

.balance-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,0.18); padding: 6px 12px; border-radius: 50px;
  font-size: 13px; color: #fff;
}
.balance-pill .label { color: #c8c8c8; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.balance-pill .amt { color: var(--principal-color); font-weight: 700; }

.user-panel-balance {
  flex: 1;
  display: flex; flex-direction: column; gap: 6px;
}
.user-panel-balance .bal-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; font-size: 12px; line-height: 1;
}
.user-panel-balance .bal-name {
  color: #888; font-weight: 600; font-size: 10px;
  text-transform: uppercase; letter-spacing: 1.2px;
  white-space: nowrap;
}
.user-panel-balance .bal-amt {
  color: #4da564; font-weight: 700; font-size: 13px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.user-logout {
  background: transparent; border: none; color: #888;
  margin-left: 10px; padding: 4px 6px; cursor: pointer; font-size: 14px;
  transition: color .15s;
}
.user-logout:hover { color: #d14841; }

/* Tighten the game navbar so all 11 tabs fit on standard widths and the
   active-arrow under the current tab keeps a sensible spacing. */
.navbar-default .navbar-nav > li > a { padding: 26px 14px !important; font-size: 13px; }
.activ-zone:after { top: 4.6em !important; }
@media (max-width: 1100px) {
  .navbar-default .navbar-nav > li > a { padding: 22px 10px !important; font-size: 12px; }
}

.game-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.game-tile {
  background: #2e3338; border: 2px solid #33383e; border-radius: 6px;
  padding: 22px 16px; text-align: center; text-decoration: none;
  color: #c8c8c8; cursor: pointer;
  transition: border-color .15s ease, transform .15s ease;
  display: block;
}
.game-tile:hover { border-color: var(--principal-color); transform: translateY(-2px); color: #fff; text-decoration: none; }
.game-tile .tile-icon { font-size: 30px; color: var(--principal-color); margin-bottom: 8px; line-height: 1; }
.game-tile .tile-name { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: #fff; }
.game-tile .tile-kind { font-size: 11px; color: #888; margin-top: 4px; text-transform: uppercase; letter-spacing: 1px; }

/* Login form sits inside a panel-body */
.login-form-block { text-align: center; padding: 30px 10px; }
.login-form-block h3 {
  color: var(--principal-color); font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 8px;
}
.login-form-block p { margin-bottom: 22px; color: #c8c8c8; font-size: 13px; }
.login-form-block code {
  background: #262b2f; padding: 2px 8px; border-radius: 3px;
  color: var(--principal-color); font-family: ui-monospace, Menlo, Consolas, monospace;
}
.link-form { display: inline-flex; gap: 10px; align-items: stretch; }
.link-form input {
  background: #262b2f; border: 2px solid #33383e; color: #fff;
  padding: 12px 16px; font-size: 18px; letter-spacing: 6px; font-weight: 700;
  text-transform: uppercase; text-align: center;
  width: 220px; border-radius: 4px;
}
.link-form input:focus { border-color: var(--principal-color); }
.login-error { margin-top: 14px; color: #d14841; font-size: 13px; }
.login-error[hidden] { display: none; }

.casino-controls {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  justify-content: center; margin: 18px 0;
}
.control-group { display: flex; align-items: center; gap: 8px; }
.control-group .label {
  color: #c8c8c8; font-size: 11px; text-transform: uppercase;
  letter-spacing: 1px; font-weight: 700;
}
.stake-field {
  display: inline-flex; align-items: center; overflow: hidden;
  background: #262b2f; border: 2px solid #33383e; border-radius: 4px;
}
.stake-field button {
  background: #33383e; color: #fff; border: 0;
  padding: 8px 14px; font-weight: 700; cursor: pointer; font-size: 14px;
  transition: background .15s;
}
.stake-field button:hover { background: var(--principal-color); }
.stake-field input {
  background: transparent; border: 0; color: #fff;
  width: 90px; text-align: center; font-weight: 700; font-size: 14px;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.stake-field input::-webkit-inner-spin-button,
.stake-field input::-webkit-outer-spin-button {
  -webkit-appearance: none; margin: 0;
}

.toggle-pill {
  display: inline-flex; padding: 3px; gap: 3px;
  background: #262b2f; border: 2px solid #33383e; border-radius: 50px;
}
.toggle-pill button {
  padding: 6px 16px; border-radius: 50px; background: transparent; color: #c8c8c8;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; border: 0;
  cursor: pointer;
}
.toggle-pill button.active { background: var(--principal-color); color: #fff; }
.currency-pill button { min-width: 64px; }

.result-strip {
  margin-top: 18px; padding: 14px 18px;
  background: rgba(0,0,0,0.2); border-left: 3px solid var(--principal-color);
  border-radius: 3px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.result-strip.win  { border-left-color: #4da564; background: rgba(77,165,100,0.10); }
.result-strip.lose { border-left-color: #d14841; background: rgba(209,72,65,0.10); }
.result-strip strong { color: #fff; }
.result-strip .net { font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.result-strip.win  .net { color: #4da564; }
.result-strip.lose .net { color: #d14841; }

.muted-row { color: #888; font-size: 12px; text-align: center; margin-top: 8px; }
.pos { color: #4da564; }
.neg { color: #d14841; }

.live-status {
  display: flex; gap: 16px; justify-content: center; align-items: center;
  margin-top: 10px; color: #c8c8c8; font-size: 13px;
}
.live-status .chip {
  background: #262b2f; padding: 4px 10px; border-radius: 50px;
  border: 1px solid #33383e; font-variant-numeric: tabular-nums;
}

.toast-stack { position: fixed; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 10px; z-index: 9999; }
.toast {
  padding: 12px 16px; min-width: 220px;
  background: #2c3136; border-left: 3px solid var(--principal-color);
  color: #fff; font-size: 13px; box-shadow: 0 10px 24px rgba(0,0,0,0.3);
  animation: tin .25s ease-out;
}
.toast.bad  { border-left-color: #d14841; }
.toast.good { border-left-color: #4da564; }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

.casino-table {
  width: 100%; border-collapse: collapse;
  background: #2c3136; box-shadow: 0 10px 12px rgba(0,0,0,0.1);
}
.casino-table th, .casino-table td { padding: 12px 16px; text-align: left; }
.casino-table th {
  background: #2e353b; color: var(--principal-color); font-weight: 700;
  font-size: 12px; text-transform: uppercase; letter-spacing: 1px;
  border-bottom: 3px solid rgba(0,0,0,0.12);
}
.casino-table tr + tr td { border-top: 1px solid rgba(0,0,0,0.18); }
.casino-table td.num, .casino-table th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Pager — Back / info / Next under leaderboard + history tables. */
.pager {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-top: 14px;
}
.pager-info {
  flex: 1; text-align: center;
  color: #888; font-size: 12px; text-transform: uppercase; letter-spacing: 1px;
}
.btn-pager {
  background: #2e3338; color: #c8c8c8;
  border: 2px solid #33383e; border-radius: 4px;
  padding: 8px 18px; font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: 1px; cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.btn-pager:hover:not(:disabled) {
  border-color: var(--principal-color);
  color: #fff;
}
.btn-pager:disabled { opacity: .35; cursor: not-allowed; }

.mini-list { list-style: none; padding: 0; margin: 0; }
.mini-list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; font-size: 13px;
  border-bottom: 1px solid #2e353b;
}
.mini-list li:last-child { border-bottom: none; }
.mini-list .lhs { color: #c8c8c8; }
.mini-list .rhs { font-variant-numeric: tabular-nums; font-weight: 700; }

/* === Mines ============================================================ */
.mines-board {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
  max-width: 400px; margin: 18px auto;
}
.mines-tile {
  aspect-ratio: 1; border-radius: 5px;
  background: #2e3338; border: 2px solid #33383e;
  display: grid; place-items: center;
  font-size: 22px; font-weight: 700; cursor: pointer;
  transition: transform .1s ease, background .15s ease, border-color .15s;
}
.mines-tile:hover:not(.dead) { transform: translateY(-2px); border-color: var(--principal-color); }
.mines-tile.gem  { background: rgba(77,165,100,.18); border-color: #4da564; cursor: default; }
.mines-tile.bomb { background: rgba(209,72,65,.18); border-color: #d14841; cursor: default; animation: shake .3s; }
.mines-tile.ghost { opacity: .45; cursor: default; }
.mines-tile.dead  { cursor: default; }
@keyframes shake { 0%,100% { transform: none; } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }

/* === Slots ============================================================ */
.slots-frame {
  display: flex; gap: 8px; padding: 18px;
  max-width: 400px; margin: 18px auto;
  background: #262b2f; border: 2px solid var(--principal-color); border-radius: 8px;
  box-shadow: 0 0 0 6px rgba(96,166,209,.06), inset 0 0 30px rgba(0,0,0,.4);
}
.slots-reel {
  flex: 1; aspect-ratio: 1;
  background: #2e3338; border: 2px solid #33383e; border-radius: 5px;
  display: grid; place-items: center; font-size: 42px;
}
.slots-reel.spinning { animation: reelspin .12s steps(2) infinite; }
@keyframes reelspin { 0% { filter: blur(2px); } 100% { filter: blur(2px) brightness(1.2); } }

/* === Dice ============================================================= */
.die {
  width: 110px; height: 110px; margin: 18px auto;
  background: #f1f5f9; color: #262b2f;
  border-radius: 12px; display: grid; place-items: center;
  font-size: 56px; font-weight: 800;
  box-shadow: 0 10px 12px rgba(0,0,0,0.3), inset 0 -5px 0 rgba(0,0,0,.1);
}
.die.rolling { animation: roll .12s steps(2) infinite; }
@keyframes roll { 0% { transform: rotate(0); } 100% { transform: rotate(8deg); } }

/* === Roulette ========================================================= */
.roulette-ball {
  width: 100px; height: 100px; margin: 18px auto;
  border-radius: 50%; display: grid; place-items: center;
  font-size: 36px; font-weight: 800; color: #fff;
  background: #262b2f; border: 3px solid var(--principal-color);
}
.roulette-ball.red    { background: #962538; border-color: #c44060; }
.roulette-ball.black  { background: #1f2a35; border-color: #324154; }
.roulette-ball.green  { background: #2d6b56; border-color: #4da564; }

.roulette-bets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.roulette-bets button {
  padding: 14px; border-radius: 4px; font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: 1px;
  background: #2e3338; border: 2px solid #33383e; color: #c8c8c8; cursor: pointer;
  transition: border-color .15s;
}
.roulette-bets button.red   { background: #962538; color: #fff; border-color: #c44060; }
.roulette-bets button.black { background: #1f2a35; color: #fff; border-color: #324154; }
.roulette-bets button.active { border-color: var(--principal-color); box-shadow: 0 0 0 2px rgba(96,166,209,.2); }

/* === Plinko =========================================================== */
.plinko-stage {
  position: relative; height: 320px; max-width: 480px; margin: 18px auto;
  background: #262b2f; border: 2px solid #33383e; border-radius: 8px; overflow: hidden;
}
.plinko-ball {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, var(--principal-color));
  box-shadow: 0 0 12px var(--principal-color);
  transition: top .12s linear, left .12s linear;
}
.plinko-buckets { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; max-width: 480px; margin: 0 auto; }
.plinko-bucket {
  padding: 8px 4px; text-align: center; font-size: 11px; font-weight: 700;
  background: #2e3338; border: 2px solid #33383e; border-radius: 3px;
  color: #c8c8c8;
}
.plinko-bucket.hit { background: var(--principal-color); color: #fff; border-color: var(--principal-color); }

/* === Wheel ============================================================ */
.wheel-wrap { text-align: center; margin: 18px auto; }
.wheel-pointer {
  width: 0; height: 0; margin: 0 auto -8px;
  border-left: 12px solid transparent; border-right: 12px solid transparent;
  border-bottom: 18px solid var(--principal-color);
  position: relative; z-index: 1;
}
.wheel {
  width: 240px; height: 240px; margin: 0 auto;
  border-radius: 50%; position: relative;
  background: var(--principal-color);
  border: 6px solid #262b2f;
  box-shadow: 0 0 0 4px var(--principal-color), 0 10px 20px rgba(0,0,0,.4);
  transition: transform 4s cubic-bezier(.2,.7,.2,1);
  display: grid; place-items: center;
  font-size: 22px; font-weight: 800; color: #262b2f;
}

/* === Crash ============================================================ */
.crash-stage {
  height: 280px; padding: 24px; display: grid; place-items: center;
  background: linear-gradient(180deg, #1a1f24, #2c3136);
  border: 2px solid #33383e; border-radius: 8px; position: relative; overflow: hidden;
}
.crash-mult {
  font-size: 72px; font-weight: 800; font-variant-numeric: tabular-nums;
  color: var(--principal-color); transition: color .2s;
}
.crash-mult.crashed { color: #d14841; }
.crash-mult.cashed  { color: #4da564; }
.crash-phase {
  position: absolute; top: 18px; left: 24px;
  color: #c8c8c8; font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
}
.crash-history { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; justify-content: center; }
.crash-pip {
  padding: 4px 10px; border-radius: 50px; font-size: 12px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: #262b2f; border: 1px solid #33383e; color: #c8c8c8;
}
.crash-pip.hi { color: #4da564; border-color: #4da564; }
.crash-pip.lo { color: #d14841; border-color: #d14841; }

/* === Higher / Lower =================================================== */
.card-face {
  width: 140px; height: 196px; margin: 18px auto;
  background: #f1f5f9; color: #262b2f;
  border-radius: 8px; display: grid; place-items: center;
  font-size: 56px; font-weight: 800;
  box-shadow: 0 10px 12px rgba(0,0,0,.3); position: relative;
}
.card-face.red { color: #962538; }
.card-face .small { position: absolute; top: 8px; left: 14px; font-size: 18px; }
.card-face .small.br { top: auto; left: auto; bottom: 8px; right: 14px; transform: rotate(180deg); }

/* === Blackjack ======================================================== */
.bj-table { display: grid; gap: 22px; margin: 16px 0; }
.bj-row { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bj-row h3 {
  font-size: 11px; color: var(--principal-color); text-transform: uppercase;
  letter-spacing: 1px; font-weight: 700; margin: 0;
}
.bj-hand { display: flex; }
.bj-card {
  width: 64px; height: 92px;
  background: #f1f5f9; color: #262b2f;
  border-radius: 6px; display: grid; place-items: center;
  font-size: 18px; font-weight: 800;
  box-shadow: 0 6px 10px rgba(0,0,0,.3); margin-left: -16px;
}
.bj-card:first-child { margin-left: 0; }
.bj-card.red { color: #962538; }
.bj-card.hidden {
  background: #2e3338; color: var(--principal-color);
  border: 2px solid #33383e;
}

/* === Coinflip ========================================================= */
.coin {
  width: 130px; height: 130px; margin: 18px auto;
  border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(145deg, #ffd66e, #b8862a); color: #4b2f06;
  font-size: 48px; font-weight: 800;
  box-shadow: 0 10px 12px rgba(0,0,0,.3), inset 0 -6px 0 rgba(0,0,0,.15);
}
.coin.flipping { animation: flip .8s linear; }
@keyframes flip { 0% { transform: rotateY(0); } 100% { transform: rotateY(1440deg); } }
