/**
 * GigGo — Musician Profile (Tailwind companion)
 * Dark theme · Glassmorphism · Bento · Premium mobile shell
 */

:root {
  --gig-bg: #0f172a;
  --gig-surface: #1e293b;
  --gig-surface-elevated: #334155;
  --gig-accent: #8b5cf6;
  --gig-accent-soft: rgba(139, 92, 246, 0.18);
  --gig-accent-glow: rgba(139, 92, 246, 0.35);
  --gig-text: #f8fafc;
  --gig-muted: #94a3b8;
  --gig-radius: 24px;
  --gig-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --gig-shadow-soft: 0 4px 20px rgba(15, 23, 42, 0.6);
  --gig-nav-h: 72px;
  --gig-safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body.gig-profile-page {
  font-family: var(--font-family, 'Prompt', system-ui, -apple-system, sans-serif);
  font-weight: 400;
  background: var(--gig-bg);
  color: var(--gig-text);
  min-height: 100dvh;
}

/* ——— ผูกกับแอปหลัก #screen-myprofile ——— */
#screen-myprofile.is-gig-profile {
  background: var(--gig-bg);
  --gig-neon-glow: 0 0 12px rgba(167, 139, 250, 0.35);
}

[data-theme="light"] #screen-myprofile.is-gig-profile {
  --gig-bg: #eef1f6;
  --gig-surface: #ffffff;
  --gig-surface-elevated: #f4f4f9;
  --gig-text: #1a1a2e;
  --gig-muted: #475569;
  --gig-accent: #7c3aed;
  --gig-accent-soft: rgba(124, 58, 237, 0.12);
  --gig-accent-glow: rgba(124, 58, 237, 0.2);
  --gig-shadow: 0 4px 24px rgba(124, 58, 237, 0.08);
  --gig-shadow-soft: 0 2px 12px rgba(0, 0, 0, 0.06);
  --gig-neon-glow: none;
}

#screen-myprofile.is-gig-profile .screen-header .header-brand-logo.app-logo--header {
  max-width: 172px;
  height: 44px;
}

#screen-myprofile.is-gig-profile .screen-header .header-brand-logo .logo-theme {
  max-width: 172px;
  max-height: 44px;
  height: 44px;
}

#screen-myprofile.is-gig-profile .screen-header {
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] #screen-myprofile.is-gig-profile .screen-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(124, 58, 237, 0.12);
}

#screen-myprofile.is-gig-profile .header-title,
#screen-myprofile.is-gig-profile .header-logout-btn {
  color: var(--gig-text);
}

[data-theme="light"] #screen-myprofile.is-gig-profile .header-logout-btn {
  color: #7c3aed;
  background: var(--gig-accent-soft);
  border-color: rgba(124, 58, 237, 0.25);
}

#screen-myprofile.is-gig-profile .header-logout-btn {
  border-color: rgba(139, 92, 246, 0.35);
  background: var(--gig-accent-soft);
}

#screen-myprofile.is-gig-profile #myprofile-content.scroll-area {
  padding: 0;
  background: var(--gig-bg);
}

#screen-myprofile.is-gig-profile .gig-profile-root {
  color: var(--gig-text);
  padding-bottom: 16px;
}

.gig-text-center { text-align: center; }
.gig-text-accent { color: #c4b5fd; }

.gig-avatar-emoji {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  background: var(--gig-surface);
  border: 3px solid var(--gig-bg);
}

.gig-hero-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(196, 181, 253, 0.9);
}

.gig-hero-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gig-text, #fff);
  line-height: 1.25;
}

.gig-hero-sub {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: var(--gig-muted);
}

.gig-hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.gig-btn-primary {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 14px;
  border: none;
  border-radius: var(--gig-radius);
  background: var(--gig-accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px var(--gig-accent-glow);
}

.gig-btn-primary--sm {
  width: auto;
  margin-top: 0;
  padding: 10px 16px;
  font-size: 0.8rem;
}

.gig-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--gig-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(30, 41, 59, 0.8);
  color: var(--gig-text);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.gig-btn-save-role {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border: none;
  border-radius: 16px;
  background: var(--gig-accent-soft);
  color: #c4b5fd;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  border: 1px solid rgba(139, 92, 246, 0.35);
}

.gig-profile-block { margin-bottom: 8px; }

.gig-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 16px 10px;
}

.gig-section-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gig-text, #fff);
}

.gig-section-head--row {
  align-items: center;
  gap: 8px;
}

.gig-section-head--row h2 { flex: 1; }

.gig-section-meta {
  font-size: 0.7rem;
  color: var(--gig-muted);
}

.gig-section-head-icon {
  color: var(--gig-accent);
  display: flex;
}

.gig-section-head-icon svg,
.gig-chip svg,
.gig-bento__icon,
.gig-summary-icon svg,
.gig-pricing-toggle__btn svg,
.gig-link-btn svg,
.gig-cta-banner__icon svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke: currentColor;
}

.gig-bento__icon { width: 1.35rem; height: 1.35rem; }

.gig-muted-text {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: var(--gig-muted);
}

.gig-label-sm {
  margin: 0 0 8px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gig-muted);
}

.gig-chip-row,
.gig-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.gig-tag {
  padding: 8px 14px;
  border-radius: var(--gig-radius);
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.gig-pricing-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.gig-pricing-kicker {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gig-muted);
}

.gig-pricing-amount {
  margin: 4px 0 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gig-text, #fff);
}

.gig-pricing-badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(139, 92, 246, 0.25);
  color: #c4b5fd;
}

.gig-pricing-badge--muted {
  background: rgba(100, 116, 139, 0.35);
  color: #94a3b8;
}

.gig-pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gig-pricing-sub {
  font-size: 1rem;
  font-weight: 700;
  color: #e2e8f0;
}

.gig-link-btn {
  margin-left: auto;
  border: none;
  background: none;
  color: #a78bfa;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.gig-portfolio-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  font-size: 0.68rem;
  color: var(--gig-muted);
}

.gig-portfolio-hint svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  flex-shrink: 0;
}

.gig-portfolio-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gig-portfolio-nav {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.6);
  color: #e2e8f0;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, border-color 0.15s;
}

.gig-portfolio-nav:hover {
  background: rgba(139, 92, 246, 0.35);
  border-color: rgba(167, 139, 250, 0.6);
}

.gig-portfolio-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  flex: 1;
  min-width: 0;
  padding: 2px 2px 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.45) transparent;
}

.gig-portfolio-scroll::-webkit-scrollbar {
  height: 4px;
}

.gig-portfolio-scroll::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.45);
  border-radius: 4px;
}

.gig-portfolio-card {
  display: flex;
  flex-direction: column;
  min-width: 156px;
  max-width: 156px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--gig-surface);
  border: 1px solid rgba(167, 139, 250, 0.2);
  padding: 0;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
  transition: transform 0.15s, border-color 0.15s;
}

/* กัน style.css .portfolio-album { display:flex; row } ทับ layout การ์ดคลิป */
.gig-profile-root .gig-portfolio-card {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
}

.gig-portfolio-card:hover {
  transform: translateY(-2px);
  border-color: rgba(167, 139, 250, 0.45);
}

.gig-portfolio-card__thumb {
  position: relative;
  aspect-ratio: 16/10;
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.3), var(--gig-bg));
}

.gig-portfolio-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.gig-portfolio-card__body {
  padding: 0 10px 10px;
  min-width: 0;
}

.gig-portfolio-card__title {
  margin: 0;
  padding: 8px 0 2px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gig-text, #e2e8f0);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gig-portfolio-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.gig-portfolio-play svg {
  width: 2rem;
  height: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.gig-portfolio-platform {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.82);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}

.gig-portfolio-platform svg {
  width: 11px;
  height: 11px;
  stroke: currentColor;
}

.gig-portfolio-platform--youtube { color: #fecaca; }
.gig-portfolio-platform--tiktok { color: #a5f3fc; }
.gig-portfolio-platform--facebook { color: #bfdbfe; }
.gig-portfolio-platform--instagram { color: #fbcfe8; }

.gig-portfolio-card__skill {
  margin: 0;
  padding: 0 0 0;
  font-size: 0.62rem;
  color: var(--gig-muted);
}

.gig-summary-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.gig-summary-row:last-child { border-bottom: none; }

.gig-summary-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--gig-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gig-accent);
  flex-shrink: 0;
}

.gig-summary-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gig-summary-text strong {
  font-size: 0.9rem;
  color: #fff;
}

.gig-summary-text span {
  font-size: 0.75rem;
  color: var(--gig-muted);
}

.gig-summary-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: #c4b5fd;
}

.gig-nested-panel {
  margin-top: 8px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.gig-nested-panel--role .account-role-section { margin: 0; }

.gig-nested-panel--role .role-current-banner,
.gig-nested-panel--role .role-action-list {
  background: transparent;
}

#screen-myprofile.is-gig-profile .profile-position-wrap label,
#screen-myprofile.is-gig-profile .profile-position-wrap select {
  color: var(--gig-text);
}

#screen-myprofile.is-gig-profile .profile-position-wrap select {
  background: var(--gig-surface);
  border-color: rgba(255, 255, 255, 0.1);
}

.gig-cta-banner {
  margin: 8px 16px 20px;
  padding: 18px;
  border-radius: var(--gig-radius);
  border: 1px solid rgba(139, 92, 246, 0.25);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), transparent);
  box-shadow: var(--gig-shadow-soft);
}

.gig-cta-banner__icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: var(--gig-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gig-accent);
  margin-bottom: 10px;
}

.gig-cta-banner h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  color: var(--gig-text, #fff);
}

.gig-cta-banner p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--gig-muted);
}

.gig-cta-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.gig-profile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 200;
  opacity: 0;
  transition: opacity 0.2s;
}

.gig-profile-modal {
  position: fixed;
  bottom: 0;
  left: 50%;
  right: auto;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 430px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--gig-bg);
  color: var(--gig-text);
  border-radius: 20px 20px 0 0;
  z-index: 201;
  transition: transform 0.25s ease;
}

.gig-profile-modal.is-open {
  transform: translateX(-50%) translateY(0);
}

.gig-profile-modal .profile-form label {
  color: var(--gig-muted);
}

.gig-profile-modal .profile-form input,
.gig-profile-modal .profile-form textarea,
.gig-profile-modal .profile-form select {
  background: var(--gig-surface);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--gig-text);
}

/* ——— App shell ——— */
.gig-app {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100dvh;
  padding-bottom: calc(var(--gig-nav-h) + var(--gig-safe-bottom) + 16px);
}

/* ——— Glass profile header ——— */
.gig-profile-hero {
  position: relative;
  margin: 12px 16px 20px;
  border-radius: var(--gig-radius);
  overflow: hidden;
  box-shadow: var(--gig-shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.gig-profile-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  filter: blur(28px) saturate(1.2);
  opacity: 0.55;
}

.gig-profile-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(15, 23, 42, 0.35) 0%,
    rgba(15, 23, 42, 0.92) 55%,
    rgba(15, 23, 42, 0.98) 100%
  );
}

.gig-profile-hero--custom-bg .gig-profile-hero__bg {
  opacity: 1;
  filter: none;
  transform: none;
}

.gig-profile-hero--custom-bg .gig-profile-hero__bg::after {
  display: none;
}

.gig-profile-hero__glass {
  position: relative;
  z-index: 1;
  padding: 28px 20px 22px;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  background: rgba(30, 41, 59, 0.45);
}

.gig-avatar-ring {
  position: relative;
  width: 108px;
  height: 108px;
  margin: 0 auto 14px;
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gig-accent), #6366f1, #a78bfa);
  box-shadow: 0 0 40px var(--gig-accent-glow);
}

.gig-avatar-emoji--fallback {
  display: none;
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: rgba(30, 41, 59, 0.9);
  border: 3px solid var(--gig-bg);
}

.gig-avatar-emoji--fallback.is-visible {
  display: flex;
}

.gig-avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gig-bg);
}

/* ——— Bento grid ——— */
.gig-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(72px, auto);
  gap: 10px;
  margin: 0 16px 20px;
}

.gig-bento__cell {
  border-radius: var(--gig-radius);
  background: var(--gig-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--gig-shadow-soft);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.gig-bento__cell:hover {
  border-color: rgba(139, 92, 246, 0.25);
}

.gig-bento__cell--span-4 { grid-column: span 4; }
.gig-bento__cell--span-3 { grid-column: span 3; }
.gig-bento__cell--span-2 { grid-column: span 2; }
.gig-bento__cell--tall { grid-row: span 2; }

.gig-bento__icon {
  color: var(--gig-accent);
  opacity: 0.9;
}

.gig-bento__value {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.gig-bento__label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gig-muted);
}

/* ——— Pricing toggle ——— */
.gig-pricing-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: var(--gig-radius);
  background: var(--gig-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--gig-shadow-soft);
  position: relative;
}

.gig-pricing-toggle__slider {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: 20px;
  background: linear-gradient(135deg, var(--gig-accent), #7c3aed);
  box-shadow: 0 4px 16px var(--gig-accent-glow);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.gig-pricing-toggle.is-band .gig-pricing-toggle__slider {
  transform: translateX(100%);
}

.gig-pricing-toggle__btn {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  color: var(--gig-muted);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 12px 8px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.gig-pricing-toggle__btn.is-active {
  color: #fff;
}

.gig-pricing-panel {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.1), rgba(30, 41, 59, 0.92));
  border: 1px solid rgba(139, 92, 246, 0.18);
  box-shadow: var(--gig-shadow-soft);
}

.gig-rate-services {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.gig-rate-svc {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(139, 92, 246, 0.22);
  color: #ddd6fe;
  border: 1px solid rgba(167, 139, 250, 0.35);
}

.gig-rate-svc--band {
  background: rgba(34, 211, 238, 0.12);
  color: #a5f3fc;
  border-color: rgba(34, 211, 238, 0.28);
}

.gig-rate-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.gig-rate-hero__label {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gig-muted);
}

.gig-rate-hero__price {
  margin: 2px 0 0;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--gig-text, #fff);
}

.gig-rate-hero__dur {
  margin: 2px 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #a78bfa;
}

.gig-rate-hero__side {
  text-align: right;
  flex-shrink: 0;
}

.gig-rate-hero__sub-label {
  margin: 0;
  font-size: 0.62rem;
  color: var(--gig-muted);
}

.gig-rate-hero__sub-val {
  margin: 2px 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #e2e8f0;
}

.gig-rate-hero--compact {
  margin-bottom: 8px;
}

.gig-rate-job-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.gig-rate-job-type {
  padding: 8px 6px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(167, 139, 250, 0.2);
  text-align: center;
  min-width: 0;
}

.gig-rate-job-type__icon {
  display: flex;
  justify-content: center;
  margin-bottom: 2px;
  color: #c4b5fd;
}

.gig-rate-job-type__icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.gig-rate-job-type__label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  color: #e2e8f0;
  line-height: 1.25;
}

.gig-rate-job-type__hint {
  display: block;
  font-size: 0.55rem;
  color: var(--gig-muted);
  margin-top: 2px;
}

.gig-rate-job-type__price {
  display: block;
  margin-top: 3px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #a78bfa;
}

.gig-band-affiliation {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(139, 92, 246, 0.18));
  border: 1px solid rgba(34, 211, 238, 0.28);
}

.gig-band-affiliation--empty {
  background: rgba(51, 65, 85, 0.35);
  border-color: rgba(148, 163, 184, 0.2);
  color: var(--gig-muted);
}

.gig-band-affiliation--empty svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  flex-shrink: 0;
  opacity: 0.7;
}

.gig-band-affiliation__badge {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.5);
  color: #67e8f9;
  border: 1px solid rgba(34, 211, 238, 0.35);
}

.gig-band-affiliation__badge svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.gig-band-affiliation__body {
  min-width: 0;
  flex: 1;
}

.gig-band-affiliation__kicker {
  margin: 0;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #67e8f9;
}

.gig-band-affiliation__name {
  margin: 2px 0 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.2;
}

.gig-band-affiliation--empty .gig-band-affiliation__name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gig-muted);
}

.gig-band-affiliation__meta {
  margin: 2px 0 0;
  font-size: 0.65rem;
  color: var(--gig-muted);
}

.gig-rate-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.gig-rate-meta--full {
  grid-template-columns: 1fr;
}

.gig-rate-meta__cell {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  min-width: 0;
}

.gig-rate-meta__cell--slots {
  grid-column: span 1;
}

.gig-rate-slots__list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}

.gig-rate-slots__list li {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #e2e8f0;
}

.gig-rate-slots__day {
  flex: 0 0 14px;
  font-weight: 800;
  color: #c4b5fd;
}

.gig-rate-slots__time {
  min-width: 0;
  word-break: break-word;
}

.gig-rate-slots__empty {
  margin: 4px 0 0;
  font-size: 0.68rem;
  color: var(--gig-muted);
  line-height: 1.35;
}

.gig-rate-meta .gig-pricing-sub {
  font-size: 0.88rem;
  margin-top: 2px;
}

.gig-rate-meta .gig-muted-text {
  margin: 0;
  font-size: 0.62rem;
}

.gig-pricing-panel[hidden] {
  display: none;
}

/* ——— Section card ——— */
.gig-section {
  margin: 0 16px 20px;
  padding: 18px;
  border-radius: var(--gig-radius);
  background: var(--gig-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--gig-shadow-soft);
}

.gig-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--gig-accent-soft);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.25);
}

/* ——— Sticky bottom nav ——— */
.gig-bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 430px;
  padding: 8px 12px calc(8px + var(--gig-safe-bottom));
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
  z-index: 50;
}

.gig-bottom-nav__inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-radius: 20px;
  background: rgba(30, 41, 59, 0.6);
  padding: 6px 4px;
}

.gig-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border: none;
  background: none;
  color: var(--gig-muted);
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 16px;
  transition: color 0.2s, background 0.2s;
}

.gig-nav-item svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.75;
}

.gig-nav-item.is-active {
  color: var(--gig-accent);
  background: var(--gig-accent-soft);
}

.gig-nav-item.is-active svg {
  stroke: var(--gig-accent);
}

/* Lucide stroke inherit */
.gig-icon-muted {
  color: var(--gig-muted);
}

.gig-icon-accent {
  color: var(--gig-accent);
}

/* ——— Light theme: ตัวอักษรและแท็กให้อ่านชัด (ไม่ลาง) ——— */
[data-theme="light"] #screen-myprofile.is-gig-profile .gig-text-accent {
  color: #6d28d9;
}

[data-theme="light"] #screen-myprofile.is-gig-profile .gig-chip {
  background: rgba(124, 58, 237, 0.14);
  color: #5b21b6;
  border-color: rgba(124, 58, 237, 0.32);
}

[data-theme="light"] #screen-myprofile.is-gig-profile .gig-chip svg {
  stroke: #6d28d9;
  color: #6d28d9;
}

[data-theme="light"] #screen-myprofile.is-gig-profile .gig-label-sm,
[data-theme="light"] #screen-myprofile.is-gig-profile .gig-muted-text,
[data-theme="light"] #screen-myprofile.is-gig-profile .gig-pricing-kicker,
[data-theme="light"] #screen-myprofile.is-gig-profile .gig-section-meta,
[data-theme="light"] #screen-myprofile.is-gig-profile .gig-portfolio-hint,
[data-theme="light"] #screen-myprofile.is-gig-profile .gig-rate-hero__label,
[data-theme="light"] #screen-myprofile.is-gig-profile .gig-rate-hero__sub-label,
[data-theme="light"] #screen-myprofile.is-gig-profile .gig-rate-job-type__hint,
[data-theme="light"] #screen-myprofile.is-gig-profile .gig-band-affiliation__meta,
[data-theme="light"] #screen-myprofile.is-gig-profile .gig-rate-meta .gig-muted-text {
  color: #475569;
}

[data-theme="light"] #screen-myprofile.is-gig-profile .gig-pricing-toggle__btn:not(.is-active) {
  color: #475569;
}

[data-theme="light"] #screen-myprofile.is-gig-profile .gig-pricing-toggle__btn.is-active {
  color: #ffffff;
}

[data-theme="light"] #screen-myprofile.is-gig-profile .gig-pricing-panel {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(124, 58, 237, 0.22);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] #screen-myprofile.is-gig-profile .gig-rate-svc {
  background: rgba(124, 58, 237, 0.12);
  color: #5b21b6;
  border-color: rgba(124, 58, 237, 0.35);
}

[data-theme="light"] #screen-myprofile.is-gig-profile .gig-rate-svc--band {
  background: rgba(8, 145, 178, 0.1);
  color: #0e7490;
  border-color: rgba(8, 145, 178, 0.35);
}

[data-theme="light"] #screen-myprofile.is-gig-profile .gig-rate-hero__dur,
[data-theme="light"] #screen-myprofile.is-gig-profile .gig-rate-job-type__price {
  color: #6d28d9;
}

[data-theme="light"] #screen-myprofile.is-gig-profile .gig-rate-hero__sub-val {
  color: #1e293b;
}

[data-theme="light"] #screen-myprofile.is-gig-profile .gig-rate-job-type {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(124, 58, 237, 0.2);
}

[data-theme="light"] #screen-myprofile.is-gig-profile .gig-rate-job-type__label {
  color: #1e293b;
}

[data-theme="light"] #screen-myprofile.is-gig-profile .gig-rate-job-type__icon {
  color: #6d28d9;
}

[data-theme="light"] #screen-myprofile.is-gig-profile .gig-band-affiliation__kicker {
  color: #0e7490;
}

[data-theme="light"] #screen-myprofile.is-gig-profile .gig-band-affiliation__name {
  color: #1a1a2e;
}

[data-theme="light"] #screen-myprofile.is-gig-profile .gig-rate-slots__list li {
  color: #334155;
}

[data-theme="light"] #screen-myprofile.is-gig-profile .gig-rate-slots__day {
  color: #6d28d9;
}

[data-theme="light"] #screen-myprofile.is-gig-profile .gig-pricing-badge {
  color: #5b21b6;
}

[data-theme="light"] #screen-myprofile.is-gig-profile .gig-pricing-badge--muted {
  background: rgba(100, 116, 139, 0.15);
  color: #475569;
}

[data-theme="light"] #screen-myprofile.is-gig-profile .gig-summary-text span,
[data-theme="light"] #screen-myprofile.is-gig-profile .gig-cta-banner p {
  color: #475569;
}

[data-theme="light"] #screen-myprofile.is-gig-profile .gig-section-head-icon {
  color: #6d28d9;
}

[data-theme="light"] #screen-myprofile.is-gig-profile .gig-portfolio-card__title {
  color: #1a1a2e;
}

[data-theme="light"] #screen-myprofile.is-gig-profile .gig-portfolio-card__skill {
  color: #475569;
}

[data-theme="light"] #screen-myprofile.is-gig-profile .gig-portfolio-nav {
  background: rgba(255, 255, 255, 0.95);
  color: #5b21b6;
  border-color: rgba(124, 58, 237, 0.35);
}

[data-theme="light"] #screen-myprofile.is-gig-profile .gig-portfolio-nav:hover {
  background: rgba(124, 58, 237, 0.12);
}
