/* ============================================
   BASE & RESET
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Default theme: light background, dark text */
html, body {
  background: #ffffff;
  color: #1a1a1a;
  font-family: 'Inter', system-ui, -apple-system, Arial, sans-serif;
  padding: 30px;
}

/* ============================================
   TYPOGRAPHY & TITLES
   ============================================ */
h2 {
  font-size: 28px;
  margin-top: 20px;
  color: #000080; /* Navy blue */
}
.section-title {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
  text-transform: uppercase;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.full-width {
  grid-column: span 2;
}
.section {
  margin-top: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
}

/* ============================================
   FORMS & INPUTS
   ============================================ */
.field {
  margin-bottom: 20px;
}
label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #000080;
}
.hint {
  font-size: 15px;
  color: #666;
  margin-top: 5px;
}
input, select {
  display: block;
  margin: 10px 0;
  padding: 10px;
  width: 100%;
  max-width: 300px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #ffffff;
  color: #1a1a1a;
}
input[type="number"].small-input,
.input-small {
  width: 80px;
  max-width: 80px;
}

/* ============================================
   BUTTONS
   ============================================ */
button,
.button {
  padding: 12px 20px;
  background: #138808;  /* Indian green */
  color: #ffffff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}
button:hover,
.button:hover {
  background: #0f6b06;
}
.button-secondary {
  background: #FF9933; /* Saffron */
  color: #ffffff;
}
.button-secondary:hover {
  background: #e68900;
}
.button {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 20px;
}

/* ============================================
   KPI GRID
   ============================================ */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.kpi {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
}
.kpi-title {
  color: #555;
  font-size: 12px;
}
.kpi-value {
  font-size: 34px;
  font-weight: bold;
  margin-top: 10px;
  color: #1a1a1a;
}
.kpi-value.green { color: #138808; }
.kpi-value.saffron { color: #FF9933; }
.kpi-value.blue { color: #000080; }

@media (max-width: 1024px) {
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   TABLES
   ============================================ */
table {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
}
td, th {
  padding: 10px;
  border-bottom: 1px solid #ddd;
}
th {
  color: #000080;
  text-align: left;
}

/* ============================================
   CARDS & SUMMARY
   ============================================ */
.card {
  background: #ffffff;
  padding: 20px;
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid #e0e0e0;
  color: #1a1a1a;
}
.summary {
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
}
.row {
  display: flex;
  justify-content: space-between;
  margin: 5px 0;
}
.result {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
}
.value {
  font-weight: bold;
}

/* ============================================
   COLOR UTILITIES
   ============================================ */
.green { color: #138808; }
.saffron { color: #FF9933; }
.blue { color: #000080; }
.red { color: #dc3545; }

/* ============================================
   RESPONSIVE (general)
   ============================================ */
@media (max-width: 768px) {
  .container { grid-template-columns: 1fr; }
  .full-width { grid-column: span 1; }
  .kpi-grid { grid-template-columns: 1fr; gap: 15px; }
  input { max-width: 100%; }
}

/* ============================================
   ACTION BOX
   ============================================ */
.action-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  margin-top: 20px;
  border: 1px solid #e0e0e0;
}
.action-title,
.action-sub {
  grid-column: span 4;
}
.action-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #000080;
}
.action-sub {
  color: #555;
  margin-bottom: 15px;
}
.action-block {
  background: #ffffff;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
}
.action-label {
  font-size: 13px;
  color: #555;
  margin-bottom: 5px;
}
.action-value {
  font-size: 18px;
  font-weight: bold;
}
.action-list {
  margin-top: 10px;
  padding-left: 18px;
}
.action-list li { margin-bottom: 6px; }
.highlight { color: #138808; font-weight: bold; }
.warning { color: #dc3545; font-weight: bold; }
.caution { color: #FF9933; font-weight: bold; }
.success { color: #138808; }

@media (max-width: 1024px) {
  .action-box { grid-template-columns: repeat(2, 1fr); }
  .action-title, .action-sub { grid-column: span 2; }
}
@media (max-width: 600px) {
  .action-box { grid-template-columns: 1fr; }
  .action-title, .action-sub { grid-column: span 1; }
}

/* ============================================
   SIMULATOR ROW
   ============================================ */
.simulator-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.sim-block {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
}
.sim-block input {
  width: 100%;
  margin-top: 10px;
}
.sim-block output {
  display: block;
  margin-top: 8px;
  font-weight: bold;
  color: #138808;
}
@media (max-width: 1024px) {
  .simulator-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .simulator-row { grid-template-columns: 1fr; }
}

/* ============================================
   HISTORY
   ============================================ */
.history-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}
@media (max-width: 1024px) {
  .history-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .history-grid { grid-template-columns: 1fr; }
}

/* Card backgrounds for history */
.green-bg {
  background: #e8f5e9;
  border: 1px solid #138808;
}
.saffron-bg {
  background: #fff3e0;
  border: 1px solid #FF9933;
}
.red-bg {
  background: #ffebee;
  border: 1px solid #dc3545;
}
.blue-bg {
  background: #e8eaf6;
  border: 1px solid #000080;
}
.card .row div:last-child {
  font-weight: bold;
}

/* ============================================
   SELECT ALL
   ============================================ */
.select-all {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
  background: #f8f9fa;
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}
.select-all input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.select-all label {
  font-size: 16px;
  cursor: pointer;
  color: #000080;
}

/* ============================================
   GLOSSARY
   ============================================ */
.glossary-container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 20px;
}
.term {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
}
.term h3 {
  color: #000080;
  margin-bottom: 10px;
}
.term p {
  margin: 6px 0;
  line-height: 1.5;
}
.term strong {
  color: #555;
}
.glossary {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  padding: 20px;
}
.left {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  height: 85vh;
  overflow-y: auto;
  position: sticky;
  top: 20px;
  border: 1px solid #e0e0e0;
}
.item {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #e0e0e0;
  font-size: 14px;
  transition: all 0.2s;
  color: #1a1a1a;
}
.item:hover { background: #e0e0e0; }
.item.active { background: #000080; color: #ffffff; font-weight: bold; }
.right {
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  overflow-y: auto;
  height: 85vh;
  border: 1px solid #e0e0e0;
}
.def-block {
  margin-bottom: 16px;
  border-left: 3px solid #FF9933;
  padding-left: 12px;
}
.def-label {
  font-weight: bold;
  color: #000080;
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.def-text {
  color: #1a1a1a;
  line-height: 1.5;
  margin: 0 0 8px 0;
}
.right h2 {
  color: #000080;
  margin-top: 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 8px;
}
.badge {
  display: inline-block;
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  color: #555;
}
ul {
  margin: 5px 0 0 20px;
  padding: 0;
}
@media (max-width: 768px) {
  .glossary {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .left {
    position: relative;
    height: auto;
    max-height: 350px;
    top: 0;
  }
  .right {
    height: auto;
    min-height: 400px;
  }
}

/* ============================================
   MESSAGE BOXES
   ============================================ */
.success-msg,
.error-msg {
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.success-msg {
  background: #e8f5e9;
  border: 1px solid #138808;
  color: #138808;
}
.error-msg {
  background: #ffebee;
  border: 1px solid #dc3545;
  color: #dc3545;
}
.warning-msg {
  background: #fff3e0;
  border: 1px solid #FF9933;
  color: #FF9933;
}

/* ============================================
   HISTORY BUTTONS
   ============================================ */
.load-btn {
  background: #138808;
  color: #ffffff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.2s;
}
.load-btn:hover { background: #0f6b06; }
.delete-btn {
  background: #dc3545;
  color: #ffffff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.2s;
}
.delete-btn:hover { background: #c82333; }
.bulk-delete-btn {
  background: #dc3545;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  margin-left: 10px;
  transition: background 0.2s;
}
.bulk-delete-btn:hover { background: #c82333; }

/* ============================================
   INLINE FORM (dashboard)
   ============================================ */
.inline-form {
  background: #f8f9fa !important;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.form-field {
  display: flex;
  flex-direction: column;
}
.form-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #000080;
  margin-bottom: 4px;
}
.form-field input,
.form-field select {
  background: #ffffff;
  color: #1a1a1a;
  border: 1px solid #ccc;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.9rem;
}
.update-btn {
  margin-top: 15px;
  background: #138808;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}
.update-btn:hover { background: #0f6b06; }

/* ============================================
   NAVBAR & HAMBURGER (global)
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #ffffff;
  border-bottom: 2px solid #FF9933;
  width: 100%;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1001;
}
.product-name {
  font-size: 16px;
  font-weight: bold;
  color: #000080;
}
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  margin-left: auto;
}
.hamburger span {
  width: 100%;
  height: 3px;
  background: #1a1a1a;
  border-radius: 3px;
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}
.nav-right {
  position: fixed;
  top: 60px;
  right: -100%;
  width: 280px;
  height: calc(100vh - 60px);
  background: #ffffff;
  border-left: 2px solid #FF9933;
  flex-direction: column;
  padding: 20px;
  gap: 10px;
  transition: right 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
  box-shadow: -5px 0 20px rgba(0,0,0,0.1);
}
.nav-right.show {
  right: 0;
}
.nav-right a {
  color: #1a1a1a;
  text-decoration: none;
  font-size: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 500;
  display: block;
  text-align: left;
  width: 100%;
}
.nav-right a:hover {
  color: #ffffff;
  background: #138808;
  font-weight: 700;
  transform: translateX(5px);
}
.nav-right a.active {
  color: #000080;
  background: rgba(0,0,128,0.1);
  font-weight: 700;
  border-left: 3px solid #000080;
}
@media (max-width: 768px) {
  .navbar {
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 15px;
  }
  .hamburger { display: flex; margin-left: auto; margin-right: 0; }
  .product-name { font-size: 14px; }
  .logo { width: 30px; height: 30px; }
  .nav-right { width: 100%; top: 52px; height: calc(100vh - 52px); }
}
@media (min-width: 769px) {
  .nav-right { width: 300px; }
}

/* ============================================
   CMO STRATEGIC METRICS
   ============================================ */
.cmo-section {
  border-left: 4px solid #FF9933;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.cmo-section h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #000080;
}
.cmo-section h3:before {
  content: "🎯";
  font-size: 1.2rem;
}
.cmo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1rem;
}
.cmo-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  border: 1px solid #e0e0e0;
}
.cmo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.cmo-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #555;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.cmo-value {
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1.2;
}
.cmo-value.green { color: #138808; }
.cmo-value.red { color: #dc3545; }
.cmo-value.saffron { color: #FF9933; }
.cmo-value.blue { color: #000080; }
.cmo-summary {
  background: #ffffff;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: #1a1a1a;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  border-top: 1px solid #e0e0e0;
  margin-top: 0.5rem;
}
.cmo-summary span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
@media (max-width: 768px) {
  .cmo-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .cmo-value { font-size: 1.4rem; }
  .cmo-summary { flex-direction: column; align-items: center; gap: 0.5rem; text-align: center; }
}

/* ============================================
   FEEDBACK
   ============================================ */
.feedback-container {
  max-width: 700px;
  margin: 30px auto;
}
.feedback-form .field { margin-bottom: 20px; }
.feedback-form label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
  color: #000080;
}
.feedback-form select,
.feedback-form textarea,
.feedback-form input[type="text"] {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #ffffff;
  color: #1a1a1a;
  font-size: 0.9rem;
}
.feedback-form textarea {
  min-height: 150px;
  resize: vertical;
}
.note {
  font-size: 0.8rem;
  color: #555;
  margin-top: 20px;
  text-align: center;
}

/* ============================================
   LOGIN PAGE (dark overlay, Indian flag accent)
   ============================================ */
.login-page {
  margin: 0;
  height: 100vh;
  display: flex;
  background: radial-gradient(circle at top left, rgba(255,153,51,0.20), transparent 28%), linear-gradient(rgba(2,6,23,0.88), rgba(2,6,23,0.96));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow-x: hidden;
  padding: 0;
}
.login-page::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: #138808;
  filter: blur(180px);
  opacity: 0.2;
  top: -100px;
  left: -100px;
  z-index: 0;
}
.login-page::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: #000080;
  filter: blur(150px);
  opacity: 0.15;
  bottom: -100px;
  right: -100px;
  z-index: 0;
}

/* Login header */
.login-page .header {
  position: absolute;
  top: 20px;
  left: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}
.login-page .header-logo {
  height: 35px;
  width: auto;
}
.login-page .header-brand {
  color: #ffffff;
  font-weight: bold;
  font-size: 18px;
}

/* Login container */
.login-page .login-container {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1200px;
  margin: auto;
  position: relative;
  z-index: 1;
  padding: 20px;
}
.login-page .login-top-expired {
  flex: 0 0 100%;
  width: 100%;
  margin-bottom: 20px;
}

/* Left side */
.login-page .login-left {
  flex: 1;
  padding: 40px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-page .login-left h1 {
  font-size: 40px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff, #FF9933);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.login-page .login-left p {
  font-size: 18px;
  color: #94a3b8;
  margin-bottom: 30px;
  line-height: 1.5;
}
.login-page .preview {
  background: rgba(17, 24, 39, 0.6);
  border-radius: 20px;
  padding: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid #334155;
  margin-top: 20px;
}
.login-page .kpi-grid-login {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.login-page .kpi-login {
  flex: 1;
  background: #0f172a;
  padding: 15px 20px;
  border-radius: 12px;
  text-align: center;
  min-width: 100px;
}
.login-page .kpi-title-login {
  font-size: 12px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.login-page .kpi-value-login {
  font-size: 28px;
  font-weight: bold;
}
.login-page .kpi-value-login.green { color: #138808; }
.login-page .kpi-value-login.red { color: #dc3545; }
.login-page .kpi-value-login.saffron { color: #FF9933; }

.login-page .chart {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  height: 80px;
  margin-top: 15px;
}
.login-page .bar {
  flex: 1;
  background: #138808;
  border-radius: 4px;
  transition: height 0.3s ease;
  min-width: 8px;
}
.login-page .bar:nth-child(2) { background: #FF9933; }
.login-page .bar:nth-child(3) { background: #000080; }
.login-page .bar:nth-child(4) { background: #138808; }
.login-page .bar:nth-child(5) { background: #FF9933; }

/* Right side – login box */
.login-page .login-right {
  flex: 0 0 380px;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-page .login-box {
  width: 100%;
  padding: 35px;
  border-radius: 20px;
  background: rgba(17, 24, 39, 0.8);
  backdrop-filter: blur(15px);
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
  border: 1px solid #334155;
}
.login-page .login-box h2 {
  text-align: center;
  color: #FF9933;
  margin-bottom: 25px;
  font-size: 28px;
}
.login-page .login-box input,
.login-page .login-box select {
  width: 100%;
  padding: 12px 15px;
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #ffffff;
  font-size: 14px;
  box-sizing: border-box;
}
.login-page .login-box input:focus,
.login-page .login-box select:focus {
  outline: none;
  border-color: #138808;
}
.login-page .login-box button {
  width: 100%;
  padding: 12px;
  margin-top: 20px;
  border: none;
  border-radius: 8px;
  background: #138808;
  color: #ffffff;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}
.login-page .login-box button:hover {
  background: #0f6b06;
  transform: translateY(-1px);
}
.login-page .error {
  color: #dc3545;
  text-align: center;
  margin-bottom: 15px;
  padding: 8px;
  background: rgba(239,68,68,0.1);
  border-radius: 8px;
}
.login-page .forgot-link {
  text-align: right;
  margin-top: 10px;
}
.login-page .forgot-link a {
  color: #94a3b8;
  font-size: 13px;
  text-decoration: none;
}
.login-page .forgot-link a:hover {
  color: #FF9933;
}

/* Login page responsive */
@media (max-width: 768px) {
  .login-page .header {
    top: 15px;
    left: 20px;
  }
  .login-page .header-brand {
    font-size: 14px;
  }
  .login-page .login-container {
    flex-direction: column;
    padding: 80px 20px 40px;
  }
  .login-page .login-left {
    padding: 20px;
    text-align: center;
  }
  .login-page .login-left h1 {
    font-size: 28px;
  }
  .login-page .login-left p {
    font-size: 14px;
  }
  .login-page .login-right {
    width: 100%;
    margin-top: 30px;
  }
  .login-page .kpi-login {
    min-width: 90px;
  }
}

/* ============================================
   LANDING PAGE (dark background, flag accents)
   ============================================ */
.landing-page {
  background: linear-gradient(135deg, #0a0f1e 0%, #0a0f1e 50%, #0f1424 100%);
  padding: 0;
}

/* Override base styles for dark background */
.landing-page .section-title {
  color: #e2e8f0 !important;
}
.landing-page h2 {
  color: #ffffff !important;
}
.landing-page p,
.landing-page li,
.landing-page .row,
.landing-page .field,
.landing-page .hint,
.landing-page .action-list li {
  color: #cbd5e1 !important;
}
.landing-page .card,
.landing-page .summary,
.landing-page .action-block {
  background: #1e293b !important;
  color: #e2e8f0 !important;
  border-color: #334155 !important;
}
.landing-page .kpi {
  background: #1e293b !important;
  border-color: #334155 !important;
}
.landing-page .kpi-title {
  color: #94a3b8 !important;
}
.landing-page .kpi-value {
  color: #ffffff !important;
}

/* Landing navbar */
.landing-page .landing-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  background: rgba(10, 15, 30, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid #FF9933;
}
.landing-page .landing-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.landing-page .landing-logo img {
  max-width: 125px;
  height: auto;
}
.landing-page .landing-logo span {
  font-size: 0.8rem;
  color: #94a3b8;
}
.landing-page .landing-nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.landing-page .landing-nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.3s;
}
.landing-page .landing-nav-links a:hover,
.landing-page .landing-nav-links a.is-section-active {
  color: #FF9933;
}
.landing-page .login-link {
  background: #138808;
  color: #ffffff !important;
  padding: 8px 24px;
  border-radius: 8px;
  font-weight: 600;
}
.landing-page .login-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(19, 136, 8, 0.4);
}

/* Mobile menu */
.landing-page .landing-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}
.landing-page .landing-hamburger span {
  width: 100%;
  height: 3px;
  background: #ffffff;
  border-radius: 3px;
  transition: all 0.3s ease;
}
.landing-page .landing-hamburger.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.landing-page .landing-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.landing-page .landing-hamburger.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}
.landing-page .landing-mobile-menu {
  position: fixed;
  top: 70px;
  right: -100%;
  width: 280px;
  height: calc(100vh - 70px);
  background: #0a0f1e;
  border-left: 2px solid #FF9933;
  flex-direction: column;
  padding: 30px 20px;
  gap: 20px;
  transition: right 0.3s ease;
  z-index: 999;
}
.landing-page .landing-mobile-menu.show {
  right: 0;
}
.landing-page .landing-mobile-menu a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 10px 0;
  display: block;
}
.landing-page .landing-mobile-menu a:hover {
  color: #FF9933;
}

/* Hero */
.landing-page .hero {
  padding: 120px 5% 80px;
  text-align: center;
  background: radial-gradient(ellipse at top, rgba(19, 136, 8, 0.15), transparent);
}
.landing-page .hero-badge {
  display: inline-block;
  background: rgba(255, 153, 51, 0.15);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  color: #FF9933;
  margin-bottom: 25px;
  border: 1px solid rgba(255, 153, 51, 0.3);
}
.landing-page .hero h1 {
  font-size: clamp(2.1rem, 3.6vw, 3.35rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.04;
  color: #ffffff;
}
.landing-page .hero h1 span {
  background: linear-gradient(135deg, #FF9933, #138808);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.landing-page .hero-subtitle {
  font-size: 1.25rem;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto 30px;
}

/* Buttons */
.landing-page .btn-primary {
  background: #138808;
  color: #ffffff;
  padding: 14px 40px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
  display: inline-block;
}
.landing-page .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(19, 136, 8, 0.4);
}
.landing-page .btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #334155;
  color: #ffffff;
  padding: 14px 40px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}
.landing-page .btn-secondary:hover {
  border-color: #FF9933;
  background: rgba(255, 153, 51, 0.1);
}

/* Sections */
.landing-page .steps,
.landing-page .features,
.landing-page .metrics-preview,
.landing-page .testimonials,
.landing-page .cta-section {
  padding: 80px 5%;
}
.landing-page .section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff !important;
}
.landing-page .section-subtitle {
  text-align: center;
  color: #94a3b8;
  margin-bottom: 50px;
  font-size: 1.1rem;
}
.landing-page .steps-grid,
.landing-page .features-grid,
.landing-page .testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
.landing-page .step-card,
.landing-page .feature-item,
.landing-page .testimonial-card {
  background: rgba(30, 41, 59, 0.5);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  border: 1px solid #334155;
  transition: all 0.3s;
  color: #e2e8f0;
}
.landing-page .step-card:hover,
.landing-page .feature-item:hover,
.landing-page .testimonial-card:hover {
  transform: translateY(-5px);
  border-color: #FF9933;
}
.landing-page .step-number {
  width: 50px;
  height: 50px;
  background: #138808;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 20px;
  color: #ffffff;
}
.landing-page .feature-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}
.landing-page .feature-item h4,
.landing-page .step-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: #FF9933;
}
.landing-page .step-card p,
.landing-page .feature-item p,
.landing-page .testimonial-text {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Metrics */
.landing-page .metrics-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}
.landing-page .metric-card {
  background: #1e293b;
  border-radius: 15px;
  padding: 25px 20px;
  text-align: center;
  border: 1px solid #334155;
}
.landing-page .metric-label {
  font-size: 0.8rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.landing-page .metric-value {
  font-size: 1.8rem;
  font-weight: bold;
  color: #138808;
  margin-top: 10px;
}

/* Testimonials */
.landing-page .testimonial-author {
  color: #FF9933;
  font-weight: 600;
  margin-top: 15px;
}
.landing-page .testimonial-role {
  color: #94a3b8;
  font-size: 0.8rem;
}

/* CTA */
.landing-page .cta-section {
  text-align: center;
  background: linear-gradient(135deg, #1a2a3a, #0a0f1e);
}
.landing-page .cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #ffffff !important;
}
.landing-page .cta-section p {
  color: #94a3b8;
}
.landing-page .btn-large {
  padding: 16px 50px;
  font-size: 1.1rem;
}

/* Footer */
.landing-page .footer {
  padding: 40px 5%;
  text-align: center;
  border-top: 1px solid #334155;
  color: #64748b;
  font-size: 0.85rem;
}

/* Landing page responsive */
@media (max-width: 1024px) {
  .landing-page .steps-grid,
  .landing-page .features-grid,
  .landing-page .metrics-container,
  .landing-page .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .landing-page .hero h1 { font-size: 2rem; }
  .landing-page .steps-grid,
  .landing-page .features-grid,
  .landing-page .metrics-container,
  .landing-page .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .landing-page .section-title { font-size: 1.8rem; }
  .landing-page .metric-value { font-size: 1.4rem; }
  .landing-page .landing-nav-links { display: none; }
  .landing-page .landing-hamburger { display: flex; }
  .landing-page .landing-mobile-menu { display: flex; }
}


/* ==========================================================
   INDIA FLAG LIGHT THEME OVERRIDES - PyxiVisio INDIA
   Add this section at the END of style.css so it overrides older dark styles.
   ========================================================== */
:root {
  --india-saffron: #FF9933;
  --india-green: #138808;
  --india-navy: #000080;
  --india-white: #ffffff;
  --india-cream: #fffaf3;
  --india-mint: #f1fff3;
  --india-blue-soft: #eef2ff;
  --text-main: #172033;
  --text-muted: #5d6678;
  --border-soft: #e6e8ef;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.08);
}

html, body {
  background: linear-gradient(180deg, #fff7ee 0%, #ffffff 34%, #f2fff4 100%) !important;
  color: var(--text-main) !important;
}

body::selection {
  background: rgba(255,153,51,0.25);
}

/* Shared tricolour accent */
.tricolour-line,
.landing-page .landing-navbar::after,
.login-page .login-box::before,
.login-page .preview::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--india-saffron) 0 33%, var(--india-white) 33% 66%, var(--india-green) 66% 100%);
  border-radius: 999px;
  border: 1px solid rgba(0,0,128,0.08);
}

/* ================= LOGIN PAGE LIGHT THEME ================= */
.login-page {
  min-height: 100vh;
  height: auto !important;
  background:
    radial-gradient(circle at top left, rgba(255,153,51,0.28), transparent 34%),
    radial-gradient(circle at bottom right, rgba(19,136,8,0.22), transparent 38%),
    linear-gradient(135deg, #fff7ed 0%, #ffffff 48%, #f0fff3 100%) !important;
  color: var(--text-main) !important;
  overflow-x: hidden;
}

.login-page::before,
.login-page::after {
  display: none !important;
}

.login-page .header {
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 8px 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  backdrop-filter: blur(10px);
}

.login-page .header-brand {
  color: var(--india-navy) !important;
}

.login-page .login-container {
  gap: 26px;
  align-items: center;
}

.login-page .login-left {
  color: var(--text-main) !important;
}

.login-page .login-left h1 {
  color: var(--india-navy) !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  line-height: 1.08;
}

.login-page .login-left h1::after {
  content: "";
  display: block;
  width: 160px;
  height: 5px;
  margin-top: 18px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--india-saffron), var(--india-white), var(--india-green));
  border: 1px solid rgba(0,0,128,0.08);
}

.login-page .login-left p {
  color: var(--text-muted) !important;
}

.login-page .preview {
  position: relative;
  background: rgba(255,255,255,0.82) !important;
  border: 1px solid var(--border-soft) !important;
  box-shadow: var(--shadow-soft);
  color: var(--text-main) !important;
  overflow: hidden;
}

.login-page .preview::before {
  margin: -20px -20px 18px -20px;
  border-radius: 20px 20px 0 0;
}

.login-page .kpi-login {
  background: #ffffff !important;
  border: 1px solid var(--border-soft);
  box-shadow: 0 8px 18px rgba(0,0,0,0.05);
}

.login-page .kpi-title-login {
  color: var(--text-muted) !important;
}

.login-page .chart {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 10px;
}

.login-page .login-box {
  position: relative;
  background: rgba(255,255,255,0.94) !important;
  border: 1px solid var(--border-soft) !important;
  box-shadow: var(--shadow-soft) !important;
  overflow: hidden;
}

.login-page .login-box::before {
  margin: -35px -35px 26px -35px;
  border-radius: 20px 20px 0 0;
}

.login-page .login-box h2 {
  color: var(--india-navy) !important;
}

.login-page .login-box input,
.login-page .login-box select {
  background: #ffffff !important;
  color: var(--text-main) !important;
  border: 1px solid #d7dce7 !important;
}

.login-page .login-box input:focus,
.login-page .login-box select:focus {
  border-color: var(--india-saffron) !important;
  box-shadow: 0 0 0 4px rgba(255,153,51,0.15);
}

.login-page .login-box button,
.landing-page .btn-primary,
.landing-page .login-link {
  background: linear-gradient(135deg, var(--india-green), #0f6b06) !important;
  color: #ffffff !important;
}

.login-page .forgot-link a {
  color: var(--india-navy) !important;
}

.login-page .error {
  background: #fff1f1 !important;
  border: 1px solid #ffc9c9;
}

/* ================= LANDING PAGE LIGHT THEME ================= */
.landing-page {
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #f1fff3 100%) !important;
  color: var(--text-main) !important;
  padding: 0 !important;
}

.landing-page .landing-navbar {
  background: rgba(255,255,255,0.94) !important;
  border-bottom: 0 !important;
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}

.landing-page .landing-navbar::after {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 0;
}

.landing-page .landing-logo span,
.landing-page .landing-nav-links a,
.landing-page .landing-mobile-menu a {
  color: var(--text-main) !important;
}

.landing-page .landing-nav-links a:hover,
.landing-page .landing-mobile-menu a:hover {
  color: var(--india-green) !important;
}

.landing-page .landing-hamburger span {
  background: var(--india-navy) !important;
}

.landing-page .landing-mobile-menu {
  background: #ffffff !important;
  border-left: 3px solid var(--india-saffron) !important;
  box-shadow: -18px 0 35px rgba(0,0,0,0.08);
}

.landing-page .hero {
  background:
    radial-gradient(circle at 15% 10%, rgba(255,153,51,0.22), transparent 32%),
    radial-gradient(circle at 85% 15%, rgba(19,136,8,0.18), transparent 34%),
    linear-gradient(180deg, #fffaf3, #ffffff) !important;
}

.landing-page .hero-badge {
  background: #ffffff !important;
  color: var(--india-navy) !important;
  border: 1px solid var(--border-soft) !important;
  box-shadow: 0 8px 18px rgba(0,0,0,0.05);
}

.landing-page .hero h1,
.landing-page h2,
.landing-page .section-title,
.landing-page .cta-section h2 {
  color: var(--india-navy) !important;
}

.landing-page .hero h1 span {
  background: linear-gradient(135deg, var(--india-saffron), var(--india-green)) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

.landing-page .hero-subtitle,
.landing-page .section-subtitle,
.landing-page p,
.landing-page li,
.landing-page .step-card p,
.landing-page .feature-item p,
.landing-page .testimonial-text,
.landing-page .testimonial-role,
.landing-page .metric-label,
.landing-page .cta-section p,
.landing-page .footer {
  color: var(--text-muted) !important;
}

.landing-page .btn-secondary {
  background: #ffffff !important;
  border: 1px solid var(--border-soft) !important;
  color: var(--india-navy) !important;
  box-shadow: 0 8px 18px rgba(0,0,0,0.05);
}

.landing-page .btn-secondary:hover {
  border-color: var(--india-saffron) !important;
  background: #fff7ed !important;
}

.landing-page .step-card,
.landing-page .feature-item,
.landing-page .testimonial-card,
.landing-page .metric-card {
  background: rgba(255,255,255,0.9) !important;
  border: 1px solid var(--border-soft) !important;
  color: var(--text-main) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.landing-page .step-card:hover,
.landing-page .feature-item:hover,
.landing-page .testimonial-card:hover,
.landing-page .metric-card:hover {
  border-color: var(--india-saffron) !important;
  box-shadow: 0 18px 38px rgba(255,153,51,0.14);
}

.landing-page .step-number {
  background: linear-gradient(135deg, var(--india-saffron), var(--india-green)) !important;
}

.landing-page .feature-item h4,
.landing-page .step-card h3,
.landing-page .testimonial-author {
  color: var(--india-green) !important;
}

.landing-page .metric-value {
  color: var(--india-navy) !important;
}

.landing-page .metrics-preview,
.landing-page .testimonials {
  background: linear-gradient(180deg, #ffffff, #fffaf3) !important;
}

.landing-page .features,
.landing-page .steps {
  background: #ffffff !important;
}

.landing-page .cta-section {
  background: linear-gradient(135deg, #fff7ed, #ffffff, #f1fff3) !important;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.landing-page .footer {
  background: #ffffff !important;
  border-top: 1px solid var(--border-soft) !important;
}

/* Existing app pages also get a softer India theme */
.navbar {
  background: rgba(255,255,255,0.95) !important;
  border-bottom: 3px solid var(--india-saffron) !important;
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
}

.section,
.card,
.kpi,
.action-box,
.sim-block,
.inline-form,
.term,
.left,
.right,
.cmo-section,
.cmo-card {
  background: #ffffff !important;
  border-color: var(--border-soft) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.section,
.cmo-section {
  border-top: 4px solid var(--india-saffron) !important;
}

h1, h2, h3, label, .product-name, .action-title, .def-label, th {
  color: var(--india-navy) !important;
}

input, select, textarea {
  background: #ffffff !important;
  color: var(--text-main) !important;
  border: 1px solid #d7dce7 !important;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--india-saffron) !important;
  box-shadow: 0 0 0 4px rgba(255,153,51,0.14);
}

@media (max-width: 768px) {
  .login-page .login-left h1::after {
    margin-left: auto;
    margin-right: auto;
  }
  .login-page .login-box {
    padding: 28px;
  }
  .login-page .login-box::before {
    margin: -28px -28px 22px -28px;
  }
}


/* iPRISM public-only asset marker: used by index.php and login.php wrappers. */
body.landing-page, body.login-page{background:linear-gradient(135deg,rgba(255,153,51,.08),#fff 45%,rgba(19,136,8,.08))}.landing-navbar{border-top:5px solid #ff9933}.btn-primary{background:#138808}.btn-secondary{border-color:rgba(255,153,51,.35)}

/* ============================================================
   iPRISM Package 2A: public page width + logo footer
   ============================================================ */
:root {
  --iprism-public-content-width: 90%;
}

.landing-page .landing-navbar,
.landing-page .footer,
.login-page .header {
  width: 100%;
  max-width: none;
}

.landing-page .hero,
.landing-page .steps,
.landing-page .metrics-preview,
.landing-page .features,
.landing-page .testimonials,
.landing-page .cta-section,
.login-page .login-container {
  width: var(--iprism-public-content-width);
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.landing-page .steps-grid,
.landing-page .features-grid,
.landing-page .testimonials-grid,
.landing-page .metrics-container {
  width: 100%;
  max-width: none;
}

.landing-page .footer {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  background: #000000 !important;
}

.landing-footer-inner {
  width: var(--iprism-public-content-width);
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.landing-footer-logo {
  display: block;
  width: min(380px, 100%);
  height: auto;
  object-fit: contain;
  margin-bottom: 8px;
}

.landing-mobile-logo {
  display: none;
}

.landing-mobile-logo img {
  width: min(190px, 72vw);
  max-height: 56px;
  object-fit: contain;
}

.landing-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  font-weight: 800;
}

.landing-footer-links a {
  color: #cbd5e1;
  text-decoration: none;
}

.landing-footer-links a:hover,
.landing-footer-links a:focus-visible {
  color: #ff9933;
}

@media (max-width: 768px) {
  :root {
    --iprism-public-content-width: 94%;
  }

  .landing-page .hero,
  .landing-page .steps,
  .landing-page .metrics-preview,
  .landing-page .features,
  .landing-page .testimonials,
  .landing-page .cta-section,
  .login-page .login-container,
  .landing-footer-inner {
    width: var(--iprism-public-content-width);
  }

  .landing-footer-logo {
    width: min(310px, 100%);
  }

  .landing-mobile-logo {
    display: block;
    padding-bottom: 8px;
  }
}

/* Sales-director public page polish */
.landing-page .iprism-hero-upgrade {
  display: grid !important;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.82fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
  text-align: left !important;
  padding-top: clamp(72px, 8vw, 110px) !important;
  padding-bottom: clamp(56px, 6vw, 86px) !important;
  background:
    linear-gradient(135deg, #fffaf3 0%, #ffffff 58%, #eef8f0 100%) !important;
}

.landing-page .iprism-hero-copy .hero-subtitle {
  max-width: 720px !important;
  margin: 0 0 30px !important;
  font-size: clamp(1.04rem, 1.7vw, 1.22rem) !important;
  line-height: 1.68;
}

.landing-page .iprism-hero-upgrade h1 {
  max-width: 780px;
  margin-bottom: 22px !important;
  line-height: 0.98 !important;
}

.landing-page .iprism-hero-upgrade .cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.iprism-hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.iprism-hero-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.86);
  color: var(--india-navy);
  font-size: 0.84rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.iprism-forecast-board {
  padding: 22px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.12);
}

.iprism-board-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--india-navy);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.iprism-board-top img {
  width: min(190px, 56%);
  max-height: 58px;
  object-fit: contain;
}

.iprism-board-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.iprism-board-kpis div,
.iprism-mix-bars div {
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: #fffaf3;
}

.iprism-board-kpis div {
  padding: 14px;
}

.iprism-board-kpis span {
  display: block;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.iprism-board-kpis strong {
  display: block;
  margin-top: 3px;
  color: var(--india-navy);
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.iprism-platform-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.iprism-platform-strip img {
  width: 100%;
  height: 58px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  object-fit: contain;
}

.iprism-mix-bars {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.iprism-mix-bars div {
  position: relative;
  overflow: hidden;
  min-height: 42px;
  padding: 11px 13px;
}

.iprism-mix-bars span {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, rgba(255, 153, 51, 0.34), rgba(19, 136, 8, 0.18));
}

.iprism-mix-bars strong {
  position: relative;
  z-index: 1;
  color: var(--india-navy);
  font-size: 0.88rem;
}

@media (max-width: 980px) {
  .landing-page .iprism-hero-upgrade {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .landing-page .iprism-hero-upgrade {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .landing-page .iprism-hero-upgrade h1 {
    font-size: 2.05rem !important;
  }

  .landing-page .iprism-hero-upgrade .btn-primary,
  .landing-page .iprism-hero-upgrade .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .iprism-board-top,
  .iprism-board-kpis,
  .iprism-platform-strip {
    grid-template-columns: 1fr;
  }

  .iprism-board-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   iPRISM final public footer width
============================================================ */
.landing-page .landing-footer,
.landing-page .footer.landing-footer {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.landing-page .landing-footer .landing-footer-inner {
  width: 90% !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

html,
body.landing-page {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .landing-page .landing-mobile-menu {
    display: none !important;
    left: auto !important;
    right: 0 !important;
    width: min(280px, 86vw) !important;
  }

  .landing-page .landing-mobile-menu.show {
    display: flex !important;
    right: 0 !important;
  }
}

/* Mobile nav viewport lock */
@media (max-width: 768px) {
  .landing-page .landing-navbar {
    z-index: 10000;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255, 255, 255, 0.98);
  }

  .landing-page .landing-hamburger {
    position: relative;
    z-index: 10030;
  }

  .landing-page .landing-mobile-menu {
    position: fixed !important;
    top: 82px !important;
    right: max(14px, 4vw) !important;
    bottom: auto !important;
    left: auto !important;
    width: min(320px, calc(100vw - 28px)) !important;
    max-height: calc(100dvh - 98px);
    overflow-y: auto;
    z-index: 10020 !important;
    display: none !important;
  }

  .landing-page .landing-mobile-menu.show {
    display: flex !important;
  }
}

/* Unified public chrome final override */
html,
body.landing-page {
  min-height: 100vh;
}

body.landing-page {
  display: flex;
  flex-direction: column;
}

.landing-page main {
  flex: 1 0 auto;
}

.landing-page .landing-navbar {
  width: 100% !important;
  padding-left: 2.5% !important;
  padding-right: 2.5% !important;
  z-index: 10000;
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.landing-page .landing-logo {
  min-width: 0;
}

.landing-page .landing-logo img {
  width: min(190px, 24vw);
  height: auto;
  max-height: 58px;
  object-fit: contain;
}

.landing-page .landing-logo > span {
  display: grid;
  gap: 2px;
  max-width: min(400px, 44vw);
  color: var(--india-navy);
  font-size: clamp(0.66rem, 1vw, 0.88rem);
  line-height: 1.12;
  letter-spacing: 0.06em;
  white-space: normal;
}

.landing-page .landing-logo > span span {
  display: block;
}

.landing-page .landing-nav-links {
  display: none !important;
}

.landing-page .landing-hamburger {
  display: flex !important;
  position: relative;
  z-index: 10030;
}

.landing-page .landing-mobile-menu {
  position: fixed !important;
  inset: 0 0 0 auto !important;
  width: min(380px, 88vw) !important;
  height: 100dvh !important;
  max-height: none !important;
  display: none !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 10px !important;
  padding: 24px !important;
  border: 0 !important;
  border-left: 1px solid rgba(15, 23, 42, 0.12) !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: -28px 0 80px rgba(15, 23, 42, 0.22) !important;
  z-index: 10020 !important;
  overflow-y: auto !important;
}

.landing-page .landing-mobile-menu.show {
  display: flex !important;
}

.landing-page .landing-mobile-logo {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 0 18px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

.landing-page .landing-mobile-logo img {
  width: min(190px, 58vw);
  max-height: 58px;
  object-fit: contain;
}

.landing-menu-close {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 50%;
  background: #fffaf3;
  color: var(--india-navy);
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 950;
  line-height: 1;
}

.landing-page main[data-section-switcher] > section:not([hidden]) {
  min-height: calc(100vh - 330px);
  display: grid;
  align-content: center;
}

.landing-page .landing-footer {
  flex-shrink: 0;
}

.landing-page .landing-footer .landing-footer-inner {
  width: 95% !important;
  max-width: none !important;
}

.iprism-scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10040;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--india-green);
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  cursor: pointer;
  font-weight: 950;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.iprism-scroll-top span {
  display: none;
}

.iprism-scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 720px) {
  .landing-page .landing-logo img {
    width: min(146px, 34vw);
  }

  .landing-page .landing-logo > span {
    max-width: 36vw;
    font-size: 0.58rem;
    letter-spacing: 0.03em;
  }
}

/* India public chrome rebuild: iPRISM reference theme */
:root {
  --india-chrome-navy: #000080;
  --india-chrome-saffron: #ff9933;
  --india-chrome-green: #138808;
  --india-chrome-text: #0f172a;
  --india-chrome-muted: #64748b;
  --india-chrome-line: rgba(15, 23, 42, 0.12);
  --india-public-nav-space: 84px;
}

html,
body.landing-page {
  width: 100%;
  min-height: 100vh;
  padding: 0 !important;
  overflow-x: hidden;
}

html {
  scroll-padding-top: var(--india-public-nav-space);
}

body.landing-page {
  display: flex;
  flex-direction: column;
  padding-top: var(--india-public-nav-space) !important;
  background: linear-gradient(135deg, rgba(255, 153, 51, 0.08), #ffffff 45%, rgba(19, 136, 8, 0.08));
}

.landing-page main {
  flex: 1 0 auto;
}

.india-public-nav {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  z-index: 10000;
  width: 100%;
  border-top: 5px solid var(--india-chrome-saffron);
  border-bottom: 1px solid var(--india-chrome-line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.landing-page section {
  scroll-margin-top: calc(var(--india-public-nav-space) + 14px);
}

.india-public-nav-inner {
  width: 95%;
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.india-public-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--india-chrome-navy);
  text-decoration: none;
}

.india-public-logo {
  width: min(190px, 24vw);
  height: auto;
  max-height: 58px;
  object-fit: contain;
}

.india-product-name {
  display: grid;
  gap: 2px;
  max-width: min(410px, 44vw);
  color: var(--india-chrome-navy);
  font-size: clamp(0.66rem, 1vw, 0.9rem);
  font-weight: 950;
  letter-spacing: 0.06em;
  line-height: 1.12;
  text-transform: uppercase;
  white-space: normal;
}

.india-product-name span {
  display: block;
}

.india-menu-toggle {
  width: 46px !important;
  height: 44px !important;
  min-width: 46px;
  padding: 0 !important;
  display: inline-grid !important;
  place-items: center;
  gap: 0;
  border: 1px solid rgba(0, 0, 128, 0.18) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  cursor: pointer;
}

.india-menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  grid-area: 1 / 1;
  border-radius: 99px;
  background: var(--india-chrome-navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.india-menu-toggle span:nth-child(1) {
  transform: translateY(-8px);
}

.india-menu-toggle span:nth-child(3) {
  transform: translateY(8px);
}

.india-menu-toggle.is-open span:nth-child(1) {
  transform: rotate(45deg);
}

.india-menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.india-menu-toggle.is-open span:nth-child(3) {
  transform: rotate(-45deg);
}

.india-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10010;
  background: rgba(15, 23, 42, 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

body.india-menu-open .india-menu-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.india-menu-open {
  overflow: hidden;
}

.india-slide-menu {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 10020;
  width: min(390px, 88vw);
  height: 100dvh;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  border-left: 1px solid var(--india-chrome-line);
  background: #ffffff;
  box-shadow: -28px 0 80px rgba(15, 23, 42, 0.22);
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.24s ease, opacity 0.2s ease, visibility 0.2s ease;
}

.india-slide-menu.is-open {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.india-slide-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--india-chrome-line);
}

.india-slide-menu-header img {
  width: min(190px, 58vw);
  max-height: 58px;
  object-fit: contain;
}

.india-menu-close {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px;
  padding: 0 !important;
  border: 1px solid var(--india-chrome-line) !important;
  border-radius: 50% !important;
  background: #fffaf3 !important;
  color: var(--india-chrome-navy) !important;
  cursor: pointer;
  font-size: 1.45rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

.india-slide-menu a {
  padding: 13px 14px;
  border-radius: 12px;
  color: var(--india-chrome-text);
  font-weight: 900;
  text-decoration: none;
}

.india-slide-menu a:hover,
.india-slide-menu a:focus-visible,
.india-slide-menu a.is-section-active {
  color: var(--india-chrome-navy);
  background: rgba(255, 153, 51, 0.12);
}

.india-slide-menu .india-menu-primary {
  margin-top: 8px;
  color: #ffffff;
  text-align: center;
  background: var(--india-chrome-green);
}

.india-public-footer {
  width: 100%;
  flex-shrink: 0;
  border-top: 1px solid var(--india-chrome-line);
  background: #ffffff;
  padding: 24px 0;
}

.india-public-footer-inner {
  width: 95%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(280px, 1.25fr) minmax(190px, 1fr);
  align-items: center;
  gap: 22px;
}

.india-footer-left {
  display: grid;
  gap: 8px;
}

.india-footer-left img {
  width: min(180px, 42vw);
  max-height: 54px;
  object-fit: contain;
}

.india-footer-left p,
.india-footer-center span {
  margin: 0;
  color: var(--india-chrome-muted);
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.5;
}

.india-footer-center {
  display: grid;
  gap: 6px;
  text-align: center;
}

.india-footer-center strong {
  color: var(--india-chrome-navy);
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: 0.03em;
  line-height: 1.25;
  text-transform: uppercase;
}

.india-footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.india-footer-links a {
  color: var(--india-chrome-navy);
  font-weight: 900;
  text-decoration: none;
}

.india-footer-links a:hover,
.india-footer-links a:focus-visible {
  color: var(--india-chrome-green);
}

.india-footer-terms {
  margin-right: 150px;
}

@media (max-width: 980px) {
  .india-footer-terms {
    margin-right: 0;
  }
}

@media (max-width: 720px) {
  :root {
    --india-public-nav-space: 78px;
  }

  .india-public-nav-inner {
    min-height: 72px;
  }

  .india-public-logo {
    width: min(146px, 34vw);
  }

  .india-product-name {
    max-width: 36vw;
    font-size: 0.58rem;
    letter-spacing: 0.03em;
  }

  .india-public-footer-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .india-footer-center {
    text-align: left;
  }

  .india-footer-links {
    justify-content: flex-start;
  }
}

/* Public/login short-page guard. */
html,
body {
  min-height: 100%;
}

body.landing-page,
body.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0;
}

body.landing-page > main,
body.login-page > main,
body.login-page > .login-container {
  flex: 1 0 auto;
}

body.landing-page main[data-section-switcher] > section:not([hidden]) {
  min-height: calc(100vh - var(--india-public-nav-space, 84px) - 130px);
  min-height: calc(100dvh - var(--india-public-nav-space, 84px) - 130px);
  display: grid;
  align-content: center;
}

body.login-page > .login-container,
body.login-page > main.login-container {
  min-height: calc(100vh - 80px);
  min-height: calc(100dvh - 80px);
  display: grid;
  align-content: center;
}

body.landing-page > .india-public-footer {
  flex: 0 0 auto;
}

/* ============================================================
   iPRISM login page: iMAGIC layout parity fix
   Keeps the iPRISM content, but restores the same professional
   login geometry used by iMAGIC.
   ============================================================ */
body.login-page {
  display: flex !important;
  flex-direction: row !important;
  padding: 0 !important;
}

.login-page .header {
  width: auto !important;
  max-width: calc(100% - 60px) !important;
  box-sizing: border-box;
}

body.login-page > .login-container,
body.login-page > main.login-container,
.login-page .login-container {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  align-content: normal !important;
  width: 100% !important;
  max-width: 1200px !important;
  min-height: auto !important;
  margin: auto !important;
  padding: 20px !important;
  gap: 26px;
}

.login-page .login-left {
  flex: 1 1 0 !important;
}

.login-page .login-right {
  flex: 0 0 380px !important;
}

.login-page .kpi-grid-login {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 20px !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
}

@media (max-width: 768px) {
  body.login-page {
    flex-direction: column !important;
  }

  .login-page .header {
    max-width: calc(100% - 40px) !important;
  }

  body.login-page > .login-container,
  body.login-page > main.login-container,
  .login-page .login-container {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 1200px !important;
    padding: 80px 20px 40px !important;
  }

  .login-page .login-left,
  .login-page .login-right {
    flex: 1 1 auto !important;
    width: 100% !important;
  }
}



/* Public chrome modifiers */
.india-public-nav-iprism,
.india-public-footer-iprism {
  width: 100%;
}

/* Public section transition system */
[data-section-switcher] > section[hidden] {
    display: none !important;
}

[data-section-switcher] > section.public-section-panel {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
    filter: blur(6px);
    transition: opacity 420ms ease, transform 420ms ease, filter 420ms ease;
    will-change: opacity, transform, filter;
}

[data-section-switcher] > section.public-section-panel.public-section-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

[data-section-switcher] > section.public-section-panel.public-section-visible > * {
    animation: publicSectionContentRise 520ms ease both;
}

[data-section-switcher] > section.public-section-panel.public-section-visible > *:nth-child(2) {
    animation-delay: 70ms;
}

[data-section-switcher] > section.public-section-panel.public-section-visible > *:nth-child(3) {
    animation-delay: 110ms;
}

@keyframes publicSectionContentRise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-section-switcher] > section.public-section-panel,
    [data-section-switcher] > section.public-section-panel.public-section-visible {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }

    [data-section-switcher] > section.public-section-panel.public-section-visible > * {
        animation: none;
    }
}


/* iPRISM public tablet footer layout */
@media (min-width: 721px) and (max-width: 1024px) {
    .india-public-footer-inner,
    .india-public-footer-iprism .india-public-footer-inner,
    .landing-footer-inner,
    .footer-content {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        justify-items: center !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: min(100% - 36px, 980px) !important;
    }

    .india-footer-left,
    .india-footer-center,
    .india-footer-links,
    .landing-footer-links,
    .footer-legal-links {
        width: 100% !important;
        justify-content: center !important;
        justify-items: center !important;
        text-align: center !important;
    }

    .india-footer-links,
    .landing-footer-links,
    .footer-legal-links {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .india-footer-terms,
    .india-footer-links a[href*="terms-of-use"] {
        margin-right: 0 !important;
    }
}
/* Mobile audit: keep the floating login header inside the viewport. */
@media (max-width: 768px) {
    .login-page .header {
        left: 20px;
        right: 20px;
        width: auto;
        max-width: none;
        box-sizing: border-box;
    }
}
