/* Tailwind-inspired CSS */
@layer base, budget_tool;

:root{
  --bg: #ffffff;
  --muted: #f4f7fb;
  --card: #ffffff;
  --text: #0f172a;
  --soft: #64748b;
  --primary: #2563eb;
  --ring: rgba(37,99,235,.25);
  --border: #e5e7eb;
}
:root.dark{
  --bg: #0b1020;
  --muted: #0f172a;
  --card: #0e162b;
  --text: #e5e7eb;
  --soft: #94a3b8;
  --primary: #60a5fa;
  --ring: rgba(96,165,250,.25);
  --border: #1f2937;
}

*{
  box-sizing:border-box
}

html,body{
  height:100%
}

body{
  margin:0;
  font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,'Helvetica Neue',Arial,'Noto Sans',sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6
}

a{
  color:inherit;
  text-decoration:none
}

.container{
  max-width:1180px;
  margin:0 auto;
  padding:0 1rem
}

.grid{
  display:grid;
  gap:1rem
}

.grid-cols-2{
  grid-template-columns:repeat(2,minmax(0,1fr))
}

.grid-cols-3{
  grid-template-columns:repeat(3,minmax(0,1fr))
}

.grid-cols-4{
  grid-template-columns:repeat(4,minmax(0,1fr))
}

@media (max-width: 1024px){
  .grid-cols-4{
    grid-template-columns:repeat(3,minmax(0,1fr))
  }
}

@media (max-width: 768px){
  .grid-cols-4,.grid-cols-3{
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
}

.btn{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  border-radius:12px;
  padding:.7rem 1rem;
  background:var(--primary);
  color:#fff;
  font-weight:600;
  box-shadow:0 6px 20px var(--ring);
  transition:transform .2s ease,opacity .2s ease
}

.btn:hover{
  transform:translateY(-1px);
  opacity:.95
}

.btn.outline{
  background:transparent;
  color:var(--text);
  border:1px solid var(--border)
}

.btn.ghost{
  background:transparent;
  color:var(--primary)
}

.badge{
  display:inline-flex;
  align-items:center;
  border:1px solid var(--border);
  padding:.25rem .55rem;
  border-radius:999px;
  font-size:.75rem;
  color:var(--soft)
}

.header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.7);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--border)
}

:root.dark .header{
  background:rgba(11,16,32,.7)
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:.6rem 0
}

.nav-left,.nav-right{
  display:flex;
  align-items:center;
  gap:.8rem
}

.logo{
  display:flex;
  align-items:center;
  gap:.5rem;
  font-weight:800
}

.logo img{
  width:28px;
  height:28px
}

.nav-links a{
  padding:.5rem .7rem;
  border-radius:10px;
  color:var(--soft);
  font-weight:600
}

.nav-links a.active,
.nav-links a:hover{
  color:var(--text);
  background:var(--muted)
}

.searchbar{
  position:relative;
  flex:1;
  max-width:420px
}

.searchbar input{
  width:100%;
  padding:.65rem 2.2rem .65rem .9rem;
  border-radius:12px;
  border:1px solid var(--border);
  background:var(--card);
  color:var(--text);
  outline:none
}

.searchbar .icon{
  position:absolute;
  right:.6rem;
  top:50%;
  transform:translateY(-50%);
  opacity:.6
}

.hero{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:2rem;
  align-items:center;
  padding:2rem 0
}

@media (max-width: 960px){
  .hero{
    grid-template-columns:1fr
  }
}

.hero-card{
  background:var(--muted);
  border:1px dashed var(--border);
  border-radius:18px;
  padding:2rem;
  display:flex;
  justify-content:center;
  align-items:center;
  height:260px
}

.hero h1{
  font-size:2.1rem;
  line-height:1.2;
  margin:0 0 .6rem;
  font-weight:800
}

.hero p{
  color:var(--soft);
  margin:0 0 1rem
}

.actions{
  display:flex;
  flex-wrap:wrap;
  gap:.6rem;
  margin-top:.6rem
}

.ad-728{
  height:90px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px dashed var(--border);
  border-radius:14px;
  background:var(--card);
  color:var(--soft)
}

.ad-140x400{
  width:140px;
  height:400px;
  border:1px dashed var(--border);
  border-radius:14px;
  background:var(--card);
  color:var(--soft);
  display:flex;
  align-items:center;
  justify-content:center;
  position:sticky;
  top:90px
}

.inline-ad{
  min-height:120px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px dashed var(--border);
  border-radius:14px;
  background:var(--card);
  color:var(--soft)
}

.section-title{
  font-weight:800;
  margin:1.6rem 0 .6rem
}

.tools{
  display:grid;
  grid-template-columns:1fr;
  gap:1rem
}

@media (min-width: 100%){
  .tools{
    grid-template-columns:3fr 1fr;
    gap:1.2rem
  }
}

.main-content{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  padding:1rem;
  transition:transform .15s ease, box-shadow .15s ease
}

.card:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 30px rgba(0,0,0,.06)
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 1rem;
}

.tool-card {
  padding: 1.5rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.tool-card .icon{
  font-size:1.4rem
}

.tool-card p{
  margin:0;
  color:var(--soft);
  font-size:.95rem
}

.tool-card h3{
  margin:.2rem 0 .2rem
}

.sidebar{
  display:none
}

.ad-sidebar {
  width: 140px;
  margin-top: 50px;
  position: fixed;
  right: 0;
}

.ad-placeholder {
  border: 1px dotted #ddd;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 960px){
  .sidebar{
    display:block
  }
}
.home-blog-grid{
  display:grid;
  gap:1rem
}

.blog-grid{
  display:grid;
  gap:1rem
}

@media (min-width: 768px){
  .home-blog-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))
  }

  .blog-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))
  }
}

.blog-card{
  border:1px solid var(--border);
  border-radius:16px;
  overflow:hidden;
  background:var(--card)
}

.blog-thumb{
  background:var(--muted);
  height:150px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--soft)
}

.blog-card .content{
  padding:1rem
}

.blog-card .content h4{
  margin:.2rem 0;
  color:var(--text)
}

.blog-card .content p{
  color:var(--soft);
  margin:.3rem 0 .7rem
}

.blog-card:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transform: translateY(-5px);
}

.contact-form {
  margin: 2rem auto;
  width:100%;
  max-width: 640px;
}

.newsletter{
  border:1px solid var(--border);
  border-radius:16px;
  padding:1rem;
  background:var(--card)
}

.footer{
  margin-top:2rem;
  border-top:1px solid var(--border);
  padding:2rem 0
}

.footer-grid{
  display:flex;
  flex-direction:row;
  justify-content:space-between;
  align-items:flex-start;
  flex-wrap:nowrap;
  gap:2rem;
}

.footer p.small{
  color:var(--soft);
  font-size:.9rem;
  margin:.4rem 0 0
}

.footer .col h5{
  margin:.2rem 0 .4rem;
  color:var(--text)
}

.footer a{
  color:var(--soft)
}

.footer a:hover{
  color:var(--text)
}

.mobile-only{
  display:none
}

@media (max-width: 959px){
  .mobile-only{
    display:block
  }
}

.desktop-only{
  display:block
}

@media (max-width: 959px){
  .desktop-only{
    display:none
  }
}

/* Loading overlay */
#loadingOverlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:1000
}

.spinner{
  width:54px;
  height:54px;
  border-radius:50%;
  border:5px solid rgba(255,255,255,.2);
  border-top-color:#fff;
  animation:spin 1s linear infinite
}

@keyframes spin{
  to{
    transform:rotate(360deg)
  }
}

/* Simple icons */
.i{
  width:28px;
  height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  background:var(--muted);
  border:1px solid var(--border);
  font-weight:800
}

.about-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
  border-radius: 1rem;
  background: transparent;
}

.about-banner .banner-content {
  max-width: 55%;
  color: var(--text);
}

.about-banner h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--heading, var(--text));
}

.about-banner p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-soft, var(--text));
}

.about-banner .btn {
  background: var(--primary, #2563eb);
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.6rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.about-banner .banner-illustration img {
  width: 100%;
  height: auto;
}

/* Responsive */
@media (min-width: 768px) {
  .about-banner {
    flex-direction: row;
    text-align: left;
    padding: 6rem 4rem;
  }
  .banner-content {
    flex: 1;
    padding-right: 2rem;
  }
  .banner-illustration {
    flex: 1;
    margin-top: 0;
  }
}

.about-banner {
  /* ... */
}

.newsletter-hero {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 10px 30px rgba(2,6,23,0.04);
  margin: 28px 0;
}

.newsletter-left h3 {
  font-size: 28px;
  margin: 0 0 8px 0;
  color: var(--text);
  font-weight: 800;
}

.newsletter-left p {
  margin: 0;
  color: var(--soft);
}

.newsletter-form input[type="email"] {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  width: 420px;
  font-size: 16px;
  color: var(--text);
  background: var(--card);
}

.newsletter-form input::placeholder {
  color: var(--soft);
}

.suggest-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(2,6,23,0.04);
}

.suggest-card h4 {
  margin:0 0 12px 0;
  font-weight:700;
  color:var(--text);
}

.suggest-card input,
.suggest-card textarea {
  width:100%;
  border:1px solid var(--border);
  border-radius:10px;
  padding:12px 14px;
  margin-bottom:12px;
  font-size:14px;
  color:var(--text);
  background:var(--card);
}

/* Tool card button alignment */
.tool-card {
  display:flex;
  flex-direction:column;
  gap:0.6rem;
  justify-content:space-between;
}

.tool-card .btn {
  align-self:flex-start;
  margin-top:auto;
}

.tool-card:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transform: translateY(-5px);
}

aside {
  display:none !important;
}

/* Responsive adjustments */
@media (max-width: 960px){
  .newsletter-hero {
    flex-direction: column;
    align-items:stretch;
  }
  .newsletter-form input[type="email"] {
    width:100%;
  }
  aside{
    display:none;
  }
}

/* Style for the main section container */
.related-tools-section {
  max-width: 1180px;
  margin: 2rem auto 4rem;
}

/* Style for the section heading */
.related-tools-section h2 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

/* Style for the button container */
.related-tools-container {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Ensure related tool pills look same as manual */
.related-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}

.related-tool-btn .tool-emoji {
  font-size: 1.2rem;
  line-height: 1;
}

.related-tool-btn .tool-title {
  display: inline-block;
  color: var(--primary);
}

/* light mode */
:root .related-tool-btn {
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(37,99,235,0.12);
  color: var(--primary);
}

/* dark mode */
[data-theme="dark"] .related-tool-btn,
html[data-theme="dark"] .related-tool-btn,
body[data-theme="dark"] .related-tool-btn,
.dark .related-tool-btn {
  background: #0b1220;
  box-shadow: 0 6px 12px rgba(37,99,235,0.22);
  color: #3b82f6;
}

/* hover */
.related-tool-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 18px rgba(37,99,235,0.36);
}

/* Responsive grid */
@media (max-width:1024px) {
  .tool-recommendations {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:640px) {
  .tool-recommendations {
    grid-template-columns: 1fr;
  }
  .tool-card,
  .related-tool-btn {
    padding: 0.65rem 1rem;
    font-size: 0.98rem;
  }
}

/* Style for the ad placeholder */
.inline-ad .ad-placeholder {
  height: 120px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* page-specific layout tweaks */
.page-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 960px) {
  .page-grid {
    grid-template-columns: 1fr 160px;
    align-items: start;
  }
}

/* right ad positioning if placed in the page-grid second column */
.right-ad {
  display:flex;
  justify-content:center;
}

.ad-140x400 {
  width:140px;
  height:400px;
  border:1px dotted var(--border);
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--card);
  color:var(--soft);
  position:sticky;
  top:90px;
}

/* small responsive tweaks */
@media (max-width: 959px) {
  .controls-row {
    justify-content: center;
  }
  .ad-140x400 {
    position:relative;
    top:auto;
    margin: 0 auto;
  }
}


/* =========================
      MOBILE LAYOUT 
========================= */

@media (max-width: 520px) {
  /* Center hero section content */
  .hero {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    justify-items: center !important;
    padding: 1.5rem 0 !important;
  }

  /* Page Title */
  .hero h1 {
    font-size: 1.6rem !important;
    line-height: 1.3 !important;
  }

  /* Title paragraph */
  .hero p {
    font-size: 0.92rem !important;
    font-weight: 500;
    line-height: 1.55 !important;
    text-align: center !important;
    margin-bottom: 1rem !important;
  }

  /* Explore Tools & Get Updates Btns */
  .hero .actions {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center;
    flex-wrap: wrap;
    gap: 1rem !important;
    margin-top: 1rem !important;
    flex: 1 1 auto;
    min-width: 150px;
  }

  /* Background Image sits on */
  .hero-card {
    height: 200px;
    display: flex;
    justify-content: center;
  }

  /* Page Image */
  .hero-card img {
    width: 100% !important;
    max-width: 310px !important;
    height: 210px !important;
    transform: none !important;
  }

  .header {
    gap: 2rem;
    margin: auto;
  }

  .header .btn[href*="suggest.html"] {
    display: none !important;
  }

  .searchbar input {
    width: 100% !important;
    border-radius: 11px;
    padding: 11px;
    color: var(--card); 
  }
 

.nav-left,.nav-right{
  display:flex;
  margin: 0rem 0.5rem 0rem;
  gap:.8rem
}

  /* ---- TOOLS GRID | 3 columns ---- */
  .tool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.5rem !important;
    align-items: start;
  }

  /* Compact cards to behave like tiles */
  .tool-card {
    padding: 0.55rem !important;
    border-radius: 10px !important;
    min-height: 88px;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    cursor: pointer;
    user-select: none;
    box-shadow: 2px 2px 2px rgba(37,99,235,.25) !important;
  }

  /* Icon smaller */
  .tool-card .icon {
    font-size: 1.15rem !important;
    margin-bottom: 0.2rem;
  }

  /* Title | Compact & Single-line */
  .tool-card h3 {
    font-size: 0.86rem !important;
    margin: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
  }

  /* Description: shorten to 1 line, or hide if too tight */
  .tool-card p {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.72rem !important;
    color: var(--soft);
    margin-top: 0.25rem !important;
    width: 100%;
  }

  /* Hide "Try Now" button on mobile (Make cards clickable) */
  .tool-card .btn {
    display: none !important;
  }

  /* Clickable style feedback */
  .tool-card:active {
    transform: translateY(0);
    opacity: 0.98;
  }

  .view-all-btn {
    font-size: 0.9rem !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 10px !important;
    width: 60%;
    box-shadow: 1px 1px 2px rgba(37,99,235,.25) !important;
  }

  /* --- BLOG GRID | 1 column --- */
  /* .home-grid | blogs on the index page */
  .home-blog-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.5rem !important;
    align-items: start;
  }

  /* Truncate Blogs on index to show ONLY 2 on Mobile */
  .home-blog-grid > *:nth-child(n+3) {
    display: none !important;
  }

  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.5rem !important;
    align-items: start;
  }

  .blog-grid {
    display: grid
  }

  /* Truncate the paragraph */
  .home-blog-grid h4 {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .blog-grid h4 {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Compact cards to behave like tiles */
  .blog-card {
    padding: 0.55rem !important;
    border-radius: 10px !important;
    min-height: 88px;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    cursor: pointer;
    user-select: none;
    box-shadow: 2px 2px 2px rgba(37,99,235,.25) !important;
  }

  /* Title compact and single-line */
  .blog-card h3,
  .blog-card .title {
    font-size: 0.86rem !important;
    margin: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    margin-bottom: 0.2rem !important;
    text-align: left !important;
  }

  .blog-card p,
  .blog-card .excerpt {
    font-size: 0.78rem !important;
    color: var(--soft);
    line-height: 1.4;
    margin-bottom: 0.4rem;
    display: -webkit-box;
    /* Truncate to 2 lines */
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Hide "Read More" buttons on mobile */
  .blog-card .btn,
  .blog-card a[href*="read"],
  .blog-card a[href*="blog/"] {
    display: none !important;
  }

  /* Make entire blog card clickable */
  .blog-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .blog-card:active {
    transform: translateY(0);
    opacity: 0.97;
  }

  /* --- NEWS LETTER ---*/
  .newsletter {
    padding: 1rem !important;
  }

  input[type="email"] {
    font-size: 1rem;
  }

  .grid,.grid-cols-2{
    grid-template-columns:1fr
  }

  /* Optional: ensure it never overlaps */
  main > .ad-728 {
    margin-top: 1rem !important;
  }

  /*--- FOOTER ---*/
  .footer {
    padding: 12px 0px 0px !important;  }

  .footer-grid {
    flex-direction: row !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    text-align: center !important;
  }

  .footer .col a {
    margin: 0 0.2rem !important;
  }

  /* FAQ section */
  .faq-title {
    font-size: 1.3rem !important;
    text-align: center !important;
  }

  .faq-question {
    font-size: 0.95rem !important;
    padding: 0.75rem 1rem !important;
  }

  .faq-answer {
    font-size: 0.9rem !important;
    padding: 0.6rem 1rem !important;
    line-height: 1.5;
  }

  /* Show ONLY 2 Related tools */
  .related-tools-container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.8rem !important;
  }

  .related-tool-btn {
    font-size: 0.9rem !important;
    padding: 0.65rem 0.9rem !important;
    border-radius: 9999px !important;
    text-align: center !important;
    justify-content: center !important;
  }

  .related-tool-btn:nth-child(n+3) {
    display: none !important;
  }

  /* Google - Ads */
  .ad-728,
  .ad-sidebar,
  .ad-140x400 {
    display: none !important;
  }

  /* REACTIVATE LATER WITH GOOGLE ADS | REMOVE THE TOP ADS Ads — Google compliant */
  /*.ad-728, .ad-sidebar, .ad-140x400 {
    display: none !important;
    width: 100% !important;
    height: 90px !important;
    max-width: 100% !important;
    border-radius: 10px !important;
    margin: 1rem 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--card);
    border: 1px dashed var(--border);
  } */
  .ad-sidebar {
    display: none !important;
  }

    /* Modal Styling */
    .modal-backdrop{
     position:fixed; 
     inset:0; 
     display:flex; 
     align-items:center; 
     justify-content:center; 
     background:rgba(2,6,23,0.45); 
     z-index:9999; padding:20px; 
   }

    .modal{ 
      width:min(600px,96%); 
      background:linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,250,255,0.98)); 
      border-radius:0.75rem; padding:1.5rem; box-shadow:0 16px 60px rgba(2,6,23,0.22); border:1px solid rgba(0,0,0,0.06); 
    }

    .modal h3{ 
      margin:0; 
      font-size:1.2rem; 
      font-weight:700; 
    }

    .modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-bottom: 0.75rem;
      border-bottom: 1px solid var(--color-border);
      margin-bottom: 1rem;
    }

    /* Custom Expense Modal Layout */
    .modal-grid {
      display: grid;
      grid-template-columns: repeat(1, 1fr);
      gap: 15px; /* Increased gap */
      align-items: end;
    }

  
    @media(min-width:640px){
        .modal-grid { 
          grid-template-columns: 2fr 1fr 1.5fr; 
        } 

        .modal-grid > div:first-child { 
          grid-column: span 1; 
        }
    }

    /* Modal */
    .modal-backdrop{ 
      position:fixed; 
      inset:0; display:flex; 
      align-items:center; 
      justify-content:center; 
      background:rgba(2,6,23,0.45); 
      z-index:9999; padding:20px; 
    }

    .modal{ 
      width:min(720px,96%); 
      background:white; 
      border-radius:12px; 
      padding:16px; 
      box-shadow:0 20px 60px rgba(2,6,23,0.25); 
      border:1px solid rgba(0,0,0,0.04); 
    }

    .modal-grid{ 
      display:grid; 
      grid-template-columns:1fr 180px; 
      gap:12px; 
      align-items:start; 
    }

    @media(max-width:640px){ 
      .modal-grid{ 
        grid-template-columns:1fr; 
      } 
    }

    .modal .input-field{ width:100%; 
  }










