/* Tebex design tokens, matching ../creator-banner-tool */
:root {
  --bg: #000000;
  --surface: #111111;
  --surface-2: #191919;
  --surface-3: #222222;
  --border: #2a2a2a;
  --text: #ffffff;
  --text-muted: #888888;
  --cyan: #41C4C3;
  --cyan-dim: rgba(65,196,195,0.10);
  --pink: #FF6DC7;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding: 40px 16px 80px;
}

.page-header { max-width: 680px; margin: 0 auto 32px; text-align: center; }
.page-header .event-logo { display: block; width: 100%; max-width: 520px; height: auto; margin: 0 auto 12px; }
.page-header h1 { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 32px; margin: 0 0 8px; }
.page-header p { color: var(--text-muted); margin: 0; }

main { max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }

.inputs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}
@media (max-width: 820px) { .inputs { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-label { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.hint { color: var(--text-muted); font-size: 12.5px; margin: 0; }

input[type="text"] {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  outline: none;
}
input[type="text"]:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-dim); }
#code { font-family: ui-monospace, Consolas, monospace; text-transform: uppercase; letter-spacing: 0.08em; }

.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 50px; padding: 10px 14px;
  border: 2px dashed var(--border); border-radius: 10px;
  background: var(--surface-2); cursor: pointer; text-align: center;
  transition: border-color 0.15s ease;
}
.dropzone:hover, .dropzone.drag-over { border-color: var(--cyan); }
.dropzone.has-logo { border-style: solid; border-color: var(--cyan); }
.dropzone-text { font-weight: 700; font-size: 14px; }
.dropzone-hint { color: var(--text-muted); font-size: 12px; }
.dropzone.has-logo .dropzone-text, .dropzone.has-logo .dropzone-hint { display: none; }
.logo-name { color: var(--cyan); font-size: 13px; overflow-wrap: anywhere; }

.link { background: none; border: 0; color: var(--text-muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; padding: 0; align-self: flex-start; }
.link:hover { color: var(--text); }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.tabs { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px; flex-wrap: wrap; }
.tab { background: none; border: 0; color: var(--text-muted); font: inherit; font-weight: 700; font-size: 14px; padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--surface-3); color: var(--text); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.frame { width: 100%; background: var(--surface-2); }
.preview { display: block; width: 100%; height: 100%; }
.meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; }
.name { display: flex; flex-direction: column; min-width: 0; }
.name strong { font-family: 'Montserrat', sans-serif; font-size: 15px; }
.name span { color: var(--text-muted); font-size: 12.5px; }

.btn { border: 0; border-radius: 999px; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 14px; padding: 10px 18px; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--cyan); color: #000; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-secondary { background: var(--surface-3); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--cyan); }

.hidden { display: none !important; }
.generate-row { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; padding-top: 4px; }
.btn-generate { font-size: 16px; padding: 14px 32px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; filter: none; }
