/* महा केंद्र डेस्क — आधुनिक, सोपे डिझाईन (style.css वर अधिलेखित) */
:root {
  --blue: #0d47a1; --blue-2: #1565c0; --blue-soft: #e8f0fe;
  --saffron: #e65100; --saffron-soft: #fff3e8;
  --ink: #1b2430; --muted: #5b6776; --line: #e3e8ef; --bg: #f5f7fb;
  --radius: 16px; --shadow: 0 2px 10px rgba(16,24,40,.07);
}
* { font-family: 'Noto Sans Devanagari', 'Mukta', 'Segoe UI', Arial, sans-serif; }
body { background: var(--bg); color: var(--ink); padding-bottom: 92px; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font-family: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #ffb300; outline-offset: 2px; }
.container { margin: 12px auto; padding: 0 14px; max-width: 1100px; }

/* ---------- हेडर ---------- */
.app-header {
  position: sticky; top: 0; z-index: 500; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 8px 14px; background: linear-gradient(120deg, #0b3a85, #1565c0); color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.2); flex-wrap: nowrap;
}
.brand { display: flex; align-items: center; gap: 10px; background: none; border: 0; color: #fff; cursor: pointer; text-align: left; padding: 0; min-width: 0; }
.brand-logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.7); background: #fff; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text strong { font-size: 17px; font-weight: 800; white-space: nowrap; }
.brand-text small { font-size: 11px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-right { display: flex; align-items: center; gap: 8px; }
.wallet-chip, .menu-btn {
  min-height: 42px; border-radius: 22px; border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.16);
  color: #fff; font-weight: 700; font-size: 14px; padding: 0 14px; cursor: pointer;
}
.menu-btn { width: 44px; padding: 0; font-size: 20px; }
.wallet-chip:hover, .menu-btn:hover { background: rgba(255,255,255,.28); }
.menu-panel {
  position: absolute; right: 12px; top: calc(100% + 6px); width: min(300px, calc(100vw - 24px));
  background: #fff; color: var(--ink); border-radius: 14px; box-shadow: 0 12px 34px rgba(0,0,0,.28);
  padding: 8px; display: flex; flex-direction: column; gap: 2px;
}
.menu-panel[hidden] { display: none; }
.menu-item {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; border: 0; background: none;
  border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; text-decoration: none; text-align: left; width: 100%;
}
.menu-item:hover { background: var(--blue-soft); }
.menu-lang select { flex: 1; min-height: 38px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; background: #fff; }
#proStatusBtn.pro-active { color: #2e7d32; }

/* ---------- मुख्य पान ---------- */
#homeTab.section { background: transparent; box-shadow: none; padding: 0; }
.hero { background: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%); color: #fff; border-radius: 20px; padding: 18px 16px 16px; box-shadow: var(--shadow); }
.hero-hello { margin: 0; font-size: 13px; opacity: .9; }
.hero h2 { margin: 2px 0 12px; font-size: 22px; font-weight: 800; line-height: 1.3; }
.home-search {
  width: 100%; min-height: 50px; border: 0; border-radius: 14px; padding: 0 16px; font-size: 16px;
  background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.quick-chips { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.quick-chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; min-height: 38px; padding: 0 14px; border-radius: 20px; border: 1px solid rgba(255,255,255,.55); background: rgba(255,255,255,.15); color: #fff; font-weight: 600; font-size: 14px; cursor: pointer; }
.chip:hover { background: rgba(255,255,255,.3); }

.grp { margin-top: 20px; }
.grp-title { margin: 0 0 10px 2px; font-size: 16px; font-weight: 800; color: var(--ink); }
.tile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tool-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  cursor: pointer; min-height: 112px; transition: transform .12s, box-shadow .12s, border-color .12s; color: var(--ink);
}
.tool-tile:hover { transform: translateY(-2px); border-color: var(--blue-2); box-shadow: 0 6px 16px rgba(13,71,161,.15); }
.tool-tile:active { transform: scale(.98); }
.tt-icon { font-size: 30px; line-height: 1; }
.tt-title { font-size: 16px; font-weight: 800; line-height: 1.25; }
.tt-sub { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.tile-primary { border-top: 4px solid var(--blue-2); min-height: 132px; }
.tile-primary .tt-icon { font-size: 36px; }
.tile-gp { border-top: 4px solid var(--saffron); background: linear-gradient(180deg, var(--saffron-soft), #fff 70%); }
.tile-small { min-height: 92px; }
.tile-small .tt-icon { font-size: 26px; }
.recent-list { display: flex; gap: 8px; flex-wrap: wrap; }
.recent-chip { min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: var(--shadow); }
.recent-box { margin-top: 18px; }
.no-result { text-align: center; color: var(--muted); padding: 24px 10px; }
.trust-strip { margin-top: 22px; display: flex; flex-direction: column; gap: 6px; background: #eaf4ea; color: #1b5e20; border-radius: 14px; padding: 12px 14px; font-size: 13px; font-weight: 600; }

@media (min-width: 720px) {
  .tile-grid { grid-template-columns: repeat(3, 1fr); }
  .tile-grid-main { grid-template-columns: repeat(4, 1fr); }
  .hero { padding: 26px 28px; } .hero h2 { font-size: 28px; }
  .trust-strip { flex-direction: row; justify-content: space-between; }
}

/* ---------- आतील पाने ---------- */
.back-bar { margin: -4px 0 12px; }
.back-btn { min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--line); background: #fff; color: var(--blue); font-weight: 800; font-size: 14.5px; cursor: pointer; box-shadow: var(--shadow); }
.back-btn:hover { background: var(--blue-soft); }
.steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 14px; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 8px; background: var(--blue-soft); border-radius: 22px; padding: 6px 14px 6px 6px; font-size: 13px; font-weight: 700; color: var(--blue); }
.steps li b { width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.section { border-radius: 18px; }
.sample-toggle { background: none; border: 0; color: var(--blue-2); font-weight: 700; font-size: 13.5px; cursor: pointer; padding: 6px 2px; margin-bottom: 6px; min-height: 36px; }
.result-sample-banner.collapsed { display: none; }
.btn, .mode-btn, .mode-pill-btn { min-height: 46px; }
.btn { border-radius: 12px; font-size: 14.5px; }
.tool-mini-btn { min-height: 38px; border-radius: 8px; }
.form-group input, .form-group select { min-height: 44px; font-size: 15px; }
.modal-overlay { z-index: 2000; }
.modal-box { border-radius: 18px; }
.tharav-scroll-box { -webkit-overflow-scrolling: touch; }

/* ---------- खालील नेव्हिगेशन ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: flex; background: #fff;
  border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(16,24,40,.1); padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav button { flex: 1; min-height: 62px; border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); cursor: pointer; font-size: 20px; }
.bottom-nav button b { font-size: 11.5px; font-weight: 700; }
.bottom-nav button.active { color: var(--blue); }
.bottom-nav button.active span { background: var(--blue-soft); border-radius: 14px; padding: 0 16px; }
@media (min-width: 900px) { .bottom-nav { max-width: 560px; left: 50%; right: auto; transform: translateX(-50%); border-radius: 18px 18px 0 0; width: 100%; } }

.wa-fab {
  position: fixed; right: 14px; bottom: calc(78px + env(safe-area-inset-bottom)); z-index: 850; width: 52px; height: 52px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; text-decoration: none; box-shadow: 0 4px 14px rgba(0,0,0,.3);
}

/* ---------- toast ---------- */
.toast-box { position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 4000; display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100vw - 24px)); pointer-events: none; }
.toast { background: #263238; color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 14px; line-height: 1.5; white-space: pre-line; box-shadow: 0 6px 20px rgba(0,0,0,.35); animation: tin .25s ease; }
.toast-ok { background: #1b5e20; } .toast-err { background: #b71c1c; }
.toast-out { opacity: 0; transition: opacity .35s; }
@keyframes tin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- जुने रंग/बग दुरुस्ती ---------- */
.kendra-strip { display: none; }
@media print { .bottom-nav, .wa-fab, .app-header, .toast-box { display: none !important; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ===== दुसरी फेरी: आणखी सोपे ===== */
.hero { background: linear-gradient(135deg, rgba(13,71,161,.96), rgba(25,118,210,.92)), url('hero.jpg') center/cover, #0d47a1; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hero-text { flex: 1; min-width: 0; }
.hero-art { width: 132px; flex-shrink: 0; height: auto; }
.hero h2 { margin-bottom: 0; }
.home-search { margin-top: 12px; }
.howto { list-style: none; display: flex; gap: 6px; padding: 0; margin: 12px 0 0; }
.howto li { flex: 1; display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.16); border-radius: 12px; padding: 7px 8px; font-size: 12.5px; font-weight: 700; line-height: 1.2; }
.howto b { flex: 0 0 22px; height: 22px; border-radius: 50%; background: #ffb300; color: #1b2430; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.brand-logo { border: 0; padding: 0; background: none; }
@media (min-width: 720px) { .hero-art { width: 230px; } .howto li { font-size: 14px; padding: 9px 12px; } }

/* डेस्कटॉप: वरच्या दुव्यांनी नेव्हिगेशन; खालचा बार नको */
.top-links { display: none; }
@media (min-width: 900px) {
  .bottom-nav { display: none; }
  body { padding-bottom: 30px; }
  .wa-fab { bottom: 20px; }
  .toast-box { bottom: 24px; }
  .top-links { display: flex; gap: 4px; flex: 1; justify-content: center; }
  .top-links button { min-height: 40px; padding: 0 14px; border-radius: 20px; border: 0; background: transparent; color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; }
  .top-links button:hover { background: rgba(255,255,255,.2); }
  .top-links button.active { background: rgba(255,255,255,.28); }
}

/* टूल पाने: मोठे आणि सरळ */
.sec-title > span:nth-child(n+2) { display: none; }
.sec-title { border-bottom: 0; font-size: 19px; margin-bottom: 4px; }
#cardPrintTab .result-sample-banner { display: none; }   /* खालचे ३ पर्याय तेच काम करतात */
input[type=file] { width: 100%; font-size: 14px; }
input[type=file]::file-selector-button {
  min-height: 46px; margin-right: 12px; padding: 0 20px; border: 0; border-radius: 12px;
  background: var(--blue); color: #fff; font-weight: 800; font-size: 15px; cursor: pointer; font-family: inherit;
}
input[type=file]::file-selector-button:hover { background: var(--blue-2); }
.drop-card-box { border-radius: 16px; padding: 18px 14px; border-width: 2.5px; }
.drop-card-box strong { font-size: 16px !important; }
.mode-pill-btn { border-radius: 12px; min-height: 48px; }
.paper-stage-box, .simple-print-grid > div { border-radius: 16px !important; }
.doc-card, .portal-card, .agent-card, .tool-card { border-radius: 16px; }
.btn-blue { background: linear-gradient(135deg, #0d47a1, #1976d2); }
.btn-green { background: linear-gradient(135deg, #2e7d32, #43a047); }
.btn { box-shadow: 0 2px 6px rgba(16,24,40,.15); }
.dm-workspace-box { border-radius: 16px; }
.section { padding: 16px; }
@media (max-width: 480px) { .hero-art { width: 104px; } .hero h2 { font-size: 20px; } .howto li { font-size: 11.5px; } }

/* ===== तिसरी फेरी: कार्ड प्रिंट सोपे ===== */
#selectedCardFuncBadge, #btnShowAllThreeCardOpts, #pdfCardStatusMsg:empty { display: none !important; }
#cardPrintTab[data-mode="strip"] .dual-only { display: none !important; }
.more-opts { margin: 10px 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px; }
.more-opts summary { cursor: pointer; font-weight: 700; font-size: 13.5px; color: var(--muted); min-height: 40px; display: flex; align-items: center; }
.print-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.print-actions .btn { min-height: 54px; font-size: 16px; }
#unifiedCropModal .modal-box { border-radius: 18px; }
#unifiedCropModal .btn-green { min-height: 52px; font-size: 16px; padding: 0 28px !important; }
#unifiedCropModal h3 { font-size: 18px !important; }
.tile-grid-main { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .tile-grid-main { grid-template-columns: repeat(3, 1fr); } }

/* ===== कार्ड प्रिंट: ३ पायऱ्या ===== */
.cp-panel { background: #fff; padding: 16px; border-radius: 16px; border: 1px solid var(--line); }
.cp-step { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; margin: 4px 0 10px; }
.cp-step b { width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.cp-step ~ .cp-step { margin-top: 18px; }
.cp-options { display: grid; gap: 8px; }
.cp-opt { text-align: left; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; min-height: 62px; width: 100%; }
.cp-opt i { float: left; font-style: normal; font-size: 28px; margin-right: 12px; line-height: 38px; }
.cp-opt strong { display: block; font-size: 15.5px; color: var(--ink); }
.cp-opt small { display: block; font-size: 12.5px; color: var(--muted); }
.cp-opt.active { border-color: var(--blue); background: var(--blue-soft); }
.cp-opt.active strong { color: var(--blue); }
.big-pick { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 58px; padding: 10px 16px; border-radius: 14px; background: var(--blue); color: #fff; font-weight: 800; font-size: 16px; cursor: pointer; word-break: break-all; box-shadow: 0 3px 8px rgba(13,71,161,.3); margin: 4px 0; }
.big-pick:hover { background: var(--blue-2); }
.cp-hint { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.cp-status { margin: 10px 0 0; font-weight: 700; font-size: 14px; line-height: 1.5; min-height: 4px; }
.cp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cp-actions .btn { min-height: 54px; font-size: 16px; margin: 0; }
.cp-more { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 10px; }
.cp-more summary { cursor: pointer; font-weight: 700; color: var(--muted); min-height: 36px; }
.cp-check { display: flex; align-items: center; gap: 8px; margin: 10px 0; font-weight: 600; font-size: 14px; }
.cp-check input { width: 20px; height: 20px; }
.cp-more-btns { display: flex; gap: 8px; flex-wrap: wrap; }
#cardPrintTab .drop-card-box { background: #f5f9ff; }
/* क्रॉप विंडो: कमी गोंधळ */
#unifiedCropModal button[onclick="useFullSourceWithoutCrop()"] { display: none; }
#unifiedCropModal .modal-box { border-radius: 18px; }
/* मुख्य पान: ६ मोठी कार्डे */
@media (min-width: 720px) { .tile-grid-main { grid-template-columns: repeat(3, 1fr); } }

/* ===== v16: नवीन स्वच्छ UI (पांढरा हेडर + दोन भूमिका कार्ड) ===== */
:root { --bg: #f7f6f2; --ink: #1d2433; --green: #3f7a4f; --green-soft: #e4efe3; --brown: #b8733a; --brown-soft: #f8e6d6; --cream: #faf8f3; --line: #e6e2d8; }
body { background: var(--bg); }
.app-header { background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--line); padding: 10px 18px; }
.brand { color: var(--ink); }
.brand-text strong { font-size: 20px; color: #14213d; }
.brand-text small { color: #6b7280; opacity: 1; font-size: 11.5px; }
.top-links button { color: #4b5563 !important; font-weight: 600 !important; }
.top-links button:hover { background: #f1efe8 !important; }
.top-links button.active { background: #e8f0fe !important; color: var(--blue) !important; }
.wallet-chip { background: #f6edd9; color: #6a4a10; border: 1px solid #ecdcb5; font-weight: 800; }
.menu-btn { background: #f1efe8; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; }
.wallet-chip:hover, .menu-btn:hover { background: #ebe7da; }
.lang-pill { display: inline-flex; align-items: center; gap: 4px; min-height: 42px; padding: 0 6px 0 10px; border-radius: 22px; border: 1px solid var(--line); background: #fff; font-size: 16px; }
.lang-pill select { border: 0; background: transparent; font-size: 14px; font-weight: 700; color: var(--ink); min-height: 38px; cursor: pointer; }
@media (max-width: 559px) { .app-header { padding: 8px 10px; gap: 6px; } .header-right { gap: 5px; } .brand-text small { display: none; } .brand-text strong { font-size: 16px; } .lang-pill { padding: 0 2px 0 7px; min-height: 40px; } .lang-pill select { font-size: 13px; max-width: 74px; } .wallet-chip { padding: 0 9px; font-size: 13px; min-height: 40px; } .menu-btn { width: 40px; min-height: 40px; } }

.greet-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px 26px; box-shadow: var(--shadow); }
.greet-card .hero-hello { margin: 0; font-size: 14px; color: var(--muted); opacity: 1; }
.greet-card h2 { margin: 4px 0 0; font-size: 28px; font-weight: 800; color: #14213d; line-height: 1.3; }

.role-grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 18px; }
@media (min-width: 820px) { .role-grid { grid-template-columns: 1fr 1fr; } }
.role-card { background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--green); border-radius: 22px; padding: 22px 20px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.role-csc { border-top-color: var(--brown); }
.role-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.role-num { flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; font-size: 20px; display: inline-flex; align-items: center; justify-content: center; }
.role-csc .role-num { background: var(--brown); }
.role-ttl { flex: 1; text-align: right; }
.role-ttl h3 { margin: 0; font-size: 24px; font-weight: 800; color: #14213d; }
.role-ttl p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.role-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 62px; padding: 10px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--cream); cursor: pointer; text-align: left; font-size: 17px; font-weight: 700; color: #14213d; transition: transform .12s, box-shadow .12s, border-color .12s; }
.role-row:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(20,33,61,.1); border-color: #cfc9b8; }
.role-row:active { transform: scale(.99); }
.role-gp .role-row.hi { background: var(--green-soft); border-color: #cfe0cd; }
.role-csc .role-row.hi { background: var(--brown-soft); border-color: #efd3b9; }
.rr-icon { flex: 0 0 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; }
.rr-title { flex: 1; line-height: 1.3; }
.rr-badge { flex: 0 0 auto; padding: 4px 12px; border-radius: 14px; font-size: 12px; font-weight: 800; background: #f0e1a8; color: #6b5200; white-space: nowrap; }
@media (max-width: 480px) { .role-row { font-size: 15.5px; padding: 8px 12px; } .rr-badge { font-size: 11px; padding: 3px 9px; } .role-ttl h3 { font-size: 20px; } .greet-card h2 { font-size: 22px; } .greet-card { padding: 18px; } }

.more-tools { margin-top: 22px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-chip { min-height: 48px; padding: 0 20px; border-radius: 24px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 15px; color: #14213d; cursor: pointer; box-shadow: var(--shadow); }
.tool-chip:hover { border-color: #cfc9b8; background: var(--cream); }
.container { max-width: 1200px; }


/* =========================================================================
   v24: प्रीमियम डॅशबोर्ड डिझाईन (स्वच्छ, संतुलित आणि आकर्षक)
   ========================================================================= */
body {
  background:
    radial-gradient(circle at 12% 8%, rgba(63, 122, 79, 0.06), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(184, 115, 58, 0.07), transparent 36%),
    #f6f5f0;
}

.app-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 221, 208, 0.9);
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.04);
}

/* Hero Command Card */
.dash-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 24px 28px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 96% 10%, rgba(230, 81, 0, 0.08), transparent 42%),
    radial-gradient(circle at 6% 95%, rgba(46, 125, 50, 0.08), transparent 40%),
    #ffffff;
  border: 1px solid #e4dfd3;
  box-shadow: 0 8px 28px rgba(20, 33, 61, 0.055);
}

.dash-hero-left {
  flex: 1.25;
  min-width: 0;
}

.dash-meta-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.dash-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  line-height: 1.3;
}

.dash-pill-greet {
  background: #edf4ef;
  color: #215732;
  border: 1px solid #cfe2d4;
}

.dash-pill-date {
  background: #f5f3ec;
  color: #475569;
  border: 1px solid #e4dfd3;
}

.dash-pill-quota {
  background: #fff7e6;
  color: #9a5b08;
  border: 1px solid #f4dcab;
}

.dash-hero h2 {
  margin: 0;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #14213d;
  line-height: 1.25;
}

.dash-hero-sub {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: #5b6776;
  line-height: 1.45;
}

.dash-hero-right {
  flex: 0.9;
  min-width: 260px;
  max-width: 390px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.dash-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.dash-search-ico {
  position: absolute;
  left: 14px;
  font-size: 15px;
  pointer-events: none;
  opacity: 0.72;
}

.dash-search-input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px 0 40px;
  border-radius: 14px;
  border: 1.5px solid #dcd6c8;
  background: #faf9f5;
  color: #14213d;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.dash-search-input:focus {
  background: #ffffff;
  border-color: #1565c0;
  box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.12);
  outline: none;
}

.dash-quick-hints {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.dash-mini-tag {
  border: 1px solid #e2ddd0;
  background: #ffffff;
  color: #1e293b;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s ease;
}

.dash-mini-tag:hover {
  background: #e8f0fe;
  border-color: #93c5fd;
  color: #0d47a1;
}

/* Recently used inline bar */
.dash-recent {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #e6e2d8;
  border-radius: 14px;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dash-recent-label {
  font-size: 12.5px;
  font-weight: 800;
  color: #475569;
  white-space: nowrap;
}

.dash-recent .recent-chip {
  min-height: 34px;
  padding: 0 13px;
  font-size: 13px;
  border-radius: 999px;
  box-shadow: none;
  background: #faf9f5;
}

.dash-recent .recent-chip:hover {
  background: #e8f0fe;
  border-color: #93c5fd;
  color: #0d47a1;
}

/* Two-Column Operator Cards */
.role-grid {
  gap: 20px;
  margin-top: 18px;
  align-items: stretch;
}

.role-card {
  padding: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid #e3ded2;
  border-top: 5px solid #2b6e3f;
  background: #ffffff;
  box-shadow: 0 8px 26px rgba(20, 33, 61, 0.055);
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: box-shadow 0.2s ease;
}

.role-card:hover {
  box-shadow: 0 12px 32px rgba(20, 33, 61, 0.085);
}

.role-csc {
  border-top-color: #c2571a;
}

.role-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 18px 20px 15px;
  background: linear-gradient(180deg, #f3f9f4 0%, #ffffff 100%);
  border-bottom: 1px solid #eef2ee;
}

.role-csc .role-head {
  background: linear-gradient(180deg, #fdf5ee 0%, #ffffff 100%);
  border-bottom-color: #f6ebe1;
}

.role-num {
  flex: 0 0 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, #216136, #388e52);
  color: #ffffff;
  font-weight: 800;
  font-size: 19px;
  box-shadow: 0 4px 10px rgba(43, 110, 63, 0.28);
}

.role-csc .role-num {
  background: linear-gradient(135deg, #b54708, #df722e);
  box-shadow: 0 4px 10px rgba(194, 87, 26, 0.28);
}

.role-ttl {
  flex: 1;
  text-align: left;
  min-width: 0;
}

.role-ttl h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #14213d;
  line-height: 1.2;
}

.role-ttl p {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: #5b6776;
}

.role-count-pill {
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 999px;
  background: #e6f2e9;
  color: #1f5c32;
}

.role-csc .role-count-pill {
  background: #fcebe0;
  color: #9e420e;
}

.role-list {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.role-row {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 66px;
  padding: 11px 14px;
  border-radius: 15px;
  border: 1px solid #ece7dc;
  background: #fbfaf6;
  cursor: pointer;
  text-align: left;
  color: #14213d;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.role-row:hover {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: #b7d4be;
  box-shadow: 0 6px 18px rgba(20, 33, 61, 0.08);
}

.role-csc .role-row:hover {
  border-color: #e9c2a4;
}

.role-gp .role-row.hi {
  background: linear-gradient(135deg, #e7f4ea 0%, #f4faf5 100%);
  border-color: #b9d9c1;
}

.role-gp .role-row.hi:hover {
  border-color: #2b6e3f;
  box-shadow: 0 8px 20px rgba(43, 110, 63, 0.14);
}

.role-csc .role-row.hi {
  background: linear-gradient(135deg, #fcede0 0%, #fef7f0 100%);
  border-color: #eec8a8;
}

.role-csc .role-row.hi:hover {
  border-color: #c2571a;
  box-shadow: 0 8px 20px rgba(194, 87, 26, 0.14);
}

.rr-icon {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 13px;
  background: #ffffff;
  border: 1px solid #e6e2d8;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  transition: transform 0.15s ease;
}

.role-row:hover .rr-icon {
  transform: scale(1.06);
}

.role-gp .role-row.hi .rr-icon {
  background: #ffffff;
  border-color: #b9d9c1;
}

.role-csc .role-row.hi .rr-icon {
  background: #ffffff;
  border-color: #eec8a8;
}

.rr-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rr-title {
  font-size: 15.5px;
  font-weight: 800;
  color: #14213d;
  line-height: 1.25;
}

.rr-sub {
  font-size: 12px;
  font-weight: 500;
  color: #5b6776;
  line-height: 1.3;
}

.rr-badge {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: #fef08a;
  color: #7c4a03;
  border: 1px solid #f5d86e;
  white-space: nowrap;
}

.rr-arrow {
  flex: 0 0 auto;
  font-size: 16px;
  font-weight: 800;
  color: #94a3b8;
  transition: transform 0.15s ease, color 0.15s ease;
}

.role-row:hover .rr-arrow {
  transform: translateX(4px);
  color: #14213d;
}

.role-tip-footer {
  margin: 0 16px 16px;
  padding: 10px 13px;
  border-radius: 12px;
  background: #fff9f2;
  border: 1px dashed #e9c9ac;
  color: #7c3f14;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

.role-tip-ico {
  font-size: 15px;
  flex-shrink: 0;
}

/* More Tools 3-Card Row */
.more-tools {
  margin-top: 20px;
}

.more-tools-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.more-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 16px;
  border: 1px solid #e3ded2;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(20, 33, 61, 0.045);
  cursor: pointer;
  text-align: left;
  color: #14213d;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.more-card:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: 0 8px 20px rgba(13, 71, 161, 0.1);
}

.mc-icon {
  flex: 0 0 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.mc-red { background: #fee2e2; border: 1px solid #fecaca; }
.mc-blue { background: #e0f2fe; border: 1px solid #bae6fd; }
.mc-amber { background: #fef3c7; border: 1px solid #fde68a; }

.mc-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mc-copy strong {
  font-size: 14.5px;
  font-weight: 800;
  color: #14213d;
}

.mc-copy small {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 500;
}

.mc-arrow {
  font-size: 15px;
  font-weight: 800;
  color: #94a3b8;
  transition: transform 0.15s ease, color 0.15s ease;
}

.more-card:hover .mc-arrow {
  transform: translateX(3px);
  color: #0d47a1;
}

/* Trust Strip */
.trust-strip {
  margin-top: 20px;
  background: linear-gradient(90deg, #ecf7ee 0%, #f3f9f4 100%);
  border: 1px solid #cde4d1;
  color: #1b5e20;
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(27, 94, 32, 0.05);
}

/* Responsive adjustments */
@media (max-width: 860px) {
  .dash-hero {
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    gap: 14px;
  }
  .dash-hero-right {
    max-width: none;
    min-width: 0;
  }
  .dash-hero h2 {
    font-size: 22px;
  }
  .more-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .role-head {
    padding: 14px 14px 12px;
  }
  .role-list {
    padding: 12px;
  }
  .role-row {
    padding: 10px 11px;
    gap: 10px;
  }
  .rr-title {
    font-size: 14.5px;
  }
  .rr-sub {
    font-size: 11.5px;
  }
  .rr-arrow {
    display: none;
  }
}


/* =========================================================================
   v27: १) अधिक पर्याय Preview शेजारी  २) स्वतंत्र PX निवड  ३) स्पष्ट फाईल निवडा कलर
   ========================================================================= */

/* १. अधिक पर्याय Preview शेजारी */
.simple-print-grid {
  grid-template-columns: 1fr 1.28fr;
}
@media (max-width: 960px) {
  .simple-print-grid {
    grid-template-columns: 1fr;
  }
}

.preview-with-more {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
}
.preview-canvas-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
}
.cp-more-side {
  width: 184px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 12px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
.cp-more-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0d47a1;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 7px;
  margin-bottom: 8px;
}
.cp-more-side .cp-check {
  margin: 8px 0 12px;
  font-size: 13px;
  color: #1e293b;
  cursor: pointer;
}
.cp-more-side-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cp-more-side-btns .tool-mini-btn {
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  font-size: 13px;
  border-radius: 9px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #1e293b;
}
.cp-more-side-btns .tool-mini-btn:hover {
  background: #e8f0fe;
  border-color: #93c5fd;
  color: #0d47a1;
}
.cp-more-side-btns .cp-btn-clear {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}
.cp-more-side-btns .cp-btn-clear:hover {
  background: #fee2e2;
  color: #991b1b;
  border-color: #f87171;
}
@media (max-width: 620px) {
  .preview-with-more {
    flex-direction: column;
    align-items: stretch;
  }
  .cp-more-side {
    width: 100%;
  }
  .cp-more-side-btns {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .cp-more-side-btns .tool-mini-btn {
    flex: 1;
    min-width: 110px;
    text-align: center;
  }
}

/* २. फोटो / सही Resizer मधील स्वतंत्र PX कंट्रोल बॉक्स */
.px-control-card {
  background: #f0f7ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.px-control-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-weight: 800;
  font-size: 13.5px;
  color: #0d47a1;
  margin-bottom: 10px;
}
.px-ratio-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #1e3a8a;
  cursor: pointer;
  margin: 0;
}
.px-inputs-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: end;
}
.px-x-sep {
  font-size: 18px;
  font-weight: 800;
  color: #1d4ed8;
  padding-bottom: 10px;
  text-align: center;
}
.px-quick-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}
.px-pill-btn {
  border: 1px solid #93c5fd;
  background: #ffffff;
  color: #0d47a1;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s ease;
}
.px-pill-btn:hover {
  background: #0d47a1;
  color: #ffffff;
  border-color: #0d47a1;
}
.px-pill-orig {
  border-color: #cbd5e1;
  color: #334155;
}
.px-pill-orig:hover {
  background: #334155;
  color: #ffffff;
  border-color: #334155;
}

/* ३. सर्व 'फाईल निवडा' बटनांवर स्पष्ट मजकूर + लेटरहेड फोटो बदला बटनासाठी खास हाय-कॉन्ट्रास्ट कलर */
.form-group label.big-pick,
label.big-pick {
  color: #ffffff !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.22);
}

#lhModeContainer .form-group > label:not(.big-pick) {
  color: #1e293b;
  font-weight: 800;
}

#lhModeContainer .form-group label.big-pick {
  background: linear-gradient(135deg, #fff7ed, #ffedd5) !important;
  color: #7c2d12 !important;
  border: 2px solid #ea580c !important;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.16) !important;
  text-shadow: none !important;
  min-height: 46px;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 10px;
  border-radius: 10px;
  line-height: 1.3;
  word-break: break-word;
}
#lhModeContainer .form-group label.big-pick:hover {
  background: linear-gradient(135deg, #ffedd5, #fed7aa) !important;
  border-color: #c2410c !important;
  color: #431407 !important;
}


/* =========================================================================
   v28: ठळक ठराव/लेटरहेड कार्ड, वरच्या भागात वय कॅल्क्युलेटर आणि संतुलित ५+५ साधने
   ========================================================================= */

/* होमपेजच्या वरच्या भागात आकर्षक वय कॅल्क्युलेटर बटण */
.dash-pill-age {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  color: #92400e;
  border: 1.5px solid #f59e0b;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}
.dash-pill-age:hover {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #78350f;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.28);
}

.dash-mini-age {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #92400e;
}
.dash-mini-age:hover {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #78350f;
}

/* होमपेजवरील Google लॉगिन व WhatsApp मदत अ‍ॅक्शन बटणे */
.dash-home-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.dash-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}
.dash-btn-google {
  background: #ffffff;
  color: #1e293b;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}
.dash-btn-google:hover {
  background: #f8fafc;
  border-color: #4285F4;
  color: #0d47a1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.16);
}
.dash-btn-google.logged-in {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #0d47a1;
}
.dash-btn-wa {
  background: #ecfdf3;
  color: #116634;
  border: 1.5px solid #6ee7a0;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.12);
}
.dash-btn-wa:hover {
  background: #25D366;
  border-color: #1fb857;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.28);
}

/* ग्रामपंचायत ऑपरेटर: ठराव व लेटर हेड टायपिंग — सुसंगत, स्वच्छ व ठळक कार्ड */
.role-gp .role-row.gp-featured-row {
  position: relative;
  min-height: 70px;
  padding: 12px 15px;
  background: linear-gradient(135deg, #e2f4e7 0%, #f1faf3 100%);
  border: 1.5px solid #96cfa5;
  border-left: 5px solid #2b6e3f;
  color: #14213d;
  box-shadow: 0 4px 14px rgba(43, 110, 63, 0.1);
}
.role-gp .role-row.gp-featured-row:hover {
  background: linear-gradient(135deg, #d7efde 0%, #ebf7ee 100%);
  border-color: #2b6e3f;
  border-left-color: #1f5c32;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(43, 110, 63, 0.16);
}
.role-gp .role-row.gp-featured-row .gp-featured-ico {
  flex: 0 0 46px;
  height: 46px;
  font-size: 22px;
  background: #ffffff;
  border: 1.5px solid #a7d7b4;
  box-shadow: 0 2px 6px rgba(43, 110, 63, 0.1);
}
.role-gp .role-row.gp-featured-row .gp-featured-title {
  font-size: 16px;
  font-weight: 800;
  color: #14213d;
}
.role-gp .role-row.gp-featured-row .gp-featured-sub {
  font-size: 12.2px;
  font-weight: 600;
  color: #365640;
}
.role-gp .role-row.gp-featured-row .gp-featured-badge {
  background: #fef08a;
  color: #7c4a03;
  border: 1px solid #f2d060;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  box-shadow: none;
}
.role-gp .role-row.gp-featured-row .rr-arrow {
  color: #2b6e3f;
  font-size: 16px;
}
.role-gp .role-row.gp-featured-row:hover .rr-arrow {
  color: #14532d;
}

/* स्वच्छ मध्यभागी असलेली सुरक्षा पट्टी */
.trust-strip-center {
  justify-content: center !important;
  text-align: center;
}

@media (max-width: 520px) {
  .role-gp .role-row.gp-featured-row {
    padding: 12px;
    min-height: 70px;
  }
  .role-gp .role-row.gp-featured-row .gp-featured-title {
    font-size: 15.5px;
  }
  .role-gp .role-row.gp-featured-row .gp-featured-ico {
    flex: 0 0 42px;
    height: 42px;
    font-size: 20px;
  }
}


/* =========================================================================
   v30: एकदम वरच्या हेडर पट्टीमध्ये Google लॉगिन, WhatsApp मदत व वय कॅल्क्युलेटर
   ========================================================================= */
.app-header {
  gap: 8px;
  padding: 8px 14px;
}

.top-links {
  gap: 2px;
}
.top-links button {
  padding: 0 11px;
  font-size: 13.5px;
  white-space: nowrap;
}

.header-right {
  gap: 6px;
  flex-shrink: 0;
}

.hdr-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

.hdr-btn-google {
  background: #ffffff;
  color: #1e293b;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}
.hdr-btn-google:hover {
  background: #f8fafc;
  border-color: #4285F4;
  color: #0d47a1;
  transform: translateY(-1px);
}
.hdr-btn-google.logged-in {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #0d47a1;
}

.hdr-btn-wa {
  background: #ecfdf3;
  color: #116634;
  border: 1.5px solid #6ee7a0;
  box-shadow: 0 1px 4px rgba(37, 211, 102, 0.12);
}
.hdr-btn-wa:hover {
  background: #25D366;
  border-color: #1fb857;
  color: #ffffff;
  transform: translateY(-1px);
}

/* मध्यम स्क्रीनवर (900px - 1220px) सर्व आयटम्स एका ओळीत आरामात बसण्यासाठी */
@media (min-width: 900px) and (max-width: 1240px) {
  .brand-text small { display: none; }
  .brand-text strong { font-size: 16.5px; }
  .top-links button { padding: 0 8px; font-size: 12.5px; }
  .hdr-action-btn { padding: 0 9px; font-size: 12px; min-height: 36px; }
  .wallet-chip, .lang-pill { min-height: 36px; font-size: 12.5px; }
}

/* मोबाईलवर वरच्या पट्टीत दोन्ही बटणे आयकॉन-पिल म्हणून स्वच्छ दिसण्यासाठी */
@media (max-width: 720px) {
  .hdr-action-btn {
    padding: 0 9px;
    min-height: 38px;
    font-size: 12px;
  }
  .hdr-btn-wa span:last-child {
    display: none;
  }
  .hdr-btn-wa {
    width: 38px;
    padding: 0;
    font-size: 16px;
  }
}
@media (max-width: 520px) {
  .hdr-btn-google span {
    display: none;
  }
  .hdr-btn-google {
    width: 38px;
    padding: 0;
  }
  .hdr-btn-google.logged-in {
    width: auto;
    padding: 0 8px;
  }
  .hdr-btn-google.logged-in span {
    display: inline;
    font-size: 11.5px;
  }
}


/* =========================================================================
   v31: स्क्रीनशॉटप्रमाणे कोपऱ्यातील Google One Tap लॉगिन कार्ड (३-बार मेनू काढला)
   ========================================================================= */
.hdr-user-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #93c5fd;
  flex-shrink: 0;
}

.g-onetap-card {
  position: fixed;
  top: 66px;
  right: 16px;
  width: min(338px, calc(100vw - 24px));
  z-index: 3600;
  background: #1f2023;
  color: #f1f3f4;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42), 0 4px 12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  font-family: 'Noto Sans Devanagari', 'Segoe UI', Arial, sans-serif;
}

.g-onetap-show {
  animation: gOneTapSlideIn 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes gOneTapSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.g-onetap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.g-onetap-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  color: #e8eaed;
  min-width: 0;
}

.g-onetap-brand svg {
  flex-shrink: 0;
}

.g-onetap-close {
  background: transparent;
  border: 0;
  color: #9aa0a6;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.14s ease, color 0.14s ease;
}

.g-onetap-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.g-onetap-body {
  padding: 14px 16px 16px;
}

.g-onetap-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.g-onetap-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2d3138;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.g-onetap-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g-onetap-initial {
  font-size: 17px;
  font-weight: 800;
  color: #93c5fd;
}

.g-onetap-uinfo {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.g-onetap-uinfo strong {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.g-onetap-uinfo small {
  font-size: 12px;
  color: #bdc1c6;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.g-onetap-cta {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #2b7de9 0%, #1a73e8 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.35);
  transition: background 0.14s ease, transform 0.12s ease, box-shadow 0.14s ease;
}

.g-onetap-cta:hover {
  background: linear-gradient(180deg, #3b89ee 0%, #1b66ca 100%);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.5);
}

.g-onetap-cta:active {
  transform: scale(0.985);
}

@media print {
  .g-onetap-card { display: none !important; }
}


/* =========================================================================
   v32: मोबाईलसाठी संपूर्ण ऑप्टिमायझेशन (हेडर ओव्हरलॅप दुरुस्ती + डुप्लिकेट WA काढले)
   ========================================================================= */
.wa-fab {
  display: none !important;
}

/* हेडरमधील ब्रँड मजकूर कधीही उजव्या बटनांवर चढणार नाही याची खात्री */
.app-header .brand {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
}
.app-header .brand-text {
  min-width: 0;
  overflow: hidden;
}
.app-header .brand-text strong {
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

@media (max-width: 720px) {
  .app-header {
    padding: 8px 10px;
    gap: 8px;
  }
  .app-header .brand-logo {
    width: 36px;
    height: 36px;
  }
  .app-header .brand-text small {
    display: none;
  }
  .app-header .brand-text strong {
    font-size: 15.5px;
  }
  .app-header .header-right {
    gap: 6px;
    flex-shrink: 0;
  }
  .app-header .lang-pill {
    min-height: 36px;
    padding: 0 4px 0 8px;
    font-size: 14px;
  }
  .app-header .lang-pill select {
    min-height: 34px;
    font-size: 13px;
    max-width: 72px;
  }
  .app-header .wallet-chip {
    min-height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }
  .app-header .hdr-action-btn {
    min-height: 36px;
  }
  .app-header .hdr-btn-wa {
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 16px;
  }
}

/* 360px - 520px मोबाईल स्क्रीन (Galaxy S25 / Android): शून्य ओव्हरलॅप, एकच स्वच्छ ओळ */
@media (max-width: 520px) {
  .app-header {
    padding: 7px 10px;
    gap: 6px;
  }
  .app-header .brand {
    flex: 0 0 auto;
    gap: 0;
  }
  .app-header .brand-text {
    display: none;
  }
  .app-header .brand-logo {
    width: 36px;
    height: 36px;
  }
  .app-header .header-right {
    flex: 1;
    justify-content: flex-end;
    gap: 6px;
  }
  .app-header .hdr-btn-google {
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
  }
  .app-header .hdr-btn-google.logged-in {
    width: auto;
    max-width: 108px;
    padding: 0 8px 0 5px;
  }
  .app-header .hdr-btn-google.logged-in span {
    display: inline;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 68px;
  }
  .app-header .lang-pill {
    padding: 0 3px 0 7px;
  }
  .app-header .lang-pill select {
    max-width: 66px;
    font-size: 12.5px;
  }
  .app-header .wallet-chip {
    padding: 0 9px;
    font-size: 12.5px;
  }
  /* मोबाईलवर Google One Tap कार्ड मध्यभागी स्वच्छ दिसेल */
  .g-onetap-card {
    top: 58px;
    left: 12px;
    right: 12px;
    width: auto;
  }
}

/* टच ड्रॅगसाठी प्रीव्ह्यू कॅनव्हास सुरक्षितता */
#unifiedPaperPreviewCanvas {
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}


/* =========================================================================
   v34: बोल्ड टॅगलाईन व स्वच्छ Razorpay रक्कम बटणे
   ========================================================================= */
.dash-hero-sub.dash-hero-tagline {
  margin: 4px 0 0;
  font-size: 16.5px;
  font-weight: 700;
  color: #14213d;
  line-height: 1.5;
  letter-spacing: -0.005em;
}

.mk-amt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.mk-amt-btn {
  padding: 10px 6px;
  border: 1.5px solid #93c5fd;
  background: #f0f6ff;
  color: #0d47a1;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.14s ease;
}
.mk-amt-btn.active {
  background: #0d47a1;
  color: #ffffff;
  border-color: #0d47a1;
  box-shadow: 0 3px 8px rgba(13, 71, 161, 0.28);
}
.mk-amt-btn.mk-amt-pro {
  border-color: #fdba74;
  background: #fff7ed;
  color: #c2410c;
}
.mk-amt-btn.mk-amt-pro.active {
  background: #e65100;
  color: #ffffff;
  border-color: #e65100;
  box-shadow: 0 3px 8px rgba(230, 81, 0, 0.28);
}

@media (max-width: 520px) {
  .dash-hero-sub.dash-hero-tagline {
    font-size: 14.8px;
  }
}


/* =========================================================================
   v41: A4 वर १ ते ४ कार्ड एकत्र प्रिंट + मोबाईलवर ठराव व वय कॅल्क्युलेटर स्पष्ट दृश्य
   ========================================================================= */
.bottom-nav {
  z-index: 2147483647 !important;
}

/* मोबाईल झटपट पट्टी (डेस्कटॉपवर लपवलेली — मोबाईलवर नेहमी वर स्पष्ट दिसते) */
.mobile-quick-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  padding: 7px 10px;
  background: #ffffff;
  border-bottom: 1px solid #e4dfd3;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.mobile-quick-bar::-webkit-scrollbar {
  display: none;
}
.mobile-quick-bar button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #d7d2c4;
  background: #faf9f5;
  color: #14213d;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.14s ease;
}
.mobile-quick-bar button.mq-age {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #92400e;
}
.mobile-quick-bar button.mq-tharav {
  background: #ecf7ee;
  border-color: #86c796;
  color: #1f5c32;
}
.mobile-quick-bar button.active {
  background: #0d47a1;
  border-color: #0d47a1;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(13, 71, 161, 0.28);
}
@media (min-width: 900px) {
  .mobile-quick-bar {
    display: none;
  }
}
@media print {
  .mobile-quick-bar {
    display: none !important;
  }
}

/* A4 मल्टी-कार्ड (१ ते ४ कार्ड) स्लॉट बार */
.a4-slot-bar {
  background: #f0f7ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.a4-slot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 800;
  color: #0d47a1;
  margin-bottom: 8px;
}
.a4-slot-count {
  background: #0d47a1;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 999px;
}
.a4-slot-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}
@media (max-width: 560px) {
  .a4-slot-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 360px) {
  .a4-slot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.a4-slot-chip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 40px;
  padding: 6px 6px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 11.8px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.14s ease;
}
.a4-slot-chip:hover {
  border-color: #3b82f6;
  background: #eff6ff;
}
.a4-slot-chip.filled {
  border-color: #2e7d32;
  background: #e8f5e9;
  color: #1b5e20;
}
.a4-slot-chip.active {
  border-color: #0d47a1;
  background: #0d47a1;
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(13, 71, 161, 0.25);
}
.a4-slot-rm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(183, 28, 28, 0.15);
  color: #b71c1c;
  font-size: 11px;
  font-weight: 900;
  margin-left: 2px;
}
.a4-slot-chip.active .a4-slot-rm {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}
.a4-slot-helper {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.a4-add-next-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1565c0 !important;
  color: #ffffff !important;
  border-color: #1565c0 !important;
  font-size: 13px !important;
}
.a4-copy-next-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff7ed !important;
  color: #9a3412 !important;
  border-color: #fdba74 !important;
  font-size: 12.5px !important;
}


/* =========================================================================
   v46: ग्रामपंचायत व सेतू CSC ऑपरेटर सेवांसाठी आकर्षक कस्टम SVG लोगो
   ========================================================================= */
.rr-icon.rr-icon-svg,
.role-gp .role-row.gp-featured-row .gp-featured-ico.rr-icon-svg {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  padding: 3px;
  overflow: hidden;
  background: #ffffff;
}
.rr-icon.rr-icon-svg .svc-svg {
  width: 100%;
  height: 100%;
  display: block;
}
@media (max-width: 520px) {
  .rr-icon.rr-icon-svg,
  .role-gp .role-row.gp-featured-row .gp-featured-ico.rr-icon-svg {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 2.5px;
  }
}
