/* Festivaaal Foto — marka senkronu (Klasik): kömür zemin + sarı + kırmızı-magenta gradyan, Anton/Inter — afiş sistemiyle birebir (16 Eyl) */
:root {
  --bg: #0B0B0E;
  --panel: #15151B;
  --shadow: #1B1B22;
  --panel2: #1B1B22;
  --line: #26262E;
  --yellow: #FFD200;
  --red: #E4003A;
  --grad: linear-gradient(100deg, #FF3B30 0%, #E6004C 45%, #B0006E 100%);
  --text: #F7F7F5;
  --muted: #A6A6B0;
  --danger: #ff5d5d;
  --ok: #3ddc84;
  --radius: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background:
    radial-gradient(1200px 820px at 72% -12%, #1B1B24 0%, rgba(27,27,36,0) 58%),
    radial-gradient(rgba(255,210,0,.05) 2px, transparent 2.6px),
    radial-gradient(rgba(228,0,58,.07) 2px, transparent 2.6px),
    var(--bg);
  background-size: auto, 96px 96px, 140px 140px;
  background-position: 0 0, 0 0, 48px 64px;
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  line-height: 1.5;
}
h1, h2, h3, .anton { font-family: 'Anton', 'Inter', sans-serif; font-weight: 400; letter-spacing: .5px; text-transform: uppercase; }
a { color: var(--yellow); }
img { max-width: 100%; }
.hidden { display: none !important; }

/* Header */
.topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; background: #050507; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.topbar img { height: 34px; }
.topbar .aaal { height: 26px; margin-left: auto; opacity: .85; }
.topbar .title { font-family: 'Anton'; font-size: 18px; color: var(--yellow); letter-spacing: 1px; }

/* Hero + echo tipografi */
.hero { padding: 40px 20px 16px; text-align: center; }
.echo {
  font-family: 'Anton'; text-transform: uppercase; line-height: .95;
  font-size: clamp(44px, 11vw, 96px); color: var(--yellow);
  text-shadow: 4px 4px 0 var(--shadow), 8px 8px 0 #101014, 12px 12px 0 #0A0A0D;
}
.hero .sub { color: var(--muted); margin-top: 14px; font-size: 15px; }
.hero .sub b { color: var(--text); }

/* Layout */
.wrap { max-width: 980px; margin: 0 auto; padding: 16px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-bottom: 16px;
}
.card h2 { font-size: 20px; color: var(--yellow); margin-bottom: 12px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-align: center; }
.step .n { font-family: 'Anton'; color: var(--yellow); font-size: 26px; }
.step .t { font-size: 13px; color: var(--muted); margin-top: 4px; }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }

/* Buttons */
.btn {
  display: inline-block; background: var(--yellow); color: #000; border: none; cursor: pointer;
  font-family: 'Anton'; text-transform: uppercase; letter-spacing: 1px;
  font-size: 17px; padding: 14px 26px; border-radius: 12px; text-decoration: none; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--yellow); border: 2px solid var(--yellow); }
.btn-danger { background: var(--danger); color: #fff; }
#payCard { background: var(--grad); color: #fff; }
.btn-ok { background: var(--ok); color: #04310f; }
.btn-sm { font-size: 14px; padding: 9px 14px; border-radius: 9px; }
.btn-block { display: block; width: 100%; }

/* Upload */
.dropzone {
  border: 2px dashed #3A3A44; border-radius: var(--radius); padding: 36px 16px;
  text-align: center; color: var(--muted); cursor: pointer; transition: .15s;
}
.dropzone.drag { border-color: var(--yellow); color: var(--yellow); background: rgba(255,210,0,.05); }
.dropzone .big { font-size: 40px; }
#fileInput { display: none; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 14px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 2px solid transparent; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .x {
  position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(0,0,0,.7); color: #fff; border: none; font-size: 14px; cursor: pointer;
}
.thumb.main { border-color: var(--yellow); }

/* Editor */
.editor-canvas-box { background: #000; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
#editorCanvas { display: block; width: 100%; touch-action: none; cursor: grab; }
.tpl-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 12px; }
.tpl { border: 2px solid var(--line); border-radius: 10px; background: var(--panel2); padding: 6px; cursor: pointer; text-align: center; }
.tpl.sel { border-color: var(--yellow); }
.tpl canvas { width: 100%; border-radius: 6px; display: block; }
.tpl .nm { font-size: 10px; color: var(--muted); margin-top: 4px; }
@media (max-width: 640px) { .tpl-row { grid-template-columns: repeat(3, 1fr); } }

/* İmza / filigran seçici */
.wm-label { font-size: 12px; color: var(--muted); margin: 12px 0 6px; }
.wm-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.wm {
  border: 2px solid var(--line); border-radius: 999px; background: var(--panel2);
  color: var(--muted); font-size: 13px; font-weight: 600; padding: 7px 14px; cursor: pointer;
}
.wm.sel { border-color: var(--yellow); color: var(--yellow); }
.tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.tools label { color: var(--muted); font-size: 13px; }
.tools input[type=range] { flex: 1; min-width: 140px; accent-color: var(--yellow); }
.pool { display: flex; gap: 8px; overflow-x: auto; padding: 6px 0; }
.pool .thumb { flex: 0 0 72px; width: 72px; }
.hint { color: var(--muted); font-size: 13px; }

/* Checkout */
.pkg-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
@media (max-width: 640px) { .pkg-row { grid-template-columns: 1fr; } }
.pkg { border: 2px solid var(--line); border-radius: var(--radius); background: var(--panel2); padding: 14px; cursor: pointer; text-align: center; }
.pkg.sel { border-color: var(--yellow); }
.pkg .nm { font-family: 'Anton'; font-size: 17px; }
.pkg .pr { font-family: 'Anton'; font-size: 26px; color: var(--yellow); margin-top: 4px; }
.pkg .dt { font-size: 12px; color: var(--muted); }
.paybtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Final baskı önizleme */
.final-preview { width: 100%; display: block; border-radius: 12px; border: 1px solid var(--line); background: #0A0F22; }
.mini-preview-row { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; color: var(--muted); font-size: 13px; }
.final-preview.mini { width: 96px; flex: 0 0 96px; }
.confirm-box { border: 2px solid var(--yellow); background: rgba(255,210,0,.07); border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.confirm-box b { color: var(--yellow); }
@media (max-width: 640px) { .paybtns { grid-template-columns: 1fr; } }
details.kvkk { margin: 12px 0; color: var(--muted); font-size: 13px; }
details.kvkk summary { cursor: pointer; color: var(--text); }
.consent-row { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: 14px; }
.consent-row input { width: 22px; height: 22px; accent-color: var(--yellow); flex: 0 0 auto; margin-top: 2px; }

/* Status / timeline */
.code-big {
  font-family: 'Anton'; font-size: clamp(48px, 14vw, 96px); color: var(--yellow); text-align: center;
  letter-spacing: 6px; text-shadow: 3px 3px 0 var(--shadow);
}
.timeline { list-style: none; margin-top: 14px; }
.timeline li { display: flex; gap: 12px; padding: 8px 0; color: var(--muted); align-items: center; }
.timeline li .dot { width: 14px; height: 14px; border-radius: 50%; background: #3A3A44; flex: 0 0 auto; }
.timeline li.done { color: var(--text); }
.timeline li.done .dot { background: var(--ok); }
.timeline li.active { color: var(--yellow); }
.timeline li.active .dot { background: var(--yellow); box-shadow: 0 0 0 4px rgba(255,210,0,.2); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255,210,0,.08); } }

/* Badges & panel */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.b-created, .b-awaiting { background: #3a2f08; color: var(--yellow); }
.b-paid, .b-queued { background: #0b2c48; color: #7cc7ff; }
.b-claimed, .b-printing { background: var(--panel2); color: #b9b9c4; }
.b-printed, .b-done { background: #0b3a24; color: var(--ok); }
.b-failed { background: #3a0f0f; color: var(--danger); }
.b-expired, .b-cancelled { background: #222; color: var(--muted); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
@media (max-width: 640px) { .stat-row { grid-template-columns: 1fr 1fr; } }
.stat { background: var(--panel2); border-radius: var(--radius); padding: 12px; text-align: center; border: 1px solid var(--line); }
.stat .v { font-family: 'Anton'; font-size: 26px; color: var(--yellow); }
.stat .l { font-size: 12px; color: var(--muted); }
.code-cell { font-family: 'Anton'; font-size: 30px; color: var(--yellow); letter-spacing: 4px; }
.order-row { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: var(--panel2); flex-wrap: wrap; }
.order-row .grow { flex: 1; min-width: 120px; }
.order-row .meta { color: var(--muted); font-size: 12px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 10px; }
.section-title h2 { margin: 0; }

/* Toast + misc */
.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--line); color: var(--text); padding: 12px 20px; border-radius: 12px;
  border: 1px solid #3A3A44; z-index: 100; max-width: 90vw; text-align: center;
}
.toast.error { border-color: var(--danger); color: #ffb3b3; }

/* Panel detay görünümü */
.detail-wrap { width: 100%; margin: -4px 0 10px; }
.detail {
  background: #050507; border: 1px solid #3A3A44; border-radius: 12px; padding: 12px; width: 100%;
}
.detail-top { display: flex; gap: 12px; flex-wrap: wrap; }
.detail-top img { max-height: 360px; max-width: 100%; border-radius: 10px; border: 1px solid var(--line); }
.dgrid { flex: 1; min-width: 200px; display: grid; grid-template-columns: 1fr; gap: 2px; font-size: 13px; color: var(--muted); }
.dgrid b { color: var(--text); font-weight: 600; margin-right: 6px; }
.dtable { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 12px; color: var(--muted); }
.dtable th { text-align: left; color: var(--yellow); font-weight: 600; padding: 4px 8px 4px 0; }
.dtable td { padding: 4px 8px 4px 0; border-top: 1px solid var(--line); }
.spin { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(0,0,0,.3); border-top-color: #000; border-radius: 50%; animation: rot .7s linear infinite; vertical-align: -3px; margin-right: 6px; }
.band { border-top: 2px solid var(--yellow); background: #050507; padding: 18px 16px; text-align: center; font-weight: 800; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; }
.band b { color: var(--yellow); }
footer { text-align: center; color: var(--muted); font-size: 12px; padding: 30px 16px; }
.spin { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(0,0,0,.3); border-top-color: #000; border-radius: 50%; animation: rot .7s linear infinite; vertical-align: -3px; margin-right: 6px; }
@keyframes rot { to { transform: rotate(360deg); } }
