/**********************************************************/
/******************** ud-1-26 Add Member *******************/
/**********************************************************/

.ud-1-26-add-member-section {
  margin-bottom: 2.5rem;
}

/* Mode Selector - Card Style */
.ud-1-26-mode-selector {
  padding: 1.5rem 0;
}

.ud-1-26-mode-title {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.ud-1-26-mode-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.ud-1-26-mode-card {
  margin: 0;
  cursor: pointer;
}

.ud-1-26-mode-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  border: 2px solid rgba(25, 145, 235, 0.4);
  border-radius: 12px;
  transition: all 0.25s ease;
  min-height: 140px;
}

.ud-1-26-mode-card:hover .ud-1-26-mode-card-inner {
  border-color: rgba(25, 145, 235, 0.7);
  background: rgba(25, 145, 235, 0.08);
}

.ud-1-26-mode-card.ud-1-26-mode-card-active .ud-1-26-mode-card-inner {
  border-color: #1991eb;
  background: rgba(25, 145, 235, 0.15);
  box-shadow: 0 0 0 1px rgba(25, 145, 235, 0.3);
}

.ud-1-26-mode-icon {
  font-size: 1.5rem;
  color: #b9a474;
  margin-bottom: 0.5rem;
}

.ud-1-26-mode-card.ud-1-26-mode-card-active .ud-1-26-mode-card-inner .ud-1-26-mode-icon {
  color: #ffb841;
}

.ud-1-26-mode-num {
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(185, 164, 116, 0.3);
  color: #b9a474;
  border-radius: 50%;
  margin-bottom: 0.5rem;
}

.ud-1-26-mode-card.ud-1-26-mode-card-active .ud-1-26-mode-card-inner .ud-1-26-mode-num {
  background: #7e633a;
  color: #fff;
}

.ud-1-26-mode-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  margin-bottom: 0.25rem;
}

.ud-1-26-mode-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

@media (max-width: 576px) {
  .ud-1-26-mode-cards {
    gap: 0.5rem;
  }
  .ud-1-26-mode-card-inner {
    padding: 0.6rem 0.5rem;
    min-height: 100px;
  }
  .ud-1-26-mode-icon {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
  }
  .ud-1-26-mode-num {
    width: 20px;
    height: 20px;
    line-height: 20px;
    font-size: 0.65rem;
    margin-bottom: 0.25rem;
  }
  .ud-1-26-mode-text {
    font-size: 0.75rem;
    margin-bottom: 0.15rem;
  }
  .ud-1-26-mode-desc {
    font-size: 0.65rem;
  }
}

/* Form Wrapper */
.ud-1-26-form-wrapper {
  margin-top: 1.5rem;
}

/* Form Card */
.ud-1-26-form-card {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ud-1-26-form-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.3);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ud-1-26-form-card-header i {
  color: #b9a474;
  font-size: 1rem;
}

.ud-1-26-form-card-body {
  padding: 1.25rem 1.5rem;
}

/* Form Groups */
.ud-1-26-form-group {
  margin-bottom: 1.25rem;
}

.ud-1-26-form-group:last-child {
  margin-bottom: 0;
}

.ud-1-26-form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
}

.ud-1-26-required {
  color: #e74c3c;
}

.ud-1-26-form-group .form-control,
.ud-1-26-form-group .custom-select {
  width: 100%;
}

.ud-1-26-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 576px) {
  .ud-1-26-form-row {
    grid-template-columns: 1fr;
  }
}

.ud-1-26-form-group-flex {
  flex: 1;
  min-width: 0;
}

.ud-1-26-form-hint {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.4rem;
}

/* Upload Group */
.ud-1-26-upload-group {
  display: flex;
  gap: 0.5rem;
}

.ud-1-26-upload-group .form-control {
  flex: 1;
  min-width: 0;
}

.ud-1-26-upload-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Form Actions */
.ud-1-26-form-actions {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ud-1-26-form-actions .tour-main-menu-btn {
  display: inline-block;
}

/* History List - Compact (สูงสุด 10 คน) แถวละ 4 คอลัมน์ */
.ud-1-26-history-max {
  font-weight: 400;
  opacity: 0.8;
  font-size: 0.8em;
}

.ud-1-26-history-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

@media (max-width: 992px) {
  .ud-1-26-history-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .ud-1-26-history-list {
    grid-template-columns: 1fr;
  }
}

.ud-1-26-history-card {
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.ud-1-26-history-card-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.5rem 0.75rem;
  min-height: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.ud-1-26-history-card:hover .ud-1-26-history-card-inner {
  border-color: rgba(25, 145, 235, 0.5);
  background: rgba(25, 145, 235, 0.05);
}

.ud-1-26-history-card.ud-1-26-history-card-active .ud-1-26-history-card-inner {
  border-color: #1991eb;
  background: rgba(25, 145, 235, 0.12);
}

.ud-1-26-history-id {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

.ud-1-26-history-char {
  font-size: 0.82rem;
  font-weight: 600;
  color: #b9a474;
}

.ud-1-26-history-char small {
  font-weight: 400;
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.6);
}

/* Result Section - Auto fill form แก้ไขได้ */
.ud-1-26-result-header .ud-1-26-result-header-icon {
  color: #b9a474;
}

.ud-1-26-result-header.ud-1-26-result-header-verified {
  background: rgba(39, 174, 96, 0.15) !important;
  border-bottom-color: rgba(39, 174, 96, 0.3) !important;
}

.ud-1-26-result-header.ud-1-26-result-header-verified .ud-1-26-result-header-icon {
  color: #27ae60 !important;
}

.ud-1-26-edit-hint {
  font-weight: 400;
  opacity: 0.85;
  font-size: 0.85em;
}

.ud-1-26-result-form .ud-1-26-form-group {
  margin-bottom: 1rem;
}

.ud-1-26-result-form .ud-1-26-form-row {
  margin-bottom: 0;
}

.ud-1-26-result-form .ud-1-26-form-row .ud-1-26-form-group {
  margin-bottom: 1rem;
}

.ud-1-26-result-form .ud-1-26-form-row .ud-1-26-form-group-full-row {
  grid-column: 1 / -1;
}

/* Action Buttons */
.ud-1-26-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}

.ud-1-26-action-buttons .tour-main-menu-btn {
  display: block;
  text-align: center;
}

.ud-1-26-add-member-btn {
  order: -1;
}

/* Checkbox บันทึกรายการเพื่อน */
.ud-1-26-save-friend-checkbox {
  margin: 1rem 0;
}

.ud-1-26-save-friend-checkbox-hide {
  display: none !important;
}

.ud-1-26-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.ud-1-26-checkbox-label input[type="checkbox"] {
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.ud-1-26-checkbox-text {
  line-height: 1.5;
}

/* History counter */
.ud-1-26-history-counter-wrap {
  margin-bottom: 1rem;
  padding: 0.6rem 0;
}

.ud-1-26-history-counter {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.ud-1-26-history-count {
  color: #b9a474;
}

.ud-1-26-history-counter-desc {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.25rem;
}

/* History header with manage link */
.ud-1-26-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ud-1-26-friend-manage-link {
  font-size: 0.9rem;
  padding: 0.35rem 0.75rem;
  white-space: nowrap;
}

/* Friend Manage Page */
.ud-1-26-friend-manage-section {
  margin-bottom: 2.5rem;
}

.ud-1-26-friend-manage-desc {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
}

.ud-1-26-friend-counter-wrap {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ud-1-26-friend-counter {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.ud-1-26-friend-count {
  color: #b9a474;
}

.ud-1-26-friend-count-max {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.ud-1-26-friend-counter-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0.35rem 0 0 0;
}

.ud-1-26-friend-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.ud-1-26-friend-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Friend Badge */
.ud-1-26-friend-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  z-index: 1;
}

.ud-1-26-friend-badge i {
  font-size: 0.7rem;
}

.ud-1-26-friend-badge-self {
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.4);
}

.ud-1-26-friend-badge-friend {
  background: rgba(52, 152, 219, 0.2);
  color: #3498db;
  border: 1px solid rgba(52, 152, 219, 0.4);
}

.ud-1-26-friend-card-self {
  border-color: rgba(46, 204, 113, 0.3);
  background: rgba(46, 204, 113, 0.05);
}

.ud-1-26-friend-card-body {
  padding: 1rem 1.25rem;
  flex: 1;
}

.ud-1-26-friend-card-id {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.35rem;
  word-break: break-all;
}

.ud-1-26-friend-card-name {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
}

.ud-1-26-friend-card-char {
  font-size: 0.9rem;
  color: #b9a474;
}

.ud-1-26-friend-card-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ud-1-26-friend-card-actions .tour-main-menu-btn,
.ud-1-26-friend-card-actions .tour-main-menu-btn:hover,
.ud-1-26-friend-card-actions .tour-main-menu-btn:focus {
  flex: 1;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  padding: 0.4rem 0.5rem;
  text-align: center;
}

.ud-1-26-friend-empty {
  text-align: center;
  padding: 2rem;
  color: rgba(255, 255, 255, 0.7);
}

.ud-1-26-friend-empty-hide {
  display: none !important;
}

/**********************************************************/
/******************** Global Display Standards *************/
/**** ปรับปรุง typography, spacing, สี ทุกหน้า *************/
/**********************************************************/

/* === ลดขนาด Container ทุก breakpoint === */
.sec-body-bg > .container,
.theme-topbar-box .container,
.theme-footer-wrapper .container {
  max-width: 100%;
}

@media (min-width: 576px) {
  .sec-body-bg > .container,
  .theme-topbar-box .container,
  .theme-footer-wrapper .container {
    max-width: 480px;
  }
}

@media (min-width: 768px) {
  .sec-body-bg > .container,
  .theme-topbar-box .container,
  .theme-footer-wrapper .container {
    max-width: 640px;
  }
}

@media (min-width: 992px) {
  .sec-body-bg > .container,
  .theme-topbar-box .container,
  .theme-footer-wrapper .container {
    max-width: 860px;
  }
}

@media (min-width: 1200px) {
  .sec-body-bg > .container,
  .theme-topbar-box .container,
  .theme-footer-wrapper .container {
    max-width: 1020px;
  }
}

/* === Typography Scale (มาตรฐาน) === */
.sec-body-bg .title-bar-inner,
.sec-body-bg .title-bar-inner h2 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.95);
}

.sec-body-bg .title-bar-inner h2 i {
  margin-right: 0.5rem;
  opacity: 0.9;
}

.sec-body-bg .title-bar-outer {
  margin-bottom: 0;
}

.sec-body-bg .desc-wp-outer {
  padding: 1.25rem 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.9);
}

/* === Tour List Cards === */
.sec-body-bg .tour-list-card-title h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: #fff;
  margin: 0;
}

.sec-body-bg .tour-list-card-title {
  padding: 1rem 1.25rem !important;
  margin-top: 0;
}

.sec-body-bg .tour-list-card-date {
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgba(163, 163, 163, 0.95);
  padding: 0.75rem 1.25rem !important;
  letter-spacing: 0.02em;
}

.sec-body-bg .tour-list-card-wp {
  margin-bottom: 0;
}

.sec-body-bg .tour-list-card-status {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.75rem;
  width: auto;
  min-width: 100px;
}

/* === Date Cards === */
.sec-body-bg .desc-date-card-wp {
  padding: 1.25rem 1.5rem;
}

.sec-body-bg .desc-date-card-title h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: #fff;
}

.sec-body-bg .desc-date-card-ts {
  font-size: 0.875rem;
  margin-top: 0.75rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.sec-body-bg .desc-date-card-ts span {
  font-weight: 500;
  color: #b9a474;
}

/* === Accordion === */
.sec-body-bg .accordion-custom-title {
  padding: 1rem 1.25rem;
}

.sec-body-bg .accordion-custom-title-ts h2 {
  font-size: 1rem !important;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.sec-body-bg .accordion-custom-desc-wp .card-body {
  font-size: 0.9375rem;
  line-height: 1.65;
  padding: 1.25rem 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

/* === Form Elements === */
.sec-body-bg .form-title-ts {
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: rgba(255, 255, 255, 0.95);
}

.sec-body-bg .form-input-wp {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.sec-body-bg .form-input-text-custom {
  font-size: 0.9375rem;
  padding: 0.5rem 0.875rem;
  line-height: 1.5;
  color: #ffffff !important;
}

/* แก้ไข autofill ให้ตัวหนังสือเป็นสีขาวระหว่างพิมพ์ */
.sec-body-bg .form-input-text-custom:-webkit-autofill,
.sec-body-bg .form-input-text-custom:-webkit-autofill:hover,
.sec-body-bg .form-input-text-custom:-webkit-autofill:focus,
.sec-body-bg .form-input-text-custom:-webkit-autofill:active {
  -webkit-text-fill-color: #ffffff !important;
  transition: background-color 5000s ease-in-out 0s;
}

.sec-body-bg .form-input-text-custom.custom-select {
  color: #ffffff !important;
}

.sec-body-bg .form-help-ts {
  font-size: 0.8125rem;
  line-height: 1.5;
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.6);
}

/* === Buttons === */
.sec-body-bg .tour-main-menu-btn {
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.625rem 1rem;
  letter-spacing: 0.02em;
  margin: 0.5rem 0;
}

.sec-body-bg .tour-main-menu-btn.lg {
  font-size: 1.125rem;
  padding: 0.875rem 1.5rem;
}

/* === Table History === */
.sec-body-bg .table-history {
  font-size: 0.9375rem;
}

.sec-body-bg .table-history thead td {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  letter-spacing: 0.03em;
}

.sec-body-bg .table-history tbody td {
  padding: 0.75rem 1rem;
  line-height: 1.5;
}

/* === Contest Cards === */
.sec-body-bg .contest-card-wp {
  padding: 1rem 1.25rem;
}

.sec-body-bg .contest-card-name {
  font-size: 0.9375rem;
  font-weight: 500;
}

.sec-body-bg .contest-card-status {
  font-size: 0.8125rem;
  font-weight: 500;
}

/* === Pagination === */
.sec-body-bg .pagination-custom .page-link {
  font-size: 0.9375rem;
  padding: 0.5rem 0.875rem;
}

/* === Desc & Notes === */
.sec-body-bg .desc-ps-title h4,
.sec-body-bg .desc-ps-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.sec-body-bg .desc-ps-detail {
  font-size: 0.875rem;
  line-height: 1.6;
  padding-left: 1.25rem;
}

.sec-body-bg .desc-ps-detail li {
  margin-bottom: 0.5rem;
}

/* === Team Detail === */
.sec-body-bg .team-detail-title {
  font-size: 1rem;
  font-weight: 600;
}

.sec-body-bg .team-detail-desc,
.sec-body-bg .team-detail-desc .team-detail-sub-title {
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* === Form Confirm === */
.sec-body-bg .form-confirm-rule {
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* === Topbar === */
.theme-topbar-ts-btn {
  font-size: 0.9375rem;
  padding: 0.375rem 0.875rem;
}

/* === Footer === */
.theme-footer-wrapper {
  font-size: 0.875rem;
  line-height: 1.5;
  padding: 1.25rem 0 !important;
}

/* === Row Spacing === */
.sec-body-bg > .container .row.mt-3 {
  margin-top: 1.25rem !important;
}

.sec-body-bg > .container .row.mb-5 {
  margin-bottom: 2.5rem !important;
}

/* === A-004 Cards === */
.sec-body-bg .a-004 {
  padding: 1.25rem 1.5rem;
}

/* === Modal === */
.modal-content {
  border-radius: 12px;
}

.modal-header .modal-title {
  font-size: 1.125rem;
  font-weight: 600;
}

.modal-body {
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* === Responsive === */
@media (max-width: 767px) {
  .sec-body-bg .title-bar-inner,
  .sec-body-bg .title-bar-inner h2 {
    font-size: 1rem;
  }
  .sec-body-bg .tour-list-card-title h3 {
    font-size: 0.9375rem;
  }
  .sec-body-bg .desc-wp-outer {
    padding: 1rem 1.25rem;
  }
  .sec-body-bg .tour-main-menu-btn {
    font-size: 0.875rem;
    padding: 0.5rem 0.875rem;
  }
}

@media (max-width: 575px) {
  .sec-body-bg .title-bar-inner,
  .sec-body-bg .title-bar-inner h2 {
    font-size: 0.9375rem;
  }
  .sec-body-bg .form-title-ts {
    font-size: 0.875rem;
  }
  .sec-body-bg .table-history thead td,
  .sec-body-bg .table-history tbody td {
    font-size: 0.8125rem;
    padding: 0.5rem 0.75rem;
  }
}

/**********************************************************/
/******************** Enhanced Aesthetics ******************/
/**** ความสวยงามและการจัด layout เพิ่มเติม *****************/
/**********************************************************/

/* === Card Hover & Transitions === */
.sec-body-bg .tour-list-card-wp {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sec-body-bg .tour-list-card-wp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.sec-body-bg .tour-list-card-wp img {
  transition: opacity 0.2s ease;
}

.sec-body-bg .tour-list-card-wp:hover img {
  opacity: 0.95;
}

/* === Button Hover - เปลี่ยนสีพื้นหลังเล็กน้อย (ไม่ย่อขยาย, คงขนาดและความหนาตัวอักษร) === */
.sec-body-bg .tour-main-menu-btn,
.sec-body-bg .tour-main-menu-btn:hover,
.sec-body-bg .tour-main-menu-btn:focus,
.sec-body-bg .tour-main-menu-btn:active {
  font-size: 0.9375rem !important;
  font-weight: 500 !important;
  padding: 0.625rem 1rem !important;
  box-sizing: border-box;
}

.sec-body-bg .tour-main-menu-btn.lg,
.sec-body-bg .tour-main-menu-btn.lg:hover,
.sec-body-bg .tour-main-menu-btn.lg:focus,
.sec-body-bg .tour-main-menu-btn.lg:active {
  font-size: 1.125rem !important;
  font-weight: 500 !important;
  padding: 0.875rem 1.5rem !important;
}

/* ปุ่มใน title-bar-inner - คง padding เท่ากันทุกสถานะ (แก้ขนาดเปลี่ยนเมื่อ hover) */
.sec-body-bg .title-bar-inner .tour-main-menu-btn,
.sec-body-bg .title-bar-inner .tour-main-menu-btn:hover,
.sec-body-bg .title-bar-inner .tour-main-menu-btn:focus,
.sec-body-bg .title-bar-inner .tour-main-menu-btn:active {
  padding: 0.625rem 1rem !important;
  box-sizing: border-box !important;
}

.sec-body-bg .title-bar-inner .tour-main-menu-btn.lg,
.sec-body-bg .title-bar-inner .tour-main-menu-btn.lg:hover,
.sec-body-bg .title-bar-inner .tour-main-menu-btn.lg:focus,
.sec-body-bg .title-bar-inner .tour-main-menu-btn.lg:active {
  padding: 0.875rem 1.5rem !important;
}

.sec-body-bg .tour-main-menu-btn {
  transition: background-color 0.2s ease;
}

.sec-body-bg .tour-main-menu-btn.blue:hover {
  background-color: #2ba3f5;
}

.sec-body-bg .tour-main-menu-btn.yellow:hover {
  background-color: #f5b020;
}

.sec-body-bg .tour-main-menu-btn.red:hover {
  background-color: #ff1a1a;
}

.sec-body-bg .tour-main-menu-btn.dark:hover {
  background-color: #252b33;
}

/* btn-copy-url (Upload) - คงขนาดและความหนาเมื่อ hover */
.btn-copy-url,
.btn-copy-url:hover,
.btn-copy-url:focus,
.btn-copy-url:active {
  font-size: 16px !important;
  font-weight: 400 !important;
}

/* theme-topbar ปุ่มเมนู - คงขนาดและความหนาเมื่อ hover */
.theme-topbar-ts-btn,
.theme-topbar-ts-btn:hover,
.theme-topbar-ts-btn:focus,
.theme-topbar-ts-btn.active {
  font-size: 0.9375rem !important;
  font-weight: 500 !important;
}

/* === Form Input Focus === */
.sec-body-bg .form-input-text-custom:focus {
  color: #ffffff !important;
  border-color: #2ba3f5;
  box-shadow: 0 0 0 3px rgba(25, 145, 235, 0.2);
  outline: none;
}

/* === Table Enhanced === */
.sec-body-bg .table-history {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sec-body-bg .table-history thead {
  background: rgba(0, 0, 0, 0.25);
}

.sec-body-bg .table-history tbody tr {
  transition: background 0.15s ease;
}

.sec-body-bg .table-history tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.sec-body-bg .table-history tbody tr:hover {
  background: rgba(25, 145, 235, 0.08);
}

/* === Pagination Enhanced === */
.sec-body-bg .pagination-custom .page-item .page-link {
  transition: background 0.2s ease, color 0.2s ease;
  border-radius: 6px;
  margin: 0 2px;
}

.sec-body-bg .pagination-custom .page-item.active .page-link {
  background: #1991eb;
  border-color: #1991eb;
  color: #fff;
}

.sec-body-bg .pagination-custom .page-item .page-link:hover {
  background: rgba(25, 145, 235, 0.2);
  border-color: rgba(25, 145, 235, 0.4);
}

/* === Date Cards - hover เปลี่ยนสีกรอบแบบ pagination (ไม่มีเงา) === */
.sec-body-bg .desc-date-card-wp {
  transition: box-shadow 0.2s ease;
}

.sec-body-bg .desc-date-card-wp:hover {
  box-shadow: 0 0 0 1px rgba(25, 145, 235, 0.4);
}

/* === Accordion Chevron Transition === */
.sec-body-bg .accordion-custom-title .col-auto i {
  transition: transform 0.25s ease;
}

.sec-body-bg .accordion-custom-title[aria-expanded="true"] .col-auto i {
  transform: rotate(180deg);
}

/* === Contest Card Hover === */
/* === Contest Card - hover เปลี่ยนสีกรอบแบบ pagination (ไม่มีเงา) === */
.sec-body-bg .contest-card-wp {
  transition: box-shadow 0.2s ease;
}

.sec-body-bg .contest-card-wp:hover {
  box-shadow: 0 0 0 1px rgba(25, 145, 235, 0.4);
}

/* === A-004 / Team Detail Cards - hover เปลี่ยนสีกรอบแบบ pagination (ไม่มีเงา) === */
.sec-body-bg .a-004 {
  transition: box-shadow 0.2s ease;
}

.sec-body-bg .a-004:hover {
  box-shadow: 0 0 0 1px rgba(25, 145, 235, 0.4);
}

/* === Section Visual Separation === */
.sec-body-bg .title-bar-outer {
  margin-top: 0.5rem;
}

.sec-body-bg .title-bar-outer:first-child .title-bar-inner {
  margin-top: 0;
}

/* === Modal Dark Theme === */
.modal-content {
  background: #1e2329;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.modal-header .modal-title {
  color: #fff;
}

.modal-header .close {
  color: #fff;
  opacity: 0.9;
  text-shadow: none;
}

.modal-header .close:hover {
  color: #fff;
  opacity: 1;
}

.modal-footer {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.modal-body {
  color: rgba(255, 255, 255, 0.9);
}

/* === Status Badge Refinement === */
.sec-body-bg .tour-list-card-status.blue {
  box-shadow: 0 0 0 2px rgba(25, 145, 235, 0.4);
}

.sec-body-bg .tour-list-card-status.yellow {
  box-shadow: 0 0 0 2px rgba(255, 170, 16, 0.4);
}

.sec-body-bg .tour-list-card-status.red {
  box-shadow: 0 0 0 2px rgba(222, 6, 6, 0.4);
}

/* === Footer Separation === */
.theme-footer-wrapper {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 2rem;
}

/* === Game/Image Links === */
.sec-body-bg .col-4 a img,
.sec-body-bg .col-md-3 a img {
  transition: opacity 0.2s ease, transform 0.2s ease;
  border-radius: 8px;
}

.sec-body-bg .col-4 a:hover img,
.sec-body-bg .col-md-3 a:hover img {
  opacity: 0.9;
  transform: scale(1.02);
}

/* === Banner Image === */
.sec-body-bg .c-001 {
  overflow: hidden;
}

.sec-body-bg .c-001 img {
  transition: transform 0.3s ease;
}

.sec-body-bg .c-001:hover img {
  transform: scale(1.02);
}
