:root {
  --gh-accent: #FFDF00;
  --gh-border: #2a2f3a;
  --gh-bg: #0f1218;
  --gh-text: #e7eaf1;
  --gh-muted: #9aa3b2;
  --gh-error: #ef4444;
  --gh-radius: 14px;
}

/* Form base */
.gh-form .gh-label {
  display: block;
  font-weight: 600;
  margin-bottom: .5rem;
}

.gh-form .gh-help {
  color: var(--gh-muted);
  font-size: .875rem;
  margin-top: .25rem;
}

.gh-form .gh-error {
  color: var(--gh-error);
  font-size: .875rem;
  margin-top: .375rem;
}

/* Inputs */
.gh-input,
.gh-textarea,
.gh-select {
  width: 100%;
  border: 1px solid var(--gh-border);
  background: var(--gh-bg);
  color: var(--gh-text);
  padding: .7rem .9rem;
  border-radius: var(--gh-radius);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.gh-textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.4;
}

.gh-input::placeholder,
.gh-textarea::placeholder {
  color: var(--gh-muted);
}

.gh-input:focus,
.gh-textarea:focus,
.gh-select:focus {
  border-color: rgba(255, 223, 0, 0.35);
  box-shadow: 0 0 0 0.2rem rgba(255, 223, 0, 0.15);
  outline: none;
}

/* Pretty file input */
.gh-file {
  position: relative;
}

.gh-file input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.gh-file .gh-file-ui {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px dashed var(--gh-border);
  border-radius: var(--gh-radius);
  padding: .6rem .9rem;
  color: var(--gh-muted);
  background: var(--gh-bg);
}

.gh-file .gh-file-ui:hover {
  border-color: var(--gh-accent);
  color: var(--gh-text);
}

.gh-avatar-preview {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

.gh-actions {
  display: flex;
  gap: .5rem;
}

.gh-btn {
  border: 1px solid var(--gh-accent);
  color: #000;
  background: var(--gh-accent);
  padding: .6rem 1rem;
  border-radius: 12px;
  font-weight: 600;
}

.gh-btn.ghost {
  background: transparent;
  color: var(--gh-accent);
}

/* Optional: tighten spacing with your float-card */
.float-card.gh-form {
  padding: 1rem;
}

@media (min-width: 768px) {
  .float-card.gh-form {
    padding: 1.25rem 1.5rem;
  }
}

/* Avatar + Banner row — mobile layout */
@media (max-width: 768px) {
  .avatar-banner-row {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .avatar-banner-row>div:first-child {
    flex: 0 0 auto !important;
  }

  .avatar-banner-row>div:last-child {
    margin-left: 0 !important;
    flex: 1 1 auto !important;
  }

  .avatar-banner-row .gh-avatar-preview {
    width: 72px;
    height: 72px;
  }

  .avatar-banner-row .gh-banner-preview {
    width: 100% !important;
    height: 120px;
  }

  .avatar-banner-row .gh-file .gh-file-ui {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================================
   Pinned posts dropdown – dark, rounded, custom arrow
   ========================================================= */
.pinned-select {
  background: var(--gh-bg);
  color: #fff !important;
  border: 1px solid #333 !important;
  border-radius: 20px !important;
  padding-right: 2.5rem;
  padding-left: 1rem;

  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23FFDF00' d='M4 6l4 4 4-4H4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 0.9rem 0.9rem;
}

.pinned-select option {
  background-color: #111 !important;
  color: #fff !important;
}

.pinned-select option:checked {
  background-color: #ffdf00 !important;
  color: #000 !important;
}

.pinned-select:focus {
  border-color: #ffdf00 !important;
  box-shadow: 0 0 0 2px rgba(255, 223, 0, 0.4);
  outline: none;
}

/* =========================================================
   Autocomplete (favourites)
   ========================================================= */
.gh-ac-wrap {
  position: relative;
}

.gh-ac-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 50;
}

.gh-ac-panel {
  border: 1px solid rgba(255, 223, 0, 0.18);
  background: rgba(15, 15, 18, 0.98);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  max-height: 240px;
  overflow-y: auto;
}

.gh-ac-results:empty {
  display: none;
}

.gh-ac-item {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  color: #fff;
  display: block;
}

.gh-ac-item:hover,
.gh-ac-item:focus {
  outline: none;
  background: rgba(255, 223, 0, 0.10);
}

.gh-ac-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gh-ac-title {
  font-weight: 700;
}

.gh-ac-meta {
  font-size: 0.85rem;
  opacity: 0.75;
}

#favTeamSearch:focus,
#favPlayerSearch:focus {
  border-color: rgba(255, 223, 0, 0.65);
  box-shadow: 0 0 0 0.15rem rgba(255, 223, 0, 0.12);
}