/* ============================================================
   ARKANE NARUTO RP — Animation Panel
   Theme: Dark / Japanese / Ninja — Noir / Or / Rouge
   Fonts: Cinzel (titres), Rajdhani (textes)
   ============================================================ */

:root {
  --bg-0: #08070a;
  --bg-1: #0d0b10;
  --bg-2: #14111a;
  --bg-3: #1c1823;
  --bg-4: #2a2330;
  --line: #2d2736;
  --line-2: #3a3344;

  --gold: #d4af37;
  --gold-2: #f1c75a;
  --gold-dim: #8a6f23;
  --red: #b8222b;
  --red-2: #e23440;
  --red-dim: #6c1117;

  --txt: #ece6d6;
  --txt-dim: #a89f8a;
  --txt-mute: #6b6378;

  --ok: #4ea96f;
  --warn: #e0a63a;
  --bad: #d94a4a;
  --info: #5aa7e2;

  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;

  --shadow-1: 0 2px 10px rgba(0,0,0,.5);
  --shadow-2: 0 10px 30px rgba(0,0,0,.6);
  --shadow-gold: 0 0 0 1px rgba(212,175,55,.18), 0 8px 24px rgba(212,175,55,.08);

  --grad-gold: linear-gradient(135deg, #d4af37 0%, #f1c75a 50%, #a6831f 100%);
  --grad-red:  linear-gradient(135deg, #b8222b 0%, #e23440 60%, #7a1219 100%);
}

/* ------------------ Base ------------------ */
* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(184,34,43,.10), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(212,175,55,.08), transparent 60%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
  color: var(--txt);
  font-family: 'Rajdhani', 'Segoe UI', sans-serif;
  min-height: 100vh;
  letter-spacing: .2px;
}
body::before {
  content:"";
  position: fixed; inset:0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.012) 0 2px, transparent 2px 6px);
  pointer-events:none;
  z-index:0;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-2); }
h1,h2,h3,h4 { font-family:'Cinzel', serif; letter-spacing:1px; margin:0 0 .5em; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }
p  { line-height: 1.55; color: var(--txt); }

/* ------------------ Topbar ------------------ */
.topbar {
  position: sticky; top:0; z-index: 50;
  background: rgba(10,8,13,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1400px; margin: 0 auto;
  display:flex; align-items:center; gap: 20px;
  padding: 10px 20px;
}
.brand { display:flex; gap:12px; align-items:center; color: var(--txt); }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  filter: drop-shadow(0 0 10px rgba(212,175,55,.35));
  transition: transform .35s ease, filter .35s ease;
}
.brand:hover .brand-mark {
  transform: rotate(-12deg) scale(1.05);
  filter: drop-shadow(0 0 14px rgba(212,175,55,.55)) drop-shadow(0 0 4px rgba(226,52,64,.4));
}
.brand-mark svg { display:block; }
.brand-text { display:flex; flex-direction:column; line-height:1; }
.brand-title {
  font-family:'Cinzel', serif; font-weight:700;
  color: var(--gold); letter-spacing:2px; font-size: 1.05rem;
}
.brand-sub { color: var(--txt-dim); font-size:.75rem; letter-spacing:3px; text-transform:uppercase; }

.topnav { display:flex; gap: 4px; margin-left: 18px; flex:1; }
.topnav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--txt-dim);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: .85rem;
  position: relative;
  transition: all .2s;
}
.topnav a:hover { color: var(--gold); background: rgba(212,175,55,.05); }
.topnav a.active {
  color: var(--gold);
  background: linear-gradient(180deg, rgba(212,175,55,.12), rgba(212,175,55,.02));
  box-shadow: inset 0 -2px 0 var(--gold);
}

.topbar-right { display:flex; gap:8px; align-items:center; }
.user-pill {
  display:flex; align-items:center; gap:10px;
  background: rgba(212,175,55,.08);
  border: 1px solid rgba(212,175,55,.25);
  border-radius: 999px; padding: 5px 10px 5px 5px;
  cursor: pointer;
  transition: all .2s;
}
.user-pill:hover { background: rgba(212,175,55,.15); }
.user-pill .avatar {
  width:28px; height:28px; border-radius:50%;
  background: var(--grad-gold);
  color: #1a1208; font-weight:700;
  display:flex; align-items:center; justify-content:center;
  font-family:'Cinzel', serif; font-size: .9rem;
}
.user-pill .u-name { font-weight:600; }
.user-pill .u-role {
  font-size:.65rem; text-transform:uppercase; letter-spacing:1px;
  color: var(--txt-dim);
}

/* ------------------ Buttons ------------------ */
.btn {
  display: inline-flex; align-items:center; gap:6px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  background: var(--bg-3);
  color: var(--txt);
  font-family: inherit; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  font-size: .8rem;
  cursor: pointer;
  transition: all .15s ease;
}
.btn:hover { border-color: var(--gold-dim); color: var(--gold); }
.btn-primary {
  background: var(--grad-gold);
  color: #1a1208; border-color: transparent;
  font-weight: 700;
}
.btn-primary:hover { color: #1a1208; filter: brightness(1.1); }
.btn-danger {
  background: var(--grad-red); border-color: transparent; color: #fff;
}
.btn-danger:hover { color: #fff; filter: brightness(1.1); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 5px 10px; font-size: .72rem; }
.btn-block { display:flex; width:100%; justify-content:center; }
.btn[disabled] { opacity:.4; cursor: not-allowed; }

/* ------------------ Badges ------------------ */
.badge {
  display:inline-flex; align-items:center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size:.7rem; font-weight:600;
  letter-spacing:1px; text-transform:uppercase;
  border: 1px solid var(--line-2);
  color: var(--txt-dim);
  background: var(--bg-3);
}
.badge.ok   { color:#7fdc9c; background: rgba(78,169,111,.12); border-color: rgba(78,169,111,.35); }
.badge.warn { color:#ffc97a; background: rgba(224,166,58,.12); border-color: rgba(224,166,58,.35); }
.badge.bad  { color:#ff8a8a; background: rgba(217,74,74,.12); border-color: rgba(217,74,74,.35); }
.badge.info { color:#9ccfff; background: rgba(90,167,226,.12); border-color: rgba(90,167,226,.35); }
.badge.gold { color: var(--gold); background: rgba(212,175,55,.10); border-color: rgba(212,175,55,.35); }
.badge.red  { color: #ff9aa0; background: rgba(184,34,43,.15); border-color: rgba(184,34,43,.4); }

.dot { width:8px; height:8px; border-radius:50%; display:inline-block; margin-right:6px; background: var(--gold); }
.dot.ok { background: var(--ok); }
.dot.bad { background: var(--bad); }
.dot.warn { background: var(--warn); }

.notif-badge {
  display:inline-block;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--grad-red);
  color: #fff; font-size:.68rem; font-weight:700;
  text-align:center; line-height: 18px;
  margin-left: 8px;
  box-shadow: 0 0 8px rgba(226,52,64,.4);
}

/* ------------------ Cards / Panels ------------------ */
.panel {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-1);
  position: relative;
}
.panel.gold-edge {
  box-shadow: var(--shadow-gold), var(--shadow-1);
  border-color: rgba(212,175,55,.25);
}
.panel h3 { color: var(--gold); }

.section-title {
  display:flex; align-items:center; gap:10px;
  color: var(--gold);
  font-family:'Cinzel', serif;
  font-size: 1.35rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.section-title .kanji {
  color: var(--red-2);
  font-size: 1.6rem;
  text-shadow: 0 0 10px rgba(226,52,64,.4);
}
.section-sub {
  color: var(--txt-dim);
  margin-top:-10px; margin-bottom:16px;
  letter-spacing: 1px;
}

/* ------------------ HERO ------------------ */
.hero {
  position: relative; overflow:hidden;
  padding: 80px 20px 90px;
  text-align:center;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(184,34,43,.18), transparent 60%),
    radial-gradient(600px 400px at 50% 100%, rgba(212,175,55,.10), transparent 60%);
  pointer-events:none;
}
.hero::after {
  content:"忍";
  position:absolute;
  font-family:'Cinzel', serif;
  font-size: 28rem;
  color: rgba(212,175,55,.04);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events:none;
  font-weight:900;
}
.hero-inner { position:relative; z-index:2; max-width: 900px; margin: 0 auto; }
.hero-kicker {
  color: var(--red-2);
  letter-spacing: 6px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: .85rem;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 3.4rem;
  letter-spacing: 4px;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
  line-height:1.05;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--txt-dim);
  max-width: 680px;
  margin: 0 auto 30px;
}
.hero-cta { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

/* ------------------ Layout helpers ------------------ */
.container { max-width: 1400px; margin: 0 auto; padding: 30px 20px; position:relative; z-index:1; }
.grid { display:grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; letter-spacing: 2px; }
  .topnav { display:none; }
}

.row { display:flex; gap: 12px; flex-wrap:wrap; align-items:center; }
.row.sb { justify-content:space-between; }
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:32px}
.mb-0{margin-bottom:0}.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}
.muted { color: var(--txt-dim); }
.small { font-size:.85rem; }

/* ------------------ Stats ------------------ */
.stat {
  text-align:center;
  padding: 24px 16px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.stat::before {
  content:""; position:absolute; top:0; left:0; right:0; height:2px;
  background: var(--grad-gold);
  opacity:.6;
}
.stat .n {
  font-family:'Cinzel', serif;
  font-size: 2.6rem; font-weight:700;
  color: var(--gold);
  display:block; line-height:1;
}
.stat .l {
  color: var(--txt-dim); text-transform:uppercase;
  letter-spacing: 2px; font-size:.78rem;
  margin-top: 10px;
}

/* ------------------ Prerequis / Timeline ------------------ */
.prereq-list { list-style:none; margin:0; padding:0; }
.prereq-list li {
  display:flex; gap:10px; align-items:flex-start;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.prereq-list li:last-child { border-bottom:none; }
.prereq-list .check {
  display:inline-block; width:20px; height:20px; border-radius:50%;
  background: rgba(212,175,55,.12);
  border: 1px solid var(--gold-dim);
  color: var(--gold); font-weight:700;
  text-align:center; line-height:18px;
  font-size:.85rem; flex-shrink:0;
}

.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content:""; position:absolute; left:10px; top:5px; bottom:5px;
  width:2px; background: linear-gradient(180deg, var(--gold), var(--red-dim));
}
.tl-step { position: relative; padding: 6px 0 20px 15px; }
.tl-step::before {
  content:""; position:absolute; left:-25px; top:10px;
  width:14px; height:14px; border-radius:50%;
  background: var(--bg-1);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,.12);
}
.tl-step .tl-title {
  font-family:'Cinzel', serif; color: var(--gold);
  letter-spacing:1px; font-size: 1.05rem;
}
.tl-step .tl-body { color: var(--txt-dim); margin-top:4px; }

/* ------------------ Forms ------------------ */
.form-grid { display:grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
@media(max-width:700px) { .form-grid { grid-template-columns: 1fr; } }

label.fld {
  display:flex; flex-direction:column; gap: 6px;
  font-size:.82rem; color: var(--txt-dim);
  letter-spacing: 1px; text-transform: uppercase;
  font-weight: 600;
}
label.fld small { color: var(--txt-mute); text-transform:none; letter-spacing:0; font-weight:400; }
input[type="text"], input[type="number"], input[type="email"], input[type="password"],
input[type="date"], select, textarea {
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  color: var(--txt);
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: all .15s;
  width:100%;
}
textarea { min-height: 100px; resize: vertical; font-family: inherit; line-height:1.5; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,.15);
}
select { cursor: pointer; }

.check-inline { display:flex; gap:8px; align-items:center; color: var(--txt); }
.check-inline input { width:auto; }

/* ------------------ Tables ------------------ */
.table-wrap { overflow-x:auto; border:1px solid var(--line); border-radius: var(--radius); }
table.data {
  width:100%; border-collapse: collapse;
  font-size:.95rem;
}
table.data th, table.data td {
  padding: 12px 14px;
  text-align:left;
  border-bottom: 1px solid var(--line);
}
table.data th {
  background: var(--bg-3);
  color: var(--gold);
  font-family:'Cinzel', serif;
  letter-spacing:1px;
  font-size:.78rem;
  text-transform:uppercase;
  font-weight:600;
}
table.data tbody tr:hover { background: rgba(212,175,55,.03); }
table.data tbody tr:last-child td { border-bottom:none; }

.filters { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:16px; }
.filters select, .filters input { width:auto; min-width: 160px; }

.filters-row {
  display:flex; gap:14px; flex-wrap:wrap; align-items:flex-end;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.filters-row .fld.inline { flex: 0 1 auto; min-width: 170px; }
.filters-row .fld.inline select,
.filters-row .fld.inline input { min-width: 170px; padding: 8px 10px; font-size: .92rem; }
.filters-row .btn { align-self: flex-end; }
.chip-tabs { display:flex; gap:6px; flex-wrap:wrap; }
.chip-tab {
  padding: 7px 14px; border-radius:999px;
  background: var(--bg-3); border:1px solid var(--line-2);
  color: var(--txt-dim); cursor:pointer;
  font-size:.8rem; text-transform:uppercase; letter-spacing:1px; font-weight:600;
  transition: all .15s;
}
.chip-tab:hover { color: var(--gold); border-color: var(--gold-dim); }
.chip-tab.active {
  background: rgba(212,175,55,.12);
  color: var(--gold);
  border-color: var(--gold);
}

/* ------------------ KANBAN ------------------ */
.kanban {
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media(max-width:900px) { .kanban { grid-template-columns: 1fr; } }
.kcol {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  min-height: 300px;
}
.kcol-head {
  display:flex; justify-content: space-between; align-items:center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
}
.kcol-head h4 {
  font-family:'Cinzel', serif;
  letter-spacing:2px; text-transform:uppercase;
  font-size: .95rem;
  margin:0;
}
.kcol-count {
  background: var(--bg-3); color: var(--txt-dim);
  border-radius:999px; padding:2px 10px;
  font-size:.8rem;
}
.kcol[data-col="pending"]   .kcol-head { border-bottom-color: var(--warn); }
.kcol[data-col="pending"]   .kcol-head h4 { color: var(--warn); }
.kcol[data-col="active"]    .kcol-head { border-bottom-color: var(--info); }
.kcol[data-col="active"]    .kcol-head h4 { color: var(--info); }
.kcol[data-col="done"]      .kcol-head { border-bottom-color: var(--ok); }
.kcol[data-col="done"]      .kcol-head h4 { color: var(--ok); }

.kcard {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all .15s;
  position: relative;
}
.kcard:hover {
  border-color: var(--gold-dim);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
}
.kcard h5 {
  font-family:'Cinzel', serif; margin: 0 0 6px;
  color: var(--txt); font-size: 1rem;
  letter-spacing:.5px;
}
.kcard .kmeta {
  display:flex; justify-content:space-between; align-items:center;
  font-size:.8rem; color: var(--txt-dim);
  margin-top: 8px;
  padding-top: 8px; border-top: 1px dashed var(--line);
}
.kcard .kdesc { color: var(--txt-dim); font-size:.9rem; line-height:1.4; }
.kcard .prio-bar {
  position:absolute; left:0; top:0; bottom:0; width:3px;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.prio-high  { background: var(--red-2); }
.prio-med   { background: var(--warn); }
.prio-low   { background: var(--info); }

/* ------------------ Panel layout (sidebar) ------------------ */
.panel-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 20px;
}
@media(max-width:900px) { .panel-shell { grid-template-columns: 1fr; } }

.sidebar {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  position: sticky; top: 70px;
  height: fit-content;
}
.sidebar .side-title {
  color: var(--gold);
  font-family:'Cinzel', serif;
  letter-spacing: 3px; font-size: .85rem;
  text-transform:uppercase;
  padding: 6px 10px 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
  display:flex; justify-content:space-between; align-items:center;
}
.side-title .mini-tag {
  font-size:.62rem; letter-spacing:2px; color: var(--red-2);
  font-family:'Rajdhani', sans-serif;
}
.side-item {
  display:flex; align-items:center; gap:10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--txt-dim);
  cursor: pointer;
  margin-bottom: 2px;
  font-weight:500; letter-spacing:.5px;
  transition: all .15s;
  font-size:.95rem;
}
.side-item:hover {
  background: rgba(212,175,55,.06);
  color: var(--gold);
}
.side-item.active {
  background: linear-gradient(90deg, rgba(212,175,55,.15), transparent);
  color: var(--gold);
  border-left: 3px solid var(--gold);
  padding-left: 9px;
}
.side-item .icn {
  width: 22px; display:inline-block; text-align:center;
  color: var(--red-2); font-weight:700;
}

.panel-body {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  min-height: 500px;
}

/* ------------------ Modal ------------------ */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  display:flex; align-items:center; justify-content:center;
  padding: 20px;
  animation: fadeIn .15s ease;
}
@keyframes fadeIn { from {opacity:0} to {opacity:1} }
.modal {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2), var(--shadow-gold);
  max-width: 780px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  animation: pop .18s ease;
}
@keyframes pop { from { transform: scale(.95); opacity:0 } to { transform: scale(1); opacity:1 } }
.modal-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display:flex; justify-content:space-between; align-items:center;
  background: rgba(212,175,55,.03);
}
.modal-head h3 { color: var(--gold); margin:0; letter-spacing:2px; }
.modal-close {
  background:none; border:none; color: var(--txt-dim);
  font-size: 1.6rem; cursor:pointer; line-height:1;
}
.modal-close:hover { color: var(--red-2); }
.modal-body { padding: 22px 24px; }
.modal-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  display:flex; justify-content:flex-end; gap:10px;
}

/* Detail blocks in modals */
.kv { display:grid; grid-template-columns: 180px 1fr; gap: 8px 14px; margin-bottom: 14px; }
.kv dt { color: var(--txt-dim); font-size:.85rem; letter-spacing:1px; text-transform:uppercase; }
.kv dd { margin:0; color: var(--txt); }
.kv dd.pre { white-space:pre-wrap; background: var(--bg-1); padding:10px; border-radius:var(--radius-sm); border:1px solid var(--line); }

/* ------------------ Toast ------------------ */
#toastRoot {
  position: fixed; bottom: 20px; right: 20px; z-index: 500;
  display:flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.toast {
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line-2);
  border-left: 4px solid var(--gold);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  min-width: 260px;
  box-shadow: var(--shadow-2);
  animation: slideIn .25s ease;
  pointer-events: auto;
}
@keyframes slideIn { from { transform: translateX(120%); } to { transform: translateX(0); } }
.toast.ok  { border-left-color: var(--ok); }
.toast.err { border-left-color: var(--bad); }
.toast.warn{ border-left-color: var(--warn); }

/* ------------------ Auth Modal Specific ------------------ */
.auth-grid {
  display:grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media(max-width:700px){ .auth-grid { grid-template-columns: 1fr; } }
.demo-box {
  background: rgba(184,34,43,.06);
  border:1px dashed var(--red-dim);
  border-radius: var(--radius-sm);
  padding:12px; font-size:.9rem;
}
.demo-box code {
  background: var(--bg-1); padding: 1px 6px; border-radius:4px;
  color: var(--gold); border: 1px solid var(--line);
}

/* ------------------ Applicant status card ------------------ */
.status-card {
  padding: 30px;
  text-align:center;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: radial-gradient(400px 200px at 50% 0%, rgba(212,175,55,.08), transparent 70%), var(--bg-2);
}
.status-card .big {
  font-size: 2.2rem;
  font-family:'Cinzel', serif;
  margin: 8px 0;
  letter-spacing: 3px;
}
.status-card.pending .big { color: var(--warn); }
.status-card.accepted .big { color: var(--ok); }
.status-card.refused .big { color: var(--bad); }
.status-card .pct-bar {
  height:6px; background: var(--bg-1); border-radius:999px;
  overflow:hidden; margin: 20px auto; max-width: 420px;
}
.status-card .pct-fill {
  height:100%; background: var(--grad-gold);
  border-radius:999px;
  transition: width .6s;
}

/* ------------------ Animator cards ------------------ */
.anim-card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  position: relative;
  transition: all .2s;
}
.anim-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-2px);
}
.anim-card .av {
  width: 56px; height: 56px; border-radius:50%;
  background: var(--grad-red);
  color:#fff; display:flex; align-items:center; justify-content:center;
  font-family:'Cinzel', serif; font-size: 1.4rem; font-weight:700;
  margin-bottom: 10px;
  border: 2px solid var(--gold);
}
.anim-card h4 { font-family:'Cinzel', serif; color: var(--gold); margin:0 0 2px; }
.anim-card .disc { color: var(--txt-dim); font-size:.85rem; }
.anim-card .stats-row {
  display:flex; gap: 14px; margin-top: 12px;
  padding-top: 12px; border-top: 1px solid var(--line);
  color: var(--txt-dim); font-size:.85rem;
}
.anim-card .stats-row b { color: var(--gold); display:block; font-family:'Cinzel', serif; }

/* ------------------ Footer ------------------ */
.site-footer {
  background: var(--bg-0);
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding: 30px 20px;
  position: relative; z-index:1;
}
.footer-inner {
  max-width: 1400px; margin:0 auto;
  display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap;
  align-items:center;
}
.foot-title { font-family:'Cinzel', serif; color: var(--gold); letter-spacing:2px; }
.foot-sub { color: var(--txt-dim); font-size:.85rem; }
.foot-links { display:flex; gap:18px; flex-wrap:wrap; }
.foot-links a { color: var(--txt-dim); text-transform: uppercase; font-size:.8rem; letter-spacing:1px; }
.foot-links a:hover { color: var(--gold); }
.foot-tag { color: var(--txt-dim); font-style: italic; font-size:.9rem; display:flex; align-items:center; gap:10px; }
.foot-tag .kanji { color: var(--red-2); font-size:1.3rem; font-family:'Cinzel', serif; }

/* ------------------ Misc ------------------ */
.empty {
  text-align:center; padding: 40px 20px;
  color: var(--txt-dim);
}
.empty .kanji { font-size: 3rem; color: rgba(212,175,55,.3); font-family:'Cinzel', serif; display:block; margin-bottom: 10px; }

.divider-jp {
  display:flex; align-items:center; gap:14px;
  color: var(--gold-dim); margin: 28px 0;
}
.divider-jp::before, .divider-jp::after {
  content:""; flex:1; height:1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.public-banner {
  background: linear-gradient(90deg, rgba(184,34,43,.1), rgba(212,175,55,.06));
  border: 1px solid var(--red-dim);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--txt-dim);
  font-size:.9rem;
  margin-bottom: 18px;
  display:flex; align-items:center; gap:10px;
}
.public-banner .kanji { color: var(--red-2); font-family:'Cinzel', serif; font-size: 1.2rem; }

/* ------------------ Owner picker (multi animateurs) ------------------ */
.owner-picker {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 10px;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  max-height: 220px; overflow-y: auto;
}
.owner-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 5px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s;
  user-select: none;
  font-size: .9rem;
}
.owner-chip:hover { border-color: var(--gold-dim); color: var(--gold); }
.owner-chip input { display: none; }
.owner-chip .av {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--bg-2); color: var(--txt-dim);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cinzel', serif; font-size: .8rem; font-weight: 700;
  border: 1px solid var(--line-2);
  transition: all .15s;
}
.owner-chip.on {
  background: rgba(212,175,55,.12);
  border-color: var(--gold);
  color: var(--gold);
}
.owner-chip.on .av {
  background: var(--grad-gold);
  color: #1a1208;
  border-color: var(--gold);
}
.owner-chip.disabled { opacity:.45; cursor: not-allowed; }
.owner-chip.disabled:hover { border-color: var(--line-2); color: var(--txt-dim); }

/* Priority pill */
.pill {
  display:inline-block; padding: 2px 10px;
  font-size:.72rem; font-weight:600; letter-spacing:1px;
  text-transform:uppercase; border-radius:999px;
  border:1px solid var(--line-2);
}
.pill-high { color:#ff9aa0; background: rgba(184,34,43,.15); border-color: rgba(184,34,43,.4); }
.pill-med  { color:#ffc97a; background: rgba(224,166,58,.12); border-color: rgba(224,166,58,.35); }
.pill-low  { color:#9ccfff; background: rgba(90,167,226,.12); border-color: rgba(90,167,226,.35); }
