/* RESET */

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:system-ui,-apple-system,Segoe UI,Roboto;
}

body{

background:#0e1a2b;
color:white;
line-height:1.6;

}



/* NAVBAR */

.navbar{

position:sticky;
top:0;

background:rgba(10,20,40,0.85);

backdrop-filter:blur(10px);

border-bottom:1px solid rgba(255,255,255,0.08);

z-index:1000;

}

@media (max-width: 768px) {
  .navbar {
    position: static;
    top: auto;
  }
}

.nav-container{

max-width:1200px;
margin:auto;

display:flex;
align-items:center;
justify-content:space-between;

padding:12px 20px;

}

.nav-brand{
  text-decoration:none;
  color:inherit;
  display:flex;
  align-items:center;
  flex-shrink:0;
}

.nav-brand-glass{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:16px;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.12);
  box-shadow:0 12px 30px rgba(0,0,0,0.22);
  box-sizing:border-box;
}

.nav-brand-icon{
  width:22px;
  height:22px;
  border-radius:8px;
}

.nav-brand-text{
  font-weight:800;
  letter-spacing:0.01em;
  white-space:nowrap;
}

.logo{

font-weight:600;
font-size:18px;

text-decoration:none;
color:white;

}

.nav-menu{

list-style:none;

display:flex;

gap:22px;

padding:8px 10px;
border-radius:18px;
background:rgba(255,255,255,0.05);
border:1px solid rgba(255,255,255,0.10);
backdrop-filter: blur(12px);
box-sizing:border-box;

}

.nav-menu a{

text-decoration:none;

color:white;

font-size:14px;

opacity:0.85;

transition:.2s;

}

.nav-menu a:hover{

color:#6dd5ff;

opacity:1;

}



/* HEADER */

.page-header{

text-align:center;

padding:60px 20px 40px;

}

.page-header h1{

font-size:32px;

margin-bottom:10px;

}

.page-header p{

opacity:0.75;

}



/* SECTION */

.fidyah-section{

display:flex;

justify-content:center;

padding:20px;

}



/* CARD */

.fidyah-card{

width:420px;

background:linear-gradient(
145deg,
#1c2b40,
#162336
);

padding:30px;

border-radius:14px;

box-shadow:0 10px 30px rgba(0,0,0,0.4);

}

.fidyah-card h2{

margin-bottom:20px;

text-align:center;

}



/* FORM */

.form-group{

margin-bottom:18px;

}

.form-group label{

display:block;

margin-bottom:6px;

font-size:14px;

opacity:0.9;

}

input,select{

width:100%;

padding:10px;

border:none;

border-radius:8px;

background:#0f1b2e;

color:white;

}



/* BUTTON */

.btn-reset{

margin-top:10px;

width:100%;

padding:12px;

border:none;

border-radius:10px;

background:linear-gradient(
135deg,
#3aa0ff,
#6dd5ff
);

color:white;

font-size:15px;

cursor:pointer;

transition:.2s;

}

.btn-reset:hover{

transform:translateY(-2px);

box-shadow:0 6px 20px rgba(70,150,255,0.5);

}



/* RESULT */

.hasil-box{

margin-top:20px;

background:#0f1b2e;

padding:15px;

border-radius:10px;

font-size:14px;

opacity:0.9;

}



/* PRE FOOTER */

.pre-footer{

margin-top:80px;

padding:70px 20px;

text-align:center;

background:
linear-gradient(
180deg,
rgba(20,40,80,0.3),
rgba(10,20,40,0.8)
);

border-top:1px solid rgba(255,255,255,0.08);

}

.pre-footer h2{

font-size:28px;

margin-bottom:10px;

}

.pre-footer p{

max-width:650px;

margin:auto;

opacity:0.8;

margin-bottom:30px;

}



/* BUTTON TOOLS */

.tools-shortcut{

display:flex;

justify-content:center;

gap:15px;

flex-wrap:wrap;

}

.tool-btn{

padding:10px 20px;

border-radius:10px;

text-decoration:none;

color:white;

background:linear-gradient(
135deg,
#2e8bff,
#6dd5ff
);

font-size:14px;

transition:.25s;

}

.tool-btn:hover{

transform:translateY(-2px);

box-shadow:0 6px 20px rgba(70,150,255,0.5);

}



/* FOOTER */

.footer{

text-align:center;

padding:20px;

margin-top:0;

}

.footer-links{

display:flex;

justify-content:center;

gap:20px;

flex-wrap:wrap;

margin-bottom:10px;

}

.footer-links a{

color:white;

text-decoration:none;

font-size:14px;

opacity:0.8;

}

.footer-links a:hover{

color:#6dd5ff;

}

.hasil-box{

margin-top:20px;

animation:fadeResult .4s ease;

}

@keyframes fadeResult{

from{

opacity:0;
transform:translateY(10px);

}

to{

opacity:1;
transform:translateY(0);

}

}

.hero-fidyah{

padding:80px 20px 50px;

text-align:center;

background:
radial-gradient(circle at top, rgba(0,170,255,0.25), transparent 70%);

}

.hero-content{

max-width:700px;
margin:auto;

}

.hero-fidyah h1{

font-size:38px;

font-weight:700;

color:white;

margin-bottom:15px;

}

.hero-fidyah p{

font-size:16px;

color:#cfe7ff;

line-height:1.6;

}

.hero-fidyah::after{

content:"";

display:block;

width:120px;

height:4px;

margin:25px auto 0;

border-radius:4px;

background:linear-gradient(
90deg,
#00c6ff,
#4facfe
);

}

.fiqh-box{

margin-top:20px;

padding:18px;

border-radius:12px;

background:rgba(0,0,0,0.25);

border-left:4px solid #00c6ff;

color:#cfe7ff;

font-size:14px;

line-height:1.6;

}

.harga-preset{

display:flex;

gap:10px;

margin-top:10px;

}

.harga-preset button{

padding:6px 14px;

border:none;

border-radius:8px;

background:#1e3a5f;

color:white;

cursor:pointer;

}

.harga-preset button:hover{

background:#00c6ff;

}

.analisis-fiqh{

margin-top:25px;

padding:20px;

border-radius:14px;

background:linear-gradient(
145deg,
rgba(0,40,80,0.7),
rgba(0,70,120,0.5)
);

border-left:4px solid #00d4ff;

color:#d6ecff;

}

.analisis-fiqh h3{

margin-bottom:10px;

color:#7fe3ff;

font-size:18px;

}

#analisisFidyah{

font-size:14px;

line-height:1.7;

}

.scroll-to-top{
   position: fixed;

   left: 18px;
   bottom: 26px;

   width: 42px;
   height: 36px;

   border: none;
   border-radius: 10px;

   display: flex;
   align-items: center;
   justify-content: center;

   cursor: pointer;

   background: linear-gradient(135deg,#ef4444,#dc2626);

   color: white;

   box-shadow:
     0 6px 16px rgba(0,0,0,0.25),
     0 3px 8px rgba(239,68,68,0.35);

   opacity: 0;
   visibility: hidden;

   transform: translateY(14px);
   transition: all 0.28s ease;

   z-index: 999;
   pointer-events: none;
 }

 .scroll-to-top svg{
   width: 16px;
   height: 16px;
 }

 .scroll-to-top.show{
   opacity: 1;
   visibility: visible;
   transform: translateY(0);
   pointer-events: auto;
 }

 .scroll-to-top:hover{
   transform: translateY(-2px);
   box-shadow:
     0 10px 22px rgba(0,0,0,0.3),
     0 6px 14px rgba(239,68,68,0.45);
 }

 .scroll-to-top:active{
   transform: scale(0.95);
 }

@media (max-width:768px){

.nav-container{
display:flex;
flex-direction:column;
align-items:flex-start;
gap:10px;
padding:10px 16px;
}

.nav-brand{
  width:100%;
  justify-content:center;
}

.nav-brand-glass{
  width:100%;
  justify-content:center;
  padding:9px 12px;
}

.nav-menu{
  width:100%;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  overflow:hidden;
  padding:10px 10px;
  margin:0;
  border-radius:18px;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
  box-sizing:border-box;
  min-width:0;
}

.nav-menu a{
  font-size:13px;
  white-space:normal;
  padding:10px 8px;
  border-radius:14px;
  background: rgba(255,255,255,0.04);
  display:flex;
  justify-content:center;
  width:100%;
  min-width:0;
  box-sizing:border-box;
}

}