* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f5f7fa;
  color: #333;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  min-height: 100vh;
}

.site-header {
  background: linear-gradient(135deg, #3498db, #2c3e50);
  color: #fff;
  padding: 30px 15px;
  text-align: center;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}
.site-header h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}
.site-header p {
  font-size: 1rem;
  opacity: 0.9;
}

.container {
  max-width: 600px;
  margin: 30px auto;
  padding: 25px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}
.tabs button {
  margin: 5px;
  padding: 10px 16px;
  border: none;
  background: #3498db;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.25s;
  background: rgba(52, 152, 219, 0.15);
  color: #3498db;
  backdrop-filter: blur(5px);
}
.tabs button:hover {
  background: #2980b9;
  background: #3498db;
  color: white;
}

.form {
  margin-top: 15px;
}
input, textarea {
  width: 95%;
  margin: 6px 0;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
}
textarea {
  min-height: 80px;
  resize: vertical;
}
button {
  margin-top: 10px;
  padding: 10px 16px;
  border: none;
  background: #27ae60;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.25s;
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  border-radius: 8px;
  font-weight: 600;
  transition: 0.3s;
}
button:hover {
  background: #1e874b;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* QR Code */
#qrcode-container {
  margin-top: 25px;
  text-align: center;

}

#qrcode {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 15px;
}

.wifi-hidden {
  display: flex;
  justify-content: center;
  gap: 8px;
}



#qrcode img {
  border: 2px solid #000;
  border-radius: 8px;
  padding: 8px;
  background: #fff;
}
#downloadBtn {
  margin-top: 15px;
  padding: 10px 18px;
  background: #e67e22;
  border-radius: 6px;
}
#downloadBtn:hover {
  background: #d35400;
}

.site-footer {
  text-align: center;
  padding: 15px;
  margin-top: 40px;
  font-size: 0.9rem;
  background: #f0f0f0;
  border-top: 1px solid #ddd;
  align-items:end;
}

#hidden{
  margin-left: 205px;
  
}

main{
  flex-grow: 1;
}

.switch {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 25px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 25px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: 0.3s;
}

.slider:before {
  position: absolute;
  content: "☀️";
  height: 19px;
  width: 19px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;

  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

input:checked + .slider:before {
  transform: translateX(25px);
  content: "🌙";
}
input:checked + .slider {
  background-color: #27ae60;
}

input:checked + .slider:before {
  transform: translateX(25px);
}

body.dark {
  background: #121212;
  color: #fff;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
}

body.dark .container {
  background: #1e1e1e;
  background: rgba(30,30,30,0.8);
  color: #fff;
}

body.dark input,
body.dark textarea {
  background: #2c2c2c;
  color: #fff;
  border: 1px solid #555;
}

body.dark .tabs button {
  background: #444;
}

body.dark .tabs button:hover {
  background: #666;
}

body.dark .site-footer {
  background: #1a1a1a;
  color: #ccc;
}

.error-msg {
  color: red;
  font-size: 0.85rem;
  margin-top: 4px;
  display: none;
  transition: 0.2s;
}

.card {
  min-height: auto;
  width: 350px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  text-align: center;
  overflow: hidden;
  margin: 20px auto;
  padding-bottom: 30px;
  justify-content: flex-start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}


.qr {
  width: 200px;
  margin: 20px auto;
  display: block;
}

.upi-text {
  color: #6b7280;
  font-size: 14px;
}

.desc {
  color: #6b7280;
  font-size: 14px;
  margin-top: 8px;
}



.logos-big {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 20px;
}

.logos-big img {
  height: 40px;
}

.logos-big img:nth-child(1) {
  height: 34px;
}

.logos-big img:nth-child(2) {
  height: 34px;
}


.logos-small {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  flex-wrap: wrap;
}


.logos-small img:nth-child(1) {
  height: 55px;
}


.logos-small img:nth-child(2) {
  height: 20px;
}


.logos-small img:nth-child(3) {
  height: 20px;
}

.logos-small img:nth-child(4) {
  height: 20px;
}

.logos-big img,
.logos-small img {
  width: auto;
  object-fit: contain;
}

#qr {
  width: 200px;
  height: 200px;
  margin: 20px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}


.header {
  width: 100%;
  background: #e5e7eb;
  padding: 16px;
  color: #374151;
  font-size: 18px;
  background: #d1d5db;
  padding: 18px;
  font-size: 20px;
  font-weight: bold;
  background: linear-gradient(to bottom, #d1d5db, #e5e7eb);
}


#qr canvas {
  max-width: 100%;
}

#qrcode-container {
  margin-top: 25px;
  text-align: center;
  width: 100%;
}

.card img {
  max-width: 100%;
  height: auto;
}

.message {
  color: #6b7280;
  font-size: 14px;
  margin-top: 8px;
}

#downloadBtn.loading {
  opacity: 0.6;
  pointer-events: none;
}

#loadingText {
  margin-left: 10px;
  color: #fff;
  font-size: 14px;
}




.QIFY {
font-weight: 600;
}


.links a {
  color: #5c51fa;
  text-decoration: none;
}

.links a:hover {
  color: #fff;
}


.seo-content {
  max-width: 900px;
  margin: 60px auto;
  padding: 20px;
}

.seo-content h2 {
  margin-top: 30px;
  color: #fff;
}

.seo-content p {
  color: #cbd5f5;
  line-height: 1.7;
}

/* LIGHT MODE (default) */
.seo-content h2 {
  color: #222;
}

.seo-content p {
  color: #444;
}

/* DARK MODE override */
body.dark .seo-content h2 {
  color: #fff;
}

body.dark .seo-content p {
  color: #cbd5f5;
}

.ad-box {
  margin: 30px 0;
  padding: 20px;
  border: 1px dashed #ccc;
  text-align: center;
  font-size: 12px;
  color: #777;
}