@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=DM+Sans:wght@300;400;500;600;700&display=swap");

:root {
  --brand: #e6b78f;
  --brand-light: rgba(230, 183, 143, 0.15);
  --brand-dark: #000000;
  --bg-soft: #f8f6f3;
  --bg-page: #f4f1ed;
  --card-bg: #ffffff;
  --text-main: #1a1a1a;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --border-soft: #ece7e2;
  --sidebar-bg: #0f0f0f;
  --sidebar-width: 240px;
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.05);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-xs: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Playfair Display", serif;
}

/* ─── LAYOUT ─────────────────────────────────────────── */

.portal-layout {
  display: flex;
  min-height: 100vh;
}

/* ── Auth Base Layout ─────────────────────── */
.auth-body {
  background: #faf8f5;
  min-height: 100vh;
}

.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid var(--border-soft);
  background: #fff;
}

.auth-topbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1rem;
  color: #0f0f0f;
}

.auth-topbar-logo:hover {
  color: #7c5739;
}

.auth-topbar-back {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.auth-topbar-back:hover {
  color: #7c5739;
}

/* .auth-page-wrapper {
  min-height: calc(100vh - 77px);
  display: flex;
  align-items: center;
} */

.auth-page-wrapper .container {
  width: 100%;
}

/* ── Upgrade Banner ───────────────────────── */
.upgrade-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #0f0f0f 0%, #2a1a0a 100%);
  border-radius: 14px;
  padding: 16px 22px;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.upgrade-banner-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.upgrade-banner-text strong {
  color: #fff;
  font-size: 0.9rem;
}

.upgrade-banner-text span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

.btn-upgrade {
  background: var(--brand);
  color: #000;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 9px 18px;
  border-radius: 9px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}

.btn-upgrade:hover {
  background: #d9a57a;
  color: #000;
}

/* ── Ticket Status Badges ─────────────────── */
.ticket-status.pending {
  background: rgba(234, 179, 8, 0.1);
  color: #854d0e;
}

.ticket-status.cancelled {
  background: rgba(220, 38, 38, 0.08);
  color: #dc2626;
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 576px) {
  .auth-topbar {
    padding: 16px 20px;
  }

  .auth-topbar-logo span {
    display: none;
  }
}

/* ─── SIDEBAR ─────────────────────────────────────────── */

.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  padding: 28px 0;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-logo {
  padding: 0 24px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 16px;
}

.sidebar-logo img {
  height: 36px;
  width: auto;
}

.sidebar-logo-text {
  font-family: "Playfair Display", serif;
  color: var(--brand);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.sidebar-section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  padding: 16px 24px 8px;
}

.sidebar-nav {
  list-style: none;
  padding: 0 12px;
  flex: 1;
}

.sidebar-nav li {
  margin-bottom: 2px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
}

.sidebar-nav a.active {
  background: var(--brand);
  color: #000;
}

.sidebar-nav a.active .nav-icon {
  opacity: 1;
}

.nav-icon {
  width: 18px;
  height: 18px;
  opacity: 0.6;
  flex-shrink: 0;
}

.sidebar-nav a.active .nav-icon {
  opacity: 1;
}

.sidebar-bottom {
  padding: 16px 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 12px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #000;
  flex-shrink: 0;
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.sidebar-user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ─── MAIN CONTENT ────────────────────────────────────── */

.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ─── TOP BAR ─────────────────────────────────────────── */

.topbar {
  background: #fff;
  border-bottom: 1px solid var(--border-soft);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-left h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.topbar-left p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
  position: relative;
}

.topbar-btn:hover {
  background: var(--bg-soft);
  color: var(--text-main);
}

.notif-dot {
  width: 7px;
  height: 7px;
  background: var(--brand);
  border-radius: 50%;
  position: absolute;
  top: 6px;
  right: 6px;
  border: 1.5px solid #fff;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  cursor: pointer;
  background: #fff;
  transition: background 0.2s;
}

.topbar-user:hover {
  background: var(--bg-soft);
}

.topbar-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: #000;
}

.topbar-username {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

/* ─── PAGE BODY ───────────────────────────────────────── */

.page-body {
  padding: 28px 32px;
  flex: 1;
}

/* ─── ALERTS ──────────────────────────────────────────── */

.custom-alert {
  border: none;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 20px;
}

/* ─── STAT CARDS ──────────────────────────────────────── */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand);
  opacity: 0;
  transition: opacity 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.stat-icon.gold {
  background: rgba(230, 183, 143, 0.18);
}

.stat-icon.dark {
  background: rgba(0, 0, 0, 0.07);
}

.stat-icon.green {
  background: rgba(16, 185, 129, 0.1);
}

.stat-icon.blue {
  background: rgba(59, 130, 246, 0.1);
}

.stat-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.stat-badge.up {
  color: #059669;
  background: rgba(16, 185, 129, 0.1);
}

.stat-badge.down {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
}

.stat-badge.neutral {
  color: var(--text-muted);
  background: var(--bg-soft);
}

.stat-value {
  font-family: "Playfair Display", serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ─── CONTENT GRID ────────────────────────────────────── */

.content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
}

/* ─── CARDS ───────────────────────────────────────────── */

.panel {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.panel-header {
  padding: 20px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.panel-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  font-family: "DM Sans", sans-serif;
}

.panel-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.panel-action {
  font-size: 0.8rem;
  color: #7c5739;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: var(--bg-soft);
  cursor: pointer;
  transition: all 0.2s;
}

.panel-action:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #000;
}

/* ─── TICKET TABLE ────────────────────────────────────── */

.ticket-table {
  width: 100%;
  border-collapse: collapse;
}

.ticket-table th {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 10px 24px;
  text-align: left;
  background: var(--bg-soft);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.ticket-table td {
  padding: 14px 24px;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-main);
  vertical-align: middle;
}

.ticket-table tr:last-child td {
  border-bottom: none;
}

.ticket-table tbody tr {
  transition: background 0.15s;
  cursor: pointer;
}

.ticket-table tbody tr:hover {
  background: var(--bg-soft);
}

.ticket-ref {
  font-weight: 700;
  font-size: 0.82rem;
  font-family: monospace;
  color: #000;
  background: var(--brand-light);
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
}

.ticket-package {
  font-weight: 500;
}

.ticket-date {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.ticket-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.ticket-status.confirmed {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.ticket-status.pending {
  background: rgba(230, 183, 143, 0.2);
  color: #92400e;
}

.ticket-status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.ticket-view-btn {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border-soft);
  border-radius: 7px;
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.ticket-view-btn:hover {
  border-color: var(--brand);
  color: #000;
  background: var(--brand-light);
}

/* ─── EMPTY STATE ─────────────────────────────────────── */

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-icon {
  width: 52px;
  height: 52px;
  background: var(--bg-soft);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.4rem;
}

.empty-state p {
  font-size: 0.9rem;
  margin-bottom: 14px;
}

/* ─── QUICK ACTIONS ───────────────────────────────────── */

.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 10px;
  color: var(--text-main);
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
}

.quick-action-btn:last-child {
  margin-bottom: 0;
}

.quick-action-btn:hover {
  background: #fff;
  border-color: var(--brand);
  transform: translateX(3px);
  box-shadow: var(--shadow-card);
}

.quick-action-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.quick-action-text small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 1px;
}

/* ─── PROFILE CARD ────────────────────────────────────── */

.profile-card {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid var(--border-soft);
}

.profile-avatar-lg {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  color: #000;
  margin: 0 auto 12px;
  border: 3px solid rgba(230, 183, 143, 0.3);
}

.profile-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.profile-email {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.profile-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #059669;
  background: rgba(16, 185, 129, 0.08);
  padding: 3px 10px;
  border-radius: 999px;
  margin-top: 10px;
}

.profile-status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #059669;
}

/* ─── MODALS ──────────────────────────────────────────── */

.custom-modal,
.ticket-modal-card {
  border-radius: 20px;
  border: none;
  overflow: hidden;
}

.modal-mini-title {
  display: inline-block;
  background: rgba(230, 183, 143, 0.18);
  color: #7c5739;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.modal-body input,
.modal-body select,
.modal-body textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 11px 14px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.875rem;
  color: var(--text-main);
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  background: #fafafa;
}

.modal-body input:focus,
.modal-body select:focus,
.modal-body textarea:focus,
.custom-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(230, 183, 143, 0.2);
  background: #fff;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
  display: block;
}

/* ─── TICKET PREVIEW ──────────────────────────────────── */

.ticket-preview-card {
  background: linear-gradient(135deg, #fff 0%, #f7f1ec 100%);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border-soft);
}

.ticket-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ticket-detail-grid small {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 3px;
}

.ticket-detail-grid h5,
.ticket-detail-grid h6 {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
}

.barcode-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
}

.barcode-note {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ─── SUCCESS PAGE ────────────────────────────────────── */

.success-page {
  padding: 60px 20px;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  border-radius: 50%;
  background: #000;
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
}

/* ─── BUTTONS ─────────────────────────────────────────── */

.btn-brand {
  background: var(--brand);
  color: #000;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-family: "DM Sans", sans-serif;
  transition: all 0.2s;
}

.btn-brand:hover {
  background: #d9a57a;
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(230, 183, 143, 0.4);
}

.btn-brand-dark {
  background: #000;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-family: "DM Sans", sans-serif;
}

.btn-brand-dark:hover {
  background: #1a1a1a;
  color: #fff;
}

/* ─── NAVBAR (non-dashboard pages) ───────────────────── */

.custom-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(0, 0, 0, 0.95);
  padding: 14px 0;
  transition: background 0.25s ease, padding 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(8px);
}

.custom-navbar.scrolled {
  background: rgba(0, 0, 0, 0.98);
  padding: 10px 0;
}

/* Home NAVBAR TOGGLER */
.navbar-toggler {
  border: none;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.navbar-toggler svg {
  stroke: #f8f8f8;
  width: 20px;
  height: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  /* color: var(--brand) !important; */
  background-color: #f8f8f8;
  padding: 8px;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
}

.brand-logo-img {
  height: 36px;
  width: auto;
}

.nav-link-custom {
  color: #f8f8f8 !important;
  font-weight: 500;
}

.nav-link-custom:hover {
  color: var(--brand) !important;
}

.nav-auth-item {
  margin-top: 8px;
}

.nav-auth-item a {
  display: block !important;
  width: 100%;
  text-align: center;
}

@media (max-width: 991px) {
  .nav-auth-item {
    margin: 8px 0;
  }

  .nav-auth-item a {
    padding: 12px 16px !important;
    border-radius: 10px;
  }
}

@media (min-width: 992px) {
  .nav-auth-item {
    margin: 0;
  }

  .nav-auth-item a {
    display: inline-flex !important;
  }
}

/* ─── AUTH PAGES ──────────────────────────────────────── */

.auth-wrapper {
  padding: 40px 0;
}

.auth-card {
  background: #fff;
  border-radius: 22px;
  padding: 36px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.auth-badge,
.hero-badge,
.dashboard-tag {
  display: inline-block;
  background: rgba(230, 183, 143, 0.18);
  color: #7c5739;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.auth-header p {
  color: var(--text-muted);
  margin-bottom: 0;
}

.auth-form label {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.auth-form input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: all 0.2s;
  background: #fafafa;
  font-family: "DM Sans", sans-serif;
  font-size: 0.875rem;
}

.auth-form input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(230, 183, 143, 0.2);
  background: #fff;
}

.auth-link {
  color: #7c5739;
  font-weight: 600;
  text-decoration: none;
}

.custom-alert {
  border: none;
  border-radius: 12px;
}

/* ─── HOME PAGE ───────────────────────────────────────── */

.hero-section {
  padding: 40px 0 20px;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 580px;
}

.hero-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.process-list {
  margin-top: 20px;
}

.process-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 13px 0;
  border-bottom: 1px solid var(--border-soft);
}

.process-item:last-child {
  border-bottom: none;
}

.process-number {
  width: 36px;
  height: 36px;
  background: #000;
  color: var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.process-item h6 {
  margin-bottom: 3px;
  font-size: 0.9rem;
}

.process-item p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.hero-mini-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.mini-stat-card,
.feature-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.mini-stat-card:hover,
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader .loader-ring {
  width: 64px;
  height: 64px;
  border: 6px solid rgba(0, 0, 0, 0.12);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


.mini-stat-card h5,
.feature-card h5 {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.mini-stat-card p,
.feature-card p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.info-strip {
  padding-bottom: 40px;
}

.hero-card-label {
  display: inline-block;
  background: rgba(230, 183, 143, 0.18);
  color: #7c5739;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.hero-card-top p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Sidebar Toggle States ──────────────────────────── */

/* ── Sidebar close button (inside sidebar) ── */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 16px;
  position: relative;
}

.sidebar-close-btn {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

.sidebar-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* ── Topbar open button (hamburger) ─────── */
.topbar-menu-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
  flex-shrink: 0;
}

.topbar-menu-btn:hover {
  background: var(--bg-soft);
  color: var(--text-main);
}

/* ── Sidebar collapsed state ────────────── */
.sidebar {
  transition:
    transform 0.3s ease,
    width 0.3s ease;
}

.sidebar.collapsed {
  transform: translateX(-100%);
}

.main-content {
  transition: margin-left 0.3s ease;
}

.main-content.expanded {
  margin-left: 0;
}

/* Desktop — sidebar visible by default, collapses on toggle */
@media (min-width: 992px) {
  .sidebar {
    transform: translateX(0);
    transition:
      width 0.3s ease,
      transform 0.3s ease;
  }

  .sidebar.collapsed {
    width: 0;
    overflow: hidden;
    padding: 0;
  }

  .main-content {
    transition: margin-left 0.3s ease;
  }

  .main-content.sidebar-collapsed {
    margin-left: 0;
  }
}

/* Mobile — sidebar hidden by default, slides in on toggle */
@media (max-width: 991px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    position: fixed;
    z-index: 200;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0 !important;
  }

  /* Dark overlay behind sidebar on mobile */
  .sidebar.open::after {
    content: "";
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
  }
}

/* ── Sidebar toggle button always visible ───────────── */
.sidebar-toggle {
  display: flex !important;
}

/* ══════════════════════════════════════════
   MOBILE RESPONSIVENESS FIXES
   ══════════════════════════════════════════ */

/* ── Stat Grid — 2 columns on mobile ─────── */
@media (max-width: 768px) {

  /* Stat cards — 2 per row */
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-value {
    font-size: 1.3rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .stat-card {
    padding: 14px;
  }

  /* Content grid — stack vertically */
  .content-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Page body padding */
  .page-body {
    padding: 16px;
  }

  /* Topbar — tighter on mobile */
  .topbar {
    padding: 0 12px;
    height: 56px;
  }

  .topbar-username {
    display: none;
  }

  .topbar-user {
    padding: 5px 8px;
  }

  .topbar-left h4 {
    font-size: 1.1rem;
  }

  /* Ticket table — hide less important columns */
  .ticket-table th:nth-child(3),
  .ticket-table td:nth-child(3),
  .ticket-table th:nth-child(4),
  .ticket-table td:nth-child(4) {
    display: none;
  }

  /* Panel header wraps on small screens */
  .panel-header {
    flex-wrap: wrap;
    gap: 10px;
  }

  /* Ticket detail grid — single column */
  .ticket-detail-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Modal full width on mobile */
  .modal-dialog {
    margin: 10px;
  }

  /* Quick action text wraps cleanly */
  .quick-action-btn {
    padding: 12px 14px;
  }

  /* Sidebar always hidden on mobile until toggled */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    transform: translateX(-100%);
    z-index: 999;
    transition: transform 0.3s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  /* Main content takes full width on mobile */
  .main-content {
    margin-left: 0 !important;
  }

  /* Dark overlay when sidebar is open on mobile */
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
  }

  .sidebar-overlay.active {
    display: block;
  }
}

/* ── Very small screens (under 400px) ──────── */
@media (max-width: 400px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stat-value {
    font-size: 1.1rem;
  }

  .stat-card-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .topbar-btn {
    width: 32px;
    height: 32px;
  }

  .topbar-menu-btn {
    width: 32px;
    height: 32px;
  }
}

/* ── Tablet (768px - 992px) ─────────────────── */
@media (min-width: 769px) and (max-width: 992px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    transform: translateX(-100%);
    z-index: 999;
    transition: transform 0.3s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0 !important;
  }
}

/* ── Desktop (992px+) — sidebar always visible ── */
@media (min-width: 993px) {
  .sidebar {
    transform: translateX(0);
    position: fixed;
  }

  .sidebar.collapsed {
    transform: translateX(-100%);
  }

  .main-content {
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s ease;
  }

  .main-content.expanded {
    margin-left: 0;
  }
}

/* Page Loader */
.page-loader {
  position: fixed;
  inset: 0;
  background: transparent;
  backdrop-filter: blur(4px);
  /* or your theme */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;

  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* ── Icon Action Buttons ──────────────────── */
.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border-soft);
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-muted);
  flex-shrink: 0;
}

.icon-btn--edit:hover {
  background: rgba(230, 183, 143, 0.15);
  border-color: var(--brand);
  color: #7c5739;
}

.icon-btn--delete:hover {
  background: rgba(220, 38, 38, 0.08);
  border-color: #fca5a5;
  color: #dc2626;
}

.event-marketplace {
  padding: 28px 0 56px;
}

.event-marketplace-header {
  margin-bottom: 22px;
}

.event-marketplace-title {
  font-size: 2.15rem;
  color: #0f0f0f;
  margin-bottom: 8px;
}

.event-marketplace-subtitle {
  color: #6b7280;
  font-size: 0.98rem;
  max-width: 620px;
  margin-bottom: 0;
}

.event-marketplace-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid #d8e0eb;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23, 42, 79, 0.05);
  margin-bottom: 14px;
}

.event-search-wrap {
  position: relative;
  flex: 1;
}

.event-search-icon {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

.event-search-input {
  width: 100%;
  height: 54px;
  border-radius: 18px;
  border: 1px solid #cad5e3;
  padding: 0 18px 0 46px;
  font-size: 0.98rem;
  color: #1a1a1a;
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.event-search-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(230, 183, 143, 0.18);
}

.event-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.event-sort-select {
  min-width: 205px;
  height: 54px;
  border-radius: 18px;
  border: 2px solid var(--brand);
  background: #fff;
  color: #0f0f0f;
  padding: 0 18px;
  font-size: 0.98rem;
  outline: none;
}

.event-filter-button {
  height: 54px;
  border: none;
  border-radius: 18px;
  background: #0f0f0f;
  color: #fff;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.event-filter-button:hover {
  background: #1f1f1f;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.14);
}

.event-filter-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 20px 20px 20px;
  border: 1px solid #d8e0eb;
  border-radius: 0 0 24px 24px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23, 42, 79, 0.05);
  margin-top: -8px;
  margin-bottom: 28px;
}

/* date inputs have no leading icon — reset the left padding */
input[type="date"].event-search-input {
  padding-left: 18px;
  cursor: pointer;
}

.event-filter-label {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9ca3af;
}

.event-filter-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.event-filter-chip {
  border: 1px solid #d6deeb;
  background: #fff;
  color: #374151;
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.event-filter-chip:hover {
  border-color: var(--brand);
  color: #000;
  background: rgba(230, 183, 143, 0.08);
}

.event-filter-chip.active {
  background: #0f0f0f;
  color: var(--brand);
  border-color: #0f0f0f;
}

.event-results-meta {
  margin-bottom: 18px;
  color: #6b7280;
  font-size: 0.95rem;
}

.event-results-list {
  display: grid;
  gap: 18px;
}

.event-result-card {
  display: grid;
  grid-template-columns: 236px 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid #e6edf5;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(21, 34, 56, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.event-result-card:hover {
  transform: translateY(-4px);
  border-color: #e6b78f;
  box-shadow: 0 20px 48px rgba(21, 34, 56, 0.09);
}

.event-result-media {
  position: relative;
  min-height: 220px;
  background: linear-gradient(180deg, #f59f36 0%, #d55d23 100%);
}

.event-result-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-result-image--fallback {
  min-height: 220px;
  background: linear-gradient(135deg, #e88a26 0%, #9f3e16 100%);
}

.event-result-price-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #fff;
  color: #132640;
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1.02rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.event-result-content {
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.event-result-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.event-result-title {
  font-family: "DM Sans", sans-serif;
  font-size: 1.9rem;
  line-height: 1.18;
  font-weight: 800;
  color: #0f0f0f;
  margin-bottom: 10px;
}

.event-result-description {
  color: #6b7280;
  font-size: 0.98rem;
  line-height: 1.55;
  margin-bottom: 0;
  max-width: 640px;
}

.event-result-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.event-result-status.is-available {
  background: rgba(26, 153, 98, 0.12);
  color: #1a9962;
}

.event-result-status.is-soldout {
  background: rgba(198, 59, 59, 0.12);
  color: #c63b3b;
}

.event-result-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}

.event-result-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #374151;
  font-size: 0.98rem;
}

.event-result-meta-item svg {
  color: #7c5739;
  flex-shrink: 0;
}

.event-result-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.event-result-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 144px;
  height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: none;
  background: #0f0f0f;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.event-result-buy:hover {
  background: var(--brand);
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(230, 183, 143, 0.24);
}

.event-result-buy:disabled {
  background: #b5c0cf;
  color: #fff;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.event-results-empty {
  background: #fff;
  border: 1px solid #dfe8f1;
  border-radius: 24px;
  padding: 52px 24px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(21, 34, 56, 0.05);
}

@media (max-width: 992px) {
  .event-marketplace-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .event-toolbar-actions {
    width: 100%;
    justify-content: stretch;
  }

  .event-sort-select,
  .event-filter-button {
    flex: 1;
  }

  .event-result-card {
    grid-template-columns: 1fr;
  }

  .event-result-media {
    min-height: 240px;
  }

  .event-result-title {
    font-size: 1.55rem;
  }
}

@media (max-width: 768px) {
  .event-marketplace {
    padding-top: 16px;
  }

  .event-marketplace-title {
    font-size: 1.8rem;
  }

  /* filter panel is already column-direction — just tighten padding on small screens */
  .event-filter-panel {
    padding: 16px 14px;
  }

  /* refine-results inner row: force each field full width */
  .event-filter-panel .event-refine-row > div,
  .event-filter-panel .event-refine-row input,
  .event-filter-panel .event-refine-row > div:last-child {
    min-width: 100% !important;
    flex: 1 1 100% !important;
  }

  .event-toolbar-actions {
    flex-direction: column;
  }

  .event-sort-select,
  .event-filter-button {
    width: 100%;
  }

  .event-result-content {
    padding: 20px;
  }

  .event-result-top {
    flex-direction: column;
  }

  .event-result-meta-grid {
    grid-template-columns: 1fr;
  }

  .event-result-actions {
    justify-content: stretch;
  }

  .event-result-buy {
    width: 100%;
  }
}
