/* ============================================================
   Neon Text Creator — scoped under .ntc-app (no theme conflicts)
   ============================================================ */
.ntc-app {
	--ntc-accent: #E8630A;
	--ntc-green: #19E68C;
	--ntc-dark: #222;
	--ntc-grey: #888;
	--ntc-line: #e5e5e5;
	--ntc-radius: 8px;
	font-family: 'Inter', 'Lato', -apple-system, 'Segoe UI', Roboto, sans-serif;
	color: var(--ntc-dark);
	-webkit-text-size-adjust: 100%;
}
.ntc-app *, .ntc-app *::before, .ntc-app *::after { box-sizing: border-box; }
.ntc-app button { font-family: inherit; cursor: pointer; }
.ntc-app :focus-visible { outline: 2px solid var(--ntc-accent); outline-offset: 2px; }

/* ---------- layout ---------- */
.ntc-layout { display: block; }
@media (min-width: 992px) {
	.ntc-layout { display: grid; grid-template-columns: 1.15fr 1fr; align-items: start; }
}

/* ---------- preview ---------- */
.ntc-preview-col { position: relative; }
.ntc-preview {
	position: relative;
	background: #2f3142;
	min-height: 55vh;
	height: 55vh;
	overflow: hidden;
}
@media (min-width: 992px) {
	.ntc-preview { position: sticky; top: 0; height: 100vh; min-height: 100vh; }
}
.ntc-preview.has-wall-img { background-size: cover; background-position: center; }

.ntc-price-tag {
	position: absolute; top: 14px; right: 16px; z-index: 5;
	color: var(--ntc-green); font-weight: 800; font-size: 20px;
	text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.ntc-toolbar {
	position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
	display: flex; flex-direction: column; gap: 8px; z-index: 5;
}
.ntc-tool {
	width: 40px; height: 40px; border-radius: 50%;
	border: 1px solid rgba(255,255,255,.25);
	background: rgba(20,22,34,.72); color: #fff;
	display: flex; align-items: center; justify-content: center;
	transition: transform .15s ease, background .15s ease;
}
.ntc-tool:hover { background: rgba(20,22,34,.95); transform: scale(1.06); }

.ntc-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.ntc-sign-scale { transform-origin: center center; transition: transform .18s ease; max-width: 88%; }
.ntc-sign-wrap { position: relative; display: inline-block; padding: 6px; }
.ntc-sign {
	position: relative; z-index: 2;
	white-space: pre-line; line-height: 1.28; text-align: left;
	font-size: 84px; color: #fff;
	/* layered neon glow; --ntc-glow set from JS */
	text-shadow:
		0 0 4px #fff,
		0 0 8px var(--ntc-glow, #FF4FB4),
		0 0 16px var(--ntc-glow, #FF4FB4),
		0 0 32px var(--ntc-glow, #FF4FB4),
		0 0 64px var(--ntc-glow, #FF4FB4);
}
.ntc-sign.ntc-rainbow { animation: ntc-hue 6s linear infinite; }
@keyframes ntc-hue { to { filter: hue-rotate(360deg); } }
.ntc-app[data-flicker="1"] .ntc-sign.ntc-flicker { animation: ntc-flicker 4s linear infinite; }
@keyframes ntc-flicker {
	0%, 100% { opacity: 1; } 3% { opacity: .86; } 5% { opacity: 1; }
	42% { opacity: 1; } 44% { opacity: .9; } 46% { opacity: 1; }
}
.ntc-preview.ntc-lights-off .ntc-sign {
	text-shadow: none;
	filter: brightness(.55) saturate(.35);
	opacity: .8;
}
.ntc-backboard {
	position: absolute; z-index: 1; pointer-events: none;
	border: 2px solid rgba(255,255,255,.55);
}
.ntc-backboard.ntc-bb-cut { inset: -16px; border-radius: 26px; }
.ntc-backboard.ntc-bb-board { inset: -20px -30px; border-radius: 6px; }
.ntc-preview.ntc-lights-off .ntc-backboard { opacity: .35; }

/* dimension lines */
.ntc-dims { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.ntc-dims line { stroke: rgba(220,220,230,.75); stroke-width: 1; }
.ntc-dims text { fill: rgba(220,220,230,.9); font-size: 11px; font-family: inherit; }

/* ---------- panel ---------- */
.ntc-panel-col { background: #fff; display: flex; flex-direction: column; min-width: 0; }
.ntc-panel { padding: 22px 22px 8px; }
.ntc-sec { margin-bottom: 26px; }
.ntc-label { font-size: 13px; font-weight: 800; color: var(--ntc-dark); margin: 0 0 10px; }
.ntc-desc { font-size: 12px; color: var(--ntc-grey); margin: 0 0 12px; line-height: 1.5; }
.ntc-note { font-size: 11px; color: var(--ntc-grey); text-align: center; margin: 10px 0 0; }
.ntc-link {
	background: none; border: none; padding: 0;
	color: var(--ntc-accent); text-decoration: underline; font-size: 12px; font-weight: 600;
}
.ntc-link:hover { text-decoration: underline; }

/* textarea + alignment */
.ntc-textarea-wrap { position: relative; }
.ntc-textarea {
	width: 100%; min-height: 96px; resize: vertical;
	background: #f4f4f5; border: 1px solid var(--ntc-line); border-radius: var(--ntc-radius);
	padding: 12px 12px 40px; font-size: 15px; color: var(--ntc-dark); font-family: inherit;
}
.ntc-align { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 6px; }
.ntc-align-btn {
	width: 34px; height: 34px; border-radius: 6px;
	border: 1px solid var(--ntc-line); background: #fff; color: #555;
	display: flex; align-items: center; justify-content: center;
}
.ntc-align-btn.is-active { border: 1px solid var(--ntc-accent); color: var(--ntc-accent); }

/* font select */
.ntc-select-wrap { max-width: 60%; }
@media (max-width: 991px) { .ntc-select-wrap { max-width: 62%; } }
.ntc-select {
	width: 100%; appearance: none; -webkit-appearance: none;
	border: 1px solid var(--ntc-accent); border-radius: var(--ntc-radius);
	padding: 12px 36px 12px 14px; font-size: 16px; background: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16'%3E%3Cpath fill='%23E8630A' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center;
	min-height: 44px;
}

/* tubes */
.ntc-tubes-head { display: flex; align-items: center; justify-content: space-between; }
.ntc-tubes-head .ntc-label { margin-bottom: 4px; }
.ntc-example-link { color: var(--ntc-accent); font-size: 12px; text-decoration: underline; font-weight: 600; }
.ntc-example-link:hover { text-decoration: underline; }
.ntc-color-name { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin: 2px 0 10px; }
.ntc-swatches { display: grid; grid-template-columns: repeat(10, 1fr); gap: 10px; }
@media (max-width: 640px) { .ntc-swatches { grid-template-columns: repeat(7, 1fr); } }
.ntc-swatch {
	aspect-ratio: 1/1; border-radius: 8px; border: 1px solid rgba(0,0,0,.12);
	position: relative; transition: transform .12s ease; min-width: 0;
}
.ntc-swatch[data-key="white"] { border: 1px solid #bbb; }
.ntc-swatch:hover { transform: translateY(-2px) scale(1.05); z-index: 2; }
.ntc-swatch.is-selected { outline: 2px solid var(--ntc-accent); outline-offset: 3px; }
.ntc-swatch .ntc-tip {
	position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
	background: #222; color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 4px;
	white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s;
}
.ntc-swatch:hover .ntc-tip { opacity: 1; }

/* size card */
.ntc-size-card { border: 1px solid var(--ntc-accent); border-radius: var(--ntc-radius); padding: 16px; }
.ntc-size-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ntc-size-title { font-weight: 800; font-size: 14px; }
.ntc-slider-row { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; gap: 10px; margin-bottom: 12px; }
.ntc-slider-label { font-size: 12px; color: var(--ntc-grey); font-weight: 600; }
.ntc-slider-val { font-size: 13px; font-weight: 700; text-align: right; }
.ntc-range { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 2px; background: #ddd; }
.ntc-range::-webkit-slider-thumb {
	-webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
	background: var(--ntc-accent); border: none; cursor: pointer;
}
.ntc-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--ntc-accent); border: none; cursor: pointer; }
.ntc-inputs-row { display: flex; gap: 10px; align-items: flex-end; }
.ntc-input-col { flex: 1; }
.ntc-mini-label { display: block; font-size: 10px; font-weight: 800; letter-spacing: .08em; color: var(--ntc-grey); margin-bottom: 4px; }
.ntc-num-wrap { position: relative; }
.ntc-num {
	width: 100%; background: #f4f4f5; border: 1px solid var(--ntc-line); border-radius: 6px;
	padding: 10px 34px 10px 10px; font-size: 14px; min-height: 44px;
}
.ntc-num-unit { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--ntc-grey); }
.ntc-lock {
	width: 44px; height: 44px; flex: 0 0 44px; border-radius: 6px;
	border: 1px solid var(--ntc-line); background: #fff; color: #777;
	display: flex; align-items: center; justify-content: center;
}
.ntc-lock.is-locked { border-color: var(--ntc-accent); color: var(--ntc-accent); }

/* backboard + outdoor cards */
.ntc-boards, .ntc-outdoor { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ntc-card {
	border: 1px solid var(--ntc-line); border-radius: var(--ntc-radius); background: #fff;
	padding: 14px; text-align: left; display: flex; flex-direction: column; gap: 6px; min-height: 44px;
	transition: border-color .12s ease;
}
.ntc-card:hover { border-color: #c9c9c9; }
.ntc-card.is-selected { border: 1px solid var(--ntc-accent); }
.ntc-card-title { font-size: 13px; font-weight: 800; }
.ntc-card-desc { font-size: 11px; color: var(--ntc-grey); line-height: 1.45; }
.ntc-card .ntc-example-link { align-self: flex-start; margin-top: 2px; }
.ntc-quote-wrap { text-align: center; margin-top: 14px; }

/* ---------- sticky bottom bar ---------- */
.ntc-bottombar { background: #000; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); z-index: 20; }
@media (min-width: 992px) {
	.ntc-bottombar { position: sticky; bottom: 0; }
}
@media (max-width: 991px) {
	.ntc-bottombar { position: fixed; left: 0; right: 0; bottom: 0; }
	.ntc-app { padding-bottom: 118px; }
}
.ntc-error { color: var(--ntc-accent); font-size: 12px; text-align: center; margin-bottom: 8px; font-weight: 600; }
.ntc-bar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ntc-bar-price { color: var(--ntc-green); font-size: 22px; font-weight: 800; }
.ntc-bar-was { color: #777; font-size: 12px; text-decoration: line-through; }
.ntc-add {
	background: var(--ntc-accent); color: #fff; border: none; border-radius: var(--ntc-radius);
	font-size: 16px; font-weight: 800; padding: 14px 34px; min-height: 52px; min-width: 180px;
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	transition: filter .15s ease, background .15s ease;
}
.ntc-add:hover:not(:disabled) { filter: brightness(1.08); }
.ntc-add:disabled { background: #8a3c08; opacity: .65; cursor: not-allowed; }
.ntc-spinner {
	width: 18px; height: 18px; border-radius: 50%;
	border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
	animation: ntc-spin .7s linear infinite;
}
@keyframes ntc-spin { to { transform: rotate(360deg); } }
.ntc-added { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 8px; color: #fff; font-size: 13px; }
.ntc-added a { color: var(--ntc-accent); font-weight: 700; }

/* ---------- modal ---------- */
.ntc-modal { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.7); display: flex; align-items: center; justify-content: center; padding: 20px; }
.ntc-modal[hidden] { display: none; }
.ntc-modal-box { position: relative; background: #fff; border-radius: 10px; padding: 18px; max-width: 520px; width: 100%; }
.ntc-modal-close {
	position: absolute; top: 8px; right: 12px; border: none; background: none;
	font-size: 26px; line-height: 1; color: #555;
}
.ntc-modal-img { width: 100%; height: auto; border-radius: 6px; display: block; }
.ntc-modal-img[hidden], .ntc-modal-empty[hidden] { display: none; }
.ntc-modal-empty { text-align: center; color: var(--ntc-grey); font-size: 13px; padding: 30px 10px; }

@media (prefers-reduced-motion: reduce) {
	.ntc-app * { animation: none !important; transition: none !important; }
}
