*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #1e1e1e;
  font-family: system-ui, -apple-system, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/* ------ Navbar ------ */
.navbar {
  width: 100%;
  max-width: 900px;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.75rem 1.5rem;
  background: #2d2d2d;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 1.5rem;
}

.navbar-brand {
  font-size: 1.75rem;
  font-weight: 700;
  white-space: nowrap;
  margin: 0 auto;
  color: #b03a3a;
}

.navbar-links {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0.4rem 0.75rem;
  text-decoration: none;
  color: #ccc;
  font-size: 0.75rem;
  border-radius: 8px;
  transition: background 0.15s;
}

.nav-link:hover { background: #2d2d2d; }

.nav-link.active { color: #f0f0f0; font-weight: 600; }

.nav-icon {
  font-size: 1.1rem;
}

.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #111;
  flex-shrink: 0;
}

/* ------ Nav Profile Dropdown ------ */
.nav-profile {
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #2d2d2d;
  border: 1px solid #444;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  min-width: 160px;
  z-index: 200;
  overflow: hidden;
}

.nav-dropdown.open {
  display: flex;
  flex-direction: column;
}

.nav-dropdown-item {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: #f0f0f0;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background 0.15s;
}

.nav-dropdown-item:hover {
  background: #3a3a3a;
}

.nav-dropdown-logout {
  color: #b03a3a;
  border-top: 1px solid #444;
}

.nav-logout-btn {
  flex-shrink: 0;
  padding: 0.4rem 0.85rem;
  background: transparent;
  border: 1px solid #b03a3a;
  color: #b03a3a;
  border-radius: 8px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.nav-logout-btn:hover {
  background: #b03a3a;
  color: #fff;
}

/* ------ Page layout ------ */
.page-layout {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 0 1rem 2rem;
}

/* ------ Search bar ------ */
.search-bar-wrapper {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #2d2d2d;
  border: 1px solid #3a3a3a;
  border-radius: 12px;
  padding: 0.6rem 1rem;
  transition: border-color 0.2s;
}

.search-bar-wrapper:focus-within {
  border-color: #b03a3a;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #f0f0f0;
  font-size: 0.95rem;
  padding: 0;
}

.search-input::placeholder {
  color: #888;
}

.search-clear {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.15rem 0.4rem;
  border-radius: 50%;
  line-height: 1;
  transition: color 0.15s, background 0.15s;
}

.search-clear:hover {
  color: #f0f0f0;
  background: #3a3a3a;
}

.search-clear.hidden {
  display: none;
}

/* ------ Sidebar ------ */
.sidebar {
  width: 160px;
  flex-shrink: 0;
  background: #2d2d2d;
  border-radius: 12px;
  padding: 1.1rem 0.9rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.sidebar-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  color: #999;
}

.filter-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.filter-btn {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  cursor: pointer;
  background: transparent;
  color: #ccc;
  transition: background 0.15s, color 0.15s;
  text-align: left;
}

.filter-btn.active {
  background: #b03a3a;
  color: #fff;
  font-weight: 600;
}

.filter-btn:hover:not(.active) {
  background: #3a3a3a;
  color: #f0f0f0;
}

/* ------ Profile ------ */
.profile-card {
  background: #2d2d2d;
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.profile-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #111;
  flex-shrink: 0;
  overflow: hidden;
}

.profile-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-bottom: 1px solid #3a3a3a;
  padding-bottom: 1rem;
}

.profile-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.profile-field-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.profile-field-row.hidden {
  display: none;
}

.profile-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: 80px;
  flex-shrink: 0;
}

.profile-value {
  font-size: 0.95rem;
  color: #f0f0f0;
  flex: 1;
}

.profile-edit-btn {
  background: none;
  border: none;
  color: #888;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  margin-left: auto;
  transition: color 0.15s, background 0.15s;
}

.profile-edit-btn:hover {
  color: #f0f0f0;
  background: #3a3a3a;
}

.profile-save-btn {
  padding: 0.4rem 0.9rem;
  background: #b03a3a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.profile-save-btn:hover {
  background: #8c2e2e;
}

.profile-cancel-btn {
  padding: 0.4rem 0.9rem;
  background: none;
  color: #aaa;
  border: 1.5px solid #444;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.profile-cancel-btn:hover {
  border-color: #888;
  color: #f0f0f0;
}

.profile-field-row .form-input {
  flex: 1;
  min-width: 120px;
  background: #1e1e1e;
  color: #f0f0f0;
  border-color: #444;
}

.profile-field-row .form-input:focus {
  border-color: #b03a3a;
}

/* ------ Feed ------ */
.feed {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

/* ------ Post card ------ */
.post-card {
  background: #b03a3a;
  border-radius: 12px;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
}

.post-artist {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.post-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #c0c4cc;
  flex-shrink: 0;
}

.post-artist-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.post-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.8rem;
  color: #ccd0da;
}

/* ------ Media area ------ */
.post-media {
  width: 100%;
  background: #000;
  position: relative;
}

.post-images {
  width: 100%;
  height: 220px;
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.post-images::-webkit-scrollbar {
  display: none;
}

.post-images img {
  scroll-snap-align: start;
}

.post-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.carousel-btn:hover {
  background: rgba(0,0,0,0.75);
}

.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }

.post-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 6px 0;
  background: #000;
}

.post-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #555;
}

.post-dot.active {
  background: #ccc;
}

/* ------ Post body ------ */
.post-body {
  padding: 0.75rem 1rem 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.post-description {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.post-tags {
  font-size: 0.8rem;
  color: #9ba3b8;
}

/* ------ Post footer ------ */
.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.post-actions-left {
  display: flex;
  gap: 0.75rem;
}

.action-btn {
  background: none;
  border: none;
  color: #ccd0da;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
}

.action-btn:hover { color: #fff; }

.tickets-btn {
  padding: 0.4rem 0.9rem;
  border: 1.5px solid #fff;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
  transition: background 0.15s;
}

.tickets-btn:hover {
  background: rgba(255,255,255,0.12);
}

/* ------ Create Post Layout ------ */
.create-layout {
  width: 100%;
  max-width: 900px;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 0 1rem 5rem;
}

.create-form-col {
  flex: 1;
  min-width: 0;
}

.create-sidebar-col {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.create-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: #f0f0f0;
}

.create-subtitle {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1.25rem;
}

/* ------ Form Sections ------ */
.form-section {
  background: #2d2d2d;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.form-section-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #f0f0f0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.9rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #e0e0e0;
}

.required {
  color: #e55;
}

.form-input {
  padding: 0.55rem 0.75rem;
  border: 1.5px solid #444;
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
  width: 100%;
}

.form-input:focus {
  border-color: #b03a3a;
}

.form-textarea {
  padding: 0.55rem 0.75rem;
  border: 1.5px solid #444;
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
  width: 100%;
}

.form-textarea:focus {
  border-color: #b03a3a;
}

.input-error {
  border-color: #e55 !important;
  background-color: rgba(220, 50, 50, 0.12) !important;
  box-shadow: 0 0 0 3px rgba(220, 50, 50, 0.15) !important;
}

.image-error-msg {
  color: #e55;
  font-size: 0.8rem;
  margin-top: 0.4rem;
}

.char-count {
  font-size: 0.75rem;
  color: #888;
  text-align: right;
}

.form-row {
  display: flex;
  gap: 0.75rem;
}

.form-row .form-group {
  flex: 1;
}

.form-row-3 .form-group:last-child {
  flex: 0.6;
}

/* ------ Tag Chips ------ */
.tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.tag-chip {
  background: #e8eaed;
  color: #222;
  border-radius: 20px;
  padding: 0.2rem 0.65rem;
  font-size: 0.8rem;
  cursor: pointer;
  user-select: none;
}

.tag-chip:hover {
  background: #d0d3da;
}

/* ------ Price input prefix ------ */
.input-prefix-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix {
  position: absolute;
  left: 0.75rem;
  font-size: 0.9rem;
  color: #555;
  pointer-events: none;
}

.input-with-prefix {
  padding-left: 1.6rem;
}

/* ------ Image Upload ------ */
.image-drop-zone {
  border: 2px dashed #ccd0da;
  border-radius: 10px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  margin-bottom: 0.75rem;
}

.image-drop-zone:hover, .image-drop-zone.drag-over {
  border-color: #b03a3a;
  background: #252525;
}

.drop-zone-icon {
  font-size: 2rem;
  color: #aaa;
}

.drop-zone-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ccc;
}

.drop-zone-hint {
  font-size: 0.75rem;
  color: #999;
}

.image-thumbnails {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.thumb-item {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background: #222;
  object-fit: cover;
  flex-shrink: 0;
}

.thumb-add {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background: #e8eaed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #888;
  cursor: pointer;
  flex-shrink: 0;
}

.thumb-add:hover {
  background: #d0d3da;
}

/* ------ Preview Panel ------ */
.preview-panel {
  background: #2d2d2d;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.preview-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #f0f0f0;
}

.preview-card {
  font-size: 0.8rem;
}

.preview-image-placeholder {
  width: 100%;
  height: 140px;
  background: #000;
}

/* ------ Tips Panel ------ */
.tips-panel {
  background: #2d2d2d;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.tips-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #f0f0f0;
}

.tips-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.tips-list li {
  font-size: 0.8rem;
  color: #ccc;
  padding-left: 1.4rem;
  position: relative;
  line-height: 1.4;
}

.tips-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #b03a3a;
  font-size: 0.75rem;
}

/* ------ Sticky Footer ------ */
.create-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #2d2d2d;
  border-top: 1px solid #e0e2e8;
  z-index: 100;
}

.create-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.btn-draft {
  padding: 0.55rem 1.25rem;
  border: 1.5px solid #b03a3a;
  border-radius: 8px;
  background: #2d2d2d;
  color: #b03a3a;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-draft:hover {
  background: #2d2d2d;
}

.btn-publish {
  padding: 0.55rem 1.25rem;
  border: none;
  border-radius: 8px;
  background: #b03a3a;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-publish:hover {
  background: #8c2e2e;
}

/* ------ My Tickets Layout ------ */
.tickets-layout {
  width: 100%;
  max-width: 900px;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 0 1rem 2rem;
}

.tickets-main {
  flex: 1;
  min-width: 0;
}

.tickets-sidebar {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tickets-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: #f0f0f0;
}

.tickets-subtitle {
  font-size: 0.85rem;
  color: #aaa;
  margin-bottom: 1.25rem;
}

/* ------ Tab bar ------ */
.tickets-tabs {
  display: flex;
  border-radius: 10px;
  overflow: hidden;
  background: #3a3a3a;
  margin-bottom: 1rem;
}

.tab-btn {
  flex: 1;
  padding: 0.7rem;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  color: #ccc;
  border-radius: 10px;
  transition: background 0.15s, color 0.15s;
}

.tab-btn.active {
  background: #b03a3a;
  color: #fff;
}

/* ------ Ticket list ------ */
.ticket-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ticket-list.hidden {
  display: none;
}

.ticket-card {
  background: #2d2d2d;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.ticket-card-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}

.ticket-icon {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ticket-info {
  flex: 1;
  min-width: 0;
}

.ticket-band {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: #f0f0f0;
}

.ticket-detail {
  font-size: 0.8rem;
  color: #aaa;
  margin-bottom: 0.15rem;
}

.ticket-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  flex-shrink: 0;
}

.ticket-count-badge {
  background: #b03a3a;
  color: #fff;
  border-radius: 8px;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-num {
  font-size: 1rem;
}

.ticket-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-view-details {
  padding: 0.4rem 0.8rem;
  border: 1.5px solid #b03a3a;
  border-radius: 8px;
  background: #2d2d2d;
  color: #b03a3a;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-view-details:hover {
  background: #2d2d2d;
}

.btn-download {
  padding: 0.4rem 0.8rem;
  border: none;
  border-radius: 8px;
  background: #b03a3a;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-download:hover {
  background: #8c2e2e;
}

.ticket-confirmation {
  background: #252525;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  color: #555;
  border-top: 1px solid #e8eaed;
}

.tickets-empty {
  font-size: 0.9rem;
  color: #888;
  text-align: center;
  padding: 2rem;
}

/* ------ Sidebar panels ------ */
.tickets-panel {
  background: #2d2d2d;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.tickets-panel-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #f0f0f0;
}

/* Summary list */
.summary-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #e0e0e0;
}

.summary-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f0f0f0;
}

.summary-value.muted {
  color: #aaa;
}

.summary-item.muted .summary-label {
  color: #aaa;
}

/* Quick actions */
.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quick-action-btn {
  display: block;
  width: 100%;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.quick-action-btn.filled {
  background: #b03a3a;
  color: #fff;
  border: none;
}

.quick-action-btn.filled:hover {
  background: #8c2e2e;
}

.quick-action-btn.outline {
  background: #2d2d2d;
  color: #b03a3a;
  border: 1.5px solid #b03a3a;
}

.quick-action-btn.outline:hover {
  background: #2d2d2d;
}

/* Next event panel */
.next-event-panel {
  background: #b03a3a !important;
  color: #fff;
}

.next-event-icon {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.next-event-heading {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.next-event-body {
  font-size: 0.8rem;
  color: #ccd0da;
}

/* ------ Auth (Login / Register) ------ */
.auth-container {
  background: #2d2d2d;
  border-radius: 12px;
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.auth-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #f0f0f0;
  margin-bottom: 0.25rem;
}

.auth-subtitle {
  font-size: 0.85rem;
  color: #aaa;
  margin-bottom: 1.5rem;
}

.auth-form label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #ccc;
}

.auth-form input {
  background: #1e1e1e;
  color: #f0f0f0;
  border: 1.5px solid #444;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  width: 100%;
  outline: none;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.auth-form input:focus {
  border-color: #b03a3a;
}

.auth-btn {
  width: 100%;
  padding: 0.65rem;
  background: #b03a3a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.15s;
}

.auth-btn:hover {
  background: #8c2e2e;
}

.auth-switch {
  font-size: 0.85rem;
  color: #aaa;
  text-align: center;
  margin-top: 1rem;
}

.auth-switch a {
  color: #b03a3a;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.auth-error {
  color: #ff6b6b;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hidden {
  display: none;
}

.offline-banner {
  position: sticky;
  top: 0;
  z-index: 1200;
  width: 100%;
  background: #7a1f1f;
  color: #fff;
  text-align: center;
  padding: 8px 12px;
  font-size: 0.95rem;
}

.ticket-icon img {
  mix-blend-mode: multiply;
}

/* ------ Mobile (≤ 640px) ------ */
@media (max-width: 640px) {

  /* ---- Navbar: compact top bar ---- */
  .navbar {
    border-radius: 0;
    padding: 0.6rem 1rem;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    justify-content: space-between;
  }

  .navbar-brand {
    margin: 0;
    font-size: 1.3rem;
  }

  /* Hide logout — users log out via profile on mobile */
  .nav-logout-btn {
    display: none;
  }

  /* Nav links become a fixed bottom tab bar */
  .navbar-links {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2d2d2d;
    border-top: 1px solid #3a3a3a;
    z-index: 99;
    padding: 0.25rem 0;
    justify-content: space-around;
    margin: 0;
  }

  .nav-link {
    flex: 1;
    padding: 0.5rem 0.25rem;
    border-radius: 0;
    font-size: 0.65rem;
    justify-content: center;
  }

  .nav-icon {
    font-size: 1.3rem;
  }

  /* ---- Feed page ---- */
  .page-layout {
    flex-direction: column;
    align-items: stretch;
    padding: 0 0.75rem 5rem;
    gap: 0.75rem;
  }

  /* Sidebar becomes a full-width horizontal scrolling filter bar */
  .sidebar {
    width: 100%;
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
  }

  .sidebar-title {
    display: none;
  }

  .filter-buttons {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.5rem;
  }

  .filter-buttons::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex-shrink: 0;
    white-space: nowrap;
    width: auto;
    padding: 0.4rem 0.9rem;
  }

  .search-bar-wrapper {
    padding: 0.5rem 0.85rem;
  }

  .search-input {
    font-size: 1rem;
  }

  /* ---- Tickets page ---- */
  .tickets-layout {
    flex-direction: column;
    padding: 0 0.75rem 5rem;
    gap: 0.75rem;
  }

  .tickets-sidebar {
    width: 100%;
  }

  /* Ticket card: icon+info on top row, badge+buttons on their own bottom row */
  .ticket-card-main {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .ticket-right {
    flex-direction: row;
    flex-basis: 100%;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #3a3a3a;
    padding-top: 0.75rem;
    gap: 0.5rem;
  }

  .ticket-actions {
    display: flex;
    gap: 0.5rem;
  }

  .btn-view-details,
  .btn-download {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  /* ---- Auth pages (login / register) ---- */

  /* Brand is the only navbar child on auth pages — keep it centered */
  .navbar-brand:only-child {
    margin: 0 auto;
    font-size: 1.5rem;
  }

  /* Remove bottom tab bar padding on auth pages (no tab bar present) */
  .feed:has(.auth-container) {
    justify-content: center;
    align-items: center;
    min-height: 65vh;
    padding: 0.5rem 0 2rem;
  }

  .auth-container {
    width: 100%;
    padding: 2rem 1.25rem 1.5rem;
    border-top: 3px solid #b03a3a;
  }

  .auth-title {
    text-align: center;
    font-size: 1.5rem;
  }

  .auth-subtitle {
    text-align: center;
    margin-bottom: 1.5rem;
  }

  /* 16px prevents iOS auto-zoom on input focus */
  .auth-form input,
  .auth-form select {
    font-size: 1rem;
    padding: 0.75rem;
  }

  .auth-btn {
    padding: 0.8rem;
    font-size: 1rem;
    margin-top: 0.5rem;
  }

  .auth-switch {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.9rem;
  }

  /* ---- Profile page ---- */
  .profile-card {
    padding: 1.25rem 1rem;
  }

  .profile-label {
    width: 70px;
  }

  /* ---- Create page layout ---- */
  .create-layout {
    flex-direction: column;
    padding: 0 0.75rem 9rem; /* room for sticky footer + tab bar */
    gap: 1rem;
  }

  .create-sidebar-col {
    width: 100%;
  }

  .tips-panel {
    display: none;
  }

  /* ---- Sticky footer sits above the bottom tab bar ---- */
  .create-footer {
    bottom: 3.5rem;
  }

  .create-footer-inner {
    justify-content: stretch;
    padding: 0.6rem 1rem;
  }

  .btn-publish {
    flex: 1;
    padding: 0.85rem;
    font-size: 1rem;
  }

  /* ---- Form inputs ---- */
  /* 16px minimum prevents iOS auto-zoom on focus */
  .form-input,
  .form-textarea {
    font-size: 1rem;
    padding: 0.75rem;
  }

  /* Stack date/time and city/state/zip rows */
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}