/* ===========================
   KeyDhan™ V20 Enterprise
   Premium Black & Gold Theme
=========================== */

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

html{
scroll-behavior:smooth;
}

:root{
--bg:#020814;
--bg2:#071323;
--bg3:#0b1627;
--gold:#D4AF37;
--gold2:#F8E58C;
--text:#ffffff;
--muted:#cbd5e1;
--border:rgba(212,175,55,.18);
}

body{
font-family:'Poppins',sans-serif;
background:var(--bg);
color:var(--text);
overflow-x:hidden;
}

/* HEADER */

header{
position:sticky;
top:0;
display:flex;
justify-content:space-between;
align-items:center;
padding:18px 24px;
background:rgba(2,8,20,.95);
backdrop-filter:blur(18px);
border-bottom:1px solid var(--border);
z-index:999;
}

.logo{
font-size:34px;
font-weight:800;
cursor:pointer;
user-select:none;
}

.logo span{
color:var(--gold);
}

.logo sup{
color:var(--gold);
font-size:12px;
}

/* MENU */

.menu-btn{
width:46px;
height:46px;
border:none;
background:var(--bg3);
color:var(--gold);
font-size:24px;
border-radius:12px;
cursor:pointer;
display:none;
}

nav{
display:flex;
gap:28px;
}

nav a{
color:white;
text-decoration:none;
font-weight:600;
transition:.25s;
}

nav a:hover{
color:var(--gold);
}

/* HERO */

.hero{
min-height:90vh;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
text-align:center;
padding:100px 20px;
background:
radial-gradient(circle at center,rgba(212,175,55,.18),transparent 45%);
}

.key3d{
width:120px;
height:120px;
display:flex;
align-items:center;
justify-content:center;
font-size:70px;
background:radial-gradient(circle,var(--gold2),var(--gold));
border-radius:28px;
color:#111;
box-shadow:0 0 35px rgba(212,175,55,.45);
animation:keyFloat 3s ease-in-out infinite;
margin-bottom:25px;
}

@keyframes keyFloat{
50%{
transform:translateY(-8px) rotate(-6deg);
}
}

.hero h1{
font-size:58px;
line-height:1.1;
margin-bottom:18px;
}

.hero h1 span{
color:var(--gold);
}

.hero p{
max-width:700px;
color:var(--muted);
font-size:19px;
line-height:1.8;
}

/* BUTTON */

.btn{
display:inline-block;
margin-top:25px;
padding:14px 28px;
border-radius:999px;
background:var(--gold);
color:#111;
text-decoration:none;
font-weight:700;
transition:.3s;
}

.btn:hover{
transform:translateY(-2px);
box-shadow:0 10px 30px rgba(212,175,55,.35);
}

/* SECTION */

.section{
max-width:1150px;
margin:auto;
padding:70px 20px;
}

.section h2{
text-align:center;
font-size:40px;
color:var(--gold);
margin-bottom:40px;
}

/* GRID */

.grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:24px;
}

/* CARD */

.card{
background:linear-gradient(180deg,#071323,#08101d);
border:1px solid var(--border);
border-radius:24px;
padding:24px;
transition:.3s;
}

.card:hover{
transform:translateY(-6px);
border-color:rgba(212,175,55,.45);
}

.card img{
width:100%;
height:200px;
object-fit:cover;
border-radius:16px;
margin-bottom:16px;
}

.card h3{
margin-bottom:10px;
}

/* FORM */

form{
display:flex;
flex-direction:column;
gap:14px;
}

input,
select,
textarea{
width:100%;
padding:15px;
background:var(--bg3);
border:1px solid #334;
border-radius:14px;
color:white;
font-size:16px;
}

textarea{
min-height:120px;
resize:vertical;
}

button{
padding:15px;
background:var(--gold);
color:#111;
font-size:18px;
font-weight:700;
border:none;
border-radius:14px;
cursor:pointer;
transition:.25s;
}

button:hover{
box-shadow:0 10px 25px rgba(212,175,55,.35);
}

/* EMI RESULT */

#results,
#chart{
display:none;
margin-top:25px;
}

#results p{
padding:12px 0;
border-bottom:1px solid rgba(255,255,255,.08);
}

#results span{
color:var(--gold);
font-weight:700;
}

table{
width:100%;
border-collapse:collapse;
margin-top:18px;
}

th{
background:#091325;
color:var(--gold);
padding:12px;
}

td{
padding:12px;
border-bottom:1px solid rgba(255,255,255,.08);
text-align:center;
}

/* WHATSAPP */

.whatsapp{
position:fixed;
right:22px;
bottom:22px;
width:62px;
height:62px;
border-radius:50%;
background:#25D366;
display:flex;
justify-content:center;
align-items:center;
font-size:30px;
color:white;
text-decoration:none;
box-shadow:0 12px 30px rgba(0,0,0,.35);
z-index:999;
}

/* FOOTER */

footer{
padding:40px 20px;
text-align:center;
color:#9ca3af;
border-top:1px solid rgba(212,175,55,.12);
}

/* MOBILE */

@media(max-width:768px){

.menu-btn{
display:block;
}

nav{
display:none;
position:absolute;
top:76px;
right:20px;
width:230px;
background:#071323;
border:1px solid var(--border);
border-radius:18px;
padding:10px;
flex-direction:column;
box-shadow:0 20px 40px rgba(0,0,0,.35);
}

nav.show{
display:flex;
}

nav a{
padding:14px;
border-radius:10px;
}

nav a:hover{
background:#0b1627;
}

.hero h1{
font-size:42px;
}

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

.logo{
font-size:28px;
}

.section h2{
font-size:30px;
}

.key3d{
width:100px;
height:100px;
font-size:56px;
}

}


/* Premium featured property cards on the homepage */
#properties #featuredStatus{color:var(--muted);text-align:center;font-size:13px;margin:-24px 0 18px}
#featuredProperties{grid-template-columns:repeat(auto-fit,minmax(245px,1fr));align-items:stretch}
#featuredProperties .home-property-card{padding:12px;overflow:hidden;display:flex;flex-direction:column;gap:0;text-align:left;min-width:0}
#featuredProperties .home-property-visual{height:185px;position:relative;overflow:hidden;border-radius:15px;background:linear-gradient(145deg,#13243a,#07101d);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;margin-bottom:14px}
#featuredProperties .home-property-visual>span{position:absolute;z-index:1;left:12px;top:12px;font-size:9px;letter-spacing:1.2px;font-weight:800;color:var(--gold2);text-shadow:0 1px 4px #000}
#featuredProperties .home-property-visual img{width:100%;height:100%;object-fit:cover;border-radius:0;margin:0;transition:transform .35s}
#featuredProperties .home-property-card:hover .home-property-visual img{transform:scale(1.035)}
#featuredProperties .home-property-placeholder b{font-size:58px;font-weight:400;color:var(--gold)}
#featuredProperties .home-property-body{display:flex;flex-direction:column;align-items:flex-start;flex:1;padding:0 4px 4px}
#featuredProperties .home-property-body h3{color:var(--gold2);font-size:19px;margin:0 0 8px;line-height:1.35}
#featuredProperties .home-property-price{font-size:22px;color:#fff;margin-bottom:9px}
#featuredProperties .home-property-location{font-size:12px;color:var(--muted);margin-bottom:10px;line-height:1.5}
#featuredProperties .home-property-tags{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}
#featuredProperties .home-property-tags span{font-size:10px;color:#e8edf5;background:#142338;border:1px solid #2b3c52;border-radius:20px;padding:4px 8px}
#featuredProperties .home-property-description{font-size:12px;line-height:1.65;color:#cbd5e1;margin:0 0 14px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
#featuredProperties .home-property-enquire{width:100%;margin-top:auto;padding:12px 14px;border-radius:11px;font-size:13px}
@media(max-width:600px){#featuredProperties{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#featuredProperties .home-property-card{padding:9px;border-radius:16px}#featuredProperties .home-property-visual{height:130px;margin-bottom:10px}#featuredProperties .home-property-body h3{font-size:15px}#featuredProperties .home-property-price{font-size:18px}#featuredProperties .home-property-description{font-size:11px;-webkit-line-clamp:3}#featuredProperties .home-property-enquire{font-size:12px;padding:10px 7px}}


/* Homepage cards: compact premium layout */
#properties #featuredProperties{grid-template-columns:repeat(auto-fit,minmax(220px,280px));justify-content:center;gap:18px}
#properties #featuredProperties .home-property-card{padding:10px;border-radius:18px}
#properties #featuredProperties .home-property-visual{height:145px;margin-bottom:11px;border-radius:12px}
#properties #featuredProperties .home-property-body h3{font-size:17px;margin-bottom:5px}
#properties #featuredProperties .home-property-price{font-size:20px;margin-bottom:6px}
#properties #featuredProperties .home-property-location{font-size:11px;margin-bottom:7px}
#properties #featuredProperties .home-property-tags{margin-bottom:7px}
#properties #featuredProperties .home-property-description{font-size:11px;line-height:1.5;-webkit-line-clamp:2;margin-bottom:10px}
#properties #featuredProperties .home-property-enquire{padding:10px 12px;font-size:12px}
@media(max-width:600px){#properties #featuredProperties{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#properties #featuredProperties .home-property-card{padding:8px;border-radius:14px}#properties #featuredProperties .home-property-visual{height:105px;margin-bottom:8px;border-radius:10px}#properties #featuredProperties .home-property-body h3{font-size:13px;margin-bottom:5px}#properties #featuredProperties .home-property-price{font-size:16px;margin-bottom:5px}#properties #featuredProperties .home-property-location{font-size:10px;line-height:1.35;margin-bottom:6px}#properties #featuredProperties .home-property-tags{gap:4px;margin-bottom:6px}#properties #featuredProperties .home-property-tags span{font-size:9px;padding:3px 6px}#properties #featuredProperties .home-property-description{font-size:10px;line-height:1.4;-webkit-line-clamp:2;margin-bottom:8px}#properties #featuredProperties .home-property-enquire{font-size:10px;padding:9px 5px;border-radius:9px}}


/* Homepage property cards use the same visual language as properties.html */
#properties #featuredProperties .home-property-card{padding:0;overflow:hidden;display:flex;flex-direction:column;gap:0;text-align:left;min-width:0;border-radius:18px;background:linear-gradient(155deg,#0b192b 0%,#07111f 80%);border:1px solid rgba(212,175,55,.2);box-shadow:0 12px 30px rgba(0,0,0,.14)}
#properties #featuredProperties .home-property-visual{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:145px;overflow:hidden;background:radial-gradient(ellipse at 50% 15%,rgba(212,175,55,.18),transparent 48%),linear-gradient(135deg,#14253a,#07111f 75%);border:0;border-bottom:1px solid rgba(212,175,55,.16);border-radius:0;margin:0 0 0}
#properties #featuredProperties .home-property-visual:after{content:"";position:absolute;inset:10px;border:1px solid rgba(212,175,55,.14);border-radius:10px;pointer-events:none}
#properties #featuredProperties .home-property-visual img{position:absolute;inset:0;z-index:0;display:block;width:100%;height:100%;object-fit:cover;margin:0;border-radius:0}
#properties #featuredProperties .home-property-visual .visual-brand{position:absolute;left:16px;top:14px;color:#f4d77a;font-size:9px;letter-spacing:.16em;font-weight:800;text-transform:uppercase;z-index:1}
#properties #featuredProperties .home-property-visual .home-house-icon{width:48px;height:48px;color:rgba(244,215,122,.9)}
#properties #featuredProperties .home-property-body{display:flex;flex-direction:column;align-items:stretch;flex:1;min-width:0;padding:14px}
#properties #featuredProperties .home-property-title{font-size:17px;color:#f5d46a;font-weight:750;line-height:1.35;overflow-wrap:anywhere;margin:0 0 5px}
#properties #featuredProperties .home-property-price{font-size:21px;font-weight:800;letter-spacing:-.02em;margin:4px 0 7px;color:#fff}
#properties #featuredProperties .home-property-location{display:flex;align-items:flex-start;gap:7px;color:#cbd5e1;margin:0 0 9px;font-size:12px;line-height:1.5}
#properties #featuredProperties .home-property-location svg{flex:0 0 16px;margin-top:1px;color:var(--gold)}
#properties #featuredProperties .home-property-tags{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 9px}
#properties #featuredProperties .home-property-tags span{display:inline-flex;align-items:center;border-radius:999px;font-size:10px;font-weight:750;padding:5px 8px}
#properties #featuredProperties .home-property-detail{background:rgba(148,163,184,.1);border:1px solid rgba(148,163,184,.16);color:#cbd5e1}
#properties #featuredProperties .home-property-badge{background:rgba(212,175,55,.13);border:1px solid rgba(212,175,55,.32);color:#f5d46a}
#properties #featuredProperties .home-property-description{color:#9eacbf;margin:0 0 12px;line-height:1.55;font-size:11px;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#properties #featuredProperties .home-property-enquire{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:auto;width:100%;min-height:38px;padding:9px 10px;border-radius:10px;font-size:12px}
#properties #featuredProperties .home-property-enquire span{font-size:16px;line-height:1}
@media(max-width:600px){#properties #featuredProperties{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#properties #featuredProperties .home-property-visual{height:105px}#properties #featuredProperties .home-property-body{padding:10px}#properties #featuredProperties .home-property-title{font-size:13px}#properties #featuredProperties .home-property-price{font-size:16px}#properties #featuredProperties .home-property-location{font-size:10px;gap:5px}#properties #featuredProperties .home-property-tags{gap:4px}#properties #featuredProperties .home-property-tags span{font-size:9px;padding:4px 6px}#properties #featuredProperties .home-property-description{font-size:10px}#properties #featuredProperties .home-property-enquire{font-size:10px;padding:8px 4px;min-height:34px}}

/* Responsive latest-six homepage property slider */
#properties .home-property-slider{display:grid;grid-template-columns:42px minmax(0,1fr) 42px;align-items:center;gap:12px;max-width:1040px;margin:0 auto}#properties #featuredProperties{display:block;min-width:0}#properties #featuredProperties .home-property-card{max-width:390px;width:100%;margin:0 auto}#properties .slider-control{width:42px;height:42px;display:flex;align-items:center;justify-content:center;padding:0;border-radius:50%;font-size:28px;line-height:1;background:#0b1627;color:var(--gold);border:1px solid rgba(212,175,55,.35)}#properties .slider-control:disabled{opacity:.35;cursor:default;box-shadow:none}#properties .slider-dots{display:flex;justify-content:center;gap:8px;margin:16px auto 0}#properties .slider-dot{width:8px;height:8px;min-width:8px;padding:0;border-radius:99px;background:#344155;transition:width .2s ease}#properties .slider-dot.active{width:24px;background:var(--gold)}@media(max-width:600px){#properties .home-property-slider{grid-template-columns:28px minmax(0,1fr) 28px;gap:6px}#properties .slider-control{width:28px;height:34px;border-radius:10px;font-size:23px}#properties #featuredProperties .home-property-card{max-width:none}#properties .slider-dots{margin-top:12px}}

/* Premium responsive navigation shared by homepage and properties page */
header{isolation:isolate}header .menu-btn{align-items:center;justify-content:center;flex:0 0 48px;width:48px;height:48px;border:1px solid rgba(212,175,55,.12);border-radius:16px;background:linear-gradient(145deg,#0d1a2d,#07101d);box-shadow:0 8px 22px rgba(0,0,0,.24);transition:transform .2s,border-color .2s,background .2s}header .menu-btn:hover,header .menu-btn[aria-expanded="true"]{border-color:rgba(212,175,55,.48);background:linear-gradient(145deg,#14243a,#0a1424)}header .menu-btn:active{transform:scale(.96)}header #menu{z-index:1002}#menu a[aria-current="page"]{color:var(--gold)}.mobile-menu-backdrop{position:fixed;inset:0;z-index:998;background:rgba(0,5,14,.62);backdrop-filter:blur(5px);opacity:0;visibility:hidden;transition:opacity .22s,visibility .22s}.mobile-menu-backdrop.show{opacity:1;visibility:visible}
@media(max-width:768px){header{z-index:1000}header .menu-btn{display:flex;position:relative;z-index:1003;font-size:0}header .menu-btn:before{content:"";width:19px;height:14px;background:linear-gradient(var(--gold),var(--gold)) 0 0/19px 2px no-repeat,linear-gradient(var(--gold),var(--gold)) 0 6px/19px 2px no-repeat,linear-gradient(var(--gold),var(--gold)) 0 12px/19px 2px no-repeat;transition:transform .2s}header .menu-btn[aria-expanded="true"]:before{background:linear-gradient(45deg,transparent 46%,var(--gold) 47%,var(--gold) 54%,transparent 55%) center/20px 20px no-repeat,linear-gradient(-45deg,transparent 46%,var(--gold) 47%,var(--gold) 54%,transparent 55%) center/20px 20px no-repeat}header #menu{display:flex;position:fixed;top:calc(env(safe-area-inset-top,0px) + 86px);right:14px;left:auto;width:min(310px,calc(100vw - 28px));max-height:calc(100dvh - 115px);overflow-y:auto;overscroll-behavior:contain;flex-direction:column;gap:5px;padding:12px;border:1px solid rgba(212,175,55,.28);border-radius:22px;background:linear-gradient(155deg,rgba(11,24,42,.99),rgba(4,11,23,.99));box-shadow:0 24px 70px rgba(0,0,0,.56),inset 0 1px rgba(255,255,255,.035);opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-8px) scale(.98);transform-origin:top right;transition:opacity .2s,transform .2s,visibility .2s}header #menu.show{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0) scale(1)}header #menu a{display:flex;align-items:center;min-height:52px;padding:14px 15px;border-radius:13px;color:#f8fafc;font-size:16px;font-weight:650;line-height:1.3;text-decoration:none}header #menu a:before{content:"";width:6px;height:6px;flex:0 0 6px;margin-right:12px;border-radius:50%;background:rgba(212,175,55,.45)}header #menu a:hover,header #menu a:focus-visible,header #menu a[aria-current="page"]{color:#f5d46a;background:linear-gradient(90deg,rgba(212,175,55,.13),rgba(212,175,55,.035));outline:none}header #menu a[aria-current="page"]:before{background:var(--gold);box-shadow:0 0 10px rgba(212,175,55,.5)}body.menu-open{overflow:hidden}}
@media(min-width:769px){.mobile-menu-backdrop{display:none!important}}


/* KeyDhan premium homepage hero */
.hero{position:relative;isolation:isolate;overflow:hidden;min-height:min(850px,calc(100svh - 86px));padding:clamp(66px,9vh,112px) 22px 72px;gap:0;background:radial-gradient(ellipse at 50% 38%,rgba(212,175,55,.13),transparent 34%),radial-gradient(ellipse at 15% 45%,rgba(22,54,87,.24),transparent 38%),radial-gradient(ellipse at 90% 70%,rgba(18,36,59,.22),transparent 35%),#020814}
.hero:before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background-image:linear-gradient(rgba(212,175,55,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(212,175,55,.025) 1px,transparent 1px);background-size:52px 52px;mask-image:linear-gradient(to bottom,transparent,black 18%,black 72%,transparent)}
.hero:after{content:"";position:absolute;z-index:-1;left:50%;top:42%;width:min(680px,90vw);height:min(680px,90vw);transform:translate(-50%,-50%);border:1px solid rgba(212,175,55,.07);border-radius:50%;box-shadow:0 0 0 44px rgba(212,175,55,.018),0 0 0 88px rgba(212,175,55,.012);pointer-events:none}
.hero-eyebrow{display:flex;align-items:center;justify-content:center;gap:10px;margin:0 0 28px;padding:10px 15px;border:1px solid rgba(212,175,55,.22);border-radius:999px;background:rgba(9,20,35,.74);color:#e7ca6c;font-size:11px;font-weight:800;letter-spacing:.19em}
.hero-eyebrow i,.hero-trust>i{display:block;width:3px;height:3px;border-radius:50%;background:#d4af37;opacity:.8}
.hero-eyebrow-dot{width:6px;height:6px;border-radius:50%;background:#e4c14b;box-shadow:0 0 12px rgba(212,175,55,.75)}
.hero .key3d{position:relative;width:112px;height:112px;margin:0 0 34px;border:1px solid rgba(255,244,190,.56);border-radius:32px;background:linear-gradient(145deg,#f6dc72 0%,#d4af37 58%,#a98019 100%);box-shadow:0 18px 55px rgba(212,175,55,.22),inset 0 1px 0 rgba(255,255,255,.55);animation:keyFloat 4s ease-in-out infinite}
.hero .key3d:before{content:"";position:absolute;inset:9px;border:1px solid rgba(255,255,255,.24);border-radius:24px}
.hero .key3d svg{width:72px;height:72px;filter:drop-shadow(0 4px 3px rgba(83,52,0,.24))}
.hero h1{max-width:920px;margin:0 auto 16px;font-size:clamp(48px,6.4vw,82px);font-weight:850;letter-spacing:-.055em;line-height:1.04;text-wrap:balance}
.hero h1 span{display:block;margin-top:5px;background:linear-gradient(100deg,#f7df7c 4%,#d4af37 48%,#f4d96c 90%);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero .hero-subtitle{margin:4px 0 7px;color:#f4f6fb;font-size:clamp(19px,2.3vw,25px);font-weight:650;letter-spacing:-.025em}
.hero .hero-description{max-width:620px;margin:0 auto;color:#aebbd0;font-size:16px;line-height:1.8}
.hero-actions{display:flex;justify-content:center;align-items:center;gap:13px;flex-wrap:wrap;margin-top:30px}
.hero .hero-primary{display:inline-flex;align-items:center;justify-content:center;gap:13px;min-width:185px;margin:0;padding:16px 25px;border:1px solid #e7c54e;border-radius:15px;background:linear-gradient(135deg,#f0d15b,#c9a32a);color:#10131a;font-size:16px;font-weight:800;box-shadow:0 12px 30px rgba(212,175,55,.17);transition:transform .2s,box-shadow .2s}
.hero .hero-primary span{font-size:20px;line-height:1}
.hero .hero-primary:hover{transform:translateY(-3px);box-shadow:0 16px 36px rgba(212,175,55,.25)}
.hero-secondary{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:54px;padding:14px 22px;border:1px solid rgba(203,213,225,.2);border-radius:15px;background:rgba(9,20,35,.6);color:#f2f5fa;text-decoration:none;font-size:15px;font-weight:700;transition:border-color .2s,background .2s}
.hero-secondary:hover{border-color:rgba(212,175,55,.5);background:rgba(212,175,55,.07)}
.hero-trust{display:flex;align-items:center;justify-content:center;gap:17px;flex-wrap:wrap;margin-top:34px;color:#aebbd0;font-size:12px;font-weight:600}
.hero-trust span{display:inline-flex;align-items:center;gap:7px}
.hero-trust b{display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;border:1px solid rgba(212,175,55,.38);border-radius:50%;color:#e6c451;font-size:10px}
@media(max-width:768px){.hero{min-height:calc(100svh - 86px);padding:clamp(64px,10vh,100px) 22px 76px}.hero-eyebrow{gap:8px;margin-bottom:27px;padding:9px 12px;font-size:9px;letter-spacing:.14em}.hero .key3d{width:96px;height:96px;margin-bottom:32px;border-radius:28px}.hero .key3d:before{inset:7px;border-radius:21px}.hero .key3d svg{width:64px;height:64px}.hero h1{max-width:560px;font-size:clamp(43px,9.4vw,64px);line-height:1.05;letter-spacing:-.05em;margin-bottom:18px}.hero .hero-subtitle{font-size:19px}.hero .hero-description{max-width:430px;font-size:15px;line-height:1.7}.hero-actions{width:100%;max-width:420px;gap:10px;margin-top:26px}.hero .hero-primary,.hero-secondary{min-height:54px;padding:14px 18px;border-radius:14px}.hero .hero-primary{flex:1;min-width:145px}.hero-secondary{flex:1;min-width:145px;font-size:14px}.hero-trust{gap:10px 13px;margin-top:28px;font-size:10px}.hero-trust>i{width:2px;height:2px}}
@media(max-width:390px){.hero{padding-left:16px;padding-right:16px}.hero-eyebrow{font-size:8px;letter-spacing:.11em}.hero h1{font-size:42px}.hero-actions{flex-direction:column}.hero .hero-primary,.hero-secondary{width:100%;max-width:320px}.hero-trust{gap:9px;font-size:9px}}
@media(prefers-reduced-motion:reduce){.hero .key3d{animation:none}.hero .hero-primary,.hero-secondary{transition:none}}


/* KeyDhan premium services section */
.services-premium{position:relative;isolation:isolate;overflow:hidden;padding-top:clamp(52px,7vw,88px);padding-bottom:clamp(56px,7vw,92px)}
.services-premium:before{content:"";position:absolute;z-index:-1;top:18%;left:50%;transform:translateX(-50%);width:min(800px,100%);height:500px;background:radial-gradient(ellipse,rgba(212,175,55,.055),transparent 68%);pointer-events:none}
.services-heading{text-align:center;max-width:760px;margin:0 auto 36px}
.services-eyebrow{display:inline-flex;align-items:center;gap:10px;padding:8px 13px;border:1px solid rgba(212,175,55,.23);border-radius:999px;background:rgba(11,23,41,.7);color:#d9b94b;font-size:10px;font-weight:800;letter-spacing:.18em}
.services-eyebrow i{width:4px;height:4px;border-radius:50%;background:#e3c453}
.services-heading h2{margin:19px 0 9px;color:#f7f8fc;font-size:clamp(32px,4.2vw,50px);line-height:1.12;letter-spacing:-.04em;text-wrap:balance}
.services-heading h2 span{color:#d9b43d}
.services-heading p{margin:0;color:#9eacc0;font-size:clamp(14px,1.7vw,17px);line-height:1.65}
.services-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;max-width:1180px;margin:0 auto}
.service-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;min-width:0;min-height:245px;padding:22px 20px 18px;overflow:hidden;border:1px solid rgba(212,175,55,.2);border-radius:20px;background:linear-gradient(145deg,rgba(12,26,45,.97),rgba(5,13,25,.99));box-shadow:0 12px 30px rgba(0,0,0,.12),inset 0 1px 0 rgba(255,255,255,.025);text-decoration:none;transition:transform .22s,border-color .22s,box-shadow .22s}
.service-card:before{content:"";position:absolute;top:0;left:18px;right:18px;height:1px;background:linear-gradient(90deg,transparent,rgba(231,198,80,.46),transparent)}
.service-card:after{content:"";position:absolute;right:-38px;top:-42px;width:125px;height:125px;border-radius:50%;background:radial-gradient(circle,rgba(212,175,55,.08),transparent 70%);pointer-events:none}
.service-card:hover,.service-card:focus-visible{transform:translateY(-5px);border-color:rgba(225,191,66,.58);box-shadow:0 18px 42px rgba(0,0,0,.23),0 0 26px rgba(212,175,55,.06);outline:none}
.service-icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;flex:0 0 48px;margin-bottom:22px;border:1px solid rgba(212,175,55,.24);border-radius:14px;background:linear-gradient(145deg,#172940,#0b1728);color:#e4c65b;box-shadow:inset 0 1px rgba(255,255,255,.04)}
.service-icon svg{width:25px;height:25px}
.service-copy{display:flex;flex-direction:column;align-items:flex-start;gap:9px;min-width:0;width:100%}
.service-copy strong{color:#f7f8fc;font-size:clamp(16px,1.45vw,19px);font-weight:750;line-height:1.35;letter-spacing:-.025em}
.service-copy small{min-height:40px;color:#9eacc0;font-size:13px;line-height:1.55}
.service-link{display:inline-flex;align-items:center;gap:9px;margin-top:5px;color:#e4c65b;font-size:13px;font-weight:750}
.service-link b{display:inline-flex;align-items:center;justify-content:center;width:23px;height:23px;border:1px solid rgba(212,175,55,.28);border-radius:50%;font-size:15px;font-weight:600;transition:transform .2s,background .2s}
.service-card:hover .service-link b{transform:translate(2px,-2px);background:rgba(212,175,55,.1)}
.service-number{position:absolute;right:18px;top:19px;color:rgba(223,192,79,.52);font-size:11px;font-weight:800;letter-spacing:.1em}
@media(max-width:900px){.services-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.service-card{min-height:220px;padding:19px 17px 17px}.service-icon{margin-bottom:18px}.service-copy strong{font-size:18px}}
@media(max-width:480px){.services-premium{padding-top:46px;padding-bottom:54px}.services-heading{margin-bottom:25px}.services-eyebrow{font-size:9px;letter-spacing:.14em}.services-heading h2{font-size:32px;line-height:1.14;margin-top:16px}.services-heading p{font-size:14px}.services-grid{gap:10px}.service-card{min-height:205px;padding:15px 13px 14px;border-radius:17px}.service-icon{width:42px;height:42px;flex-basis:42px;border-radius:12px;margin-bottom:15px}.service-icon svg{width:22px;height:22px}.service-copy{gap:7px}.service-copy strong{font-size:15px;line-height:1.35}.service-copy small{font-size:11px;line-height:1.5;min-height:48px}.service-link{font-size:12px;margin-top:2px}.service-link b{width:21px;height:21px}.service-number{right:12px;top:13px;font-size:9px}}
@media(prefers-reduced-motion:reduce){.service-card,.service-link b{transition:none}}


/* Premium calculated EMI results panel */
#calculator .card{border-radius:24px}
#calculator #results.emi-results{margin-top:28px;padding:0;border:1px solid rgba(212,175,55,.22);border-radius:22px;background:linear-gradient(155deg,rgba(11,24,42,.98),rgba(4,11,22,.99));overflow:hidden;box-shadow:0 20px 50px rgba(0,0,0,.2),inset 0 1px rgba(255,255,255,.025)}
.emi-results-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:19px 20px 15px;border-bottom:1px solid rgba(255,255,255,.07)}
.emi-kicker{font-size:10px;letter-spacing:.16em;font-weight:800;color:#d9b943}
.emi-status{display:inline-flex;align-items:center;gap:7px;color:#9db7ad;font-size:9px;font-weight:800;letter-spacing:.08em}
.emi-status i{width:6px;height:6px;border-radius:50%;background:#63c6a2;box-shadow:0 0 10px rgba(99,198,162,.35)}
.emi-highlight{display:flex;flex-direction:column;align-items:flex-start;margin:16px;padding:21px 20px;border:1px solid rgba(212,175,55,.28);border-radius:17px;background:radial-gradient(ellipse at 90% 0%,rgba(212,175,55,.12),transparent 55%),linear-gradient(120deg,#102039,#0a1424)}
.emi-label{color:#b5c2d4;font-size:13px;font-weight:600}
.emi-amount{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px;margin-top:7px;color:#f1d46c;font-size:clamp(30px,5vw,42px);font-weight:850;letter-spacing:-.04em;line-height:1.2;overflow-wrap:anywhere}
.emi-amount #emi{color:inherit}
.emi-caption{margin-top:7px;color:#8e9fb5;font-size:11px}
.emi-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 16px 16px}
.emi-metric{display:flex;flex-direction:column;justify-content:center;gap:9px;min-width:0;padding:15px 14px;border:1px solid rgba(150,169,193,.12);border-radius:14px;background:rgba(13,27,46,.74)}
.emi-metric>span{color:#9eacc0;font-size:11px;line-height:1.4}
.emi-metric strong{color:#f4f6fa;font-size:clamp(14px,2vw,18px);font-weight:750;overflow-wrap:anywhere}
.emi-chart-card{margin:0 16px 14px;padding:17px 15px 13px;border:1px solid rgba(150,169,193,.12);border-radius:16px;background:rgba(5,13,25,.62)}
.emi-chart-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.emi-chart-heading>div{display:flex;flex-direction:column;gap:5px}
.emi-chart-heading strong{color:#f4f6fa;font-size:14px}
.emi-chart-heading small{color:#91a0b5;font-size:11px}
.emi-chart-icon{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:11px;background:rgba(212,175,55,.1);color:#e1c34f;font-size:21px}
.emi-chart-canvas{position:relative;width:100%;max-width:340px;margin:10px auto 0;min-height:180px}
.emi-chart-canvas canvas{display:block;width:100%!important;max-width:100%;height:auto!important;max-height:280px}
.emi-amortisation-btn{display:flex;align-items:center;justify-content:space-between;gap:12px;width:calc(100% - 32px);margin:0 16px 16px;padding:15px 16px;border:1px solid rgba(212,175,55,.28);border-radius:13px;background:rgba(212,175,55,.07);color:#e5c653;font-size:13px;font-weight:750;text-align:left}
.emi-amortisation-btn:hover{background:rgba(212,175,55,.13)}
#calculator #chart.emi-amortisation-table{margin:0 16px 16px;padding:0 12px 12px;border:1px solid rgba(150,169,193,.12);border-radius:14px;overflow-x:auto}
#calculator #chart table{min-width:500px;font-size:12px}
#calculator #chart th,#calculator #chart td{padding:10px 8px}
#calculator #results p{margin:0}
@media(min-width:900px){#calculator>.card{max-width:920px;margin-left:auto;margin-right:auto;padding:30px}#calculator #results.emi-results{display:none}#calculator .card:has(#results[style*="block"]){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:26px;align-items:start}#calculator .card:has(#results[style*="block"]) #results{grid-column:2;grid-row:1 / span 6;margin-top:0}#calculator .card:has(#results[style*="block"]) #loan,#calculator .card:has(#results[style*="block"]) #rate,#calculator .card:has(#results[style*="block"]) #tenure,#calculator .card:has(#results[style*="block"]) #type,#calculator .card:has(#results[style*="block"]) button:not(.emi-amortisation-btn){grid-column:1}}
@media(max-width:600px){#calculator #results.emi-results{margin-top:22px;border-radius:18px}.emi-results-heading{padding:15px 14px 12px}.emi-kicker{font-size:9px}.emi-status{font-size:8px}.emi-highlight{margin:12px;padding:18px 15px}.emi-metrics{gap:8px;padding:0 12px 12px}.emi-metric{padding:12px 10px;gap:7px}.emi-metric>span{font-size:10px}.emi-metric strong{font-size:14px}.emi-chart-card{margin:0 12px 12px;padding:14px 12px}.emi-chart-canvas{max-width:270px;min-height:150px}.emi-amortisation-btn{width:calc(100% - 24px);margin:0 12px 12px;padding:14px;font-size:12px}#calculator #chart.emi-amortisation-table{margin:0 12px 12px}}

/* Final polish: calculator form and post-calculation dashboard */
#calculator>.card{max-width:1120px;margin-left:auto;margin-right:auto}
#calculator #loan,#calculator #rate,#calculator #tenure,#calculator #type{min-width:0;width:100%;box-sizing:border-box}
#calculator .card>button:not(.emi-amortisation-btn){display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:56px;padding:15px 25px;border:1px solid rgba(255,231,145,.5);border-radius:15px;background:linear-gradient(135deg,#f0d15b,#d0aa30);color:#10151d;font-size:17px;font-weight:800;box-shadow:0 10px 25px rgba(212,175,55,.13);transition:transform .2s,box-shadow .2s}
#calculator .card>button:not(.emi-amortisation-btn):hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(212,175,55,.2)}
#calculator #results.emi-results{scroll-margin-top:100px}
.emi-highlight{position:relative}
.emi-highlight:after{content:"₹";position:absolute;right:17px;top:12px;color:rgba(229,195,73,.12);font-size:76px;font-weight:900;line-height:1;pointer-events:none}
.emi-metric{transition:border-color .2s,transform .2s}
.emi-metric:hover{border-color:rgba(212,175,55,.32);transform:translateY(-1px)}
.emi-chart-canvas{min-height:0;aspect-ratio:1.35;max-width:380px}
.emi-chart-canvas canvas{width:100%!important;height:auto!important;max-height:300px}
.emi-amortisation-table{max-width:100%;overflow:auto;border-radius:0 0 16px 16px}
.emi-amortisation-table table{min-width:560px}
.emi-amortisation-table th,.emi-amortisation-table td{white-space:nowrap}
@media(min-width:769px){
 #calculator .card:has(#results[style*="block"]){grid-template-columns:minmax(280px,.82fr) minmax(0,1.18fr);gap:28px;padding:28px}
 #calculator .card:has(#results[style*="block"]) #results{grid-column:2;grid-row:1 / span 6;min-width:0}
 #calculator .card:has(#results[style*="block"]) #loan,#calculator .card:has(#results[style*="block"]) #rate,#calculator .card:has(#results[style*="block"]) #tenure,#calculator .card:has(#results[style*="block"]) #type,#calculator .card:has(#results[style*="block"]) button:not(.emi-amortisation-btn){grid-column:1}
}
@media(max-width:768px){
 #calculator>.card{padding:18px 14px}
 #calculator .card>button:not(.emi-amortisation-btn){width:100%;min-height:54px;margin-top:6px}
 #calculator #results.emi-results{margin-top:24px}
 .emi-highlight:after{font-size:62px;right:12px;top:12px}
 .emi-amount{font-size:clamp(29px,8vw,39px)}
 .emi-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 .emi-chart-canvas{max-width:290px;aspect-ratio:1.2}
}
@media(max-width:390px){
 .emi-results-heading{align-items:flex-start;flex-direction:column}
 .emi-metric{padding:11px 9px}
 .emi-metric strong{font-size:13px}
 .emi-chart-canvas{max-width:250px}
}


/* Fix mobile amortisation table escaping the calculator card */
#calculator, #calculator>.card, #calculator #results.emi-results,
#calculator #chart.emi-amortisation-table{min-width:0;max-width:100%;box-sizing:border-box}
#calculator>.card{overflow:hidden}
#calculator #results.emi-results{width:100%}
#calculator #chart.emi-amortisation-table{display:none;width:100%;margin:0 0 12px;padding:0 10px 12px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;contain:inline-size}
#calculator #chart.emi-amortisation-table[style*="block"]{display:block}
#calculator #chart.emi-amortisation-table table{width:max-content;min-width:560px;max-width:none;table-layout:auto;margin:12px 0 0}
#calculator #chart.emi-amortisation-table th,#calculator #chart.emi-amortisation-table td{white-space:nowrap;padding:10px 9px}
@media(max-width:768px){
 #calculator>.card{width:100%;padding:18px 14px}
 #calculator #results.emi-results{overflow:hidden}
 #calculator #chart.emi-amortisation-table{width:100%;margin:0 0 12px;padding-left:8px;padding-right:8px}
 #calculator #chart.emi-amortisation-table table{min-width:540px;font-size:12px}
 #calculator #chart.emi-amortisation-table th,#calculator #chart.emi-amortisation-table td{padding:9px 8px}
}


/* EMI calculate/reset actions */
#calculator .emi-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;width:100%;margin:4px 0 0}
#calculator .emi-actions button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:54px;padding:14px 22px;border-radius:14px;font-size:16px;font-weight:800;cursor:pointer;transition:transform .18s,background .18s,border-color .18s,box-shadow .18s}
#calculator .emi-actions .emi-calculate-btn{flex:1 1 210px;border:1px solid rgba(255,232,151,.55);background:linear-gradient(135deg,#f3d65e,#d0aa30);color:#10151d;box-shadow:0 8px 22px rgba(212,175,55,.13)}
#calculator .emi-actions .emi-reset-btn{flex:0 0 auto;min-width:116px;border:1px solid rgba(212,175,55,.42);background:linear-gradient(145deg,#142238,#0a1423);color:#e7c958}
#calculator .emi-actions button:hover{transform:translateY(-2px)}
#calculator .emi-actions .emi-reset-btn:hover{border-color:#d4af37;background:#172840;box-shadow:0 8px 20px rgba(212,175,55,.09)}
#calculator .emi-actions button:focus-visible{outline:2px solid #f0d15b;outline-offset:3px}
@media(min-width:769px){#calculator .card:has(#results[style*="block"]) .emi-actions{grid-column:1}#calculator .card:has(#results[style*="block"]) .emi-actions button{width:100%}}
@media(max-width:768px){#calculator .emi-actions{gap:10px}#calculator .emi-actions .emi-calculate-btn{flex:1 1 160px}#calculator .emi-actions .emi-reset-btn{min-width:104px;padding:14px 16px}}
@media(max-width:380px){#calculator .emi-actions{gap:8px}#calculator .emi-actions .emi-calculate-btn{flex-basis:135px;padding:13px 12px;font-size:14px}#calculator .emi-actions .emi-reset-btn{min-width:88px;padding:13px 11px;font-size:14px}}


/* Premium footer branding: match the header's two-tone KeyDhan wordmark */
footer.site-footer{padding:clamp(34px,5vw,52px) 18px;color:#9ca3af;border-top:1px solid rgba(212,175,55,.16);text-align:center}
.site-footer .footer-brand{display:flex;align-items:baseline;justify-content:center;margin:0 0 10px;font-size:clamp(27px,4vw,36px);font-weight:800;letter-spacing:-.035em;line-height:1.15}
.footer-brand-key{color:#f7f8fc}
.footer-brand-dhan{color:var(--gold)}
.site-footer .footer-brand sup,.site-footer .footer-copyright sup{position:relative;top:-.42em;margin-left:1px;color:var(--gold);font-size:.34em;font-weight:800;letter-spacing:0}
.site-footer .footer-email{margin:0 0 9px}
.site-footer .footer-email a{display:inline-flex;align-items:center;justify-content:center;gap:9px;color:#aeb7c8;text-decoration:none;font-size:clamp(15px,2.6vw,20px);transition:color .2s}
.site-footer .footer-email a:hover,.site-footer .footer-email a:focus-visible{color:#f4d66b}
.site-footer .footer-mail-icon{display:block;width:1.05em;height:1.05em;flex:0 0 auto;color:var(--gold)}
.site-footer .footer-copyright{display:flex;align-items:baseline;justify-content:center;flex-wrap:wrap;gap:0 4px;margin:0;color:#929bad;font-size:clamp(12px,2.2vw,16px);line-height:1.7}
.site-footer .footer-copyright .footer-brand-key{color:#d9dee8}
.site-footer .footer-copyright .footer-brand-dhan{color:var(--gold)}
.site-footer .footer-rights{margin-left:2px}
@media(max-width:480px){.site-footer{padding:32px 14px}.site-footer .footer-brand{margin-bottom:9px}.site-footer .footer-copyright{max-width:340px;margin:0 auto;column-gap:3px;line-height:1.8}.site-footer .footer-email a{gap:8px}}
@media(prefers-reduced-motion:reduce){.site-footer .footer-email a{transition:none}}


/* Keep KeyDhan as one unbroken word in the footer and copyright */
.site-footer .footer-brand{gap:0}
.site-footer .footer-brand>span,.site-footer .footer-copyright-brand>span{color:var(--gold)}
.site-footer .footer-copyright-brand{display:inline-flex;align-items:baseline;gap:0;white-space:nowrap;color:#d9dee8}
.site-footer .footer-copyright-brand sup{position:relative;top:-.42em;margin-left:1px;color:var(--gold);font-size:.34em;font-weight:800;letter-spacing:0}
.site-footer .footer-copyright{column-gap:4px}
.site-footer .footer-copyright .footer-rights{margin-left:0}


/* Raise the trademark clearly above the KeyDhan wordmark */
.site-footer .footer-brand{align-items:baseline}
.site-footer .footer-brand .footer-trademark,
.site-footer .footer-copyright-brand .footer-trademark{
 position:relative;
 top:-.72em;
 margin-left:2px;
 color:var(--gold);
 font-size:.34em;
 line-height:1;
 font-weight:800;
 vertical-align:baseline;
}


/* Footer brand hardening: explicit two-tone spans and visible email icon */
.site-footer .footer-brand{color:#f7f8fc!important;display:flex;align-items:baseline;justify-content:center;gap:0;}
.site-footer .footer-brand .footer-brand-key{color:#f7f8fc!important;}
.site-footer .footer-brand .footer-brand-dhan{color:var(--gold)!important;}
.site-footer .footer-brand .footer-trademark,.site-footer .footer-copyright-brand .footer-trademark{color:var(--gold)!important;position:relative;top:-.72em;margin-left:2px;font-size:.34em;line-height:1;font-weight:800;}
.site-footer .footer-email a{color:#cbd5e1;}
.site-footer .footer-mail-icon{display:inline-block!important;visibility:visible!important;opacity:1!important;color:var(--gold)!important;width:1.05em;height:1.05em;}
.site-footer .footer-copyright-brand{display:inline-flex;white-space:nowrap;gap:0;color:#f7f8fc;}
.site-footer .footer-copyright-brand .footer-brand-dhan{color:var(--gold)!important;}
.site-footer .footer-rights{margin-left:0;}


/* Central footer social links */
.site-footer .footer-social-links{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:14px;margin:14px auto 0;font-size:14px;}
.site-footer .footer-social-links a{color:var(--gold);text-decoration:none;}
.site-footer .footer-social-links a:hover,.site-footer .footer-social-links a:focus-visible{text-decoration:underline;color:#f8e58c;}
.site-footer [hidden]{display:none!important;}


/* Desktop-only refinement: compact, balanced empty EMI calculator state.
   Keep the populated results dashboard and all mobile layouts unchanged. */
@media (min-width: 769px) {
  #calculator > .card:not(:has(#results[style*="block"])) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
    width: min(100%, 900px);
    max-width: 900px;
    margin: 0 auto;
    padding: 28px;
    border-radius: 22px;
    align-items: center;
  }

  #calculator > .card:not(:has(#results[style*="block"])) #loan,
  #calculator > .card:not(:has(#results[style*="block"])) #rate,
  #calculator > .card:not(:has(#results[style*="block"])) #tenure,
  #calculator > .card:not(:has(#results[style*="block"])) #type {
    min-height: 52px;
    margin: 0;
    width: 100%;
  }

  #calculator > .card:not(:has(#results[style*="block"])) .emi-actions {
    grid-column: 1 / -1;
    margin-top: 4px;
  }

  #calculator > .card:not(:has(#results[style*="block"])) .emi-actions .emi-calculate-btn {
    min-height: 52px;
  }

  #calculator > .card:not(:has(#results[style*="block"])) .emi-actions .emi-reset-btn {
    min-height: 52px;
  }
}


/* EMI input helper labels and percentage suffix */
#calculator .emi-field{position:relative;width:100%;min-width:0;margin:0 0 2px}
#calculator .emi-field input{display:block;width:100%;box-sizing:border-box;padding-bottom:31px;padding-top:18px}
#calculator .emi-field-label{position:absolute;left:16px;bottom:9px;color:#9ba8ba;font-size:12px;line-height:1.2;letter-spacing:.02em;pointer-events:none}
#calculator .emi-rate-field input{padding-right:48px}
#calculator .emi-percent-suffix{position:absolute;right:18px;top:18px;color:#f4f5f8;font-size:18px;line-height:1.4;pointer-events:none}
#calculator .emi-field input:focus{outline-color:rgba(212,175,55,.55)}


/* EMI loan amount rupee prefix */
#calculator .emi-loan-field input{padding-left:43px}
#calculator .emi-rupee-prefix{position:absolute;left:16px;top:17px;color:#d9b83f;font-size:19px;line-height:1.4;font-weight:700;pointer-events:none}


/* Prevent EMI pie chart from overflowing its card on mobile */
#calculator .emi-chart-canvas{
  position:relative;
  width:100%;
  max-width:100%;
  height:clamp(220px, 68vw, 320px);
  min-height:0;
  aspect-ratio:auto;
  overflow:hidden;
}
#calculator .emi-chart-canvas canvas{
  display:block;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
}
@media(max-width:600px){
  #calculator .emi-chart-card{min-width:0;overflow:hidden}
  #calculator .emi-chart-canvas{height:clamp(210px, 62vw, 270px);margin-top:12px}
}


/* ---------- PRE-EMI / FIRST EMI DATE CARDS ---------- */
#calculator .emi-metric small{color:#91a0b6;font-size:10px;line-height:1.45;overflow-wrap:anywhere}
#calculator .emi-date-metric strong{color:#f4d46a}
@media(max-width:600px){#calculator .emi-date-metric strong{font-size:13px}#calculator .emi-metric small{font-size:9px}}

/* Dedicated Calculator page and advanced EMI calculator */
.calculator-page{padding-top:18px}
.calculator-page #calculator{padding-top:22px}
.calculator-page .advanced-intro{text-align:center;max-width:760px;margin:18px auto 26px;padding:0 18px}
.calculator-page .advanced-intro h2{margin:10px 0;font-size:clamp(26px,4vw,38px)}
.calculator-page .advanced-intro p{color:var(--muted);line-height:1.6}
.advanced-calculator-section{padding-top:12px}
.advanced-card{max-width:1120px;margin:0 auto;padding:clamp(18px,3vw,30px);border:1px solid rgba(212,175,55,.22);border-radius:24px;background:linear-gradient(155deg,rgba(11,24,42,.98),rgba(4,11,22,.99));}
.advanced-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.advanced-field{display:flex;flex-direction:column;gap:8px;min-width:0}
.advanced-field label{font-size:13px;font-weight:700;color:#e7c95e}
.advanced-field input,.advanced-field select{width:100%;min-width:0;min-height:52px;padding:13px 14px;border:1px solid rgba(148,163,184,.24);border-radius:13px;background:#0b1627;color:#fff;font:inherit;outline:none}
.advanced-field input:focus,.advanced-field select:focus{border-color:#d4af37;box-shadow:0 0 0 3px rgba(212,175,55,.12)}
.advanced-field[hidden]{display:none!important}
.advanced-note{margin:18px 0;color:#aab7ca;font-size:12px;line-height:1.7}
.advanced-actions{display:flex;gap:12px;flex-wrap:wrap}
.advanced-actions button{flex:1;min-width:180px;cursor:pointer}
.advanced-results{margin-top:26px;border:1px solid rgba(212,175,55,.24);border-radius:20px;overflow:hidden;background:rgba(2,8,20,.58)}
.advanced-results[hidden]{display:none}
.advanced-result-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px;border-bottom:1px solid rgba(148,163,184,.14)}
.advanced-result-head h3{margin-top:6px;font-size:20px}
.advanced-copy-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 14px;border:1px solid rgba(212,175,55,.4);border-radius:12px;background:#111e30;color:#f5d76e;font-weight:800;cursor:pointer}
.advanced-net{display:flex;flex-direction:column;gap:8px;margin:16px;padding:20px;border:1px solid rgba(212,175,55,.28);border-radius:16px;background:linear-gradient(130deg,rgba(212,175,55,.13),rgba(10,24,42,.8))}
.advanced-net span{color:#e7c95e;font-size:13px;font-weight:700}
.advanced-net strong{font-size:clamp(24px,4vw,34px);color:#f6d96d;overflow-wrap:anywhere}
.advanced-results-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 16px 16px}
.advanced-result-row{display:flex;flex-direction:column;justify-content:space-between;gap:9px;min-width:0;padding:14px;border:1px solid rgba(148,163,184,.15);border-radius:13px;background:#0b1627}
.advanced-result-row span{font-size:12px;color:#b4c0d2;line-height:1.5}
.advanced-result-row strong{font-size:15px;color:#f4d46a;overflow-wrap:anywhere}
.advanced-copy-status{min-height:20px;padding:0 16px 8px;color:#f4d46a;font-size:13px}
.advanced-footnote{padding:0 16px 18px;color:#8f9db1;font-size:11px;line-height:1.6}
@media(max-width:600px){.calculator-page{padding-top:8px}.calculator-page #calculator{padding-top:18px}.advanced-fields,.advanced-results-grid{grid-template-columns:minmax(0,1fr)}.advanced-card{padding:16px 12px}.advanced-result-head{padding:15px 13px}.advanced-net{margin:12px;padding:16px}.advanced-results-grid{padding:0 12px 12px}.advanced-actions{flex-direction:column}.advanced-actions button{width:100%;min-width:0}.advanced-result-row{padding:13px}}
