/* easy-settings.css — Auth gate, settings panel, error states, refreshed dark theme */

/* ───────────────────── Base primitives — scoped to modal/error contexts
   so they don't collide with the Easy app's inline CSS. ───────────────────── */
.ez-modal .ez-cta,
.ez-gen   .ez-cta {
  appearance: none;
  background: var(--ez-accent);
  color: var(--ez-accent-ink, #fff);
  border: 0;
  border-radius: var(--ez-radius-pill, 999px);
  padding: 14px 24px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 22px var(--ez-accent-stripe, rgba(10,132,255,0.22));
  transition: transform .12s ease, filter .15s ease, opacity .15s ease, box-shadow .15s ease;
  min-height: 48px;
  white-space: nowrap;
}
.ez-modal .ez-cta:hover,
.ez-gen   .ez-cta:hover { transform: translateY(-2px); filter: brightness(1.05); }
.ez-modal .ez-cta:disabled,
.ez-gen   .ez-cta:disabled {
  opacity: 0.4; cursor: not-allowed; box-shadow: none; transform: none; filter: none;
}
.ez-modal .ez-cta.is-huge,
.ez-gen   .ez-cta.is-huge {
  padding: 18px 32px;
  font-size: 19px;
  min-height: 60px;
}
.ez-modal .ez-cta.is-ghost,
.ez-gen   .ez-cta.is-ghost {
  background: var(--ez-surface);
  color: var(--ez-ink);
  border: 1.5px solid var(--ez-line);
  box-shadow: var(--ez-shadow-sm);
}
.ez-modal .ez-cta.is-ghost:hover,
.ez-gen   .ez-cta.is-ghost:hover { background: var(--ez-hover); filter: none; }

.ez-modal .ez-mode-card-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 15px;
}
.ez-modal .ez-mode-card-list li {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--ez-ink-2);
}
.ez-modal .ez-mode-card-list li svg { color: var(--ez-accent); margin-top: 2px; flex-shrink: 0; }

.ez-modal .ez-step-title-eyebrow {
  font-size: 13px; font-weight: 700;
  color: var(--ez-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ez-modal .ez-help,
.ez-gen   .ez-help {
  background: var(--ez-warm, color-mix(in oklab, var(--ez-accent) 5%, var(--ez-surface)));
  border: 1px solid color-mix(in oklab, var(--ez-accent) 16%, transparent);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex; gap: 14px; align-items: center;
  color: var(--ez-ink-2);
  font-size: 15px;
  line-height: 1.5;
}
.ez-modal .ez-help-icon,
.ez-gen   .ez-help-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--ez-accent-soft);
  color: var(--ez-accent);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.ez-modal .ez-help b,
.ez-gen   .ez-help b { color: var(--ez-ink); }

.ez-gen {
  flex: 1;
  display: grid; place-items: center;
  padding: 40px 20px;
}
.ez-modal .ez-gen-inner,
.ez-gen   .ez-gen-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 24px;
  text-align: center;
  max-width: 540px;
}
.ez-modal .ez-gen-title,
.ez-gen   .ez-gen-title { font-size: 30px; font-weight: 700; letter-spacing: -0.018em; }
.ez-modal .ez-gen-sub,
.ez-gen   .ez-gen-sub   { color: var(--ez-muted); font-size: 16px; }

/* ───────────────────── Dark theme — softer, depth-aware ───────────────────── */
html[data-theme='dark'] {
  --ez-warm:    #2a2520;
  --ez-bg:      #1c1d22;        /* deep cool slate, not pure black */
  --ez-bg-2:    #262830;        /* card recess */
  --ez-surface: #2f323b;        /* raised surface */
  --ez-ink:     #f1f2f6;
  --ez-ink-2:   #d6d8df;
  --ez-muted:   #9da0ac;
  --ez-faint:   #6f7382;
  --ez-line:    rgba(255, 255, 255, 0.08);
  --ez-line-2:  rgba(255, 255, 255, 0.04);
  --ez-hover:   rgba(255, 255, 255, 0.05);
  --ez-active:  rgba(255, 255, 255, 0.10);

  --ez-accent:        #5aa6ff;          /* softer cobalt, easier on eyes */
  --ez-accent-ink:    #0d1830;
  --ez-accent-soft:   rgba(90, 166, 255, 0.16);
  --ez-accent-stripe: rgba(90, 166, 255, 0.28);

  --ez-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255,255,255,0.03) inset;
  --ez-shadow-md: 0 12px 28px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255,255,255,0.04) inset;
  --ez-shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255,255,255,0.05) inset;
}

html[data-theme='dark'] body {
  background:
    radial-gradient(1400px 700px at 10% -10%, rgba(90, 166, 255, 0.10), transparent 60%),
    radial-gradient(900px 600px at 110% 110%, rgba(140, 100, 220, 0.08), transparent 60%),
    var(--ez-bg);
}

html[data-theme='dark'] .ez-app {
  background:
    radial-gradient(1400px 700px at 10% -10%, rgba(90, 166, 255, 0.10), transparent 60%),
    radial-gradient(900px 600px at 110% 110%, rgba(140, 100, 220, 0.08), transparent 60%),
    var(--ez-bg);
}

html[data-theme='dark'] .ez-mode-card.is-recommended {
  background: linear-gradient(180deg, rgba(90,166,255,0.10), var(--ez-surface));
}
html[data-theme='dark'] .ez-action-card.tone-warm  .ez-action-card-icon { background: rgba(255, 178, 110, 0.18); color: #ffb46b; }
html[data-theme='dark'] .ez-action-card.tone-violet .ez-action-card-icon { background: rgba(190, 150, 255, 0.18); color: #c69bff; }
html[data-theme='dark'] .ez-action-card.tone-green .ez-action-card-icon { background: rgba(110, 220, 160, 0.16); color: #6edca0; }
html[data-theme='dark'] .ez-confirm-icon { background: rgba(110, 220, 160, 0.18); color: #6edca0; }

/* ───────────────────── Modal shell ───────────────────── */
.ez-modal {
  position: fixed; inset: 0;
  background: rgba(15, 17, 22, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: grid; place-items: center;
  padding: 24px;
  z-index: 60;
  animation: ezFade .2s ease;
}
.ez-modal-card {
  background: var(--ez-surface);
  border: 1px solid var(--ez-line);
  border-radius: var(--ez-radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--ez-shadow-lg);
  animation: ezPop .25s cubic-bezier(.2, .8, .2, 1);
}
.ez-modal-card.is-wide { max-width: 760px; }
@keyframes ezPop {
  from { transform: translateY(20px) scale(.98); opacity: 0; }
  to   { transform: translateY(0)    scale(1);   opacity: 1; }
}
.ez-modal-close {
  appearance: none;
  background: var(--ez-bg-2);
  border: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--ez-ink-2);
  transition: background .15s ease;
  flex-shrink: 0;
}
.ez-modal-close:hover { background: var(--ez-active); }

/* ───────────────────── Auth gate ───────────────────── */
.ez-auth {
  display: flex; flex-direction: column;
  gap: 18px;
  padding: 28px 28px 24px;
  overflow-y: auto;
}
.ez-auth-head {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 16px;
  align-items: start;
}
.ez-auth-mark {
  width: 64px; height: 64px;
  border-radius: 20px;
  background: var(--ez-accent-soft);
  color: var(--ez-accent);
  display: grid; place-items: center;
}
.ez-auth-head h2 { font-size: 26px; }
.ez-auth-head p  { margin-top: 6px; color: var(--ez-muted); font-size: 16px; }

.ez-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  background: var(--ez-bg-2);
  border-radius: 16px;
}
.ez-auth-tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ez-muted);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s ease, color .15s ease;
}
.ez-auth-tab:hover { color: var(--ez-ink); }
.ez-auth-tab.is-active {
  background: var(--ez-surface);
  color: var(--ez-ink);
  box-shadow: var(--ez-shadow-sm);
}

.ez-auth-body { display: flex; flex-direction: column; gap: 14px; }
.ez-auth-pro {
  display: flex; flex-direction: column; gap: 18px;
  background: linear-gradient(180deg, color-mix(in oklab, var(--ez-accent) 6%, var(--ez-surface)), var(--ez-surface));
  border: 1px solid color-mix(in oklab, var(--ez-accent) 18%, transparent);
  border-radius: 18px;
  padding: 20px;
}
.ez-auth-pro .ez-cta { align-self: stretch; justify-content: center; }

.ez-auth-label {
  font-size: 13px; font-weight: 700;
  color: var(--ez-ink-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ez-auth-input {
  display: flex; align-items: center; gap: 10px;
  background: var(--ez-bg-2);
  border: 2px solid var(--ez-line);
  border-radius: 14px;
  padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.ez-auth-input:focus-within {
  border-color: var(--ez-accent);
  box-shadow: 0 0 0 4px var(--ez-accent-soft);
  background: var(--ez-surface);
}
.ez-auth-input svg { color: var(--ez-muted); flex-shrink: 0; }
.ez-auth-input input {
  flex: 1; min-width: 0;
  border: 0; outline: 0;
  background: transparent;
  font: inherit;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--ez-ink);
}
.ez-auth-input input::placeholder { color: var(--ez-faint); }

.ez-auth-error {
  display: inline-flex; align-items: flex-start; gap: 10px;
  background: color-mix(in oklab, #ff5a5f 16%, var(--ez-surface));
  color: color-mix(in oklab, #ff5a5f 60%, var(--ez-ink));
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  border: 1px solid color-mix(in oklab, #ff5a5f 24%, transparent);
}
.ez-auth-error svg { flex-shrink: 0; margin-top: 1px; }

.ez-auth-hint {
  color: var(--ez-muted);
  font-size: 14px;
  line-height: 1.5;
}
.ez-auth-hint a { color: var(--ez-accent); font-weight: 600; }

.ez-auth-foot {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
  padding: 16px 18px;
  background: var(--ez-bg-2);
  border-radius: 14px;
  color: var(--ez-muted);
  font-size: 14px;
}
.ez-auth-foot a { color: var(--ez-accent); font-weight: 600; }
.ez-auth-foot svg { color: var(--ez-muted); }

/* Spinner used in modal CTAs */
.ez-spinner {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2.5px solid currentColor;
  border-right-color: transparent;
  display: inline-block;
  animation: ezSpin .7s linear infinite;
  margin-right: 4px;
}
@keyframes ezSpin { to { transform: rotate(360deg); } }

/* ───────────────────── Settings FAB ───────────────────── */
.ez-settings-fab {
  position: fixed;
  left: 22px; bottom: 22px;
  z-index: 40;
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ez-surface);
  border: 1px solid var(--ez-line);
  border-radius: var(--ez-radius-pill);
  padding: 10px 18px 10px 10px;
  cursor: pointer;
  box-shadow: var(--ez-shadow-md);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  color: var(--ez-ink);
}
.ez-settings-fab:hover {
  transform: translateY(-2px);
  box-shadow: var(--ez-shadow-lg);
  background: color-mix(in oklab, var(--ez-accent) 4%, var(--ez-surface));
}
.ez-settings-fab-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ez-bg-2);
  color: var(--ez-ink-2);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.ez-settings-fab-text {
  display: flex; flex-direction: column;
  font-size: 15px; font-weight: 700;
  text-align: left;
  line-height: 1.2;
}
.ez-settings-fab-sub {
  font-size: 12px; font-weight: 600;
  color: var(--ez-muted);
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 2px;
}
.ez-settings-fab-sub .ez-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.ez-settings-fab-sub.is-ok   { color: #1e8e4a; }
.ez-settings-fab-sub.is-ok .ez-dot   { background: #30d158; box-shadow: 0 0 0 3px rgba(48, 209, 88, .18); }
.ez-settings-fab-sub.is-warn { color: #b35900; }
.ez-settings-fab-sub.is-warn .ez-dot { background: #ff9f0a; box-shadow: 0 0 0 3px rgba(255, 159, 10, .22); }

html[data-theme='dark'] .ez-settings-fab-sub.is-ok   { color: #6edca0; }
html[data-theme='dark'] .ez-settings-fab-sub.is-warn { color: #ffb46b; }

@media (max-width: 540px) {
  .ez-settings-fab { left: 14px; bottom: 14px; padding: 8px 14px 8px 8px; }
  .ez-settings-fab-text { display: none; }
}

/* ───────────────────── Settings panel ───────────────────── */
.ez-settings {
  display: flex; flex-direction: column;
  max-height: 100%;
}
.ez-settings-head {
  padding: 24px 28px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  border-bottom: 1px solid var(--ez-line);
}
.ez-settings-head h2 { font-size: 26px; margin-top: 4px; }

.ez-settings-tabs {
  display: flex; gap: 4px;
  padding: 12px 24px 0;
  border-bottom: 1px solid var(--ez-line);
}
.ez-settings-tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 12px 16px;
  border-radius: 12px 12px 0 0;
  font-weight: 600;
  font-size: 15px;
  color: var(--ez-muted);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color .15s ease, background .15s ease;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
}
.ez-settings-tab:hover { color: var(--ez-ink); background: var(--ez-hover); }
.ez-settings-tab.is-active {
  color: var(--ez-accent);
  border-bottom-color: var(--ez-accent);
  background: transparent;
}

.ez-settings-body {
  padding: 22px 28px 26px;
  overflow-y: auto;
}
.ez-settings-stack {
  display: flex; flex-direction: column; gap: 18px;
}

.ez-status-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 18px;
  border-radius: 18px;
  border: 1px solid var(--ez-line);
  background: var(--ez-bg-2);
}
.ez-status-card.is-ok {
  background: color-mix(in oklab, #30d158 8%, var(--ez-surface));
  border-color: color-mix(in oklab, #30d158 22%, transparent);
}
.ez-status-card.is-warn {
  background: color-mix(in oklab, #ff9f0a 10%, var(--ez-surface));
  border-color: color-mix(in oklab, #ff9f0a 26%, transparent);
}
.ez-status-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: var(--ez-surface);
  color: var(--ez-ink);
}
.ez-status-card.is-ok   .ez-status-icon { background: #30d158; color: #fff; }
.ez-status-card.is-warn .ez-status-icon { background: #ff9f0a; color: #fff; }
.ez-status-body h3 { font-size: 19px; }
.ez-status-body p  { color: var(--ez-muted); margin-top: 4px; font-size: 14.5px; }
.ez-status-body b  { color: var(--ez-ink); font-weight: 600; }

.ez-settings-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  background: var(--ez-bg-2);
  border-radius: 16px;
  border: 1px solid var(--ez-line);
}
.ez-settings-row-title { font-weight: 700; font-size: 16px; }
.ez-settings-row-sub   { color: var(--ez-muted); font-size: 14px; margin-top: 2px; }

.ez-test-cluster { display: inline-flex; align-items: center; gap: 10px; }
.ez-test-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: var(--ez-radius-pill);
  font-size: 13px; font-weight: 700;
}
.ez-test-pill.is-ok   { background: color-mix(in oklab, #30d158 18%, var(--ez-surface)); color: #1e8e4a; }
.ez-test-pill.is-fail { background: color-mix(in oklab, #ff5a5f 18%, var(--ez-surface)); color: #b3261e; }
html[data-theme='dark'] .ez-test-pill.is-ok   { color: #6edca0; }
html[data-theme='dark'] .ez-test-pill.is-fail { color: #ff8a8e; }

.ez-section {
  display: flex; flex-direction: column; gap: 12px;
}
.ez-section-head h3 { font-size: 20px; }
.ez-section-head p  { color: var(--ez-muted); font-size: 14.5px; margin-top: 2px; }

.ez-model-list {
  display: flex; flex-direction: column; gap: 8px;
}
.ez-model-list-scroll {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}
.ez-model-search {
  position: relative;
  margin: 6px 0 10px;
}
.ez-model-search input {
  width: 100%;
  border: 1.5px solid var(--ez-line);
  background: var(--ez-bg-2);
  color: var(--ez-ink);
  border-radius: 12px;
  padding: 10px 36px 10px 14px;
  font-size: 14.5px;
  font: inherit;
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.ez-model-search input:focus {
  border-color: var(--ez-accent);
  background: var(--ez-bg);
}
.ez-model-search-x {
  position: absolute;
  right: 8px; top: 50%; transform: translateY(-50%);
  appearance: none;
  border: 0;
  background: var(--ez-line);
  color: var(--ez-muted);
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
}
.ez-model-search-x:hover { background: var(--ez-faint); color: var(--ez-ink); }
.ez-model-empty {
  padding: 18px;
  text-align: center;
  color: var(--ez-muted);
  font-size: 14px;
  border: 1.5px dashed var(--ez-line);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}

.ez-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 4px 0 4px;
}
.ez-stat {
  background: var(--ez-bg-2);
  border: 1.5px solid var(--ez-line);
  border-radius: 14px;
  padding: 12px 14px;
}
.ez-stat-lbl {
  font-size: 12px;
  color: var(--ez-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ez-stat-val {
  font-size: 22px;
  font-weight: 600;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.ez-stat-sub {
  font-size: 11.5px;
  color: var(--ez-faint);
  margin-top: 2px;
}
.ez-model-row {
  appearance: none;
  border: 2px solid var(--ez-line);
  background: var(--ez-bg-2);
  border-radius: 16px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 24px 1fr auto auto;
  gap: 14px;
  align-items: center;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
  color: inherit;
  font: inherit;
}
.ez-model-row:hover {
  background: var(--ez-hover);
  transform: translateX(2px);
}
.ez-model-row.is-active {
  background: color-mix(in oklab, var(--ez-accent) 10%, var(--ez-surface));
  border-color: var(--ez-accent);
}
.ez-radio-pip {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--ez-line);
  display: grid; place-items: center;
  background: var(--ez-surface);
  transition: border-color .15s ease;
}
.ez-radio-pip-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: transparent;
  transition: background .15s ease;
}
.ez-model-row.is-active .ez-radio-pip {
  border-color: var(--ez-accent);
}
.ez-model-row.is-active .ez-radio-pip-dot {
  background: var(--ez-accent);
}
.ez-model-toggle {
  appearance: none; border: 0; background: transparent; padding: 0;
  display: grid; place-items: center;
  cursor: pointer;
}
.ez-model-toggle .ez-check-box {
  width: 24px; height: 24px;
  border-radius: 8px;
  border: 2px solid var(--ez-line);
  background: var(--ez-surface);
  display: grid; place-items: center;
  color: transparent;
  transition: background .15s ease, border-color .15s ease;
}
.ez-model-toggle .ez-check-box.is-on {
  background: var(--ez-accent);
  border-color: var(--ez-accent);
  color: #fff;
}

.ez-model-meta { min-width: 0; }
.ez-model-name {
  font-weight: 700;
  font-size: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.ez-model-sub {
  color: var(--ez-muted);
  font-size: 12.5px;
  margin-top: 2px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ez-model-note {
  color: var(--ez-ink-2);
  font-size: 14px;
  margin-top: 4px;
}

.ez-model-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--ez-radius-pill);
  background: var(--ez-bg-2);
  color: var(--ez-ink-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ez-model-tag.tag-onerilen, .ez-model-tag.tag-y-ksek-kalite, .ez-model-tag.tag-yuksek-kalite {
  background: var(--ez-accent-soft); color: var(--ez-accent);
}
.ez-model-tag.tag-h-zl, .ez-model-tag.tag-hizli, .ez-model-tag.tag-cok-hizli, .ez-model-tag.tag-ok-h-zl {
  background: color-mix(in oklab, #30d158 16%, var(--ez-surface)); color: #1e8e4a;
}
.ez-model-tag.tag-ucuz { background: color-mix(in oklab, #ffd60a 22%, var(--ez-surface)); color: #8a6b00; }
.ez-model-tag.tag-yaratici, .ez-model-tag.tag-yarat-c { background: color-mix(in oklab, #bf5af2 18%, var(--ez-surface)); color: #7b46d4; }
.ez-model-tag.tag-tipografi { background: color-mix(in oklab, #ff9f0a 18%, var(--ez-surface)); color: #b35900; }
html[data-theme='dark'] .ez-model-tag.tag-h-zl,
html[data-theme='dark'] .ez-model-tag.tag-hizli,
html[data-theme='dark'] .ez-model-tag.tag-cok-hizli,
html[data-theme='dark'] .ez-model-tag.tag-ok-h-zl { color: #6edca0; }
html[data-theme='dark'] .ez-model-tag.tag-ucuz { color: #ffd470; }
html[data-theme='dark'] .ez-model-tag.tag-yaratici,
html[data-theme='dark'] .ez-model-tag.tag-yarat-c { color: #c69bff; }
html[data-theme='dark'] .ez-model-tag.tag-tipografi { color: #ffb46b; }

.ez-model-spec {
  display: flex; flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ez-muted);
  font-variant-numeric: tabular-nums;
}

.ez-star {
  appearance: none; border: 0;
  background: var(--ez-bg-2);
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--ez-faint);
  transition: background .15s ease, color .15s ease, transform .12s ease;
}
.ez-star:hover { background: var(--ez-active); color: var(--ez-ink-2); }
.ez-star.is-on { background: color-mix(in oklab, #ffd60a 26%, var(--ez-surface)); color: #d99a00; }
.ez-star.is-on:hover { transform: scale(1.08); }
html[data-theme='dark'] .ez-star.is-on { color: #ffd470; }

/* ───────────────────── Error screen ───────────────────── */
.ez-error-inner {
  max-width: 580px;
  gap: 22px;
}
.ez-error-art {
  width: 120px; height: 120px;
  border-radius: 36px;
  background: color-mix(in oklab, #ff5a5f 12%, var(--ez-surface));
  color: #b3261e;
  display: grid; place-items: center;
  box-shadow: var(--ez-shadow-md);
}
html[data-theme='dark'] .ez-error-art { color: #ff8a8e; }
.ez-error-detail {
  margin-top: 14px;
  background: var(--ez-bg-2);
  border: 1px solid var(--ez-line);
  border-radius: 14px;
  padding: 12px 14px;
  text-align: left;
}
.ez-error-detail-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--ez-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.ez-error-detail code {
  display: block;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--ez-ink-2);
  word-break: break-all;
  line-height: 1.5;
}
.ez-error-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 720px) {
  .ez-status-card { grid-template-columns: 48px 1fr; }
  .ez-status-card > .ez-cta { grid-column: 1 / -1; justify-content: center; }
  .ez-model-row { grid-template-columns: 24px 1fr auto; }
  .ez-model-row > .ez-model-spec { display: none; }
  .ez-auth-head { grid-template-columns: 56px 1fr; }
  .ez-auth-head .ez-modal-close { grid-row: 1; grid-column: 2; justify-self: end; align-self: start; }
}
