.gfgoai-image-app {
  --gf-bg: #0b1020;
  --gf-card: #11182d;
  --gf-card-2: #16203a;
  --gf-text: #f7f8fb;
  --gf-muted: #aeb7cc;
  --gf-line: rgba(255,255,255,.12);
  --gf-primary: #56b6ff;
  --gf-primary-2: #8b5cf6;
  --gf-danger: #ff6b6b;
  --gf-good: #44d19d;
  color: var(--gf-text);
  background: radial-gradient(circle at top left, rgba(86,182,255,.22), transparent 34%), radial-gradient(circle at top right, rgba(139,92,246,.24), transparent 36%), var(--gf-bg);
  border-radius: 22px;
  padding: 22px;
  box-sizing: border-box;
  max-width: 1180px;
  margin: 22px auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  box-shadow: 0 18px 60px rgba(0,0,0,.22);
}
.gfgoai-image-app * { box-sizing: border-box; }
.gfgoai-img-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 8px 4px 22px;
}
.gfgoai-img-kicker {
  color: var(--gf-primary);
  font-weight: 700;
  letter-spacing: .03em;
  margin-bottom: 8px;
}
.gfgoai-img-hero h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.18;
  color: #fff;
}
.gfgoai-img-hero p {
  margin: 0;
  max-width: 780px;
  color: var(--gf-muted);
  line-height: 1.7;
}
.gfgoai-img-status {
  min-width: 130px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--gf-line);
  border-radius: 18px;
  padding: 12px 14px;
  text-align: center;
  color: var(--gf-muted);
}
.gfgoai-img-status strong { display:block; color:#fff; margin-top:4px; }
.gfgoai-img-status a { color:#fff; text-decoration:none; font-weight:700; }
.gfgoai-img-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .82fr);
  gap: 18px;
}
.gfgoai-img-panel {
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.045));
  border: 1px solid var(--gf-line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,.16);
}
.gfgoai-img-field { margin-bottom: 16px; }
.gfgoai-img-field label:first-child,
.gfgoai-img-prompt-field > label {
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
}
.gfgoai-img-field label span { color: var(--gf-danger); }
.gfgoai-img-field input[type="text"],
.gfgoai-img-field input[type="url"],
.gfgoai-img-field select,
.gfgoai-img-field textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(8,12,24,.75);
  color: #fff;
  border-radius: 14px;
  padding: 12px 13px;
  font-size: 15px;
  outline: none;
}
.gfgoai-img-field input[type="file"] {
  width: 100%;
  border: 1px dashed rgba(255,255,255,.24);
  border-radius: 14px;
  padding: 13px;
  background: rgba(8,12,24,.45);
  color: var(--gf-muted);
}
.gfgoai-img-field textarea { resize: vertical; min-height: 80px; }
.gfgoai-img-field input:focus,
.gfgoai-img-field select:focus,
.gfgoai-img-field textarea:focus {
  border-color: rgba(86,182,255,.85);
  box-shadow: 0 0 0 3px rgba(86,182,255,.14);
}
.gfgoai-img-help,
.gfgoai-img-note {
  margin: 8px 0 0;
  color: var(--gf-muted);
  line-height: 1.55;
  font-size: 13px;
}
.gfgoai-img-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.gfgoai-img-mode-row,
.gfgoai-img-inline-checks {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.gfgoai-img-mode-row label,
.gfgoai-img-inline-checks label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--gf-line);
  border-radius: 999px;
  padding: 9px 12px;
  color: #fff;
  cursor: pointer;
}
.gfgoai-img-reference-preview {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.gfgoai-img-reference-preview img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--gf-line);
}
.gfgoai-img-clear-reference,
.gfgoai-img-copy-url,
.gfgoai-img-copy-prompt,
.gfgoai-img-clear,
.gfgoai-img-build-prompt,
.gfgoai-img-generate,
.gfgoai-img-download,
.gfgoai-img-video-link {
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
  transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease;
}
.gfgoai-img-clear-reference,
.gfgoai-img-copy-url,
.gfgoai-img-copy-prompt,
.gfgoai-img-clear {
  color: #fff;
  background: rgba(255,255,255,.10);
  border: 1px solid var(--gf-line);
}
.gfgoai-img-build-prompt {
  color: #fff;
  background: linear-gradient(135deg, #334155, #475569);
}
.gfgoai-img-generate,
.gfgoai-img-download {
  color: #06111f;
  background: linear-gradient(135deg, #7dd3fc, #c4b5fd);
  box-shadow: 0 12px 30px rgba(86,182,255,.22);
}
.gfgoai-img-video-link {
  color: #06111f;
  background: linear-gradient(135deg, #86efac, #5eead4);
}
.gfgoai-img-build-prompt:hover,
.gfgoai-img-generate:hover,
.gfgoai-img-download:hover,
.gfgoai-img-video-link:hover,
.gfgoai-img-copy-url:hover,
.gfgoai-img-copy-prompt:hover,
.gfgoai-img-clear:hover,
.gfgoai-img-clear-reference:hover { transform: translateY(-1px); opacity: .94; }
.gfgoai-img-actions,
.gfgoai-img-result-actions,
.gfgoai-img-mini-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.gfgoai-img-generate[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.gfgoai-img-output-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom: 14px;
}
.gfgoai-img-output-head h3 { margin:0; font-size:22px; color:#fff; }
.gfgoai-img-badge {
  border: 1px solid rgba(86,182,255,.4);
  color: #bde7ff;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(86,182,255,.10);
}
.gfgoai-img-result-box {
  min-height: 330px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(8,12,24,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 14px;
  position: relative;
}
.gfgoai-img-placeholder { text-align:center; color:var(--gf-muted); padding:24px; }
.gfgoai-img-placeholder-icon { font-size: 46px; margin-bottom: 8px; }
.gfgoai-img-result {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  display:block;
}
.gfgoai-img-prompt-field { margin-top: 16px; }
.gfgoai-img-prompt { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 13px; }
.gfgoai-img-message {
  margin-top: 14px;
  border-radius: 14px;
  padding: 12px 13px;
  background: rgba(86,182,255,.12);
  color: #dff4ff;
  border: 1px solid rgba(86,182,255,.24);
  line-height: 1.55;
}
.gfgoai-img-message.error {
  background: rgba(255,107,107,.12);
  border-color: rgba(255,107,107,.28);
  color: #ffe2e2;
}
.gfgoai-img-message.success {
  background: rgba(68,209,157,.12);
  border-color: rgba(68,209,157,.28);
  color: #d6ffef;
}
.gfgoai-img-disabled {
  border: 1px solid #f2c94c;
  background: #fff8df;
  color: #3b3000;
  padding: 16px;
  border-radius: 12px;
}
@media (max-width: 880px) {
  .gfgoai-image-app { padding: 14px; border-radius: 16px; }
  .gfgoai-img-hero { flex-direction: column; }
  .gfgoai-img-grid,
  .gfgoai-img-two-col { grid-template-columns: 1fr; }
  .gfgoai-img-panel { padding: 14px; }
  .gfgoai-img-mode-row label,
  .gfgoai-img-inline-checks label { width: 100%; border-radius: 14px; }
  .gfgoai-img-actions button,
  .gfgoai-img-result-actions a,
  .gfgoai-img-result-actions button { width: 100%; }
}

.gfgoai-image-app [hidden] { display: none !important; }
.gfgoai-img-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 6px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--gf-line);
  border-radius: 18px;
}
.gfgoai-img-tab {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
  color: var(--gf-muted);
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.gfgoai-img-tab.active {
  color: #06111f;
  background: linear-gradient(135deg, #7dd3fc, #c4b5fd);
  box-shadow: 0 10px 24px rgba(86,182,255,.20);
}
.gfgoai-img-tab:hover { transform: translateY(-1px); }
.gfgoai-img-tab-panel { animation: gfgoaiFadeIn .18s ease; }
@keyframes gfgoaiFadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.gfgoai-img-global-options { margin-top: 4px; }
.gfgoai-img-field input[type="text"][maxlength] { letter-spacing: .03em; font-weight: 700; }
.gfgoai-img-result-actions .gfgoai-img-download[download="gfgoai-youtube-thumbnail.png"] {
  background: linear-gradient(135deg, #fde047, #fb7185);
}
@media (max-width: 880px) {
  .gfgoai-img-tabs { padding: 4px; }
  .gfgoai-img-tab { width: 100%; }
}
