* { margin:0; padding:0; box-sizing:border-box; font-family: 'Segoe UI', sans-serif; }
body {
  background: linear-gradient(120deg, #f7fbff 60%, #e3f6ff 100%);
  min-height: 100vh;
  margin: 0;
  font-family: 'Segoe UI', Inter, system-ui, Arial, sans-serif;
  color: #1a2a33;
}
a { text-decoration: none; color: inherit; }
header {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem 1rem;
  background: linear-gradient(90deg, #4facfe 60%, #00f2fe 100%);
  color: #fff;
  border-radius: 0 0 2.2rem 2.2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  margin-bottom: 2.2rem;
  position: relative;
}
header .logo {
  width: 70px;
  margin-bottom: 0.7rem;
  border-radius: 1.2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
header h1 {
  margin: 0 0 0.7rem 0;
  font-size: 2.2rem;
  letter-spacing: 0.5px;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
header p {
  margin: 0;
  color: #eaf6fb;
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: 0.1px;
}
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 2.2rem 2.5rem;
    justify-content: center;
    align-items: center;
    max-width: 1100px;
    margin: 2.5rem auto 2rem auto;
    padding: 0 1rem;
}

.mode-toggle-row {
  display: flex;
  justify-content: flex-end;
  max-width: 1100px;
  margin: 0 auto 0.5rem auto;
  padding: 0 1rem;
}
#mode-toggle {
  background: linear-gradient(90deg, #4facfe, #00f2fe);
  color: #fff;
  border: none;
  border-radius: 1.2rem;
  padding: 0.7rem 1.5rem;
  font-size: 1.08rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  margin-bottom: 0.7rem;
  transition: background 0.2s, color 0.2s;
}
#mode-toggle:hover {
  opacity: 0.92;
}
.tool-card {
    background: #fff;
    padding: 2rem 1.2rem 1.3rem 1.2rem;
    border-radius: 1.3rem;
    box-shadow: 0 6px 24px rgba(0,0,0,0.10);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    border: 1.5px solid #e3f6ff;
    position: relative;
}
.tool-card span {
    font-size: 2.7rem;
    margin-bottom: 0.7rem;
}
.tool-card h2 {
    margin: 0.7rem 0 0.4rem 0;
    font-size: 1.25rem;
    color: #0099cc;
    font-weight: 700;
    letter-spacing: 0.2px;
}
.tool-card p {
    font-size: 1.01rem;
    color: #666;
    margin: 0;
}
.tool-card:hover {
    transform: translateY(-7px) scale(1.03);
    box-shadow: 0 12px 32px rgba(0,0,0,0.13);
    border-color: #4facfe;
}
.calculator { max-width:400px; margin:2rem auto; background:#fff; padding:2rem; border-radius:1rem; box-shadow:0 4px 15px rgba(0,0,0,0.1); text-align:center; }
.calculator input { padding:0.5rem; margin:1rem 0; width:100%; border-radius:0.5rem; border:1px solid #ccc; }
.calculator button { padding:0.8rem 1.8rem; border:none; border-radius:0.5rem; background: linear-gradient(90deg, #4facfe, #00f2fe); color:#fff; cursor:pointer; transition:0.3s; }
.calculator button:hover { opacity:0.9; }
.calculator p { margin-top:1rem; font-weight:bold; }
.faq { max-width:600px; margin:2rem auto; padding:1rem; }
.faq h2 { text-align:center; margin-bottom:1rem; }
.faq h3 { margin-top:1rem; color:#4facfe; }
.faq p { margin-top:0.3rem; color:#555; }
footer {
  text-align: center;
  margin-top: 2.5rem;
  padding: 1.2rem 0 0.7rem 0;
  color: #0099cc;
  font-size: 1.08rem;
  background: none;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.share-row {
  display: flex;
  gap: 1.1rem;
  justify-content: center;
  margin-top: 1.2rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border-radius: 0.8rem;
  font-size: 1.08rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: #eaf6fb;
  color: #0099cc;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.share-btn.whatsapp { background: #25d366; color: #fff; }
.share-btn.telegram { background: #229ed9; color: #fff; }
.share-btn:hover { opacity: 0.92; }
/* Mobile adjustments */
@media (max-width: 900px) {
  .tools-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    max-width: 700px;
  }
}
@media (max-width: 600px) {
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    max-width: 98vw;
    margin: 1.2rem auto;
    padding: 1rem;
  }
  .tool-card {
    padding: 1rem;
    font-size: 0.95rem;
    min-height: 120px;
  }
  .mode-toggle-row {
    justify-content: center;
    padding: 0 0.5rem;
  }
}
/* Dark mode styles */
.dark body {
  background: linear-gradient(120deg, #23272f 60%, #1a1d22 100%);
  color: #eaf6fb;
}
.dark header {
  background: linear-gradient(90deg, #23272f 60%, #1a1d22 100%);
  color: #eaf6fb;
}
.dark .tool-card {
  background: #23272f;
  color: #eaf6fb;
  border-color: #333a44;
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}
.dark .tool-card h2 {
  color: #4facfe;
}
.dark .tool-card p {
  color: #b3e0fc;
}
.dark .calculator {
  background: #23272f;
  color: #eaf6fb;
  border-color: #333a44;
}
.dark .faq {
  background: #23272f;
  color: #eaf6fb;
}
.dark .share-btn {
  background: #23272f;
  color: #4facfe;
  border: 1px solid #4facfe;
}
.dark .share-btn.whatsapp { background: #128c7e; color: #fff; }
.dark .share-btn.telegram { background: #176ca1; color: #fff; }
.dark #mode-toggle {
  background: linear-gradient(90deg, #23272f, #1a1d22);
  color: #eaf6fb;
}
.dark footer {
  color: #b3e0fc;
}
@media (max-width: 700px) {
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        max-width: 98vw;
        margin: 1.2rem auto;
    }
    .tool-card {
        padding: 1.2rem 0.7rem;
        min-height: 140px;
    }
}
