/* Bilet yönetimi — etkinlik detay & talep tablosu (light) */

.admin-tickets-wrap {
  width: 100%;
  max-width: none;
}

.admin-ticket-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--admin-border);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.admin-ticket-hero__main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
  flex: 1 1 20rem;
}

.admin-ticket-hero__cover {
  width: 4.5rem;
  height: 4.5rem;
  flex-shrink: 0;
  border-radius: var(--admin-radius-sm);
  border: 1px solid var(--admin-border);
  overflow: hidden;
  background: var(--admin-inset-bg);
}

.admin-ticket-hero__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-ticket-hero__title {
  margin: 0;
  font-family: var(--admin-font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--admin-text);
  line-height: 1.3;
}

.admin-ticket-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 0.65rem;
}

.admin-ticket-hero__stat {
  font-size: 0.75rem;
  color: var(--admin-muted);
}

.admin-ticket-hero__stat strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--admin-text);
  font-variant-numeric: tabular-nums;
}

.admin-ticket-hero__invest {
  flex-shrink: 0;
  text-align: right;
  padding: 0.75rem 1rem;
  border-radius: var(--admin-radius);
  border: 1px solid rgba(245, 158, 11, 0.3);
  background: linear-gradient(160deg, rgba(254, 243, 199, 0.85), rgba(255, 251, 235, 0.95));
}

.admin-ticket-hero__invest-label {
  margin: 0;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #92400e;
}

.admin-ticket-hero__invest-value {
  margin: 0.25rem 0 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #b45309;
  font-variant-numeric: tabular-nums;
}

.admin-ticket-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--admin-border);
  background: var(--admin-surface);
  padding: 0 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-ticket-tab {
  appearance: none;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0.85rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--admin-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}

.admin-ticket-tab:hover {
  color: var(--admin-text);
}

.admin-ticket-tab--active {
  color: var(--admin-accent);
  border-bottom-color: var(--admin-accent);
}

.admin-ticket-tab__badge {
  display: inline-flex;
  margin-left: 0.35rem;
  min-width: 1.15rem;
  justify-content: center;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.2);
  padding: 0.05rem 0.4rem;
  font-size: 0.625rem;
  font-weight: 700;
  color: #92400e;
}

.admin-ticket-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--admin-border);
  background: var(--admin-surface-elevated);
}

.admin-ticket-toolbar .admin-input {
  min-width: 10rem;
}

.admin-ticket-status-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.admin-ticket-filter-chip {
  appearance: none;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--admin-muted);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.admin-ticket-filter-chip:hover {
  border-color: var(--admin-border-strong);
  color: var(--admin-text);
}

.admin-ticket-filter-chip--active {
  border-color: rgba(22, 119, 255, 0.35);
  background: rgba(22, 119, 255, 0.08);
  color: #0958d8;
}

.admin-ticket-table-wrap {
  overflow: auto;
  max-height: min(58vh, 640px);
}

.admin-ticket-table {
  width: 100%;
  min-width: 1100px;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.admin-ticket-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 0.65rem 0.75rem;
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--admin-faint);
  background: #f1f5f9;
  border-bottom: 1px solid var(--admin-border);
  white-space: nowrap;
}

.admin-ticket-table tbody td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--admin-border);
  vertical-align: middle;
  color: var(--admin-text);
}

.admin-ticket-table tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.02);
}

.admin-ticket-table tbody tr:hover {
  background: rgba(22, 119, 255, 0.04);
}

.admin-ticket-table .col-check {
  width: 2.5rem;
  text-align: center;
}

.admin-ticket-user-link {
  font-weight: 600;
  color: var(--admin-accent);
  text-decoration: none;
}

.admin-ticket-user-link:hover {
  text-decoration: underline;
  color: var(--admin-accent-hover);
}

.admin-ticket-amount {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.admin-ticket-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.admin-ticket-badge--pending {
  background: rgba(254, 243, 199, 0.9);
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.admin-ticket-badge--approved {
  background: rgba(209, 250, 229, 0.9);
  color: #047857;
  border: 1px solid rgba(5, 150, 105, 0.25);
}

.admin-ticket-badge--rejected {
  background: rgba(254, 226, 226, 0.9);
  color: #e01a1a;
  border: 1px solid rgba(255, 30, 30, 0.2);
}

.admin-ticket-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.admin-ticket-btn-approve {
  border: 1px solid rgba(5, 150, 105, 0.35);
  background: #ecfdf5;
  color: #047857;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: var(--admin-radius-sm);
  cursor: pointer;
  transition: background 0.15s;
}

.admin-ticket-btn-approve:hover {
  background: #d1fae5;
}

.admin-ticket-btn-reject {
  border: 1px solid rgba(255, 30, 30, 0.25);
  background: #fef2f2;
  color: #e01a1a;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.5rem;
  border-radius: var(--admin-radius-sm);
  cursor: pointer;
  transition: background 0.15s;
}

.admin-ticket-btn-reject:hover {
  background: #fee2e2;
}

.admin-ticket-events-grid {
  display: grid;
  gap: 0.75rem;
}

.admin-ticket-event-row-wrap {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.admin-ticket-event-row-wrap .admin-ticket-event-row {
  flex: 1;
  min-width: 0;
}

.admin-ticket-event-row-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.admin-ticket-event-row-edit {
  white-space: nowrap;
  padding: 0.35rem 0.65rem !important;
  font-size: 0.75rem !important;
}

.admin-ticket-event-row-delete {
  align-self: center;
  flex-shrink: 0;
}

.admin-ticket-detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-ticket-detail-head .admin-ticket-back {
  margin-bottom: 0;
}

.admin-ticket-event-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  background: var(--admin-surface);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  text-align: left;
  width: 100%;
}

.admin-ticket-event-row:hover {
  border-color: rgba(22, 119, 255, 0.35);
  box-shadow: 0 4px 20px -12px rgba(22, 119, 255, 0.2);
}

.admin-ticket-event-row__thumb {
  width: 3rem;
  height: 3rem;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--admin-border);
}

.admin-ticket-panel-body {
  padding: 1.25rem;
}

.admin-ticket-back {
  margin-bottom: 1rem;
}


/* —— Etkinlik oluştur formu —— */

.admin-ticket-create-panel__head {
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid var(--admin-border);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.admin-ticket-create-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.admin-ticket-create-section {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--admin-border);
}

.admin-ticket-create-section--cover {
  background: var(--admin-surface-elevated);
}

.admin-ticket-create-section__title {
  margin: 0 0 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--admin-faint);
}

.admin-ticket-create-section__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .admin-ticket-create-section__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-field--full {
    grid-column: 1 / -1;
  }
}

.admin-ticket-create-section__grid--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 900px) {
  .admin-ticket-create-section__grid--4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.admin-field__hint {
  font-size: 0.6875rem;
  color: var(--admin-faint);
  line-height: 1.35;
}

.admin-ticket-create-site-url {
  margin-top: 1rem;
}

.admin-ticket-create-form__actions {
  padding: 1.15rem 1.5rem;
  background: var(--admin-surface);
  border-top: 1px solid var(--admin-border);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-code {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.85em;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--admin-accent);
}


/* —— Kompakt kapak önizleme —— */

.admin-ticket-cover {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--admin-radius);
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
}

@media (min-width: 640px) {
  .admin-ticket-cover {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.25rem;
  }
}

.admin-ticket-cover__preview-col {
  flex-shrink: 0;
  width: 100%;
  max-width: 11.5rem;
}

@media (min-width: 640px) {
  .admin-ticket-cover__preview-col {
    width: 11.5rem;
  }
}

.admin-ticket-cover__preview {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--admin-radius-sm);
  border: 1px solid var(--admin-border);
  background: linear-gradient(145deg, #e2e8f0 0%, #f1f5f9 50%, #e2e8f0 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.admin-ticket-cover__preview--empty .admin-ticket-cover__img {
  opacity: 0.15;
}

.admin-ticket-cover__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-ticket-cover__empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--admin-faint);
  pointer-events: none;
}

.admin-ticket-cover__ratio {
  position: absolute;
  right: 0.35rem;
  bottom: 0.35rem;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.admin-ticket-cover__fields {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-ticket-cover__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--admin-text);
}

.admin-ticket-cover__hint {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--admin-muted);
}

.admin-ticket-cover__url-label {
  display: block;
  margin-top: 0.25rem;
}

.admin-ticket-cover__preview--logo {
  aspect-ratio: auto;
  min-height: 5rem;
  max-height: 6.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1rem;
  background: linear-gradient(165deg, #1a1f2e 0%, #0d1018 100%);
}

.admin-ticket-cover__preview--logo .admin-ticket-cover__img {
  width: auto;
  height: auto;
  max-height: 3.75rem;
  max-width: 100%;
  object-fit: contain;
}

.admin-ticket-cover__preview--logo.admin-ticket-cover__preview--empty .admin-ticket-cover__img {
  opacity: 0;
}

.admin-ticket-cover__url-label .admin-input {
  width: 100%;
}
