/* Satguru Darbar V2.0 Fresh Responsive Theme */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;600;700;800&family=Poppins:wght@500;600;700;800&display=swap');

:root {
  --maroon: #7b0f1b;
  --maroon-2: #9b1424;
  --maroon-dark: #3a070b;
  --brown: #6a2415;
  --gold: #e9a51f;
  --gold-light: #ffd878;
  --cream: #fffaf2;
  --cream-2: #f8eee3;
  --white: #ffffff;
  --ink: #241517;
  --muted: #735f61;
  --line: #eadbd0;
  --success: #19733a;
  --danger: #a11f2d;
  --shadow-sm: 0 8px 24px rgba(72, 14, 19, 0.08);
  --shadow: 0 18px 48px rgba(72, 14, 19, 0.14);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: 'Noto Sans Devanagari', sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1420px, calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(123, 15, 27, 0.09);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--maroon);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  background: #fffaf0;
  font-size: 28px;
  box-shadow: inset 0 0 0 5px #fff;
}

.brand strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.4px;
}

.brand small {
  display: block;
  margin-top: 5px;
  color: #694648;
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.nav a {
  position: relative;
  color: #2c2021;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: var(--maroon);
  transition: right 0.25s ease;
}

.nav a:not(.btn):hover::after {
  right: 0;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--maroon);
  font-size: 25px;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-2));
  box-shadow: 0 10px 24px rgba(123, 15, 27, 0.25);
}

.btn-gold {
  color: #3c2500;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  box-shadow: 0 10px 24px rgba(233, 165, 31, 0.25);
}

.btn-outline {
  color: var(--maroon);
  border-color: var(--maroon);
  background: #fff;
}

.btn-light {
  color: #fff;
  border-color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.06);
}

.btn-light:hover {
  background: #fff;
  color: var(--maroon);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 70% 40%, rgba(245, 166, 63, 0.18), transparent 34%),
    linear-gradient(112deg, #270507 0%, #4b0c0d 36%, #7a2a18 68%, #35100d 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    radial-gradient(circle at 15% 20%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 75% 18%, #fff 0 1px, transparent 2px);
  background-size: 70px 70px, 90px 90px;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(560px, 0.92fr);
  align-items: center;
  gap: 42px;
  min-height: 610px;
}

.hero-copy {
  padding: 78px 0;
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid rgba(255, 216, 120, 0.4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff8e8;
  font-size: 18px;
  font-weight: 800;
}

.hero h1 {
  margin: 22px 0 20px;
  max-width: 760px;
  font-family: 'Poppins', 'Noto Sans Devanagari', sans-serif;
  font-size: clamp(50px, 4.8vw, 76px);
  line-height: 1.03;
  letter-spacing: -1.6px;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
  margin-top: 12px;
  color: #ffc34e;
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-size: clamp(38px, 3.7vw, 58px);
  line-height: 1.16;
  text-transform: none;
  letter-spacing: -0.8px;
}

.hero p {
  max-width: 680px;
  margin: 0;
  color: #fff8f1;
  font-size: 20px;
  line-height: 1.8;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
}

.hero-visual {
  position: relative;
  align-self: stretch;
  min-height: 610px;
}

.hero-visual > img {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
  width: min(470px, 67%);
  max-height: 560px;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.42));
}

.mission {
  position: absolute;
  z-index: 3;
  top: 52px;
  right: 0;
  width: 340px;
  padding: 26px 28px;
  border: 1px solid #efa817;
  border-radius: 24px;
  background: rgba(80, 6, 14, 0.9);
  box-shadow: 0 20px 50px rgba(0,0,0,.28);
  backdrop-filter: blur(12px);
}

.mission h3 {
  margin: 0 0 16px;
  color: #ffc544;
  font-size: 24px;
}

.mission ul {
  margin: 0;
  padding-left: 20px;
}

.mission li {
  margin: 11px 0;
  color: #fff;
  line-height: 1.55;
}

/* Service cards */
.service-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  padding: 20px 0;
}

.service-card {
  min-height: 104px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  border-radius: 14px;
  background: #fff3e7;
  font-size: 30px;
}

.service-card h3 {
  margin: 0;
  color: var(--maroon);
  font-size: 16px;
  line-height: 1.35;
}

.service-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

/* Stats */
.stats {
  position: relative;
  overflow: hidden;
  padding: 23px 0;
  color: #fff;
  background: linear-gradient(90deg, #5e0912, #8c101d 48%, #5e0912);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.stats-grid > div {
  padding: 2px 18px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.2);
}

.stats-grid > div:last-child {
  border-right: 0;
}

.stats b {
  display: block;
  color: #ffd047;
  font-family: 'Poppins', sans-serif;
  font-size: 27px;
  line-height: 1.2;
}

.stats span {
  display: block;
  margin-top: 4px;
  font-weight: 700;
}

/* Sections */
.section {
  padding: 58px 0;
}

.section-title {
  margin: 0 0 30px;
  color: var(--maroon);
  text-align: center;
  font-size: 34px;
  line-height: 1.25;
}

.flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.flow-item {
  position: relative;
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 46px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.flow-item:not(:last-child)::after {
  content: '→';
  position: absolute;
  top: 50%;
  right: -21px;
  z-index: 2;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 25px;
  font-weight: 800;
}

.flow-item span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  border-radius: 50%;
  color: #402600;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  font-weight: 800;
}

.flow-item strong {
  color: var(--maroon);
  line-height: 1.35;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, #fffdf9, var(--cream));
  box-shadow: var(--shadow);
}

.panel h2 {
  margin: 0 0 16px;
  color: var(--maroon);
  font-size: 24px;
  line-height: 1.3;
}

.media {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.media img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.media span {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #e60019;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(0,0,0,.2);
}

.assistant .chat {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid #efe1d7;
  border-radius: 18px;
  background: #fff;
}

.chat p {
  margin-top: 0;
  padding: 15px;
  border-radius: 14px;
  background: #fff6ec;
}

.chat form {
  display: flex;
  margin-top: auto;
  overflow: hidden;
  border: 1px solid #dfcec2;
  border-radius: 999px;
  background: #fff;
}

.chat input {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 14px 17px;
  border: 0;
  outline: 0;
  background: transparent;
}

.chat button {
  width: 54px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--maroon);
  cursor: pointer;
}

#aiAnswer {
  margin-top: 14px;
  color: var(--maroon);
  font-weight: 600;
}

.app-box {
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 18px;
  border-radius: 16px;
  background: #fff;
}

.phone {
  font-size: 96px;
  line-height: 1;
}

.app-box ul {
  margin: 0;
  padding-left: 22px;
}

.app-box li {
  margin: 9px 0;
}

.values {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  background: #fff8ed;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
  color: #6f1d24;
  font-weight: 800;
}

/* Footer */
.footer {
  padding: 48px 0 0;
  color: #fff;
  background: linear-gradient(135deg, #290507, #4b090e);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
}

.footer h3,
.footer h4 {
  color: #ffd066;
}

.footer a {
  display: block;
  margin: 8px 0;
  color: #fff;
  text-decoration: none;
}

.footer a:hover {
  color: #ffd066;
}

.footer-bottom {
  margin-top: 32px;
  padding: 18px;
  border-top: 1px solid rgba(255,255,255,.14);
  text-align: center;
  color: rgba(255,255,255,.8);
}

/* Forms */
.form-page {
  min-height: 72vh;
  padding: 70px 20px;
  background:
    radial-gradient(circle at 12% 10%, rgba(233,165,31,.13), transparent 26%),
    linear-gradient(135deg, #fffaf2, #f6e9dd);
}

.form-card {
  width: min(720px, 100%);
  margin: auto;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.form-card h1,
.form-card h2 {
  color: var(--maroon);
}

form label {
  display: block;
  margin: 15px 0;
  color: #352325;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 7px;
  padding: 13px 14px;
  border: 1px solid #d9c9bf;
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--maroon);
  box-shadow: 0 0 0 4px rgba(123,15,27,.09);
}

.alert {
  margin: 12px 0;
  padding: 13px 15px;
  border-radius: 10px;
  font-weight: 600;
}

.success {
  color: #176329;
  background: #e7f8ea;
}

.error {
  color: #8d1515;
  background: #fde8e8;
}

.upi-box {
  padding: 22px;
  border: 1px solid #f0dfbd;
  border-radius: 16px;
  background: #fff8e7;
  text-align: center;
}

.qr-placeholder {
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  margin: auto;
  color: #fff;
  background: repeating-linear-gradient(45deg, #111 0 6px, #fff 6px 12px);
  font-weight: 800;
}

/* Admin */
.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: linear-gradient(135deg, #310508, #881521);
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px 1fr;
  background: #f7f3f0;
}

.admin-shell aside {
  padding: 30px 24px;
  color: #fff;
  background: linear-gradient(180deg, #35070b, #570b13);
}

.admin-shell aside h2 {
  margin-top: 0;
  color: #ffd066;
}

.admin-shell aside a {
  display: block;
  margin: 4px 0;
  padding: 11px 12px;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
}

.admin-shell aside a:hover {
  background: rgba(255,255,255,.09);
}

.admin-shell main {
  overflow: auto;
  padding: 32px;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.dashboard-cards > div {
  padding: 24px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.dashboard-cards b {
  display: block;
  color: var(--maroon);
  font-family: 'Poppins', sans-serif;
  font-size: 36px;
}

.table-card {
  margin-top: 24px;
  padding: 20px;
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px;
  border-bottom: 1px solid #eee4dd;
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--maroon);
  background: #fff8f1;
}

.settings-form {
  max-width: 760px;
}

/* Responsive */
@media (max-width: 1180px) {
  .nav {
    position: absolute;
    top: 82px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-copy {
    padding: 65px 0 25px;
  }

  .hero-visual {
    min-height: 500px;
  }

  .hero-visual > img {
    left: 4%;
    width: 53%;
    max-height: 490px;
  }

  .mission {
    top: 55px;
    right: 3%;
  }

  .service-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .flow {
    grid-template-columns: repeat(3, 1fr);
  }

  .flow-item:nth-child(3)::after,
  .flow-item:nth-child(6)::after {
    display: none;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 0;
  }

  .stats-grid > div {
    border: 0;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1420px);
  }

  .nav-wrap {
    min-height: 72px;
  }

  .brand-mark {
    width: 47px;
    height: 47px;
  }

  .brand strong {
    font-size: 18px;
  }

  .brand small {
    font-size: 10px;
  }

  .nav {
    top: 72px;
    left: 14px;
    right: 14px;
  }

  .hero-grid {
    display: block;
    min-height: auto;
  }

  .hero-copy {
    padding: 44px 0 30px;
    text-align: center;
  }

  .eyebrow {
    font-size: 14px;
  }

  .hero h1 {
    font-size: clamp(37px, 11vw, 48px);
    letter-spacing: -0.8px;
  }

  .hero h1 span {
    font-size: clamp(29px, 8vw, 39px);
  }

  .hero p {
    font-size: 17px;
  }

  .actions {
    justify-content: center;
  }

  .hero-visual {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .mission {
    position: relative;
    top: auto;
    right: auto;
    order: 1;
    width: 100%;
    margin: 0 0 20px;
  }

  .hero-visual > img {
    position: relative;
    left: auto;
    bottom: auto;
    order: 2;
    width: min(88%, 430px);
    max-height: 440px;
  }

  .service-strip,
  .flow,
  .feature-grid,
  .footer-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 88px;
  }

  .flow-item::after {
    display: none !important;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-grid > div {
    padding: 9px;
  }

  .stats b {
    font-size: 22px;
  }

  .section {
    padding: 42px 0;
  }

  .section-title {
    font-size: 28px;
  }

  .media img {
    height: 210px;
  }

  .app-box {
    flex-direction: column;
    text-align: center;
  }

  .dashboard-cards {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-shell aside {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px;
  }

  .admin-shell aside h2 {
    display: none;
  }

  .admin-shell aside a {
    flex: 0 0 auto;
  }

  .admin-shell main {
    padding: 20px;
  }

  .form-card {
    padding: 24px;
  }
}

@media (max-width: 430px) {
  .brand small {
    display: none;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
  }

  .actions .btn {
    width: 100%;
  }
}

/* Satguru Darbar V3 — Digital Token & Attendance */
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-card select,.inline-form select{width:100%;padding:13px 14px;border:1px solid #ddd1c9;border-radius:12px;background:#fff;font:inherit}.helper{margin-top:18px}.token-wrap{width:min(920px,92%);margin:auto}.darshan-pass{background:#fff;border:2px solid #c18b20;border-radius:24px;overflow:hidden;box-shadow:0 22px 60px rgba(55,8,10,.18)}.pass-head{display:flex;justify-content:space-between;align-items:center;padding:22px 28px;background:linear-gradient(135deg,#5b0710,#8e151b);color:#fff}.pass-head strong{display:block;font-size:28px}.pass-head span{opacity:.84}.pass-head b{padding:8px 14px;border:1px solid #ffc84b;border-radius:999px;color:#ffc84b}.pass-body{display:grid;grid-template-columns:1fr 260px;gap:26px;padding:30px}.pass-details h1{margin-top:0;color:#681019}.pass-details dl{display:grid;grid-template-columns:1fr 1fr;gap:16px}.pass-details dl div{padding:12px;border-radius:12px;background:#fff8ee}.pass-details dt{font-size:12px;color:#806b60}.pass-details dd{margin:4px 0 0;font-weight:700}.pass-qr{text-align:center;border-left:1px dashed #d9c4a7;padding-left:25px}.pass-qr img{width:210px;max-width:100%;background:#fff}.pass-qr small{display:block;margin-top:8px}.pass-foot{text-align:center;padding:14px;background:#fff4dc;color:#65491c}.print-actions{display:flex;gap:12px;justify-content:center;margin-top:22px}.admin-tools{margin-bottom:16px}.inline-form{display:flex;gap:6px}.inline-form button{border:0;border-radius:8px;padding:8px 10px;cursor:pointer}.status{display:inline-block;padding:5px 9px;border-radius:999px;font-size:12px;font-weight:700}.status-booked{background:#fff0bf;color:#7d5600}.status-checked_in{background:#d9f7e5;color:#126631}.status-completed{background:#dceeff;color:#174f83}.status-cancelled{background:#ffe1e1;color:#8b1e1e}.checkin-box{max-width:650px}.checkin-box label{display:block}.checkin-box input{width:100%;padding:16px;border:1px solid #ddd;border-radius:12px;margin:8px 0 14px;font-size:18px}@media(max-width:720px){.form-row,.pass-body,.pass-details dl{grid-template-columns:1fr}.pass-qr{border-left:0;border-top:1px dashed #d9c4a7;padding:20px 0 0}.pass-head{align-items:flex-start;gap:12px}.pass-head strong{font-size:22px}.inline-form{display:block}.inline-form>*{margin:3px 0}}@media print{header,footer,.print-actions{display:none!important}.form-page{padding:0}.token-wrap{width:100%}.darshan-pass{box-shadow:none}}
