:root {
    --bg: #f6f7fb;
    --panel: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --primary: #4f46e5;
    --purple: #8b5cf6;
    --pink: #ec4899;
    --blue: #2563eb;
    --border: #e5e7eb;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { text-decoration: none; }
.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: linear-gradient(135deg, #4f46e5, #2563eb 48%, #ec4899);
}
.auth-card {
    width: min(440px, 100%);
    background: rgba(255,255,255,.96);
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 24px 60px rgba(31,41,55,.24);
}
.connect-auth-page {
    min-height: 100vh;
    background: #fff;
    display: grid;
    place-items: center;
    padding: 36px 20px 24px;
}
.connect-wrapper {
    width: min(1426px, 100%);
}
.connect-card {
    min-height: 664px;
    display: grid;
    grid-template-columns: 46% 54%;
    background: #f7f7f7;
    border-radius: 26px;
    box-shadow: 0 18px 55px rgba(0,0,0,.08);
    overflow: hidden;
}
.connect-info {
    background: #ffecd3;
    padding: 58px 70px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.connect-info h1 {
    font-size: 46px;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 28px;
}
.connect-info h1 span {
    color: #ff5a2a;
}
.connect-info h2 {
    font-size: 28px;
    font-weight: 800;
    color: #5a5a5a;
    margin-bottom: 14px;
}
.connect-info p {
    max-width: 560px;
    color: #3f4b5a;
    line-height: 1.55;
    margin: 0;
}
.connect-login {
    position: relative;
    padding: 54px 96px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.connect-vertical {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 12px;
    color: #edf2f7;
}
.connect-logo-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}
.mini-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #515151;
    font-size: 14px;
    line-height: 1.05;
}
.flag-dot {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-block;
    background: conic-gradient(#f97316 0 34%, #fff 34% 66%, #16a34a 66%);
    border: 1px solid #e5e7eb;
}
.seva-symbol {
    width: 44px;
    height: 26px;
    display: inline-block;
    border-radius: 5px 16px 5px 16px;
    background: linear-gradient(135deg, #16a34a 0 45%, #fff 45% 55%, #dc2626 55%);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.8);
}
.connect-login h2 {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 26px;
}
.connect-input {
    min-height: 60px;
    display: flex;
    align-items: center;
    background: #e8f0fd;
    border: 1px solid #cfd8e3;
    border-radius: 7px;
    overflow: hidden;
}
.connect-input i {
    width: 50px;
    text-align: center;
    color: #07589f;
    font-size: 18px;
}
.connect-input input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    height: 58px;
    color: #111827;
}
.captcha-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.captcha-box, .captcha-input {
    min-height: 52px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    background: #fff;
}
.captcha-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}
.captcha-box span {
    color: #168a31;
    font-size: 25px;
    letter-spacing: 9px;
    transform: rotate(-5deg);
}
.captcha-box i {
    color: #0d6efd;
    font-size: 20px;
}
.captcha-input {
    padding: 0 18px;
}
.connect-btn {
    width: 138px;
    height: 58px;
    border: 0;
    border-radius: 8px;
    background: #075095;
    color: #fff;
    font-weight: 800;
    font-size: 16px;
}
.connect-link {
    color: #075095;
    text-decoration: underline;
    font-weight: 600;
}
.demo-box {
    margin-top: 18px;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.5;
}
.connect-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    padding: 26px 0 0;
    color: #111827;
}
.connect-footer a {
    color: #111827;
}
.connect-footer span {
    padding: 0 10px;
}
.socials {
    display: flex;
    gap: 16px;
}
.connect-footer > div:last-child {
    text-align: right;
}
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
    width: 270px;
    color: #fff;
    padding: 20px;
    background: linear-gradient(180deg, #312e81, #4f46e5 48%, #be185d);
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 28px;
}
.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,.82);
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 8px;
}
.sidebar nav a.active, .sidebar nav a:hover {
    color: #fff;
    background: rgba(255,255,255,.16);
}
.main-content {
    margin-left: 270px;
    width: calc(100% - 270px);
}
.topbar {
    min-height: 82px;
    padding: 18px 28px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 10;
}
.topbar h1 { font-size: 24px; margin: 0; font-weight: 800; }
.topbar p { margin: 2px 0 0; color: var(--muted); }
.content-area { padding: 28px; }
.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f3f4f6;
    padding: 9px 12px;
    border-radius: 8px;
    white-space: nowrap;
}
.user-chip a { color: var(--primary); font-weight: 700; }
.icon-btn {
    border: 0;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #eef2ff;
    color: var(--primary);
}
.metric-card, .panel-card, .service-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(17,24,39,.06);
}
.metric-card { padding: 20px; }
.metric-card i {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--pink));
    margin-bottom: 14px;
}
.metric-card h3 { font-size: 28px; margin: 0; font-weight: 800; }
.metric-card p { margin: 4px 0 0; color: var(--muted); }
.panel-card { padding: 20px; }
.service-card { padding: 20px; height: 100%; }
.service-card .price { color: var(--primary); font-weight: 800; font-size: 22px; }
.btn-gradient {
    border: 0;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--blue), var(--pink));
}
.table { vertical-align: middle; }
.table thead th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}
.status-warning { background: #fef3c7; color: #92400e; }
.status-primary { background: #dbeafe; color: #1d4ed8; }
.status-success { background: #dcfce7; color: #166534; }
.status-danger { background: #fee2e2; color: #991b1b; }
.status-purple { background: #ede9fe; color: #6d28d9; }
.status-hold { background: #ffedd5; color: #c2410c; }
.form-control, .form-select { border-radius: 8px; }
.field-row { border: 1px dashed var(--border); border-radius: 8px; padding: 14px; margin-bottom: 12px; }

@media (max-width: 991px) {
    .connect-auth-page { padding: 16px; }
    .connect-card { grid-template-columns: 1fr; }
    .connect-info { padding: 36px 22px; }
    .connect-info h1 { font-size: 34px; }
    .connect-login { padding: 34px 22px; }
    .connect-vertical { display: none; }
    .connect-logo-row { align-items: flex-start; }
    .captcha-row { grid-template-columns: 1fr; }
    .connect-footer { grid-template-columns: 1fr; text-align: center; }
    .connect-footer > div:last-child { text-align: center; }
    .socials { justify-content: center; }
    .sidebar { transform: translateX(-100%); transition: .25s ease; }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; width: 100%; }
    .topbar { padding: 14px 16px; align-items: flex-start; }
    .topbar h1 { font-size: 20px; }
    .content-area { padding: 16px; }
    .user-chip span { display: none; }
}

/* Praman Setu login refinements */
.praman-mark {
    width: 190px;
    height: 190px;
    display: grid;
    place-items: center;
    margin-bottom: 28px;
}
.praman-circle {
    width: 188px;
    height: 188px;
    border: 4px solid #07589f;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff, #eff6ff);
    display: grid;
    place-items: center;
    align-content: center;
    color: #07589f;
    box-shadow: inset 0 0 0 10px #fff;
}
.praman-circle i { font-size: 34px; }
.praman-circle strong { font-size: 46px; letter-spacing: -2px; }
.praman-circle small {
    display: block;
    max-width: 132px;
    font-size: 11px;
    color: #334155;
    font-weight: 800;
}
.connect-vertical { display: none !important; }
.brand-mini b { color: #075095; letter-spacing: .02em; }
.footer-note { color: #4b5563; }

/* Dashboard layout inspired by compact service portals */
.app-shell {
    display: flex;
    min-height: 100vh;
    background: #eeeeee;
}
.sidebar {
    width: 60px;
    padding: 0;
    background: #10a9df;
    position: fixed;
    inset: 66px auto 0 0;
    z-index: 20;
}
.brand {
    position: fixed;
    top: 0;
    left: 0;
    width: 60px;
    height: 66px;
    margin: 0;
    display: grid;
    place-items: center;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    z-index: 30;
}
.brand span:not(.brand-symbol) { display: none; }
.brand-symbol {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 7px 18px 7px 18px;
    background: linear-gradient(135deg, #14b8a6, #ef4444);
    color: #fff;
    font-weight: 900;
}
.sidebar nav a {
    height: 50px;
    justify-content: center;
    gap: 0;
    padding: 0;
    border-radius: 0;
    margin: 0;
    color: rgba(255,255,255,.96);
    font-size: 18px;
}
.sidebar nav a span { display: none; }
.sidebar nav a.active, .sidebar nav a:hover {
    background: rgba(0,0,0,.13);
}
.sidebar-section {
    height: 32px;
    display: none;
    align-items: center;
    padding: 0 18px;
    margin-top: 10px;
    color: rgba(255,255,255,.72);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}
.main-content {
    margin-left: 60px;
    width: calc(100% - 60px);
}
.app-shell.sidebar-expanded .sidebar {
    width: 240px;
}
.app-shell.sidebar-expanded .brand {
    width: 240px;
    justify-content: flex-start;
    padding-left: 14px;
    gap: 10px;
}
.app-shell.sidebar-expanded .brand span:not(.brand-symbol) {
    display: inline;
}
.app-shell.sidebar-expanded .sidebar nav a {
    justify-content: flex-start;
    gap: 12px;
    padding: 0 18px;
}
.app-shell.sidebar-expanded .sidebar nav a span {
    display: inline;
    font-size: 14px;
    font-weight: 600;
}
.app-shell.sidebar-expanded .sidebar-section {
    display: flex;
}
.app-shell.sidebar-expanded .main-content {
    margin-left: 240px;
    width: calc(100% - 240px);
}
.sidebar, .brand, .main-content {
    transition: transform .22s ease, margin-left .22s ease, width .22s ease;
}
.topbar {
    min-height: 66px;
    padding: 0 18px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.topbar-left, .topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.topbar-title {
    margin-right: auto;
    padding-left: 8px;
}
.topbar h1 {
    font-size: 21px;
    color: #111827;
}
.topbar p {
    margin: 0;
    color: #6b7280;
    font-size: 12px;
}
.eseva-text {
    color: #049018;
    font-size: 20px;
    font-weight: 900;
}
.content-area { padding: 16px; }
.icon-btn {
    width: 38px;
    height: 38px;
    background: transparent;
    color: #6b7280;
    font-size: 20px;
}
.icon-btn:hover { color: #075095; background: #f3f4f6; }
.metric-card, .panel-card, .service-card {
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    border: 1px solid #e3e3e3;
}
.portal-notice {
    background: #10a9df;
    color: #fff;
    padding: 20px 22px;
    min-height: 150px;
    line-height: 1.7;
}
.portal-notice strong { color: #ff0000; }
.shortcut-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px 32px;
    text-align: center;
}
.shortcut-item i {
    color: #0ea5e9;
    font-size: 24px;
    display: block;
    margin-bottom: 6px;
}
.shortcut-item span {
    color: #8b8da3;
    font-size: 13px;
}
.news-list {
    background: #fff;
    border: 1px solid #e3e3e3;
    height: calc(100vh - 98px);
    overflow: auto;
}
.news-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}
.news-item i {
    color: #0ea5e9;
    font-size: 25px;
}
.news-item b {
    display: block;
    font-size: 14px;
    font-weight: 500;
}
.news-item small { color: #999; }

@media (max-width: 991px) {
    .sidebar { inset: 66px auto 0 0; }
    .main-content { margin-left: 0; width: 100%; }
    .topbar { align-items: center; padding: 10px 12px; }
    .topbar-actions .user-chip span, .topbar-title p { display: none; }
    .shortcut-grid { grid-template-columns: repeat(2, 1fr); }
    .news-list { height: auto; }
}

/* Public service portal */
.public-page {
    background: #fffaf2;
    min-height: 100vh;
}
.public-ribbon {
    min-height: 36px;
    background: #ff7158;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 70px;
    color: #fff;
}
.public-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}
.public-tools span {
    background: #fff;
    color: #111827;
    padding: 2px 7px;
    border-radius: 3px;
    font-weight: 800;
}
.public-top {
    min-height: 78px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 70px;
    background: #fff;
}
.public-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
}
.public-brand b {
    font-size: 26px;
    color: #073b75;
}
.public-brand small {
    display: block;
    color: #64748b;
    font-size: 12px;
}
.public-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}
.public-nav a {
    color: #0f172a;
    font-weight: 700;
}
.public-bluebar {
    background: #073b75;
    color: #fff;
    min-height: 58px;
    display: flex;
    align-items: center;
    font-weight: 800;
}
.services-wrap {
    width: min(1296px, calc(100% - 40px));
    margin: 42px auto 70px;
}
.services-wrap h1 {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 8px;
}
.services-wrap h1 span {
    color: #ff7158;
}
.service-board {
    border: 1px solid #ff7158;
    background: #ffe7c7;
    border-radius: 6px;
    padding: 24px;
    position: relative;
}
.service-tabs {
    display: flex;
    justify-content: flex-end;
    gap: 0;
    margin-top: -76px;
    margin-bottom: 24px;
}
.service-tabs a {
    border: 1px solid #ff7158;
    border-bottom: 0;
    background: #ffefd8;
    color: #0f172a;
    font-weight: 800;
    padding: 14px 18px;
    border-radius: 6px 6px 0 0;
}
.service-tabs a.active {
    background: #fff7ea;
}
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}
.category-pills a {
    border: 1px solid #ff7158;
    color: #0f172a;
    background: transparent;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 700;
}
.category-pills a.active {
    background: #ff7158;
    color: #fff;
}
.public-service-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px 24px;
}
.public-service-card {
    min-height: 132px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    box-shadow: 0 3px 8px rgba(0,0,0,.22);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #0f172a;
    padding: 14px;
}
.public-service-card:hover {
    transform: translateY(-2px);
    border-color: #ff7158;
}
.service-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 1px solid #8da2c8;
    color: #0ea5e9;
    font-size: 28px;
    margin-bottom: 10px;
}
.service-icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}
.public-service-card h3 {
    font-size: 17px;
    font-weight: 800;
    margin: 0;
}
.public-service-card small {
    color: #64748b;
}
.home-ribbon {
    justify-content: space-between;
    background: #073b75;
}
.home-top {
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: 0 1px 8px rgba(15,23,42,.08);
}
.home-hero {
    padding: 52px 20px 28px;
    background: linear-gradient(135deg, #073b75 0%, #0ea5e9 54%, #16a34a 100%);
    color: #fff;
}
.home-hero-inner {
    width: min(1220px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr);
    gap: 34px;
    align-items: center;
}
.home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    font-weight: 900;
}
.home-hero h1 {
    max-width: 780px;
    margin: 18px 0 14px;
    font-size: 52px;
    line-height: 1.05;
    font-weight: 900;
}
.home-hero p {
    max-width: 720px;
    margin: 0 0 22px;
    color: rgba(255,255,255,.9);
    font-size: 17px;
    line-height: 1.6;
}
.home-search {
    max-width: 760px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15,23,42,.16);
}
.home-search i {
    color: #075095;
    font-size: 20px;
    padding-left: 10px;
}
.home-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    font-size: 16px;
}
.home-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}
.home-hero-panel {
    padding: 20px;
    border-radius: 8px;
    background: rgba(255,255,255,.96);
    color: #0f172a;
    box-shadow: 0 20px 50px rgba(15,23,42,.18);
}
.home-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.home-panel-head span {
    color: #64748b;
    font-weight: 800;
}
.home-status-list {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}
.home-status-list div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}
.home-status-list i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eef6ff;
    color: #075095;
    font-size: 20px;
}
.home-status-list b,
.home-status-list span {
    display: block;
}
.home-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.home-mini-grid a {
    min-height: 96px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    color: #0f172a;
    background: #fff;
    border: 1px solid #e5e7eb;
    font-weight: 800;
}
.home-mini-grid img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    margin-bottom: 6px;
}
.home-stats {
    width: min(1120px, calc(100% - 40px));
    margin: -18px auto 36px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.home-stats div {
    padding: 18px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 26px rgba(15,23,42,.08);
    text-align: center;
}
.home-stats b {
    display: block;
    color: #075095;
    font-size: 28px;
    font-weight: 900;
}
.home-stats span {
    color: #64748b;
    font-weight: 800;
}
.home-popular,
.home-process,
.home-downloads,
.home-support {
    width: min(1220px, calc(100% - 40px));
    margin: 0 auto 42px;
}
.home-section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 18px;
}
.home-section-head h2 {
    margin: 8px 0 0;
    font-size: 32px;
    font-weight: 900;
}
.home-featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.home-featured-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 96px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 8px 24px rgba(15,23,42,.06);
}
.home-featured-card:hover {
    border-color: #0ea5e9;
    transform: translateY(-2px);
}
.home-featured-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eef6ff;
}
.home-featured-icon img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}
.home-featured-card b,
.home-featured-card small {
    display: block;
}
.home-featured-card small {
    color: #64748b;
}
.home-featured-card strong {
    margin-left: auto;
    color: #075095;
    white-space: nowrap;
}
.home-services {
    margin-top: 0;
}
.home-services .services-wrap,
.home-services h1 {
    display: none;
}
.home-services .service-board {
    background: #fff;
    border-color: #e5e7eb;
    box-shadow: 0 12px 34px rgba(15,23,42,.08);
}
.home-services .service-tabs {
    margin-top: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
}
.home-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.home-process-grid div {
    padding: 20px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
}
.home-process-grid i {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 8px;
    background: #eef6ff;
    color: #075095;
    font-size: 22px;
}
.home-process-grid b,
.home-process-grid span {
    display: block;
}
.home-process-grid b {
    margin-bottom: 6px;
}
.home-process-grid span {
    color: #64748b;
}
.download-search {
    min-width: 280px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
}
.download-search i {
    color: #075095;
}
.download-search input {
    width: 100%;
    border: 0;
    outline: 0;
}
.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.download-card {
    min-height: 112px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 8px 24px rgba(15,23,42,.06);
}
.download-card:hover {
    border-color: #ff7158;
    transform: translateY(-2px);
}
.download-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 26px;
}
.download-card b,
.download-card small {
    display: block;
}
.download-card small {
    color: #64748b;
    margin-top: 4px;
}
.download-card strong {
    margin-left: auto;
    color: #075095;
}
.home-popup-media {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 14px;
    background: #f8fafc;
}
.home-support {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 26px;
    border-radius: 8px;
    background: #073b75;
    color: #fff;
}
.home-support h2 {
    margin: 8px 0;
    font-weight: 900;
}
.home-support p {
    margin: 0;
    color: rgba(255,255,255,.85);
}
.home-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 24px 70px;
    background: #0f172a;
    color: #fff;
}
.home-footer b,
.home-footer span {
    display: block;
}
.home-footer span {
    color: rgba(255,255,255,.7);
}
.home-footer div:last-child {
    display: flex;
    gap: 18px;
}
.footer-credit {
    color: rgba(255,255,255,.75);
    font-weight: 700;
    text-align: center;
}
.footer-credit b {
    display: inline;
    color: #fff;
}
.home-footer a {
    color: #fff;
    font-weight: 800;
}
.track-hero {
    padding: 54px 20px 92px;
    color: #fff;
    background: linear-gradient(135deg, #073b75, #0ea5e9 58%, #16a34a);
}
.track-hero > div {
    width: min(980px, calc(100% - 24px));
    margin: 0 auto;
    text-align: center;
}
.track-hero h1 {
    margin: 16px 0 10px;
    font-size: 44px;
    font-weight: 900;
}
.track-hero p {
    max-width: 760px;
    margin: 0 auto;
    color: rgba(255,255,255,.9);
    line-height: 1.65;
}
.track-shell {
    width: min(1040px, calc(100% - 32px));
    margin: -56px auto 50px;
}
.track-card {
    padding: 24px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 16px 42px rgba(15,23,42,.14);
}
.track-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}
.track-card-head h2 {
    margin: 8px 0 0;
    font-weight: 900;
}
.track-card-head > i {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #075095;
    background: #eef6ff;
    font-size: 26px;
}
.track-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}
.track-result {
    margin-top: 18px;
}
.track-help-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 18px;
}
.track-help-grid div {
    padding: 18px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(15,23,42,.06);
}
.track-help-grid i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    border-radius: 8px;
    background: #eef6ff;
    color: #075095;
    font-size: 22px;
}
.track-help-grid b,
.track-help-grid span {
    display: block;
}
.track-help-grid span {
    color: #64748b;
    margin-top: 5px;
}
.public-container {
    width: min(980px, calc(100% - 32px));
    margin: 34px auto 60px;
}
.public-form-card, .public-success {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 26px;
    box-shadow: 0 10px 30px rgba(15,23,42,.08);
}
.public-form-card {
    padding: 0;
    overflow: hidden;
}
.public-form-card h1 {
    font-size: 30px;
    font-weight: 900;
    margin: 10px 0 6px;
}
.public-chip {
    display: inline-flex;
    background: #fff0dd;
    color: #c2410c;
    padding: 5px 10px;
    border-radius: 999px;
    font-weight: 800;
}
.public-price {
    font-size: 26px;
    font-weight: 900;
    color: #075095;
}
.apply-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 26px;
    background: linear-gradient(135deg, #fff7ed, #eef6ff);
    border-bottom: 1px solid #e5e7eb;
}
.apply-home-btn {
    white-space: nowrap;
    align-self: flex-start;
    margin-left: auto;
}
.apply-icon {
    width: 82px;
    height: 82px;
    flex: 0 0 82px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid #dbe3f0;
    border-radius: 8px;
    box-shadow: 0 5px 14px rgba(15,23,42,.08);
    color: #0ea5e9;
    font-size: 42px;
}
.apply-icon img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}
.apply-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 18px 26px 0;
}
.apply-steps span {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    font-weight: 800;
    color: #334155;
}
.apply-steps b {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ff7158;
    color: #fff;
    margin-right: 8px;
}
.apply-section {
    margin: 22px 26px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
}
.apply-section h5 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    font-weight: 900;
}
.apply-section h5 i {
    color: #075095;
}
.choice-box {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    background: #f8fafc;
}
.apply-submit-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 26px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}
.admin-service-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
}
.icon-fallback {
    display: grid;
    place-items: center;
    color: #0ea5e9;
}
.process-panel {
    border-top: 4px solid #075095;
}
.action-box {
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
}
.commission-input {
    max-width: 180px;
    font-weight: 800;
}
.tracking-progress {
    height: 22px;
    border-radius: 999px;
    background: #e5e7eb;
}
.tracking-progress .progress-bar {
    font-size: 12px;
    font-weight: 800;
}
.tracking-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f7;
}
.tracking-item i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eef6ff;
    color: #075095;
}
.tracking-item b {
    display: block;
}
.tracking-item small {
    color: #64748b;
}

/* Final sidebar brand fix */
.brand {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}
.brand span:not(.brand-symbol) {
    display: none !important;
    color: #0f172a;
    font-size: 17px;
    line-height: 1;
}
.app-shell.sidebar-expanded .brand {
    justify-content: flex-start !important;
    padding: 0 14px !important;
}
.app-shell.sidebar-expanded .brand span:not(.brand-symbol) {
    display: inline-block !important;
}
.brand-symbol {
    flex: 0 0 32px;
}
.public-success {
    text-align: center;
}
.public-success i {
    font-size: 58px;
    color: #16a34a;
}
.success-premium {
    position: relative;
    overflow: hidden;
    padding: 42px 28px;
    background: linear-gradient(135deg, #ffffff, #f0fdf4 55%, #eff6ff);
}
.success-ring {
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 12px 30px rgba(22,163,74,.28);
}
.success-ring i {
    color: #fff;
    font-size: 56px;
}
.success-premium h2 {
    font-size: 34px;
    font-weight: 900;
    margin: 12px 0 6px;
}
.success-appno {
    width: min(420px, 100%);
    margin: 22px auto 0;
    padding: 16px;
    border: 1px dashed #16a34a;
    border-radius: 8px;
    background: #fff;
}
.success-appno small {
    display: block;
    color: #64748b;
    font-weight: 800;
    margin-bottom: 5px;
}
.success-appno b {
    font-size: 26px;
    color: #075095;
}
.preview-modal {
    border: 0;
    border-radius: 10px;
    overflow: hidden;
}
.preview-modal .modal-header {
    background: linear-gradient(135deg, #fff7ed, #eef6ff);
}
.preview-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.preview-row {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
}
.preview-row span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.preview-row b {
    color: #0f172a;
    word-break: break-word;
}
.payment-preview {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 18px;
    padding: 15px;
    border-radius: 8px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}
.payment-preview i {
    font-size: 32px;
    color: #f97316;
}
.payment-preview p {
    margin: 2px 0 0;
    color: #475569;
}

/* Operator and VLE work dashboards */
.work-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    padding: 24px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #075095, #0ea5e9 58%, #16a34a);
    box-shadow: 0 10px 26px rgba(7,80,149,.18);
}
.work-hero .public-chip {
    background: rgba(255,255,255,.18);
    color: #fff;
}
.work-hero h2 {
    margin: 12px 0 6px;
    font-size: 30px;
    font-weight: 900;
}
.work-hero p {
    margin: 0;
    max-width: 720px;
    color: rgba(255,255,255,.88);
}
.work-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.queue-count-badge {
    min-width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    margin-left: 8px;
    padding: 0 7px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 0 0 2px rgba(255,255,255,.85);
}
.work-progress-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}
.work-progress-row b,
.work-progress-row small {
    display: block;
}
.work-progress-row small {
    color: #64748b;
}
.work-progress-row strong {
    color: #075095;
    font-size: 22px;
}
.work-split {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.work-split span {
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
    text-align: center;
}
.work-split b,
.work-split small {
    display: block;
}
.work-split b {
    color: #075095;
    font-size: 22px;
}
.work-split small {
    color: #64748b;
    font-weight: 800;
}
.work-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #eef2f7;
}
.work-list-item:last-child {
    border-bottom: 0;
}
.work-list-item b,
.work-list-item small {
    display: block;
}
.work-list-item small {
    color: #64748b;
}
.document-upload-list {
    display: grid;
    gap: 10px;
}
.document-upload-row {
    display: grid;
    grid-template-columns: minmax(180px, .9fr) minmax(240px, 1.1fr) 42px;
    gap: 10px;
    align-items: center;
}
.document-upload-row .btn {
    width: 42px;
    height: 38px;
    padding: 0;
}
.hold-resubmit-note {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid #fed7aa;
    border-left: 4px solid #f97316;
    border-radius: 8px;
    background: #fff7ed;
    color: #7c2d12;
    font-size: 12px;
    line-height: 1.35;
}
.hold-resubmit-note b {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #9a3412;
    font-size: 13px;
}
.hold-resubmit-note span {
    display: block;
}
.hold-resubmit-chip {
    width: fit-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.hold-resubmit-chip b {
    font-weight: 900;
}
.app-lookup-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    background: #f0fdf4;
    color: #166534;
    font-weight: 800;
}
.app-lookup-box i {
    font-size: 20px;
}
.app-lookup-box.lookup-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}
.vle-register-page {
    min-height: calc(100vh - 78px);
    background: #fffaf2;
}
.vle-register-hero {
    padding: 46px 20px 86px;
    color: #fff;
    background: linear-gradient(135deg, #073b75, #0ea5e9 58%, #16a34a);
}
.vle-register-hero > div {
    width: min(980px, calc(100% - 24px));
    margin: 0 auto;
    text-align: center;
}
.vle-register-hero h1 {
    margin: 16px 0 10px;
    font-size: 44px;
    font-weight: 900;
}
.vle-register-hero p {
    max-width: 760px;
    margin: 0 auto;
    color: rgba(255,255,255,.9);
    line-height: 1.65;
}
.vle-register-shell {
    width: min(920px, calc(100% - 32px));
    margin: -54px auto 54px;
}
.vle-register-card {
    padding: 24px;
}

/* Admin user management */
.user-metric i {
    margin-bottom: 10px;
}
.user-table td b,
.user-table td small {
    display: block;
}
.user-table td small {
    color: #64748b;
    margin-top: 3px;
}
.user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 170px;
}
.user-avatar {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: #e0f2fe;
    color: #075095;
    font-weight: 900;
}
.role-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef6ff;
    color: #075095;
    font-size: 12px;
    font-weight: 900;
}
.password-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border-radius: 8px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 13px;
    font-weight: 900;
}
.user-modal {
    border: 0;
    border-radius: 10px;
    overflow: hidden;
}
.user-modal .modal-header {
    background: linear-gradient(135deg, #fff7ed, #eef6ff);
}
.user-form-section {
    padding: 16px;
    margin-bottom: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
}
.user-form-section h6 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #0f172a;
    font-weight: 900;
}
.user-form-section h6 i {
    color: #075095;
}
.forgot-icon {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    font-size: 34px;
}
.settlement-total {
    font-size: 30px;
    font-weight: 900;
}

@media (max-width: 1100px) {
    .home-hero-inner { grid-template-columns: 1fr; }
    .home-featured-grid, .home-process-grid { grid-template-columns: repeat(2, 1fr); }
    .home-stats { grid-template-columns: repeat(2, 1fr); }
    .public-service-grid { grid-template-columns: repeat(3, 1fr); }
    .public-top { padding: 12px 20px; flex-direction: column; gap: 14px; }
    .public-ribbon { padding: 0 20px; }
    .service-tabs { margin-top: 0; justify-content: flex-start; flex-wrap: wrap; }
}
@media (max-width: 640px) {
    .home-ribbon { display: none; }
    .vle-register-hero h1 { font-size: 32px; }
    .home-hero { padding: 34px 16px 24px; }
    .home-hero h1 { font-size: 34px; }
    .home-search { align-items: stretch; flex-direction: column; }
    .home-search i { display: none; }
    .home-search input { width: 100%; min-height: 44px; padding: 0 10px; }
    .home-hero-panel { padding: 14px; }
    .home-mini-grid, .home-featured-grid, .home-process-grid, .home-stats { grid-template-columns: 1fr; }
    .download-grid { grid-template-columns: 1fr; }
    .download-search { min-width: 100%; }
    .track-hero h1 { font-size: 32px; }
    .track-help-grid { grid-template-columns: 1fr; }
    .track-actions { justify-content: stretch; }
    .track-actions .btn { width: 100%; }
    .home-section-head, .home-support, .home-footer { align-items: flex-start; flex-direction: column; }
    .home-section-head h2 { font-size: 26px; }
    .home-footer { padding: 24px 20px; }
    .home-footer div:last-child { flex-wrap: wrap; }
    .public-service-grid { grid-template-columns: repeat(2, 1fr); }
    .public-nav { flex-wrap: wrap; justify-content: center; }
    .services-wrap h1 { font-size: 30px; }
    .apply-hero, .apply-submit-bar { flex-direction: column; align-items: flex-start; }
    .apply-home-btn { margin-left: 0; align-self: stretch; text-align: center; }
    .apply-steps { grid-template-columns: 1fr; }
    .preview-content { grid-template-columns: 1fr; }
    .work-hero { align-items: flex-start; flex-direction: column; }
    .work-hero h2 { font-size: 25px; }
    .work-hero-actions { justify-content: flex-start; }
    .work-list-item { align-items: flex-start; flex-direction: column; }
    .document-upload-row { grid-template-columns: 1fr; }
    .document-upload-row .btn { width: 100%; }
    .hold-resubmit-chip { white-space: normal; }
}
