/* ARUNODAYA premium dashboard layer (v17). Loaded after dashboard.css.
   Presentation only: same Army / Eastern Command identity, richer colour,
   fully responsive (phone, tablet, desktop). */
:root {
  --acc-dragon: #ff4d3d; --acc-bengal: #19d68a; --acc-nepride: #ffd23f; --acc-tibet: #e0457b;
  --vi-cyan: #2fd6ff; --vi-amber: #ffab2e; --vi-green: #28e08a; --vi-red: #ff5d6c;
}
body {
  background-image:
    radial-gradient(ellipse at 15% -10%, rgba(40,224,138,.16) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 0%, rgba(255,171,46,.14) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 110%, rgba(47,214,255,.08) 0%, transparent 50%);
  background-attachment: fixed;
}
.topbar { background: linear-gradient(180deg, #14260d 0%, #0b1409 100%); border-bottom: 1px solid #8a7a2c; }
.brand-name { background: linear-gradient(90deg, #ffe27a, #ffb52e, #ffe27a); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.topnav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(8px); background: rgba(12,22,9,.88); }
.topnav a { padding: 6px 10px; border-radius: 999px; }
.topnav a:hover { background: rgba(230,200,84,.12); text-decoration: none; }
main { max-width: 1280px; }

/* generation banner */
.genbanner { display: flex; gap: 12px; align-items: center; padding: 12px 16px; margin-bottom: 14px;
  border-radius: 10px; color: #1b1300; font-weight: bold; letter-spacing: 1px; font-size: 12px;
  background: linear-gradient(90deg, #ffd23f, #ffab2e); box-shadow: 0 6px 24px rgba(255,171,46,.3); }
.genbanner[hidden] { display: none; }
.spin { width: 16px; height: 16px; border: 3px solid rgba(0,0,0,.25); border-top-color: #1b1300; border-radius: 50%; animation: sp 0.9s linear infinite; flex: none; }
@keyframes sp { to { transform: rotate(360deg); } }

/* summary tiles */
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 18px; }
.tile { border-radius: 12px; padding: 14px 14px 12px; border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.01)); position: relative; overflow: hidden; }
.tile::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--tc, var(--gold)); }
.tile-num { font-size: 30px; font-weight: bold; color: var(--tc, var(--gold)); line-height: 1.1; }
.tile-lab { font-size: 10px; letter-spacing: 2px; color: var(--dim); margin-top: 4px; }
.t-gold { --tc: #ffd23f; } .t-cyan { --tc: var(--vi-cyan); } .t-amber { --tc: var(--vi-amber); }
.t-green { --tc: var(--vi-green); } .t-red { --tc: var(--vi-red); }
.tile-gauge { --tc: var(--vi-green); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px; }
.tile-gauge.m-warn { --tc: var(--vi-amber); } .tile-gauge.m-crit { --tc: var(--vi-red); }
.gauge { --p: 0; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--tc) calc(var(--p) * 1%), rgba(255,255,255,.1) 0); position: relative; }
.gauge::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: #0e1a0b; }
.gauge span { position: relative; font-size: 13px; font-weight: bold; color: #fff; }

/* layout: cards + live feed */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.col-live, .col-side { position: sticky; top: 56px; }
.live { border-radius: 14px; border: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(170deg, rgba(20,38,15,.95), rgba(10,18,8,.95)); padding: 14px 14px 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,.45); }
.live-head #live-state { letter-spacing: 0; }
.live-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--gold); letter-spacing: 3px; font-size: 11px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.livedot { width: 9px; height: 9px; border-radius: 50%; background: var(--vi-red); box-shadow: 0 0 0 0 rgba(255,93,108,.7); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(255,93,108,0); } 100% { box-shadow: 0 0 0 0 rgba(255,93,108,0); } }
.live-list { list-style: none; margin: 0; padding: 0; max-height: 640px; overflow-y: auto; }
.ev { display: flex; gap: 10px; padding: 10px 2px; border-bottom: 1px solid rgba(255,255,255,.06); }
.ev:last-child { border-bottom: 0; }
.ev-ico { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 14px; color: #10160a; background: var(--ec, var(--gold)); }
.ev-gold { --ec: #ffd23f; } .ev-green { --ec: var(--vi-green); } .ev-cyan { --ec: var(--vi-cyan); }
.ev-amber { --ec: var(--vi-amber); } .ev-red { --ec: var(--vi-red); }
.ev-title { font-size: 12px; color: #fff; letter-spacing: .5px; }
.ev-detail { font-size: 11px; color: var(--text); opacity: .85; margin-top: 2px; word-break: break-word; }
.ev-meta { font-size: 10px; color: var(--dim); margin-top: 3px; }

/* magazine cards */
.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cardwrap { --acc: var(--gold); }
.mag-dragon { --acc: var(--acc-dragon); } .mag-bengal { --acc: var(--acc-bengal); }
.mag-nepride { --acc: var(--acc-nepride); } .mag-tibet { --acc: var(--acc-tibet); }
.card { padding: 0; overflow: hidden; border-radius: 14px; gap: 0; flex-direction: row;
  border: 1px solid color-mix(in srgb, var(--acc) 45%, #1c2a14);
  background: linear-gradient(160deg, color-mix(in srgb, var(--acc) 14%, #14260f), #0c150a 70%);
  box-shadow: 0 8px 28px rgba(0,0,0,.4); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(0,0,0,.55), 0 0 0 1px var(--acc); text-decoration: none; }
.thumb { flex: none; width: 118px; aspect-ratio: 210 / 297; align-self: flex-start; background: #060a05; display: flex; border-right: 1px solid rgba(255,255,255,.08); }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.thumb-empty { width: 100%; display: grid; place-items: center; text-align: center; padding: 8px; font-size: 11px; color: var(--acc); }
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.card-name { color: #fff; font-size: 15px; }
.card-mag { color: var(--acc); font-size: 11px; word-break: break-all; }
.card-row { display: flex; align-items: center; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.ring { --p: 25; flex: none; width: 66px; height: 66px; border-radius: 50%; display: grid; place-content: center; text-align: center; position: relative;
  background: conic-gradient(var(--acc) calc(var(--p) * 1%), rgba(255,255,255,.1) 0); }
.ring::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: #0d1609; }
.ring b, .ring i { position: relative; display: block; }
.ring b { font-size: 18px; color: #fff; line-height: 1; }
.ring i { font-size: 8px; font-style: normal; color: var(--dim); letter-spacing: 1px; margin-top: 2px; }
.card-side { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.okflag { color: var(--vi-green); }
.badge { font-weight: bold; }
.s-draft { color: #b9c2a2; background: rgba(255,255,255,.05); }
.s-in_review { color: #1b1300; background: var(--vi-amber); border-color: var(--vi-amber); }
.s-approved { color: #04200f; background: var(--vi-green); border-color: var(--vi-green); }
.s-published { color: #00222e; background: var(--vi-cyan); border-color: var(--vi-cyan); }
.cardlinks { display: flex; gap: 8px; margin-top: 8px; }
.cardlinks .btn { flex: 1; text-align: center; border-radius: 8px; padding: 8px 6px; color: var(--text); border-color: color-mix(in srgb, var(--acc) 40%, #2a3418); }
.cardlinks .btn:hover { background: color-mix(in srgb, var(--acc) 18%, transparent); text-decoration: none; }
.newtag { background: linear-gradient(90deg, #ff4d3d, #ff8a3d); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 999px; letter-spacing: .1em; vertical-align: middle; }
.cycle h2 { color: #ffe27a; font-size: 14px; }

/* other panels pick up the colour too */
.notes, .meter { border-radius: 12px; }
.notes { border-left-color: var(--vi-amber); background: rgba(255,171,46,.06); }
.meter { border-left-color: var(--vi-green); background: linear-gradient(160deg, rgba(40,224,138,.08), rgba(255,255,255,.01)); }
.meter-fill { background: linear-gradient(90deg, #19d68a, #2fd6ff); }
.m-warn .meter-fill { background: linear-gradient(90deg, #ffab2e, #ffd23f); }
.m-crit .meter-fill { background: linear-gradient(90deg, #ff5d6c, #ff8a3d); }
button, .btn { border-radius: 8px; background: linear-gradient(180deg, #ffd23f, #e09a1f); }
button.mini, .mini, .cardlinks .btn { background: transparent; }
.story-row, .receipt, .settings-panel, .login-box { border-radius: 12px; }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .layout { grid-template-columns: 1fr; }
  .col-live, .col-side { position: static; }
  .live-list { max-height: 360px; }
}
/* ---------- phone ---------- */
@media (max-width: 640px) {
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .tile-num { font-size: 24px; }
  .grid { grid-template-columns: 1fr; }
  .thumb { width: 104px; }
  .topnav { position: static; }
  .brand-name { letter-spacing: 3px; }
  .layout { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { .spin, .livedot { animation: none; } .card { transition: none; } }

/* ================= Magnova v18 ================= */
*, body, input, button, textarea, select, code, .card-mag, .brand-name, h1, h2 {
  font-family: "Times New Roman", Times, "Liberation Serif", serif !important;
  font-weight: 700 !important;
}
body { font-size: 16px; }
.topbar { justify-content: center; padding: 20px 20px 14px; border-bottom: 0;
  background: linear-gradient(120deg, #0b2a1a 0%, #123d27 35%, #3a2a0b 70%, #0b2a1a 100%); background-size: 200% 100%; animation: drift 14s ease-in-out infinite alternate; position: relative; }
.topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, #19d68a, #2fd6ff, #ffd23f, #ff5d6c, #19d68a); background-size: 200% 100%; animation: drift 6s linear infinite alternate; }
@keyframes drift { to { background-position: 100% 0; } }
.brand-name { font-size: 54px; letter-spacing: 14px; line-height: 1; padding-left: 14px;
  background: linear-gradient(90deg, #ffe27a, #ff9f43, #ff5d6c, #ffe27a); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: drift 7s linear infinite alternate; filter: drop-shadow(0 4px 18px rgba(255,170,60,.35)); }
.brand-sub { color: #b9e8cf; letter-spacing: 7px; font-size: 13px; margin-top: 8px; }
.topnav { font-size: 14px; }
.foot { flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 13px; background: linear-gradient(90deg, #0b2a1a, #1b1608, #0b2a1a); }
.foot-dev { color: #ffe27a; letter-spacing: .5px; }
main { max-width: 1320px; }
.layout { grid-template-columns: minmax(0, 1fr) 340px; }

/* ticker */
.ticker { display: flex; align-items: center; gap: 12px; overflow: hidden; border-radius: 999px; margin-bottom: 14px; padding: 6px 14px 6px 8px;
  background: linear-gradient(90deg, rgba(255,93,108,.18), rgba(255,171,46,.12)); border: 1px solid rgba(255,171,46,.35); }
.ticker-tag { flex: none; display: flex; align-items: center; gap: 7px; background: #ff5d6c; color: #fff; border-radius: 999px; padding: 4px 12px; font-size: 12px; letter-spacing: 2px; }
.ticker-tag .livedot { background: #fff; animation: none; box-shadow: none; }
.ticker-track { overflow: hidden; flex: 1; white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-inner { display: inline-block; padding-left: 100%; animation: tick 90s linear infinite; }
.ticker-track:hover .ticker-inner { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-100%); } }
.tk { color: #fff; font-size: 15px; } .tk-sep { color: var(--vi-amber); margin: 0 16px; }

/* credit (small) */
.credit-mini { border-radius: 12px; padding: 9px 12px; margin-bottom: 14px; border: 1px solid rgba(40,224,138,.4);
  background: linear-gradient(160deg, rgba(40,224,138,.12), rgba(255,255,255,.02)); --cc: var(--vi-green); }
.credit-mini.m-warn { --cc: var(--vi-amber); border-color: rgba(255,171,46,.5); }
.credit-mini.m-crit { --cc: var(--vi-red); border-color: rgba(255,93,108,.6); }
.cm-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cm-lab { font-size: 11px; letter-spacing: 2px; color: var(--dim); }
.cm-num { font-size: 24px; color: var(--cc); line-height: 1; }
.cm-unit { font-size: 13px; color: var(--text); }
.cm-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.1); margin: 7px 0 5px; overflow: hidden; }
.cm-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--cc), #2fd6ff); border-radius: 999px; }
.cm-note { font-size: 11.5px; color: var(--dim); line-height: 1.35; }

/* live news */
.live { padding: 12px 12px 6px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0 8px; }
.tab { background: rgba(255,255,255,.06); color: var(--text); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 5px 12px; font-size: 13px; letter-spacing: .5px; }
.tab.on { background: linear-gradient(90deg, #ffd23f, #ff9f43); color: #1b1300; border-color: transparent; }
.news-list, .linklist { list-style: none; margin: 0; padding: 0; }
.news-list { max-height: 560px; overflow-y: auto; }
.nw, .li, .ar { padding: 9px 2px; border-bottom: 1px solid rgba(255,255,255,.07); }
.nw:last-child, .li:last-child { border-bottom: 0; }
.lk { color: #fff; font-size: 15.5px; line-height: 1.3; display: block; }
.lk:hover { color: var(--vi-cyan); }
.lk-meta { font-size: 12px; color: var(--vi-amber); margin-top: 3px; }

/* panels */
.panel { border-radius: 16px; margin-top: 22px; padding: 6px 18px 16px; border: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(165deg, rgba(255,255,255,.05), rgba(255,255,255,.01)); }
.ph { margin: 14px 0 10px; letter-spacing: 3px; font-size: 14px; color: #ffe27a; border-bottom: 1px solid rgba(255,255,255,.12); padding-bottom: 8px; text-transform: uppercase; }
.ph .dim { letter-spacing: 0; font-size: 13px; text-transform: none; margin-left: 6px; }
.panel .linklist { columns: 2 340px; column-gap: 26px; }
.panel .li { break-inside: avoid; }
.ask { border-color: rgba(47,214,255,.45); background: linear-gradient(165deg, rgba(47,214,255,.1), rgba(255,210,63,.04)); box-shadow: 0 0 40px rgba(47,214,255,.08); }
.ask-form { display: flex; gap: 10px; }
.ask-form input { flex: 1; min-width: 0; font-size: 16px; border-radius: 10px; border-color: rgba(47,214,255,.5); }
.ask-out { margin-top: 12px; }
.ask .linklist { columns: 1; }
.answer { background: rgba(47,214,255,.1); border-left: 3px solid var(--vi-cyan); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; font-size: 15.5px; line-height: 1.45; }
.ar-add { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.ar-add select { padding: 5px 8px; font-size: 13px; border-radius: 8px; max-width: 100%; }
.ar-msg { font-size: 13.5px; } .ar-msg.good { color: var(--vi-green); } .ar-msg.bad { color: var(--vi-red); }

/* archive */
.arch-cycle { color: var(--vi-cyan); letter-spacing: 3px; font-size: 13px; margin: 12px 0 8px; }
.arch-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.arch { --acc: var(--gold); display: flex; flex-direction: column; gap: 6px; }
.mag-dragon.arch { --acc: var(--acc-dragon); } .mag-bengal.arch { --acc: var(--acc-bengal); } .mag-nepride.arch { --acc: var(--acc-nepride); } .mag-tibet.arch { --acc: var(--acc-tibet); }
.arch-thumb { display: grid; place-items: center; aspect-ratio: 210 / 297; border-radius: 10px; overflow: hidden; background: #060a05; border: 1px solid var(--acc); box-shadow: 0 6px 18px rgba(0,0,0,.4); transition: transform .15s; }
.arch-thumb:hover { transform: translateY(-3px) scale(1.02); text-decoration: none; }
.arch-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.arch-thumb span { color: var(--acc); text-align: center; padding: 6px; font-size: 13px; }
.arch-name { color: #fff; font-size: 14px; }
.arch-links a { font-size: 12px; margin-right: 10px; }
.ph, .cycle h2 { font-size: 15px; }
.card-name { font-size: 18px; } .card-mag { font-size: 13px; } .card-meta { font-size: 13px; } .badge { font-size: 12px; }
.tile-lab { font-size: 12px; } .tile-num { font-size: 28px; }
.statusline { font-size: 14px; }
.tiles .tile { padding: 11px 12px; }

@media (max-width: 1100px) { .layout { grid-template-columns: minmax(0, 1fr); } .tiles { grid-template-columns: repeat(3, 1fr); } .arch-row { grid-template-columns: repeat(2, minmax(0,1fr)); } .brand-name { font-size: 42px; letter-spacing: 10px; } }
@media (max-width: 640px) {
  .brand-name { font-size: 30px; letter-spacing: 6px; padding-left: 6px; } .brand-sub { letter-spacing: 3px; font-size: 11px; }
  .ask-form { flex-direction: column; } .panel { padding: 4px 12px 12px; }
  .arch-row { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .ticker-inner { animation-duration: 70s; }
}
@media (prefers-reduced-motion: reduce) { .topbar, .brand-name, .topbar::after, .ticker-inner { animation: none; } }
