/* HariJeyam Business Platform — navy and gold on light blue (from the HariJeyam layout prototype).
   Logos are trademarks: scale only (object-fit: contain), never crop, stretch or recolor. */
:root {
  --navy: #112f57; --navy-2: #173b6b; --gold: #b08b46; --gold-2: #e6c476; --gold-soft: #f6eedb;
  --ink: #18354f; --muted: #647d91; --bg: #eaf4fb; --card: #fff; --line: #d4e3ef; --line-2: #eef3f8;
  --ok: #2f7d5b; --ok-soft: #e4f3ea; --bad: #b42318; --bad-soft: #fde8e6; --warn: #ad883e; --warn-soft: #f8eedb;
  --radius: 10px;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 14px; }
a { color: var(--navy); }
button, input, select, textarea { font: inherit; }
h1 { font: 400 30px/1.2 Georgia, "Times New Roman", serif; margin: 8px 0 8px; color: var(--ink); }
h2 { font-size: 15px; font-weight: 600; margin: 0; }
h3 { font: 19px Georgia, serif; margin: 0 0 6px; }

/* ── Shell: navy sidebar, navy top bar, content ── */
.shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 250px; background: var(--navy); color: #d8e0df; padding: 16px 18px 20px; display: flex; flex-direction: column; overflow-y: auto; z-index: 20; }
.sidebar-platform { position: relative; isolation: isolate; padding: 16px 0 18px; text-align: center; }
.sidebar-platform::before { content: ""; position: absolute; inset: -6px -8px; z-index: -1; pointer-events: none; filter: blur(6px);
  background: radial-gradient(ellipse at center, rgba(255,255,255,.98) 0%, rgba(255,255,255,.92) 25%, rgba(218,233,241,.7) 43%, rgba(124,153,174,.25) 61%, transparent 78%); }
.sidebar-platform img { display: block; width: 150px; height: auto; margin: auto; object-fit: contain; }
.brand { display: block; background: #fff; border-radius: 8px; padding: 8px; margin-bottom: 18px; text-decoration: none; color: var(--navy); }
.brand img { display: block; width: 100%; height: auto; max-height: 90px; object-fit: contain; }
.brand .initials { display: flex; align-items: center; gap: 10px; font: 18px Georgia, serif; }
.mono { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; font: italic 20px Georgia, serif; }
.organization { background: #ffffff08; border: 1px solid #ffffff15; border-radius: 9px; padding: 12px 14px; font-size: 12px; line-height: 1.7; margin-bottom: 14px; color: #fff; }
.organization span { display: block; color: #8fa3a6; font-size: 10px; letter-spacing: .5px; }
.navlabel { font-size: 9px; letter-spacing: 1.8px; color: #8fa9bf; margin: 14px 10px 6px; text-transform: uppercase; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.nav, .sidebar nav a { border: 0; background: none; color: #b6c5d2; width: 100%; text-align: left; padding: 10px 12px; border-radius: 7px; font-size: 12.5px; display: flex; gap: 12px; align-items: center; text-decoration: none; cursor: pointer; }
.nav:hover, .sidebar nav a:hover { background: #ffffff10; color: #fff; }
.nav.active, .sidebar nav a.active { background: #d8eaf7; color: var(--navy); font-weight: 700; }
.nav svg, .sidebar nav a svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav .logo-xs { width: 22px; height: 22px; object-fit: contain; background: #fff; border-radius: 4px; }
.sidefoot { margin-top: auto; padding-top: 18px; font-size: 11.5px; border-top: 1px solid #ffffff15; line-height: 1.6; display: flex; gap: 10px; align-items: center; }
.sidefoot .who { min-width: 0; overflow-wrap: anywhere; }
.sidefoot .role { color: #8fa9bf; display: block; }
.sidefoot .link { color: var(--gold-2); font-size: 11px; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
a.avatar { text-decoration: none; overflow: hidden; }
.profile-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.profile-photo { width: 110px; height: 110px; border-radius: 50%; overflow: hidden; background: #e9e0cb; color: #6a5734; display: grid; place-items: center; font: 34px Georgia, serif; border: 3px solid #fff; box-shadow: 0 6px 18px #15385822; flex-shrink: 0; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.face { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: 8px; background: #e9e0cb; display: inline-grid; place-items: center; font-size: 11px; color: #6a5734; font-weight: 700; }
.avatar { display: inline-grid; place-items: center; border-radius: 50%; width: 34px; height: 34px; background: #e9e0cb; color: #6a5734; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.main { margin-left: 250px; padding: 0 36px 32px; max-width: 1750px; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: var(--navy); color: #fff; margin: 0 -36px; padding: 0 36px; }
.header-identity { display: flex; align-items: center; gap: 16px; min-width: 0; }
.crumb { font-size: 12px; color: #d7e9f5; } .crumb b { font-weight: 500; color: #fff; }
.topright { display: flex; gap: 16px; align-items: center; }
.search { border: 1px solid #ffffff30; background: #ffffff12; color: #fff; width: 230px; font-size: 12px; padding: 9px 12px; border-radius: 7px; outline: none; }
.search::placeholder { color: #b8cbde; }
.iconbutton { position: relative; border: 0; background: transparent; font-size: 19px; color: var(--gold-2); cursor: pointer; padding: 4px; }
.iconbutton .count { position: absolute; top: -4px; right: -8px; background: var(--gold); color: #fff; font-size: 9px; border-radius: 9px; padding: 1px 5px; font-weight: 700; }
.menu-btn, .mobile-platform { display: none; }
.content { padding-top: 6px; }
.footer { display: flex; justify-content: space-between; gap: 12px; font-size: 10px; color: #8aa0b2; margin-top: 26px; }

/* ── Page heading ── */
.intro { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 26px 0 22px; }
.eyebrow { font-size: 9.5px; text-transform: uppercase; letter-spacing: 2px; color: var(--gold); font-weight: 700; }
.sub, p.sub { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin: 0 0 16px; }
.intro .sub { margin: 0; }
.back { display: inline-block; margin-top: 22px; font-size: 12px; text-decoration: none; color: var(--muted); }

/* ── Cards, buttons, forms ── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; box-shadow: 0 5px 16px #15385808; }
.card > h2 { margin-bottom: 12px; }
.card.flush { padding: 0; overflow: hidden; }
.panelhead { padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.panelhead p, .panelhead .small { margin: 4px 0 0; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border: 1px solid var(--navy); border-radius: 7px; background: var(--navy); color: #fff; font-size: 12.5px; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.1); }
.btn.secondary { background: #fff; color: var(--ink); border-color: #cbdce9; }
.btn.gold { background: var(--gold); border-color: var(--gold); }
.btn.danger { background: var(--bad); border-color: var(--bad); }
.btn:disabled { opacity: .5; cursor: default; filter: none; }
.link { background: none; border: 0; color: var(--navy); cursor: pointer; padding: 0; font-size: 12px; font-weight: 600; text-decoration: none; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.intro .actions { margin-top: 0; }
.form { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; color: var(--muted); }
label.check { flex-direction: row; align-items: center; gap: 7px; color: var(--ink); }
input, select, textarea { padding: 10px 11px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); min-width: 0; font-size: 13px; }
input:focus, select:focus, textarea:focus { outline: 2px solid #b9d3ea; border-color: var(--navy); }
input[type=checkbox] { padding: 0; width: 16px; height: 16px; accent-color: var(--navy); }

/* ── Tables ── */
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12.5px; }
th { color: #658097; font-weight: 500; font-size: 11px; padding: 12px 16px; background: #f0f7fc; text-align: left; }
td { padding: 13px 16px; border-top: 1px solid var(--line-2); vertical-align: middle; overflow-wrap: anywhere; }
td strong { display: block; font-weight: 600; }
td small, .small { color: var(--muted); font-size: 11px; }
tr.click { cursor: pointer; } tr.click:hover td { background: #f6fafd; }
.num { text-align: right; white-space: nowrap; }
.card table { margin: 0; }
.card:not(.flush) table th:first-child, .card:not(.flush) table td:first-child { padding-left: 4px; }

/* ── Status pills ── */
.chip, .pill { display: inline-block; padding: 4px 9px; border-radius: 5px; font-size: 10.5px; font-weight: 600; background: #e7f2f9; color: #345f7e; white-space: nowrap; }
.status-draft { background: #eef1f4; color: #55657a; } .status-submitted { background: var(--warn-soft); color: var(--warn); }
.status-approved { background: var(--ok-soft); color: var(--ok); } .status-rejected { background: var(--bad-soft); color: var(--bad); }
.status-posted { background: #e3edfb; color: #1f4f8f; } .status-paid { background: #efe7fb; color: #5b3a96; }

/* ── Notices, empty states ── */
.notice { padding: 11px 14px; border-radius: 8px; margin: 10px 0; font-size: 12.5px; }
.notice.error { background: var(--bad-soft); color: #7a1a12; } .notice.ok { background: var(--ok-soft); color: #1d5c41; } .notice.warn { background: var(--warn-soft); color: #7b5e22; }
.empty { color: var(--muted); padding: 40px 16px; text-align: center; font-size: 12.5px; }

/* ── Dashboard ── */
.tabs { display: flex; border-bottom: 1px solid var(--line); gap: 24px; margin-bottom: 22px; overflow-x: auto; }
.tab { white-space: nowrap; border: 0; background: none; padding: 0 0 13px; font-size: 12px; color: var(--muted); cursor: pointer; text-decoration: none; }
.tab.active { color: var(--navy); border-bottom: 2px solid var(--gold); font-weight: 700; }
.tab span { font-size: 9.5px; margin-left: 7px; background: #dfeaf3; padding: 2px 5px; border-radius: 4px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.metric { padding: 20px; margin: 0; }
.metriclabel { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 56px; font-size: 12px; color: var(--muted); }
.metricvalue { font-size: 25px; letter-spacing: -.5px; margin: 9px 0 8px; color: var(--ink); overflow-wrap: anywhere; }
.growth { color: var(--ok); font-size: 11px; } .growth.down { color: var(--bad); } .growth span { color: #98a1a0; margin-left: 5px; }
.metric-icon { display: grid; place-items: center; width: 54px; height: 54px; flex-shrink: 0; border-radius: 15px; transform: rotate(-5deg); border: 1px solid #ffffffc0; box-shadow: inset 0 1px 1px #fff, 0 4px 8px #14375612; }
.metric-icon svg { width: 46px; height: 46px; overflow: visible; filter: drop-shadow(1px 3px 1px #15385822); }
.metric-icon-0 { background: linear-gradient(145deg, #edfff5, #bee9d9); } .metric-icon-1 { background: linear-gradient(145deg, #fff3f0, #f7cfc6); }
.metric-icon-2 { background: linear-gradient(145deg, #f0f9ff, #c2ddfa); } .metric-icon-3 { background: linear-gradient(145deg, #fff9e9, #f8e0ac); }
.sectionhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 26px 0 14px; }
.divisions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.division { overflow: hidden; padding: 0; margin: 0; border: 1px solid #c6d8e6; box-shadow: 0 10px 25px #15385815, 0 2px 4px #15385808; transition: transform .2s, box-shadow .2s; }
.division:hover { transform: translateY(-4px); box-shadow: 0 15px 30px #15385822; }
.art { position: relative; height: 160px; display: flex; align-items: center; justify-content: center; padding: 28px 10px 10px; background: linear-gradient(135deg, #fff, #f4f9fe); }
.art .tag { position: absolute; top: 8px; right: 10px; font-size: 8px; letter-spacing: .5px; border-radius: 20px; padding: 5px 9px; background: #eaf3fa; color: #376180; }
.division-logo { width: 100%; height: auto; max-height: 120px; object-fit: contain; filter: drop-shadow(0 3px 2px #7f5a1a20); }
.art .initials { font: 34px Georgia, serif; color: var(--gold); }
.divisionbody { padding: 16px 18px 18px; border-top: 1px solid #e3edf5; }
.divisionbody p { font-size: 11.5px; color: var(--muted); margin: 0; min-height: 18px; }
.divisionnumbers { display: flex; justify-content: space-between; gap: 10px; margin: 16px 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 10.5px; color: #8c9593; }
.divisionnumbers strong { display: block; font-size: 16px; color: var(--navy); margin-top: 5px; font-weight: 500; }
.lower { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr); gap: 20px; margin-top: 24px; }
.lower .card { margin: 0; }
.activity { padding: 0 18px; }
.event { display: flex; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line-2); }
.event:last-child { border-bottom: 0; }
.eventicon { width: 30px; height: 30px; background: #eef4f9; border-radius: 7px; display: grid; place-items: center; color: var(--gold); flex-shrink: 0; font-size: 13px; }
.event strong { font-size: 12px; font-weight: 600; display: block; margin: 2px 0 4px; }
.event p { font-size: 11px; color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.event small { display: block; font-size: 10px; color: #a3adaa; margin-top: 6px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }

/* ── HariJeyam AI agent ── */
.agent-welcome { display: flex; align-items: center; gap: 22px; background: linear-gradient(115deg, #fff, #dfeefa); border: 1px solid #c7dcec; border-radius: 12px; padding: 20px 24px; margin-bottom: 24px; }
.agent-welcome > img { width: 86px; height: 86px; object-fit: contain; border-radius: 12px; background: #fff; flex-shrink: 0; }
.agent-copy { flex: 1; min-width: 0; }
.agent-copy h2 { font: 25px Georgia, serif; margin: 6px 0; }
.agent-copy p { font-size: 12px; color: var(--muted); margin: 0; }
.agent-options { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.agent-options button, .suggest button { border: 1px solid #c8dbe9; border-radius: 20px; background: #f4f9fd; padding: 7px 12px; font-size: 11px; color: #24476b; cursor: pointer; }
.agent-fab { position: fixed; right: 26px; bottom: 26px; z-index: 30; width: 64px; height: 64px; border-radius: 50%; border: 2px solid #e2d6b7; background: #fff; padding: 4px; cursor: pointer; box-shadow: 0 10px 30px #142c3240; transition: transform .2s; }
.agent-fab:hover { transform: scale(1.06); }
.agent-fab img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.agent-fab.nudge { animation: hj-nudge 1.2s ease-in-out 2; }
@keyframes hj-nudge { 0%,100% { transform: none; } 30% { transform: translateY(-6px) rotate(-6deg); } 60% { transform: translateY(0) rotate(4deg); } }
.agent-hint { position: fixed; right: 100px; bottom: 34px; z-index: 30; max-width: 300px; background: #fff; border: 1px solid #e2d6b7; border-radius: 12px 12px 2px 12px; padding: 12px 34px 12px 14px; font-size: 12.5px; line-height: 1.5; box-shadow: 0 10px 30px #142c3230; animation: hj-pop .25s ease-out; }
.agent-hint .close { position: absolute; top: 4px; right: 6px; border: 0; background: none; font-size: 18px; color: var(--muted); cursor: pointer; }
.agent-hint .link { display: inline-block; margin-top: 6px; color: var(--gold); }
@keyframes hj-pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.agent-chat { position: fixed; right: 26px; bottom: 102px; width: 370px; max-width: calc(100vw - 32px); max-height: calc(100vh - 140px); display: flex; flex-direction: column; background: #fff; border: 1px solid #e2d6b7; border-radius: 14px; box-shadow: 0 15px 60px #142c3233; z-index: 31; overflow: hidden; animation: hj-pop .2s ease-out; }
.chat-head { background: var(--navy); color: #fff; padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.chat-head img { width: 38px; height: 38px; border-radius: 50%; background: #fff; object-fit: contain; }
.chat-head strong { font-size: 13px; display: block; } .chat-head small { display: block; color: #cfbd90; font-size: 10.5px; margin-top: 3px; }
.chat-head .close { margin-left: auto; border: 0; background: none; color: #fff; font-size: 24px; cursor: pointer; }
.chat-messages { padding: 14px; overflow-y: auto; flex: 1; min-height: 140px; }
.chat, .chat-messages { display: flex; flex-direction: column; gap: 10px; }
.bubble, .chat-bubble { max-width: 88%; padding: 10px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.ai, .chat-bubble { align-self: flex-start; background: #eaf3fa; }
.bubble.me, .chat-bubble.user { align-self: flex-end; background: var(--gold-soft); }
.suggest { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 10px; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; border: 0; outline: none; }
.chat-note { font-size: 10px; color: var(--muted); padding: 0 14px 8px; }

/* ── Reports ── */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; }
.chips .filter { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 5px 6px 5px 11px; font-size: 11.5px; }
.chips .filter button { border: 0; background: #eef4f9; border-radius: 50%; width: 18px; height: 18px; cursor: pointer; line-height: 1; }
.periods { display: flex; gap: 6px; flex-wrap: wrap; }
.periods button { border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 6px 11px; font-size: 11px; cursor: pointer; color: var(--ink); }
.periods button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.barcell { width: 32%; min-width: 120px; }
.bars { display: flex; flex-direction: column; gap: 3px; }
.bar-in, .bar-out { height: 7px; border-radius: 4px; min-width: 2px; }
.bar-in { background: #6fb38f; } .bar-out { background: var(--gold); }
.legend { display: flex; gap: 14px; font-size: 11px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.chart { display: flex; align-items: flex-end; height: 190px; gap: 14px; padding: 18px 18px 30px; }
.chart .col { flex: 1; display: flex; gap: 3px; align-items: flex-end; height: 100%; position: relative; }
.chart .col span { flex: 1; border-radius: 4px 4px 0 0; min-height: 2px; }
.chart .col label { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-size: 10px; }
.tree-2 { padding-left: 18px !important; } .tree-3 { padding-left: 34px !important; }
.path { color: var(--muted); font-size: 11px; }

/* ── Vouchers (+ Add Media) ── */
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.thumb { border: 1px solid var(--line); border-radius: 10px; padding: 6px; background: #fff; position: relative; }
.thumb img { width: 100%; height: 100px; object-fit: cover; border-radius: 6px; display: block; }
.thumb .doc { height: 100px; display: grid; place-items: center; background: #f0f7fc; border-radius: 6px; font-size: 30px; }
.thumb .remove { position: absolute; top: 10px; right: 10px; border: 0; border-radius: 50%; width: 24px; height: 24px; background: #000a; color: #fff; cursor: pointer; }
.media-menu { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; padding: 10px; background: #f6fafd; border: 1px dashed #b9d3ea; border-radius: 10px; }
.media-menu .btn { position: relative; overflow: hidden; }
.media-menu input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.logo-sm { width: 70px; height: 26px; object-fit: contain; vertical-align: middle; background: #fff; border-radius: 4px; border: 1px solid var(--line); margin-right: 6px; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.perm-grid label { flex-direction: row; align-items: center; gap: 6px; color: var(--ink); }
.signin { max-width: 440px; margin: 7vh auto; text-align: center; padding: 30px; }
.signin-platform { background: var(--navy); border-radius: 10px; padding: 18px; margin-bottom: 18px; position: relative; isolation: isolate; }
.signin-platform::before { content: ""; position: absolute; inset: 0; z-index: -1; filter: blur(8px); border-radius: 10px;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.98) 0%, rgba(255,255,255,.9) 28%, rgba(218,233,241,.65) 45%, rgba(17,47,87,0) 75%); }
.signin-platform img, .signin-logo { display: block; width: 100%; height: auto; object-fit: contain; }
.signin-logo { margin: 0 auto 14px; }

/* ── Mobile bottom bar ── */
.mobilebar { display: none; }

@media (min-width: 1500px) { .main { padding-left: 50px; padding-right: 50px; } .topbar { margin: 0 -50px; padding: 0 50px; } }
@media (max-width: 1100px) {
  .sidebar { width: 210px; padding: 14px 13px; } .main { margin-left: 210px; padding: 0 22px 30px; } .topbar { margin: 0 -22px; padding: 0 22px; }
  .lower { grid-template-columns: 1fr; } .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .divisions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .search { width: 160px; }
}
@media (max-width: 760px) {
  body { font-size: 14px; }
  .sidebar { transform: translateX(-105%); transition: transform .2s; width: 270px; box-shadow: 0 0 40px #0006; }
  .menu-open .sidebar { transform: none; }
  .scrim { position: fixed; inset: 0; background: #10272a66; z-index: 15; }
  .main { margin-left: 0; padding: 0 16px 96px; }
  /* On phones the page runs under the status bar and Dynamic Island (viewport-fit=cover): keep the bar below them,
     or iOS takes the taps (the menu button didn't respond). */
  .topbar { height: calc(64px + env(safe-area-inset-top)); margin: 0 -16px; padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
  .sidebar { padding-top: calc(14px + env(safe-area-inset-top)); padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .menu-btn { min-width: 44px; min-height: 44px; }
  .crumb, .search { display: none; }
  .menu-btn { display: block; background: none; border: 0; color: var(--gold-2); font-size: 22px; cursor: pointer; }
  .mobile-platform { display: block; width: 130px; height: auto; object-fit: contain; padding: 4px; border-radius: 6px; background: radial-gradient(ellipse at center, #fff 8%, #e1edf3 40%, rgba(19,42,50,0) 78%); }
  .intro { flex-direction: column; align-items: stretch; margin: 22px 0 18px; } h1 { font-size: 26px; }
  .metrics { grid-template-columns: 1fr 1fr; gap: 10px; } .metric { padding: 14px; } .metricvalue { font-size: 20px; }
  .metric-icon { width: 42px; height: 42px; border-radius: 12px; } .metric-icon svg { width: 36px; height: 36px; } .metriclabel { min-height: 42px; font-size: 11px; }
  .divisions { grid-template-columns: 1fr; } .art { height: 140px; }
  .agent-welcome { flex-wrap: wrap; padding: 16px; gap: 12px; } .agent-welcome > img { width: 60px; height: 60px; } .agent-welcome > .btn { width: 100%; justify-content: center; }
  .agent-fab { bottom: 84px; right: 16px; width: 56px; height: 56px; } .agent-hint { right: 16px; left: 16px; bottom: 150px; max-width: none; } .agent-chat { right: 8px; left: 8px; width: auto; bottom: 150px; max-height: calc(100vh - 170px); }
  .footer { flex-direction: column; }
  .mobilebar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 25; display: flex; justify-content: space-around; background: var(--navy); padding: 9px 0 calc(12px + env(safe-area-inset-bottom)); }
  .mobilebar a, .mobilebar button { background: none; border: 0; color: #b5cbe0; font-size: 10px; display: flex; flex-direction: column; align-items: center; gap: 5px; text-decoration: none; cursor: pointer; }
  .mobilebar a.active { color: #f3d68e; } .mobilebar svg { width: 21px; height: 21px; }
  table.responsive thead { display: none; }
  table.responsive tr { display: block; border-top: 1px solid var(--line-2); padding: 8px 12px; }
  table.responsive td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 0 !important; text-align: right; }
  table.responsive td::before { content: attr(data-label); color: var(--muted); font-size: 11px; text-align: left; }
  .barcell { width: auto; }
}
@media (prefers-reduced-motion: reduce) { .division, .agent-fab { transition: none; } .division:hover { transform: none; } .agent-fab.nudge, .agent-hint, .agent-chat { animation: none; } }

/* ── Media gallery tags ── */
.thumb.cover { border-color: var(--gold); box-shadow: 0 0 0 2px #b08b4633; }
.thumb .tags { display: flex; gap: 4px; flex-wrap: wrap; margin: 4px 0; }
.thumb .tags .pill { font-size: 9px; padding: 2px 6px; }

/* ── Payment badges and choices (Apple Pay, Google Pay, UPI, PhonePe…) ── */
.paybadges { display: inline-flex; gap: 6px; flex-wrap: wrap; vertical-align: middle; }
.paybadge, .paychoice { display: inline-flex; align-items: center; justify-content: center; gap: 4px; border-radius: 7px; font-size: 11px; font-weight: 700;
  padding: 5px 9px; border: 1px solid var(--line); background: #fff; color: var(--ink); white-space: nowrap; }
.paychoices { display: flex; gap: 8px; flex-wrap: wrap; }
.paychoice { font-size: 14px; padding: 11px 16px; min-width: 110px; cursor: pointer; }
.paychoice.on { outline: 3px solid var(--gold); outline-offset: 1px; }
.pay-applepay { background: #000; color: #fff; border-color: #000; }
.pay-googlepay { background: #fff; color: #3c4043; border-color: #dadce0; }
.pay-upi { background: #fff; color: #097939; border-color: #f47b20; }
.pay-phonepe { background: #5f259f; color: #fff; border-color: #5f259f; }
.pay-card { background: var(--navy); color: #fff; border-color: var(--navy); }
.pay-netbanking { background: #eef4f9; color: var(--navy); }
.pay-wise { background: #9fe870; color: #163300; border-color: #9fe870; }
.pay-banktransfer { background: #eef4f9; color: var(--navy); }

/* ── Public store ── */
.store-shell { max-width: 1240px; margin: 0 auto; padding: 0 18px 120px; }
.store-head { display: flex; align-items: center; gap: 18px; padding: 24px 0 8px; flex-wrap: wrap; }
.store-logo { height: 80px; width: auto; max-width: 280px; object-fit: contain; background: #fff; border-radius: 10px; padding: 6px; border: 1px solid var(--line); }
.store-business { margin-bottom: 26px; }
.ads-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-bottom: 16px; }
.store-ad { padding: 0; overflow: hidden; margin: 0; background: linear-gradient(115deg, #fff, #f6eedb); border-color: #e2d6b7; }
.store-ad img, .store-ad video, .store-item img { display: block; width: 100%; height: 190px; object-fit: cover; background: #f0f5f9; }
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.store-item { padding: 0; overflow: hidden; margin: 0; display: flex; flex-direction: column; }
.store-item .divisionbody { flex: 1; display: flex; flex-direction: column; }
.store-item .noimg { height: 190px; display: grid; place-items: center; background: linear-gradient(135deg, #fff, #eef4f9); color: var(--muted); font: 22px Georgia, serif; }
.store-item .price, .price { font-size: 18px; font-weight: 700; color: var(--navy); margin: 8px 0; }
.cart { position: sticky; bottom: 12px; margin-top: 20px; border: 2px solid var(--gold); box-shadow: 0 15px 40px #15385833; }
.cart-line { display: grid; grid-template-columns: 1fr auto 120px; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); align-items: center; }
.transfer { display: grid; gap: 6px; background: #f6fafd; border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.transfer div { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.transfer span { color: var(--muted); font-size: 12px; } .transfer b { font-family: ui-monospace, Menlo, monospace; font-size: 13px; overflow-wrap: anywhere; }
.store-foot { display: flex; align-items: center; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 40px; padding: 18px; background: var(--navy); border-radius: 12px; color: #c9d8e6; font-size: 11px; }
.store-foot img { width: 150px; height: auto; object-fit: contain; }
@media (max-width: 760px) {
  .store-shell { padding: 0 12px 120px; }
  .store-ad img, .store-ad video, .store-item img, .store-item .noimg { height: 160px; }
  .cart-line { grid-template-columns: 1fr auto 90px; }
  .paychoice { flex: 1 1 40%; }
}

/* ── Loading screen: the HariJeyam Business IT Platform logo turning like a coin (scaled only, never cropped) ── */
.hj-loading { position: fixed; inset: 0; display: grid; place-items: center; align-content: center; gap: 18px; background: #fff; z-index: 100; perspective: 900px; }
.hj-loading img { width: min(78vw, 420px); height: auto; object-fit: contain; animation: hj-turn 2.6s ease-in-out infinite; transform-style: preserve-3d; backface-visibility: visible; }
.hj-loading span { font: 12px Inter, Arial, sans-serif; letter-spacing: 2px; color: #b08b46; text-transform: uppercase; }
@keyframes hj-turn { 0% { transform: rotateY(0deg); } 50% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }
@media (prefers-reduced-motion: reduce) { .hj-loading img { animation: none; } }

.passcode { display: flex; gap: 8px; } .passcode input { flex: 1; } .passcode .btn { padding: 8px 12px; }

/* ── Signature pad and vouchers ── */
.sigpad { position: relative; border: 1px dashed #9db8cf; border-radius: 10px; background: #fff; }
.sigpad canvas { display: block; width: 100%; height: 170px; touch-action: none; cursor: crosshair; }
.sigline { position: absolute; left: 16px; right: 16px; bottom: 30px; border-top: 1px solid #d4e3ef; font-size: 10px; color: var(--muted); padding-top: 4px; pointer-events: none; }
.voucher-lines { display: grid; gap: 8px; }
.voucher-line { display: grid; grid-template-columns: 110px minmax(0, 1fr) 80px 90px 110px 110px 28px; gap: 8px; align-items: end; }
.voucher-line .amount { text-align: right; font-weight: 600; padding-bottom: 10px; }
.voucher-total { display: flex; justify-content: flex-end; gap: 16px; font-size: 16px; font-weight: 700; color: var(--navy); margin-top: 10px; }
.signed-box { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; background: var(--ok-soft); border: 1px solid #bfe0cb; border-radius: 10px; padding: 12px; }
.signed-box img { width: 220px; height: auto; background: #fff; border-radius: 6px; border: 1px solid var(--line); }
.choice { display: flex; gap: 8px; flex-wrap: wrap; }
.choice button { border: 1px solid var(--line); background: #fff; border-radius: 18px; padding: 8px 14px; cursor: pointer; font-size: 12px; }
.choice button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
@media (max-width: 760px) {
  .voucher-line { grid-template-columns: 1fr 1fr; }
  .voucher-line .wide { grid-column: 1 / -1; }
  .voucher-line .amount { text-align: left; padding: 0; }
}

/* ── The platform's logo (white background): on white cards over navy; shown exactly as it is. ── */
.platform-card { margin-bottom: 10px; padding: 6px; }
.mobile-platform { background: #fff !important; border-radius: 8px; padding: 3px 6px !important; }
.store-foot img { background: #fff; border-radius: 8px; padding: 4px 8px; width: 190px; }

/* ── Public site and landing page ── */
.public-shell { min-height: 100vh; background: linear-gradient(180deg, #f7fbfe 0%, var(--bg) 40%); }
.public-top { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: calc(10px + env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 10px max(20px, env(safe-area-inset-left));
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.public-logo img { display: block; height: 52px; width: auto; max-width: 62vw; object-fit: contain; }
.public-nav { display: flex; gap: 14px; align-items: center; }
.public-nav a:not(.btn) { color: var(--navy); text-decoration: none; font-weight: 600; font-size: 13px; }
.public-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 26px 24px calc(26px + env(safe-area-inset-bottom)); background: var(--navy); color: #c9d8e6; font-size: 12px; }
.public-foot a { color: var(--gold-2); }
.public-shell .signin { margin: 6vh auto; }

.landing { max-width: 1220px; margin: 0 auto; padding: 0 20px 40px; }
.lp-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 48px 0 30px; }
.lp-logo-card { display: inline-block; background: #fff; border-radius: 14px; padding: 8px 14px; box-shadow: 0 10px 30px #15385814; margin-bottom: 18px; }
.lp-logo-card img { display: block; width: min(460px, 80vw); height: auto; object-fit: contain; }
.lp-title { font: 44px/1.12 Georgia, serif; margin: 10px 0 14px; color: var(--navy); }
.lp-title span { background: linear-gradient(100deg, #9c7a12, #e6c476, #b08b46); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-hero p { font-size: 16px; line-height: 1.65; color: #44607a; max-width: 560px; margin: 0; }
.lp-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.lp-big { font-size: 15px; padding: 14px 22px; border-radius: 10px; }
.lp-trust { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 20px; font-size: 12px; color: var(--muted); }

.lp-hero-art { position: relative; min-height: 380px; }
.lp-laptop { position: absolute; left: 0; right: 40px; top: 20px; }
.lp-screen { display: flex; gap: 10px; height: 270px; background: #fff; border: 10px solid #1b2b40; border-radius: 14px 14px 4px 4px; padding: 12px; box-shadow: 0 30px 60px #15385833; }
.lp-side { width: 46px; background: var(--navy); border-radius: 8px; padding: 10px 8px; display: flex; flex-direction: column; gap: 8px; }
.lp-side i { display: block; height: 8px; border-radius: 4px; background: #ffffff33; } .lp-side i:first-child { background: var(--gold-2); height: 18px; }
.lp-main { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.lp-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lp-kpis b { background: #f2f8fd; border: 1px solid var(--line); border-radius: 8px; padding: 8px; font-size: 14px; color: var(--navy); }
.lp-kpis small { display: block; font-size: 9px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.lp-bars { flex: 1; display: flex; align-items: flex-end; gap: 8px; padding: 6px 4px 0; border-bottom: 1px solid var(--line); }
.lp-bars span { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #e6c476, #b08b46); animation: lp-grow 1.4s ease-out both; }
.lp-bars span:nth-child(odd) { background: linear-gradient(180deg, #8fc4a6, #4f9b74); }
@keyframes lp-grow { from { transform: scaleY(.1); transform-origin: bottom; } to { transform: none; } }
.lp-rows { display: grid; gap: 6px; } .lp-rows i { display: block; height: 9px; border-radius: 5px; background: #eef3f8; } .lp-rows i:nth-child(2) { width: 80%; } .lp-rows i:nth-child(3) { width: 60%; }
.lp-base { height: 14px; margin: 0 -26px; background: linear-gradient(180deg, #c9d3de, #9fb0c2); border-radius: 0 0 16px 16px; }
.lp-phone { position: absolute; right: 0; bottom: 0; width: 170px; height: 300px; background: #fff; border: 8px solid #111c2b; border-radius: 30px; padding: 26px 12px 12px; box-shadow: 0 30px 60px #15385840; }
.lp-notch { position: absolute; top: 6px; left: 50%; width: 56px; height: 14px; margin-left: -28px; background: #111c2b; border-radius: 10px; }
.lp-phone-card { background: linear-gradient(135deg, #fff, #f6eedb); border: 1px solid #e2d6b7; border-radius: 12px; padding: 10px; display: grid; gap: 4px; }
.lp-phone-card b { font-size: 18px; color: var(--navy); }
.lp-sig { font: italic 20px "Brush Script MT", "Segoe Script", cursive; color: var(--navy); border-bottom: 1px solid #d4e3ef; padding-bottom: 2px; }
.lp-agent { position: absolute; left: -10px; bottom: 6px; width: 86px; height: 86px; border-radius: 50%; background: #fff; border: 3px solid #e2d6b7; box-shadow: 0 10px 30px #142c3240; animation: hj-nudge 3s ease-in-out infinite; }

.lp-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 10px 0 40px; }
.lp-strip div { background: #fff; padding: 18px; } .lp-strip b { display: block; color: var(--navy); font-size: 16px; } .lp-strip span { font-size: 12px; color: var(--muted); }

.lp-section { margin: 50px 0; }
.lp-h2 { font: 32px/1.2 Georgia, serif; color: var(--navy); margin: 8px 0 22px; }
.lp-lead { font-size: 15px; color: #44607a; max-width: 680px; margin: -10px 0 22px; }
.lp-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.lp-feature { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: 0 10px 25px #15385810; transition: transform .2s; }
.lp-feature:hover { transform: translateY(-4px); }
.lp-feature h3 { font: 600 16px Inter, Arial, sans-serif; color: var(--navy); margin: 10px 0 6px; } .lp-feature p { font-size: 13px; color: #55697d; margin: 0; line-height: 1.55; }
.lp-ficon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: linear-gradient(145deg, #fff9e9, #f8e0ac); }
.lp-feature-agent { background: linear-gradient(135deg, #fff, #dfeefa); } .lp-feature-agent img { width: 54px; height: 54px; border-radius: 50%; background: #fff; }

.lp-group { background: linear-gradient(135deg, var(--navy), #1d4a80); color: #fff; border-radius: 22px; padding: 36px; }
.lp-group .lp-h2 { color: #fff; } .lp-group .lp-lead { color: #c9d8e6; } .lp-group .eyebrow { color: var(--gold-2); }
.lp-group-logo { background: #fff; border-radius: 14px; padding: 10px; display: inline-block; margin-bottom: 20px; }
.lp-group-logo img { display: block; width: min(420px, 74vw); height: auto; object-fit: contain; }
.lp-divisions { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.lp-division { display: block; background: #fff; color: var(--ink); text-decoration: none; border-radius: 14px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.lp-division:hover { transform: translateY(-5px); box-shadow: 0 18px 40px #0005; }
.lp-division-art { height: 150px; display: grid; place-items: center; padding: 12px; background: linear-gradient(135deg, #fff, #f4f9fe); border-bottom: 1px solid var(--line); }
.lp-division-art img { width: 100%; height: 100%; object-fit: contain; }
.lp-division h3 { font: 17px Georgia, serif; margin: 14px 16px 4px; color: var(--navy); } .lp-division p { margin: 0 16px; font-size: 12px; color: var(--muted); } .lp-division .link { display: inline-block; margin: 10px 16px 16px; color: var(--gold); }

.lp-steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.lp-steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 20px 20px 64px; position: relative; }
.lp-steps li::before { content: counter(s); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #fff; font-weight: 700; }
.lp-steps b { display: block; color: var(--navy); margin-bottom: 4px; } .lp-steps span { font-size: 13px; color: #55697d; }
.lp-secure { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.lp-secure ul { padding-left: 18px; line-height: 2; color: #44607a; }
.lp-cta-card { background: linear-gradient(135deg, #fff, #f6eedb); border: 1px solid #e2d6b7; border-radius: 18px; padding: 28px; text-align: center; box-shadow: 0 18px 40px #15385818; }
.lp-cta-card h3 { font: 24px Georgia, serif; margin: 0 0 8px; color: var(--navy); }

@media (max-width: 900px) {
  .lp-hero { grid-template-columns: 1fr; padding-top: 26px; } .lp-title { font-size: 32px; }
  .lp-hero-art { min-height: 330px; } .lp-laptop { right: 70px; } .lp-screen { height: 220px; }
  .lp-strip { grid-template-columns: 1fr 1fr; } .lp-secure { grid-template-columns: 1fr; }
  .lp-group { padding: 24px; border-radius: 16px; }
}
@media (max-width: 520px) {
  .public-logo img { height: 40px; } .public-nav a:not(.btn) { display: none; }
  .lp-hero-art { min-height: 300px; } .lp-laptop { right: 40px; } .lp-phone { width: 140px; height: 250px; } .lp-h2 { font-size: 26px; }
  .lp-strip { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .lp-bars span, .lp-agent { animation: none; } .lp-feature:hover, .lp-division:hover { transform: none; } }

/* Page headings get focus after navigation (for screen readers) — no visible outline for that. */
h1:focus, h1:focus-visible { outline: none; }
