:root {
  --bg: #FDF4E5;
  --bg-lighter: #fff9f0;
  --surface: #ffffff;
  --primary: #545E68;
  --primary-light: #636c76;
  --on-primary: #ffffff;
  --outline: rgba(84, 94, 104, 0.2);
  --text: #545E68;
  --muted: #777f88;
  --radius: 12px;
  --gap: 18px;
  --transition: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  --blue: #545E68;
  --yellow: #9F7A4E;
  --cream: #FDF4E5;
  --red: #853D3E;
  --green: #606C59;
  --brown: #a26e47;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  background: #FDF5E5;
}

body {
  margin: 0;
  /* Match styles.css: */
  border: none;
  box-shadow: 0 8px 32px rgba(84, 94, 104, 0.08), 0 1px 4px rgba(84, 94, 104, 0.05);
  border-radius: 24px;
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
  background: #FAF5EC;
  /* was 'none', now use container's old color */
  min-height: auto;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
}

/* Container and hero tweaks for soft card look */
.container {
  max-width: 430px;
  margin: auto;
  padding: var(--gap);
  padding-top: var(--gap);
  background: none;
  /* was #FAF5EC, now transparent */
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(84, 94, 104, 0.08), 0 1px 4px rgba(84, 94, 104, 0.05);
}

.hero {
  text-align: center;
  margin-bottom: var(--gap);
  font-family: Arial, Helvetica, sans-serif;
}

/* Section spacing utility */
.section-spacing {
  margin-top: calc(var(--gap) * 1.5);
  margin-bottom: calc(var(--gap) * 1.5);
}

/* Headings: use Times-like serif for titles/subtitles */
h1,
h2,
h3,
.subtitle {
  font-family: "Times New Roman", Times, serif;
}

/* Weights: h2 extra-bold, h3 semi-bold, subtitle medium */
h2 {
  font-weight: 1000;
}

h3 {
  font-weight: 600;
}

.subtitle {
  font-weight: 500;
}

/* Buttons: ensure Arial-like sans-serif */
.btn {
  font-family: Arial, Helvetica, sans-serif;
}

/* Ensure signup confirmation line uses Times */
#signup-confirmation {
  font-family: "Times New Roman", Times, serif;
}

.artist-pic {
  width: calc(100% + 2 * var(--gap));
  margin-left: calc(-1 * var(--gap));
  margin-right: calc(-1 * var(--gap));
  margin-top: 0;
  display: block;
  object-fit: cover;
  height: auto;
  border-radius: 24px 24px 0 0;
  background: var(--surface);
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  margin-bottom: 20px;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--blue), var(--brown));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 30px;
  margin-bottom: 5px;
  text-align: center;
}

p {
  margin: 5px 0;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  margin: var(--gap) 0;
}

/* === Form Styles (from styles2.css) === */
.form {
  background: rgba(255, 255, 255, 0.8);
  padding: var(--gap);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(84, 94, 104, 0.08), 0 1px 4px rgba(84, 94, 104, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.form-group {
  margin-bottom: var(--gap);
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9rem;
  color: var(--blue);
  font-weight: 500;
}

input,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(84, 94, 104, 0.1);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color var(--transition);
  background: rgba(255, 255, 255, 0.7);
}

/* Add a bit more space above and below the suggestion input box */
#feedback-form textarea {
  margin-top: 20px;
  margin-bottom: 16px;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--outline);
}

input::placeholder,
textarea::placeholder {
  text-align: left;
  color: var(--muted);
  opacity: 0.6;
}

.form-note {
  text-align: center;
  margin: 8px 0 0 0;
  font-size: 0.97rem;
  color: var(--muted);
}

.form-note.consent-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 0 0;
  font-size: 1rem;
  color: var(--text);
}

.form-note.consent-group input[type="checkbox"] {
  accent-color: var(--green);
  width: 18px;
  height: 18px;
  margin: 0 8px 0 0;
}

.form-note.consent-group label {
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
  margin: 0;
  cursor: pointer;
}

.required {
  color: #ff3b30;
  margin-left: -2px;
}

/* === Button Styles (from styles2.css) === */
.btn {
  width: 100%;
  padding: 15px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  position: relative;
}

/* Make show links a bit less wide than full-width */
#shows-actions .btn {
  width: 80%;
  align-self: center;
}

/* Match connect buttons width to shows */
#connect-actions .btn {
  width: 80%;
  align-self: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(84, 94, 104, 0.1);
}

.btn-icon {
  width: 22px;
  height: 22px;
  margin-left: 8px;
  object-fit: contain;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  border: 1px solid rgba(84, 94, 104, 0.1);
  box-shadow: 0 2px 10px rgba(84, 94, 104, 0.05);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 5px 15px rgba(84, 94, 104, 0.15);
}

.btn-patreon {
  background: linear-gradient(to bottom, var(--red), #753435);
  color: var(--on-primary);
  border: none;
  box-shadow: 0 2px 8px rgba(133, 61, 62, 0.3);
}

.btn-patreon:hover {
  background: linear-gradient(to bottom, #954546, #853d3e);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(133, 61, 62, 0.4);
  color: var(--on-primary);
}

.btn-patreon .btn-icon {
  filter: brightness(0) invert(1);
}

.btn-primary {
  background: linear-gradient(to bottom, var(--blue), #475058);
  color: var(--on-primary);
  border: none;
  box-shadow: 0 2px 8px rgba(84, 94, 104, 0.3);
  justify-content: center;
  text-align: center;
  font-weight: 600;
}

.btn-primary:hover {
  background: linear-gradient(to bottom, #606a74, #535d67);
  color: var(--on-primary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(84, 94, 104, 0.4);
}

.btn-primary .btn-icon {
  filter: brightness(0) invert(1);
  margin-left: 8px;
}

.btn-show {
  background: linear-gradient(to bottom, var(--yellow), #b27b50);
  color: var(--on-primary);
  border: none;
  box-shadow: 0 2px 8px rgba(159, 122, 78, 0.3);
}

.btn-show:hover {
  background: linear-gradient(to bottom, #b08a59, #b27b50);
  color: var(--on-primary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(159, 122, 78, 0.4);
}

.btn-show .btn-icon {
  filter: brightness(0) invert(1);
}

.btn-presave {
  background: linear-gradient(to bottom, var(--green), #546049) !important;
  color: var(--on-primary);
  border: none;
  box-shadow: 0 2px 8px rgba(96, 108, 89, 0.3);
}

.btn-presave:hover {
  background: linear-gradient(to bottom, #6b7a64, #5e6a56) !important;
  color: var(--on-primary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(96, 108, 89, 0.4);
}

.btn-presave .btn-icon {
  filter: brightness(0) invert(1);
}

/* New button color classes */
.btn-blue {
  background: linear-gradient(to bottom, var(--blue), #475058);
  color: var(--on-primary);
  border: none;
  box-shadow: 0 2px 8px rgba(84, 94, 104, 0.3);
}

.btn-blue:hover {
  background: linear-gradient(to bottom, #606a74, #535d67);
  color: var(--on-primary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(84, 94, 104, 0.4);
}

.btn-blue .btn-icon {
  filter: brightness(0) invert(1);
}

.btn-yellow {
  background: linear-gradient(to bottom, var(--yellow), #bf8f51);
  color: var(--on-primary);
  border: none;
  box-shadow: 0 2px 8px rgba(159, 122, 78, 0.3);
}

.btn-yellow:hover {
  background: linear-gradient(to bottom, #b08a59, #b27b50);
  color: var(--on-primary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(159, 122, 78, 0.4);
}

.btn-yellow .btn-icon {
  filter: brightness(0) invert(1);
}

.btn-red {
  background: linear-gradient(to bottom, var(--red), #753435);
  color: var(--on-primary);
  border: none;
  box-shadow: 0 2px 8px rgba(133, 61, 62, 0.3);
}

.btn-red:hover {
  background: linear-gradient(to bottom, #954546, #853d3e);
  color: var(--on-primary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(133, 61, 62, 0.4);
}

.btn-red .btn-icon {
  filter: brightness(0) invert(1);
}

/* --- Support Modal & Grid --- */
.modal.hidden {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  scroll-behavior: smooth;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  width: min(380px, calc(100% - 32px));
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px 20px 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .3), 0 8px 16px rgba(0, 0, 0, .15);
  transform: scale(0.95);
  transition: transform 0.2s ease-out;
  margin: 0 auto;
}

.modal:not(.hidden) .modal-content {
  transform: scale(1);
}

.modal-close {
  width: 100%;
  margin-top: 16px;
  border: 1px solid rgba(84, 94, 104, .25);
  background: rgba(255, 255, 255, .9);
  color: var(--text);
  padding: 12px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(84, 94, 104, .4);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 8px;
  justify-items: center;
}

@media (max-width: 480px) {
  .support-grid {
    gap: 12px;
    padding: 0 4px;
  }

  .modal-content {
    width: min(380px, calc(100% - 24px));
    padding: 20px 16px 16px;
  }
}

.support-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1/1;
  min-height: 64px;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid rgba(84, 94, 104, .15);
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

.support-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
}

.support-icon {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
  transition: transform 0.2s ease;
}

.support-tile:hover .support-icon {
  transform: scale(1.1);
}

/* Color helpers for support tiles */
.tile-blue {
  background: linear-gradient(to bottom, var(--blue), #475058);
}

.tile-red {
  background: linear-gradient(to bottom, var(--red), #753435);
}

.tile-green {
  background: linear-gradient(to bottom, var(--green), #546049);
}

.tile-yellow {
  background: linear-gradient(to bottom, var(--yellow), #b27b50);
}

.tile-brown {
  background: linear-gradient(to bottom, var(--brown), #7f5533);
}

.tile-cream {
  background: linear-gradient(to bottom, var(--cream), #f2e9dc);
  color: #222;
}

.btn-green {
  background: linear-gradient(to bottom, var(--green), #546049);
  color: var(--on-primary);
  border: none;
  box-shadow: 0 2px 8px rgba(96, 108, 89, 0.3);
}

.btn-green:hover {
  background: linear-gradient(to bottom, #6b7a64, #5e6a56);
  color: var(--on-primary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(96, 108, 89, 0.4);
}

.btn-green .btn-icon {
  filter: brightness(0) invert(1);
}

.btn-brown {
  background: linear-gradient(to bottom, var(--brown), #8b5d42);
  color: var(--on-primary);
  border: none;
  box-shadow: 0 2px 8px rgba(162, 110, 71, 0.3);
}

.btn-brown:hover {
  background: linear-gradient(to bottom, #b3764c, #a26e47);
  color: var(--on-primary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(162, 110, 71, 0.4);
}

.btn-brown .btn-icon {
  filter: brightness(0) invert(1);
}

.btn-cream {
  background: linear-gradient(to bottom, var(--cream), #f4eadb);
  color: var(--text);
  border: 1px solid rgba(84, 94, 104, 0.2);
  box-shadow: 0 2px 8px rgba(253, 244, 229, 0.3);
}

.btn-cream:hover {
  background: linear-gradient(to bottom, #fefcf8, var(--cream));
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(253, 244, 229, 0.5);
}

.btn-cream .btn-icon {
  filter: none;
  /* Keep original icon colors for light background */
}

.btn-black {
  background: linear-gradient(to bottom, #333, #1a1a1a);
  color: var(--on-primary);
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-black:hover {
  background: linear-gradient(to bottom, #444, #222);
  color: var(--on-primary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.btn-black .btn-icon {
  filter: brightness(0) invert(1);
}

/* Social icons: larger, softer, hover effect */
.social-icons {
  display: flex;
  justify-content: center;
  gap: var(--gap);
  margin-top: var(--gap);
  margin-bottom: 20px;
}

.social-icons img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: transform 0.2s, filter 0.2s;
}


.social-icons img:hover {
  transform: scale(1.08);
  filter: brightness(1.15) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
}

/* Hero social icons - slightly smaller */
.hero-social img {
  width: 32px;
  height: 32px;
}

/* See full bio button hover */
.see-full-bio-btn:hover {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(84, 94, 104, 0.35) !important;
  color: var(--text) !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Footer styles */
.footer {
  text-align: center;
  margin-top: var(--gap);
}

.footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.footer a:hover {
  text-decoration: underline;
}

.recent-shows {
  margin-bottom: var(--gap);
}

/* Loading and error states */
.loading-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: #777;
  font-style: italic;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin: 0.5rem 0;
}

.api-error {
  color: #ff6b6b;
  text-align: center;
  padding: 1rem;
  background: rgba(255, 107, 107, 0.1);
  border-radius: 8px;
  margin: 0.5rem 0;
}

.no-content {
  color: #777;
  text-align: center;
  font-style: italic;
  padding: 1rem;
}

/* Fade in animation for buttons when they load */
.btn {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive tweaks */
@media (max-width: 600px) {

  html,
  body {
    font-size: 15px;
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  body {
    border-radius: 24px;
    max-width: 430px;
    min-height: 100vh;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(84, 94, 104, 0.08), 0 1px 4px rgba(84, 94, 104, 0.05);
    padding: 0;
    background: #FAF5EC;
    /* was 'none', now use container's old color */
    padding-bottom: 56px;
    position: relative;
  }

  body::after {
    content: "";
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 56px;
    background: #FDF5E5;
    /* set to far back background color */
    z-index: 1;
    pointer-events: none;
  }

  .container {
    max-width: 430px;
    width: 100%;
    padding: var(--gap);
    padding-top: var(--gap);
    margin: 0 auto;
    box-sizing: border-box;
    background: none;
    /* was #FAF5EC, now transparent */
    position: relative;
    z-index: 2;
  }

  .hero {
    margin-bottom: var(--gap);
    margin-top: calc(-1 * var(--gap));
  }

  .artist-pic {
    width: calc(100% + 2 * var(--gap));
    max-width: unset;
    margin-left: calc(-1 * var(--gap));
    margin-right: calc(-1 * var(--gap));
    border-radius: 24px 24px 0 0;
    margin-bottom: 20px;
  }

  /* ...existing mobile tweaks... */
}

/* Bio section card */
.bio #bio-content {
  text-align: left;
  line-height: 1.75;
  font-size: 1.1rem;
  font-family: "Times New Roman", Times, serif;
  font-weight: 400;
  margin: 0 auto;
  max-width: 650px;
  color: var(--text);
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(84, 94, 104, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(84, 94, 104, 0.04);
}

/* Bio toggle button */
.see-full-bio-btn {
  display: inline-block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(84, 94, 104, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hidden {
  display: none !important;
}