:root {
  --fg: #1a1a1a;
  --muted: #6b6b6b;
  --bg: #f6f6f4;
  --panel: #ffffff;
  --border: #d9d9d6;
  --accent: #c8102e; /* Aveko-ish red; adjust to brand */
  --accent-dark: #9a0b23;
  --error: #b00020;
  --success: #1d6d3a;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.04);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: var(--fg);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.lang {
  display: flex;
  gap: 4px;
}

.lang button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 4px 10px;
  border-radius: var(--radius);
  font-size: 13px;
  cursor: pointer;
}

.lang button.active {
  background: var(--fg);
  color: #fff;
  border-color: var(--fg);
}

main {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

main.status {
  text-align: center;
  padding-top: 60px;
}

main.status h1 {
  font-size: 24px;
  margin-top: 0;
}

.muted { color: var(--muted); }

h1 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 4px;
}

p.ticket {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 14px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
}

input[type="text"],
textarea {
  font: inherit;
  padding: 12px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--fg);
  width: 100%;
  font-weight: 400;
}

input[type="text"]:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: var(--accent);
}

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

input[type="file"] {
  font: inherit;
  font-size: 14px;
}

.previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.preview {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: #eee;
  border: 1px solid var(--border);
}

.preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview button {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 24px;
  text-align: center;
  padding: 0;
  cursor: pointer;
}

button[type="submit"] {
  font: inherit;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button[type="submit"]:hover:not(:disabled) { background: var(--accent-dark); }

button[type="submit"]:disabled {
  background: #bbb;
  cursor: not-allowed;
}

.error {
  color: var(--error);
  font-size: 14px;
  margin: 0;
}

.success {
  text-align: center;
  padding: 24px 0;
}

.success h2 {
  color: var(--success);
  margin: 0 0 8px;
}

.ticket-big {
  font-size: 36px;
  font-weight: 700;
  margin: 16px 0 0;
  color: var(--accent);
}
