* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #1a1a1a;
  background: #fafafa;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ---------- HEADER ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 20px;
  color: #ff0050;
}

.logo-icon {
  font-size: 20px;
}

.main-nav {
  display: flex;
  gap: 22px;
  flex: 1;
  justify-content: center;
}

.main-nav a {
  font-size: 14px;
  font-weight: 600;
  color: #444;
}

.main-nav a:hover {
  color: #ff0050;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switcher {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 13px;
  background: #fff;
  cursor: pointer;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

@media (max-width: 720px) {
  .main-nav {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
  }
}

/* ---------- AD SLOTS ---------- */
.ad-slot {
  max-width: 728px;
  margin: 16px auto;
  min-height: 60px;
  background: #f0f0f0;
  border: 1px dashed #ccc;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ad-label {
  font-size: 11px;
  color: #999;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ---------- HERO ---------- */
.hero {
  text-align: center;
  padding: 48px 20px 24px;
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 30px;
  margin-bottom: 10px;
  color: #111;
}

.hero-subtitle {
  color: #666;
  font-size: 15px;
  margin-bottom: 28px;
}

.tool-box {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.input-row input {
  flex: 1;
  padding: 14px 16px;
  border: 2px solid #eee;
  border-radius: 10px;
  font-size: 15px;
}

.input-row input:focus {
  outline: none;
  border-color: #ff0050;
}

.btn-paste {
  background: #f0f0f0;
  color: #333;
  border: none;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}

.btn-paste:hover {
  background: #e4e4e4;
}

.btn-main {
  width: 100%;
  background: #ff0050;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}

.btn-main:hover {
  background: #d80043;
}

.hidden {
  display: none !important;
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #888;
  margin-top: 16px;
  font-size: 14px;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 3px solid #eee;
  border-top-color: #ff0050;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error {
  color: #d80043;
  background: #ffe9ee;
  padding: 12px;
  border-radius: 10px;
  margin-top: 16px;
  font-size: 14px;
  text-align: left;
}

/* ---------- RESULT ---------- */
.result {
  margin-top: 24px;
  text-align: center;
}

.result img {
  width: 100%;
  max-width: 220px;
  border-radius: 12px;
  margin: 0 auto 10px;
  display: block;
}

.result h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.result p {
  color: #666;
  font-size: 13px;
  margin-bottom: 16px;
}

.result-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-result {
  display: block;
  padding: 13px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
}

.btn-result.primary {
  background: #ff0050;
  color: #fff;
}

.btn-result.secondary {
  background: #2563eb;
  color: #fff;
}

.btn-result.tertiary {
  background: #222;
  color: #fff;
}

.btn-result:hover {
  opacity: 0.9;
}

/* ---------- GUIDE ---------- */
.guide-section, .features-section, .faq-section {
  max-width: 800px;
  margin: 48px auto;
  padding: 0 20px;
}

.guide-section h2, .features-section h2, .faq-section h2 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 28px;
  color: #111;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 700px) {
  .guide-steps {
    grid-template-columns: 1fr;
  }
}

.guide-step {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.step-number {
  width: 36px;
  height: 36px;
  background: #ff0050;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 12px;
}

.guide-step h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.guide-step p {
  font-size: 13px;
  color: #666;
}

/* ---------- FEATURES ---------- */
.features-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 600px) {
  .features-list {
    grid-template-columns: 1fr;
  }
}

.features-list li {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.features-list strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
  color: #ff0050;
}

.features-list span {
  font-size: 13px;
  color: #666;
}

/* ---------- FAQ ---------- */
.faq-section details {
  background: #fff;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-section summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: #222;
}

.faq-section p {
  margin-top: 10px;
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: #111;
  color: #ccc;
  margin-top: 48px;
  padding: 40px 20px 24px;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand .logo-text {
  color: #ff0050;
  font-weight: 700;
  font-size: 18px;
}

.footer-brand p {
  font-size: 12px;
  color: #999;
  margin: 10px auto 20px;
  max-width: 500px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 20px;
  font-size: 13px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 12px;
  color: #666;
}

/* ---------- LEGAL PAGES ---------- */
.legal-page {
  max-width: 720px;
  margin: 40px auto;
  padding: 0 20px 40px;
}

.legal-page h1 {
  font-size: 26px;
  margin-bottom: 8px;
}

.legal-page h2 {
  font-size: 17px;
  margin-top: 24px;
  margin-bottom: 8px;
  color: #ff0050;
}

.legal-page p {
  font-size: 14px;
  color: #444;
  margin-bottom: 8px;
}

.contact-box {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* ---------- IN-APP BROWSER WARNING ---------- */
.in-app-warning {
  background: #fff3cd;
  color: #664d03;
  border-bottom: 1px solid #ffe69c;
  padding: 10px 16px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.in-app-warning button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #664d03;
  padding: 0;
  line-height: 1;
}

.in-app-warning button:hover {
  background: none;
  color: #402;
}

/* ---------- BUTTON LOADING ---------- */
.btn-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-main:disabled {
  opacity: 0.85;
  cursor: not-allowed;
}

.btn-main:disabled:hover {
  background: #ff0050;
}

.btn-paste:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ---------- INPUT ERROR ---------- */
.input-row input.input-error {
  border-color: #d80043;
  animation: shake 0.3s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* ---------- COPY BUTTON ---------- */
.copy-btn {
  background: #f0f0f0;
  color: #333;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.copy-btn:hover {
  background: #e4e4e4;
  opacity: 1;
}

/* ---------- TOAST ---------- */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translate(-50%, -20px);
  background: #fff;
  color: #b00035;
  border-left: 5px solid #d80043;
  padding: 14px 16px;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: min(92vw, 440px);
  font-size: 14px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 1000;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.toast-success {
  color: #0a6b2d;
  border-left-color: #16a34a;
}

.toast-text {
  flex: 1;
}

.toast-close {
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #999;
  padding: 0 0 0 6px;
}

.toast-close:hover {
  color: #333;
  background: none;
}

/* ---------- SLIDESHOW ---------- */
.slideshow-result {
  margin-top: 24px;
  text-align: center;
}

.slideshow-result h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.slideshow-result p {
  color: #666;
  font-size: 13px;
}

.slideshow-note {
  margin: 8px 0 14px;
}

.slideshow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.slide-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #eee;
}

.slide-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-download {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(255, 0, 80, 0.9);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  text-decoration: none;
}

.slide-download:hover {
  background: #ff0050;
}

.zip-btn {
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 10px;
}

/* ---------- SEO CONTENT ---------- */
.seo-content {
  max-width: 1000px;
  margin: 56px auto;
  padding: 0 20px;
  text-align: center;
}

.seo-content h2 {
  font-size: 26px;
  margin-bottom: 14px;
  color: #111;
}

.seo-intro {
  max-width: 700px;
  margin: 0 auto 32px;
  font-size: 15px;
  color: #555;
  line-height: 1.8;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}

@media (max-width: 750px) {
  .seo-grid {
    grid-template-columns: 1fr;
  }
}

.seo-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s;
}

.seo-card:hover {
  transform: translateY(-3px);
}

.seo-icon {
  font-size: 26px;
  margin-bottom: 10px;
}

.seo-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #ff0050;
}

.seo-card p {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
}