.chegenia-form-shell,
.chegenia-dashboard {
  --cg-pink: #b11669;
  --cg-blue: #27307a;
  --cg-ink: #10162f;
  --cg-muted: #6a7393;
  position: relative;
  color: var(--cg-ink);
  font-family: inherit;
}

.chegenia-form-shell {
  max-width: 860px;
  margin: 24px auto;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(39, 48, 122, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 8% 0%, rgba(177, 22, 105, 0.14), transparent 30%),
    radial-gradient(circle at 100% 16%, rgba(39, 48, 122, 0.13), transparent 28%),
    #ffffff;
  box-shadow: 0 24px 60px rgba(16, 22, 47, 0.11);
}

.chegenia-form-shell::before,
.chegenia-dashboard::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.46;
  background:
    radial-gradient(ellipse at 18% 28%, transparent 0 36%, rgba(177, 22, 105, 0.12) 37%, transparent 38%),
    radial-gradient(ellipse at 82% 18%, transparent 0 30%, rgba(39, 48, 122, 0.14) 31%, transparent 32%),
    repeating-linear-gradient(28deg, transparent 0 74px, rgba(177, 22, 105, 0.045) 75px, transparent 76px),
    repeating-linear-gradient(137deg, transparent 0 94px, rgba(39, 48, 122, 0.05) 95px, transparent 96px);
}

.chegenia-form-shell > *,
.chegenia-dashboard > * {
  position: relative;
  z-index: 1;
}

.chegenia-form-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.chegenia-form-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.chegenia-form-brand h3 {
  margin: 0;
  font-size: 22px;
  color: var(--cg-blue);
}

.chegenia-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.chegenia-column {
  min-width: 0;
}

.chegenia-field {
  margin-bottom: 14px;
}

.chegenia-field label {
  display: block;
  margin-bottom: 7px;
  color: #23305f;
  font-weight: 700;
}

.chegenia-field label span {
  color: var(--cg-pink);
}

.chegenia-field input[type="text"],
.chegenia-field input[type="file"],
.chegenia-field textarea,
.chegenia-field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #dce3f3;
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.9);
  color: #111936;
  box-sizing: border-box;
}

.chegenia-field textarea {
  min-height: 120px;
  resize: vertical;
}

.chegenia-help {
  margin: 6px 0 0;
  color: var(--cg-muted);
  font-size: 13px;
}

.chegenia-choice-list {
  display: grid;
  gap: 8px;
}

.chegenia-choice {
  display: flex !important;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e1e7f5;
  border-radius: 8px;
  background: #fbfcff;
}

.chegenia-inline-note {
  padding: 12px 14px;
  border-left: 3px solid var(--cg-pink);
  background: rgba(177, 22, 105, 0.07);
  border-radius: 8px;
}

.chegenia-image-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.chegenia-image-list span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid rgba(39, 48, 122, 0.13);
  border-radius: 8px;
  background: #f5f7ff;
  color: #27307a;
  font-size: 13px;
  font-weight: 700;
}

.chegenia-image-list small {
  color: var(--cg-muted);
  font-weight: 600;
}

.chegenia-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.chegenia-model-choice {
  display: grid;
  grid-template-columns: minmax(180px, 0.85fr) minmax(280px, 1.15fr);
  gap: 16px 22px;
  align-items: start;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(39, 48, 122, 0.14);
  border-radius: 8px;
  background: rgba(245, 247, 255, 0.86);
}

.chegenia-model-choice > div,
.chegenia-model-choice > label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin: 0;
}

.chegenia-model-choice strong,
.chegenia-model-choice label > span {
  display: block;
  margin: 0;
  color: #27307a;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.25;
}

.chegenia-model-choice div > span {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid #dce3f3;
  border-radius: 8px;
  background: #ffffff;
  color: #10162f;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.25;
}

.chegenia-model-choice select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #dce3f3;
  border-radius: 8px;
  padding: 10px 14px;
  background: #fff;
  color: #10162f;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  box-sizing: border-box;
}

.chegenia-model-choice p {
  grid-column: 1 / -1;
  justify-self: center;
  width: 100%;
  box-sizing: border-box;
  margin: 4px 0 0;
  padding: 10px 14px;
  border: 1px solid rgba(39, 48, 122, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #24304f;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.chegenia-token-balance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(39, 48, 122, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: #10162f;
}

.chegenia-token-balance span {
  color: #27307a;
  font-size: 15px;
  font-weight: 850;
}

.chegenia-token-balance strong {
  min-width: 84px;
  color: #10162f;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  text-align: right;
}

.chegenia-token-balance small {
  flex-basis: 100%;
  padding-top: 4px;
  color: #5f1f26;
  font-size: 14px;
  font-weight: 750;
}

.chegenia-token-balance.is-empty {
  border-color: rgba(95, 31, 38, 0.34);
  background: #fff7f4;
}

.chegenia-token-balance.is-admin {
  border-color: rgba(39, 48, 122, 0.22);
  background: #f4f7ff;
}

.chegenia-token-balance.is-admin span,
.chegenia-token-balance.is-admin strong {
  color: #27307a;
}

.chegenia-token-balance.is-admin small {
  color: #24304f;
}

.chegenia-theme-neon {
  --cg-pink: #ff2aa1;
  --cg-blue: #00d9ff;
  --cg-ink: #eef6ff;
  --cg-muted: #b8c7e8;
  border-color: rgba(0, 217, 255, 0.24);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 42, 161, 0.24), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(0, 217, 255, 0.22), transparent 30%),
    linear-gradient(135deg, #071029, #111742 58%, #080b22);
  color: #eef6ff;
  box-shadow: 0 28px 70px rgba(7, 16, 41, 0.32);
}

.chegenia-theme-neon::before {
  opacity: 0.62;
  background:
    linear-gradient(26deg, transparent 0 46%, rgba(0, 217, 255, 0.22) 47%, transparent 48%),
    linear-gradient(137deg, transparent 0 56%, rgba(255, 42, 161, 0.18) 57%, transparent 58%),
    repeating-linear-gradient(90deg, transparent 0 62px, rgba(255, 255, 255, 0.045) 63px, transparent 64px);
}

.chegenia-theme-neon .chegenia-form-brand h3,
.chegenia-theme-neon .chegenia-field label,
.chegenia-theme-neon .chegenia-model-choice strong,
.chegenia-theme-neon .chegenia-model-choice label > span,
.chegenia-theme-neon .chegenia-token-balance span,
.chegenia-theme-neon .chegenia-result-head h4,
.chegenia-theme-neon .chegenia-job-step {
  color: #eef6ff;
}

.chegenia-theme-neon .chegenia-field input[type="text"],
.chegenia-theme-neon .chegenia-field input[type="file"],
.chegenia-theme-neon .chegenia-field textarea,
.chegenia-theme-neon .chegenia-field select,
.chegenia-theme-neon .chegenia-model-choice select,
.chegenia-theme-neon .chegenia-model-choice div > span {
  border-color: rgba(0, 217, 255, 0.28);
  background: rgba(7, 16, 41, 0.72);
  color: #fff;
}

.chegenia-theme-neon .chegenia-model-choice,
.chegenia-theme-neon .chegenia-token-balance,
.chegenia-theme-neon .chegenia-job-panel,
.chegenia-theme-neon .chegenia-result-panel {
  border-color: rgba(0, 217, 255, 0.2);
  background: rgba(8, 13, 39, 0.72);
}

.chegenia-theme-neon .chegenia-model-choice p,
.chegenia-theme-neon .chegenia-token-balance small,
.chegenia-theme-neon .chegenia-token-summary,
.chegenia-theme-neon .chegenia-privacy-note,
.chegenia-theme-neon .chegenia-help,
.chegenia-theme-neon .chegenia-job-log,
.chegenia-theme-neon .chegenia-result-content {
  color: #cbd8ff;
}

.chegenia-theme-neon .chegenia-model-choice p {
  border-color: rgba(0, 217, 255, 0.24);
  background: rgba(8, 13, 39, 0.86);
  color: #f4f7ff;
}

.chegenia-theme-neon .chegenia-submit,
.chegenia-theme-neon .chegenia-copy,
.chegenia-theme-neon .chegenia-copy-html,
.chegenia-theme-neon .chegenia-download-txt,
.chegenia-theme-neon .chegenia-download-doc,
.chegenia-theme-neon .chegenia-download-pdf {
  background: linear-gradient(135deg, #ff2aa1, #273cff 52%, #00d9ff);
  box-shadow: 0 0 24px rgba(255, 42, 161, 0.28), 0 0 22px rgba(0, 217, 255, 0.16);
}

.chegenia-theme-crystal {
  --cg-pink: #b11669;
  --cg-blue: #1275a8;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(240, 249, 255, 0.88)),
    #ffffff;
  border-color: rgba(18, 117, 168, 0.18);
  box-shadow: 0 24px 68px rgba(18, 117, 168, 0.12);
}

.chegenia-theme-crystal::before {
  opacity: 0.48;
  background:
    radial-gradient(circle at 10% 14%, rgba(123, 223, 242, 0.28), transparent 26%),
    radial-gradient(circle at 92% 0%, rgba(177, 22, 105, 0.13), transparent 26%),
    repeating-linear-gradient(124deg, transparent 0 82px, rgba(18, 117, 168, 0.05) 83px, transparent 84px);
}

.chegenia-theme-crystal .chegenia-model-choice,
.chegenia-theme-crystal .chegenia-token-balance,
.chegenia-theme-crystal .chegenia-job-panel,
.chegenia-theme-crystal .chegenia-result-panel {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(18, 117, 168, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.chegenia-theme-midnight {
  --cg-pink: #d54692;
  --cg-blue: #8c8cff;
  --cg-ink: #eef1ff;
  --cg-muted: #bdc5e5;
  border-color: rgba(140, 140, 255, 0.22);
  background:
    radial-gradient(circle at 12% 10%, rgba(213, 70, 146, 0.16), transparent 28%),
    linear-gradient(135deg, #10142d, #050914);
  color: #eef1ff;
  box-shadow: 0 26px 70px rgba(5, 9, 20, 0.38);
}

.chegenia-theme-midnight::before {
  opacity: 0.34;
  background:
    repeating-linear-gradient(30deg, transparent 0 96px, rgba(140, 140, 255, 0.08) 97px, transparent 98px),
    repeating-linear-gradient(145deg, transparent 0 118px, rgba(213, 70, 146, 0.055) 119px, transparent 120px);
}

.chegenia-theme-midnight .chegenia-form-brand h3,
.chegenia-theme-midnight .chegenia-field label,
.chegenia-theme-midnight .chegenia-model-choice strong,
.chegenia-theme-midnight .chegenia-model-choice label > span,
.chegenia-theme-midnight .chegenia-token-balance span,
.chegenia-theme-midnight .chegenia-result-head h4,
.chegenia-theme-midnight .chegenia-job-step,
.chegenia-theme-midnight .chegenia-result-content h1,
.chegenia-theme-midnight .chegenia-result-content h2,
.chegenia-theme-midnight .chegenia-result-content h3,
.chegenia-theme-midnight .chegenia-result-content h4 {
  color: #eef1ff;
}

.chegenia-theme-midnight .chegenia-field input[type="text"],
.chegenia-theme-midnight .chegenia-field input[type="file"],
.chegenia-theme-midnight .chegenia-field textarea,
.chegenia-theme-midnight .chegenia-field select,
.chegenia-theme-midnight .chegenia-model-choice select,
.chegenia-theme-midnight .chegenia-model-choice div > span {
  border-color: rgba(140, 140, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.chegenia-theme-midnight .chegenia-model-choice,
.chegenia-theme-midnight .chegenia-token-balance,
.chegenia-theme-midnight .chegenia-job-panel,
.chegenia-theme-midnight .chegenia-result-panel {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(140, 140, 255, 0.2);
}

.chegenia-theme-midnight .chegenia-model-choice p,
.chegenia-theme-midnight .chegenia-token-balance small,
.chegenia-theme-midnight .chegenia-token-summary,
.chegenia-theme-midnight .chegenia-privacy-note,
.chegenia-theme-midnight .chegenia-help,
.chegenia-theme-midnight .chegenia-job-log,
.chegenia-theme-midnight .chegenia-result-content {
  color: #cfd6f4;
}

.chegenia-theme-midnight .chegenia-model-choice p {
  border-color: rgba(140, 140, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #f4f7ff;
}

.chegenia-theme-pearl {
  background:
    repeating-linear-gradient(90deg, rgba(39, 48, 122, 0.045) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(0deg, rgba(177, 22, 105, 0.035) 0 1px, transparent 1px 28px),
    radial-gradient(circle at 8% 0%, rgba(177, 22, 105, 0.12), transparent 28%),
    #fbfcff;
  box-shadow: 0 22px 54px rgba(39, 48, 122, 0.1);
}

.chegenia-theme-pearl::before {
  opacity: 0.26;
  background:
    linear-gradient(28deg, transparent 0 49%, rgba(177, 22, 105, 0.18) 50%, transparent 51%),
    linear-gradient(144deg, transparent 0 58%, rgba(39, 48, 122, 0.16) 59%, transparent 60%);
}

.chegenia-theme-laser {
  --cg-pink: #ff2aa1;
  --cg-blue: #3e58ff;
  --cg-ink: #f7f8ff;
  --cg-muted: #d9e0ff;
  border-color: rgba(255, 42, 161, 0.34);
  background:
    radial-gradient(circle at 4% 0%, rgba(255, 42, 161, 0.3), transparent 24%),
    radial-gradient(circle at 100% 16%, rgba(62, 88, 255, 0.32), transparent 28%),
    linear-gradient(135deg, #07051f, #111457 58%, #050414);
  color: #f7f8ff;
  box-shadow: 0 30px 78px rgba(9, 11, 38, 0.42), 0 0 0 1px rgba(255, 42, 161, 0.08);
}

.chegenia-theme-laser::before {
  opacity: 0.82;
  background:
    linear-gradient(23deg, transparent 0 40%, rgba(255, 42, 161, 0.85) 40.35%, rgba(255, 42, 161, 0.08) 41%, transparent 42%),
    linear-gradient(151deg, transparent 0 50%, rgba(62, 88, 255, 0.78) 50.4%, rgba(62, 88, 255, 0.08) 51%, transparent 52%),
    linear-gradient(104deg, transparent 0 63%, rgba(0, 217, 255, 0.44) 63.25%, transparent 64%),
    repeating-linear-gradient(90deg, transparent 0 86px, rgba(255, 255, 255, 0.05) 87px, transparent 88px);
}

.chegenia-theme-laser .chegenia-form-brand h3,
.chegenia-theme-laser .chegenia-field label,
.chegenia-theme-laser .chegenia-model-choice strong,
.chegenia-theme-laser .chegenia-model-choice label > span,
.chegenia-theme-laser .chegenia-token-balance span,
.chegenia-theme-laser .chegenia-result-head h4,
.chegenia-theme-laser .chegenia-job-step,
.chegenia-theme-laser .chegenia-result-content h1,
.chegenia-theme-laser .chegenia-result-content h2,
.chegenia-theme-laser .chegenia-result-content h3,
.chegenia-theme-laser .chegenia-result-content h4 {
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 42, 161, 0.2);
}

.chegenia-theme-laser .chegenia-field input[type="text"],
.chegenia-theme-laser .chegenia-field input[type="file"],
.chegenia-theme-laser .chegenia-field textarea,
.chegenia-theme-laser .chegenia-field select,
.chegenia-theme-laser .chegenia-model-choice select,
.chegenia-theme-laser .chegenia-model-choice div > span {
  border-color: rgba(255, 42, 161, 0.34);
  background: rgba(7, 5, 31, 0.74);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(62, 88, 255, 0.12);
}

.chegenia-theme-laser .chegenia-model-choice,
.chegenia-theme-laser .chegenia-token-balance,
.chegenia-theme-laser .chegenia-job-panel,
.chegenia-theme-laser .chegenia-result-panel {
  border-color: rgba(255, 42, 161, 0.28);
  background: rgba(9, 11, 38, 0.76);
  box-shadow: inset 0 0 36px rgba(62, 88, 255, 0.1);
}

.chegenia-theme-laser .chegenia-model-choice p,
.chegenia-theme-laser .chegenia-token-balance small,
.chegenia-theme-laser .chegenia-token-summary,
.chegenia-theme-laser .chegenia-privacy-note,
.chegenia-theme-laser .chegenia-help,
.chegenia-theme-laser .chegenia-job-log,
.chegenia-theme-laser .chegenia-result-content {
  color: #dfe5ff;
}

.chegenia-theme-laser .chegenia-model-choice p {
  border-color: rgba(255, 42, 161, 0.28);
  background: rgba(7, 5, 31, 0.88);
  color: #fff;
  box-shadow: inset 0 0 22px rgba(62, 88, 255, 0.08);
}

.chegenia-theme-laser .chegenia-submit,
.chegenia-theme-laser .chegenia-copy,
.chegenia-theme-laser .chegenia-copy-html,
.chegenia-theme-laser .chegenia-download-txt,
.chegenia-theme-laser .chegenia-download-doc,
.chegenia-theme-laser .chegenia-download-pdf {
  background: linear-gradient(135deg, #ff2aa1, #3e58ff 62%, #00d9ff);
  box-shadow: 0 0 22px rgba(255, 42, 161, 0.38), 0 0 28px rgba(62, 88, 255, 0.22);
}

.chegenia-submit,
.chegenia-copy,
.chegenia-copy-html,
.chegenia-clear,
.chegenia-download-txt,
.chegenia-download-doc,
.chegenia-download-pdf {
  border: 0;
  border-radius: 8px;
  min-height: 44px;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--cg-pink), var(--cg-blue));
  box-shadow: 0 14px 28px rgba(177, 22, 105, 0.22);
  cursor: pointer;
  font-weight: 800;
}

/* Keep command labels readable when the active WordPress theme styles pressed buttons. */
.chegenia-submit,
.chegenia-submit:hover,
.chegenia-submit:focus,
.chegenia-submit:focus-visible,
.chegenia-submit:active,
.chegenia-submit span,
.chegenia-submit:hover span,
.chegenia-submit:focus span,
.chegenia-submit:focus-visible span,
.chegenia-submit:active span {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
}

.chegenia-copy,
.chegenia-copy-html,
.chegenia-clear,
.chegenia-download-txt,
.chegenia-download-doc,
.chegenia-download-pdf {
  min-height: 36px;
  padding: 0 12px;
  box-shadow: none;
}

.chegenia-clear {
  color: #27307a;
  border: 1px solid #dce3f3;
  background: #fff;
}

.chegenia-job-panel,
.chegenia-result-panel {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(39, 48, 122, 0.14);
  border-radius: 8px;
  background: rgba(248, 250, 255, 0.92);
}

.chegenia-privacy-note {
  margin: 12px 0 0;
  color: var(--cg-muted);
  font-size: 13px;
  line-height: 1.45;
}

.chegenia-job-topline,
.chegenia-result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.chegenia-job-step {
  font-weight: 800;
  color: var(--cg-blue);
}

.chegenia-job-counter {
  color: var(--cg-pink);
  font-weight: 800;
}

.chegenia-progress {
  height: 8px;
  border-radius: 999px;
  background: #e5eaf7;
  overflow: hidden;
}

.chegenia-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cg-pink), var(--cg-blue));
  transition: width 0.25s ease;
}

.chegenia-job-log {
  margin: 12px 0 0;
  padding-left: 20px;
  color: #4c5878;
}

.chegenia-result-head h4 {
  margin: 0;
  color: var(--cg-blue);
}

.chegenia-result-actions {
  display: flex;
  gap: 8px;
}

.chegenia-result-content {
  line-height: 1.65;
  color: #111936;
  user-select: text;
  -webkit-user-select: text;
}

.chegenia-result-content h1,
.chegenia-result-content h2,
.chegenia-result-content h3,
.chegenia-result-content h4 {
  margin: 1.1em 0 0.45em;
  color: var(--cg-blue);
  line-height: 1.2;
}

.chegenia-result-content h1 {
  font-size: 28px;
}

.chegenia-result-content h2 {
  font-size: 23px;
}

.chegenia-result-content h3 {
  font-size: 19px;
}

.chegenia-result-content p,
.chegenia-result-content ul,
.chegenia-result-content ol {
  margin: 0 0 1em;
}

.chegenia-result-content pre,
.chegenia-result-content code {
  white-space: pre-wrap;
  word-break: break-word;
}

.chegenia-result-content blockquote {
  margin: 1em 0;
  padding: 8px 12px;
  border-left: 3px solid var(--cg-pink);
  background: rgba(177, 22, 105, 0.06);
}

.chegenia-token-summary {
  margin-top: 12px;
  color: var(--cg-muted);
  font-size: 13px;
}

.chegenia-subscription-gate {
  --cg-pink: #b11669;
  --cg-blue: #27307a;
  --cg-ink: #10162f;
  position: relative;
  max-width: 860px;
  margin: 24px auto;
  padding: 34px 24px;
  overflow: hidden;
  border: 1px solid rgba(39, 48, 122, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 10% 0%, rgba(177, 22, 105, 0.18), transparent 30%),
    radial-gradient(circle at 90% 12%, rgba(39, 48, 122, 0.18), transparent 30%),
    linear-gradient(135deg, #ffffff, #f6f8ff);
  color: var(--cg-ink);
  text-align: center;
  box-shadow: 0 24px 60px rgba(16, 22, 47, 0.12);
}

.chegenia-subscription-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
  background:
    linear-gradient(26deg, transparent 0 46%, rgba(177, 22, 105, 0.12) 47%, transparent 48%),
    linear-gradient(137deg, transparent 0 56%, rgba(39, 48, 122, 0.12) 57%, transparent 58%),
    repeating-linear-gradient(90deg, transparent 0 72px, rgba(39, 48, 122, 0.05) 73px, transparent 74px);
}

.chegenia-subscription-gate > * {
  position: relative;
  z-index: 1;
}

.chegenia-gate-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(340px, 86%);
  margin: 0 auto 18px;
  padding: 12px 18px;
  border: 1px solid rgba(39, 48, 122, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(16, 22, 47, 0.1);
}

.chegenia-gate-logo img {
  width: 100%;
  max-height: 70px;
  object-fit: contain;
}

.chegenia-gate-kicker {
  margin: 0 0 8px;
  color: var(--cg-pink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chegenia-subscription-gate h3 {
  margin: 0 auto 10px;
  max-width: 620px;
  color: var(--cg-blue);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.08;
}

.chegenia-subscription-gate p:not(.chegenia-gate-kicker) {
  max-width: 640px;
  margin: 0 auto 22px;
  color: #344167;
  font-size: 17px;
  line-height: 1.6;
}

.chegenia-gate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  color: #fff !important;
  background: linear-gradient(135deg, var(--cg-pink), var(--cg-blue));
  box-shadow: 0 16px 34px rgba(177, 22, 105, 0.24);
  font-weight: 900;
  text-decoration: none !important;
}

.chegenia-gate-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 42px rgba(39, 48, 122, 0.24);
}

.chegenia-theme-neon.chegenia-subscription-gate,
.chegenia-theme-midnight.chegenia-subscription-gate,
.chegenia-theme-laser.chegenia-subscription-gate {
  color: #eef6ff;
}

.chegenia-theme-neon.chegenia-subscription-gate h3,
.chegenia-theme-midnight.chegenia-subscription-gate h3,
.chegenia-theme-laser.chegenia-subscription-gate h3,
.chegenia-theme-neon.chegenia-subscription-gate p:not(.chegenia-gate-kicker),
.chegenia-theme-midnight.chegenia-subscription-gate p:not(.chegenia-gate-kicker),
.chegenia-theme-laser.chegenia-subscription-gate p:not(.chegenia-gate-kicker) {
  color: #eef6ff;
}

@media (max-width: 700px) {
  .chegenia-form-shell {
    width: 100vw;
    max-width: none;
    min-height: 100svh;
    margin: 0 calc(50% - 50vw);
    padding: 14px 14px 24px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
  }

  .chegenia-subscription-gate {
    width: 100vw;
    max-width: none;
    min-height: 100svh;
    margin: 0 calc(50% - 50vw);
    padding: 28px 16px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-sizing: border-box;
  }

  .chegenia-row {
    display: block;
  }

  .chegenia-column {
    width: 100%;
    flex-basis: 100% !important;
  }

  .chegenia-field input[type="text"],
  .chegenia-field input[type="file"],
  .chegenia-field textarea,
  .chegenia-field select {
    min-height: 48px;
    font-size: 16px;
  }

  .chegenia-job-topline,
  .chegenia-result-head,
  .chegenia-result-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .chegenia-job-panel,
  .chegenia-result-panel {
    margin-right: -14px;
    margin-left: -14px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .chegenia-model-choice {
    grid-template-columns: 1fr;
  }

  .chegenia-result-content {
    min-height: 45vh;
    font-size: 16px;
    line-height: 1.7;
    user-select: text;
    -webkit-user-select: text;
  }

  .chegenia-result-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    padding: 10px 0 0;
    background: linear-gradient(180deg, rgba(248, 250, 255, 0), rgba(248, 250, 255, 0.98) 28%);
  }

  .chegenia-submit,
  .chegenia-copy,
  .chegenia-copy-html,
  .chegenia-clear,
  .chegenia-download-txt,
  .chegenia-download-doc,
  .chegenia-download-pdf {
    width: 100%;
  }
}

.chegenia-admin-user-switcher {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px 14px;
  align-items: end;
  width: 100%;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid #c8d4f4;
  border-radius: 8px;
  background: #fff;
  color: #10162f;
  box-shadow: 0 12px 28px rgba(16, 22, 47, 0.1);
  box-sizing: border-box;
  overflow: hidden;
}

.chegenia-admin-user-switcher *,
.chegenia-admin-user-switcher *::before,
.chegenia-admin-user-switcher *::after {
  box-sizing: border-box;
}

.chegenia-admin-user-switcher-head,
.chegenia-admin-user-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.chegenia-admin-user-switcher-head span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 3px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef3ff;
  color: #27307a;
  font-size: 11px;
  font-weight: 900;
}

.chegenia-admin-user-switcher h4 {
  margin: 0;
  color: #10162f;
  font-size: 16px;
  font-weight: 950;
  line-height: 1.25;
}

.chegenia-admin-user-switcher-head a,
.chegenia-admin-user-search-button {
  min-height: 36px;
  border: 1px solid #27307a;
  border-radius: 8px;
  padding: 0 12px;
  background: #27307a;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
}

.chegenia-admin-user-search-row {
  display: flex;
  align-items: flex-end;
  gap: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  justify-self: start;
}

.chegenia-admin-user-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  width: 300px;
  max-width: 300px;
  min-width: 0;
  margin: 0;
  flex: 0 0 300px;
}

.chegenia-admin-user-search label {
  grid-column: 1 / -1;
  color: #25305f;
  font-size: 12px;
  font-weight: 900;
}

.chegenia-admin-user-search input {
  width: 300px !important;
  min-width: 0;
  max-width: 300px !important;
  height: 44px !important;
  min-height: 44px !important;
  border: 1px solid #b9c6e8;
  border-radius: 8px;
  padding: 0 12px !important;
  background: #fff;
  color: #10162f;
  line-height: 44px;
  font-weight: 800;
  box-sizing: border-box !important;
}

.chegenia-admin-user-search input::placeholder {
  color: #526188;
}

.chegenia-admin-user-search-button {
  width: 92px !important;
  min-width: 92px !important;
  height: 44px !important;
  min-height: 44px !important;
  margin-left: 28px !important;
  padding: 0 10px !important;
  align-self: flex-end;
  box-shadow: 0 7px 18px rgba(39, 48, 122, 0.18);
}

.chegenia-admin-user-current {
  grid-column: 1 / -1;
  margin-top: 0;
  padding: 8px 10px;
  border: 1px solid #d7e0f7;
  border-radius: 8px;
  background: #f8faff;
}

.chegenia-admin-user-current span,
.chegenia-admin-user-current em {
  color: #526188;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.chegenia-admin-user-current strong {
  color: #10162f;
  font-weight: 950;
}

.chegenia-admin-user-results {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 0;
}

.chegenia-admin-user-results a {
  display: grid;
  gap: 4px;
  min-height: 64px;
  padding: 11px 12px;
  border: 1px solid #d7e0f7;
  border-radius: 8px;
  background: #f8faff;
  color: #10162f;
  text-decoration: none;
}

.chegenia-admin-user-results a:hover,
.chegenia-admin-user-results a:focus,
.chegenia-admin-user-results a.is-selected {
  border-color: #b01669;
  box-shadow: 0 0 0 2px rgba(176, 22, 105, 0.18);
  outline: none;
}

.chegenia-admin-user-results strong {
  color: #10162f;
  font-weight: 950;
}

.chegenia-admin-user-results span,
.chegenia-admin-user-empty {
  color: #526188;
  font-size: 13px;
  font-weight: 800;
}

.chegenia-admin-user-empty {
  grid-column: 1 / -1;
  margin: 12px 0 0;
}

.chegenia-dashboard {
  width: calc(100vw - 48px);
  max-width: 1440px;
  margin: 28px calc(50% - 50vw + 24px);
  padding: 22px;
  overflow: clip;
  border-radius: 8px;
  border: 1px solid rgba(39, 48, 122, 0.14);
  background:
    radial-gradient(circle at 15% 5%, rgba(177, 22, 105, 0.2), transparent 30%),
    radial-gradient(circle at 95% 10%, rgba(39, 48, 122, 0.2), transparent 28%),
    #071029;
  color: #f8faff;
  box-shadow: 0 28px 70px rgba(7, 16, 41, 0.28);
  box-sizing: border-box;
}

.woocommerce-MyAccount-content .chegenia-dashboard,
.woocommerce-account .woocommerce .chegenia-dashboard {
  width: 100%;
  max-width: none;
  margin: 24px 0;
  clear: both;
}

.chegenia-dashboard *,
.chegenia-dashboard *::before,
.chegenia-dashboard *::after {
  box-sizing: border-box;
  min-width: 0;
}

.chegenia-dashboard-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 132px;
}

.chegenia-dashboard-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(330px, 48vw);
  min-height: 96px;
  padding: 14px 18px;
  border: 1px solid rgba(238, 243, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  box-sizing: border-box;
}

.chegenia-dashboard-logo img {
  width: min(320px, 48vw);
  height: auto;
  object-fit: contain;
}

.chegenia-dashboard-hero span,
.chegenia-stats span,
.chegenia-usage-item span {
  color: #dbe6ff;
  font-size: 13px;
  font-weight: 800;
}

.chegenia-dashboard-hero h3 {
  margin: 4px 0 0;
  color: #fff;
  font-size: 28px;
}

.chegenia-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.chegenia-stats > div,
.chegenia-dashboard-grid section,
.chegenia-dashboard-grid aside,
.chegenia-usage-item {
  border: 1px solid rgba(219, 230, 255, 0.28);
  border-radius: 8px;
  background: rgba(18, 26, 58, 0.78);
  backdrop-filter: blur(10px);
}

.chegenia-stats > div {
  padding: 16px;
}

.chegenia-stats strong {
  display: block;
  margin-top: 7px;
  font-size: 24px;
  color: #fff;
  overflow-wrap: anywhere;
}

.chegenia-stats small {
  display: block;
  margin-top: 5px;
  color: #dbe6ff;
  font-size: 12px;
  font-weight: 750;
}

.chegenia-dashboard-filter-box {
  margin: 0 0 14px;
  border: 1px solid rgba(219, 230, 255, 0.28);
  border-radius: 8px;
  background: rgba(18, 26, 58, 0.78);
}

.chegenia-dashboard-filter-box summary {
  min-height: 44px;
  padding: 12px;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.chegenia-dashboard-filter-box[open] summary {
  border-bottom: 1px solid rgba(238, 243, 255, 0.12);
}

.chegenia-dashboard-filters {
  display: grid;
  grid-template-columns: 150px 150px minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin: 0;
  padding: 12px;
}

.chegenia-dashboard-filters label {
  display: grid;
  gap: 5px;
  color: #eaf0ff;
  font-size: 12px;
  font-weight: 800;
}

.chegenia-dashboard-filters input {
  min-height: 40px;
  width: 100%;
  border: 1px solid rgba(219, 230, 255, 0.45);
  border-radius: 8px;
  padding: 8px 10px;
  background: #ffffff;
  color: #10162f;
  font-weight: 800;
}

.chegenia-dashboard-filters > div {
  display: flex;
  gap: 8px;
  align-items: center;
}

.chegenia-dashboard-filters button,
.chegenia-dashboard-filters a,
.chegenia-dashboard-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(219, 230, 255, 0.4);
  border-radius: 8px;
  background: #fff;
  color: #27307a;
  cursor: pointer;
  font-weight: 850;
  text-decoration: none;
}

.chegenia-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 14px;
}

.chegenia-dashboard-grid section,
.chegenia-dashboard-grid aside {
  padding: 16px;
}

.chegenia-dashboard h4 {
  margin: 0 0 12px;
  color: #fff;
  font-weight: 900;
}

.chegenia-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.chegenia-section-head h4 {
  margin: 0;
}

.chegenia-section-head span {
  color: #dbe6ff;
  font-size: 13px;
  font-weight: 800;
}

.chegenia-usage-list {
  display: grid;
  gap: 12px;
}

.chegenia-usage-item {
  padding: 14px;
}

.chegenia-usage-item header,
.chegenia-usage-item footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.chegenia-usage-columns {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
  margin: 12px 0;
}

.chegenia-usage-columns > div {
  padding: 12px;
  border: 1px solid rgba(219, 230, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.chegenia-usage-columns p {
  margin: 8px 0 0;
  color: #f8faff;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.chegenia-usage-columns small {
  display: block;
  margin-top: 8px;
  color: #dbe6ff;
  font-weight: 750;
}

.chegenia-history-detail {
  margin: 12px 0;
  color: #eef3ff;
}

.chegenia-history-detail summary {
  cursor: pointer;
  color: #fff;
  font-weight: 800;
}

.chegenia-history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.chegenia-history-actions button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(238, 243, 255, 0.18);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--cg-pink), var(--cg-blue));
  cursor: pointer;
  font-weight: 800;
}

.chegenia-dashboard-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  color: #eaf0ff;
  font-weight: 850;
}

.chegenia-dashboard-pagination a.is-disabled {
  pointer-events: none;
  opacity: 0.45;
}

.chegenia-history-full-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 12px;
}

.chegenia-history-full-grid > div,
.chegenia-history-regenerated {
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.chegenia-history-fields p,
.chegenia-history-result p {
  color: #f8faff;
}

.chegenia-history-result,
.chegenia-history-regenerated .chegenia-result-content {
  color: #f8faff;
  line-height: 1.65;
  user-select: text;
  -webkit-user-select: text;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.chegenia-history-regenerated {
  margin-top: 12px;
}

.chegenia-account-table {
  width: 100%;
  border-collapse: collapse;
  color: #f8faff;
  table-layout: fixed;
}

.chegenia-account-table th,
.chegenia-account-table td {
  border-bottom: 1px solid rgba(219, 230, 255, 0.24);
  padding: 10px 8px;
  text-align: left;
  overflow-wrap: anywhere;
}

.chegenia-account-table th {
  color: #eaf0ff;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.chegenia-account-table td {
  color: #fff;
  font-weight: 750;
}

.chegenia-empty {
  padding: 18px;
  border-radius: 8px;
  border: 1px solid rgba(219, 230, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #f8faff;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .chegenia-admin-user-switcher {
    grid-template-columns: 1fr;
  }

  .chegenia-admin-user-search-row {
    justify-self: start;
  }
}

@media (max-width: 820px) {
  .chegenia-dashboard {
    width: 100vw;
    max-width: none;
    margin: 0 calc(50% - 50vw);
    padding: 16px 12px 24px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-sizing: border-box;
  }

  .chegenia-row,
  .chegenia-dashboard-hero,
  .chegenia-usage-columns,
  .chegenia-section-head,
  .chegenia-history-full-grid {
    display: block;
  }

  .chegenia-dashboard-filters {
    grid-template-columns: 1fr;
  }

  .chegenia-dashboard-filters > div,
  .chegenia-dashboard-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .chegenia-dashboard-filters button,
  .chegenia-dashboard-filters a,
  .chegenia-dashboard-pagination a {
    width: 100%;
  }

  .chegenia-history-actions button {
    width: 100%;
  }

  .chegenia-stats,
  .chegenia-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .chegenia-dashboard-logo {
    width: 100%;
    min-height: 82px;
    margin-bottom: 16px;
  }

  .chegenia-dashboard-logo img {
    width: 240px;
    max-width: 100%;
  }

  .chegenia-usage-item {
    padding: 12px;
  }

  .chegenia-account-table {
    display: block;
    overflow-x: auto;
  }

  .chegenia-admin-user-switcher {
    margin: 0 0 12px;
    padding: 13px;
    border-radius: 0;
  }

  .chegenia-admin-user-search-row {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: none;
  }

  .chegenia-admin-user-search {
    width: 100%;
    max-width: none;
    flex-basis: auto;
  }

  .chegenia-admin-user-search input {
    width: 100% !important;
    max-width: none !important;
  }

  .chegenia-admin-user-search-button {
    margin-left: 0 !important;
  }

  .chegenia-admin-user-search-button,
  .chegenia-admin-user-switcher-head a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
