:root {
  /* LT Foods palette — earthy terracotta + green + gold (from the LT Foods logo) */
  --navy: #5e3a28; --blue: #995d43; --pale: #f6efe9; --line: #e7dacf;
  --ink: #33261e; --muted: #8a7a6e; --ok: #6f8f2e; --warn: #d0951a; --err: #c0392b;
  --gold: #fdb812; --gold-dark: #c9930f; --gold-soft: #fdf1d4;
  --green: #90a83d; --sky: #3576bc; --brown-dark: #4a2e20;
}
* { box-sizing: border-box; }
.ic { width: 1.1em; height: 1.1em; display: inline-block; vertical-align: -0.18em; flex: none; }
.ic-lg { width: 1.35em; height: 1.35em; vertical-align: -0.28em; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; background: #faf7f2; color: var(--ink); font-size: 14.5px; }
a { color: var(--blue); text-decoration: none; } a:hover { text-decoration: underline; }
h1 { font-size: 22px; color: var(--navy); margin: 0 0 16px; } h2 { font-size: 16px; color: var(--navy); margin: 18px 0 10px; }
h3 { font-size: 14px; color: var(--navy); margin: 16px 0 8px; }

.shell { display: flex; min-height: 100vh; }
.sidebar { width: 232px; background: var(--navy); color: #cfe0f7; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; flex-shrink: 0; }
.brand { font-weight: 800; font-size: 16px; color: #fff; padding: 18px 16px 12px; letter-spacing: .2px; }
.sidebar nav { flex: 1; display: flex; flex-direction: column; padding: 4px 8px; }
.sidebar nav a { color: #cfe0f7; padding: 8px 10px; border-radius: 8px; margin: 1px 0; font-size: 14px; }
.sidebar nav a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.sidebar nav a.active { background: var(--blue); color: #fff; }
.nav-group { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: #7f9bc6; margin: 12px 10px 3px; }
.sidebar .sub { padding-left: 18px; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge-dead { background: var(--err); color: #fff; font-size: 11px; border-radius: 9px; padding: 1px 7px; margin-left: 5px; }
.side-foot { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.15); font-size: 13px; }
.side-foot a { color: #9fc0ec; } .side-foot .ver { color: #7f9bc6; font-size: 11px; margin-top: 3px; }

.main { flex: 1; padding: 24px 28px; min-width: 0; }
body.wide .main { padding: 20px 22px; }

.flash { border-radius: 9px; padding: 11px 15px; margin-bottom: 16px; font-size: 14px; }
.flash-ok { background: #e6f4ea; color: #135c2b; border: 1px solid #bfe3cb; }
.flash-err { background: #fdecec; color: #8f1d12; border: 1px solid #f3c1bb; }

/* ===== Super-cinematic split login (LT Foods) ===== */
.login-body { display: flex; min-height: 100vh; overflow: hidden; background: #fff; }

/* LEFT — animated brand hero */
.login-hero { position: relative; flex: 1 1 56%; display: flex; flex-direction: column; justify-content: center;
  padding: 0; color: #fff; overflow: hidden;
  background: linear-gradient(125deg, #8a5236, #5e3a28 40%, #46351f 62%, #3f5322);
  background-size: 220% 220%; animation: heroPan 18s ease infinite; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .18; z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(34px); z-index: 0; opacity: .55; }
.orb1 { width: 440px; height: 440px; right: -140px; top: -170px; background: radial-gradient(circle,#fdb812,transparent 66%); opacity: .42; animation: drift1 16s ease-in-out infinite; }
.orb2 { width: 400px; height: 400px; left: -140px; bottom: -160px; background: radial-gradient(circle,#90a83d,transparent 64%); animation: drift2 20s ease-in-out infinite; }
.orb3 { width: 300px; height: 300px; left: 40%; top: 54%; background: radial-gradient(circle,#3576bc,transparent 62%); animation: drift3 24s ease-in-out infinite; opacity: .38; }
.particles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.particles i { position: absolute; bottom: -14px; width: 7px; height: 7px; border-radius: 50%; background: rgba(253,184,18,.75); opacity: 0; animation: rise linear infinite; }
.hero-emblem { position: absolute; right: -80px; bottom: -80px; width: 440px; height: auto; opacity: .10; z-index: 0; animation: spinFloat 44s linear infinite; }

.hero-inner { position: relative; z-index: 2; max-width: 640px; padding: 26px 5vw 0; }
.hero-badge { display: inline-flex; align-items: center; gap: 9px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.24);
  padding: 7px 16px; border-radius: 30px; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; backdrop-filter: blur(6px);
  opacity: 0; animation: fadeUp .8s .15s forwards; }
.hero-badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: ping 2s infinite; }
.hero-banner { position: relative; z-index: 2; display: block; width: 100%; height: auto; margin: 0; border: 0;
  border-bottom: 3px solid var(--gold); box-shadow: 0 16px 40px rgba(0,0,0,.36); opacity: 0; animation: fadeUp .9s .2s forwards; }
.hero-title { color: #fff; font-size: clamp(30px, 3.8vw, 48px); font-weight: 800; line-height: 1.24; margin: 6px 0 18px; letter-spacing: -.4px; text-shadow: 0 3px 26px rgba(35,18,6,.42); }
.hero-title .w { color: #fff; }
.hero-title .w { display: inline-block; opacity: 0; filter: blur(9px); transform: translateY(26px); animation: wordIn .9s cubic-bezier(.2,.8,.2,1) forwards; }
.hero-title .grad { background: linear-gradient(90deg,#fdb812,#c7d96a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 16.5px; line-height: 1.65; color: #f1e7dd; max-width: 470px; opacity: 0; animation: fadeUp 1s .95s forwards; }
.hero-tagline { margin: 8px 0 0; font-size: 13.5px; font-weight: 700; letter-spacing: .06em; color: var(--gold); text-transform: uppercase;
  opacity: 0; animation: fadeUp .9s .8s forwards; }
.hero-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; max-width: 560px; }
.hero-points li { display: flex; align-items: center; gap: 12px; opacity: 0; transform: translateY(16px); animation: fadeUp .7s forwards; }
.hero-points li .pt-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); box-shadow: inset 0 0 12px rgba(255,255,255,.05); }
.hero-points li .pt-ic svg { width: 21px; height: 21px; }
.hero-points li .t { font-size: 13.5px; font-weight: 600; color: #f4ece4; line-height: 1.25; }
.hero-points li:nth-child(3n+1) .pt-ic svg { color: #fdc73a; }
.hero-points li:nth-child(3n+2) .pt-ic svg { color: #b6d16a; }
.hero-points li:nth-child(3n) .pt-ic svg { color: #86b6ea; }
.hero-foot { position: absolute; left: 5vw; bottom: 2.6vh; z-index: 2; font-size: 11.5px; letter-spacing: .14em; color: rgba(255,255,255,.6); opacity: 0; animation: fadeUp 1s 1.5s forwards; }

/* RIGHT — premium form panel */
.login-panel { flex: 1 1 44%; min-width: 420px; display: flex; align-items: center; justify-content: center;
  padding: 40px 44px; position: relative;
  background: radial-gradient(130% 120% at 100% 0%, #f8f0e7, #f1e7db 72%); }
.login-card { width: 100%; max-width: 400px; background: #fff; border: 1px solid #efe4d7; border-radius: 24px;
  padding: 42px 40px 30px; box-shadow: 0 36px 64px -26px rgba(94,58,40,.32), 0 10px 26px rgba(94,58,40,.07);
  opacity: 0; transform: translateY(24px); animation: cardIn .85s .25s cubic-bezier(.2,.8,.2,1) forwards; }
.login-logo { display: none; }
.lc-logo { display: block; height: 44px; width: auto; margin: 0 auto 24px; }
.lc-h { font-size: 26px; font-weight: 800; color: var(--navy); margin: 0 0 5px; text-align: center; }
.lc-sub { color: var(--muted); font-size: 13.5px; margin: 0 0 28px; text-align: center; }

.ff { margin-bottom: 17px; opacity: 0; animation: fadeUp .6s forwards; }
.ff:nth-of-type(1) { animation-delay: .5s; } .ff:nth-of-type(2) { animation-delay: .6s; }
.ff > label { display: block; font-size: 12.5px; font-weight: 700; color: var(--navy); margin: 0 0 8px; letter-spacing: .01em; }
.ff-in { position: relative; }
.ff-in .fi { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--muted); pointer-events: none; transition: color .2s; }
.login-card .ff-in input { width: 100%; height: 52px; margin: 0; padding: 0 46px 0 44px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 14.5px; background: #fcfaf8; color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s; }
.login-card .ff-in input::placeholder { color: #bcaea2; }
.login-card .ff-in input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(153,93,67,.13); }
.login-card .ff-in input:focus ~ .fi { color: var(--blue); }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--muted); padding: 8px; line-height: 0; }
.pw-toggle:hover { color: var(--blue); }
.pw-toggle svg { width: 19px; height: 19px; }

.btn-signin { position: relative; overflow: hidden; width: 100%; height: 52px; margin-top: 10px; border: none; border-radius: 12px; cursor: pointer;
  color: #fff; font-size: 15.5px; font-weight: 700; letter-spacing: .02em; display: flex; align-items: center; justify-content: center; gap: 9px;
  background: linear-gradient(120deg,#8a5236,#995d43 55%,#6f8f2e); background-size: 180% 180%;
  box-shadow: 0 12px 26px rgba(138,82,54,.34); transition: transform .15s, box-shadow .2s, background-position .5s;
  opacity: 0; animation: fadeUp .7s .7s forwards; }
.btn-signin:hover { background-position: 100% 0; box-shadow: 0 16px 32px rgba(138,82,54,.44); transform: translateY(-2px); }
.btn-signin:active { transform: translateY(0); }
.btn-signin::after { content: ''; position: absolute; top: 0; left: -70%; width: 55%; height: 100%; transform: skewX(-20deg);
  background: linear-gradient(90deg,transparent,rgba(255,255,255,.4),transparent); animation: shine 3.6s ease-in-out infinite; }
.btn-signin svg { width: 18px; height: 18px; transition: transform .2s; z-index: 1; }
.btn-signin:hover svg { transform: translateX(4px); }
.login-card .flash { animation: fadeUp .4s forwards; border-radius: 11px; margin-bottom: 16px; }
.lc-credit { text-align: center; margin: 24px 0 0; padding-top: 18px; border-top: 1px solid #f1e8dd; font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.lc-credit a { color: var(--muted); font-weight: 600; text-decoration: none; transition: color .2s; }
.lc-credit a:hover { color: var(--blue); }
@keyframes cardIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

@keyframes heroPan { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-40px,50px) scale(1.12); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(50px,-40px) scale(1.15); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,30px) scale(1.2); } }
@keyframes rise { 0% { transform: translateY(0) scale(.5); opacity: 0; } 12% { opacity: .9; } 100% { transform: translateY(-90vh) scale(1); opacity: 0; } }
@keyframes spinFloat { 0% { transform: rotate(0) translateY(0); } 50% { transform: rotate(180deg) translateY(-18px); } 100% { transform: rotate(360deg) translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes wordIn { to { opacity: 1; filter: blur(0); transform: translateY(0); } }
@keyframes slideInR { from { opacity: 0; transform: translateX(46px); } to { opacity: 1; transform: translateX(0); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(253,184,18,.6); } 70% { box-shadow: 0 0 0 10px rgba(253,184,18,0); } 100% { box-shadow: 0 0 0 0 rgba(253,184,18,0); } }
@keyframes shine { 0%,100% { left: -70%; } 55%,72% { left: 130%; } }

@media (max-width: 900px) {
  .login-body { flex-direction: column; }
  .login-hero { flex: none; padding: 0; }
  .hero-banner { margin: 0; }
  .hero-inner { padding: 20px 24px 24px; }
  .hero-title { font-size: 30px; margin: 2px 0 12px; }
  .hero-points { grid-template-columns: 1fr; gap: 10px; }
  .hero-foot, .hero-emblem { display: none; }
  .login-panel { min-width: 0; padding: 30px 22px 44px; }
  .login-panel::before { width: 100%; height: 5px; }
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 8px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.card .num { font-size: 26px; font-weight: 800; color: var(--navy); }

.tbl-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.tbl { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
.tbl:not(.tbl-mini) { border: 1px solid var(--line); }
.tbl-wrap .tbl { border: 0; }
.tbl th { text-align: left; background: var(--pale); color: var(--navy); font-size: 12.5px; padding: 9px 10px; white-space: nowrap; }
.tbl td { padding: 8px 10px; border-top: 1px solid #eef2f8; vertical-align: top; }
.tbl-mini th, .tbl-mini td { padding: 3px 6px; font-size: 12.5px; }

.kv { width: 100%; border-collapse: collapse; }
.kv th { text-align: left; width: 34%; padding: 7px 8px; color: var(--muted); font-size: 13px; vertical-align: top; font-weight: 600; }
.kv td { padding: 7px 8px; border-bottom: 1px solid #f0f4fa; }
.kv-section { background: var(--pale); color: var(--navy) !important; font-size: 13px !important; border-radius: 6px; }

.pill { display: inline-block; font-size: 11.5px; font-weight: 700; border-radius: 20px; padding: 2px 10px; background: var(--pale); color: var(--navy); }
.pill-published, .pill-app { background: #e6f4ea; color: #135c2b; }
.pill-draft, .pill-panel { background: #fdf3e2; color: #8a5a10; }
.pill-archived { background: #fbe9e7; color: #8f1d12; }
.pill-api { background: #e8eefc; color: #123f8f; }

.btn { display: inline-block; background: #fff; border: 1px solid #c4d3ea; color: var(--navy); border-radius: 8px; padding: 8px 14px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.btn:hover { background: var(--pale); text-decoration: none; }
.btn-sm { padding: 4px 9px; font-size: 12.5px; border-radius: 7px; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; } .btn-primary:hover { background: var(--navy); }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-warn { background: #fff; border-color: #e5b98a; color: #8a5a10; }
.btn-danger { background: var(--err); border-color: var(--err); color: #fff; } .btn-danger:hover { background: #96271b; }
.inline { display: inline; } .actions { white-space: nowrap; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; }
.panel.narrow { max-width: 560px; }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .two-col { grid-template-columns: 1fr; } }

.filterbar { margin-bottom: 14px; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 12px; margin-bottom: 10px; }
label { display: block; font-size: 13px; font-weight: 600; color: #33445e; margin-bottom: 8px; }
.input,
input[type="text"], input[type="password"], input[type="email"], input[type="number"],
input[type="date"], input[type="datetime-local"], input[type="time"], input[type="url"],
input[type="tel"], input[type="search"], input:not([type]), select, textarea { width: 100%; padding: 8px 10px; border: 1px solid #c8d6ea; border-radius: 8px; font-size: 13.5px; margin-top: 4px; background: #fff; font-family: inherit; box-sizing: border-box; }
.input:focus,
input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus, input[type="number"]:focus,
input[type="date"]:focus, input[type="datetime-local"]:focus, input[type="time"]:focus, input[type="url"]:focus,
input[type="tel"]:focus, input[type="search"]:focus, input:not([type]):focus, select:focus, textarea:focus { outline: 2px solid var(--gold-soft); border-color: var(--blue); }
.input.bad { border-color: var(--err); outline-color: #f6c9c3; }
.mono { font-family: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace; }
.muted { color: var(--muted); } .small { font-size: 12px; } .req { color: var(--err); }
.chk { display: flex; align-items: center; gap: 7px; font-weight: 600; } .chk input { margin: 0; }

.pager { margin-top: 14px; display: flex; gap: 4px; flex-wrap: wrap; }
.pager a { padding: 5px 11px; border: 1px solid var(--line); background: #fff; border-radius: 7px; font-size: 13px; }
.pager a.cur { background: var(--blue); color: #fff; border-color: var(--blue); }

/* builder */
.builder { display: grid; grid-template-columns: 250px 1fr 320px; gap: 14px; align-items: start; }
@media (max-width: 1150px) { .builder { grid-template-columns: 1fr; } }
.b-col { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.b-canvas { min-height: 420px; }
.b-props { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
.pal-grp { font-size: 11px; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); margin: 10px 0 4px; }
.pal-btn { display: inline-block; margin: 2px 3px 2px 0; background: var(--pale); border: 1px solid #cfdcf0; color: var(--navy); border-radius: 7px; padding: 5px 9px; font-size: 12.5px; cursor: pointer; }
.pal-btn:hover { background: var(--blue); color: #fff; }
.fcard { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; margin-bottom: 7px; background: #fff; cursor: pointer; }
.fcard:hover { border-color: var(--blue); }
.fcard.sel { border-color: var(--blue); box-shadow: 0 0 0 2px #cfe2fb; }
.fcard.flayout { background: #f8fafd; }
.drag { cursor: grab; color: #a9b8cf; } .fmain { flex: 1; min-width: 0; }
.flabel { font-weight: 700; font-size: 14px; }
.fmeta { font-size: 11.5px; color: var(--muted); }
.fdel { color: #c8d1e0; cursor: pointer; font-size: 15px; padding: 2px 5px; } .fdel:hover { color: var(--err); }
.rule { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 5px; margin-bottom: 5px; }

/* misc widgets */
.assign-list { max-height: 380px; overflow-y: auto; border: 1px solid var(--line); border-radius: 9px; padding: 6px 10px; margin: 10px 0; }
.urow { display: flex; align-items: center; gap: 8px; padding: 5px 2px; font-weight: 500; }
.phone-preview { max-width: 430px; }
.pv-field { margin-bottom: 14px; }
.pv-section { background: var(--pale); border-radius: 7px; padding: 6px 10px; color: var(--navy); margin: 14px 0 8px; }
.pv-opts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.pv-opt { border: 1px solid #c8d6ea; border-radius: 16px; padding: 3px 11px; font-size: 12.5px; color: #33445e; }
.pv-map, .pv-file, .pv-rep { border: 1.5px dashed #b9cae4; border-radius: 9px; padding: 14px; text-align: center; color: var(--muted); margin-top: 5px; font-size: 13px; }
.file-chip { display: flex; align-items: center; gap: 8px; background: var(--pale); border-radius: 8px; padding: 5px 9px; margin-top: 5px; }
.thumb { width: 42px; height: 42px; object-fit: cover; border-radius: 6px; }
.rev { border-top: 1px solid #eef2f8; padding: 9px 0; }
.diff { font-size: 13px; margin: 3px 0 0 8px; }
.diff .old { background: #fdecec; text-decoration: line-through; padding: 1px 5px; border-radius: 4px; }
.diff .new { background: #e6f4ea; padding: 1px 5px; border-radius: 4px; }
.pre { background: #0e1726; color: #d5e2f5; border-radius: 9px; padding: 12px 14px; font-size: 12.5px; overflow-x: auto; font-family: ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-word; }
.keybox { background: var(--pale); border: 1px dashed #9fb9dd; border-radius: 8px; padding: 8px 12px; margin-top: 6px; word-break: break-all; }
details summary { cursor: pointer; color: var(--blue); }

/* ---- Daawat brand accents (indigo + gold) ---- */
.sidebar .brand { border-bottom: 2px solid var(--gold); padding-bottom: 12px; display: flex; align-items: center; gap: 9px; }
.sidebar .brand img { height: 30px; width: auto; display: block; }
.sidebar nav a.active { box-shadow: inset 3px 0 0 var(--gold); }
.btn-primary:hover { background: var(--navy); }
.card { border-top: 2px solid var(--gold); }
.card .num { color: var(--blue); }
a { color: var(--blue); }
.pill-api { background: var(--gold-soft); color: var(--gold-dark); }
