/* =============================================================
   TICKIFY CLIENT - Bright Modern Theme
   ============================================================= */

/* ==================== CSS VARIABLES ==================== */
:root {
  --bg-primary: #f0f4ff;
  --bg-secondary: #e8edf8;
  --bg-card: #ffffff;
  --bg-input: #f8faff;
  --bg-topbar: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --bg-topbar-solid: #667eea;
  --bg-sidebar: #1e1e2f;
  --primary: #667eea;
  --primary-light: #8b9cf7;
  --primary-dark: #4c63d2;
  --accent: #f5576c;
  --secondary: #43e97b;
  --success: #43e97b;
  --success-dark: #2bb85e;
  --warning: #ffa726;
  --danger: #f5576c;
  --info: #4fc3f7;
  --text: #2d3748;
  --text-light: #fff;
  --text-muted: #718096;
  --border: #e2e8f0;
  --border-dark: #cbd5e0;
  --border-light: #edf2f7;
  --shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
  --shadow-lg: 0 8px 24px rgba(102, 126, 234, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== RESET ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-primary);
  color: var(--text);
  min-height: 100vh;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}
img {
  max-width: 100%;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ==================== NAVBAR ==================== */
.navbar {
  background: var(--bg-topbar);
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.25);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  letter-spacing: 0.5px;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.nav-links {
  display: flex;
  gap: 4px;
}
.nav-link {
  color: rgba(255, 255, 255, 0.75);
  padding: 8px 16px;
  font-weight: 600;
  font-size: 13px;
  border-radius: 8px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}
.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}
.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 16px;
  right: 16px;
  height: 3px;
  background: #fff;
  border-radius: 3px 3px 0 0;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.user-greeting {
  color: #ddd;
  font-size: 13px;
  font-weight: 600;
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  background: var(--bg-card);
  color: var(--text);
  box-shadow: var(--shadow);
  text-shadow: none;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn:active {
  transform: translateY(0);
}
.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #7b93ff 0%, #8b5fbf 100%);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
}
.btn-success {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  color: #1a3a2a;
  border: none;
  font-weight: 700;
}
.btn-success:hover {
  box-shadow: 0 8px 24px rgba(67, 233, 123, 0.35);
}
.btn-danger {
  background: linear-gradient(135deg, #f5576c 0%, #ff6b81 100%);
  color: #fff;
  border: none;
}
.btn-outline {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: none;
}
.btn-outline:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
}
.btn-lg {
  padding: 13px 26px;
  font-size: 15px;
}
.btn-full {
  width: 100%;
}
.btn-icon {
  background: none;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.btn-icon:hover {
  color: #fff;
  border-color: #fff;
}

/* ==================== FORMS ==================== */
.form-group {
  margin-bottom: 14px;
  text-align: left;
}
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 9px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(52, 73, 94, 0.12);
  background: #fff;
}
.form-select {
  width: 100%;
  padding: 9px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
}
.error-msg {
  color: var(--danger);
  font-size: 12px;
  margin-top: 8px;
  font-weight: 600;
}

/* ==================== PAGES ==================== */
.main-wrapper {
  min-height: calc(100vh - 54px - 60px);
}
.page {
  display: none;
}
.page.active {
  display: block;
}
.section {
  padding: 24px 0;
}

/* ==================== HERO ==================== */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f5576c 100%);
  padding: 70px 0 56px;
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      ellipse at 20% 50%,
      rgba(255, 255, 255, 0.15) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 80% 50%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 60%
    );
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  line-height: 1.2;
}
.gradient-text {
  color: #ffd700;
  text-shadow: 0 2px 12px rgba(255, 215, 0, 0.3);
}
.hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 36px;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.hero-stat {
  text-align: center;
}
.hero-stat span {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.hero-stat label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* ==================== SECTION TITLES ==================== */
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding-bottom: 10px;
  border-bottom: 2px solid transparent;
  background-image:
    linear-gradient(var(--bg-primary), var(--bg-primary)),
    linear-gradient(135deg, var(--primary), var(--accent));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border-bottom: 2px solid var(--primary);
}

/* ==================== EVENT CARDS ==================== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}
.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}
.event-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0;
  transition: var(--transition);
}
.event-card:hover::before {
  opacity: 1;
}
.event-card-header {
  padding: 16px 18px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
.event-card-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.event-card-header .event-date {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}
.event-card-body {
  padding: 16px 18px;
}
.event-card-body p {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 10px;
}
.event-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.event-meta span {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}
.event-card-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-secondary);
}
.event-price {
  font-weight: 800;
  color: var(--accent);
  font-size: 16px;
}
.price-free {
  color: var(--success);
}
.event-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border: 1px solid;
}
.badge-available {
  background: #d5f5e3;
  color: #1e8449;
  border-color: #a9dfbf;
}
.badge-limited {
  background: #fdebd0;
  color: #9c640c;
  border-color: #f5cba7;
}
.badge-soldout {
  background: #fadbd8;
  color: #922b21;
  border-color: #f5b7b1;
}
.university-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}
.university-badge img {
  width: 16px;
  height: 16px;
  border-radius: 2px;
}

/* ==================== PAGE HEADER ==================== */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}
.page-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-header-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 12px;
  min-width: 220px;
}
.search-bar i {
  color: var(--text-muted);
  font-size: 13px;
}
.search-bar input {
  border: none;
  background: transparent;
  flex: 1;
  font-size: 13px;
  color: var(--text);
  outline: none;
  font-family: inherit;
}

/* ==================== FILTER TABS ==================== */
.filter-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.filter-tab {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.filter-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.filter-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary-dark);
}

/* ==================== EVENT DETAIL ==================== */
.event-detail {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: start;
}
.event-detail-main {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.event-detail-header {
  padding: 20px;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.08),
    rgba(245, 87, 108, 0.06)
  );
  border-bottom: 1px solid var(--border);
}
.event-detail-header h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.event-detail-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.event-detail-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}
.event-detail-body {
  padding: 20px;
}
.event-detail-body h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
  color: var(--text);
}
.event-detail-body p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 13px;
}
.event-detail-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.sidebar-header {
  padding: 14px 16px;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.08),
    rgba(245, 87, 108, 0.06)
  );
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.sidebar-body {
  padding: 16px;
}
.sidebar-body .price-display {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
}
.sidebar-body .price-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 600;
}
.sidebar-body .ticket-info {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}
.sidebar-body .ticket-info span {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  padding: 4px 0;
}
.sidebar-body .ticket-info span strong {
  color: var(--text);
}
.sidebar-actions {
  padding: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ==================== MY TICKETS ==================== */
.tickets-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ticket-card {
  background: var(--bg-card);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}
.ticket-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}
.ticket-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  bottom: -2px;
  width: 4px;
  background: var(--primary);
  border-radius: var(--radius) 0 0 var(--radius);
}
.ticket-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.15),
    rgba(118, 75, 162, 0.1)
  );
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 18px;
  flex-shrink: 0;
}
.ticket-info-block {
  flex: 1;
  min-width: 0;
}
.ticket-info-block h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.ticket-info-block p {
  font-size: 12px;
  color: var(--text-muted);
}
.ticket-code {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 13px;
  color: var(--primary);
  letter-spacing: 1px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}
.ticket-status {
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border: 1px solid;
}
.status-valid {
  background: #d5f5e3;
  color: #1e8449;
  border-color: #a9dfbf;
}
.status-used {
  background: #fadbd8;
  color: #922b21;
  border-color: #f5b7b1;
}

/* ==================== AUTH PAGES ==================== */
.auth-container {
  display: flex;
  align-items: stretch;
  min-height: calc(100vh - 54px);
  gap: 0;
  position: relative;
}
.auth-campus-bg {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 400px;
}
.auth-campus-bg .campus-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.auth-campus-bg .campus-slide.active {
  opacity: 1;
}
.auth-campus-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(20, 20, 40, 0.5) 0%,
    rgba(20, 20, 40, 0.3) 100%
  );
}
.auth-card {
  width: 420px;
  flex-shrink: 0;
  padding: 40px 32px;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-header {
  text-align: center;
  margin-bottom: 24px;
}
.auth-header h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 12px;
  color: var(--text);
}
.auth-header p {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 4px;
}
.auth-footer {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.auth-footer a {
  color: var(--accent);
  font-weight: 600;
}

/* ==================== MODALS ==================== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.modal.active {
  display: flex;
}
.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 95%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1),
    rgba(245, 87, 108, 0.06)
  );
  border-bottom: 1px solid var(--border);
}
.modal-header h3 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.modal-close {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}
.modal-close:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.modal-body {
  padding: 20px;
}
.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  background: var(--bg-secondary);
}

.purchase-event-info {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 16px;
  font-size: 13px;
}
.purchase-event-info strong {
  color: var(--text);
}
.purchase-event-info .price {
  color: var(--accent);
  font-weight: 800;
  font-size: 18px;
}

/* ==================== TICKET VIEW MODAL ==================== */
.ticket-view {
  text-align: center;
}
.ticket-view .ticket-qr {
  margin: 16px auto;
  padding: 16px;
  background: #fff;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: inline-block;
}
.ticket-view .ticket-details {
  text-align: left;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin-top: 12px;
}
.ticket-view .ticket-details .detail-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 12px;
}
.ticket-view .ticket-details .detail-row:last-child {
  border-bottom: none;
}
.ticket-view .ticket-details .detail-row label {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.3px;
}

/* ==================== TICKET DISPLAY (Enhanced) ==================== */
.ticket-display {
  text-align: center;
}
.ticket-display-header {
  margin-bottom: 12px;
}
.ticket-display-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}
.ticket-display-header p {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 4px;
}
.ticket-category {
  display: inline-block;
  background: rgba(102, 126, 234, 0.12);
  color: var(--primary);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 8px;
}
.ticket-event-info {
  background: var(--bg-secondary);
  padding: 10px 14px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}
.ticket-event-info i {
  color: var(--primary);
  margin-right: 4px;
}
.ticket-display-qr {
  margin: 16px auto;
  padding: 16px;
  background: #fff;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: inline-block;
}
.ticket-display-code {
  font-family: 'Courier New', monospace;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 3px;
  margin-bottom: 12px;
}
.ticket-display-details {
  text-align: left;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin-top: 12px;
}
.ticket-display-details .detail-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 12px;
}
.ticket-display-details .detail-row:last-child {
  border-bottom: none;
}
.ticket-display-details .detail-row label {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.3px;
}
.ticket-display-details .detail-row span {
  color: var(--text);
  font-weight: 600;
  font-size: 12px;
}
.ticket-print-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  justify-content: center;
}
.ticket-print-actions .btn {
  flex: 1;
  max-width: 200px;
}

/* Print styles */
@media print {
  body * {
    visibility: hidden;
  }
  #printable-ticket,
  #printable-ticket * {
    visibility: visible;
  }
  #printable-ticket {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
  .ticket-print-actions {
    display: none !important;
  }
  .modal {
    position: static;
    background: none;
  }
  .modal-content {
    box-shadow: none;
    border: none;
    max-width: 100%;
  }
  .navbar,
  .footer,
  .toast {
    display: none !important;
  }
}

/* ==================== FEATURES SECTION ==================== */
.features-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.15),
    rgba(245, 87, 108, 0.1)
  );
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 20px;
  color: var(--primary);
}
.feature-card h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.feature-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==================== FOOTER ==================== */
.footer {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-top: none;
  padding: 20px 0;
  color: rgba(255, 255, 255, 0.8);
}
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #fff;
  font-size: 16px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
.logo-icon-sm {
  width: 24px;
  height: 24px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 11px;
}
.footer p {
  font-size: 12px;
}

/* ==================== TOAST ==================== */
.toast {
  position: fixed;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  z-index: 10000;
  transition: bottom 0.3s ease;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
  border: 1px solid;
}
.toast.show {
  bottom: 30px;
}
.toast.success {
  background: #d5f5e3;
  color: #1e8449;
  border-color: #a9dfbf;
}
.toast.error {
  background: #fadbd8;
  color: #922b21;
  border-color: #f5b7b1;
}
.toast.info {
  background: #d4e6f1;
  color: #21618c;
  border-color: #a9cce3;
}
.toast.warning {
  background: #fdebd0;
  color: #9c640c;
  border-color: #f5cba7;
}

/* ==================== LOADING / EMPTY ==================== */
.loading-spinner {
  text-align: center;
  padding: 48px;
  color: var(--text-muted);
}
.empty-state {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-muted);
}
.empty-state i {
  font-size: 42px;
  margin-bottom: 12px;
  opacity: 0.3;
  display: block;
}
.empty-state p {
  font-size: 13px;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}
.animate-fade {
  animation: fadeIn 0.3s ease;
}
.animate-slide {
  animation: slideUp 0.3s ease;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
  .event-detail {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .auth-campus-bg {
    display: none;
  }
  .auth-card {
    width: 100%;
    border-left: none;
  }
}
@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 54px;
    left: 0;
    right: 0;
    background: var(--bg-topbar);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px;
    z-index: 999;
  }
  .hero h1 {
    font-size: 26px;
  }
  .hero-stats {
    gap: 24px;
  }
  .hero-stat span {
    font-size: 22px;
  }
  .events-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .search-bar {
    width: 100%;
    min-width: unset;
  }
  .ticket-card {
    flex-direction: column;
    text-align: center;
  }
  .footer-content {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
@media (max-width: 400px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .filter-tabs {
    gap: 2px;
  }
  .filter-tab {
    padding: 5px 10px;
    font-size: 11px;
  }
}
