/* ===== PasaRun USER STYLES ===== */

/* Root Variables */
:root {
  --primary-gradient: linear-gradient(135deg, #a2d2ff 0%, #ffafcc 100%);
  --secondary-gradient: linear-gradient(135deg, #caffbf 0%, #ffd6a5 100%);
  --accent-gradient: linear-gradient(135deg, #FEEBF6 0%, #EBD6FB 100%);
  --soft-blue: #a2d2ff;
  --soft-pink: #ffafcc;
  --light-bg: #fdfdfd;
  --text-muted: #7a7a9d;
}

/* Base Styles */
body {
  font-family: 'Poppins', sans-serif;
  background: var(--light-bg);
  color: #2d3748;
  padding-bottom: 80px;
}

.app-container {
  max-width: 550px;
  margin: 0 auto;
  min-height: 100vh;
  background: white;
  box-shadow: 0 0 20px rgba(162, 210, 255, 0.1);
}

/* Header */
.header {
  background: var(--primary-gradient);
  color: white;
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 4px 20px rgba(162, 210, 255, 0.3);
}
.header h1 {
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0;
}
.header .auth-links a {
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
  margin-left: 10px;
  text-decoration: underline;
}

/* Main Content */
.main-content {
  padding: 1rem;
  min-height: calc(100vh - 140px);
}

/* Footer */
.footer {
  background: rgba(255, 154, 158, 0.05);
  padding: 1rem;
  border-top: 1px solid rgba(162, 210, 255, 0.1);
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 550px;
  background: white;
  border-top: 1px solid rgba(162, 210, 255, 0.1);
  z-index: 1000;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 25px rgba(162, 210, 255, 0.15);
}
.bottom-nav .nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.75rem 0.5rem;
  text-align: center;
  border-radius: 15px;
  margin: 0.25rem;
}
.bottom-nav .nav-link.active {
  background: var(--primary-gradient);
  color: white !important;
  font-weight: 600;
}
.bottom-nav .nav-link i {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

/* ===== EDIT PROFILE STYLES ===== */

.profile-container {
  padding: 2rem 1.5rem;
}

.profile-container h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--soft-blue);
  text-align: center;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-form label {
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.profile-form input,
.profile-form select,
.profile-form textarea {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(162, 210, 255, 0.4);
  border-radius: 12px;
  font-size: 0.95rem;
  width: 100%;
  transition: all 0.3s ease;
}

.profile-form input:focus,
.profile-form select:focus,
.profile-form textarea:focus {
  outline: none;
  border-color: var(--soft-pink);
  box-shadow: 0 0 10px rgba(255, 175, 204, 0.2);
}

.profile-form button {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 12px;
  background: var(--primary-gradient);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.profile-form button:hover {
  background: var(--soft-pink);
  box-shadow: 0 4px 15px rgba(255, 175, 204, 0.3);
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.profile-actions a.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.profile-actions a.btn-outline-custom {
  border: 2px solid var(--soft-blue);
  color: var(--soft-blue);
}

.profile-actions a.btn-outline-custom:hover {
  background: var(--soft-blue);
  color: white;
}

.profile-actions a.btn-outline-warning {
  border: 2px solid #ffafcc;
  color: #ffafcc;
}

.profile-actions a.btn-outline-warning:hover {
  background: #ffafcc;
  color: white;
}

.profile-actions a.btn-outline-info {
  border: 2px solid var(--accent-gradient);
  color: var(--accent-gradient);
}

.profile-actions a.btn-outline-info:hover {
  background: var(--accent-gradient);
  color: white;
}

/* Success & error messages */
.profile-container .success-message {
  background: rgba(162, 210, 255, 0.15);
  color: var(--soft-blue);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  text-align: center;
}

.profile-container .error-message {
  background: rgba(255, 175, 204, 0.15);
  color: #ff4d6d;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  text-align: center;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 1rem;
}

.form-actions .btn {
  flex: 1;
  padding: 0.7rem;
  border-radius: 12px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  border: none;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background: var(--secondary-gradient);
  color: #333;
  border: none;
}

.btn-secondary:hover {
  opacity: 0.9;
}

/* ===== FAQ STYLES ===== */

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(162, 210, 255, 0.08);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question h6 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0;
}

.faq-answer {
  display: none;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #edf2f7;
}

.faq-answer p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.faq-question:hover {
  background: rgba(162, 210, 255, 0.07);
  border-radius: 12px;
  padding: 0.5rem;
  margin: -0.5rem;
}

.faq-icon {
  font-size: 1rem;
  color: var(--soft-pink);
  transition: transform 0.3s ease;
}

.faq-icon.rotated {
  transform: rotate(180deg);
}

/* Category Buttons */
.category-btn {
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.category-btn.active {
  background: var(--primary-gradient) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(162, 210, 255, 0.3);
}

.category-btn:not(.active):hover {
  background: #f9fafb;
  border-color: var(--soft-blue);
  color: #2d3748;
}

/* Contact Support Card */
.faq-support-card {
  background: var(--accent-gradient);
  border-radius: 16px;
  padding: 1.2rem;
  color: white;
  text-align: center;
}

.faq-support-card h6 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.faq-support-card p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.faq-support-card .btn {
  font-weight: 600;
  border-radius: 12px;
  padding: 0.5rem 1rem;
}

/* Hapus border default Bootstrap card */
.card.custom-card {
  border: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* kasih shadow lembut */
  border-radius: 16px; /* biar sudut lebih smooth */
}

/* Tambahin spacing antar card */
.card.custom-card + .card.custom-card {
  margin-top: 1rem;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--primary-gradient); /* Gradient pink-biru */
  color: white !important;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: 12px;
  padding: 0.6rem 1.2rem;
  box-shadow: 0 4px 12px rgba(162, 210, 255, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-whatsapp:hover {
  background: var(--secondary-gradient);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 175, 204, 0.4);
}

/* Notification Container */
.notification-container {
    position: relative;
    width: 100%;
    max-width: 400px; /* Sesuaikan dengan lebar kartu profil */
    margin: 1rem auto 0;
    padding: 0;
}

.notification {
    background-color: #d4edda;
    color: #155724;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease-out;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    max-width: 400px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* --- EVENT CONTAINER TANPA GARIS --- */
.event-container {
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  backdrop-filter: blur(10px); /* Efek glassmorphism (opsional) */
  background: rgba(255, 255, 255, 0.85);
}

.event-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.event-container img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

.event-title {
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.4;
  margin: 0.5rem 0;
  color: #2d2d44;
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.event-meta i {
  margin-right: 0.25rem;
  font-size: 0.95rem;
  color: #6c757d;
}

.event-description {
  font-size: 0.9rem;
  color: #6c757d;
  line-height: 1.5;
  margin: 0.5rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-price {
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.event-price .badge {
  font-size: 0.85rem;
  padding: 0.35rem 0.6rem;
}

.event-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f0f0f0; /* Garis tipis saja, bukan tebal */
}

.event-footer .participants {
  font-size: 0.85rem;
  color: #6c757d;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* --- ANIMASI TOMBOL --- */
.btn-event-action {
  background: linear-gradient(135deg, #FEEBF6, #caffbf);
  color: #2d2d44 !important;
  border: none;
  border-radius: 12px;
  padding: 0.4rem 0.8rem;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(162, 210, 255, 0.2);
}

.btn-event-action:hover {
  background: linear-gradient(135deg, #EBD6FB, #FEEBF6);
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(162, 210, 255, 0.3);
}

.btn-event-action:active {
  transform: scale(0.98);
}

/* --- REGISTRATION ITEM CONTAINER --- */
.registration-container {
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.registration-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.registration-title {
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.4;
  margin: 0.25rem 0 0.5rem;
  color: #2d2d44;
}

.registration-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.registration-meta i {
  margin-right: 0.25rem;
  font-size: 0.95rem;
  color: #6c757d;
}

.registration-status {
  margin: 0.75rem 0;
}

/* --- ANIMASI TOMBOL --- */
.btn-registration-action {
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.45rem 0.8rem;
  border-radius: 12px;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  text-decoration: none;
  flex: 1;
}

.btn-registration-action:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.btn-registration-action:active {
  transform: scale(0.98);
}

/* Tombol Detail */
.btn-detail {
  background: linear-gradient(135deg, #FEEBF6, #caffbf);
  color: #2d2d44 !important;
  border: none;
  box-shadow: 0 2px 6px rgba(162, 210, 255, 0.2);
}

.btn-detail:hover {
  background: linear-gradient(135deg, #EBD6FB, #FEEBF6);
  box-shadow: 0 4px 12px rgba(162, 210, 255, 0.3);
}

/* Tombol Bayar */
.btn-pay {
  background: linear-gradient(135deg, #caffbf, #a2d2ff);
  color: #2d2d44 !important;
  border: none;
  box-shadow: 0 2px 6px rgba(106, 191, 150, 0.25);
}

.btn-pay:hover {
  background: linear-gradient(135deg, #a2d2ff, #caffbf);
  box-shadow: 0 4px 12px rgba(106, 191, 150, 0.35);
}

/* Responsif: tombol stack di mobile */
@media (max-width: 576px) {
  .registration-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* --- EVENT CONTAINER - FLEX LAYOUT --- */
.event-container {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  align-items: stretch;
}

.event-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

/* Foto Event */
.event-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

/* Informasi Event */
.event-info {
  flex: 1;
  min-width: 0; /* Agar teks tidak overflow */
}

.event-title {
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.4;
  margin: 0.25rem 0;
  color: #2d2d44;
  word-wrap: break-word;
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.event-meta i {
  margin-right: 0.25rem;
  font-size: 0.95rem;
  color: #6c757d;
}

.event-description {
  font-size: 0.9rem;
  color: #6c757d;
  line-height: 1.5;
  margin: 0.5rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-price {
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.event-price .badge {
  font-size: 0.85rem;
  padding: 0.35rem 0.6rem;
}

.event-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f0f0f0;
}

.event-footer .participants {
  font-size: 0.85rem;
  color: #6c757d;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* --- ANIMASI TOMBOL --- */
.btn-event-action {
  background: linear-gradient(135deg, #FEEBF6, #caffbf);
  color: #2d2d44 !important;
  border: none;
  border-radius: 12px;
  padding: 0.4rem 0.8rem;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(162, 210, 255, 0.2);
}

.btn-event-action:hover {
  background: linear-gradient(135deg, #EBD6FB, #FEEBF6);
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(162, 210, 255, 0.3);
}

.btn-event-action:active {
  transform: scale(0.98);
}

/* RESPONSIF: MOBILE - FOTO DI ATAS, INFO DI BAWAH */
@media (max-width: 767px) {
    .event-container {
      flex-direction: column;
      gap: 0.75rem;
    }

    @media (min-width: 768px) {
    .event-image {
      width: 150px;
      height: 150px;
    }
  }
}

/* ===================================
   📱 Ticket Detail Page Styles
   =================================== */

/* Card Container */
.ticket-card {
    max-width: 680px;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Header Section */
.ticket-header {
    background: var(--primary-gradient);
    padding: 2rem 1.5rem;
    color: white;
    position: relative;
}

.ticket-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.ticket-header > * {
    position: relative;
    z-index: 1;
}

.event-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.status-badge.confirmed {
    background-color: #10b981;
    color: white;
}

.status-badge.pending {
    background-color: #fbbf24;
    color: #78350f;
}

.status-badge.cancelled {
    background-color: #ef4444;
    color: white;
}

/* Event Info */
.event-info {
    margin-top: 1.5rem;
}

.event-info p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    opacity: 0.95;
}

.event-info i {
    margin-right: 0.5rem;
}

/* QR Code Section */
.qr-section {
    padding: 2rem 1.5rem;
    background-color: #f9fafb;
    border-top: 2px dashed #e5e7eb;
    border-bottom: 2px dashed #e5e7eb;
}

.qr-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.qr-container {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.qr-image {
    max-width: 220px;
    height: auto;
    border-radius: 12px;
}

.qr-caption {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

.qr-alert {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
}

/* Details Table */
.details-table {
    margin-bottom: 0;
}

.details-table tr {
    border-bottom: 1px solid #e5e7eb;
}

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

.details-table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #374151;
    padding: 1rem 1.25rem;
    vertical-align: middle;
    width: 35%;
    font-size: 0.9rem;
}

.details-table td {
    padding: 1rem 1.25rem;
    color: #1f2937;
    font-size: 0.95rem;
    vertical-align: middle;
}

/* Race Pack Status */
.race-pack-collected {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #059669;
    font-weight: 600;
}

.race-pack-pending {
    color: #6b7280;
}

.race-pack-info {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background-color: #f0f9ff;
    border-left: 3px solid #3b82f6;
    border-radius: 4px;
    font-size: 0.875rem;
}

.race-pack-info strong {
    color: #1e40af;
}

/* Action Buttons */
.action-buttons {
    padding: 1.5rem;
    background-color: #ffffff;
    gap: 1rem;
}

.btn-back {
    background-color: #6b7280;
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-back:hover {
    background-color: #4b5563;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-payment {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-payment:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* Responsive */
@media (max-width: 576px) {
    .ticket-card {
        margin: 0.5rem;
        border-radius: 12px;
    }
    
    .ticket-header {
        padding: 1.5rem 1rem;
    }
    
    .event-title {
        font-size: 1.4rem;
    }
    
    .qr-section {
        padding: 1.5rem 1rem;
    }
    
    .qr-image {
        max-width: 180px;
    }
    
    .details-table th,
    .details-table td {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .action-buttons .btn {
        width: 100% !important;
        margin: 0 !important;
    }
}

/* public/css/registration-detail.css */

.registration-card {
    max-width: 650px;
    border-radius: 12px;
    overflow: hidden;
}

/* Bagian atas (event info + QR) */
.event-header {
    padding: 24px;
    text-align: center;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.event-header h4 {
    font-weight: 700;
    margin-bottom: 8px;
    color: #212529;
}

.event-header .badge {
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.event-header p {
    margin: 6px 0;
    color: #6c757d;
}

.event-header i {
    margin-right: 4px;
}

/* QR Code Section */
.qr-section {
    padding: 16px 24px;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
}

.qr-section img {
    max-width: 200px;
    height: auto;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.qr-section .text-danger {
    font-size: 0.85rem;
    margin-top: 8px;
}

/* Detail Info (No. BIB, Kategori, dll) */
.detail-section {
    padding: 20px 24px;
    border-bottom: 1px solid #dee2e6;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f1f3f5;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #495057;
    width: 35%;
}

.detail-value {
    font-weight: 500;
    color: #212529;
    width: 65%;
    text-align: right;
}

.detail-value .text-success {
    font-weight: 600;
}

/* Foto Section */
.photo-section {
    padding: 20px 24px;
    border-bottom: 1px solid #dee2e6;
}

.photo-section h6 {
    font-weight: 600;
    margin-bottom: 12px;
    color: #212529;
}

.photo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.photo-item {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    max-width: 100px;
}

.photo-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.photo-item img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* Tombol Aksi - DITENGAHKAN & DIPERBESAR */
.actions-section {
    padding: 24px 20px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.btn-action {
    min-width: 180px;
    padding: 14px 20px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.btn-secondary {
    background: linear-gradient(135deg, #caffbf, #ffd6a5);
    color: #212529;
    border: none;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #aefc9e rgb(246, 185, 5));
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Tombol Lanjutkan Pembayaran - Kuning */
.btn-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
    border: none;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e0a800, #d39e00);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-secondary:hover,
.btn-warning:hover {
    opacity: 0.9;
}

.photo-thumbnail {
    transition: transform 0.2s ease;
    cursor: pointer;
}

.photo-thumbnail:hover {
    transform: scale(1.05);
}

/* Wrapper untuk kontrol rasio */
.gallery-photo-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 8 / 10; /* Ubah ke 1 / 1 jika ingin kotak */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 2px 4px 8px rgba(0,0,0,0.1);
}

/* Gaya foto di dalam wrapper */
.gallery-photo {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Potong & sesuaikan tanpa distorsi */
    transition: transform 0.2s ease;
}

.gallery-photo:hover {
    transform: scale(1.03);
}

    .btn {
        transition: all 0.25s ease;
        will-change: transform, box-shadow;
    }

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

    .btn:active {
        transform: translateY(0);
    }

    /* Tambahan: efek saat fokus (untuk aksesibilitas) */
    .btn:focus-visible {
        outline: 2px solid rgba(13, 110, 253, 0.5);
        outline-offset: 2px;
    }

        #termsModal .modal-body ul {
        padding-left: 1.25rem;
        margin-bottom: 0.75rem;
    }
    #termsModal .modal-body h6 {
        color: #495057;
    }

    .btn-outline-custom {
  color: #9b7dd4; /* warna ungu dari var(--accent-gradient) */
  border-color: #9b7dd4;
  border-radius: 15px;
}

.btn-outline-custom:hover {
  color: white;
  background: var(--accent-gradient);
  border-color: #9b7dd4;
} 

/* Untuk memastikan overlay teks tetap rapi di mobile */
.card-header-event-overlay {
    padding: 1rem;
}

@media (max-width: 768px) {
    .card-header-event-overlay {
        padding: 0.75rem;
    }
    .card-header-event-overlay h3 {
        font-size: 1.2rem;
    }
}

.modal-trigger-link {
    color: inherit !important;
    text-decoration: none !important;
    border-bottom: 1px dotted var(--bs-gray-600);
    padding-bottom: 2px;
    transition: border-color 0.2s;
}

.modal-trigger-link:hover {
    color: var(--bs-primary) !important;
    border-bottom-color: var(--bs-primary);
}

/* public/css/registration-detail.css */

.registration-card {
    max-width: 700px;
}

.event-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    text-align: center;
}

.event-header h4 {
    margin-bottom: 0.5rem;
}

.qr-section {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    text-align: center;
}

.detail-section {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.detail-label {
    font-weight: 500;
    color: #6c757d;
}

.detail-value {
    text-align: right;
    font-weight: 500;
}

.actions-section {
    padding: 1.25rem 1.5rem;
    text-align: center;
}

.btn-action {
    margin: 0 0.5rem;
}

/* === Foto Preview & Grid === */

.photo-preview {
    width: 100%;
    text-align: center;
    margin-bottom: 1.5rem;
}

.photo-preview img {
    max-width: 100%;
    max-height: 250px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.2s;
}

.photo-preview img:hover {
    transform: scale(1.02);
}

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

.photo-item {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
}

.photo-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    transition: transform 0.2s;
}

.photo-item:hover img {
    transform: scale(1.05);
}

.photo-meta {
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 2px 4px;
    border-radius: 4px;
    position: absolute;
    bottom: 4px;
    left: 4px;
    right: 4px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* === Modal Photo (sama seperti galeri) === */

#photoModal .modal-body img {
    max-height: 80vh;
    object-fit: contain;
}

a.text-reset:hover {
    color: inherit !important;
    text-decoration: none !important;
}

/* Leaderboard Styles */
.leaderboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* Event Header Card */
.event-header {
    background: linear-gradient(135deg, #EBD6FB, rgb(153, 188, 241));
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(162, 210, 255, 0.3);
}

.event-header h2 {
    font-size: 1.5rem; /* lebih kecil */
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.event-header .category {
    font-size: 0.9rem; /* lebih kecil */
    opacity: 0.9;
}

.user-position-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Segoe UI', sans-serif;
}

/* Leaderboard Table */
.leaderboard-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.leaderboard-card .card-header {
    border-bottom: 1px solid #e9ecef;
    padding: 0.75rem 1.5rem;
}

.leaderboard-card .card-header h5 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.leaderboard-table {
    font-size: 0.875rem; /* ukuran font lebih kecil */
    margin: 0;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 0.75rem 1rem; /* lebih kecil dari default */
    vertical-align: middle;
}

.leaderboard-table th {
    font-weight: 600;
    text-transform: none;
    font-size: 0.9rem;
    background-color: #f8f9fa;
    border-top: none;
    border-bottom: 2px solid #dee2e6;
}

.leaderboard-table td {
    border-top: 1px solid #dee2e6;
}

/* Participant Name Styling */
.participant-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.participant-icon {
    font-size: 1rem;
    color: #6c757d;
}

/* Position Badge */
.position-badge {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.875rem;
}

.position-number {
    font-size: 0.875rem;
    font-weight: 600;
}

.top-3 {
    color: white;
    font-weight: bold;
    font-size: 0.875rem;
}

.top-3.gold {
    background: linear-gradient(135deg, #FFD700, #fdc151);
}

.top-3.silver {
    background: linear-gradient(135deg, #C0C0C0, #A9A9A9);
}

.top-3.bronze {
    background: linear-gradient(135deg, #db9b5b, #B87333);
}

/* Time Badge */
.time-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
}

.time-badge i {
    font-size: 0.875rem;
}

/* User Row Highlight */
.user-row {
    background-color: #e3f2fd !important;
    border-left: 4px solid #a2d2ff;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.empty-state-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #adb5bd;
}

.empty-state-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Halaman Hasil Acara - Leaderboard Index */
.list-group-item-action {
    transition: all 0.2s ease;
}

.list-group-item-action:hover {
    background-color: #f8f9ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.list-group-item-action.rounded-2 {
    border-radius: 10px !important;
}

.custom-alert {
    background: rgba(162, 210, 255, 0.12);
    border: 1px solid rgba(162, 210, 255, 0.25);
    color: #2d3748;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.custom-alert i {
    font-size: 1.2rem;
    color: var(--soft-blue);
}

/* Tombol utama — sesuai gaya PasaRun */
.btn-action-primary {
    background: var(--primary-gradient);
    color: #2d2525 !important;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(162, 210, 255, 0.25);
    transition: all 0.25s ease;
}

.btn-action-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(162, 210, 255, 0.35);
}

/* public/css/registration-success.css */

.success-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    text-align: center;
}

.success-icon {
    font-size: 5rem;
    color: #28a745;
    margin-bottom: 1rem;
    animation: scaleIn 0.5s ease-in-out;
}

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

.success-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 1rem;
}

.success-message {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

.registration-detail-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
    border: 1px solid #f1f3f5;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

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

.detail-label {
    font-weight: 600;
    color: #495057;
}

.detail-value {
    color: #212529;
}

.qr-code-box {
    background: white;
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.qr-code-box img {
    max-width: 250px;
    height: auto;
    margin: 1rem 0;
}

/* Alert custom — pakai warna dari sistem kamu */
.custom-alert {
    background: rgba(162, 210, 255, 0.12);
    border: 1px solid rgba(162, 210, 255, 0.25);
    color: #2d3748;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.custom-alert i {
    font-size: 1.2rem;
    color: var(--soft-blue);
}

/* Tombol "Lihat Detail Tiket" — Putih dengan border soft pink */
.btn-action-primary {
    background: white;
    color: #d81b60 !important;
    border: 1px solid #ffcdd2;
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: all 0.25s ease;
}

.btn-action-primary:hover {
    background: #fff3f3;
    border-color: #ff80ab;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 128, 171, 0.15);
}

/* Tombol "Daftar Tiket Saya" — Putih dengan border soft gray */
.btn-action-outline {
    background: white;
    color: #495057 !important;
    border: 1px solid #ced4da;
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-action-outline:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    transform: translateY(-2px);
}

/* Tombol "Kembali ke Daftar Event" — Kotak putih dengan ikon panah */
.btn-back {
    background: white;
    color: #495057 !important;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-back:hover {
    background: #f8f9fa;
    border-color: #ced4da;
    transform: translateY(-1px);
}

/* ===== STYLE KHUSUS SELECT UNTUK PASARUN - WARNA UNGU PASTEL ===== */

.select-custom-purple {
  /* Warna dasar sesuai tombol "Lihat Event Lainnya" */
  color: #9b7dd4; /* ungu pastel */
  border: 1px solid #9b7dd4;
  background-color: white;
  border-radius: 15px;
  padding: 0.375rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;

  /* Hilangkan tampilan default browser */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  /* Tambahkan ikon panah custom */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%239b7dd4' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px 12px;
  padding-right: 2.5rem; /* Beri ruang untuk ikon panah */
}

/* Hover effect */
.select-custom-purple:hover {
  border-color: #8a6bbd;
  box-shadow: 0 0 0 0.1rem rgba(155, 125, 212, 0.2);
}

/* Focus effect (saat diklik) */
.select-custom-purple:focus {
  outline: none;
  border-color: #9b7dd4;
  box-shadow: 0 0 0 0.2rem rgba(155, 125, 212, 0.25);
}

/* Saat dropdown terbuka (untuk Chrome/Edge) */
.select-custom-purple:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(155, 125, 212, 0.25);
}

/* Untuk Firefox - hilangkan border saat focus */
.select-custom-purple:-moz-focusring {
  color: transparent;
  text-shadow: 0 0 0 #9b7dd4;
}

/* Style untuk option di dalam select */
.select-custom-purple option {
  background: white;
  color: #2d3748;
  padding: 0.5rem;
  font-size: 0.95rem;
}

/* Saat option dipilih */
.select-custom-purple option:checked {
  background: #9b7dd4; /* ungu tua seperti di gambar */
  color: white;
}

@media (max-width: 768px) {
  .select-custom-purple {
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
  }
}

/* ===== STYLE KHUSUS INPUT & SELECT UNTUK PASARUN - WARNA UNGU PASTEL ===== */

/* --- INPUT SEARCH CUSTOM --- */
.input-custom-purple {
  color: #9b7dd4;
  border: 1px solid #9b7dd4;
  background-color: white;
  border-radius: 15px;
  padding: 0.375rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: none;

  /* Hilangkan outline default saat focus */
  outline: none;
}

.input-custom-purple:focus {
  border-color: #9b7dd4;
  box-shadow: 0 0 0 0.2rem rgba(155, 125, 212, 0.25);
}

.input-custom-purple::placeholder {
  color: #b8a5d4; /* ungu muda lebih pudar */
  opacity: 1;
}

/* --- SELECT CUSTOM UNTUK FILTER --- */
.select-custom-purple {
  color: #9b7dd4;
  border: 1px solid #9b7dd4;
  background-color: white;
  border-radius: 15px;
  padding: 0.375rem 0.75rem;
  font-size: 0.95rem; /* Jangan terlalu kecil! */
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;

  /* Hilangkan tampilan default browser */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  /* Tambahkan ikon panah custom */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%239b7dd4' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px 12px;
  padding-right: 2.5rem; /* Beri ruang untuk ikon panah */
}

/* Hover effect */
.select-custom-purple:hover {
  border-color: #8a6bbd;
  box-shadow: 0 0 0 0.1rem rgba(155, 125, 212, 0.2);
}

/* Focus effect */
.select-custom-purple:focus {
  outline: none;
  border-color: #9b7dd4;
  box-shadow: 0 0 0 0.2rem rgba(155, 125, 212, 0.25);
}

/* Style untuk option di dalam select */
.select-custom-purple option {
  background: white;
  color: #2d3748;
  padding: 0.5rem;
  font-size: 0.95rem;
}

/* Saat option dipilih */
.select-custom-purple option:checked {
  background: #9b7dd4;
  color: white;
}

/* ===== STYLE COMPACT UNTUK INPUT & BUTTON SEARCH — SERAGAM UNGU PASTEL ===== */

.search-container {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  width: 100%;
}

.input-search-compact {
  color: #9b7dd4;
  border: 1px solid #9b7dd4;
  background-color: white;
  border-radius: 15px 0 0 15px; /* Bulat kiri saja */
  padding: 0.375rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: none;
  outline: none;
  flex: 1; /* Ambil ruang tersisa */
  min-width: 120px;
}

.input-search-compact:focus {
  border-color: #9b7dd4;
  box-shadow: 0 0 0 0.2rem rgba(155, 125, 212, 0.25);
}

.input-search-compact::placeholder {
  color: #b8a5d4;
  opacity: 1;
}

.btn-search-compact {
  background: white;
  border: 1px solid #9b7dd4;
  color: #9b7dd4;
  border-radius: 0 15px 15px 0; /* Bulat kanan saja */
  padding: 0.375rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  white-space: nowrap;
  box-shadow: none;
  outline: none;
}

.btn-search-compact:hover {
  background: #f8f4fc;
  border-color: #9b7dd4;
  color: #9b7dd4;
  transform: translateY(-1px);
}

.btn-search-compact:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(155, 125, 212, 0.25);
}

.btn-search-compact i {
  font-size: 1rem;
}

/* ===== SELECT DENGAN STYLING UNGU TAPI TETAP NATIVE ===== */

.select-wrapper-purple {
  position: relative;
  display: flex;
  align-items: center;
}

.select-wrapper-purple::after {
  content: "▼";
  font-size: 0.6rem;
  color: #9b7dd4;
  position: absolute;
  right: 12px;
  pointer-events: none; /* Biar tidak ganggu klik */
  transform: scaleY(0.6);
}

.native-select {
  color: #9b7dd4 !important;
  border: 1px solid #9b7dd4 !important;
  background-color: white !important;
  border-radius: 15px !important;
  padding: 0.375rem 0.75rem !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  appearance: auto; /* Biarkan native arrow tetap ada (tapi kita sembunyikan via overflow) */
  -webkit-appearance: auto;
  -moz-appearance: auto;
  width: 100%;
  cursor: pointer;
  outline: none;
  box-shadow: none;
}

.native-select:focus {
  border-color: #9b7dd4 !important;
  box-shadow: 0 0 0 0.2rem rgba(155, 125, 212, 0.25) !important;
}

.native-select option {
  color: #2d3748;
  background: white;
}

#filterForm .form-select {
  color: #9b7dd4;
  border: 1px solid #9b7dd4;
  border-radius: 15px;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
}

/* ===== INPUT GROUP UNTUK SEARCH — WARNA UNGU PASTEL ===== */

.input-group-custom-purple {
  border: 1px solid #9b7dd4;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: none;
}

.input-group-custom-purple .form-control {
  color: #9b7dd4;
  border: none;
  padding: 0.375rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border-radius: 0; /* Biar tidak bulat di ujung */
}

.input-group-custom-purple .form-control:focus {
  outline: none;
  box-shadow: none;
  border-color: transparent;
}

.input-group-custom-purple .btn {
  background: white;
  border: none;
  color: #9b7dd4;
  padding: 0.375rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border-radius: 0 15px 15px 0; /* Bulat kanan saja */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 40px;
}

.input-group-custom-purple .btn:hover {
  background: #f8f4fc;
  color: #9b7dd4;
  transform: translateY(-1px);
}

.input-group-custom-purple .btn:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(155, 125, 212, 0.25);
}

/* === STYLE UNTUK HALAMAN DETAIL TIKET - MINIMALIS ABU MUDA DENGAN 1 GARIS PUTUS-PUTUS === */
.registration-card {
    max-width: 500px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    background: #f8f9fa; /* Abu muda lembut */
}

/* Header Event - Abu Muda Gelap */
.event-header {
    background: #f1f3f5; /* Abu muda lebih gelap */
    color: #2d2d44;
    padding: 1.5rem 1.25rem;
    text-align: center;
    position: relative;
    border-bottom: 2px dashed #dee2e6; /* HANYA SATU GARIS — di bawah header */
}
.event-header h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}
.event-header .badge {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    font-weight: 600;
    border-radius: 12px;
    margin: 0.25rem 0;
    display: inline-block;
    background: #e9ecef; /* Abu muda sangat pudar */
    color: #495057;
    border: 1px solid #dee2e6;
}
.event-header p {
    font-size: 0.9rem;
    margin: 0.25rem 0;
    opacity: 0.9;
    color: #6c757d;
}
.event-header i {
    margin-right: 0.25rem;
    font-size: 0.9rem;
    color: #6c757d;
}

/* QR Code Section — TIDAK ADA border-top & border-bottom */
.qr-section {
    padding: 0.75rem 1.5rem; /* KURANGI PADDING-TOP AGAR MENEMPEL KE HEADER */
    text-align: center;
    /* border-top: 2px dashed #dee2e6; <-- DIHAPUS */
    /* border-bottom: 2px dashed #dee2e6; <-- DIHAPUS */
}
.qr-section .fw-bold {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #495057;
}
.qr-section img {
    max-width: 180px;
    height: auto;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.qr-section .text-muted {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    color: #6c757d;
}

/* Detail Info - Layout Table Sederhana */
.detail-section {
    padding: 1.25rem 1.5rem;
    border-bottom: 2px dashed #dee2e6; /* Garis putus-putus di bawah detail */
}
.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
    color: #212529;
}
.detail-row:last-child {
    border-bottom: none;
}
.detail-label {
    font-weight: 600;
    color: #495057;
    width: 35%;
}
.detail-value {
    font-weight: 500;
    color: #212529;
    width: 65%;
    text-align: right;
    word-break: break-all;
}
.detail-value .text-success {
    font-weight: 600;
    color: #212529;
}

/* Foto Section */
.photo-section {
    padding: 1.25rem 1.5rem;
    border-bottom: 2px dashed #dee2e6; /* Garis putus-putus di bawah foto */
}
.photo-section h6 {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: #212529;
}
.photo-preview {
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
}
.photo-preview img {
    max-width: 100%;
    max-height: 250px;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.2s;
}
.photo-preview img:hover {
    transform: scale(1.02);
}
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
    margin-top: 0.75rem;
}
.photo-item {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
}
.photo-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    transition: transform 0.2s;
}
.photo-item:hover img {
    transform: scale(1.05);
}
.photo-meta {
    font-size: 0.7rem;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 2px 4px;
    border-radius: 4px;
    position: absolute;
    bottom: 4px;
    left: 4px;
    right: 4px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Actions Section */
.actions-section {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.btn-action {
    flex: 1;
    min-width: 120px;
    padding: 0.6rem 0.8rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    border: 1px solid transparent;
}
.btn-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Tombol Kembali — Ungu Pastel */
.btn-back {
    background: linear-gradient(135deg, #FEEBF6, #EBD6FB); /* --accent-gradient */
    color: #2d2d44 !important;
    border-color: #9b7dd4;
}
.btn-back:hover {
    background: linear-gradient(135deg, #EBD6FB, #FEEBF6);
    color: #2d2d44 !important;
    border-color: #8a6bbd;
}

/* Tombol Lanjutkan Pembayaran — Kuning Pastel */
.btn-payment {
    background: linear-gradient(135deg, #ffd6a5, #ffccbc); /* Kuning lembut */
    color: #2d2d44 !important;
    border-color: #ffb760;
}
.btn-payment:hover {
    background: linear-gradient(135deg, #ffccbc, #ffd6a5);
    color: #2d2d44 !important;
    border-color: #ffa84d;
}

/* Responsif */
@media (max-width: 576px) {
    .registration-card {
        margin: 0.5rem;
        border-radius: 12px;
    }
    .event-header {
        padding: 1rem 0.75rem;
    }
    .event-header h4 {
        font-size: 1.1rem;
    }
    .detail-row {
        font-size: 0.85rem;
    }
    .detail-label {
        width: 40%;
    }
    .detail-value {
        width: 60%;
    }
    .actions-section {
        flex-direction: column;
        gap: 0.5rem;
    }
    .btn-action {
        width: 100% !important;
        margin: 0;
    }
}