:root {
  --bg: #070a1a;
  --panel: #0d1430;
  --panel2: #0b1220;
  --text: #e5e7eb;
  --muted: rgba(229,231,235,.7);
  --accent: #22d3ee; /* aqua */
}

body {
  font-family: system-ui, Arial, sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

.topbar {
  padding: 16px;
  background: rgba(7,10,26,.6);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.titleRow {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.brandText {
  font-weight: 900;
  letter-spacing: .2px;
  font-size: 18px;
}

.tag {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 16px;
}

.panel {
  background: linear-gradient(180deg, rgba(13,20,48,.85), rgba(11,18,32,.85));
  border-radius: 16px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
}

h2 { margin: 6px 0 12px; }
h3 { margin: 18px 0 10px; font-size: 15px; color: rgba(229,231,235,.9); }

.row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 10px;
}

.row.actions {
  grid-template-columns: 1fr 1fr;
  margin-top: 12px;
}

@media (max-width: 760px) {
  .row { grid-template-columns: 1fr; }
  .row.actions { grid-template-columns: 1fr; }
}

.control {
  background: rgba(7,10,26,.25);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 10px;
}

.control > div:first-child {
  font-size: 13px;
  color: rgba(229,231,235,.85);
  margin-bottom: 8px;
}

.val { font-size: 12px; color: rgba(229,231,235,.75); margin-top: 6px; }

input[type="text"]{
  width: 100%;
  background: #070a1a;
  border: 1px solid rgba(255,255,255,.10);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
  outline: none;
}

select, input[type="range"]{
  width: 100%;
}

select {
  background: #070a1a;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  padding: 8px 10px;
  outline: none;
}

.btnPrimary {
  display: inline-block;
  padding: 10px 14px;
  background: #2563eb;
  color: white;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
}

.btnPrimary input { display: none; }

.btnGreen {
  padding: 10px 14px;
  background: #16a34a;
  color: white;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 900;
  border: none;
}

.btnGray {
  padding: 10px 14px;
  background: #334155;
  color: white;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 900;
  border: none;
}

.preview {
  margin-top: 14px;
  background: rgba(7,10,26,.25);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 12px;
}

.collage {
  display: grid;
  gap: 8px;
  width: 100%;
  padding-bottom: 18px; /* room above bottom logo */
}

.cell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius, 12px);
  background: rgba(255,255,255,.03);
}

.cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center;
}

.cell .tileText {
  position: absolute;
  font-weight: 900;
  letter-spacing: .4px;
  padding: 6px 8px;
  pointer-events: none;
  max-width: calc(100% - 8px);
  word-break: break-word;
  text-transform: uppercase;
  text-align: left;
  font-size: var(--textSize, 18px);
  line-height: 1.1;
  text-shadow: none;
}

.bottomLogo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 6px;
}

.bottomLogo img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  opacity: .95;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(7,10,26,.5);
}

/* Text styles */
.tileText.neon {
  color: rgba(255,255,255,.95);
  text-shadow:
    0 0 6px rgba(34,211,238,.8),
    0 0 14px rgba(236,72,153,.35);
}

.tileText.classic {
  color: rgba(255,255,255,.95);
  text-shadow: 0 2px 10px rgba(0,0,0,.4);
}

.tileText.outline {
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,.85);
  text-shadow: 0 0 10px rgba(34,211,238,.25);
}

.tileText.glitch {
  color: rgba(255,255,255,.95);
  text-shadow:
    -2px 0 rgba(236,72,153,.8),
    2px 0 rgba(34,211,238,.8),
    0 0 12px rgba(34,211,238,.3);
}

/* Filter blur fallback (for preview only) */
