:root {
  --bg: #f6fff9;
  --text: #111;
  --box: #fff;
  --border: #00cc66;
  --feature-bg: #e7f9ef;
  --footer: #888;
}
body {
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
}
body.dark-theme {
  --bg: #181c1f;
  --text: #f6fff9;
  --box: #23272a;
  --border: #00cc66;
  --feature-bg: #232b2b;
  --footer: #7a8a99;
  --input-border: #333b44;
  --placeholder: #7a8a99;
}
body.dark-theme .hero p,
body.dark-theme .feature-text {
  color: #b0bac5;
}
body.dark-theme .output-box,
body.dark-theme .hero textarea {
  background: var(--box);
  color: var(--text);
  border: 2px solid var(--input-border);
}
body.dark-theme .hero textarea::placeholder {
  color: var(--placeholder);
}
body.dark-theme .hero button {
  background-color: #00cc66;
  color: #fff;
}
body.dark-theme nav a {
  color: #f6fff9;
}
body.dark-theme nav a:hover {
  color: #00cc66;
  border-bottom: 2px solid #00cc66;
}
body.dark-theme .logo-text-black {
  color: #f6fff9;
}
body.dark-theme #themeToggle {
  color: #fff;
}
nav {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}
.logo-snip {
  color: #00cc66;
  font-size: 26px;
  font-weight: 700;
  vertical-align: middle;
}
.logo-text-black {
  color: #111;
  font-size: 26px;
  font-weight: 700;
  vertical-align: middle;
}
.logo-text {
  display: flex;
  align-items: center;
}
nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #111;
  font-weight: 500;
  transition: color 0.15s, border-bottom 0.15s;
  border-bottom: 2px solid transparent;
}
nav a:hover {
  color: #00cc66;
  border-bottom: 2px solid #00cc66;
}
nav .logo-text {
  color: unset;
}
.hero {
  text-align: center;
  max-width: 700px;
  margin: 40px 0;
}
.hero h1 {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
}
.hero p {
  font-size: 18px;
  color: #444;
  margin-bottom: 30px;
}
.hero textarea {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 12px;
  resize: vertical;
  margin-bottom: 20px;
  background: var(--box);
  color: var(--text);
}
.hero textarea::placeholder {
  color: #888;
}
.hero .options-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.hero .options-row select,
.hero .options-row input[type="number"] {
  padding: 8px;
  font-size: 14px;
  border: 2px solid #ccc;
  border-radius: 8px;
}
.hero button {
  background-color: #00cc66;
  color: white;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
}
.output-box {
  margin-top: 30px;
  background: var(--box);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  min-height: 100px;
  position: relative;
}
.features-section {
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 16px;
  text-align: center;
}
.features-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 32px;
  color: #00cc66;
  letter-spacing: 1px;
}
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}
@media (max-width: 900px) {
  .features {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .feature-card {
    max-width: 100%;
    min-width: 0;
  }
}
.feature-card {
  background: #e7f9ef;
  padding: 32px 20px 24px 20px;
  border-radius: 16px;
  font-size: 17px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 220px;
  max-width: 260px;
  flex: 1 1 220px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.feature-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 32px rgba(0, 204, 102, 0.13);
}
.feature-icon svg {
  display: block;
  margin-bottom: 16px;
}
.feature-text {
  color: #222;
  font-weight: 500;
  line-height: 1.4;
}
footer {
  margin-top: 60px;
  padding: 20px;
  font-size: 14px;
  color: var(--footer);
  text-align: center;
}
#themeToggle {
  outline: none;
}
#themeToggle:focus {
  outline: 2px solid var(--border);
}
.spinner {
  border: 4px solid #e0e0e0;
  border-top: 4px solid #00cc66;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
#copyBtn, #clearBtn {
  background: #00cc66;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 204, 102, 0.3);
}
#copyBtn:hover, #clearBtn:hover {
  background: #00b359;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 204, 102, 0.4);
}
#copyBtn:active, #clearBtn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 204, 102, 0.3);
}
body.dark-theme #copyBtn, body.dark-theme #clearBtn {
  background: #00cc66;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 204, 102, 0.4);
}
body.dark-theme #copyBtn:hover, body.dark-theme #clearBtn:hover {
  background: #00b359;
  box-shadow: 0 4px 12px rgba(0, 204, 102, 0.5);
} 
.input-wrapper {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto 8px auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.input-wrapper textarea {
  width: 100%;
  box-sizing: border-box;
  padding-right: 16px;
  padding-bottom: 16px;
}
#clearBtn {
  position: static;
  margin-top: 8px;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 6px 18px;
  font-size: 14px;
  border-radius: 6px;
  background: #00cc66;
  color: #fff;
  border: none;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  display: none;
}
#clearBtn:hover {
  background: #00b359;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}
#clearBtn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 204, 102, 0.3);
}
body.dark-theme #clearBtn {
  background: #00cc66;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 204, 102, 0.4);
}
body.dark-theme #clearBtn:hover {
  background: #00b359;
  box-shadow: 0 4px 12px rgba(0, 204, 102, 0.5);
} 
/* Modal styles */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modal-fade-in 0.25s;
}
@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal-content {
  background: var(--box);
  color: var(--text);
  padding: 40px 32px 32px 32px;
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.22);
  text-align: center;
  min-width: 320px;
  max-width: 90vw;
  position: relative;
  animation: modal-content-pop 0.3s cubic-bezier(.23,1.01,.32,1);
}
@keyframes modal-content-pop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.modal-content h2 {
  margin-top: 0;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.modal-content p {
  font-size: 1.08rem;
  margin-bottom: 24px;
  color: var(--text);
}
.modal-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.modal-content button {
  margin: 0;
  padding: 10px 22px;
  font-size: 16px;
  border-radius: 6px;
  border: none;
  background: #00cc66;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.15s, box-shadow 0.15s, transform 0.12s;
  box-shadow: 0 2px 8px rgba(0,204,102,0.08);
}
.modal-content button:hover {
  background: #009966;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 16px rgba(0,204,102,0.13);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  color: #888;
  border: none;
  font-size: 2rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0 8px;
  line-height: 1;
  transition: color 0.15s, transform 0.12s;
}
.modal-close:hover {
  color: #00cc66;
  transform: scale(1.2);
}
body.dark-theme .modal-content {
  background: var(--box);
  color: var(--text);
} 
/* Auth page background gradient */
.auth-bg {
  position: fixed;
  z-index: 0;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #e7f9ef 0%, #f6fff9 100%);
  pointer-events: none;
}
body.dark-theme .auth-bg {
  background: linear-gradient(135deg, #232b2b 0%, #181c1f 100%);
}
.auth-section {
  position: relative;
  z-index: 1;
}
/* Split auth container styles */
.auth-container {
  display: flex;
  max-width: 1100px;
  width: 90vw;
  margin: 64px auto;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.22), 0 0 0 4px #00cc66;
  border: 2px solid #00cc66;
  overflow: hidden;
  min-height: 600px;
  position: relative;
  z-index: 2;
}
.auth-left, .auth-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 0;
  min-height: 600px;
  position: relative;
  z-index: 2;
  padding: 64px 48px;
}
.auth-left {
  flex: 1 1 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 36px;
}
.auth-right {
  flex: 1 1 0;
  background: linear-gradient(135deg, #00cc66 0%, #009966 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 36px;
}
.auth-right-content {
  text-align: center;
  max-width: 320px;
}
.auth-right-content h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 18px;
  color: #fff;
}
.auth-right-content p {
  font-size: 1.08rem;
  margin-bottom: 28px;
  color: #e7f9ef;
}
.auth-switch-panel {
  font-size: 1.01rem;
  color: #fff;
}
.auth-switch-panel a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.15s;
}
.auth-switch-panel a:hover {
  color: #e7f9ef;
}
.auth-form {
  width: 100%;
  max-width: 340px;
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
}
.auth-or {
  text-align: center;
  margin: 18px 0 10px 0;
  color: #888;
  font-size: 0.98rem;
}
.auth-socials {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 0;
}
.social-btn {
  border: none;
  background: #f6fff9;
  color: #111;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,204,102,0.08);
  transition: background 0.15s, color 0.15s, transform 0.12s;
}
.social-btn.google { color: #ea4335; }
.social-btn.facebook { color: #1877f3; }
.social-btn.twitter { color: #1da1f2; }
.social-btn:hover {
  background: #e7f9ef;
  transform: scale(1.08);
}
.social-icon {
  font-weight: 700;
  font-size: 1.18rem;
}
@media (max-width: 900px) {
  .auth-container {
    flex-direction: column;
    min-height: unset;
    max-width: 98vw;
  }
  .auth-left, .auth-right {
    padding: 36px 16px;
    min-height: 260px;
  }
}
@media (max-width: 600px) {
  .auth-container {
    border-radius: 0;
    box-shadow: none;
    margin: 0;
  }
  .auth-left, .auth-right {
    padding: 24px 6vw;
  }
  .auth-right-content {
    max-width: 100%;
  }
}
.auth-form .input-wrapper,
.auth-form .password-wrapper {
  width: 100%;
  margin-bottom: 18px;
}
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 13px 15px;
  border: 2px solid var(--border);
  border-radius: 7px;
  font-size: 1.05rem;
  margin-bottom: 0;
  background: var(--box);
  color: var(--text);
  outline: none;
  transition: border 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 4px rgba(0,204,102,0.04);
}
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
  border-color: #00cc66;
  box-shadow: 0 2px 8px rgba(0,204,102,0.10);
}
/* --- Fix password/email alignment in auth forms --- */
.password-wrapper {
  width: 100%;
  position: relative;
  display: block;
}
.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0;
  padding-right: 38px; /* space for eye icon */
}
.auth-form .password-wrapper:last-of-type {
  margin-bottom: 0;
}
.toggle-password {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #888;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  margin: 0;
  vertical-align: middle;
  line-height: 1;
  height: 28px;
  width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, transform 0.12s;
}
.toggle-password svg {
  display: block;
}
.toggle-password:hover {
  color: #00cc66;
  transform: scale(1.18);
}
.auth-form button[type="submit"] {
  width: 100%;
  padding: 13px 0;
  background: #00cc66;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 1.13rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.15s, box-shadow 0.15s, transform 0.12s;
  box-shadow: 0 2px 8px rgba(0,204,102,0.08);
}
.auth-form button[type="submit"]:hover {
  background: #009966;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 16px rgba(0,204,102,0.13);
}
.auth-switch {
  margin-top: 10px;
  font-size: 1.01rem;
}
.auth-switch a {
  color: #00cc66;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}
.auth-switch a:hover {
  color: #009966;
}
body.dark-theme .auth-form {
  background: var(--box);
  color: var(--text);
}
body.dark-theme .auth-form input[type="email"],
body.dark-theme .auth-form input[type="password"] {
  background: var(--box);
  color: var(--text);
  border: 2px solid var(--input-border);
}
body.dark-theme .auth-form input[type="email"]:focus,
body.dark-theme .auth-form input[type="password"]:focus {
  border-color: #00cc66;
} 
body.dark-theme footer {
  color: #fff;
}
body.dark-theme #howItWorksBtn {
  background: #fff;
  color: #00cc66;
}
body.dark-theme #howItWorksBtn:hover {
  background: #e7f9ef;
  color: #009966;
}
body.dark-theme #ph-support-btn {
  background: #fff;
  color: #da552f;
}
body.dark-theme #ph-support-btn:hover {
  background: #ffe5dc;
  color: #c4411e;
} 