/*
CalcOne Main CSS
*/
:root{
  --bg:#FFFFFF;
  --bg-alt:#F5F7FB;
  --ink:#12172B;
  --ink-soft:#5B6178;
  --ink-mute:#8A8FA3;
  --line:#E7E9F2;
  --orange:#FF5A1F;
  --orange-deep:#D8440F;
  --orange-50:#FFEDE5;
  --blue:#155EEF;
  --blue-50:#E8F0FE;
  --teal:#0E9F6E;
  --teal-50:#E3F9F0;
  --purple:#6C4CE0;
  --purple-50:#EFEBFD;
  --pink:#E23F84;
  --pink-50:#FDEAF1;
  --amber:#F0A400;
  --amber-50:#FEF3DD;
  --ad-bg:#F0F1F6;
  --ad-line:#C7CCDE;
}

[data-theme="dark"] {
  --bg:#12172B;
  --bg-alt:#1A2038;
  --ink:#FFFFFF;
  --ink-soft:#B7BBCB;
  --ink-mute:#8A8FA3;
  --line:#2E3650;
  --ad-bg:#1A2038;
  --ad-line:#2E3650;
}

*{box-sizing:border-box;}
body{margin:0;background:var(--bg);color:var(--ink);font-family:'Plus Jakarta Sans',sans-serif;-webkit-font-smoothing:antialiased;transition: background-color 0.3s, color 0.3s;}
.wrap{max-width:1200px;margin:0 auto;padding:0 40px;}
a{color:inherit;text-decoration:none;}

/* ============ AD SLOT COMPONENT ============ */
.ad{
  background:var(--ad-bg);border:1.5px dashed var(--ad-line);border-radius:12px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  color:var(--ink-mute);font-size:12px;gap:4px;text-align:center;
}
.ad .tag{font-family:'IBM Plex Mono',monospace;font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;background:var(--bg);border:1px solid var(--ad-line);padding:2px 8px;border-radius:20px;}
.ad .size{font-family:'IBM Plex Mono',monospace;font-size:11px;color:var(--ink-mute);}

/* ============ TOP UTILITY BAR ============ */
.utility{background:#12172B;color:#fff;font-size:12.5px;padding:8px 0;text-align:center;}
.utility b{color:#FFB088;}

/* ============ NAV ============ */
.nav-outer{border-bottom:1px solid var(--line);position:sticky;top:0;background:rgba(255,255,255,0.85);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);z-index:1000;box-shadow:0 1px 2px rgba(0,0,0,0.02);}
.nav{display:flex;align-items:center;justify-content:space-between;padding:14px 0;}
.brand{display:flex;align-items:center;gap:10px;}
.brand-mark{width:40px;height:40px;border-radius:12px;background:linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:18px;box-shadow:0 4px 12px rgba(255,90,31,0.25);}
.brand-name{font-size:20px;font-weight:800;letter-spacing:-0.5px;color:var(--ink);}


.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 26px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}
.main-navigation li {
    position: static; /* Let submenus position relative to nav container */
}
.main-navigation > ul > li {
    padding: 18px 0;
}
.main-navigation a {
    position: relative;
    transition: color 0.15s ease;
}
.main-navigation > ul > li.menu-item-has-children > a {
    padding-right: 14px !important;
}
.main-navigation > ul > li.menu-item-has-children > a::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-right: 1.5px solid var(--ink-mute);
    border-bottom: 1.5px solid var(--ink-mute);
    transform: translateY(-70%) rotate(45deg);
    position: absolute;
    right: 0;
    top: 50%;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.main-navigation > ul > li.menu-item-has-children:hover > a::before {
    transform: translateY(-30%) rotate(-135deg);
    border-color: var(--orange);
}
.main-navigation a:hover, .main-navigation a.current {
    color: var(--orange);
}

.nav-text-link {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-soft);
    text-decoration: none;
    transition: color 0.15s ease;
    padding: 8px 12px;
}
.nav-text-link:hover {
    color: var(--orange);
}

/* Active underline indicator on hover (Databricks style) on the anchor tag */
.main-navigation > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--orange);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}
.main-navigation > ul > li:hover > a::after {
    transform: scaleX(1);
}

/* Dropdowns & Mega Menu container */
.main-navigation ul ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 900px;
  max-width: 95vw;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 15px 45px rgba(18, 23, 43, 0.08);
  z-index: 9999;
  padding: 24px;
  border-radius: 16px;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

/* Hover Bridge for mouse transition */
.main-navigation ul ul.sub-menu::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
  background: transparent;
}

.main-navigation ul li:hover > ul.sub-menu {
  display: grid !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(-50%) translateY(0);
}

/* Column Wrappers (first-level elements inside mega dropdown) */
.main-navigation ul ul.sub-menu > li {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Column Header label */
.main-navigation ul ul.sub-menu > li > a {
  font-size: 11.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  color: var(--orange) !important;
  letter-spacing: 0.8px;
  padding: 0 0 8px 0 !important;
  border-bottom: 1.5px solid var(--line);
  margin-bottom: 6px;
}
/* Disable links on columns that act as headers */
.main-navigation ul ul.sub-menu > li.menu-item-has-children > a,
.main-navigation ul ul.sub-menu > li:has(ul) > a {
  pointer-events: none !important;
  cursor: default !important;
}

/* Grandchild links container */
.main-navigation ul ul.sub-menu > li > ul.sub-menu {
  display: flex !important;
  position: static !important;
  transform: none !important;
  width: auto !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: transparent !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.main-navigation ul ul.sub-menu > li > ul.sub-menu li {
  padding: 0;
}

.main-navigation ul ul.sub-menu > li > ul.sub-menu a {
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: var(--ink-soft) !important;
  padding: 4px 0 !important;
  text-transform: none !important;
}

.main-navigation ul ul.sub-menu > li > ul.sub-menu a:hover {
  color: var(--orange) !important;
  background: transparent !important;
}



.nav-actions{display:flex;align-items:center;gap:12px;}
.search-pill{display:flex;align-items:center;gap:8px;background:var(--bg-alt);border:1px solid var(--line);border-radius:20px;padding:8px 16px;font-size:13px;color:var(--ink-mute);width:210px;cursor:text;transition:all 0.2s ease;}
.search-pill:hover{background:var(--bg);border-color:var(--orange);color:var(--ink-soft);}
.btn{font-size:13.5px;font-weight:700;padding:10px 20px;border-radius:10px;border:none;cursor:pointer;text-align:center;display:inline-block;transition:all 0.2s cubic-bezier(0.4,0,0.2,1);box-shadow:0 2px 4px rgba(0,0,0,0.02);}
.btn:hover{transform:translateY(-1px);box-shadow:0 4px 8px rgba(0,0,0,0.06);}
.btn:active{transform:translateY(0);box-shadow:0 2px 4px rgba(0,0,0,0.02);}
.btn-primary{background:var(--orange);color:#fff;box-shadow:0 3px 10px rgba(255,90,31,0.2);}
.btn-primary:hover{background:var(--orange-deep);box-shadow:0 4px 12px rgba(255,90,31,0.3);}
.btn-ghost{background:transparent;color:var(--ink);border:1.5px solid var(--line);}
.btn-ghost:hover{background:var(--bg-alt);border-color:var(--ink-soft);}


/* ============ HERO ============ */
.hero{display:grid;grid-template-columns:1.1fr 0.9fr;gap:40px;align-items:center;padding:56px 0 36px;}
.eyebrow{display:inline-flex;align-items:center;gap:6px;background:var(--orange-50);color:var(--orange-deep);font-size:12.5px;font-weight:700;padding:6px 14px;border-radius:20px;margin-bottom:20px;}
h1{font-size:50px;line-height:1.08;font-weight:800;letter-spacing:-1.2px;margin:0 0 18px; color:var(--ink);}
h1 .hl{color:var(--orange);}
.hero-sub{font-size:16.5px;line-height:1.6;color:var(--ink-soft);max-width:460px;margin:0 0 30px;}
.hero-cta{display:flex;gap:12px;margin-bottom:34px;}
.rating-row{display:flex;align-items:center;gap:12px;font-size:13px;color:var(--ink-soft);}
.stars{color:var(--amber);font-size:14px;letter-spacing:1px;}

/* phone mockup */
.phone-frame{background:#12172B;border-radius:32px;padding:14px;width:280px;margin:0 auto;box-shadow:0 20px 45px -18px rgba(18,23,43,0.35);}
.phone-screen{background:#fff;border-radius:22px;padding:22px 20px;}
.ps-tag{display:inline-block;font-size:11px;font-weight:700;background:var(--teal-50);color:var(--teal);padding:4px 10px;border-radius:8px;margin-bottom:14px;}
.ps-title{font-size:16px;font-weight:800;margin:0 0 16px; color:#12172B;}
.ps-row{display:flex;justify-content:space-between;font-size:12.5px;padding:9px 0;border-bottom:1px solid #E7E9F2;color:#5B6178;}
.ps-row b{color:#12172B;font-weight:600;font-family:'IBM Plex Mono',monospace;}
.ps-result{margin-top:16px;background:#F5F7FB;border-radius:14px;padding:16px;text-align:center;}
.ps-result .l{font-size:11.5px;color:#5B6178;margin-bottom:4px;}
.ps-result .v{font-size:26px;font-weight:800;color:var(--teal);font-family:'IBM Plex Mono',monospace;}
.ps-bar{height:6px;border-radius:3px;background:#E7E9F2;margin-top:14px;overflow:hidden;}
.ps-bar div{height:100%;width:64%;background:var(--orange);}

/* ============ HEADER AD ============ */
.ad-header{height:100px;margin:8px 0 44px;}

/* ============ TRUST STATS ============ */
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:56px;}
.stat-card{background:var(--bg-alt);border-radius:16px;padding:22px;text-align:center;}
.stat-card .n{font-size:28px;font-weight:800;font-family:'IBM Plex Mono',monospace;}
.stat-card .l{font-size:12.5px;color:var(--ink-soft);margin-top:4px;}
.stat-card.c1 .n{color:var(--orange);}
.stat-card.c2 .n{color:var(--blue);}
.stat-card.c3 .n{color:var(--teal);}
.stat-card.c4 .n{color:var(--purple);}

/* ============ SECTION HEAD ============ */
.section-head{text-align:center;max-width:560px;margin:0 auto 40px;}
.section-head .eyebrow{background:var(--blue-50);color:var(--blue);}
.section-head h2{font-size:32px;font-weight:800;letter-spacing:-0.6px;margin:0 0 10px;}
.section-head p{font-size:15px;color:var(--ink-soft);line-height:1.6;margin:0;}

/* ============ CATEGORY TILES ============ */
.cats{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:60px;}
.cat-tile{border:1px solid var(--line);border-radius:20px;padding:28px;position:relative;overflow:hidden;}
.cat-tile .icon{width:52px;height:52px;border-radius:14px;display:flex;align-items:center;justify-content:center;margin-bottom:18px;}
.cat-tile .icon svg{width:26px;height:26px;stroke-width:1.8;fill:none;}
.cat-tile h3{font-size:19px;font-weight:700;margin:0 0 6px;}
.cat-tile .count{font-size:12.5px;color:var(--ink-mute);font-family:'IBM Plex Mono',monospace;margin-bottom:14px;display:block;}
.chip-row{display:flex;flex-wrap:wrap;gap:8px;}
.chip{font-size:11.5px;font-weight:600;padding:5px 11px;border-radius:20px;background:var(--bg-alt);color:var(--ink-soft);}
.cat-tile.t1 .icon{background:var(--orange-50);} .cat-tile.t1 .icon svg{stroke:var(--orange-deep);}
.cat-tile.t2 .icon{background:var(--blue-50);} .cat-tile.t2 .icon svg{stroke:var(--blue);}
.cat-tile.t3 .icon{background:var(--purple-50);} .cat-tile.t3 .icon svg{stroke:var(--purple);}

/* ============ TOOL CARD GRID ============ */
.content-split{display:grid;grid-template-columns:1fr 300px;gap:32px;align-items:start;margin-bottom:60px;}
.tool-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;}
.tool-card{border:1px solid var(--line);border-radius:16px;padding:20px;display:flex;gap:14px;align-items:flex-start;}
.tool-card .ic{width:40px;height:40px;border-radius:11px;display:flex;align-items:center;justify-content:center;flex:none;}
.tool-card .ic svg{width:20px;height:20px;stroke-width:1.8;fill:none;}
.tool-card h4{font-size:15px;font-weight:700;margin:0 0 4px;}
.tool-card p{font-size:12px;color:var(--ink-soft);line-height:1.45;margin:0;}
.tool-card.ic-orange .ic{background:var(--orange-50);} .tool-card.ic-orange .ic svg{stroke:var(--orange-deep);}
.tool-card.ic-blue .ic{background:var(--blue-50);} .tool-card.ic-blue .ic svg{stroke:var(--blue);}
.tool-card.ic-teal .ic{background:var(--teal-50);} .tool-card.ic-teal .ic svg{stroke:var(--teal);}
.tool-card.ic-pink .ic{background:var(--pink-50);} .tool-card.ic-pink .ic svg{stroke:var(--pink);}
.tool-card.ic-amber .ic{background:var(--amber-50);} .tool-card.ic-amber .ic svg{stroke:var(--amber);}
.tool-card.ic-purple .ic{background:var(--purple-50);} .tool-card.ic-purple .ic svg{stroke:var(--purple);}
.view-all{grid-column:1/-1;text-align:center;margin-top:8px;}

.sidebar-stack{display:flex;flex-direction:column;gap:20px;position:sticky;top:80px;}
.ad-300x250{height:250px;}
.ad-300x600{height:600px;}

/* ============ POPULAR STRIP ============ */
.popular-strip{margin-bottom:60px;}
.pop-chips{display:flex;flex-wrap:wrap;gap:10px;}
.pop-chip{font-size:13px;font-weight:600;padding:9px 16px;border-radius:20px;border:1px solid var(--line);color:var(--ink-soft);display:flex;align-items:center;gap:6px;}
.pop-chip .dot{width:6px;height:6px;border-radius:50%;background:var(--teal);}

/* ============ IN-FEED AD ============ */
.ad-infeed{height:120px;margin-bottom:60px;}

/* ============ FEATURE TRIO ============ */
.features{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-bottom:60px;}
.feature{padding:26px;border-radius:18px;}
.feature .icon{width:44px;height:44px;border-radius:12px;background:#fff;display:flex;align-items:center;justify-content:center;margin-bottom:16px;}
.feature .icon svg{width:22px;height:22px;stroke-width:1.8;fill:none;}
.feature h4{font-size:16.5px;font-weight:700;margin:0 0 8px; color:#12172B;}
.feature p{font-size:13px;line-height:1.55;margin:0;}
.feature.f1{background:var(--orange-50);} .feature.f1 .icon svg{stroke:var(--orange-deep);} .feature.f1 p{color:#8A4B32;}
.feature.f2{background:var(--blue-50);} .feature.f2 .icon svg{stroke:var(--blue);} .feature.f2 p{color:#3E5B8C;}
.feature.f3{background:var(--teal-50);} .feature.f3 .icon svg{stroke:var(--teal);} .feature.f3 p{color:#3D7A63;}

/* ============ BLOG ============ */
.blog-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:24px;}
.blog-head h2{font-size:26px;font-weight:800;margin:0;}
.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:60px;}
.blog-card{border:1px solid var(--line);border-radius:16px;overflow:hidden;}
.blog-thumb{height:110px;display:flex;align-items:center;justify-content:center;}
.blog-thumb svg{width:32px;height:32px;stroke-width:1.5;fill:none;stroke:#fff;}
.blog-body{padding:16px 18px 20px;}
.blog-body .date{font-size:11px;color:var(--ink-mute);font-family:'IBM Plex Mono',monospace;}
.blog-body h4{font-size:14.5px;font-weight:700;margin:8px 0 6px;line-height:1.35;}
.blog-body p{font-size:12px;color:var(--ink-soft);line-height:1.5;margin:0;}

/* ============ BOTTOM CTA ============ */
.cta-band{background:#12172B;border-radius:24px;padding:48px 56px;display:flex;justify-content:space-between;align-items:center;margin-bottom:56px;}
.cta-band h2{color:#fff;font-size:26px;font-weight:800;margin:0 0 8px;}
.cta-band p{color:#B7BBCB;font-size:14px;margin:0;}
.btn-white{background:#fff;color:#12172B;}

/* ============ FOOTER (Databricks Style) ============ */
.databricks-style-footer {
  background: #0B1622;
  color: #B7BBCB;
  padding: 80px 0 40px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin-top: 80px;
  border-top: 1px solid #1A2E40;
}
.databricks-style-footer a {
  color: #A3AABF;
  transition: color 0.15s ease, transform 0.15s ease;
}
.databricks-style-footer a:hover {
  color: #FFFFFF;
}
.foot-top-grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(5, 1fr);
  gap: 30px;
  padding-bottom: 50px;
}
.foot-brand-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.brand-mark-footer {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #FF5A1F;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 10px rgba(255, 90, 31, 0.2);
}
.brand-name-footer {
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.5px;
}
.brand-address {
  font-size: 13px;
  line-height: 1.6;
  color: #8E98B0;
  margin: 0;
}
.footer-social-row {
  display: flex;
  gap: 10px;
}
.footer-social-row a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #22384D;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8E98B0;
  transition: all 0.2s ease;
}
.footer-social-row a:hover {
  border-color: #FFFFFF;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}
.foot-careers-link {
  font-size: 13px;
  font-weight: 600;
  color: #FF5A1F !important;
  text-decoration: none;
}
.foot-careers-link:hover {
  color: #FF7746 !important;
}

.foot-links-col h5 {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: #FFFFFF;
  letter-spacing: 1px;
  margin: 0 0 20px 0;
}
.foot-links-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.foot-links-col li {
  font-size: 13px;
  line-height: 1.4;
}
.foot-links-col li.sub-hdr {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #5E6D82;
  letter-spacing: 0.8px;
  margin-top: 14px;
  margin-bottom: 2px;
  pointer-events: none;
}
.foot-links-col li.sub-hdr:first-child {
  margin-top: 0;
}

/* Bottom Legal Row styling */
.foot-bottom-bar {
  border-top: 1px solid #1A2E40;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  font-size: 12px;
  color: #6C7A9C;
  line-height: 1.5;
}
.legal-disclaimer {
  max-width: 50%;
}
.legal-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.legal-links a {
  color: #8E98B0;
  text-decoration: none;
}
.legal-links .divider {
  color: #22384D;
}
.privacy-choices-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.choices-icon {
  background: #3B82F6;
  border-radius: 4px;
  padding: 1px 4px;
  display: inline-flex;
  gap: 2px;
  font-size: 9px;
  color: #fff;
  font-weight: 800;
}
.choices-icon .check-mark {
  color: #22C55E;
}
.choices-icon .cross-mark {
  color: #EF4444;
}

@media (max-width: 900px) {
  .foot-top-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .foot-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .legal-disclaimer {
    max-width: 100%;
  }
}



/* Page Formatting */
.page-header { margin: 40px 0; text-align: center; }
.entry-content { margin-bottom: 60px; font-size: 1.1rem; }

/* Accessibility */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

/* App Interface Layout */
.app-wrap {
    display: flex;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 24px;
    gap: 40px;
}
.app-sidebar {
    width: 260px;
    flex-shrink: 0;
    border-right: 1px solid var(--line);
    padding-right: 24px;
}
.sidebar-group { margin-bottom: 32px; }
.sidebar-group h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ink-mute);
    margin-bottom: 12px;
}
.sidebar-group a {
    display: block;
    padding: 10px 16px;
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}
.sidebar-group a:hover { background: var(--bg-alt); color: var(--ink); }
.sidebar-group a.active { background: var(--orange-50); color: var(--orange-deep); font-weight: 600; }

.app-main { flex-grow: 1; min-width: 0; }
.tool-header h1 { font-size: 32px; margin-bottom: 8px; }
.tool-header p { color: var(--ink-soft); font-size: 16px; margin-bottom: 40px; }

/* SIP Calculator UI */
.calc-container {
    display: flex;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(18, 23, 43, 0.04);
    overflow: hidden;
    margin-bottom: 40px;
}
.calc-inputs {
    flex: 1;
    padding: 40px;
    border-right: 1px solid var(--line);
}
.calc-results {
    width: 360px;
    background: var(--bg-alt);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.input-group { margin-bottom: 32px; }
.input-group:last-child { margin-bottom: 0; }
.input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.input-header label { font-weight: 600; color: var(--ink); font-size: 15px; }

.val-box {
    display: flex;
    align-items: center;
    background: var(--teal-50);
    border-radius: 6px;
    padding: 6px 12px;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    color: var(--teal);
}
.val-box input {
    background: transparent;
    border: none;
    color: var(--teal);
    font-family: inherit;
    font-weight: inherit;
    font-size: 16px;
    text-align: right;
    width: 90px;
    outline: none;
}
.val-box input::-webkit-outer-spin-button,
.val-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.val-box .currency { margin-right: 4px; }
.val-box .suffix { margin-left: 4px; }

/* Premium Range Sliders */
.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--line);
    outline: none;
}
.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--teal);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(14, 159, 110, 0.2);
    transition: transform 0.1s;
}
.range-slider::-webkit-slider-thumb:hover { transform: scale(1.1); }

/* Results Panel */
.result-summary { width: 100%; margin-bottom: 40px; }
.res-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 15px;
    color: var(--ink-soft);
}
.res-item strong { color: var(--ink); font-family: 'IBM Plex Mono', monospace; font-size: 18px; }
.res-total {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed var(--line);
    font-size: 16px;
    font-weight: 600;
}
.res-total strong { color: var(--teal); font-family: 'IBM Plex Mono', monospace; font-size: 24px; }

/* Donut Chart */
.chart-container { position: relative; width: 180px; height: 180px; }
.donut-chart { transform: rotate(-90deg); width: 100%; height: 100%; }
.donut-bg { fill: transparent; stroke: var(--ad-line); stroke-width: 12; }
.donut-segment {
    fill: transparent;
    stroke: var(--teal);
    stroke-width: 12;
    stroke-dasharray: 251.2; /* 2 * pi * r (where r=40) */
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.5s ease-out;
}
.chart-legend { display: flex; justify-content: center; gap: 16px; margin-top: 24px; font-size: 13px; color: var(--ink-soft); }
.chart-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.dot-invested { background: var(--ad-line); }
.dot-returns { background: var(--teal); }

.tool-content { margin-top: 60px; max-width: 800px; color: var(--ink-soft); line-height: 1.7; }
.tool-content h2 { color: var(--ink); margin-bottom: 16px; }

@media (max-width: 900px) {
    .app-wrap { flex-direction: column; }
    .app-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 24px; display: flex; overflow-x: auto; gap: 24px; }
    .sidebar-group { margin-bottom: 0; white-space: nowrap; }
    .calc-container { flex-direction: column; }
    .calc-results { width: 100%; border-top: 1px solid var(--line); }
}

/* Custom Tabs for Visual vs Schedule */
.result-tabs {
    display: flex;
    background: var(--bg);
    border: 1px solid var(--line);
    padding: 4px;
    border-radius: 20px;
    margin-bottom: 24px;
    width: 100%;
}
.tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.tab-btn.active {
    background: var(--teal-50);
    color: var(--teal);
}
.tab-content {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
}
.tab-content.active {
    display: flex;
}

/* Schedule Table */
.table-wrapper {
    width: 100%;
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
}
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
    text-align: left;
}
.schedule-table th, .schedule-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
}
.schedule-table th {
    background: var(--bg-alt);
    font-weight: 600;
    color: var(--ink-soft);
    position: sticky;
    top: 0;
}
.schedule-table tr:last-child td {
    border-bottom: none;
}
.schedule-table td {
    font-family: 'IBM Plex Mono', monospace;
    color: var(--ink);
}

/* Layout helpers for XIRR & IRR */
.flex-col {
    flex-direction: column;
}
.w-100 {
    width: 100% !important;
}
.border-none {
    border: none !important;
}
.border-top {
    border-top: 1px solid var(--line) !important;
}
.info-alert {
    background: var(--blue-50);
    color: var(--blue);
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 500;
}

/* Image Resizer Custom Styles */
.resizer-dropzone {
    background: var(--bg);
    border: 2px dashed var(--line);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}
.resizer-dropzone:hover, .resizer-dropzone.drag-active {
    border-color: var(--orange);
    background: var(--orange-50);
}
.dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.upload-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--orange-50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: transform 0.2s ease;
}
.resizer-dropzone:hover .upload-icon-circle {
    transform: scale(1.08);
}
.dropzone-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
}
.dropzone-sub {
    font-size: 12.5px;
    color: var(--ink-mute);
}

.resizer-workspace {
    width: 100%;
}
.resizer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    align-items: start;
}

.resizer-preview-panel, .resizer-controls-panel {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(18, 23, 43, 0.03);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.panel-header h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: var(--ink);
}
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 8px;
}

.preview-box {
    width: 100%;
    min-height: 320px;
    max-height: 480px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background-color: #fafafa;
    /* Checkerboard pattern for transparent images */
    background-image: linear-gradient(45deg, #efefef 25%, transparent 25%), 
                      linear-gradient(-45deg, #efefef 25%, transparent 25%), 
                      linear-gradient(45deg, transparent 75%, #efefef 75%), 
                      linear-gradient(-45deg, transparent 75%, #efefef 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.preview-box img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
}
.image-meta-badge {
    position: absolute;
    bottom: 12px;
    background: rgba(18, 23, 43, 0.85);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-family: 'IBM Plex Mono', monospace;
}

.control-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--ink-mute);
    margin-bottom: 20px;
}

.dimension-fields {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 16px;
}
.input-field-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.input-field-group label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-soft);
}
.input-field-group input[type="number"], .premium-select {
    width: 100%;
    border: 1px solid var(--line);
    padding: 10px 14px;
    border-radius: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 15px;
    outline: none;
    background: var(--bg);
    color: var(--ink);
    transition: border-color 0.2s;
}
.input-field-group input[type="number"]:focus, .premium-select:focus {
    border-color: var(--teal);
}
.premium-select {
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6178' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
}

.aspect-lock-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: var(--bg-alt);
    margin-bottom: 1px;
}
.lock-icon {
    stroke: var(--ink-mute);
    transition: stroke 0.2s;
}
.lock-icon.locked {
    stroke: var(--teal);
}

.aspect-lock-row {
    margin-bottom: 24px;
}
.custom-checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink-soft);
}
.custom-checkbox-container input {
    width: 16px;
    height: 16px;
    accent-color: var(--teal);
}

.panel-divider {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 24px 0;
}

.quality-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-soft);
}
.quality-label-row span {
    font-family: 'IBM Plex Mono', monospace;
    color: var(--teal);
}

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

/* Full-Width Layout Styles */
.full-width-layout {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 24px;
}
.full-width-layout .app-main {
    width: 100%;
}
.text-center {
    text-align: center;
}
.text-center h1 {
    font-size: 38px;
    margin-bottom: 12px;
}
.text-center p {
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 16px;
    color: var(--ink-soft);
}
.max-width-centered {
    max-width: 800px;
    margin: 50px auto 0;
    color: var(--ink-soft);
    line-height: 1.7;
}
.max-width-centered h2 {
    color: var(--ink);
    margin-bottom: 16px;
}
.calc-container {
    max-width: 1000px;
    margin: 0 auto 40px;
}

/* Dropdown Menu under Select Images Button */
.select-button-container {
    position: relative;
    display: inline-block;
}
.split-btn-group {
    display: flex;
    align-items: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(255, 90, 31, 0.2);
}
.split-btn-group .btn {
    border-radius: 0 !important;
    margin: 0 !important;
}
.split-btn-group #btn_select_image_main {
    border-right: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 12px 24px;
}
.split-toggle-btn {
    padding: 12px 14px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
.select-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-top: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 100;
    display: none;
    flex-direction: column;
    overflow: hidden;
    min-width: 200px;
}
.select-dropdown-menu.active {
    display: flex;
}
.dropdown-item {
    padding: 12px 16px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-align: left;
}
.dropdown-item:hover {
    background: var(--bg-alt);
    color: var(--orange);
}
.dropdown-item svg {
    opacity: 0.8;
}

/* URL loading input block */
.url-input-box input {
    border: 1px solid var(--line);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background: var(--bg);
    color: var(--ink);
    transition: border-color 0.2s;
}
.url-input-box input:focus {
    border-color: var(--orange);
}

/* Homepage Redesign Styles */
.homepage-hero-wrap {
    background: radial-gradient(100% 100% at 50% 0%, rgba(255, 90, 31, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    padding: 80px 0 60px;
    border-bottom: 1px solid var(--line);
}
.hero-content-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}
.hero-pill {
    background: var(--orange-50);
    color: var(--orange-deep);
    border: 1px solid rgba(255, 90, 31, 0.15);
}
.hero-text-block h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--ink);
    margin: 16px 0;
}
.hero-text-block h1 .hl {
    color: var(--orange);
}
.hero-text-block .hero-sub {
    font-size: 18px;
    color: var(--ink-soft);
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 540px;
}

/* Home search */
.hero-search-wrapper {
    position: relative;
    max-width: 480px;
    z-index: 15;
}
.home-search-bar {
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 1.5px solid var(--line);
    border-radius: 14px;
    padding: 12px 18px;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}
.home-search-bar:focus-within {
    border-color: var(--orange);
    box-shadow: 0 4px 24px rgba(255, 90, 31, 0.12);
}
.home-search-bar input {
    border: none;
    outline: none;
    font-size: 15px;
    color: var(--ink);
    flex: 1;
    background: transparent;
}
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-top: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}
.suggestion-item {
    display: flex;
    flex-direction: column;
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
    transition: background 0.2s;
    cursor: pointer;
    text-align: left;
}
.suggestion-item:last-child {
    border-bottom: none;
}
.suggestion-item:hover {
    background: var(--bg-alt);
}
.suggestion-item strong {
    font-size: 14px;
    color: var(--ink);
}
.suggestion-item span {
    font-size: 12px;
    color: var(--ink-soft);
    margin-top: 2px;
}

/* Glass mockup card */
.glass-dashboard-mockup {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(18, 23, 43, 0.08);
}
.mockup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.window-dots {
    display: flex;
    gap: 6px;
}
.window-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }
.mockup-tab {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-soft);
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--line);
}
.mockup-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--ink-soft);
    padding: 8px 0;
}
.mockup-row strong {
    color: var(--ink);
    font-family: 'IBM Plex Mono', monospace;
}
.mockup-divider {
    border-top: 1px dashed var(--line);
    margin: 16px 0;
}
.mockup-result {
    text-align: center;
    background: var(--teal-50);
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 20px;
}
.mockup-result .lbl {
    font-size: 12px;
    color: var(--teal);
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}
.mockup-result .val {
    font-size: 32px;
    font-weight: 800;
    color: var(--teal);
    font-family: 'IBM Plex Mono', monospace;
    display: block;
}
.mockup-chart-bar {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.category-heading {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ink-mute);
    margin: 40px 0 20px;
    border-bottom: 1.5px solid var(--line);
    padding-bottom: 8px;
}
.tool-grid .tool-card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.tool-grid .tool-card:hover {
    transform: translateY(-3px);
    border-color: var(--orange);
    box-shadow: 0 10px 24px rgba(18, 23, 43, 0.05);
}
.homepage-section {
    padding: 60px 0 20px;
}
.features-homepage-wrap {
    margin-top: 40px;
    border-top: 1px solid var(--line);
    padding-top: 60px;
}
/* Bulk Queue Styles */
.bulk-queue-stack {
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
}
.bulk-queue-stack::-webkit-scrollbar {
    width: 6px;
}
.bulk-queue-stack::-webkit-scrollbar-track {
    background: transparent;
}
.bulk-queue-stack::-webkit-scrollbar-thumb {
    background-color: var(--line);
    border-radius: 20px;
}
.bulk-queue-card {
    transition: all 0.2s ease;
}
.bulk-queue-card:hover {
    border-color: var(--orange) !important;
    box-shadow: 0 4px 12px rgba(255, 90, 31, 0.05);
}

/* Global Search Overlay Modal (Databricks Style) */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 22, 34, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
}
.search-modal-card {
    width: 600px;
    max-width: 90vw;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: searchFadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.search-modal-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding: 16px 24px;
    gap: 14px;
}
.search-modal-header input {
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--ink);
    flex: 1;
    background: transparent;
    padding: 4px 0;
}
.close-search-btn {
    font-size: 28px;
    color: var(--ink-mute);
    border: none;
    background: transparent;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: color 0.15s;
}
.close-search-btn:hover {
    color: var(--pink);
}
.modal-search-suggestions {
    max-height: 380px;
    overflow-y: auto;
    scrollbar-width: thin;
}
.modal-search-suggestions .suggestion-item {
    border-bottom: 1px solid var(--line);
    text-decoration: none;
}
.modal-search-suggestions .suggestion-item:last-child {
    border-bottom: none;
}

@keyframes searchFadeIn {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

