/* ########## TABLE START ########## */

.vps-hosting-pricing-table {
  overflow: visible;
  -webkit-box-shadow: none;
  box-shadow: none;
  border: none;
  border-collapse: unset;
  border-spacing: 0 10px;
}

.vps-hosting-pricing-table > thead {
  background-color: transparent;
}

.vps-hosting-pricing-table.vps-hosting-pricing-table-two {
  border-collapse: collapse;
}

.vps-hosting-pricing-table > thead > tr > th {
  border: none;
  font-size: 12px;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  vertical-align: middle;
}

.vps-pricing-row {
  text-align: left;
  background-color: #fff;
  border: solid 1px #ebebeb;
}

.vps-hosting-pricing-table-two > thead {
  background: var(--primaryc);
  color: #ffffff;
}

.vps-hosting-pricing-table > tbody > tr > td {
  padding: 0.75rem;
  font-weight: 400;
  font-size: 14px;
  line-height: 1;
  vertical-align: middle;
}

.vps-hosting-pricing-table > tbody > tr > td:first-child {
  font-weight: 600;
  font-size: 14px;
}

.vps-hosting-pricing-table > tbody > tr:nth-child(even) {
  background-color: #faf9f8;
}

.vps-pricing-row > td {
  border: none;
}

.vps-hosting-pricing-table .rate {
  font-size: 22px;
  font-weight: 700;
  color: var(--caption);
  font-family: "Poppins", sans-serif;
}

.vps-hosting-pricing-table .rate.old {
  font-size: 18px;
  color: #ff6464;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  text-decoration: line-through;
  display: block;
}

.vps-hosting-pricing-table .rate span {
  font-size: 12px;
  font-weight: 600;
  margin-left: 5px;
  opacity: 0.8;
  color: var(--caption);
}

.vps-hosting-pricing-table > tbody > tr > td:first-child::before {
  content: attr(data-value);
  display: none;
  width: initial;
  height: initial;
  background-color: transparent;
  position: relative;
  left: initial;
  top: initial;
  opacity: 1;
}

.vps-pricing-row > td:before {
  content: attr(data-value);
  display: none;
}

table > tbody > tr > td:first-child:before {
  content: "";
  display: block;
  width: 3px;
  height: 100%;
  background-color: #002752;
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.videobtn {
  color: var(--caption);
  background-color: #f2f2f2;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
  font-size: 12px;
}

.videobtn i {
  color: var(--primaryc);
  font-size: 10px;
}

@media (max-width: 991px) {
  .vps-hosting-pricing-table > thead {
    display: none;
  }

  .vps-pricing-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex; /* Safari 6.1+ */
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 95%;
    float: left;
    margin: 0 15px 28px 15px;
  }

  .vps-hosting-pricing-table > tbody > tr {
    padding: 15px;
  }

  .vps-hosting-pricing-table > tbody > tr > td {
    padding: 10px 15px;
    font-size: 14px;
    font-weight: normal;
  }

  .vps-pricing-row:hover.border-accent-primary > td:first-child {
    margin-bottom: 0;
    border-radius: 0;
    border-left: none;
  }

  .vps-pricing-row > td:first-child {
    border-left: none;
    border-radius: 0;
  }

  .vps-hosting-pricing-table > tbody > tr > td:first-child::before {
    display: block;
    width: 45%;
  }

  .vps-pricing-row > td:before {
    display: block;
    width: 45%;
  }

  .vps-hosting-pricing-table > tbody > tr > td {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex; /* Safari 6.1+ */
    display: flex;
    align-items: center;
    -ms-flex-align: center;
    -webkit-box-align: center;
    -moz-box-align: center;
  }

  .vps-pricing-row > td:last-child::before {
    display: none;
  }

  .vps-pricing-row > td:last-child {
    text-align: center !important;
    margin: auto;
  }

  .pt-100 {
    padding: 60px 0;
  }
}

/* ########## PACKETS START ########## */

.packets {
  min-height: 500px; /* CLS önleme için minimum yükseklik - increased to match content */
  contain: layout; /* Layout shift'i önlemek için */
  position: relative; /* Layout stability için */
}

/* Row stability */
.packets .row {
  contain: layout;
}

.packets .container {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInContent 1s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

@keyframes fadeInContent {
  from { 
    opacity: 0; 
    transform: translateY(20px);
  }
  to { 
    opacity: 1; 
    transform: translateY(0);
  }
}

/* Modern Skeleton Loading */
.packets-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  display: block !important;
  animation: hideSkeleton 0.6s ease-in-out 1.8s forwards;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 12px;
  padding: 20px 0;
  min-height: 650px; /* Match the actual content height more precisely */
  contain: layout; /* Prevent layout shifts */
  box-sizing: border-box;
  margin: 0;
}

@keyframes hideSkeleton {
  from { 
    opacity: 1; 
    transform: translateY(0);
  }
  to { 
    opacity: 0; 
    visibility: hidden;
    transform: translateY(-10px);
  }
}

/* Skeleton Header Items */
.skeleton-header-item {
  height: 40px;
  background: linear-gradient(90deg, #e9ecef 25%, #f8f9fa 50%, #e9ecef 75%);
  background-size: 200% 100%;
  border-radius: 8px;
  animation: shimmer 2s infinite;
  width: 200px;
}

.skeleton-controls {
  display: flex;
  gap: 15px;
  align-items: center;
}

.skeleton-button {
  height: 36px;
  width: 120px;
  background: linear-gradient(90deg, #e9ecef 25%, #f8f9fa 50%, #e9ecef 75%);
  background-size: 200% 100%;
  border-radius: 6px;
  animation: shimmer 2s infinite;
}

.skeleton-toggle {
  height: 36px;
  width: 80px;
  background: linear-gradient(90deg, #e9ecef 25%, #f8f9fa 50%, #e9ecef 75%);
  background-size: 200% 100%;
  border-radius: 6px;
  animation: shimmer 2s infinite;
}

/* Skeleton Table - matches real table structure */
.skeleton-offer-block {
  position: relative;
  overflow: hidden;
  margin-top: 1.5rem; /* Match the real offer-block margin */
}

.skeleton-description {
  height: 20px;
  background: linear-gradient(90deg, #e9ecef 25%, #f8f9fa 50%, #e9ecef 75%);
  background-size: 200% 100%;
  border-radius: 4px;
  animation: shimmer 2s infinite;
  width: 100%;
  margin: 0 auto;
}

.skeleton-table {
  border-collapse: collapse;
  border-spacing: 0 10px;
  overflow: visible;
  box-shadow: none;
  border: none;
  width: 100%;
  margin-bottom: 0;
  margin-top: 0;
}

.skeleton-tr {
  text-align: left;
  background-color: #fff;
  border: solid 1px #ebebeb;
}

.skeleton-tr.vps-pricing-row {
  text-align: left;
  background-color: #fff;
  border: solid 1px #ebebeb;
}

.skeleton-tr > td {
  padding: 0.75rem;
  font-weight: 400;
  font-size: 14px;
  line-height: 1;
  vertical-align: middle;
  height: 60px; /* Match the real table row height */
}

.skeleton-td {
  height: 20px;
  background: linear-gradient(90deg, #e9ecef 25%, #f8f9fa 50%, #e9ecef 75%);
  background-size: 200% 100%;
  border-radius: 4px;
  animation: shimmer 2s infinite;
  width: 90%;
}

.skeleton-td-large {
  height: 24px;
  width: 95%;
}

.skeleton-td-price {
  height: 28px;
  border-radius: 6px;
  width: 85%;
}

/* .skeleton-td-button removed - no longer needed */

/* Shimmer Animation */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Responsive Skeleton Design */
@media (max-width: 768px) {
  .skeleton-tr {
    display: flex;
    flex-direction: column;
    width: 95%;
    float: left;
    margin: 0 15px 28px 15px;
    padding: 15px;
  }
  
  .skeleton-tr.vps-pricing-row {
    display: flex;
    flex-direction: column;
    width: 95%;
    float: left;
    margin: 0 15px 28px 15px;
    padding: 15px;
  }
  
  .skeleton-tr > td {
    padding: 10px 15px;
    font-size: 14px;
    font-weight: normal;
    display: flex;
    align-items: center;
  }
  
  .skeleton-td {
    width: 100%;
    height: 16px;
  }
  
  .skeleton-td-large {
    height: 20px;
  }
  
  .skeleton-td-price {
    height: 24px;
  }
  
  /* .skeleton-td-button removed - no longer needed */
  
  .skeleton-controls {
    flex-direction: column;
    gap: 10px;
  }
  
  .skeleton-header-item {
    width: 150px;
    height: 32px;
  }
  
  .skeleton-button {
    width: 100px;
    height: 32px;
  }
  
  .skeleton-toggle {
    width: 70px;
    height: 32px;
  }
  
  .skeleton-description {
    width: 90%;
  }
}



/* ########## PACKETS END ########## */

/* ########## TABLE END ########## */