* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #DD3333;
  --bg: #ffffff;
  --card: #f8fafc;
  --text: #111827;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* =========================
CTA SECTION
========================= */

.cta-section {

  margin-top: 40px;

  padding: 20px;
}

.cta-box {

  background: linear-gradient(
    135deg,
    #111827,
    #1f2937
  );

  border-radius: 20px;

  padding: 40px 30px;

  text-align: center;

  color: #fff;

  box-shadow:
  0 10px 30px rgba(0,0,0,0.15);
}

.cta-box h2 {

  font-size: 32px;

  margin-bottom: 15px;

  line-height: 1.4;
}

.cta-box p {

  font-size: 17px;

  line-height: 1.8;

  max-width: 750px;

  margin: 0 auto 30px;

  color: rgba(255,255,255,0.85);
}



/* BUTTON WRAPPER */

.cta-buttons {

  display: flex;

  justify-content: center;

  gap: 15px;

  flex-wrap: wrap;
}



/* BUTTONS */

.cta-btn {

  padding: 15px 28px;

  border-radius: 12px;

  font-size: 16px;

  font-weight: 700;

  text-decoration: none;

  transition: 0.3s ease;
}



/* PRIMARY */

.primary-btn {

  background: #DD3333;

  color: #fff;
}

.primary-btn:hover {

  background: transparent;
  border: 1px solid #dd3333;

  transform: translateY(-2px);
}



/* SECONDARY */

.secondary-btn {

  border: 2px solid rgba(255,255,255,0.4);

  color: #fff;

  background: transparent;
}

.secondary-btn:hover {

  background: rgba(255,255,255,0.08);

  transform: translateY(-2px);
}



/* MOBILE */

@media(max-width:768px) {

  .cta-box {

    padding: 30px 20px;
  }

  .cta-box h2 {

    font-size: 24px;
  }

  .cta-box p {

    font-size: 15px;
  }

  .cta-btn {

    width: 100%;
  }
}
/* =========================
FAQ SECTION
========================= */

.faq-section {

  margin-top: 40px;

  padding: 20px;
}

.faq-box {

  background: #ffffff;

  border-radius: 20px;

  padding: 35px;

  box-shadow:
  0 8px 25px rgba(0,0,0,0.06);

  border: 1px solid rgba(0,0,0,0.05);
}



/* HEADER */

.faq-header {

  text-align: center;

  margin-bottom: 30px;
}

.faq-badge {

  display: inline-block;

  background: rgba(221,51,51,0.1);

  color: #DD3333;

  font-weight: 700;

  padding: 10px 16px;

  border-radius: 999px;

  margin-bottom: 15px;

  font-size: 14px;
}

.faq-header h2 {

  font-size: 32px;

  margin-bottom: 12px;

  color: #111827;
}

.faq-header p {

  color: #6b7280;

  font-size: 16px;

  line-height: 1.7;
}



/* FAQ ITEM */

.faq-item {

  border-bottom:
  1px solid rgba(0,0,0,0.08);

  padding: 18px 0;
}

.faq-item:last-child {

  border-bottom: none;
}



/* QUESTION */

.faq-question {

  width: 100%;

  background: none;

  border: none;

  display: flex;

  justify-content: space-between;

  align-items: center;

  font-size: 18px;

  font-weight: 700;

  color: #111827;

  cursor: pointer;

  padding: 0;

  text-align: left;
}

.faq-question span {

  font-size: 24px;

  color: #DD3333;

  transition: 0.3s;
}



/* ANSWER */

.faq-answer {

  max-height: 0;

  overflow: hidden;

  transition: 0.4s ease;

  padding-right: 20px;
}

.faq-answer p {

  margin-top: 15px;

  color: #4b5563;

  line-height: 1.8;

  font-size: 15px;
}

.faq-answer a {

  display: inline-block;

  margin-top: 12px;

  color: #DD3333;

  font-weight: 700;

  text-decoration: none;
}

.faq-answer a:hover {

  text-decoration: underline;
}



/* ACTIVE */

.faq-item.active .faq-answer {

  max-height: 300px;
}

.faq-item.active .faq-question span {

  transform: rotate(45deg);
}



/* DARK MODE */

body.dark .faq-box {

  background: #1f2937;

  border-color: rgba(255,255,255,0.06);
}

body.dark .faq-header h2 {

  color: #ffffff;
}

body.dark .faq-header p {

  color: rgba(255,255,255,0.7);
}

body.dark .faq-question {

  color: #ffffff;
}

body.dark .faq-answer p {

  color: rgba(255,255,255,0.75);
}



/* MOBILE */

@media(max-width:768px) {

  .faq-box {

    padding: 25px 20px;
  }

  .faq-header h2 {

    font-size: 24px;
  }

  .faq-question {

    font-size: 16px;
  }
}
body.dark {
  --bg: #0f172a;
  --card: #1e293b;
  --text: #f8fafc;
}
body.dark .backlink{
  color: #FFF;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: 0.3s ease;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

header {
  padding: 20px 0;
  border-bottom: 1px solid #DD3333;

}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
 height: 50px;
 cursor: pointer;
}

.theme-btn {
  border: none;
  background: var(--primary);
  color: white;
  padding: 12px 18px;
  border-radius: 50px;
  cursor: pointer;
}

.hero {
  text-align: center;
  padding: 60px 0;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.hero p {
  max-width: 700px;
  margin: auto;
  opacity: 0.8;
}

.calculator-card,
.chart-card,
.table-card,
.result-card {
  background: var(--card);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.results-actions{
  display:flex;
  gap:15px;
  margin-top:25px;
  justify-content:center;
  flex-wrap:wrap;
}

.action-btn{
  border:none;
  padding:14px 24px;
  border-radius:14px;
  font-size:0.95rem;
  font-weight:600;
  cursor:pointer;
  transition:0.3s ease;
  display:flex;
  align-items:center;
  gap:10px;
}

.download-btn{
  background:#DD3333;
  color:white;
}

.share-btn{
  background:#111827;
  color:white;
}

.action-btn:hover{
  transform:translateY(-3px);
  opacity:0.9;
}
.action-buttons{

  display:flex;
  justify-content:center;
  gap:18px;
  margin-top:30px;
  flex-wrap:wrap;

  animation:fadeUp 0.8s ease;
}

.download-btn{

  background:#DD3333;
  color:white;
}

.share-btn{

  background:#111827;
  color:white;
}

body.dark .share-btn{

  background:#334155;
}

.action-btn{

  min-width:200px;
  justify-content:center;
}

.calculate-btn.loading{

  opacity:0.8;
  cursor:not-allowed;
}

.result-card{

  transition:0.4s ease;
}

.result-card:hover{

  transform:translateY(-6px);
}

.toast{

  position:fixed;
  bottom:30px;
  left:50%;
  transform:translateX(-50%);
  background:#111827;
  color:white;
  padding:14px 22px;
  border-radius:12px;
  z-index:9999;
  font-weight:600;
  animation:fadeUp 0.4s ease;
}

body.dark .toast{

  background:#DD3333;
}
.results{
  animation:fadeUp 0.8s ease;
}

@keyframes fadeUp{

  from{
    opacity:0;
    transform:translateY(40px);
  }

  to{
    opacity:1;
    transform:translateY(0);
  }
}

.calculator-card,
.chart-card,
.table-card {
  padding: 35px;
  margin-bottom: 40px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.input-box {
  display: flex;
  flex-direction: column;
}

.input-box label {
  margin-bottom: 10px;
  font-weight: 600;
  font-family: Arial;
}

.input-box input,
.input-box select {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #DD3333;
  background: transparent;
  color: var(--text);
}
.input-box input:focus,
.input-box select:focus {

  border-color: #DD3333;

  box-shadow: 0 0 10px rgba(221,51,51,0.25);

  outline: none;
}

.backlink {
  font-size: 1rem;
  margin-top: 16px;
  text-align: center;
  color: #444;
  font-weight: 500;
  margin-bottom: 1rem;
  letter-spacing: 0.3px;
}

a {
  color: #dd3333;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

a:hover {
  color: #b91c1c;
  text-decoration: underline;
}

body.dark #currency{
  background: transparent;
}
#topBtn {

  position: fixed;

  bottom: 25px;

  right: 25px;

  width: 50px;

  height: 50px;

  display: flex;

  justify-content: center;

  align-items: center;

  border: 1px solid #DD3333;

  border-radius: 50%;

  background: #fff;

  color: #dd3333;

  font-size: 1.2rem;

  cursor: pointer;

  z-index: 999;

  transition: 0.3s ease;

  box-shadow:
  0 10px 25px rgba(0,0,0,0.1);

  display: none;
}

#topBtn:hover {

  transform: translateY(-4px);

  background: #DD3333;

  color: white;
}
.input-box small {
  margin-top: 8px;
  color: #111827;
  font-weight: 500;
}
body.dark .input-box small{
  color: #ccc;
}
.year-wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
}


.toast{

  position:fixed;

  bottom:30px;

  right:30px;

  background:#111827;

  color:#fff;

  padding:15px 20px;

  border-radius:12px;

  font-weight:600;

  z-index:9999;

  animation:fadeUp 0.4s ease;
}

body.dark .toast{

  background:#DD3333;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--primary);

}

#yearInput {
  width: 90px;
  border: 1px solid #DD3333;
}

.year-display {
  margin-top: 10px;
  color: var(--primary);
  font-weight: 600;
}

.calculate-btn {
  border: none;
  padding: 16px 20px;
  border-radius: 14px;
  background: #DD3333;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  width: 260px !important;
  max-width: 260px;
  min-width: 260px;
  margin-top: -3rem;
  align-self: center;
  flex: none;
  cursor: pointer;
  transition: 0.3s ease;
  box-shadow: 0 10px 20px rgba(221,51,51,0.25);
}

.calculate-btn:hover {

  transform: translateY(-3px);

  background: #c62828;
}
.required {

  color: #DD3333;

  font-weight: 700;
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.result-card {
  padding: 30px;
  text-align: center;
}

.result-card p {
  margin-top: 10px;
  font-size: 1.8rem;
  color: var(--primary);
  font-weight: 700;
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 15px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.hidden {
  display: none;
}

footer {
  text-align: center;
  padding: 40px 0;
  opacity: 0.7;
}

.action-buttons {

  display: flex;

  gap: 15px;

  justify-content: center;

  margin-top: 25px;

  flex-wrap: wrap;
}

.action-btn {

  border: none;

  padding: 14px 22px;

  border-radius: 12px;

  background: #DD3333;

  color: white;

  cursor: pointer;

  font-weight: 600;

  transition: 0.3s ease;
}

.action-btn:hover {

  transform: translateY(-3px);

  background: #c62828;
}

@media(max-width:768px) {

  .hero h1 {
    font-size: 2rem;
  }

  .calculator-card,
  .chart-card,
  .table-card {
    padding: 25px;
  }
  #topBtn{
    right: 5px;
    width: 45px;
    height: 45px;
  }
  .chart-card {
    height: 260px;
  }
  #investmentChart {
    width: 100% !important;
    height: 100% !important;
  }
}



