/* Dark background, light text */
body {
  margin: 0;
  background-color: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1, h2, h3 {
  margin: 0 0 8px;
  color: #fff;
}

h2 {
  margin-top: 24px;
  margin-bottom: 8px;
  color: #ccc;
  font-size: 11px; /* smaller than default */
}

.app-content {
  padding: 16px;
  margin-bottom: 70px; /* space for bottom nav */
}

/* Make each card flush against the next card */
.card {
  background-color: #1a1a21;
  padding: 12px;
  margin: 0;          /* remove the default margin */
  border-radius: 0;   /* flatten corners so they merge seamlessly */
}

/* Put a thin line between consecutive cards for separation */
.card + .card {
  border-top: 1px solid #333;
}

/* Round top corners of the FIRST card in the list */
.card:first-child {
  border-radius: 10px 10px 0 0;
  margin-top: 8px;   /* slight gap from content above */
}

/* Round bottom corners of the LAST card in the list */
.card:last-child {
  border-radius: 0 0 10px 10px;
  margin-bottom: 8px;  /* slight gap from content below */
}

/* Hover effect if you want them clickable */
.card.clickable-row {
  cursor: pointer;
}
.card.clickable-row:hover {
  background-color: #222; /* subtle hover */
}

/* Spacing for text + arrow */
.card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chevron::before {
  content: '›';
  color: #7f4ce6;
  font-size: 18px;
  margin-left: 8px;
}

/* Bottom nav with icons (unchanged) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  display: flex;
  width: 100%;
  background-color: #1a1a21;
}

.nav-item {
  flex: 1;
  text-decoration: none;
  color: #ccc;
  text-align: center;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-item:hover {
  background-color: #1a1a21;
  color: #fff;
}

.nav-icon {
  width: 22px;
  height: 22px;
  margin-bottom: 4px;
}

/* Payment method row */
.payment-method {
  display: flex;
  align-items: center;
}

.payment-icon {
  width: 60px;
  height: auto;
  margin-right: 8px;
}

.visa-lastfour {
  font-weight: 600;
  font-size: 16px;
  position: relative;
  top: -1px;
  margin-left: -3px;
}

/* Purple button styling */
.purple-btn {
  display: inline-block;
  background-color: #7f4ce6;
  color: #fff;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 8px;
}
.purple-btn:hover {
  background-color: #9a6cf0;
}

.version-text {
  text-align: center;
  color: #fff;
  font-size: 12px;
  margin-top: 6px;
}

/* Profile-specific styling */
.profile-header {
  text-align: center;
  margin-bottom: 16px;
}
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 40px;
  background-color: #0a081a;
  margin: 0 auto 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-avatar img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* Trips toggle bar */
.tabs {
  display: flex;
  margin-bottom: 16px;
}
.tab-btn {
  flex: 1;
  background: #111;
  border: 1px solid #333;
  color: #ccc;
  padding: 12px 0;
  cursor: pointer;
}
.tab-btn.active {
  background: #222;
  color: #fff;
}
.tab-btn:not(:last-child) {
  border-right: none;
}

/* Trips "empty state" */
.empty-state {
  text-align: center;
  margin: 40px 0;
}
.empty-state-icon {
  width: 80px;
  margin-bottom: 16px;
  opacity: 0.8;
}

/* AUTH FORMS */
.auth-container {
  max-width: 400px;
  margin: 100px auto; /* center horizontally & give 100px top margin */
  background-color: #1a1a1a;
  border-radius: 8px;
  padding: 24px;
  position: relative;
}

/* Headings/subtitles */
.auth-title {
  margin-top: 0;
  color: #fff;
  font-size: 24px;
  margin-bottom: 4px;
}
.auth-subtitle {
  margin-top: 0;
  margin-bottom: 24px;
  color: #aaa;
  font-size: 14px;
}

/* The form container */
.auth-form {
  display: flex;
  flex-direction: column;
  align-items: center; /* centers each row horizontally in the container */
}

/* =========== CHANGED: remove max-width: 300px =========== */
.input-field {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* left-align label & input */
  width: 100%;            /* fill the .auth-container */
  margin-bottom: 16px;
}

/* =========== CHANGED: remove max-width: 300px from input =========== */
.input-field input {
  width: 100%;
  display: block;
  margin: 0 auto;   /* centers the input if narrower than .auth-container */
  padding: 12px;
  background-color: #333;
  border: 1px solid #444;
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
}
.input-field input::placeholder {
  color: #666;
}

/* =========== CHANGED: remove max-width: 300px so button can fill entire container =========== */
.auth-submit {
  width: 100%;
  margin: 0 auto;      /* centers the button if narrower than container */
  background-color: #7f4ce6;
  color: #fff;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  padding: 12px 0;
  cursor: pointer;
}
.auth-submit:hover {
  background-color: #9a6cf0;
}

/* Switch text at bottom */
.auth-switch {
  text-align: center;
  font-size: 14px;
  color: #777;
}
.auth-switch a {
  color: #7f4ce6;  /* same purple as button? */
  text-decoration: none;
}
.auth-switch a:hover {
  text-decoration: underline;
}

/* Remove blue/purple link colors and underlines */
.no-link-style {
  color: inherit;
  text-decoration: none;
  display: block;
}

.no-link-style:visited,
.no-link-style:active,
.no-link-style:hover {
  color: inherit;
  text-decoration: none;
}

/* Container for all payment “cards” side by side */
.payment-cards {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  overflow-x: auto;
}

/* Each card is a small dark box with center-aligned text/icons */
.payment-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #2c2c2e;
  border-radius: 0.5rem;
  padding: 1rem;
  min-width: 100px;
  min-height: 80px;
  position: relative;
}

/* Example “active” styling (green border or highlight) */
.payment-card.active {
  border: 2px solid #44ff44;
}

/* Payment method logo/icon */
.payment-icon1 {
  width: 60px;
  height: auto;
  margin-bottom: 0.5rem;
}

/* A checkmark or small badge for the active card */
.payment-card .checkmark {
  position: absolute;
  top: 8px;
  right: 8px;
  color: #44ff44;
  font-size: 1.2rem;
}

.payment-card.add-new .plus-icon {
  font-size: 2rem;
  color: #9c9cff;
}

.payment-card:hover {
  background-color: #3a3a3c;
}

.app-header.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #000;
  padding: 0 16px;
  height: 44px;
  box-sizing: border-box;
}

.page-title {
  flex: 1;
  text-align: center;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 0 8px;
}

.icon-img {
  width: 20px;
  height: 20px;
}

/* discount-code-page */
.discount-code-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  color: #fff;
  background-color: #000;
  min-height: 100vh;
}
.discount-instructions {
  text-align: center;
  margin-bottom: 1rem;
  max-width: 80%;
  font-size: 0.9rem;
  line-height: 1.4;
}
.discount-form {
  display: flex;
  flex-direction: column;
  width: 80%;
  max-width: 400px;
}
.discount-input {
  width: 94%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #444;
  border-radius: 8px;
  background-color: #333;
  color: #fff;
  font-size: 1rem;
}
.redeem-button {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  background-color: #6b4fa6;
  color: #fff;
  font-size: 1rem;
}
.redeem-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Additional discount page styling */
.discounts-page {
  background-color: #000;
  color: #fff;
  min-height: 100vh;
  padding: 20px;
  box-sizing: border-box;
}
.discounts-intro {
  margin-bottom: 1rem;
  line-height: 1.4;
}
.sub-heading {
  margin-top: 1.5rem;
  font-weight: bold;
  font-size: 1.1rem;
}
.app-header.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #000;
  padding: 10px;
}
.page-title {
  color: #fff;
  font-size: 1.25rem;
  text-align: center;
  margin: 0;
}
.nav-icon img.icon-img {
  width: 24px;
  height: auto;
}

/***** MODAL + OVERLAY *****/
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none; /* hidden by default */
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
}
.modal {
  background-color: #1c1c1e;
  padding: 1.5rem;
  border-radius: 12px;
  max-width: 340px;
  text-align: center;
  position: relative;
}
.modal img {
  width: 110px;
  height: auto;
  margin-bottom: 1rem;
}
.modal h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #fff;
}
.modal p {
  margin-bottom: 1.5rem;
  line-height: 1.4;
  color: #ccc;
}
.modal-button {
  width: 100%;
  padding: 0.75rem;
  background-color: #6b4fa6;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}
.show {
  display: flex;
}

/***** Page Container *****/
.delete-account-page {
  background-color: #000;
  color: #fff;
  min-height: calc(100vh - 60px);
  padding: 2rem 1rem;
  box-sizing: border-box;
  text-align: center;
}

/***** Image Section *****/
.image-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}
.delete-image {
  width: 220px;
  height: auto;
}

/***** Text *****/
.delete-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.delete-desc {
  margin: 0 auto 1rem auto;
  max-width: 320px;
  line-height: 1.4;
  color: #ccc;
}
.delete-link {
  color: #9f7bea;
  text-decoration: underline;
}

/***** Big Purple Button *****/
.delete-form {
  margin-top: 2rem;
}
.delete-button {
  background-color: #6b4fa6;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  width: 80%;
  max-width: 340px;
}
.delete-button:hover {
  opacity: 0.9;
}

/* Bottom navigation bar – full-width, but icons sit ~12 px higher */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 84px;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
  background-color: #1a1a21;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #808080;
  font-size: 0.8rem;
}

.tab-icon {
  width: 24px;
  height: auto;
  margin-bottom: 4px;
  filter: brightness(0.5);
}

.nav-item.active {
  color: #9f7bea;
}

.nav-item.active .tab-icon {
  filter: none;
}

.refer-friend-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #1a1a21;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  color: #fff;
}
.rf-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100px;
  gap: 1rem;
  margin-bottom: 1rem;
  margin-left: 1rem;
}
.rf-invite-btn {
  background-color: #36286b;
  color: #9c8fff;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  cursor: pointer;
}
.rf-emoji {
  position: absolute;
  bottom: 0;
  right: 1rem;
  width: 220px;
  height: auto;
}

.card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.right-content {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.verified-icon {
  width: 16px;
  height: auto;
}

.email-text {
  color: #e5e3e8;
  font-weight: 500;
  position: relative;
  top: -1.2px;
}

/* Sticky header logic */
.sticky-header {
  position: sticky;
  top: 0;
  background-color: #000;
  display: flex;
  align-items: center;
  padding: 0.75rem;
  transition: all 0.3s ease;
  width: 100%;
}

.header-at-top {
  justify-content: flex-start !important;
}
.header-at-top .page-title {
  font-size: 1.25rem;
  color: #fff;
  margin-left: 2rem !important;
}

.header-scrolled {
  justify-content: center !important;
}
.header-scrolled .page-title {
  margin-left: 0 !important;
  color: #fff;
}

.nav-right-icons {
  margin-left: auto;
}

/* Car clubs page */
.car-clubs-page {
  padding: 1rem;
  background-color: #000;
  color: #fff;
}

.large-card {
  background-color: #1c1c1e;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
}

.large-card-image-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}
.large-card-image {
  width: 120px;
  height: auto;
}
.large-card-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #fff;
}
.large-card-desc {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 1rem;
  line-height: 1.4;
}
.large-card-button {
  display: block;
  width: 100%;
  background-color: #7d64fa;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  cursor: pointer;
  margin-bottom: 1rem;
}
.large-card-button:hover {
  opacity: 0.8;
}
.how-it-works-link {
  display: block;
  margin-top: 0.25rem;
  margin-bottom: 0;
  text-decoration: none;
  color: #9f7bea;
  font-size: 0.9rem;
}

.tips-header {
  font-size: 1.25rem;
  margin: 1.5rem 0 1rem;
  color: #fff;
}

.tips-list {
  background: #1c1c1e;
  border-radius: 8px;
  overflow: hidden;
}

.tip-row {
  display: flex;
  align-items: center;
  padding: 1rem 1rem;
  text-decoration: none;
  border-bottom: 1px solid #2c2c2e;
}
.tip-row:last-child {
  border-bottom: none;
}
.tip-image {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 0.75rem;
}
.tip-title {
  font-size: 1rem;
  margin: 0 0 0.25rem;
  color: #fff;
  font-weight: 600;
}
.tip-subtitle {
  font-size: 0.875rem;
  color: #bbb;
  margin: 0;
}
.resources-row .tip-image {
  display: none;
}
.tip-row .chevron {
  width: 16px;
  height: 16px;
  background: url("{{ url_for('static', filename='images/new_chevron.png') }}")
    no-repeat center center !important;
  background-size: contain;
  margin-left: auto;
  filter: grayscale(100%) brightness(100%);
}
.resources-row .chevron1 {
  transform: translateY(-2px);
}