:root {
  --bg: #07061a;
  --bg2: #0d0b26;
  --panel-a: #15163a;
  --panel-b: #1c1645;
  --panel-c: #0f1030;
  --pink: #ff3d9a;
  --pink-soft: #ff7ac0;
  --text: #e6e4f2;
  --muted: #8f8bb0;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  background:
    radial-gradient(120% 60% at 50% -10%, #1a1240 0%, transparent 60%),
    linear-gradient(180deg, var(--bg2), var(--bg));
  background-attachment: fixed;
  color: var(--text);
  font-family: "Helvetica Neue", "Segoe UI", Roboto, Arial, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
#app {
  max-width: 560px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 14px) 14px calc(env(safe-area-inset-bottom) + 24px);
}
.hidden { display: none !important; }

.top {
  display: flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  margin: 4px 2px 14px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 10px var(--pink); }

/* ---------- GTA panel ---------- */
.panel {
  position: relative;
  margin: 0 0 12px;
  padding: 14px 14px 16px;
  background:
    linear-gradient(115deg, transparent 0 46%, rgba(120, 90, 200, .10) 46% 62%, transparent 62%),
    linear-gradient(160deg, var(--panel-b) 0%, var(--panel-a) 45%, var(--panel-c) 100%);
  border-top: 3px solid var(--pink);
  box-shadow:
    0 -1px 12px rgba(255, 61, 154, .35),
    0 10px 30px rgba(0, 0, 0, .55);
  overflow: hidden;
}
.panel::after { /* jemný ružový lesk pod hornou linkou */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18px;
  background: linear-gradient(180deg, rgba(255, 61, 154, .14), transparent);
  pointer-events: none;
}
.panel-row { display: flex; align-items: flex-start; gap: 12px; position: relative; }
.avatar {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border: 2px solid var(--pink);
  background: linear-gradient(160deg, #ff8fc8, #c2307e);
  overflow: hidden;
}
.avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.panel-body { flex: 1 1 auto; min-width: 0; padding-top: 2px; }
#list .panel-body { padding-right: 22px; }
.title {
  font-size: 17px; font-weight: 500; color: #d6d4e6;
  letter-spacing: .01em; line-height: 1.25;
}
.plus { color: var(--pink-soft); font-weight: 700; margin-right: 1px; }
.heart { color: var(--pink); font-size: 1.05em; margin-right: 4px; text-shadow: 0 0 8px rgba(255, 61, 154, .6); }
.msg {
  margin: 10px 0 0; font-size: 16px; line-height: 1.4; color: #fff;
  font-weight: 600; letter-spacing: .02em; word-wrap: break-word; overflow-wrap: anywhere;
}
.time { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.del {
  position: absolute; right: -4px; bottom: -8px;
  background: none; border: 0; color: var(--muted); font-size: 22px; padding: 4px 8px; cursor: pointer;
}

.panel.new { animation: slideIn .55s cubic-bezier(.2, .9, .25, 1.15) both; }
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- písanie ---------- */
.panel-compose { margin-bottom: 20px; }
textarea, input {
  width: 100%; margin-top: 10px;
  background: rgba(0, 0, 0, .25); color: #fff;
  border: 1px solid rgba(255, 255, 255, .08); border-left: 2px solid var(--pink);
  padding: 10px; font: inherit; font-size: 16px; font-weight: 600; resize: none; outline: none;
  border-radius: 0;
}
textarea:focus, input:focus { border-color: rgba(255, 61, 154, .5); }
.compose-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
#counter { color: var(--muted); font-size: 12px; }
.compose { display: flex; flex-direction: column; gap: 10px; }

.btn {
  background: var(--pink); color: #fff; border: 0;
  padding: 10px 18px; font: inherit; font-weight: 700; font-size: 14px;
  letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
  box-shadow: 0 0 14px rgba(255, 61, 154, .45);
}
.btn:disabled { opacity: .5; }
.btn-ghost { background: transparent; border: 1px solid var(--pink); box-shadow: none; color: var(--pink-soft); }

.hint {
  border-left: 2px solid var(--pink); background: rgba(255, 255, 255, .03);
  padding: 10px 12px; margin: 0 0 16px; font-size: 14px; color: #cfcbe6;
}
.hint p { margin: 0 0 8px; line-height: 1.45; }
.hint .btn { margin-right: 6px; }

.empty { color: var(--muted); text-align: center; margin-top: 40px; font-size: 14px; }
.foot { color: #4d4870; text-align: center; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin-top: 28px; }

.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 20px); transform: translateX(-50%);
  background: #1c1645; border-top: 2px solid var(--pink); color: #fff;
  padding: 10px 16px; font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); z-index: 10;
}
