:root{
  --bg:#0e141b;
  --panel:#121a22;
  --card:#111821;
  --muted:#93a2b7;
  --text:#e6eef8;
  --accent:#46c3ff;
  --accent2:#75ffa0;
  --danger:#ff5e6b;
  --shadow: 0 10px 24px rgba(0,0,0,.35);
  --radius:16px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter,system-ui,Segoe UI,Roboto,Arial;
  color:var(--text);
  background: radial-gradient(1200px 800px at 10% 0%, #0b1222 0%, #0e141b 30%, #0e141b 100%), url('');
  background-attachment:fixed;
}
img{max-width:100%;height:auto}

.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter:saturate(140%) blur(8px);
  background: linear-gradient(180deg, rgba(14,20,27,.9), rgba(14,20,27,.6));
  border-bottom:1px solid rgba(255,255,255,.06);
  padding:14px 18px;
  display:flex; align-items:center; gap:22px;
}
.brand{display:flex; align-items:center; gap:12px}
.brand img{width:34px; height:34px; border-radius:8px}
.brand h1{font-size:18px; margin:0; letter-spacing:.3px}
.brand h1 span{color:var(--accent)}

.tabs{display:flex; gap:8px; margin-left:auto}
.tabs .tab{
  background:transparent; color:var(--text);
  border:1px solid rgba(255,255,255,.08);
  padding:8px 12px; border-radius:10px; cursor:pointer;
}
.tabs .tab.active{background:rgba(70,195,255,.12); border-color:rgba(70,195,255,.35)}

main{max-width:1100px; margin:24px auto; padding:0 14px}
.panel{display:none}
.panel.active{display:block}

.card{
  background:var(--card);
  border:1px solid rgba(255,255,255,.06);
  border-radius:var(--radius);
  padding:16px;
  box-shadow:var(--shadow);
}
.grid{display:grid; gap:16px}
.grid.two{grid-template-columns:1fr 1fr}
.grid.three{grid-template-columns:repeat(3,1fr)}
@media (max-width:900px){
  .grid.two,.grid.three{grid-template-columns:1fr}
}

label{display:block; font-size:12px; color:var(--muted); margin-bottom:6px}
input, select, button{
  background:#0b1219; color:var(--text); border:1px solid rgba(255,255,255,.08);
  padding:10px 12px; border-radius:10px; width:100%;
}
button{cursor:pointer}
button.primary{background:linear-gradient(135deg, #2ab7ff, #00e0a4); border:0; color:#02131a; font-weight:700}
button.danger{background:rgba(255,94,107,.12); border-color:rgba(255,94,107,.35); color:#ffb7bd}
button.small{padding:6px 10px; width:auto}

.row{display:flex; align-items:center; justify-content:space-between; gap:12px}

.display{border:1px solid rgba(255,255,255,.08); border-radius:12px; padding:10px; background:#0b1219}
.display input{font-size:22px; border:0; background:transparent; padding:6px 8px; width:100%}
#calc-result{color:var(--accent2); font-weight:700; padding:6px 8px; opacity:.9}

.keys{margin-top:14px; display:grid; grid-template-columns:repeat(4,1fr); gap:10px}
.keys button{padding:12px; font-size:15px}

.history ul{list-style:none; padding:0; margin:0}
.history li{display:flex; justify-content:space-between; gap:10px; padding:8px 0; border-bottom:1px dashed rgba(255,255,255,.06)}
.history .expr{opacity:.8}
.history .val{color:var(--accent2); font-weight:700}

.result{margin-top:10px; padding:10px 12px; background:#0b1219; border:1px solid rgba(255,255,255,.08); border-radius:10px}
.result.big{font-size:22px; font-weight:700}
.muted{color:var(--muted); font-size:12px; margin-top:8px}

/* ========= R.All floating button (under the blue line) ========= */
:root{
  /* JS इस var को set करेगा; fallback 78px है */
  --rall-top: 78px;
}

/* R.All floating button */
.rall-btn{
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 28, 36, 0.85);
  border: 1px solid #1b3a43;
  color: #8be9ff;
  text-decoration: none;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
  z-index: 9999;
}
.rall-btn:hover{
  color: #c9f6ff;
  border-color: #25c3ff;
  box-shadow:
    0 0 0 1px #25c3ff55,
    0 8px 30px #25c3ff22;
}

/* 9-dot icon sizing + glow */
.rall-btn .dots9{
  width: 22px;
  height: 22px;
  display: inline-block;
}
.rall-btn .dots9 svg{
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 6px rgba(37,195,255,.55));
}

/* label */
.rall-btn .txt{
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .2px;
}
/* R.All floating button — move under top bar */
.rall-btn{
  position: fixed;
  /* पहले वाला bottom हटाओ */
  bottom: auto;            /* new */
  /* अपनी टॉप बार की ऊँचाई के हिसाब से top सेट करो */
  top: 80px;               /* <- अगर तुम्हारी नीली लाइन ~64px के बाद आती है, तो 72px ठीक बैठता है */
  right: 18px;

  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 28, 36, 0.85);
  border: 1px solid #1b3a43;
  color: #8be9ff;
  text-decoration: none;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
  z-index: 9999;
}

@media (max-width: 768px){
  .rall-btn{ top: 86px; }  /* मोबाइल पर नेव ऊँचा होता है */
}




footer{max-width:1100px; margin:32px auto; padding:0 14px; color:var(--muted)}
footer a{color:var(--accent)}
/* Header background */
header, .topbar, .navbar {
  background: rgba(0, 0, 0, 0.6);   /* हल्का dark mask */
  backdrop-filter: blur(8px);        /* blur effect पीछे */
  padding: 15px 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 10px solid #0ef;
}

/* Sirf logo ke upar glow */
.navbar-brand img {
  filter: drop-shadow(0 0 10px rgba(0,255,255,0.7));
}

/* Text ke liye normal style */
.navbar-brand span {
  color: #00c8ff;  /* aap apni theme ke hisab se change kar sakte ho */
  font-weight: bold;
}
/* Footer */
.footer {
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.footer-logo {
  height: 28px;   /* size aap apne hisaab se change kar sakte ho */
  margin-right: 10px;
  filter: drop-shadow(0 0 5px rgba(0,255,255,0.5)); /* thoda glow effect */
}

.footer-text {
  font-size: 18px;
  font-weight: bold;
  color: #f2f4f5;
}

.footer-powered {
  font-size: 14px;
  color: #aaa;
}

.footer-powered a {
  color: #00c8ff;
  text-decoration: none;
}

.footer-powered a:hover {
  text-decoration: underline;
}
/* Page ke sides par halka gutter, taaki koi cheez bilkul kinare na chipke */
body {
  padding-inline: 24px;         /* left-right 24px gutter */
}

/* Footer line ki spacing */
.footer-madeby{
  margin: 24px 0 40px 0;        /* upar 24px, niche 40px */
  padding-left: 6px;            /* gutter ke baad thoda internal gap */
  opacity: .85;
}

/* Bade screens par gutter thoda aur comfortable */
@media (min-width: 1200px){
  body { padding-inline: 32px; }
  .footer-madeby { margin-bottom: 48px; }
}
/* Footer color styles */
.footer-madeby{
  margin: 24px 0 40px 0;
  padding-left: 6px;
  color: #9dd9ff;           /* footer text color */
  opacity: 1;               /* color ko dull na kare */
}

.footer-madeby a{
  color: #4cc3ff;           /* link color */
  text-decoration: none;
  border-bottom: 1px dashed rgba(76,195,255,.4);
}

.footer-madeby a:hover{
  color: #7fe3ff;           /* hover color */
  border-bottom-color: rgba(127,227,255,.7);
}

/* (optional) ultra-dark bg par thoda zyada contrast */
@media (prefers-color-scheme: dark){
  .footer-madeby{ color:#aee6ff; }
  .footer-madeby a{ color:#66d8ff; }
}
/* ===== App background image (low-visibility) ===== */
:root{
  --app-bg-opacity: .12;
  --app-bg-url: url("assetsbg-calcu.webp.png");
}



/* ---- Background on HTML (simple & reliable) ---- */
html{
  /* base dark */
  background-color: #0e1217;

  /* image + soft glows stacked */
  background-image:
    radial-gradient(1100px 700px at 80% -10%, rgba(0,180,255,.10), transparent 10%),
    radial-gradient(900px 600px at -10% 90%, rgba(0,255,200,.08), transparent 55%),
    url("assetsbg-calcu.webp.png");   /* <-- yahi file name rakho */

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;  /* parallax feel */
}

/* body ko transparent hi rakho */
body{
  background: transparent;
}



/* Image layer */
body::before{
  content: "";
  position: fixed;                     /* pure viewport cover */
  inset: 0;
  z-index: -1;                         /* content ke neeche rahe */
  background:
    /* optional soft glows – feel free to keep/remove */
    radial-gradient(1100px 700px at 80% -10%, rgba(0,180,255,.12), transparent 60%),
    radial-gradient(900px 600px at -10% 90%, rgba(0,255,200,.10), transparent 55%),
    var(--app-bg-url) center/cover no-repeat;
  background-attachment: fixed;        /* parallax-like steadiness */
  opacity: var(--app-bg-opacity);
  filter: saturate(.85) contrast(1.05);/* thoda polish */
  pointer-events: none;                /* clicks block na ho */
}

/* Agar aap bilkul plain image chahein to upar ke 2 radial-gradient lines hata dena */
