.btn--small {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.btn--accent {
  background: var(--accent);
  color: #fff;
  border: none;
}
.btn--accent:hover {
  opacity: 0.9;
}

.gp-hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand2) 100%);
  color: #fff;
  padding: 2.5rem 0 1.5rem;
}
.gp-hero__name {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}
.gp-hero__sub {
  opacity: 0.8;
  font-size: 0.95rem;
}
.gp-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--line);
  margin-bottom: 2rem;
  overflow-x: auto;
}
.gp-tab {
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  transition: 0.2s;
  text-decoration: none;
}
.gp-tab:hover {
  color: var(--brand);
}
.gp-tab.active {
  color: var(--brand);
  border-bottom-color: var(--accent);
  font-weight: 700;
}
.gp-tab__badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  margin-left: 0.35rem;
  vertical-align: middle;
}
.gp-section {
  padding: 0 0 3rem;
}
.gp-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 1.25rem;
}
.gp-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(0,34,71,.13);
}
.gp-card__img {
  width: 160px;
  min-width: 160px;
  object-fit: cover;
  height: 100%;
  min-height: 130px;
}
.gp-card__img--placeholder {
  width: 160px;
  min-width: 160px;
  min-height: 130px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(255,255,255,0.6);
}
.gp-card__body {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  flex: 1;
  flex-wrap: wrap;
}
.gp-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 0.35rem;
}
.gp-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.gp-card__meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.gp-card__actions {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}
.gp-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.gp-badge--pending   { background:#fef3c7; color:#92400e; }
.gp-badge--confirmed { background:#d1fae5; color:#065f46; }
.gp-badge--cancelled { background:#fee2e2; color:#991b1b; }
.gp-badge--completed { background:#dbeafe; color:#1e40af; }
.gp-badge--active    { background:#d1fae5; color:#065f46; border: 2px solid #065f46; }
.gp-badge--open      { background:#fef3c7; color:#92400e; }
.gp-badge--in_progress { background:#dbeafe; color:#1e40af; }
.gp-badge--resolved  { background:#f3f4f6; color:#374151; }
.gp-badge--paid      { background:#d1fae5; color:#065f46; }
.gp-badge--unpaid    { background:#fee2e2; color:#991b1b; }
.gp-empty {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--muted);
}
.gp-empty__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}
.gp-empty__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.gp-chat {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
}
.gp-chat__msg {
  max-width: 75%;
  padding: 0.9rem 1.2rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}
.gp-chat__msg--guest {
  background: var(--brand);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 0.25rem;
}
.gp-chat__msg--admin {
  background: #f3f4f6;
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 0.25rem;
}
.gp-chat__time {
  font-size: 0.72rem;
  opacity: 0.6;
  margin-top: 0.3rem;
}
.gp-chat__form {
  border-top: 1px solid var(--line);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}
.gp-chat__input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  resize: none;
  outline: none;
  font-family: inherit;
}
.gp-chat__input:focus {
  border-color: var(--brand);
}
.gp-login {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.gp-login__card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
}
.gp-login__logo {
  text-align: center;
  margin-bottom: 1.75rem;
}
.gp-login__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 0.35rem;
}
.gp-login__sub {
  font-size: 0.875rem;
  color: var(--muted);
}
.gp-form-group {
  margin-bottom: 1.25rem;
}
.gp-form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}
.gp-form-control {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.gp-form-control:focus {
  outline: none;
  border-color: var(--brand);
}
.gp-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.gp-detail-item__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.gp-detail-item__value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.gp-cancel-box {
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: var(--radius2);
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
}
.gp-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: #f3f4f6;
  color: var(--brand);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--line);
  transition: background 0.2s;
}
.gp-pdf-btn:hover {
  background: var(--line);
}
/* ── Vertical card grid ────────────────────── */
.gp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.gp-vcard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.gp-vcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(0,34,71,.13);
}
.gp-vcard__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.gp-vcard__img--placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand2,#2c5282) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(255,255,255,0.5);
}
.gp-vcard__body {
  padding: 1.1rem 1.25rem 0.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.gp-vcard__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gp-vcard__meta {
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
}
.gp-vcard__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--line);
  gap: 0.75rem;
}
.gp-vcard__price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand);
}

/* ── Profile tab ───────────────────────────── */
.gp-profile {
  max-width: 640px;
  margin: 0 auto 3rem;
}
.gp-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.gp-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--brand);
  flex-shrink: 0;
}
.gp-avatar--initials {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand2,#2c5282) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 3px solid var(--brand);
}
.gp-avatar-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 0.2rem;
}
.gp-avatar-info p {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}
.gp-profile-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}
.gp-profile-card h2 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.gp-profile-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ── Request info box in booking detail ─────── */
.gp-request-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius2);
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.gp-request-box p {
  font-size: 0.875rem;
  color: #1e40af;
  margin: 0;
}

/* ── New single-page portal layout ──────────── */
.gp-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 0.25rem;
}
.gp-section-divider {
  border: none;
  border-top: 1px solid var(--line, #e5e7eb);
  margin: 2.5rem 0;
}
.gp-subsection-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 0.9rem;
}

/* Profile panel — 2 column */
.gp-profile-panel {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 0;
}
.gp-profile-panel__avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.gp-profile-panel__avatar .gp-avatar,
.gp-profile-panel__avatar .gp-avatar--initials {
  width: 96px;
  height: 96px;
  font-size: 2rem;
}
.gp-avatar-upload-btn {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand);
  background: var(--bg);
  cursor: pointer;
  transition: background 0.2s;
  text-align: center;
  white-space: nowrap;
}
.gp-avatar-upload-btn:hover {
  background: var(--line);
}
.gp-profile-panel__fields {
  display: flex;
  flex-direction: column;
}

/* Past bookings — compact rows */
.gp-past-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius2, 0.5rem);
  flex-wrap: wrap;
}
.gp-past-row__info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.gp-past-row__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gp-past-row__dates {
  font-size: 0.8rem;
  color: var(--muted);
}
.gp-past-row__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.gp-past-row__price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand);
  margin-right: 0.25rem;
}

/* Inquiry rows */
.gp-inq-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius2, 0.5rem);
  flex-wrap: wrap;
}
.gp-inq-row__info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}
.gp-inq-row__subject {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gp-inq-row__meta {
  font-size: 0.8rem;
  color: var(--muted);
}
.gp-inq-row__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.gp-hero-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.gp-hero-avatar-sm {
  width: 56px;
  height: 56px;
  border-color: rgba(255, 255, 255, 0.6);
}

.gp-hero-initials-sm {
  width: 56px;
  height: 56px;
  font-size: 1.2rem;
  border-color: rgba(255, 255, 255, 0.4);
}

.gp-hero-logout {
  margin-left: auto;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  white-space: nowrap;
}

.gp-hero-logout:hover,
.gp-hero-logout:focus-visible {
  color: #fff;
}

.gp-container-spaced {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.gp-flash {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}

.gp-flash--error {
  background: #fee2e2;
  color: #991b1b;
}

.gp-flash--info {
  background: #dbeafe;
  color: #1e40af;
}

.gp-flash--success {
  background: #d1fae5;
  color: #065f46;
}

.gp-mb-lg { margin-bottom: 1.5rem; }
.gp-mt-md { margin-top: 1rem; }
.gp-mt-auto { margin-top: auto; }
.gp-m-0 { margin: 0; }

.gp-badge-sm { font-size: 0.75rem; }

.gp-stack-sm {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gp-stack-md {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gp-row-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.gp-empty-compact {
  padding: 2rem 1rem;
}

.gp-inq-row-qa {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.gp-inq-row-unanswered {
  border-left: 3px solid var(--accent, #f5a524);
}

.gp-w-full { width: 100%; }

.gp-row-space {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.gp-mb-xs { margin-bottom: 0.4rem; }

.gp-meta-xs {
  font-size: 0.75rem;
  color: var(--muted);
}

.gp-badge-warning-soft {
  background: #ffedd5;
  color: #78350f;
  border-color: #fdba74;
}

.gp-question-text {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--text);
}

.gp-answer-box {
  background: rgba(0, 34, 71, 0.04);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  width: 100%;
}

.gp-answer-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand);
  display: block;
  margin-bottom: 0.3rem;
}

.gp-answer-text {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.gp-hidden-input { display: none; }

.gp-control-disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.gp-mt-sm { margin-top: 0.5rem; }

.gp-badge-wrap {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: auto;
}

@media (max-width: 640px) {
  .gp-card__img,
  .gp-card__img--placeholder { display: none; }
  .gp-card__actions { margin-left: 0; align-items: flex-start; }
  .gp-detail-grid { grid-template-columns: 1fr; }
  .gp-chat__msg { max-width: 90%; }
  .gp-grid { grid-template-columns: 1fr; }
  .gp-profile-row { grid-template-columns: 1fr; }
  .gp-profile-panel { grid-template-columns: 1fr; }
  .gp-profile-panel__avatar { flex-direction: row; justify-content: flex-start; }
  .gp-past-row, .gp-inq-row { flex-direction: column; align-items: flex-start; }
}
