@font-face {
  font-family: 'Orbitron';
  src: url('/font/Orbitron-Regular.ttf') format('truetype');
}

.bank-option.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  position: relative;
}

.bank-option.disabled:hover {
  transform: none;
  box-shadow: none;
}

.disabled-text {
  color: var(--text-main);
  font-weight: bold;
  font-size: 14px;
}

.disabled-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.disabled-label {
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  background: var(--main);
  padding: 8px 16px;
  border-radius: 20px;
}

/* ปรับแต่งเพิ่มเติม */
.bank-option {
  position: relative;
  transition: all 0.3s ease;
}

.bank-option:not(.disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.account-status {
  padding: 4px 0;
}

.text-theme {
    color: var(--main);
}		

.pin-code {
    padding: 0;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}
.pin-code input {
    border: none;
    text-align: center;
    width: 48px;
    height: 48px;
    font-size: 36px;
    background-color: #ebebeb !important;
    border-radius: 10px;
    margin-right: 5px;
    color: var(--color-main);
}
.pin-code input:focus {
    border: 1px solid var(--color-main);
    outline: none;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.static-count:hover, .static-count:focus {
    border: 1px solid var(--color-text);
    transform: scale(2.98);
}
.static-count {
    border-radius: 5px;
    color: var(--color-text);
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
    transition: all 0.3s;
    overflow: hidden;
    -ms-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

.static-count:hover i, .static-count:focus i {
    color: var(--color-button-opa-50);
    transform: scaleX(-1) scale(1);
}
.static-count i {
    font-size: 70px;
    color: var(--color-button-opa-25);
    transition: all 0.3s;
    transform: scale(1.35);
}


.profile-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Oxanium', 'Prompt', sans-serif;
  min-height: 100vh;
}

.dashboard-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: left;
  margin-bottom: 5px;
  color: #fff;
  background: linear-gradient(135deg, var(--main, #c592ff), #9d4edd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #776f6f;
  margin-bottom: 20px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
  min-width: 0; 
}

.user-avatar {
  width: 150px;
  height: 150px;
  border-radius: 10px;
  object-fit: cover;
  user-select: none;
  border: 3px solid var(--main, #c592ff);
  box-shadow: 0 4px 12px rgba(197, 146, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0; 
}

.user-details {
    display: flex;
    flex-direction: column;
    min-width: 0; 
    flex: 1;
}

.user-details h2 {
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.12rem;
  word-break: break-word;
  overflow-wrap: break-word;
}

.user-id {
  color: #6c757d;
  font-weight: normal;
  user-select: none;
  word-break: break-all;
}

.user-email {
  color: #6c757d;
  margin-bottom: 5px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.mdi--content-copy {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23888' d='M19 21H8V7h11m0-2H8a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2m-3-4H4a2 2 0 0 0-2 2v14h2V3h12z'/%3E%3C/svg%3E");
  cursor: pointer;
  transition: color 0.2s;
}
.copy-icon:hover {
  color: #333;
}

.points-box {
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 15px 10px 31px; 
  color: white;
  width: 80%;
  max-width: 500px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
  margin-top: 10px;
}

.points-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.points-icon-circle {
  background-color: var(--main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: -20px; 
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;
}

.points-box:hover .points-icon-circle {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 10px rgba(197, 146, 255, 0.6);
}

.points-icon-circle i {
  color: white;
  font-size: 1.2rem;
}

.points-text .label {
  font-size: 0.75rem;
  color: #aaa;
  margin-bottom: 2px;
}

.points-text .value {
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  color: white;
}

.divider-vertical {
  width: 2px;
  height: 40px; 
  background-color: rgba(255, 255, 255, 0.3); 
  margin: 0 15px;
}

.discord-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  flex: 1;
  max-width: 420px;
  overflow: hidden;
  padding-left: 15px;
  margin: 0;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  background: var(--card-bg);
  border-radius: 10px;
  color: white;
  padding: 3px 8px;
  margin: 3px;
  font-size: 10px;
  font-weight: 400;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
  white-space: nowrap;
}

.role-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  background-color: var(--color-button); 
  border-radius: 50%;
  margin-right: 5px;
}

.role-badge:hover {
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .profile-page {
    padding: 15px;
  }
  
  .dashboard-title {
    font-size: 1.5rem;
    text-align: center;
  }
  
  .profile-header {
    flex-direction: column;
    gap: 25px;
    align-items: center;
    text-align: center;
    padding: 25px 20px;
  }
  
  .user-info {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
  }
  
  .user-avatar {
    width: 140px;
    height: 140px;
  }
  
  .user-details {
    width: 100%;
    align-items: center;
  }
  
  .user-details h2 {
    font-size: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
  }
  
  .user-email {
    font-size: 0.9rem;
    text-align: center;
    width: 100%;
  }
  
  .points-box {
    flex-direction: row;
    align-items: center;
    padding: 8px 15px;
    gap: 8px;
    max-width: 280px;
    width: auto;
    margin: 0 auto;
    height: 75px;
  }

  .points-section {
    flex-direction: row;
    text-align: left;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
  }

  .points-icon-circle {
    width: 30px;
    height: 30px;
  }

  .points-icon-circle i {
    font-size: 0.9rem;
  }

  .points-text .value {
    font-size: 1rem;
  }

  .points-text .label {
    font-size: 0.65rem;
  }
  
  .discord-roles {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
  
  .divider-vertical {
    width: 1px;
    height: 25px;
    margin: 0 8px;
    background: rgba(255, 255, 255, 0.3);
  }

  .discord-roles {
    width: auto;
    justify-content: flex-start;
    gap: 2px;
    flex-wrap: wrap;
  }

  .role-badge {
      font-size: 8px;
      padding: 3px 6px;
  }

  .profile-actions {
      flex-direction: column;
      gap: 8px;
      width: 100%;
  }
  
  .admin-btn, .logout-btn {
    flex: 1;
    min-width: 120px;
    justify-content: center;
    padding: 14px 20px;
  }
}

@media (max-width: 480px) {
  .dashboard-title {
    font-size: 1.3rem;
    text-align: center;
    letter-spacing: 1px;
  }
  
  .user-details h2 {
    font-size: 1.1rem;
  }
  
  .user-email {
    font-size: 0.85rem;
  }
  
  .user-avatar {
    width: 120px;
    height: 120px;
  }
  
  .role-badge {
    font-size: 9px;
    padding: 4px 8px;
  }
  
  .points-text .value {
    font-size: 1.6rem;
  }
  
  .points-text .label {
    font-size: 0.8rem;
  }
  
  .profile-header {
    padding: 20px 15px;
  }
}


.tab-container {
    background: #16213e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

.tabs {
    display: flex;
    background: #16213e;
    padding: 8px;
    gap: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab {
    flex: 1;
    padding: 10px 26px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    color: #b0b3b8;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-radius: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    background: transparent;
    border: none;
    outline: none;
}

.tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transform: translateY(-1px);
}

.tab.active {
    background: #2c3e5c;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-content {
    padding: 0.25rem;
    background: #16213e;
}

/* Empty state */

.empty-state {
    text-align: center;
    padding: 40px 0;
}
  
.empty-state i {
    font-size: 50px;
    color: #6c757d;
    margin-bottom: 15px;
}

 /* Product table styles */
.products-content {
    background: #16213e;
    padding: 1px;
    border-radius: 0 0 10px 10px;
}

.products-count {
    margin-bottom: 20px;
    color: #fff;
    font-size: 16px;
}

.products-table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: rgba(26, 35, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    color: #fff;
    table-layout: fixed;
}

.products-table th {
    text-align: center;
    padding: 12px;
    color: #8e9297;
    font-weight: normal;
    border-bottom: 1px solid #161718;
}

.products-table th:first-child {
    width: 90px;
}

.products-table th:nth-child(2) {
    width: 25%;
}

.products-table th:nth-child(3), 
.products-table th:nth-child(4) {
    width: 15%;
}

.products-table th:last-child {
    width: 25%;
    text-align: center;
}

.products-table td {
    text-align: center;
    padding: 12px;
    border-bottom: 1px solid #111213;
    vertical-align: middle;
}

.product-img-link {
    display: block;
    transition: transform 0.2s;
}

.product-img-link:hover {
    transform: scale(1.05);
}

.product-img {
    width: 90px;
    height: 70px;
    border-radius: 5px;
    object-fit: cover;
    cursor: pointer;
}

.product-id {
    color: #8e9297;
    font-size: 14px;
    margin-bottom: 5px;
}

.product-name {
    color: #fff;
    font-weight: bold;
}

.action-btns {
    display: flex;
    justify-content: center; 
    align-items: center; 
    height: 100px;
    gap: 10px;
}

.action-btn {
    background-color: #8f3aff;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background-color 0.2s;
    min-width: 100px;
}

.action-btn:hover {
    color: #000000;
    background-color: var(--main-30);
    border: 1px solid var(--main);
}

.config-btn, .download-btn {
    color: #fff;
    background: var(--color-button-opa-50);
    border: 1px solid var(--color-button);
    transition: all .5s ease;
    text-decoration: none;
}

@media (max-width: 768px) {
  .products-table {
      display: block;
      overflow-x: auto;
      white-space: nowrap;
  }

  .action-btns {
      width: 100%; 
      padding: 10px; 
  }
}

/* Points section */
.payment-container {
  display: flex;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
}

.payment-info {
  background-color: white;
  border: 1px solid rgba(255, 255, 255, 0.08); 
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  border-radius: 10px;
  padding: 20px;
  flex: 1;
  min-width: 300px;
}
  .qr-mobile:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  }
  
  .qr-section {
    border-radius: 10px;
    padding: 0;
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  
  .info-header {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
  }
  
  .bank-option {
    display: flex;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s;
  }
  
  .bank-option:hover {
    background-color: #f9f9f9;
  }
  
  .bank-option.active {
    border: 2px solid var(--color-button-opa-25);
    background-color: #e3f2fd;
  }
  
  .bank-logo-kasikorn, .bank-logo-true-money {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    overflow: hidden;
  }

  .bank-logo-kasikorn img, .bank-logo-true-money img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    border-radius: 8px;
  }
  
  .bank-details {
    flex: 1;
  }
  
  .bank-name {
    font-size: 12px;
    color: #666;
  }
  
  .account-name, .account-number {
    font-size: 14px;
    color: #333;
  }
  
  .terms {
    font-size: 12px;
    color: #f44336;
    margin: 15px 0;
  }
  .terms-mobile {
    font-size: 12px;
    color: #666;
    text-align: center;
  }

  .upload-header {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
  }
  
  .amount-section {
    margin: 15px 0;
  }
  
  .amount-header {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
  }
  
  .amount-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 10px;
  }
  
  .amount-btn {
    padding: 10px;
    border: 1px solid #e0e0e0;
    background-color: #f5f5f5;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .amount-btn:hover {
    background-color: #e3f2fd;
    border-color: var(--color-button);
  }
  
  .amount-btn.active {
    background-color: var(--color-button-opa-50);
    color: white;
    border-color: var(--color-button);
  }
  
  #payment-amount {
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 15px;
    text-align: right;
  }
  
  .amount-summary {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
  }
  
  .amount-total {
    font-size: 16px;
    margin-bottom: 5px;
  }
  
  .points-total {
    font-size: 16px;
    color: #2196F3;
    font-weight: bold;
  }
  
  .slip-upload-container {
    border: 1px dashed #c0c0c0;
    border-radius: 8px;
    min-height: 100px;
    position: relative;
    margin-bottom: 15px;
    overflow: hidden;
  }
  
  .upload-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    height: 100%;
    width: 100%;
    max-width: 100%;
    max-height: 100%;
  }
  
  .upload-box:hover {
    background-color: #f0f8ff;
  }
  
  .upload-icon {
    color: #757575;
    margin-bottom: 10px;
  }
  
  .upload-text {
    font-size: 14px;
    color: #757575;
  }
  
  .preview-container {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    position: relative;
  }
  
  .preview-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
  }
  
  .amount-input {
    margin: 15px 0;
  }
  
  .amount-input label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #333;
  }
  
  .amount-input input {
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
  }
  
  .point-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    margin: 15px 0;
    cursor: pointer;
  }
  
  .point-selector select {
    width: 100%;
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
    margin-top: 10px;
  }
  
  .confirm-button {
    width: 100%;
    padding: 12px;
    background-color: var(--color-button-opa-50);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
  }
  
  .confirm-button:hover {
    background-color: var(--color-button);
  }
  
  .cloud-icon {
    margin-right: 10px;
  }
  .hidden {
    display: none;
  }

/* Transaction history */
.transaction-table {
    width: 100%;
    border-collapse: collapse;
}
.transaction-table th,
.transaction-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.positive {
    color: #28a745;
}
.negative {
    color: #dc3545;
}

 /* Responsive styles */
@media (max-width: 768px) {
    .payment-options {
      flex-direction: column;
    }
    .payment-option {
      max-width: 100%;
    }
    .packages-grid {
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    .points-container {
        flex-direction: column;
    }
    .profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .tabs {
        overflow-x: auto;
        white-space: nowrap;
    }
    .qr-section 
    {
      display: none;
    }
    .qr-section.mobile-only {
      display: flex;
    }
    .terms-mobile {
      display: flex;
    }
}

.form-control:focus {
    color: #fff;
    border-color: var(--color-button) !important;
    outline: 0 !important;
    box-shadow: 0 0 0 .15rem var(--color-button) !important;
}
.form-control {
    color: #fff;
    border: 1px solid var(--color-button) !important;
    border-radius: 8px;
}

.modal-open .modal {
  overflow-x: hidden;
  overflow-y: auto;
}

.modal.show .modal-dialog {
  animation: open-modal 0.3s ease-in-out !important;
}
.modal.show .modal-dialog {
    -webkit-transform: translate(0, 0);
    transform: translate(0, 0);
}
.modal.show .modal-dialog {
    animation: open-modal 0.3s ease-in-out !important;
}

@keyframes open-modal {
0% {
  transform: scale(0);
}
25% {
  transform: scale(1.05);
}
50% {
  transform: scale(0.95);
}
75% {
  transform: scale(1.05);
}
100% {
  transform: scale(1);
}
}

.modal.fade .modal-dialog {
    transition: transform .3s ease-out;
}

.alert-warning {
    background-color: #ffcdcd;
    color: #ff0101;
    border-color: #db2727;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5vh;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-secondary {
    background-color: #f8f9fa;
    color: #212529;
    border-color: #f8f9fa;
}

.warning-box {
  border-radius: 8px;
  padding: 15px;
  margin-top: 10px;
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  font-family: 'Kanit', sans-serif;
}

.warning-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-right: 12px;
  flex-shrink: 0;
}

.danger-box {
  background-color: rgba(163, 45, 57, 0.538);
  color: #fff;
  border: 0.5px solid #db2727;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
}

.info-box {
  background-color: rgba(177, 149, 47, 0.938);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
}

.Partnerinfo-box {
  background: var(--card-bg);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
}

.danger-icon {
  background-color: white;
  color: #ff1f36;
}

.info-icon {
  background-color: #744210;
  color: #ffeaa1;
}

.warning-content {
  flex: 1;
}

.warning-title {
  font-weight: bold;
  margin-bottom: 4px;
}

.warning-text {
  font-size: 0.9rem;
  line-height: 1.4;
}

.mdi--shopping-outline {
  display: inline-block;
  width: 28px;
  height: 28px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M19 6h-2c0-2.8-2.2-5-5-5S7 3.2 7 6H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-7-3c1.7 0 3 1.3 3 3H9c0-1.7 1.3-3 3-3m7 17H5V8h14zm-7-8c-1.7 0-3-1.3-3-3H7c0 2.8 2.2 5 5 5s5-2.2 5-5h-2c0 1.7-1.3 3-3 3'/%3E%3C/svg%3E");
}

.material-symbols--folder {
  display: inline-block;
  width: 25px;
  height: 25px;
  --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 20q-.825 0-1.412-.587T2 18V6q0-.825.588-1.412T4 4h6l2 2h8q.825 0 1.413.588T22 8v10q0 .825-.587 1.413T20 20z'/%3E%3C/svg%3E");
  background-color: currentColor;
  -webkit-mask-image: var(--svg);
  mask-image: var(--svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.original-price {
  position: relative;
  display: inline-block;
  color: #888;
  font-size: 0.95rem;
}

.terms-checkbox {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.terms-checkbox input {
  margin-right: 10px;
}

.feature-item span {
  font-weight: bold;
}


.team-container {
      position: relative;
      background-color: rgba(255, 255, 255, 0.03);
      box-shadow: 0 0 20px rgba(0, 153, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.08);
      width: 100vw; 
      margin-left: calc(-50vw + 50%); 
     padding: 30px 0;
     margin-bottom: 60px;
           font-family: 'Orbitron', 'Noto Sans Thai', sans-serif;

}

.team-container-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.intro-text {
  flex: 1 1 40%;
  padding-right: 40px;
}

.intro-text h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 5px;
      font-family: 'Orbitron', 'Noto Sans Thai', sans-serif;

}

.intro-text h1.highlight {
  color: var(--text-main);
  margin-top: 0;
  font-size: 32px;
  margin-bottom: 15px;
    font-weight: bold;
    font-family: 'Orbitron', 'Noto Sans Thai', sans-serif;

}

.intro-text p {
  color: rgba(255, 255, 255, 0.7);
      font-family: 'Orbitron', 'Noto Sans Thai', sans-serif;

}

.features-grid {
  flex: 1 1 55%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.feature-box {
  background-color: rgba(2, 20, 41, 0.5); 
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  transition: all 0.2s ease;
  box-shadow: inset 0 0 8px rgba(42, 163, 255, 0.2);
  position: relative; 
}

.feature-box:hover {
  transform: translateY(-5px);
  border-color: var(--color-button-opa-50);
  box-shadow: 0 5px 15px rgba(42, 163, 255, 0.1);
}

.feature-box::before {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);; 
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
  animation: pulse-dot 2s infinite;
}

/* ปรับปรุงส่วน icon ให้มีกรอบและจัดหัวข้อข้างๆ */
.feature-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.icon-frame {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--main), var(--main-30));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(42, 163, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
}

.icon-frame:nth-child(1) .icon-frame {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
}

.icon-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  border-radius: inherit;
  pointer-events: none;
}

.feature-box i {
  font-size: 16px;
  color: #fff;
  margin: 0;
  z-index: 1;
  position: relative;
}

.feature-box h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  font-family: 'Orbitron', 'Noto Sans Thai', sans-serif;
  flex: 1;
}

.feature-box p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

.purchase-history-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
  font-family: 'Sarabun', sans-serif;
}

.purchase-history-table thead {
  background: var(--dark-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
}

.purchase-history-table thead th {
  padding: 16px;
  text-align: left;
  font-weight: bold;
  color: #ffffff;
  font-size: 16px;
  border-bottom: 2px solid #3e4a6b;
}

.purchase-history-table tbody tr {
  transition: background 0.2s ease-in-out;
}

.purchase-history-table tbody tr:hover {
  background-color: #2a3144;
}

.purchase-history-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid #3a445e;
  font-size: 15px;
}

.purchase-history-table a {
  color: #fff;  
  text-decoration: none;
}

.purchase-history-table a:hover {
  text-decoration: underline;
}

@media (max-width: 992px) {
  .team-container-inner {
    flex-direction: column;
  }
  
  .intro-text {
    flex: 1 1 100%;
    padding-right: 0;
    margin-bottom: 30px;
  }
  
  .features-grid {
    flex: 1 1 100%;
  }
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-header {
    gap: 12px;
  }
  
  .icon-frame {
    width: 34px;
    height: 34px;
  }
}

.line-md--close-to-menu-transition {
  display: inline-block;
  width: 45px;
  height: 45px;
  --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 5L12 12L19 5M12 12H12M5 19L12 12L19 19'%3E%3Canimate fill='freeze' attributeName='d' dur='0.4s' values='M5 5L12 12L19 5M12 12H12M5 19L12 12L19 19;M5 5L12 5L19 5M5 12H19M5 19L12 19L19 19'/%3E%3C/path%3E%3C/svg%3E");
  background-color: currentColor;
  -webkit-mask-image: var(--svg);
  mask-image: var(--svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.line-md--close {
  display: inline-block;
  width: 45px;
  height: 45px;
  --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-dasharray='12' stroke-dashoffset='12' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 12l7 7M12 12l-7 -7M12 12l-7 7M12 12l7 -7'%3E%3Canimate fill='freeze' attributeName='stroke-dashoffset' dur='0.3s' values='12;0'/%3E%3C/path%3E%3C/svg%3E");
  background-color: currentColor;
  -webkit-mask-image: var(--svg);
  mask-image: var(--svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}


/* Stats Section */
.stats-section { 
  padding: 20px 0; 
  position: relative; 
  overflow: hidden; 
}

.stats-container { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 20px; 
  position: relative; 
  z-index: 1; 
}

.stats-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 20px; 
  margin-top: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.stat-card { 
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px; 
  text-align: left;
  position: relative; 
  overflow: hidden; 
  transition: all 0.3s ease; 
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 65px;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}


.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card:hover { 
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.stat-icon { 
  width: 35px; 
  height: 35px; 
  margin-bottom: 0;
  border-radius: 8px;
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 16px; 
  color: #fff; 
  position: relative; 
  z-index: 2;
  flex-shrink: 0;
}

.stat-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-card:nth-child(1) { 
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(53, 122, 189, 0.15) 100%);
  border-color: rgba(74, 144, 226, 0.2);
}

.stat-card:nth-child(2) { 
  background: linear-gradient(135deg, rgba(184, 134, 11, 0.1) 0%, rgba(139, 105, 20, 0.15) 100%);
  border-color: rgba(184, 134, 11, 0.2);
}

.stat-card:nth-child(3) { 
  background: linear-gradient(135deg, rgba(156, 77, 204, 0.1) 0%, rgba(123, 31, 162, 0.15) 100%);
  border-color: rgba(156, 77, 204, 0.2);
}

.stat-card:nth-child(4) { 
  background: linear-gradient(135deg, rgba(77, 185, 204, 0.1) 0%, rgba(31, 162, 151, 0.15) 100%);
  border-color: rgba(156, 77, 204, 0.2);
}

.stat-card:nth-child(1) .stat-icon { 
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
}

.stat-card:nth-child(2) .stat-icon { 
  background: linear-gradient(135deg, #b8860b 0%, #8b6914 100%);
}

.stat-card:nth-child(3) .stat-icon { 
  background: linear-gradient(135deg, #6f4dcc 0%, #371fa2 100%);
}

.stat-card:nth-child(4) .stat-icon { 
  background: linear-gradient(135deg, #4daecc 0%, #46a1a1 100%);
}

.stat-number { 
  font-size: 22px; 
  font-weight: 700; 
  margin-bottom: 0; 
  color: #fff;
  line-height: 1;
  text-align: center;
  position: relative;
}
.stat-number::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  text-align: center;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
  border-radius: 1px;
}

.stat-label { 
  font-size: 13px; 
  font-weight: 400; 
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0px;
}

.counter-animation { 
  animation: countUp 2s ease-out; 
}

@keyframes countUp { 
  from { 
      opacity: 0; 
      transform: translateY(20px); 
  } 
  to { 
      opacity: 1; 
      transform: translateY(0); 
  } 
}

@media (max-width: 768px) { 
  .stats-section { 
      padding: 30px 0; 
  } 
  .stats-grid { 
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
      gap: 20px; 
  } 
  .stat-card { 
      padding: 25px 20px; 
  } 
  .stat-number { 
      font-size: 36px; 
  } 
}


/* coupon */ 
.coupon-section {
    margin: 10px 0;
}
    
.coupon-input-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
    
.coupon-input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #0c597dcc;
    border-radius: 8px;
    font-size: 14px;
    background: #0c597d5e;
    outline: none;
    transition: all 0.3s ease;
    color: white;
    }
    
    .coupon-input:focus {
    border-color: var(--main-30);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }
    
    .coupon-btn {
    padding: 12px;
    background-color: #0a4d6a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    }
    
    .coupon-btn:hover {
      background-color: #0c5a7d;
    
    }
    
    .coupon-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    }
    
    .coupon-result {
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 5px;
    display: none;
    animation: slideDown 0.3s ease;
    }
    
    .coupon-result.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
    }
    
    .coupon-result.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
    }
    
    .coupon-result.info {
    background: #cce7ff;
    color: #004085;
    border: 1px solid #b3d7ff;
    display: block;
    }
    
    @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
    }
    
    .coupon-discount-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    padding-top: 8px;
    border-top: 1px solid rgba(0,0,0,0.1);
    }
    
    .price-before {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9em;
    }
    
    .price-after {
    font-weight: bold;
    color: #28a745;
    }
    
    .spin {
    animation: spin 1s linear infinite;
    }
    
    @keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
    }