/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

 :root {
  --tt-primary: #0d4c96;
  --tt-primary-dark: #062c57;
  --tt-primary-light: #2080ee;
  --tt-success: #28a745;
  --tt-danger: #dc3545;
  --tt-warning: #ffc107;
  --tt-info: #17a2b8;
  --tt-light: #f8f9fa;
  --tt-dark: #343a40;
  --tt-border-radius: 8px;
  --tt-box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  --tt-transition: all 0.3s ease;
  /* Modern overrides */
  --tt-radius-xl: 14px;
  --tt-radius-2xl: 18px;
  --tt-shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --tt-shadow-lg: 0 18px 50px rgba(13, 76, 150, 0.12);
  --tt-surface: #ffffff;
  --tt-muted: #6b7280;
}

.tt-form {
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: var(--tt-border-radius);
  box-shadow: var(--tt-box-shadow);
  animation: fadeIn 0.5s ease-out;
}

.tt-form__title {
  font-size: 2rem;
  color: var(--tt-primary);
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 600;
}

.tt-form__group {
  margin-bottom: 1.5rem;
  position: relative;
}

.tt-form__label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--tt-dark);
  font-size: 0.95rem;
}

.tt-form__label i {
  margin-right: 0.5rem;
  color: var(--tt-primary);
}

.tt-form__input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e1e5eb;
  border-radius: var(--tt-border-radius);
  font-size: 1rem;
  transition: var(--tt-transition);
  background-color: #fff;
  box-sizing: border-box;
}

.tt-form__input:focus {
  outline: none;
  border-color: var(--tt-primary);
  box-shadow: 0 0 0 3px rgba(13, 76, 150, 0.1);
}

.tt-form__input--error {
  border-color: var(--tt-danger);
  background-color: rgba(220, 53, 69, 0.05);
}

.tt-form__error {
  color: var(--tt-danger);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
  min-height: 1.2rem;
}

.tt-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--tt-border-radius);
  cursor: pointer;
  transition: var(--tt-transition);
  position: relative;
  overflow: hidden;
  line-height: 1.5;
}

.tt-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.tt-btn--primary {
  background: var(--tt-primary);
  color: white;
}

.tt-btn--primary:hover:not(:disabled) {
  background: var(--tt-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(13, 76, 150, 0.3);
}

.tt-btn--secondary {
  background: #6c757d;
  color: white;
}

.tt-btn--secondary:hover:not(:disabled) {
  background: #545b62;
}

.tt-btn--success {
  background: var(--tt-success);
  color: white;
}

.tt-btn--danger {
  background: var(--tt-danger);
  color: white;
}

.tt-btn--block {
  display: block;
  width: 100%;
}

.tt-btn--loading .button-text {
  visibility: hidden;
}

.tt-btn--loading .tt-loader {
  display: inline-block !important;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  animation: spin 1s ease-in-out infinite;
}

.tt-dashboard {
  padding: 2.5rem 2rem;
  background: linear-gradient(180deg, #f6f8fb 0%, #eef2f7 100%);
  min-height: 100vh;
}

.tt-dashboard__header {
  background: var(--tt-surface);
  padding: 2rem;
  border-radius: var(--tt-radius-2xl);
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.tt-dashboard__header h1 {
  margin: 0;
  color: var(--tt-primary);
  font-size: 2rem;
}

.tt-dashboard__header .tt-agency-code {
  background: var(--tt-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--tt-border-radius);
  font-weight: 600;
}

.tt-dashboard__nav {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  background: transparent;
}

.tt-dashboard__nav-item {
  padding: 0.6rem 1.1rem;
  background: #ffffff;
  border-radius: 999px;
  text-decoration: none;
  color: var(--tt-dark);
  transition: var(--tt-transition);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--tt-shadow-md);
  border: 1px solid #e5e7eb;
}

.tt-dashboard__nav-item:hover,
.tt-dashboard__nav-item--active {
  background: linear-gradient(135deg, var(--tt-primary), var(--tt-primary-light));
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--tt-shadow-lg);
  text-decoration: none !important;
}

.tt-card {
  background: var(--tt-surface);
  border-radius: var(--tt-radius-2xl);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--tt-shadow-md);
  animation: slideUp 0.5s ease-out;
  border: 1px solid #eef2f7;
}

.tt-card__title {
  font-size: 1.35rem;
  color: var(--tt-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: 0.2px;
}

.tt-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.tt-stat {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(180deg, #ffffff, #f7f9fc);
  border-radius: var(--tt-radius-xl);
  transition: var(--tt-transition);
  border: 1px solid #eef2f7;
}

.tt-stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--tt-shadow-md);
}

.tt-stat h3 {
  margin: 1rem 0 0.5rem;
  color: var(--tt-dark);
  font-size: 1rem;
}

.tt-stat__value {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--tt-primary);
  margin: 0;
}

.tt-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: var(--tt-surface);
  border-radius: var(--tt-radius-xl);
  overflow: hidden;
  box-shadow: var(--tt-shadow-md);
}

.tt-table th,
.tt-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e1e5eb;
}

.tt-table th {
  background: linear-gradient(135deg, var(--tt-primary), var(--tt-primary-dark));
  color: white;
  font-weight: 600;
  position: sticky;
  top: 0;
}

.tt-table tr:hover {
  background: rgba(13, 76, 150, 0.05);
}

.tt-table tr:last-child td {
  border-bottom: none;
}

.tt-alert {
  padding: 1rem 1.5rem;
  border-radius: var(--tt-border-radius);
  margin-bottom: 1rem;
  animation: slideDown 0.3s ease-out;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.tt-alert--success {
  background: rgba(40, 167, 69, 0.1);
  color: var(--tt-success);
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.tt-alert--error {
  background: rgba(220, 53, 69, 0.1);
  color: var(--tt-danger);
  border: 1px solid rgba(220, 53, 69, 0.3);
}

.tt-alert--info {
  background: rgba(23, 162, 184, 0.1);
  color: var(--tt-info);
  border: 1px solid rgba(23, 162, 184, 0.3);
}

.tt-alert--warning {
  background: rgba(255, 193, 7, 0.1);
  color: var(--tt-warning);
  border: 1px solid rgba(255, 193, 7, 0.3);
}



.tt-loader {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

.tt-form__footer {
  margin-top: 1.5rem;
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid #e1e5eb;
}

.tt-link {
  color: var(--tt-primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--tt-transition);
}

.tt-link:hover {
  color: var(--tt-primary-dark);
  text-decoration: underline;
}

.menu-item {
  padding: 1.5rem;
  border-radius: var(--tt-border-radius);
  margin-bottom: 1rem;
  position: relative;
}

.menu-item__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.menu-item__remove {
  background: transparent;
  color: var(--tt-danger);
  border: none;
  border-radius: 50%;
  width: 30px !important;
  height: 30px !important;
  border-radius: 0% !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-item__remove:hover {
  background: transparent;
  color: var(--tt-danger);
}

.tt-grid {
  display: grid;
  gap: 1rem;
}

.tt-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.tt-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.tt-status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.tt-status-badge--approved {
  background: rgba(40, 167, 69, 0.1);
  color: var(--tt-success);
}

.tt-status-badge--pending {
  background: rgba(255, 193, 7, 0.1);
  color: var(--tt-warning);
}

.tt-status-badge--rejected {
  background: rgba(220, 53, 69, 0.1);
  color: var(--tt-danger);
}

.tt-source-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  padding: 0.18rem 0.55rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.tt-source-badges {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.tt-source-badge--selected {
  background: #e8f2ff;
  border-color: #bfdbfe;
  color: #0d4c96;
}

.tt-source-badge--all {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #374151;
}

.tt-offer-header-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: #fff !important;
  font-size: 0.84rem;
  line-height: 1.2;
}

.tt-offer-summary-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tt-offer-summary-line--total {
  margin-top: 0;
}

.tt-offer-header-summary .tt-offer-summary-item,
.tt-offer-header-summary .tt-offer-summary-item__label {
  color: #fff !important;
}

.tt-offer-header-summary .tt-offer-summary-item > strong {
  color: #fff !important;
  font-weight: 700;
}

.tt-offer-summary-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.32rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  color: #fff !important;
  white-space: nowrap;
}

.tt-offer-summary-item__label {
  color: rgba(255, 255, 255, 0.76) !important;
  font-weight: 600;
}

.tt-offer-header-source {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tt-offer-header-source .tt-source-badge {
  margin-left: 0;
}

#order-details-modal .tt-offer-header-source .tt-source-badge--selected {
  background: #e8f2ff;
  border-color: #bfdbfe;
  color: #0d4c96 !important;
}

#order-details-modal .tt-offer-header-source .tt-source-badge--all {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #374151 !important;
}

#order-details-modal .tt-offer-header-summary,
#order-details-modal .tt-offer-summary-item,
#order-details-modal .tt-offer-summary-item__label,
#order-details-modal .tt-offer-summary-item > strong {
  color: #fff !important;
}

#order-details-modal #modal-header-status,
#order-details-modal #modal-header-source {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tt-offer-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.tt-offer-modal-actions .hidden {
  display: none !important;
}

.tt-offer-modal-actions .tt-offer-modal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0.42rem 0.68rem;
  border-radius: 6px;
  font-size: 0.82rem;
  line-height: 1;
  box-shadow: none;
  transform: none;
}

.tt-offer-modal-actions .tt-offer-modal-btn i {
  margin-right: 2px;
}

.tt-offer-modal-actions .tt-btn--secondary {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  color: var(--tt-primary) !important;
}

.tt-offer-modal-actions .tt-btn--primary,
.tt-offer-modal-actions .tt-btn--success {
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
}

.tt-modal-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #fff !important;
  cursor: pointer;
  box-shadow: none !important;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tt-modal-icon-btn:hover,
.tt-modal-icon-btn:focus {
  background: transparent !important;
  border-color: transparent !important;
  color: #fff !important;
  opacity: 0.78;
  outline: none;
}

.tt-modal-icon-btn i,
.tt-modal-icon-btn svg {
  color: #fff !important;
  fill: none;
  stroke: currentColor;
  pointer-events: none;
}

.tt-btn,
.tt-offer-modal-btn,
.tt-edit-offer-footer-btn,
.tt-modal-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tt-btn i,
.tt-btn svg,
.tt-offer-modal-btn i,
.tt-offer-modal-btn svg,
.tt-edit-offer-footer-btn i,
.tt-edit-offer-footer-btn svg,
.tt-modal-action-btn i,
.tt-modal-action-btn svg {
  flex: 0 0 auto;
  margin-right: 0 !important;
}

.tt-edit-offer-service-dialog .service-type-card {
  border-radius: 8px;
}

.tt-edit-offer-footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  border-radius: 6px;
}

.tt-edit-offer-footer-btn i {
  margin-right: 4px;
}

.tt-edit-offer-service-dialog,
.tt-booking-form-dialog,
.tt-offer-details-dialog {
  max-width: min(98vw, 1680px) !important;
  max-height: 94vh !important;
}

#order-details-modal > .fixed.inset-0.flex {
  align-items: flex-start !important;
  padding-top: 18px !important;
  padding-bottom: 18px !important;
}

body.admin-bar #order-details-modal > .fixed.inset-0.flex {
  padding-top: 46px !important;
}

body.admin-bar #order-details-modal .tt-offer-details-dialog {
  max-height: calc(100vh - 64px) !important;
}

@media (max-width: 782px) {
  body.admin-bar #order-details-modal > .fixed.inset-0.flex {
    padding-top: 58px !important;
  }

  body.admin-bar #order-details-modal .tt-offer-details-dialog {
    max-height: calc(100vh - 76px) !important;
  }
}

#order-details-modal .tt-offer-info-body {
  border-bottom: 0;
  padding-bottom: 0;
}

#tt-customer-session-close {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

#order-details-modal .tt-offer-info-body > h4,
#order-details-modal .tt-offer-info-body > .space-y-2 {
  display: none;
}

@media (max-width: 768px) {
  .tt-offer-modal-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .tt-offer-modal-actions .tt-offer-modal-btn {
    padding: 0.5rem 0.7rem;
    font-size: 0.82rem;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .tt-form {
      padding: 1.5rem;
      margin: 1rem;
      max-width: none;
  }
  
  .tt-dashboard {
      padding: 1rem;
  }
  
  .tt-dashboard__header {
      flex-direction: column;
      gap: 1rem;
      text-align: center;
  }
  
  .tt-dashboard__nav {
      flex-direction: column;
      gap: 0.5rem;
  }
  
  .tt-stats {
      grid-template-columns: 1fr;
  }
  
  .tt-table {
      font-size: 0.875rem;
      display: block;
      overflow-x: auto;
      white-space: nowrap;
  }
  
  .tt-table th,
  .tt-table td {
      padding: 0.75rem 0.5rem;
  }
  
  .tt-card {
      padding: 1rem;
  }
  
  .tt-btn {
      padding: 0.75rem 1rem;
      font-size: 0.95rem;
  }
}
.form-wrap {
  margin: 2rem auto;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  font-family: "Segoe UI", sans-serif;
}

.form-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.75rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 2rem;
}

.alert {
  background: #e9f8f1;
  color: #1f663e;
  border-left: 4px solid #28a745;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.form-group {
  flex: 1 1 calc(50% - 0.75rem);
  display: flex;
  flex-direction: column;
}

.form-group--checkbox {
  flex: 1 1 100%;
  margin-top: 0.5rem;
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  color: #333;
}

.form-control {
  padding: 0.65rem 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background: #fff;
  transition: border 0.2s;
}

.form-control:focus {
  border-color: #0073aa;
  outline: none;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='14' height='10' viewBox='0 0 14 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L7 9L13 1' stroke='%23444' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 14px 10px;
}

.form-error {
  color: #d93025;
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

.form-note {
  font-size: 0.82rem;
  color: #777;
  margin-top: 0.2rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  color: #333;
  font-size: 0.95rem;
}

.checkbox-label a {
  color: #0073aa;
  text-decoration: underline;
}

.checkbox-label a:hover {
  text-decoration: none;
}

.button {
  padding: 0.9rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
}

.button--primary {
  background-color: #0073aa;
  color: #fff;
  border: none;
}

.button--primary:hover {
  background-color: #005f8d;
}

.button--block {
  width: 100%;
}

.button__text {
  display: inline-block;
}

.button__loader {
  margin-left: 0.6rem;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-top: 3px solid #005f8d;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form-actions {
  margin-top: 2rem;
}

.form-navigation {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.form-navigation__text {
  margin-right: 0.5rem;
}

.form-navigation__link {
  color: #0073aa;
  font-weight: 500;
  text-decoration: none;
}

.form-navigation__link:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .form-group {
    flex: 1 1 100%;
  }
}

/* Container */
.tt-dashboard {
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
  font-family: "Segoe UI", sans-serif;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

/* Alerts */
.tt-alert {
  padding: 1.2rem 1.5rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
  display: block;
  border-left: 5px solid;
}

.tt-alert--error {
  background: #ffe5e5;
  border-color: #d93025;
  color: #b3261e;
}

.tt-alert--warning {
  background: #fff6e6;
  border-color: #fbbc04;
  color: #7c5700;
}

.tt-alert--info {
  background: #e7f3ff;
  border-color: #1a73e8;
  color: #174ea6;
}

/* Dashboard Header */
.tt-dashboard__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #eee;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.tt-dashboard__header h1 {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0;
}

.tt-agency-code {
  font-size: 1.1rem;
  font-weight: 500;
  color: #0073aa;
  background: #f0f6fc;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  white-space: nowrap;
}

/* Navigation */
.tt-dashboard__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  background: #f9fafb;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  align-items: center;
}

.tt-dashboard__nav-item {
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.tt-dashboard__nav-item--active {
  background: #0073aa;
  color: #fff;
  border-color: #0073aa;
}
.tt-dashboard__nav-item--active:focus {
  background: #0073aa;
  color: #fff !important;
  border-color: #0073aa;
}

.tt-dashboard__nav-item--active:hover {
  background: #005f8d;
  text-transform: unset;
}

/* Section content */
.tt-section {
  display: none;
}

.tt-section:first-child {
  display: block;
}

/* Status label */
.tt-status {
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: capitalize;
}

.tt-status--pending {
  background: #fff3cd;
  color: #856404;
}

.tt-status--approved {
  background: #d4edda;
  color: #155724;
}

.tt-status--rejected {
  background: #f8d7da;
  color: #721c24;
}

/* Buttons */
.tt-btn {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.tt-btn--primary {
  background: #0073aa;
  color: #fff;
}

.tt-btn--primary:hover {
  background: #005f8d;
  color: white !important;
}

.tt-btn--secondary {
  background: #f1f1f1;
  color: #333;
}

.tt-btn--secondary:hover {
  background: #e0e0e0;
}

.tt-btn,
.tt-offer-modal-btn,
.tt-edit-offer-footer-btn,
.tt-modal-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tt-btn--small {
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
}

/* Inline button loading state used in admin actions */
.tt-btn-loading {
  opacity: 0.85;
}
.dashicons.spin {
  animation: tt-spin 1s linear infinite;
}

/* Tables */
.tt-dashboard table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.tt-dashboard table thead {
  background: #f0f0f0;
}

.tt-dashboard table th,
.tt-dashboard table td {
  padding: 0.75rem;
  border: 1px solid #ddd;
  text-align: left;
  vertical-align: middle;
}

.tt-dashboard table tr:nth-child(even) {
  background: #fafafa;
}

.tt-dashboard table td:last-child {
  text-align: right;
}

/* Utility */
ul {
  margin: 0;
  padding: 0 1rem;
  list-style: disc;
}

@media (max-width: 768px) {
  .tt-dashboard__header {
    flex-direction: column;
    gap: 1rem;
  }

  .tt-dashboard__nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .tt-agency-code {
    width: 100%;
    text-align: left;
  }
}

.action-btns {
  display: flex;
}
.tt-verify-card {
max-width: 370px;
margin: 80px auto;
background: #fff;
border-radius: 18px;
box-shadow: 0 2px 32px rgba(80,90,110,.10);
padding: 38px 26px 32px 26px;
display: flex;
flex-direction: column;
align-items: center;
font-family: Inter,Segoe UI,sans-serif;
animation: fadeIn 0.7s cubic-bezier(.4,1.8,.6,.9);
}
.tt-verify-title {
font-size: 1.45rem;
font-weight: 700;
color: #232949;
margin-bottom: 8px;
}
.tt-verify-msg {
color: #444e61;
font-size: 1.07rem;
text-align: center;
margin-bottom: 30px;
line-height: 1.5;
}
.tt-verify-btn {
width: 100%;
background: #131e32;
color: #fff;
border: none;
border-radius: 7px;
font-size: 1.08rem;
padding: 14px 0;
font-weight: 700;
letter-spacing: .01em;
text-decoration: none;
text-align: center;
transition: background .18s;
}
.tt-verify-btn:hover { background: #0a1320; text-decoration: none !important; color: white !important; }

/* ICONS */
.tt-verify-icon {
width: 68px;
height: 68px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 2.4rem;
margin-bottom: 24px;
animation: popIn 0.45s cubic-bezier(.2,1.6,.8,1.2);
}
.tt-verify-icon-success { background: #d1fae5; color: #059669; }
.tt-verify-icon-fail { background: #fee2e2; color: #b91c1c; }

/* BADGE */
.tt-verify-badge {
border-radius: 6px;
padding: 2px 16px;
font-size: 0.94rem;
font-weight: 600;
margin-bottom: 22px;
letter-spacing: .01em;
}
.tt-verify-badge-success { background: #e6fcef; color: #059669; }
.tt-verify-badge-fail { background: #fef2f2; color: #b91c1c; }

/* Success/Fail wrappers for possible further theming */
.tt-verify-success { }
.tt-verify-fail { }

@keyframes fadeIn {
from { opacity: 0; transform: translateY(24px);}
to { opacity: 1; transform: none;}
}
@keyframes popIn {
0% { transform: scale(.7); opacity: 0; }
60% { transform: scale(1.15);}
80% { transform: scale(.92);}
100% { transform: scale(1); opacity: 1;}
}

/* Modern Authentication Styles */
.tt-auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.tt-auth-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.3;
}

.tt-auth-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 3rem;
  width: 100%;
  max-width: 550px;
  position: relative;
  z-index: 1;
  animation: slideUp 0.6s ease-out;
}

.tt-auth-card--wide {
  max-width: 600px;
}

.tt-auth-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.tt-auth-logo {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--tt-primary), var(--tt-primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 10px 20px rgba(13, 76, 150, 0.3);
}

.tt-auth-logo i {
  font-size: 2rem;
  color: white;
}

.tt-auth-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--tt-dark);
  margin: 0 0 0.5rem;
  background: linear-gradient(135deg, var(--tt-primary), var(--tt-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tt-auth-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.tt-auth-form {
  margin-bottom: 2rem;
}

.tt-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.tt-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.tt-input-wrapper .tt-form__input {
  padding-left: 3rem;
  padding-right: 3rem;
  height: 3.5rem;
  border: 2px solid #e1e5eb;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
}

.tt-input-wrapper .tt-form__input:focus {
  border-color: var(--tt-primary);
  box-shadow: 0 0 0 4px rgba(13, 76, 150, 0.1);
  background: white;
}

.tt-input-icon {
  position: absolute;
  left: 1rem;
  color: #999;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.tt-input-wrapper .tt-form__input:focus + .tt-input-icon {
  color: var(--tt-primary);
}

.tt-password-toggle {
  position: absolute;
  right: 1rem;
  background: transparent !important;
  border: 1px solid #d1d5db !important;
  color: #6b7280 !important;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.tt-password-toggle:hover {
  border-color: #9ca3af !important;
  background: transparent !important;
  color: #4b5563 !important;
}

.tt-password-toggle:focus {
  outline: none !important;
  border-color: #6b7280 !important;
  box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1) !important;
}

.tt-password-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tt-form__group--flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.tt-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--tt-dark);
}

.tt-checkbox-label input[type="checkbox"] {
  display: none;
}

.tt-checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #e1e5eb;
  border-radius: 6px;
  position: relative;
  transition: all 0.3s ease;
  background: white;
}

.tt-checkbox-label input[type="checkbox"]:checked + .tt-checkbox-custom {
  background: var(--tt-primary);
  border-color: var(--tt-primary);
}

.tt-checkbox-label input[type="checkbox"]:checked + .tt-checkbox-custom::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.tt-btn--large {
  height: 3.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(13, 76, 150, 0.3);
  transition: all 0.3s ease;
}

.tt-btn--large:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(13, 76, 150, 0.4);
}

.tt-auth-footer {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #e1e5eb;
}

.tt-auth-footer-text {
  margin: 0;
  color: #666;
  font-size: 1rem;
}

.tt-link--primary {
  color: var(--tt-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.tt-link--primary:hover {
  color: var(--tt-primary-dark);
}

.tt-link--small {
  font-size: 0.9rem;
  color: var(--tt-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.tt-link--small:hover {
  color: var(--tt-primary-dark);
}

.tt-form__note {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.5rem;
  display: block;
}

/* Agency Info Styles */
.tt-agency-info {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
}

.tt-agency-info__main {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.tt-agency-info__logo {
  flex-shrink: 0;
}

.tt-agency-logo {
  width: 100px;
  height: 100px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tt-agency-logo-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f0f4ff, #e6f0ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tt-primary);
  font-size: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tt-agency-info__details {
  flex: 1;
}

.tt-agency-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--tt-dark);
  margin: 0 0 1rem;
}

.tt-agency-code,
.tt-agency-hub,
.tt-agency-contact,
.tt-agency-email,
.tt-agency-phone,
.tt-agency-website {
  margin: 0.5rem 0;
  color: #666;
  font-size: 1rem;
}

.tt-agency-info__description {
  border-top: 1px solid #e1e5eb;
  padding-top: 1.5rem;
}

.tt-agency-info__description h4 {
  margin: 0 0 0.5rem;
  color: var(--tt-dark);
  font-size: 1.1rem;
}

.tt-agency-info__description p {
  margin: 0;
  color: #666;
  line-height: 1.6;
}

.tt-agency-info__actions {
  margin-top: 1.5rem;
  text-align: center;
}

/* Empty State Styles */
.tt-empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: #666;
}

.tt-empty-state i {
  color: #ccc;
  margin-bottom: 1rem;
}

.tt-empty-state h3 {
  margin: 1rem 0 0.5rem;
  color: #333;
  font-size: 1.3rem;
}

.tt-empty-state p {
  margin: 0;
  color: #666;
  line-height: 1.5;
}

/* Spinner Styles */
.tt-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.tt-spinner-circle {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--tt-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Card Header Actions */
.tt-card__header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Orders Management Styles */
.tt-orders {
  position: relative;
}

.tt-orders__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--tt-light);
}

.tt-orders__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--tt-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tt-orders__title i {
  font-size: 1.5rem;
  color: var(--tt-primary);
  background: rgba(13, 76, 150, 0.1);
  padding: 0.5rem;
  border-radius: 50%;
}

.tt-orders__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tt-orders__filters {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 12px;
  margin-bottom: 2rem;
  border: 1px solid #dee2e6;
}

.tt-orders__filters-left {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex: 1;
  flex-wrap: wrap;
}

.tt-orders__filters-right {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-shrink: 0;
}

.tt-orders__filters .tt-form__input {
  min-width: 200px;
  background: white;
  border: 2px solid #e1e5eb;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.tt-orders__filters .tt-form__input:focus {
  border-color: var(--tt-primary);
  box-shadow: 0 0 0 3px rgba(13, 76, 150, 0.1);
  outline: none;
}

.tt-orders__loading {
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(248, 249, 250, 0.5);
  border-radius: 12px;
  margin: 2rem 0;
}

.tt-orders__table-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 2rem;
}

.tt-orders__table {
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.tt-orders__table th {
  background: linear-gradient(135deg, var(--tt-primary), var(--tt-primary-dark));
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1.25rem 1rem;
}

.tt-orders__table td {
  padding: 1rem;
  vertical-align: middle;
  border-bottom: 1px solid #f0f0f0;
}

.tt-orders__table tr:hover {
  background: rgba(13, 76, 150, 0.03);
  transform: translateX(2px);
  transition: all 0.2s ease;
}

.tt-orders__empty {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 12px;
}

.tt-orders__empty i {
  font-size: 4rem;
  color: #dee2e6;
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

.tt-orders__empty h3 {
  color: #6c757d;
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.tt-orders__empty p {
  color: #868e96;
  font-size: 1rem;
  margin: 0;
}

/* Orders Modal Styles */
.tt-orders__modal {
  z-index: 10000;
}

.tt-orders__modal-overlay {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.tt-orders__modal-dialog {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  transform: scale(0.9);
  transition: all 0.3s ease;
}

.tt-orders__modal-dialog.show {
  transform: scale(1);
}

.tt-orders__modal-header {
  background: linear-gradient(135deg, var(--tt-primary), var(--tt-primary-dark));
  color: white;
  border-radius: 16px 16px 0 0;
  padding: 2rem;
}

.tt-orders__modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tt-orders__modal-close {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tt-orders__modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.tt-orders__modal-close,
.tt-orders__modal-close:hover,
.tt-modal__header .tt-modal__close,
.tt-modal__header .tt-modal__close:hover,
.tt-modal-header .tt-modal-close,
.tt-modal-header .tt-modal-close:hover {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #fff !important;
}

.tt-orders__modal-body {
  padding: 2rem;
  max-height: 70vh;
  overflow-y: auto;
}

/* Clients Management Styles */
.tt-clients {
  position: relative;
}

.tt-clients__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--tt-light);
}

.tt-clients__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--tt-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tt-clients__title i {
  font-size: 1.5rem;
  color: var(--tt-primary);
  background: rgba(13, 76, 150, 0.1);
  padding: 0.5rem;
  border-radius: 50%;
}

.tt-clients__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tt-clients__filters {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 12px;
  margin-bottom: 2rem;
  border: 1px solid #dee2e6;
}

.tt-clients__filters-left {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex: 1;
  flex-wrap: wrap;
}

.tt-clients__filters-right {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-shrink: 0;
}

.tt-clients__filters .tt-form__input {
  min-width: 250px;
  background: white;
  border: 2px solid #e1e5eb;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.tt-clients__filters .tt-form__input:focus {
  border-color: var(--tt-primary);
  box-shadow: 0 0 0 3px rgba(13, 76, 150, 0.1);
  outline: none;
}

/* Enhanced Filter Elements Styling */
.tt-orders__filters .tt-form__input,
.tt-clients__filters .tt-form__input {
  height: 44px;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: relative;
}

.tt-orders__filters .tt-form__input::placeholder,
.tt-clients__filters .tt-form__input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.tt-orders__filters select.tt-form__input,
.tt-clients__filters select.tt-form__input {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  padding-right: 40px;
}

.tt-orders__filters .tt-btn,
.tt-clients__filters .tt-btn {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.tt-orders__filters .tt-btn:hover,
.tt-clients__filters .tt-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.tt-orders__filters .tt-btn i,
.tt-clients__filters .tt-btn i {
  font-size: 0.9rem;
}

/* Filter Animation */
.tt-orders__filters,
.tt-clients__filters {
  animation: slideInUp 0.4s ease-out;
}

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

.tt-clients__loading {
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(248, 249, 250, 0.5);
  border-radius: 12px;
  margin: 2rem 0;
}

.tt-clients__table-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 2rem;
}

.tt-clients__table {
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.tt-clients__table th {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1.25rem 1rem;
}

.tt-clients__table td {
  padding: 1rem;
  vertical-align: middle;
  border-bottom: 1px solid #f0f0f0;
}

.tt-clients__table tr:hover {
  background: rgba(40, 167, 69, 0.03);
  transform: translateX(2px);
  transition: all 0.2s ease;
}

.tt-clients__empty {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 12px;
}

.tt-clients__empty i {
  font-size: 4rem;
  color: #dee2e6;
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

.tt-clients__empty h3 {
  color: #6c757d;
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

  .tt-clients__empty p {
  color: #868e96;
  font-size: 1rem;
  margin: 0;
}

/* Enhanced Responsive Design for Orders and Clients */
@media (max-width: 1024px) {
  .tt-orders__filters,
  .tt-clients__filters {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }
  
  .tt-orders__filters-left,
  .tt-clients__filters-left {
    justify-content: flex-start;
  }
  
  .tt-orders__filters-right,
  .tt-clients__filters-right {
    justify-content: flex-end;
    width: 100%;
  }
  
  .tt-orders__filters .tt-form__input,
  .tt-clients__filters .tt-form__input {
    min-width: auto;
    flex: 1;
  }
  
  .tt-orders__header,
  .tt-clients__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  
  .tt-orders__actions,
  .tt-clients__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .tt-auth-container {
      padding: 1rem;
  }
  
  .tt-auth-card {
      padding: 2rem;
      margin: 1rem;
  }
  
  .tt-form-grid {
      grid-template-columns: 1fr;
      gap: 1rem;
  }
  
  .tt-agency-info__main {
      flex-direction: column;
      text-align: center;
  }
  
  .tt-card__header-actions {
      flex-direction: column;
      gap: 0.5rem;
  }
  
  .tt-auth-title {
      font-size: 2rem;
  }
}

/* Compact WordPress-Style Menu Editor */
.tt-menu-editor {
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.13);
  overflow: hidden;
}

.tt-menu-editor__header {
  background: #f9f9f9;
  border-bottom: 1px solid #ddd;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tt-menu-editor__title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #23282d;
}

.tt-menu-editor__actions {
  display: flex;
  gap: 8px;
}

.tt-menu-editor__body {
  display: flex;
  min-height: 500px;
}

.tt-menu-sidebar {
  width: 300px;
  background: #fafafa;
  border-right: 1px solid #ddd;
  padding: 0;
}

.tt-menu-sidebar__section {
  border-bottom: 1px solid #ddd;
}

.tt-menu-sidebar__title {
  font-size: 14px;
  font-weight: 600;
  color: #23282d;
  margin: 0;
  padding: 12px 20px;
  background: #f1f1f1;
  border-bottom: 1px solid #ddd;
}

.tt-menu-type-tabs {
  display: flex;
  border-bottom: 1px solid #ddd;
}

.tt-menu-type-tab {
  flex: 1;
  padding: 10px 8px;
  background: #f9f9f9;
  border: none;
  border-right: 1px solid #ddd;
  cursor: pointer;
  font-size: 12px;
  color: #666;
  transition: all 0.2s ease;
}

.tt-menu-type-tab:last-child {
  border-right: none;
}

.tt-menu-type-tab.active,
.tt-menu-type-tab:hover {
  background: white;
  color: #23282d;
}

.tt-menu-type-content {
  padding: 15px 20px;
  display: none;
}

.tt-menu-type-content.active {
  display: block;
}

/* Menu Editor Messages */
.tt-menu-editor__messages {
  margin: 15px 20px;
}

.tt-menu-editor__message {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tt-menu-editor__message--success {
  background: #f0f9f5;
  border-color: #10B981;
  color: #065f46;
}

.tt-menu-editor__message--error {
  background: #fef2f2;
  border-color: #ef4444;
  color: #7f1d1d;
}

.tt-menu-editor__message--warning {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #78350f;
}

/* ===============================================
   BOOKING FORMS SECTION - #booking-form-container
   =============================================== */

/* Main Booking Form Container */
#booking-form-container {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* General Form Wrapper inside booking container */
#booking-form-container .form_search_wrap {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  padding: 2rem;
  margin: 0;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  min-width: 0 !important;
}
/* Hotel Search Form in booking container */
#booking-form-container .form_search_wrap_inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  align-items: center !important;
}

/* Transfer/Bus Search Form in booking container */
#booking-form-container .bus_search_form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  align-items: end;
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

/* Search Field Sections */
#booking-form-container .hp__search_field_section {
  position: relative;
  display: flex;
  flex-direction: column;
}

#booking-form-container .hp_search_field_box {
  position: relative;
  width: 100%;
  border-left: unset !important;
  padding-right: 5px !important;
}
#booking-form-container .hp__search_field_section {
  border: unset !important;
}
/* Labels */
#booking-form-container .hp_search_field_label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* Input Fields */
#booking-form-container .hp_search_input {
  width: fit-content !important;
  padding: 0.875rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  color: #1f2937;
  background: #ffffff;
  transition: all 0.2s ease;
  outline: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-right: 15px;
}

#booking-form-container .hp_search_input:focus {
  border-color: var(--tt-primary);
  box-shadow: 0 0 0 3px rgba(13, 76, 150, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
  background: #ffffff;
}

#booking-form-container .hp_search_input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

/* Select Dropdown Styling */
#booking-form-container select.hp_search_input {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  padding-right: 3rem;
  padding: 0px 10px !important;
}

select.hp_search_input {}

#booking-form-container select.hp_search_input:focus {
  
}

/* Search Buttons */
#booking-form-container .hotel_search_btn_section button,
#booking-form-container .form_search_wrap_inner button {
  background: linear-gradient(135deg, var(--tt-primary), var(--tt-primary-dark));
  color: white;
  border: none;
  border-radius: 10px;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(13, 76, 150, 0.3);
  min-height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

#booking-form-container .hotel_search_btn_section button:hover,
#booking-form-container .bus_search_btn_section button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(13, 76, 150, 0.4);
  background: linear-gradient(135deg, var(--tt-primary-dark), #041f3a);
}

/* Transfer/Bus specific styling */
#booking-form-container .bus_search_group {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#booking-form-container .bus_search_icon {
  color: var(--tt-primary);
  font-size: 1.25rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 76, 150, 0.1);
  border-radius: 8px;
  flex-shrink: 0;
}

#booking-form-container .bus_search_group .hp_search_field_box {
  flex: 1;
}

/* Destination Search Dropdown */
#booking-form-container .hotel_destination_search_wrap,
#booking-form-container .flight_destination_search_wrap,
#booking-form-container .transfer_destination_search_wrap {
  position: absolute;
  top: 107%;
  left: 0px;
  right: 0;
  background: white;
  border: 2px solid var(--tt-primary);
  border-top: none;
  border-radius: 0 0 12px 12px;
  z-index: 1000;
  max-height: min(52vh, 440px);
  overflow-y: auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  margin-top: -1px;
  width: 100% !important;
  min-width: 0;
  max-width: 100%;
  margin-top: 6px;
}

#booking-form-container .result_destination_row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 1rem;
  max-height: inherit;
  overflow: hidden;
}

#booking-form-container .result-destination_col {
  padding: 0;
  border-right: 1px solid #e5e7eb;
  width:  100%;
  max-width: unset;
}

#booking-form-container .result-destination_col:last-child {
  border-right: none;
}

#booking-form-container .search_item_wrap {
  padding: 0 1rem;
}

#booking-form-container .search_item_wrap label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--tt-primary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  border-bottom: 2px solid var(--tt-primary);
  padding-bottom: 0.5rem;
}

#booking-form-container .search_destination_ul {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: min(38vh, 320px);
  overflow-y: auto;
}

#booking-form-container .search_destination_ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  color: #4b5563;
}

#booking-form-container .search_destination_ul li:hover {
  background: #f3f4f6;
  color: var(--tt-primary);
  padding-left: 0.5rem;
}

/* Guest Selection */
#booking-form-container .hp_guests_search_wrap,
#booking-form-container .hp_bus_guests_search_wrap {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 2px solid var(--tt-primary);
  border-top: none;
  border-radius: 0 0 12px 12px;
  z-index: 1000;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  margin-top: -1px;
  min-width: 320px;
}

#booking-form-container .hp_guests_search_room,
#booking-form-container .hp_guests_search_adult,
#booking-form-container .hp_guests_search_children,
#booking-form-container .bus_search_guests_adult,
#booking-form-container .select_guests_search_adult {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
}

#booking-form-container .hp_guests_search_children:last-child {
  border-bottom: none;
}

#booking-form-container .hp_search_guests_label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

#booking-form-container .hp_search_guests_number_label {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#booking-form-container .search_guest_plus_minus {
  width: 32px;
  height: 32px;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
  color: #6b7280;
}

#booking-form-container .search_guest_plus_minus:hover {
  border-color: var(--tt-primary);
  color: var(--tt-primary);
  background: #f3f4f6;
}

#booking-form-container .search_guests_room,
#booking-form-container .search_guests_adult,
#booking-form-container .search_guests_children,
#booking-form-container .bus_search_guests_adult {
  width: 50px;
  text-align: center;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
}

/* Airport/Hotel Suggestions Dropdowns */
#booking-form-container .airport-selector__dropdown,
#booking-form-container .hotel_suggestions_box {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid var(--tt-primary);
  border-top: none;
  border-radius: 0 0 8px 8px;
  z-index: 1000;
  max-height: 240px;
  overflow-y: auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

#booking-form-container .hotel_suggestions_box__item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: #4b5563;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f3f4f6;
}

#booking-form-container .hotel_suggestions_box__item:hover,
#booking-form-container .hotel_suggestions_box__item--active {
  background: #f3f4f6;
  color: var(--tt-primary);
}

/* Loading States */
#booking-form-container .location-loader-wrap,
#booking-form-container .hotel_suggestions_box__loading,
#booking-form-container .airport-selector__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  color: #6b7280;
  font-size: 0.875rem;
}

#booking-form-container .location-loader-spinner,
#booking-form-container .hotel_loader,
#booking-form-container .airport-selector__loader {
  width: 20px;
  height: 20px;
  border: 2px solid #e5e7eb;
  border-top: 2px solid var(--tt-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

#booking-form-container .hp_search_input.loading {
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='%230d4c96' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 2v3M10 15v3M18 10h-3M5 10H2M15.657 4.343l-2.121 2.121M6.464 13.536l-2.121 2.121M15.657 15.657l-2.121-2.121M6.464 6.464L4.343 4.343' stroke='%230d4c96' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px 18px;
}

/* Responsive Design for booking container */
@media (max-width: 1024px) {
  #booking-form-container .hotel_search_wrap_inner {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  #booking-form-container .bus_search_form {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  #booking-form-container .hotel_search_wrap_inner,
  #booking-form-container .bus_search_form {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  #booking-form-container .result_destination_row {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  #booking-form-container .result-destination_col {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
  }

  #booking-form-container .bus_search_group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  #booking-form-container .bus_search_icon {
    align-self: flex-start;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 480px) {
  #booking-form-container .form_search_wrap {
    padding: 1rem;
  }

  #booking-form-container .result_destination_row {
    grid-template-columns: 1fr;
  }

  #booking-form-container .hp_guests_search_wrap,
  #booking-form-container .hp_bus_guests_search_wrap {
    min-width: auto;
    left: 0;
    right: 0;
  }
}

.tt-menu-editor__message--info {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1e3a8a;
}

.tt-menu-editor__message-icon {
  margin-right: 8px;
  font-size: 16px;
  flex-shrink: 0;
}

.tt-menu-editor__message-text {
  flex: 1;
}

.tt-menu-editor__message-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 2px 4px;
  margin-left: 8px;
  opacity: 0.7;
  flex-shrink: 0;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.tt-menu-editor__message-close:hover {
  opacity: 1;
  background: rgba(0,0,0,0.1);
}

/* Menu Item Required Styling */
.tt-menu-item--required {
  border-left: 3px solid #10B981;
}

.tt-menu-item--required .tt-menu-item__title::after {
  content: " *";
  color: #10B981;
  font-weight: bold;
}

/* Save Button Loading State */
#save-menu-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Responsive Menu Editor Messages */
@media (max-width: 768px) {
  .tt-menu-editor__messages {
    margin: 10px;
  }
}

.tt-menu-add-form {
  margin-bottom: 15px;
}

.tt-menu-add-form .tt-form__group {
  margin-bottom: 12px;
}

.tt-menu-add-form .tt-form__label {
  font-size: 11px;
  font-weight: 600;
  color: #666;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.tt-menu-add-form .tt-form__input,
.tt-menu-add-form .tt-form__select {
  padding: 6px 8px;
  font-size: 13px;
  border: 1px solid #ddd;
  border-radius: 3px;
  width: 100%;
  box-sizing: border-box;
}

.tt-menu-add-form .tt-btn {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 3px;
  width: 100%;
}

.tt-menu-content {
  flex: 1;
  padding: 20px;
  background: white;
}

.tt-menu-structure {
  min-height: 400px;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: #fafafa;
  padding: 0;
}

.tt-menu-structure-empty {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.tt-menu-structure-empty i {
  font-size: 48px;
  color: #ccc;
  margin-bottom: 20px;
}

.tt-menu-structure-empty h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #666;
}

.tt-menu-structure-empty p {
  margin: 0;
  font-size: 14px;
  color: #999;
}

/* Compact Menu Items */
.tt-menu-item {
  background: white;
  border-bottom: 1px solid #ddd;
  position: relative;
  transition: all 0.2s ease;
  margin: 0;
}

.tt-menu-item:first-child {
  border-top: 1px solid #ddd;
}

.tt-menu-item.ui-sortable-helper {
  opacity: 0.8;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border-radius: 3px;
}

.tt-menu-item.expanded {
  background: #f9f9f9;
}

.tt-menu-item__header {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
}

.tt-menu-item__header:hover {
  background: #f9f9f9;
}

.tt-menu-item__drag-handle {
  color: #999;
  cursor: move;
  font-size: 12px;
  width: 12px;
}

.tt-menu-item__expand {
  color: #666;
  cursor: pointer;
  font-size: 12px;
  width: 12px;
  transition: transform 0.2s ease;
}

.tt-menu-item.expanded .tt-menu-item__expand {
  transform: rotate(90deg);
}

.tt-menu-item__content {
  flex: 1;
  min-width: 0;
}

.tt-menu-item__title {
  font-weight: 600;
  color: #23282d;
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}

.tt-menu-item__meta {
  font-size: 11px;
  color: #666;
  margin-top: 2px;
}

.tt-menu-item__actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tt-menu-item__header:hover .tt-menu-item__actions {
  opacity: 1;
}

.tt-menu-item__action {
  background: none;
  border: none;
  padding: 4px 6px;
  border-radius: 2px;
  cursor: pointer;
  color: #666;
  font-size: 11px;
  transition: all 0.2s ease;
}

.tt-menu-item__action:hover {
  background: #0073aa;
  color: white;
}

.tt-menu-item__action--danger:hover {
  background: #d63638;
  color: white;
}

/* Sub-menu Items with Visual Hierarchy */
.tt-menu-item--depth-0 {
  margin-left: 0;
}

.tt-menu-item--depth-1 {
  margin-left: 30px;
  border-left: 3px solid #0073aa;
  background: #f9f9f9;
}

.tt-menu-item--depth-1 .tt-menu-item__title {
  font-size: 12px;
  color: #555;
}

.tt-menu-item--depth-2 {
  margin-left: 60px;
  border-left: 3px solid #00a32a;
  background: #f6f7f7;
}

.tt-menu-item--depth-2 .tt-menu-item__title {
  font-size: 11px;
  color: #777;
  font-style: italic;
}

/* Depth Indicators */
.tt-menu-item--depth-1::before {
  content: "— ";
  color: #0073aa;
  font-weight: bold;
}

.tt-menu-item--depth-2::before {
  content: "— — ";
  color: #00a32a;
  font-weight: bold;
}

/* Nested Sortable Areas */
.tt-menu-nested-area {
  min-height: 5px;
  margin-left: 30px;
  border-left: 2px dashed #ddd;
  padding-left: 10px;
}

.tt-menu-nested-area.ui-sortable-over {
  border-left-color: #0073aa;
  background: rgba(0, 115, 170, 0.05);
}

/* Drop Zones */
.tt-menu-drop-zone {
  height: 2px;
  background: transparent;
  transition: all 0.2s ease;
}

.tt-menu-drop-zone.active {
  height: 20px;
  background: rgba(0, 115, 170, 0.1);
  border: 2px dashed #0073aa;
  border-radius: 3px;
  margin: 5px 0;
}

/* Expand/Collapse for Parent Items */
.tt-menu-item--has-children > .tt-menu-item__header .tt-menu-item__expand {
  color: #0073aa;
  font-weight: bold;
}

.tt-menu-item--has-children.collapsed .tt-menu-item__children {
  display: none;
}

.tt-menu-item--has-children.collapsed .tt-menu-item__expand {
  transform: rotate(0deg);
}

.tt-menu-item__children {
  margin-left: 30px;
  border-left: 2px solid #e1e5eb;
  padding-left: 10px;
}

/* Menu Item Actions for Nesting */
.tt-menu-item__nest-actions {
  display: flex;
  gap: 4px;
  margin-left: auto;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tt-menu-item__header:hover .tt-menu-item__nest-actions {
  opacity: 1;
}

.tt-menu-item__nest-btn {
  background: none;
  border: none;
  padding: 2px 4px;
  border-radius: 2px;
  cursor: pointer;
  color: #666;
  font-size: 10px;
  transition: all 0.2s ease;
}

.tt-menu-item__nest-btn:hover {
  background: #0073aa;
  color: white;
}

.tt-menu-item__nest-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.tt-menu-item__nest-btn:disabled:hover {
  background: none;
  color: #666;
}

.tt-menu-item__form {
  padding: 12px;
  border-top: 1px solid #ddd;
  background: #f9f9f9;
  display: none;
}

.tt-menu-item__form.active {
  display: block;
}

.tt-menu-item__form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.tt-menu-item__form-group {
  display: flex;
  flex-direction: column;
}

.tt-menu-item__form-group--full {
  grid-column: 1 / -1;
}

.tt-menu-item__form-label {
  font-size: 11px;
  font-weight: 600;
  color: #666;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.tt-menu-item__form-input,
.tt-menu-item__form-select {
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 13px;
  transition: border-color 0.2s ease;
}

.tt-menu-item__form-input:focus,
.tt-menu-item__form-select:focus {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 0 1px #0073aa;
}

.tt-menu-item__form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.tt-menu-item__form-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tt-menu-item__form-btn--primary {
  background: #0073aa;
  color: white;
}

.tt-menu-item__form-btn--primary:hover {
  background: #005a87;
}

.tt-menu-item__form-btn--secondary {
  background: #f3f5f6;
  color: #50575e;
  border: 1px solid #c3c4c7;
}

.tt-menu-item__form-btn--secondary:hover {
  background: #f0f0f1;
}

/* Save Actions */
.tt-menu-save-actions {
  background: #f9f9f9;
  border-top: 1px solid #ddd;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tt-menu-save-info {
  color: #666;
  font-size: 13px;
}

.tt-menu-save-buttons {
  display: flex;
  gap: 8px;
}

/* Select2 Override */
.tt-menu-add-form .select2-container {
  width: 100% !important;
}

.tt-menu-add-form .select2-selection--single {
  height: 28px !important;
  padding: 4px 8px !important;
  border: 1px solid #ddd !important;
  border-radius: 3px !important;
  font-size: 13px !important;
}

.tt-menu-add-form .select2-selection__rendered {
  line-height: 18px !important;
  padding-left: 0 !important;
}

/* Sortable Placeholder */
.tt-menu-item-placeholder {
  background: #f0f6ff;
  border: 2px dashed #0073aa;
  height: 40px;
  margin: 0;
  border-radius: 3px;
}

/* jQuery UI Sortable Helper */
.ui-sortable-helper {
  background: white !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
  opacity: 0.9 !important;
  transform: rotate(2deg) !important;
}

/* Toast Notification System */
.tt-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  pointer-events: none;
}

.tt-toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 320px;
  max-width: 480px;
  margin-bottom: 12px;
  padding: 16px 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-left: 4px solid #ddd;
  pointer-events: auto;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tt-toast--visible {
  transform: translateX(0);
  opacity: 1;
}

.tt-toast--success {
  border-left-color: #00a32a;
}

.tt-toast--error {
  border-left-color: #d63638;
}

.tt-toast--warning {
  border-left-color: #f56e28;
}

.tt-toast--info {
  border-left-color: #0073aa;
}

.tt-toast__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.tt-toast--success .tt-toast__icon {
  color: #00a32a;
}

.tt-toast--error .tt-toast__icon {
  color: #d63638;
}

.tt-toast--warning .tt-toast__icon {
  color: #f56e28;
}

.tt-toast--info .tt-toast__icon {
  color: #0073aa;
}

.tt-toast__content {
  flex: 1;
  min-width: 0;
}

.tt-toast__message {
  font-size: 14px;
  line-height: 1.4;
  color: #2c3338;
  margin: 0;
  word-wrap: break-word;
}

.tt-toast__type {
  font-size: 11px;
  color: #666;
  margin-top: 4px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Toast actions */
.tt-toast__actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.cf-action-btn {
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
}

.cf-action-btn--primary {
  background: linear-gradient(135deg, var(--cf-orange), var(--cf-orange-dark));
  color: #fff;
}

.tt-toast__close {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.tt-toast__close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #2c3338;
}

/* Toast Type Specific Styling */
.tt-toast--cloudflare_error {
  border-left-color: #ff6900;
}

.tt-toast--cloudflare_error .tt-toast__icon {
  color: #ff6900;
}

.tt-toast--connection_error {
  border-left-color: #dc3545;
}

.tt-toast--connection_error .tt-toast__icon {
  color: #dc3545;
}

.tt-toast--validation_error {
  border-left-color: #ffc107;
}

.tt-toast--validation_error .tt-toast__icon {
  color: #ffc107;
}

/* Enhanced Error States for Forms */
.cf-input.error {
  border-color: #d63638 !important;
  box-shadow: 0 0 0 1px #d63638 !important;
}

.cf-error-text {
  display: block;
  font-size: 12px;
  color: #d63638;
  margin-top: 6px;
  line-height: 1.3;
}

/* Loading Button States */
.cf-btn.loading {
  position: relative;
  pointer-events: none;
}

.cf-btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: tt-spin 1s linear infinite;
}

@keyframes tt-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Toast */
@media (max-width: 768px) {
  .tt-toast-container {
    top: 10px;
    right: 10px;
    left: 10px;
  }
  
  .tt-toast {
    min-width: auto;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
}

/* =====================================================
   CLOUDFLARE DOMAIN SETUP WIZARD
   ===================================================== */

/* Cloudflare Brand Colors */
:root {
  --cf-orange: #f38020;
  --cf-orange-dark: #e56f0f;
  --cf-blue: #0051c3;
  --cf-gray: #404040;
  --cf-light-gray: #f6f7f8;
  --cf-border: #d1d5db;
  --cf-success: #00a32a;
  --cf-warning: #f56e28;
}

/* Modern Wizard Container */
.cf-wizard-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
}

/* Wizard Header */
.cf-wizard-header {
  background: linear-gradient(135deg, var(--cf-orange) 0%, var(--cf-orange-dark) 100%);
  color: white;
  padding: 2rem;
  border-radius: 12px 12px 0 0;
  position: relative;
  overflow: hidden;
}

.cf-wizard-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
  animation: float 20s linear infinite;
}

@keyframes float {
  0% { transform: translateY(0px) translateX(0px); }
  100% { transform: translateY(-100px) translateX(-100px); }
}

.cf-wizard-branding {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.cf-wizard-logo {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cf-wizard-logo i {
  font-size: 24px;
  color: white;
}

.cf-wizard-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cf-wizard-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin: 0;
  position: relative;
  z-index: 2;
}

/* Progress Steps */
.cf-wizard-progress {
  background: white;
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid var(--cf-border);
}

.cf-progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.cf-progress-steps::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: #e5e7eb;
  z-index: 1;
}

.cf-progress-line {
  position: absolute;
  top: 50%;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cf-orange), var(--tt-primary));
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.cf-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 3;
  background: white;
  padding: 0 12px;
  transition: all 0.3s ease;
}

.cf-progress-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.cf-progress-step.active .cf-progress-circle {
  background: linear-gradient(135deg, var(--cf-orange), var(--cf-orange-dark));
  color: white;
  box-shadow: 0 4px 12px rgba(243, 128, 32, 0.3);
  transform: scale(1.1);
}

.cf-progress-step.completed .cf-progress-circle {
  background: linear-gradient(135deg, var(--cf-success), #00892a);
  color: white;
}

.cf-progress-step.completed .cf-progress-circle::after {
  content: '✓';
  position: absolute;
  font-weight: bold;
}

.cf-progress-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  text-align: center;
  transition: color 0.3s ease;
}

.cf-progress-step.active .cf-progress-label,
.cf-progress-step.completed .cf-progress-label {
  color: var(--tt-dark);
  font-weight: 600;
}

/* Wizard Content */
.cf-wizard-content {
  background: white;
  min-height: 500px;
  position: relative;
}

.cf-wizard-step {
  padding: 2rem;
  display: none;
  animation: fadeInUp 0.5s ease-out;
}

.cf-wizard-step.active {
  display: block;
}

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

/* Step 1: Authentication */
.cf-auth-section {
  max-width: 500px;
  margin: 0 auto;
}

.cf-tutorial-toggle {
  background: var(--cf-light-gray);
  border: 1px solid var(--cf-border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cf-tutorial-toggle:hover {
  background: #f0f1f2;
  border-color: var(--cf-orange);
}

.cf-tutorial-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cf-tutorial-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--cf-gray);
}

.cf-tutorial-icon {
  color: var(--cf-orange);
  transition: transform 0.3s ease;
}

.cf-tutorial-toggle.expanded .cf-tutorial-icon {
  transform: rotate(180deg);
}

.cf-tutorial-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.cf-tutorial-toggle.expanded .cf-tutorial-content {
  max-height: 800px;
  padding-top: 1rem;
}

.cf-tutorial-steps {
  display: grid;
  gap: 1.5rem;
}

.cf-tutorial-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.cf-tutorial-number {
  width: 24px;
  height: 24px;
  background: var(--cf-orange);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  flex-shrink: 0;
}

.cf-tutorial-text {
  flex: 1;
}

.cf-tutorial-text h4 {
  margin: 0 0 0.5rem;
  color: var(--cf-gray);
  font-size: 1rem;
}

.cf-tutorial-text p {
  margin: 0;
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.5;
}

.cf-tutorial-image {
  margin-top: 0.5rem;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.cf-tutorial-image:hover {
  transform: scale(1.02);
}

.cf-tutorial-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Manual DNS Notice (Non-Cloudflare) */
.cf-manual-dns {
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.cf-manual-dns__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #9a3412;
}

.cf-manual-dns__body {
  padding-top: 0.5rem;
}

.cf-manual-dns__example {
  display: inline-block;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  background: #f3f4f6;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  color: var(--tt-primary);
}

/* Form Styling */
.cf-form-group {
  margin-bottom: 1.5rem;
}

.cf-form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--cf-gray);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.cf-form-label i {
  color: var(--cf-orange);
  width: 16px;
}

.cf-form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.cf-form-input:focus {
  outline: none;
  border-color: var(--cf-orange);
  box-shadow: 0 0 0 3px rgba(243, 128, 32, 0.1);
}

.cf-form-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.cf-help-text {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.cf-error-text {
  display: block;
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Step 2: Account Selection */
.cf-accounts-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.cf-account-card {
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.cf-account-card:hover {
  border-color: var(--cf-orange);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cf-account-card.selected {
  border-color: var(--cf-orange);
  background: rgba(243, 128, 32, 0.05);
}

.cf-account-card.selected::after {
  content: '✓';
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 24px;
  height: 24px;
  background: var(--cf-orange);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.875rem;
}

.cf-account-name {
  font-weight: 600;
  color: var(--cf-gray);
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.cf-account-email {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0;
}

/* Step 3: Domain Selection */
.cf-domains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.cf-domain-card {
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  background: white;
}

.cf-domain-card:hover {
  border-color: var(--tt-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 76, 150, 0.1);
}

.cf-domain-card.selected {
  border-color: var(--tt-primary);
  background: rgba(13, 76, 150, 0.05);
}

.cf-domain-card.selected::after {
  content: '✓';
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 24px;
  height: 24px;
  background: var(--tt-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.875rem;
}

.cf-domain-name {
  font-weight: 600;
  color: var(--cf-gray);
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  word-break: break-all;
}

.cf-domain-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.25rem 0.5rem;
  background: var(--cf-success);
  color: white;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.cf-domain-status.pending {
  background: var(--cf-warning);
}

/* Step 4: Subdomain Configuration */
.cf-subdomain-config {
  max-width: 500px;
  margin: 0 auto;
}

.cf-subdomain-options {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.cf-subdomain-option {
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.cf-subdomain-option:hover {
  border-color: var(--tt-primary);
  background: rgba(13, 76, 150, 0.02);
}

.cf-subdomain-option.selected {
  border-color: var(--tt-primary);
  background: rgba(13, 76, 150, 0.05);
}

.cf-subdomain-option.selected::after {
  content: '✓';
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 20px;
  height: 20px;
  background: var(--tt-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.75rem;
}

.cf-subdomain-title {
  font-weight: 600;
  color: var(--cf-gray);
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cf-subdomain-title i {
  color: var(--tt-primary);
}

.cf-subdomain-description {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0 0 0.5rem;
}

.cf-subdomain-example {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  background: #f3f4f6;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  color: var(--tt-primary);
  border: 1px solid #e5e7eb;
}

.cf-custom-subdomain {
  margin-top: 1rem;
  display: none;
}

.cf-subdomain-option.selected .cf-custom-subdomain {
  display: block;
  animation: fadeInUp 0.3s ease-out;
}

/* Wizard Navigation */
.cf-wizard-footer {
  background: #f9fafb;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--cf-border);
  border-radius: 0 0 12px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cf-wizard-nav {
  display: flex;
  gap: 1rem;
}

.cf-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  position: relative;
  overflow: hidden;
}

.cf-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.cf-btn-primary {
  background: linear-gradient(135deg, var(--cf-orange), var(--cf-orange-dark));
  color: white;
  border: 2px solid transparent;
}

.cf-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(243, 128, 32, 0.3);
}

.cf-btn-secondary {
  background: white;
  color: var(--cf-gray);
  border: 2px solid #e5e7eb;
}

.cf-btn-secondary:hover:not(:disabled) {
  border-color: var(--cf-orange);
  color: var(--cf-orange);
}

.cf-btn-success {
  background: linear-gradient(135deg, var(--tt-primary), #0051c3);
  color: white;
  border: 2px solid transparent;
}

.cf-btn-success:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 76, 150, 0.3);
}

.cf-btn.loading {
  pointer-events: none;
}

.cf-btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.cf-btn.loading .cf-btn-text {
  opacity: 0;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Loading States */
.cf-loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  text-align: center;
}

.cf-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f4f6;
  border-top: 3px solid var(--cf-orange);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

.cf-loading-text {
  color: #6b7280;
  font-size: 1rem;
  margin: 0;
}

/* Success State */
.cf-success-container {
  text-align: center;
  padding: 3rem 2rem;
}

.cf-success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--cf-success), #00892a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
  animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.cf-success-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cf-gray);
  margin: 0 0 0.5rem;
}

.cf-success-message {
  color: #6b7280;
  font-size: 1rem;
  margin: 0 0 2rem;
  line-height: 1.5;
}

.cf-success-details {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
  text-align: left;
  margin-bottom: 2rem;
}

.cf-success-details h4 {
  margin: 0 0 0.5rem;
  color: var(--cf-gray);
  font-size: 0.875rem;
  font-weight: 600;
}

.cf-success-details p {
  margin: 0;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
  color: var(--tt-primary);
}

/* Cloudflare Stats Section */
.cf-stats {
  margin-top: 1.5rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
}

.cf-stats h3 {
  margin-top: 0;
  color: var(--cf-gray);
}

.cf-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.cf-stat-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
  background: #fafafa;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cf-wizard-container {
    margin: 1rem;
  }
  
  .cf-wizard-header {
    padding: 1.5rem;
  }
  
  .cf-wizard-branding {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .cf-wizard-title {
    font-size: 1.75rem;
  }
  
  .cf-progress-steps {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .cf-progress-steps::before {
    display: none;
  }
  
  .cf-progress-line {
    display: none;
  }
  
  .cf-domains-grid {
    grid-template-columns: 1fr;
  }
  
  .cf-wizard-footer {
    flex-direction: column;
    gap: 1rem;
  }
  
  .cf-wizard-nav {
    width: 100%;
    justify-content: space-between;
  }
  
  .cf-btn {
    flex: 1;
    justify-content: center;
  }
}

/* =====================================================
   CONNECTED DOMAINS PANEL (Cloudflare style)
   ===================================================== */

/* Make the Add Domain button contrast on the orange header */
#cf-domains-container .cf-wizard-header #cf-add-domain-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}
#cf-domains-container .cf-wizard-header #cf-add-domain-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* Domains list wrapper */
.cf-domains-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 1rem;
}

/* Domain item */
.cf-domain-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.cf-domain-item:hover {
  transform: translateY(-2px);
  border-color: rgba(243, 128, 32, 0.45); /* cf-orange tint */
  box-shadow: 0 12px 28px rgba(243, 128, 32, 0.10);
}
.cf-domain-item.expanded {
  border-color: rgba(0, 81, 195, 0.45); /* cf blue tint */
  box-shadow: 0 12px 28px rgba(0, 81, 195, 0.10);
}

.cf-domain-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}
.cf-domain-item__title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cf-gray);
  font-weight: 600;
}
.cf-domain-item__title i {
  color: var(--cf-orange);
}
.cf-domain-item.expanded .cf-domain-item__title i {
  color: var(--cf-blue);
}

.cf-domain-item__actions {
  display: flex;
  gap: 8px;
}

/* Lightweight action buttons inside the domains panel */
.cf-domains-list .cf-action-btn {
  background: #f3f4f6;
  color: #333;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.cf-domains-list .cf-action-btn:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}
.cf-domains-list .cf-action-btn.cf-action-btn--danger {
  background: #fff7f7;
  color: #b91c1c;
  border-color: #ef4444;
}
.cf-domains-list .cf-action-btn.cf-action-btn--danger:hover {
  background: #ef4444;
  color: #fff;
}
.cf-domains-list .cf-action-btn[data-action="toggle"] {
  background: #ffffff;
  color: #0051c3;
  border-color: rgba(0, 81, 195, 0.3);
}
.cf-domains-list .cf-action-btn[data-action="toggle"]:hover {
  background: rgba(0, 81, 195, 0.06);
}

/* Badges */
.cf-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.cf-badge--success {
  background: rgba(0, 163, 42, 0.12);
  color: #00892a;
  border: 1px solid rgba(0, 163, 42, 0.35);
}
.cf-badge--warning {
  background: rgba(245, 110, 40, 0.12);
  color: #a33f17;
  border: 1px solid rgba(245, 110, 40, 0.35);
}

.cf-domain-item__details {
  display: block;
  border-top: 1px solid #e5e7eb;
  background: #fafafa;
  padding: 1rem 1.25rem 1.25rem;
}
.cf-domain-item__details .cf-stats-grid .cf-stat-card {
  background: #fff;
}
.cf-domain-item__details .cf-stat-card strong {
  color: #374151;
}
.cf-domain-item__details .cf-stat-card div {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0b1320;
}

/* Agency Dashboard Nav */
#dashboard-nav {
  display: flex;
  gap: 0.25rem; /* space-x-1 */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding-top: 1rem;  /* py-4 */
  padding-bottom: 1rem; /* py-4 */
}

#dashboard-nav .nav-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  text-decoration: none;
  color: #374151; /* gray-700 */
  background: #ffffff;
  border: 1px solid #e5e7eb; /* gray-200 */
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .15s ease;
  scroll-snap-align: start;
}

#dashboard-nav .nav-item:hover {
  background: #f3f4f6; /* gray-100 */
  color: #111827; /* gray-900 */
  transform: translateY(-1px);
}

#dashboard-nav .nav-item.nav-item-active {
  background: #111827; /* gray-900 */
  color: #ffffff;
  border-color: #111827;
  box-shadow: 0 6px 14px rgba(17,24,39,0.25);
}

#dashboard-nav .nav-item svg {
  width: 20px;
  height: 20px;
}

#dashboard-nav .nav-item.ml-auto {
  margin-left: auto;
}

@media (max-width: 640px) {
  #dashboard-nav .nav-item {
    padding: 0.45rem 0.6rem;
    border-radius: 7px;
  }
}

.hidden {
  display: none !important;
}
.text-gray-700 {
  color: gray !important;
}

/* WordPress-style dropdown menu styles */
.menu-item {
  position: relative;
  list-style: none;
}

.menu-item-has-children > a {
  position: relative;
}

.menu-item-has-children > a .dropdown-arrow {
  margin-left: 0.5rem;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.menu-item-has-children.open > a .dropdown-arrow {
  transform: rotate(180deg);
}

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
}

.menu-item-has-children:hover .sub-menu,
.menu-item-has-children.open .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu .menu-item {
  margin: 0;
}

.sub-menu .menu-item a {
  display: block;
  padding: 0.5rem 1rem;
  color: #333;
  text-decoration: none;
  border-bottom: none;
  transition: background-color 0.2s ease;
}

.sub-menu .menu-item a:hover {
  background-color: #f5f5f5;
  color: #0073aa;
}

/* Nested sub-menus */
.sub-menu .menu-item-has-children .sub-menu {
  top: 0;
  left: 100%;
  margin-left: 1px;
}

.sub-menu .menu-item-has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Mobile responsive dropdowns */
@media (max-width: 768px) {
  .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    margin-left: 1rem;
    margin-top: 0.5rem;
  }

  .menu-item-has-children > a .dropdown-arrow {
    display: inline-block;
  }

  .menu-item-has-children.open .sub-menu {
    display: block;
  }

  .menu-item-has-children:not(.open) .sub-menu {
    display: none;
  }
}
#booking-form-container .hp__search_field_section {
  width: unset !important;
}
.daterangepicker {
  z-index: 10000000000 !important;
}
#shortcode-display-modal #booking-form-container,
#booking-form-modal #booking-form-container {
  max-width: 100%;
}

#shortcode-display-modal #booking-form-container .form_search_wrap,
#booking-form-modal #booking-form-container .form_search_wrap {
  overflow: hidden !important;
  min-width: 0 !important;
}

#shortcode-display-modal #booking-form-container .hotel_destination_search_wrap,
#shortcode-display-modal #booking-form-container .flight_destination_search_wrap,
#shortcode-display-modal #booking-form-container .transfer_destination_search_wrap,
#booking-form-modal #booking-form-container .hotel_destination_search_wrap,
#booking-form-modal #booking-form-container .flight_destination_search_wrap,
#booking-form-modal #booking-form-container .transfer_destination_search_wrap {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  max-height: min(44vh, 420px);
  margin: 6px 0 0 !important;
  border: 2px solid var(--tt-primary);
  border-radius: 8px;
  overflow: auto;
  z-index: 100020 !important;
  box-sizing: border-box;
}

#shortcode-display-modal #booking-form-container .result_destination_row,
#booking-form-modal #booking-form-container .result_destination_row {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  max-height: none;
}

#shortcode-display-modal .select2-container--open .select2-dropdown,
#booking-form-modal .select2-container--open .select2-dropdown,
#shortcode-display-modal .awesomplete > ul,
#booking-form-modal .awesomplete > ul {
  z-index: 100020 !important;
}
.menu-item a:focus {
  outline: none !important;
}
.d-none {
  display: none !important
}
.text-white {
  color: white !important;
}
/* Padding Left Utility Classes */
.pl-0 { padding-left: 0 !important; }
.pl-px { padding-left: 1px !important; }
.pl-0\.5 { padding-left: 0.125rem !important; }
.pl-1 { padding-left: 0.25rem !important; }
.pl-1\.5 { padding-left: 0.375rem !important; }
.pl-2 { padding-left: 0.5rem !important; }
.pl-2\.5 { padding-left: 0.625rem !important; }
.pl-3 { padding-left: 0.75rem !important; }
.pl-3\.5 { padding-left: 0.875rem !important; }
.pl-4 { padding-left: 1rem !important; }
.pl-5 { padding-left: 1.25rem !important; }
.pl-6 { padding-left: 1.5rem !important; }
.pl-7 { padding-left: 1.75rem !important; }
.pl-8 { padding-left: 2rem !important; }
.pl-9 { padding-left: 2.25rem !important; }
.pl-10 { padding-left: 2.5rem !important; }
.pl-11 { padding-left: 2.75rem !important; }
.pl-12 { padding-left: 3rem !important; }
.pl-14 { padding-left: 3.5rem !important; }
.pl-16 { padding-left: 4rem !important; }
.pl-20 { padding-left: 5rem !important; }
.pl-24 { padding-left: 6rem !important; }
.pl-28 { padding-left: 7rem !important; }
.pl-32 { padding-left: 8rem !important; }
.pl-36 { padding-left: 9rem !important; }
.pl-40 { padding-left: 10rem !important; }
.pl-44 { padding-left: 11rem !important; }
.pl-48 { padding-left: 12rem !important; }
.pl-52 { padding-left: 13rem !important; }
.pl-56 { padding-left: 14rem !important; }
.pl-60 { padding-left: 15rem !important; }
.pl-64 { padding-left: 16rem !important; }
.pl-72 { padding-left: 18rem !important; }
.pl-80 { padding-left: 20rem !important; }
.pl-96 { padding-left: 24rem !important; }

/* Background Gray Utility Classes */
.bg-gray-50 { background-color: #f9fafb !important; }
.bg-gray-100 { background-color: #f3f4f6 !important; }
.bg-gray-200 { background-color: #e5e7eb !important; }
.bg-gray-300 { background-color: #d1d5db !important; }
.bg-gray-400 { background-color: #9ca3af !important; }
.bg-gray-500 { background-color: #6b7280 !important; }
.bg-gray-600 { background-color: #4b5563 !important; }
.bg-gray-700 { background-color: #374151 !important; }
.bg-gray-800 { background-color: #1f2937 !important; }
.bg-gray-900 { background-color: #111827 !important; }

/* Hover Background Gray Utility Classes */
.hover\:bg-gray-50:hover { background-color: #f9fafb !important; }
.hover\:bg-gray-100:hover { background-color: #f3f4f6 !important; }
.hover\:bg-gray-200:hover { background-color: #e5e7eb !important; }
.hover\:bg-gray-300:hover { background-color: #d1d5db !important; }
.hover\:bg-gray-400:hover { background-color: #9ca3af !important; }
.hover\:bg-gray-500:hover { background-color: #6b7280 !important; }
.hover\:bg-gray-600:hover { background-color: #4b5563 !important; }
.hover\:bg-gray-700:hover { background-color: #374151 !important; }
.hover\:bg-gray-800:hover { background-color: #1f2937 !important; }
.hover\:bg-gray-900:hover { background-color: #111827 !important; }

/* ===============================================
   FLIGHT FORM COMPACT LAYOUT - #shortcode-display-modal
   =============================================== */

/* Main wrapper - add padding and remove extra spacing */
#shortcode-display-modal .flight_search_wrap {
  padding: 1.25rem !important;
  margin: 0 !important;
  width: 100% !important;
  display: block !important;
  float: none !important;
  box-sizing: border-box !important;
}

#shortcode-display-modal .flight_search_wrap_inner {
  padding: 0 !important;
  width: 100% !important;
}

/* Flight type toggle - compact, NO border */
#shortcode-display-modal .flight_search_section_type {
  margin-bottom: 1rem !important;
  padding: 0 !important;
  width: auto !important;
  border: none !important;
  outline: none !important;
}

#shortcode-display-modal .flight_search_section_type .hp_search_field_box {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 100%) !important;
  padding: 0.5rem 1rem !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  gap: 1.25rem !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

#shortcode-display-modal .flight_search_section_type .radio-inline {
  color: #fff !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  margin: 0 !important;
  padding: 0.2rem 0 !important;
  cursor: pointer !important;
  border: none !important;
  outline: none !important;
}

#shortcode-display-modal .flight_search_section_type input[type="radio"],
#shortcode-display-modal .flight_search_section_type input[type="checkbox"] {
  accent-color: #fff !important;
  width: 14px !important;
  height: 14px !important;
  margin: 0 !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Inputs row - compact grid layout */
#shortcode-display-modal .flight_search_inputs_row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0.875rem 1.25rem !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* All field sections - compact styling */
#shortcode-display-modal .hp__search_field_section,
#shortcode-display-modal .flight_search_section2,
#shortcode-display-modal .flight_search_section3,
#shortcode-display-modal .flight_search_section_arrival,
#shortcode-display-modal .flight_search_section_duration,
#shortcode-display-modal .flight_search_section_stops {
  width: 100% !important;
  flex: unset !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

#shortcode-display-modal .hp_search_field_box {
  padding: 0 !important;
  border: none !important;
  width: 100% !important;
}

/* Labels - smaller and tighter */
#shortcode-display-modal .hp_search_field_label {
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  color: #4b5563 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  margin-bottom: 0.25rem !important;
  display: block !important;
}

/* Input fields - COMPACT */
#shortcode-display-modal .hp_search_input,
#shortcode-display-modal input.hp_search_input,
#shortcode-display-modal .flight_search_departures,
#shortcode-display-modal .flight_search_arrivals,
#shortcode-display-modal .flight_search_checkinout,
#shortcode-display-modal .flight_search_guests,
#shortcode-display-modal .flight_duration {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0.5rem 0.75rem !important;
  font-size: 0.85rem !important;
  border: 1px solid #d1d5db !important;
  border-radius: 6px !important;
  background: #fff !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  min-height: unset !important;
  height: auto !important;
  display: block !important;
  outline: none !important;
}

#shortcode-display-modal .hp_search_input:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1) !important;
  outline: none !important;
}

#shortcode-display-modal .hp_search_input::placeholder {
  color: #9ca3af !important;
  font-size: 0.85rem !important;
}

/* Duration field */
#shortcode-display-modal .flight_search_section_duration {
  grid-column: 1 !important;
}

#shortcode-display-modal .flight_search_section_duration .hp_search_field_label span {
  font-size: 0.6rem !important;
  color: #9ca3af !important;
  font-weight: 500 !important;
}

/* Direct flights toggle - aligned with duration */
#shortcode-display-modal .flight_search_section_stops {
  grid-column: 2 !important;
  display: flex !important;
  align-items: flex-end !important;
  padding-bottom: 0.5rem !important;
}

#shortcode-display-modal .direct-flights-toggle {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  cursor: pointer !important;
  font-size: 0.85rem !important;
  color: #374151 !important;
  white-space: nowrap !important;
}

#shortcode-display-modal .toggle-label {
  white-space: nowrap !important;
}

#shortcode-display-modal .toggle-switch {
  width: 40px !important;
  height: 22px !important;
  min-width: 40px !important;
  background: #d1d5db !important;
  border-radius: 11px !important;
  position: relative !important;
  transition: background 0.2s !important;
  flex-shrink: 0 !important;
}

#shortcode-display-modal .toggle-switch::after {
  content: '' !important;
  width: 18px !important;
  height: 18px !important;
  background: #fff !important;
  border-radius: 50% !important;
  position: absolute !important;
  top: 2px !important;
  left: 2px !important;
  transition: transform 0.2s !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25) !important;
}

#shortcode-display-modal input[name="direct_flights_only"]:checked + .toggle-switch {
  background: #3b82f6 !important;
}

#shortcode-display-modal input[name="direct_flights_only"]:checked + .toggle-switch::after {
  transform: translateX(18px) !important;
}

#shortcode-display-modal input[name="direct_flights_only"] {
  display: none !important;
}

/* Button section - clean bottom */
#shortcode-display-modal .flight_search_btn_section {
  grid-column: 1 / -1 !important;
  margin-top: 1.25rem !important;
  padding-top: 1rem !important;
  border-top: 1px solid #e5e7eb !important;
  width: 100% !important;
}

#shortcode-display-modal .flight_search_btn_section button {
  width: 100% !important;
  padding: 0.875rem 1.5rem !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, #1e3a5f 0%, #0d4c96 100%) !important;
  transition: all 0.2s ease !important;
}

#shortcode-display-modal .flight_search_btn_section button:hover {
  background: linear-gradient(135deg, #0d4c96 0%, #1e3a5f 100%) !important;
  transform: translateY(-1px) !important;
}

/* Hide icons for cleaner look in modal */
#shortcode-display-modal .hp_search_icon {
  display: none !important;
}

/* Guest dropdown - compact with NO blue border */
#shortcode-display-modal .hp_flight_guests_search_wrap,
#shortcode-display-modal .select_guests_wrap {
  padding: 0.75rem !important;
  border-radius: 8px !important;
  min-width: 200px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important;
  border: 1px solid #e5e7eb !important;
  outline: none !important;
  background: #fff !important;
}

#shortcode-display-modal .hp_flight_guests_search_adult,
#shortcode-display-modal .hp_flight_guests_search_children,
#shortcode-display-modal .select_guests_search_adult,
#shortcode-display-modal .select_guests_search_children {
  padding: 0.5rem 0 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  border: none !important;
  outline: none !important;
}

#shortcode-display-modal .hp_search_guests_label,
#shortcode-display-modal .select_guests_search_adult .hp_search_guests_label,
#shortcode-display-modal .select_guests_search_children .hp_search_guests_label {
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  color: #374151 !important;
}

#shortcode-display-modal .hp_search_guests_number_label,
#shortcode-display-modal .select_search_guests_number_label {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

#shortcode-display-modal .flight_search_guest_plus_minus,
#shortcode-display-modal .select_search_guest_plus_minus {
  width: 28px !important;
  height: 28px !important;
  border-radius: 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #1e3a5f !important;
  color: #fff !important;
  cursor: pointer !important;
  font-size: 0.75rem !important;
  border: none !important;
}

#shortcode-display-modal .flight_search_guest_plus_minus:hover,
#shortcode-display-modal .select_search_guest_plus_minus:hover {
  background: #0d4c96 !important;
}

#shortcode-display-modal .flight_search_guests_adult,
#shortcode-display-modal .flight_search_guests_children {
  width: 35px !important;
  text-align: center !important;
  border: none !important;
  background: transparent !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  padding: 0 !important;
}

/* Airport dropdowns - compact */
#shortcode-display-modal .departures-dropdown,
#shortcode-display-modal .arrivals-dropdown {
  border-radius: 8px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important;
  max-height: 260px !important;
  border: 1px solid #e5e7eb !important;
  background: #fff !important;
  padding: 0.5rem !important;
}

/* Airport dropdown header - search and clear button */
#shortcode-display-modal .departures-dropdown-header,
#shortcode-display-modal .arrivals-dropdown-header {
  display: flex !important;
  gap: 0.5rem !important;
  padding: 0 0 0.5rem 0 !important;
  margin-bottom: 0.5rem !important;
  border-bottom: 1px solid #e5e7eb !important;
}

#shortcode-display-modal .departures-search-input,
#shortcode-display-modal .arrivals-search-input {
  flex: 1 !important;
  padding: 0.4rem 0.6rem !important;
  font-size: 0.8rem !important;
  border: 1px solid #d1d5db !important;
  border-radius: 5px !important;
  outline: none !important;
}

#shortcode-display-modal .departures-search-input:focus,
#shortcode-display-modal .arrivals-search-input:focus {
  border-color: #3b82f6 !important;
}

/* Clear all button - COMPACT */
#shortcode-display-modal .departures-clear-all-btn,
#shortcode-display-modal .arrivals-clear-all-btn {
  padding: 0.4rem 0.75rem !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  background: #1e3a5f !important;
  color: #fff !important;
  border: none !important;
  border-radius: 5px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
}

#shortcode-display-modal .departures-clear-all-btn:hover,
#shortcode-display-modal .arrivals-clear-all-btn:hover {
  background: #0d4c96 !important;
}

#shortcode-display-modal .departures-list,
#shortcode-display-modal .arrivals-list {
  max-height: 180px !important;
  overflow-y: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

#shortcode-display-modal .departure-item,
#shortcode-display-modal .arrival-item {
  padding: 0.4rem 0.6rem !important;
  font-size: 0.8rem !important;
  cursor: pointer !important;
  border-radius: 4px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

#shortcode-display-modal .departure-item:hover,
#shortcode-display-modal .arrival-item:hover {
  background: #f3f4f6 !important;
}

#shortcode-display-modal .departure-item.selected,
#shortcode-display-modal .arrival-item.selected {
  background: #e0f2fe !important;
}

#shortcode-display-modal .departure-name,
#shortcode-display-modal .arrival-name {
  font-weight: 500 !important;
}

#shortcode-display-modal .departure-code,
#shortcode-display-modal .arrival-code {
  color: #6b7280 !important;
  font-size: 0.75rem !important;
}

/* Tags container - compact */
#shortcode-display-modal .departures-tags-container,
#shortcode-display-modal .arrivals-tags-container {
  margin-top: 0.35rem !important;
  gap: 0.25rem !important;
  display: flex !important;
  flex-wrap: wrap !important;
}

#shortcode-display-modal .departure-tag,
#shortcode-display-modal .arrival-tag {
  font-size: 0.7rem !important;
  padding: 0.15rem 0.4rem !important;
  border-radius: 3px !important;
  background: #f3f4f6 !important;
  border: 1px solid #e5e7eb !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.25rem !important;
}

/* Hidden tags (more than 2 selected) */
.departure-tag-hidden,
.arrival-tag-hidden {
  display: none !important;
}

/* "+X mehr" button styling */
.departure-tag-more,
.arrival-tag-more {
  font-size: 0.7rem !important;
  padding: 0.2rem 0.5rem !important;
  border-radius: 3px !important;
  background: #1e3a5f !important;
  color: #fff !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  font-weight: 500 !important;
  transition: background 0.2s ease !important;
}

.departure-tag-more:hover,
.arrival-tag-more:hover {
  background: #0d4c96 !important;
}

#shortcode-display-modal .departure-tag-more,
#shortcode-display-modal .arrival-tag-more {
  font-size: 0.65rem !important;
  padding: 0.15rem 0.4rem !important;
}

#shortcode-display-modal .departure-tag-remove,
#shortcode-display-modal .arrival-tag-remove {
  cursor: pointer !important;
  font-size: 0.8rem !important;
  color: #6b7280 !important;
  margin-left: 0.15rem !important;
}

#shortcode-display-modal .departure-tag-remove:hover,
#shortcode-display-modal .arrival-tag-remove:hover {
  color: #dc3545 !important;
}

#shortcode-display-modal .tag-name {
  font-weight: 500 !important;
}

#shortcode-display-modal .tag-code {
  color: #6b7280 !important;
  font-size: 0.65rem !important;
}

/* Ensure form_search_wrap doesn't add extra styling */
#shortcode-display-modal .form_search_wrap {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

#shortcode-display-modal .form_search_wrap_inner {
  display: block !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
}

/* Remove ALL blue borders/outlines from modal elements */
#shortcode-display-modal *:focus,
#shortcode-display-modal *:focus-visible,
#shortcode-display-modal *:active {
  outline: none !important;
}

#shortcode-display-modal .hp_search_field_box,
#shortcode-display-modal .hp_flight_guest_search_section,
#shortcode-display-modal .hp_departures_search_section,
#shortcode-display-modal .hp_arrivals_search_section {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Fix field box borders specifically */
#shortcode-display-modal .departures-field-box,
#shortcode-display-modal .arrivals-field-box {
  border: none !important;
  padding: 0 !important;
}

/* Remove dashed borders on focus */
#shortcode-display-modal input:focus,
#shortcode-display-modal select:focus,
#shortcode-display-modal button:focus,
#shortcode-display-modal div:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Only apply nice focus state to actual inputs */
#shortcode-display-modal .hp_search_input:focus,
#shortcode-display-modal .departures-search-input:focus,
#shortcode-display-modal .arrivals-search-input:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1) !important;
}

/* Booking form container overrides for modal */
#shortcode-display-modal #booking-form-container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

#shortcode-display-modal #booking-form-container .form_search_wrap_inner {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  display: block !important;
  grid-template-columns: unset !important;
}

/* Daterangepicker styling for modal */
.daterangepicker {
  z-index: 100000 !important;
}

body > .daterangepicker {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  border-radius: 8px !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
  padding: 0 !important;
}

/* Single calendar (oneway) - compact, no extra space */
body > .daterangepicker.single {
  min-width: auto !important;
  width: auto !important;
}

body > .daterangepicker.single .drp-calendar {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  padding: 10px !important;
}

body > .daterangepicker.single .drp-calendar.left {
  padding: 10px !important;
  border-right: none !important;
  clear: both !important;
}

/* Range calendar (return) */
body > .daterangepicker .drp-calendar {
  padding: 8px 10px !important;
}

body > .daterangepicker .drp-calendar.left {
  border-right: 1px solid #e5e7eb !important;
}

body > .daterangepicker .calendar-table {
  padding: 0 !important;
}

/* Month and year selects - proper width */
body > .daterangepicker select.monthselect {
  font-size: 0.85rem !important;
  padding: 3px 6px !important;
  border: 1px solid #d1d5db !important;
  border-radius: 4px !important;
  background: #fff !important;
  cursor: pointer !important;
  width: auto !important;
  min-width: 85px !important;
  max-width: none !important;
}

body > .daterangepicker select.yearselect {
  font-size: 0.85rem !important;
  padding: 3px 6px !important;
  border: 1px solid #d1d5db !important;
  border-radius: 4px !important;
  background: #fff !important;
  cursor: pointer !important;
  width: auto !important;
  min-width: 65px !important;
  max-width: none !important;
}

body > .daterangepicker th,
body > .daterangepicker td {
  font-size: 0.8rem !important;
  padding: 4px !important;
  min-width: 28px !important;
  height: 28px !important;
  line-height: 20px !important;
}

body > .daterangepicker th.month {
  font-size: 0.85rem !important;
  font-weight: 600 !important;
}

body > .daterangepicker td.available:hover {
  background: #e0f2fe !important;
  border-radius: 4px !important;
}

/* Active/selected dates - dark background with white text */
body > .daterangepicker td.active,
body > .daterangepicker td.active:hover,
body > .daterangepicker td.active.start-date,
body > .daterangepicker td.active.end-date {
  background: #1e3a5f !important;
  color: #fff !important;
  border-radius: 4px !important;
}

/* In-range dates - light blue background with dark text */
body > .daterangepicker td.in-range {
  background: #dbeafe !important;
  color: #1e3a5f !important;
}

/* Today highlight */
body > .daterangepicker td.today {
  background: #e0f2fe !important;
  color: #1e3a5f !important;
  font-weight: 600 !important;
}

body > .daterangepicker td.today.active {
  background: #1e3a5f !important;
  color: #fff !important;
}

body > .daterangepicker td.start-date:not(.end-date) {
  border-radius: 4px 0 0 4px !important;
}

body > .daterangepicker td.end-date:not(.start-date) {
  border-radius: 0 4px 4px 0 !important;
}

body > .daterangepicker td.start-date.end-date {
  border-radius: 4px !important;
}

body > .daterangepicker .drp-buttons {
  padding: 8px 10px !important;
  border-top: 1px solid #e5e7eb !important;
}

body > .daterangepicker .drp-buttons .btn {
  font-size: 0.8rem !important;
  padding: 5px 12px !important;
  border-radius: 5px !important;
}

body > .daterangepicker .drp-selected {
  font-size: 0.75rem !important;
}

/* Navigation arrows */
body > .daterangepicker th.prev,
body > .daterangepicker th.next {
  cursor: pointer !important;
}

body > .daterangepicker th.prev:hover,
body > .daterangepicker th.next:hover {
  background: #f3f4f6 !important;
  border-radius: 4px !important;
}
