.gc-server-card {
  background-color: var(--bg-card);
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--gc-shadow);
  color: var(--text-main);
  border-left: 4px solid var(--accent-primary);
  border-top: 1px solid var(--gc-icon-bg);
}

.gc-card-header {
  padding: 20px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--gc-border-dark);
  gap: 16px;
}

.gc-server-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--gc-icon-bg);
  border: 2px solid var(--bg-body);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-transform: uppercase;
}

.gc-server-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gc-server-details {
  flex: 1;
}

.gc-server-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gc-card-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding: 20px;
}

.gc-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--gc-section-bg);
  padding: 18px;
  border-radius: 10px;
  border: 1px solid var(--card-highlight);
}

.gc-meter-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.gc-progress-track {
  width: 100%;
  height: 10px;
  background-color: var(--bar-bg);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 15px;
}

.gc-progress-fill {
  height: 100%;
  background-color: var(--success);
  transition: width 0.3s ease;
  width: 0;
}

.gc-progress-fill.progress-0 {
  width: 0;
}

.gc-progress-fill.progress-5 {
  width: 5%;
}

.gc-progress-fill.progress-10 {
  width: 10%;
}

.gc-progress-fill.progress-15 {
  width: 15%;
}

.gc-progress-fill.progress-20 {
  width: 20%;
}

.gc-progress-fill.progress-25 {
  width: 25%;
}

.gc-progress-fill.progress-30 {
  width: 30%;
}

.gc-progress-fill.progress-35 {
  width: 35%;
}

.gc-progress-fill.progress-40 {
  width: 40%;
}

.gc-progress-fill.progress-45 {
  width: 45%;
}

.gc-progress-fill.progress-50 {
  width: 50%;
}

.gc-progress-fill.progress-55 {
  width: 55%;
}

.gc-progress-fill.progress-60 {
  width: 60%;
}

.gc-progress-fill.progress-65 {
  width: 65%;
}

.gc-progress-fill.progress-70 {
  width: 70%;
}

.gc-progress-fill.progress-75 {
  width: 75%;
}

.gc-progress-fill.progress-80 {
  width: 80%;
}

.gc-progress-fill.progress-85 {
  width: 85%;
}

.gc-progress-fill.progress-90 {
  width: 90%;
}

.gc-progress-fill.progress-95 {
  width: 95%;
}

.gc-progress-fill.progress-100 {
  width: 100%;
}

.gc-col .actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gc-funding-meta {
  margin-top: 15px;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gc-credits-display {
  font-family: "JetBrains Mono", Menlo, Consolas, monospace;
  color: var(--text-muted);
  font-weight: 600;
}

.gc-rules-form {
  margin-top: 12px;
}

.gc-rule-section {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--card-border);
}

.gc-rule-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.gc-rule-row {
  margin-bottom: 12px;
}

.gc-rule-row:last-child {
  margin-bottom: 0;
}

.gc-rule-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 8px;
  font-weight: 600;
}

.gc-label-small {
  font-size: 0.85rem;
  font-weight: normal;
  margin-top: 12px;
}

.gc-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-main);
}

.gc-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

.gc-radio-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-main);
  padding: 6px 12px;
  background: var(--gc-border-dark);
  border-radius: 6px;
  border: 1px solid var(--gc-input-border);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.gc-radio-label:has(.gc-radio:checked) {
  border-color: var(--accent-primary);
  background: var(--accent-primary-muted, rgba(99, 102, 241, 0.1));
}

.gc-radio {
  accent-color: var(--accent-primary);
  cursor: pointer;
}

.gc-personality-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.gc-rule-textarea {
  resize: vertical;
  min-height: 70px;
}

.gc-limit-input-row {
  margin-left: 28px;
}

.gc-hidden {
  display: none !important;
}

.gc-rule-input-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gc-rule-input {
  width: 100px;
  font-family: "JetBrains Mono", Menlo, Consolas, monospace;
}

.gc-rule-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.gc-full-width {
  width: 100%;
}

.gc-subscription-date {
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

img.mini-avatar {
  object-fit: cover;
}

.mini-avatar.gc-avatar-self {
  background: var(--accent-primary);
}

.mini-avatar.gc-avatar-red {
  background: var(--color-red);
}

.mini-avatar.gc-avatar-green {
  background: var(--color-green);
}

.mini-avatar.gc-avatar-blue {
  background: var(--color-blue);
}

.mini-avatar.gc-avatar-amber {
  background: var(--color-amber);
}

.mini-avatar.gc-avatar-indigo {
  background: var(--color-indigo);
}

.gc-permission-warning {
  margin: 0;
  color: var(--danger);
  font-weight: 600;
}

@media (max-width: 640px) {
  .gc-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .gc-card-body {
    grid-template-columns: 1fr;
  }
}
