.kundun-card {
  max-width: 420px;
  margin: 30px auto;
  border: 1px solid #543429;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.kundun-card-header {
  background-color: #5e331f;
  color: #fff;
  padding: 12px 20px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  font-size: 1.25rem;
  font-weight: 500;
}
.kundun-card-body {
  padding: 20px;
}
.kundun-form .form-group {
  margin-bottom: 1.25rem;
}
.kundun-card .kundun-btn.btn-info {
  background-color: #543429 !important;
  border-color:   #543429 !important;
  color:          #fff      !important;
}

.kundun-card .kundun-btn.btn-info:hover {
  background-color: #6b4a3a !important;
  border-color:   #6b4a3a !important;
  color:          #fff      !important;
}
.kundun-form select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-color: #543429;
  color: #fff;

  border: none;
  border-radius: 4px;

  padding: .5rem 1rem;

  background-image:    url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ffffff' viewBox='0 0 16 16'><path d='M4.646 6.646a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 1 1 .708.708L8 10.707l-3.354-3.353a.5.5 0 0 1 0-.708z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;

  transition: background-color .2s ease, box-shadow .2s ease;
}

.kundun-form select.form-control:hover {
  background-color: #6b4a3a;
}

.kundun-form select.form-control:focus {
  background-color: #6b4a3a;
  box-shadow: 0 0 0 .2rem rgba(84,52,41,0.4);
  outline: none;
}
.kundun-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.point {
  display: inline-block;
 text-transform: uppercase;
  letter-spacing: 0.02em;
  background-color: #543429;
  color: #fff;
  margin-left: 55px;
  padding: 0.25rem 0.6rem;
  font-size: 1.25rem;
  font-weight: 600;
  vertical-align: middle;
}
.container {
    max-width: 730px;
    margin: 0 auto;
    padding: 15px;
    color: #e0e0e0;     
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

h1, h2, h3, h4 {
    color: #ff0000;
    margin-bottom: 10px;
}

h1 {
    font-size: 24px;
    border-bottom: 1px solid #444;
    padding-bottom: 8px;
}

h2 {
    font-size: 20px;
    color: #4CAF50; 
}

h3 {
    font-size: 18px;
}
h5{
max-width: 110px;        
    white-space: nowrap;    
    overflow: hidden;          
    text-overflow: ellipsis;   
    display: inline-block;     
	font-size: 12px;
}
.btf {
  position: relative;
  display: inline-block;
  background: linear-gradient(145deg, #555, #444);
  color: #fff;
  border: none;
  margin: 5px;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  text-transform: uppercase;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.btf::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: left 0.3s ease;
}

.btf:hover::after {
  left: 0;
}

.btf:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  color: #fff;
}

.btf:active {
  transform: translateY(0) scale(1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  color: #fff;
}

.btf:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
  color:#fff;

}

input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 20px;
    }
    
}

.p-5.img-fluid {
  display: flex;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
}
.categoria_shop_container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.categoria_shop_item {
  position: relative;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 16px;
  margin: 8px;
  box-sizing: border-box;
  width: 100%;
  
}

.categoria_shop_item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.categoria_shop_item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  padding: 2px; 
  background: linear-gradient(135deg, #ff8008, #ffc837);
  -webkit-mask:    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.categoria_shop_item:hover::before {
  opacity: 1;
}

.categoria_shop_item * {
  border-radius: 6px;
}

.categoria_shop_item .btn {
  display: inline-block;
  padding: 8px 16px;
  margin-top: 12px;
  background: #ff8008;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.categoria_shop_item .btn:hover {
  background: #ffc837;
}

.categoria_shop_item h4 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: #333;
}

.categoria_shop_item p {
  margin: 0;
  font-size: 0.95rem;
  color: #666;
}

@media screen and (min-width: 768px) {
  .categoria_shop_item {
    width: calc(25% - 20px); 
  }
}
.card-img-top {
  height: 200px;            
  display: flex;
  align-items: center;       
  justify-content: center;    
  overflow: hidden;          
}

.card-img-top img {
  max-height: 100%;          
  width: auto;               
  object-fit: contain;        
}
.shop .row {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(var(--bs-gutter-y) * -1);
  margin-right: calc(var(--bs-gutter-x) * -0.5);
  margin-left: calc(var(--bs-gutter-x) * -0.5);
}

.shop .row > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  margin-top: var(--bs-gutter-y);
}
.categoria_shop_item .card {
  background-color: transparent !important;
  border: none !important;
}
.shop .col {
  flex: 1 0 0%;
}
.shop-select {
  display: inline-block;
  padding: 14px 24px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  background-color: #3b2621;
  border: none;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  animation: pulseScale 3s ease-in-out infinite;
  transform-origin: center;
  transition: background-color 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.shop-select:hover {
  animation-play-state: paused;      
  background-color: #594439;        
  transform: scale(1.12) translateY(-4px); 
  box-shadow: 0 14px 40px 4px rgba(0, 0, 0, 0.35);
}

.shop-select:active {
  transform: scale(1.06) translateY(0);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.point-container {
  display: inline-block;
  position: relative;
}

.point {
  margin-left: 130px;
  margin-top: -60px;
  display: inline-block;
  transition: color 0.5s ease;
}

.points-fly {
  position: absolute;
  right: 0;
  top: 0;
  font-weight: 700;
  color: #e74c3c; 
  animation: flyUp 1s ease-out forwards;
}

@keyframes flyUp {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-30px); }
}
.shop .item-options-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  padding: 1rem 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.shop .item-options-form .row,
.shop .item-options-form .form-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  margin: 0 !important;
  width: 100% !important;
  gap: 1rem !important;
}

.shop .item-options-form .col-auto {
  flex: 0 0 auto !important;
  width: auto !important;
  padding: 0 !important;
}

.shop .item-options-form .col,
.shop .item-options-form .col-auto + .col {
  flex: 1 1 auto !important;
  width: auto !important;
}

.shop .item-options-form .form-control-sm {
  max-width: 250px !important;
  width: 100% !important;
}

.shop .item-options-form .form-check {
  display: flex !important;
  align-items: center !important;
  margin: 0.5rem 0 0 2rem !important;
}

.shop .item-options-form hr {
  border: none !important;
  border-top: 1px solid #e9ecef !important;
  margin: 0.5rem 0 !important;
}

.shop .item-options-form .text-danger.fw-bold {
  display: block !important;
  text-align: center !important;
  width: 100% !important;
  margin: 1rem 0 0.5rem !important;
  font-size: 0.95rem !important;
  white-space: nowrap !important;
}

    .notification {
  max-width: 500px;
  margin: 0 auto 16px;
  padding: 12px 16px;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(-10px);
  pointer-events: none;
}

.notification.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.notification.success {
  background-color: #e0f7e9;
  color: #2e7d32;
  border: 1px solid #2e7d32;
}

.notification.error {
  background-color: #fdecea;
  color: #c62828;
  border: 1px solid #c62828;
}
.kundun-card-body .startpack-list {
  padding: 0;
  margin: 20px;
}
.kundun-card-body .startpack-list li {
  list-style: none;
  position: relative;
  background: #6b4a3a;     
  color: #fff;
  margin-bottom: 10px;
  padding: 10px 12px 10px 36px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.2s, transform 0.2s;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeIn 0.4s ease forwards;
}
.kundun-card-body .startpack-list li::before {
  content: "✔";       
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: #ffc837;           
}
.kundun-card-body .startpack-list li:hover {
  background: #7a5c4a;
  transform: translateY(-2px);
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.message { max-width:700px; margin:30px auto;
  padding:16px; border-radius:8px; font-size:.95rem;
}
.message.success {
  background:#e6f4ea; color:#065f46; border:1px solid #a3e635;
}
.message.error {
  background:#fde8e8; color:#7f1d1d; border:1px solid #f87171;
.market-table {
  width: 100%; 
  margin: 30px auto;
  border-collapse: collapse;
  background: #2b1e1c;
  color: #e0d5c9;
  border-radius: 6px;
  overflow: hidden;
  font-family: 'Open Sans', sans-serif;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  border: none;
}

.market-table th {
  text-align: center;
  vertical-align: middle;
  padding: 12px;
  font-size: 0.85em;
  text-transform: uppercase;
  font-weight: 600;
  color: #f3e8dd;
  background: #4a3d38;
  border: none;
  white-space: nowrap;
}

.market-table tr:nth-child(even) {
  background: rgba(255,255,255,0.05);
}
.market-table tr:hover {
  background: rgba(255,255,255,0.10);
}

.market-table td {
  padding: 10px 12px;
  border: none;
  font-size: 12px;
  text-align: center;
  display: table-cell;     
  vertical-align: middle;  
  white-space: nowrap;
}

.market-table td:nth-child(2) {
  white-space: normal;
  word-break: break-word;
  text-align: center;
  max-width: 150px; 
}


.cell-item {
  text-align: center;
}
.cell-item-content {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cell-item-content img {
  width: 36px;
  height: 36px;
  border: 1px solid #3b2f2a;
  border-radius: 4px;
  background: #1f1412;
}

.item-name {
  font-weight: bold;
  font-size: 10.5px;
  line-height: 1.2;
  color: #7CFC00;
  text-align: left;
  white-space: normal;
  word-break: break-word;
}

.cell-extras {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.time-remaining {
  white-space: nowrap;
  font-family: monospace;
  font-weight: bold;
}
.time-remaining .timer-days {
  margin-right: 4px;
  color: #FFD700;
}
.time-remaining .timer-hms span {
  display: inline-block;
  width: 1ch;
  text-align: center;
  color: #7CFC00;
}

.btn-buy {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(135deg, #6db65b, #4a9440);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  transition: .3s;
  white-space: nowrap; 
}
.btn-buy:hover {
  background: linear-gradient(135deg, #5ca64a, #3b7230);
}
.btn-buy:active {
  transform: scale(0.97);
}

.item-tooltip {
  text-align: center;
}

.item-tooltip .item-name {
  font-weight: bold;
  font-size: 1em;
  margin-bottom: 6px;
}

.item-tooltip .item-image {
  margin: 6px 0;
}

.item-tooltip .item-image img {
  width: 48px;
  height: 48px;
  image-rendering: pixelated; 
}

.item-tooltip .item-section {
  display: block;
  text-align: left;
  margin-top: 6px;
}

.cell-extras .extra-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-right: 6px;
}

.table-quality-wing { color: #FFD700; }
.table-quality-excellent { color: #7CFC00; }
.table-quality-ancient { color: #00bfff; }
.table-quality-normal { color: #fff; }
