/* Hisab-Kitab & Digital Bahi Khata - Modern FinTech Design System */
:root {
  --primary: #10b981;
  --primary-dark: #059669;
  --primary-light: #d1fae5;
  --primary-glow: rgba(16, 185, 129, 0.25);

  --jama: #10b981;
  /* Credit / Money In (Green) */
  --jama-bg: #ecfdf5;
  --jama-border: #a7f3d0;

  --udhar: #ef4444;
  /* Debit / Money Out (Red) */
  --udhar-bg: #fef2f2;
  --udhar-border: #fecaca;

  --dark-bg: #0f172a;
  --dark-card: #1e293b;
  --dark-border: #334155;

  --light-bg: #f8fafc;
  --surface: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;

  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px -2px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px -4px rgba(16, 185, 129, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 20px 40px -15px rgba(15, 23, 42, 0.07);
}

html {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
  font-family: var(--font-family);
  background-color: var(--light-bg);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  max-width: 100%;
  height: auto;
}

/* Container */
.hk-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Header & Nav */
.hk-navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
}

.hk-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.hk-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark-bg);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.hk-brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.hk-nav-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

@media (max-width: 1160px) and (min-width: 901px) {
  .hk-nav-links {
    gap: 10px;
  }

  .hk-nav-link {
    font-size: 0.88rem;
  }

  .hk-nav-tools-badge {
    padding: 4px 8px;
    font-size: 0.82rem;
  }
}

.hk-nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.hk-nav-link:hover,
.hk-nav-link.active {
  color: var(--primary-dark);
}

.hk-nav-tools-badge {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #059669 !important;
  border: 1px solid #a7f3d0;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-weight: 700;
  transition: all 0.2s ease;
}

.hk-nav-tools-badge:hover,
.hk-nav-tools-badge.active {
  background: #10b981;
  color: #ffffff !important;
  border-color: #10b981;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-nav-app {
  background: var(--dark-bg);
  color: white;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-nav-app:hover {
  background: #020617;
  transform: translateY(-1px);
  color: #fff;
}

/* Hero Section */
.hk-hero {
  padding: 40px 0 20px;
  text-align: center;
}

.hk-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.hk-hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--dark-bg);
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.8px;
}

.hk-hero-title span {
  color: var(--primary);
  background: linear-gradient(135deg, #10b981 0%, #0d9488 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hk-hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 30px;
}

/* The Live Hisab Kitab Widget */
.hk-tool-wrapper {
  max-width: 720px;
  margin: 0 auto 50px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.hk-tool-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hk-tool-title {
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hk-tool-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.hk-tool-body {
  padding: 24px;
}

/* Multi-column Tool Layouts (Parchi & Bahi Khata) */
.hk-parchi-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  margin-bottom: 40px;
  align-items: start;
}

.hk-bahi-khata-layout {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 24px;
}

.hk-bahi-khata-sidebar {
  border-right: 1px solid var(--border-color);
  padding-right: 20px;
}

.hk-input-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

/* Form Controls */
.hk-input-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 12px;
  margin-bottom: 14px;
}

.hk-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.hk-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.hk-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
  outline: none;
}

.hk-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

/* Type Toggle Buttons (Jama vs Udhar) */
.hk-type-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.hk-toggle-btn {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.hk-toggle-btn.jama-btn {
  background: var(--jama-bg);
  color: var(--primary-dark);
  border-color: var(--jama-border);
}

.hk-toggle-btn.jama-btn.active {
  background: var(--jama);
  color: white;
  border-color: var(--jama);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.hk-toggle-btn.udhar-btn {
  background: var(--udhar-bg);
  color: #dc2626;
  border-color: var(--udhar-border);
}

.hk-toggle-btn.udhar-btn.active {
  background: var(--udhar);
  color: white;
  border-color: var(--udhar);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.btn-add-entry {
  width: 100%;
  background: var(--dark-bg);
  color: white;
  border: none;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-add-entry:hover {
  background: #020617;
  transform: translateY(-1px);
}

/* Summary Cards (Totals) */
.hk-summary-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
  padding: 16px;
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.hk-summary-item {
  text-align: center;
}

.hk-summary-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.hk-summary-val {
  font-size: 1.25rem;
  font-weight: 900;
}

.val-jama {
  color: var(--jama);
}

.val-udhar {
  color: var(--udhar);
}

.val-balance {
  color: var(--dark-bg);
}

/* Entries List Table */
.hk-entries-list {
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: white;
}

.hk-entry-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.92rem;
  transition: background 0.15s ease;
}

.hk-entry-row:last-child {
  border-bottom: none;
}

.hk-entry-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.hk-entry-title {
  font-weight: 700;
  color: var(--dark-bg);
}

.hk-entry-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hk-entry-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hk-entry-amount {
  font-weight: 800;
  font-size: 1rem;
}

.hk-btn-del {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 1.1rem;
  transition: color 0.15s;
}

.hk-btn-del:hover {
  color: var(--udhar);
}

/* Action Buttons Bar */
.hk-tool-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.hk-btn-action {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  border: 1.5px solid var(--border-color);
  background: white;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.hk-btn-action:hover {
  border-color: var(--text-main);
}

.hk-btn-action.btn-whatsapp {
  background: #25d366;
  color: white;
  border-color: #25d366;
}

.hk-btn-action.btn-whatsapp:hover {
  background: #1eb954;
}

/* App Download Showcase Section */
.hk-app-section {
  background: linear-gradient(135deg, #090d16 0%, #172554 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  margin: 40px auto 60px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.4);
}

.hk-app-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.hk-app-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.hk-app-title {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 14px;
}

.hk-app-desc {
  font-size: 1.05rem;
  color: #cbd5e1;
  margin-bottom: 24px;
}

.hk-app-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.hk-app-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #f1f5f9;
}

.hk-app-feature-icon {
  color: var(--primary);
  font-size: 1.1rem;
}

.hk-app-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-play-store {
  background: #ffffff;
  color: #0f172a;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.btn-play-store:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  color: #000;
}

.btn-apk-dl {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-apk-dl:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* App Mockup Visual */
.hk-mockup-card {
  background: #1e293b;
  border-radius: 28px;
  padding: 20px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  max-width: 320px;
  margin: 0 auto;
}

.hk-mockup-screen {
  background: #0f172a;
  border-radius: 20px;
  padding: 16px;
  color: white;
  text-align: left;
}

/* Tools Suite Section */
.hk-section-head {
  text-align: center;
  margin-bottom: 36px;
}

.hk-section-title {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--dark-bg);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.hk-section-sub {
  color: var(--text-muted);
  font-size: 1rem;
}

.hk-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.hk-tool-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.hk-tool-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.hk-card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  background: #f1f5f9;
}

.hk-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark-bg);
  margin-bottom: 6px;
}

.hk-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.hk-card-link {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* FAQ Section */
.hk-faq-section {
  max-width: 800px;
  margin: 0 auto 60px;
}

.hk-faq-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  padding: 18px 22px;
}

.hk-faq-question {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--dark-bg);
  margin-bottom: 8px;
}

.hk-faq-answer {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Footer */
.hk-footer {
  background: #0b1329;
  color: #cbd5e1;
  padding: 44px 0 24px;
  font-size: 0.9rem;
  border-top: 1px solid #1e293b;
}

.hk-footer a {
  color: #e2e8f0;
  text-decoration: none;
  transition: all 0.2s ease;
}

.hk-footer a:hover {
  color: #34d399;
}

.hk-footer-bottom {
  text-align: center;
  border-top: 1px solid #1e293b;
  margin-top: 30px;
  padding-top: 20px;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.hk-footer-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000000;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  padding: 8px 16px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}

.hk-footer-play-btn:hover {
  border-color: #34d399;
  box-shadow: 0 6px 20px rgba(52, 211, 153, 0.35);
  transform: translateY(-2px);
}

/* Mobile 3-Dot Menu Button */
.hk-mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1.5px solid rgba(16, 185, 129, 0.25);
  color: var(--primary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 6px;
}

.hk-mobile-menu-btn:hover {
  background: var(--primary);
  color: white;
}

.hk-menu-dots-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

.hk-menu-dots-icon span {
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
  display: block;
}

/* Mobile Slide-in Navigation Drawer */
.hk-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 100001;
  animation: hkFadeIn 0.25s ease;
}

.hk-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 86vw;
  height: 100vh;
  background: #ffffff;
  z-index: 100002;
  box-shadow: -10px 0 35px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  animation: hkSlideLeft 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes hkSlideLeft {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes hkFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.hk-drawer-header {
  padding: 16px 18px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

.hk-drawer-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.hk-drawer-close-btn:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

.hk-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.hk-drawer-section-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #94a3b8;
  margin-bottom: 10px;
}

.hk-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hk-drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: #1e293b;
  transition: all 0.2s;
  background: transparent;
}

.hk-drawer-link:hover,
.hk-drawer-link.active {
  background: #ecfdf5;
  color: #059669;
}

.hk-drawer-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.hk-drawer-text {
  display: flex;
  flex-direction: column;
}

.hk-drawer-text strong {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
}

.hk-drawer-text small {
  font-size: 0.75rem;
  color: #64748b;
}

.hk-drawer-link.active .hk-drawer-text small {
  color: #059669;
}

.hk-drawer-link-sub {
  padding: 8px 12px;
  font-size: 0.85rem;
  color: #475569;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
}

.hk-drawer-link-sub:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.hk-drawer-footer {
  padding: 16px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.hk-drawer-app-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  background: #000000;
  color: #ffffff !important;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
}

.hk-drawer-app-btn:hover {
  background: #1e293b;
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════
   SEO Article Collapsible / Read More Styles
   ═══════════════════════════════════════════════════════════ */
.hk-seo-article-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 36px;
  margin: 36px 0 0 0;
  font-family: 'Noto Sans Devanagari', sans-serif;
  position: relative;
  transition: max-height 0.4s ease;
  word-break: break-word;
}

.hk-seo-article-card.is-collapsed {
  max-height: none !important;
  overflow: visible !important;
}

.hk-seo-article-card.is-collapsed::after {
  display: none !important;
}

.hk-article-toggle-bar {
  display: none !important;
}

.hk-article-toggle-bar {
  text-align: center;
  margin: -24px auto 40px auto;
  position: relative;
  z-index: 10;
}

.hk-article-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 12px 32px;
  border-radius: 99px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.18);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.hk-article-toggle-btn:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(16, 185, 129, 0.32);
}

/* ═══════════════════════════════════════════════════════════
   Responsive Overhaul Media Queries
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hk-nav-links {
    display: none;
  }
  .hk-mobile-menu-btn {
    display: flex;
  }
  .hk-parchi-layout {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .hk-bahi-khata-layout {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .hk-bahi-khata-sidebar {
    border-right: none !important;
    padding-right: 0 !important;
    border-bottom: 2px dashed var(--border-color) !important;
    padding-bottom: 24px !important;
    margin-bottom: 12px !important;
  }
  .hk-input-grid-3 {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .hk-container {
    padding: 0 12px;
  }
  .hk-navbar {
    padding: 8px 0;
  }
  .hk-hero {
    padding: 24px 0 16px;
  }
  .hk-hero-title {
    font-size: 1.6rem;
    line-height: 1.3;
    letter-spacing: -0.4px;
    word-break: break-word;
  }
  .hk-hero-sub {
    font-size: 0.92rem;
    line-height: 1.5;
  }
  .hk-tool-wrapper {
    margin: 0 auto 32px;
    border-radius: var(--radius-md);
    width: 100%;
  }
  .hk-tool-header {
    padding: 14px 16px;
  }
  .hk-tool-title {
    font-size: 1.05rem;
  }
  .hk-tool-body {
    padding: 16px 12px;
  }
  .hk-input-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hk-tool-actions {
    flex-direction: column;
    gap: 8px;
  }
  .hk-btn-action {
    width: 100%;
    padding: 11px 14px;
    font-size: 0.9rem;
  }
  .hk-app-section {
    padding: 28px 16px;
    margin: 24px auto 40px;
    border-radius: var(--radius-md);
  }
  .hk-app-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .hk-app-title {
    font-size: 1.45rem;
    line-height: 1.3;
  }
  .hk-app-desc {
    font-size: 0.92rem;
    margin-bottom: 20px;
  }
  .hk-app-features {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: left;
    margin-bottom: 24px;
  }
  .hk-app-buttons {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .btn-play-store,
  .btn-apk-dl {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    font-size: 0.92rem;
  }
  .hk-mockup-card {
    max-width: 100%;
    padding: 14px;
    border-radius: 20px;
  }
  .hk-tools-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 36px;
  }
  .hk-tool-card {
    padding: 18px 16px;
    min-width: 0;
  }
  .hk-faq-section {
    margin-bottom: 40px;
  }
  .hk-faq-item {
    padding: 14px 16px;
  }
  .hk-faq-question {
    font-size: 0.98rem;
  }
  .hk-faq-answer {
    font-size: 0.88rem;
  }
  .hk-seo-article-card {
    padding: 20px 14px;
    margin: 24px 0 0 0;
    border-radius: var(--radius-md);
  }
  .hk-seo-article-card.is-collapsed {
    max-height: none !important;
    overflow: visible !important;
  }
  .hk-seo-article-card table {
    width: 100% !important;
    max-width: 100% !important;
  }
  .hk-seo-article-card img {
    max-width: 100% !important;
    height: auto !important;
  }
  .hk-article-toggle-bar {
    margin: -20px auto 30px auto;
  }
  .hk-article-toggle-btn {
    width: 90%;
    max-width: 320px;
    justify-content: center;
    font-size: 0.92rem;
    padding: 11px 20px;
  }
}

@media (max-width: 480px) {
  .hk-navbar {
    padding: 6px 0;
  }
  .hk-brand {
    font-size: 1.05rem;
    gap: 6px;
  }
  .hk-brand-icon {
    width: 30px;
    height: 30px;
    font-size: 0.95rem;
  }
  .hk-brand span small {
    display: none;
  }
  .hk-nav-right {
    gap: 8px;
    align-items: center;
  }
  .btn-nav-app {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 36px;
    padding: 0 10px;
    font-size: 0.8rem;
    font-weight: 800;
    border-radius: 50px;
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
  }
  .btn-nav-app span:first-child {
    font-size: 0.95rem;
    line-height: 1;
  }
  .hk-mobile-menu-btn {
    width: 36px;
    height: 36px;
    margin-left: 0;
  }
  .hk-hero-title {
    font-size: 1.35rem;
    line-height: 1.3;
  }
  .hk-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    max-width: 100%;
  }
  .hk-type-toggle {
    gap: 8px;
  }
  .hk-toggle-btn {
    padding: 10px 8px;
    font-size: 0.88rem;
  }
  .hk-summary-bar {
    gap: 4px;
    padding: 10px 6px;
    margin: 16px 0;
  }
  .hk-summary-label {
    font-size: 0.65rem;
    letter-spacing: -0.2px;
  }
  .hk-summary-val {
    font-size: 1rem;
    word-break: break-all;
  }
  .hk-entry-row {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
  .hk-entry-amount {
    font-size: 0.92rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   Print Styles — Clean Invoices, Slips, & Ledgers
   ═══════════════════════════════════════════════════════════ */
@media print {
  .hk-navbar,
  .hk-badge,
  .hk-hero-title,
  .hk-hero-desc,
  .hk-tool-badge,
  .hk-input-grid,
  .hk-form-group,
  .hk-type-toggle,
  .btn-add-entry,
  .hk-btn-action,
  .hk-tool-actions,
  .uk-comments-section,
  .uk-reminder-bar,
  .uk-toast,
  .uk-nudge-overlay,
  .hk-app-section,
  .hk-author-box,
  .hk-founder-card,
  .hk-related-section,
  .uk-author-meta-bar,
  #udharpe-ai-widget,
  .ai-chat-btn,
  .ai-chat-window,
  .hk-article-toggle-bar,
  .hk-seo-article-card,
  .hk-bahi-khata-sidebar,
  article,
  .hk-footer,
  .btn-nav-app,
  .no-print,
  .hk-btn-del {
    display: none !important;
  }

  /* Expand all tables and lists for complete printing */
  #juEntriesTable,
  .hk-entries-list,
  #cashList,
  #custEntriesList,
  .hk-table-responsive {
    max-height: none !important;
    overflow: visible !important;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
    font-size: 12pt;
  }

  .hk-container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .hk-hero,
  .hk-tool-wrapper,
  .hk-tool-body {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
  }

  #parchiLayout {
    display: block !important;
  }
  #parchiLayout > .hk-tool-wrapper {
    display: none !important;
  }

  #printableSlip {
    border: 2px solid #000000 !important;
    box-shadow: none !important;
    max-width: 650px !important;
    margin: 20px auto !important;
    page-break-inside: avoid;
  }

  .hk-summary-bar {
    border: 1px solid #cbd5e1 !important;
    background: #f8fafc !important;
  }

  .hk-entry-row {
    border-bottom: 1px solid #e2e8f0 !important;
  }
}

/* Author & Date Meta Bar for SEO & Trust */
.uk-author-meta-bar {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 0.83rem;
  color: #64748b;
  margin-top: 8px;
  margin-bottom: 18px;
  line-height: 1.4;
}

.uk-author-meta-bar a {
  color: #059669;
  font-weight: 700;
  text-decoration: none;
}

.uk-author-meta-bar a:hover {
  text-decoration: underline;
}

.uk-meta-sep {
  color: #cbd5e1;
}

.uk-meta-date {
  color: #475569;
  font-weight: 600;
}