:root {
  --dt-primary: #df5c73;
  --dt-secondary: #60b8c3;
  --dt-dark: #1a1a2e;
  --dt-light: #f8f9fa;
  --dt-radius: 1rem;
}

html {
  font-size: 14px;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #f4f7f9;
  color: var(--dt-dark);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-size: 0.95rem;
}

h1 { font-size: 1.9rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.9rem; }

.btn { font-size: 0.9rem; }
.form-control, .form-select { font-size: 0.9rem; }
.card-text, .small { font-size: 0.82rem; }

.dt-nav {
  background: #ffffff;
  border-bottom: 3px solid var(--dt-secondary);
}

.dt-nav .nav-link {
  color: var(--dt-dark);
  font-weight: 500;
}

.dt-nav .nav-link:hover,
.dt-nav .nav-link:focus,
.dt-nav .nav-link.active {
  color: var(--dt-primary);
}

.dt-nav .navbar-toggler {
  border-color: var(--dt-secondary);
}

.dt-nav .dropdown-menu {
  border-radius: 0.75rem;
  border: none;
  box-shadow: 0 0.5rem 1.2rem rgba(0,0,0,0.1);
}

.dt-lang .nav-link {
  font-size: 0.85rem;
  font-weight: 600;
}

.dt-lang-menu {
  min-width: 170px;
  padding: 0.3rem;
}

.dt-lang-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
}

.dt-lang-item:hover,
.dt-lang-item:focus {
  background: #f4f7f9;
}

.dt-lang-item.active {
  background: rgba(68, 169, 183, .1);
  color: #44a9b7;
  font-weight: 600;
}

.dt-lang-code {
  min-width: 30px;
  padding: 0.15rem 0.35rem;
  border-radius: 0.35rem;
  background: #eef1f6;
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
}

.dt-lang-item.active .dt-lang-code {
  background: #44a9b7;
  color: #fff;
}

.dt-brand {
  color: var(--dt-primary);
}

.navbar-brand {
  font-size: 1.6rem;
  letter-spacing: -1px;
}

.navbar-brand img {
  display: block;
}

.btn-dt-primary {
  background-color: var(--dt-primary);
  border-color: var(--dt-primary);
  color: #fff;
  border-radius: 0.6rem;
  font-weight: 600;
}

.btn-dt-primary:hover {
  background-color: #c94e62;
  border-color: #c94e62;
  color: #fff;
}

.btn-dt-secondary {
  background-color: var(--dt-secondary);
  border-color: var(--dt-secondary);
  color: #fff;
  border-radius: 0.6rem;
  font-weight: 600;
}

.btn-dt-secondary:hover {
  background-color: #4ca2ab;
  border-color: #4ca2ab;
  color: #fff;
}

.dt-card {
  border: none;
  border-radius: var(--dt-radius);
  box-shadow: 0 0.5rem 1.2rem rgba(0,0,0,0.06);
  transition: transform .2s, box-shadow .2s;
}

.dt-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.7rem 1.5rem rgba(0,0,0,0.10);
}

.dt-card img.card-img-top {
  border-top-left-radius: var(--dt-radius);
  border-top-right-radius: var(--dt-radius);
  height: 180px;
  object-fit: cover;
}

.price-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(26,26,46,0.85);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 0.5rem;
}

.stock-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.stock-tag.sold-out {
  background: #6b7280;
  color: #fff;
}

.stock-tag.low-stock {
  background: var(--dt-primary);
  color: #fff;
}

.pagination .page-link {
  color: var(--dt-dark);
  border-radius: 0.5rem;
  margin: 0 2px;
  border: none;
}

.pagination .page-item.active .page-link {
  background-color: var(--dt-primary);
  color: #fff;
}

.pagination .page-item.disabled .page-link {
  color: #adb5bd;
  background: transparent;
}

.badge-dt {
  background-color: var(--dt-secondary);
  color: #fff;
}

.breadcrumb {
  --bs-breadcrumb-divider: none;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.1rem;
  margin: 0;
  padding: 0.45rem 0.9rem;
  background: #fff;
  border: 1px solid #e6ebf1;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(16, 24, 39, 0.05);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  max-width: 100%;
}

.breadcrumb .breadcrumb-item {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.breadcrumb .breadcrumb-item + .breadcrumb-item {
  padding-left: 0;
}

.breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "";
  float: none;
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  margin: 0 0.5rem;
  padding: 0;
  border-radius: 50%;
  background: #ccd5e0;
}

.breadcrumb .breadcrumb-item > a {
  display: inline-block;
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #6b7688;
  text-decoration: none;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  transition: color .18s ease, background-color .18s ease;
}

.breadcrumb .breadcrumb-item > a:hover,
.breadcrumb .breadcrumb-item > a:focus-visible {
  color: var(--dt-primary);
  background: rgba(223, 92, 115, 0.1);
  outline: none;
}

.breadcrumb .breadcrumb-item.active {
  color: var(--dt-dark);
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  max-width: 18rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .breadcrumb {
    width: 100%;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    padding: 0.4rem 0.65rem;
  }

  .breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    margin: 0 0.3rem;
  }

  .breadcrumb .breadcrumb-item > a,
  .breadcrumb .breadcrumb-item.active {
    max-width: 8rem;
  }
}

.profile-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--dt-primary), #c94e62);
  box-shadow: 0 0.6rem 1.4rem rgba(223,92,115,0.28);
}

.profile-info-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.profile-info-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #4b5563;
}

.profile-info-item i {
  color: var(--dt-primary);
  width: 18px;
  text-align: center;
}

.dt-footer {
  background: var(--dt-dark);
  margin-top: auto;
}

.card-stat {
  border-left: 5px solid var(--dt-primary);
}

.card-stat.secondary {
  border-left-color: var(--dt-secondary);
}

.qr-border {
  border: 3px dashed var(--dt-primary);
  border-radius: var(--dt-radius);
  padding: 1rem;
  display: inline-block;
  background: #fff;
}

.form-control, .form-select {
  border-radius: 0.6rem;
}

.nav-pills .nav-link.active {
  background-color: var(--dt-primary);
}

.hero {
  background: linear-gradient(120deg, #1a1a2e 0%, #2d2d44 100%);
  color: #fff;
  border-radius: var(--dt-radius);
  padding: 3rem 1.5rem;
  margin-bottom: 2rem;
}

.hero h1 {
  color: #fff;
}

.text-primary-dt { color: var(--dt-primary) !important; }
.text-secondary-dt { color: var(--dt-secondary) !important; }
.bg-primary-dt { background-color: var(--dt-primary) !important; }
.bg-secondary-dt { background-color: var(--dt-secondary) !important; }

.dt-settings-nav .nav-link {
  border-radius: 0.6rem;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  color: var(--dt-dark);
  border: 1px solid #e5e7eb;
  background: #fff;
  margin-right: 0.4rem;
}

.dt-settings-nav .nav-link:hover {
  border-color: var(--dt-secondary);
  color: var(--dt-secondary);
}

.dt-settings-nav .nav-link.active {
  background-color: var(--dt-primary);
  border-color: var(--dt-primary);
  color: #fff;
}

.dt-settings-icon {
  width: 42px;
  height: 42px;
  border-radius: 0.6rem;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.2rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.dt-color-picker {
  width: 42px;
  padding: 0.2rem;
}

.dt-color-text {
  flex: 1;
}

.dt-settings-save-bar {
  position: sticky;
  bottom: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  padding: 0.75rem 0;
  margin-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
  z-index: 10;
}

/* macOS-style flash alerts */
.dt-alert {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1055;
  min-width: 320px;
  max-width: 420px;
  padding: 1rem 1.25rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255,255,255,0.5) inset;
  color: var(--dt-dark);
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  animation: dtSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dtSlideIn {
  from { opacity: 0; transform: translateX(20px) scale(0.96); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.dt-alert .btn-close {
  width: 1.25rem;
  height: 1.25rem;
  margin-left: auto;
  background: rgba(0,0,0,0.08);
  border-radius: 50%;
  padding: 0.15rem;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.dt-alert .btn-close:hover { opacity: 1; background: rgba(0,0,0,0.14); }

.dt-alert-success { border-left: 4px solid #34c759; }
.dt-alert-danger { border-left: 4px solid #ff3b30; }
.dt-alert-info { border-left: 4px solid #007aff; }
.dt-alert-warning { border-left: 4px solid #ff9500; }

/* macOS-style Bootstrap modals */
.modal-dialog {
  max-width: 440px;
}

.modal-content {
  border: none;
  border-radius: 0.6rem;
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.22);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.modal-header {
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 0.6rem 1rem;
  background: transparent;
}

.modal-title {
  font-weight: 700;
  font-size: 0.85rem;
  width: 100%;
  text-align: center;
}

.modal-header .btn-close {
  position: absolute;
  right: 0.75rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background-color: #ff5f57;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 0.45rem;
  opacity: 1;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.05);
  margin: 0;
  border: none;
}

.modal-body {
  padding: 0.6rem 1rem;
  color: #4b5563;
}

.modal-body .mb-3,
.modal-body .col-md-6 {
  margin-bottom: 0.35rem !important;
}

.modal-body .form-label,
.modal-body label {
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.modal-body .form-control,
.modal-body .form-select {
  padding: 0.25rem 0.45rem;
  min-height: 32px;
  font-size: 0.82rem;
}

.modal-footer {
  border-top: 1px solid rgba(0,0,0,0.05);
  padding: 0.6rem 1rem;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(245,245,247,0.6);
  border-bottom-left-radius: 0.6rem;
  border-bottom-right-radius: 0.6rem;
}

.modal-footer .btn {
  min-width: 75px;
  border-radius: 0.45rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  font-size: 0.82rem;
}

.modal-backdrop.show { opacity: 0.35; }

.modal-dialog-scrollable .modal-content {
  max-height: calc(100vh - 3.5rem);
}
.modal-dialog-scrollable .modal-body {
  max-height: calc(100vh - 12rem);
  overflow-y: auto !important;
}
.modal-dialog.modal-lg {
  max-width: 800px;
}

@media (max-width: 576px) {
  .hero {
    padding: 2rem 1rem;
  }
  .dt-settings-nav .nav-link {
    font-size: 0.8rem;
    padding: 0.4rem 0.7rem;
  }
  .dt-alert {
    left: 1rem;
    right: 1rem;
    min-width: auto;
  }
}

/* Spectacular orders table */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 7px;
    color: #188446;
    background: #e8f8ee;
    font-size: 10px;
    font-weight: 700;
}

.status-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-badge.status-pending {
    color: #b17800;
    background: #fff7d1;
}

.status-badge.status-failed {
    color: #b91c1c;
    background: #fee2e2;
}

.orders-table {
    border-collapse: separate;
    border-spacing: 0 0.2rem;
    width: 100%;
    background: transparent;
}

.orders-table thead th {
    background: #30c3da;
    color: #fff;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 8px 10px;
    font-size: 9px;
    white-space: nowrap;
}

.orders-table thead th:first-child {
    border-radius: 6px 0 0 6px;
}

.orders-table thead th:last-child {
    border-radius: 0 6px 6px 0;
}

.orders-table tbody tr {
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
    transition: transform .18s ease, box-shadow .18s ease;
}

.orders-table tbody tr:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(48, 195, 218, 0.12);
}

.orders-table tbody td {
    padding: 8px 10px;
    border: none;
    vertical-align: middle;
    font-size: 11px;
    color: #334155;
}

.orders-table tbody td:first-child {
    border-radius: 6px 0 0 6px;
}

.orders-table tbody td:last-child {
    border-radius: 0 6px 6px 0;
}

.orders-table .order-ref {
    font-weight: 700;
    color: #30c3da;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.orders-table .order-ref:hover {
    text-decoration: underline;
}

.orders-table .order-total {
    font-weight: 700;
    color: #30c3da;
    font-size: 12px;
}

.orders-table .order-date {
    color: #64748b;
    font-size: 10px;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dt-dark);
    color: #fff;
    z-index: 9999;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.15);
    padding: 8px 0;
}

.text-dt-primary { color: var(--dt-primary) !important; }

.alert-dt-primary {
    color: #8a2c42;
    background-color: #fff0f3;
    border-color: #f5ccd4;
    border-radius: var(--dt-radius);
}

.package-box {
    padding: 1rem;
    border: 1.5px solid #e9edf1;
    border-radius: 0.75rem;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}

.package-box:has(input.qty-input[value]:not([value="0"])),
.package-box:has(.qty-input[value]:not([value="0"])) {
    border-color: var(--dt-primary);
    box-shadow: 0 0 0 3px rgba(223,92,115,.12);
}

.package-box .input-group .form-control {
    border-left: none;
    border-right: none;
}

.package-box .form-label.small {
    font-weight: 600;
    color: #4b5563;
}

.package-box .small.text-muted {
    line-height: 1.4;
}

.package-box .seat-pill {
    min-width: 54px;
    padding: 0.35rem 0.6rem;
    border-radius: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    transition: all .15s;
}

.package-box .selected-count {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 0.35rem;
    background: #f1f5f9;
    color: #55637a;
    font-size: 0.75rem;
    font-weight: 700;
}

.review-vote-form .btn,
.review-flag-form .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.55rem;
}

.event-countdown {
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

html.dark, html.dark body { background-color: #121212; color: #e0e0e0; }
html.dark .card, html.dark .navbar, html.dark .footer, html.dark .dt-footer { background-color: #1e1e1e; color: #e0e0e0; }
html.dark a { color: #ff7a9a; }
html.dark .text-muted { color: #aaa !important; }
html.dark .form-control, html.dark .form-select { background-color: #2a2a2a; color: #e0e0e0; border-color: #444; }

.ticket-cart-list {
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
}

.ticket-cart-list::-webkit-scrollbar {
    width: 5px;
}

.ticket-cart-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.ticket-package-item {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid #edf0f4;
}

.ticket-package-item:last-child {
    border-bottom: none;
}

.ticket-package-name {
    font-size: 0.92rem;
    color: #1e293b;
}

.ticket-package-price {
    font-size: 0.9rem;
    white-space: nowrap;
}

.ticket-cart-group {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 0.35rem 0.5rem;
    background: rgba(255,255,255,.92);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--dt-primary);
    border-bottom: 1px solid #edf0f4;
    backdrop-filter: blur(3px);
}

html.dark .ticket-cart-group {
    background: rgba(30,30,30,.92);
    border-color: #333;
}

.package-detail {
    background: #f8fafc;
    border-radius: 0.5rem;
    padding: 0.75rem;
}

html.dark .package-detail {
    background: #222;
}

.package-toggle {
    text-decoration: none;
    font-size: 0.75rem;
    color: #64748b;
}

.package-toggle:hover {
    color: var(--dt-primary);
}

.ticket-qty {
    width: 100px;
    min-width: 100px;
}

